@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,967 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-B27Ax6P_.js';
2
+ import { i as isValidNumber, f as isValidBoolean, w as withStyled } from './withStyled-CpUTv74m.js';
3
+ import { w as withComponentStatus } from './withComponentStatus-elELReKt.js';
4
+ import { w as withComponentStyle } from './withComponentStyle-NaxfakAG.js';
5
+ import { w as withHasError } from './withHasError-C48fTE2k.js';
6
+ import './constants-kMyLevYy.js';
7
+ import './DateStringFactory-_Qiv0IvF.js';
8
+ import './luxon-DbyXf6dF.js';
9
+ import './Order-B4fpLe_f.js';
10
+ import './componentRegister-BtVfu16B.js';
11
+ import './context-protocol-DzeqZxg6.js';
12
+
13
+ /**
14
+ * Tree Parser utility for bn-tree component
15
+ * Handles JSON parsing and validation for tree edge configurations
16
+ */
17
+ const VALID_OPERATORS = ["*", "/", "+", "-", "x", "÷", "none"];
18
+ /**
19
+ * Parse the JSON edges configuration string into a TreeConfig object
20
+ * @param json - JSON string containing array of TreeEdge objects
21
+ * @returns TreeConfig object or null if parsing fails
22
+ */
23
+ function parseTreeConfig(json) {
24
+ if (!json || json.trim() === "") {
25
+ return null;
26
+ }
27
+ try {
28
+ const parsed = JSON.parse(json);
29
+ if (!Array.isArray(parsed)) {
30
+ return null;
31
+ }
32
+ const edges = parsed;
33
+ const adjacencyList = buildAdjacencyList(edges);
34
+ const allNodes = collectAllNodes(edges);
35
+ const rootNode = findRootNode(edges, allNodes);
36
+ return {
37
+ edges,
38
+ adjacencyList,
39
+ rootNode,
40
+ allNodes,
41
+ };
42
+ }
43
+ catch (e) {
44
+ console.error("parseTreeConfig: failed to parse tree configuration", e);
45
+ return null;
46
+ }
47
+ }
48
+ /**
49
+ * Validate the edges JSON configuration and return validation errors
50
+ * @param json - JSON string to validate
51
+ * @returns Array of error messages (empty if valid)
52
+ */
53
+ function validateEdges(json) {
54
+ const errors = [];
55
+ if (!json || json.trim() === "") {
56
+ errors.push("edges: value is required");
57
+ return errors;
58
+ }
59
+ let parsed;
60
+ try {
61
+ parsed = JSON.parse(json);
62
+ }
63
+ catch (_a) {
64
+ errors.push("edges: invalid JSON structure");
65
+ return errors;
66
+ }
67
+ if (!Array.isArray(parsed)) {
68
+ errors.push("edges: must be an array");
69
+ return errors;
70
+ }
71
+ if (parsed.length === 0) {
72
+ errors.push("edges: array must not be empty");
73
+ return errors;
74
+ }
75
+ const allNodes = new Set();
76
+ const targetNodes = new Set();
77
+ parsed.forEach((edge, index) => {
78
+ if (typeof edge !== "object" || edge === null) {
79
+ errors.push(`edges[${index}]: must be an object`);
80
+ return;
81
+ }
82
+ const typedEdge = edge;
83
+ if (typeof typedEdge.from !== "string" || typedEdge.from.trim() === "") {
84
+ errors.push(`edges[${index}]: 'from' is required and must be a non-empty string`);
85
+ }
86
+ else {
87
+ allNodes.add(typedEdge.from);
88
+ }
89
+ if (typeof typedEdge.to !== "string" || typedEdge.to.trim() === "") {
90
+ errors.push(`edges[${index}]: 'to' is required and must be a non-empty string`);
91
+ }
92
+ else {
93
+ allNodes.add(typedEdge.to);
94
+ targetNodes.add(typedEdge.to);
95
+ }
96
+ if (typedEdge.operator !== undefined) {
97
+ if (typeof typedEdge.operator !== "string" || !VALID_OPERATORS.includes(typedEdge.operator)) {
98
+ errors.push(`edges[${index}]: 'operator' must be one of: ${VALID_OPERATORS.join(", ")}`);
99
+ }
100
+ }
101
+ if (typedEdge.label !== undefined && typeof typedEdge.label !== "string") {
102
+ errors.push(`edges[${index}]: 'label' must be a string`);
103
+ }
104
+ if (typedEdge.style !== undefined) {
105
+ if (typeof typedEdge.style !== "object" || typedEdge.style === null) {
106
+ errors.push(`edges[${index}]: 'style' must be an object`);
107
+ }
108
+ else {
109
+ const style = typedEdge.style;
110
+ if (style.color !== undefined && typeof style.color !== "string") {
111
+ errors.push(`edges[${index}]: 'style.color' must be a string`);
112
+ }
113
+ if (style.width !== undefined && typeof style.width !== "number") {
114
+ errors.push(`edges[${index}]: 'style.width' must be a number`);
115
+ }
116
+ if (style.dasharray !== undefined && typeof style.dasharray !== "string") {
117
+ errors.push(`edges[${index}]: 'style.dasharray' must be a string`);
118
+ }
119
+ }
120
+ }
121
+ });
122
+ // Check for multiple roots (nodes that are not targets of any edge)
123
+ const rootNodes = Array.from(allNodes).filter((node) => !targetNodes.has(node));
124
+ if (rootNodes.length === 0) {
125
+ errors.push("edges: tree has no root node (circular reference detected)");
126
+ }
127
+ else if (rootNodes.length > 1) {
128
+ errors.push(`edges: tree has multiple root nodes: ${rootNodes.join(", ")}`);
129
+ }
130
+ return errors;
131
+ }
132
+ /**
133
+ * Build an adjacency list from edges (parent -> children mapping)
134
+ */
135
+ function buildAdjacencyList(edges) {
136
+ const adjacencyList = new Map();
137
+ for (const edge of edges) {
138
+ const children = adjacencyList.get(edge.from) || [];
139
+ children.push(edge.to);
140
+ adjacencyList.set(edge.from, children);
141
+ }
142
+ return adjacencyList;
143
+ }
144
+ /**
145
+ * Collect all unique node IDs from edges
146
+ */
147
+ function collectAllNodes(edges) {
148
+ const nodes = new Set();
149
+ for (const edge of edges) {
150
+ nodes.add(edge.from);
151
+ nodes.add(edge.to);
152
+ }
153
+ return nodes;
154
+ }
155
+ /**
156
+ * Find the root node (node with no incoming edges)
157
+ */
158
+ function findRootNode(edges, allNodes) {
159
+ const targetNodes = new Set();
160
+ for (const edge of edges) {
161
+ targetNodes.add(edge.to);
162
+ }
163
+ const rootNodes = Array.from(allNodes).filter((node) => !targetNodes.has(node));
164
+ return rootNodes.length === 1 ? rootNodes[0] : null;
165
+ }
166
+ /**
167
+ * Get the operator symbol to display between sibling nodes
168
+ */
169
+ function getOperatorSymbol(operator) {
170
+ switch (operator) {
171
+ case "*":
172
+ case "x":
173
+ return "×";
174
+ case "/":
175
+ case "÷":
176
+ return "÷";
177
+ case "+":
178
+ return "+";
179
+ case "-":
180
+ return "−";
181
+ case "none":
182
+ return "";
183
+ default:
184
+ return "";
185
+ }
186
+ }
187
+ /**
188
+ * Get the edge connecting a parent to a specific child
189
+ */
190
+ function getEdgeForChild(edges, parent, child) {
191
+ return edges.find((edge) => edge.from === parent && edge.to === child);
192
+ }
193
+
194
+ /**
195
+ * Tree Layout utility for bn-tree component
196
+ * Handles level assignment and grid positioning for tree nodes
197
+ */
198
+ /**
199
+ * Calculate the layout positions for all nodes in the tree
200
+ */
201
+ function calculateLayout(config, direction, levelSpacing, nodeSpacing) {
202
+ if (!config.rootNode) {
203
+ return {
204
+ positions: new Map(),
205
+ gridTemplateColumns: "",
206
+ gridTemplateRows: "",
207
+ maxLevel: 0,
208
+ maxIndex: 0,
209
+ };
210
+ }
211
+ // Step 1: Assign levels using BFS
212
+ const nodeLevels = assignLevels(config);
213
+ // Step 2: Calculate vertical positions (row indices) for each node
214
+ const nodeIndices = calculateNodeIndices(config);
215
+ // Step 3: Calculate grid positions based on direction
216
+ const positions = calculateGridPositions(config, nodeLevels, nodeIndices, direction);
217
+ // Step 4: Generate CSS grid templates
218
+ const maxLevel = Math.max(...Array.from(nodeLevels.values()));
219
+ const maxIndex = Math.max(...Array.from(nodeIndices.values()).map((ni) => ni.endIndex));
220
+ const { gridTemplateColumns, gridTemplateRows } = generateGridTemplates(maxLevel, maxIndex, direction, levelSpacing, nodeSpacing);
221
+ return {
222
+ positions,
223
+ gridTemplateColumns,
224
+ gridTemplateRows,
225
+ maxLevel,
226
+ maxIndex,
227
+ };
228
+ }
229
+ /**
230
+ * Assign levels to each node using BFS from root
231
+ */
232
+ function assignLevels(config) {
233
+ const levels = new Map();
234
+ if (!config.rootNode) {
235
+ return levels;
236
+ }
237
+ const queue = [{ node: config.rootNode, level: 0 }];
238
+ const visited = new Set();
239
+ while (queue.length > 0) {
240
+ const { node, level } = queue.shift();
241
+ if (visited.has(node)) {
242
+ continue;
243
+ }
244
+ visited.add(node);
245
+ levels.set(node, level);
246
+ const children = config.adjacencyList.get(node) || [];
247
+ for (const child of children) {
248
+ if (!visited.has(child)) {
249
+ queue.push({ node: child, level: level + 1 });
250
+ }
251
+ }
252
+ }
253
+ return levels;
254
+ }
255
+ /**
256
+ * Calculate vertical indices for nodes, ensuring parent nodes span their children.
257
+ * Handles DAG structures where a node may have multiple parents.
258
+ */
259
+ function calculateNodeIndices(config) {
260
+ const indices = new Map();
261
+ if (!config.rootNode) {
262
+ return indices;
263
+ }
264
+ // Assign indices using DFS, tracking visited nodes for DAG support
265
+ let currentIndex = 0;
266
+ function assignIndex(node) {
267
+ // If already visited (node has multiple parents), return existing index
268
+ const existing = indices.get(node);
269
+ if (existing) {
270
+ return existing;
271
+ }
272
+ const children = config.adjacencyList.get(node) || [];
273
+ if (children.length === 0) {
274
+ // Leaf node
275
+ const info = { startIndex: currentIndex, endIndex: currentIndex };
276
+ indices.set(node, info);
277
+ currentIndex++;
278
+ return info;
279
+ }
280
+ // Parent node: process children first
281
+ let startIndex = Infinity;
282
+ let endIndex = -Infinity;
283
+ for (const child of children) {
284
+ const childInfo = assignIndex(child);
285
+ startIndex = Math.min(startIndex, childInfo.startIndex);
286
+ endIndex = Math.max(endIndex, childInfo.endIndex);
287
+ }
288
+ const info = { startIndex, endIndex };
289
+ indices.set(node, info);
290
+ return info;
291
+ }
292
+ assignIndex(config.rootNode);
293
+ return indices;
294
+ }
295
+ /**
296
+ * Convert levels and indices to CSS grid positions based on direction
297
+ */
298
+ function calculateGridPositions(config, levels, indices, direction) {
299
+ var _a, _b;
300
+ const positions = new Map();
301
+ const maxLevel = Math.max(...Array.from(levels.values()));
302
+ for (const nodeId of config.allNodes) {
303
+ const level = (_a = levels.get(nodeId)) !== null && _a !== void 0 ? _a : 0;
304
+ const indexInfo = (_b = indices.get(nodeId)) !== null && _b !== void 0 ? _b : { startIndex: 0, endIndex: 0 };
305
+ let gridColumn;
306
+ let gridRow;
307
+ let gridRowSpan;
308
+ switch (direction) {
309
+ case "ltr":
310
+ // Left to right: levels are columns, indices are rows
311
+ gridColumn = level + 1; // CSS grid is 1-indexed
312
+ gridRow = indexInfo.startIndex + 1;
313
+ gridRowSpan = indexInfo.endIndex - indexInfo.startIndex + 1;
314
+ break;
315
+ case "rtl":
316
+ // Right to left: levels are reversed columns
317
+ gridColumn = maxLevel - level + 1;
318
+ gridRow = indexInfo.startIndex + 1;
319
+ gridRowSpan = indexInfo.endIndex - indexInfo.startIndex + 1;
320
+ break;
321
+ case "ttb":
322
+ // Top to bottom: levels are rows, indices are columns
323
+ gridRow = level + 1;
324
+ gridColumn = indexInfo.startIndex + 1;
325
+ gridRowSpan = 1;
326
+ break;
327
+ case "btt":
328
+ // Bottom to top: levels are reversed rows
329
+ gridRow = maxLevel - level + 1;
330
+ gridColumn = indexInfo.startIndex + 1;
331
+ gridRowSpan = 1;
332
+ break;
333
+ }
334
+ positions.set(nodeId, {
335
+ nodeId,
336
+ level,
337
+ index: indexInfo.startIndex,
338
+ gridColumn,
339
+ gridRow,
340
+ gridRowSpan,
341
+ });
342
+ }
343
+ return positions;
344
+ }
345
+ /**
346
+ * Generate CSS grid template strings
347
+ */
348
+ function generateGridTemplates(maxLevel, maxIndex, direction, levelSpacing, nodeSpacing) {
349
+ const isHorizontal = direction === "ltr" || direction === "rtl";
350
+ const numLevels = maxLevel + 1;
351
+ const numNodes = maxIndex + 1;
352
+ if (isHorizontal) {
353
+ // For horizontal layouts, columns represent levels, rows represent nodes
354
+ const columns = [];
355
+ for (let i = 0; i < numLevels; i++) {
356
+ columns.push("auto");
357
+ if (i < numLevels - 1) {
358
+ columns.push(`${levelSpacing}px`); // Spacer column
359
+ }
360
+ }
361
+ const rows = [];
362
+ for (let i = 0; i < numNodes; i++) {
363
+ rows.push("auto");
364
+ if (i < numNodes - 1) {
365
+ rows.push(`${nodeSpacing}px`); // Spacer row
366
+ }
367
+ }
368
+ return {
369
+ gridTemplateColumns: columns.join(" "),
370
+ gridTemplateRows: rows.join(" "),
371
+ };
372
+ }
373
+ else {
374
+ // For vertical layouts, rows represent levels, columns represent nodes
375
+ const rows = [];
376
+ for (let i = 0; i < numLevels; i++) {
377
+ rows.push("auto");
378
+ if (i < numLevels - 1) {
379
+ rows.push(`${levelSpacing}px`); // Spacer row
380
+ }
381
+ }
382
+ const columns = [];
383
+ for (let i = 0; i < numNodes; i++) {
384
+ columns.push("auto");
385
+ if (i < numNodes - 1) {
386
+ columns.push(`${nodeSpacing}px`); // Spacer column
387
+ }
388
+ }
389
+ return {
390
+ gridTemplateColumns: columns.join(" "),
391
+ gridTemplateRows: rows.join(" "),
392
+ };
393
+ }
394
+ }
395
+ /**
396
+ * Get the actual grid column accounting for spacer columns
397
+ */
398
+ function getActualGridColumn(baseColumn) {
399
+ // Account for spacer columns between levels
400
+ return (baseColumn - 1) * 2 + 1;
401
+ }
402
+ /**
403
+ * Get the actual grid row accounting for spacer rows
404
+ */
405
+ function getActualGridRow(baseRow) {
406
+ // Account for spacer rows between nodes
407
+ return (baseRow - 1) * 2 + 1;
408
+ }
409
+ /**
410
+ * Get the actual grid row span accounting for spacer rows
411
+ */
412
+ function getActualGridRowSpan(baseRowSpan) {
413
+ if (baseRowSpan <= 1) {
414
+ return 1;
415
+ }
416
+ // Span includes the spacer rows between nodes
417
+ return (baseRowSpan - 1) * 2 + 1;
418
+ }
419
+
420
+ /**
421
+ * Edge Renderer utility for bn-tree component
422
+ * Handles SVG path generation for connecting tree nodes
423
+ */
424
+ /**
425
+ * Calculate the bounding rectangle of a node element
426
+ */
427
+ function getNodeRect(element, containerRect) {
428
+ const rect = element.getBoundingClientRect();
429
+ const left = rect.left - containerRect.left;
430
+ const top = rect.top - containerRect.top;
431
+ return {
432
+ left,
433
+ top,
434
+ width: rect.width,
435
+ height: rect.height,
436
+ centerX: left + rect.width / 2,
437
+ centerY: top + rect.height / 2,
438
+ };
439
+ }
440
+ /**
441
+ * Get the connection point on a node based on layout direction
442
+ */
443
+ function getConnectionPoint(rect, isSource, direction) {
444
+ switch (direction) {
445
+ case "ltr":
446
+ // Left to right: source connects from right, target from left
447
+ return isSource ? { x: rect.left + rect.width, y: rect.centerY } : { x: rect.left, y: rect.centerY };
448
+ case "rtl":
449
+ // Right to left: source connects from left, target from right
450
+ return isSource ? { x: rect.left, y: rect.centerY } : { x: rect.left + rect.width, y: rect.centerY };
451
+ case "ttb":
452
+ // Top to bottom: source connects from bottom, target from top
453
+ return isSource ? { x: rect.centerX, y: rect.top + rect.height } : { x: rect.centerX, y: rect.top };
454
+ case "btt":
455
+ // Bottom to top: source connects from top, target from bottom
456
+ return isSource ? { x: rect.centerX, y: rect.top } : { x: rect.centerX, y: rect.top + rect.height };
457
+ }
458
+ }
459
+ /**
460
+ * Get the connection point on a node for multi-parent scenarios.
461
+ * When a node has multiple parents, each parent connects at a different
462
+ * vertical position on the target node's edge, spread around the center.
463
+ * @param parentIndex - Index of this parent (0-based)
464
+ * @param totalParents - Total number of parents for this node
465
+ * @param spacing - Spacing between connection points in pixels
466
+ */
467
+ function getMultiParentConnectionPoint(rect, direction, parentIndex, totalParents, spacing = 8) {
468
+ // Calculate offset from center for this parent
469
+ // Parents are spread evenly around center with given spacing
470
+ const totalSpread = (totalParents - 1) * spacing;
471
+ const offset = -totalSpread / 2 + parentIndex * spacing;
472
+ switch (direction) {
473
+ case "ltr":
474
+ // Left to right: target connects from left, offset vertically
475
+ return { x: rect.left, y: rect.centerY + offset };
476
+ case "rtl":
477
+ // Right to left: target connects from right, offset vertically
478
+ return { x: rect.left + rect.width, y: rect.centerY + offset };
479
+ case "ttb":
480
+ // Top to bottom: target connects from top, offset horizontally
481
+ return { x: rect.centerX + offset, y: rect.top };
482
+ case "btt":
483
+ // Bottom to top: target connects from bottom, offset horizontally
484
+ return { x: rect.centerX + offset, y: rect.top + rect.height };
485
+ }
486
+ }
487
+ /**
488
+ * Generate an SVG path connecting two points with the specified style
489
+ */
490
+ function generateEdgePath(start, end, style, direction) {
491
+ switch (style) {
492
+ case "straight":
493
+ return generateStraightPath(start, end);
494
+ case "curved":
495
+ return generateCurvedPath(start, end, direction);
496
+ case "orthogonal":
497
+ default:
498
+ return generateOrthogonalPath(start, end, direction);
499
+ }
500
+ }
501
+ /**
502
+ * Generate a straight line path
503
+ */
504
+ function generateStraightPath(start, end) {
505
+ const path = `M ${start.x} ${start.y} L ${end.x} ${end.y}`;
506
+ const midpoint = {
507
+ x: (start.x + end.x) / 2,
508
+ y: (start.y + end.y) / 2,
509
+ };
510
+ return { path, midpoint };
511
+ }
512
+ /**
513
+ * Generate a curved bezier path
514
+ */
515
+ function generateCurvedPath(start, end, direction) {
516
+ const isHorizontal = direction === "ltr" || direction === "rtl";
517
+ let controlPoint1;
518
+ let controlPoint2;
519
+ if (isHorizontal) {
520
+ const midX = (start.x + end.x) / 2;
521
+ controlPoint1 = { x: midX, y: start.y };
522
+ controlPoint2 = { x: midX, y: end.y };
523
+ }
524
+ else {
525
+ const midY = (start.y + end.y) / 2;
526
+ controlPoint1 = { x: start.x, y: midY };
527
+ controlPoint2 = { x: end.x, y: midY };
528
+ }
529
+ const path = `M ${start.x} ${start.y} C ${controlPoint1.x} ${controlPoint1.y}, ${controlPoint2.x} ${controlPoint2.y}, ${end.x} ${end.y}`;
530
+ // Midpoint of a cubic bezier at t=0.5
531
+ const midpoint = {
532
+ x: 0.125 * start.x + 0.375 * controlPoint1.x + 0.375 * controlPoint2.x + 0.125 * end.x,
533
+ y: 0.125 * start.y + 0.375 * controlPoint1.y + 0.375 * controlPoint2.y + 0.125 * end.y,
534
+ };
535
+ return { path, midpoint };
536
+ }
537
+ /**
538
+ * Generate an orthogonal (right-angle) path
539
+ * The bend point is positioned closer to the children (70% of the way) for better visual balance
540
+ */
541
+ function generateOrthogonalPath(start, end, direction) {
542
+ const isHorizontal = direction === "ltr" || direction === "rtl";
543
+ let path;
544
+ let midpoint;
545
+ const bendRatio = 0.7; // Position bend point 70% towards the end
546
+ if (isHorizontal) {
547
+ // For horizontal layouts, go horizontally first, then vertically
548
+ const midX = start.x + (end.x - start.x) * bendRatio;
549
+ path = `M ${start.x} ${start.y} L ${midX} ${start.y} L ${midX} ${end.y} L ${end.x} ${end.y}`;
550
+ midpoint = { x: midX, y: (start.y + end.y) / 2 };
551
+ }
552
+ else {
553
+ // For vertical layouts, go vertically first, then horizontally
554
+ const midY = start.y + (end.y - start.y) * bendRatio;
555
+ path = `M ${start.x} ${start.y} L ${start.x} ${midY} L ${end.x} ${midY} L ${end.x} ${end.y}`;
556
+ midpoint = { x: (start.x + end.x) / 2, y: midY };
557
+ }
558
+ return { path, midpoint };
559
+ }
560
+ /**
561
+ * Calculate the position for an operator label between sibling nodes.
562
+ * The operator is placed at the T-junction where the parent's line meets the vertical/horizontal split.
563
+ */
564
+ function calculateOperatorPosition(parentRect, sibling1Rect, sibling2Rect, direction) {
565
+ const bendRatio = 0.7; // Must match the bendRatio in generateOrthogonalPath
566
+ switch (direction) {
567
+ case "ltr": {
568
+ // T-junction: where parent's horizontal line meets the vertical split
569
+ const parentRight = parentRect.left + parentRect.width;
570
+ const childrenLeft = Math.min(sibling1Rect.left, sibling2Rect.left);
571
+ const midX = parentRight + (childrenLeft - parentRight) * bendRatio;
572
+ return {
573
+ x: midX,
574
+ y: parentRect.centerY, // At parent's Y level (the T-junction)
575
+ };
576
+ }
577
+ case "rtl": {
578
+ // T-junction for RTL
579
+ const parentLeft = parentRect.left;
580
+ const childrenRight = Math.max(sibling1Rect.left + sibling1Rect.width, sibling2Rect.left + sibling2Rect.width);
581
+ const midX = childrenRight + (parentLeft - childrenRight) * bendRatio;
582
+ return {
583
+ x: midX,
584
+ y: parentRect.centerY,
585
+ };
586
+ }
587
+ case "ttb": {
588
+ // T-junction for top-to-bottom
589
+ const parentBottom = parentRect.top + parentRect.height;
590
+ const childrenTop = Math.min(sibling1Rect.top, sibling2Rect.top);
591
+ const midY = parentBottom + (childrenTop - parentBottom) * bendRatio;
592
+ return {
593
+ x: parentRect.centerX, // At parent's X level (the T-junction)
594
+ y: midY,
595
+ };
596
+ }
597
+ case "btt": {
598
+ // T-junction for bottom-to-top
599
+ const parentTop = parentRect.top;
600
+ const childrenBottom = Math.max(sibling1Rect.top + sibling1Rect.height, sibling2Rect.top + sibling2Rect.height);
601
+ const midY = childrenBottom + (parentTop - childrenBottom) * bendRatio;
602
+ return {
603
+ x: parentRect.centerX,
604
+ y: midY,
605
+ };
606
+ }
607
+ }
608
+ }
609
+ /**
610
+ * Get SVG style attributes for an edge
611
+ */
612
+ function getEdgeSvgStyle(defaultColor, defaultWidth, edgeStyle) {
613
+ var _a, _b;
614
+ return Object.assign({ stroke: (_a = edgeStyle === null || edgeStyle === void 0 ? void 0 : edgeStyle.color) !== null && _a !== void 0 ? _a : defaultColor, strokeWidth: (_b = edgeStyle === null || edgeStyle === void 0 ? void 0 : edgeStyle.width) !== null && _b !== void 0 ? _b : defaultWidth }, ((edgeStyle === null || edgeStyle === void 0 ? void 0 : edgeStyle.dasharray) ? { strokeDasharray: edgeStyle.dasharray } : {}));
615
+ }
616
+
617
+ const bnTreeCss = () => `:host{display:inline-block;position:relative;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.tree-container{position:relative;display:inline-block}.tree-grid{position:relative;display:grid;align-items:center}.tree-node{position:relative;z-index:1;border:1px solid #404040;background:var(--bn-font-background, white)}.edge-layer{position:absolute;top:0;left:0;z-index:0;pointer-events:none;overflow:visible}.tree-error{display:flex;flex-wrap:wrap;gap:20px}`;
618
+
619
+ const ChartTree = class {
620
+ validateEdgesProp(newValue) {
621
+ const errId = "ERR_edges";
622
+ const validationErrors = validateEdges(newValue);
623
+ if (validationErrors.length > 0) {
624
+ this.errors.addOrReplace({
625
+ id: errId,
626
+ type: "error",
627
+ message: `edges: ${validationErrors.join("; ")}`,
628
+ });
629
+ this.treeConfig = null;
630
+ }
631
+ else {
632
+ this.errors.remove(errId);
633
+ this.treeConfig = parseTreeConfig(newValue);
634
+ }
635
+ this.recalculateLayout();
636
+ }
637
+ validateDirection(newValue) {
638
+ const errId = "ERR_direction";
639
+ const validValues = ["ltr", "rtl", "ttb", "btt"];
640
+ if (!validValues.includes(newValue)) {
641
+ this.errors.addOrReplace({
642
+ id: errId,
643
+ type: "warning",
644
+ message: `direction: invalid value '${newValue}', must be one of: ${validValues.join(", ")}`,
645
+ });
646
+ }
647
+ else {
648
+ this.errors.remove(errId);
649
+ }
650
+ this.recalculateLayout();
651
+ }
652
+ validateLevelSpacing(newValue) {
653
+ const errId = "ERR_levelSpacing";
654
+ if (!isValidNumber(newValue) || newValue < 0) {
655
+ this.errors.addOrReplace({
656
+ id: errId,
657
+ type: "warning",
658
+ message: `level-spacing: invalid value '${newValue}', must be a non-negative number`,
659
+ });
660
+ }
661
+ else {
662
+ this.errors.remove(errId);
663
+ }
664
+ this.recalculateLayout();
665
+ }
666
+ validateNodeSpacing(newValue) {
667
+ const errId = "ERR_nodeSpacing";
668
+ if (!isValidNumber(newValue) || newValue < 0) {
669
+ this.errors.addOrReplace({
670
+ id: errId,
671
+ type: "warning",
672
+ message: `node-spacing: invalid value '${newValue}', must be a non-negative number`,
673
+ });
674
+ }
675
+ else {
676
+ this.errors.remove(errId);
677
+ }
678
+ this.recalculateLayout();
679
+ }
680
+ validateEdgeStyle(newValue) {
681
+ const errId = "ERR_edgeStyle";
682
+ const validValues = ["straight", "orthogonal", "curved"];
683
+ if (!validValues.includes(newValue)) {
684
+ this.errors.addOrReplace({
685
+ id: errId,
686
+ type: "warning",
687
+ message: `edge-style: invalid value '${newValue}', must be one of: ${validValues.join(", ")}`,
688
+ });
689
+ }
690
+ else {
691
+ this.errors.remove(errId);
692
+ }
693
+ }
694
+ validateShowOperators(newValue) {
695
+ const errId = "ERR_showOperators";
696
+ if (!isValidBoolean(newValue)) {
697
+ this.errors.addOrReplace({
698
+ id: errId,
699
+ type: "warning",
700
+ message: `show-operators: invalid value '${newValue}', must be 'true' or 'false'`,
701
+ });
702
+ }
703
+ else {
704
+ this.errors.remove(errId);
705
+ }
706
+ }
707
+ constructor(hostRef) {
708
+ registerInstance(this, hostRef);
709
+ this.treeConfig = null;
710
+ this.layout = null;
711
+ this.nodeRects = new Map();
712
+ this.svgWidth = 0;
713
+ this.svgHeight = 0;
714
+ this.resizeObserver = null;
715
+ this.gridContainer = null;
716
+ /**
717
+ * Layout direction of the tree.
718
+ * - 'ltr': left to right (root on left)
719
+ * - 'rtl': right to left (root on right)
720
+ * - 'ttb': top to bottom (root on top)
721
+ * - 'btt': bottom to top (root on bottom)
722
+ */
723
+ this.direction = "ltr";
724
+ /**
725
+ * Spacing between hierarchy levels in pixels.
726
+ */
727
+ this.levelSpacing = 60;
728
+ /**
729
+ * Spacing between sibling nodes in pixels.
730
+ */
731
+ this.nodeSpacing = 20;
732
+ /**
733
+ * Edge line style.
734
+ * - 'straight': direct line between nodes
735
+ * - 'orthogonal': right-angle lines (default)
736
+ * - 'curved': smooth bezier curves
737
+ */
738
+ this.edgeStyle = "orthogonal";
739
+ /**
740
+ * Show operator labels between sibling nodes.
741
+ */
742
+ this.showOperators = "true";
743
+ withStyled(this);
744
+ withComponentStatus(this);
745
+ this.errors = withHasError(this);
746
+ this.componentStyle = withComponentStyle(this);
747
+ }
748
+ /**
749
+ * Get tree chart styles from component style store
750
+ */
751
+ getTreeStyle() {
752
+ return this.componentStyle(($) => {
753
+ const baseFontSize = $["global"].fontSizePx;
754
+ return {
755
+ edgeColor: $["bn-tree"].edgeColor,
756
+ edgeWidth: $["bn-tree"].edgeWidth,
757
+ operatorCircleRadius: $["bn-tree"].operatorCircleRadius,
758
+ operatorFontSize: baseFontSize * $["bn-tree"].operatorFontSizeScale,
759
+ operatorColor: $["bn-tree"].operatorColor,
760
+ };
761
+ });
762
+ }
763
+ componentWillLoad() {
764
+ this.validateEdgesProp(this.edges);
765
+ this.validateDirection(this.direction);
766
+ this.validateLevelSpacing(this.levelSpacing);
767
+ this.validateNodeSpacing(this.nodeSpacing);
768
+ this.validateEdgeStyle(this.edgeStyle);
769
+ this.validateShowOperators(this.showOperators);
770
+ }
771
+ componentDidLoad() {
772
+ this.setupResizeObserver();
773
+ this.updateNodeRects();
774
+ }
775
+ disconnectedCallback() {
776
+ if (this.resizeObserver) {
777
+ this.resizeObserver.disconnect();
778
+ this.resizeObserver = null;
779
+ }
780
+ }
781
+ setupResizeObserver() {
782
+ var _a;
783
+ this.gridContainer = (_a = this.element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".tree-grid");
784
+ if (!this.gridContainer) {
785
+ return;
786
+ }
787
+ this.resizeObserver = new ResizeObserver(() => {
788
+ this.updateNodeRects();
789
+ });
790
+ // Observe the grid container
791
+ this.resizeObserver.observe(this.gridContainer);
792
+ // Observe all slotted elements
793
+ const slots = this.element.querySelectorAll("[slot]");
794
+ slots.forEach((slot) => {
795
+ this.resizeObserver.observe(slot);
796
+ });
797
+ }
798
+ recalculateLayout() {
799
+ if (!this.treeConfig) {
800
+ this.layout = null;
801
+ return;
802
+ }
803
+ this.layout = calculateLayout(this.treeConfig, this.direction, this.levelSpacing, this.nodeSpacing);
804
+ }
805
+ updateNodeRects() {
806
+ if (!this.treeConfig || !this.gridContainer) {
807
+ return;
808
+ }
809
+ const containerRect = this.gridContainer.getBoundingClientRect();
810
+ const newRects = new Map();
811
+ for (const nodeId of this.treeConfig.allNodes) {
812
+ const slotElement = this.element.querySelector(`[slot="${nodeId}"]`);
813
+ if (slotElement) {
814
+ newRects.set(nodeId, getNodeRect(slotElement, containerRect));
815
+ }
816
+ }
817
+ this.nodeRects = newRects;
818
+ this.svgWidth = containerRect.width;
819
+ this.svgHeight = containerRect.height;
820
+ }
821
+ getSlotStyle(nodeId) {
822
+ if (!this.layout) {
823
+ return {};
824
+ }
825
+ const position = this.layout.positions.get(nodeId);
826
+ if (!position) {
827
+ return {};
828
+ }
829
+ const isHorizontal = this.direction === "ltr" || this.direction === "rtl";
830
+ if (isHorizontal) {
831
+ return {
832
+ "grid-column": String(getActualGridColumn(position.gridColumn)),
833
+ "grid-row": `${getActualGridRow(position.gridRow)} / span ${getActualGridRowSpan(position.gridRowSpan)}`,
834
+ "align-self": "center",
835
+ };
836
+ }
837
+ else {
838
+ return {
839
+ "grid-row": String(getActualGridRow(position.gridRow)),
840
+ "grid-column": String(getActualGridColumn(position.gridColumn)),
841
+ "justify-self": "center",
842
+ };
843
+ }
844
+ }
845
+ renderEdges() {
846
+ var _a;
847
+ if (!this.treeConfig || this.nodeRects.size === 0) {
848
+ return null;
849
+ }
850
+ const treeStyle = this.getTreeStyle();
851
+ const paths = [];
852
+ const operators = [];
853
+ // Build a map of child -> list of parents (to detect nodes with multiple parents)
854
+ const childToParents = new Map();
855
+ for (const edge of this.treeConfig.edges) {
856
+ const parents = childToParents.get(edge.to) || [];
857
+ parents.push(edge.from);
858
+ childToParents.set(edge.to, parents);
859
+ }
860
+ // Render edges connecting parents to children
861
+ for (const edge of this.treeConfig.edges) {
862
+ const fromRect = this.nodeRects.get(edge.from);
863
+ const toRect = this.nodeRects.get(edge.to);
864
+ if (!fromRect || !toRect) {
865
+ continue;
866
+ }
867
+ const start = getConnectionPoint(fromRect, true, this.direction);
868
+ // For nodes with multiple parents, use offset connection points
869
+ const parents = childToParents.get(edge.to) || [];
870
+ let end;
871
+ if (parents.length > 1) {
872
+ const parentIndex = parents.indexOf(edge.from);
873
+ end = getMultiParentConnectionPoint(toRect, this.direction, parentIndex, parents.length);
874
+ }
875
+ else {
876
+ end = getConnectionPoint(toRect, false, this.direction);
877
+ }
878
+ const { path } = generateEdgePath(start, end, this.edgeStyle, this.direction);
879
+ const svgStyle = getEdgeSvgStyle(treeStyle.edgeColor, treeStyle.edgeWidth, edge.style);
880
+ paths.push(h("path", { key: `edge-${edge.from}-${edge.to}`, d: path, fill: "none", stroke: svgStyle.stroke, "stroke-width": svgStyle.strokeWidth, "stroke-dasharray": svgStyle.strokeDasharray }));
881
+ }
882
+ // Render operators between siblings
883
+ if (this.showOperators === "true") {
884
+ for (const [parent, children] of this.treeConfig.adjacencyList.entries()) {
885
+ const parentRect = this.nodeRects.get(parent);
886
+ if (!parentRect) {
887
+ continue;
888
+ }
889
+ for (let i = 0; i < children.length - 1; i++) {
890
+ const child = children[i];
891
+ const nextChild = children[i + 1];
892
+ const edge = getEdgeForChild(this.treeConfig.edges, parent, child);
893
+ if (!(edge === null || edge === void 0 ? void 0 : edge.operator) || edge.operator === "none") {
894
+ continue;
895
+ }
896
+ const childRect = this.nodeRects.get(child);
897
+ const nextChildRect = this.nodeRects.get(nextChild);
898
+ if (!childRect || !nextChildRect) {
899
+ continue;
900
+ }
901
+ const operatorSymbol = (_a = edge.label) !== null && _a !== void 0 ? _a : getOperatorSymbol(edge.operator);
902
+ const position = calculateOperatorPosition(parentRect, childRect, nextChildRect, this.direction);
903
+ operators.push(h("g", { key: `operator-${parent}-${child}`, class: "operator-group" }, h("circle", { cx: position.x, cy: position.y, r: treeStyle.operatorCircleRadius, fill: "white", stroke: treeStyle.edgeColor, "stroke-width": treeStyle.edgeWidth }), h("text", { x: position.x, y: position.y, "text-anchor": "middle", "dominant-baseline": "central", style: {
904
+ fontSize: `${treeStyle.operatorFontSize}px`,
905
+ fill: treeStyle.operatorColor,
906
+ fontWeight: "bold",
907
+ } }, operatorSymbol)));
908
+ }
909
+ }
910
+ }
911
+ return (h("svg", { class: "edge-layer", width: this.svgWidth, height: this.svgHeight, style: { position: "absolute", top: "0", left: "0", pointerEvents: "none" } }, paths, operators));
912
+ }
913
+ renderSlots() {
914
+ if (!this.treeConfig || !this.layout) {
915
+ return null;
916
+ }
917
+ return Array.from(this.treeConfig.allNodes).map((nodeId) => (h("div", { key: nodeId, class: "tree-node", style: this.getSlotStyle(nodeId) }, h("slot", { name: nodeId }))));
918
+ }
919
+ getFontStyles() {
920
+ return this.componentStyle(($) => {
921
+ var _a, _b, _c, _d;
922
+ return ({
923
+ "--bn-font-family": ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontFamily"]) || "'Noto Sans', sans-serif",
924
+ "--bn-font-size": `${((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontSizePx"]) || 13.3333}px`,
925
+ "--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
926
+ "--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
927
+ });
928
+ });
929
+ }
930
+ render() {
931
+ const fontStyles = this.getFontStyles();
932
+ if (!this.treeConfig || !this.layout) {
933
+ return (h(Host, { style: fontStyles }, h("div", { class: "tree-container tree-error" }, h("slot", null))));
934
+ }
935
+ const gridStyle = {
936
+ display: "grid",
937
+ "grid-template-columns": this.layout.gridTemplateColumns,
938
+ "grid-template-rows": this.layout.gridTemplateRows,
939
+ position: "relative",
940
+ };
941
+ return (h(Host, { style: fontStyles }, h("div", { class: "tree-container" }, h("div", { class: "tree-grid", style: gridStyle }, this.renderEdges(), this.renderSlots()))));
942
+ }
943
+ get element() { return getElement(this); }
944
+ static get watchers() { return {
945
+ "edges": [{
946
+ "validateEdgesProp": 0
947
+ }],
948
+ "direction": [{
949
+ "validateDirection": 0
950
+ }],
951
+ "levelSpacing": [{
952
+ "validateLevelSpacing": 0
953
+ }],
954
+ "nodeSpacing": [{
955
+ "validateNodeSpacing": 0
956
+ }],
957
+ "edgeStyle": [{
958
+ "validateEdgeStyle": 0
959
+ }],
960
+ "showOperators": [{
961
+ "validateShowOperators": 0
962
+ }]
963
+ }; }
964
+ };
965
+ ChartTree.style = bnTreeCss();
966
+
967
+ export { ChartTree as bn_tree };