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

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 (361) hide show
  1. package/LICENSE +203 -21
  2. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  3. package/dist/bn-template-engine/p-095f74d7.entry.js +1 -0
  4. package/dist/bn-template-engine/p-14318b0d.entry.js +1 -0
  5. package/dist/bn-template-engine/{p-c9f050bf.entry.js → p-2133e02b.entry.js} +1 -1
  6. package/dist/bn-template-engine/p-6b469808.entry.js +1 -0
  7. package/dist/bn-template-engine/p-7HSTE79g.js +1 -0
  8. package/dist/bn-template-engine/p-B4JfKvVT.js +1 -0
  9. package/dist/bn-template-engine/p-B_d-jp99.js +2 -0
  10. package/dist/bn-template-engine/p-Bi2wx-el.js +1 -0
  11. package/dist/bn-template-engine/p-CWiZks2h.js +1 -0
  12. package/dist/bn-template-engine/{p-BQp6ZPYW.js → p-DSXNgKLa.js} +1 -1
  13. package/dist/bn-template-engine/p-c2cbb8ea.entry.js +1 -0
  14. package/dist/bn-template-engine/p-e783733e.entry.js +1 -0
  15. package/dist/bn-template-engine/p-e94b4e31.entry.js +1 -0
  16. package/dist/bn-template-engine/p-fdb3e99a.entry.js +1 -0
  17. package/dist/cjs/bn-asset_21.cjs.entry.js +23995 -0
  18. package/dist/cjs/bn-grid.cjs.entry.js +6 -13
  19. package/dist/cjs/bn-image.cjs.entry.js +6 -13
  20. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -7
  21. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  22. package/dist/cjs/bn-template.cjs.entry.js +4 -6
  23. package/dist/cjs/bn-text.cjs.entry.js +10 -19
  24. package/dist/cjs/bn-tree.cjs.entry.js +11 -14
  25. package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-B_jipZpJ.js} +6 -2
  26. package/dist/cjs/editor-companion.cjs.entry.js +3 -3
  27. package/dist/cjs/{index-CScBFiS1.js → index-CDKG4xmO.js} +2 -2
  28. package/dist/cjs/loader.cjs.js +2 -2
  29. package/dist/cjs/scaling-eyzCrFB8.js +329 -0
  30. package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-D7BKWN2N.js} +2 -2
  31. package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-Cl2gTQzA.js} +106 -2
  32. package/dist/{esm/luxon-DbyXf6dF.js → cjs/withStyled-V7xz_x1c.js} +1406 -1
  33. package/dist/collection/collection-manifest.json +2 -10
  34. package/dist/collection/components/bn-body/bn-body.css +1 -0
  35. package/dist/collection/components/bn-card/bn-card.css +2 -0
  36. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +368 -130
  37. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +34 -10
  38. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
  39. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
  40. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
  41. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
  42. package/dist/collection/components/bn-chart-time/bn-chart-time.css +1 -1
  43. package/dist/collection/components/bn-chart-time/bn-chart-time.js +172 -51
  44. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +22 -9
  45. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
  46. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
  47. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
  48. package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
  49. package/dist/collection/components/bn-datasource/bn-datasource.js +173 -8
  50. package/dist/collection/components/bn-layout-card/bn-layout-card.css +3 -2
  51. package/dist/collection/components/bn-layout-card/bn-layout-card.js +207 -32
  52. package/dist/collection/components/bn-layout-page/bn-layout-page.css +1 -3
  53. package/dist/collection/components/bn-layout-page/bn-layout-page.js +172 -43
  54. package/dist/collection/components/bn-message/bn-message.js +1 -1
  55. package/dist/collection/components/bn-page/bn-page.js +1 -1
  56. package/dist/collection/components/bn-scaling-group/bn-scaling-group.css +3 -0
  57. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +136 -0
  58. package/dist/collection/components/bn-table/bn-table.js +201 -58
  59. package/dist/collection/components/bn-table/ibcs-table.css +7 -5
  60. package/dist/collection/components/bn-table/ibcs-table.js +91 -5
  61. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +79 -31
  62. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
  63. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
  64. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
  65. package/dist/collection/components/bn-template/bn-template.js +1 -1
  66. package/dist/collection/components/bn-text/bn-text.js +1 -1
  67. package/dist/collection/components/bn-title/bn-title.js +1 -9
  68. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -4
  69. package/dist/collection/components/bn-tree/bn-tree.js +5 -1
  70. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  71. package/dist/collection/stores/componentStyles.js +2 -0
  72. package/dist/collection/stores/createScopedStores.js +3 -1
  73. package/dist/collection/utils/DateStringFactory.js +0 -1
  74. package/dist/collection/utils/constants.js +35 -5
  75. package/dist/collection/utils/contentDecoder.js +28 -0
  76. package/dist/collection/utils/layoutObserver.js +88 -0
  77. package/dist/collection/utils/parentDimensions.js +57 -10
  78. package/dist/collection/utils/stackColors.js +2 -2
  79. package/dist/collection/utils/validate.js +5 -2
  80. package/dist/collection/utils/withInheritedProps.js +152 -0
  81. package/dist/collection/utils/withScalingGroup.js +66 -0
  82. package/dist/components/DataFormatDigits.js +1 -1
  83. package/dist/components/DateStringFactory.js +1 -1
  84. package/dist/components/Order.js +1 -1
  85. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  86. package/dist/components/bn-body2.js +1 -1
  87. package/dist/components/bn-card2.js +1 -1
  88. package/dist/components/bn-chart-structure.js +1 -1
  89. package/dist/components/bn-chart-time.js +1 -1
  90. package/dist/components/bn-dataset.js +1 -1
  91. package/dist/components/bn-datasource.js +1 -1
  92. package/dist/components/bn-layout-card.js +1 -1
  93. package/dist/components/bn-layout-page.js +1 -1
  94. package/dist/components/bn-message2.js +1 -1
  95. package/dist/components/bn-page2.js +1 -1
  96. package/dist/components/{test-runner-time.d.ts → bn-scaling-group.d.ts} +4 -4
  97. package/dist/components/bn-scaling-group.js +1 -0
  98. package/dist/components/bn-table.js +1 -1
  99. package/dist/components/bn-template.js +1 -1
  100. package/dist/components/bn-text.js +1 -1
  101. package/dist/components/bn-title2.js +1 -1
  102. package/dist/components/bn-tree.js +1 -1
  103. package/dist/components/contentDecoder.js +1 -0
  104. package/dist/components/context-protocol.js +1 -1
  105. package/dist/components/editor-companion.js +1 -1
  106. package/dist/components/emotion-hash.esm.js +1 -0
  107. package/dist/components/ibcs-chart-structure2.js +1 -1
  108. package/dist/components/ibcs-chart-time2.js +1 -1
  109. package/dist/components/ibcs-table2.js +1 -1
  110. package/dist/components/ibcs-title2.js +1 -1
  111. package/dist/components/ibcsRuleSet.js +1 -1
  112. package/dist/components/layoutObserver.js +1 -0
  113. package/dist/components/scaling.js +1 -1
  114. package/dist/components/validate.js +1 -1
  115. package/dist/components/withHasError.js +1 -1
  116. package/dist/components/withInheritedProps.js +1 -0
  117. package/dist/components/withStyled.js +1 -1
  118. package/dist/esm/bn-asset_21.entry.js +23973 -0
  119. package/dist/esm/bn-grid.entry.js +4 -11
  120. package/dist/esm/bn-image.entry.js +4 -11
  121. package/dist/esm/bn-internationalization.entry.js +4 -6
  122. package/dist/esm/bn-template-engine.js +3 -3
  123. package/dist/esm/bn-template.entry.js +3 -5
  124. package/dist/esm/bn-text.entry.js +6 -15
  125. package/dist/esm/bn-tree.entry.js +9 -12
  126. package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-D-o_UZ33.js} +6 -2
  127. package/dist/esm/editor-companion.entry.js +3 -3
  128. package/dist/esm/{index-B27Ax6P_.js → index-B_d-jp99.js} +2 -2
  129. package/dist/esm/loader.js +3 -3
  130. package/dist/esm/scaling-BzbiBnuN.js +324 -0
  131. package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-AFk2wwHT.js} +2 -2
  132. package/dist/esm/{withHasError-C48fTE2k.js → withHasError-DW_vMDUp.js} +106 -2
  133. package/dist/{cjs/luxon-8hyy5YD7.js → esm/withStyled-5RqF8WBL.js} +1371 -2
  134. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +163 -110
  135. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +4 -3
  136. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  137. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
  138. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  139. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +29 -12
  140. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +4 -3
  141. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
  142. package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
  143. package/dist/types/components/bn-datasource/bn-datasource.d.ts +48 -5
  144. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +153 -0
  145. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +160 -1
  146. package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +37 -0
  147. package/dist/types/components/bn-table/bn-table.d.ts +32 -17
  148. package/dist/types/components/bn-table/ibcs-table.d.ts +20 -0
  149. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
  150. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +1 -0
  151. package/dist/types/components/bn-title/bn-title.d.ts +0 -1
  152. package/dist/types/components.d.ts +438 -461
  153. package/dist/types/context/context-protocol.d.ts +2 -1
  154. package/dist/types/stores/componentStyles.d.ts +2 -0
  155. package/dist/types/stores/createScopedStores.d.ts +1 -0
  156. package/dist/types/utils/constants.d.ts +23 -5
  157. package/dist/types/utils/contentDecoder.d.ts +12 -0
  158. package/dist/types/utils/layoutObserver.d.ts +27 -0
  159. package/dist/types/utils/parentDimensions.d.ts +7 -2
  160. package/dist/types/utils/validate.d.ts +1 -0
  161. package/dist/types/utils/withInheritedProps.d.ts +38 -0
  162. package/dist/types/utils/withScalingGroup.d.ts +14 -0
  163. package/package.json +4 -4
  164. package/readme.md +2 -3
  165. package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
  166. package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  167. package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
  168. package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
  169. package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
  170. package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
  171. package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
  172. package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
  173. package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
  174. package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
  175. package/dist/bn-template-engine/assets/icons/pin.png +0 -0
  176. package/dist/bn-template-engine/p--TeDldm8.js +0 -1
  177. package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
  178. package/dist/bn-template-engine/p-1jFf17Vj.js +0 -1
  179. package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
  180. package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
  181. package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
  182. package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
  183. package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
  184. package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
  185. package/dist/bn-template-engine/p-65f8962a.entry.js +0 -1
  186. package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
  187. package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
  188. package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
  189. package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
  190. package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
  191. package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
  192. package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
  193. package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
  194. package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
  195. package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
  196. package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
  197. package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
  198. package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
  199. package/dist/bn-template-engine/p-BFTU3MAI.js +0 -1
  200. package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
  201. package/dist/bn-template-engine/p-BYmPQYxx.js +0 -1
  202. package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
  203. package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
  204. package/dist/bn-template-engine/p-CY1RzLjU.js +0 -1
  205. package/dist/bn-template-engine/p-CfWnag33.js +0 -1
  206. package/dist/bn-template-engine/p-CnI71OA9.js +0 -1
  207. package/dist/bn-template-engine/p-Cp4MVxCu.js +0 -1
  208. package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
  209. package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
  210. package/dist/bn-template-engine/p-_LBTIfNN.js +0 -1
  211. package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
  212. package/dist/bn-template-engine/p-ad94cf63.entry.js +0 -1
  213. package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
  214. package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
  215. package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
  216. package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
  217. package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
  218. package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
  219. package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
  220. package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
  221. package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
  222. package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
  223. package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
  224. package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
  225. package/dist/cjs/DataFormatDigits-DmTbhF8q.js +0 -142
  226. package/dist/cjs/DateStringFactory-Dn0aRj2Y.js +0 -453
  227. package/dist/cjs/Order-B4NIqQWe.js +0 -129
  228. package/dist/cjs/SVGVariancesStyleGroup-Czizhngt.js +0 -7973
  229. package/dist/cjs/StringAdapter-0EbYMkR0.js +0 -136
  230. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
  231. package/dist/cjs/alasql.min-C_nHTuEQ.js +0 -306
  232. package/dist/cjs/bn-asset.cjs.entry.js +0 -42
  233. package/dist/cjs/bn-body_3.cjs.entry.js +0 -413
  234. package/dist/cjs/bn-card.cjs.entry.js +0 -37
  235. package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -705
  236. package/dist/cjs/bn-chart-time.cjs.entry.js +0 -987
  237. package/dist/cjs/bn-component-style.cjs.entry.js +0 -44
  238. package/dist/cjs/bn-context_5.cjs.entry.js +0 -3380
  239. package/dist/cjs/bn-dataset.cjs.entry.js +0 -278
  240. package/dist/cjs/bn-layout-card.cjs.entry.js +0 -128
  241. package/dist/cjs/bn-layout-page.cjs.entry.js +0 -142
  242. package/dist/cjs/bn-map.cjs.entry.js +0 -425
  243. package/dist/cjs/bn-message.cjs.entry.js +0 -52
  244. package/dist/cjs/componentRegister-C17UFNPh.js +0 -72
  245. package/dist/cjs/constants-DHqQXSSd.js +0 -158
  246. package/dist/cjs/formatter-DIJL_crx.js +0 -215
  247. package/dist/cjs/ibcs-chart-structure.cjs.entry.js +0 -2906
  248. package/dist/cjs/ibcs-chart-time.cjs.entry.js +0 -4140
  249. package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
  250. package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
  251. package/dist/cjs/scaling-B23eOtsC.js +0 -67
  252. package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
  253. package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
  254. package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
  255. package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
  256. package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
  257. package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
  258. package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
  259. package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
  260. package/dist/cjs/withComponentStyle-C6KHnZHt.js +0 -128
  261. package/dist/cjs/withDataset-ZdN-RRTx.js +0 -146
  262. package/dist/cjs/withStyled-Bf-stJTR.js +0 -567
  263. package/dist/cjs/withTranslation-Cz0M5maV.js +0 -77
  264. package/dist/collection/components/bn-map/bn-map.css +0 -4
  265. package/dist/collection/components/bn-map/bn-map.js +0 -725
  266. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
  267. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  268. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
  269. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
  270. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
  271. package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
  272. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
  273. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
  274. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
  275. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
  276. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
  277. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
  278. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
  279. package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
  280. package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
  281. package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
  282. package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
  283. package/dist/collection/test-runner/test-runner-card.js +0 -36
  284. package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
  285. package/dist/collection/test-runner/test-runner-chart.js +0 -364
  286. package/dist/collection/test-runner/test-runner-map.js +0 -1901
  287. package/dist/collection/test-runner/test-runner-table.js +0 -469
  288. package/dist/collection/test-runner/test-runner-time.js +0 -399
  289. package/dist/collection/test-runner/test-runner-title.js +0 -108
  290. package/dist/components/bn-map.d.ts +0 -11
  291. package/dist/components/bn-map.js +0 -1
  292. package/dist/components/componentRegister.js +0 -1
  293. package/dist/components/ibcs-map.d.ts +0 -11
  294. package/dist/components/ibcs-map.js +0 -1
  295. package/dist/components/ibcs-map2.js +0 -1
  296. package/dist/components/test-runner-card.d.ts +0 -11
  297. package/dist/components/test-runner-card.js +0 -1
  298. package/dist/components/test-runner-chart-time.d.ts +0 -11
  299. package/dist/components/test-runner-chart-time.js +0 -1
  300. package/dist/components/test-runner-chart.d.ts +0 -11
  301. package/dist/components/test-runner-chart.js +0 -1
  302. package/dist/components/test-runner-map.d.ts +0 -11
  303. package/dist/components/test-runner-map.js +0 -1
  304. package/dist/components/test-runner-table.d.ts +0 -11
  305. package/dist/components/test-runner-table.js +0 -1
  306. package/dist/components/test-runner-time.js +0 -1
  307. package/dist/components/test-runner-title.d.ts +0 -11
  308. package/dist/components/test-runner-title.js +0 -1
  309. package/dist/components/withDataset.js +0 -1
  310. package/dist/esm/DataFormatDigits-Dt6gpIiZ.js +0 -137
  311. package/dist/esm/DateStringFactory-_Qiv0IvF.js +0 -451
  312. package/dist/esm/Order-B4fpLe_f.js +0 -125
  313. package/dist/esm/SVGVariancesStyleGroup-DlWgvpzs.js +0 -7961
  314. package/dist/esm/StringAdapter-BLvo1Krl.js +0 -133
  315. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
  316. package/dist/esm/alasql.min-CWu4NkIt.js +0 -304
  317. package/dist/esm/bn-asset.entry.js +0 -40
  318. package/dist/esm/bn-body_3.entry.js +0 -409
  319. package/dist/esm/bn-card.entry.js +0 -35
  320. package/dist/esm/bn-chart-structure.entry.js +0 -703
  321. package/dist/esm/bn-chart-time.entry.js +0 -985
  322. package/dist/esm/bn-component-style.entry.js +0 -42
  323. package/dist/esm/bn-context_5.entry.js +0 -3374
  324. package/dist/esm/bn-dataset.entry.js +0 -276
  325. package/dist/esm/bn-layout-card.entry.js +0 -126
  326. package/dist/esm/bn-layout-page.entry.js +0 -140
  327. package/dist/esm/bn-map.entry.js +0 -423
  328. package/dist/esm/bn-message.entry.js +0 -50
  329. package/dist/esm/componentRegister-BtVfu16B.js +0 -72
  330. package/dist/esm/constants-kMyLevYy.js +0 -158
  331. package/dist/esm/formatter-DTMEZ6d8.js +0 -211
  332. package/dist/esm/ibcs-chart-structure.entry.js +0 -2904
  333. package/dist/esm/ibcs-chart-time.entry.js +0 -4138
  334. package/dist/esm/ibcs-map.entry.js +0 -1073
  335. package/dist/esm/ibcs-title.entry.js +0 -350
  336. package/dist/esm/scaling-BBd0ZVLL.js +0 -64
  337. package/dist/esm/test-runner-card.entry.js +0 -25
  338. package/dist/esm/test-runner-chart-time.entry.js +0 -228
  339. package/dist/esm/test-runner-chart.entry.js +0 -324
  340. package/dist/esm/test-runner-map.entry.js +0 -1860
  341. package/dist/esm/test-runner-table.entry.js +0 -475
  342. package/dist/esm/test-runner-time.entry.js +0 -379
  343. package/dist/esm/test-runner-title.entry.js +0 -113
  344. package/dist/esm/withComponentStatus-elELReKt.js +0 -37
  345. package/dist/esm/withComponentStyle-NaxfakAG.js +0 -126
  346. package/dist/esm/withDataset-BT2VQCsG.js +0 -144
  347. package/dist/esm/withStyled-CpUTv74m.js +0 -539
  348. package/dist/esm/withTranslation-Do4GhleK.js +0 -75
  349. package/dist/types/components/bn-map/bn-map.d.ts +0 -122
  350. package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
  351. package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
  352. package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
  353. package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
  354. package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
  355. package/dist/types/test-runner/test-runner-card.d.ts +0 -3
  356. package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
  357. package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
  358. package/dist/types/test-runner/test-runner-map.d.ts +0 -3
  359. package/dist/types/test-runner/test-runner-table.d.ts +0 -3
  360. package/dist/types/test-runner/test-runner-time.d.ts +0 -3
  361. package/dist/types/test-runner/test-runner-title.d.ts +0 -3
