@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,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnAsset extends Components.BnAsset, HTMLElement {}
4
+ export const BnAsset: {
5
+ prototype: BnAsset;
6
+ new (): BnAsset;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as s,h as e,Host as r,transformTag as o}from"@stencil/core/internal/client";import{w as i,a as n}from"./withHasError.js";import{g as a}from"./context-protocol.js";import{w as c}from"./withBodyObserver.js";const h=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),i(this),this.errors=n(this),c(this,(t=>{this.stores||(this.stores=a(this.element));try{const s=t.replace(/\s/g,"");this.stores.assets.set(this.name,s)}catch(s){console.error("Error parsing asset",s,t),this.stores.assets.set(this.name,void 0)}}))}render(){return e(r,{key:"dfec9f90136278bddab194479301aa3fa5bc1e72"})}get element(){return this}static get style(){return":host{display:none}"}},[1,"bn-asset",{name:[1]}]),m=h,l=function(){"undefined"!=typeof customElements&&["bn-asset"].forEach((t=>{"bn-asset"===t&&(customElements.get(o(t))||customElements.define(o(t),h))}))};export{m as BnAsset,l as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnBody extends Components.BnBody, HTMLElement {}
4
+ export const BnBody: {
5
+ prototype: BnBody;
6
+ new (): BnBody;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{B as o,d as s}from"./bn-body2.js";const r=o,t=s;export{r as BnBody,t as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as o,h as n,Host as e,transformTag as s}from"@stencil/core/internal/client";import{w as i,a as r}from"./withHasError.js";import{w as f}from"./withComponentStyle.js";const l=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),i(this),this.errors=r(this),this.componentStyle=f(this)}getFontStyles(){return this.componentStyle((t=>{var o,n,e,s;return{"--bn-font-family":(null===(o=t.global)||void 0===o?void 0:o.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(n=t.global)||void 0===n?void 0:n.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(e=t.global)||void 0===e?void 0:e.fontColor)||"#000000","--bn-font-background":(null===(s=t.global)||void 0===s?void 0:s.fontBackgroundColor)||"#ffffff"}}))}render(){return n(e,{key:"f43978af1c6658c6fa165093c3ada6b5f3b5986d",style:this.getFontStyles()},n("slot",{key:"b9c97432089676fc373b1d5ee59573ef5681a5c5"}))}get element(){return this}static get style(){return':host{flex:1;position:relative;overflow:hidden;display:block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}'}},[257,"bn-body"]);function a(){"undefined"!=typeof customElements&&["bn-body"].forEach((t=>{"bn-body"===t&&(customElements.get(s(t))||customElements.define(s(t),l))}))}export{l as B,a as d}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnCard extends Components.BnCard, HTMLElement {}
4
+ export const BnCard: {
5
+ prototype: BnCard;
6
+ new (): BnCard;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{C as o,d as r}from"./bn-card2.js";const s=o,a=r;export{s as BnCard,a as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as o,h as e,Host as n,transformTag as s}from"@stencil/core/internal/client";import{w as r,a as i}from"./withHasError.js";import{w as a}from"./withComponentStyle.js";const f=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),r(this),this.errors=i(this),this.componentStyle=a(this)}render(){return e(n,{key:"92bcbc010336d3a542c86e182831bbfddda2aa9b",style:this.prepareStyle()},e("slot",{key:"d836aa5443283df158dcb50345aee0df97f74a6e"}))}prepareStyle(){return{"font-family":this.componentStyle((t=>t.global.fontFamily)),"font-size":`${this.componentStyle((t=>t.global.fontSizePx))}px`,"--bn-font-family":this.componentStyle((t=>t.global.fontFamily))||"'Noto Sans', sans-serif","--bn-font-size":`${this.componentStyle((t=>t.global.fontSizePx))||13.3333}px`,"--bn-font-color":this.componentStyle((t=>t.global.fontColor))||"#000000","--bn-font-background":this.componentStyle((t=>t.global.fontBackgroundColor))||"#ffffff"}}get element(){return this}static get style(){return':host{display:flex;flex-direction:column;justify-content:space-between;padding:0.25em;margin:0.5em;background-origin:content-box;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(.border){box-sizing:border-box;-webkit-box-sizing:border-box;border:0.1em solid #ddd}div{color:var(--bn-font-color, black)}'}},[257,"bn-card"]);function c(){"undefined"!=typeof customElements&&["bn-card"].forEach((t=>{"bn-card"===t&&(customElements.get(s(t))||customElements.define(s(t),f))}))}export{f as C,c as d}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnChartStructure extends Components.BnChartStructure, HTMLElement {}
4
+ export const BnChartStructure: {
5
+ prototype: BnChartStructure;
6
+ new (): BnChartStructure;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as e,HTMLElement as t,h as i,Host as s,transformTag as a}from"@stencil/core/internal/client";import{v as r,a as n,h as o,j as l,b as c,c as h,k as d,l as p,m as u,n as v,i as g}from"./validate.js";import{w as m}from"./withDataset.js";import{w as f,a as y}from"./withHasError.js";import{w as b}from"./withTranslation.js";import{a as S}from"./context-protocol.js";import{w}from"./withStyled.js";import{w as O}from"./withComponentStyle.js";import{g as k,p as x}from"./scaling.js";import{A as R,b as _,O as T,f as E,g as A}from"./Order.js";import{d as U}from"./ibcs-chart-structure2.js";const M=e(class extends t{validateScenario(e){const t=r(e),i="ERR_scenarios";t.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"scenarios: invalid value(s) '"+JSON.stringify(t)+"' are not supported."}):this.errors.remove(i)}validateVariances(e){const t="ERR_variances",i=n(e);i.length>0?this.errors.addOrReplace({id:t,type:"warning",message:"variances: invalid value(s) '"+JSON.stringify(i)+"' are not supported."}):this.errors.remove(t)}validateUnitScaling(e){const t="ERR_unitScaling";o(e)||this.pixelPerUnitGroupMap.has(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"unitScaling: invalid value(s) '"+e+"' are not supported."})}validatePercentageScaling(e){const t="ERR_percentageScaling";o(e)||this.pixelPerUnitGroupMap.has(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"percentageScaling: invalid value(s) '"+e+"' are not supported."})}validateLevel(e){const t="ERR_level";l(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"level: invalid value(s) '"+e+"' are not supported."})}validateOrderList(e){const t=c(e),i="ERR_order";t.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"order: invalid value(s) '"+JSON.stringify(t)+"' are not supported."}):this.errors.remove(i)}validateOrderDirection(e){const t="ERR_orderDirection";h(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"orderDirection: invalid value '"+(null==e?void 0:""+e)+"' is not supported."})}validateLimit(e){const t="ERR_limit";d(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"limit: invalid value '"+(null==e?void 0:""+e)+"' is not supported."})}validateShowCategories(e){const t="ERR_showCategories";p(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"showCategories: invalid value(s) '"+(null==e?void 0:""+e)+"' are not supported."})}validateMeasureScale(e){const t="ERR_measureScale";u(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"measureScale: invalid value '"+(null==e?void 0:""+e)+"' is not supported."})}validateShowMeasureScale(e){const t="ERR_grouped";p(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"showMeasureScale: invalid value(s) '"+(null==e?void 0:""+e)+"' are not supported."})}validateStack(e){const t="ERR_stack",i=v(e);i.length>0?this.errors.addOrReplace({id:t,type:"warning",message:i.join("; ")}):this.errors.remove(t)}validateScaling(e){if(null==e||""===e||"none"===e||"auto"===e)return void this.errors.remove("ERR_scale");const t=Number(e);isNaN(t)||t<=0?this.errors.addOrReplace({id:"ERR_scale",type:"warning",message:`Invalid scale value: "${e}". Use "none", "auto", or a positive number.`}):this.errors.remove("ERR_scale")}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.data=[],this.datasetMeta=null,this.appliedScaleFactor=1,this.chartTitle="",this.filter="",this.limit=0,this.showCategories="true",this.measureScale="greatest",this.showMeasureScale="false",this.measureUnit="",this.stack="",this.scenariosArray=[""],this.pixelPerUnitGroupMap=new Map,this._autoScaleGuard=!1,w(this),f(this),m(this,((e,t)=>{this.data=t||[]}),((e,t)=>{this.datasetMeta=t})),this.chartTemplate=this.chartTemplate.bind(this),this.errors=y(this),this.componentStyle=O(this),this.t=b(this).t}componentWillLoad(){this.validateScenario(this.scenarios),this.validateVariances(this.variances),this.validateUnitScaling(this.unitScaling),this.validateLevel(this.level),this.validateOrderDirection(this.orderDirection),this.validateOrderList(this.order),this.validateShowCategories(this.showCategories),this.validateMeasureScale(this.measureScale),this.validateShowMeasureScale(this.showMeasureScale),this.validateStack(this.stack),this.validateScaling(this.scale)}componentDidRender(){var e,t;const{mode:i}=x(this.scale);if("auto"!==i&&"empty"!==i){this._autoScaleGuard=!1;const e=k(this.element),t="WARN_overflow";return void(e.width>0&&this.element.scrollWidth>e.width+1?this.errors.addOrReplace({id:t,type:"warning",message:"Chart exceeds available space and will be cut off. Check unit-scaling value."}):this.errors.remove(t))}if(this._autoScaleGuard)return void(this._autoScaleGuard=!1);const s=this.element,{height:a}=k(s);if(a<=0)return;const r=this.componentStyle((e=>{var t;return(null===(t=e.global)||void 0===t?void 0:t.fontSizePx)||13.3333}));s.style.setProperty("--bn-font-size",r+"px");const n=null===(e=s.shadowRoot)||void 0===e?void 0:e.querySelector(".container"),o=null!==(t=null==n?void 0:n.scrollHeight)&&void 0!==t?t:s.scrollHeight;if(o<=a+1)return this.errors.remove("AUTO_scale"),void(1!==this.appliedScaleFactor&&(this._autoScaleGuard=!0,this.appliedScaleFactor=1));const l=(a-1)/o;s.style.setProperty("--bn-font-size",r*l+"px"),"empty"===i?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:"Auto-scaled chart by factor "+l.toFixed(3)}):this.errors.remove("AUTO_scale"),Math.abs(l-this.appliedScaleFactor)>.001&&(this._autoScaleGuard=!0,this.appliedScaleFactor=l)}prepareDimension(){const e=k(this.element);return this.canvasWidthSegmented=e.width/this.scenariosArray.length,{width:this.canvasWidthSegmented,height:e.height}}prepareScenarios(){var e,t,i,s;const a="auto"===(null===(e=this.scenarios)||void 0===e?void 0:e.trim().toLowerCase());return g(this.scenarios)||a?(null===(i=null===(t=this.datasetMeta)||void 0===t?void 0:t.availableScenarios)||void 0===i?void 0:i.length)>0?(a?this.errors.remove("AUTO_scenarios"):this.errors.addOrReplace({id:"AUTO_scenarios",type:"warning",message:"scenarios: not set, auto-detected: "+this.datasetMeta.availableScenarios.join(",")}),this.datasetMeta.availableScenarios):[]:(this.errors.remove("AUTO_scenarios"),null===(s=this.scenarios)||void 0===s?void 0:s.split(",").map((e=>e.trim())))}prepareVariances(){var e;return g(this.variances)?[]:null===(e=this.variances)||void 0===e?void 0:e.split(",").map((e=>e.trim()))}prepareHideCategories(e){return e>=1||"true"!==this.showCategories}prepareI18n(){const e=S,t=new Map([].map((e=>[e,this.t(".".concat(e))]))),i=new Map(e.map((e=>[e,this.t("global.".concat(e))])));return new Map([...i.entries(),...t.entries()])}preparePixelPerUnit(){var e;if(this.pixelPerUnitGroupMap.has(this.unitScaling))return this.errors.remove("AUTO_unitScaling"),this.pixelPerUnitGroupMap.get(this.unitScaling);if("auto"===(null===(e=this.unitScaling)||void 0===e?void 0:(""+e).trim().toLowerCase()))return this.errors.remove("AUTO_unitScaling"),0;const t=Number(this.unitScaling);return!isNaN(t)&&t>0?(this.errors.remove("AUTO_unitScaling"),t):(this.errors.addOrReplace({id:"AUTO_unitScaling",type:"warning",message:"unit-scaling: not set, auto-calculated to fit available space."}),0)}preparePixelPerPercentage(){return this.pixelPerUnitGroupMap.has(this.percentageScaling)?this.pixelPerUnitGroupMap.get(this.percentageScaling):100*Number(this.percentageScaling)}prepareLevel(){var e,t,i;const s="auto"===(null===(e=this.level)||void 0===e?void 0:e.trim().toLowerCase());return g(this.level)||s?(null===(t=this.datasetMeta)||void 0===t?void 0:t.suggestedLevel)?(s?this.errors.remove("AUTO_level"):this.errors.addOrReplace({id:"AUTO_level",type:"warning",message:"level: not set, auto-detected: "+this.datasetMeta.suggestedLevel}),R[this.datasetMeta.suggestedLevel.toUpperCase()]):void 0:(this.errors.remove("AUTO_level"),R[null===(i=this.level)||void 0===i?void 0:i.toUpperCase()])}prepareOrder(){var e,t,i;const s="auto"===(null===(e=this.order)||void 0===e?void 0:e.trim().toLowerCase());let a;return g(this.order)||s?(null===(t=this.datasetMeta)||void 0===t?void 0:t.suggestedOrder)?(s?this.errors.remove("AUTO_order"):this.errors.addOrReplace({id:"AUTO_order",type:"warning",message:"order: not set, auto-detected: "+this.datasetMeta.suggestedOrder}),a=this.datasetMeta.suggestedOrder):a=this.order:(this.errors.remove("AUTO_order"),a=this.order),{hierarchy:null==a?void 0:a.split(",").map((e=>T[null==e?void 0:e.toUpperCase()])),direction:_[null===(i=this.orderDirection)||void 0===i?void 0:i.toUpperCase()]}}prepareStyle(){const e=this.getEffectiveScaleFactor();return this.componentStyle((t=>{const i=t.global.fontSizePx*e;return{scaleFactors:{scenarioOffset:t["bn-chart-structure"].scaleFactors.scenarioOffset,scenarioLabelToBar:t["bn-chart-structure"].scaleFactors.scenarioLabelToBar,labelToBar:t["bn-chart-structure"].scaleFactors.labelToBar,labelToAxis:t["bn-chart-structure"].scaleFactors.labelToAxis,needleWidth:t["bn-chart-structure"].scaleFactors.needleWidth,needleHeadWidth:t["bn-chart-structure"].scaleFactors.needleHeadWidth,barWidth:t["bn-chart-structure"].scaleFactors.barWidth,varianceAxisLineWidth:t["bn-chart-structure"].scaleFactors.varianceAxisLineWidth,axisLineWidth:t["bn-chart-structure"].scaleFactors.axisLineWidth,auxiliaryLineWidth:t["bn-chart-structure"].scaleFactors.auxiliaryLineWidth,scenarioLineWidth:t["bn-chart-structure"].scaleFactors.scenarioLineWidth,markerWidth:t["bn-chart-structure"].scaleFactors.markerWidth,markerOffset:t["bn-chart-structure"].scaleFactors.markerOffset,categoryWidth:t["bn-chart-structure"].scaleFactors.categoryWidth,axisTickLength:t["bn-chart-structure"].scaleFactors.axisTickLength},fontStyles:{font:`${i}px ${t.global.fontFamily}`,size:i,color:t.global.fontColor,background:t.global.fontBackgroundColor,leading:1.8},axisStyles:t["bn-chart-structure"].axisStyles,barStyles:t["bn-chart-structure"].barStyles,varianceStyles:t["bn-chart-structure"].varianceStyles,padding:t["bn-chart-structure"].padding,pattern:null}}))}prepareChartTitle(e){return e>=1?"":this.chartTitle}prepareStackConfig(){if(g(this.stack))return null;try{const e=JSON.parse(this.stack);return{by:e.by,mode:e.mode||A.ABSOLUTE,order:e.order||E.DATASET}}catch(e){return null}}prepareFilter(){return 0===this.filter.length?"":this.filter}prepareLimit(){return Math.floor(Number(this.limit)||0)}getDataStructure(){return{IStructureChartDataRow:{operation:{type:"string",isOptional:!1,description:""},rowGroup:{type:"string",isOptional:!1,description:""},rowGroupIndex:{type:"number",isOptional:!1,description:""},category:{type:"string",isOptional:!1,description:""},categoryIndex:{type:"number",isOptional:!1,description:""},subCategory:{type:"string",isOptional:!1,description:""},subCategoryIndex:{type:"number",isOptional:!1,description:""},columnGroup:{type:"string",isOptional:!1,description:""},columnGroupIndex:{type:"number",isOptional:!1,description:""},columnSubGroup:{type:"string",isOptional:!1,description:""},columnSubGroupIndex:{type:"number",isOptional:!1,description:""},ac1:{type:"number",isOptional:!1,description:""},ac2:{type:"number",isOptional:!1,description:""},ac3:{type:"number",isOptional:!1,description:""},ac4:{type:"number",isOptional:!1,description:""},pp1:{type:"number",isOptional:!1,description:""},pp2:{type:"number",isOptional:!1,description:""},pp3:{type:"number",isOptional:!1,description:""},pp4:{type:"number",isOptional:!1,description:""},fc1:{type:"number",isOptional:!1,description:""},fc2:{type:"number",isOptional:!1,description:""},fc3:{type:"number",isOptional:!1,description:""},fc4:{type:"number",isOptional:!1,description:""},pl1:{type:"number",isOptional:!1,description:""},pl2:{type:"number",isOptional:!1,description:""},pl3:{type:"number",isOptional:!1,description:""},pl4:{type:"number",isOptional:!1,description:""}}}}prepareMeasureScale(){return g(this.measureScale)?"GREATEST":["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(this.measureScale.trim())||"LEAST"===this.measureScale.trim().toUpperCase()?this.measureScale.trim():"GREATEST"}prepareShowMeasureScale(e){return 0===e&&"true"===this.showMeasureScale}prepareMeasureUnit(){return""===this.measureUnit||null==this.measureUnit?"":this.measureUnit}chartTemplate(e,t){const s=this.getEffectiveScaleFactor(),a=this.preparePixelPerUnit(),r=this.preparePixelPerPercentage();return i("ibcs-chart-structure",{data:this.data,chartTitle:this.prepareChartTitle(t),scenarios:this.prepareScenarios(),variances:[e],hideCategories:this.prepareHideCategories(t),pixelPerUnit:a>0?a*s:0,pixelPerPercentage:r>0?r*s:0,limit:this.prepareLimit(),styles:this.prepareStyle(),i18n:this.prepareI18n(),order:this.prepareOrder(),level:this.prepareLevel(),filter:this.prepareFilter(),"measure-scale":this.prepareMeasureScale(),"measure-unit":this.prepareMeasureUnit(),showMeasureScale:this.prepareShowMeasureScale(t),stackConfig:this.prepareStackConfig(),parentDimensions:this.prepareDimension()})}getEffectiveScaleFactor(){const{mode:e,factor:t}=x(this.scale);return"factor"===e?t:"auto"===e||"empty"===e?this.appliedScaleFactor:1}getFontStyles(){const e=this.getEffectiveScaleFactor();return this.componentStyle((t=>{var i,s,a,r;const n=(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":n*e+"px","--bn-font-color":(null===(a=t.global)||void 0===a?void 0:a.fontColor)||"#000000","--bn-font-background":(null===(r=t.global)||void 0===r?void 0:r.fontBackgroundColor)||"#ffffff"}}))}render(){let e=[""];const t=this.prepareVariances();t.length>0&&(e=[...e,...t]);const a=this.getFontStyles();return i(s,{key:"292a75492d9ba0f6ae65e25aa9da26bc094ed69d",style:a},i("div",{key:"97e10ab499494b6fb71c628cdab049b077e62c44",class:"container"},e.map(this.chartTemplate)))}get element(){return this}static get watchers(){return{scenarios:[{validateScenario:0}],variances:[{validateVariances:0}],unitScaling:[{validateUnitScaling:0}],percentageScaling:[{validatePercentageScaling:0}],level:[{validateLevel:0}],order:[{validateOrderList:0}],orderDirection:[{validateOrderDirection:0}],limit:[{validateLimit:0}],showCategories:[{validateShowCategories:0}],measureScale:[{validateMeasureScale:0}],showMeasureScale:[{validateShowMeasureScale:0}],stack:[{validateStack:0}],scale:[{validateScaling:0}]}}static get style(){return':host{display:inline-block;position:relative;overflow:hidden}.container{display:flex;flex-direction:row}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}.categories{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.label-bg{fill:var(--bn-font-background, white);opacity:0.7}.label-text{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-title{text-align:center;font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-ac{stroke:black;stroke-width:0.1em}.axis-pp{stroke:grey;stroke-width:0.1em}.axis-fc{stroke:black;stroke-dasharray:2;stroke-width:0.1em}.axis-pl{stroke:white;stroke-width:0.1em;outline-offset:0em;outline:0.1em solid black}canvas{image-rendering:-moz-crisp-edges;image-rendering:-webkit-crisp-edges;image-rendering:pixelated;image-rendering:crisp-edges}.measure{font-weight:bold}span{display:inline-block}.hidePatternContainer{height:0;width:0}div{float:left}.warning{font-size:0.8em;font-style:italic}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}'}},[1,"bn-chart-structure",{chartTitle:[1,"chart-title"],filter:[1],scenarios:[1],variances:[1],unitScaling:[8,"unit-scaling"],percentageScaling:[8,"percentage-scaling"],level:[1],order:[1],orderDirection:[1,"order-direction"],limit:[2],showCategories:[1,"show-categories"],measureScale:[1,"measure-scale"],showMeasureScale:[1,"show-measure-scale"],measureUnit:[1,"measure-unit"],stack:[1],scale:[1],data:[32],datasetMeta:[32],appliedScaleFactor:[32]},void 0,{scenarios:[{validateScenario:0}],variances:[{validateVariances:0}],unitScaling:[{validateUnitScaling:0}],percentageScaling:[{validatePercentageScaling:0}],level:[{validateLevel:0}],order:[{validateOrderList:0}],orderDirection:[{validateOrderDirection:0}],limit:[{validateLimit:0}],showCategories:[{validateShowCategories:0}],measureScale:[{validateMeasureScale:0}],showMeasureScale:[{validateShowMeasureScale:0}],stack:[{validateStack:0}],scale:[{validateScaling:0}]}]),C=M,N=function(){"undefined"!=typeof customElements&&["bn-chart-structure","ibcs-chart-structure"].forEach((e=>{switch(e){case"bn-chart-structure":customElements.get(a(e))||customElements.define(a(e),M);break;case"ibcs-chart-structure":customElements.get(a(e))||U()}}))};export{C as BnChartStructure,N as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnChartTime extends Components.BnChartTime, HTMLElement {}
4
+ export const BnChartTime: {
5
+ prototype: BnChartTime;
6
+ new (): BnChartTime;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as e,HTMLElement as i,h as t,Host as a,transformTag as s}from"@stencil/core/internal/client";import{v as r,a as n,h as l,k as o,j as d,b as h,c,f as p,n as u,o as v,l as m,m as g,i as y}from"./validate.js";import{w as S}from"./withDataset.js";import{w as f,a as w}from"./withHasError.js";import{w as b}from"./withTranslation.js";import{a as O}from"./context-protocol.js";import{w as x}from"./withStyled.js";import{w as M}from"./withComponentStyle.js";import{g as R,p as L}from"./scaling.js";import{b as _,O as A,c as T,f as E,g as C,C as I}from"./Order.js";import{F as U}from"./ibcsRuleSet.js";import{D as k}from"./DateStringFactory.js";import{d as W}from"./ibcs-chart-time2.js";var D;!function(e){e.ROWGROUP="rowGroup",e.ROWGROUPINDEX="rowGroupIndex",e.CATEGORY="category",e.CATEGORYINDEX="categoryIndex",e.SUBCATEGORY="subCategory",e.SUBCATEGORYINDEX="subCategoryIndex"}(D||(D={}));const F=e(class e extends i{validateScenario(e){const i=r(e),t="ERR_scenarios";i.length>0?this.errors.addOrReplace({id:t,type:"warning",message:"scenarios: invalid value(s) '"+JSON.stringify(i)+"' are not supported."}):this.errors.remove(t)}validateVariances(e){const i="ERR_variances",t=n(e);t.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"variances: invalid value(s) '"+JSON.stringify(t)+"' are not supported."}):this.errors.remove(i)}validateLeftSync(e){const i="ERR_syncSpaceLeft";l(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"syncSpaceLeft: invalid value(s) '"+e+"' are not supported."})}validateLimit(e){const i="ERR_limit";o(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"limit: invalid value '"+(null==e?void 0:""+e)+"' is not supported."})}validateUnitScaling(e){const i="ERR_unitScaling";l(e)||this.pixelPerUnitGroupMap.has(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"unitScaling: invalid value(s) '"+e+"' are not supported."})}validatePercentageScaling(e){const i="ERR_percentageScaling";l(e)||this.pixelPerUnitGroupMap.has(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"percentageScaling: invalid value(s) '"+e+"' are not supported."})}validateLevel(e){const i="ERR_level";d(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"level: invalid value(s) '"+e+"' are not supported."})}validateOrderList(e){const i="ERR_order",t=h(e);t.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"order: invalid value(s) '"+JSON.stringify(t)+"' are not supported."}):this.errors.remove(i)}validateOrderDirection(e){const i="ERR_orderDirection";c(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"orderDirection: invalid value '"+(null==e?void 0:""+e)+"' is not supported."})}validateDateInterval(e){const i="ERR_dateInterval";p(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"dateInterval: invalid value '"+(null==e?void 0:""+e)+"' is not supported."})}validateChartMode(e){const i="ERR_chartMode";["bar","line","auto"].includes(null==e?void 0:e.toLowerCase())?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"chartMode: invalid value '"+(null==e?void 0:""+e)+"' is not supported. Valid values are: bar, line, auto."})}validateMaxBars(e){const i="ERR_maxBars";!o(e)||e<1?this.errors.addOrReplace({id:i,type:"warning",message:"maxBars: invalid value '"+(null==e?void 0:""+e)+"' is not supported. Must be a positive integer."}):this.errors.remove(i)}validateStack(e){const i="ERR_stack",t=u(e);t.length>0?this.errors.addOrReplace({id:i,type:"warning",message:t.join("; ")}):this.errors.remove(i)}validateScaling(e){if(null==e||""===e||"none"===e||"auto"===e)return void this.errors.remove("ERR_scale");const i=Number(e);isNaN(i)||i<=0?this.errors.addOrReplace({id:"ERR_scale",type:"warning",message:`Invalid scale value: "${e}". Use "none", "auto", or a positive number.`}):this.errors.remove("ERR_scale")}validateAxisLabelsMode(e){const i="ERR_axisLabelsMode";v(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"axisLabelsMode: invalid value '"+(null==e?void 0:""+e)+"' is not supported."})}validateLineFullWidth(e){const i="ERR_lineFullWidth";m(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"lineFullWidth: invalid value(s) '"+(null==e?void 0:""+e)+"' are not supported."})}validateShowCategories(e){const i="ERR_showCategories";m(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"showCategories: invalid value(s) '"+(null==e?void 0:""+e)+"' are not supported."})}validateMeasureScale(e){const i="ERR_measureScale";g(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"measureScale: invalid value '"+(null==e?void 0:""+e)+"' is not supported."})}validateShowMeasureScale(e){const i="ERR_grouped";m(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"showMeasureScale: invalid value(s) '"+(null==e?void 0:""+e)+"' are not supported."})}validateShowOverlayAvg(e){const i="ERR_grouped";m(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"showOverlayAvg: invalid value(s) '"+(null==e?void 0:""+e)+"' are not supported."})}validateShowOverlayMedian(e){const i="ERR_grouped";m(e)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"showOverlayMedian: invalid value(s) '"+(null==e?void 0:""+e)+"' are not supported."})}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.data=[],this.datasetMeta=null,this.appliedScaleFactor=1,this.chartTitle="",this.filter="",this.syncSpaceLeft=-1,this.limit=0,this.chartMode="bar",this.maxBars=28,this.stack="",this.intervalSpanLimit=28,this.lineFullWidth="true",this.showCategories="true",this.measureScale="greatest",this.showMeasureScale="false",this.showOverlayAvg="true",this.showOverlayMedian="false",this.measureUnit="",this.pixelPerUnitGroupMap=new Map,this._autoScaleIterations=0,x(this),f(this),S(this,((e,i)=>{this.data=i||[]}),((e,i)=>{this.datasetMeta=i})),this.chartTemplate=this.chartTemplate.bind(this),this.errors=w(this),this.componentStyle=M(this),this.t=b(this).t}componentWillLoad(){this.validateScenario(this.scenarios),this.validateVariances(this.variances),this.validateUnitScaling(this.unitScaling),this.validateLimit(this.limit),this.validateLevel(this.level),this.validateOrderDirection(this.orderDirection),this.validateOrderList(this.order),this.validateLeftSync(this.syncSpaceLeft),this.validateDateInterval(this.dateInterval),this.validateAxisLabelsMode(this.axisLabelsMode),this.validateLineFullWidth(this.lineFullWidth),this.validateShowCategories(this.showCategories),this.validateMeasureScale(this.measureScale),this.validateShowMeasureScale(this.showMeasureScale),this.validateShowOverlayAvg(this.showOverlayAvg),this.validateShowOverlayMedian(this.showOverlayMedian),this.validateChartMode(this.chartMode),this.validateMaxBars(this.maxBars),this.validateStack(this.stack),this.validateScaling(this.scale)}componentDidRender(){var i,t;const{mode:a}=L(this.scale);if("auto"!==a&&"empty"!==a){this._autoScaleIterations=0;const e=R(this.element),i="WARN_overflow";return void(e.width>0&&this.element.scrollWidth>e.width+1?this.errors.addOrReplace({id:i,type:"warning",message:"Chart exceeds available space and will be cut off. Check unit-scaling value."}):this.errors.remove(i))}const s=this.element,{width:r}=R(s);if(r<=0)return;const n=null===(i=s.shadowRoot)||void 0===i?void 0:i.querySelector(".container"),l=null!==(t=null==n?void 0:n.scrollWidth)&&void 0!==t?t:s.scrollWidth,o=this.componentStyle((e=>{var i;return(null===(i=e.global)||void 0===i?void 0:i.fontSizePx)||13.3333}));if(l<=r+1)return this._autoScaleIterations=0,this.errors.remove("AUTO_scale"),void(1!==this.appliedScaleFactor&&(this._autoScaleIterations=1,this.appliedScaleFactor=1,s.style.setProperty("--bn-font-size",o+"px")));if(this._autoScaleIterations>=e.MAX_SCALE_ITERATIONS)return void(this._autoScaleIterations=0);const d=this.appliedScaleFactor*((r-1)/l);s.style.setProperty("--bn-font-size",o*d+"px"),"empty"===a?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:"Auto-scaled chart by factor "+d.toFixed(3)}):this.errors.remove("AUTO_scale"),Math.abs(d-this.appliedScaleFactor)>.001?(this._autoScaleIterations++,this.appliedScaleFactor=d):this._autoScaleIterations=0}prepareDimension(){const e=R(this.element),i=this.prepareScenarios(),t=this.prepareVariances();return this.canvasWidthSegmented=e.width/(i.length+t.length||1),{width:this.canvasWidthSegmented,height:e.height}}prepareScenarios(){var e,i,t,a;const s="auto"===(null===(e=this.scenarios)||void 0===e?void 0:e.trim().toLowerCase());return y(this.scenarios)||s?(null===(t=null===(i=this.datasetMeta)||void 0===i?void 0:i.availableScenarios)||void 0===t?void 0:t.length)>0?(s?this.errors.remove("AUTO_scenarios"):this.errors.addOrReplace({id:"AUTO_scenarios",type:"warning",message:"scenarios: not set, auto-detected: "+this.datasetMeta.availableScenarios.join(",")}),this.datasetMeta.availableScenarios):[]:(this.errors.remove("AUTO_scenarios"),null===(a=this.scenarios)||void 0===a?void 0:a.split(",").map((e=>e.trim())))}prepareAvg(){return"true"===this.showOverlayAvg}prepareMedian(){return"true"===this.showOverlayMedian}prepareVariances(){var e;return y(this.variances)?[]:null===(e=this.variances)||void 0===e?void 0:e.split(",").map((e=>e.trim()))}prepareHideAxisLabels(e){return e>=1||"true"!==this.showCategories}prepareI18n(){const e=O,i=new Map([].map((e=>[e,this.t(".".concat(e))]))),t=new Map(e.map((e=>[e,this.t("global.".concat(e))])));return new Map([...t.entries(),...i.entries()])}preparePixelPerUnit(){var e;if(this.pixelPerUnitGroupMap.has(this.unitScaling))return this.errors.remove("AUTO_unitScaling"),this.pixelPerUnitGroupMap.get(this.unitScaling);if("auto"===(null===(e=this.unitScaling)||void 0===e?void 0:(""+e).trim().toLowerCase()))return this.errors.remove("AUTO_unitScaling"),0;const i=Number(this.unitScaling);return!isNaN(i)&&i>0?(this.errors.remove("AUTO_unitScaling"),i):(this.errors.addOrReplace({id:"AUTO_unitScaling",type:"warning",message:"unit-scaling: not set, auto-calculated to fit available space."}),0)}preparePixelPerPercentage(){return this.pixelPerUnitGroupMap.has(this.percentageScaling)?this.pixelPerUnitGroupMap.get(this.percentageScaling):100*Number(this.percentageScaling)}prepareLevel(){var e,i,t;const a="auto"===(null===(e=this.level)||void 0===e?void 0:e.trim().toLowerCase());return y(this.level)||a?(null===(i=this.datasetMeta)||void 0===i?void 0:i.suggestedLevel)?(a?this.errors.remove("AUTO_level"):this.errors.addOrReplace({id:"AUTO_level",type:"warning",message:"level: not set, auto-detected: "+this.datasetMeta.suggestedLevel}),D[this.datasetMeta.suggestedLevel.toUpperCase()]):void 0:(this.errors.remove("AUTO_level"),D[null===(t=this.level)||void 0===t?void 0:t.toUpperCase()])}prepareOrder(){var e,i,t,a,s,r;let n=(y(this.level)||"auto"===(null===(e=this.level)||void 0===e?void 0:e.trim().toLowerCase()))&&(null===(i=this.datasetMeta)||void 0===i?void 0:i.suggestedLevel)?this.datasetMeta.suggestedLevel:this.level;const l="auto"===(null===(t=this.order)||void 0===t?void 0:t.trim().toLowerCase());return y(this.order)||l?(null===(a=this.datasetMeta)||void 0===a?void 0:a.suggestedLevel)&&(l?this.errors.remove("AUTO_order"):this.errors.addOrReplace({id:"AUTO_order",type:"warning",message:"order: not set, auto-detected: "+n})):(this.errors.remove("AUTO_order"),"levelindex"===(null===(s=this.order)||void 0===s?void 0:s.toLocaleLowerCase())&&(n+="Index")),{hierarchy:[A[null==n?void 0:n.toUpperCase()]],direction:_[null===(r=this.orderDirection)||void 0===r?void 0:r.toUpperCase()]}}prepareStyle(){const e=this.getEffectiveScaleFactor();return this.componentStyle((i=>{const t=i.global.fontSizePx*e;return{scaleFactors:{scenarioOffset:i["bn-chart-time"].scaleFactors.scenarioOffset,scenarioLabelToColumn:i["bn-chart-time"].scaleFactors.scenarioLabelToColumn,labelToColumn:.3,labelToColum:i["bn-chart-time"].scaleFactors.labelToColum,labelToAxis:i["bn-chart-time"].scaleFactors.labelToAxis,needleWidth:i["bn-chart-time"].scaleFactors.needleWidth,needleHeadWidth:i["bn-chart-time"].scaleFactors.needleHeadWidth,columnWidth:i["bn-chart-time"].scaleFactors.columnWidth,varianceAxisLineWidth:i["bn-chart-time"].scaleFactors.varianceAxisLineWidth,axisLineWidth:i["bn-chart-time"].scaleFactors.axisLineWidth,auxiliaryLineWidth:i["bn-chart-time"].scaleFactors.auxiliaryLineWidth,scenarioLineWidth:i["bn-chart-time"].scaleFactors.scenarioLineWidth,markerWidth:i["bn-chart-time"].scaleFactors.markerWidth,markerOffset:i["bn-chart-time"].scaleFactors.markerOffset,categoryWidth:i["bn-chart-time"].scaleFactors.categoryWidth,axisTickLength:i["bn-chart-time"].scaleFactors.axisTickLength},fontStyles:{font:`${t}px ${i.global.fontFamily}`,size:t,color:i.global.fontColor,background:i.global.fontBackgroundColor,leading:1.8},axisStyles:i["bn-chart-time"].axisStyles,barStyles:i["bn-chart-time"].barStyles,varianceStyles:i["bn-chart-time"].varianceStyles,padding:i["bn-chart-time"].padding,pattern:null}}))}prepareLeftSideOffset(e,i){return this.syncSpaceLeft>-1?this.syncSpaceLeft:U.getMaxWidthOfArrayItems([...this.prepareVariances(),...this.prepareScenarios(),this.chartTitle],e,i)}prepareChartTitle(e){return e>=1?"":this.chartTitle}prepareLimit(){return Math.floor(Number(this.limit)||0)}prepareDateInterval(){var e,i,t;const a="auto"===(null===(e=this.dateInterval)||void 0===e?void 0:e.trim().toLowerCase());return y(this.dateInterval)||a?(null===(i=this.datasetMeta)||void 0===i?void 0:i.suggestedDateInterval)?(a?this.errors.remove("AUTO_dateInterval"):this.errors.addOrReplace({id:"AUTO_dateInterval",type:"warning",message:"dateInterval: not set, auto-detected: "+this.datasetMeta.suggestedDateInterval}),k[this.datasetMeta.suggestedDateInterval.toUpperCase()]):a?k.AUTO:void 0:(this.errors.remove("AUTO_dateInterval"),k[null===(t=this.dateInterval)||void 0===t?void 0:t.toUpperCase()])}prepareIntervalSpanLimit(){return this.intervalSpanLimit}prepareAxisLabelsMode(){var e;return T[null===(e=this.axisLabelsMode)||void 0===e?void 0:e.toUpperCase()]}prepareFilter(){return 0===this.filter.length?"":this.filter}getDataStructure(){return{ITimeChartDataRow:{setName:{type:"string",isOptional:!1,description:""},date:{type:"string",isOptional:!1,description:""},operation:{type:"string",isOptional:!1,description:""},rowGroup:{type:"string",isOptional:!1,description:""},rowGroupIndex:{type:"number",isOptional:!1,description:""},category:{type:"string",isOptional:!1,description:""},categoryIndex:{type:"number",isOptional:!1,description:""},subCategory:{type:"string",isOptional:!1,description:""},subCategoryIndex:{type:"number",isOptional:!1,description:""},columnGroup:{type:"string",isOptional:!1,description:""},columnGroupIndex:{type:"number",isOptional:!1,description:""},columnSubGroup:{type:"string",isOptional:!1,description:""},columnSubGroupIndex:{type:"number",isOptional:!1,description:""},ac1:{type:"number",isOptional:!1,description:""},ac2:{type:"number",isOptional:!1,description:""},ac3:{type:"number",isOptional:!1,description:""},ac4:{type:"number",isOptional:!1,description:""},pp1:{type:"number",isOptional:!1,description:""},pp2:{type:"number",isOptional:!1,description:""},pp3:{type:"number",isOptional:!1,description:""},pp4:{type:"number",isOptional:!1,description:""},fc1:{type:"number",isOptional:!1,description:""},fc2:{type:"number",isOptional:!1,description:""},fc3:{type:"number",isOptional:!1,description:""},fc4:{type:"number",isOptional:!1,description:""},pl1:{type:"number",isOptional:!1,description:""},pl2:{type:"number",isOptional:!1,description:""},pl3:{type:"number",isOptional:!1,description:""},pl4:{type:"number",isOptional:!1,description:""}}}}prepareMeasureScale(){return y(this.measureScale)?"GREATEST":["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(this.measureScale.trim())||"LEAST"===this.measureScale.trim().toUpperCase()?this.measureScale.trim():"GREATEST"}prepareShowMeasureScale(e){return 0===e&&"true"===this.showMeasureScale}prepareMeasureUnit(){return""===this.measureUnit||null==this.measureUnit?"":this.measureUnit}prepareStackConfig(){if(y(this.stack))return null;try{const e=JSON.parse(this.stack);return{by:e.by,mode:e.mode||C.ABSOLUTE,order:e.order||E.DATASET}}catch(e){return null}}prepareLineFullWidth(){return"true"===this.lineFullWidth}prepareChartMode(){var e;const i=null===(e=this.chartMode)||void 0===e?void 0:e.toLowerCase();return"line"===i?I.LINE:"auto"===i?I.AUTO:I.BAR}prepareMaxBars(){return Math.floor(Number(this.maxBars)||28)}chartTemplate(e,i){const a=this.prepareI18n(),s=this.prepareStyle(),r=R(this.element).width,n=this.getEffectiveScaleFactor(),l=this.preparePixelPerUnit(),o=this.preparePixelPerPercentage();return t("ibcs-chart-time",{data:this.data,chartTitle:this.prepareChartTitle(i),scenarios:this.prepareScenarios(),variances:[e],hideAxisLabels:this.prepareHideAxisLabels(i),pixelPerUnit:l>0?l*n:0,pixelPerPercentage:o>0?o*n:0,limit:this.prepareLimit(),leftSideOffsetForHorizontalSync:this.prepareLeftSideOffset(a,s),styles:s,i18n:a,order:this.prepareOrder(),level:this.prepareLevel(),dateInterval:this.prepareDateInterval(),intervalSpanLimit:this.prepareIntervalSpanLimit(),axisLabelsMode:this.prepareAxisLabelsMode(),filter:this.prepareFilter(),"measure-scale":this.prepareMeasureScale(),"measure-unit":this.prepareMeasureUnit(),showOverlayAvg:this.prepareAvg(),showOverlayMedian:this.prepareMedian(),showMeasureScale:this.prepareShowMeasureScale(i),chartMode:this.prepareChartMode(),maxBars:this.prepareMaxBars(),stackConfig:this.prepareStackConfig(),lineFullWidth:this.prepareLineFullWidth(),containerWidth:r,parentDimensions:this.prepareDimension()})}getEffectiveScaleFactor(){const{mode:e,factor:i}=L(this.scale);return"factor"===e?i:"auto"===e||"empty"===e?this.appliedScaleFactor:1}getFontStyles(){const e=this.getEffectiveScaleFactor();return this.componentStyle((i=>{var t,a,s,r;const n=(null===(t=i.global)||void 0===t?void 0:t.fontSizePx)||13.3333;return{"--bn-font-family":(null===(a=i.global)||void 0===a?void 0:a.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":n*e+"px","--bn-font-color":(null===(s=i.global)||void 0===s?void 0:s.fontColor)||"#000000","--bn-font-background":(null===(r=i.global)||void 0===r?void 0:r.fontBackgroundColor)||"#ffffff"}}))}render(){let e=[""];const i=this.prepareVariances();i.length>0&&(e=[...e,...i]);const s=this.getFontStyles();return t(a,{key:"b1fbfa70b5fda0078c06f5983e2defc9c603a96b",style:s},t("div",{key:"96666d16869645a1bbe9382a019ac78534229e55",class:"container"},e.map(this.chartTemplate)))}get element(){return this}static get watchers(){return{scenarios:[{validateScenario:0}],variances:[{validateVariances:0}],syncSpaceLeft:[{validateLeftSync:0}],limit:[{validateLimit:0}],unitScaling:[{validateUnitScaling:0}],percentageScaling:[{validatePercentageScaling:0}],level:[{validateLevel:0}],order:[{validateOrderList:0}],orderDirection:[{validateOrderDirection:0}],dateInterval:[{validateDateInterval:0}],chartMode:[{validateChartMode:0}],maxBars:[{validateMaxBars:0}],stack:[{validateStack:0}],scale:[{validateScaling:0}],axisLabelsMode:[{validateAxisLabelsMode:0}],lineFullWidth:[{validateLineFullWidth:0}],showCategories:[{validateShowCategories:0}],measureScale:[{validateMeasureScale:0}],showMeasureScale:[{validateShowMeasureScale:0}],showOverlayAvg:[{validateShowOverlayAvg:0}],showOverlayMedian:[{validateShowOverlayMedian:0}]}}static get style(){return":host{display:inline-block;position:relative;overflow:visible;}.container{display:flex;flex-direction:column-reverse}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}"}},[1,"bn-chart-time",{chartTitle:[1,"chart-title"],filter:[1],scenarios:[1],variances:[1],syncSpaceLeft:[2,"sync-space-left"],limit:[2],unitScaling:[8,"unit-scaling"],percentageScaling:[8,"percentage-scaling"],level:[1],order:[1],orderDirection:[1,"order-direction"],dateInterval:[1,"date-interval"],chartMode:[1,"chart-mode"],maxBars:[2,"max-bars"],stack:[1],scale:[1],intervalSpanLimit:[2,"interval-span-limit"],axisLabelsMode:[1,"axis-labels-mode"],lineFullWidth:[1,"line-full-width"],showCategories:[1,"show-categories"],measureScale:[1,"measure-scale"],showMeasureScale:[1,"show-measure-scale"],showOverlayAvg:[1,"show-overlay-avg"],showOverlayMedian:[1,"show-overlay-median"],measureUnit:[1,"measure-unit"],data:[32],datasetMeta:[32],appliedScaleFactor:[32]},void 0,{scenarios:[{validateScenario:0}],variances:[{validateVariances:0}],syncSpaceLeft:[{validateLeftSync:0}],limit:[{validateLimit:0}],unitScaling:[{validateUnitScaling:0}],percentageScaling:[{validatePercentageScaling:0}],level:[{validateLevel:0}],order:[{validateOrderList:0}],orderDirection:[{validateOrderDirection:0}],dateInterval:[{validateDateInterval:0}],chartMode:[{validateChartMode:0}],maxBars:[{validateMaxBars:0}],stack:[{validateStack:0}],scale:[{validateScaling:0}],axisLabelsMode:[{validateAxisLabelsMode:0}],lineFullWidth:[{validateLineFullWidth:0}],showCategories:[{validateShowCategories:0}],measureScale:[{validateMeasureScale:0}],showMeasureScale:[{validateShowMeasureScale:0}],showOverlayAvg:[{validateShowOverlayAvg:0}],showOverlayMedian:[{validateShowOverlayMedian:0}]}]);F.MAX_SCALE_ITERATIONS=3;const N=F,j=function(){"undefined"!=typeof customElements&&["bn-chart-time","ibcs-chart-time"].forEach((e=>{switch(e){case"bn-chart-time":customElements.get(s(e))||customElements.define(s(e),F);break;case"ibcs-chart-time":customElements.get(s(e))||W()}}))};export{N as BnChartTime,j as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnComponentStyle extends Components.BnComponentStyle, HTMLElement {}
4
+ export const BnComponentStyle: {
5
+ prototype: BnComponentStyle;
6
+ new (): BnComponentStyle;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,h as s,Host as o,transformTag as n}from"@stencil/core/internal/client";import{w as r}from"./withBodyObserver.js";import{g as i}from"./context-protocol.js";import{w as c,a as m}from"./withHasError.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.name="_default",c(this),this.errors=m(this),r(this,(t=>{this.stores||(this.stores=i(this.element));try{const e=JSON.parse(t);this.stores.componentStyles.set(this.name,e),this.errors.remove("JSON_PARSE")}catch(t){this.errors.addOrReplace({id:"JSON_PARSE",type:"error",message:"bn-component-style: Failed to parse JSON body — "+t.message}),console.error(t)}}))}render(){return s(o,{key:"e9298c6ce5b0b51260165e78dcf19efdef0646f9"})}get element(){return this}static get style(){return"bn-component-style{display:none}"}},[0,"bn-component-style",{name:[1]}]),h=l,a=function(){"undefined"!=typeof customElements&&["bn-component-style"].forEach((t=>{"bn-component-style"===t&&(customElements.get(n(t))||customElements.define(n(t),l))}))};export{h as BnComponentStyle,a as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnContext extends Components.BnContext, HTMLElement {}
4
+ export const BnContext: {
5
+ prototype: BnContext;
6
+ new (): BnContext;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,h as o,Host as n,transformTag as s}from"@stencil/core/internal/client";import{b as c}from"./context-protocol.js";import{w as i,a}from"./withHasError.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.currentPageUpdate=void 0,i(this),this.errors=a(this)}setLocale(t){this.stores.context.state.locale=t}connectedCallback(){this.stores=c(this.element),this.locale&&(this.stores.context.state.locale=this.locale),this.currentPageUpdate=setTimeout((()=>{this.element.querySelectorAll("bn-page, bn-layout-page").forEach(((t,e)=>{if("bn-layout-page"===t.localName)t.setAttribute("page-number",""+(e+1));else{const o=t.querySelector("bn-footer");o&&o.setAttribute("page-number",""+(e+1))}}))}),250)}disconnectedCallback(){this.currentPageUpdate&&clearTimeout(this.currentPageUpdate)}componentWillLoad(){}componentDidLoad(){}componentShouldUpdate(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}render(){return o(n,{key:"b92019b909e271225baca2cf740c8301e324164e"},o("slot",{key:"87bac4bb29bca32d961afe31355dc1bd48fff0f8"}))}get element(){return this}static get watchers(){return{locale:[{setLocale:0}]}}static get style(){return":host{display:block}"}},[257,"bn-context",{locale:[1]},void 0,{locale:[{setLocale:0}]}]),r=l,d=function(){"undefined"!=typeof customElements&&["bn-context"].forEach((t=>{"bn-context"===t&&(customElements.get(s(t))||customElements.define(s(t),l))}))};export{r as BnContext,d as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnDataset extends Components.BnDataset, HTMLElement {}
4
+ export const BnDataset: {
5
+ prototype: BnDataset;
6
+ new (): BnDataset;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{getElement as t,proxyCustomElement as s,HTMLElement as e,h as a,Host as n,transformTag as o}from"@stencil/core/internal/client";import{g as r,c as i}from"./context-protocol.js";import{r as c}from"./utils.js";import{w as u}from"./withBodyObserver.js";import{a as l}from"./alasql.min.js";import{w as h,a as m}from"./withHasError.js";const d=["ac1","ac2","ac3","ac4","pp1","pp2","pp3","pp4","fc1","fc2","fc3","fc4","pl1","pl2","pl3","pl4"],f=["rowGroup","category","subCategory","columnGroup","columnSubGroup"];function p(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function g(t){const s=Array.from(t);return{distinctValues:s,count:s.length,hasData:s.length>0}}const y=s(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.datasources="",this.static=!1,h(this),this.errors=m(this),this.database=new l.Database,((s,e)=>{let a,n,o=[];const u=new MutationObserver((a=>{a.forEach((a=>{"datasources"===a.attributeName&&(o=(t(s).getAttribute("datasources")||"").split(","),o.forEach((t=>{e(t,n.datasources.get(t))})))}))})),l=s.connectedCallback;s.connectedCallback=()=>{const i=t(s);n=r(i),o=(i.getAttribute("datasources")||"").split(","),o.forEach((t=>{e(t,n.datasources.get(t))})),u.observe(i,{attributes:!0,attributeFilter:["datasources"]}),a=n.datasources.on("set",((t,s)=>{o.includes(t)&&e(t,s)})),c(l,s)};const h=s.disconnectedCallback;s.disconnectedCallback=()=>{u.disconnect(),c(a),i(t(s)),c(h,s)}})(this,((t,s)=>{this.database.tables[t]={data:s},this.executeQuery()})),u(this,(t=>{this.query=t,this.executeQuery()}))}executeQuery(){if(this.stores||(this.stores=r(this.element)),this.query&&this.name){let t;if(this.static)try{t=JSON.parse(this.query)}catch(s){console.error("Failed to parse static dataset",s),t=[]}else t=this.database.exec(this.query);this.latestResult!==t&&(this.latestResult=t,this.stores.datasets.set(this.name,t),this.stores.datasetsMeta.set(this.name,function(t){const s={};for(const t of f)s[t]=new Set;const e={};for(const t of d)e[t]={hasData:!1,min:null,max:null};const a=new Set;let n=null,o=null;const r=Array.isArray(t)?t:[];for(let t=0;t<r.length;t++){const i=r[t];if(null==i)continue;for(const t of f){const e=i[t];null!=e&&""!==e&&s[t].add(e+"")}for(const t of d){const s=i[t];if(p(s)){const a=e[t];a.hasData=!0,(null===a.min||s<a.min)&&(a.min=s),(null===a.max||s>a.max)&&(a.max=s)}}const c=i.date;if(null!=c&&""!==c){const t=c+"";a.add(t),(null===n||t<n)&&(n=t),(null===o||t>o)&&(o=t)}}const i=d.map((t=>({key:t,hasData:e[t].hasData,min:e[t].min,max:e[t].max}))),c=i.filter((t=>t.hasData)).map((t=>t.key)),u=g(s.rowGroup),l=g(s.category),h=g(s.subCategory),m=g(s.columnGroup),y=g(s.columnSubGroup),b={min:n,max:o,hasData:a.size>0,distinctCount:a.size};let w="category";return h.hasData?w="subCategory":l.hasData?w="category":u.hasData&&(w="rowGroup"),{rowCount:r.length,scenarios:i,availableScenarios:c,rowGroup:u,category:l,subCategory:h,columnGroup:m,columnSubGroup:y,dateRange:b,suggestedLevel:w,suggestedOrder:w,suggestedDateInterval:b.hasData?"auto":null,calculatedAt:Date.now()}}(t)))}}nameUpdated(){this.executeQuery()}render(){return a(n,{key:"0aecc50d8aa488f49d6630fec9f0755d306f213e"})}get element(){return this}static get watchers(){return{name:[{nameUpdated:0}]}}static get style(){return"bn-dataset{display:none}"}},[0,"bn-dataset",{name:[1],datasources:[1],static:[4]},void 0,{name:[{nameUpdated:0}]}]),b=y,w=function(){"undefined"!=typeof customElements&&["bn-dataset"].forEach((t=>{"bn-dataset"===t&&(customElements.get(o(t))||customElements.define(o(t),y))}))};export{b as BnDataset,w as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnDatasource extends Components.BnDatasource, HTMLElement {}
4
+ export const BnDatasource: {
5
+ prototype: BnDatasource;
6
+ new (): BnDatasource;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as s,h as e,Host as r,transformTag as o}from"@stencil/core/internal/client";import{w as n}from"./withBodyObserver.js";import{g as c}from"./context-protocol.js";import{w as i,a}from"./withHasError.js";const h=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),i(this),this.errors=a(this),n(this,(t=>{this.stores||(this.stores=c(this.element));try{const s=JSON.parse(t);this.stores.datasources.set(this.name,s)}catch(s){console.error("Error parsing datasource",s,t),this.stores.datasources.set(this.name,[])}}))}render(){return e(r,{key:"e47e62c941bb7954cabe331cb500a7d2fdd7c487"})}get element(){return this}static get style(){return"bn-datasource{display:none}"}},[0,"bn-datasource",{name:[1]}]),m=h,u=function(){"undefined"!=typeof customElements&&["bn-datasource"].forEach((t=>{"bn-datasource"===t&&(customElements.get(o(t))||customElements.define(o(t),h))}))};export{m as BnDatasource,u as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnFooter extends Components.BnFooter, HTMLElement {}
4
+ export const BnFooter: {
5
+ prototype: BnFooter;
6
+ new (): BnFooter;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{F as o,d as r}from"./bn-footer2.js";const s=o,t=r;export{s as BnFooter,t as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,h as i,Host as s,getAssetPath as n,transformTag as o}from"@stencil/core/internal/client";import{w as r,a}from"./withHasError.js";import{w as d}from"./withComponentStyle.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pageNumber=null,this.displayPageNumber=!0,r(this),this.errors=a(this),this.componentStyle=d(this)}getFontStyles(){return this.componentStyle((t=>{var e,i,s,n;return{"--bn-font-family":(null===(e=t.global)||void 0===e?void 0:e.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(s=t.global)||void 0===s?void 0:s.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}isValidHttpUrl(t){let e;try{e=new URL(t)}catch(t){return!1}return"http:"===e.protocol||"https:"===e.protocol}prepareAssetUrl(t){return this.isValidHttpUrl(t)?t:`./assets/${t}.png`}render(){return i(s,{key:"c445ca8c8abde56b46564932a6fcd079aa1e640d",id:this.displayPageNumber||this.text||this.code?"container-page-footer":"container",style:this.getFontStyles()},i("div",{key:"2e5829597d228c78acbbbf130bfc440092456cb4",id:"footer-text"},null!=this.text?i("span",{class:"note"},this.text):""),i("div",{key:"a2c98bf85fc41fa0aebc35fded0528cd8ba4948f",id:"code"},null!=this.code?i("img",{class:"image",src:n(`${this.prepareAssetUrl(this.code)}`)}):""),i("div",{key:"e879c6ed16996d8b505d64426e2253f3057863f5",id:"page-number"},this.displayPageNumber?i("span",{class:"page"},this.pageNumber):""))}static get assetsDirs(){return["assets"]}get element(){return this}static get style(){return':host{padding:0.2em 0.5em;display:flex;flex-direction:row;justify-content:space-between;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(#container-page-footer){box-sizing:border-box;-webkit-box-sizing:border-box;border-top:0.1em solid #ddd}div#footer-text{font-size:0.6em;display:inline}div#code{flex:1;display:inline;text-align:right;padding-right:1em}div#page-number{font-size:0.6em;display:inline}.image{z-index:2;background-color:transparent;border:transparent;height:1.2em;width:auto}'}},[1,"bn-footer",{pageNumber:[1026,"page-number"],text:[1025],code:[1025],displayPageNumber:[4,"display-page-number"]}]);function f(){"undefined"!=typeof customElements&&["bn-footer"].forEach((t=>{"bn-footer"===t&&(customElements.get(o(t))||customElements.define(o(t),l))}))}export{l as F,f as d}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnGrid extends Components.BnGrid, HTMLElement {}
4
+ export const BnGrid: {
5
+ prototype: BnGrid;
6
+ new (): BnGrid;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as e,HTMLElement as t,h as s,Host as r,transformTag as i}from"@stencil/core/internal/client";import{l as o}from"./validate.js";import{w as n,a}from"./withHasError.js";import{w as d}from"./withStyled.js";import{w as l}from"./withComponentStyle.js";function h(e){if(!e||""===e.trim()||"[]"===e)return[];try{const t=JSON.parse(e);return Array.isArray(t)?t.map(((e,t)=>{var s,r,i;return"string"==typeof e?{label:e,id:t+""}:"object"==typeof e&&null!==e?{label:null!==(r=null!==(s=e.label)&&void 0!==s?s:e.name)&&void 0!==r?r:t+"",id:null!==(i=e.id)&&void 0!==i?i:t+""}:{label:e+"",id:t+""}})):[]}catch(e){return console.error("parseHeaders: failed to parse JSON",e),[]}}function u(e){if(!e||""===e.trim()||"[]"===e)return[];try{const t=JSON.parse(e);if(!Array.isArray(t))return["Headers must be an array"];const s=[],r=new Set;return t.forEach(((e,t)=>{"object"==typeof e&&null!==e&&void 0!==e.id&&("string"!=typeof e.id?s.push(`Header[${t}]: 'id' must be a string`):r.has(e.id)?s.push(`Header[${t}]: duplicate id '${e.id}'`):r.add(e.id),void 0!==e.label&&"string"!=typeof e.label&&s.push(`Header[${t}]: 'label' must be a string`))})),s}catch(e){return console.error("validateHeadersJson: failed to parse JSON",e),["Invalid JSON structure"]}}const c=e(class extends t{validateRowHeaders(e){const t="ERR_rowHeaders",s=u(e);s.length>0?this.errors.addOrReplace({id:t,type:"error",message:"row-headers: "+s.join("; ")}):this.errors.remove(t),this.updateGridConfig()}validateColumnHeaders(e){const t="ERR_columnHeaders",s=u(e);s.length>0?this.errors.addOrReplace({id:t,type:"error",message:"column-headers: "+s.join("; ")}):this.errors.remove(t),this.updateGridConfig()}validateShowRowHeaders(e){const t="ERR_showRowHeaders";o(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:`show-row-headers: invalid value '${e}', must be 'true' or 'false'`})}validateShowColumnHeaders(e){const t="ERR_showColumnHeaders";o(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:`show-column-headers: invalid value '${e}', must be 'true' or 'false'`})}validateShowBorders(e){const t="ERR_showBorders";o(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:`show-borders: invalid value '${e}', must be 'true' or 'false'`})}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.gridConfig={rows:[],columns:[]},this.chartTitle="",this.rowHeaders="[]",this.columnHeaders="[]",this.showRowHeaders="true",this.showColumnHeaders="true",this.showBorders="true",this.rowHeaderWidth="auto",this.cellGap="0px",d(this),n(this),this.errors=a(this),this.componentStyle=l(this)}getGridStyle(){return this.componentStyle((e=>e["bn-grid"]))}componentWillLoad(){this.validateRowHeaders(this.rowHeaders),this.validateColumnHeaders(this.columnHeaders),this.validateShowRowHeaders(this.showRowHeaders),this.validateShowColumnHeaders(this.showColumnHeaders),this.validateShowBorders(this.showBorders)}updateGridConfig(){this.gridConfig=function(e,t){return{rows:h(e),columns:h(t)}}(this.rowHeaders,this.columnHeaders)}shouldShowRowHeaders(){return"true"===this.showRowHeaders&&this.gridConfig.rows.length>0}shouldShowColumnHeaders(){return"true"===this.showColumnHeaders&&this.gridConfig.columns.length>0}shouldShowBorders(){return"true"===this.showBorders}getGridTemplateColumns(){const e=[];this.shouldShowRowHeaders()&&e.push(this.rowHeaderWidth);const t=this.gridConfig.columns.length||1;for(let s=0;s<t;s++)e.push("auto");return e.join(" ")}getGridTemplateRows(){const e=[];this.chartTitle&&e.push("auto"),this.shouldShowColumnHeaders()&&e.push("auto");const t=this.gridConfig.rows.length||1;for(let s=0;s<t;s++)e.push("auto");return e.join(" ")}renderTitle(){if(!this.chartTitle)return null;const e=(this.shouldShowRowHeaders()?1:0)+this.gridConfig.columns.length;return s("div",{class:"grid-title",style:{"grid-column":"1 / span "+e,"grid-row":"1"}},this.chartTitle)}renderColumnHeaders(){if(!this.shouldShowColumnHeaders())return null;const e=this.getGridStyle(),t=this.shouldShowBorders()?`${e.borderWidth}px solid ${e.borderColor}`:"none",r=this.shouldShowRowHeaders()?2:1,i=this.chartTitle?2:1;return this.gridConfig.columns.map(((o,n)=>{const a=n>0;return s("div",{key:"col-header-"+o.id,class:"grid-header grid-header-col",style:{"grid-column":r+n+"","grid-row":i+"","border-left":a?t:"none",padding:e.cellPadding+"px","padding-left":a?e.cellPadding+4+"px":e.cellPadding+"px"}},o.label)}))}renderDataCells(){const e=this.getGridStyle(),t=this.shouldShowBorders()?`${e.borderWidth}px solid ${e.borderColor}`:"none",r=this.shouldShowRowHeaders()?2:1,i=(this.chartTitle?1:0)+(this.shouldShowColumnHeaders()?1:0)+1,o=[];return this.gridConfig.rows.length>0&&this.gridConfig.columns.length>0&&this.gridConfig.rows.forEach(((n,a)=>{if(this.shouldShowRowHeaders()){const r=a>0;o.push(s("div",{key:"row-header-"+n.id,class:"grid-header grid-header-row",style:{"grid-column":"1","grid-row":i+a+"","border-top":r?t:"none",padding:e.cellPadding+"px","padding-top":r?e.cellPadding+4+"px":e.cellPadding+"px"}},n.label))}this.gridConfig.columns.forEach(((d,l)=>{const h=function(e,t){return`${e.id}-${t.id}`}(n,d),u=l>0,c=a>0;o.push(s("div",{key:"cell-"+h,class:"grid-cell",style:{"grid-column":r+l+"","grid-row":i+a+"","border-left":u?t:"none","border-top":c?t:"none","padding-left":u?e.cellPadding+4+"px":"0","padding-top":c?e.cellPadding+4+"px":"0"}},s("slot",{name:h})))}))})),o}getFontStyles(){return this.componentStyle((e=>{var t,s,r,i;return{"--bn-font-family":(null===(t=e.global)||void 0===t?void 0:t.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":((null===(s=e.global)||void 0===s?void 0:s.fontSizePx)||13.3333)+"px","--bn-font-color":(null===(r=e.global)||void 0===r?void 0:r.fontColor)||"#000000","--bn-font-background":(null===(i=e.global)||void 0===i?void 0:i.fontBackgroundColor)||"#ffffff"}}))}render(){const e={display:"inline-grid","grid-template-columns":this.getGridTemplateColumns(),"grid-template-rows":this.getGridTemplateRows(),gap:this.cellGap};return s(r,{key:"e84402bafd778e7069cd17bd86687a6648dbafe0",style:this.getFontStyles()},s("div",{key:"91941a42bc41fbbaf53c66551035bf97765a9f88",class:"grid-container",style:e},this.renderTitle(),this.renderColumnHeaders(),this.renderDataCells()),s("slot",{key:"349958090f4bf35b9ec768c8994bdf5a96636a36"}))}get element(){return this}static get watchers(){return{rowHeaders:[{validateRowHeaders:0}],columnHeaders:[{validateColumnHeaders:0}],showRowHeaders:[{validateShowRowHeaders:0}],showColumnHeaders:[{validateShowColumnHeaders:0}],showBorders:[{validateShowBorders:0}]}}static get style(){return':host{display:inline-block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.grid-container{display:inline-grid;box-sizing:border-box}.grid-title{font-weight:normal;padding-bottom:8px}.grid-header{display:flex;align-items:flex-end;box-sizing:border-box}.grid-header-row{justify-content:flex-end;padding-right:8px}.grid-header-col{white-space:nowrap;justify-content:flex-start}.grid-cell{position:relative;box-sizing:border-box}'}},[257,"bn-grid",{chartTitle:[1,"chart-title"],rowHeaders:[1,"row-headers"],columnHeaders:[1,"column-headers"],showRowHeaders:[1,"show-row-headers"],showColumnHeaders:[1,"show-column-headers"],showBorders:[1,"show-borders"],rowHeaderWidth:[1,"row-header-width"],cellGap:[1,"cell-gap"],gridConfig:[32]},void 0,{rowHeaders:[{validateRowHeaders:0}],columnHeaders:[{validateColumnHeaders:0}],showRowHeaders:[{validateShowRowHeaders:0}],showColumnHeaders:[{validateShowColumnHeaders:0}],showBorders:[{validateShowBorders:0}]}]),w=c,f=function(){"undefined"!=typeof customElements&&["bn-grid"].forEach((e=>{"bn-grid"===e&&(customElements.get(i(e))||customElements.define(i(e),c))}))};export{w as BnGrid,f as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnImage extends Components.BnImage, HTMLElement {}
4
+ export const BnImage: {
5
+ prototype: BnImage;
6
+ new (): BnImage;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,h as s,Host as i,transformTag as o}from"@stencil/core/internal/client";import{w as n}from"./withStyled.js";import{w as r,a as l}from"./withHasError.js";import{w as a}from"./withComponentStyle.js";import{g as f}from"./context-protocol.js";const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),n(this),r(this),this.errors=l(this),this.componentStyle=a(this)}connectedCallback(){this.stores=f(this.element)}getFontStyles(){return this.componentStyle((t=>{var e,s,i,o;return{"--bn-font-family":(null===(e=t.global)||void 0===e?void 0:e.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":((null===(s=t.global)||void 0===s?void 0:s.fontSizePx)||13.3333)+"px","--bn-font-color":(null===(i=t.global)||void 0===i?void 0:i.fontColor)||"#000000","--bn-font-background":(null===(o=t.global)||void 0===o?void 0:o.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(t){if(null==t||""===t)return"";const e=this.stores.assets.state;return t.startsWith("asset:")?e[t.substring(6)]:e[t]||t}render(){return s(i,{key:"656f301d5fb1a7650f4c7d0cbb3fe1ef15b8ae92",style:this.getFontStyles()},null!=this.source&&""!==this.source?s("img",{src:this.prepareAssetUrl(this.source)}):"")}get element(){return this}static get style(){return":host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}"}},[1,"bn-image",{source:[1]}]),c=h,m=function(){"undefined"!=typeof customElements&&["bn-image"].forEach((t=>{"bn-image"===t&&(customElements.get(o(t))||customElements.define(o(t),h))}))};export{c as BnImage,m as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnInternationalization extends Components.BnInternationalization, HTMLElement {}
4
+ export const BnInternationalization: {
5
+ prototype: BnInternationalization;
6
+ new (): BnInternationalization;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,h as n,Host as i,transformTag as s}from"@stencil/core/internal/client";import{w as o}from"./withBodyObserver.js";import{g as r,f as a}from"./context-protocol.js";import{w as c,a as h}from"./withHasError.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),c(this),this.errors=h(this),o(this,(t=>{this.stores||(this.stores=r(this.element));try{const e=a(JSON.parse(t)),n=Object.assign({},this.stores.internationalization.get(this.namespace));n[this.code]=e,this.stores.internationalization.set(this.namespace,n)}catch(t){console.error(t)}}))}render(){return n(i,{key:"dd384ecf77e4fd5d46ed04b04c4395fba8bac4e1"})}get element(){return this}static get style(){return"bn-internationalization{display:none}"}},[0,"bn-internationalization",{code:[1],namespace:[1]}]),m=l,d=function(){"undefined"!=typeof customElements&&["bn-internationalization"].forEach((t=>{"bn-internationalization"===t&&(customElements.get(s(t))||customElements.define(s(t),l))}))};export{m as BnInternationalization,d as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnLayoutCard extends Components.BnLayoutCard, HTMLElement {}
4
+ export const BnLayoutCard: {
5
+ prototype: BnLayoutCard;
6
+ new (): BnLayoutCard;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,h as a,Fragment as s,transformTag as i}from"@stencil/core/internal/client";import{g as r}from"./context-protocol.js";import{a as o}from"./withHasError.js";import{d as n}from"./bn-body2.js";import{d as c}from"./bn-card2.js";import{d as l}from"./bn-footer2.js";import{d}from"./bn-title2.js";import{d as b}from"./ibcs-title2.js";const m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.titleImage="",this.titleBusinessUnit="",this.titleOrder="category",this.titleOrderDirection="asc",this.titleDateFormat="none",this.titleDateLink="none",this.titleNamespace="_system",this.footerText="",this.cardLayout="full",this.cardCustomTemplate='"a b" "c d"',this.cardGridGap="0",this.cardFitToContent=!0,this.cardShowBorder=!0,this.templateMap=new Map([["split-vertical",'"a b"'],["split-horizontal",'"a" "b"'],["2x2",'"a b" "c d"'],["3x3",'"a b c" "d e f" "g h i"'],["4x4",'"a b c d" "e f g h" "i j k l" "m n o p"'],["1-over-2",'"a a" "b c"'],["2-over-1",'"a b" "c c"'],["1-over-3",'"a a a " "b c d"'],["3-over-1",'"a b c" "d d d"'],["custom-template",'"a b" "c c c"'],["gold3",'"a c" "b c"'],["gold4",'"a b c c" "d d c c"']]),this.errors=o(this)}connectedCallback(){this.stores=r(this.element)}getCommonStyles(){let t="100%",e="100%";return!0===this.cardFitToContent&&(e="fit-content",t="fit-content"),{display:"grid",height:t,width:e,gap:this.cardGridGap+"px"}}getLayoutStyle(){return Object.assign(Object.assign({},this.getCommonStyles()),{"grid-template-areas":this.getTemplatePattern(this.cardLayout)})}createDivAreaStyles(t){return t.map((t=>({overflow:"hidden","grid-area":t})))}getSlots(t){const e=this.createDivAreaStyles(t);return a(s,null,e.map(((t,e)=>a("div",{style:t},a("slot",{name:"card-slot-"+e})))))}extractSlotNames(t){if(null==t)return[];const e=t.match(/\b\w+\b/g);return e?Array.from(new Set(e)):[]}getTemplatePattern(t){return console.warn("getTemplatePattern",{name:t}),!1===this.templateMap.has(t)&&"custom-template"!==t?'"a"':"custom-template"===t?this.cardCustomTemplate:this.templateMap.get(t)}async getNumberOfSlot(t){const e=this.getTemplatePattern(t);return this.extractSlotNames(e).length}componentDidUpdate(){}setCardClass(){return!0===this.cardShowBorder?"card_box border":"card_box"}prepareTitleImage(t){if(null==t||""===t)return"";const e=this.stores.assets.state;return t.startsWith("asset:")?e[t.substring(6)]:e[t]||t}render(){const t=this.getLayoutStyle(),e=this.extractSlotNames(t["grid-template-areas"]);return a("bn-card",{key:"cdc04f3414fa80148fc8be40cbaf0cac1035fca1",styles:this.styles,class:this.setCardClass()},a("div",{key:"3374b14ec8a8a73de58f866b0c6a691ee0b8d2ae",class:"cardtitle"},a("bn-title",{key:"23a6f991ad6b1a8b74066943b108f3666ae0c863",namespace:this.titleNamespace,"business-unit":this.titleBusinessUnit,scenarios:this.titleScenarios,variances:this.titleVariances,order:this.titleOrder,"order-direction":this.titleOrderDirection,measures:this.titleMeasures,"date-start":this.titleDateStart,"date-end":this.titleDateEnd,"date-format":this.titleDateFormat,"date-link":this.titleDateLink}),null!=this.titleImage&&""!==this.titleImage?a("img",{class:"image",src:this.prepareTitleImage(this.titleImage)}):""),a("bn-body",{key:"06d86283489ea2db12d448b1d4b72b540ad352f8"},a("div",{key:"659cfb06f4d756ffd4e1d08910c66a0751d71f9d",style:t},this.getSlots(e))),a("bn-footer",{key:"8aa67fdf3bcbb465c7861f83f6371bc7f73ae75e",text:this.footerText,"page-number":0,"display-page-number":"false"}))}get element(){return this}static get style(){return':host{background:var(--bn-font-background, white);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);flex-direction:column;overflow:hidden;float:left;clear:left}.cardtitle{display:inline-flex}.image{margin-right:0.5em;margin-top:0.5em;z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}'}},[257,"bn-layout-card",{styles:[1],titleImage:[1,"title-image"],titleBusinessUnit:[1,"title-business-unit"],titleScenarios:[1,"title-scenarios"],titleVariances:[1,"title-variances"],titleOrder:[1,"title-order"],titleOrderDirection:[1,"title-order-direction"],titleMeasures:[1,"title-measures"],titleDateStart:[1,"title-date-start"],titleDateEnd:[1,"title-date-end"],titleDateFormat:[1,"title-date-format"],titleDateLink:[1,"title-date-link"],titleNamespace:[1,"title-namespace"],footerText:[1,"footer-text"],cardLayout:[1,"card-layout"],cardCustomTemplate:[1,"card-custom-template"],cardGridGap:[1,"card-grid-gap"],cardFitToContent:[4,"card-fit-to-content"],cardShowBorder:[4,"card-show-border"],getNumberOfSlot:[64]}]),h=m,f=function(){"undefined"!=typeof customElements&&["bn-layout-card","bn-body","bn-card","bn-footer","bn-title","ibcs-title"].forEach((t=>{switch(t){case"bn-layout-card":customElements.get(i(t))||customElements.define(i(t),m);break;case"bn-body":customElements.get(i(t))||n();break;case"bn-card":customElements.get(i(t))||c();break;case"bn-footer":customElements.get(i(t))||l();break;case"bn-title":customElements.get(i(t))||d();break;case"ibcs-title":customElements.get(i(t))||b()}}))};export{h as BnLayoutCard,f as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnLayoutPage extends Components.BnLayoutPage, HTMLElement {}
4
+ export const BnLayoutPage: {
5
+ prototype: BnLayoutPage;
6
+ new (): BnLayoutPage;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,h as s,Fragment as a,transformTag as i}from"@stencil/core/internal/client";import{a as r}from"./withHasError.js";import{d as n}from"./bn-body2.js";import{d as o}from"./bn-footer2.js";import{d as c}from"./bn-message2.js";import{d as l}from"./bn-page2.js";import{d as m}from"./bn-title2.js";import{d as b}from"./ibcs-title2.js";const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.messageText="",this.messageImage="",this.titleBusinessUnit="",this.titleOrder="category",this.titleOrderDirection="asc",this.titleDateFormat="none",this.titleDateLink="none",this.titleNamespace="_system",this.footerDisplayPageNumber=!0,this.pageLayout="full",this.pageCustomTemplate='"a b" "c d"',this.pageGridGap="0",this.pageFitToContent=!0,this.templateMap=new Map([["split-vertical",'"a b"'],["split-horizontal",'"a" "b"'],["2x2",'"a b" "c d"'],["3x3",'"a b c" "d e f" "g h i"'],["4x4",'"a b c d" "e f g h" "i j k l" "m n o p"'],["1-over-2",'"a a" "b c"'],["2-over-1",'"a b" "c c"'],["1-over-3",'"a a a " "b c d"'],["3-over-1",'"a b c" "d d d"'],["custom-template",'"a b" "c c c"'],["gold3",'"a c" "b c"'],["gold4",'"a b c c" "d d c c"']]),this.errors=r(this)}getCommonStyles(){let t="100%",e="100%";return!0===this.pageFitToContent&&(e="fit-content",t="fit-content"),{display:"grid",height:t,width:e,gap:this.pageGridGap+"px"}}getLayoutStyle(){return Object.assign(Object.assign({},this.getCommonStyles()),{"grid-template-areas":this.getTemplateAreas(this.pageLayout),"grid-template-columns":this.getGridTemplateColumns(this.pageLayout)})}createDivAreaStyles(t){return t.map((t=>({width:"100%",overflow:"hidden","grid-area":t,height:"100%"})))}getSlots(t){const e=this.createDivAreaStyles(t);return s(a,null,e.map(((t,e)=>s("div",{style:t},s("slot",{name:"slot-"+e})))))}extractSlotNames(t){if(null==t)return[];const e=t.match(/\b\w+\b/g);return e?Array.from(new Set(e)):[]}getTemplateAreas(t){return!1===this.templateMap.has(t)&&"custom-template"!==t?'"a"':"custom-template"===t?this.pageCustomTemplate:this.templateMap.get(t)}calculatePercentages(t){const e=t.trim().split(/\s+/).length;if(0===e)return"100%";const s=(100/e).toFixed(0)+"%";return Array(e).fill(s).join(" ")}getGridTemplateColumns(t){if(!1===this.templateMap.has(t)&&"custom-template"!==t)return"100%";let e;e="custom-template"===t?this.pageCustomTemplate:this.templateMap.get(t);const s=e.match(/"[\w\d\s.]+"/g);return this.calculatePercentages(s[0])}async getNumberOfSlot(t){const e=this.getTemplateAreas(t);return this.extractSlotNames(e).length}componentDidUpdate(){const t=this.element.closest("bn-context").getAttribute("render-orientation");if(t&&t!==this.pageOrientation){const t=this.element.shadowRoot.querySelector("bn-page"),e=this.element.closest("bn-layout-page");e&&t&&(t.style.transform="rotate(-90deg) translate(-100%)",t.style.transformOrigin="top left",e.style.width=t.clientHeight+"px",e.style.height=t.clientWidth+"px")}}render(){const t=this.getLayoutStyle(),e=this.extractSlotNames(t["grid-template-areas"]);return s("bn-page",{key:"2f67c9b949ab18de247ea492c95b1e53e450fcca",styles:this.styles,format:this.pageFormat,orientation:this.pageOrientation},s("bn-message",{key:"6fb865fe6cf9785c6a3932967d9969d5e0a4eda5",text:this.messageText,image:this.messageImage}),s("bn-title",{key:"3ba10325d834b364d0a68012f589ba5508877652",namespace:this.titleNamespace,"business-unit":this.titleBusinessUnit,scenarios:this.titleScenarios,variances:this.titleVariances,order:this.titleOrder,"order-direction":this.titleOrderDirection,measures:this.titleMeasures,"date-start":this.titleDateStart,"date-end":this.titleDateEnd,"date-format":this.titleDateFormat,"date-link":this.titleDateLink}),s("bn-body",{key:"16bcb1e231d65b2f0e90c82d8e3ec1a84cc79c59"},s("div",{key:"1408692a37d04686e5d9ad00bca7f1d24787b595",style:t},this.getSlots(e))),s("bn-footer",{key:"83e924e38db44fb678490a8a4d12b264699fc3e2",text:this.footerText,"page-number":this.pageNumber,"display-page-number":this.footerDisplayPageNumber}))}get element(){return this}static get style(){return':host{background:var(--bn-font-background, white);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);flex-direction:column;overflow:hidden;float:left;clear:left}'}},[257,"bn-layout-page",{styles:[1],messageText:[1,"message-text"],messageImage:[1,"message-image"],titleBusinessUnit:[1,"title-business-unit"],titleScenarios:[1,"title-scenarios"],titleVariances:[1,"title-variances"],titleOrder:[1,"title-order"],titleOrderDirection:[1,"title-order-direction"],titleMeasures:[1,"title-measures"],titleDateStart:[1,"title-date-start"],titleDateEnd:[1,"title-date-end"],titleDateFormat:[1,"title-date-format"],titleDateLink:[1,"title-date-link"],titleNamespace:[1,"title-namespace"],pageFormat:[1,"page-format"],pageOrientation:[1,"page-orientation"],pageNumber:[1,"page-number"],footerText:[1,"footer-text"],footerDisplayPageNumber:[4,"footer-display-page-number"],pageLayout:[1,"page-layout"],pageCustomTemplate:[1,"page-custom-template"],pageGridGap:[1,"page-grid-gap"],pageFitToContent:[4,"page-fit-to-content"],getNumberOfSlot:[64]}]),h=d,p=function(){"undefined"!=typeof customElements&&["bn-layout-page","bn-body","bn-footer","bn-message","bn-page","bn-title","ibcs-title"].forEach((t=>{switch(t){case"bn-layout-page":customElements.get(i(t))||customElements.define(i(t),d);break;case"bn-body":customElements.get(i(t))||n();break;case"bn-footer":customElements.get(i(t))||o();break;case"bn-message":customElements.get(i(t))||c();break;case"bn-page":customElements.get(i(t))||l();break;case"bn-title":customElements.get(i(t))||m();break;case"ibcs-title":customElements.get(i(t))||b()}}))};export{h as BnLayoutPage,p as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnMap extends Components.BnMap, HTMLElement {}
4
+ export const BnMap: {
5
+ prototype: BnMap;
6
+ new (): BnMap;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as a,h as s,Host as i,transformTag as r}from"@stencil/core/internal/client";import{h as n,l as o,p as l,q as p,r as d}from"./validate.js";import{w as h}from"./withStyled.js";import{w as m,a as u}from"./withHasError.js";import{w as c}from"./withDataset.js";import{C as g}from"./componentRegister.js";import{g as v}from"./utils.js";import{d as y}from"./ibcs-map2.js";const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.bnStateUpdated=a(this,"bnStateUpdated",7),this.bnDragZoomEnded=a(this,"bnDragZoomEnded",7),this.markerList=[],this.gpxList=[],this.geojsonList=[],this.gpxData=[],this.geojsonData=[],this.markerData=[],this.data=[],this.uuid=v(),this.markersDatasetName="$markers",this.gpxsDatasetName="$gpxs",this.latitude=50.137634,this.longitude=8.679129,this.scale=11,this.manualPosOverride=!0,this.showScale=!1,this.attribution="",this.tileLayer="https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png",this.markers=null,this.gpxs=null,this.geojsons=null,h(this),m(this),this.errors=u(this),c(this,((t,e)=>{t===this.markersDatasetName?this.markerData=e:t===this.gpxsDatasetName&&(this.gpxData=e)}))}validateMarkerDatasetName(t){const e="ERR_markersDatasetName";"string"!=typeof t?this.errors.addOrReplace({id:e,type:"warning",message:"markerDatasetName: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(e)}validateGpxsDatasetName(t){const e="ERR_gpxsDatasetName";"string"!=typeof t?this.errors.addOrReplace({id:e,type:"warning",message:"gpxsDatasetName: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(e)}validateLatitude(t){const e="ERR_latitude";n(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"latitude: invalid value(s) '"+t+"' are not supported."})}validateLongitude(t){const e="ERR_longitude";n(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"longitude: invalid value(s) '"+t+"' are not supported."})}validateScale(t){const e="ERR_scale";n(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"scale: invalid value(s) '"+t+"' are not supported."})}validateManualPosOverride(t){const e="ERR_scale";o(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"manualPosOverride: invalid value(s) '"+t+"' are not supported."})}validateShowScale(t){const e="ERR_showScale";o(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"showScale: invalid value(s) '"+t+"' are not supported."})}validateAttribution(t){const e="ERR_attribution";"string"!=typeof t?this.errors.addOrReplace({id:e,type:"warning",message:"attribution: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(e)}validateTileLayer(t){const e="ERR_tileLayer";"string"!=typeof t?this.errors.addOrReplace({id:e,type:"warning",message:"tileLayer: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(e)}validateMarkers(t){if(!t)return;const e="ERR_markers",a="ERR_markersJSON";try{const s=l(t);s.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"Markers: invalid value(s) '"+s+"' are not supported."}):this.errors.remove(e),this.markerList=JSON.parse(t),this.errors.remove(a)}catch(e){this.errors.addOrReplace({id:a,type:"warning",message:"Markers: invalid value(s) '"+t+"' are not supported.:"+e.message})}}validateGpx(t){if(!t)return;const e="ERR_gpxs",a="ERR_gpxsJSON";try{const s=p(t);s.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"gpxs: invalid value(s) '"+s+"' are not supported."}):this.errors.remove(e),this.gpxList=JSON.parse(t),this.errors.remove(a)}catch(e){this.errors.addOrReplace({id:a,type:"warning",message:"gpxs: invalid '"+t+"' is not supported.:"+e.message})}}validateGeojson(t){if(!t)return;const e="ERR_geojsons",a="ERR_geojsons";try{const s=d(t);s.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"geojsons: invalid value(s) '"+s+"' are not supported."}):this.errors.remove(e),this.geojsonList=JSON.parse(t),this.errors.remove(a)}catch(e){this.errors.addOrReplace({id:a,type:"warning",message:"geojsons: invalid '"+t+"' is not supported.:"+e.message})}}stateUpdated(t){g.updateStatus(this.uuid,t.detail)}dragZoomEnded(t){this.bnDragZoomEnded.emit(t.detail)}componentWillLoad(){this.validateLatitude(this.latitude),this.validateLongitude(this.longitude),this.validateScale(this.scale),this.validateShowScale(this.showScale),this.validateAttribution(this.attribution),this.validateTileLayer(this.tileLayer),this.validateMarkers(this.markers),this.validateGpx(this.gpxs),this.validateGeojson(this.geojsons),this.validateManualPosOverride(this.manualPosOverride)}render(){return s(i,{key:"fa9bf3fb7fcf0c10b91967c6e3a67db914af1bf9"},s("ibcs-map",{key:"2b692fe311b00b65d0001ae64f5b17f7b99d111d",tileLayer:this.tileLayer,latitude:this.latitude,longitude:this.longitude,scale:this.scale,showScale:this.showScale,showZoom:!1,attribution:this.attribution,gpxs:this.prepareGpxData(),markers:this.prepareMarkerData(),geojsons:this.prepareGeojsonData(),manualPosOverride:this.manualPosOverride}))}prepareMarkerData(){return[...this.markerData,...this.markerList]}prepareGpxData(){return[...this.gpxData,...this.gpxList]}prepareGeojsonData(){return[...this.geojsonData,...this.geojsonList]}getDataStructureGpxParams(){return{GpxParams:{file:{type:"string",isOptional:!1,description:""},color:{type:"string",isOptional:!1,description:""},opacity:{type:"number",isOptional:!1,description:""},weight:{type:"number",isOptional:!1,description:""},lineCap:{type:"string",isOptional:!1,description:""},startIconUrl:{type:"string",isOptional:!1,description:""},endIconUrl:{type:"string",isOptional:!1,description:""},shadowUrl:{type:"string",isOptional:!1,description:""}}}}getDataStructureGeojsonParams(){return{GeojsonParams:{file:{type:"string",isOptional:!1,description:""},color:{type:"string",isOptional:!1,description:""},opacity:{type:"number",isOptional:!1,description:""},weight:{type:"number",isOptional:!1,description:""},lineCap:{type:"string",isOptional:!1,description:""}}}}getDataStructureMarkerParams(){return{MarkerParams:{latitude:{type:"number",isOptional:!1,description:""},longitude:{type:"string",isOptional:!1,description:""},iconUrl:{type:"number",isOptional:!1,description:""},iconWidth:{type:"number",isOptional:!1,description:""},iconHeight:{type:"number",isOptional:!1,description:""},tile:{type:"string",isOptional:!1,description:""}}}}get element(){return this}static get watchers(){return{markersDatasetName:[{validateMarkerDatasetName:0}],gpxsDatasetName:[{validateGpxsDatasetName:0}],latitude:[{validateLatitude:0}],longitude:[{validateLongitude:0}],scale:[{validateScale:0}],manualPosOverride:[{validateManualPosOverride:0}],showScale:[{validateShowScale:0}],attribution:[{validateAttribution:0}],tileLayer:[{validateTileLayer:0}],markers:[{validateMarkers:0}],gpxs:[{validateGpx:0}],geojsons:[{validateGeojson:0}]}}static get style(){return":host{display:block;height:100%}"}},[1,"bn-map",{markersDatasetName:[1,"markers-dataset-name"],gpxsDatasetName:[1,"gpxs-dataset-name"],latitude:[1026],longitude:[1026],scale:[1026],manualPosOverride:[1028,"manual-pos-override"],showScale:[4,"show-scale"],attribution:[1],tileLayer:[1,"tile-layer"],markers:[1],gpxs:[1],geojsons:[1],gpxData:[32],geojsonData:[32],markerData:[32],data:[32]},[[0,"stateUpdated","stateUpdated"],[0,"dragZoomEnded","dragZoomEnded"]],{markersDatasetName:[{validateMarkerDatasetName:0}],gpxsDatasetName:[{validateGpxsDatasetName:0}],latitude:[{validateLatitude:0}],longitude:[{validateLongitude:0}],scale:[{validateScale:0}],manualPosOverride:[{validateManualPosOverride:0}],showScale:[{validateShowScale:0}],attribution:[{validateAttribution:0}],tileLayer:[{validateTileLayer:0}],markers:[{validateMarkers:0}],gpxs:[{validateGpx:0}],geojsons:[{validateGeojson:0}]}]),w=b,O=function(){"undefined"!=typeof customElements&&["bn-map","ibcs-map"].forEach((t=>{switch(t){case"bn-map":customElements.get(r(t))||customElements.define(r(t),b);break;case"ibcs-map":customElements.get(r(t))||y()}}))};export{w as BnMap,O as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnMessage extends Components.BnMessage, HTMLElement {}
4
+ export const BnMessage: {
5
+ prototype: BnMessage;
6
+ new (): BnMessage;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{F as s,d as o}from"./bn-message2.js";const a=s,e=o;export{a as BnMessage,e as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,h as s,Host as i,transformTag as n}from"@stencil/core/internal/client";import{w as o,a}from"./withHasError.js";import{w as r}from"./withComponentStyle.js";import{g as d}from"./context-protocol.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),o(this),this.errors=a(this),this.componentStyle=r(this)}connectedCallback(){this.stores=d(this.element)}getFontStyles(){return this.componentStyle((t=>{var e,s,i,n;return{"--bn-font-family":(null===(e=t.global)||void 0===e?void 0:e.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(s=t.global)||void 0===s?void 0:s.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(i=t.global)||void 0===i?void 0:i.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(t){if(null==t||""===t)return"";const e=this.stores.assets.state;return t.startsWith("asset:")?e[t.substring(6)]:e[t]||t}render(){return s(i,{key:"fc5f029a310621d2dc911d05549a8128896d22bc",id:this.text||this.image?"container-page-message":"container",style:this.getFontStyles()},s("div",{key:"7e8b92d010ade7d71360145c2d9ca82c5682dfb9",id:"message-text"},null!=this.text&&""!==this.text?s("span",{class:"note"},this.text):""),s("div",{key:"b40fdf7a7af3ba9352015c42617b39aa9d17a0dc",id:"page-image"},null!=this.image&&""!==this.image?s("img",{class:"image",src:this.prepareAssetUrl(this.image)}):""))}static get assetsDirs(){return["assets"]}get element(){return this}static get style(){return':host{padding:0.2em 0.5em;display:flex;flex-direction:row;justify-content:space-between;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(#container-page-message){height:4.55em;box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:0.1em solid #ddd}div#message-text{font-size:1.4em;overflow:clip;display:inline}.image{z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}'}},[1,"bn-message",{text:[1025],image:[1]}]);function c(){"undefined"!=typeof customElements&&["bn-message"].forEach((t=>{"bn-message"===t&&(customElements.get(n(t))||customElements.define(n(t),l))}))}export{l as F,c as d}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnPage extends Components.BnPage, HTMLElement {}
4
+ export const BnPage: {
5
+ prototype: BnPage;
6
+ new (): BnPage;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{P as o,d as s}from"./bn-page2.js";const a=o,p=s;export{a as BnPage,p as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as i,h as o,Host as a,transformTag as n}from"@stencil/core/internal/client";import{i as h}from"./validate.js";import{w as e,a as r}from"./withHasError.js";import{w as s}from"./withComponentStyle.js";const d=["xga","hd","full-hd","4k","4k2k","a4","a3","a2","a1","a0","letter","legal"],f=["landscape","portrait"],p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),e(this),this.errors=r(this),this.componentStyle=s(this)}validateFormat(t){const i="ERR_format";h(t)||d.includes(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:`format: invalid value '${t}' is not supported. Valid values: ${d.join(", ")}`})}validateOrientation(t){const i="ERR_orientation";h(t)||f.includes(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:`orientation: invalid value '${t}' is not supported. Valid values: ${f.join(", ")}`})}render(){return o(a,{key:"7623fe9a67534d467f10d7ad25afb201e895110f",format:this.format,orientation:this.orientation,style:this.prepareStyle()},o("slot",{key:"8a2e3cce4449d2ce5ce898aff45ca8b4b903ab6c"}))}prepareStyle(){return{"font-family":this.componentStyle((t=>t.global.fontFamily)),"font-size":`${this.componentStyle((t=>t.global.fontSizePx))}px`,"--bn-font-family":this.componentStyle((t=>t.global.fontFamily))||"'Noto Sans', sans-serif","--bn-font-size":`${this.componentStyle((t=>t.global.fontSizePx))||13.3333}px`,"--bn-font-color":this.componentStyle((t=>t.global.fontColor))||"#000000","--bn-font-background":this.componentStyle((t=>t.global.fontBackgroundColor))||"#ffffff"}}get element(){return this}static get watchers(){return{format:[{validateFormat:0}],orientation:[{validateOrientation:0}]}}static get style(){return':host{background:var(--bn-font-background, white);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);height:768px;width:1024px;display:flex;flex-direction:column;page-break-after:always;overflow:hidden}:host([format=xga]){height:768px;width:1024px}:host([format=xga][orientation=portrait]){height:1024px;width:768px}:host([format=xga][orientation=landscape]){height:768px;width:1024px}:host([format=hd]){height:720px;width:1280px}:host([format=hd][orientation=portrait]){height:1280px;width:720px}:host([format=hd][orientation=landscape]){height:720px;width:1280px}:host([format=full_hd]){height:1080px;width:1920px}:host([format=full_hd][orientation=portrait]){height:1920px;width:1080px}:host([format=full_hd][orientation=landscape]){height:1080px;width:1920px}:host([format="4k"]){height:2160px;width:3840px}:host([format="4k"][orientation=portrait]){height:3840px;width:2160px}:host([format="4k"][orientation=landscape]){height:2160px;width:3840px}:host([format="4k2k"]){height:2160px;width:4096px}:host([format="4k2k"][orientation=portrait]){height:4096px;width:2160px}:host([format="4k2k"][orientation=landscape]){height:2160px;width:4096px}:host([format=a6]){height:5.83in;width:4.13in}:host([format=a6][orientation=portrait]){height:5.83in;width:4.13in}:host([format=a6][orientation=landscape]){height:4.13in;width:5.83in}:host([format=a5]){height:8.27in;width:5.83in}:host([format=a5][orientation=portrait]){height:8.27in;width:5.83in}:host([format=a5][orientation=landscape]){height:5.83in;width:8.27in}:host([format=a4]){height:11.6in;width:8.17in}:host([format=a4][orientation=portrait]){height:11.6in;width:8.17in}:host([format=a4][orientation=landscape]){height:8.17in;width:11.6in}:host([format=a3]){height:16.54in;width:11.7in}:host([format=a3][orientation=portrait]){height:16.54in;width:11.7in}:host([format=a3][orientation=landscape]){height:11.7in;width:16.54in}:host([format=a2]){height:23.4in;width:16.54in}:host([format=a2][orientation=portrait]){height:23.4in;width:16.54in}:host([format=a2][orientation=landscape]){height:16.54in;width:23.4in}:host([format=a1]){height:33.1in;width:23.4in}:host([format=a1][orientation=portrait]){height:33.1in;width:23.4in}:host([format=a1][orientation=landscape]){height:23.4in;width:33.1in}:host([format=a0]){height:46.8in;width:33.1in}:host([format=a0][orientation=portrait]){height:46.8in;width:33.1in}:host([format=a0][orientation=landscape]){height:33.1in;width:46.8in}:host([format=letter]){height:11in;width:8.5in}:host([format=letter][orientation=portrait]){height:11in;width:8.5in}:host([format=letter][orientation=landscape]){height:8.5in;width:11in}:host([format=legal]){height:14in;width:8.5in}:host([format=legal][orientation=portrait]){height:14in;width:8.5in}:host([format=legal][orientation=landscape]){height:8.5in;width:14in}:host([format=tabloid]){height:17in;width:11in}:host([format=tabloid][orientation=portrait]){height:17in;width:11in}:host([format=tabloid][orientation=landscape]){height:11in;width:17in}:host([format=ledger]){height:11in;width:17in}:host([format=ledger][orientation=portrait]){height:17in;width:11in}:host([format=ledger][orientation=landscape]){height:11in;width:17in}'}},[257,"bn-page",{format:[1],orientation:[1]},void 0,{format:[{validateFormat:0}],orientation:[{validateOrientation:0}]}]);function l(){"undefined"!=typeof customElements&&["bn-page"].forEach((t=>{"bn-page"===t&&(customElements.get(n(t))||customElements.define(n(t),p))}))}export{p as P,l as d}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BnTable extends Components.BnTable, HTMLElement {}
4
+ export const BnTable: {
5
+ prototype: BnTable;
6
+ new (): BnTable;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;