@bino-bi/bn-template-engine 1.0.0-alpha.0 → 1.0.0-alpha.11

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 (361) hide show
  1. package/LICENSE +203 -21
  2. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  3. package/dist/bn-template-engine/p-095f74d7.entry.js +1 -0
  4. package/dist/bn-template-engine/p-14318b0d.entry.js +1 -0
  5. package/dist/bn-template-engine/{p-c9f050bf.entry.js → p-2133e02b.entry.js} +1 -1
  6. package/dist/bn-template-engine/p-6b469808.entry.js +1 -0
  7. package/dist/bn-template-engine/p-7HSTE79g.js +1 -0
  8. package/dist/bn-template-engine/p-B4JfKvVT.js +1 -0
  9. package/dist/bn-template-engine/p-B_d-jp99.js +2 -0
  10. package/dist/bn-template-engine/p-Bi2wx-el.js +1 -0
  11. package/dist/bn-template-engine/p-CWiZks2h.js +1 -0
  12. package/dist/bn-template-engine/{p-BQp6ZPYW.js → p-DSXNgKLa.js} +1 -1
  13. package/dist/bn-template-engine/p-c2cbb8ea.entry.js +1 -0
  14. package/dist/bn-template-engine/p-e783733e.entry.js +1 -0
  15. package/dist/bn-template-engine/p-e94b4e31.entry.js +1 -0
  16. package/dist/bn-template-engine/p-fdb3e99a.entry.js +1 -0
  17. package/dist/cjs/bn-asset_21.cjs.entry.js +23995 -0
  18. package/dist/cjs/bn-grid.cjs.entry.js +6 -13
  19. package/dist/cjs/bn-image.cjs.entry.js +6 -13
  20. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -7
  21. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  22. package/dist/cjs/bn-template.cjs.entry.js +4 -6
  23. package/dist/cjs/bn-text.cjs.entry.js +10 -19
  24. package/dist/cjs/bn-tree.cjs.entry.js +11 -14
  25. package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-B_jipZpJ.js} +6 -2
  26. package/dist/cjs/editor-companion.cjs.entry.js +3 -3
  27. package/dist/cjs/{index-CScBFiS1.js → index-CDKG4xmO.js} +2 -2
  28. package/dist/cjs/loader.cjs.js +2 -2
  29. package/dist/cjs/scaling-eyzCrFB8.js +329 -0
  30. package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-D7BKWN2N.js} +2 -2
  31. package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-Cl2gTQzA.js} +106 -2
  32. package/dist/{esm/luxon-DbyXf6dF.js → cjs/withStyled-V7xz_x1c.js} +1406 -1
  33. package/dist/collection/collection-manifest.json +2 -10
  34. package/dist/collection/components/bn-body/bn-body.css +1 -0
  35. package/dist/collection/components/bn-card/bn-card.css +2 -0
  36. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +368 -130
  37. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +34 -10
  38. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
  39. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
  40. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
  41. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
  42. package/dist/collection/components/bn-chart-time/bn-chart-time.css +1 -1
  43. package/dist/collection/components/bn-chart-time/bn-chart-time.js +172 -51
  44. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +22 -9
  45. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
  46. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
  47. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
  48. package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
  49. package/dist/collection/components/bn-datasource/bn-datasource.js +173 -8
  50. package/dist/collection/components/bn-layout-card/bn-layout-card.css +3 -2
  51. package/dist/collection/components/bn-layout-card/bn-layout-card.js +207 -32
  52. package/dist/collection/components/bn-layout-page/bn-layout-page.css +1 -3
  53. package/dist/collection/components/bn-layout-page/bn-layout-page.js +172 -43
  54. package/dist/collection/components/bn-message/bn-message.js +1 -1
  55. package/dist/collection/components/bn-page/bn-page.js +1 -1
  56. package/dist/collection/components/bn-scaling-group/bn-scaling-group.css +3 -0
  57. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +136 -0
  58. package/dist/collection/components/bn-table/bn-table.js +201 -58
  59. package/dist/collection/components/bn-table/ibcs-table.css +7 -5
  60. package/dist/collection/components/bn-table/ibcs-table.js +91 -5
  61. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +79 -31
  62. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
  63. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
  64. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
  65. package/dist/collection/components/bn-template/bn-template.js +1 -1
  66. package/dist/collection/components/bn-text/bn-text.js +1 -1
  67. package/dist/collection/components/bn-title/bn-title.js +1 -9
  68. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -4
  69. package/dist/collection/components/bn-tree/bn-tree.js +5 -1
  70. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  71. package/dist/collection/stores/componentStyles.js +2 -0
  72. package/dist/collection/stores/createScopedStores.js +3 -1
  73. package/dist/collection/utils/DateStringFactory.js +0 -1
  74. package/dist/collection/utils/constants.js +35 -5
  75. package/dist/collection/utils/contentDecoder.js +28 -0
  76. package/dist/collection/utils/layoutObserver.js +88 -0
  77. package/dist/collection/utils/parentDimensions.js +57 -10
  78. package/dist/collection/utils/stackColors.js +2 -2
  79. package/dist/collection/utils/validate.js +5 -2
  80. package/dist/collection/utils/withInheritedProps.js +152 -0
  81. package/dist/collection/utils/withScalingGroup.js +66 -0
  82. package/dist/components/DataFormatDigits.js +1 -1
  83. package/dist/components/DateStringFactory.js +1 -1
  84. package/dist/components/Order.js +1 -1
  85. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  86. package/dist/components/bn-body2.js +1 -1
  87. package/dist/components/bn-card2.js +1 -1
  88. package/dist/components/bn-chart-structure.js +1 -1
  89. package/dist/components/bn-chart-time.js +1 -1
  90. package/dist/components/bn-dataset.js +1 -1
  91. package/dist/components/bn-datasource.js +1 -1
  92. package/dist/components/bn-layout-card.js +1 -1
  93. package/dist/components/bn-layout-page.js +1 -1
  94. package/dist/components/bn-message2.js +1 -1
  95. package/dist/components/bn-page2.js +1 -1
  96. package/dist/components/{test-runner-time.d.ts → bn-scaling-group.d.ts} +4 -4
  97. package/dist/components/bn-scaling-group.js +1 -0
  98. package/dist/components/bn-table.js +1 -1
  99. package/dist/components/bn-template.js +1 -1
  100. package/dist/components/bn-text.js +1 -1
  101. package/dist/components/bn-title2.js +1 -1
  102. package/dist/components/bn-tree.js +1 -1
  103. package/dist/components/contentDecoder.js +1 -0
  104. package/dist/components/context-protocol.js +1 -1
  105. package/dist/components/editor-companion.js +1 -1
  106. package/dist/components/emotion-hash.esm.js +1 -0
  107. package/dist/components/ibcs-chart-structure2.js +1 -1
  108. package/dist/components/ibcs-chart-time2.js +1 -1
  109. package/dist/components/ibcs-table2.js +1 -1
  110. package/dist/components/ibcs-title2.js +1 -1
  111. package/dist/components/ibcsRuleSet.js +1 -1
  112. package/dist/components/layoutObserver.js +1 -0
  113. package/dist/components/scaling.js +1 -1
  114. package/dist/components/validate.js +1 -1
  115. package/dist/components/withHasError.js +1 -1
  116. package/dist/components/withInheritedProps.js +1 -0
  117. package/dist/components/withStyled.js +1 -1
  118. package/dist/esm/bn-asset_21.entry.js +23973 -0
  119. package/dist/esm/bn-grid.entry.js +4 -11
  120. package/dist/esm/bn-image.entry.js +4 -11
  121. package/dist/esm/bn-internationalization.entry.js +4 -6
  122. package/dist/esm/bn-template-engine.js +3 -3
  123. package/dist/esm/bn-template.entry.js +3 -5
  124. package/dist/esm/bn-text.entry.js +6 -15
  125. package/dist/esm/bn-tree.entry.js +9 -12
  126. package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-D-o_UZ33.js} +6 -2
  127. package/dist/esm/editor-companion.entry.js +3 -3
  128. package/dist/esm/{index-B27Ax6P_.js → index-B_d-jp99.js} +2 -2
  129. package/dist/esm/loader.js +3 -3
  130. package/dist/esm/scaling-BzbiBnuN.js +324 -0
  131. package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-AFk2wwHT.js} +2 -2
  132. package/dist/esm/{withHasError-C48fTE2k.js → withHasError-DW_vMDUp.js} +106 -2
  133. package/dist/{cjs/luxon-8hyy5YD7.js → esm/withStyled-5RqF8WBL.js} +1371 -2
  134. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +163 -110
  135. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +4 -3
  136. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  137. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
  138. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  139. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +29 -12
  140. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +4 -3
  141. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
  142. package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
  143. package/dist/types/components/bn-datasource/bn-datasource.d.ts +48 -5
  144. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +153 -0
  145. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +160 -1
  146. package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +37 -0
  147. package/dist/types/components/bn-table/bn-table.d.ts +32 -17
  148. package/dist/types/components/bn-table/ibcs-table.d.ts +20 -0
  149. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
  150. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +1 -0
  151. package/dist/types/components/bn-title/bn-title.d.ts +0 -1
  152. package/dist/types/components.d.ts +438 -461
  153. package/dist/types/context/context-protocol.d.ts +2 -1
  154. package/dist/types/stores/componentStyles.d.ts +2 -0
  155. package/dist/types/stores/createScopedStores.d.ts +1 -0
  156. package/dist/types/utils/constants.d.ts +23 -5
  157. package/dist/types/utils/contentDecoder.d.ts +12 -0
  158. package/dist/types/utils/layoutObserver.d.ts +27 -0
  159. package/dist/types/utils/parentDimensions.d.ts +7 -2
  160. package/dist/types/utils/validate.d.ts +1 -0
  161. package/dist/types/utils/withInheritedProps.d.ts +38 -0
  162. package/dist/types/utils/withScalingGroup.d.ts +14 -0
  163. package/package.json +4 -4
  164. package/readme.md +2 -3
  165. package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
  166. package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  167. package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
  168. package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
  169. package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
  170. package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
  171. package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
  172. package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
  173. package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
  174. package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
  175. package/dist/bn-template-engine/assets/icons/pin.png +0 -0
  176. package/dist/bn-template-engine/p--TeDldm8.js +0 -1
  177. package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
  178. package/dist/bn-template-engine/p-1jFf17Vj.js +0 -1
  179. package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
  180. package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
  181. package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
  182. package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
  183. package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
  184. package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
  185. package/dist/bn-template-engine/p-65f8962a.entry.js +0 -1
  186. package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
  187. package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
  188. package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
  189. package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
  190. package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
  191. package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
  192. package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
  193. package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
  194. package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
  195. package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
  196. package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
  197. package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
  198. package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
  199. package/dist/bn-template-engine/p-BFTU3MAI.js +0 -1
  200. package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
  201. package/dist/bn-template-engine/p-BYmPQYxx.js +0 -1
  202. package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
  203. package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
  204. package/dist/bn-template-engine/p-CY1RzLjU.js +0 -1
  205. package/dist/bn-template-engine/p-CfWnag33.js +0 -1
  206. package/dist/bn-template-engine/p-CnI71OA9.js +0 -1
  207. package/dist/bn-template-engine/p-Cp4MVxCu.js +0 -1
  208. package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
  209. package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
  210. package/dist/bn-template-engine/p-_LBTIfNN.js +0 -1
  211. package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
  212. package/dist/bn-template-engine/p-ad94cf63.entry.js +0 -1
  213. package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
  214. package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
  215. package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
  216. package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
  217. package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
  218. package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
  219. package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
  220. package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
  221. package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
  222. package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
  223. package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
  224. package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
  225. package/dist/cjs/DataFormatDigits-DmTbhF8q.js +0 -142
  226. package/dist/cjs/DateStringFactory-Dn0aRj2Y.js +0 -453
  227. package/dist/cjs/Order-B4NIqQWe.js +0 -129
  228. package/dist/cjs/SVGVariancesStyleGroup-Czizhngt.js +0 -7973
  229. package/dist/cjs/StringAdapter-0EbYMkR0.js +0 -136
  230. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
  231. package/dist/cjs/alasql.min-C_nHTuEQ.js +0 -306
  232. package/dist/cjs/bn-asset.cjs.entry.js +0 -42
  233. package/dist/cjs/bn-body_3.cjs.entry.js +0 -413
  234. package/dist/cjs/bn-card.cjs.entry.js +0 -37
  235. package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -705
  236. package/dist/cjs/bn-chart-time.cjs.entry.js +0 -987
  237. package/dist/cjs/bn-component-style.cjs.entry.js +0 -44
  238. package/dist/cjs/bn-context_5.cjs.entry.js +0 -3380
  239. package/dist/cjs/bn-dataset.cjs.entry.js +0 -278
  240. package/dist/cjs/bn-layout-card.cjs.entry.js +0 -128
  241. package/dist/cjs/bn-layout-page.cjs.entry.js +0 -142
  242. package/dist/cjs/bn-map.cjs.entry.js +0 -425
  243. package/dist/cjs/bn-message.cjs.entry.js +0 -52
  244. package/dist/cjs/componentRegister-C17UFNPh.js +0 -72
  245. package/dist/cjs/constants-DHqQXSSd.js +0 -158
  246. package/dist/cjs/formatter-DIJL_crx.js +0 -215
  247. package/dist/cjs/ibcs-chart-structure.cjs.entry.js +0 -2906
  248. package/dist/cjs/ibcs-chart-time.cjs.entry.js +0 -4140
  249. package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
  250. package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
  251. package/dist/cjs/scaling-B23eOtsC.js +0 -67
  252. package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
  253. package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
  254. package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
  255. package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
  256. package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
  257. package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
  258. package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
  259. package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
  260. package/dist/cjs/withComponentStyle-C6KHnZHt.js +0 -128
  261. package/dist/cjs/withDataset-ZdN-RRTx.js +0 -146
  262. package/dist/cjs/withStyled-Bf-stJTR.js +0 -567
  263. package/dist/cjs/withTranslation-Cz0M5maV.js +0 -77
  264. package/dist/collection/components/bn-map/bn-map.css +0 -4
  265. package/dist/collection/components/bn-map/bn-map.js +0 -725
  266. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
  267. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  268. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
  269. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
  270. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
  271. package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
  272. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
  273. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
  274. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
  275. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
  276. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
  277. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
  278. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
  279. package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
  280. package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
  281. package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
  282. package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
  283. package/dist/collection/test-runner/test-runner-card.js +0 -36
  284. package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
  285. package/dist/collection/test-runner/test-runner-chart.js +0 -364
  286. package/dist/collection/test-runner/test-runner-map.js +0 -1901
  287. package/dist/collection/test-runner/test-runner-table.js +0 -469
  288. package/dist/collection/test-runner/test-runner-time.js +0 -399
  289. package/dist/collection/test-runner/test-runner-title.js +0 -108
  290. package/dist/components/bn-map.d.ts +0 -11
  291. package/dist/components/bn-map.js +0 -1
  292. package/dist/components/componentRegister.js +0 -1
  293. package/dist/components/ibcs-map.d.ts +0 -11
  294. package/dist/components/ibcs-map.js +0 -1
  295. package/dist/components/ibcs-map2.js +0 -1
  296. package/dist/components/test-runner-card.d.ts +0 -11
  297. package/dist/components/test-runner-card.js +0 -1
  298. package/dist/components/test-runner-chart-time.d.ts +0 -11
  299. package/dist/components/test-runner-chart-time.js +0 -1
  300. package/dist/components/test-runner-chart.d.ts +0 -11
  301. package/dist/components/test-runner-chart.js +0 -1
  302. package/dist/components/test-runner-map.d.ts +0 -11
  303. package/dist/components/test-runner-map.js +0 -1
  304. package/dist/components/test-runner-table.d.ts +0 -11
  305. package/dist/components/test-runner-table.js +0 -1
  306. package/dist/components/test-runner-time.js +0 -1
  307. package/dist/components/test-runner-title.d.ts +0 -11
  308. package/dist/components/test-runner-title.js +0 -1
  309. package/dist/components/withDataset.js +0 -1
  310. package/dist/esm/DataFormatDigits-Dt6gpIiZ.js +0 -137
  311. package/dist/esm/DateStringFactory-_Qiv0IvF.js +0 -451
  312. package/dist/esm/Order-B4fpLe_f.js +0 -125
  313. package/dist/esm/SVGVariancesStyleGroup-DlWgvpzs.js +0 -7961
  314. package/dist/esm/StringAdapter-BLvo1Krl.js +0 -133
  315. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
  316. package/dist/esm/alasql.min-CWu4NkIt.js +0 -304
  317. package/dist/esm/bn-asset.entry.js +0 -40
  318. package/dist/esm/bn-body_3.entry.js +0 -409
  319. package/dist/esm/bn-card.entry.js +0 -35
  320. package/dist/esm/bn-chart-structure.entry.js +0 -703
  321. package/dist/esm/bn-chart-time.entry.js +0 -985
  322. package/dist/esm/bn-component-style.entry.js +0 -42
  323. package/dist/esm/bn-context_5.entry.js +0 -3374
  324. package/dist/esm/bn-dataset.entry.js +0 -276
  325. package/dist/esm/bn-layout-card.entry.js +0 -126
  326. package/dist/esm/bn-layout-page.entry.js +0 -140
  327. package/dist/esm/bn-map.entry.js +0 -423
  328. package/dist/esm/bn-message.entry.js +0 -50
  329. package/dist/esm/componentRegister-BtVfu16B.js +0 -72
  330. package/dist/esm/constants-kMyLevYy.js +0 -158
  331. package/dist/esm/formatter-DTMEZ6d8.js +0 -211
  332. package/dist/esm/ibcs-chart-structure.entry.js +0 -2904
  333. package/dist/esm/ibcs-chart-time.entry.js +0 -4138
  334. package/dist/esm/ibcs-map.entry.js +0 -1073
  335. package/dist/esm/ibcs-title.entry.js +0 -350
  336. package/dist/esm/scaling-BBd0ZVLL.js +0 -64
  337. package/dist/esm/test-runner-card.entry.js +0 -25
  338. package/dist/esm/test-runner-chart-time.entry.js +0 -228
  339. package/dist/esm/test-runner-chart.entry.js +0 -324
  340. package/dist/esm/test-runner-map.entry.js +0 -1860
  341. package/dist/esm/test-runner-table.entry.js +0 -475
  342. package/dist/esm/test-runner-time.entry.js +0 -379
  343. package/dist/esm/test-runner-title.entry.js +0 -113
  344. package/dist/esm/withComponentStatus-elELReKt.js +0 -37
  345. package/dist/esm/withComponentStyle-NaxfakAG.js +0 -126
  346. package/dist/esm/withDataset-BT2VQCsG.js +0 -144
  347. package/dist/esm/withStyled-CpUTv74m.js +0 -539
  348. package/dist/esm/withTranslation-Do4GhleK.js +0 -75
  349. package/dist/types/components/bn-map/bn-map.d.ts +0 -122
  350. package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
  351. package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
  352. package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
  353. package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
  354. package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
  355. package/dist/types/test-runner/test-runner-card.d.ts +0 -3
  356. package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
  357. package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
  358. package/dist/types/test-runner/test-runner-map.d.ts +0 -3
  359. package/dist/types/test-runner/test-runner-table.d.ts +0 -3
  360. package/dist/types/test-runner/test-runner-time.d.ts +0 -3
  361. package/dist/types/test-runner/test-runner-title.d.ts +0 -3
