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

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 (278) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/{p-_LBTIfNN.js → p--PSoPbDM.js} +1 -1
  3. package/dist/bn-template-engine/p-05a82a77.entry.js +1 -0
  4. package/dist/bn-template-engine/p-0ca8dc17.entry.js +1 -0
  5. package/dist/bn-template-engine/p-0f1504f3.entry.js +1 -0
  6. package/dist/bn-template-engine/p-1d9a3be9.entry.js +1 -0
  7. package/dist/bn-template-engine/p-35638ad0.entry.js +1 -0
  8. package/dist/bn-template-engine/p-37881d05.entry.js +1 -0
  9. package/dist/bn-template-engine/{p-65f8962a.entry.js → p-3b894997.entry.js} +1 -1
  10. package/dist/bn-template-engine/p-50e49732.entry.js +1 -0
  11. package/dist/bn-template-engine/p-60a7fc59.entry.js +1 -0
  12. package/dist/bn-template-engine/{p-ad94cf63.entry.js → p-6c7c0455.entry.js} +1 -1
  13. package/dist/bn-template-engine/p-6da93eae.entry.js +1 -0
  14. package/dist/bn-template-engine/p-701e1578.entry.js +1 -0
  15. package/dist/bn-template-engine/p-BSfqOkN_.js +1 -0
  16. package/dist/bn-template-engine/{p--TeDldm8.js → p-CRLgp9-v.js} +1 -1
  17. package/dist/bn-template-engine/p-CYjZRKdI.js +1 -0
  18. package/dist/bn-template-engine/{p-Cp4MVxCu.js → p-CvXqez4D.js} +1 -1
  19. package/dist/bn-template-engine/p-DG-1MR_T.js +1 -0
  20. package/dist/bn-template-engine/{p-CnI71OA9.js → p-DRikHQE-.js} +1 -1
  21. package/dist/bn-template-engine/p-DVMu6dEy.js +1 -0
  22. package/dist/bn-template-engine/p-DVo6aZUE.js +1 -0
  23. package/dist/bn-template-engine/p-DdexOqTs.js +1 -0
  24. package/dist/bn-template-engine/p-DgfL-ffj.js +1 -0
  25. package/dist/bn-template-engine/p-DyRaC0MB.js +1 -0
  26. package/dist/bn-template-engine/p-JNHhIe7t.js +2 -0
  27. package/dist/bn-template-engine/p-a95ccc16.entry.js +1 -0
  28. package/dist/bn-template-engine/p-b7bec050.entry.js +1 -0
  29. package/dist/bn-template-engine/p-bc59ea5c.entry.js +1 -0
  30. package/dist/bn-template-engine/p-d279b578.entry.js +1 -0
  31. package/dist/bn-template-engine/p-dd9dd407.entry.js +1 -0
  32. package/dist/bn-template-engine/p-e102a490.entry.js +1 -0
  33. package/dist/bn-template-engine/p-f27995c9.entry.js +1 -0
  34. package/dist/bn-template-engine/p-f89e55c6.entry.js +1 -0
  35. package/dist/bn-template-engine/{p-CY1RzLjU.js → p-tzFCK9qn.js} +1 -1
  36. package/dist/cjs/{DataFormatDigits-DmTbhF8q.js → DataFormatDigits-CbIVfGEH.js} +1 -1
  37. package/dist/cjs/{DateStringFactory-Dn0aRj2Y.js → DateStringFactory-CfkXYAMN.js} +4 -5
  38. package/dist/cjs/{luxon-8hyy5YD7.js → Order-DtpbD8mQ.js} +282 -0
  39. package/dist/cjs/{SVGVariancesStyleGroup-Czizhngt.js → SVGVariancesStyleGroup-D-rTWlDo.js} +1 -1
  40. package/dist/cjs/{StringAdapter-0EbYMkR0.js → StringAdapter-ByCHdlDO.js} +1 -1
  41. package/dist/cjs/bn-asset.cjs.entry.js +5 -6
  42. package/dist/cjs/{bn-body_3.cjs.entry.js → bn-body_4.cjs.entry.js} +360 -27
  43. package/dist/cjs/bn-card.cjs.entry.js +5 -6
  44. package/dist/cjs/bn-chart-structure.cjs.entry.js +17 -22
  45. package/dist/cjs/bn-chart-time.cjs.entry.js +38 -51
  46. package/dist/cjs/bn-component-style.cjs.entry.js +5 -6
  47. package/dist/cjs/bn-context_5.cjs.entry.js +36 -40
  48. package/dist/cjs/bn-dataset.cjs.entry.js +5 -6
  49. package/dist/cjs/bn-grid.cjs.entry.js +8 -11
  50. package/dist/cjs/bn-image.cjs.entry.js +8 -11
  51. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -6
  52. package/dist/cjs/bn-layout-card.cjs.entry.js +3 -3
  53. package/dist/cjs/bn-layout-page.cjs.entry.js +2 -2
  54. package/dist/cjs/bn-message.cjs.entry.js +6 -7
  55. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  56. package/dist/cjs/bn-template.cjs.entry.js +4 -5
  57. package/dist/cjs/bn-text.cjs.entry.js +12 -16
  58. package/dist/cjs/bn-tree.cjs.entry.js +8 -11
  59. package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-CRPmux5D.js} +1 -1
  60. package/dist/cjs/editor-companion.cjs.entry.js +3 -3
  61. package/dist/cjs/ibcs-chart-structure.cjs.entry.js +31 -33
  62. package/dist/cjs/ibcs-chart-time.cjs.entry.js +42 -44
  63. package/dist/cjs/{index-CScBFiS1.js → index-Cjw0q6gP.js} +1 -2
  64. package/dist/cjs/loader.cjs.js +2 -2
  65. package/dist/cjs/{withDataset-ZdN-RRTx.js → scaling-D8sIIKft.js} +68 -3
  66. package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-C6gLgq_e.js} +2 -2
  67. package/dist/cjs/{componentRegister-C17UFNPh.js → withComponentStatus-_x4LQZ0N.js} +43 -6
  68. package/dist/cjs/{withComponentStyle-C6KHnZHt.js → withComponentStyle-DMtic_9Y.js} +3 -3
  69. package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-B8gHkfV2.js} +1 -1
  70. package/dist/cjs/{withStyled-Bf-stJTR.js → withStyled-BBtMesx3.js} +14 -63
  71. package/dist/cjs/{withTranslation-Cz0M5maV.js → withTranslation-CWPAIRjh.js} +3 -3
  72. package/dist/collection/collection-manifest.json +1 -10
  73. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +2 -3
  74. package/dist/collection/components/bn-chart-time/bn-chart-time.js +21 -30
  75. package/dist/collection/components/bn-message/bn-message.js +1 -1
  76. package/dist/collection/components/bn-page/bn-page.js +1 -1
  77. package/dist/collection/components/bn-table/bn-table.js +1 -1
  78. package/dist/collection/components/bn-template/bn-template.js +1 -1
  79. package/dist/collection/components/bn-text/bn-text.js +1 -1
  80. package/dist/collection/components/bn-title/bn-title.js +1 -9
  81. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -1
  82. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  83. package/dist/collection/utils/DateStringFactory.js +0 -1
  84. package/dist/components/DateStringFactory.js +1 -1
  85. package/dist/components/bn-chart-structure.js +1 -1
  86. package/dist/components/bn-chart-time.js +1 -1
  87. package/dist/components/bn-message2.js +1 -1
  88. package/dist/components/bn-page2.js +1 -1
  89. package/dist/components/bn-table.js +1 -1
  90. package/dist/components/bn-template.js +1 -1
  91. package/dist/components/bn-text.js +1 -1
  92. package/dist/components/bn-title2.js +1 -1
  93. package/dist/components/editor-companion.js +1 -1
  94. package/dist/components/ibcs-title2.js +1 -1
  95. package/dist/components/scaling.js +1 -1
  96. package/dist/components/validate.js +1 -1
  97. package/dist/components/withHasError.js +1 -1
  98. package/dist/esm/{DataFormatDigits-Dt6gpIiZ.js → DataFormatDigits-DYdbRX-1.js} +1 -1
  99. package/dist/esm/{DateStringFactory-_Qiv0IvF.js → DateStringFactory-DRcbojUT.js} +1 -2
  100. package/dist/esm/{luxon-DbyXf6dF.js → Order-DdexOqTs.js} +280 -1
  101. package/dist/esm/{SVGVariancesStyleGroup-DlWgvpzs.js → SVGVariancesStyleGroup-D0Cwprv1.js} +1 -1
  102. package/dist/esm/{StringAdapter-BLvo1Krl.js → StringAdapter-CTL-Dvzp.js} +1 -1
  103. package/dist/esm/bn-asset.entry.js +5 -6
  104. package/dist/esm/{bn-body_3.entry.js → bn-body_4.entry.js} +356 -24
  105. package/dist/esm/bn-card.entry.js +5 -6
  106. package/dist/esm/bn-chart-structure.entry.js +12 -17
  107. package/dist/esm/bn-chart-time.entry.js +31 -44
  108. package/dist/esm/bn-component-style.entry.js +5 -6
  109. package/dist/esm/bn-context_5.entry.js +15 -19
  110. package/dist/esm/bn-dataset.entry.js +5 -6
  111. package/dist/esm/bn-grid.entry.js +8 -11
  112. package/dist/esm/bn-image.entry.js +8 -11
  113. package/dist/esm/bn-internationalization.entry.js +5 -6
  114. package/dist/esm/bn-layout-card.entry.js +3 -3
  115. package/dist/esm/bn-layout-page.entry.js +2 -2
  116. package/dist/esm/bn-message.entry.js +6 -7
  117. package/dist/esm/bn-template-engine.js +3 -3
  118. package/dist/esm/bn-template.entry.js +4 -5
  119. package/dist/esm/bn-text.entry.js +11 -15
  120. package/dist/esm/bn-tree.entry.js +8 -11
  121. package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-Bz5klD-F.js} +1 -1
  122. package/dist/esm/editor-companion.entry.js +3 -3
  123. package/dist/esm/ibcs-chart-structure.entry.js +5 -7
  124. package/dist/esm/ibcs-chart-time.entry.js +6 -8
  125. package/dist/esm/{index-B27Ax6P_.js → index-JNHhIe7t.js} +2 -2
  126. package/dist/esm/loader.js +3 -3
  127. package/dist/esm/{withDataset-BT2VQCsG.js → scaling-C6K8FYSF.js} +67 -4
  128. package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-DczL5ia8.js} +2 -2
  129. package/dist/esm/{componentRegister-BtVfu16B.js → withComponentStatus-DodoSXe-.js} +36 -1
  130. package/dist/esm/{withComponentStyle-NaxfakAG.js → withComponentStyle-BerJY64r.js} +3 -3
  131. package/dist/esm/{withHasError-C48fTE2k.js → withHasError-B3QX2emi.js} +1 -1
  132. package/dist/esm/{withStyled-CpUTv74m.js → withStyled-DCipbf2O.js} +5 -51
  133. package/dist/esm/{withTranslation-Do4GhleK.js → withTranslation-mimbJdER.js} +3 -3
  134. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +1 -2
  135. package/dist/types/components/bn-title/bn-title.d.ts +0 -1
  136. package/dist/types/components.d.ts +0 -401
  137. package/package.json +2 -3
  138. package/readme.md +0 -1
  139. package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
  140. package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  141. package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
  142. package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
  143. package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
  144. package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
  145. package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
  146. package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
  147. package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
  148. package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
  149. package/dist/bn-template-engine/assets/icons/pin.png +0 -0
  150. package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
  151. package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
  152. package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
  153. package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
  154. package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
  155. package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
  156. package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
  157. package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
  158. package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
  159. package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
  160. package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
  161. package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
  162. package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
  163. package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
  164. package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
  165. package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
  166. package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
  167. package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
  168. package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
  169. package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
  170. package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
  171. package/dist/bn-template-engine/p-BQp6ZPYW.js +0 -1
  172. package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
  173. package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
  174. package/dist/bn-template-engine/p-CfWnag33.js +0 -1
  175. package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
  176. package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
  177. package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
  178. package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
  179. package/dist/bn-template-engine/p-c9f050bf.entry.js +0 -1
  180. package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
  181. package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
  182. package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
  183. package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
  184. package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
  185. package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
  186. package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
  187. package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
  188. package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
  189. package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
  190. package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
  191. package/dist/cjs/Order-B4NIqQWe.js +0 -129
  192. package/dist/cjs/bn-map.cjs.entry.js +0 -425
  193. package/dist/cjs/constants-DHqQXSSd.js +0 -158
  194. package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
  195. package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
  196. package/dist/cjs/scaling-B23eOtsC.js +0 -67
  197. package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
  198. package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
  199. package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
  200. package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
  201. package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
  202. package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
  203. package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
  204. package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
  205. package/dist/collection/components/bn-map/bn-map.css +0 -4
  206. package/dist/collection/components/bn-map/bn-map.js +0 -725
  207. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
  208. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  209. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
  210. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
  211. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
  212. package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
  213. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
  214. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
  215. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
  216. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
  217. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
  218. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
  219. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
  220. package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
  221. package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
  222. package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
  223. package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
  224. package/dist/collection/test-runner/test-runner-card.js +0 -36
  225. package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
  226. package/dist/collection/test-runner/test-runner-chart.js +0 -364
  227. package/dist/collection/test-runner/test-runner-map.js +0 -1901
  228. package/dist/collection/test-runner/test-runner-table.js +0 -469
  229. package/dist/collection/test-runner/test-runner-time.js +0 -399
  230. package/dist/collection/test-runner/test-runner-title.js +0 -108
  231. package/dist/components/bn-map.d.ts +0 -11
  232. package/dist/components/bn-map.js +0 -1
  233. package/dist/components/componentRegister.js +0 -1
  234. package/dist/components/ibcs-map.d.ts +0 -11
  235. package/dist/components/ibcs-map.js +0 -1
  236. package/dist/components/ibcs-map2.js +0 -1
  237. package/dist/components/test-runner-card.d.ts +0 -11
  238. package/dist/components/test-runner-card.js +0 -1
  239. package/dist/components/test-runner-chart-time.d.ts +0 -11
  240. package/dist/components/test-runner-chart-time.js +0 -1
  241. package/dist/components/test-runner-chart.d.ts +0 -11
  242. package/dist/components/test-runner-chart.js +0 -1
  243. package/dist/components/test-runner-map.d.ts +0 -11
  244. package/dist/components/test-runner-map.js +0 -1
  245. package/dist/components/test-runner-table.d.ts +0 -11
  246. package/dist/components/test-runner-table.js +0 -1
  247. package/dist/components/test-runner-time.d.ts +0 -11
  248. package/dist/components/test-runner-time.js +0 -1
  249. package/dist/components/test-runner-title.d.ts +0 -11
  250. package/dist/components/test-runner-title.js +0 -1
  251. package/dist/components/withDataset.js +0 -1
  252. package/dist/esm/Order-B4fpLe_f.js +0 -125
  253. package/dist/esm/bn-map.entry.js +0 -423
  254. package/dist/esm/constants-kMyLevYy.js +0 -158
  255. package/dist/esm/ibcs-map.entry.js +0 -1073
  256. package/dist/esm/ibcs-title.entry.js +0 -350
  257. package/dist/esm/scaling-BBd0ZVLL.js +0 -64
  258. package/dist/esm/test-runner-card.entry.js +0 -25
  259. package/dist/esm/test-runner-chart-time.entry.js +0 -228
  260. package/dist/esm/test-runner-chart.entry.js +0 -324
  261. package/dist/esm/test-runner-map.entry.js +0 -1860
  262. package/dist/esm/test-runner-table.entry.js +0 -475
  263. package/dist/esm/test-runner-time.entry.js +0 -379
  264. package/dist/esm/test-runner-title.entry.js +0 -113
  265. package/dist/esm/withComponentStatus-elELReKt.js +0 -37
  266. package/dist/types/components/bn-map/bn-map.d.ts +0 -122
  267. package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
  268. package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
  269. package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
  270. package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
  271. package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
  272. package/dist/types/test-runner/test-runner-card.d.ts +0 -3
  273. package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
  274. package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
  275. package/dist/types/test-runner/test-runner-map.d.ts +0 -3
  276. package/dist/types/test-runner/test-runner-table.d.ts +0 -3
  277. package/dist/types/test-runner/test-runner-time.d.ts +0 -3
  278. package/dist/types/test-runner/test-runner-title.d.ts +0 -3
