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

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 (673) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bn-template-engine/assets/bar.png +0 -0
  3. package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +195076 -0
  4. package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +142007 -0
  5. package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
  6. package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
  7. package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
  8. package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
  9. package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
  10. package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
  11. package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
  12. package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
  13. package/dist/bn-template-engine/assets/icons/pin.png +0 -0
  14. package/dist/bn-template-engine/assets/matrix.png +0 -0
  15. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -0
  16. package/dist/bn-template-engine/index.esm.js +0 -0
  17. package/dist/bn-template-engine/p--TeDldm8.js +1 -0
  18. package/dist/bn-template-engine/p-0e7dc113.entry.js +1 -0
  19. package/dist/bn-template-engine/p-1jFf17Vj.js +1 -0
  20. package/dist/bn-template-engine/p-264c6bad.entry.js +1 -0
  21. package/dist/bn-template-engine/p-326a0902.entry.js +1 -0
  22. package/dist/bn-template-engine/p-38a8bde3.entry.js +1 -0
  23. package/dist/bn-template-engine/p-577eafcd.entry.js +1 -0
  24. package/dist/bn-template-engine/p-5905cc43.entry.js +1 -0
  25. package/dist/bn-template-engine/p-5d155a72.entry.js +1 -0
  26. package/dist/bn-template-engine/p-65f8962a.entry.js +1 -0
  27. package/dist/bn-template-engine/p-6b8d1ebf.entry.js +1 -0
  28. package/dist/bn-template-engine/p-7995acb2.entry.js +1 -0
  29. package/dist/bn-template-engine/p-7afe431e.entry.js +1 -0
  30. package/dist/bn-template-engine/p-8014b1ac.entry.js +1 -0
  31. package/dist/bn-template-engine/p-80423fc8.entry.js +1 -0
  32. package/dist/bn-template-engine/p-91e74d42.entry.js +1 -0
  33. package/dist/bn-template-engine/p-930a9e29.entry.js +1 -0
  34. package/dist/bn-template-engine/p-93C9jL8R.js +1 -0
  35. package/dist/bn-template-engine/p-93ff8584.entry.js +1 -0
  36. package/dist/bn-template-engine/p-B0m0U4wJ.js +1 -0
  37. package/dist/bn-template-engine/p-B27Ax6P_.js +2 -0
  38. package/dist/bn-template-engine/p-B79VcHiT.js +1 -0
  39. package/dist/bn-template-engine/p-BBd0ZVLL.js +1 -0
  40. package/dist/bn-template-engine/p-BFTU3MAI.js +1 -0
  41. package/dist/bn-template-engine/p-BFatTBqh.js +1 -0
  42. package/dist/bn-template-engine/p-BQp6ZPYW.js +1 -0
  43. package/dist/bn-template-engine/p-BYmPQYxx.js +1 -0
  44. package/dist/bn-template-engine/p-BhEQy-2D.js +1 -0
  45. package/dist/bn-template-engine/p-BtVfu16B.js +1 -0
  46. package/dist/bn-template-engine/p-CY1RzLjU.js +1 -0
  47. package/dist/bn-template-engine/p-CfWnag33.js +1 -0
  48. package/dist/bn-template-engine/p-CnI71OA9.js +1 -0
  49. package/dist/bn-template-engine/p-Cp4MVxCu.js +1 -0
  50. package/dist/bn-template-engine/p-DQuL1Twl.js +1 -0
  51. package/dist/bn-template-engine/p-DbyXf6dF.js +1 -0
  52. package/dist/bn-template-engine/p-TdL-LRR9.js +1 -0
  53. package/dist/bn-template-engine/p-_LBTIfNN.js +1 -0
  54. package/dist/bn-template-engine/p-a342cd3c.entry.js +1 -0
  55. package/dist/bn-template-engine/p-ad94cf63.entry.js +1 -0
  56. package/dist/bn-template-engine/p-bc37d750.entry.js +1 -0
  57. package/dist/bn-template-engine/p-c9f050bf.entry.js +1 -0
  58. package/dist/bn-template-engine/p-d07a0ca3.entry.js +1 -0
  59. package/dist/bn-template-engine/p-e5f372af.entry.js +1 -0
  60. package/dist/bn-template-engine/p-e620028c.entry.js +1 -0
  61. package/dist/bn-template-engine/p-e81e116a.entry.js +1 -0
  62. package/dist/bn-template-engine/p-eca98070.entry.js +1 -0
  63. package/dist/bn-template-engine/p-ee6de950.entry.js +1 -0
  64. package/dist/bn-template-engine/p-efe0ef1e.entry.js +1 -0
  65. package/dist/bn-template-engine/p-f034f1b8.entry.js +1 -0
  66. package/dist/bn-template-engine/p-f1c1a8a3.entry.js +1 -0
  67. package/dist/bn-template-engine/p-fe573a1a.entry.js +1 -0
  68. package/dist/bn-template-engine/p-kMyLevYy.js +1 -0
  69. package/dist/cjs/DataFormatDigits-DmTbhF8q.js +142 -0
  70. package/dist/cjs/DateStringFactory-Dn0aRj2Y.js +453 -0
  71. package/dist/cjs/Order-B4NIqQWe.js +129 -0
  72. package/dist/cjs/SVGVariancesStyleGroup-Czizhngt.js +7973 -0
  73. package/dist/cjs/StringAdapter-0EbYMkR0.js +136 -0
  74. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
  75. package/dist/cjs/alasql.min-C_nHTuEQ.js +306 -0
  76. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  77. package/dist/cjs/bn-asset.cjs.entry.js +42 -0
  78. package/dist/cjs/bn-body_3.cjs.entry.js +413 -0
  79. package/dist/cjs/bn-card.cjs.entry.js +37 -0
  80. package/dist/cjs/bn-chart-structure.cjs.entry.js +705 -0
  81. package/dist/cjs/bn-chart-time.cjs.entry.js +987 -0
  82. package/dist/cjs/bn-component-style.cjs.entry.js +44 -0
  83. package/dist/cjs/bn-context_5.cjs.entry.js +3380 -0
  84. package/dist/cjs/bn-dataset.cjs.entry.js +278 -0
  85. package/dist/cjs/bn-grid.cjs.entry.js +407 -0
  86. package/dist/cjs/bn-image.cjs.entry.js +57 -0
  87. package/dist/cjs/bn-internationalization.cjs.entry.js +40 -0
  88. package/dist/cjs/bn-layout-card.cjs.entry.js +128 -0
  89. package/dist/cjs/bn-layout-page.cjs.entry.js +142 -0
  90. package/dist/cjs/bn-map.cjs.entry.js +425 -0
  91. package/dist/cjs/bn-message.cjs.entry.js +52 -0
  92. package/dist/cjs/bn-template-engine.cjs.js +52 -0
  93. package/dist/cjs/bn-template.cjs.entry.js +20 -0
  94. package/dist/cjs/bn-text.cjs.entry.js +286 -0
  95. package/dist/cjs/bn-tree.cjs.entry.js +969 -0
  96. package/dist/cjs/componentRegister-C17UFNPh.js +72 -0
  97. package/dist/cjs/constants-DHqQXSSd.js +158 -0
  98. package/dist/cjs/context-protocol-BkYHFkXE.js +661 -0
  99. package/dist/cjs/editor-companion.cjs.entry.js +49 -0
  100. package/dist/cjs/formatter-DIJL_crx.js +215 -0
  101. package/dist/cjs/ibcs-chart-structure.cjs.entry.js +2906 -0
  102. package/dist/cjs/ibcs-chart-time.cjs.entry.js +4140 -0
  103. package/dist/cjs/ibcs-map.cjs.entry.js +1075 -0
  104. package/dist/cjs/ibcs-title.cjs.entry.js +352 -0
  105. package/dist/cjs/index-CScBFiS1.js +4653 -0
  106. package/dist/cjs/index.cjs.js +2 -0
  107. package/dist/cjs/loader.cjs.js +13 -0
  108. package/dist/cjs/luxon-8hyy5YD7.js +8132 -0
  109. package/dist/cjs/scaling-B23eOtsC.js +67 -0
  110. package/dist/cjs/test-runner-card.cjs.entry.js +27 -0
  111. package/dist/cjs/test-runner-chart-time.cjs.entry.js +230 -0
  112. package/dist/cjs/test-runner-chart.cjs.entry.js +326 -0
  113. package/dist/cjs/test-runner-map.cjs.entry.js +1862 -0
  114. package/dist/cjs/test-runner-table.cjs.entry.js +477 -0
  115. package/dist/cjs/test-runner-time.cjs.entry.js +381 -0
  116. package/dist/cjs/test-runner-title.cjs.entry.js +115 -0
  117. package/dist/cjs/withBodyObserver-B0_W1VOf.js +39 -0
  118. package/dist/cjs/withComponentStatus-BrxL7usr.js +39 -0
  119. package/dist/cjs/withComponentStyle-C6KHnZHt.js +128 -0
  120. package/dist/cjs/withDataset-ZdN-RRTx.js +146 -0
  121. package/dist/cjs/withHasError-Dspb3lIV.js +154 -0
  122. package/dist/cjs/withStyled-Bf-stJTR.js +567 -0
  123. package/dist/cjs/withTranslation-Cz0M5maV.js +77 -0
  124. package/dist/collection/collection-manifest.json +48 -0
  125. package/dist/collection/components/bn-asset/bn-asset.css +3 -0
  126. package/dist/collection/components/bn-asset/bn-asset.js +67 -0
  127. package/dist/collection/components/bn-body/bn-body.css +9 -0
  128. package/dist/collection/components/bn-body/bn-body.js +38 -0
  129. package/dist/collection/components/bn-card/bn-card.css +21 -0
  130. package/dist/collection/components/bn-card/bn-card.js +38 -0
  131. package/dist/collection/components/bn-chart-structure/bn-chart-structure.css +105 -0
  132. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +1047 -0
  133. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +594 -0
  134. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +979 -0
  135. package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +39 -0
  136. package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +293 -0
  137. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +136 -0
  138. package/dist/collection/components/bn-chart-structure/utils/elements/Marker.js +118 -0
  139. package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +151 -0
  140. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +83 -0
  141. package/dist/collection/components/bn-chart-structure/utils/elements/index.js +6 -0
  142. package/dist/collection/components/bn-chart-structure/utils/factories/ScenarioFactory.js +119 -0
  143. package/dist/collection/components/bn-chart-structure/utils/factories/index.js +1 -0
  144. package/dist/collection/components/bn-chart-structure/utils/helper/CustomPattern.js +45 -0
  145. package/dist/collection/components/bn-chart-structure/utils/helper/ElementPositions.js +210 -0
  146. package/dist/collection/components/bn-chart-structure/utils/helper/MarkerPattern.js +46 -0
  147. package/dist/collection/components/bn-chart-structure/utils/helper/Padding.js +13 -0
  148. package/dist/collection/components/bn-chart-structure/utils/helper/index.js +15 -0
  149. package/dist/collection/components/bn-chart-structure/utils/model/DataPoint.js +101 -0
  150. package/dist/collection/components/bn-chart-structure/utils/model/OverflowConfig.js +1 -0
  151. package/dist/collection/components/bn-chart-structure/utils/model/StructureChartComponentConfig.js +106 -0
  152. package/dist/collection/components/bn-chart-structure/utils/model/StructureChartDataRow.js +127 -0
  153. package/dist/collection/components/bn-chart-structure/utils/model/index.js +45 -0
  154. package/dist/collection/components/bn-chart-structure/utils/model/styles/ScaleFactorsStructureChart.js +99 -0
  155. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +58 -0
  156. package/dist/collection/components/bn-chart-time/bn-chart-time.css +17 -0
  157. package/dist/collection/components/bn-chart-time/bn-chart-time.js +1510 -0
  158. package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +96 -0
  159. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +829 -0
  160. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +1388 -0
  161. package/dist/collection/components/bn-chart-time/utils/elements/AreaFill.js +83 -0
  162. package/dist/collection/components/bn-chart-time/utils/elements/Axis.js +42 -0
  163. package/dist/collection/components/bn-chart-time/utils/elements/Column.js +266 -0
  164. package/dist/collection/components/bn-chart-time/utils/elements/Label.js +174 -0
  165. package/dist/collection/components/bn-chart-time/utils/elements/Line.js +150 -0
  166. package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +267 -0
  167. package/dist/collection/components/bn-chart-time/utils/elements/Marker.js +121 -0
  168. package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +148 -0
  169. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +107 -0
  170. package/dist/collection/components/bn-chart-time/utils/elements/index.js +8 -0
  171. package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +146 -0
  172. package/dist/collection/components/bn-chart-time/utils/factories/index.js +1 -0
  173. package/dist/collection/components/bn-chart-time/utils/helper/CustomPattern.js +46 -0
  174. package/dist/collection/components/bn-chart-time/utils/helper/ElementPositions.js +178 -0
  175. package/dist/collection/components/bn-chart-time/utils/helper/LabelCollisionManager.js +199 -0
  176. package/dist/collection/components/bn-chart-time/utils/helper/MarkerPattern.js +84 -0
  177. package/dist/collection/components/bn-chart-time/utils/helper/Padding.js +13 -0
  178. package/dist/collection/components/bn-chart-time/utils/helper/index.js +5 -0
  179. package/dist/collection/components/bn-chart-time/utils/model/DataPoint.js +93 -0
  180. package/dist/collection/components/bn-chart-time/utils/model/OverflowConfig.js +1 -0
  181. package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +150 -0
  182. package/dist/collection/components/bn-chart-time/utils/model/TimeChartDataRow.js +146 -0
  183. package/dist/collection/components/bn-chart-time/utils/model/index.js +45 -0
  184. package/dist/collection/components/bn-chart-time/utils/model/styles/ScaleFactorsTimeChart.js +99 -0
  185. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +54 -0
  186. package/dist/collection/components/bn-component-style/bn-component-style.css +3 -0
  187. package/dist/collection/components/bn-component-style/bn-component-style.js +69 -0
  188. package/dist/collection/components/bn-context/bn-context.css +3 -0
  189. package/dist/collection/components/bn-context/bn-context.js +96 -0
  190. package/dist/collection/components/bn-dataset/bn-dataset.css +3 -0
  191. package/dist/collection/components/bn-dataset/bn-dataset.js +159 -0
  192. package/dist/collection/components/bn-datasource/bn-datasource.css +3 -0
  193. package/dist/collection/components/bn-datasource/bn-datasource.js +70 -0
  194. package/dist/collection/components/bn-footer/assets/bar.png +0 -0
  195. package/dist/collection/components/bn-footer/assets/matrix.png +0 -0
  196. package/dist/collection/components/bn-footer/bn-footer.css +40 -0
  197. package/dist/collection/components/bn-footer/bn-footer.js +146 -0
  198. package/dist/collection/components/bn-grid/bn-grid.css +37 -0
  199. package/dist/collection/components/bn-grid/bn-grid.js +467 -0
  200. package/dist/collection/components/bn-grid/utils/GridConfig.js +114 -0
  201. package/dist/collection/components/bn-image/bn-image.css +10 -0
  202. package/dist/collection/components/bn-image/bn-image.js +78 -0
  203. package/dist/collection/components/bn-internationalization/bn-internationalization.css +3 -0
  204. package/dist/collection/components/bn-internationalization/bn-internationalization.js +84 -0
  205. package/dist/collection/components/bn-layout-card/bn-layout-card.css +25 -0
  206. package/dist/collection/components/bn-layout-card/bn-layout-card.js +534 -0
  207. package/dist/collection/components/bn-layout-page/bn-layout-page.css +10 -0
  208. package/dist/collection/components/bn-layout-page/bn-layout-page.js +624 -0
  209. package/dist/collection/components/bn-map/bn-map.css +4 -0
  210. package/dist/collection/components/bn-map/bn-map.js +725 -0
  211. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +195076 -0
  212. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +142007 -0
  213. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
  214. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
  215. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
  216. package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
  217. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
  218. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
  219. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
  220. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
  221. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
  222. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +674 -0
  223. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +744 -0
  224. package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +9 -0
  225. package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +13 -0
  226. package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +11 -0
  227. package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +2 -0
  228. package/dist/collection/components/bn-message/assets/bar.png +0 -0
  229. package/dist/collection/components/bn-message/assets/matrix.png +0 -0
  230. package/dist/collection/components/bn-message/bn-message.css +31 -0
  231. package/dist/collection/components/bn-message/bn-message.js +96 -0
  232. package/dist/collection/components/bn-page/bn-page.css +252 -0
  233. package/dist/collection/components/bn-page/bn-page.js +118 -0
  234. package/dist/collection/components/bn-table/bn-table.css +5 -0
  235. package/dist/collection/components/bn-table/bn-table.js +1475 -0
  236. package/dist/collection/components/bn-table/ibcs-table.css +322 -0
  237. package/dist/collection/components/bn-table/ibcs-table.js +757 -0
  238. package/dist/collection/components/bn-table/utils/Table.js +182 -0
  239. package/dist/collection/components/bn-table/utils/elements/Cell.js +66 -0
  240. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +251 -0
  241. package/dist/collection/components/bn-table/utils/elements/TableRow.js +88 -0
  242. package/dist/collection/components/bn-table/utils/elements/index.js +3 -0
  243. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +380 -0
  244. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +62 -0
  245. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +750 -0
  246. package/dist/collection/components/bn-table/utils/helper/QueryGroup.js +38 -0
  247. package/dist/collection/components/bn-table/utils/helper/index.js +1 -0
  248. package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +136 -0
  249. package/dist/collection/components/bn-table/utils/model/TableDataRow.js +134 -0
  250. package/dist/collection/components/bn-table/utils/model/TableDrillGroup.js +42 -0
  251. package/dist/collection/components/bn-table/utils/model/index.js +63 -0
  252. package/dist/collection/components/bn-template/bn-template.js +38 -0
  253. package/dist/collection/components/bn-text/bn-text.css +14 -0
  254. package/dist/collection/components/bn-text/bn-text.js +343 -0
  255. package/dist/collection/components/bn-title/bn-title.css +11 -0
  256. package/dist/collection/components/bn-title/bn-title.js +541 -0
  257. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.css +15 -0
  258. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +321 -0
  259. package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +91 -0
  260. package/dist/collection/components/bn-title/ibcs-title/utils/factories/TitleDataSetFactory.js +86 -0
  261. package/dist/collection/components/bn-title/ibcs-title/utils/factories/index.js +1 -0
  262. package/dist/collection/components/bn-title/ibcs-title/utils/model/MeasureEntriy.js +25 -0
  263. package/dist/collection/components/bn-title/ibcs-title/utils/model/TimePeriod.js +33 -0
  264. package/dist/collection/components/bn-title/ibcs-title/utils/model/TitleConfig.js +48 -0
  265. package/dist/collection/components/bn-title/ibcs-title/utils/model/index.js +6 -0
  266. package/dist/collection/components/bn-tree/bn-tree.css +40 -0
  267. package/dist/collection/components/bn-tree/bn-tree.js +520 -0
  268. package/dist/collection/components/bn-tree/utils/EdgeRenderer.js +196 -0
  269. package/dist/collection/components/bn-tree/utils/TreeLayout.js +225 -0
  270. package/dist/collection/components/bn-tree/utils/TreeParser.js +180 -0
  271. package/dist/collection/components/editor-companion/editor-companion.css +3 -0
  272. package/dist/collection/components/editor-companion/editor-companion.js +130 -0
  273. package/dist/collection/context/context-protocol.js +84 -0
  274. package/dist/collection/declarations.js +1 -0
  275. package/dist/collection/index.js +2 -0
  276. package/dist/collection/stores/assets.js +12 -0
  277. package/dist/collection/stores/componentStyles.js +106 -0
  278. package/dist/collection/stores/context.js +1 -0
  279. package/dist/collection/stores/createScopedStores.js +31 -0
  280. package/dist/collection/stores/datasets.js +14 -0
  281. package/dist/collection/stores/datasetsMeta.js +14 -0
  282. package/dist/collection/stores/datasources.js +14 -0
  283. package/dist/collection/stores/internationalization.js +128 -0
  284. package/dist/collection/test-runner/test-runner-card.js +36 -0
  285. package/dist/collection/test-runner/test-runner-chart-time.js +234 -0
  286. package/dist/collection/test-runner/test-runner-chart.js +364 -0
  287. package/dist/collection/test-runner/test-runner-map.js +1901 -0
  288. package/dist/collection/test-runner/test-runner-table.js +469 -0
  289. package/dist/collection/test-runner/test-runner-time.js +399 -0
  290. package/dist/collection/test-runner/test-runner-title.js +108 -0
  291. package/dist/collection/utils/DataUriUtil.js +19 -0
  292. package/dist/collection/utils/DateStringFactory.js +448 -0
  293. package/dist/collection/utils/componentRegister.js +70 -0
  294. package/dist/collection/utils/constants.js +156 -0
  295. package/dist/collection/utils/dataAnalyzer.js +103 -0
  296. package/dist/collection/utils/datasetMetaCalculator.js +137 -0
  297. package/dist/collection/utils/flattenObject.js +28 -0
  298. package/dist/collection/utils/formatter.js +86 -0
  299. package/dist/collection/utils/helper/AdapterUtils.js +24 -0
  300. package/dist/collection/utils/helper/CompareUtil.js +42 -0
  301. package/dist/collection/utils/helper/IAdapter.js +1 -0
  302. package/dist/collection/utils/helper/StringAdapter.js +9 -0
  303. package/dist/collection/utils/ibcsRuleSet.js +120 -0
  304. package/dist/collection/utils/index.js +2 -0
  305. package/dist/collection/utils/model/ChartStyles.js +1 -0
  306. package/dist/collection/utils/model/DataFormatDigits.js +23 -0
  307. package/dist/collection/utils/model/DataQueryResultRow.js +1 -0
  308. package/dist/collection/utils/model/DatasetMeta.js +1 -0
  309. package/dist/collection/utils/model/DateFormat.js +1 -0
  310. package/dist/collection/utils/model/Order.js +56 -0
  311. package/dist/collection/utils/model/SiPrefix.js +23 -0
  312. package/dist/collection/utils/model/TextStyles.js +1 -0
  313. package/dist/collection/utils/model/VarianceScenario.js +33 -0
  314. package/dist/collection/utils/model/index.js +38 -0
  315. package/dist/collection/utils/model/styles/FontStyle.js +34 -0
  316. package/dist/collection/utils/model/styles/Padding.js +30 -0
  317. package/dist/collection/utils/model/styles/SVGStyle.js +47 -0
  318. package/dist/collection/utils/model/styles/SVGStyleGroup.js +48 -0
  319. package/dist/collection/utils/model/styles/SVGVariancesStyleGroup.js +45 -0
  320. package/dist/collection/utils/parentDimensions.js +44 -0
  321. package/dist/collection/utils/scaling.js +17 -0
  322. package/dist/collection/utils/stackColors.js +31 -0
  323. package/dist/collection/utils/styled/attributes.js +110 -0
  324. package/dist/collection/utils/styled/style-sheet.js +21 -0
  325. package/dist/collection/utils/styled/withStyled.js +71 -0
  326. package/dist/collection/utils/templateId.js +12 -0
  327. package/dist/collection/utils/utils.js +83 -0
  328. package/dist/collection/utils/validate.js +372 -0
  329. package/dist/collection/utils/withBodyObserver.js +35 -0
  330. package/dist/collection/utils/withComponentStatus.js +35 -0
  331. package/dist/collection/utils/withComponentStyle.js +74 -0
  332. package/dist/collection/utils/withDataset.js +142 -0
  333. package/dist/collection/utils/withDatasource.js +59 -0
  334. package/dist/collection/utils/withHasError.js +56 -0
  335. package/dist/collection/utils/withTranslation.js +73 -0
  336. package/dist/components/DataFormatDigits.js +1 -0
  337. package/dist/components/DateStringFactory.js +1 -0
  338. package/dist/components/Order.js +1 -0
  339. package/dist/components/SVGVariancesStyleGroup.js +1 -0
  340. package/dist/components/_commonjsHelpers.js +1 -0
  341. package/dist/components/alasql.min.js +1 -0
  342. package/dist/components/bn-asset.d.ts +11 -0
  343. package/dist/components/bn-asset.js +1 -0
  344. package/dist/components/bn-body.d.ts +11 -0
  345. package/dist/components/bn-body.js +1 -0
  346. package/dist/components/bn-body2.js +1 -0
  347. package/dist/components/bn-card.d.ts +11 -0
  348. package/dist/components/bn-card.js +1 -0
  349. package/dist/components/bn-card2.js +1 -0
  350. package/dist/components/bn-chart-structure.d.ts +11 -0
  351. package/dist/components/bn-chart-structure.js +1 -0
  352. package/dist/components/bn-chart-time.d.ts +11 -0
  353. package/dist/components/bn-chart-time.js +1 -0
  354. package/dist/components/bn-component-style.d.ts +11 -0
  355. package/dist/components/bn-component-style.js +1 -0
  356. package/dist/components/bn-context.d.ts +11 -0
  357. package/dist/components/bn-context.js +1 -0
  358. package/dist/components/bn-dataset.d.ts +11 -0
  359. package/dist/components/bn-dataset.js +1 -0
  360. package/dist/components/bn-datasource.d.ts +11 -0
  361. package/dist/components/bn-datasource.js +1 -0
  362. package/dist/components/bn-footer.d.ts +11 -0
  363. package/dist/components/bn-footer.js +1 -0
  364. package/dist/components/bn-footer2.js +1 -0
  365. package/dist/components/bn-grid.d.ts +11 -0
  366. package/dist/components/bn-grid.js +1 -0
  367. package/dist/components/bn-image.d.ts +11 -0
  368. package/dist/components/bn-image.js +1 -0
  369. package/dist/components/bn-internationalization.d.ts +11 -0
  370. package/dist/components/bn-internationalization.js +1 -0
  371. package/dist/components/bn-layout-card.d.ts +11 -0
  372. package/dist/components/bn-layout-card.js +1 -0
  373. package/dist/components/bn-layout-page.d.ts +11 -0
  374. package/dist/components/bn-layout-page.js +1 -0
  375. package/dist/components/bn-map.d.ts +11 -0
  376. package/dist/components/bn-map.js +1 -0
  377. package/dist/components/bn-message.d.ts +11 -0
  378. package/dist/components/bn-message.js +1 -0
  379. package/dist/components/bn-message2.js +1 -0
  380. package/dist/components/bn-page.d.ts +11 -0
  381. package/dist/components/bn-page.js +1 -0
  382. package/dist/components/bn-page2.js +1 -0
  383. package/dist/components/bn-table.d.ts +11 -0
  384. package/dist/components/bn-table.js +1 -0
  385. package/dist/components/bn-template.d.ts +11 -0
  386. package/dist/components/bn-template.js +1 -0
  387. package/dist/components/bn-text.d.ts +11 -0
  388. package/dist/components/bn-text.js +1 -0
  389. package/dist/components/bn-title.d.ts +11 -0
  390. package/dist/components/bn-title.js +1 -0
  391. package/dist/components/bn-title2.js +1 -0
  392. package/dist/components/bn-tree.d.ts +11 -0
  393. package/dist/components/bn-tree.js +1 -0
  394. package/dist/components/componentRegister.js +1 -0
  395. package/dist/components/context-protocol.js +1 -0
  396. package/dist/components/editor-companion.d.ts +11 -0
  397. package/dist/components/editor-companion.js +1 -0
  398. package/dist/components/ibcs-chart-structure.d.ts +11 -0
  399. package/dist/components/ibcs-chart-structure.js +1 -0
  400. package/dist/components/ibcs-chart-structure2.js +1 -0
  401. package/dist/components/ibcs-chart-time.d.ts +11 -0
  402. package/dist/components/ibcs-chart-time.js +1 -0
  403. package/dist/components/ibcs-chart-time2.js +1 -0
  404. package/dist/components/ibcs-map.d.ts +11 -0
  405. package/dist/components/ibcs-map.js +1 -0
  406. package/dist/components/ibcs-map2.js +1 -0
  407. package/dist/components/ibcs-table.d.ts +11 -0
  408. package/dist/components/ibcs-table.js +1 -0
  409. package/dist/components/ibcs-table2.js +1 -0
  410. package/dist/components/ibcs-title.d.ts +11 -0
  411. package/dist/components/ibcs-title.js +1 -0
  412. package/dist/components/ibcs-title2.js +1 -0
  413. package/dist/components/ibcsRuleSet.js +1 -0
  414. package/dist/components/index.d.ts +35 -0
  415. package/dist/components/index.js +1 -0
  416. package/dist/components/scaling.js +1 -0
  417. package/dist/components/test-runner-card.d.ts +11 -0
  418. package/dist/components/test-runner-card.js +1 -0
  419. package/dist/components/test-runner-chart-time.d.ts +11 -0
  420. package/dist/components/test-runner-chart-time.js +1 -0
  421. package/dist/components/test-runner-chart.d.ts +11 -0
  422. package/dist/components/test-runner-chart.js +1 -0
  423. package/dist/components/test-runner-map.d.ts +11 -0
  424. package/dist/components/test-runner-map.js +1 -0
  425. package/dist/components/test-runner-table.d.ts +11 -0
  426. package/dist/components/test-runner-table.js +1 -0
  427. package/dist/components/test-runner-time.d.ts +11 -0
  428. package/dist/components/test-runner-time.js +1 -0
  429. package/dist/components/test-runner-title.d.ts +11 -0
  430. package/dist/components/test-runner-title.js +1 -0
  431. package/dist/components/utils.js +1 -0
  432. package/dist/components/validate.js +1 -0
  433. package/dist/components/withBodyObserver.js +1 -0
  434. package/dist/components/withComponentStyle.js +1 -0
  435. package/dist/components/withDataset.js +1 -0
  436. package/dist/components/withHasError.js +1 -0
  437. package/dist/components/withStyled.js +1 -0
  438. package/dist/components/withTranslation.js +1 -0
  439. package/dist/esm/DataFormatDigits-Dt6gpIiZ.js +137 -0
  440. package/dist/esm/DateStringFactory-_Qiv0IvF.js +451 -0
  441. package/dist/esm/Order-B4fpLe_f.js +125 -0
  442. package/dist/esm/SVGVariancesStyleGroup-DlWgvpzs.js +7961 -0
  443. package/dist/esm/StringAdapter-BLvo1Krl.js +133 -0
  444. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
  445. package/dist/esm/alasql.min-CWu4NkIt.js +304 -0
  446. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  447. package/dist/esm/bn-asset.entry.js +40 -0
  448. package/dist/esm/bn-body_3.entry.js +409 -0
  449. package/dist/esm/bn-card.entry.js +35 -0
  450. package/dist/esm/bn-chart-structure.entry.js +703 -0
  451. package/dist/esm/bn-chart-time.entry.js +985 -0
  452. package/dist/esm/bn-component-style.entry.js +42 -0
  453. package/dist/esm/bn-context_5.entry.js +3374 -0
  454. package/dist/esm/bn-dataset.entry.js +276 -0
  455. package/dist/esm/bn-grid.entry.js +405 -0
  456. package/dist/esm/bn-image.entry.js +55 -0
  457. package/dist/esm/bn-internationalization.entry.js +38 -0
  458. package/dist/esm/bn-layout-card.entry.js +126 -0
  459. package/dist/esm/bn-layout-page.entry.js +140 -0
  460. package/dist/esm/bn-map.entry.js +423 -0
  461. package/dist/esm/bn-message.entry.js +50 -0
  462. package/dist/esm/bn-template-engine.js +48 -0
  463. package/dist/esm/bn-template.entry.js +18 -0
  464. package/dist/esm/bn-text.entry.js +284 -0
  465. package/dist/esm/bn-tree.entry.js +967 -0
  466. package/dist/esm/componentRegister-BtVfu16B.js +72 -0
  467. package/dist/esm/constants-kMyLevYy.js +158 -0
  468. package/dist/esm/context-protocol-DzeqZxg6.js +654 -0
  469. package/dist/esm/editor-companion.entry.js +47 -0
  470. package/dist/esm/formatter-DTMEZ6d8.js +211 -0
  471. package/dist/esm/ibcs-chart-structure.entry.js +2904 -0
  472. package/dist/esm/ibcs-chart-time.entry.js +4138 -0
  473. package/dist/esm/ibcs-map.entry.js +1073 -0
  474. package/dist/esm/ibcs-title.entry.js +350 -0
  475. package/dist/esm/index-B27Ax6P_.js +4635 -0
  476. package/dist/esm/index.js +1 -0
  477. package/dist/esm/loader.js +11 -0
  478. package/dist/esm/luxon-DbyXf6dF.js +8130 -0
  479. package/dist/esm/scaling-BBd0ZVLL.js +64 -0
  480. package/dist/esm/test-runner-card.entry.js +25 -0
  481. package/dist/esm/test-runner-chart-time.entry.js +228 -0
  482. package/dist/esm/test-runner-chart.entry.js +324 -0
  483. package/dist/esm/test-runner-map.entry.js +1860 -0
  484. package/dist/esm/test-runner-table.entry.js +475 -0
  485. package/dist/esm/test-runner-time.entry.js +379 -0
  486. package/dist/esm/test-runner-title.entry.js +113 -0
  487. package/dist/esm/withBodyObserver-gZpZiEIK.js +37 -0
  488. package/dist/esm/withComponentStatus-elELReKt.js +37 -0
  489. package/dist/esm/withComponentStyle-NaxfakAG.js +126 -0
  490. package/dist/esm/withDataset-BT2VQCsG.js +144 -0
  491. package/dist/esm/withHasError-C48fTE2k.js +150 -0
  492. package/dist/esm/withStyled-CpUTv74m.js +539 -0
  493. package/dist/esm/withTranslation-Do4GhleK.js +75 -0
  494. package/dist/index.cjs.js +1 -0
  495. package/dist/index.js +1 -0
  496. package/dist/types/components/bn-asset/bn-asset.d.ts +11 -0
  497. package/dist/types/components/bn-body/bn-body.d.ts +8 -0
  498. package/dist/types/components/bn-card/bn-card.d.ts +8 -0
  499. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +234 -0
  500. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +47 -0
  501. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +137 -0
  502. package/dist/types/components/bn-chart-structure/utils/elements/Axis.d.ts +29 -0
  503. package/dist/types/components/bn-chart-structure/utils/elements/Bar.d.ts +58 -0
  504. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +47 -0
  505. package/dist/types/components/bn-chart-structure/utils/elements/Marker.d.ts +33 -0
  506. package/dist/types/components/bn-chart-structure/utils/elements/Needle.d.ts +37 -0
  507. package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +25 -0
  508. package/dist/types/components/bn-chart-structure/utils/elements/index.d.ts +6 -0
  509. package/dist/types/components/bn-chart-structure/utils/factories/ScenarioFactory.d.ts +46 -0
  510. package/dist/types/components/bn-chart-structure/utils/factories/index.d.ts +1 -0
  511. package/dist/types/components/bn-chart-structure/utils/helper/CustomPattern.d.ts +20 -0
  512. package/dist/types/components/bn-chart-structure/utils/helper/ElementPositions.d.ts +60 -0
  513. package/dist/types/components/bn-chart-structure/utils/helper/MarkerPattern.d.ts +28 -0
  514. package/dist/types/components/bn-chart-structure/utils/helper/Padding.d.ts +14 -0
  515. package/dist/types/components/bn-chart-structure/utils/helper/index.d.ts +13 -0
  516. package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +44 -0
  517. package/dist/types/components/bn-chart-structure/utils/model/OverflowConfig.d.ts +7 -0
  518. package/dist/types/components/bn-chart-structure/utils/model/StructureChartComponentConfig.d.ts +60 -0
  519. package/dist/types/components/bn-chart-structure/utils/model/StructureChartDataRow.d.ts +61 -0
  520. package/dist/types/components/bn-chart-structure/utils/model/index.d.ts +108 -0
  521. package/dist/types/components/bn-chart-structure/utils/model/styles/ScaleFactorsStructureChart.d.ts +46 -0
  522. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +29 -0
  523. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +325 -0
  524. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +59 -0
  525. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +154 -0
  526. package/dist/types/components/bn-chart-time/utils/elements/AreaFill.d.ts +23 -0
  527. package/dist/types/components/bn-chart-time/utils/elements/Axis.d.ts +28 -0
  528. package/dist/types/components/bn-chart-time/utils/elements/Column.d.ts +68 -0
  529. package/dist/types/components/bn-chart-time/utils/elements/Label.d.ts +55 -0
  530. package/dist/types/components/bn-chart-time/utils/elements/Line.d.ts +48 -0
  531. package/dist/types/components/bn-chart-time/utils/elements/LineSeries.d.ts +74 -0
  532. package/dist/types/components/bn-chart-time/utils/elements/Marker.d.ts +37 -0
  533. package/dist/types/components/bn-chart-time/utils/elements/Needle.d.ts +41 -0
  534. package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +40 -0
  535. package/dist/types/components/bn-chart-time/utils/elements/index.d.ts +8 -0
  536. package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +65 -0
  537. package/dist/types/components/bn-chart-time/utils/factories/index.d.ts +1 -0
  538. package/dist/types/components/bn-chart-time/utils/helper/CustomPattern.d.ts +22 -0
  539. package/dist/types/components/bn-chart-time/utils/helper/ElementPositions.d.ts +60 -0
  540. package/dist/types/components/bn-chart-time/utils/helper/LabelCollisionManager.d.ts +101 -0
  541. package/dist/types/components/bn-chart-time/utils/helper/MarkerPattern.d.ts +42 -0
  542. package/dist/types/components/bn-chart-time/utils/helper/Padding.d.ts +14 -0
  543. package/dist/types/components/bn-chart-time/utils/helper/index.d.ts +5 -0
  544. package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +44 -0
  545. package/dist/types/components/bn-chart-time/utils/model/OverflowConfig.d.ts +7 -0
  546. package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +73 -0
  547. package/dist/types/components/bn-chart-time/utils/model/TimeChartDataRow.d.ts +62 -0
  548. package/dist/types/components/bn-chart-time/utils/model/index.d.ts +109 -0
  549. package/dist/types/components/bn-chart-time/utils/model/styles/ScaleFactorsTimeChart.d.ts +46 -0
  550. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +29 -0
  551. package/dist/types/components/bn-component-style/bn-component-style.d.ts +8 -0
  552. package/dist/types/components/bn-context/bn-context.d.ts +19 -0
  553. package/dist/types/components/bn-dataset/bn-dataset.d.ts +38 -0
  554. package/dist/types/components/bn-datasource/bn-datasource.d.ts +18 -0
  555. package/dist/types/components/bn-footer/bn-footer.d.ts +29 -0
  556. package/dist/types/components/bn-grid/bn-grid.d.ts +70 -0
  557. package/dist/types/components/bn-grid/utils/GridConfig.d.ts +47 -0
  558. package/dist/types/components/bn-image/bn-image.d.ts +22 -0
  559. package/dist/types/components/bn-internationalization/bn-internationalization.d.ts +9 -0
  560. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +38 -0
  561. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +40 -0
  562. package/dist/types/components/bn-map/bn-map.d.ts +122 -0
  563. package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +73 -0
  564. package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +8 -0
  565. package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +11 -0
  566. package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +9 -0
  567. package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +2 -0
  568. package/dist/types/components/bn-message/bn-message.d.ts +27 -0
  569. package/dist/types/components/bn-page/bn-page.d.ts +29 -0
  570. package/dist/types/components/bn-table/bn-table.d.ts +373 -0
  571. package/dist/types/components/bn-table/ibcs-table.d.ts +59 -0
  572. package/dist/types/components/bn-table/utils/Table.d.ts +61 -0
  573. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +36 -0
  574. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +45 -0
  575. package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +30 -0
  576. package/dist/types/components/bn-table/utils/elements/index.d.ts +3 -0
  577. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +114 -0
  578. package/dist/types/components/bn-table/utils/helper/ColumnStatistics.d.ts +21 -0
  579. package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +139 -0
  580. package/dist/types/components/bn-table/utils/helper/QueryGroup.d.ts +19 -0
  581. package/dist/types/components/bn-table/utils/helper/index.d.ts +1 -0
  582. package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +72 -0
  583. package/dist/types/components/bn-table/utils/model/TableDataRow.d.ts +70 -0
  584. package/dist/types/components/bn-table/utils/model/TableDrillGroup.d.ts +22 -0
  585. package/dist/types/components/bn-table/utils/model/index.d.ts +130 -0
  586. package/dist/types/components/bn-template/bn-template.d.ts +10 -0
  587. package/dist/types/components/bn-text/bn-text.d.ts +63 -0
  588. package/dist/types/components/bn-title/bn-title.d.ts +128 -0
  589. package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +23 -0
  590. package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +28 -0
  591. package/dist/types/components/bn-title/ibcs-title/utils/factories/TitleDataSetFactory.d.ts +26 -0
  592. package/dist/types/components/bn-title/ibcs-title/utils/factories/index.d.ts +1 -0
  593. package/dist/types/components/bn-title/ibcs-title/utils/model/MeasureEntriy.d.ts +11 -0
  594. package/dist/types/components/bn-title/ibcs-title/utils/model/TimePeriod.d.ts +15 -0
  595. package/dist/types/components/bn-title/ibcs-title/utils/model/TitleConfig.d.ts +25 -0
  596. package/dist/types/components/bn-title/ibcs-title/utils/model/index.d.ts +35 -0
  597. package/dist/types/components/bn-tree/bn-tree.d.ts +84 -0
  598. package/dist/types/components/bn-tree/utils/EdgeRenderer.d.ts +57 -0
  599. package/dist/types/components/bn-tree/utils/TreeLayout.d.ts +37 -0
  600. package/dist/types/components/bn-tree/utils/TreeParser.d.ts +42 -0
  601. package/dist/types/components/editor-companion/editor-companion.d.ts +18 -0
  602. package/dist/types/components.d.ts +3311 -0
  603. package/dist/types/context/context-protocol.d.ts +53 -0
  604. package/dist/types/declarations.d.ts +1 -0
  605. package/dist/types/index.d.ts +2 -0
  606. package/dist/types/stencil-public-runtime.d.ts +1860 -0
  607. package/dist/types/stores/assets.d.ts +12 -0
  608. package/dist/types/stores/componentStyles.d.ts +82 -0
  609. package/dist/types/stores/context.d.ts +12 -0
  610. package/dist/types/stores/createScopedStores.d.ts +12 -0
  611. package/dist/types/stores/datasets.d.ts +14 -0
  612. package/dist/types/stores/datasetsMeta.d.ts +14 -0
  613. package/dist/types/stores/datasources.d.ts +14 -0
  614. package/dist/types/stores/internationalization.d.ts +9 -0
  615. package/dist/types/test-runner/test-runner-card.d.ts +3 -0
  616. package/dist/types/test-runner/test-runner-chart-time.d.ts +3 -0
  617. package/dist/types/test-runner/test-runner-chart.d.ts +3 -0
  618. package/dist/types/test-runner/test-runner-map.d.ts +3 -0
  619. package/dist/types/test-runner/test-runner-table.d.ts +3 -0
  620. package/dist/types/test-runner/test-runner-time.d.ts +3 -0
  621. package/dist/types/test-runner/test-runner-title.d.ts +3 -0
  622. package/dist/types/utils/DataUriUtil.d.ts +5 -0
  623. package/dist/types/utils/DateStringFactory.d.ts +123 -0
  624. package/dist/types/utils/componentRegister.d.ts +38 -0
  625. package/dist/types/utils/constants.d.ts +142 -0
  626. package/dist/types/utils/dataAnalyzer.d.ts +56 -0
  627. package/dist/types/utils/datasetMetaCalculator.d.ts +16 -0
  628. package/dist/types/utils/flattenObject.d.ts +13 -0
  629. package/dist/types/utils/formatter.d.ts +34 -0
  630. package/dist/types/utils/helper/AdapterUtils.d.ts +11 -0
  631. package/dist/types/utils/helper/CompareUtil.d.ts +26 -0
  632. package/dist/types/utils/helper/IAdapter.d.ts +16 -0
  633. package/dist/types/utils/helper/StringAdapter.d.ts +5 -0
  634. package/dist/types/utils/ibcsRuleSet.d.ts +47 -0
  635. package/dist/types/utils/index.d.ts +2 -0
  636. package/dist/types/utils/model/ChartStyles.d.ts +58 -0
  637. package/dist/types/utils/model/DataFormatDigits.d.ts +11 -0
  638. package/dist/types/utils/model/DataQueryResultRow.d.ts +29 -0
  639. package/dist/types/utils/model/DatasetMeta.d.ts +43 -0
  640. package/dist/types/utils/model/DateFormat.d.ts +38 -0
  641. package/dist/types/utils/model/Order.d.ts +46 -0
  642. package/dist/types/utils/model/SiPrefix.d.ts +11 -0
  643. package/dist/types/utils/model/TextStyles.d.ts +10 -0
  644. package/dist/types/utils/model/VarianceScenario.d.ts +20 -0
  645. package/dist/types/utils/model/index.d.ts +37 -0
  646. package/dist/types/utils/model/styles/FontStyle.d.ts +13 -0
  647. package/dist/types/utils/model/styles/Padding.d.ts +11 -0
  648. package/dist/types/utils/model/styles/SVGStyle.d.ts +20 -0
  649. package/dist/types/utils/model/styles/SVGStyleGroup.d.ts +16 -0
  650. package/dist/types/utils/model/styles/SVGVariancesStyleGroup.d.ts +16 -0
  651. package/dist/types/utils/parentDimensions.d.ts +13 -0
  652. package/dist/types/utils/scaling.d.ts +22 -0
  653. package/dist/types/utils/stackColors.d.ts +20 -0
  654. package/dist/types/utils/styled/attributes.d.ts +6 -0
  655. package/dist/types/utils/styled/style-sheet.d.ts +10 -0
  656. package/dist/types/utils/styled/withStyled.d.ts +12 -0
  657. package/dist/types/utils/templateId.d.ts +9 -0
  658. package/dist/types/utils/utils.d.ts +36 -0
  659. package/dist/types/utils/validate.d.ts +55 -0
  660. package/dist/types/utils/withBodyObserver.d.ts +14 -0
  661. package/dist/types/utils/withComponentStatus.d.ts +15 -0
  662. package/dist/types/utils/withComponentStyle.d.ts +20 -0
  663. package/dist/types/utils/withDataset.d.ts +18 -0
  664. package/dist/types/utils/withDatasource.d.ts +16 -0
  665. package/dist/types/utils/withHasError.d.ts +35 -0
  666. package/dist/types/utils/withTranslation.d.ts +24 -0
  667. package/loader/cdn.js +1 -0
  668. package/loader/index.cjs.js +1 -0
  669. package/loader/index.d.ts +24 -0
  670. package/loader/index.es2017.js +1 -0
  671. package/loader/index.js +2 -0
  672. package/package.json +68 -0
  673. package/readme.md +164 -0
