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

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 (360) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-14318b0d.entry.js +1 -0
  3. package/dist/bn-template-engine/{p-c9f050bf.entry.js → p-2133e02b.entry.js} +1 -1
  4. package/dist/bn-template-engine/p-6b469808.entry.js +1 -0
  5. package/dist/bn-template-engine/p-7HSTE79g.js +1 -0
  6. package/dist/bn-template-engine/p-9b1288df.entry.js +1 -0
  7. package/dist/bn-template-engine/p-B4JfKvVT.js +1 -0
  8. package/dist/bn-template-engine/p-B_d-jp99.js +2 -0
  9. package/dist/bn-template-engine/p-Bi2wx-el.js +1 -0
  10. package/dist/bn-template-engine/p-CWiZks2h.js +1 -0
  11. package/dist/bn-template-engine/{p-BQp6ZPYW.js → p-DSXNgKLa.js} +1 -1
  12. package/dist/bn-template-engine/p-c2cbb8ea.entry.js +1 -0
  13. package/dist/bn-template-engine/p-e783733e.entry.js +1 -0
  14. package/dist/bn-template-engine/p-e94b4e31.entry.js +1 -0
  15. package/dist/bn-template-engine/p-fdb3e99a.entry.js +1 -0
  16. package/dist/cjs/bn-asset_21.cjs.entry.js +23906 -0
  17. package/dist/cjs/bn-grid.cjs.entry.js +6 -13
  18. package/dist/cjs/bn-image.cjs.entry.js +6 -13
  19. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -7
  20. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  21. package/dist/cjs/bn-template.cjs.entry.js +4 -6
  22. package/dist/cjs/bn-text.cjs.entry.js +10 -19
  23. package/dist/cjs/bn-tree.cjs.entry.js +11 -14
  24. package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-B_jipZpJ.js} +6 -2
  25. package/dist/cjs/editor-companion.cjs.entry.js +3 -3
  26. package/dist/cjs/{index-CScBFiS1.js → index-CDKG4xmO.js} +2 -2
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/scaling-eyzCrFB8.js +329 -0
  29. package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-D7BKWN2N.js} +2 -2
  30. package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-Cl2gTQzA.js} +106 -2
  31. package/dist/{esm/luxon-DbyXf6dF.js → cjs/withStyled-V7xz_x1c.js} +1406 -1
  32. package/dist/collection/collection-manifest.json +2 -10
  33. package/dist/collection/components/bn-body/bn-body.css +1 -0
  34. package/dist/collection/components/bn-card/bn-card.css +2 -0
  35. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +368 -130
  36. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +34 -10
  37. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
  38. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
  39. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
  40. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
  41. package/dist/collection/components/bn-chart-time/bn-chart-time.css +1 -1
  42. package/dist/collection/components/bn-chart-time/bn-chart-time.js +172 -51
  43. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +22 -9
  44. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
  45. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
  46. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
  47. package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
  48. package/dist/collection/components/bn-datasource/bn-datasource.js +46 -3
  49. package/dist/collection/components/bn-layout-card/bn-layout-card.css +3 -2
  50. package/dist/collection/components/bn-layout-card/bn-layout-card.js +207 -32
  51. package/dist/collection/components/bn-layout-page/bn-layout-page.css +1 -3
  52. package/dist/collection/components/bn-layout-page/bn-layout-page.js +172 -43
  53. package/dist/collection/components/bn-message/bn-message.js +1 -1
  54. package/dist/collection/components/bn-page/bn-page.js +1 -1
  55. package/dist/collection/components/bn-scaling-group/bn-scaling-group.css +3 -0
  56. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +136 -0
  57. package/dist/collection/components/bn-table/bn-table.js +201 -55
  58. package/dist/collection/components/bn-table/ibcs-table.css +7 -5
  59. package/dist/collection/components/bn-table/ibcs-table.js +91 -5
  60. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +79 -31
  61. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
  62. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
  63. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
  64. package/dist/collection/components/bn-template/bn-template.js +1 -1
  65. package/dist/collection/components/bn-text/bn-text.js +1 -1
  66. package/dist/collection/components/bn-title/bn-title.js +1 -9
  67. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -1
  68. package/dist/collection/components/bn-tree/bn-tree.js +5 -1
  69. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  70. package/dist/collection/stores/componentStyles.js +2 -0
  71. package/dist/collection/stores/createScopedStores.js +3 -1
  72. package/dist/collection/utils/DateStringFactory.js +0 -1
  73. package/dist/collection/utils/constants.js +35 -5
  74. package/dist/collection/utils/contentDecoder.js +28 -0
  75. package/dist/collection/utils/layoutObserver.js +88 -0
  76. package/dist/collection/utils/parentDimensions.js +57 -10
  77. package/dist/collection/utils/stackColors.js +2 -2
  78. package/dist/collection/utils/validate.js +5 -2
  79. package/dist/collection/utils/withInheritedProps.js +152 -0
  80. package/dist/collection/utils/withScalingGroup.js +66 -0
  81. package/dist/components/DataFormatDigits.js +1 -1
  82. package/dist/components/DateStringFactory.js +1 -1
  83. package/dist/components/Order.js +1 -1
  84. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  85. package/dist/components/bn-body2.js +1 -1
  86. package/dist/components/bn-card2.js +1 -1
  87. package/dist/components/bn-chart-structure.js +1 -1
  88. package/dist/components/bn-chart-time.js +1 -1
  89. package/dist/components/bn-dataset.js +1 -1
  90. package/dist/components/bn-datasource.js +1 -1
  91. package/dist/components/bn-layout-card.js +1 -1
  92. package/dist/components/bn-layout-page.js +1 -1
  93. package/dist/components/bn-message2.js +1 -1
  94. package/dist/components/bn-page2.js +1 -1
  95. package/dist/components/{test-runner-time.d.ts → bn-scaling-group.d.ts} +4 -4
  96. package/dist/components/bn-scaling-group.js +1 -0
  97. package/dist/components/bn-table.js +1 -1
  98. package/dist/components/bn-template.js +1 -1
  99. package/dist/components/bn-text.js +1 -1
  100. package/dist/components/bn-title2.js +1 -1
  101. package/dist/components/bn-tree.js +1 -1
  102. package/dist/components/contentDecoder.js +1 -0
  103. package/dist/components/context-protocol.js +1 -1
  104. package/dist/components/editor-companion.js +1 -1
  105. package/dist/components/emotion-hash.esm.js +1 -0
  106. package/dist/components/ibcs-chart-structure2.js +1 -1
  107. package/dist/components/ibcs-chart-time2.js +1 -1
  108. package/dist/components/ibcs-table2.js +1 -1
  109. package/dist/components/ibcs-title2.js +1 -1
  110. package/dist/components/ibcsRuleSet.js +1 -1
  111. package/dist/components/layoutObserver.js +1 -0
  112. package/dist/components/scaling.js +1 -1
  113. package/dist/components/validate.js +1 -1
  114. package/dist/components/withHasError.js +1 -1
  115. package/dist/components/withInheritedProps.js +1 -0
  116. package/dist/components/withStyled.js +1 -1
  117. package/dist/esm/bn-asset_21.entry.js +23884 -0
  118. package/dist/esm/bn-grid.entry.js +4 -11
  119. package/dist/esm/bn-image.entry.js +4 -11
  120. package/dist/esm/bn-internationalization.entry.js +4 -6
  121. package/dist/esm/bn-template-engine.js +3 -3
  122. package/dist/esm/bn-template.entry.js +3 -5
  123. package/dist/esm/bn-text.entry.js +6 -15
  124. package/dist/esm/bn-tree.entry.js +9 -12
  125. package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-D-o_UZ33.js} +6 -2
  126. package/dist/esm/editor-companion.entry.js +3 -3
  127. package/dist/esm/{index-B27Ax6P_.js → index-B_d-jp99.js} +2 -2
  128. package/dist/esm/loader.js +3 -3
  129. package/dist/esm/scaling-BzbiBnuN.js +324 -0
  130. package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-AFk2wwHT.js} +2 -2
  131. package/dist/esm/{withHasError-C48fTE2k.js → withHasError-DW_vMDUp.js} +106 -2
  132. package/dist/{cjs/luxon-8hyy5YD7.js → esm/withStyled-5RqF8WBL.js} +1371 -2
  133. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +163 -110
  134. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +4 -3
  135. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  136. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
  137. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  138. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +29 -12
  139. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +4 -3
  140. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
  141. package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
  142. package/dist/types/components/bn-datasource/bn-datasource.d.ts +8 -0
  143. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +153 -0
  144. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +160 -1
  145. package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +37 -0
  146. package/dist/types/components/bn-table/bn-table.d.ts +32 -16
  147. package/dist/types/components/bn-table/ibcs-table.d.ts +20 -0
  148. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
  149. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +1 -0
  150. package/dist/types/components/bn-title/bn-title.d.ts +0 -1
  151. package/dist/types/components.d.ts +389 -443
  152. package/dist/types/context/context-protocol.d.ts +2 -1
  153. package/dist/types/stores/componentStyles.d.ts +2 -0
  154. package/dist/types/stores/createScopedStores.d.ts +1 -0
  155. package/dist/types/utils/constants.d.ts +23 -5
  156. package/dist/types/utils/contentDecoder.d.ts +12 -0
  157. package/dist/types/utils/layoutObserver.d.ts +27 -0
  158. package/dist/types/utils/parentDimensions.d.ts +7 -2
  159. package/dist/types/utils/validate.d.ts +1 -0
  160. package/dist/types/utils/withInheritedProps.d.ts +38 -0
  161. package/dist/types/utils/withScalingGroup.d.ts +14 -0
  162. package/package.json +3 -3
  163. package/readme.md +0 -1
  164. package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
  165. package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  166. package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
  167. package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
  168. package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
  169. package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
  170. package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
  171. package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
  172. package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
  173. package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
  174. package/dist/bn-template-engine/assets/icons/pin.png +0 -0
  175. package/dist/bn-template-engine/p--TeDldm8.js +0 -1
  176. package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
  177. package/dist/bn-template-engine/p-1jFf17Vj.js +0 -1
  178. package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
  179. package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
  180. package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
  181. package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
  182. package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
  183. package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
  184. package/dist/bn-template-engine/p-65f8962a.entry.js +0 -1
  185. package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
  186. package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
  187. package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
  188. package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
  189. package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
  190. package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
  191. package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
  192. package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
  193. package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
  194. package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
  195. package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
  196. package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
  197. package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
  198. package/dist/bn-template-engine/p-BFTU3MAI.js +0 -1
  199. package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
  200. package/dist/bn-template-engine/p-BYmPQYxx.js +0 -1
  201. package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
  202. package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
  203. package/dist/bn-template-engine/p-CY1RzLjU.js +0 -1
  204. package/dist/bn-template-engine/p-CfWnag33.js +0 -1
  205. package/dist/bn-template-engine/p-CnI71OA9.js +0 -1
  206. package/dist/bn-template-engine/p-Cp4MVxCu.js +0 -1
  207. package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
  208. package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
  209. package/dist/bn-template-engine/p-_LBTIfNN.js +0 -1
  210. package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
  211. package/dist/bn-template-engine/p-ad94cf63.entry.js +0 -1
  212. package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
  213. package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
  214. package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
  215. package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
  216. package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
  217. package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
  218. package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
  219. package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
  220. package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
  221. package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
  222. package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
  223. package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
  224. package/dist/cjs/DataFormatDigits-DmTbhF8q.js +0 -142
  225. package/dist/cjs/DateStringFactory-Dn0aRj2Y.js +0 -453
  226. package/dist/cjs/Order-B4NIqQWe.js +0 -129
  227. package/dist/cjs/SVGVariancesStyleGroup-Czizhngt.js +0 -7973
  228. package/dist/cjs/StringAdapter-0EbYMkR0.js +0 -136
  229. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
  230. package/dist/cjs/alasql.min-C_nHTuEQ.js +0 -306
  231. package/dist/cjs/bn-asset.cjs.entry.js +0 -42
  232. package/dist/cjs/bn-body_3.cjs.entry.js +0 -413
  233. package/dist/cjs/bn-card.cjs.entry.js +0 -37
  234. package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -705
  235. package/dist/cjs/bn-chart-time.cjs.entry.js +0 -987
  236. package/dist/cjs/bn-component-style.cjs.entry.js +0 -44
  237. package/dist/cjs/bn-context_5.cjs.entry.js +0 -3380
  238. package/dist/cjs/bn-dataset.cjs.entry.js +0 -278
  239. package/dist/cjs/bn-layout-card.cjs.entry.js +0 -128
  240. package/dist/cjs/bn-layout-page.cjs.entry.js +0 -142
  241. package/dist/cjs/bn-map.cjs.entry.js +0 -425
  242. package/dist/cjs/bn-message.cjs.entry.js +0 -52
  243. package/dist/cjs/componentRegister-C17UFNPh.js +0 -72
  244. package/dist/cjs/constants-DHqQXSSd.js +0 -158
  245. package/dist/cjs/formatter-DIJL_crx.js +0 -215
  246. package/dist/cjs/ibcs-chart-structure.cjs.entry.js +0 -2906
  247. package/dist/cjs/ibcs-chart-time.cjs.entry.js +0 -4140
  248. package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
  249. package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
  250. package/dist/cjs/scaling-B23eOtsC.js +0 -67
  251. package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
  252. package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
  253. package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
  254. package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
  255. package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
  256. package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
  257. package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
  258. package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
  259. package/dist/cjs/withComponentStyle-C6KHnZHt.js +0 -128
  260. package/dist/cjs/withDataset-ZdN-RRTx.js +0 -146
  261. package/dist/cjs/withStyled-Bf-stJTR.js +0 -567
  262. package/dist/cjs/withTranslation-Cz0M5maV.js +0 -77
  263. package/dist/collection/components/bn-map/bn-map.css +0 -4
  264. package/dist/collection/components/bn-map/bn-map.js +0 -725
  265. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
  266. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  267. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
  268. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
  269. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
  270. package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
  271. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
  272. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
  273. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
  274. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
  275. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
  276. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
  277. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
  278. package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
  279. package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
  280. package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
  281. package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
  282. package/dist/collection/test-runner/test-runner-card.js +0 -36
  283. package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
  284. package/dist/collection/test-runner/test-runner-chart.js +0 -364
  285. package/dist/collection/test-runner/test-runner-map.js +0 -1901
  286. package/dist/collection/test-runner/test-runner-table.js +0 -469
  287. package/dist/collection/test-runner/test-runner-time.js +0 -399
  288. package/dist/collection/test-runner/test-runner-title.js +0 -108
  289. package/dist/components/bn-map.d.ts +0 -11
  290. package/dist/components/bn-map.js +0 -1
  291. package/dist/components/componentRegister.js +0 -1
  292. package/dist/components/ibcs-map.d.ts +0 -11
  293. package/dist/components/ibcs-map.js +0 -1
  294. package/dist/components/ibcs-map2.js +0 -1
  295. package/dist/components/test-runner-card.d.ts +0 -11
  296. package/dist/components/test-runner-card.js +0 -1
  297. package/dist/components/test-runner-chart-time.d.ts +0 -11
  298. package/dist/components/test-runner-chart-time.js +0 -1
  299. package/dist/components/test-runner-chart.d.ts +0 -11
  300. package/dist/components/test-runner-chart.js +0 -1
  301. package/dist/components/test-runner-map.d.ts +0 -11
  302. package/dist/components/test-runner-map.js +0 -1
  303. package/dist/components/test-runner-table.d.ts +0 -11
  304. package/dist/components/test-runner-table.js +0 -1
  305. package/dist/components/test-runner-time.js +0 -1
  306. package/dist/components/test-runner-title.d.ts +0 -11
  307. package/dist/components/test-runner-title.js +0 -1
  308. package/dist/components/withDataset.js +0 -1
  309. package/dist/esm/DataFormatDigits-Dt6gpIiZ.js +0 -137
  310. package/dist/esm/DateStringFactory-_Qiv0IvF.js +0 -451
  311. package/dist/esm/Order-B4fpLe_f.js +0 -125
  312. package/dist/esm/SVGVariancesStyleGroup-DlWgvpzs.js +0 -7961
  313. package/dist/esm/StringAdapter-BLvo1Krl.js +0 -133
  314. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
  315. package/dist/esm/alasql.min-CWu4NkIt.js +0 -304
  316. package/dist/esm/bn-asset.entry.js +0 -40
  317. package/dist/esm/bn-body_3.entry.js +0 -409
  318. package/dist/esm/bn-card.entry.js +0 -35
  319. package/dist/esm/bn-chart-structure.entry.js +0 -703
  320. package/dist/esm/bn-chart-time.entry.js +0 -985
  321. package/dist/esm/bn-component-style.entry.js +0 -42
  322. package/dist/esm/bn-context_5.entry.js +0 -3374
  323. package/dist/esm/bn-dataset.entry.js +0 -276
  324. package/dist/esm/bn-layout-card.entry.js +0 -126
  325. package/dist/esm/bn-layout-page.entry.js +0 -140
  326. package/dist/esm/bn-map.entry.js +0 -423
  327. package/dist/esm/bn-message.entry.js +0 -50
  328. package/dist/esm/componentRegister-BtVfu16B.js +0 -72
  329. package/dist/esm/constants-kMyLevYy.js +0 -158
  330. package/dist/esm/formatter-DTMEZ6d8.js +0 -211
  331. package/dist/esm/ibcs-chart-structure.entry.js +0 -2904
  332. package/dist/esm/ibcs-chart-time.entry.js +0 -4138
  333. package/dist/esm/ibcs-map.entry.js +0 -1073
  334. package/dist/esm/ibcs-title.entry.js +0 -350
  335. package/dist/esm/scaling-BBd0ZVLL.js +0 -64
  336. package/dist/esm/test-runner-card.entry.js +0 -25
  337. package/dist/esm/test-runner-chart-time.entry.js +0 -228
  338. package/dist/esm/test-runner-chart.entry.js +0 -324
  339. package/dist/esm/test-runner-map.entry.js +0 -1860
  340. package/dist/esm/test-runner-table.entry.js +0 -475
  341. package/dist/esm/test-runner-time.entry.js +0 -379
  342. package/dist/esm/test-runner-title.entry.js +0 -113
  343. package/dist/esm/withComponentStatus-elELReKt.js +0 -37
  344. package/dist/esm/withComponentStyle-NaxfakAG.js +0 -126
  345. package/dist/esm/withDataset-BT2VQCsG.js +0 -144
  346. package/dist/esm/withStyled-CpUTv74m.js +0 -539
  347. package/dist/esm/withTranslation-Do4GhleK.js +0 -75
  348. package/dist/types/components/bn-map/bn-map.d.ts +0 -122
  349. package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
  350. package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
  351. package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
  352. package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
  353. package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
  354. package/dist/types/test-runner/test-runner-card.d.ts +0 -3
  355. package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
  356. package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
  357. package/dist/types/test-runner/test-runner-map.d.ts +0 -3
  358. package/dist/types/test-runner/test-runner-table.d.ts +0 -3
  359. package/dist/types/test-runner/test-runner-time.d.ts +0 -3
  360. package/dist/types/test-runner/test-runner-title.d.ts +0 -3
