@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 @@
1
+ import{proxyCustomElement as t,HTMLElement as i,h as s,Host as h,transformTag as e}from"@stencil/core/internal/client";import{S as n,g as r,a as o,b as l,c as a,I as c,F as u,d,e as f,f as p,P as w}from"./SVGVariancesStyleGroup.js";import{h as v,e as b,g,c as m,C as S,k as L,i as P,j as y,A as k,b as M}from"./Order.js";import{C as x,F as C,I as A,V as O,S as T}from"./ibcsRuleSet.js";import{S as $,D,b as _}from"./DataFormatDigits.js";import{a as E}from"./alasql.min.js";import{D as Y,b as N}from"./DateStringFactory.js";class R{constructor(){this.scenarioOffset=.3,this.scenarioLabelToColumn=.3,this.labelToColumn=.3,this.labelToAxis=.3,this.needleWidth=.3,this.needleHeadWidth=.6,this.columnWidth=2,this.varianceAxisLineWidth=.3,this.axisLineWidth=.1,this.auxiliaryLineWidth=.1,this.scenarioLineWidth=.2,this.markerWidth=.7,this.markerOffset=0,this.categoryWidth=3,this.axisTickLength=.3}}class F{adapt(t){const i=new R;return v.isNumber(t.scenarioOffset)&&(i.scenarioOffset=t.scenarioOffset),v.isNumber(t.scenarioLabelToColumn)&&(i.scenarioLabelToColumn=t.scenarioLabelToColumn),v.isNumber(t.labelToColumn)&&(i.labelToColumn=t.labelToColumn),v.isNumber(t.labelToAxis)&&(i.labelToAxis=t.labelToAxis),v.isNumber(t.needleWidth)&&(i.needleWidth=t.needleWidth),v.isNumber(t.needleHeadWidth)&&(i.needleHeadWidth=t.needleHeadWidth),v.isNumber(t.columnWidth)&&(i.columnWidth=t.columnWidth),v.isNumber(t.varianceAxisLineWidth)&&(i.varianceAxisLineWidth=t.varianceAxisLineWidth),v.isNumber(t.axisLineWidth)&&(i.axisLineWidth=t.axisLineWidth),v.isNumber(t.auxiliaryLineWidth)&&(i.auxiliaryLineWidth=t.auxiliaryLineWidth),v.isNumber(t.scenarioLineWidth)&&(i.scenarioLineWidth=t.scenarioLineWidth),v.isNumber(t.markerWidth)&&(i.markerWidth=t.markerWidth),v.isNumber(t.markerOffset)&&(i.markerOffset=t.markerOffset),v.isNumber(t.categoryWidth)&&(i.categoryWidth=t.categoryWidth),v.isNumber(t.axisTickLength)&&(i.axisTickLength=t.axisTickLength),i}default(){return new R}}class H{constructor(t,i,s,h,e,n,r){this.categoryPosition={x:0,y:0},this.spacings=new R,this.categoriesBoxOffset={width:0,height:0},this.padding=t,this.scaleFactors=i,this.fontStlye=s,this.dataLabelHeight=this.caluculateDataLabelHeight(),this.axisPosition={x:0,y:0},this.columnValue={min:h,max:e},this.numberOfColumns=n,this.leftSideLabelLength=r,this.calculateSpacings(),this.calculateCategoryPosition(),this.calculateAxisPosition()}caluculateDataLabelHeight(){return 1.1*x("123456789",{font:this.fontStlye.font,fontSize:this.fontStlye.size+"px"}).height}getColumnCenterPositionX(t){return this.categoryPosition.y+this.spacings.scenarioOffset+t*this.spacings.categoryWidth+this.leftSideLabelLength+.5*this.spacings.columnWidth}getAxisPositionY(t){let i=this.columnValue.max.getScaledUnit();return t&&(i=this.columnValue.max.getScaledPercentUnit()+this.getNeedleWidth()),i+this.dataLabelHeight+this.spacings.labelToAxis+this.padding.top}getAxisPositionX(){return this.padding.left+this.leftSideLabelLength}getColumnPositionX(t,i){return i?this.getColumnCenterPositionX(t):this.getColumnCenterPositionX(t)-this.spacings.scenarioOffset}getColumnPositionY(){return this.columnValue.max.getScaledUnit()+this.dataLabelHeight+this.spacings.labelToColumn+this.padding.top}getNeedlePositionY(){return this.columnValue.max.getScaledPercentUnit()+this.dataLabelHeight+this.spacings.labelToColumn+this.getNeedleWidth()+this.padding.top}getMarkerPositionX(t,i){return i?this.getColumnCenterPositionX(t)-this.spacings.markerOffset-.5*this.getColumnWidth():this.getColumnCenterPositionX(t)+this.spacings.markerOffset+.5*this.getColumnWidth()}getMarkerPositionY(){return this.getColumnPositionY()}getAxisTitlePositionX(t){const i=t.width();return this.axisPosition.x-i}getAxisTitlePositionY(t,i){let s=this.columnValue.max.getScaledUnit();return i&&(s=this.columnValue.max.getScaledPercentUnit()),t?s+this.dataLabelHeight+this.spacings.labelToAxis:s}getColumnDataLabelPositionY(t){const i=this.spacings.labelToColumn;return t<0?this.getColumnPositionY()+Math.abs(t)+i:this.getColumnPositionY()-t-i}getNeedleDataLabelPositionY(t){const i=this.spacings.labelToColumn;return t<0?this.getNeedlePositionY()+Math.abs(t)+i+2*this.getNeedleWidth():this.getNeedlePositionY()-t-i-2*this.getNeedleWidth()}getAxisEndPositionX(){return this.getAxisPositionX()+(this.numberOfColumns+.5)*this.spacings.categoryWidth}getColumnWidth(){return this.spacings.columnWidth}getNeedleWidth(){return this.spacings.needleWidth}getNeedleHeadWidth(){return this.spacings.needleHeadWidth}getScenarioLabelPositionOffsetX(t){return t?.5*this.getColumnWidth()+this.spacings.scenarioLabelToColumn:-(.5*this.getColumnWidth()+this.spacings.scenarioLabelToColumn)}calculateSpacings(){this.spacings={scenarioOffset:this.fontStlye.size*this.scaleFactors.scenarioOffset,scenarioLabelToColumn:this.fontStlye.size*this.scaleFactors.scenarioLabelToColumn,markerOffset:this.fontStlye.size*this.scaleFactors.markerOffset,labelToColumn:this.fontStlye.size*this.scaleFactors.labelToColumn,labelToAxis:this.fontStlye.size*this.scaleFactors.labelToAxis,needleWidth:this.fontStlye.size*this.scaleFactors.needleWidth,needleHeadWidth:this.fontStlye.size*this.scaleFactors.needleHeadWidth,columnWidth:this.fontStlye.size*this.scaleFactors.columnWidth,varianceAxisLineWidth:this.fontStlye.size*this.scaleFactors.varianceAxisLineWidth,axisLineWidth:this.fontStlye.size*this.scaleFactors.axisLineWidth,auxiliaryLineWidth:this.fontStlye.size*this.scaleFactors.auxiliaryLineWidth,scenarioLineWidth:this.fontStlye.size*this.scaleFactors.scenarioLineWidth,markerWidth:this.fontStlye.size*this.scaleFactors.markerWidth,categoryWidth:this.fontStlye.size*this.scaleFactors.categoryWidth,axisTickLength:this.fontStlye.size*this.scaleFactors.axisTickLength}}calculateCategoryPosition(){this.categoryPosition={x:this.padding.left+.5*this.spacings.columnWidth,y:this.padding.top}}calculateAxisPosition(){this.axisPosition={x:this.getAxisPositionX(),y:this.getAxisPositionY(!1)}}getMarkerScenarioLabelPositionOffsetX(t){return t?this.spacings.labelToColumn-this.fontStlye.size:this.spacings.labelToColumn+.5*this.spacings.markerWidth}}class V{constructor(t){this.top=t.top,this.bottom=t.bottom,this.left=t.left,this.right=t.right}addBoxTopLeft(t){return this.top+=t.height|this.top,this.left+=t.width|this.top,this}}class j{constructor(t){const i=1*t,s=.7*t;this.bgOffset=(i-s)/2,this.markerUp={top:s/2+",0",left:"0,"+s,right:s+","+s},this.markerUpBackground={top:i/2+",0",left:"0,"+i,right:i+","+i},this.markerDown={bottom:s/2+","+s,left:"0,0",right:s+",0"},this.markerDownBackground={bottom:i/2+","+i,left:"0,0",right:i+",0"},this.markerRight={bottom:"0,"+s,top:"0,0",right:s+","+s/2},this.markerRightBackground={bottom:"0,"+i,top:"0,0",right:i+","+i/2},this.markerLeft={bottom:s+","+s,top:s+",0",left:"0,"+s/2},this.markerLeftBackground={bottom:i+","+i,top:i+",0",Left:"0,"+i/2}}upMarkerPatternStrings(){return{background:this.markerUpBackground.left+" "+this.markerUpBackground.right+" "+this.markerUpBackground.top+" "+this.markerUpBackground.left,foreground:this.markerUp.left+" "+this.markerUp.right+" "+this.markerUp.top+" "+this.markerUp.left,bgOffset:this.bgOffset}}downMarkerPatternStrings(){return{background:this.markerDownBackground.left+" "+this.markerDownBackground.right+" "+this.markerDownBackground.bottom+" "+this.markerDownBackground.left,foreground:this.markerDown.left+" "+this.markerDown.right+" "+this.markerDown.bottom+" "+this.markerDown.left,bgOffset:this.bgOffset}}rightMarkerPatternStrings(){return{background:this.markerRightBackground.top+" "+this.markerRightBackground.right+" "+this.markerRightBackground.bottom+" "+this.markerRightBackground.top,foreground:this.markerRight.top+" "+this.markerRight.right+" "+this.markerRight.bottom+" "+this.markerRight.top,bgOffset:this.bgOffset}}leftMarkerPatternStrings(){return{background:this.markerLeftBackground.top+" "+this.markerLeftBackground.Left+" "+this.markerLeftBackground.bottom+" "+this.markerLeftBackground.top,foreground:this.markerLeft.top+" "+this.markerLeft.left+" "+this.markerLeft.bottom+" "+this.markerLeft.top,bgOffset:this.bgOffset}}createPatternMapForStructureBar(){const t=new Map;return t.set("marker-up",this.upMarkerPatternStrings()),t.set("marker-down",this.downMarkerPatternStrings()),t.set("marker-right",this.rightMarkerPatternStrings()),t.set("marker-left",this.leftMarkerPatternStrings()),t}}class W{constructor(t){this.container=new n,this.pattern=this.createFCPattern(this.container.group(),t),this.styles=t;let i=10;null!=t&&null!=t.fontStyles&&t.fontStyles.size&&(i=t.fontStyles.size),this.bgOffset=(1*i-.7*i)/2}createFCPattern(t,i){const s=i;return t.pattern(10,10,(function(t){t.rect(10,10).fill(s.barStyles.fc.fill),t.line(0,5,5,0).stroke({width:s.barStyles.fc.width,color:s.barStyles.fc.stroke,linecap:"square"}),t.line(5,10,10,5).stroke({width:s.barStyles.fc.width,color:s.barStyles.fc.stroke,linecap:"square"})})).id("pattern-time-fc")}getFCPolygonPattern(){return{background:"",foreground:"",bgOffset:0,pattern:this.pattern}}toString(){return this.container.svg()}}var X;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Top=3]="Top",t[t.Bottom=4]="Bottom"}(X||(X={}));class G{constructor(t,i,s,h,e,n,r,o){this.ID_SCENARIOLABEL="Label",this.CSS_CATEGORIES="categories",this.isRelativeLabel=!1,this.segmentFillColor=null,this.x=i,this.y=s,this.value=e,this.group=t.group().id(this.createElementID(t.toString(),h)),this.styles=n,this.isVarianceLabel=!1,this.verticalHookLocation=r||X.Top,this.horizontalHookLocation=o||X.Left}setToVarianceLabel(){return this.isVarianceLabel=!0,this}setToRelativeVarianceLabel(){return this.isVarianceLabel=!0,this.isRelativeLabel=!0,this}setSegmentFill(t){return this.segmentFillColor=t,this}updateGroup(t){return this.group=t,this}draw(t=!0,i={percent:2,decimal:1},s=new $){if(this.isEmpty())return this;const h=this.group;let e,n="";if(!1===Number.isNaN(Number(this.value))){let t="percent",h=i.percent,r=i.percent,o=1;!1===this.isRelativeLabel&&(h=i.decimal,r=i.decimal,o=s.value,t="decimal"),e=C.number(Number(this.value),t,h,r,o),this.isVarianceLabel&&Number(this.value)>=0&&(n="+")}else e=""+this.value;const r=this.drawLabel(h,n+e);return!1===t&&(r.addClass("hide"),h.addClass("hide")),this}isEmpty(){return null==this.value||""===this.value}setPos(t,i){return this.x=t,this.y=i,this}forceStringTypeDraw(){return this.drawLabel(this.group,""+this.value),this}drawLabel(t,i){const s=this.styles.fontStyles.background||"#ffffff";let h="start";const e=t.text(i);e.move(this.x,this.y);const n=e.bbox().w,o=e.bbox().h;let l=0,a=0;const c=e.x();let u=e.y();return this.horizontalHookLocation===X.Left?(h="left",l=e.x()):this.horizontalHookLocation===X.Center?(h="middle",l=e.x()-(n+2)/2):this.horizontalHookLocation===X.Right&&(h="end",l=e.x()-n),this.verticalHookLocation===X.Center?(u=e.y()-1.2*o/2,a=u+.2*o):this.verticalHookLocation===X.Top?(u-=o/4,a=u+.2*o):this.verticalHookLocation===X.Bottom&&(u-=o,a=u+.2*o),e.move(c,u),e.font({anchor:h}),null!=this.segmentFillColor?e.fill(r(this.segmentFillColor)):t.rect(n+2,.8*o).stroke(s).fill(s).opacity(.9).move(l-1,a).insertBefore(e),e}createElementID(t,i){return t+"_"+i+"_"+this.ID_SCENARIOLABEL}}const I={ac:1,pp:2,fc:3,pl:4};var B,z,U;!function(t){t[t.Above=0]="Above",t[t.Below=1]="Below",t[t.Left=2]="Left",t[t.Right=3]="Right"}(B||(B={}));class q{constructor(){this.labels=[],this.scenarioLabels=[]}clear(){this.labels=[],this.scenarioLabels=[]}register(t){this.labels.push(t)}hasCollision(t){return this.labels.some((i=>this.intersects(t,i)))}getOptimalPlacement(t,i,s,h,e,n,r,o){const l=I[r]||99,a=n/2;for(const n of o){const r=this.calculatePlacementForDirection(t,i,s,h,e,a,8,n);if(!this.hasCollision(r.bounds))return r}for(const n of o){const r=this.calculatePlacementForDirection(t,i,s,h,e,a,8,n);if(!this.collidesWithHigherPriority(r.bounds,l))return r}return null}calculatePlacementForDirection(t,i,s,h,e,n,r,o){let l,a,c,u,d,f;switch(o){case B.Above:l=t,a=i-n-r,c=X.Bottom,u=X.Center,d=t-s/2,f=i-n-r-h;break;case B.Below:l=t,a=i+n+r,c=X.Top,u=X.Center,d=t-s/2,f=i+n+r-h/4;break;case B.Left:l=t-n-r,a=i,c=X.Center,u=X.Right,d=t-n-r-s,f=i-.6*h;break;case B.Right:l=t+n+r,a=i,c=X.Center,u=X.Left,d=t+n+r,f=i-.6*h}return{labelX:l,labelY:a,verticalHook:c,horizontalHook:u,bounds:{x:d,y:f,width:s,height:h,pointIndex:e,preferredHook:c}}}collidesWithHigherPriority(t,i){return this.labels.some((s=>!!s.scenarioType&&((I[s.scenarioType]||99)<i&&this.intersects(t,s))))}shouldHideScenarioLabel(t,i,s,h=20){const e=I[s]||99;return!(e<=1)&&this.scenarioLabels.some((s=>{if((I[s.scenarioType]||99)>=e)return!1;const n=Math.abs(i-s.y),r=Math.abs(t-s.x);return n<h&&r<h}))}registerScenarioLabel(t,i,s){this.scenarioLabels.push({x:t,y:i,scenarioType:s})}intersects(t,i){return!(t.x+t.width<i.x||i.x+i.width<t.x||t.y+t.height<i.y||i.y+i.height<t.y)}getLabelCount(){return this.labels.length}}class K{constructor(t,i,s,h){this.value=t,this.scenario=i,this.pixelPerUnit=s||1,this.variance="neg"===h||h===z.NEG?z.NEG:"pos"===h||h===z.POS?z.POS:z.NEU}isEmpty(){return void 0===this.value||null==this.scenario}getScaledUnit(){return null==this.value?0:this.value*this.pixelPerUnit}getScaledPercentUnit(){return null==this.value?0:this.value>1.45?1.45*this.pixelPerUnit:this.value<-1.45?-1.45*this.pixelPerUnit:this.value*this.pixelPerUnit}getVarianceStyle(){return null==this.value||this.value>=0?this.variance:z.NEU===this.variance?z.NEU:z.POS===this.variance?z.NEG:z.POS}isClipped(){return null!=this.value&&Math.abs(this.value)>1.45}getClippedValue(){return 145}getScenario(){var t;return null===(t=this.scenario)||void 0===t?void 0:t.slice(0,2)}}class Z{constructor(){this.operation="+"}addRowGroup(t,i){this.rowGroup=t,this.rowGroupIndex=i}addCategory(t,i){this.category=t,this.categoryIndex=i}addSubCategory(t,i){this.subCategory=t,this.subCategoryIndex=i}addColumnGroup(t,i){this.columnGroup=t,this.columnGroupIndex=i}addSubColumnGroup(t,i){this.columnSubGroup=t,this.columnSubGroupIndex=i}}class J{constructor(){}adapt(t){const i=new Z;return v.isString(t.date)&&(i.date=this.parseDateString(t.date)),v.isOperator(t.operation)&&(i.operation=t.operation),v.isNumber(t.rowGroupIndex)&&v.isString(t.rowGroup)&&i.addRowGroup(t.rowGroup,t.rowGroupIndex),v.isNumber(t.categoryIndex)&&v.isString(t.category)&&i.addCategory(t.category,t.categoryIndex),v.isNumber(t.subCategoryIndex)&&v.isString(t.subCategory)&&i.addSubCategory(t.subCategory,t.subCategoryIndex),v.isNumber(t.columnGroupIndex)&&v.isString(t.columnGroup)&&i.addColumnGroup(t.columnGroup,t.columnGroupIndex),v.isNumber(t.columnSubGroupIndex)&&v.isString(t.columnSubGroup)&&i.addSubColumnGroup(t.columnSubGroup,t.columnSubGroupIndex),this.setActualValues(t,i),this.setPlanValues(t,i),this.setPreviousPeriodValues(t,i),this.setForecastValues(t,i),i}parseDateString(t){const i=b.fromISO(t);if(i.isValid)return i;console.warn(`TimeChartDataRow: invalid date value '${t}' — skipping row`)}default(){return new Z}setActualValues(t,i){v.isNumber(t.ac1)&&(i.ac1=t.ac1),v.isNumber(t.ac2)&&(i.ac2=t.ac2),v.isNumber(t.ac3)&&(i.ac3=t.ac3),v.isNumber(t.ac4)&&(i.ac4=t.ac4)}setPlanValues(t,i){v.isNumber(t.pl1)&&(i.pl1=t.pl1),v.isNumber(t.pl2)&&(i.pl2=t.pl2),v.isNumber(t.pl3)&&(i.pl3=t.pl3),v.isNumber(t.pl4)&&(i.pl4=t.pl4)}setPreviousPeriodValues(t,i){v.isNumber(t.pp1)&&(i.pp1=t.pp1),v.isNumber(t.pp2)&&(i.pp2=t.pp2),v.isNumber(t.pp3)&&(i.pp3=t.pp3),v.isNumber(t.pp4)&&(i.pp4=t.pp4)}setForecastValues(t,i){v.isNumber(t.fc1)&&(i.fc1=t.fc1),v.isNumber(t.fc2)&&(i.fc2=t.fc2),v.isNumber(t.fc3)&&(i.fc3=t.fc3),v.isNumber(t.fc4)&&(i.fc4=t.fc4)}}class Q{constructor(t,i,s,h,e,n){this.scaleFactors=t,this.fontStyles=i,this.axisStyles=s,this.barStyles=h,this.varianceStyles=e,this.padding=n,this.pattern=new Map}}class tt{constructor(t,i,s,h,e){this.scaleFactorsStructureChartAdapter=t,this.fontStyleAdapter=i,this.svgStyleGroupAdapter=s,this.svgVariancesStyleGroupAdapter=h,this.paddingadapter=e}adapt(t){const i=new Q(this.scaleFactorsStructureChartAdapter.default(),this.fontStyleAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgVariancesStyleGroupAdapter.default(),this.paddingadapter.default());return v.isExisting(t)&&(v.isExisting(t.scaleFactors)&&(i.scaleFactors=this.scaleFactorsStructureChartAdapter.adapt(t.scaleFactors)),v.isExisting(t.fontStyles)&&(i.fontStyles=this.fontStyleAdapter.adapt(t.fontStyles)),v.isExisting(t.axisStyles)&&(i.axisStyles=this.svgStyleGroupAdapter.adapt(t.axisStyles)),v.isExisting(t.barStyles)&&(i.barStyles=this.svgStyleGroupAdapter.adapt(t.barStyles)),v.isExisting(t.varianceStyles)&&(i.varianceStyles=this.svgVariancesStyleGroupAdapter.adapt(t.varianceStyles)),v.isExisting(t.padding)&&(i.padding=this.paddingadapter.adapt(t.padding)),i.pattern=new j(i.fontStyles.size).createPatternMapForStructureBar()),i}default(){return new Q(this.scaleFactorsStructureChartAdapter.default(),this.fontStyleAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgVariancesStyleGroupAdapter.default(),this.paddingadapter.default())}}!function(t){t.AC1="ac1",t.PP1="pp1",t.FC1="fc1",t.PL1="pl1",t.AC2="ac2",t.PP2="pp2",t.FC2="fc2",t.PL2="pl2",t.AC3="ac3",t.PP3="pp3",t.FC3="fc3",t.PL3="pl3",t.AC4="ac4",t.PP4="pp4",t.FC4="fc4",t.PL4="pl4",t.POS="pos",t.NEG="neg",t.NEU="neu"}(z||(z={})),function(t){t.LIST="LIST",t.SUM="SUM",t.OPT="OPT"}(U||(U={}));class it{constructor(t,i,s){this.ID_AXIS="axis",this.CSS_AXIS_TITLE="categories",this.scenarioType=t.scenarioType,this.labelText=t.labelText||null,this.isRelative=t.isRelative||!1,this.position=i,this.svgGroup=s.group().id(this.ID_AXIS)}drawAxisTitle(t,i){null==i&&(i=""),t.text(i).addClass(this.CSS_AXIS_TITLE).attr("text-anchor","middle").move(this.position.getAxisTitlePositionX(t),this.position.getAxisTitlePositionY(!0,this.isRelative))}draw(){return this.labelText&&this.drawAxisTitle(this.svgGroup,this.labelText),this.svgGroup.line(this.position.getAxisPositionX(),this.position.getAxisPositionY(this.isRelative),this.position.getAxisEndPositionX(),this.position.getAxisPositionY(this.isRelative)).addClass(this.ID_AXIS+"-"+this.convertScenarioType()),this}convertScenarioType(){return void 0===this.scenarioType||null==this.scenarioType?"default":`${this.scenarioType}`.slice(0,2)}}class st{constructor(t,i,s,h,e,n,r,o=null){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.ID_RECT="RECT",this.FALLBACK_COLOUR="#000000",this.label=null,this.scenarioLabel=null,this.isVarianceColumn=!1,this.overflowConfig=null,this.isOverflowing=!1,this.overdriveHeight=0,this.dimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.dataPoint=s,this.index=h,this.isPrimaryColumn=e,this.position=t,this.columnBarStyles=i.barStyles,this.overflowConfig=o,this.scenarioGroup=n,this.styles=i,this.columnGroup=n.group().id(n.toString()+"_"+this.ID_RECT),!0!==(null==s?void 0:s.isEmpty())&&(this.hasData=!0,this.dimensions=this.createDimensions(s,h,e),this.label=this.getDataLabel(s),this.scenarioLabel=this.getScenarioLabel(r))}setAsVariance(){var t;return this.isVarianceColumn=!0,null===(t=this.label)||void 0===t||t.setToVarianceLabel(),this}updateLabelGroup(t){var i;return this.isEmpty()||null===(i=this.label)||void 0===i||i.updateGroup(t),this}draw(t={percent:2,decimal:1},i=new $){if(this.isEmpty())return this;const s=this.getScenarioStyle(),h=this.convertToSVGStyle(s,"stroke"),e=this.getFillStyle(s);null!=this.columnGroup&&(this.isOverflowing&&this.overflowConfig?this.drawOverdriveBar(e,h):this.columnGroup.rect(this.position.getColumnWidth(),this.dimensions.columnLength).fill(e).stroke(h).y(this.dimensions.yPos).cx(this.dimensions.xPos)),this.drawColumnDataLabel(t,i),this.drawScenarioLabel()}drawOverdriveBar(t,i){if(!this.columnGroup||!this.overflowConfig)return;const s=this.position.getColumnPositionY(),h=this.position.getColumnWidth(),e=this.dimensions.columnLength,{breakGap:n}=this.overflowConfig,r=s-e;this.columnGroup.rect(h,e).fill(t).stroke(i).y(r).cx(this.dimensions.xPos);const o=r-n-this.overdriveHeight;this.columnGroup.rect(h,this.overdriveHeight).fill(t).stroke(i).y(o).cx(this.dimensions.xPos),this.drawBreakIndicator(r,n)}drawBreakIndicator(t,i){if(!this.columnGroup)return;const s=this.position.getColumnWidth(),h=this.dimensions.xPos-s/2,e=t-i/2,n=.35*i,r=s/3;let o=`M ${h} ${e-n}`;for(let t=0;t<3;t++)o+=` L ${h+r*(t+.5)} ${e-n-.3*i} L ${h+r*(t+1)} ${e-n}`;let l=`M ${h} ${e+n}`;for(let t=0;t<3;t++)l+=` L ${h+r*(t+.5)} ${e+n+.3*i} L ${h+r*(t+1)} ${e+n}`;this.columnGroup.rect(s+2,i).fill("#ffffff").stroke("none").y(t-i).cx(this.dimensions.xPos),this.columnGroup.path(o).fill("none").stroke({color:"#000000",width:1}),this.columnGroup.path(l).fill("none").stroke({color:"#000000",width:1})}createDimensions(t,i,s){const h=t.getScaledUnit();if(this.overflowConfig&&h>0){const e="ac"===t.getScenario()?this.overflowConfig.cutHeight:this.overflowConfig.cutHeight-this.overflowConfig.scenarioCutOffset;if(h>e){this.isOverflowing=!0;const{breakGap:t,overdriveZoneHeight:n,maxOverflow:r}=this.overflowConfig;this.overdriveHeight=r>0?(h-e)/r*n:0;const o=e+t+this.overdriveHeight,l=this.position.getColumnPositionY();return{clipped:!1,columnLength:e,xPos:this.position.getColumnPositionX(i,s),yPos:l-e,labelYPos:l-o-this.position.spacings.labelToColumn,scenarioLabelXPos:this.position.getColumnPositionX(i,s)+this.position.getScenarioLabelPositionOffsetX(s),scenarioLabelYPos:l-.5*e}}}return h<0?{clipped:!1,columnLength:Math.abs(h),xPos:this.position.getColumnPositionX(i,s),yPos:this.position.getColumnPositionY(),labelYPos:this.position.getColumnDataLabelPositionY(h),scenarioLabelXPos:this.position.getColumnPositionX(i,s)+this.position.getScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getColumnPositionY()+.5*Math.abs(h)}:{clipped:!1,columnLength:h,xPos:this.position.getColumnPositionX(i,s),yPos:this.position.getColumnPositionY()-h,labelYPos:this.position.getColumnDataLabelPositionY(h),scenarioLabelXPos:this.position.getColumnPositionX(i,s)+this.position.getScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getColumnPositionY()-.5*Math.abs(h)}}getDataLabel(t){let i=X.Bottom;null!=t.value&&t.value<0&&(i=X.Top);const s=this.isOverflowing?this.dimensions.labelYPos:this.position.getColumnDataLabelPositionY(this.dataPoint.getScaledUnit());return new G(this.scenarioGroup,this.position.getColumnCenterPositionX(this.index),s,this.ID_DATA_PREFIX,t.value,this.styles,i,X.Center)}getScenarioLabel(t){return new G(this.scenarioGroup,-1,-1,this.ID_SCENARIO_PREFIX,t,this.styles,X.Center,this.isPrimaryColumn?X.Left:X.Right)}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}drawScenarioLabel(){null==this.scenarioLabel||this.scenarioLabel.isEmpty()||this.isVarianceColumn||this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos,this.dimensions.scenarioLabelYPos).draw(!0)}drawColumnDataLabel(t,i=new $){var s;null===(s=this.label)||void 0===s||s.draw(this.isPrimaryColumn,t,i)}getFillStyle(t){var i,s,h,e;const n=this.columnBarStyles[this.dataPoint.getScenario()];return(null==n?void 0:n.fillpattern)&&(null===(i=this.styles.pattern.get(n.fillpattern))||void 0===i?void 0:i.pattern)?null===(e=null===(h=null===(s=this.styles)||void 0===s?void 0:s.pattern)||void 0===h?void 0:h.get(n.fillpattern))||void 0===e?void 0:e.pattern:this.convertToSVGStyle(t,"fill")}getScenarioStyle(){var t;return this.isVarianceColumn?null===(t=this.styles)||void 0===t?void 0:t.varianceStyles.getSVGStyle(this.dataPoint.getVarianceStyle()):this.columnBarStyles[this.dataPoint.getScenario()]}isEmpty(){return!1===this.hasData||Number.isNaN(this.dataPoint.value)}}class ht{constructor(t,i,s,h,e,n,r,o,l){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.FALLBACK_COLOUR="#000000",this.scenarioLabel=null,this._defaultMarkerPattern=null,this.dimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.position=t,this.markerGroup=i||null,this.markerPattern=s||this._defaultMarkerPattern,this.styles=e,this.barStyles=e?e.barStyles:null,this.scenario=h,!0!==(null==n?void 0:n.isEmpty())&&(this.hasData=!0,this.dimensions=this.createMarkerDimensions(n,r,l),this.scenarioLabel=this.getScenarioLabel(o,e,l))}draw(){if(this.isEmpty())return this;const t=this.convertToSVGStyle(this.barStyles[this.getScenario()],"stroke");let i=this.convertToSVGStyle(this.barStyles[this.getScenario()],"fill");const s=this.barStyles[this.getScenario()];if(null!=s&&s.fillpattern){const t=this.styles.pattern.get(s.fillpattern);null!=t&&(i=t.pattern)}return this.markerGroup.polygon(this.markerPattern.background).fill("#ffffff").cy(this.dimensions.yPos-this.dimensions.columnLength).cx(this.dimensions.xPos),this.markerGroup.polygon(this.markerPattern.foreground).fill(i).stroke(t).cy(this.dimensions.yPos-this.dimensions.columnLength).cx(this.dimensions.xPos),null==this.scenarioLabel||this.scenarioLabel.isEmpty()||this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos,this.dimensions.scenarioLabelYPos).draw(),this}createMarkerDimensions(t,i,s){return t.getScaledUnit()<0?{clipped:!1,labelYPos:0,columnLength:t.getScaledUnit(),xPos:this.position.getMarkerPositionX(i,s),yPos:this.position.getMarkerPositionY(),scenarioLabelXPos:this.position.getMarkerPositionX(i,s)+this.position.getMarkerScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getMarkerPositionY()+Math.abs(t.getScaledUnit())}:{clipped:!1,labelYPos:0,columnLength:t.getScaledUnit(),xPos:this.position.getMarkerPositionX(i,s),yPos:this.position.getMarkerPositionY(),scenarioLabelXPos:this.position.getMarkerPositionX(i,s)+this.position.getMarkerScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getMarkerPositionY()-Math.abs(t.getScaledUnit())}}getScenarioLabel(t,i,s){return null==this.markerGroup?null:new G(this.markerGroup,-1,-1,this.ID_DATA_PREFIX,t,i,X.Center,s?X.Right:X.Left)}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}isEmpty(){return!1===this.hasData}getScenario(){var t;return null===(t=this.scenario)||void 0===t?void 0:t.slice(0,2)}}class et{constructor(t,i,s,h,e){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.ID_RECT="RECT",this.FALLBACK_COLOUR="#000000",this.dataLabel=null,this.dimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.dataPoint=s,this.index=h,this.position=t,this.barStyles=i.barStyles,this.scenarioGroup=e,this.styles=i,this.barGroup=e.group().id(e.toString()+"_"+this.ID_RECT),!0!==(null==s?void 0:s.isEmpty())&&(this.hasData=!0,this.dimensions=this.createDimensions(t,s,h),this.dataLabel=new G(this.scenarioGroup,this.position.getColumnCenterPositionX(this.index),this.position.getNeedleDataLabelPositionY(this.dataPoint.getScaledPercentUnit()),this.ID_DATA_PREFIX,s.value,this.styles,X.Center,X.Center),this.dataLabel.setToRelativeVarianceLabel())}updateLabelGroup(t){var i;return this.isEmpty()||null===(i=this.dataLabel)||void 0===i||i.updateGroup(t),this}draw(){var t;if(this.isEmpty())return this;const i=this.styles.varianceStyles[this.dataPoint.getVarianceStyle()],s=this.convertToSVGStyle(i,"stroke");let h=this.convertToSVGStyle(i,"fill");const e=this.convertToSVGStyle(this.styles.varianceStyles.ac,"stroke"),n=this.convertToSVGStyle(this.styles.varianceStyles.ac,"fill"),r=this.barStyles[this.dataPoint.getScenario()];if(null!=r&&r.fillpattern){const t=this.styles.pattern.get(r.fillpattern);null!=t&&(h=t.pattern)}this.dimensions.clipped?this.createClippedNeedleHead(h,s):this.createNeedleHead(e,n),this.barGroup.rect(this.position.getNeedleWidth(),this.dimensions.columnLength).cx(this.dimensions.xPos).y(this.dimensions.yPos).fill(h).stroke(s),null===(t=this.dataLabel)||void 0===t||t.draw()}createDimensions(t,i,s){return i.getScaledPercentUnit()<0?{labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,columnLength:Math.abs(i.getScaledPercentUnit()),xPos:t.getColumnCenterPositionX(s),yPos:t.getNeedlePositionY(),clipped:i.isClipped()}:{columnLength:i.getScaledPercentUnit(),xPos:t.getColumnCenterPositionX(s),yPos:t.getNeedlePositionY()-i.getScaledPercentUnit(),labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:i.isClipped()}}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}createClippedNeedleHead(t,i){const s=this.barGroup.polygon("0,0 5,9 -5,9 0,0 0,5 5,13 -5,13 0,5").fill(t).cx(this.dimensions.xPos).cy(this.getHeadYPosition()).fill(t).stroke(i);null!=this.dataPoint.value&&this.dataPoint.value<0&&s.flip("y")}createNeedleHead(t,i){this.barGroup.rect(2*this.position.getNeedleWidth(),this.position.getNeedleHeadWidth()).cx(this.dimensions.xPos).cy(this.getHeadYPosition()).fill(t).stroke(i)}isEmpty(){return!1===this.hasData||Number.isNaN(this.dataPoint.value)}getHeadYPosition(){let t=this.dimensions.yPos;return null!=this.dataPoint.value&&this.dataPoint.value<0&&(t+=this.dimensions.columnLength),t}}const nt={ac:{markerFill:"#000000",markerStroke:"#000000",lineColor:"#000000"},pp:{markerFill:"#999999",markerStroke:"#999999",lineColor:"#999999"},fc:{markerFill:"#ffffff",markerStroke:"#000000",lineColor:"#000000",lineDashArray:"4,4"},pl:{markerFill:"#ffffff",markerStroke:"#000000",lineColor:"#000000"}};class rt{constructor(t,i,s,h,e,n,r,o,l=null){this.MARKER_SIZE=8,this.LINE_WIDTH=2,this.ID_LINE_PREFIX="LINE",this.ID_MARKER_PREFIX="MARKER",this.ID_LABEL_PREFIX="LABEL",this.ESTIMATED_LABEL_WIDTH=56,this.ESTIMATED_LABEL_HEIGHT=24,this.position=t,this.styles=i,this.dataPoints=s,this.scenarioGroup=h,this.labelGroup=e,this.scenarioName=n,this.scenarioLabel=r,this.collisionManager=l}draw(t={percent:2,decimal:1},i=new $){return this.drawGeometry(),this.drawLabels(t,i),this}drawGeometry(){if(0===this.dataPoints.length)return this;const t=this.getLineStyle();return this.drawLines(t),this.drawMarkers(t),this}drawLabels(t={percent:2,decimal:1},i=new $){return 0===this.dataPoints.length||(this.drawScenarioLabel(),this.drawValueLabels(t,i)),this}getLineStyle(){var t,i;const s=(null===(i=null===(t=this.scenarioName)||void 0===t?void 0:t.slice(0,2))||void 0===i?void 0:i.toLowerCase())||"ac";return nt[s]||nt.ac}getScenarioVariant(){var t;const i=parseInt((null===(t=this.scenarioName)||void 0===t?void 0:t.slice(-1))||"1",10);return isNaN(i)?1:Math.min(Math.max(i,1),4)}drawSquareMarker(t,i,s,h){const e=this.MARKER_SIZE/2;t.rect(this.MARKER_SIZE,this.MARKER_SIZE).fill(h.markerFill).stroke({color:h.markerStroke,width:1}).move(i-e,s-e)}drawCircleMarker(t,i,s,h){t.circle(this.MARKER_SIZE).fill(h.markerFill).stroke({color:h.markerStroke,width:1}).center(i,s)}drawTriangleMarker(t,i,s,h){const e=this.MARKER_SIZE/2;t.polygon(`${i},${s-e} ${i-e},${s+e} ${i+e},${s+e}`).fill(h.markerFill).stroke({color:h.markerStroke,width:1})}drawDiamondMarker(t,i,s,h){const e=this.MARKER_SIZE/2;t.polygon(`${i},${s-e} ${i+e},${s} ${i},${s+e} ${i-e},${s}`).fill(h.markerFill).stroke({color:h.markerStroke,width:1})}drawLines(t){const i=this.scenarioGroup.group().id(this.ID_LINE_PREFIX);for(let s=1;s<this.dataPoints.length;s++){const h=this.dataPoints[s-1],e=this.dataPoints[s];if(h.dataPoint.isEmpty()||e.dataPoint.isEmpty())continue;const n=this.position.getColumnCenterPositionX(h.index),r=this.position.getColumnPositionY()-h.dataPoint.getScaledUnit(),o=this.position.getColumnCenterPositionX(e.index),l=this.position.getColumnPositionY()-e.dataPoint.getScaledUnit(),a=i.line([[n,r],[o,l]]).stroke({color:t.lineColor,width:this.LINE_WIDTH,linecap:"round"}).fill("none");t.lineDashArray&&a.attr("stroke-dasharray",t.lineDashArray)}}drawMarkers(t){const i=this.scenarioGroup.group().id(this.ID_MARKER_PREFIX),s=this.getScenarioVariant();for(const h of this.dataPoints){if(h.dataPoint.isEmpty())continue;const e=this.position.getColumnCenterPositionX(h.index),n=this.position.getColumnPositionY()-h.dataPoint.getScaledUnit();switch(s){case 2:this.drawCircleMarker(i,e,n,t);break;case 3:this.drawTriangleMarker(i,e,n,t);break;case 4:this.drawDiamondMarker(i,e,n,t);break;default:this.drawSquareMarker(i,e,n,t)}}}getLabelPositionPriority(t){const i=this.dataPoints[t];let s=null;for(let i=t+1;i<this.dataPoints.length;i++)if(!this.dataPoints[i].dataPoint.isEmpty()){s=this.dataPoints[i];break}let h=null;for(let i=t-1;i>=0;i--)if(!this.dataPoints[i].dataPoint.isEmpty()){h=this.dataPoints[i];break}const e=i.dataPoint.getScaledUnit();return h&&s&&h.dataPoint.getScaledUnit()>e&&s.dataPoint.getScaledUnit()>e?[B.Below,B.Left,B.Right,B.Above]:[B.Above,B.Left,B.Right,B.Below]}getScenarioType(){var t,i;return(null===(i=null===(t=this.scenarioName)||void 0===t?void 0:t.slice(0,2))||void 0===i?void 0:i.toLowerCase())||"ac"}drawValueLabels(t,i){const s=this.getScenarioType();for(let h=0;h<this.dataPoints.length;h++){const e=this.dataPoints[h];if(e.dataPoint.isEmpty()||null===e.dataPoint.value)continue;const n=this.position.getColumnCenterPositionX(e.index),r=this.position.getColumnPositionY()-e.dataPoint.getScaledUnit();let o=n,l=r-this.MARKER_SIZE/2-2,a=X.Bottom,c=X.Center;if(this.collisionManager){const t=this.getLabelPositionPriority(h),i=this.collisionManager.getOptimalPlacement(n,r,this.ESTIMATED_LABEL_WIDTH,this.ESTIMATED_LABEL_HEIGHT,e.index,this.MARKER_SIZE,s,t);if(null===i)continue;o=i.labelX,l=i.labelY,a=i.verticalHook,c=i.horizontalHook;const u=Object.assign(Object.assign({},i.bounds),{scenarioType:s});this.collisionManager.register(u)}new G(this.labelGroup,o,l,this.ID_LABEL_PREFIX,e.dataPoint.value,this.styles,a,c).draw(!0,t,i)}}drawScenarioLabel(){if(!this.scenarioLabel)return;let t=null;for(let i=this.dataPoints.length-1;i>=0;i--)if(!this.dataPoints[i].dataPoint.isEmpty()){t=this.dataPoints[i];break}if(!t)return;const i=this.position.getColumnCenterPositionX(t.index)+this.MARKER_SIZE+4,s=this.position.getColumnPositionY()-t.dataPoint.getScaledUnit(),h=this.getScenarioType();if(this.collisionManager){if(this.collisionManager.shouldHideScenarioLabel(i,s,h))return;this.collisionManager.registerScenarioLabel(i,s,h)}new G(this.labelGroup,i,s,"SCENARIO_LABEL",this.scenarioLabel,this.styles,X.Center,X.Left).forceStringTypeDraw()}}class ot{constructor(t,i,s,h,e,n,r,o,l,a,c){this.hasData=!1,this.position=t,this.styles=i,this.dataPoint=s,this.index=h,this.baselineValue=e,this.segmentIndex=r,this.stackMode=o,this.totalValue=l,this.group=c,this.columnGroup=c.group().id(`stacked_col_${h}_seg_${r}`),!0!==(null==s?void 0:s.isEmpty())&&null!=s.value&&(this.hasData=!0)}draw(t={percent:2,decimal:1},i=new $){if(!this.hasData||null==this.dataPoint.value)return;const s=this.dataPoint.value,h=this.dataPoint.pixelPerUnit;let e,n;const r=this.position.getColumnPositionY();if(this.stackMode===g.RELATIVE){const t=h;e=(0!==this.totalValue?Math.abs(s)/Math.abs(this.totalValue):0)*t,n=r-this.baselineValue/Math.abs(this.totalValue)*t-e}else e=Math.abs(s*h),n=r-this.baselineValue*h-e;const a=this.position.getColumnCenterPositionX(this.index),c=this.position.getColumnWidth(),u=o(this.segmentIndex),d={color:u},f={color:l(this.segmentIndex),width:.5};if(this.columnGroup.rect(c,Math.max(e,.5)).fill(d).stroke(f).y(n).cx(a),e>=18){const h=n+e/2;if(this.stackMode===g.RELATIVE||this.stackMode===g.ABSOLUTE_RELATIVE){const i=(0!==this.totalValue?s/this.totalValue*100:0).toFixed(t.percent)+"%";new G(this.group,a,h,"STACK_SEG",i,this.styles,X.Center,X.Center).setSegmentFill(u).forceStringTypeDraw()}else new G(this.group,a,h,"STACK_SEG",s,this.styles,X.Center,X.Center).setSegmentFill(u).draw(!0,t,i)}}drawTotalLabel(t={percent:2,decimal:1},i=new $){if(this.stackMode===g.RELATIVE)return;const s=this.position.getColumnCenterPositionX(this.index),h=this.position.getColumnPositionY();new G(this.group,s,h-this.totalValue*this.dataPoint.pixelPerUnit-this.position.spacings.labelToColumn,"STACK_TOTAL",this.totalValue,this.styles,X.Bottom,X.Center).draw(!0,t,i)}}const lt={ac:{fill:"#000000",opacity:.3,lineColor:"#000000"},pp:{fill:"#999999",opacity:.3,lineColor:"#999999"},fc:{fill:"#000000",opacity:.2,lineColor:"#000000",dashArray:"4,4"},pl:{fill:"#000000",opacity:.1,lineColor:"#000000"}},at=[{fill:"#000000",opacity:.3},{fill:"#555555",opacity:.25},{fill:"#999999",opacity:.2},{fill:"#bbbbbb",opacity:.15},{fill:"#dddddd",opacity:.1}];class ct{constructor(t,i,s,h,e,n){this.group=t.group().id(`area_fill_${e}`),this.upperPoints=i,this.lowerPoints=s,this.scenarioType=h,this.segmentIndex=e,this.isScenarioStack=n}draw(){if(this.upperPoints.length<2||this.lowerPoints.length<2)return;let t,i,s=`M ${this.upperPoints[0].x},${this.upperPoints[0].y}`;for(let t=1;t<this.upperPoints.length;t++)s+=` L ${this.upperPoints[t].x},${this.upperPoints[t].y}`;for(let t=this.lowerPoints.length-1;t>=0;t--)s+=` L ${this.lowerPoints[t].x},${this.lowerPoints[t].y}`;if(s+=" Z",this.isScenarioStack&&this.scenarioType){const s=this.scenarioType.slice(0,2).toLowerCase(),h=lt[s]||lt.ac;t=h.fill,i=h.opacity}else{const s=Math.min(this.segmentIndex,at.length-1);t=at[s].fill,i=at[s].opacity}this.group.path(s).fill(t).opacity(i).stroke("none")}drawBoundaryLine(){if(this.upperPoints.length<2)return;let t,i="#000000";if(this.isScenarioStack&&this.scenarioType){const s=this.scenarioType.slice(0,2).toLowerCase(),h=lt[s]||lt.ac;i=h.lineColor,t=h.dashArray}const s=this.group.polyline(this.upperPoints.map((t=>[t.x,t.y]))).fill("none").stroke({color:i,width:1.5});t&&s.attr("stroke-dasharray",t)}}class ut{constructor(t,i,s,h,e,n,r,o){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.ID_RECT="RECT",this.FALLBACK_COLOUR="#000000",this.label=null,this.scenarioLabel=null,this.isVarianceLine=!1,this.dimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.previousDimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.dataPoint=s,this.index=e,this.isPrimaryLine=n,this.position=t,this.LineBarStyles=i.barStyles,this.scenarioGroup=r,this.styles=i,this.LineGroup=r.group().id(r.toString()+"_"+this.ID_RECT),!0!==(null==s?void 0:s.isEmpty())&&(this.hasData=!0,this.dimensions=this.createDimensions(s,e,n),this.label=this.getDataLabel(s),this.scenarioLabel=this.getScenarioLabel(o)),this.previousDimensions=this.createDimensions(h,e-1,n)}setAsVariance(){var t;return this.isVarianceLine=!0,null===(t=this.label)||void 0===t||t.setToVarianceLabel(),this}updateLabelGroup(t){var i;return this.isEmpty()||null===(i=this.label)||void 0===i||i.updateGroup(t),this}draw(t={percent:2,decimal:1},i=new $){if(this.isEmpty())return this;const s=this.getScenarioStyle(),h=this.getFillStyle(s);null!=this.LineGroup&&this.LineGroup.line([[this.previousDimensions.xPos,this.previousDimensions.yPos],[this.dimensions.xPos,this.dimensions.yPos]]).fill(h).stroke({color:"#f06",width:3,linecap:"round"}),this.drawLineDataLabel(t,i),this.drawScenarioLabel()}createDimensions(t,i,s){return{clipped:!1,columnLength:t.getScaledUnit(),xPos:this.position.getColumnPositionX(i,s),yPos:this.position.getColumnPositionY()-t.getScaledUnit(),labelYPos:this.position.getColumnDataLabelPositionY(t.getScaledUnit()),scenarioLabelXPos:this.position.getColumnPositionX(i,s)+this.position.getScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getColumnPositionY()-t.getScaledUnit()}}getDataLabel(t){let i=X.Bottom;return null!=t.value&&t.value<0&&(i=X.Top),new G(this.scenarioGroup,this.position.getColumnCenterPositionX(this.index),this.position.getColumnDataLabelPositionY(this.dataPoint.getScaledUnit()),this.ID_DATA_PREFIX,t.value,this.styles,i,X.Center)}getScenarioLabel(t){return new G(this.scenarioGroup,0,0,this.ID_SCENARIO_PREFIX,t,this.styles,X.Bottom,X.Left)}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}drawScenarioLabel(){null==this.scenarioLabel||this.scenarioLabel.isEmpty()||this.isVarianceLine||this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos,this.dimensions.scenarioLabelYPos).draw(!0)}drawLineDataLabel(t,i=new $){var s;null===(s=this.label)||void 0===s||s.draw(this.isPrimaryLine,t,i)}getFillStyle(t){var i,s,h,e;const n=this.LineBarStyles[this.dataPoint.getScenario()];return(null==n?void 0:n.fillpattern)&&(null===(i=this.styles.pattern.get(n.fillpattern))||void 0===i?void 0:i.pattern)?null===(e=null===(h=null===(s=this.styles)||void 0===s?void 0:s.pattern)||void 0===h?void 0:h.get(n.fillpattern))||void 0===e?void 0:e.pattern:this.convertToSVGStyle(t,"fill")}getScenarioStyle(){var t;return this.isVarianceLine?null===(t=this.styles)||void 0===t?void 0:t.varianceStyles.getSVGStyle(this.dataPoint.getVarianceStyle()):this.LineBarStyles[this.dataPoint.getScenario()]}isEmpty(){return!1===this.hasData||Number.isNaN(this.dataPoint.value)}}class dt{constructor(t,i,s,h,e){this.pixelPerUnit=1,this.collisionManager=null,this.overflowConfig=null,this.i18n=e;const n=i.group().id("Scenario1"),r=i.group().id("Scenario2").insertBefore(n);this.svgGroups={parent:i,scenario1:n,scenario2:r,scenario3:i.group().id("Scenario3"),scenario4:i.group().id("Scenario4"),scenario1Label:i.group().id("label")},this.styles=s,this.position=t,this.elementCnt=h}setOverflowConfig(t){this.overflowConfig=t}createLine(t,i,s,h){const e=this.svgGroups.scenario1.group().id(""+h),n=this.svgGroups.scenario1Label.group().id(""+h);let r=null;return this.isLastDataPoint(h-1)&&(r=t),new ut(this.position,this.styles,i,s,h,!1,e,r).updateLabelGroup(n)}createPrimaryBar(t,i){const s=this.svgGroups.scenario1.group().id(""+i),h=this.svgGroups.scenario1Label.group().id(""+i);let e=null;return this.isLastDataPoint(i)&&(e=`${this.i18n.get(t.scenario)||t.scenario}`),new st(this.position,this.styles,t,i,!0,s,e,this.overflowConfig).updateLabelGroup(h)}createVarianceBar(t,i){const s=this.svgGroups.scenario1.group().id(""+i),h=this.svgGroups.scenario1Label.group().id(""+i);let e=null;return this.isLastDataPoint(i)&&(e=`${this.i18n.get(t.scenario)||t.scenario}`),new st(this.position,this.styles,t,i,!0,s,e,this.overflowConfig).updateLabelGroup(h).setAsVariance()}createRelativeVarianceBar(t,i){const s=this.svgGroups.scenario1.group().id(""+i),h=this.svgGroups.scenario1Label.group().id(""+i);return new et(this.position,this.styles,t,i,s).updateLabelGroup(h)}createSecondaryBar(t,i){const s=this.svgGroups.scenario2.group().id(""+i);let h=null;return this.isFirstDataPoint(i)&&(h=`${this.i18n.get(t.scenario)||t.scenario}`),new st(this.position,this.styles,t,i,!1,s,h,this.overflowConfig)}createPrimaryMarker(t,i){const s=this.svgGroups.scenario3.group().id(""+i),h=this.styles.pattern.get("marker-right")||{foreground:"#000000",background:"#ffffff",bgOffset:0};let e=null;return this.isFirstDataPoint(i)&&(e=`${this.i18n.get(t.scenario)||t.scenario}`),new ht(this.position,s,h,t.scenario,this.styles,t,i,e,!0)}createSecondaryMarker(t,i){const s=this.svgGroups.scenario4.group().id(""+i),h=this.styles.pattern.get("marker-left")||{foreground:"#000000",background:"#ffffff",bgOffset:0};let e=null;return this.isLastDataPoint(i)&&(e=`${this.i18n.get(t.scenario)||t.scenario}`),new ht(this.position,s,h,t.scenario,this.styles,t,i,e,!1)}isLastDataPoint(t){return this.elementCnt-1===t}isFirstDataPoint(t){return 0===t}setCollisionManager(t){this.collisionManager=t}moveLabelsToFront(){this.svgGroups.scenario1Label.front()}createLineSeries(t,i){const s=this.svgGroups.parent.group().id("LineSeries_"+i),h=this.svgGroups.scenario1Label.group().id("LineSeries_Label_"+i),e=`${this.i18n.get(i)||i}`;return new rt(this.position,this.styles,t,s,h,i,e,this.i18n,this.collisionManager)}}var ft,pt;!function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(ft||(ft={})),function(t){t.RELATIVE="dr",t.ABSOLUTE="d",t.NONE=""}(pt||(pt={}));class wt{constructor(t,i,s,h=0){this.CSS_CATEGORIES="categories",this.dataModel=[],this.variancesDataModel=[],this.title="",this.smallestDataPointValue=new K(0,z.AC1,1,z.NEU),this.highestDataPointValue=new K(0,z.AC1,1,z.NEU),this.smallestVarianceDataPointValue=new K(0,z.AC1,1,z.NEU),this.highestVarianceDataPointValue=new K(0,z.AC1,1,z.NEU),this.pixelPerUnit=1,this.pixelPerPercentage=1,this.hideAxisLabels=!1,this.axisScenario=z.AC1,this.preparedDataSet=[],this.axisCategoryArea={width:0,height:0},this.scenariosArea={width:0,height:0},this.state=ft.DIRTY,this.i18n=new Map,this.leftSideOffsetForHorizontalSync=-1,this.dateInterval=Y.DAY,this.locale="de",this.axisLabelsMode=m.SMART,this.intervalSpanLimit=32,this.measureScale=new $,this.measureUnit="",this.dataFormatDigits={percent:2,decimal:1},this.showOverlayMedian=!1,this.showOverlayAvg=!1,this.chartMode=S.BAR,this.maxBars=28,this.stackConfig=null,this.lineFullWidth=!0,this.availableWidth=0,this.overflowConfig=null,this.lastScenarios=[],this.initSQLFunctions(),this.ruleSet=t||new A,this.i18n=this.createI18n(new Map),this.styles=s,this.availableWidth=h,this.setConfig(i),this.position=this.createElementPosition(i.scenarios)}updatePosition(t){this.position=this.createElementPosition(t)}initSQLFunctions(){E.fn.transformOperator=function(t){return"-"===t?-1:1},E.fn.normalizeDate=function(t,i){if(void 0!==t&&t.isValid)return t.startOf(i)}}setStyles(t){this.styles=t}setAvailableWidth(t){this.availableWidth=t}setAvailableHeight(t){this.pixelPerUnit<=0||t<=0?this.overflowConfig=null:null==this.stackConfig&&this.determineEffectiveChartMode()===S.BAR?(this.overflowConfig=this.calculateOverflowConfig(t),this.overflowConfig&&this.updatePosition(this.lastScenarios)):this.overflowConfig=null}calculateOverflowConfig(t){const i=(this.isVarianceChart()?this.highestVarianceDataPointValue:this.highestDataPointValue).getScaledUnit();if(i<=0)return null;const s=this.styles.fontStyles.size,h=1.5*s,e=.3*s,n=t-(this.position.dataLabelHeight+this.position.spacings.labelToColumn+this.position.padding.top+this.position.padding.bottom+this.position.spacings.labelToAxis+s)-h-e,r=.8*s;if(n<=r)return null;const o=n-r;return i<=o?null:{cutHeight:n,overdriveZoneHeight:h,breakGap:e,maxOverflow:i-o,scenarioCutOffset:r}}setConfig(t){var i;this.state=ft.DIRTY,this.sortScenariosbyVisualisationRules(t),this.setData([...t.data],t.filter),this.hideAxisLabels=t.hideAxisLabels||!1,this.pixelPerUnit=t.pixelPerUnit,this.pixelPerPercentage=t.pixelPerPercentage,this.axisLabelsMode=t.axisLabelsMode,this.intervalSpanLimit=t.intervalSpanLimit,this.dateInterval=this.findDateInterval(t.dateInterval),this.dataModel=this.populateModel(t.scenarios,this.dateInterval,t.level,t.sortOrder),this.variancesDataModel=this.populateVarianceModel(t.variances,this.dataModel),this.title=t.title||C.translateScenarioLabel(null===(i=null==t?void 0:t.variances)||void 0===i?void 0:i.toString(),this.i18n),this.smallestDataPointValue=this.findSmallestDataPointValue(this.dataModel),this.smallestVarianceDataPointValue=this.findSmallestDataPointValue(this.variancesDataModel),this.highestDataPointValue=this.findHighestDataPointValue(this.dataModel),this.highestVarianceDataPointValue=this.findHighestDataPointValue(this.variancesDataModel),this.axisScenario=this.setAxisScenario(t.variances),this.leftSideOffsetForHorizontalSync=t.leftSideOffsetForHorizontalSync,this.measureScale=t.measureScale,this.measureUnit=t.measureUnit,this.dataFormatDigits=t.dataFormatDigits,this.showOverlayMedian=t.showOverlayMedian,this.showOverlayAvg=t.showOverlayAvg,this.chartMode=t.chartMode,this.maxBars=t.maxBars,this.stackConfig=t.stackConfig,this.lineFullWidth=t.lineFullWidth,this.lastScenarios=t.scenarios,this.updatePosition(t.scenarios)}getFooter(){return 1===this.measureScale.value&&""===this.measureUnit?" ":C.translateScenarioLabel("in",this.i18n)+" "+this.measureScale.prefix+this.measureUnit}sortScenariosbyVisualisationRules(t){const i=this;t.scenarios.sort(((t,s)=>i.ruleSet.getScenarioSorIndex(t)-i.ruleSet.getScenarioSorIndex(s))).reverse()}setI18n(t){this.i18n=this.createI18n(t)}setData(t,i){if(null!=t)if(this.state=ft.DIRTY,this.preparedDataSet.length=0,null!=i&&i.length>0)try{this.preparedDataSet=E(`SELECT * FROM ? WHERE ${i}`,[t])}catch(s){console.error("TimeChart: filter query failed, using unfiltered data",i,s),this.preparedDataSet=t}else this.preparedDataSet=t}getAllocatedCanvasWidth(){const t=this.position.getAxisEndPositionX(),i=3*this.styles.fontStyles.size,s=Math.max(this.axisCategoryArea.width,this.scenariosArea.width);return Math.max(t+i,s>0?s+this.position.leftSideLabelLength:0)}getAllocatedCanvasHeight(){if(null==this.smallestVarianceDataPointValue.value||null==this.highestVarianceDataPointValue.value||null==this.smallestDataPointValue.value||null==this.highestDataPointValue.value)return 0;const t=this.isVarianceChart()&&this.variancesDataModel.some((t=>t.type===pt.RELATIVE)),i=this.position.getAxisPositionY(t),s=this.position.spacings.labelToAxis+this.position.dataLabelHeight+this.styles.padding.bottom;let h;if(this.isOnSameAxisSide())h=i+s;else{const t=this.isVarianceChart()?this.smallestVarianceDataPointValue:this.smallestDataPointValue;h=i+Math.abs(t.getScaledUnit())+this.position.spacings.labelToColumn+this.position.dataLabelHeight+s}const e=this.isOnSameAxisSide();return Math.max(h,e?this.axisCategoryArea.height+this.scenariosArea.height:this.scenariosArea.height)}toString(){const t=new n;return this.draw(t),t.id("drawCanvas"),t.width(this.getAllocatedCanvasWidth()),t.height(this.getAllocatedCanvasHeight()),t.attr("overflow","visible"),t.svg()}draw(t){this.cleanSVGforRedraw(t),this.state===ft.DIRTY&&(this.state=ft.UP_TO_DATE),this.isVarianceChart()?(this.drawVarianceScenario(this.variancesDataModel,t),this.drawAxisAndLabels(this.variancesDataModel,t)):null!=this.stackConfig?this.determineEffectiveChartMode()===S.LINE?(this.drawStackedAreaScenarios(this.dataModel,t),this.drawAxisAndLabelsForLineChart(this.dataModel,t)):(this.drawStackedScenarios(this.dataModel,t),this.drawStackedHeaders(this.dataModel,t),this.drawAxisAndLabels(this.dataModel,t)):this.determineEffectiveChartMode()===S.LINE?(this.drawLineScenarios(this.dataModel,t),this.drawAxisAndLabelsForLineChart(this.dataModel,t)):(this.drawScenarios(this.dataModel,t),this.drawOverlayLayer(this.dataModel,t),this.drawAxisAndLabels(this.dataModel,t))}determineEffectiveChartMode(){return this.chartMode===S.LINE||this.chartMode===S.AUTO&&this.dataModel.length>this.maxBars?S.LINE:S.BAR}setPattern(t,i){this.styles.pattern.set(t,i)}hasNoData(){return 0===this.dataModel.length}isOnSameAxisSide(){return null!=this.smallestVarianceDataPointValue.value&&null!=this.highestVarianceDataPointValue.value&&null!=this.smallestDataPointValue.value&&null!=this.highestDataPointValue.value&&(this.isVarianceChart()?Math.sign(this.smallestVarianceDataPointValue.value)===Math.sign(this.highestVarianceDataPointValue.value)||0===this.smallestDataPointValue.value&&1===Math.sign(this.highestDataPointValue.value):Math.sign(this.smallestDataPointValue.value)===Math.sign(this.highestDataPointValue.value)||0===this.smallestDataPointValue.value&&1===Math.sign(this.highestDataPointValue.value))}createI18n(t){this.state=ft.DIRTY;const i=new Map([["SEPERATOR_WS",", "],["in","in"],["ORDER_asc","↑"],["ORDER_desc","↓"],["ac1","AC"],["pp1","PY"],["fc1","FC"],["pl1","PL"],["ac2","AC2"],["pp2","PY2"],["fc2","FC2"],["pl2","PL2"],["ac3","AC3"],["pp3","PY3"],["fc3","FC3"],["pl3","PL3"],["ac4","AC4"],["pp4","PY4"],["fc4","FC4"],["pl4","PL4"],["category"," "],["operation"," "],["there_of","davon"],["part_of","in % von"],["ibcssymbol_delta_ac","Δ{%}"],["ibcssymbol_delta_generic","Δ({%})"],["ibcssymbol_delta_ac_relative","Δ{%}%"],["ibcssymbol_delta_generic_relative","Δ({%})%"],["SUM_TOTAL","❖"]]);return new Map([...i,...t])}createElementPosition(t){let i;const s=x(t.filter(((t,i)=>1===i||2===i)).map((t=>C.translateScenarioLabel(t,this.i18n))).reduce(((t,i)=>t.length<i.length?i:t),""),{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width,h=this.calculateTitleLength(this.leftSideOffsetForHorizontalSync);let e,n;if(i=s>h?s:h,null!=this.position&&(i+=this.position.spacings.labelToColumn),this.leftSideOffsetForHorizontalSync>-1&&(i=this.leftSideOffsetForHorizontalSync),this.isVarianceChart()?(e=this.smallestVarianceDataPointValue,n=this.highestVarianceDataPointValue):(e=this.smallestDataPointValue,n=this.highestDataPointValue),this.overflowConfig){const{cutHeight:t,overdriveZoneHeight:i,breakGap:s}=this.overflowConfig;n=new K(t+i+s,n.scenario,1,n.variance)}let r=this.styles.scaleFactors;const o=this.determineEffectiveChartMode();if(this.lineFullWidth&&this.availableWidth>0&&this.dataModel.length>0&&!this.isVarianceChart()&&o===S.LINE){const t=this.styles.fontStyles.size,s=this.styles.padding,h=this.styles.scaleFactors,e=this.availableWidth-(s.left+s.right+t*h.scenarioOffset+i+t*h.columnWidth);if(e>0){const i=Math.max(e/this.dataModel.length/t,1.2*h.columnWidth),s=new R;Object.assign(s,h),s.categoryWidth=i,r=s}}return new H(new V(this.styles.padding),r,this.styles.fontStyles,e,n,this.dataModel.length,i)}calculateTitleLength(t){let i="_______";i.length<this.title.length&&(i=this.title);const s=x(i,{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width;return s<t?t:s}setAxisScenario(t){let i=z.AC1;if(null!=t&&t.length>0){const s=new O(t.toString());s.isValid&&(i=s.delta)}return null===i&&(i=z.AC1),i}populateModel(t,i,s,h){var e;if(0===(null===(e=this.preparedDataSet)||void 0===e?void 0:e.length))return[];let n=this.queryDataSet(i,"","");return this.detectNaNCells(t,n),n=this.leftOuterJoinDates(n,i),this.createDataRows(n,t)}detectNaNCells(t,i){i.forEach((i=>(t.forEach((t=>{const s=new O(t);!0===s.isValid?0!==i[s.base+"_cnt"]&&0!==i[s.delta+"_cnt"]||(i[t]=Number.NaN):0===i[t+"_cnt"]&&(i[t]=Number.NaN)})),i)))}findDateInterval(t){var i,s,h;if(t!==Y.AUTO)return t;const e=this.queryMinMaxDates();let n=Y.DAY;return null!=(null===(i=e[0])||void 0===i?void 0:i.mindate)&&(n=(new N).calculateDistanceType(null===(s=e[0])||void 0===s?void 0:s.mindate,null===(h=e[0])||void 0===h?void 0:h.maxdate,this.intervalSpanLimit)),n}queryMinMaxDates(){var t,i,s,h;const e=E("SELECT MAX(date) as maxdate, MIN(date) as mindate FROM ?",[this.preparedDataSet]);return null!=(null===(t=e[0])||void 0===t?void 0:t.mindate)&&(e[0].mindate=b.fromMillis(null===(i=e[0])||void 0===i?void 0:i.mindate)),null!=(null===(s=e[0])||void 0===s?void 0:s.maxdate)&&(e[0].maxdate=b.fromMillis(null===(h=e[0])||void 0===h?void 0:h.maxdate)),e}queryDataSet(t,i,s){const h=`normalizeDate([date], '${t}' , '${this.locale}') as calcdate`;return E(`SELECT p.calcdate ${i},\n ${["ac1","ac2","ac3","ac4","pp1","pp2","pp3","pp4","fc1","fc2","fc3","fc4","pl1","pl2","pl3","pl4"].map((t=>`SUM(${t} * transformOperator(operation)) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`)).join(",")} \n \n FROM (SELECT ${h} ${i},\n ac1,\n ac2,\n ac3,\n ac4,\n pp1,\n pp2,\n pp3,\n pp4,\n fc1,\n fc2,\n fc3,\n fc4,\n pl1,\n pl2,\n pl3,\n pl4\n FROM ?) as p\n GROUP BY calcdate ${s}\n ORDER BY calcdate asc`,[this.preparedDataSet])}createDataRows(t,i){const s=[];return t.forEach(((t,h)=>{s.push({id:h,category:t.category,type:pt.NONE,date:t.calcdate,scenario1:new K(t[i[0]],i[0],this.pixelPerUnit,z.NEU),scenario2:new K(t[i[1]],i[1],this.pixelPerUnit,z.NEU),scenario3:new K(t[i[2]],i[2],this.pixelPerUnit,z.NEU),scenario4:new K(t[i[3]],i[3],this.pixelPerUnit,z.NEU)})})),s}findSmallestDataPointValue(t){const i=this.isVarianceChart()?this.pixelPerPercentage:this.pixelPerUnit;let s=new K(0,"default",i,z.NEU);for(const i of t)for(const t of[i.scenario1,i.scenario2,i.scenario3,i.scenario4])t&&null!=t.value&&t.value<Number(s.value)&&(s=t);return s}findHighestDataPointValue(t){const i=this.isVarianceChart()?this.pixelPerPercentage:this.pixelPerUnit;let s=new K(0,"default",i,z.NEU);for(const i of t)for(const t of[i.scenario1,i.scenario2,i.scenario3,i.scenario4])null!=t&&t.value>Number(s.value)&&(s=t);return s}populateVarianceModel(t,i){const s=[];if(null==t||0===t.length)return s;let h=null;null!=i&&i.length>0&&(h=i[0]);for(const e in t){const n=new O(t[e]);if(n.isValid){const t=this.mapScenarios(n,h),e=n.direction,r="dr"===n.type?this.pixelPerPercentage:this.pixelPerUnit;for(const h in i)s.push({id:Number(h),category:i[h].category,type:"dr"===n.type?pt.RELATIVE:pt.ABSOLUTE,date:i[h].date,scenario1:new K(this.calculateVariance(n,i[h],t),n.delta,r,e),scenario2:new K(null,null,null,null),scenario3:new K(null,null,null,null),scenario4:new K(null,null,null,null)})}}return s}calculateVariance(t,i,s){const h=s.get(t.base),e=s.get(t.delta);return null==h||null==e||null==i[h].value||null==i[e].value?null:t.type===pt.RELATIVE?(i[h].value-i[e].value)/i[e].value:i[h].value-i[e].value}mapScenarios(t,i){const s=new Map;return null==i||["scenario1","scenario2","scenario3","scenario4"].forEach((h=>{i[h].scenario===t.delta?s.set(t.delta,h):i[h].scenario===t.base&&s.set(t.base,h)})),s}cleanSVGforRedraw(t){t.clear()}isVarianceChart(){return this.variancesDataModel&&this.variancesDataModel.length>0}createDateFactory(){return new N}drawAxisAndLabels(t,i){const s=this.createDateFactory(),h=i.group().id("AxisAndDateLables");let e=!1;if(!1===this.hideAxisLabels)t.forEach(((t,i)=>{let n=X.Top,r=this.position.spacings.labelToAxis;t.scenario1.value<0&&(n=X.Bottom,r*=-1),t.type===pt.RELATIVE&&(e=!0);let o=s.getDateString(t.date,this.dateInterval);this.axisLabelsMode===m.SMART?(o=s.getSmartDateString(t.date,this.dateInterval),0===i&&this.dateInterval!==Y.YEAR&&(o=s.getShortDateString(t.date,this.dateInterval))):this.axisLabelsMode===m.SHORT&&(o=s.getShortDateString(t.date,this.dateInterval)),new G(h,this.position.getColumnCenterPositionX(i),this.position.getAxisPositionY(e)+r,"",o,this.styles,n,X.Center).forceStringTypeDraw()}));else{const i=null==t?void 0:t[0];i&&i.type===pt.RELATIVE&&(e=!0)}new it({scenarioType:this.axisScenario,labelText:this.title,isRelative:e},this.position,h).draw(),this.axisCategoryArea={height:h.height(),width:h.width()}}drawScenarios(t,i){const s=i.group().id("Scenarios"),h=new dt(this.position,s,this.styles,t.length,this.i18n);h.setOverflowConfig(this.overflowConfig);let e=!1;t.forEach(((t,i)=>{h.createPrimaryBar(t.scenario1,i).draw(this.dataFormatDigits,this.measureScale),h.createSecondaryBar(t.scenario2,i).draw(),h.createPrimaryMarker(t.scenario3,i).draw(),h.createSecondaryMarker(t.scenario4,i).draw(),!1===t.scenario1.isEmpty()&&(e=!0)}));let n=0;!1===e&&(n=this.isOnSameAxisSide()?this.position.dataLabelHeight:2*this.position.dataLabelHeight),this.scenariosArea={height:s.height()+this.styles.padding.top+this.styles.padding.bottom+n,width:s.width()+this.position.spacings.columnWidth}}drawLineScenarios(t,i){var s,h;const e=i.group().id("LineScenarios"),n=new q,r=new dt(this.position,e,this.styles,t.length,this.i18n);r.setCollisionManager(n);const o=["ac1","pp1","fc1","pl1"],l=[[],[],[],[]];t.forEach(((t,i)=>{["scenario1","scenario2","scenario3","scenario4"].forEach(((s,h)=>{t[s]&&l[h].push({dataPoint:t[s],index:i})}))}));const a=[];for(let t=0;t<l.length;t++){const i=l[t];if(i.length>0&&i.some((t=>!t.dataPoint.isEmpty()))){const e=(null===(h=null===(s=i[0])||void 0===s?void 0:s.dataPoint)||void 0===h?void 0:h.scenario)||o[t],n=e.slice(0,2).toLowerCase();a.push({points:i,scenarioName:e,scenarioType:n})}}a.sort(((t,i)=>(I[i.scenarioType]||99)-(I[t.scenarioType]||99)));const c=[];for(const t of a){const i=r.createLineSeries(t.points,t.scenarioName);c.push({series:i,scenarioType:t.scenarioType})}for(const t of c)t.series.drawGeometry();r.moveLabelsToFront();const u=[...c].sort(((t,i)=>(I[t.scenarioType]||99)-(I[i.scenarioType]||99)));for(const t of u)t.series.drawLabels(this.dataFormatDigits,this.measureScale);const d=this.position.getColumnPositionY();this.scenariosArea={height:Math.max(e.height()+this.styles.padding.top,d)+this.styles.padding.bottom,width:e.width()+this.position.spacings.columnWidth}}drawAxisAndLabelsForLineChart(t,i){const s=this.createDateFactory(),h=i.group().id("AxisAndDateLabelsLine"),e=!1,n=t.length-1;!1===this.hideAxisLabels&&t.forEach(((i,r)=>{if(!this.shouldShowLineChartAxisLabel(t,r))return;let o,l=X.Top,a=this.position.spacings.labelToAxis;i.scenario1.value<0&&(l=X.Bottom,a*=-1),this.lineFullWidth&&this.availableWidth>0?this.axisLabelsMode===m.SMART?(o=s.getSmartDateString(i.date,this.dateInterval),0===r&&this.dateInterval!==Y.YEAR&&(o=s.getShortDateString(i.date,this.dateInterval))):o=this.axisLabelsMode===m.SHORT?s.getShortDateString(i.date,this.dateInterval):s.getDateString(i.date,this.dateInterval):o=s.getShortDateString(i.date,this.dateInterval),new G(h,this.position.getColumnCenterPositionX(r),this.position.getAxisPositionY(e)+a,"",o,this.styles,l,X.Center).forceStringTypeDraw(),r>0&&r<n&&this.isYearChange(t,r)&&this.drawYearSeparatorLine(h,r,e)})),new it({scenarioType:this.axisScenario,labelText:this.title,isRelative:e},this.position,h).draw(),this.axisCategoryArea={height:h.height(),width:h.width()}}shouldShowLineChartAxisLabel(t,i){return!!(this.lineFullWidth&&this.availableWidth>0)||(0===i||i===t.length-1||this.isYearChange(t,i))}isYearChange(t,i){var s,h;if(0===i)return!1;const e=null===(s=t[i])||void 0===s?void 0:s.date,n=null===(h=t[i-1])||void 0===h?void 0:h.date;return!(!e||!n)&&e.year!==n.year}drawYearSeparatorLine(t,i,s){const h=this.position.getColumnCenterPositionX(i)-this.position.spacings.columnWidth/2,e=this.position.columnValue.max.getScaledUnit()+this.position.dataLabelHeight,n=this.position.getAxisPositionY(s)-e,r=this.position.getAxisPositionY(s);t.line([[h,n],[h,r]]).stroke({color:"#999999",width:1,dasharray:"4,4"}).attr("stroke-dasharray","4,4")}drawVarianceScenario(t,i){const s=i.group().id("Scenarios"),h=new dt(this.position,s,this.styles,t.length,this.i18n);return h.setOverflowConfig(this.overflowConfig),t.forEach(((t,i)=>{t.type===pt.RELATIVE?h.createRelativeVarianceBar(t.scenario1,i).draw():h.createVarianceBar(t.scenario1,i).draw(this.dataFormatDigits,this.measureScale)})),this.scenariosArea={height:s.height()+this.styles.padding.top+this.styles.padding.bottom,width:s.width()+this.position.spacings.columnWidth},s}drawStackedScenarios(t,i){if(!this.stackConfig)return;const s=i.group().id("StackedScenarios"),h=this.stackConfig.by===L.SCENARIO;t.forEach(((t,i)=>{const e=["scenario1","scenario2","scenario3","scenario4"],n=[];if(h)for(const i of e){const s=t[i];s&&!s.isEmpty()&&null!=s.value&&n.push({value:s.value,scenario:s.scenario,dataPoint:s})}else{const i=t.scenario1;i&&!i.isEmpty()&&null!=i.value&&n.push({value:i.value,scenario:i.scenario,dataPoint:i})}if(0!==n.length)if((h?new Set(n.map((t=>a(t.scenario)))):new Set).size>1){const t=new Map;for(const i of n){const s=a(i.scenario);t.has(s)||t.set(s,[]),t.get(s).push(i)}const h=[];for(const i of c)t.has(i)&&(h.push({prefix:i,segments:t.get(i)}),t.delete(i));for(const[i,s]of t)h.push({prefix:i,segments:s});h.forEach(((t,e)=>{const n=t.segments.reduce(((t,i)=>t+Math.abs(i.value)),0),r=h.length-1-e;let o=0,l=null;t.segments.forEach((t=>{const h=new ot(this.position,this.styles,t.dataPoint,i,o,t.scenario,r,this.stackConfig.mode,n,!0,s);h.draw(this.dataFormatDigits,this.measureScale),o+=Math.abs(t.value),l=h})),l&&l.drawTotalLabel(this.dataFormatDigits,this.measureScale)}))}else{"asc"===this.stackConfig.order?n.sort(((t,i)=>t.value-i.value)):"desc"===this.stackConfig.order&&n.sort(((t,i)=>i.value-t.value));const t=n.reduce(((t,i)=>t+Math.abs(i.value)),0);let e=0,r=null;n.forEach(((n,o)=>{const l=new ot(this.position,this.styles,n.dataPoint,i,e,n.scenario,o,this.stackConfig.mode,t,h,s);l.draw(this.dataFormatDigits,this.measureScale),e+=Math.abs(n.value),r=l})),r&&r.drawTotalLabel(this.dataFormatDigits,this.measureScale)}})),this.scenariosArea={height:s.height()+this.styles.padding.top+this.styles.padding.bottom,width:s.width()+this.position.spacings.columnWidth}}drawStackedHeaders(t,i){if(!this.stackConfig||0===t.length)return;if(this.stackConfig.by!==L.SCENARIO)return;const s=i.group().id("StackedHeaders"),h=t[0],e=["scenario1","scenario2","scenario3","scenario4"],n=[];for(const t of e){const i=h[t];i&&!i.isEmpty()&&null!=i.value&&n.push({value:i.value,scenario:i.scenario,dataPoint:i})}if(0===n.length)return;const r=new Set(n.map((t=>a(t.scenario)))),o=this.position.getColumnPositionY(),l=this.position.getColumnCenterPositionX(0)-this.position.getColumnWidth()/2-this.position.spacings.labelToColumn;if(r.size>1){const t=new Map;for(const i of n){const s=a(i.scenario);t.has(s)||t.set(s,[]),t.get(s).push(i)}const i=[];for(const s of c)t.has(s)&&(i.push({prefix:s,segments:t.get(s)}),t.delete(s));for(const[s,h]of t)i.push({prefix:s,segments:h});i.forEach((t=>{const i=t.segments.reduce(((t,i)=>t+Math.abs(i.value)),0),h=t.segments[0].dataPoint.pixelPerUnit,e=o-(this.stackConfig.mode===g.RELATIVE?h:i*h)/2,n=this.i18n.get(t.prefix+"1")||t.prefix.toUpperCase();new G(s,l,e,"STACK_HEADER",n,this.styles,X.Center,X.Right).forceStringTypeDraw()}))}else{"asc"===this.stackConfig.order?n.sort(((t,i)=>t.value-i.value)):"desc"===this.stackConfig.order&&n.sort(((t,i)=>i.value-t.value));const t=n.reduce(((t,i)=>t+Math.abs(i.value)),0),i=n[0].dataPoint.pixelPerUnit;let h=0;n.forEach((e=>{let n;n=this.stackConfig.mode===g.RELATIVE?(0!==t?Math.abs(e.value)/t:0)*i:Math.abs(e.value*i);const r=o-h-n/2,a=this.i18n.get(e.scenario)||e.scenario;new G(s,l,r,"STACK_HEADER",a,this.styles,X.Center,X.Right).forceStringTypeDraw(),h+=n}))}}drawStackedAreaScenarios(t,i){if(!this.stackConfig)return;const s=i.group().id("StackedAreaScenarios"),h=this.stackConfig.by===L.SCENARIO,e=this.stackConfig.mode,n=["scenario1","scenario2","scenario3","scenario4"];if(0===(h?n.filter((i=>t.some((t=>t[i]&&!t[i].isEmpty())))).length:1))return;const r=[],o=[],l=[];for(const i of n)t.some((t=>t[i]&&!t[i].isEmpty()))&&l.push(i);for(let i=0;i<l.length;i++){const s=l[i],h=[];for(let n=0;n<t.length;n++){const o=t[n][s],a=o&&!o.isEmpty()&&null!=o.value?o.value:0,c=i>0?r[i-1][n]:0;if(e===g.RELATIVE){const i=l.reduce(((i,s)=>{const h=t[n][s];return i+(h&&!h.isEmpty()&&null!=h.value?Math.abs(h.value):0)}),0),s=0!==i?Math.abs(a)/i:0;h.push(c+s)}else h.push(c+a)}r.push(h);const n=t[0][s];o.push((null==n?void 0:n.scenario)||"ac1")}const a=this.position.getColumnPositionY(),c=this.pixelPerUnit,u=t=>t.map(((t,i)=>({x:this.position.getColumnCenterPositionX(i),y:a-t*c}))),d=t.map(((t,i)=>({x:this.position.getColumnCenterPositionX(i),y:a})));for(let t=0;t<r.length;t++){const i=u(r[t]),e=0===t?d:u(r[t-1]),n=new ct(s,i,e,h?o[t]:null,t,h);n.draw(),n.drawBoundaryLine()}this.scenariosArea={height:s.height()+this.styles.padding.top+this.styles.padding.bottom,width:s.width()+this.position.spacings.columnWidth}}drawOverlayLayer(t,i){const s=i.group().id("Overlay"),h=new dt(this.position,s,this.styles,t.length,this.i18n);if(!0===this.showOverlayAvg){let i=null;const s=function(t){const i=t.reduce(((t,i)=>{var s;return t+((null===(s=i.scenario1)||void 0===s?void 0:s.value)||0)}),0),s=t.filter((t=>{var i;return void 0!==(null===(i=t.scenario1)||void 0===i?void 0:i.value)})).length,h=s>0?i/s:0,e=Object.assign(Object.assign({},t[0]),{scenario1:new K(h,t[0].scenario1.scenario,t[0].scenario1.pixelPerUnit,t[0].scenario1.variance)}),n=Object.assign(Object.assign({},t[t.length-1]),{scenario1:new K(h,t[t.length-1].scenario1.scenario,t[t.length-1].scenario1.pixelPerUnit,t[t.length-1].scenario1.variance)});return[e,...t.map((t=>Object.assign(Object.assign({},t),{scenario1:new K(h,t.scenario1.scenario,t.scenario1.pixelPerUnit,t.scenario1.variance)}))),n]}(t);s.forEach(((t,s)=>{null!=i&&h.createLine(`Ø ${this.i18n.get(t.scenario1.scenario)||t.scenario1.scenario}`,t.scenario1,i,s-1).draw(this.dataFormatDigits,this.measureScale),i=t.scenario1}))}if(!0===this.showOverlayMedian){let i=null;const s=function(t){const i=t.map((t=>{var i;return null===(i=t.scenario1)||void 0===i?void 0:i.value})).filter((t=>void 0!==t)).sort(((t,i)=>t-i)),s=i.length%2==0?(i[i.length/2-1]+i[i.length/2])/2:i[Math.floor(i.length/2)],h=Object.assign(Object.assign({},t[0]),{scenario1:new K(s,t[0].scenario1.scenario,t[0].scenario1.pixelPerUnit,t[0].scenario1.variance)}),e=Object.assign(Object.assign({},t[t.length-1]),{scenario1:new K(s,t[t.length-1].scenario1.scenario,t[t.length-1].scenario1.pixelPerUnit,t[t.length-1].scenario1.variance)});return[h,...t.map((t=>Object.assign(Object.assign({},t),{scenario1:new K(s,t.scenario1.scenario,t.scenario1.pixelPerUnit,t.scenario1.variance)}))),e]}(t);s.forEach(((t,s)=>{null!=i&&h.createLine(`Mdn ${this.i18n.get(t.scenario1.scenario)||t.scenario1.scenario}`,t.scenario1,i,s-1).draw(this.dataFormatDigits,this.measureScale),i=t.scenario1}))}}leftOuterJoinDates(t,i){const s=b.max(...t.map((function(t){return t.calcdate}))),h=b.min(...t.map((function(t){return t.calcdate}))),e=(new N).datesBetween(h,s,i,this.intervalSpanLimit),n=new Map;return e.forEach(((t,i)=>{n.set(t.toISO(),{id:i,calcdate:t,category:null,ac1:null,ac2:null,ac3:null,ac4:null,pp1:null,pp2:null,pp3:null,pp4:null,fc1:null,fc2:null,fc3:null,fc4:null,pl1:null,pl2:null,pl3:null,pl4:null,isEmpty:!0})})),t.forEach((t=>{const i=t.calcdate.toISO(),s=n.get(i);s&&s.isEmpty&&n.set(i,{id:s.id,calcdate:t.calcdate,category:t.category,ac1:t.ac1,ac2:t.ac2,ac3:t.ac3,ac4:t.ac4,pp1:t.pp1,pp2:t.pp2,pp3:t.pp3,pp4:t.pp4,fc1:t.fc1,fc2:t.fc2,fc3:t.fc3,fc4:t.fc4,pl1:t.pl1,pl2:t.pl2,pl3:t.pl3,pl4:t.pl4,isEmpty:!1})})),Array.from(n.values())}}class vt{constructor(t,i){this.data=t,this.scenarios=i,this.variances=[],this.title="",this.hideAxisLabels=!1,this.pixelPerUnit=10,this.pixelPerPercentage=50,this.limit=0,this.sortOrder=new y(new T).default(),this.level=k.CATEGORY,this.leftSideOffsetForHorizontalSync=-1,this.dateInterval=Y.AUTO,this.axisLabelsMode=m.SMART,this.intervalSpanLimit=28,this.filter="",this.measureScale=new $,this.measureUnit="",this.showMeasureScale=!0,this.dataFormatDigits={decimal:1,percent:2},this.showOverlayMedian=!0,this.showOverlayAvg=!0,this.chartMode=S.BAR,this.maxBars=28,this.stackConfig=null,this.lineFullWidth=!0}}class bt{constructor(t,i,s,h,e){this.dataRowAdapter=t,this.orderAdapter=i,this.stringAdapter=s,this.dataFormatDigitsAdapter=h,this.dataSet=e}adapt(t){const i=P.adaptArray(t.data,this.dataRowAdapter),s=P.adaptArray(t.scenarios,this.stringAdapter),h=new vt(i,s);return v.isArray(t.variances)&&(h.variances=P.adaptArray(t.variances,this.stringAdapter)),v.isString(t.title)&&(h.title=t.title),v.isBoolean(t.hideAxisLabels)&&(h.hideAxisLabels=t.hideAxisLabels),v.isNumber(t.pixelPerUnit)&&(h.pixelPerUnit=t.pixelPerUnit),v.isNumber(t.pixelPerPercentage)&&(h.pixelPerPercentage=t.pixelPerPercentage),v.isNumber(t.limit)&&(h.limit=t.limit),v.isExisting(t.sortOrder)&&(h.sortOrder=this.orderAdapter.adapt(t.sortOrder)),v.isExisting(t.level)&&(h.level=t.level),v.isExisting(t.dateInterval)&&(h.dateInterval=t.dateInterval),v.isExisting(t.axisLabelsMode)&&(h.axisLabelsMode=t.axisLabelsMode),v.isNumber(t.leftSideOffsetForHorizontalSync)&&(h.leftSideOffsetForHorizontalSync=t.leftSideOffsetForHorizontalSync),v.isNumber(t.intervalSpanLimit)&&(h.intervalSpanLimit=t.intervalSpanLimit),v.isString(t.filter)&&(h.filter=t.filter),v.isExisting(t.measureScale)&&(h.measureScale=D.calculateMeasureScale(this.dataSet,h.scenarios,t.measureScale)),v.isString(t.measureUnit)&&(h.measureUnit=t.measureUnit),v.isBoolean(t.showMeasureScale)&&(h.showMeasureScale=t.showMeasureScale),v.isExisting(t.dataFormatDigits)&&(h.dataFormatDigits=this.dataFormatDigitsAdapter.adapt(t.dataFormatDigits)),v.isBoolean(t.showOverlayAvg)&&(h.showOverlayAvg=t.showOverlayAvg),v.isBoolean(t.showOverlayMedian)&&(h.showOverlayMedian=t.showOverlayMedian),v.isExisting(t.chartMode)&&(h.chartMode=t.chartMode),v.isNumber(t.maxBars)&&(h.maxBars=t.maxBars),v.isExisting(t.stackConfig)&&(h.stackConfig=t.stackConfig),v.isBoolean(t.lineFullWidth)&&(h.lineFullWidth=t.lineFullWidth),h}default(){return new vt([],[])}}const gt=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.data=[],this.scenarios=[],this.variances=[],this.hideAxisLabels=!1,this.pixelPerUnit=2,this.pixelPerPercentage=50,this.limit=0,this.leftSideOffsetForHorizontalSync=-1,this.i18n=new Map,this.order={hierarchy:[],direction:M.ASC},this.level=k.CATEGORY,this.dateInterval=Y.AUTO,this.intervalSpanLimit=28,this.axisLabelsMode=m.SMART,this.filter="",this.measureScale="_",this.measureUnit="",this.showMeasureScale=!0,this.showOverlayMedian=!1,this.showOverlayAvg=!1,this.chartMode=S.BAR,this.maxBars=28,this.stackConfig=null,this.lineFullWidth=!0,this.containerWidth=0,this.dataFormatDigits={percent:2,decimal:1},this.parentDimensions={width:0,height:0}}render(){var t,i,e;if(void 0===this.chart)return s(h,null);if(this.chart.hasNoData()){const t=this.i18n.get("NO_DATA")||"==No Data==";return s(h,null,s("p",{class:"warning"},t))}return s(h,null,s("div",{innerHTML:null===(t=this.pattern)||void 0===t?void 0:t.toString(),class:"hidePatternContainer"}),s("div",{class:this.showMeasureScale?"footer":"footer-hide"},null===(i=this.chart)||void 0===i?void 0:i.getFooter()),s("div",{innerHTML:null===(e=this.chart)||void 0===e?void 0:e.toString()}))}async componentWillLoad(){var t;const i=this.prepareConfig(),s=this.prepareStyle(),h=this.containerWidth||0;this.chart=new wt(new A,i,s,h),this.chart.setI18n(this.i18n),this.autoFitScaling(i,s),this.chart.setAvailableHeight((null===(t=this.parentDimensions)||void 0===t?void 0:t.height)||0),this.pattern=new W(this.chart.styles),this.chart.setPattern("fc",this.pattern.getFCPolygonPattern())}async componentWillUpdate(){var t;if(null==this.chart)return;const i=this.prepareConfig(),s=this.prepareStyle();this.chart.setI18n(this.i18n),this.chart.setStyles(s),this.chart.setAvailableWidth(this.containerWidth||0),this.chart.setConfig(i),this.autoFitScaling(i,s),this.chart.setAvailableHeight((null===(t=this.parentDimensions)||void 0===t?void 0:t.height)||0),this.pattern=new W(this.chart.styles),this.chart.setPattern("fc",this.pattern.getFCPolygonPattern())}autoFitScaling(t,i){var s;if(t.pixelPerUnit>0)return;const h=null===(s=this.parentDimensions)||void 0===s?void 0:s.height,e=this.containerWidth||0;if(!h||h<=0)return t.pixelPerUnit=1,this.chart=new wt(new A,t,i,e),void this.chart.setI18n(this.i18n);t.pixelPerUnit=1,this.chart=new wt(new A,t,i,e),this.chart.setI18n(this.i18n),this.chart.toString();const n=this.chart.getAllocatedCanvasHeight();n<=0||(t.pixelPerUnit=.9*h/n,this.chart=new wt(new A,t,i,e),this.chart.setI18n(this.i18n))}async componentWillRender(){}componentDidLoad(){}componentDidUpdate(){}prepareConfig(){return new bt(new J,new y(new T),new T,new _,this.data).adapt({data:this.data,scenarios:this.scenarios,variances:this.variances,title:this.chartTitle,hideAxisLabels:this.hideAxisLabels,pixelPerUnit:this.pixelPerUnit,pixelPerPercentage:this.pixelPerPercentage,level:this.level,dateInterval:this.dateInterval,axisLabelsMode:this.axisLabelsMode,limit:this.limit,sortOrder:this.order,leftSideOffsetForHorizontalSync:this.leftSideOffsetForHorizontalSync,intervalSpanLimit:this.intervalSpanLimit,filter:this.filter,measureScale:this.measureScale,measureUnit:this.measureUnit,showMeasureScale:this.showMeasureScale,dataFormatDigits:this.dataFormatDigits,showOverlayMedian:this.showOverlayMedian,showOverlayAvg:this.showOverlayAvg,chartMode:this.chartMode,maxBars:this.maxBars,stackConfig:this.stackConfig,lineFullWidth:this.lineFullWidth})}prepareStyle(){return new tt(new F,new u,new d(new f),new p(new f),new w).adapt(this.styles)}get element(){return this}static get style(){return':host{position:relative;display:inline-block}.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-default{stroke:black;stroke-width:0.1em}.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}.hide{opacity:0}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}'}},[1,"ibcs-chart-time",{data:[16],chartTitle:[1,"chart-title"],scenarios:[16],variances:[16],hideAxisLabels:[4,"hide-axis-labels"],pixelPerUnit:[2,"pixel-per-unit"],pixelPerPercentage:[2,"pixel-per-percentage"],limit:[2],leftSideOffsetForHorizontalSync:[2,"left-side-offset-for-horizontal-sync"],styles:[1040],i18n:[1040],order:[16],level:[1],dateInterval:[1,"date-interval"],intervalSpanLimit:[2,"interval-span-limit"],axisLabelsMode:[1,"axis-labels-mode"],filter:[1],measureScale:[1,"measure-scale"],measureUnit:[1,"measure-unit"],showMeasureScale:[4,"show-measure-scale"],showOverlayMedian:[4,"show-overlay-median"],showOverlayAvg:[4,"show-overlay-avg"],chartMode:[1,"chart-mode"],maxBars:[2,"max-bars"],stackConfig:[16],lineFullWidth:[4,"line-full-width"],containerWidth:[2,"container-width"],dataFormatDigits:[16],parentDimensions:[16]}]);function mt(){"undefined"!=typeof customElements&&["ibcs-chart-time"].forEach((t=>{"ibcs-chart-time"===t&&(customElements.get(e(t))||customElements.define(e(t),gt))}))}export{gt as I,mt as d}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface IbcsMap extends Components.IbcsMap, HTMLElement {}
4
+ export const IbcsMap: {
5
+ prototype: IbcsMap;
6
+ new (): IbcsMap;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{I as s,d as o}from"./ibcs-map2.js";const a=s,m=o;export{a as IbcsMap,m as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as o,Host as a,transformTag as n}from"@stencil/core/internal/client";import{a as l}from"./componentRegister.js";var r=36e5,s=864e5,h=new L.Icon.Default,p={startIcon:h,endIcon:h,wptIcons:{"":h},wptTypeIcons:{"":h},pointMatchers:[]},f={iconSize:[33,45],iconAnchor:[16,45],clickable:!1},c={color:"blue"},u={parseElements:["track","route","waypoint"],joinTrackSegments:!0};L.GPX=L.FeatureGroup.extend({initialize:function(t,e){e.max_point_interval=e.max_point_interval||15e3,e.markers=this._merge_objs(p,e.markers||{}),e.marker_options=this._merge_objs(f,e.marker_options||{}),e.polyline_options=e.polyline_options||[],e.gpx_options=this._merge_objs(u,e.gpx_options||{}),L.Util.setOptions(this,e),L.GPXTrackIcon=L.Icon.extend({options:e.marker_options}),this._gpx=t,this._layers={},this._prepare_markers(e.markers),this._init_info(),t&&this._parse(t,e,this.options.async)},get_duration_string:function(t,e){var i="";t>=s&&(i+=Math.floor(t/s)+"d ",t%=s),t>=r&&(i+=Math.floor(t/r)+":",t%=r);var o=Math.floor(t/6e4);t%=6e4,o<10&&(i+="0"),i+=o+"'";var a=Math.floor(t/1e3);return t%=1e3,a<10&&(i+="0"),(i+=a)+(!e&&t>0?"."+Math.round(1e3*Math.floor(t))/1e3:'"')},get_duration_string_iso:function(t,e){return this.get_duration_string(t,e).replace("'",":").replace('"',"")},_toFixed_helper:function(t,e=0){return"number"==typeof t?t.toFixed(e):"?"},to_miles:function(t){return t/1.60934},to_ft:function(t){return 3.28084*t},m_to_km:function(t){return t/1e3},m_to_mi:function(t){return t/1609.34},ms_to_kmh:function(t){return 3.6*t},ms_to_mih:function(t){return t/1609.34*3600},get_name:function(){return this._info.name},get_desc:function(){return this._info.desc},get_author:function(){return this._info.author},get_copyright:function(){return this._info.copyright},get_distance:function(){return this._info.length},get_distance_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))},get_start_time:function(){return this._info.duration.start},get_end_time:function(){return this._info.duration.end},get_moving_time:function(){return this._info.duration.moving},get_total_time:function(){return this._info.duration.total},get_moving_pace:function(){return this.get_moving_time()/this.m_to_km(this.get_distance())},get_moving_pace_imp:function(){return this.get_moving_time()/this.get_distance_imp()},get_moving_speed:function(){return this.m_to_km(this.get_distance())/(this.get_moving_time()/36e5)},get_moving_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_moving_time()/36e5)},get_total_speed:function(){return this.m_to_km(this.get_distance())/(this.get_total_time()/36e5)},get_total_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_total_time()/36e5)},get_elevation_gain:function(){return this._info.elevation.gain},get_elevation_loss:function(){return this._info.elevation.loss},get_elevation_gain_imp:function(){return this.to_ft(this.get_elevation_gain())},get_elevation_loss_imp:function(){return this.to_ft(this.get_elevation_loss())},get_elevation_data:function(){var t=this;return this._info.elevation._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,null,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,0)+" m"}))}))},get_elevation_data_imp:function(){var t=this;return this._info.elevation._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,t.to_ft,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,0)+" ft"}))}))},get_elevation_max:function(){return this._info.elevation.max},get_elevation_min:function(){return this._info.elevation.min},get_elevation_max_imp:function(){return this.to_ft(this.get_elevation_max())},get_elevation_min_imp:function(){return this.to_ft(this.get_elevation_min())},get_speed_data:function(){var t=this;return this._info.speed._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,t.ms_to_kmh,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,2)+" km/h"}))}))},get_speed_data_imp:function(){var t=this;return this._info.speed._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,t.ms_to_mih,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,2)+" mi/h"}))}))},get_speed_max:function(){return 3600*this.m_to_km(this._info.speed.max)},get_speed_max_imp:function(){return this.to_miles(this.get_speed_max())},get_average_hr:function(){return this._info.hr.avg},get_average_temp:function(){return this._info.atemp.avg},get_average_cadence:function(){return this._info.cad.avg},get_heartrate_data:function(){var t=this;return this._info.hr._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,null,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,0)+" bpm"}))}))},get_heartrate_data_imp:function(){var t=this;return this._info.hr._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,null,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,0)+" bpm"}))}))},get_cadence_data:function(){var t=this;return this._info.cad._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,null,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,0)+" rpm"}))}))},get_temp_data:function(){var t=this;return this._info.atemp._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,null,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,0)+" degrees"}))}))},get_cadence_data_imp:function(){var t=this;return this._info.cad._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,null,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,0)+" rpm"}))}))},get_temp_data_imp:function(){var t=this;return this._info.atemp._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,null,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,0)+" degrees"}))}))},reload:function(){this._init_info(),this.clearLayers(),this._parse(this._gpx,this.options,this.options.async)},_merge_objs:function(t,e){var i={};for(var o in t)i[o]=t[o];for(var o in e)i[o]=e[o];return i},_prepare_data_point:function(t,e,i,o){var a=[e&&e(t[0])||t[0],i&&i(t[1])||t[1]];return a.push(o&&o(a[0],a[1])||a[0]+": "+a[1]),a},_prepare_markers:function(t){function e(t){return new L.GPXTrackIcon({iconUrl:t})}return Object.entries(t).forEach((([i,o])=>{"wptIcons"===i||"wptTypeIcons"===i?t[i]=this._prepare_markers(o):"pointMatchers"===i?t[i]=o.map((t=>("string"==typeof t.icon&&(t.icon=e(t.icon)),t))):"string"==typeof o?t[i]=e(o):"object"==typeof o&&null!==o&&(t[i]=o)})),t},_init_info:function(){this._info={name:null,length:0,elevation:{gain:0,loss:0,max:0,min:1/0,_points:[]},speed:{max:0,_points:[]},hr:{avg:0,_total:0,_points:[]},duration:{start:null,end:null,moving:0,total:0},atemp:{avg:0,_total:0,_points:[]},cad:{avg:0,_total:0,_points:[]}}},_load_xml:function(t,e,i,o){null==o&&(o=this.options.async),null==i&&(i=this.options);var a=this,n=new window.XMLHttpRequest;n.open("GET",t,o);try{n.overrideMimeType("text/xml")}catch(t){}n.onloadend=function(){200==n.status?e(n.responseXML,i):a.fire("error",{err:"Error fetching resource: "+t})},n.send(null)},_parse:function(t,e,i){var o=this,a=function(t,e){var i=o._parse_gpx_data(t,e);i?(o.addLayer(i),o.fire("loaded",{layers:i,element:t})):o.fire("error",{err:"No parseable layers of type(s) "+JSON.stringify(e.gpx_options.parseElements)})};if("<"===t.substr(0,1)){var n=new DOMParser;i?setTimeout((function(){a(n.parseFromString(t,"text/xml"),e)})):a(n.parseFromString(t,"text/xml"),e)}else this._load_xml(t,a,e,i)},_parse_gpx_data:function(t,e){var i,o,a=[];(b=t.getElementsByTagName("name")).length>0&&(this._info.name=b[0].textContent),(v=t.getElementsByTagName("desc")).length>0&&(this._info.desc=v[0].textContent);var n=t.getElementsByTagName("author");n.length>0&&(this._info.author=n[0].textContent);var l=t.getElementsByTagName("copyright");l.length>0&&(this._info.copyright=l[0].textContent);var r=e.gpx_options.parseElements;if(r.indexOf("route")>-1){var s=t.getElementsByTagName("rte");for(i=0;i<s.length;i++){var h=this._extract_styling(s[i]),p=this._get_polyline_options(e.polyline_options,i);a=a.concat(this._parse_segment(s[i],e,h,p,"rtept"))}}if(r.indexOf("track")>-1){var f=t.getElementsByTagName("trk");for(i=0;i<f.length;i++){var c=f[i];if(h=this._extract_styling(c),p=this._get_polyline_options(e.polyline_options,i),e.gpx_options.joinTrackSegments)a=a.concat(this._parse_segment(c,e,h,p,"trkpt"));else{var u=c.getElementsByTagName("trkseg");for(O=0;O<u.length;O++)a=a.concat(this._parse_segment(u[O],e,h,p,"trkpt"))}}}if(this._info.hr.avg=Math.round(this._info.hr._total/this._info.hr._points.length),this._info.cad.avg=Math.round(this._info.cad._total/this._info.cad._points.length),this._info.atemp.avg=Math.round(this._info.atemp._total/this._info.atemp._points.length),r.indexOf("waypoint")>-1)for(o=t.getElementsByTagName("wpt"),i=0;i<o.length;i++){var d,m=new L.LatLng(o[i].getAttribute("lat"),o[i].getAttribute("lon")),g=o[i].getElementsByTagName("name"),b=g.length>0?g[0].textContent:"",x=o[i].getElementsByTagName("desc"),v=x.length>0?x[0].textContent:"",_=o[i].getElementsByTagName("sym"),y=_.length>0?_[0].textContent:null,w=o[i].getElementsByTagName("type"),k=w.length>0?w[0].textContent:null,z=e.markers.wptIcons,M=e.markers.wptTypeIcons,S=e.markers.pointMatchers||[];if(z&&y&&z[y])d=z[y];else if(M&&k&&M[k])d=M[k];else if(S.length>0){for(var O=0;O<S.length;O++)if(S[O].regex.test(b)){d=S[O].icon;break}}else z&&z[""]&&(d=z[""]);if(d){var P=new L.Marker(m,{clickable:e.marker_options.clickable,title:b,icon:d,type:"waypoint"});P.bindPopup("<b>"+b+"</b>"+(v.length>0?"<br>"+v:"")).openPopup(),this.fire("addpoint",{point:P,point_type:"waypoint",element:o[i]}),a.push(P)}else console.log("No waypoint icon could be matched for symKey=%s,typeKey=%s,name=%s on waypoint %o",y,k,b,o[i])}return a.length>1?new L.FeatureGroup(a):1==a.length?a[0]:void 0},_parse_segment:function(t,e,i,o,a){var n=t.getElementsByTagName(a);if(!n.length)return[];for(var l=[],r=[],s=[],h=null,p=0;p<n.length;p++){var f,c=new L.LatLng(n[p].getAttribute("lat"),n[p].getAttribute("lon"));c.meta={time:null,ele:null,hr:null,cad:null,atemp:null,speed:null},f=n[p].getElementsByTagName("time"),c.meta.time=f.length>0?new Date(Date.parse(f[0].textContent)):new Date("1970-01-01T00:00:00");var u=null!=h?Math.abs(c.meta.time-h.meta.time):0;f=n[p].getElementsByTagName("ele"),c.meta.ele=f.length>0?parseFloat(f[0].textContent):null!=h?h.meta.ele:null;var d=null!=h?c.meta.ele-h.meta.ele:0,m=null!=h?this._dist3d(h,c):0;if(f=n[p].getElementsByTagName("speed"),c.meta.speed=f.length>0?parseFloat(f[0].textContent):u>0?1e3*m/u:0,(f=n[p].getElementsByTagName("name")).length>0)for(var g=f[0].textContent,b=e.markers.pointMatchers||[],x=0;x<b.length;x++)if(b[x].regex.test(g)){r.push({label:g,coords:c,icon:b[x].icon,element:n[p]});break}this._info.length+=m,(f=n[p].getElementsByTagNameNS("*","hr")).length>0&&(c.meta.hr=parseInt(f[0].textContent),this._info.hr._points.push([this._info.length,c.meta.hr]),this._info.hr._total+=c.meta.hr),(f=n[p].getElementsByTagNameNS("*","cad")).length>0&&(c.meta.cad=parseInt(f[0].textContent),this._info.cad._points.push([this._info.length,c.meta.cad]),this._info.cad._total+=c.meta.cad),(f=n[p].getElementsByTagNameNS("*","atemp")).length>0&&(c.meta.atemp=parseInt(f[0].textContent),this._info.atemp._points.push([this._info.length,c.meta.atemp]),this._info.atemp._total+=c.meta.atemp),c.meta.ele>this._info.elevation.max&&(this._info.elevation.max=c.meta.ele),c.meta.ele<this._info.elevation.min&&(this._info.elevation.min=c.meta.ele),this._info.elevation._points.push([this._info.length,c.meta.ele]),c.meta.speed>this._info.speed.max&&(this._info.speed.max=c.meta.speed),this._info.speed._points.push([this._info.length,c.meta.speed]),null==h&&null==this._info.duration.start&&(this._info.duration.start=c.meta.time),this._info.duration.end=c.meta.time,this._info.duration.total+=u,u<e.max_point_interval&&(this._info.duration.moving+=u),d>0?this._info.elevation.gain+=d:this._info.elevation.loss+=Math.abs(d),h=c,l.push(c)}var v=new L.Polyline(l,this._extract_styling(t,i,o));if(this.fire("addline",{line:v,element:t}),s.push(v),e.markers.startIcon){var _=new L.Marker(l[0],{clickable:e.marker_options.clickable,icon:e.markers.startIcon});this.fire("addpoint",{point:_,point_type:"start",element:n[0],line:t}),s.push(_)}for(e.markers.endIcon&&(_=new L.Marker(l[l.length-1],{clickable:e.marker_options.clickable,icon:e.markers.endIcon}),this.fire("addpoint",{point:_,point_type:"end",element:n[n.length-1],line:t}),s.push(_)),p=0;p<r.length;p++)_=new L.Marker(r[p].coords,{clickable:e.marker_options.clickable,title:r[p].label,icon:r[p].icon}),this.fire("addpoint",{point:_,point_type:"label",element:r[p].element}),s.push(_);return s},_get_polyline_options:function(t,e){return Array.isArray(t)?t[e]||{}:t},_extract_styling:function(t,e,i){var o,a=this._merge_objs(c,e),n=t.getElementsByTagNameNS("http://www.topografix.com/GPX/gpx_style/0/2","line");return n.length>0&&((o=n[0].getElementsByTagName("color")).length>0&&(a.color="#"+o[0].textContent),(o=n[0].getElementsByTagName("opacity")).length>0&&(a.opacity=o[0].textContent),(o=n[0].getElementsByTagName("weight")).length>0&&(a.weight=o[0].textContent),(o=n[0].getElementsByTagName("linecap")).length>0&&(a.lineCap=o[0].textContent),(o=n[0].getElementsByTagName("linejoin")).length>0&&(a.lineJoin=o[0].textContent),(o=n[0].getElementsByTagName("dasharray")).length>0&&(a.dashArray=o[0].textContent),(o=n[0].getElementsByTagName("dashoffset")).length>0&&(a.dashOffset=o[0].textContent)),this._merge_objs(a,i)},_dist2d:function(t,e){var i=this._deg2rad(e.lat-t.lat),o=this._deg2rad(e.lng-t.lng),a=Math.sin(i/2)*Math.sin(i/2)+Math.cos(this._deg2rad(t.lat))*Math.cos(this._deg2rad(e.lat))*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))*6371e3},_dist3d:function(t,e){var i=this._dist2d(t,e),o=Math.abs(e.meta.ele-t.meta.ele);return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))},_deg2rad:function(t){return t*Math.PI/180}});const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdated=i(this,"stateUpdated",7),this.dragZoomEnded=i(this,"dragZoomEnded",7),this._tileLayer="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",this.tileLayer=this._tileLayer,this._manualPosOverride=!0,this.manualPosOverride=this._manualPosOverride,this._latitude=50.137634,this.latitude=this._latitude,this._longitude=8.679129,this.longitude=this._longitude,this._scale=11,this.scale=this._scale,this._customView=!1,this.customView=this._customView,this._showScale=!1,this.showScale=this._showScale,this._showZoom=!1,this.showZoom=this._showZoom,this._attribution="",this.attribution=this._attribution,this._gpxs=[],this.gpxs=this._gpxs,this._markers=[],this.markers=this._markers,this._geojsons=[],this.geojsons=this._geojsons,this.lmap=null,this.gpxLayer=[],this.mapMarker=[],this.geoJsonLayer=[],this.scaleControl=(void 0).scale(),this.zoomControl=(void 0).zoom(),this.tileLayerControl=(void 0)(this._tileLayer),this.cumlatedBounds={northEast:null,southWest:null}}async setProps(t){Object.keys(t).forEach((e=>{this[e]=t[e]}))}async unSetProps(t){Object.keys(t).forEach((t=>{this[t]=void 0}))}parseTileLayer(t){this._tileLayer=t}parseManualPosOverride(t){this._manualPosOverride=JSON.parse(t)}parseLatitude(t){this._latitude=Number(t)}parseLongitude(t){this._longitude=Number(t)}parseScale(t){this._scale=Number(t)}parseCustomView(t){this._customView=JSON.parse(t)}parseShowScale(t){this._showScale=JSON.parse(t)}parseShowZoom(t){this._showZoom=JSON.parse(t)}parseAttribution(t){this._attribution=t}parseGpxLayers(t){this._gpxs="string"==typeof t?JSON.parse(t):t,this.gpxLayerUpdate(this._gpxs)}parseMarkers(t){this._markers="string"==typeof t?JSON.parse(t):t,this.mapMarkerUpdate(this._markers)}parseGeoJson(t){this._geojsons="string"==typeof t?JSON.parse(t):t,this.geoJsonUpdate(this._geojsons)}render(){return o(a,{key:"955a4572190c7e73f4dd654e42814a260f6e4062"},o("div",{key:"ca831888a3202fe8877dd98a00042be6ae58903f",ref:t=>this.drawElement=t,id:"map",class:"map"}))}gpxLayerUpdate(t){this.gpxLayer.forEach((t=>{t.remove()})),this.gpxLayer=[];for(const e of t){if(void 0===e)continue;let t=e.file;if(/^data:application\/octet-stream;/.test(e.file)){const i=e.file.split(",")[1];t=atob(i)}this.gpxLayer.push(new(void 0)(t,{async:!0,marker_options:{startIconUrl:e.startIconUrl,endIconUrl:e.endIconUrl,shadowUrl:e.shadowUrl},polyline_options:{color:e.color,opacity:e.opacity,lineCap:e.lineCap,weight:e.weight}}).on("loaded",(t=>{this.updateCumulatedBounds(t),!1===this._manualPosOverride&&this.lmap.fitBounds([this.cumlatedBounds.northEast,this.cumlatedBounds.southWest]),this.stateUpdated.emit(l.SUCCESSFUL)})))}}updateCumulatedBounds(t){null==this.cumlatedBounds.northEast&&(this.cumlatedBounds.northEast={lat:t.target.getBounds().getNorthEast().lat,lng:t.target.getBounds().getNorthEast().lng}),null==this.cumlatedBounds.southWest&&(this.cumlatedBounds.southWest={lat:t.target.getBounds().getSouthWest().lat,lng:t.target.getBounds().getSouthWest().lng}),t.target.getBounds().getNorthEast().lat>this.cumlatedBounds.northEast.lat&&(this.cumlatedBounds.northEast.lat=t.target.getBounds().getNorthEast().lat),t.target.getBounds().getNorthEast().lng>this.cumlatedBounds.northEast.lng&&(this.cumlatedBounds.northEast.lng=t.target.getBounds().getNorthEast().lng),t.target.getBounds().getSouthWest().lat<this.cumlatedBounds.southWest.lat&&(this.cumlatedBounds.southWest.lat=t.target.getBounds().getSouthWest().lat),t.target.getBounds().getSouthWest().lng<this.cumlatedBounds.southWest.lng&&(this.cumlatedBounds.southWest.lng=t.target.getBounds().getSouthWest().lng)}mapMarkerUpdate(t){this.mapMarker.forEach((t=>{t.remove()})),this.mapMarker=[];for(const e of t){const t=(void 0)({iconUrl:e.iconUrl,iconSize:[e.iconWidth,e.iconHeight]});this.mapMarker.push((void 0)([e.latitude,e.longitude],{title:e.title,icon:t}))}}geoJsonUpdate(t){this.geoJsonLayer.forEach((t=>{t.remove()})),this.geoJsonLayer=[];for(const e of t){const t={style:{color:e.color,weight:e.weight,opacity:e.opacity,lineCap:e.lineCap}};this.geoJsonLayer.push((void 0)(DataUriUtil.dataURItoObject(e.file),t))}}componentWillLoad(){this.stateUpdated.emit(l.RUNNING),this.parseMarkers(this.markers),this.parseGeoJson(this.geojsons),this.parseGpxLayers(this.gpxs),this.parseAttribution(this.attribution),this.parseShowZoom(this.showZoom),this.parseShowScale(this.showScale),this.parseScale(this.scale),this.parseLongitude(this.longitude),this.parseLatitude(this.latitude),this.parseTileLayer(this.tileLayer)}componentDidLoad(){null!=this.drawElement&&(this.lmap=(void 0)(this.drawElement,{zoomControl:!1}),this.setView(),this.setTileLayer(),this.setGeoJsonLayer(),this.setGPXLayer(),this.setMarker(),this.setShowScale(),this.setShowZoom(),this.setAttribution(),this.lmap.addEventListener("dragend",this.dragZoomEnd.bind(this)),this.lmap.addEventListener("zoomend",this.dragZoomEnd.bind(this)))}disconnectedCallback(){this.lmap.removeEventListener("dragend",this.dragZoomEnd.bind(this)),this.lmap.removeEventListener("zoomend",this.dragZoomEnd.bind(this))}componentDidUpdate(){null!=this.drawElement&&(this.setView(),this.setTileLayer(),this.setGeoJsonLayer(),this.setGPXLayer(),this.setMarker(),this.setShowScale(),this.setShowZoom(),this.setAttribution())}dragZoomEnd(){const{lat:t,lng:e}=this.lmap.getCenter(),i=this.lmap.getZoom();this.dragZoomEnded.emit({longitude:e,latitude:t,scale:i})}setView(){this.lmap.setView([this._latitude,this._longitude],this._scale)}setTileLayer(){this.tileLayerControl.setUrl(this._tileLayer,!0),this.tileLayerControl.addTo(this.lmap)}setAttribution(){this.lmap.attributionControl.setPrefix(this._attribution)}setShowScale(){this.scaleControl.remove(),!0===this._showScale&&this.scaleControl.addTo(this.lmap)}setShowZoom(){this.zoomControl.remove(),!0===this._showZoom&&this.zoomControl.addTo(this.lmap)}setGPXLayer(){this.gpxLayer.forEach((t=>{try{t.addTo(this.lmap)}catch(t){console.error("gpxLayer",t)}}))}setMarker(){this.mapMarker.forEach((t=>{try{t.addTo(this.lmap)}catch(t){console.error("markerLayer",t)}}))}setGeoJsonLayer(){this.geoJsonLayer.forEach((t=>{try{t.addTo(this.lmap)}catch(t){console.error("gpxLayer",t)}}))}static get assetsDirs(){return["assets"]}static get watchers(){return{tileLayer:[{parseTileLayer:0}],manualPosOverride:[{parseManualPosOverride:0}],latitude:[{parseLatitude:0}],longitude:[{parseLongitude:0}],scale:[{parseScale:0}],customView:[{parseCustomView:0}],showScale:[{parseShowScale:0}],showZoom:[{parseShowZoom:0}],attribution:[{parseAttribution:0}],gpxs:[{parseGpxLayers:0}],markers:[{parseMarkers:0}],geojsons:[{parseGeoJson:0}]}}static get style(){return'.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \'Lucida Console\', Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px rgba(0,0,0,0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0,0,0,0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}:host{position:relative;display:block}.map{display:block;width:100%;height:100%;min-width:100px;min-height:100px}'}},[1,"ibcs-map",{tileLayer:[1537,"tile-layer"],manualPosOverride:[1540,"manual-pos-override"],latitude:[1538],longitude:[1538],scale:[1538],customView:[1540,"custom-view"],showScale:[1540,"show-scale"],showZoom:[1540,"show-zoom"],attribution:[1537],gpxs:[1537],markers:[1537],geojsons:[1537],setProps:[64],unSetProps:[64]},void 0,{tileLayer:[{parseTileLayer:0}],manualPosOverride:[{parseManualPosOverride:0}],latitude:[{parseLatitude:0}],longitude:[{parseLongitude:0}],scale:[{parseScale:0}],customView:[{parseCustomView:0}],showScale:[{parseShowScale:0}],showZoom:[{parseShowZoom:0}],attribution:[{parseAttribution:0}],gpxs:[{parseGpxLayers:0}],markers:[{parseMarkers:0}],geojsons:[{parseGeoJson:0}]}]);function m(){"undefined"!=typeof customElements&&["ibcs-map"].forEach((t=>{"ibcs-map"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))}export{d as I,m as d}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface IbcsTable extends Components.IbcsTable, HTMLElement {}
4
+ export const IbcsTable: {
5
+ prototype: IbcsTable;
6
+ new (): IbcsTable;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{I as s,d as o}from"./ibcs-table2.js";const t=s,a=o;export{t as IbcsTable,a as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{h as t,proxyCustomElement as e,HTMLElement as o,Host as s,transformTag as n}from"@stencil/core/internal/client";import{F as r,Q as i,V as l,I as a,S as c}from"./ibcsRuleSet.js";import{I as u,D as h,h as d,i as p,j as f,d as m,M as $}from"./Order.js";import{a as v}from"./alasql.min.js";import{D as g,S as R,a as w,b}from"./DataFormatDigits.js";import{w as S}from"./withComponentStyle.js";var E,O,y,U,M;!function(t){t[t.ALL=-1]="ALL"}(E||(E={})),function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(O||(O={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(y||(y={})),function(t){t.ASC="asc",t.DESC="desc"}(U||(U={})),function(t){t.HEADER="HEADER",t.GROUPHEAD="GROUPHEAD",t.SEPERATORLINE="SEPERATORLINE",t.SUM="SUM",t.GROUPSUM="GROUP_SUM",t.DRILLELEMENT="DRILLELEMENT",t.STANDARD="STANDARD",t.PARTELEMENT="PARTELEMENT",t.ENTRY="ENTRY"}(M||(M={}));class G{constructor(t,e,o,s,n,r,i,l,a){this.prefixStyle="prefix",this.isBarChart=!1,this.key=t,this.index=e,this.value=o,this.prefix=r||"",this.cssStyle=s||"",this.prefixStyle=i||"prefix",this.type=n,this.mark=void 0,this.colSpan=l||1,this.measureScale=a||1}getAsHeaderList(){if(null==this.value)return[""];const t=[];for(const e of this.value.toString().split("<br/>"))t.push(e);return t}draw(t){let e=this.value;if("undefined"===e||void 0===e||null==e)return"";if(Number.isNaN(Number(e)))return e;if(""===this.type||void 0===this.type||null==this.type)return e;let o=t.percent,s=t.percent;return"decimal"===this.type&&(e=+e/this.measureScale,o=t.decimal,s=t.decimal),r.number(Number(e),this.type,o,s)}drawPrefix(){return null==this.prefix?"":this.prefix}}class T{constructor(t,e,o){this.index=t,this.groupindex=e,this.type=o,this.cssStyle=this.initCssStyle(),this.elements=[]}initCssStyle(){switch(this.type){case M.HEADER:return"groupheader";case M.SEPERATORLINE:return"";case M.DRILLELEMENT:return"ofit";case M.PARTELEMENT:return"partof";case M.STANDARD:return"";case M.SUM:return"sum";default:return""}}getCells(){return this.elements}createElement(t,e,o,s,n,r,i,l,a,c=!1,u){let h=r;"category"===e&&null!=l&&(h=`category-${l.toString()}`),this.type===M.HEADER?h="headerlabel":this.type===M.SEPERATORLINE&&(h=e),this.type===M.PARTELEMENT&&("percent"===s&&(t="-"),"category"!==e&&"operation"!==e&&(s="percent",h="")),"-"===t&&(h="");let d="prefix-first";i&&(d="prefix-second"),h=`${h} ${o}`;const p=new G(e,this.elements.length,t,h,s,n,d,1,a);p.isBarChart=c,p.columnStats=u,this.elements.push(p)}}const _={positive:{stroke:"#008f96",fill:"#008f96",fillpattern:"solid"},negative:{stroke:"#ff0000",fill:"#ff0000",fillpattern:"solid"},neutral:{stroke:"#808080",fill:"#808080",fillpattern:"outlined"},scenarios:{ac:{stroke:"#404040",fill:"#404040",fillpattern:"solid"},pp:{stroke:"#A6A6A6",fill:"#A6A6A6",fillpattern:"solid"},fc:{stroke:"#404040",fill:"#ffffff",fillpattern:"hatched"},pl:{stroke:"#404040",fill:"#ffffff",fillpattern:"outlined"}},fontColor:"#000000",fontSize:11,fontFamily:"'Noto Sans', sans-serif",unitScaling:.01,percentageScaling:.5,scaleFactor:1},C="#666666";function N(t,e){return`pattern-${t}-${e.replace("#","")}`}const L=({styles:e})=>{const o=e.scaleFactor,s=6*o,n=[{id:N("pos",e.positive.stroke),stroke:e.positive.stroke,fill:e.positive.fill},{id:N("neg",e.negative.stroke),stroke:e.negative.stroke,fill:e.negative.fill},{id:N("neu",e.neutral.stroke),stroke:e.neutral.stroke,fill:e.neutral.fill}];return t("defs",null,n.map((e=>t("pattern",{id:e.id,patternUnits:"userSpaceOnUse",width:s,height:s},t("rect",{width:s,height:s,fill:"#ffffff"}),t("line",{x1:"0",y1:s,x2:s,y2:"0",stroke:e.stroke,"stroke-width":1.5*o})))))};function P(t,e,o=1){let s,n;const r=t>=0?"+":"";if(e)return s=100*t,r+Math.round(s).toString()+"%";{let e;return s=t/o,n=Math.abs(s),e=n>=1e9?(s/1e9).toFixed(n>=1e10?0:1)+"B":n>=1e6?(s/1e6).toFixed(n>=1e7?0:1)+"M":n>=1e3?(s/1e3).toFixed(n>=1e4?0:1)+"K":s.toFixed(n>=10?0:1),e=e.replace(/\.0([KMB]?)$/,"$1"),r+e}}function x(t){const e=t.slice(0,2).toLowerCase();return["ac","pp","fc","pl"].includes(e)}function A(t){const e=t.slice(0,2).toLowerCase();return"pp"===e?"pp":"fc"===e?"fc":"pl"===e?"pl":"ac"}function D(t,e,o,s){return x(t)?function(t,e){const o=A(t);return e.scenarios[o]}(t,s):function(t,e,o){const s=t>=0;return e?s?o.positive:o.negative:s?o.negative:o.positive}(e,o,s)}const k=e=>{const{value:o,scenario:s,height:n,isPositiveGood:r,formattedValue:i,measureScale:l,styles:a=_}=e,c=a.scaleFactor,u=50*c,h=40*c,d=u+2*h+u,p=2*c,f=n-2*p,m=u+h,$=Math.abs(o)*a.unitScaling*c,v=Math.min($,h),g=o>=0,R=g?m:m-v,w=p,b=D(s,o,r,a),S=function(t,e){const o=t.fillpattern;return"hatched"===o?`url(#${N(e,t.stroke)})`:"outlined"===o?"transparent":t.fill}(b,x(s)?A(s):r?g?"pos":"neg":g?"neg":"pos"),{stroke:E,strokeWidth:O}="outlined"===(y=b).fillpattern?{stroke:y.stroke,strokeWidth:1.5}:{stroke:"none",strokeWidth:0};var y;const U=i||P(o,!1,l),M=g?m+v+4*c:m-v-4*c,G=g?"start":"end";return t("svg",{width:d,height:n,class:"cell-bar-chart absolute-variance",style:{overflow:"visible"}},t(L,{styles:a}),t("line",{x1:m,y1:0,x2:m,y2:n,stroke:C,"stroke-width":1*c}),v>0&&t("rect",{x:R,y:w,width:v,height:f,fill:S,stroke:E,"stroke-width":O*c}),t("text",{x:M,y:n/2,dy:"0.35em","text-anchor":G,fill:a.fontColor,"font-size":a.fontSize,"font-family":a.fontFamily},U))},B=e=>{const{value:o,scenario:s,height:n,isPositiveGood:r,formattedValue:i,measureScale:l,styles:a=_}=e,c=a.scaleFactor,u=25*c,h=2*u+10*c,d=h+70*c,p=h/2,f=n/2,m=100*Math.abs(o)*a.percentageScaling*c,$=Math.min(m,u),v=o>=0,g=v?p+$:p-$,R=D(s,o,r,a),w=3*c,b=m>u,S=i||P(o,!0,l),E=h+4*c;return t("svg",{width:d,height:n,class:"cell-bar-chart relative-variance",style:{overflow:"visible"}},t("line",{x1:p,y1:0,x2:p,y2:n,stroke:C,"stroke-width":1*c}),!b&&t("circle",{cx:g,cy:f,r:w,fill:a.fontColor}),t("line",{x1:p,y1:f,x2:g,y2:f,stroke:R.fill,"stroke-width":2*c}),b&&v&&t("polygon",{points:`${h-2*c},${f} ${h-8*c},${f-3*c} ${h-8*c},${f+3*c}`,fill:R.fill}),b&&!v&&t("polygon",{points:`${2*c},${f} ${8*c},${f-3*c} ${8*c},${f+3*c}`,fill:R.fill}),t("text",{x:E,y:n/2,dy:"0.35em","text-anchor":"start",fill:a.fontColor,"font-size":a.fontSize,"font-style":"italic","font-family":a.fontFamily},S))},F=e=>{const{value:o,columnStats:s,isRelative:n,styles:r=_}=e;return null==o||isNaN(o)||!s||0===s.absMax?t("span",{class:"bar-chart-empty",style:{color:r.fontColor,fontStyle:"italic"}},"-"):t(n?B:k,Object.assign({},e))};class Y{constructor(t){v.fn.transformOperator=function(t){return"-"===t?-1:1},this.groups=[i.CATEGORY,i.CATEGORYINDEX],y.OPT!==t.type&&y.OPTNOTOTAL!==t.type||this.groups.unshift(i.OPERATION),t.grouped&&(this.groups.push(i.ROWGROUP),this.groups.push(i.ROWGROUPINDEX))}toString(){return this.groups.map((t=>`${t}`)).toString()}noCategory(){return this.groups.filter((t=>t!==i.CATEGORY))}toArray(){return this.groups}}class H{constructor(t,e){this.hasPartOf=!1,this.config=t,this.i18n=e}execute(t){if(0===t.length)return[];const e=[],o=[],s=[],n=this.config.scenarios.map((t=>this.translateScenarioSQL(t,!1,this.config.type))).toString(),r=this.config.scenarios.map((t=>this.translateScenarioSQL(t,!0,this.config.type))).toString(),l=this.getRelativeScenarios(),a=new Y(this.config),c=this.config.grouped?[i.ROWGROUP,i.ROWGROUPINDEX]:[];let u=["",""];return this.config.sortOrder.hierarchy.length>0&&(u=this.createOrderString(this.config.sortOrder)),this.hasPartOf=this.checkConfigForPartOf(),v(`SELECT COUNT(DISTINCT ${i.CATEGORY}) as ${i.TOTALROWCOUNT} ${c.length>0?","+c:""}\n FROM ? ${c.length>0?"GROUP BY "+c:""} \n ORDER BY ${u[0]}`,[t]).forEach((t=>{const s=t.rowGroup&&t.rowGroup.length>0?`WHERE ${i.ROWGROUP} = '${t.rowGroup}'`:"";let l="";this.config.limit&&(l=`LIMIT ${this.config.limit}`),this.createGroupHeaderRow(t,e),this.createDataRow(e,t,a,n,s,u,l),this.createRestRow(t,e,a,n,s,u),this.createGroupSumRow(e,o,t,r,u)})),this.createTotalSumRow(e,o,r),e.forEach((e=>{try{s.push(v(e,[t]))}catch(t){console.error("DataQuery: SQL query execution failed",e,t)}})),this.detectNaNCells(this.config.scenarios,s),this.createThereOfDrillRows(n,u,t,s),this.createPartOfDrillRows(n,u,o,t,s),this.createThereOfDrillColumns(this.config.categoryThereOf,t,s),this.calculateColumnGroupRest(s,this.config.categoryThereOf),this.calculateRelativeVariances(s,l),s}detectNaNCells(t,e){e.forEach((e=>{e.map((e=>(t.forEach((t=>{const o=new l(t);!0===o.isValid?0!==e[o.base+"_cnt"]&&0!==e[o.delta+"_cnt"]||(e[t]=Number.NaN):0===e[t+"_cnt"]&&(e[t]=Number.NaN)})),e)))}))}createPartOfDrillRows(t,e,o,s,n){if(null==this.config.partOf||0===this.config.partOf.length||this.config.type===y.LIST||null==s||0===s.length)return;const r=this.createPartOfQuery(t,e);let l=[];r.forEach((function(t){l.push(...v(t,[s]))}));const a=this.exctractScenarioNames(t),c=[];o.forEach((function(t){c.push(...v(t,[s]))}));const u=new Map;c.forEach((t=>u.set(t[i.ROWGROUP],t))),l=this.reduceResDrillByCategoryGroups(l,a),l.forEach((function(t){a.forEach((e=>{try{t[e]=t[e]/u.get(t[i.ROWGROUP])[e]}catch(o){console.error("DataQuery: partOf drill row calculation failed",e,o),t[e]=Number.NaN}}))})),this.injectDrillRowsToResultRows(l,n)}createRestRow(t,e,o,s,n,r){t.totalRowCnt-this.config.limit>0&&0!==this.config.limit&&e.push(`SELECT ${i.ROWNR}, 1 as ${i.ROWGROUPINDEX} , 'ENTRY' as ${i.TYPE}, 'NO_GROUP' as ${i.ROWGROUP}, 'REST' as ${i.CATEGORY} , SUM(ac1) as ac1, SUM(pp1) as pp1, SUM(dpp1_ac1_pos) as dpp1_ac1_pos, SUM(drpp1_ac1_pos) as drpp1_ac1_pos, SUM(dr_pp1) as dr_pp1 FROM (SELECT ROWNUM() AS ${i.ROWNR}, ${e.length} as ${i.ROWGROUPINDEX} , 'ENTRY' as ${i.TYPE}, '${t.rowGroup||"NO_GROUP"}' as ${i.ROWGROUP}, ${o} ${s.length>0?",".concat(s):""} FROM ? ${n} GROUP BY ${o} ORDER BY ${r[0]}) t WHERE t.rowNr > ${this.config.limit}`)}createDataRow(t,e,o,s,n,r,l){t.push(`SELECT ROWNUM() AS ${i.ROWNR},\n ${t.length} as ${i.ROWGROUPINDEX},\n 'ENTRY' as ${i.TYPE},\n '${e.rowGroup||"NO_GROUP"}' as ${i.ROWGROUP},\n '${i.CATEGORYINDEX}',\n ${o} ${s.length>0?",".concat(s):""}\n FROM ? ${n}\n GROUP BY ${o}\n ORDER BY ${r[0]} ${l}`)}createGroupHeaderRow(t,e){!0===this.config.grouped&&e.push(`SELECT ROWNUM() AS ${i.ROWNR},\n ${e.length} as ${i.ROWGROUPINDEX},\n 'GROUPHEAD' as ${i.TYPE},\n '${t.rowGroup}' as ${i.ROWGROUP} ${this.config.showGroupTitle?`,'${t.rowGroup}' as ${i.CATEGORY}`:""}\n FROM ?\n GROUP BY '1'`)}createGroupSumRow(t,e,o,s,n){!0!==this.config.grouped||y.SUM!==this.config.type&&y.SUMNOTOTAL!==this.config.type&&y.OPT!==this.config.type&&y.OPTNOTOTAL!==this.config.type||(t.push(`SELECT ${t.length} as ${i.ROWGROUPINDEX},\n '=' as ${i.OPERATION},\n '${o.rowGroup}' as ${i.ROWGROUP},\n ROWNUM() AS ${i.ROWNR},\n 'GROUP_SUM' as ${i.TYPE} ${s.length>0?",".concat(s):""}\n FROM ?\n WHERE ${i.ROWGROUP} = '${o.rowGroup}'\n ORDER BY ${n[0]} `),e.push(`SELECT ${t.length} as ${i.ROWGROUPINDEX},\n '=' as ${i.OPERATION},\n '${o.rowGroup}' as ${i.ROWGROUP},\n ROWNUM() AS ${i.ROWNR},\n 'GROUP_SUM' as ${i.TYPE} ${s.length>0?",".concat(s):""}\n FROM ?\n WHERE ${i.ROWGROUP} = '${o.rowGroup}'\n ORDER BY ${n[0]} `))}createTotalSumRow(t,e,o){if(y.SUM===this.config.type||y.OPT===this.config.type){const e=`${this.hasPartOf&&!1===this.config.grouped?`${this.i18n.get("SUM_TOTAL")||"SUM_TOTAL"} `:""}${this.config.title}`;t.push(`SELECT ${t.length} as ${i.ROWGROUPINDEX},\n '${e}' as ${i.ROWGROUP},\n '=' as ${i.OPERATION},\n 'SUM' as ${i.TYPE} ${o.length>0?",".concat(o):""}\n FROM ? `)}e.push(`SELECT ${t.length} as ${i.ROWGROUPINDEX},\n 'SUM_TOTAL' as ${i.ROWGROUP},\n '=' as ${i.OPERATION},\n 'SUM' as ${i.TYPE} ${o.length>0?",".concat(o):""}\n FROM ? `)}reduceResDrillByCategoryGroups(t,e){const o=new Map;return t.forEach((function(t){const s=t.rowNr+t.rowGroup+t.type+t.category;if(o.has(s)){const n=o.get(s);e.forEach((e=>{try{n[e]+=t[e]}catch(t){console.error("DataQuery: drill row aggregation failed",e,t)}}))}else o.set(s,t)})),[...o.values()]}injectDrillRowsToResultRows(t,e){const o=new Map;if(!0===this.config.grouped)t.forEach((function(t){e.forEach((function(e){const s=e.findIndex((e=>e.category===t.category&&e.rowGroup===t.rowGroup));if(s>=0){if(o.has(`${t.category}_${t.rowGroup}`)){const e=o.get(`${t.category}_${t.rowGroup}`)||0;o.set(`${t.category}_${t.rowGroup}`,e+1)}else o.set(`${t.category}_${t.rowGroup}`,1);t[i.ROWNR]=o.get(`${t.category}_${t.rowGroup}`),e.splice(s+t[i.ROWNR],0,t)}}))}));else{const s=this.findDuplicateSubCategories(t);t.forEach((function(t){e.forEach((function(e){const n=e.findIndex((e=>null!=e.category&&e.category===t.category));if(n>=0){if(o.has(`${t.category}`)){const e=o.get(`${t.category}`)||0;o.set(`${t.category}`,e+1)}else o.set(`${t.category}`,1);(1===t[i.ROWNR]||s.includes(t.subCategory))&&(t.subCategory=`${t.subCategory} (${t.rowGroup})`),e.splice(n+t[i.ROWNR],0,t)}}))}))}}createThereOfDrillRows(t,e,o,s){if(void 0===this.config.thereOf||0===this.config.thereOf.length)return;const n=[],r=[];this.config.thereOf.forEach((o=>{let s=!0,r="1 <> 1 OR ( ";null!=o.category&&0!==o.category.length&&o.category.trim()&&(r+=` ${i.CATEGORY} = '${o.category}'`,s=!1),null!=o.rowGroup&&0!==o.rowGroup.length&&o.rowGroup.trim()&&(r+=` ${s?"":"AND"} ${i.ROWGROUP} = '${o.rowGroup}'`,s=!1),null!=o.subCategory&&0!==o.subCategory.length&&o.subCategory.trim()&&(r+=` ${s?"":"AND"} ${i.SUBCATEGORY} = '${o.subCategory}'`),r+=")",n.push(`SELECT ROWNUM() AS ${i.ROWNR},\n null as operation,\n 'DRILLELEMENT' as ${i.TYPE},\n ${i.CATEGORY},\n ${i.SUBCATEGORY},\n ${i.ROWGROUP} as ${i.ROWGROUP},\n ${t}\n FROM ?\n WHERE ${r}\n GROUP BY ${i.ROWGROUP}, ${i.CATEGORY}, ${i.SUBCATEGORY}\n ORDER BY ${e[1]}`)})),n.forEach((function(t){r.push(...v(t,[o]))})),this.injectDrillRowsToResultRows(r,s)}calculateRelativeVariances(t,e){t.forEach((t=>{t.forEach((t=>{"GROUPHEAD"!==t[i.TYPE]&&e.forEach(((e,o)=>{t[o]=t[o]/t[e]}))}))}))}calculateColumnGroupRest(t,e){if(null==e||0===e.size)return;const o=new Map,s=new Map;e.forEach(((t,e)=>{const n=t,r=[];for(const t of n)r.push(`${e}##${t.name}`);o.set(e,r),s.set(`${e}##REST`,!1)})),t.forEach((t=>{t.forEach((t=>{"GROUPHEAD"!==t[i.TYPE]&&o.forEach(((e,o)=>{let n=0;e.forEach((e=>{void 0!==t[e]&&(n+=t[e])})),t[`${o}##REST`]=t[o]-n,0!==t[`${o}##REST`]&&s.set(`${o}##REST`,!0)}))}))}));const n=Array.from(s.entries()).filter((([t,e])=>!e)).map((([t])=>t));t.forEach((t=>{t.forEach((t=>{for(const e of n)delete t[e]}))}))}getRelativeScenarios(){const t=new Map;return this.config.scenarios.forEach((e=>{const o=this.createRelativeScenario(e);null!=o&&t.set(o.key,o.value)})),t}translateScenarioSQL(t,e,o){const s=new l(t);return y.OPT===o||y.OPTNOTOTAL===o?s.isValid?"dr"===s.type?`SUM(${s.base} - ${s.delta}) as ${t}, SUM(${s.delta}) as dr_${s.delta}`:`SUM(${s.base} - ${s.delta}) as ${t}`:e?`SUM(${t} * transformOperator(operation)) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`:`SUM(${t}) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`:s.isValid?"dr"===s.type?`SUM((${s.base} * transformOperator(operation)) - (${s.delta} * transformOperator(operation))) as ${t}, SUM(${s.delta} * transformOperator(operation)) as dr_${s.delta}`:`SUM((${s.base} * transformOperator(operation))- (${s.delta} * transformOperator(operation))) as ${t}`:`SUM(${t} * transformOperator(operation)) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`}createOrderString(t){return[`${t.hierarchy.toString()} ${t.direction}`,`${t.hierarchy.toString()} ${U.ASC===t.direction?U.DESC:U.ASC}`]}createRelativeScenario(t){const e=new l(t);return e.isValid&&"dr"===e.type?{key:`${t}`,value:`dr_${e.delta}`}:null}exctractScenarioNames(t){const e=[];return t.split(",").forEach((t=>t.length>=2?e.push(t.split("as")[1].trim()):null)),e}findDuplicateSubCategories(t){const e=t.map((t=>({count:1,subCategory:t.subCategory}))).reduce(((t,e)=>(t[e.subCategory]=(t[e.subCategory]||0)+e.count,t)),{});return Object.keys(e).filter((t=>e[t]>1))}createPartOfQuery(t,e){var o;const s=[];let n="1 <> 1 ",r=` ${i.ROWGROUP}`,l="ROWNUM()";return null===(o=this.config.partOf)||void 0===o||o.forEach((t=>{n+=`OR (${i.CATEGORY} = '${t.category}'`,null!=t.rowGroup&&0!==t.rowGroup.length&&t.rowGroup.trim()&&(n+=`and ${i.ROWGROUP} = '${t.rowGroup}'`),!1===this.config.grouped&&(r=` 'SUM_TOTAL' as ${i.ROWGROUP} `,l="1"),n+=")"})),s.push(`SELECT ${l} AS ${i.ROWNR},\n 'PARTELEMENT' as ${i.TYPE},\n ${i.CATEGORY},\n ${r},\n ${t}\n FROM ?\n WHERE ${n}\n GROUP BY ${i.ROWGROUP}, ${i.CATEGORY}, ${i.TYPE}\n ORDER BY ${e[1]}`),s}checkConfigForPartOf(){return null!=this.config.partOf&&0!==this.config.partOf.length}createThereOfDrillColumns(t,e,o){if(null==t||0===t.size)return;const s=[],n=[];t.forEach(((t,e)=>{let o="1 <> 1 ";t.forEach((t=>{o+=` or columnGroup = '${t.name}' `})),s.push(`SELECT 'ENTRY' as rowlevel,\n 'COLUMNGROUP' as columnlevel,\n rowGroup,\n category,\n columnGroup,\n '${e}' as scenario,\n sum(${e} * transformOperator(operation)) as val\n FROM ?\n WHERE ${o}\n GROUP BY rowlevel, rowGroup, category, columnGroup, scenario`),s.push(`SELECT 'ENTRY' as rowlevel,\n 'SUBGROUP' as columnlevel,\n rowGroup,\n category,\n columnGroup,\n columnSubGroup,\n '${e}' as scenario,\n sum(${e} * transformOperator(operation)) as val\n FROM ?\n WHERE ${o}\n GROUP BY rowlevel, rowGroup, category, columnGroup, columnSubGroup, scenario`),s.push(`SELECT 'DRILLELEMENT' as rowlevel,\n 'COLUMNGROUP' as columnlevel,\n rowGroup,\n category,\n subCategory,\n columnGroup,\n '${e}' as scenario,\n sum(${e} * transformOperator(operation)) as val\n FROM ?\n WHERE ${o}\n GROUP BY rowlevel, rowGroup, category, subCategory, columnGroup, scenario`),s.push(`SELECT 'DRILLELEMENT' as rowlevel,\n 'SUBGROUP' as columnlevel,\n rowGroup,\n category,\n subCategory,\n columnGroup,\n columnSubGroup,\n '${e}' as scenario,\n sum(${e} * transformOperator(operation)) as val\n FROM ?\n WHERE ${o}\n GROUP BY rowlevel, rowGroup, category, subCategory, columnGroup, columnSubGroup, scenario`),s.push(`SELECT 'GROUP_SUM' as rowlevel,\n 'COLUMNGROUP' as columnlevel,\n rowGroup,\n columnGroup,\n '${e}' as scenario,\n sum(${e} * transformOperator(operation)) as val\n FROM ?\n WHERE ${o}\n GROUP BY rowlevel, rowGroup, columnGroup, scenario`),s.push(`SELECT 'GROUP_SUM' as rowlevel,\n 'SUBGROUP' as columnlevel,\n rowGroup,\n columnGroup,\n columnSubGroup,\n '${e}' as scenario,\n sum(${e} * transformOperator(operation)) as val\n FROM ?\n WHERE ${o}\n GROUP BY rowlevel, rowGroup, columnGroup, columnSubGroup, scenario`),s.push(`SELECT 'SUM' as rowlevel,\n 'COLUMNGROUP' as columnlevel,\n columnGroup,\n '${e}' as scenario,\n sum(${e} * transformOperator(operation)) as val\n FROM ?\n WHERE ${o}\n GROUP BY rowlevel, columnGroup, scenario`),s.push(`SELECT 'SUM' as rowlevel,\n 'SUBGROUP' as columnlevel,\n columnGroup,\n columnSubGroup,\n '${e}' as scenario,\n sum(${e} * transformOperator(operation)) as val\n FROM ?\n WHERE ${o}\n GROUP BY rowlevel, columnGroup, columnSubGroup, scenario`)}));for(const t of s)n.push(...v(t,[e]));this.injectDrillColumnsToResultRows(n,o)}injectDrillColumnsToResultRows(t,e){const o="##";for(const s of t)for(const t of e)for(const e of t)e.type===s.rowlevel&&("ENTRY"===s.rowlevel?"COLUMNGROUP"===s.columnlevel&&e.category===s.category?e[s.scenario+o+s.columnGroup]=s.val:"SUBGROUP"===s.columnlevel&&e.category===s.category&&(e[s.scenario+o+s.columnGroup+o+s.columnSubGroup]=s.val):"DRILLELEMENT"===s.rowlevel?"COLUMNGROUP"===s.columnlevel&&e.category===s.category&&e.subCategory===s.subCategory?e[s.scenario+o+s.columnGroup]=s.val:"SUBGROUP"===s.columnlevel&&e.category===s.category&&e.subCategory===s.subCategory?e[s.scenario+o+s.columnGroup+o+s.columnSubGroup]=s.val:"COLUMNGROUP"===s.columnlevel&&e.category===s.category&&e.subCategory===`${s.subCategory} (${s.rowGroup})`?e[s.scenario+o+s.columnGroup]=s.val:"SUBGROUP"===s.columnlevel&&e.category===s.category&&e.subCategory===`${s.subCategory} (${s.rowGroup})`&&(e[s.scenario+o+s.columnGroup+o+s.columnSubGroup]=s.val):("SUM"===s.rowlevel||"GROUP_SUM"===s.rowlevel)&&("COLUMNGROUP"===s.columnlevel&&e.category===s.category&&e.subCategory===s.subCategory&&(e[s.scenario+o+s.columnGroup]=s.val),"SUBGROUP"===s.columnlevel&&e.category===s.category&&e.subCategory===s.subCategory&&(e[s.scenario+o+s.columnGroup+o+s.columnSubGroup]=s.val)))}}class W{constructor(){this.normalizedHeader=[]}createHeader(t,e,o,s,n,i){const l=[];this.normalizedHeader=this.normalizeHeader(t,e);const a=new T(0,0,M.HEADER),c=new T(1,0,M.SEPERATORLINE);for(const t of this.normalizedHeader)a.createElement(r.translateScenarioLabel(t.name,o),t.type,this.createColumnType(t),null,this.setHeaderPrefix(t,o,s,n,i),null,null,null,null),c.createElement(null,t.type,this.createColumnType(t),null,null,null,null,null,null);return l.push(a),l.push(c),l}setHeaderPrefix(t,e,o,s,n){let i="";return"category"===t.name&&n&&(0===o.prefix.length&&0===s.length||(i=r.translateScenarioLabel("in",e)+" "+o.prefix+s)),t.order&&(i+=r.translateScenarioLabel("ORDER_"+t.order,e)),i}normalizeHeader(t,e){let o=[{name:i.CATEGORY,group:i.CATEGORY,type:i.CATEGORY,order:void 0}];return y.OPT!==t&&y.OPTNOTOTAL!==t||(o=[{name:i.OPERATION,group:i.OPERATION,type:i.OPERATION,order:void 0},{name:i.CATEGORY,group:i.CATEGORY,type:i.CATEGORY,order:void 0}]),[...o,...e]}createBodyRows(t,e,o){const s=[];let n=-1;const r=new H(t,e).execute(o),i=this.calculateColumnStatistics(r,t.barColumns);for(const o of r)n+=1,s.push(...this.createRow(t.i18n,e,t.scenariosUnitType,o,n,-1,t.categoryWidth,t.measureScale,t.barColumns,i));return s}calculateColumnStatistics(t,e){const o=new Map;if(!e||0===e.length)return o;for(const t of e)o.set(t,{min:1/0,max:-1/0,absMax:0});for(const s of t)for(const t of s)for(const s of e){const e=this.extractColumnValue(t,s);if(null!==e&&!isNaN(e)){const t=o.get(s);t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}}for(const[t,e]of o)e.min!==1/0&&e.max!==-1/0||(e.min=0,e.max=0),e.absMax=Math.max(Math.abs(e.min),Math.abs(e.max)),o.set(t,e);return o}extractColumnValue(t,e){if(void 0!==t[e]){const o=Number(t[e]);return isNaN(o)?null:o}for(const o of Object.keys(t))if(o===e||o.endsWith("##"+e)||o===e+"##"+e){const e=Number(t[o]);if(!isNaN(e))return e}return null}createRow(t,e,o,s,n,r,l,a,c,u){var h;const d=[];for(const p of s){const f=p[i.ROWGROUP],m=p[i.SUBCATEGORY],$=p[i.TYPE],v=p[i.ROWNR]>=2,g=this.createDetailRow($,r+=1,n,s.length);for(const s of this.normalizedHeader){const n=this.getRawDataRowElement(p,s),r=null!==(h=null==c?void 0:c.includes(s.type))&&void 0!==h&&h,i=r?null==u?void 0:u.get(s.type):void 0;g.createElement(this.translateSumCellLabel(t,e,n,f,m,$,s.type),s.type,this.createColumnType(s),this.setCellType(s.type,o),this.translateCellPrefix(e,$,s.type),this.translateScenarioCSS(s.type,n),v,l,null==a?void 0:a.value,r,i)}d.push(g)}return d}getRawDataRowElement(t,e){return e.name===e.group&&e.name===e.type?t[e.name]:e.name===e.group&&e.name!==e.type?t[e.type+"##"+e.name]:t[e.type+"##"+e.group+"##"+e.name]}createDetailRow(t,e,o,s){switch(t){case M.GROUPHEAD:return new T(e,o,M.HEADER);case M.SUM:case M.GROUPSUM:return new T(s+2,o,M.SUM);case M.DRILLELEMENT:return new T(s+2,o,M.DRILLELEMENT);case M.PARTELEMENT:return new T(s+2,o,M.PARTELEMENT);default:return new T(e,o,M.STANDARD)}}translateSumCellLabel(t,e,o,s,n,r,i){return!1===Number.isNaN(Number(o))||this.isOperationColumn(i)?o:this.isGroupHeadCategory(r,i)||this.isEntryCategory(r,i)?t===u.ALL?`${e.get(o)||o}`:o:this.isDrillElementCategory(r,i)?t===u.ALL?`${e.get(n)||n}`:`${n}`:this.isPartElementCategory(r,i)?t===u.ALL||"SUM_TOTAL"===s?`${e.get(s)||s}`:`${s}`:this.isSumElementCategory(r,i)?t===u.ALL||"SUM_TOTAL"===s?`${e.get(s)||s}`:s:"GROUPHEAD"===r&&null==o?o:Number.isNaN(Number(o))?"-":Number(o)}isOperationColumn(t){return"operation"===t}translateScenarioCSS(t,e){const o=new l(t);let s="pos";return e<0&&(s="neg"),o.isValid?s+"_"+o.direction+("dr"===o.type?" relative_variance":""):t}setCellType(t,e){if("category"===t)return"";let o;const s=new l(t);return e===h.PERCENT?(o="percent",s.isValid&&"d"===s.type&&(o="decimal")):(o="decimal",s.isValid&&"dr"===s.type&&(o="percent")),o}isDrillElementCategory(t,e){return"DRILLELEMENT"===t&&"category"===e}isPartElementCategory(t,e){return"PARTELEMENT"===t&&"category"===e}isSumElementCategory(t,e){return("GROUP_SUM"===t||"SUM"===t)&&"category"===e}isEntryCategory(t,e){return"ENTRY"===t&&"category"===e}isGroupHeadCategory(t,e){return"GROUPHEAD"===t&&"category"===e}translateCellPrefix(t,e,o){return this.isOperationColumn(o)||this.isGroupHeadCategory(e,o)||this.isEntryCategory(e,o)?null:this.isDrillElementCategory(e,o)?`${t.get("there_of")} `:this.isPartElementCategory(e,o)?`${t.get("part_of")} `:null}createColumnType(t){return t.name===t.group&&t.name===t.type?"base":t.name===t.group?"columnGroup":"columnSubGroup"}}class I{constructor(t,e,o){this.data=[],this.headerRows=[],this.bodyRows=[],this.ruleSet=t||new a,this.dataSetFactory=new W,this.config=this.initConfig(o),this.i18n=this.initI18n(new Map),this.setData(e,o.filter),this.state=O.DIRTY}setI18n(t){this.i18n=this.initI18n(t)}initI18n(t){const e=new Map([["",""],["SEPERATOR_WS",", "],["in","in"],["ORDER_asc","↑"],["ORDER_desc","↓"],["ac1","AC"],["pp1","PY"],["fc1","FC"],["pl1","PL"],["ac2","AC2"],["pp2","PY2"],["fc2","FC2"],["pl2","PL2"],["ac3","AC3"],["pp3","PY3"],["fc3","FC3"],["pl3","PL3"],["ac4","AC4"],["pp4","PY4"],["fc4","FC4"],["pl4","PL4"],["in","in"],["category"," "],["operation"," "],["there_of","davon"],["part_of","in % von"],["ibcssymbol_delta_ac","Δ{%}"],["ibcssymbol_delta_generic","Δ({%})"],["ibcssymbol_delta_ac_relative","Δ{%}%"],["ibcssymbol_delta_generic_relative","Δ({%})%"],["SUM_TOTAL","❖"]]);return this.state=O.DIRTY,new Map([...e,...t||new Map])}initConfig(t){this.state=O.DIRTY;const e=t,o=this;return t.scenarios.sort(((t,e)=>o.ruleSet.getScenarioSorIndex(t)-o.ruleSet.getScenarioSorIndex(e))),e}setConfig(t){this.config=this.initConfig(t)}setData(t,e){if(null==t)return;if(null!=e&&e.length>0)try{this.data=v(`SELECT * FROM ? WHERE ${e}`,[t])}catch(o){console.error("Table: filter query failed, using unfiltered data",e,o),this.data=t}else this.data=t;const o=this.normalizeScenarios(this.config.scenarios,this.config.categoryThereOf,this.config.sortOrder);this.headerRows=this.dataSetFactory.createHeader(this.config.type,o,this.i18n,this.config.measureScale,this.config.measureUnit,this.config.showMeasureScale),this.bodyRows=this.dataSetFactory.createBodyRows(this.config,this.i18n,this.data),this.state=O.UP_TO_DATE}update(){const t=this.normalizeScenarios(this.config.scenarios,this.config.categoryThereOf,this.config.sortOrder);this.headerRows=this.dataSetFactory.createHeader(this.config.type,t,this.i18n,this.config.measureScale,this.config.measureUnit,this.config.showMeasureScale),this.bodyRows=this.dataSetFactory.createBodyRows(this.config,this.i18n,this.data),this.state=O.UP_TO_DATE}getHeader(){return this.state===O.DIRTY&&this.update(),this.headerRows}getBody(){return this.state===O.DIRTY&&this.update(),this.bodyRows}normalizeScenarios(t,e,o){var s;const n=[];for(const r of t){if(null==e?void 0:e.has(r)){const t=e.get(r);for(const e of t){n.push({name:e.name,group:e.name,type:r,order:void 0});for(const t of e.subGroups)n.push({name:t,group:e.name,type:r,order:void 0})}n.push({name:"REST",group:"REST",type:r,order:void 0})}let t;(null===(s=null==o?void 0:o.hierarchy)||void 0===s?void 0:s.at(0))===r&&(t=o.direction),n.push({name:r,group:r,type:r,order:t})}return n}hasNoData(){return 0===this.data.length}}class z{constructor(){this.title="",this.scenarios=[],this.scenariosUnitType=h.DECIMAL,this.grouped=!1,this.showGroupTitle=!0,this.thereOf=[],this.categoryThereOf=new Map,this.partOf=[],this.sortOrder=new f(new c).default(),this.type=y.LIST,this.limit=0,this.i18n=u.ALL,this.categoryWidth=m.W25,this.measureScale=new R,this.measureUnit="",this.measureType=$.VOLUME,this.showMeasureScale=!0,this.filter="",this.barColumns=[]}}class j{constructor(t,e,o,s){this.tableDrillGroupAdapter=t,this.stringAdapter=e,this.orderAdapter=o,this.dataSet=s}adapt(t){const e=new z;return d.isString(t.title)&&(e.title=t.title),d.isArray(t.scenarios)&&(e.scenarios=p.adaptArray(t.scenarios,this.stringAdapter)),d.isExisting(t.scenariosUnitType)&&(e.scenariosUnitType=t.scenariosUnitType),d.isBoolean(t.grouped)&&(e.grouped=t.grouped),d.isBoolean(t.showGroupTitle)&&(e.showGroupTitle=t.showGroupTitle),d.isBoolean(t.showMeasureScale)&&(e.showMeasureScale=t.showMeasureScale),d.isArray(t.thereOf)&&(e.thereOf=p.adaptArray(t.thereOf,this.tableDrillGroupAdapter)),d.isExisting(t.categoryThereOf)&&(e.categoryThereOf=t.categoryThereOf),d.isArray(t.partOf)&&(e.partOf=p.adaptArray(t.partOf,this.tableDrillGroupAdapter)),d.isExisting(t.order)&&(e.sortOrder=this.orderAdapter.adapt(t.order)),d.isExisting(t.type)&&(e.type=t.type),d.isNumber(t.limit)&&(e.limit=t.limit),d.isExisting(t.i18n)&&(e.i18n=t.i18n),d.isExisting(t.categoryWidth)&&(e.categoryWidth=t.categoryWidth),d.isExisting(t.measureScale)&&(e.measureScale=g.calculateMeasureScale(this.dataSet,e.scenarios,t.measureScale)),d.isExisting(t.measureType)&&(e.measureType=t.measureType),d.isString(t.measureUnit)&&(e.measureUnit=t.measureUnit),d.isString(t.filter)&&(e.filter=t.filter.trim()),d.isArray(t.barColumns)&&(e.barColumns=t.barColumns),e}default(){return new z}}class V{constructor(){this.rowGroup="",this.category="",this.subCategory="",this.partOf=""}}class Q{constructor(){}adapt(t){const e=new V;return d.isString(t.rowGroup)&&(e.rowGroup=t.rowGroup),d.isString(t.category)&&(e.category=t.category),d.isString(t.subCategory)&&(e.subCategory=t.subCategory),d.isString(t.partOf)&&(e.partOf=t.partOf),e}default(){return new V}}class q{constructor(){this.operation="+"}addRowGroup(t,e){this.rowGroup=t,this.rowGroupIndex=e}addCategory(t,e){this.category=t,this.categoryIndex=e}addSubCategory(t,e){this.subCategory=t,this.subCategoryIndex=e}addColumnGroup(t,e){this.columnGroup=t,this.columnGroupIndex=e}addSubColumnGroup(t,e){this.columnSubGroup=t,this.columnSubGroupIndex=e}}class K{constructor(){}adapt(t){const e=new q;return d.isOperator(t.operation)&&(e.operation=t.operation),d.isNumber(t.rowGroupIndex)&&d.isString(t.rowGroup)&&e.addRowGroup(t.rowGroup,t.rowGroupIndex),d.isNumber(t.categoryIndex)&&d.isString(t.category)&&e.addCategory(t.category,t.categoryIndex),d.isNumber(t.subCategoryIndex)&&d.isString(t.subCategory)&&e.addSubCategory(t.subCategory,t.subCategoryIndex),d.isNumber(t.columnGroupIndex)&&d.isString(t.columnGroup)&&e.addColumnGroup(t.columnGroup,t.columnGroupIndex),d.isNumber(t.columnSubGroupIndex)&&d.isString(t.columnSubGroup)&&e.addSubColumnGroup(t.columnSubGroup,t.columnSubGroupIndex),this.setActualValues(t,e),this.setPlanValues(t,e),this.setPreviousPeriodValues(t,e),this.setForecastValues(t,e),e}default(){return new q}setActualValues(t,e){d.isNumber(t.ac1)&&(e.ac1=t.ac1),d.isNumber(t.ac2)&&(e.ac2=t.ac2),d.isNumber(t.ac3)&&(e.ac3=t.ac3),d.isNumber(t.ac4)&&(e.ac4=t.ac4)}setPlanValues(t,e){d.isNumber(t.pp1)&&(e.pp1=t.pp1),d.isNumber(t.pp2)&&(e.pp2=t.pp2),d.isNumber(t.pp3)&&(e.pp3=t.pp3),d.isNumber(t.pp4)&&(e.pp4=t.pp4)}setPreviousPeriodValues(t,e){d.isNumber(t.pl1)&&(e.pl1=t.pl1),d.isNumber(t.pl2)&&(e.pl2=t.pl2),d.isNumber(t.pl3)&&(e.pl3=t.pl3),d.isNumber(t.pl4)&&(e.pl4=t.pl4)}setForecastValues(t,e){d.isNumber(t.fc1)&&(e.fc1=t.fc1),d.isNumber(t.fc2)&&(e.fc2=t.fc2),d.isNumber(t.fc3)&&(e.fc3=t.fc3),d.isNumber(t.fc4)&&(e.fc4=t.fc4)}}const J=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.data=[],this.tableTitle="SUM_TOTAL",this.scenarios=[],this.scenariosDataFormat=h.DECIMAL,this.grouped=!1,this.limit=0,this.showGroupTitle=!0,this.thereof=[],this.partof=[],this.order={hierarchy:[],direction:U.ASC},this.categorythereof=new Map,this.type=y.LIST,this.categoryWidth=m.INF,this.dataFormatDigits={percent:2,decimal:1},this.i18n=new Map,this.i18nMode=u.ALL,this.measureScale="_",this.measureUnit="",this.showMeasureScale=!0,this.measureType=$.VOLUME,this.filter="",this.barColumns=[],this.unitScaling=.01,this.percentageScaling=.5,this.scaleFactor=1,this.componentDataFormatDigits=new w,this.componentStyle=S(this)}render(){return t(s,null,(()=>{if(void 0!==this.table){if(this.table.hasNoData()){const e=this.i18n.get("NO_DATA")||"==No Data==";return t("p",{class:"warning"},e)}return t("table",null,t("thead",null,this.table.getHeader().map((e=>t("tr",{class:e.cssStyle},e.getCells().map((e=>t("th",{colSpan:e.colSpan,class:e.cssStyle},e.getAsHeaderList().map(((o,s,n)=>t("span",null,s===n.length-1?t("span",{class:" "===o?"table-footer":""},o,e.drawPrefix()," "):t("span",null,o,e.drawPrefix(),t("br",null)))))))))))),t("tbody",null,this.table.getBody().map((e=>t("tr",{class:e.cssStyle},null==e?void 0:e.getCells().map((e=>t("td",{colSpan:e.colSpan,class:e.cssStyle+" "+e.type},null!=e.prefix?t("span",{class:e.cssStyle+" "+e.prefixStyle},e.drawPrefix()):"",e.isBarChart&&e.columnStats?t(F,{value:e.value,scenario:e.key,columnStats:e.columnStats,height:18*this.scaleFactor,isRelative:e.key.startsWith("dr"),isPositiveGood:e.key.endsWith("_pos"),measureScale:e.measureScale,styles:this.barChartStyles}):e.draw(this.componentDataFormatDigits)))))))))}})())}componentWillRender(){const t=this.prepareConfig(),e=this.prepareData();this.componentDataFormatDigits=(new b).adapt(this.dataFormatDigits),this.barChartStyles=this.prepareBarChartStyles(),this.table=new I(new a,e,t),this.table.setI18n(this.i18n)}prepareConfig(){return new j(new Q,new c,new f(new c),this.data).adapt({title:this.tableTitle,scenarios:this.scenarios,scenariosUnitType:this.scenariosDataFormat,grouped:this.grouped,showGroupTitle:this.showGroupTitle,thereOf:this.thereof,partOf:this.partof,categoryThereOf:this.categorythereof,order:this.order,type:this.type,limit:this.limit,i18n:this.i18nMode,categoryWidth:this.categoryWidth,measureScale:this.measureScale,measureUnit:this.measureUnit,measureType:this.measureType,showMeasureScale:this.showMeasureScale,filter:this.filter,barColumns:this.barColumns})}prepareData(){return p.adaptArray(this.data,new K)}prepareBarChartStyles(){return this.componentStyle((t=>{var e,o,s,n,r,i,l,a,c,u,h,d,p,f,m,$,v,g,R,w,b,S,E,O,y,U;const M=null===(e=t["bn-chart-time"])||void 0===e?void 0:e.varianceStyles,G=null===(o=t["bn-chart-time"])||void 0===o?void 0:o.barStyles;return{positive:{stroke:(null===(s=null==M?void 0:M.pos)||void 0===s?void 0:s.stroke)||"#008f96",fill:(null===(n=null==M?void 0:M.pos)||void 0===n?void 0:n.fill)||"#008f96",fillpattern:(null===(r=null==M?void 0:M.pos)||void 0===r?void 0:r.fillpattern)||"solid"},negative:{stroke:(null===(i=null==M?void 0:M.neg)||void 0===i?void 0:i.stroke)||"#ff0000",fill:(null===(l=null==M?void 0:M.neg)||void 0===l?void 0:l.fill)||"#ff0000",fillpattern:(null===(a=null==M?void 0:M.neg)||void 0===a?void 0:a.fillpattern)||"solid"},neutral:{stroke:(null===(c=null==M?void 0:M.neu)||void 0===c?void 0:c.stroke)||"#808080",fill:(null===(u=null==M?void 0:M.neu)||void 0===u?void 0:u.fill)||"#808080",fillpattern:(null===(h=null==M?void 0:M.neu)||void 0===h?void 0:h.fillpattern)||"outlined"},scenarios:{ac:{stroke:(null===(d=null==G?void 0:G.ac)||void 0===d?void 0:d.stroke)||"#404040",fill:(null===(p=null==G?void 0:G.ac)||void 0===p?void 0:p.fill)||"#404040",fillpattern:(null===(f=null==G?void 0:G.ac)||void 0===f?void 0:f.fillpattern)||"solid"},pp:{stroke:(null===(m=null==G?void 0:G.pp)||void 0===m?void 0:m.stroke)||"#A6A6A6",fill:(null===($=null==G?void 0:G.pp)||void 0===$?void 0:$.fill)||"#A6A6A6",fillpattern:(null===(v=null==G?void 0:G.pp)||void 0===v?void 0:v.fillpattern)||"solid"},fc:{stroke:(null===(g=null==G?void 0:G.fc)||void 0===g?void 0:g.stroke)||"#404040",fill:(null===(R=null==G?void 0:G.fc)||void 0===R?void 0:R.fill)||"#ffffff",fillpattern:(null===(w=null==G?void 0:G.fc)||void 0===w?void 0:w.fillpattern)||"hatched"},pl:{stroke:(null===(b=null==G?void 0:G.pl)||void 0===b?void 0:b.stroke)||"#404040",fill:(null===(S=null==G?void 0:G.pl)||void 0===S?void 0:S.fill)||"#ffffff",fillpattern:(null===(E=null==G?void 0:G.pl)||void 0===E?void 0:E.fillpattern)||"outlined"}},fontColor:(null===(O=t.global)||void 0===O?void 0:O.fontColor)||"#000000",fontSize:.85*((null===(y=t.global)||void 0===y?void 0:y.fontSizePx)||13.3333)*this.scaleFactor,fontFamily:(null===(U=t.global)||void 0===U?void 0:U.fontFamily)||"'Noto Sans', sans-serif",unitScaling:this.unitScaling,percentageScaling:this.percentageScaling,scaleFactor:this.scaleFactor}}))}get element(){return this}static get style(){return':host{position:relative;display:inline-block}table{background-color:var(--bn-font-background, white);font-size:var(--bn-font-size, 1em);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);border-spacing:0.3em 0}thead{border-style:none}tr:first-child td{border-top:none;padding-top:0.5em}td.ac1,td.ac2,td.ac3,td.ac4,td.pp1,td.pp2,td.pp3,td.pp4,td.pl1,td.pl2,td.pl3,td.pl4,td.fc1,td.fc2,td.fc3,td.fc4,td.share,td.variance,td.pos_pos,td.pos_neg,td.neg_pos,td.neg_neg,td.pos_neutral,td.neg_neutral{text-align:right}.category-inf{max-width:1000em}.category-w100{max-width:100em}.category-w50{max-width:50em}.category-w25{max-width:25em}.category-w20{max-width:20em}.category-w15{max-width:15em}.category-w10{max-width:10em}.category-w5{max-width:5em}.prefix-second{color:transparent;font-style:normal}.prefix-first{font-style:normal}th{border-bottom:0.1em solid black;text-align:right;font-weight:normal;vertical-align:text-top}td.columnGroup,th.columnGroup{font-size:0.6em}td.columnSubGroup,th.columnSubGroup{font-size:0.6em;border-spacing:0em 0;font-style:italic}td.base,th.base{font-style:normal}th.ofit,td.ofit,tr.ofit,th.partof,td.partof,tr.partof{font-size:0.6em;font-style:italic}td.ofit,td.partof{font-size:0.6em;font-style:italic}th.ofit td,tr.ofit td,th.partof td,tr.partof td{border-top:0em solid black;padding-left:1em}th.ofit share,th.partof share,tr.share td{border-top:0em solid black}th.share,tr.share,td.share{font-size:0.6em;font-style:italic}th.filler{border-bottom:0em solid black;text-align:right}td.filler{border-top:0em none !important;border-bottom:0em none;text-align:right}th.group{text-align:center;border-spacing:1em 0}th.headerlabel{border-bottom:0em none black;padding-bottom:0em}td.variance:after{content:"%"}td.relative_variance{font-style:italic}td.percent{font-style:italic;text-align:right}td.decimal{text-align:right}td.pos_pos{color:#008f96}td.neg_pos{color:#ff0000}td.pos_neg{color:#ff0000}td.neg_neg{color:#008f96}td.pos_pos:before{content:"+"}td.pos_neg:before{content:"+"}td.pos_neu:before{content:"+"}th.ac1,th.ac2,th.ac3,th.ac4{padding-top:0em;border-bottom:0.3em solid black}th.pp1,th.pp2,th.pp3,th.pp4{padding-top:0em;border-bottom:0.3em solid grey}th.pl1,th.pl2,th.pl3,th.pl4{padding-top:0em;border-bottom:0.3em double black}th.fc1,th.fc2,th.fc3,th.fc4{border-bottom:0.3em solid;border-image:repeating-linear-gradient(-45deg, white, white, black, white, white 0.3em) 2}td.colsum{font-weight:bold}th.colsum{padding-top:0em;font-weight:bold}tr.sum td{border-top:0.1em solid black;font-weight:bold;padding-bottom:0.5em}tr.groupheader td{border-top:0em dotted #ddd;padding-top:0.5em;font-weight:bold;font-style:italic}tr.begingroup td{border-top:0em dotted #ddd;padding-top:0.5em}th.begin-group{padding-left:0.75em}th.end-group{padding-left:0.75em}td{box-sizing:border-box;-webkit-box-sizing:border-box;border-top:0.1em dashed #ddd;padding-left:0.5em;max-width:15em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-footer{font-size:0.6em}.cell-bar-chart{display:inline-block;vertical-align:middle}.bar-chart-empty{color:#999}td:has(.cell-bar-chart){padding:0 0.25em;vertical-align:middle}td:has(.cell-bar-chart).pos_pos:before,td:has(.cell-bar-chart).pos_neg:before,td:has(.cell-bar-chart).pos_neu:before{content:none}td:has(.cell-bar-chart).variance:after{content:none}'}},[1,"ibcs-table",{data:[16],tableTitle:[1,"table-title"],scenarios:[16],scenariosDataFormat:[1,"scenarios-data-format"],grouped:[4],limit:[2],showGroupTitle:[4,"show-group-title"],thereof:[16],partof:[16],order:[16],categorythereof:[16],type:[1],categoryWidth:[1,"category-width"],dataFormatDigits:[16],i18n:[1040],i18nMode:[1,"i18n-mode"],measureScale:[1,"measure-scale"],measureUnit:[1,"measure-unit"],showMeasureScale:[4,"show-measure-scale"],measureType:[1,"measure-type"],filter:[1],barColumns:[16],unitScaling:[2,"unit-scaling"],percentageScaling:[2,"percentage-scaling"],scaleFactor:[2,"scale-factor"]}]);function X(){"undefined"!=typeof customElements&&["ibcs-table"].forEach((t=>{"ibcs-table"===t&&(customElements.get(n(t))||customElements.define(n(t),J))}))}export{J as I,y as T,X as d}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface IbcsTitle extends Components.IbcsTitle, HTMLElement {}
4
+ export const IbcsTitle: {
5
+ prototype: IbcsTitle;
6
+ new (): IbcsTitle;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{I as s,d as t}from"./ibcs-title2.js";const o=s,i=t;export{o as IbcsTitle,i as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{proxyCustomElement as t,HTMLElement as s,h as i,transformTag as e}from"@stencil/core/internal/client";import{I as n,h as r,i as a,e as c,b as o,j as h}from"./Order.js";import{b as l,D as u,a as d}from"./DateStringFactory.js";import{F as p,I as f,S as b}from"./ibcsRuleSet.js";class m{constructor(){}createMeasures(t,s,i){if(this.allMeasuresUseSameUnit(t)){const e=t.length;let r="",a="";for(let c=0;c<e;c++){let o="";c>0&&(o=s.get("SEPERATOR_WS")),e>1&&c===e-1&&(o=s.get("CONNECTOR_WS")),i===n.ALL?(r=(s.get(r)||r)+o+(s.get(t[c].name)||t[c].name),a=s.get(t[c].unit)||t[c].unit):(r=r+o+t[c].name,a=t[c].unit)}return[{name:r,unit:a}]}return t}createDimension(t,s,i,e,n){let r="";return void 0!==s&&(r=(new l).getDateLinkString(s.start,s.end,s.link,s.format,n)),r+t.map((t=>{let s="";return null!=i&&null!=i.hierarchy&&i.hierarchy.find((s=>s===t))&&(s=e.get("asc"===i.direction?"ORDER_asc":"ORDER_desc")),"".concat(" ",p.translateScenarioLabel(t,e),s)})).toString()}allMeasuresUseSameUnit(t){const s=new Map;return t.forEach((function(t){s.set(t.unit,!0)})),1===s.size}}class w{constructor(){this.businessunit="",this.measures=[],this.scenarios=[],this.i18nMode=n.ALL,this.intervalSpanLimit=32}}class _{constructor(t,s,i,e){this.measureEntryAdapter=t,this.timePeriodAdapter=s,this.orderAdapter=i,this.stringAdapter=e}adapt(t){const s=new w;return r.isString(t.businessunit)&&(s.businessunit=t.businessunit),r.isArray(t.measures)&&(s.measures=a.adaptArray(t.measures,this.measureEntryAdapter)),r.isArray(t.scenarios)&&(s.scenarios=a.adaptArray(t.scenarios,this.stringAdapter)),r.isExisting(t.timeperiod)&&(s.timeperiod=this.timePeriodAdapter.adapt(t.timeperiod)),r.isNumber(t.intervalSpanLimit)&&(s.intervalSpanLimit=t.intervalSpanLimit),r.isExisting(t.i18nMode)&&(s.i18nMode=t.i18nMode),r.isExisting(t.order)&&(s.order=this.orderAdapter.adapt(t.order)),s}default(){return new w}}var v;!function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(v||(v={}));class y{constructor(t){this.i18n=new Map,this.unit="",this.measures=[],this.dimension="",this.config=new w,this.state=v.DIRTY,this.ruleSet=t||new f,this.dataSetFactory=new m,this.state=v.DIRTY,this.setI18n(new Map)}setI18n(t){this.state=v.DIRTY;const s=new Map([["SEPERATOR_WS",", "],["in","in"],["ORDER_asc","↑"],["ORDER_desc","↓"],["ac1","AC"],["pp1","PY"],["fc1","FC"],["pl1","PL"],["ac2","AC2"],["pp2","PY2"],["fc2","FC2"],["pl2","PL2"],["ac3","AC3"],["pp3","PY3"],["fc3","FC3"],["pp3","PL3"],["ac4","AC4"],["py4","PY4"],["fc4","FC4"],["pp4","PL4"],["category"," "],["operation"," "],["there_of","davon"],["part_of","in % von"],["ibcssymbol_delta_ac","Δ{%}"],["ibcssymbol_delta_generic","Δ({%})"],["ibcssymbol_delta_ac_relative","Δ{%}%"],["ibcssymbol_delta_generic_relative","Δ({%})%"],["SUM_TOTAL","❖"],["CONNECTOR_WS"," und "]]);this.i18n=new Map([...s,...t||new Map])}update(){return v.DIRTY===this.state&&(this.unit=this.config.businessunit,this.measures=this.dataSetFactory.createMeasures(this.config.measures,this.i18n,this.config.i18nMode),this.dimension=this.dataSetFactory.createDimension(this.config.scenarios,this.config.timeperiod,this.config.order,this.i18n,this.config.intervalSpanLimit),this.state=v.UP_TO_DATE),this}setConfig(t){this.config=this.initConfig(t)}initConfig(t){this.state=v.DIRTY;const s=t,i=this;return t.scenarios.sort(((t,s)=>i.ruleSet.getScenarioSorIndex(t)-i.ruleSet.getScenarioSorIndex(s))),s}}class R{constructor(t="",s=""){this.name=t,this.unit=s}}class E{construnctor(){}adapt(t){const s=new R;return r.isString(t.name)&&(s.name=t.name),r.isString(t.unit)&&(s.unit=t.unit),s}default(){return new R("","")}}class S{constructor(t=c.now(),s=c.now(),i=u.AUTO,e=d.AUTO){this.start=t,this.end=s,this.format=i,this.link=e}}class C{construnctor(){}adapt(t){const s=new S;return r.isDate(t.start)&&(s.start=t.start),r.isDate(t.end)&&(s.end=t.end),r.isExisting(t.format)&&(s.format=t.format),r.isExisting(t.link)&&(s.link=t.link),s}default(){return new S}}const O=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.businessUnit="",this.scenarios=[],this.measures=[],this.intervalSpanLimit=28,this.order={hierarchy:[],direction:o.ASC},this.i18n=new Map,this.i18nMode=n.ALL,this.title=new y(new f)}async setBusinessUnit(t){this.businessUnit=t}async setProps(t){Object.keys(t).forEach((s=>{this[s]=t[s]}))}render(){return i("div",{key:"5c9f0c8cdfba5e01f46ee0e5ab820bb88811f365"},i("div",{key:"2dce919eb35df3d35c696c95ad04d5e41a40c374"},this.title.unit),i("div",{key:"f5979715f3203637c7b2256b31230b3794902849"},this.title.measures.map(((t,s)=>i("span",null,this.isFirstElement(s)?this.title.i18n.get("SEPERATOR_WS"):"",i("span",{class:"measure"},t.name)," ",t.unit?this.title.i18n.get("in"):""," ",t.unit)))),i("div",{key:"6dbe3c259c571ec902afa2815e82997b37dd8f8c"},this.title.dimension))}componentWillLoad(){const t=this.prepareConfig();this.title=new y(new f),this.title.setI18n(this.i18n),this.title.setConfig(t)}componentWillUpdate(){const t=this.prepareConfig();this.title.setI18n(this.i18n),this.title.setConfig(t)}componentWillRender(){this.title.update()}isFirstElement(t){return 0!==t}prepareConfig(){return new _(new E,new C,new h(new b),new b).adapt({businessunit:this.businessUnit,measures:this.measures,scenarios:this.scenarios,timeperiod:this.timeperiod,intervalSpanLimit:this.intervalSpanLimit,i18nMode:this.i18nMode,order:this.order})}static get style(){return':host{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)}.measure{font-weight:bold}div{background-color:var(--bn-font-background, white);color:var(--bn-font-color, black)}'}},[1,"ibcs-title",{businessUnit:[1537,"business-unit"],scenarios:[16],measures:[16],timeperiod:[16],intervalSpanLimit:[2,"interval-span-limit"],order:[16],i18n:[1040],i18nMode:[1,"i18n-mode"],setBusinessUnit:[64],setProps:[64]}]);function P(){"undefined"!=typeof customElements&&["ibcs-title"].forEach((t=>{"ibcs-title"===t&&(customElements.get(e(t))||customElements.define(e(t),O))}))}export{O as I,P as d}
@@ -0,0 +1 @@
1
+ import{i as t}from"./Order.js";import{g as r}from"./_commonjsHelpers.js";class i{adapt(r){return t.adaptDefaultString(r)}default(){return""}}class e{constructor(t){this.type="",this.base="",this.delta="",this.direction="",this.isValid=!1;const r=/(d|dr)(pl\d|ac\d|fc\d|pp\d)_(pl\d|ac\d|fc\d|pp\d)_(pos|neg|neu)/;if(r.test(t)){const i=r.exec(t);null!=i&&(this.type=String(i[1]),this.base=String(i[2]),this.delta=String(i[3]),this.direction=String(i[4]),this.isValid=!0)}}}var s;!function(t){t.OPERATION="operation",t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CURRENTROW="currentRow",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.COLUMNGROUP="columnGroup",t.COLUMNGROUPINDEX="columnIndex",t.COLUMNSUBGROUP="columnSubGroup",t.COLUMNSUBGROUPINDEX="columnSubGroupIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4",t.TOTALROWCOUNT="totalRowCnt",t.ROWNR="rowNr",t.TYPE="type"}(s||(s={}));var n,o={},a=r(function(){if(n)return o;n=1;var t={};return Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(r,i){void 0===i&&(i={});var e=JSON.stringify({text:r,options:i});if(t[e])return t[e];i.font=i.font||"Times",i.fontSize=i.fontSize||"16px",i.fontWeight=i.fontWeight||"normal",i.width=i.width||"auto";var s=function(t,r){var i=document.createElement("div"),e=document.createTextNode(t);return i.appendChild(e),i.style.fontFamily=r.font,i.style.fontSize=r.fontSize,i.style.fontWeight=r.fontWeight,i.style.position="absolute",i.style.visibility="hidden",i.style.left="-999px",i.style.top="-999px",i.style.width=r.width,i.style.height="auto",document.body.appendChild(i),i}(r,i),n={width:s.offsetWidth,height:s.offsetHeight};return function(t){t.parentNode.removeChild(t)}(s),t[e]=n,n},o}());class c{static number(t,r="decimal",i=1,e=0,s=1){return(t/s).toLocaleString("de-DE",{style:r,useGrouping:!0,maximumFractionDigits:i,minimumFractionDigits:e}).replace(/\s+(%)/g,"$1").replace(/\s/g,this.postfixSeperator).replace(/\./g,this.tsdDelimiter)}static translateScenarioLabel(t,r){if(null==t)return"";const i=new e(t);if(!i.isValid)return`${r.get(t)||t}`;let n,o;return s.AC1===i.base?(n=r.get("dr"===i.type?"ibcssymbol_delta_ac_relative":"ibcssymbol_delta_ac"),o=r.get(i.delta)||i.delta):(n=r.get("dr"===i.type?"ibcssymbol_delta_generic_relative":"ibcssymbol_delta_generic"),o=`${r.get(i.base)||i.base} - ${r.get(i.delta)||i.delta}`),void 0===n&&(n="{%}"),`${n.replace("{%}",o)}`}static getMaxWidthOfArrayItems(t,r,i){return a(t.map((t=>c.translateScenarioLabel(t,r))).reduce(((t,r)=>t.length<r.length?r:t),""),{font:i.fontStyles.font,fontSize:i.fontStyles.size+"px"}).width}}c.tsdDelimiter=".",c.postfixSeperator=",";class d{constructor(){this._dateFormat={year:"YYYY",quarter:"Q[Q] YYYY",month:"MMM YYYY",locale:"[KW]WW YYYY",day:"DD.MM.YYYY"},this._dateLinkFormat={avg:"Ø[DATE]",interval:"[DATE]..[DATE]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE]",mat:"~[DATE]",none:"[DATE]"},this._scenarioMap=new Map,this._fallBackScenario={name:"Series",group:"Series",colorIndex:10,sortIndex:120},this.createScenarioMapEntry("ac","AC",10,400),this.createScenarioMapEntry("fc","FC",30,300),this.createScenarioMapEntry("pl","PL",50,200),this.createScenarioMapEntry("bu","BU",50,200),this.createScenarioMapEntry("pp","PP",20,100),this.createScenarioMapEntry("py","PY",20,100),this.createScenarioMapEntry("dac","dAC",10,1400),this.createScenarioMapEntry("dfc","dFC",30,1300),this.createScenarioMapEntry("dpl","dPL",50,1200),this.createScenarioMapEntry("dbu","dBU",50,1200),this.createScenarioMapEntry("dpp","dPP",20,1100),this.createScenarioMapEntry("dpy","dPY",20,1100),this.createScenarioMapEntry("drac","drAC",10,2400),this.createScenarioMapEntry("drfc","drFC",30,2300),this.createScenarioMapEntry("drpl","drPL",50,2200),this.createScenarioMapEntry("drbu","drBU",50,2200),this.createScenarioMapEntry("drpp","drPP",20,2100),this.createScenarioMapEntry("drpy","drPY",20,2100)}createScenarioMapEntry(t,r,i,e){const s=r,n=i;[1,2,3,4].forEach((i=>{this._scenarioMap.set(t+i,{name:r+i,group:s,colorIndex:n,sortIndex:e+10*i})}))}getScenario(t){return this._scenarioMap.has(t)?this._scenarioMap.get(t):this._fallBackScenario}getScenarioGroup(t){return this._scenarioMap.has(t)?this._scenarioMap.get(t).name:this._fallBackScenario.name}getScenarioColorIndex(t){return this._scenarioMap.has(t)?this._scenarioMap.get(t).colorIndex:this._fallBackScenario.colorIndex}getScenarioSorIndex(t){const r=this.normalizeVarianceScenario(t);return this._scenarioMap.has(r)?this._scenarioMap.get(r).sortIndex:this._fallBackScenario.sortIndex}normalizeVarianceScenario(t){if(null==t)return"";const r=new e(t);return r.isValid?r.type+r.delta:t}}export{a as C,c as F,d as I,s as Q,i as S,e as V}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
34
+
35
+ export * from '../types';
@@ -0,0 +1 @@
1
+ export{getAssetPath,render,setAssetPath,setNonce,setPlatformOptions}from"@stencil/core/internal/client";
@@ -0,0 +1 @@
1
+ function t(t){const e=t.parentElement;if(!e)return{width:0,height:0};const o=getComputedStyle(e),n=e.clientWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight),r=function(t){let e=t.parentElement;for(;e;){const t=getComputedStyle(e),o=t.overflowY;if("hidden"===o||"scroll"===o||"auto"===o)return e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom);if("none"!==t.maxHeight){const o=parseFloat(t.maxHeight);if(!isNaN(o)&&o>0)return Math.min(o,e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom))}e=e.parentElement}return"undefined"!=typeof window?window.innerHeight:0}(t);return{width:Math.max(0,n),height:Math.max(0,r)}}function e(t){if(null==t||""===t)return{mode:"empty"};if("none"===t)return{mode:"none"};if("auto"===t)return{mode:"auto"};const e=Number(t);return!isNaN(e)&&e>0?{mode:"factor",factor:e}:{mode:"empty"}}export{t as g,e as p}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TestRunnerCard extends Components.TestRunnerCard, HTMLElement {}
4
+ export const TestRunnerCard: {
5
+ prototype: TestRunnerCard;
6
+ new (): TestRunnerCard;
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 c,transformTag as a}from"@stencil/core/internal/client";import{I as s,T as r,b as i,O as o,A as d}from"./Order.js";import{d as n}from"./ibcs-chart-structure2.js";import{d as b}from"./ibcs-table2.js";import{d as u}from"./ibcs-title2.js";const m=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}render(){return c("div",{key:"e21f394ec62bf5444da864b00860270551a18879"},c("ibcs-card",{key:"db1d071ffd4c72dd0c5b173b739bc33a7f6826d9",title:"Eintracht Frankfurt",image:"debug/concordia.png",showBorder:!1},c("ibcs-title",{key:"bb49cdd2edc75f889d0e99b7bd010a692770ef8a",businessUnit:"Test Cars",measures:[{name:"Bruttoumsatz",unit:"mEUR"},{name:"Bruttoumsatz2",unit:"mDollar"}],scenarios:["ac","py","dpy_ac_pos"]})),c("ibcs-card",{key:"4a643bbd44b7e0cb90ed304939c423c602462957",title:"Nintendo",image:"https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Nintendo_red_logo.svg/1280px-Nintendo_red_logo.svg.png",showBorder:!0},c("ibcs-table",{key:"d83c0e84abc29d3305a8cdac0e6c84c6cca31099","table-title":"😎Sven ist der Papa von Phineas und Max",scenarios:["ac","py"],"scenarios-unit-type":"decimal",grouped:!0,type:r.OPT,"i18n-mode":s.META,showGroupTitle:!0,data:[],"there-of":[{rowGroup:"Umsatz",category:"Applications",subCategory:"",partOf:"category"}]})),c("ibcs-card",{key:"a3049a945b3cad596adc062c2ad1ef22521efc39",title:"Eintracht Frankfurt",image:"debug/concordia.png",showBorder:!0},c("ibcs-chart-structure",{key:"98298c085685f28a704cbcaa372e1b320c50283d",data:[],scenarios:["ac","fc","py","pl"],variances:["dac_fc_pos"],hideCategories:!1,pixelPerUnit:15,chartTitle:void 0,styles:void 0,i18n:void 0,level:d.CATEGORY,order:{hierarchy:[o.CATEGORY],direction:i.DESC}})))}},[0,"test-runner-card"]),l=m,p=function(){"undefined"!=typeof customElements&&["test-runner-card","ibcs-chart-structure","ibcs-table","ibcs-title"].forEach((e=>{switch(e){case"test-runner-card":customElements.get(a(e))||customElements.define(a(e),m);break;case"ibcs-chart-structure":customElements.get(a(e))||n();break;case"ibcs-table":customElements.get(a(e))||b();break;case"ibcs-title":customElements.get(a(e))||u()}}))};export{l as TestRunnerCard,p as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TestRunnerChartTime extends Components.TestRunnerChartTime, HTMLElement {}
4
+ export const TestRunnerChartTime: {
5
+ prototype: TestRunnerChartTime;
6
+ new (): TestRunnerChartTime;
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 o,transformTag as r}from"@stencil/core/internal/client";import{D as a}from"./DateStringFactory.js";import{d as l}from"./ibcs-chart-time2.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}render(){const e={scaleFactors:{scenarioOffset:.3,scenarioLabelToColumn:.3,labelToColum:.3,labelToAxis:.3,needleWidth:.3,needleHeadWidth:.6,columnWidth:2,varianceAxisLineWidth:.3,axisLineWidth:.1,auxiliaryLineWidth:.1,scenarioLineWidth:.2,markerWidth:.7,markerOffset:0,categoryWidth:3,axisTickLength:.3},fontStyles:{font:"27.3333px Sans-Serif",size:27.3333,color:"#000000",background:"#ffffff",leading:1.8},axisStyles:{ac:{stroke:"#121212",fill:"#121212",width:.1},fc:{stroke:"#121212",fill:"#ffffff",width:.1,dasharray:"10 5 5 5"},pp:{stroke:"#606060",fill:"#606060",width:.1},pl:{stroke:"#121212",fill:"#ffffff",width:.1}},barStyles:{ac:{stroke:"#404040",fill:"#404040",width:.1},fc:{stroke:"#404040",fill:"#ffffff",width:.5,fillpattern:"fc"},pp:{stroke:"#A6A6A6",fill:"#A6A6A6",width:.1},pl:{stroke:"#404040",fill:"#ffffff",width:.1}},varianceStyles:{pos:{stroke:"#008f96",fill:"#008f96",width:.1},neg:{stroke:"#ff0000",fill:"#ff0000",width:.1},neu:{stroke:"#808080",fill:"#808080",width:.1}},padding:{top:10,left:10,right:10,bottom:10},pattern:new Map},t=new Map;return t.set("pp1","PY"),t.set("ac1","AC"),t.set("pl1","PL"),t.set("fc1","FC"),o("div",{key:"79749e85befc60318e77e304ab58b6dffcb113dd"},o("div",{key:"cc40a80a42894d4eca30a389bbc9d94526c99915",style:{fontFamily:e.fontStyles.font,fontSize:e.fontStyles.size+"px"}},o("div",{key:"db1a42dd4695f00e2220b1ea25911fe13536fea5"},"T-2 1 Series MONTH"),o("ibcs-chart-time",{key:"5ed470df7180fd31c45049ad56b3c02a2f1f7cad",data:[{setName:"de",date:"2022-03-01T01:05:00Z",operation:"+",rowGroup:"Afrika",rowGroupIndex:1,category:"I",categoryIndex:1,subCategory:"Question Mark",subCategoryIndex:1,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:100,ac1:100,pl1:100,fc1:100,ac2:.001,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4},{setName:"de",date:"2022-03-01T01:00:00Z",operation:"+",rowGroup:"Amerika",rowGroupIndex:1,category:"II",categoryIndex:2,subCategory:"Stars",subCategoryIndex:2,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:1201,ac1:300,pl1:1209,fc1:100,ac2:.001,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4},{setName:"de",date:"2022-03-01T01:06:00Z",operation:"+",rowGroup:"Asien",rowGroupIndex:1,category:"III",categoryIndex:3,subCategory:"Cash Cows",subCategoryIndex:3,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:835,ac1:200,pl1:955,fc1:100,ac2:.001,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4},{setName:"de",date:"2022-03-01T00:59:00Z",operation:"+",rowGroup:"Europa",rowGroupIndex:1,category:"Produktgrupppe IV",categoryIndex:4,subCategory:"Poor Dogs",subCategoryIndex:4,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:423,ac1:741,pl1:641,fc1:400,ac2:.001,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4},{setName:"de",date:"2022-03-01T00:59:01Z",operation:"+",rowGroup:"Rest",rowGroupIndex:1,category:"Rest",categoryIndex:5,subCategory:"Rest",subCategoryIndex:5,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:1,ac1:400,pl1:1,fc1:100,ac2:.001,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4}],scenarios:["ac2"],variances:[],pixelPerUnit:10,styles:e,"date-interval":a.YEAR,"interval-span-Limit":10,measureScale:"p",measureUnit:"EUR",showMeasureScale:!0,dataFormatDigits:{percent:2,decimal:2}})))}},[0,"test-runner-chart-time"]),n=c,p=function(){"undefined"!=typeof customElements&&["test-runner-chart-time","ibcs-chart-time"].forEach((e=>{switch(e){case"test-runner-chart-time":customElements.get(r(e))||customElements.define(r(e),c);break;case"ibcs-chart-time":customElements.get(r(e))||l()}}))};export{n as TestRunnerChartTime,p as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TestRunnerChart extends Components.TestRunnerChart, HTMLElement {}
4
+ export const TestRunnerChart: {
5
+ prototype: TestRunnerChart;
6
+ new (): TestRunnerChart;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;