@@ -1,425 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-CScBFiS1.js');
4
- var withStyled = require('./withStyled-Bf-stJTR.js');
5
- var withComponentStatus = require('./withComponentStatus-BrxL7usr.js');
6
- var withDataset = require('./withDataset-ZdN-RRTx.js');
7
- var withHasError = require('./withHasError-Dspb3lIV.js');
8
- var componentRegister = require('./componentRegister-C17UFNPh.js');
9
- require('./constants-DHqQXSSd.js');
10
- require('./DateStringFactory-Dn0aRj2Y.js');
11
- require('./luxon-8hyy5YD7.js');
12
- require('./Order-B4NIqQWe.js');
13
- require('./context-protocol-BkYHFkXE.js');
14
-
15
- const bnMapCss = () => `:host{display:block;height:100%}`;
16
-
17
- const BnMap = class {
18
- constructor(hostRef) {
19
- index.registerInstance(this, hostRef);
20
- this.bnStateUpdated = index.createEvent(this, "bnStateUpdated", 7);
21
- this.bnDragZoomEnded = index.createEvent(this, "bnDragZoomEnded", 7);
22
- this.markerList = [];
23
- this.gpxList = [];
24
- this.geojsonList = [];
25
- // @State() gpxdata: GpxParams[] = [];
26
- this.gpxData = [];
27
- this.geojsonData = [];
28
- this.markerData = [];
29
- this.data = [];
30
- this.uuid = withHasError.generateUUID();
31
- /**
32
- * Name of the makers Dataset used in map
33
- *
34
- * default: $markers
35
- */
36
- this.markersDatasetName = "$markers";
37
- /**
38
- * Name of the gpxs Dataset used in map
39
- *
40
- * default: $gpxs
41
- */
42
- this.gpxsDatasetName = "$gpxs";
43
- /**
44
- * Latitude of the maps viewport center,
45
- * the selected value will be ignored if gpx files are
46
- * selected
47
- */
48
- this.latitude = 50.137634;
49
- /**
50
- * Latitude of the maps viewport center,
51
- * the selected value will be ignored if gpx files are
52
- * selected
53
- */
54
- this.longitude = 8.679129;
55
- /**
56
- * scale / zoom factor of the maps viewport.
57
- * Decrease the value to zoom out.
58
- * Increase the value to zoom in.
59
- * the selected value will be ignored if gpx files are
60
- * selected
61
- */
62
- this.scale = 11;
63
- this.manualPosOverride = true;
64
- /**
65
- * Activates/ Deactivates Map Scale
66
- */
67
- this.showScale = false;
68
- /**
69
- * Set Footer label
70
- */
71
- this.attribution = "";
72
- /**
73
- * URL for maplayer provider
74
- * example provers https://leaflet-extras.github.io/leaflet-providers/preview/
75
- */
76
- this.tileLayer = "https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png";
77
- /**
78
- * Marker Parameter
79
- * example [{"latitude": 50.137634,
80
- * "longitude": 8.679129,
81
- * "iconUrl": "http://localhost:3333/build/assets/icons/marker-example.png",
82
- * "iconWidth": 64,
83
- * "iconHeight":64}]
84
- *
85
- */
86
- this.markers = null;
87
- /**
88
- * GPX Parameter
89
- * example ["file": "http://URL_TO_GPX.gpx",
90
- * "color": "#FC5200",
91
- * "opacity": 0.75,
92
- * "weight": 3,
93
- * "lineCap": "round"}]
94
- * */
95
- this.gpxs = null;
96
- this.geojsons = null;
97
- withStyled.withStyled(this);
98
- withComponentStatus.withComponentStatus(this);
99
- this.errors = withHasError.withHasError(this);
100
- withDataset.withDataset(this, (name, data) => {
101
- if (name === this.markersDatasetName) {
102
- this.markerData = data;
103
- }
104
- else if (name === this.gpxsDatasetName) {
105
- this.gpxData = data;
106
- }
107
- });
108
- }
109
- validateMarkerDatasetName(newValue) {
110
- const errId = "ERR_markersDatasetName";
111
- if (typeof newValue !== "string") {
112
- this.errors.addOrReplace({
113
- id: errId,
114
- type: "warning",
115
- message: "markerDatasetName: invalid value(s) '" + newValue + "' are not supported.",
116
- });
117
- }
118
- else {
119
- this.errors.remove(errId);
120
- }
121
- }
122
- validateGpxsDatasetName(newValue) {
123
- const errId = "ERR_gpxsDatasetName";
124
- if (typeof newValue !== "string") {
125
- this.errors.addOrReplace({
126
- id: errId,
127
- type: "warning",
128
- message: "gpxsDatasetName: invalid value(s) '" + newValue + "' are not supported.",
129
- });
130
- }
131
- else {
132
- this.errors.remove(errId);
133
- }
134
- }
135
- validateLatitude(newValue) {
136
- const errId = "ERR_latitude";
137
- if (!withStyled.isValidNumber(newValue)) {
138
- this.errors.addOrReplace({
139
- id: errId,
140
- type: "warning",
141
- message: "latitude: invalid value(s) '" + newValue + "' are not supported.",
142
- });
143
- }
144
- else {
145
- this.errors.remove(errId);
146
- }
147
- }
148
- validateLongitude(newValue) {
149
- const errId = "ERR_longitude";
150
- if (!withStyled.isValidNumber(newValue)) {
151
- this.errors.addOrReplace({
152
- id: errId,
153
- type: "warning",
154
- message: "longitude: invalid value(s) '" + newValue + "' are not supported.",
155
- });
156
- }
157
- else {
158
- this.errors.remove(errId);
159
- }
160
- }
161
- validateScale(newValue) {
162
- const errId = "ERR_scale";
163
- if (!withStyled.isValidNumber(newValue)) {
164
- this.errors.addOrReplace({
165
- id: errId,
166
- type: "warning",
167
- message: "scale: invalid value(s) '" + newValue + "' are not supported.",
168
- });
169
- }
170
- else {
171
- this.errors.remove(errId);
172
- }
173
- }
174
- validateManualPosOverride(newValue) {
175
- const errId = "ERR_scale";
176
- if (!withStyled.isValidBoolean(newValue)) {
177
- this.errors.addOrReplace({
178
- id: errId,
179
- type: "warning",
180
- message: "manualPosOverride: invalid value(s) '" + newValue + "' are not supported.",
181
- });
182
- }
183
- else {
184
- this.errors.remove(errId);
185
- }
186
- }
187
- validateShowScale(newValue) {
188
- const errId = "ERR_showScale";
189
- if (!withStyled.isValidBoolean(newValue)) {
190
- this.errors.addOrReplace({
191
- id: errId,
192
- type: "warning",
193
- message: "showScale: invalid value(s) '" + newValue + "' are not supported.",
194
- });
195
- }
196
- else {
197
- this.errors.remove(errId);
198
- }
199
- }
200
- validateAttribution(newValue) {
201
- const errId = "ERR_attribution";
202
- if (typeof newValue !== "string") {
203
- this.errors.addOrReplace({
204
- id: errId,
205
- type: "warning",
206
- message: "attribution: invalid value(s) '" + newValue + "' are not supported.",
207
- });
208
- }
209
- else {
210
- this.errors.remove(errId);
211
- }
212
- }
213
- validateTileLayer(newValue) {
214
- const errId = "ERR_tileLayer";
215
- if (typeof newValue !== "string") {
216
- this.errors.addOrReplace({
217
- id: errId,
218
- type: "warning",
219
- message: "tileLayer: invalid value(s) '" + newValue + "' are not supported.",
220
- });
221
- }
222
- else {
223
- this.errors.remove(errId);
224
- }
225
- }
226
- validateMarkers(newValue) {
227
- if (!newValue) {
228
- return;
229
- }
230
- const errId = "ERR_markers";
231
- const errIdJson = "ERR_markersJSON";
232
- try {
233
- const invalidScenarios = withStyled.validateMarkerType(newValue);
234
- if (invalidScenarios.length > 0) {
235
- this.errors.addOrReplace({
236
- id: errId,
237
- type: "warning",
238
- message: "Markers: invalid value(s) '" + invalidScenarios + "' are not supported.",
239
- });
240
- }
241
- else {
242
- this.errors.remove(errId);
243
- }
244
- this.markerList = JSON.parse(newValue);
245
- this.errors.remove(errIdJson);
246
- }
247
- catch (e) {
248
- this.errors.addOrReplace({
249
- id: errIdJson,
250
- type: "warning",
251
- message: "Markers: invalid value(s) '" + newValue + "' are not supported.:" + e.message,
252
- });
253
- }
254
- }
255
- validateGpx(newValue) {
256
- if (!newValue) {
257
- return;
258
- }
259
- const errId = "ERR_gpxs";
260
- const errIdJson = "ERR_gpxsJSON";
261
- try {
262
- const invalidScenarios = withStyled.validateGpxType(newValue);
263
- if (invalidScenarios.length > 0) {
264
- this.errors.addOrReplace({
265
- id: errId,
266
- type: "warning",
267
- message: "gpxs: invalid value(s) '" + invalidScenarios + "' are not supported.",
268
- });
269
- }
270
- else {
271
- this.errors.remove(errId);
272
- }
273
- this.gpxList = JSON.parse(newValue);
274
- this.errors.remove(errIdJson);
275
- }
276
- catch (e) {
277
- this.errors.addOrReplace({
278
- id: errIdJson,
279
- type: "warning",
280
- message: "gpxs: invalid '" + newValue + "' is not supported.:" + e.message,
281
- });
282
- }
283
- }
284
- validateGeojson(newValue) {
285
- if (!newValue) {
286
- return;
287
- }
288
- const errId = "ERR_geojsons";
289
- const errIdJson = "ERR_geojsons";
290
- try {
291
- const invalidScenarios = withStyled.validateGeojsonType(newValue);
292
- if (invalidScenarios.length > 0) {
293
- this.errors.addOrReplace({
294
- id: errId,
295
- type: "warning",
296
- message: "geojsons: invalid value(s) '" + invalidScenarios + "' are not supported.",
297
- });
298
- }
299
- else {
300
- this.errors.remove(errId);
301
- }
302
- this.geojsonList = JSON.parse(newValue);
303
- this.errors.remove(errIdJson);
304
- }
305
- catch (e) {
306
- this.errors.addOrReplace({
307
- id: errIdJson,
308
- type: "warning",
309
- message: "geojsons: invalid '" + newValue + "' is not supported.:" + e.message,
310
- });
311
- }
312
- }
313
- stateUpdated(status) {
314
- componentRegister.ComponentRegister.updateStatus(this.uuid, status.detail);
315
- }
316
- dragZoomEnded(props) {
317
- this.bnDragZoomEnded.emit(props.detail);
318
- }
319
- componentWillLoad() {
320
- this.validateLatitude(this.latitude);
321
- this.validateLongitude(this.longitude);
322
- this.validateScale(this.scale);
323
- this.validateShowScale(this.showScale);
324
- this.validateAttribution(this.attribution);
325
- this.validateTileLayer(this.tileLayer);
326
- this.validateMarkers(this.markers);
327
- this.validateGpx(this.gpxs);
328
- this.validateGeojson(this.geojsons);
329
- this.validateManualPosOverride(this.manualPosOverride);
330
- }
331
- render() {
332
- return (index.h(index.Host, { key: 'fa9bf3fb7fcf0c10b91967c6e3a67db914af1bf9' }, index.h("ibcs-map", { key: '2b692fe311b00b65d0001ae64f5b17f7b99d111d', tileLayer: this.tileLayer, latitude: this.latitude, longitude: this.longitude, scale: this.scale, showScale: this.showScale, showZoom: false, attribution: this.attribution, gpxs: this.prepareGpxData(), markers: this.prepareMarkerData(), geojsons: this.prepareGeojsonData(), manualPosOverride: this.manualPosOverride })));
333
- }
334
- prepareMarkerData() {
335
- return [...this.markerData, ...this.markerList];
336
- }
337
- prepareGpxData() {
338
- return [...this.gpxData, ...this.gpxList];
339
- }
340
- prepareGeojsonData() {
341
- return [...this.geojsonData, ...this.geojsonList];
342
- }
343
- getDataStructureGpxParams() {
344
- const dataSetStructure = {
345
- GpxParams: {
346
- file: { type: "string", isOptional: false, description: "" },
347
- color: { type: "string", isOptional: false, description: "" },
348
- opacity: { type: "number", isOptional: false, description: "" },
349
- weight: { type: "number", isOptional: false, description: "" },
350
- lineCap: { type: "string", isOptional: false, description: "" },
351
- startIconUrl: { type: "string", isOptional: false, description: "" },
352
- endIconUrl: { type: "string", isOptional: false, description: "" },
353
- shadowUrl: { type: "string", isOptional: false, description: "" },
354
- },
355
- };
356
- return dataSetStructure;
357
- }
358
- getDataStructureGeojsonParams() {
359
- const dataSetStructure = {
360
- GeojsonParams: {
361
- file: { type: "string", isOptional: false, description: "" },
362
- color: { type: "string", isOptional: false, description: "" },
363
- opacity: { type: "number", isOptional: false, description: "" },
364
- weight: { type: "number", isOptional: false, description: "" },
365
- lineCap: { type: "string", isOptional: false, description: "" },
366
- },
367
- };
368
- return dataSetStructure;
369
- }
370
- getDataStructureMarkerParams() {
371
- const dataSetStructure = {
372
- MarkerParams: {
373
- latitude: { type: "number", isOptional: false, description: "" },
374
- longitude: { type: "string", isOptional: false, description: "" },
375
- iconUrl: { type: "number", isOptional: false, description: "" },
376
- iconWidth: { type: "number", isOptional: false, description: "" },
377
- iconHeight: { type: "number", isOptional: false, description: "" },
378
- tile: { type: "string", isOptional: false, description: "" },
379
- },
380
- };
381
- return dataSetStructure;
382
- }
383
- get element() { return index.getElement(this); }
384
- static get watchers() { return {
385
- "markersDatasetName": [{
386
- "validateMarkerDatasetName": 0
387
- }],
388
- "gpxsDatasetName": [{
389
- "validateGpxsDatasetName": 0
390
- }],
391
- "latitude": [{
392
- "validateLatitude": 0
393
- }],
394
- "longitude": [{
395
- "validateLongitude": 0
396
- }],
397
- "scale": [{
398
- "validateScale": 0
399
- }],
400
- "manualPosOverride": [{
401
- "validateManualPosOverride": 0
402
- }],
403
- "showScale": [{
404
- "validateShowScale": 0
405
- }],
406
- "attribution": [{
407
- "validateAttribution": 0
408
- }],
409
- "tileLayer": [{
410
- "validateTileLayer": 0
411
- }],
412
- "markers": [{
413
- "validateMarkers": 0
414
- }],
415
- "gpxs": [{
416
- "validateGpx": 0
417
- }],
418
- "geojsons": [{
419
- "validateGeojson": 0
420
- }]
421
- }; }
422
- };
423
- BnMap.style = bnMapCss();
424
-
425
- exports.bn_map = BnMap;
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-CScBFiS1.js');
4
- var withComponentStatus = require('./withComponentStatus-BrxL7usr.js');
5
- var withComponentStyle = require('./withComponentStyle-C6KHnZHt.js');
6
- var contextProtocol = require('./context-protocol-BkYHFkXE.js');
7
- var withHasError = require('./withHasError-Dspb3lIV.js');
8
- require('./componentRegister-C17UFNPh.js');
9
-
10
- const bnMessageCss = () => `:host{padding:0.2em 0.5em;display:flex;flex-direction:row;justify-content:space-between;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(#container-page-message){height:4.55em;box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:0.1em solid #ddd}div#message-text{font-size:1.4em;overflow:clip;display:inline}.image{z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}`;
11
-
12
- const Footer = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- withComponentStatus.withComponentStatus(this);
16
- this.errors = withHasError.withHasError(this);
17
- this.componentStyle = withComponentStyle.withComponentStyle(this);
18
- }
19
- connectedCallback() {
20
- this.stores = contextProtocol.getStores(this.element);
21
- }
22
- getFontStyles() {
23
- return this.componentStyle(($) => {
24
- var _a, _b, _c, _d;
25
- return ({
26
- "--bn-font-family": ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontFamily"]) || "'Noto Sans', sans-serif",
27
- "--bn-font-size": `${((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontSizePx"]) || 13.3333}px`,
28
- "--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
29
- "--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
30
- });
31
- });
32
- }
33
- prepareAssetUrl(value) {
34
- if (value == null || value === "") {
35
- return "";
36
- }
37
- const assetsState = this.stores.assets.state;
38
- // for backward compatibility deprecated "asset:" prefix
39
- if (value.startsWith("asset:")) {
40
- return assetsState[value.substring(6)];
41
- }
42
- return assetsState[value] || value;
43
- }
44
- render() {
45
- return (index.h(index.Host, { key: 'fc5f029a310621d2dc911d05549a8128896d22bc', id: this.text || this.image ? "container-page-message" : "container", style: this.getFontStyles() }, index.h("div", { key: '7e8b92d010ade7d71360145c2d9ca82c5682dfb9', id: "message-text" }, this.text != null && this.text !== "" ? index.h("span", { class: "note" }, this.text) : ""), index.h("div", { key: 'b40fdf7a7af3ba9352015c42617b39aa9d17a0dc', id: "page-image" }, this.image != null && this.image !== "" ? index.h("img", { class: "image", src: this.prepareAssetUrl(this.image) }) : "")));
46
- }
47
- static get assetsDirs() { return ["assets"]; }
48
- get element() { return index.getElement(this); }
49
- };
50
- Footer.style = bnMessageCss();
51
-
52
- exports.bn_message = Footer;
@@ -1,72 +0,0 @@
1
- 'use strict';
2
-
3
- /** Lifecycle state of a tracked component instance. */
4
- exports.ComponentStatus = void 0;
5
- (function (ComponentStatus) {
6
- ComponentStatus[ComponentStatus["RUNNING"] = 0] = "RUNNING";
7
- ComponentStatus[ComponentStatus["SUCCESSFUL"] = 1] = "SUCCESSFUL";
8
- ComponentStatus[ComponentStatus["ERROR"] = 2] = "ERROR";
9
- })(exports.ComponentStatus || (exports.ComponentStatus = {}));
10
- /**
11
- * Singleton registry that tracks the render status of all bn-* component instances.
12
- *
13
- * Each component registers itself via {@link withComponentStatus} and reports
14
- * `RUNNING` / `SUCCESSFUL` / `ERROR` transitions. After 500 ms of inactivity
15
- * (no status updates), the aggregate result is written to
16
- * `window.componentRegisterIsRenderedResult` as a boolean. External tools
17
- * (e.g. headless screenshot renderers) poll this value to detect when
18
- * the entire page has finished rendering.
19
- *
20
- * The 500 ms debounce prevents premature "rendered" signals during rapid
21
- * successive re-renders.
22
- *
23
- * Status counts are maintained incrementally — `updateStatus` adjusts running
24
- * counters instead of iterating all entries, making it O(1) per update.
25
- */
26
- exports.ComponentRegister = void 0;
27
- (function (ComponentRegister) {
28
- let currentTimeOutId = undefined;
29
- const componentRegister = new Map();
30
- const statusCounts = { running: 0, successful: 0, error: 0 };
31
- const countKey = (status) => {
32
- switch (status) {
33
- case exports.ComponentStatus.RUNNING:
34
- return "running";
35
- case exports.ComponentStatus.SUCCESSFUL:
36
- return "successful";
37
- default:
38
- return "error";
39
- }
40
- };
41
- /**
42
- * Records a status change for the component identified by `uuid` and
43
- * resets the 500 ms debounce timer. When the timer fires, the aggregate
44
- * "all rendered" boolean is published to `window.componentRegisterIsRenderedResult`.
45
- */
46
- ComponentRegister.updateStatus = (uuid, status) => {
47
- if (currentTimeOutId) {
48
- clearTimeout(currentTimeOutId);
49
- }
50
- const prev = componentRegister.get(uuid);
51
- if (prev !== undefined) {
52
- statusCounts[countKey(prev)]--;
53
- }
54
- statusCounts[countKey(status)]++;
55
- componentRegister.set(uuid, status);
56
- currentTimeOutId = setTimeout(() => {
57
- // @ts-ignore
58
- window.componentRegisterIsRenderedResult = ComponentRegister.componentRegisterIsRendered();
59
- // @ts-ignore
60
- // eslint-disable-next-line no-console
61
- console.log("componentRegisterIsRendered:", window.componentRegisterIsRenderedResult);
62
- }, 500);
63
- };
64
- /** Returns `true` when no components are currently in `RUNNING` state. */
65
- ComponentRegister.componentRegisterIsRendered = () => {
66
- return statusCounts.running === 0;
67
- };
68
- /** Returns a summary count of components in each status category. */
69
- ComponentRegister.componentRegisterStatus = () => {
70
- return Object.assign({}, statusCounts);
71
- };
72
- })(exports.ComponentRegister || (exports.ComponentRegister = {}));