@@ -1,985 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-B27Ax6P_.js';
2
- import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber, e as isValidInteger, b as isValidLevel, c as validateOrderList, d as isValidDirection, k as isValidDateFormat, h as validateStackConfig, l as isValidAxisLabelsMode, f as isValidBoolean, g as isValidMeasureScale, w as withStyled, j as isBlankInput } from './withStyled-CpUTv74m.js';
3
- import { w as withDataset } from './withDataset-BT2VQCsG.js';
4
- import { w as withComponentStatus } from './withComponentStatus-elELReKt.js';
5
- import { w as withTranslation } from './withTranslation-Do4GhleK.js';
6
- import { a as globalLabelKeys } from './context-protocol-DzeqZxg6.js';
7
- import { w as withComponentStyle } from './withComponentStyle-NaxfakAG.js';
8
- import { w as withHasError } from './withHasError-C48fTE2k.js';
9
- import { g as getParentDimensions, p as parseScaling } from './scaling-BBd0ZVLL.js';
10
- import { O as OrderDirection, a as OrderColumn } from './Order-B4fpLe_f.js';
11
- import { F as Formatter } from './formatter-DTMEZ6d8.js';
12
- import { c as AxisLabelsMode, S as StackOrder, b as StackMode, C as ChartMode } from './constants-kMyLevYy.js';
13
- import { D as DateDistance } from './DateStringFactory-_Qiv0IvF.js';
14
- import './componentRegister-BtVfu16B.js';
15
- import './luxon-DbyXf6dF.js';
16
- import './_commonjsHelpers-BFTU3MAI.js';
17
-
18
- const bnChartTimeCss = () => `:host{display:inline-block;position:relative;overflow:visible;}.container{display:flex;flex-direction:column-reverse}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}`;
19
-
20
- var AggregationLevel;
21
- (function (AggregationLevel) {
22
- AggregationLevel["ROWGROUP"] = "rowGroup";
23
- AggregationLevel["ROWGROUPINDEX"] = "rowGroupIndex";
24
- AggregationLevel["CATEGORY"] = "category";
25
- AggregationLevel["CATEGORYINDEX"] = "categoryIndex";
26
- AggregationLevel["SUBCATEGORY"] = "subCategory";
27
- AggregationLevel["SUBCATEGORYINDEX"] = "subCategoryIndex";
28
- })(AggregationLevel || (AggregationLevel = {}));
29
- const Chart = class {
30
- validateScenario(newValue) {
31
- const invalidScenarios = validateScenarioList(newValue);
32
- const errId = "ERR_scenarios";
33
- if (invalidScenarios.length > 0) {
34
- this.errors.addOrReplace({
35
- id: errId,
36
- type: "warning",
37
- message: "scenarios: invalid value(s) '" + JSON.stringify(invalidScenarios) + "' are not supported.",
38
- });
39
- }
40
- else {
41
- this.errors.remove(errId);
42
- }
43
- }
44
- validateVariances(newValue) {
45
- const errIdVar = "ERR_variances";
46
- const invalidVariances = validateVariancesList(newValue);
47
- if (invalidVariances.length > 0) {
48
- this.errors.addOrReplace({
49
- id: errIdVar,
50
- type: "warning",
51
- message: "variances: invalid value(s) '" + JSON.stringify(invalidVariances) + "' are not supported.",
52
- });
53
- }
54
- else {
55
- this.errors.remove(errIdVar);
56
- }
57
- }
58
- validateLeftSync(newValue) {
59
- const errId = "ERR_syncSpaceLeft";
60
- if (!isValidNumber(newValue)) {
61
- this.errors.addOrReplace({
62
- id: errId,
63
- type: "warning",
64
- message: "syncSpaceLeft: invalid value(s) '" + newValue + "' are not supported.",
65
- });
66
- }
67
- else {
68
- this.errors.remove(errId);
69
- }
70
- }
71
- validateLimit(newValue) {
72
- const errId = "ERR_limit";
73
- if (!isValidInteger(newValue)) {
74
- this.errors.addOrReplace({
75
- id: errId,
76
- type: "warning",
77
- message: "limit: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
78
- });
79
- }
80
- else {
81
- this.errors.remove(errId);
82
- }
83
- }
84
- validateUnitScaling(newValue) {
85
- const errId = "ERR_unitScaling";
86
- if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
87
- this.errors.addOrReplace({
88
- id: errId,
89
- type: "warning",
90
- message: "unitScaling: invalid value(s) '" + newValue + "' are not supported.",
91
- });
92
- }
93
- else {
94
- this.errors.remove(errId);
95
- }
96
- }
97
- validatePercentageScaling(newValue) {
98
- const errId = "ERR_percentageScaling";
99
- if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
100
- this.errors.addOrReplace({
101
- id: errId,
102
- type: "warning",
103
- message: "percentageScaling: invalid value(s) '" + newValue + "' are not supported.",
104
- });
105
- }
106
- else {
107
- this.errors.remove(errId);
108
- }
109
- }
110
- validateLevel(newValue) {
111
- const errId = "ERR_level";
112
- if (!isValidLevel(newValue)) {
113
- this.errors.addOrReplace({
114
- id: errId,
115
- type: "warning",
116
- message: "level: invalid value(s) '" + newValue + "' are not supported.",
117
- });
118
- }
119
- else {
120
- this.errors.remove(errId);
121
- }
122
- }
123
- validateOrderList(newValue) {
124
- const errId = "ERR_order";
125
- const invalidElements = validateOrderList(newValue);
126
- if (invalidElements.length > 0) {
127
- this.errors.addOrReplace({
128
- id: errId,
129
- type: "warning",
130
- message: "order: invalid value(s) '" + JSON.stringify(invalidElements) + "' are not supported.",
131
- });
132
- }
133
- else {
134
- this.errors.remove(errId);
135
- }
136
- }
137
- validateOrderDirection(newValue) {
138
- const errId = "ERR_orderDirection";
139
- if (!isValidDirection(newValue)) {
140
- this.errors.addOrReplace({
141
- id: errId,
142
- type: "warning",
143
- message: "orderDirection: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
144
- });
145
- }
146
- else {
147
- this.errors.remove(errId);
148
- }
149
- }
150
- validateDateInterval(newValue) {
151
- const errId = "ERR_dateInterval";
152
- if (!isValidDateFormat(newValue)) {
153
- this.errors.addOrReplace({
154
- id: errId,
155
- type: "warning",
156
- message: "dateInterval: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
157
- });
158
- }
159
- else {
160
- this.errors.remove(errId);
161
- }
162
- }
163
- validateChartMode(newValue) {
164
- const errId = "ERR_chartMode";
165
- const validModes = ["bar", "line", "auto"];
166
- if (!validModes.includes(newValue === null || newValue === void 0 ? void 0 : newValue.toLowerCase())) {
167
- this.errors.addOrReplace({
168
- id: errId,
169
- type: "warning",
170
- message: "chartMode: invalid value '" +
171
- (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) +
172
- "' is not supported. Valid values are: bar, line, auto.",
173
- });
174
- }
175
- else {
176
- this.errors.remove(errId);
177
- }
178
- }
179
- validateMaxBars(newValue) {
180
- const errId = "ERR_maxBars";
181
- if (!isValidInteger(newValue) || newValue < 1) {
182
- this.errors.addOrReplace({
183
- id: errId,
184
- type: "warning",
185
- message: "maxBars: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported. Must be a positive integer.",
186
- });
187
- }
188
- else {
189
- this.errors.remove(errId);
190
- }
191
- }
192
- validateStack(newValue) {
193
- const errId = "ERR_stack";
194
- const errors = validateStackConfig(newValue);
195
- if (errors.length > 0) {
196
- this.errors.addOrReplace({
197
- id: errId,
198
- type: "warning",
199
- message: errors.join("; "),
200
- });
201
- }
202
- else {
203
- this.errors.remove(errId);
204
- }
205
- }
206
- validateScaling(newValue) {
207
- if (newValue == null || newValue === "" || newValue === "none" || newValue === "auto") {
208
- this.errors.remove("ERR_scale");
209
- return;
210
- }
211
- const num = Number(newValue);
212
- if (isNaN(num) || num <= 0) {
213
- this.errors.addOrReplace({
214
- id: "ERR_scale",
215
- type: "warning",
216
- message: `Invalid scale value: "${newValue}". Use "none", "auto", or a positive number.`,
217
- });
218
- }
219
- else {
220
- this.errors.remove("ERR_scale");
221
- }
222
- }
223
- validateAxisLabelsMode(newValue) {
224
- const errId = "ERR_axisLabelsMode";
225
- if (!isValidAxisLabelsMode(newValue)) {
226
- this.errors.addOrReplace({
227
- id: errId,
228
- type: "warning",
229
- message: "axisLabelsMode: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
230
- });
231
- }
232
- else {
233
- this.errors.remove(errId);
234
- }
235
- }
236
- validateLineFullWidth(newValue) {
237
- const errId = "ERR_lineFullWidth";
238
- if (!isValidBoolean(newValue)) {
239
- this.errors.addOrReplace({
240
- id: errId,
241
- type: "warning",
242
- message: "lineFullWidth: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
243
- });
244
- }
245
- else {
246
- this.errors.remove(errId);
247
- }
248
- }
249
- validateShowCategories(newValue) {
250
- const errId = "ERR_showCategories";
251
- if (!isValidBoolean(newValue)) {
252
- this.errors.addOrReplace({
253
- id: errId,
254
- type: "warning",
255
- message: "showCategories: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
256
- });
257
- }
258
- else {
259
- this.errors.remove(errId);
260
- }
261
- }
262
- validateMeasureScale(newValue) {
263
- const errId = "ERR_measureScale";
264
- if (!isValidMeasureScale(newValue)) {
265
- this.errors.addOrReplace({
266
- id: errId,
267
- type: "warning",
268
- message: "measureScale: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
269
- });
270
- }
271
- else {
272
- this.errors.remove(errId);
273
- }
274
- }
275
- validateShowMeasureScale(newValue) {
276
- const errId = "ERR_grouped";
277
- if (!isValidBoolean(newValue)) {
278
- this.errors.addOrReplace({
279
- id: errId,
280
- type: "warning",
281
- message: "showMeasureScale: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
282
- });
283
- }
284
- else {
285
- this.errors.remove(errId);
286
- }
287
- }
288
- validateShowOverlayAvg(newValue) {
289
- const errId = "ERR_grouped";
290
- if (!isValidBoolean(newValue)) {
291
- this.errors.addOrReplace({
292
- id: errId,
293
- type: "warning",
294
- message: "showOverlayAvg: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
295
- });
296
- }
297
- else {
298
- this.errors.remove(errId);
299
- }
300
- }
301
- validateShowOverlayMedian(newValue) {
302
- const errId = "ERR_grouped";
303
- if (!isValidBoolean(newValue)) {
304
- this.errors.addOrReplace({
305
- id: errId,
306
- type: "warning",
307
- message: "showOverlayMedian: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
308
- });
309
- }
310
- else {
311
- this.errors.remove(errId);
312
- }
313
- }
314
- constructor(hostRef) {
315
- registerInstance(this, hostRef);
316
- this.data = [];
317
- this.datasetMeta = null;
318
- this.appliedScaleFactor = 1;
319
- /**
320
- * Custom chart title
321
- */
322
- this.chartTitle = "";
323
- /**
324
- * AlaSQL WHERE clause fragment injected into the data query to filter
325
- * rows before rendering (e.g. `"rowGroup = 'Revenue'"`).
326
- */
327
- this.filter = "";
328
- this.syncSpaceLeft = -1;
329
- /**
330
- * Set the maximum number of columns stacks The value 0 means *no limit*
331
- * <br /><br />
332
- *
333
- * columns stacks wich where cut by the limit are cumulated as REST
334
- *
335
- */
336
- this.limit = 0;
337
- /** Chart Mode - controls how the chart is rendered
338
- * <br /><br />
339
- * values:<br />
340
- * ```bar // line // auto```
341
- * <br /><br />
342
- * When set to 'auto', the chart will switch to line mode
343
- * when the number of data points exceeds maxBars.
344
- */
345
- this.chartMode = "bar";
346
- /** Max Bars - threshold for auto-switching to line mode
347
- * <br /><br />
348
- * When chartMode is set to 'auto' and the number of data points
349
- * exceeds this value, the chart will render as a line chart.
350
- */
351
- this.maxBars = 28;
352
- /**
353
- * Stacking configuration for the chart as a JSON string.
354
- *
355
- * When set, bars/columns are drawn stacked (additive layers) instead of
356
- * side-by-side. In line mode (`chart-mode="line"`), stacking produces a
357
- * stacked area chart with filled regions between cumulative lines.
358
- *
359
- * **JSON schema:**
360
- * ```json
361
- * {
362
- * "by": "scenario" | "category" | "subcategory" | "rowgroup",
363
- * "mode": "absolute" | "relative" | "absolute-relative",
364
- * "order": "asc" | "desc" | "dataset"
365
- * }
366
- * ```
367
- *
368
- * - `by` (required): The dimension to stack.
369
- * - `"scenario"` — stack the scenarios from the `scenarios` prop as layers.
370
- * - `"category"` / `"subcategory"` / `"rowgroup"` — decompose a single
371
- * scenario by this data dimension. Must be finer than `level`.
372
- * - `mode` (optional, default `"absolute"`):
373
- * - `"absolute"` — additive stacking, axis shows absolute units.
374
- * - `"relative"` — 100% stacking, axis shows 0%–100%.
375
- * - `"absolute-relative"` — bar height is absolute (real value), but
376
- * segment labels inside show percentages.
377
- * - `order` (optional, default `"dataset"`): Segment order within each stack.
378
- * `"asc"` / `"desc"` sort segments by value; `"dataset"` preserves the
379
- * original data/scenario order.
380
- *
381
- * @default '' (empty — no stacking)
382
- *
383
- * @example
384
- * // Stack scenarios
385
- * stack='{"by":"scenario"}'
386
- *
387
- * @example
388
- * // Stack by category, relative mode
389
- * stack='{"by":"category","mode":"relative"}'
390
- */
391
- this.stack = "";
392
- /** Max number of collumns
393
- * is used to calculate Axis Date Interval (if dateInterval is set to AUTO)
394
- */
395
- this.intervalSpanLimit = 28;
396
- /** When true (default), line charts stretch to fill the full parent width
397
- * instead of using fixed per-data-point spacing.
398
- * Has no effect in bar mode.
399
- * <br /><br />
400
- * values:<br />
401
- * ```true // false```
402
- */
403
- this.lineFullWidth = "true";
404
- this.showCategories = "true";
405
- /**
406
- * Sets the SiPrefix of the Mesaurements and converts the
407
- * original value.
408
- * <br /><br />
409
- * values: <br />
410
- * ```_ // k // M // G // T // P // E // Z // Y // m // μ // n // p // P // f // a // z // y // GREATEST // LEAST```
411
- * <br /><br />
412
- * SiPrefix overview:
413
- * ``` "Y": 1E+24,```<br />
414
- * ``` "Z": 1E+21,```<br />
415
- * ``` "E": 1E+18,```<br />
416
- * ``` "P": 1E+15,```<br />
417
- * ``` "T": 1E+12,```<br />
418
- * ``` "G": 1000000000,```<br />
419
- * ``` "M": 1000000,```<br />
420
- * ``` "k": 1000,```<br />
421
- * <br />
422
- * ``` "m": 0.001,```<br />
423
- * ``` "μ": 0.000001,```<br />
424
- * ``` "n": 0.000000001,```<br />
425
- * ``` "p": 0.000000000001,```<br />
426
- * ``` "f": 0.000000000000001,```<br />
427
- * ``` "a": 0.000000000000000001,```<br />
428
- * ``` "z": 0.000000000000000000001,```<br />
429
- * ``` "y": 0.000000000000000000000001,```<br />
430
- * <br /><br />
431
- * Special modes:
432
- * ```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />
433
- * ```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />
434
- *<br /><br />
435
- * ```_``` is the value for no SiPrefix the value is displayed as in the dataset stored.
436
- *
437
- *
438
- */
439
- this.measureScale = "greatest";
440
- /**
441
- * Toggles display of measure units in table header
442
- * <br /><br />
443
- * values: <br />
444
- * ```true // false```
445
- */
446
- this.showMeasureScale = "false";
447
- this.showOverlayAvg = "true";
448
- this.showOverlayMedian = "false";
449
- /**
450
- * measureUnit displayed in table.
451
- */
452
- this.measureUnit = "";
453
- this.pixelPerUnitGroupMap = new Map();
454
- this._autoScaleIterations = 0;
455
- withStyled(this);
456
- withComponentStatus(this);
457
- withDataset(this, (_name, data) => {
458
- this.data = (data || []);
459
- }, (_name, meta) => {
460
- this.datasetMeta = meta;
461
- });
462
- this.chartTemplate = this.chartTemplate.bind(this);
463
- this.errors = withHasError(this);
464
- this.componentStyle = withComponentStyle(this);
465
- this.t = withTranslation(this).t;
466
- }
467
- componentWillLoad() {
468
- this.validateScenario(this.scenarios);
469
- this.validateVariances(this.variances);
470
- this.validateUnitScaling(this.unitScaling);
471
- this.validateLimit(this.limit);
472
- // this.validateStyles(this.styles);
473
- this.validateLevel(this.level);
474
- this.validateOrderDirection(this.orderDirection);
475
- this.validateOrderList(this.order);
476
- this.validateLeftSync(this.syncSpaceLeft);
477
- this.validateDateInterval(this.dateInterval);
478
- this.validateAxisLabelsMode(this.axisLabelsMode);
479
- this.validateLineFullWidth(this.lineFullWidth);
480
- this.validateShowCategories(this.showCategories);
481
- this.validateMeasureScale(this.measureScale);
482
- this.validateShowMeasureScale(this.showMeasureScale);
483
- this.validateShowOverlayAvg(this.showOverlayAvg);
484
- this.validateShowOverlayMedian(this.showOverlayMedian);
485
- this.validateChartMode(this.chartMode);
486
- this.validateMaxBars(this.maxBars);
487
- this.validateStack(this.stack);
488
- this.validateScaling(this.scale);
489
- }
490
- componentDidRender() {
491
- var _a, _b;
492
- const { mode } = parseScaling(this.scale);
493
- if (mode !== "auto" && mode !== "empty") {
494
- this._autoScaleIterations = 0;
495
- // Keep existing width-based overflow warning for non-auto modes
496
- const parent = getParentDimensions(this.element);
497
- const errId = "WARN_overflow";
498
- if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
499
- this.errors.addOrReplace({
500
- id: errId,
501
- type: "warning",
502
- message: "Chart exceeds available space and will be cut off. Check unit-scaling value.",
503
- });
504
- }
505
- else {
506
- this.errors.remove(errId);
507
- }
508
- return;
509
- }
510
- const host = this.element;
511
- const { width: parentWidth } = getParentDimensions(host);
512
- if (parentWidth <= 0)
513
- return;
514
- const div = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".container");
515
- const currentWidth = (_b = div === null || div === void 0 ? void 0 : div.scrollWidth) !== null && _b !== void 0 ? _b : host.scrollWidth;
516
- const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
517
- // Content fits — no scaling needed (or current scale is sufficient)
518
- if (currentWidth <= parentWidth + 1) {
519
- this._autoScaleIterations = 0;
520
- this.errors.remove("AUTO_scale");
521
- // If previously scaled but content now fits at base, reset to 1
522
- if (this.appliedScaleFactor !== 1) {
523
- // Try resetting — if that overflows, the next didRender will re-scale
524
- this._autoScaleIterations = 1;
525
- this.appliedScaleFactor = 1;
526
- host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
527
- }
528
- return;
529
- }
530
- // Prevent infinite loop
531
- if (this._autoScaleIterations >= Chart.MAX_SCALE_ITERATIONS) {
532
- this._autoScaleIterations = 0;
533
- return;
534
- }
535
- // Content overflows — compute multiplicative correction
536
- const correction = (parentWidth - 1) / currentWidth;
537
- const newFactor = this.appliedScaleFactor * correction;
538
- host.style.setProperty("--bn-font-size", `${baseFontSize * newFactor}px`);
539
- if (mode === "empty") {
540
- this.errors.addOrReplace({
541
- id: "AUTO_scale",
542
- type: "warning",
543
- message: `Auto-scaled chart by factor ${newFactor.toFixed(3)}`,
544
- });
545
- }
546
- else {
547
- this.errors.remove("AUTO_scale");
548
- }
549
- if (Math.abs(newFactor - this.appliedScaleFactor) > 0.001) {
550
- this._autoScaleIterations++;
551
- this.appliedScaleFactor = newFactor;
552
- }
553
- else {
554
- this._autoScaleIterations = 0;
555
- }
556
- }
557
- prepareDimension() {
558
- const parent = getParentDimensions(this.element);
559
- const scenariosList = this.prepareScenarios();
560
- const variancesList = this.prepareVariances();
561
- this.canvasWidthSegmented = parent.width / (scenariosList.length + variancesList.length || 1);
562
- return { width: this.canvasWidthSegmented, height: parent.height };
563
- }
564
- prepareScenarios() {
565
- var _a, _b, _c, _d;
566
- const isAuto = ((_a = this.scenarios) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
567
- if (isBlankInput(this.scenarios) || isAuto) {
568
- if (((_c = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.availableScenarios) === null || _c === void 0 ? void 0 : _c.length) > 0) {
569
- if (!isAuto) {
570
- this.errors.addOrReplace({
571
- id: "AUTO_scenarios",
572
- type: "warning",
573
- message: `scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`,
574
- });
575
- }
576
- else {
577
- this.errors.remove("AUTO_scenarios");
578
- }
579
- return this.datasetMeta.availableScenarios;
580
- }
581
- return [];
582
- }
583
- this.errors.remove("AUTO_scenarios");
584
- return (_d = this.scenarios) === null || _d === void 0 ? void 0 : _d.split(",").map((entry) => entry.trim());
585
- }
586
- prepareAvg() {
587
- return this.showOverlayAvg === "true";
588
- }
589
- prepareMedian() {
590
- return this.showOverlayMedian === "true";
591
- }
592
- prepareVariances() {
593
- var _a;
594
- if (isBlankInput(this.variances)) {
595
- return [];
596
- }
597
- return (_a = this.variances) === null || _a === void 0 ? void 0 : _a.split(",").map((entry) => entry.trim());
598
- }
599
- prepareHideAxisLabels(idx) {
600
- return idx >= 1 || this.showCategories !== "true";
601
- }
602
- prepareI18n() {
603
- const i18nMetaLabelsLocal = [];
604
- const i18nMetaLabelsGlobal = globalLabelKeys;
605
- const i18nMapLocal = new Map(i18nMetaLabelsLocal.map((key) => [key, this.t(".".concat(key))]));
606
- const i18nMapGlobal = new Map(i18nMetaLabelsGlobal.map((key) => [key, this.t("global.".concat(key))]));
607
- return new Map([...i18nMapGlobal.entries(), ...i18nMapLocal.entries()]);
608
- }
609
- preparePixelPerUnit() {
610
- var _a;
611
- if (this.pixelPerUnitGroupMap.has(this.unitScaling)) {
612
- this.errors.remove("AUTO_unitScaling");
613
- return this.pixelPerUnitGroupMap.get(this.unitScaling);
614
- }
615
- // Explicit 'auto' → auto-calculate silently
616
- if (((_a = this.unitScaling) === null || _a === void 0 ? void 0 : _a.toString().trim().toLowerCase()) === "auto") {
617
- this.errors.remove("AUTO_unitScaling");
618
- return 0;
619
- }
620
- const numeric = Number(this.unitScaling);
621
- if (!isNaN(numeric) && numeric > 0) {
622
- this.errors.remove("AUTO_unitScaling");
623
- return numeric;
624
- }
625
- // Not set / invalid → auto-calculate with warning
626
- this.errors.addOrReplace({
627
- id: "AUTO_unitScaling",
628
- type: "warning",
629
- message: `unit-scaling: not set, auto-calculated to fit available space.`,
630
- });
631
- return 0;
632
- }
633
- preparePixelPerPercentage() {
634
- if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
635
- return this.pixelPerUnitGroupMap.get(this.percentageScaling); // TODO(JHE): revisit '* 100' correctness when global scaling groups are implemented
636
- }
637
- return Number(this.percentageScaling) * 100;
638
- }
639
- prepareLevel() {
640
- var _a, _b, _c;
641
- const isAuto = ((_a = this.level) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
642
- if (isBlankInput(this.level) || isAuto) {
643
- if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedLevel) {
644
- if (!isAuto) {
645
- this.errors.addOrReplace({
646
- id: "AUTO_level",
647
- type: "warning",
648
- message: `level: not set, auto-detected: ${this.datasetMeta.suggestedLevel}`,
649
- });
650
- }
651
- else {
652
- this.errors.remove("AUTO_level");
653
- }
654
- return AggregationLevel[this.datasetMeta.suggestedLevel.toUpperCase()];
655
- }
656
- return undefined;
657
- }
658
- this.errors.remove("AUTO_level");
659
- return AggregationLevel[(_c = this.level) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
660
- }
661
- prepareOrder() {
662
- var _a, _b, _c, _d, _e, _f;
663
- const isLevelAuto = isBlankInput(this.level) || ((_a = this.level) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
664
- let entryValue = isLevelAuto && ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedLevel) ? this.datasetMeta.suggestedLevel : this.level;
665
- const isOrderAuto = ((_c = this.order) === null || _c === void 0 ? void 0 : _c.trim().toLowerCase()) === "auto";
666
- if (isBlankInput(this.order) || isOrderAuto) {
667
- if ((_d = this.datasetMeta) === null || _d === void 0 ? void 0 : _d.suggestedLevel) {
668
- if (!isOrderAuto) {
669
- this.errors.addOrReplace({
670
- id: "AUTO_order",
671
- type: "warning",
672
- message: `order: not set, auto-detected: ${entryValue}`,
673
- });
674
- }
675
- else {
676
- this.errors.remove("AUTO_order");
677
- }
678
- }
679
- }
680
- else {
681
- this.errors.remove("AUTO_order");
682
- if (((_e = this.order) === null || _e === void 0 ? void 0 : _e.toLocaleLowerCase()) === "levelindex") {
683
- entryValue += "Index";
684
- }
685
- }
686
- const tableOrder = {
687
- hierarchy: [OrderColumn[entryValue === null || entryValue === void 0 ? void 0 : entryValue.toUpperCase()]],
688
- direction: OrderDirection[(_f = this.orderDirection) === null || _f === void 0 ? void 0 : _f.toUpperCase()],
689
- };
690
- return tableOrder;
691
- }
692
- prepareStyle() {
693
- const effectiveFactor = this.getEffectiveScaleFactor();
694
- return this.componentStyle(($) => {
695
- const baseFontSize = $["global"]["fontSizePx"];
696
- const scaledFontSize = baseFontSize * effectiveFactor;
697
- return {
698
- scaleFactors: {
699
- scenarioOffset: $["bn-chart-time"]["scaleFactors"]["scenarioOffset"],
700
- scenarioLabelToColumn: $["bn-chart-time"]["scaleFactors"]["scenarioLabelToColumn"],
701
- labelToColumn: 0.3,
702
- labelToColum: $["bn-chart-time"]["scaleFactors"]["labelToColum"],
703
- labelToAxis: $["bn-chart-time"]["scaleFactors"]["labelToAxis"],
704
- needleWidth: $["bn-chart-time"]["scaleFactors"]["needleWidth"],
705
- needleHeadWidth: $["bn-chart-time"]["scaleFactors"]["needleHeadWidth"],
706
- columnWidth: $["bn-chart-time"]["scaleFactors"]["columnWidth"],
707
- varianceAxisLineWidth: $["bn-chart-time"]["scaleFactors"]["varianceAxisLineWidth"],
708
- axisLineWidth: $["bn-chart-time"]["scaleFactors"]["axisLineWidth"],
709
- auxiliaryLineWidth: $["bn-chart-time"]["scaleFactors"]["auxiliaryLineWidth"],
710
- scenarioLineWidth: $["bn-chart-time"]["scaleFactors"]["scenarioLineWidth"],
711
- markerWidth: $["bn-chart-time"]["scaleFactors"]["markerWidth"],
712
- markerOffset: $["bn-chart-time"]["scaleFactors"]["markerOffset"],
713
- categoryWidth: $["bn-chart-time"]["scaleFactors"]["categoryWidth"],
714
- axisTickLength: $["bn-chart-time"]["scaleFactors"]["axisTickLength"],
715
- },
716
- fontStyles: {
717
- font: `${scaledFontSize}px ${$["global"]["fontFamily"]}`,
718
- size: scaledFontSize,
719
- color: $["global"]["fontColor"],
720
- background: $["global"]["fontBackgroundColor"],
721
- leading: 1.8,
722
- },
723
- axisStyles: $["bn-chart-time"]["axisStyles"],
724
- barStyles: $["bn-chart-time"]["barStyles"],
725
- varianceStyles: $["bn-chart-time"]["varianceStyles"],
726
- padding: $["bn-chart-time"]["padding"],
727
- pattern: null,
728
- };
729
- });
730
- }
731
- prepareLeftSideOffset(preparedI18n, preparedStyle) {
732
- if (this.syncSpaceLeft > -1) {
733
- return this.syncSpaceLeft;
734
- }
735
- const leftSideOffset = Formatter.getMaxWidthOfArrayItems([...this.prepareVariances(), ...this.prepareScenarios(), this.chartTitle], preparedI18n, preparedStyle);
736
- //if(leftSideOffset < this.syncSpaceLeft) {
737
- // return this.syncSpaceLeft;
738
- //}
739
- return leftSideOffset;
740
- }
741
- prepareChartTitle(idx) {
742
- if (idx >= 1) {
743
- return "";
744
- }
745
- return this.chartTitle;
746
- }
747
- prepareLimit() {
748
- return Math.floor(Number(this.limit) || 0);
749
- }
750
- prepareDateInterval() {
751
- var _a, _b, _c;
752
- const isAuto = ((_a = this.dateInterval) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
753
- if (isBlankInput(this.dateInterval) || isAuto) {
754
- if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedDateInterval) {
755
- if (!isAuto) {
756
- this.errors.addOrReplace({
757
- id: "AUTO_dateInterval",
758
- type: "warning",
759
- message: `dateInterval: not set, auto-detected: ${this.datasetMeta.suggestedDateInterval}`,
760
- });
761
- }
762
- else {
763
- this.errors.remove("AUTO_dateInterval");
764
- }
765
- return DateDistance[this.datasetMeta.suggestedDateInterval.toUpperCase()];
766
- }
767
- return isAuto ? DateDistance.AUTO : undefined;
768
- }
769
- this.errors.remove("AUTO_dateInterval");
770
- return DateDistance[(_c = this.dateInterval) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
771
- }
772
- prepareIntervalSpanLimit() {
773
- return this.intervalSpanLimit;
774
- }
775
- prepareAxisLabelsMode() {
776
- var _a;
777
- return AxisLabelsMode[(_a = this.axisLabelsMode) === null || _a === void 0 ? void 0 : _a.toUpperCase()];
778
- }
779
- prepareFilter() {
780
- if (this.filter.length === 0) {
781
- return "";
782
- }
783
- return this.filter;
784
- }
785
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
786
- getDataStructure() {
787
- const dataSetStructure = {
788
- ITimeChartDataRow: {
789
- setName: { type: "string", isOptional: false, description: "" },
790
- date: { type: "string", isOptional: false, description: "" },
791
- operation: { type: "string", isOptional: false, description: "" },
792
- rowGroup: { type: "string", isOptional: false, description: "" },
793
- rowGroupIndex: { type: "number", isOptional: false, description: "" },
794
- category: { type: "string", isOptional: false, description: "" },
795
- categoryIndex: { type: "number", isOptional: false, description: "" },
796
- subCategory: { type: "string", isOptional: false, description: "" },
797
- subCategoryIndex: { type: "number", isOptional: false, description: "" },
798
- columnGroup: { type: "string", isOptional: false, description: "" },
799
- columnGroupIndex: { type: "number", isOptional: false, description: "" },
800
- columnSubGroup: { type: "string", isOptional: false, description: "" },
801
- columnSubGroupIndex: { type: "number", isOptional: false, description: "" },
802
- ac1: { type: "number", isOptional: false, description: "" },
803
- ac2: { type: "number", isOptional: false, description: "" },
804
- ac3: { type: "number", isOptional: false, description: "" },
805
- ac4: { type: "number", isOptional: false, description: "" },
806
- pp1: { type: "number", isOptional: false, description: "" },
807
- pp2: { type: "number", isOptional: false, description: "" },
808
- pp3: { type: "number", isOptional: false, description: "" },
809
- pp4: { type: "number", isOptional: false, description: "" },
810
- fc1: { type: "number", isOptional: false, description: "" },
811
- fc2: { type: "number", isOptional: false, description: "" },
812
- fc3: { type: "number", isOptional: false, description: "" },
813
- fc4: { type: "number", isOptional: false, description: "" },
814
- pl1: { type: "number", isOptional: false, description: "" },
815
- pl2: { type: "number", isOptional: false, description: "" },
816
- pl3: { type: "number", isOptional: false, description: "" },
817
- pl4: { type: "number", isOptional: false, description: "" },
818
- },
819
- };
820
- return dataSetStructure;
821
- }
822
- prepareMeasureScale() {
823
- if (isBlankInput(this.measureScale)) {
824
- return "GREATEST";
825
- }
826
- if (["_", "k", "M", "G", "T", "P", "E", "Z", "Y", "m", "μ", "n", "p", "P", "f", "a", "z", "y"].includes(this.measureScale.trim())) {
827
- return this.measureScale.trim();
828
- }
829
- if (this.measureScale.trim().toUpperCase() === "LEAST") {
830
- return this.measureScale.trim();
831
- }
832
- return "GREATEST";
833
- }
834
- prepareShowMeasureScale(idx) {
835
- return idx === 0 && this.showMeasureScale === "true";
836
- }
837
- prepareMeasureUnit() {
838
- if (this.measureUnit === "" || this.measureUnit == null) {
839
- return "";
840
- }
841
- return this.measureUnit;
842
- }
843
- prepareStackConfig() {
844
- if (isBlankInput(this.stack)) {
845
- return null;
846
- }
847
- try {
848
- const parsed = JSON.parse(this.stack);
849
- return {
850
- by: parsed.by,
851
- mode: parsed.mode || StackMode.ABSOLUTE,
852
- order: parsed.order || StackOrder.DATASET,
853
- };
854
- }
855
- catch (_a) {
856
- return null;
857
- }
858
- }
859
- prepareLineFullWidth() {
860
- return this.lineFullWidth === "true";
861
- }
862
- prepareChartMode() {
863
- var _a;
864
- const mode = (_a = this.chartMode) === null || _a === void 0 ? void 0 : _a.toLowerCase();
865
- if (mode === "line") {
866
- return ChartMode.LINE;
867
- }
868
- else if (mode === "auto") {
869
- return ChartMode.AUTO;
870
- }
871
- return ChartMode.BAR;
872
- }
873
- prepareMaxBars() {
874
- return Math.floor(Number(this.maxBars) || 28);
875
- }
876
- chartTemplate(localScenarioString, idx) {
877
- const preparedI18n = this.prepareI18n();
878
- const preparedStyle = this.prepareStyle();
879
- const fullParentWidth = getParentDimensions(this.element).width;
880
- const effectiveFactor = this.getEffectiveScaleFactor();
881
- const ppu = this.preparePixelPerUnit();
882
- const ppp = this.preparePixelPerPercentage();
883
- return (h("ibcs-chart-time", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: this.prepareScenarios(), variances: [localScenarioString], hideAxisLabels: this.prepareHideAxisLabels(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), leftSideOffsetForHorizontalSync: this.prepareLeftSideOffset(preparedI18n, preparedStyle), styles: preparedStyle, i18n: preparedI18n, order: this.prepareOrder(), level: this.prepareLevel(), dateInterval: this.prepareDateInterval(), intervalSpanLimit: this.prepareIntervalSpanLimit(), axisLabelsMode: this.prepareAxisLabelsMode(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showOverlayAvg: this.prepareAvg(), showOverlayMedian: this.prepareMedian(), showMeasureScale: this.prepareShowMeasureScale(idx), chartMode: this.prepareChartMode(), maxBars: this.prepareMaxBars(), stackConfig: this.prepareStackConfig(), lineFullWidth: this.prepareLineFullWidth(), containerWidth: fullParentWidth, parentDimensions: this.prepareDimension() }));
884
- }
885
- getEffectiveScaleFactor() {
886
- const { mode, factor } = parseScaling(this.scale);
887
- if (mode === "factor")
888
- return factor;
889
- if (mode === "auto" || mode === "empty")
890
- return this.appliedScaleFactor;
891
- return 1;
892
- }
893
- getFontStyles() {
894
- const effectiveFactor = this.getEffectiveScaleFactor();
895
- return this.componentStyle(($) => {
896
- var _a, _b, _c, _d;
897
- const baseFontSize = ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333;
898
- return {
899
- "--bn-font-family": ((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontFamily"]) || "'Noto Sans', sans-serif",
900
- "--bn-font-size": `${baseFontSize * effectiveFactor}px`,
901
- "--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
902
- "--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
903
- };
904
- });
905
- }
906
- render() {
907
- let scenariosArray = [""];
908
- const variancesArray = this.prepareVariances();
909
- if (variancesArray.length > 0) {
910
- scenariosArray = [...scenariosArray, ...variancesArray];
911
- }
912
- const fontStyles = this.getFontStyles();
913
- return (h(Host, { key: 'b1fbfa70b5fda0078c06f5983e2defc9c603a96b', style: fontStyles }, h("div", { key: '96666d16869645a1bbe9382a019ac78534229e55', class: "container" }, scenariosArray.map(this.chartTemplate))));
914
- }
915
- get element() { return getElement(this); }
916
- static get watchers() { return {
917
- "scenarios": [{
918
- "validateScenario": 0
919
- }],
920
- "variances": [{
921
- "validateVariances": 0
922
- }],
923
- "syncSpaceLeft": [{
924
- "validateLeftSync": 0
925
- }],
926
- "limit": [{
927
- "validateLimit": 0
928
- }],
929
- "unitScaling": [{
930
- "validateUnitScaling": 0
931
- }],
932
- "percentageScaling": [{
933
- "validatePercentageScaling": 0
934
- }],
935
- "level": [{
936
- "validateLevel": 0
937
- }],
938
- "order": [{
939
- "validateOrderList": 0
940
- }],
941
- "orderDirection": [{
942
- "validateOrderDirection": 0
943
- }],
944
- "dateInterval": [{
945
- "validateDateInterval": 0
946
- }],
947
- "chartMode": [{
948
- "validateChartMode": 0
949
- }],
950
- "maxBars": [{
951
- "validateMaxBars": 0
952
- }],
953
- "stack": [{
954
- "validateStack": 0
955
- }],
956
- "scale": [{
957
- "validateScaling": 0
958
- }],
959
- "axisLabelsMode": [{
960
- "validateAxisLabelsMode": 0
961
- }],
962
- "lineFullWidth": [{
963
- "validateLineFullWidth": 0
964
- }],
965
- "showCategories": [{
966
- "validateShowCategories": 0
967
- }],
968
- "measureScale": [{
969
- "validateMeasureScale": 0
970
- }],
971
- "showMeasureScale": [{
972
- "validateShowMeasureScale": 0
973
- }],
974
- "showOverlayAvg": [{
975
- "validateShowOverlayAvg": 0
976
- }],
977
- "showOverlayMedian": [{
978
- "validateShowOverlayMedian": 0
979
- }]
980
- }; }
981
- };
982
- Chart.MAX_SCALE_ITERATIONS = 3;
983
- Chart.style = bnChartTimeCss();
984
-
985
- export { Chart as bn_chart_time };