@@ -1,15 +1,18 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { forceUpdate, h, Host, writeTask } from "@stencil/core";
2
2
  import { isBlankInput, isValidBoolean, isValidDirection, isValidInteger, isValidLevel, isValidMeasureScale, isValidNumber, validateOrderList, validateScenarioList, validateStackConfig, validateVariancesList, } from "../../utils/validate";
3
3
  import withDataset from "../../utils/withDataset";
4
4
  import withComponentStatus from "../../utils/withComponentStatus";
5
5
  import withTranslation from "../../utils/withTranslation";
6
+ import withScalingGroup from "../../utils/withScalingGroup";
6
7
  import { globalLabelKeys } from "../../stores/internationalization";
7
8
  import { withStyled } from "../../utils/styled/withStyled";
8
9
  import withComponentStyle from "../../utils/withComponentStyle";
9
10
  import withHasError from "../../utils/withHasError";
11
+ import withInheritedProps, { isInheritedValue } from "../../utils/withInheritedProps";
10
12
  import { getParentDimensions } from "../../utils/parentDimensions";
11
13
  import { parseScaling } from "../../utils/scaling";
12
- import { AggregationLevel, StackMode, StackOrder } from "../../utils/constants";
14
+ import { observeParentResize } from "../../utils/layoutObserver";
15
+ import { AggregationLevel, StackBy, StackMode, StackOrder } from "../../utils/constants";
13
16
  import { OrderColumn, OrderDirection } from "../../utils/model/Order";