@@ -1,399 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { DateDistance } from "../utils/DateStringFactory";
3
- export class TestRunnerTime {
4
- render() {
5
- const style = {
6
- scaleFactors: {
7
- scenarioOffset: 0.3,
8
- scenarioLabelToColumn: 0.3,
9
- labelToColum: 0.3,
10
- labelToAxis: 0.3,
11
- needleWidth: 0.3,
12
- needleHeadWidth: 0.6,
13
- columnWidth: 2.0,
14
- varianceAxisLineWidth: 0.3,
15
- axisLineWidth: 0.1,
16
- auxiliaryLineWidth: 0.1,
17
- scenarioLineWidth: 0.2,
18
- markerWidth: 0.7,
19
- markerOffset: 0.0,
20
- categoryWidth: 3.0,
21
- axisTickLength: 0.3,
22
- },
23
- fontStyles: {
24
- font: `27.3333px Sans-Serif`,
25
- size: 27.3333,
26
- color: "#000000",
27
- background: "#ffffff",
28
- leading: 1.8,
29
- },
30
- axisStyles: {
31
- ac: { stroke: "#121212", fill: "#121212", width: 0.1 },
32
- fc: { stroke: "#121212", fill: "#ffffff", width: 0.1, dasharray: "10 5 5 5" },
33
- pp: { stroke: "#606060", fill: "#606060", width: 0.1 },
34
- pl: { stroke: "#121212", fill: "#ffffff", width: 0.1 },
35
- },
36
- barStyles: {
37
- ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
38
- fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
39
- pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
40
- pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
41
- },
42
- varianceStyles: {
43
- pos: { stroke: "#008f96", fill: "#008f96", width: 0.1 },
44
- neg: { stroke: "#ff0000", fill: "#ff0000", width: 0.1 },
45
- neu: { stroke: "#808080", fill: "#808080", width: 0.1 },
46
- },
47
- padding: {
48
- top: 10,
49
- left: 10,
50
- right: 10,
51
- bottom: 10,
52
- },
53
- pattern: new Map(),
54
- };
55
- const verlaufsgrafik = [
56
- {
57
- setName: "de",
58
- date: "2020-12-31T00:02:00+02:00",
59
- operation: "+",
60
- rowGroup: "Real Assets",
61
- rowGroupIndex: 1,
62
- category: "Immobilien",
63
- categoryIndex: 1,
64
- subCategory: "",
65
- subCategoryIndex: 1,
66
- columnGroup: null,
67
- columnGroupIndex: null,
68
- columnSubGroup: null,
69
- columnSubGroupIndex: null,
70
- pp1: 6500,
71
- ac1: 7000,
72
- pl1: 7500,
73
- fc1: 8000,
74
- pp2: 6250,
75
- ac2: 6750,
76
- pl2: 7250,
77
- fc2: 7750,
78
- pp3: 6000,
79
- ac3: 7000,
80
- pl3: 6500,
81
- fc3: 7500,
82
- pp4: 0,
83
- ac4: 0,
84
- pl4: 0,
85
- fc4: 0,
86
- },
87
- {
88
- setName: "de",
89
- date: "2021-03-31T00:02:00+02:00",
90
- operation: "+",
91
- rowGroup: "Real Assets",
92
- rowGroupIndex: 1,
93
- category: "Immobilien",
94
- categoryIndex: 2,
95
- subCategory: "",
96
- subCategoryIndex: 2,
97
- columnGroup: null,
98
- columnGroupIndex: null,
99
- columnSubGroup: null,
100
- columnSubGroupIndex: null,
101
- pp1: 6750,
102
- ac1: 7250,
103
- pl1: 7750,
104
- fc1: 8250,
105
- pp2: 6500,
106
- ac2: 7000,
107
- pl2: 7500,
108
- fc2: 8000,
109
- pp3: 6250,
110
- ac3: 7250,
111
- pl3: 6750,
112
- fc3: 7750,
113
- pp4: 0,
114
- ac4: 0,
115
- pl4: 0,
116
- fc4: 0,
117
- },
118
- {
119
- setName: "de",
120
- date: "2021-06-30T00:02:00+02:00",
121
- operation: "+",
122
- rowGroup: "Real Assets",
123
- rowGroupIndex: 1,
124
- category: "Immobilien",
125
- categoryIndex: 3,
126
- subCategory: "",
127
- subCategoryIndex: 3,
128
- columnGroup: null,
129
- columnGroupIndex: null,
130
- columnSubGroup: null,
131
- columnSubGroupIndex: null,
132
- pp1: 7000,
133
- ac1: 7500,
134
- pl1: 8000,
135
- fc1: 8500,
136
- pp2: 6750,
137
- ac2: 7250,
138
- pl2: 7750,
139
- fc2: 8250,
140
- pp3: 6500,
141
- ac3: 7500,
142
- pl3: 7000,
143
- fc3: 8000,
144
- pp4: 0,
145
- ac4: 0,
146
- pl4: 0,
147
- fc4: 0,
148
- },
149
- {
150
- setName: "de",
151
- date: "2021-09-30T00:02:00+02:00",
152
- operation: "+",
153
- rowGroup: "Real Assets",
154
- rowGroupIndex: 1,
155
- category: "Immobilien",
156
- categoryIndex: 4,
157
- subCategory: "",
158
- subCategoryIndex: 4,
159
- columnGroup: null,
160
- columnGroupIndex: null,
161
- columnSubGroup: null,
162
- columnSubGroupIndex: null,
163
- pp1: 7250,
164
- ac1: 7750,
165
- pl1: 8250,
166
- fc1: 8750,
167
- pp2: 7000,
168
- ac2: 7500,
169
- pl2: 8000,
170
- fc2: 8500,
171
- pp3: 6750,
172
- ac3: 7750,
173
- pl3: 7250,
174
- fc3: 8250,
175
- pp4: 0,
176
- ac4: 0,
177
- pl4: 0,
178
- fc4: 0,
179
- },
180
- {
181
- setName: "de",
182
- date: "2021-12-31T00:02:00+02:00",
183
- operation: "+",
184
- rowGroup: "Real Assets",
185
- rowGroupIndex: 1,
186
- category: "Rest",
187
- categoryIndex: 5,
188
- subCategory: "Rest",
189
- subCategoryIndex: 5,
190
- columnGroup: null,
191
- columnGroupIndex: null,
192
- columnSubGroup: null,
193
- columnSubGroupIndex: null,
194
- pp1: 7500,
195
- ac1: 8000,
196
- pl1: 8500,
197
- fc1: 9000,
198
- pp2: 7250,
199
- ac2: 7750,
200
- pl2: 8250,
201
- fc2: 8750,
202
- pp3: 7000,
203
- ac3: 8000,
204
- pl3: 7500,
205
- fc3: 8500,
206
- pp4: 0,
207
- ac4: 0,
208
- pl4: 0,
209
- fc4: 0,
210
- },
211
- {
212
- setName: "de",
213
- date: "2022-03-31T00:02:00+02:00",
214
- operation: "+",
215
- rowGroup: "Real Assets",
216
- rowGroupIndex: 1,
217
- category: "Immobilien",
218
- categoryIndex: 1,
219
- subCategory: "",
220
- subCategoryIndex: 1,
221
- columnGroup: null,
222
- columnGroupIndex: null,
223
- columnSubGroup: null,
224
- columnSubGroupIndex: null,
225
- pp1: 7750,
226
- ac1: 8250,
227
- pl1: 8750,
228
- fc1: 9250,
229
- pp2: 8500,
230
- ac2: 8000,
231
- pl2: 8500,
232
- fc2: 9000,
233
- pp3: 7250,
234
- ac3: 8250,
235
- pl3: 7750,
236
- fc3: 8750,
237
- pp4: 0,
238
- ac4: 0,
239
- pl4: 0,
240
- fc4: 0,
241
- },
242
- {
243
- setName: "de",
244
- date: "2022-06-30T00:02:00+02:00",
245
- operation: "+",
246
- rowGroup: "Real Assets",
247
- rowGroupIndex: 1,
248
- category: "Immobilien",
249
- categoryIndex: 2,
250
- subCategory: "",
251
- subCategoryIndex: 2,
252
- columnGroup: null,
253
- columnGroupIndex: null,
254
- columnSubGroup: null,
255
- columnSubGroupIndex: null,
256
- pp1: 8000,
257
- ac1: 8500,
258
- pl1: 9000,
259
- fc1: 9500,
260
- pp2: 8750,
261
- ac2: 8250,
262
- pl2: 8750,
263
- fc2: 9250,
264
- pp3: 7500,
265
- ac3: 8500,
266
- pl3: 8000,
267
- fc3: 9000,
268
- pp4: 0,
269
- ac4: 0,
270
- pl4: 0,
271
- fc4: 0,
272
- },
273
- {
274
- setName: "de",
275
- date: "2022-09-30T00:02:00+02:00",
276
- operation: "+",
277
- rowGroup: "Real Assets",
278
- rowGroupIndex: 1,
279
- category: "Immobilien",
280
- categoryIndex: 3,
281
- subCategory: "",
282
- subCategoryIndex: 3,
283
- columnGroup: null,
284
- columnGroupIndex: null,
285
- columnSubGroup: null,
286
- columnSubGroupIndex: null,
287
- pp1: 8250,
288
- ac1: 8750,
289
- pl1: 9250,
290
- fc1: 9750,
291
- pp2: 9000,
292
- ac2: 8500,
293
- pl2: 9000,
294
- fc2: 9500,
295
- pp3: 7750,
296
- ac3: 8750,
297
- pl3: 8250,
298
- fc3: 9250,
299
- pp4: 0,
300
- ac4: 0,
301
- pl4: 0,
302
- fc4: 0,
303
- },
304
- {
305
- setName: "de",
306
- date: "2022-12-31T00:02:00+02:00",
307
- operation: "+",
308
- rowGroup: "Real Assets",
309
- rowGroupIndex: 1,
310
- category: "Immobilien",
311
- categoryIndex: 4,
312
- subCategory: "",
313
- subCategoryIndex: 4,
314
- columnGroup: null,
315
- columnGroupIndex: null,
316
- columnSubGroup: null,
317
- columnSubGroupIndex: null,
318
- pp1: 8500,
319
- ac1: 9000,
320
- pl1: 9500,
321
- fc1: 10000,
322
- pp2: 9250,
323
- ac2: 8750,
324
- pl2: 9250,
325
- fc2: 9750,
326
- pp3: 8000,
327
- ac3: 9000,
328
- pl3: 8500,
329
- fc3: 9500,
330
- pp4: 0,
331
- ac4: 0,
332
- pl4: 0,
333
- fc4: 0,
334
- },
335
- {
336
- setName: "de",
337
- date: "2023-03-31T00:02:00+02:00",
338
- operation: "+",
339
- rowGroup: "Real Assets",
340
- rowGroupIndex: 1,
341
- category: "Rest",
342
- categoryIndex: 1,
343
- subCategory: "Rest",
344
- subCategoryIndex: 1,
345
- columnGroup: null,
346
- columnGroupIndex: null,
347
- columnSubGroup: null,
348
- columnSubGroupIndex: null,
349
- pp1: 8750,
350
- ac1: 9250,
351
- pl1: 9750,
352
- fc1: 10250,
353
- pp2: 9500,
354
- ac2: 9000,
355
- pl2: 9500,
356
- fc2: 10000,
357
- pp3: 8250,
358
- ac3: 9250,
359
- pl3: 8750,
360
- fc3: 9750,
361
- pp4: 0,
362
- ac4: 0,
363
- pl4: 0,
364
- fc4: 0,
365
- },
366
- ];
367
- // let trans = new Map<string, string>();
368
- // trans.set('pp1',"TEST");
369
- // trans.set('ac1',"TEST");
370
- return (h("div", { key: 'd5ded4e41b95d29a14803cbc876a57b33649345c' }, h("div", { key: 'a5b234b8365a6345e5e8011f519b583ed2f76904', style: { fontFamily: style.fontStyles.font, fontSize: style.fontStyles.size + "px" } }, h("ibcs-chart-time", { key: '3188aa8d365eefbbb2f91b731cf88636b6274311', data: verlaufsgrafik, "chart-title": "", scenarios: ["ac1", "pp1"], pixelPerUnit: 0.01, pixelPerPercentage: 50, styles: style, "date-interval": DateDistance.AUTO, "interval-span-Limit": 9 })), "Fehler 1. letzter DAY fehlt bei 28 fehler Fehler 2 28 ist die range nicht die anzahl der saeulen 2020-12-31T00:59:01Z 2023-03-31T00:59:01Z"));
371
- }
372
- static get is() { return "test-runner-time"; }
373
- }
374
- /*
375
-
376
- axis-labels-mode ={'smart'}
377
- chart-title ={''}
378
- data ={verlaufsgrafik}
379
- date-interval ={'quarter'}
380
- interval-span-limit ={'quarter'}
381
- level ={'category'}
382
- limit ={0}
383
- order ={''}
384
- order-direction ={'desc'}
385
- scenarios ={'ac3,pp3'}
386
- styles ={''}
387
- sync-space-left ={-1}
388
- unit-scaling ={0.005}
389
- percentage-scaling ={100}
390
- <ibcs-chart-time
391
- data={verlaufsgrafik}
392
- scenarios={["ac1", "fc1"]}
393
- variances={["dac1_fc1_pos"]}
394
- pixelPerUnit={0.001}
395
- styles={style}
396
- date-interval={DateDistance.AUTO}
397
- interval-span-Limit = {10}
398
- ></ibcs-chart-time>
399
- */
@@ -1,108 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { DateTime } from "luxon";
3
- import { OrderDirection } from "../utils/model/Order";
4
- import { DateDistance, DateLink } from "../utils/DateStringFactory";
5
- export class TestRunnerTitle {
6
- render() {
7
- return (h("div", { key: '3ff123dbe6b2638c59fbf635bd87be5ffe8230e8' }, h("ibcs-title", { key: '43e8bf4e51cf3f0b8588778e710f17f54f113cf5', businessUnit: "Business Unit" }), "=====", h("ibcs-title", { key: 'a2cd942181b01c88dc3472d3de9263acddcd2ee9', measures: [{ name: "Bruttoumsatz", unit: "EUR" }] }), "==========", h("ibcs-title", { key: 'df71248e2dc5bacd2878b5038afd3d9a8f1c4b31', scenarios: ["ac1", "pp1", "dpp1_ac1_pos", "drpp1_ac1_pos", "ac2"], order: {
8
- hierarchy: ["ac1"],
9
- direction: OrderDirection.ASC,
10
- } }), "=====", h("ibcs-title", { key: '11880e338494c94caace3223f7caa1340205cfb9', businessUnit: "Test Cars", scenarios: ["ac1", "pp2", "dpp1_pp2_pos"], timeperiod: undefined, order: {
11
- hierarchy: ["dpp1_pp2_pos"],
12
- direction: OrderDirection.ASC,
13
- } }), "===", h("ibcs-title", { key: '34e38e4ba80a42a2b0439891a35fbec2a07768a3', businessUnit: "Test Cars", scenarios: ["ac1", "pp1", "dpy1_ac1_pos"], order: {
14
- hierarchy: ["ac1,pp1"],
15
- direction: OrderDirection.ASC,
16
- } }), "===", h("ibcs-title", { key: '6473ad9773076175b01fea6e3ab3d124d2c0ff62', businessUnit: "Test Cars", measures: [{ name: "Bruttoumsatz3", unit: "mEUR" }], scenarios: ["ac1", "pp1", "dpp1_ac1_pos"], order: {
17
- hierarchy: ["ac1,pp1"],
18
- direction: OrderDirection.DESC,
19
- } }), "===", h("ibcs-title", { key: '3c8b6497f11180fe79c050181bf8b0b659004ca5', businessUnit: "Test Cars", scenarios: ["ac1", "pp1", "dpy1_ac1_pos"], order: {
20
- hierarchy: ["ac1"],
21
- direction: OrderDirection.ASC,
22
- } }), "===", h("ibcs-title", { key: 'b3b724a42aecbe15983655cfceae654609a82702', businessUnit: "Test Cars", measures: [{ name: "Bruttoumsatz3", unit: "mEUR" }], scenarios: ["ac1", "pp1", "dpp1_ac1_pos"], order: {
23
- hierarchy: ["ac1"],
24
- direction: OrderDirection.DESC,
25
- } }), "===", h("ibcs-title", { key: '39a7b3eebf5aa08985b41dba8da4fafabfae9416', businessUnit: "Test Cars", measures: [
26
- { name: "Bruttoumsatz", unit: "mUSD" },
27
- { name: "Bruttoumsatz2", unit: undefined },
28
- { name: "Bruttoumsatz3", unit: "mEUR" },
29
- ], scenarios: ["ac1", "pp1", "dpp1_ac1_pos"] }), "===", h("ibcs-title", { key: '8ff4d614b096b2cd17703474c011a4f3c2d15f58', businessUnit: "Test Cars", measures: [
30
- { name: "Bruttoumsatz", unit: "mEUR" },
31
- { name: "Bruttoumsatz2", unit: "mDollar" },
32
- ], scenarios: ["ac1", "pp1", "dpp1_ac1_pos"] }), "===", h("ibcs-title", { key: 'cb8a881777761831d1ceef1c45361edddb7322f7', businessUnit: "Test Cars", measures: [
33
- { name: "Bruttoumsatz", unit: undefined },
34
- { name: "Bruttoumsatz2", unit: undefined },
35
- { name: "Bruttoumsatz4", unit: "mUSD" },
36
- ], scenarios: ["ac1", "pp1", "dpp1_ac1_pos"] }), "===", h("ibcs-title", { key: '28546e07d3e5974b2e054badf26da07df6d69270', businessUnit: "Test Cars", measures: [
37
- { name: "Bruttoumsatz", unit: "mEUR" },
38
- { name: "Bruttoumsatz", unit: "kEUR" },
39
- ], scenarios: ["ac", "py", "dpp1_ac1_pos"] }), "===", h("ibcs-title", { key: 'bde8996e0018f6428adbc5bd781d7e9021e9d823', "business-unit": "Gesch\u00E4ftsfeld AM Illiquide", scenarios: ["ac", "pp", "dpp_ac_pos"], measures: [
40
- { name: "Performance von", unit: undefined },
41
- { name: "Kapitalzusagen", unit: undefined },
42
- { name: "Allokiertes Kapital", unit: undefined },
43
- { name: "Marktwert", unit: "%" },
44
- ], timeperiod: {
45
- start: DateTime.fromISO("2019-12-31"),
46
- end: DateTime.fromISO("2020-12-31"),
47
- format: DateDistance.DAY,
48
- link: DateLink.INTERVAL,
49
- }, order: {
50
- hierarchy: ["ac1"],
51
- direction: OrderDirection.DESC,
52
- } }), "===", h("ibcs-title", { key: '3f689051f52bcceece35a70b2f31d6f143f3292f', "business-unit": "Gesch\u00E4ftsfeld AM Illiquide", scenarios: ["ac1", "pp1", "dpp1_ac1_pos", "drpp1_ac1_pos"], measures: [
53
- { name: "Performance von", unit: undefined },
54
- { name: "Kapitalzusagen", unit: undefined },
55
- { name: "Allokiertes Kapital", unit: undefined },
56
- { name: "Marktwert", unit: "%" },
57
- ], timeperiod: {
58
- start: DateTime.fromISO("2019-12-31"),
59
- end: DateTime.fromISO("2020-12-31"),
60
- format: DateDistance.DAY,
61
- link: DateLink.INTERVAL,
62
- } }), "===", h("ibcs-title", { key: 'a9e90c6406ebe84576d358d867721aeb92c52d23', businessUnit: "Test Cars", measures: [
63
- { name: "Bruttoumsatz", unit: "mEUR" },
64
- { name: "Bruttoumsatz", unit: "kEUR" },
65
- ], scenarios: [], timeperiod: {
66
- start: DateTime.fromISO("2019-12-31"),
67
- end: DateTime.fromISO("2020-12-31"),
68
- format: DateDistance.DAY,
69
- link: DateLink.INTERVAL,
70
- } }), "===", h("ibcs-title", { key: '3cf1cf472dcbffdbd34e624fdd5d8babe035ecb9', timeperiod: {
71
- start: DateTime.fromISO("2019-12-31"),
72
- end: DateTime.fromISO("2020-12-31"),
73
- format: DateDistance.DAY,
74
- link: DateLink.INTERVAL,
75
- } }), "===", h("ibcs-title", { key: '58658bd595fdfe8efd4da99cd7eb23a5e08a1cb1', timeperiod: {
76
- start: DateTime.fromISO("2024-03-01"),
77
- end: DateTime.fromISO("2024-03-31"),
78
- format: DateDistance.MONTH,
79
- link: DateLink.INTERVAL,
80
- } }), h("ibcs-title", { key: 'dd31409a0493b16d01c7417f951d2651707a508e', timeperiod: {
81
- start: DateTime.fromISO("2024-03-01"),
82
- end: DateTime.fromISO("2024-03-31"),
83
- format: DateDistance.MONTH,
84
- link: DateLink.AVG,
85
- } }), h("ibcs-title", { key: '48be6386c35bb5816bd96f61ad7d7cb631e3d673', timeperiod: {
86
- start: DateTime.fromISO("2024-03-01"),
87
- end: DateTime.fromISO("2024-03-31"),
88
- format: DateDistance.MONTH,
89
- link: DateLink.YTD,
90
- } }), h("ibcs-title", { key: 'f3d20f8cf94312f0245b84537ec3cf049200d79a', timeperiod: {
91
- start: DateTime.fromISO("2024-03-31"),
92
- end: DateTime.fromISO("2024-03-31"),
93
- format: DateDistance.MONTH,
94
- link: DateLink.YTD,
95
- } }), h("ibcs-title", { key: '71af8fda03f758d2083657efd827a0b3843ce2f7', timeperiod: {
96
- start: DateTime.fromISO("2024-01-31"),
97
- end: DateTime.fromISO("2024-03-31"),
98
- format: DateDistance.MONTH,
99
- link: DateLink.AVG,
100
- } }), h("ibcs-title", { key: '812a0f30780b0eb786eaf1edff2c870676714526', timeperiod: {
101
- start: DateTime.fromISO("2024-01-31"),
102
- end: DateTime.fromISO("2024-03-31"),
103
- format: DateDistance.MONTH,
104
- link: DateLink.INTERVAL,
105
- } })));
106
- }
107
- static get is() { return "test-runner-title"; }
108
- }
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface BnMap extends Components.BnMap, HTMLElement {}
4
- export const BnMap: {
5
- prototype: BnMap;
6
- new (): BnMap;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1 +0,0 @@
1
- import{proxyCustomElement as t,HTMLElement as e,createEvent as a,h as s,Host as i,transformTag as r}from"@stencil/core/internal/client";import{h as n,l as o,p as l,q as p,r as d}from"./validate.js";import{w as h}from"./withStyled.js";import{w as m,a as u}from"./withHasError.js";import{w as c}from"./withDataset.js";import{C as g}from"./componentRegister.js";import{g as v}from"./utils.js";import{d as y}from"./ibcs-map2.js";const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.bnStateUpdated=a(this,"bnStateUpdated",7),this.bnDragZoomEnded=a(this,"bnDragZoomEnded",7),this.markerList=[],this.gpxList=[],this.geojsonList=[],this.gpxData=[],this.geojsonData=[],this.markerData=[],this.data=[],this.uuid=v(),this.markersDatasetName="$markers",this.gpxsDatasetName="$gpxs",this.latitude=50.137634,this.longitude=8.679129,this.scale=11,this.manualPosOverride=!0,this.showScale=!1,this.attribution="",this.tileLayer="https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png",this.markers=null,this.gpxs=null,this.geojsons=null,h(this),m(this),this.errors=u(this),c(this,((t,e)=>{t===this.markersDatasetName?this.markerData=e:t===this.gpxsDatasetName&&(this.gpxData=e)}))}validateMarkerDatasetName(t){const e="ERR_markersDatasetName";"string"!=typeof t?this.errors.addOrReplace({id:e,type:"warning",message:"markerDatasetName: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(e)}validateGpxsDatasetName(t){const e="ERR_gpxsDatasetName";"string"!=typeof t?this.errors.addOrReplace({id:e,type:"warning",message:"gpxsDatasetName: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(e)}validateLatitude(t){const e="ERR_latitude";n(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"latitude: invalid value(s) '"+t+"' are not supported."})}validateLongitude(t){const e="ERR_longitude";n(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"longitude: invalid value(s) '"+t+"' are not supported."})}validateScale(t){const e="ERR_scale";n(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"scale: invalid value(s) '"+t+"' are not supported."})}validateManualPosOverride(t){const e="ERR_scale";o(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"manualPosOverride: invalid value(s) '"+t+"' are not supported."})}validateShowScale(t){const e="ERR_showScale";o(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:"showScale: invalid value(s) '"+t+"' are not supported."})}validateAttribution(t){const e="ERR_attribution";"string"!=typeof t?this.errors.addOrReplace({id:e,type:"warning",message:"attribution: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(e)}validateTileLayer(t){const e="ERR_tileLayer";"string"!=typeof t?this.errors.addOrReplace({id:e,type:"warning",message:"tileLayer: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(e)}validateMarkers(t){if(!t)return;const e="ERR_markers",a="ERR_markersJSON";try{const s=l(t);s.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"Markers: invalid value(s) '"+s+"' are not supported."}):this.errors.remove(e),this.markerList=JSON.parse(t),this.errors.remove(a)}catch(e){this.errors.addOrReplace({id:a,type:"warning",message:"Markers: invalid value(s) '"+t+"' are not supported.:"+e.message})}}validateGpx(t){if(!t)return;const e="ERR_gpxs",a="ERR_gpxsJSON";try{const s=p(t);s.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"gpxs: invalid value(s) '"+s+"' are not supported."}):this.errors.remove(e),this.gpxList=JSON.parse(t),this.errors.remove(a)}catch(e){this.errors.addOrReplace({id:a,type:"warning",message:"gpxs: invalid '"+t+"' is not supported.:"+e.message})}}validateGeojson(t){if(!t)return;const e="ERR_geojsons",a="ERR_geojsons";try{const s=d(t);s.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"geojsons: invalid value(s) '"+s+"' are not supported."}):this.errors.remove(e),this.geojsonList=JSON.parse(t),this.errors.remove(a)}catch(e){this.errors.addOrReplace({id:a,type:"warning",message:"geojsons: invalid '"+t+"' is not supported.:"+e.message})}}stateUpdated(t){g.updateStatus(this.uuid,t.detail)}dragZoomEnded(t){this.bnDragZoomEnded.emit(t.detail)}componentWillLoad(){this.validateLatitude(this.latitude),this.validateLongitude(this.longitude),this.validateScale(this.scale),this.validateShowScale(this.showScale),this.validateAttribution(this.attribution),this.validateTileLayer(this.tileLayer),this.validateMarkers(this.markers),this.validateGpx(this.gpxs),this.validateGeojson(this.geojsons),this.validateManualPosOverride(this.manualPosOverride)}render(){return s(i,{key:"fa9bf3fb7fcf0c10b91967c6e3a67db914af1bf9"},s("ibcs-map",{key:"2b692fe311b00b65d0001ae64f5b17f7b99d111d",tileLayer:this.tileLayer,latitude:this.latitude,longitude:this.longitude,scale:this.scale,showScale:this.showScale,showZoom:!1,attribution:this.attribution,gpxs:this.prepareGpxData(),markers:this.prepareMarkerData(),geojsons:this.prepareGeojsonData(),manualPosOverride:this.manualPosOverride}))}prepareMarkerData(){return[...this.markerData,...this.markerList]}prepareGpxData(){return[...this.gpxData,...this.gpxList]}prepareGeojsonData(){return[...this.geojsonData,...this.geojsonList]}getDataStructureGpxParams(){return{GpxParams:{file:{type:"string",isOptional:!1,description:""},color:{type:"string",isOptional:!1,description:""},opacity:{type:"number",isOptional:!1,description:""},weight:{type:"number",isOptional:!1,description:""},lineCap:{type:"string",isOptional:!1,description:""},startIconUrl:{type:"string",isOptional:!1,description:""},endIconUrl:{type:"string",isOptional:!1,description:""},shadowUrl:{type:"string",isOptional:!1,description:""}}}}getDataStructureGeojsonParams(){return{GeojsonParams:{file:{type:"string",isOptional:!1,description:""},color:{type:"string",isOptional:!1,description:""},opacity:{type:"number",isOptional:!1,description:""},weight:{type:"number",isOptional:!1,description:""},lineCap:{type:"string",isOptional:!1,description:""}}}}getDataStructureMarkerParams(){return{MarkerParams:{latitude:{type:"number",isOptional:!1,description:""},longitude:{type:"string",isOptional:!1,description:""},iconUrl:{type:"number",isOptional:!1,description:""},iconWidth:{type:"number",isOptional:!1,description:""},iconHeight:{type:"number",isOptional:!1,description:""},tile:{type:"string",isOptional:!1,description:""}}}}get element(){return this}static get watchers(){return{markersDatasetName:[{validateMarkerDatasetName:0}],gpxsDatasetName:[{validateGpxsDatasetName:0}],latitude:[{validateLatitude:0}],longitude:[{validateLongitude:0}],scale:[{validateScale:0}],manualPosOverride:[{validateManualPosOverride:0}],showScale:[{validateShowScale:0}],attribution:[{validateAttribution:0}],tileLayer:[{validateTileLayer:0}],markers:[{validateMarkers:0}],gpxs:[{validateGpx:0}],geojsons:[{validateGeojson:0}]}}static get style(){return":host{display:block;height:100%}"}},[1,"bn-map",{markersDatasetName:[1,"markers-dataset-name"],gpxsDatasetName:[1,"gpxs-dataset-name"],latitude:[1026],longitude:[1026],scale:[1026],manualPosOverride:[1028,"manual-pos-override"],showScale:[4,"show-scale"],attribution:[1],tileLayer:[1,"tile-layer"],markers:[1],gpxs:[1],geojsons:[1],gpxData:[32],geojsonData:[32],markerData:[32],data:[32]},[[0,"stateUpdated","stateUpdated"],[0,"dragZoomEnded","dragZoomEnded"]],{markersDatasetName:[{validateMarkerDatasetName:0}],gpxsDatasetName:[{validateGpxsDatasetName:0}],latitude:[{validateLatitude:0}],longitude:[{validateLongitude:0}],scale:[{validateScale:0}],manualPosOverride:[{validateManualPosOverride:0}],showScale:[{validateShowScale:0}],attribution:[{validateAttribution:0}],tileLayer:[{validateTileLayer:0}],markers:[{validateMarkers:0}],gpxs:[{validateGpx:0}],geojsons:[{validateGeojson:0}]}]),w=b,O=function(){"undefined"!=typeof customElements&&["bn-map","ibcs-map"].forEach((t=>{switch(t){case"bn-map":customElements.get(r(t))||customElements.define(r(t),b);break;case"ibcs-map":customElements.get(r(t))||y()}}))};export{w as BnMap,O as defineCustomElement}
@@ -1 +0,0 @@
1
- var e,n;!function(e){e[e.RUNNING=0]="RUNNING",e[e.SUCCESSFUL=1]="SUCCESSFUL",e[e.ERROR=2]="ERROR"}(e||(e={})),function(n){let r;const s=new Map,t={running:0,successful:0,error:0},o=n=>{switch(n){case e.RUNNING:return"running";case e.SUCCESSFUL:return"successful";default:return"error"}};n.updateStatus=(e,c)=>{r&&clearTimeout(r);const u=s.get(e);void 0!==u&&t[o(u)]--,t[o(c)]++,s.set(e,c),r=setTimeout((()=>{window.componentRegisterIsRenderedResult=n.componentRegisterIsRendered(),console.log("componentRegisterIsRendered:",window.componentRegisterIsRenderedResult)}),500)},n.componentRegisterIsRendered=()=>0===t.running,n.componentRegisterStatus=()=>Object.assign({},t)}(n||(n={}));export{n as C,e as a}
@@ -1,11 +0,0 @@
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;
@@ -1 +0,0 @@
1
- import{I as s,d as o}from"./ibcs-map2.js";const a=s,m=o;export{a as IbcsMap,m as defineCustomElement}
@@ -1 +0,0 @@
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}
@@ -1,11 +0,0 @@
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;