@@ -0,0 +1,55 @@
1
+ import { G } from "@svgdotjs/svg.js";
2
+ import { TimeChartStyle } from "../model/styles/TimeChartStyle";
3
+ import { DataFormatDigits } from "../../../../components";
4
+ import { SiPrefix } from "../../../../utils/model/SiPrefix";
5
+ /**
6
+ * Anchor point for label positioning relative to its coordinates.
7
+ * Vertical hooks control how the label is offset from its Y coordinate;
8
+ * horizontal hooks control text-anchor alignment (start/middle/end).
9
+ */
10
+ export declare enum HookLocation {
11
+ Left = 0,
12
+ Center = 1,
13
+ Right = 2,
14
+ Top = 3,
15
+ Bottom = 4
16
+ }
17
+ /**
18
+ * SVG text label used across all chart elements (columns, needles, markers, axes).
19
+ *
20
+ * Handles numeric formatting via Formatter.number() with configurable type (decimal/percent),
21
+ * digit precision, and SI prefix scaling. Variance labels prepend a "+" sign for positive values.
22
+ *
23
+ * The label is drawn with a semi-transparent white background rectangle to ensure
24
+ * readability over chart geometry. For stacked segments, the background is omitted
25
+ * and text color is derived from the segment fill for contrast.
26
+ *
27
+ * Positioning uses a two-axis hook system: verticalHookLocation shifts the label
28
+ * above/below/centered on the Y coordinate, horizontalHookLocation sets the SVG
29
+ * text-anchor (start/middle/end) relative to X.
30
+ */
31
+ export declare class Label {
32
+ readonly ID_SCENARIOLABEL: string;
33
+ readonly CSS_CATEGORIES: string;
34
+ private x;
35
+ private y;
36
+ private value;
37
+ private group;
38
+ private styles;
39
+ private isVarianceLabel;
40
+ private isRelativeLabel;
41
+ private segmentFillColor;
42
+ private verticalHookLocation;
43
+ private horizontalHookLocation;
44
+ constructor(parent: G, xPosition: number, yPosition: number, groupPrefix: string, value: number | string | null, styles: TimeChartStyle, verticalHookLocation: HookLocation, horizontalHookLocation: HookLocation);
45
+ setToVarianceLabel(): Label;
46
+ setToRelativeVarianceLabel(): Label;
47
+ setSegmentFill(color: string): Label;
48
+ updateGroup(newGroup: G): Label;
49
+ draw(displayLabel?: boolean, dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): Label;
50
+ isEmpty(): boolean;
51
+ setPos(xPosition: number, yPosition: number): Label;
52
+ forceStringTypeDraw(): this;
53
+ private drawLabel;
54
+ private createElementID;
55
+ }
@@ -0,0 +1,48 @@
1
+ import { DataPoint, TimeChartDimension } from "../model";
2
+ import { G } from "@svgdotjs/svg.js";
3
+ import { ElementPositions } from "../helper";
4
+ import { TimeChartStyle } from "../model/styles/TimeChartStyle";
5
+ import { DataFormatDigits } from "../../../../components";
6
+ import { SiPrefix } from "../../../../utils/model/SiPrefix";
7
+ /**
8
+ * Renders a line segment connecting two consecutive DataPoints in a time chart.
9
+ *
10
+ * Each Line instance represents the segment from a previous data point to the current one.
11
+ * Dimensions for both endpoints are computed so the SVG line can be drawn between them.
12
+ * The primary line (first scenario) receives the scenario label at the end of the series.
13
+ *
14
+ * Used by the overlay layer (average/median lines), not by the main LineSeries rendering.
15
+ */
16
+ export declare class Line {
17
+ private readonly ID_DATA_PREFIX;
18
+ private readonly ID_SCENARIO_PREFIX;
19
+ private readonly ID_RECT;
20
+ private readonly FALLBACK_COLOUR;
21
+ private readonly isPrimaryLine;
22
+ private readonly scenarioGroup;
23
+ private readonly LineBarStyles;
24
+ private dataPoint;
25
+ private readonly styles;
26
+ private index;
27
+ private position;
28
+ private label;
29
+ private scenarioLabel;
30
+ private LineGroup;
31
+ private isVarianceLine;
32
+ private dimensions;
33
+ private previousDimensions;
34
+ private hasData;
35
+ constructor(position: ElementPositions, styles: TimeChartStyle, dataPoint: DataPoint, previousDataPoint: DataPoint, index: number, isPrimaryLine: boolean, scenarioGroup: G, LineLabel: string | null);
36
+ setAsVariance(): Line;
37
+ updateLabelGroup(newGroup: G): Line;
38
+ draw(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): this;
39
+ createDimensions(dataPoint: DataPoint, index: number, isPrimaryBar: boolean): TimeChartDimension;
40
+ private getDataLabel;
41
+ private getScenarioLabel;
42
+ private convertToSVGStyle;
43
+ private drawScenarioLabel;
44
+ private drawLineDataLabel;
45
+ private getFillStyle;
46
+ private getScenarioStyle;
47
+ private isEmpty;
48
+ }
@@ -0,0 +1,74 @@
1
+ import { G } from "@svgdotjs/svg.js";
2
+ import { DataPoint } from "../model";
3
+ import { ElementPositions, LabelCollisionManager } from "../helper";
4
+ import { TimeChartStyle } from "../model/styles/TimeChartStyle";
5
+ import { DataFormatDigits } from "../../../../components";
6
+ import { SiPrefix } from "../../../../utils/model/SiPrefix";
7
+ export interface LineSeriesDataPoint {
8
+ dataPoint: DataPoint;
9
+ index: number;
10
+ }
11
+ export declare class LineSeries {
12
+ private readonly MARKER_SIZE;
13
+ private readonly LINE_WIDTH;
14
+ private readonly ID_LINE_PREFIX;
15
+ private readonly ID_MARKER_PREFIX;
16
+ private readonly ID_LABEL_PREFIX;
17
+ private readonly ESTIMATED_LABEL_WIDTH;
18
+ private readonly ESTIMATED_LABEL_HEIGHT;
19
+ private readonly scenarioGroup;
20
+ private readonly labelGroup;
21
+ private readonly styles;
22
+ private readonly position;
23
+ private readonly dataPoints;
24
+ private readonly scenarioName;
25
+ private readonly scenarioLabel;
26
+ private readonly collisionManager;
27
+ constructor(position: ElementPositions, styles: TimeChartStyle, dataPoints: LineSeriesDataPoint[], scenarioGroup: G, labelGroup: G, scenarioName: string, scenarioLabel: string | null, _i18n: Map<string | number, string>, collisionManager?: LabelCollisionManager | null);
28
+ /**
29
+ * Backward-compatible: draws everything (geometry + labels) in one call.
30
+ */
31
+ draw(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): LineSeries;
32
+ /**
33
+ * Phase 1: Draw only geometry (lines + markers). No labels.
34
+ */
35
+ drawGeometry(): LineSeries;
36
+ /**
37
+ * Phase 2: Draw only labels (value labels + scenario label).
38
+ * Call this after all series geometry is drawn, in priority order.
39
+ */
40
+ drawLabels(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): LineSeries;
41
+ private getLineStyle;
42
+ /**
43
+ * Extracts the scenario variant number (1-4) from the scenario name.
44
+ * e.g., "ac1" -> 1, "pp2" -> 2, "fc3" -> 3, "pl4" -> 4
45
+ */
46
+ private getScenarioVariant;
47
+ /**
48
+ * Draws a square marker (variant 1: ac1, pp1, fc1, pl1)
49
+ */
50
+ private drawSquareMarker;
51
+ /**
52
+ * Draws a circle marker (variant 2: ac2, pp2, fc2, pl2)
53
+ */
54
+ private drawCircleMarker;
55
+ /**
56
+ * Draws a triangle marker pointing up (variant 3: ac3, pp3, fc3, pl3)
57
+ */
58
+ private drawTriangleMarker;
59
+ /**
60
+ * Draws a diamond marker (variant 4: ac4, pp4, fc4, pl4)
61
+ */
62
+ private drawDiamondMarker;
63
+ private drawLines;
64
+ private drawMarkers;
65
+ /**
66
+ * Returns direction priority based on line direction at a given point.
67
+ * Default: Above. Only use Below first for true local minima
68
+ * (both neighbors higher than current point).
69
+ */
70
+ private getLabelPositionPriority;
71
+ private getScenarioType;
72
+ private drawValueLabels;
73
+ private drawScenarioLabel;
74
+ }
@@ -0,0 +1,37 @@
1
+ import { G } from "@svgdotjs/svg.js";
2
+ import { DataPoint, TimeChartDimension } from "../model";
3
+ import { ElementPositions } from "../helper";
4
+ import { TimeChartStyle } from "../model/styles/TimeChartStyle";
5
+ import { SVGPolgonPattern } from "../../../../utils/model";
6
+ /**
7
+ * Renders a diamond/triangle marker indicator for PP or PL reference values in a time chart.
8
+ *
9
+ * Markers are small polygon shapes (defined by SVGPolgonPattern) positioned at the
10
+ * data point's scaled value height. They consist of a white background polygon for
11
+ * contrast and a foreground polygon with scenario-specific fill/stroke.
12
+ *
13
+ * Primary markers appear to the left of the column center; secondary markers to the right.
14
+ * Each carries an optional scenario label that is drawn at the marker's data level.
15
+ */
16
+ export declare class Marker {
17
+ readonly ID_DATA_PREFIX: string;
18
+ readonly ID_SCENARIO_PREFIX: string;
19
+ readonly FALLBACK_COLOUR: string;
20
+ private readonly markerGroup;
21
+ private markerPattern;
22
+ private styles;
23
+ private scenarioLabel;
24
+ private scenario;
25
+ private readonly barStyles;
26
+ private _defaultMarkerPattern;
27
+ private position;
28
+ private dimensions;
29
+ private hasData;
30
+ constructor(position: ElementPositions, markerGroup: G, markerPattern: SVGPolgonPattern, scenario: string | null, styles: TimeChartStyle, dataPoint: DataPoint, index: number, labelText: string | null, isPrimaryMarker: boolean);
31
+ draw(): Marker;
32
+ createMarkerDimensions(dataPoint: DataPoint, index: number, isPrimaryMarker: boolean): TimeChartDimension;
33
+ private getScenarioLabel;
34
+ private convertToSVGStyle;
35
+ private isEmpty;
36
+ private getScenario;
37
+ }
@@ -0,0 +1,41 @@
1
+ import { DataPoint } from "../model";
2
+ import { G } from "@svgdotjs/svg.js";
3
+ import { ElementPositions } from "../helper";
4
+ import { TimeChartStyle } from "../model/styles/TimeChartStyle";
5
+ /**
6
+ * Renders a relative variance pin (needle) in an IBCS time chart.
7
+ *
8
+ * A needle is a thin vertical bar representing a percentage variance value,
9
+ * topped with an arrowhead. The head style depends on clipping:
10
+ * - Normal: a rectangular crossbar (T-shape)
11
+ * - Clipped (value exceeds 145% scale): a double-arrow polygon indicating the
12
+ * value was truncated to fit the chart area
13
+ *
14
+ * The needle body uses variance-based fill (positive/negative coloring),
15
+ * while the head always uses the AC scenario style for visual emphasis.
16
+ */
17
+ export declare class Needle {
18
+ readonly ID_DATA_PREFIX: string;
19
+ readonly ID_SCENARIO_PREFIX: string;
20
+ readonly ID_RECT: string;
21
+ readonly FALLBACK_COLOUR: string;
22
+ private dataPoint;
23
+ private index;
24
+ private position;
25
+ private dataLabel;
26
+ private readonly scenarioGroup;
27
+ private readonly barStyles;
28
+ private readonly styles;
29
+ private barGroup;
30
+ private dimensions;
31
+ private hasData;
32
+ constructor(position: ElementPositions, styles: TimeChartStyle, dataPoint: DataPoint, index: number, scenarioGroup: G);
33
+ updateLabelGroup(newGroup: G): Needle;
34
+ draw(): this;
35
+ private createDimensions;
36
+ private convertToSVGStyle;
37
+ private createClippedNeedleHead;
38
+ private createNeedleHead;
39
+ private isEmpty;
40
+ private getHeadYPosition;
41
+ }
@@ -0,0 +1,40 @@
1
+ import { G } from "@svgdotjs/svg.js";
2
+ import { ElementPositions } from "../helper";
3
+ import { DataPoint } from "../model";
4
+ import { TimeChartStyle } from "../model/styles/TimeChartStyle";
5
+ import { DataFormatDigits } from "../../../../components";
6
+ import { SiPrefix } from "../../../../utils/model/SiPrefix";
7
+ import { StackMode } from "../../../../utils/constants";
8
+ /**
9
+ * Renders a single segment within a stacked bar column in a time chart.
10
+ *
11
+ * Each StackedColumn represents one layer of the stack. It is positioned vertically
12
+ * based on its cumulative baseline value and draws a colored rectangle.
13
+ *
14
+ * Supports three stacking modes:
15
+ * - ABSOLUTE: segment height = value * pixelPerUnit
16
+ * - RELATIVE (100%): segment height proportional to its share of totalValue
17
+ * - ABSOLUTE_RELATIVE: same as absolute but labels show percentages
18
+ *
19
+ * Segment labels are shown only when the segment is tall enough (>= 18px) to avoid clutter.
20
+ * The topmost segment can draw a total label above the full stack via drawTotalLabel().
21
+ */
22
+ export declare class StackedColumn {
23
+ private readonly position;
24
+ private readonly styles;
25
+ private readonly group;
26
+ private readonly columnGroup;
27
+ private readonly dataPoint;
28
+ private readonly index;
29
+ private readonly baselineValue;
30
+ private readonly segmentIndex;
31
+ private readonly stackMode;
32
+ private readonly totalValue;
33
+ private hasData;
34
+ constructor(position: ElementPositions, styles: TimeChartStyle, dataPoint: DataPoint, index: number, baselineValue: number, _segmentLabel: string | null, segmentIndex: number, stackMode: StackMode, totalValue: number, _isScenarioStack: boolean, parentGroup: G);
35
+ draw(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): void;
36
+ /**
37
+ * Draw the total label above the topmost segment.
38
+ */
39
+ drawTotalLabel(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): void;
40
+ }
@@ -0,0 +1,8 @@
1
+ export * from "./Axis";
2
+ export * from "./Column";
3
+ export * from "./Marker";
4
+ export { Label, HookLocation } from "./Label";
5
+ export * from "./Needle";
6
+ export * from "./LineSeries";
7
+ export * from "./StackedColumn";
8
+ export * from "./AreaFill";
@@ -0,0 +1,65 @@
1
+ import { G } from "@svgdotjs/svg.js";
2
+ import { Column, Marker } from "../elements";
3
+ import { ElementPositions, LabelCollisionManager } from "../helper";
4
+ import { DataPoint } from "../model";
5
+ import { Needle } from "../elements/Needle";
6
+ import { TimeChartStyle } from "../model/styles/TimeChartStyle";
7
+ import { Line } from "../elements/Line";
8
+ import { LineSeries, LineSeriesDataPoint } from "../elements/LineSeries";
9
+ import { OverflowConfig } from "../model/OverflowConfig";
10
+ /**
11
+ * Factory for creating chart element instances (Column, Needle, Marker, Line, LineSeries)
12
+ * within the correct SVG group hierarchy.
13
+ *
14
+ * Manages 4 SVG group layers for z-ordering (back-to-front):
15
+ * - scenario2: secondary bars (PP) -- inserted before scenario1 so they render behind
16
+ * - scenario1: primary bars (AC) -- foreground
17
+ * - scenario3: primary markers (e.g. FC diamonds)
18
+ * - scenario4: secondary markers (e.g. PL triangles)
19
+ * - scenario1Label: label group, always rendered on top of all geometry
20
+ *
21
+ * createPrimaryBar() produces a foreground Column (AC) with data + scenario labels.
22
+ * createSecondaryBar() produces a background Column (PP) without data labels.
23
+ * createPrimaryMarker() / createSecondaryMarker() produce Marker instances on opposite sides.
24
+ * createVarianceBar() wraps a Column with variance styling.
25
+ * createRelativeVarianceBar() creates a Needle for percentage variance display.
26
+ * createLineSeries() creates a LineSeries for line chart mode.
27
+ */
28
+ export declare class ScenarioFactory {
29
+ styles: TimeChartStyle;
30
+ svgGroups: {
31
+ parent: G;
32
+ scenario1: G;
33
+ scenario2: G;
34
+ scenario3: G;
35
+ scenario4: G;
36
+ scenario1Label: G;
37
+ };
38
+ position: ElementPositions;
39
+ pixelPerUnit: number;
40
+ elementCnt: number;
41
+ private i18n;
42
+ private collisionManager;
43
+ private overflowConfig;
44
+ constructor(position: ElementPositions, scenariosGroupParent: G, styles: TimeChartStyle, elementCnt: number, i18n: Map<string | number, string>);
45
+ setOverflowConfig(config: OverflowConfig | null): void;
46
+ createLine(name: string, dataPoint: DataPoint, previousDataPoint: DataPoint, index: number): Line;
47
+ createPrimaryBar(dataPoint: DataPoint, index: number): Column;
48
+ createVarianceBar(dataPoint: DataPoint, index: number): Column;
49
+ createRelativeVarianceBar(dataPoint: DataPoint, index: number): Needle;
50
+ createSecondaryBar(dataPoint: DataPoint, index: number): Column;
51
+ createPrimaryMarker(dataPoint: DataPoint, index: number): Marker;
52
+ createSecondaryMarker(dataPoint: DataPoint, index: number): Marker;
53
+ private isLastDataPoint;
54
+ private isFirstDataPoint;
55
+ /**
56
+ * Sets the collision manager for line series label collision detection.
57
+ * Should be called before creating line series to enable collision detection across all series.
58
+ */
59
+ setCollisionManager(manager: LabelCollisionManager): void;
60
+ /**
61
+ * Moves the label group to the front of the SVG tree so labels render on top of all geometry.
62
+ */
63
+ moveLabelsToFront(): void;
64
+ createLineSeries(dataPoints: LineSeriesDataPoint[], scenarioName: string): LineSeries;
65
+ }
@@ -0,0 +1 @@
1
+ export * from "./ScenarioFactory";
@@ -0,0 +1,22 @@
1
+ import { Pattern, Svg } from "@svgdotjs/svg.js";
2
+ import { TimeChartStyle } from "../model/styles/TimeChartStyle";
3
+ import { SVGPolgonPattern } from "../../../../utils/model";
4
+ /**
5
+ * Generates SVG diagonal-line hatching patterns for forecast (FC) scenario bars.
6
+ *
7
+ * Creates a 10x10 SVG <pattern> tile with diagonal lines using the FC bar style colors.
8
+ * The resulting pattern is used as the fill for FC columns/bars to visually distinguish
9
+ * forecast data from actual data per IBCS conventions (hatched = forecast, solid = actual).
10
+ *
11
+ * bgOffset is computed from font size to center the foreground shape within the background.
12
+ */
13
+ export declare class CustomPattern {
14
+ bgOffset: number;
15
+ styles: TimeChartStyle;
16
+ pattern: Pattern;
17
+ container: Svg;
18
+ constructor(styles: TimeChartStyle);
19
+ private createFCPattern;
20
+ getFCPolygonPattern(): SVGPolgonPattern;
21
+ toString(): string;
22
+ }
@@ -0,0 +1,60 @@
1
+ import { Box, DataPoint, Point2D } from "../model";
2
+ import { Padding } from "./Padding";
3
+ import { G } from "@svgdotjs/svg.js";
4
+ import { ScaleFactorsTimeChart } from "../model/styles/ScaleFactorsTimeChart";
5
+ import { FontStyle } from "../../../../utils/model/styles/FontStyle";
6
+ /**
7
+ * Spatial layout engine for the time chart.
8
+ *
9
+ * Converts logical data model coordinates (column index, data values) into pixel positions
10
+ * for all chart elements. All spacings are derived from the font size multiplied by
11
+ * ScaleFactorsTimeChart factors, making the layout scale consistently with typography.
12
+ *
13
+ * Key coordinate reference points:
14
+ * - getColumnPositionY(): the Y coordinate of the horizontal axis baseline
15
+ * - getColumnCenterPositionX(index): center X for the column at the given time index
16
+ * - getAxisPositionY(isRelative): axis Y adjusted for relative variance offset
17
+ *
18
+ * The layout accounts for: padding, left-side label space, scenario label offsets,
19
+ * data label height, and the min/max data values to position the axis correctly
20
+ * so that bars grow upward (positive) or downward (negative) from the baseline.
21
+ */
22
+ export declare class ElementPositions {
23
+ categoryPosition: Point2D;
24
+ axisPosition: Point2D;
25
+ padding: Padding;
26
+ scaleFactors: ScaleFactorsTimeChart;
27
+ spacings: ScaleFactorsTimeChart;
28
+ categoriesBoxOffset: Box;
29
+ fontStlye: FontStyle;
30
+ columnValue: {
31
+ min: DataPoint;
32
+ max: DataPoint;
33
+ };
34
+ numberOfColumns: number;
35
+ leftSideLabelLength: number;
36
+ dataLabelHeight: number;
37
+ constructor(padding: Padding, scaleFactors: ScaleFactorsTimeChart, fontstyle: FontStyle, smallestDataPoint: DataPoint, highestDataPoint: DataPoint, numberOfColumns: number, leftSideLabelLength: number);
38
+ private caluculateDataLabelHeight;
39
+ getColumnCenterPositionX(index: number): number;
40
+ getAxisPositionY(isRelative: boolean): number;
41
+ getAxisPositionX(): number;
42
+ getColumnPositionX(index: number, isPrimaryColumn: boolean): number;
43
+ getColumnPositionY(): number;
44
+ getNeedlePositionY(): number;
45
+ getMarkerPositionX(index: number, isPrimaryMarker: boolean): number;
46
+ getMarkerPositionY(): number;
47
+ getAxisTitlePositionX(group: G): number;
48
+ getAxisTitlePositionY(isPositive: boolean, isRelative: boolean): number;
49
+ getColumnDataLabelPositionY(scaledUnit: number): number;
50
+ getNeedleDataLabelPositionY(scaledUnit: number): number;
51
+ getAxisEndPositionX(): number;
52
+ getColumnWidth(): number;
53
+ getNeedleWidth(): number;
54
+ getNeedleHeadWidth(): number;
55
+ getScenarioLabelPositionOffsetX(isPrimaryColumn: boolean): number;
56
+ private calculateSpacings;
57
+ private calculateCategoryPosition;
58
+ private calculateAxisPosition;
59
+ getMarkerScenarioLabelPositionOffsetX(isPrimaryColumn: boolean): number;
60
+ }
@@ -0,0 +1,101 @@
1
+ import { HookLocation } from "../elements/Label";
2
+ /**
3
+ * Scenario priority for label collision resolution.
4
+ * Lower number = higher priority. AC always wins.
5
+ */
6
+ export declare const SCENARIO_PRIORITY: Record<string, number>;
7
+ /**
8
+ * Direction a label can be placed relative to its marker.
9
+ */
10
+ export declare enum LabelDirection {
11
+ Above = 0,
12
+ Below = 1,
13
+ Left = 2,
14
+ Right = 3
15
+ }
16
+ /**
17
+ * Result of getOptimalPlacement: the computed label position and hooks, or null (hide).
18
+ */
19
+ export interface LabelPlacement {
20
+ labelX: number;
21
+ labelY: number;
22
+ verticalHook: HookLocation;
23
+ horizontalHook: HookLocation;
24
+ bounds: LabelBounds;
25
+ }
26
+ /**
27
+ * Represents the bounding box of a label for collision detection.
28
+ */
29
+ export interface LabelBounds {
30
+ x: number;
31
+ y: number;
32
+ width: number;
33
+ height: number;
34
+ pointIndex: number;
35
+ preferredHook: HookLocation;
36
+ scenarioType?: string;
37
+ }
38
+ /**
39
+ * Manages label collision detection across multiple line series in line charts.
40
+ * Tracks the bounding boxes of all registered labels and detects overlaps.
41
+ * Supports scenario-based priority: when labels collide and cannot be repositioned,
42
+ * lower-priority scenario labels are hidden (AC > PP > FC > PL).
43
+ *
44
+ * Uses 4-direction placement: Above, Below, Left, Right.
45
+ */
46
+ export declare class LabelCollisionManager {
47
+ private labels;
48
+ private scenarioLabels;
49
+ /**
50
+ * Clears all registered labels. Call this before drawing a new chart.
51
+ */
52
+ clear(): void;
53
+ /**
54
+ * Registers a label's bounding box for collision detection.
55
+ */
56
+ register(bounds: LabelBounds): void;
57
+ /**
58
+ * Checks if a label at the given bounds would collide with any existing labels.
59
+ */
60
+ hasCollision(bounds: LabelBounds): boolean;
61
+ /**
62
+ * Tries each direction in priorityOrder to find a non-colliding placement.
63
+ * Returns the first non-colliding LabelPlacement, or null if all 4 collide
64
+ * with higher-priority scenario labels (meaning this label should be hidden).
65
+ *
66
+ * @param centerX Center X position of the marker
67
+ * @param markerY Y position of the marker center
68
+ * @param width Estimated label width
69
+ * @param height Estimated label height
70
+ * @param pointIndex The data point index
71
+ * @param markerSize The marker size
72
+ * @param scenarioType e.g. "ac", "pp", "fc", "pl"
73
+ * @param priorityOrder Directions to try, in priority order
74
+ */
75
+ getOptimalPlacement(centerX: number, markerY: number, width: number, height: number, pointIndex: number, markerSize: number, scenarioType: string, priorityOrder: LabelDirection[]): LabelPlacement | null;
76
+ /**
77
+ * Computes the LabelPlacement for a given direction.
78
+ */
79
+ private calculatePlacementForDirection;
80
+ /**
81
+ * Checks if bounds collide with any registered label that has higher priority.
82
+ */
83
+ private collidesWithHigherPriority;
84
+ /**
85
+ * Checks whether a scenario label at the end of a line should be hidden
86
+ * because it's too close to a higher-priority scenario label.
87
+ */
88
+ shouldHideScenarioLabel(x: number, y: number, scenarioType: string, proximityThreshold?: number): boolean;
89
+ /**
90
+ * Registers a scenario label position for proximity checking.
91
+ */
92
+ registerScenarioLabel(x: number, y: number, scenarioType: string): void;
93
+ /**
94
+ * Checks if two bounding boxes intersect (overlap).
95
+ */
96
+ private intersects;
97
+ /**
98
+ * Gets the number of registered labels.
99
+ */
100
+ getLabelCount(): number;
101
+ }
@@ -0,0 +1,42 @@
1
+ import { SVGPolgonPattern } from "../../../../utils/model";
2
+ export declare class MarkerPattern {
3
+ markerUp: {
4
+ top: string;
5
+ left: string;
6
+ right: string;
7
+ };
8
+ markerDown: {
9
+ left: string;
10
+ right: string;
11
+ bottom: string;
12
+ };
13
+ markerUpBackground: {
14
+ top: string;
15
+ left: string;
16
+ right: string;
17
+ };
18
+ markerDownBackground: {
19
+ left: string;
20
+ right: string;
21
+ bottom: string;
22
+ };
23
+ bgOffset: number;
24
+ private markerRight;
25
+ private markerRightBackground;
26
+ private markerLeft;
27
+ private markerLeftBackground;
28
+ constructor(fontSize: number);
29
+ upMarkerPatternStrings(): SVGPolgonPattern;
30
+ downMarkerPatternStrings(): SVGPolgonPattern;
31
+ rightMarkerPatternStrings(): {
32
+ background: string;
33
+ foreground: string;
34
+ bgOffset: number;
35
+ };
36
+ leftMarkerPatternStrings(): {
37
+ background: string;
38
+ foreground: string;
39
+ bgOffset: number;
40
+ };
41
+ createPatternMapForStructureBar(): Map<string, SVGPolgonPattern>;
42
+ }
@@ -0,0 +1,14 @@
1
+ import { Box } from "../model";
2
+ export declare class Padding {
3
+ top: number;
4
+ bottom: number;
5
+ left: number;
6
+ right: number;
7
+ constructor(padding: {
8
+ top: number;
9
+ left: number;
10
+ right: number;
11
+ bottom: number;
12
+ });
13
+ addBoxTopLeft(addition: Box): Padding;
14
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./ElementPositions";
2
+ export * from "./Padding";
3
+ export * from "./MarkerPattern";
4
+ export * from "./CustomPattern";
5
+ export * from "./LabelCollisionManager";
@@ -0,0 +1,44 @@
1
+ import { Scenario } from "./index";
2
+ /**
3
+ * A single renderable data point in a time-series chart.
4
+ *
5
+ * Encapsulates a numeric value, its IBCS scenario type, and the vertical scale factor.
6
+ * Provides scaling and variance styling logic used by the chart renderer.
7
+ *
8
+ * Variance direction follows IBCS convention: the declared variance ("pos"/"neg") applies
9
+ * to non-negative values; for negative values, the style is flipped (pos becomes neg and
10
+ * vice versa) so that visual encoding always reflects the economic meaning.
11
+ */
12
+ export declare class DataPoint {
13
+ value: number | null;
14
+ /** Scenario identifier (e.g. Scenario.AC1) or raw string. */
15
+ scenario: Scenario | string | null;
16
+ /** Vertical scale: pixels per one data unit. */
17
+ pixelPerUnit: number;
18
+ /** Variance direction for IBCS color coding (POS=green, NEG=red, NEU=grey). */
19
+ variance: Scenario | string;
20
+ constructor(value: number | null, scenario: Scenario | string | null, pixelPerUnit: number | null, variance: Scenario | string | null);
21
+ isEmpty(): boolean;
22
+ /** Returns the value scaled to pixel height for absolute (non-percentage) bars. */
23
+ getScaledUnit(): number;
24
+ /**
25
+ * Returns the percentage value scaled to pixel height, clipped at +/-145%.
26
+ *
27
+ * Values beyond +/-1.45 (145%) are clamped to prevent extreme bars from
28
+ * distorting the chart layout. Use {@link isClipped} to check if clipping occurred.
29
+ */
30
+ getScaledPercentUnit(): number;
31
+ /**
32
+ * Returns the IBCS variance color style, flipping pos/neg for negative values.
33
+ *
34
+ * IBCS rule: a "positive variance" on a negative value is economically unfavorable,
35
+ * so the visual style must invert. NEU (neutral) is never flipped.
36
+ */
37
+ getVarianceStyle(): Scenario | string;
38
+ /** Returns true if the percentage value exceeds the +/-145% clipping threshold. */
39
+ isClipped(): boolean;
40
+ /** Returns the fixed display value (145) shown on clipped percentage bars. */
41
+ getClippedValue(): number;
42
+ /** Extracts the 2-character scenario type prefix (e.g. "ac" from "ac1", "pl" from "pl2"). */
43
+ getScenario(): string;
44
+ }