14
17
  /**
15
18
  * SVG structure (categorical) bar chart following IBCS standards.
@@ -23,8 +26,12 @@ import { OrderColumn, OrderDirection } from "../../utils/model/Order";
23
26
  */
24
27
  export class Chart {
25
28
  validateScenario(newValue) {
26
- const invalidScenarios = validateScenarioList(newValue);
27
29
  const errId = "ERR_scenarios";
30
+ if (isInheritedValue(newValue)) {
31
+ this.errors.remove(errId);
32
+ return;
33
+ }
34
+ const invalidScenarios = validateScenarioList(newValue);
28
35
  if (invalidScenarios.length > 0) {
29
36
  this.errors.addOrReplace({
30
37
  id: errId,
@@ -38,6 +45,10 @@ export class Chart {
38
45
  }
39
46
  validateVariances(newValue) {
40
47
  const errIdVar = "ERR_variances";
48
+ if (isInheritedValue(newValue)) {
49
+ this.errors.remove(errIdVar);
50
+ return;
51
+ }
41
52
  const invalidVariances = validateVariancesList(newValue);
42
53
  if (invalidVariances.length > 0) {
43
54
  this.errors.addOrReplace({
@@ -52,7 +63,8 @@ export class Chart {
52
63
  }
53
64
  validateUnitScaling(newValue) {
54
65
  const errId = "ERR_unitScaling";
55
- if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
66
+ const isAuto = (newValue === null || newValue === void 0 ? void 0 : newValue.toString().trim().toLowerCase()) === "auto";
67
+ if (!isAuto && !isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
56
68
  this.errors.addOrReplace({
57
69
  id: errId,
58
70
  type: "warning",
@@ -65,7 +77,8 @@ export class Chart {
65
77
  }
66
78
  validatePercentageScaling(newValue) {
67
79
  const errId = "ERR_percentageScaling";
68
- if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
80
+ const isAuto = (newValue === null || newValue === void 0 ? void 0 : newValue.toString().trim().toLowerCase()) === "auto";
81
+ if (!isAuto && !isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
69
82
  this.errors.addOrReplace({
70
83
  id: errId,
71
84
  type: "warning",
@@ -90,8 +103,12 @@ export class Chart {
90
103
  }
91
104
  }
92
105
  validateOrderList(newValue) {
93
- const invalidElements = validateOrderList(newValue);
94
106
  const errId = "ERR_order";
107
+ if (isInheritedValue(newValue)) {
108
+ this.errors.remove(errId);
109
+ return;
110
+ }
111
+ const invalidElements = validateOrderList(newValue);
95
112
  if (invalidElements.length > 0) {
96
113
  this.errors.addOrReplace({
97
114
  id: errId,
@@ -105,6 +122,10 @@ export class Chart {
105
122
  }
106
123
  validateOrderDirection(newValue) {
107
124
  const errId = "ERR_orderDirection";
125
+ if (isInheritedValue(newValue)) {
126
+ this.errors.remove(errId);
127
+ return;
128
+ }
108
129
  if (!isValidDirection(newValue)) {
109
130
  this.errors.addOrReplace({
110
131
  id: errId,
@@ -203,85 +224,102 @@ export class Chart {
203
224
  this.data = [];
204
225
  this.datasetMeta = null;
205
226
  this.appliedScaleFactor = 1;
227
+ this.layoutObserver = null;
228
+ /** Last parent height seen, used to suppress ResizeObserver noise. */
229
+ this._lastScaledParentHeight = 0;
206
230
  /**
207
- * Custom chart title
231
+ * Title displayed above the chart. When empty, the title is derived
232
+ * from the variance scenario labels (if variances are configured).
233
+ *
234
+ * @example chart-title="Revenue by Category"
208
235
  */
209
236
  this.chartTitle = "";
210
237
  /**
211
238
  * AlaSQL WHERE clause fragment injected into the data query to filter
212
- * rows before rendering (e.g. `"rowGroup = 'Revenue'"`).
239
+ * rows before rendering.
240
+ *
241
+ * @example filter="rowGroup = 'Revenue'"
213
242
  */
214
243
  this.filter = "";
215
- /** set translaton mode.
216
- * <br /><br />
217
- * values:<br />
218
- * ``` all // none // meta ```
219
- */
220
244
  /**
221
- * Set the maximum number of bars for each
222
- * group. The value 0 means *no limit*
223
- * <br /><br />
224
- * rows wich where cut by the limit are cumulated as REST
245
+ * Maximum number of bars to display. Excess rows are aggregated into
246
+ * a "REST" summary bar. `0` means no limit (all rows are shown).
225
247
  *
248
+ * @default 0
249
+ * @example limit="5"
226
250
  */
227
251
  this.limit = 0;
252
+ /**
253
+ * Whether to display category labels on the left side of the chart.
254
+ *
255
+ * Values: `"true"` | `"false"`.
256
+ *
257
+ * @default "true"
258
+ * @example show-categories="false"
259
+ */
228
260
  this.showCategories = "true";
229
261
  /**
230
- * Sets the SiPrefix of the Mesaurements and converts the
231
- * original value.
232
- * <br /><br />
233
- * values: <br />
234
- * ```_ // k // M // G // T // P // E // Z // Y // m // μ // n // p // P // f // a // z // y // GREATEST // LEAST```
235
- * <br /><br />
236
- * SiPrefix overview:
237
- * ``` "Y": 1E+24,```<br />
238
- * ``` "Z": 1E+21,```<br />
239
- * ``` "E": 1E+18,```<br />
240
- * ``` "P": 1E+15,```<br />
241
- * ``` "T": 1E+12,```<br />
242
- * ``` "G": 1000000000,```<br />
243
- * ``` "M": 1000000,```<br />
244
- * ``` "k": 1000,```<br />
245
- * <br />
246
- * ``` "m": 0.001,```<br />
247
- * ``` "μ": 0.000001,```<br />
248
- * ``` "n": 0.000000001,```<br />
249
- * ``` "p": 0.000000000001,```<br />
250
- * ``` "f": 0.000000000000001,```<br />
251
- * ``` "a": 0.000000000000000001,```<br />
252
- * ``` "z": 0.000000000000000000001,```<br />
253
- * ``` "y": 0.000000000000000000000001,```<br />
254
- * <br /><br />
255
- * Special modes:
256
- * ```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />
257
- * ```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />
258
- *<br /><br />
259
- * ```_``` is the value for no SiPrefix the value is displayed as in the dataset stored.
262
+ * SI prefix applied to data values, dividing them for display
263
+ * (e.g. `"k"` divides by 1 000, showing 14 000 as "14").
264
+ *
265
+ * Common prefixes: `"k"` (×10³), `"M"` (×10⁶), `"G"` (×10⁹), `"T"` (×10¹²).
266
+ * Use `"_"` for no prefix (raw values).
267
+ *
268
+ * | Special value | Behavior |
269
+ * |---------------|--------------------------------------------------------------|
270
+ * | `"GREATEST"` | Auto-select prefix based on the largest value in the dataset |
271
+ * | `"LEAST"` | Auto-select prefix based on the smallest value |
260
272
  *
273
+ * The selected prefix is shown in the chart footer when `show-measure-scale` is enabled.
261
274
  *
275
+ * @default "greatest"
276
+ * @example measure-scale="k"
262
277
  */
263
278
  this.measureScale = "greatest";
264
279
  /**
265
- * Toggles display of measure units in table header
266
- * <br /><br />
267
- * values: <br />
268
- * ```true // false```
280
+ * Toggles display of the SI prefix and unit label in the chart footer
281
+ * (e.g. "k EUR").
282
+ *
283
+ * Values: `"true"` | `"false"`.
284
+ *
285
+ * @default "false"
286
+ * @example show-measure-scale="true"
269
287
  */
270
288
  this.showMeasureScale = "false";
271
289
  /**
272
- * measureUnit displayed in table.
290
+ * Unit label displayed alongside the SI prefix in the chart footer
291
+ * (e.g. "EUR", "USD", "pcs"). Only visible when `show-measure-scale` is `"true"`.
292
+ *
293
+ * @default ""
294
+ * @example measure-unit="EUR"
273
295
  */
274
296
  this.measureUnit = "";
275
297
  /**
276
- * Stacking configuration for the chart as a JSON string.
298
+ * Stacking configuration as a JSON string. When set, bars are drawn as
299
+ * stacked segments instead of side-by-side.
300
+ *
301
+ * **Properties:**
302
+ *
303
+ * | Key | Values | Description |
304
+ * |---------|-----------------------------------------------|----------------------------------------------------|
305
+ * | `by` | `"scenarios"` \| `"dimensions"` | **Required.** What to stack. |
306
+ * | `mode` | `"absolute"` \| `"relative"` \| `"absolute-relative"` | Stacking mode. Default: `"absolute"`. |
307
+ * | `order` | `"asc"` \| `"desc"` \| `"dataset"` | Segment sort order. Default: `"dataset"`. |
277
308
  *
278
- * When set, bars are drawn stacked (additive layers) instead of side-by-side.
309
+ * - `by: "scenarios"` — stacks the scenarios listed in the `scenarios` prop end-to-end.
310
+ * - `by: "dimensions"` — stacks by the next-lower hierarchy level derived from `level`
311
+ * (e.g. level `"rowGroup"` stacks by category). Only the first scenario is used;
312
+ * extra scenarios trigger a `WARN_stack_dimensions_scenarios` warning.
313
+ * - `mode: "relative"` — normalizes each bar to 100%, showing proportions.
314
+ * - `mode: "absolute-relative"` — absolute bars with percentage labels.
279
315
  *
280
- * @default '' (empty — no stacking)
281
- * @example stack='{"by":"scenario"}'
316
+ * Segment colors are configurable via the `stackColors` array in component styles.
317
+ *
318
+ * @default "" (no stacking)
319
+ * @example stack='{"by":"scenarios","mode":"absolute"}'
320
+ * @example stack='{"by":"dimensions","mode":"relative"}'
282
321
  */
283
322
  this.stack = "";
284
- this.scenariosArray = [""];
285
323
  this.pixelPerUnitGroupMap = new Map();
286
324
  this._autoScaleGuard = false;
287
325
  withStyled(this);
@@ -293,8 +331,15 @@ export class Chart {
293
331
  });
294
332
  this.chartTemplate = this.chartTemplate.bind(this);
295
333
  this.errors = withHasError(this);
334
+ withScalingGroup(this);
296
335
  this.componentStyle = withComponentStyle(this);
297
336
  this.t = withTranslation(this).t;
337
+ this.resolveInherited = withInheritedProps(this, [
338
+ { propName: "scenarios", ancestorAttr: "title-scenarios" },
339
+ { propName: "variances", ancestorAttr: "title-variances" },
340
+ { propName: "order", ancestorAttr: "title-order" },
341
+ { propName: "orderDirection", ancestorAttr: "title-order-direction" },
342
+ ]);
298
343
  }
299
344
  componentWillLoad() {
300
345
  this.validateScenario(this.scenarios);
@@ -311,48 +356,51 @@ export class Chart {
311
356
  this.validateScaling(this.scale);
312
357
  }
313
358
  componentDidRender() {
314
- var _a, _b;
315
359
  const { mode } = parseScaling(this.scale);
316
360
  if (mode !== "auto" && mode !== "empty") {
317
361
  this._autoScaleGuard = false;
318
- // Keep existing width-based overflow warning for non-auto modes
319
- const parent = getParentDimensions(this.element);
320
- const errId = "WARN_overflow";
321
- if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
322
- this.errors.addOrReplace({
323
- id: errId,
324
- type: "warning",
325
- message: "Chart exceeds available space and will be cut off. Check unit-scaling value.",
326
- });
327
- }
328
- else {
329
- this.errors.remove(errId);
330
- }
362
+ this.checkWidthOverflow();
331
363
  return;
332
364
  }
333
365
  if (this._autoScaleGuard) {
334
366
  this._autoScaleGuard = false;
367
+ this.checkWidthOverflow();
335
368
  return;
336
369
  }
337
370
  const host = this.element;
338
371
  const { height: parentHeight } = getParentDimensions(host);
339
- if (parentHeight <= 0)
372
+ if (parentHeight <= 0) {
373
+ this.checkWidthOverflow();
340
374
  return;
341
- // Measure at base (unscaled) font size to get true content height
375
+ }
376
+ // Record height so the ResizeObserver callback can tell
377
+ // whether the container genuinely resized or just reflowed.
378
+ this._lastScaledParentHeight = parentHeight;
342
379
  const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
343
- host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
344
- // Reading scrollHeight forces a synchronous reflow at base size
345
- const div = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".container");
346
- const unscaledHeight = (_b = div === null || div === void 0 ? void 0 : div.scrollHeight) !== null && _b !== void 0 ? _b : host.scrollHeight;
347
- if (unscaledHeight <= parentHeight + 1) {
380
+ // The chart host is display:inline-block — it sizes to its content.
381
+ // scrollHeight gives the actual rendered height at the current factor.
382
+ const currentHeight = host.scrollHeight;
383
+ const currentFactor = this.appliedScaleFactor;
384
+ // Primary check: does the content ACTUALLY fit at the current factor?
385
+ // This avoids oscillation from non-linear SVG scaling where the
386
+ // divide-by-factor estimate overshoots.
387
+ if (currentHeight <= parentHeight + 1) {
388
+ // Content fits. Don't reset to factor 1 — the content only fits
389
+ // BECAUSE of the current factor. Resetting would cause oscillation.
348
390
  this.errors.remove("AUTO_scale");
349
- if (this.appliedScaleFactor !== 1) {
350
- this._autoScaleGuard = true;
351
- this.appliedScaleFactor = 1;
352
- }
391
+ this.checkWidthOverflow();
392
+ return;
393
+ }
394
+ // Content overflows. Compute a new factor based on the ratio of
395
+ // parent to current content height, scaled by the current factor.
396
+ const computedFactor = Math.max(0.3, (currentFactor * (parentHeight - 1)) / currentHeight);
397
+ // Only apply if the change is significant (> 1% of current factor).
398
+ // SVG charts have non-linear scaling so we use a wider tolerance
399
+ // than tables to avoid oscillation from sub-pixel rounding.
400
+ if (Math.abs(computedFactor - currentFactor) < 0.01) {
401
+ this.checkWidthOverflow();
353
402
  return;
354
403
  }
355
- const computedFactor = (parentHeight - 1) / unscaledHeight;
356
404
  host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
357
405
  if (mode === "empty") {
358
406
  this.errors.addOrReplace({
@@ -364,18 +412,87 @@ export class Chart {
364
412
  else {
365
413
  this.errors.remove("AUTO_scale");
366
414
  }
367
- if (Math.abs(computedFactor - this.appliedScaleFactor) > 0.001) {
368
- this._autoScaleGuard = true;
415
+ this._autoScaleGuard = true;
416
+ writeTask(() => {
369
417
  this.appliedScaleFactor = computedFactor;
418
+ });
419
+ this.checkWidthOverflow();
420
+ }
421
+ componentDidLoad() {
422
+ // Observe the parent container for size changes so auto-scaling
423
+ // reacts to genuine container resizes (window resize, card relayout).
424
+ // Only trigger a re-render when the parent height actually changed
425
+ // compared to what auto-scaling last measured — this prevents the
426
+ // ResizeObserver's initial fire (and content-reflow noise) from
427
+ // creating an infinite auto-scale loop.
428
+ this.layoutObserver = observeParentResize(this.element, () => {
429
+ if (this._autoScaleGuard)
430
+ return;
431
+ const { height } = getParentDimensions(this.element);
432
+ // Only react to HEIGHT changes — structure chart scales by height.
433
+ // Width changes are handled separately via checkWidthOverflow.
434
+ if (height > 0 && Math.abs(height - this._lastScaledParentHeight) > 2) {
435
+ this._lastScaledParentHeight = height;
436
+ forceUpdate(this);
437
+ }
438
+ });
439
+ // Double-rAF guarantees the browser has completed at least one full
440
+ // paint cycle so all nested shadow DOM layouts are finalized.
441
+ requestAnimationFrame(() => {
442
+ requestAnimationFrame(() => {
443
+ if (this._autoScaleGuard)
444
+ return;
445
+ const { height } = getParentDimensions(this.element);
446
+ this._lastScaledParentHeight = height;
447
+ forceUpdate(this);
448
+ });
449
+ });
450
+ }
451
+ disconnectedCallback() {
452
+ var _a;
453
+ (_a = this.layoutObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
454
+ this.layoutObserver = null;
455
+ }
456
+ /**
457
+ * Emits an error when a custom unit-scaling value causes the chart to exceed its container width.
458
+ * Skipped for auto/unset unit-scaling since auto-fit handles width.
459
+ */
460
+ checkWidthOverflow() {
461
+ var _a;
462
+ const errId = "WARN_overflow";
463
+ const us = String((_a = this.unitScaling) !== null && _a !== void 0 ? _a : "")
464
+ .trim()
465
+ .toLowerCase();
466
+ if (us === "" || us === "auto") {
467
+ this.errors.remove(errId);
468
+ return;
469
+ }
470
+ const parent = getParentDimensions(this.element);
471
+ if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
472
+ this.errors.addOrReplace({
473
+ id: errId,
474
+ type: "error",
475
+ message: `Chart exceeds available width (${this.element.scrollWidth}px > ${Math.round(parent.width)}px). Reduce unit-scaling or set to "auto".`,
476
+ });
477
+ }
478
+ else {
479
+ this.errors.remove(errId);
370
480
  }
371
481
  }
372
482
  prepareDimension() {
373
483
  const parent = getParentDimensions(this.element);
374
- this.canvasWidthSegmented = parent.width / this.scenariosArray.length;
484
+ const variancesList = this.prepareVariances();
485
+ const segmentCount = 1 + variancesList.length;
486
+ this.canvasWidthSegmented = parent.width / segmentCount;
375
487
  return { width: this.canvasWidthSegmented, height: parent.height };
376
488
  }
377
489
  prepareScenarios() {
378
490
  var _a, _b, _c, _d;
491
+ const inherited = this.resolveInherited("scenarios", this.scenarios);
492
+ if (inherited !== undefined) {
493
+ this.errors.remove("AUTO_scenarios");
494
+ return inherited.split(",").map((entry) => entry.trim());
495
+ }
379
496
  const isAuto = ((_a = this.scenarios) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
380
497
  if (isBlankInput(this.scenarios) || isAuto) {
381
498
  if (((_c = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.availableScenarios) === null || _c === void 0 ? void 0 : _c.length) > 0) {
@@ -398,6 +515,10 @@ export class Chart {
398
515
  }
399
516
  prepareVariances() {
400
517
  var _a;
518
+ const inherited = this.resolveInherited("variances", this.variances);
519
+ if (inherited !== undefined) {
520
+ return inherited.split(",").map((entry) => entry.trim());
521
+ }
401
522
  if (isBlankInput(this.variances)) {
402
523
  return [];
403
524
  }
@@ -438,10 +559,25 @@ export class Chart {
438
559
  return 0;
439
560
  }
440
561
  preparePixelPerPercentage() {
562
+ var _a;
441
563
  if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
442
- return this.pixelPerUnitGroupMap.get(this.percentageScaling); // TODO(JHE): revisit '* 100' correctness when global scaling groups are implemented
564
+ return this.pixelPerUnitGroupMap.get(this.percentageScaling);
565
+ }
566
+ if (((_a = this.percentageScaling) === null || _a === void 0 ? void 0 : _a.toString().trim().toLowerCase()) === "auto") {
567
+ this.errors.remove("AUTO_percentageScaling");
568
+ return 0;
569
+ }
570
+ const numeric = Number(this.percentageScaling);
571
+ if (!isNaN(numeric) && numeric > 0) {
572
+ this.errors.remove("AUTO_percentageScaling");
573
+ return numeric * 100;
443
574
  }
444
- return Number(this.percentageScaling) * 100;
575
+ this.errors.addOrReplace({
576
+ id: "AUTO_percentageScaling",
577
+ type: "warning",
578
+ message: `percentage-scaling: not set, auto-calculated to fit available space.`,
579
+ });
580
+ return 0;
445
581
  }
446
582
  prepareLevel() {
447
583
  var _a, _b, _c;
@@ -466,11 +602,15 @@ export class Chart {
466
602
  return AggregationLevel[(_c = this.level) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
467
603
  }
468
604
  prepareOrder() {
469
- var _a, _b, _c;
470
- const isAuto = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
605
+ var _a;
606
+ const inheritedOrder = this.resolveInherited("order", this.order);
607
+ const inheritedDirection = this.resolveInherited("orderDirection", this.orderDirection);
608
+ const effectiveOrder = inheritedOrder !== null && inheritedOrder !== void 0 ? inheritedOrder : this.order;
609
+ const effectiveDirection = inheritedDirection !== null && inheritedDirection !== void 0 ? inheritedDirection : this.orderDirection;
610
+ const isAuto = (effectiveOrder === null || effectiveOrder === void 0 ? void 0 : effectiveOrder.trim().toLowerCase()) === "auto";
471
611
  let orderStr;
472
- if (isBlankInput(this.order) || isAuto) {
473
- if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedOrder) {
612
+ if (isBlankInput(effectiveOrder) || isAuto) {
613
+ if ((_a = this.datasetMeta) === null || _a === void 0 ? void 0 : _a.suggestedOrder) {
474
614
  if (!isAuto) {
475
615
  this.errors.addOrReplace({
476
616
  id: "AUTO_order",
@@ -484,20 +624,19 @@ export class Chart {
484
624
  orderStr = this.datasetMeta.suggestedOrder;
485
625
  }
486
626
  else {
487
- orderStr = this.order;
627
+ orderStr = effectiveOrder;
488
628
  }
489
629
  }
490
630
  else {
491
631
  this.errors.remove("AUTO_order");
492
- orderStr = this.order;
632
+ orderStr = effectiveOrder;
493
633
  }
494
634
  const tableOrder = {
495
635
  hierarchy: orderStr === null || orderStr === void 0 ? void 0 : orderStr.split(",").map((entry) => OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
496
- direction: OrderDirection[(_c = this.orderDirection) === null || _c === void 0 ? void 0 : _c.toUpperCase()],
636
+ direction: OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
497
637
  };
498
638
  return tableOrder;
499
639
  }
500
- // TODO(JHE): consider extracting style preparation into an adapter pattern
501
640
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
502
641
  prepareStyle() {
503
642
  const effectiveFactor = this.getEffectiveScaleFactor();
@@ -545,17 +684,37 @@ export class Chart {
545
684
  }
546
685
  prepareStackConfig() {
547
686
  if (isBlankInput(this.stack)) {
687
+ this.errors.remove("WARN_stack_dimensions_scenarios");
548
688
  return null;
549
689
  }
550
690
  try {
551
691
  const parsed = JSON.parse(this.stack);
692
+ const by = parsed.by;
693
+ const errId = "WARN_stack_dimensions_scenarios";
694
+ if (by === StackBy.DIMENSIONS) {
695
+ const scenarios = this.prepareScenarios();
696
+ if (scenarios.length > 1) {
697
+ this.errors.addOrReplace({
698
+ id: errId,
699
+ type: "warning",
700
+ message: `stack by dimensions: only the first scenario "${scenarios[0]}" is used, the rest (${scenarios.slice(1).join(", ")}) are discarded.`,
701
+ });
702
+ }
703
+ else {
704
+ this.errors.remove(errId);
705
+ }
706
+ }
707
+ else {
708
+ this.errors.remove(errId);
709
+ }
552
710
  return {
553
- by: parsed.by,
711
+ by,
554
712
  mode: parsed.mode || StackMode.ABSOLUTE,
555
713
  order: parsed.order || StackOrder.DATASET,
556
714
  };
557
715
  }
558
716
  catch (_a) {
717
+ this.errors.remove("WARN_stack_dimensions_scenarios");
559
718
  return null;
560
719
  }
561
720
  }
@@ -628,7 +787,11 @@ export class Chart {
628
787
  const effectiveFactor = this.getEffectiveScaleFactor();
629
788
  const ppu = this.preparePixelPerUnit();
630
789
  const ppp = this.preparePixelPerPercentage();
631
- return (h("ibcs-chart-structure", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: this.prepareScenarios(), variances: [localScenarioString], hideCategories: this.prepareHideCategories(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), styles: this.prepareStyle(), i18n: this.prepareI18n(), order: this.prepareOrder(), level: this.prepareLevel(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(idx), stackConfig: this.prepareStackConfig(), parentDimensions: this.prepareDimension() }));
790
+ const stackConfig = this.prepareStackConfig();
791
+ const scenarios = this.prepareScenarios();
792
+ // Dimension stacking uses only the first scenario
793
+ const effectiveScenarios = (stackConfig === null || stackConfig === void 0 ? void 0 : stackConfig.by) === StackBy.DIMENSIONS ? scenarios.slice(0, 1) : scenarios;
794
+ return (h("ibcs-chart-structure", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: effectiveScenarios, variances: [localScenarioString], hideCategories: this.prepareHideCategories(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), styles: this.prepareStyle(), i18n: this.prepareI18n(), order: this.prepareOrder(), level: this.prepareLevel(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(idx), stackConfig: stackConfig, parentDimensions: this.prepareDimension() }));
632
795
  }
633
796
  getEffectiveScaleFactor() {
634
797
  const { mode, factor } = parseScaling(this.scale);
@@ -658,7 +821,7 @@ export class Chart {
658
821
  scenariosArray = [...scenariosArray, ...variancesArray];
659
822
  }
660
823
  const fontStyles = this.getFontStyles();
661
- return (h(Host, { key: '292a75492d9ba0f6ae65e25aa9da26bc094ed69d', style: fontStyles }, h("div", { key: '97e10ab499494b6fb71c628cdab049b077e62c44', class: "container" }, scenariosArray.map(this.chartTemplate))));
824
+ return (h(Host, { key: '6e3c0b035ad3290f3b8ceb8ca7dc931ea30ae910', style: fontStyles }, h("div", { key: '89c5625eabe1b87648fba55f6642d7af0231449d', class: "container" }, scenariosArray.map(this.chartTemplate))));
662
825
  }
663
826
  static get is() { return "bn-chart-structure"; }
664
827
  static get encapsulation() { return "shadow"; }
@@ -685,8 +848,11 @@ export class Chart {
685
848
  "required": false,
686
849
  "optional": false,
687
850
  "docs": {
688
- "tags": [],
689
- "text": "Custom chart title"
851
+ "tags": [{
852
+ "name": "example",
853
+ "text": "chart-title=\"Revenue by Category\""
854
+ }],
855
+ "text": "Title displayed above the chart. When empty, the title is derived\nfrom the variance scenario labels (if variances are configured)."
690
856
  },
691
857
  "getter": false,
692
858
  "setter": false,
@@ -705,8 +871,11 @@ export class Chart {
705
871
  "required": false,
706
872
  "optional": false,
707
873
  "docs": {
708
- "tags": [],
709
- "text": "AlaSQL WHERE clause fragment injected into the data query to filter\nrows before rendering (e.g. `\"rowGroup = 'Revenue'\"`)."
874
+ "tags": [{
875
+ "name": "example",
876
+ "text": "filter=\"rowGroup = 'Revenue'\""
877
+ }],
878
+ "text": "AlaSQL WHERE clause fragment injected into the data query to filter\nrows before rendering."
710
879
  },
711
880
  "getter": false,
712
881
  "setter": false,
@@ -725,8 +894,11 @@ export class Chart {
725
894
  "required": true,
726
895
  "optional": false,
727
896
  "docs": {
728
- "tags": [],
729
- "text": "List of Scenarios Map.\n<br /> <br />\nper chart there are up to 4 different scenarios supported.\nThe first 4 scenarios in the list are used, the rest ignored.\n\n<br /> <br />\n values:<br /> ```ac // fc // pp // pl [1-4] // auto```\n example:<br /> ```ac1,ac2,ac3,ac4```\n<br /> <br />\n When set to ```auto```, scenarios are detected from the dataset silently.\n When left blank, scenarios are detected from the dataset with a warning."
897
+ "tags": [{
898
+ "name": "example",
899
+ "text": "scenarios=\"ac1,pp1,pl1\""
900
+ }],
901
+ "text": "Comma-separated list of scenario columns to display as bars.\nUp to 4 scenarios are supported; additional values are ignored.\n\nValid scenario names: `ac1`\u2013`ac4`, `fc1`\u2013`fc4`, `pp1`\u2013`pp4`, `pl1`\u2013`pl4`.\n\n| Value | Behavior |\n|---------------|-------------------------------------------------------------|\n| `\"ac1,fc1\"` | Show the listed scenarios |\n| `\"auto\"` | Auto-detect from dataset metadata (no warning) |\n| not set / `\"\"` | Auto-detect from dataset metadata (emits `AUTO_scenarios` warning) |"
730
902
  },
731
903
  "getter": false,
732
904
  "setter": false,
@@ -744,8 +916,14 @@ export class Chart {
744
916
  "required": true,
745
917
  "optional": false,
746
918
  "docs": {
747
- "tags": [],
748
- "text": "List of Variance Map.\n<br /> <br />\n Variance chart can be added by seperating the scenarios\n of each chart with ```;```<br />\n The additonal variances which\n are calculated form the given scenarios.\n the scenarios used in the variances have also\n be defined in the *scenarios* property.\n<br /> <br />\n the variance is defiend as (Scenario A - ScenarioB)\n neu. neg and pos post fix defines which value is *good*\n a negative or a positive value.\n<br /> <br />\n if empty variance charts are hidden\n<br /> <br />\n each variance creates a chart\n<br /> <br />\n pattern:<br /> ```d<scenarioB>_<scenarioA>_[pos/neg/neu]```\n\n example: <br />```'dpp1_ac1_neg,dfc1_ac1_neg'```"
919
+ "tags": [{
920
+ "name": "example",
921
+ "text": "variances=\"dpp1_ac1_neg,dfc1_ac1_neg\""
922
+ }, {
923
+ "name": "example",
924
+ "text": "variances=\"drac1_pl1_pos\""
925
+ }],
926
+ "text": "Comma-separated list of variance definitions. Each variance adds\na separate sub-chart next to the main bar chart.\n\n**Pattern:** `d<base>_<comparison>_<sentiment>` (absolute)\nor `dr<base>_<comparison>_<sentiment>` (relative / percentage).\n\n- `base` / `comparison`: scenario names that must also appear in `scenarios`.\n- `sentiment`: `pos` (positive is good), `neg` (negative is good), `neu` (neutral).\n\nWhen empty, no variance charts are shown."
749
927
  },
750
928
  "getter": false,
751
929
  "setter": false,
@@ -763,8 +941,17 @@ export class Chart {
763
941
  "required": true,
764
942
  "optional": false,
765
943
  "docs": {
766
- "tags": [],
767
- "text": "Name of the 'scaling-group' which the chart uses\nscaling groups are maintained globally\n<br /> <br />\nalternatively a number which represent the\npixel per measure unit."
944
+ "tags": [{
945
+ "name": "example",
946
+ "text": "unit-scaling=\"auto\""
947
+ }, {
948
+ "name": "example",
949
+ "text": "unit-scaling=\"0.05\""
950
+ }, {
951
+ "name": "example",
952
+ "text": "unit-scaling=\"revenue-scale\""
953
+ }],
954
+ "text": "Controls horizontal bar scaling (pixels per data unit).\n\n| Value | Behavior |\n|----------------|-----------------------------------------------------------------|\n| `\"auto\"` | Auto-fit bars to fill the available container width (no warning) |\n| not set / `\"\"` | Same as auto, but emits `AUTO_unitScaling` warning |\n| `\"0.03\"`, `1` | Explicit pixels-per-unit value; bars scale proportionally |\n| group name | References a `<bn-scaling-group>` for synchronized scaling |\n\nWhen using a custom value that causes the chart to exceed its container,\na `WARN_overflow` error is emitted."
768
955
  },
769
956
  "getter": false,
770
957
  "setter": false,
@@ -782,8 +969,14 @@ export class Chart {
782
969
  "required": true,
783
970
  "optional": false,
784
971
  "docs": {
785
- "tags": [],
786
- "text": "Name of the 'scaling-group' which the chart uses\nscaling groups are maintained globally\n<br /> <br />\nalternatively a number which represent the\npixel per percentage."
972
+ "tags": [{
973
+ "name": "example",
974
+ "text": "percentage-scaling=\"50\""
975
+ }, {
976
+ "name": "example",
977
+ "text": "percentage-scaling=\"pct-scale\""
978
+ }],
979
+ "text": "Controls scaling of relative variance bars (pixels per percentage point).\n\n| Value | Behavior |\n|----------------|---------------------------------------------------------------|\n| `\"auto\"` | Auto-fit to available width |\n| not set / `\"\"` | Same as auto with warning |\n| `\"50\"`, `1.5` | Explicit pixels-per-percentage-point value |\n| group name | References a `<bn-scaling-group>` for synchronized scaling |"
787
980
  },
788
981
  "getter": false,
789
982
  "setter": false,
@@ -801,8 +994,11 @@ export class Chart {
801
994
  "required": true,
802
995
  "optional": false,
803
996
  "docs": {
804
- "tags": [],
805
- "text": "Determines level on which the chart is aggregated on.\n<br /> <br />\n\nvalues:<br/>\n``` rowcategory // category // subcategory // auto```\n<br /> <br />\n When set to ```auto```, level is detected from the dataset silently.\n When left blank, level is detected from the dataset with a warning."
997
+ "tags": [{
998
+ "name": "example",
999
+ "text": "level=\"category\""
1000
+ }],
1001
+ "text": "Aggregation level that determines which hierarchy dimension each bar represents.\n\n| Value | Bars represent |\n|--------------------|---------------------------|\n| `\"rowGroup\"` | Row groups |\n| `\"rowGroupIndex\"` | Row groups (dataset order)|\n| `\"category\"` | Categories |\n| `\"categoryIndex\"` | Categories (dataset order)|\n| `\"subCategory\"` | Sub-categories |\n| `\"subCategoryIndex\"` | Sub-categories (dataset order)|\n| `\"auto\"` | Auto-detect from dataset metadata (no warning) |\n| not set / `\"\"` | Auto-detect with `AUTO_level` warning |\n\nIndex variants preserve the original dataset order instead of sorting alphabetically.\nWhen `stack.by` is `\"dimensions\"`, the chart automatically stacks by the next-lower\nlevel (e.g. level `\"rowGroup\"` stacks by category)."
806
1002
  },
807
1003
  "getter": false,
808
1004
  "setter": false,
@@ -820,8 +1016,11 @@ export class Chart {
820
1016
  "required": true,
821
1017
  "optional": false,
822
1018
  "docs": {
823
- "tags": [],
824
- "text": "List of the primary scenarios on which the order direction are applied valid scenarios are\nIf order is set to a scenario it has also exists in scenariolist\n<br /><br />\nvalues:<br />\n``` category // categoryindex // rowgroup // rowgroup // rowgroupindex // ac[1-4] // fc[1-4] // py[1-4] // pl[1-4] // auto```\n<br /><br />\nWhen set to ```auto```, order is detected from the dataset silently.\nWhen left blank, order is detected from the dataset with a warning."
1019
+ "tags": [{
1020
+ "name": "example",
1021
+ "text": "order=\"ac1\""
1022
+ }],
1023
+ "text": "Comma-separated list of columns that define the sort order of bars.\nWhen ordering by a scenario column, that scenario must also be listed in `scenarios`.\n\nValid values: `category`, `categoryIndex`, `rowGroup`, `rowGroupIndex`,\n`subCategory`, `subCategoryIndex`, `ac1`\u2013`ac4`, `fc1`\u2013`fc4`, `pp1`\u2013`pp4`, `pl1`\u2013`pl4`.\n\n| Value | Behavior |\n|----------------|-----------------------------------------------------|\n| `\"ac1\"` | Sort bars by the ac1 scenario values |\n| `\"category\"` | Sort bars alphabetically by category name |\n| `\"auto\"` | Auto-detect from dataset metadata (no warning) |\n| not set / `\"\"` | Auto-detect with `AUTO_order` warning |"
825
1024
  },
826
1025
  "getter": false,
827
1026
  "setter": false,
@@ -839,8 +1038,14 @@ export class Chart {
839
1038
  "required": true,
840
1039
  "optional": false,
841
1040
  "docs": {
842
- "tags": [],
843
- "text": "set sorting order direction\n<br /><br />\nvalues:<br />\n```asc // desc```"
1041
+ "tags": [{
1042
+ "name": "default",
1043
+ "text": "\"asc\""
1044
+ }, {
1045
+ "name": "example",
1046
+ "text": "order-direction=\"desc\""
1047
+ }],
1048
+ "text": "Sort direction applied to the columns specified in `order`.\n\nValues: `\"asc\"` (ascending) | `\"desc\"` (descending)."
844
1049
  },
845
1050
  "getter": false,
846
1051
  "setter": false,
@@ -858,8 +1063,14 @@ export class Chart {
858
1063
  "required": false,
859
1064
  "optional": false,
860
1065
  "docs": {
861
- "tags": [],
862
- "text": "Set the maximum number of bars for each\ngroup. The value 0 means *no limit*\n<br /><br />\nrows wich where cut by the limit are cumulated as REST"
1066
+ "tags": [{
1067
+ "name": "default",
1068
+ "text": "0"
1069
+ }, {
1070
+ "name": "example",
1071
+ "text": "limit=\"5\""
1072
+ }],
1073
+ "text": "Maximum number of bars to display. Excess rows are aggregated into\na \"REST\" summary bar. `0` means no limit (all rows are shown)."
863
1074
  },
864
1075
  "getter": false,
865
1076
  "setter": false,
@@ -878,8 +1089,14 @@ export class Chart {
878
1089
  "required": false,
879
1090
  "optional": false,
880
1091
  "docs": {
881
- "tags": [],
882
- "text": ""
1092
+ "tags": [{
1093
+ "name": "default",
1094
+ "text": "\"true\""
1095
+ }, {
1096
+ "name": "example",
1097
+ "text": "show-categories=\"false\""
1098
+ }],
1099
+ "text": "Whether to display category labels on the left side of the chart.\n\nValues: `\"true\"` | `\"false\"`."
883
1100
  },
884
1101
  "getter": false,
885
1102
  "setter": false,
@@ -898,8 +1115,14 @@ export class Chart {
898
1115
  "required": false,
899
1116
  "optional": false,
900
1117
  "docs": {
901
- "tags": [],
902
- "text": "Sets the SiPrefix of the Mesaurements and converts the\noriginal value.\n<br /><br />\nvalues: <br />\n```_ // k // M // G // T // P // E // Z // Y // m // \u03BC // n // p // P // f // a // z // y // GREATEST // LEAST```\n<br /><br />\nSiPrefix overview:\n``` \"Y\": 1E+24,```<br />\n``` \"Z\": 1E+21,```<br />\n``` \"E\": 1E+18,```<br />\n``` \"P\": 1E+15,```<br />\n``` \"T\": 1E+12,```<br />\n``` \"G\": 1000000000,```<br />\n``` \"M\": 1000000,```<br />\n``` \"k\": 1000,```<br />\n<br />\n``` \"m\": 0.001,```<br />\n``` \"\u03BC\": 0.000001,```<br />\n``` \"n\": 0.000000001,```<br />\n``` \"p\": 0.000000000001,```<br />\n``` \"f\": 0.000000000000001,```<br />\n``` \"a\": 0.000000000000000001,```<br />\n``` \"z\": 0.000000000000000000001,```<br />\n``` \"y\": 0.000000000000000000000001,```<br />\n<br /><br />\nSpecial modes:\n```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />\n```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />\n<br /><br />\n```_``` is the value for no SiPrefix the value is displayed as in the dataset stored."
1118
+ "tags": [{
1119
+ "name": "default",
1120
+ "text": "\"greatest\""
1121
+ }, {
1122
+ "name": "example",
1123
+ "text": "measure-scale=\"k\""
1124
+ }],
1125
+ "text": "SI prefix applied to data values, dividing them for display\n(e.g. `\"k\"` divides by 1 000, showing 14 000 as \"14\").\n\nCommon prefixes: `\"k\"` (\u00D710\u00B3), `\"M\"` (\u00D710\u2076), `\"G\"` (\u00D710\u2079), `\"T\"` (\u00D710\u00B9\u00B2).\nUse `\"_\"` for no prefix (raw values).\n\n| Special value | Behavior |\n|---------------|--------------------------------------------------------------|\n| `\"GREATEST\"` | Auto-select prefix based on the largest value in the dataset |\n| `\"LEAST\"` | Auto-select prefix based on the smallest value |\n\nThe selected prefix is shown in the chart footer when `show-measure-scale` is enabled."
903
1126
  },
904
1127
  "getter": false,
905
1128
  "setter": false,
@@ -918,8 +1141,14 @@ export class Chart {
918
1141
  "required": false,
919
1142
  "optional": false,
920
1143
  "docs": {
921
- "tags": [],
922
- "text": "Toggles display of measure units in table header\n<br /><br />\nvalues: <br />\n```true // false```"
1144
+ "tags": [{
1145
+ "name": "default",
1146
+ "text": "\"false\""
1147
+ }, {
1148
+ "name": "example",
1149
+ "text": "show-measure-scale=\"true\""
1150
+ }],
1151
+ "text": "Toggles display of the SI prefix and unit label in the chart footer\n(e.g. \"k EUR\").\n\nValues: `\"true\"` | `\"false\"`."
923
1152
  },
924
1153
  "getter": false,
925
1154
  "setter": false,
@@ -938,8 +1167,14 @@ export class Chart {
938
1167
  "required": false,
939
1168
  "optional": false,
940
1169
  "docs": {
941
- "tags": [],
942
- "text": "measureUnit displayed in table."
1170
+ "tags": [{
1171
+ "name": "default",
1172
+ "text": "\"\""
1173
+ }, {
1174
+ "name": "example",
1175
+ "text": "measure-unit=\"EUR\""
1176
+ }],
1177
+ "text": "Unit label displayed alongside the SI prefix in the chart footer\n(e.g. \"EUR\", \"USD\", \"pcs\"). Only visible when `show-measure-scale` is `\"true\"`."
943
1178
  },
944
1179
  "getter": false,
945
1180
  "setter": false,
@@ -960,12 +1195,15 @@ export class Chart {
960
1195
  "docs": {
961
1196
  "tags": [{
962
1197
  "name": "default",
963
- "text": "'' (empty \u2014 no stacking)"
1198
+ "text": "\"\" (no stacking)"
1199
+ }, {
1200
+ "name": "example",
1201
+ "text": "stack='{\"by\":\"scenarios\",\"mode\":\"absolute\"}'"
964
1202
  }, {
965
1203
  "name": "example",
966
- "text": "stack='{\"by\":\"scenario\"}'"
1204
+ "text": "stack='{\"by\":\"dimensions\",\"mode\":\"relative\"}'"
967
1205
  }],
968
- "text": "Stacking configuration for the chart as a JSON string.\n\nWhen set, bars are drawn stacked (additive layers) instead of side-by-side."
1206
+ "text": "Stacking configuration as a JSON string. When set, bars are drawn as\nstacked segments instead of side-by-side.\n\n**Properties:**\n\n| Key | Values | Description |\n|---------|-----------------------------------------------|----------------------------------------------------|\n| `by` | `\"scenarios\"` \\| `\"dimensions\"` | **Required.** What to stack. |\n| `mode` | `\"absolute\"` \\| `\"relative\"` \\| `\"absolute-relative\"` | Stacking mode. Default: `\"absolute\"`. |\n| `order` | `\"asc\"` \\| `\"desc\"` \\| `\"dataset\"` | Segment sort order. Default: `\"dataset\"`. |\n\n- `by: \"scenarios\"` \u2014 stacks the scenarios listed in the `scenarios` prop end-to-end.\n- `by: \"dimensions\"` \u2014 stacks by the next-lower hierarchy level derived from `level`\n (e.g. level `\"rowGroup\"` stacks by category). Only the first scenario is used;\n extra scenarios trigger a `WARN_stack_dimensions_scenarios` warning.\n- `mode: \"relative\"` \u2014 normalizes each bar to 100%, showing proportions.\n- `mode: \"absolute-relative\"` \u2014 absolute bars with percentage labels.\n\nSegment colors are configurable via the `stackColors` array in component styles."
969
1207
  },
970
1208
  "getter": false,
971
1209
  "setter": false,