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

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 (360) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-14318b0d.entry.js +1 -0
  3. package/dist/bn-template-engine/{p-c9f050bf.entry.js → p-2133e02b.entry.js} +1 -1
  4. package/dist/bn-template-engine/p-6b469808.entry.js +1 -0
  5. package/dist/bn-template-engine/p-7HSTE79g.js +1 -0
  6. package/dist/bn-template-engine/p-9b1288df.entry.js +1 -0
  7. package/dist/bn-template-engine/p-B4JfKvVT.js +1 -0
  8. package/dist/bn-template-engine/p-B_d-jp99.js +2 -0
  9. package/dist/bn-template-engine/p-Bi2wx-el.js +1 -0
  10. package/dist/bn-template-engine/p-CWiZks2h.js +1 -0
  11. package/dist/bn-template-engine/{p-BQp6ZPYW.js → p-DSXNgKLa.js} +1 -1
  12. package/dist/bn-template-engine/p-c2cbb8ea.entry.js +1 -0
  13. package/dist/bn-template-engine/p-e783733e.entry.js +1 -0
  14. package/dist/bn-template-engine/p-e94b4e31.entry.js +1 -0
  15. package/dist/bn-template-engine/p-fdb3e99a.entry.js +1 -0
  16. package/dist/cjs/bn-asset_21.cjs.entry.js +23906 -0
  17. package/dist/cjs/bn-grid.cjs.entry.js +6 -13
  18. package/dist/cjs/bn-image.cjs.entry.js +6 -13
  19. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -7
  20. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  21. package/dist/cjs/bn-template.cjs.entry.js +4 -6
  22. package/dist/cjs/bn-text.cjs.entry.js +10 -19
  23. package/dist/cjs/bn-tree.cjs.entry.js +11 -14
  24. package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-B_jipZpJ.js} +6 -2
  25. package/dist/cjs/editor-companion.cjs.entry.js +3 -3
  26. package/dist/cjs/{index-CScBFiS1.js → index-CDKG4xmO.js} +2 -2
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/scaling-eyzCrFB8.js +329 -0
  29. package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-D7BKWN2N.js} +2 -2
  30. package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-Cl2gTQzA.js} +106 -2
  31. package/dist/{esm/luxon-DbyXf6dF.js → cjs/withStyled-V7xz_x1c.js} +1406 -1
  32. package/dist/collection/collection-manifest.json +2 -10
  33. package/dist/collection/components/bn-body/bn-body.css +1 -0
  34. package/dist/collection/components/bn-card/bn-card.css +2 -0
  35. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +368 -130
  36. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +34 -10
  37. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
  38. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
  39. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
  40. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
  41. package/dist/collection/components/bn-chart-time/bn-chart-time.css +1 -1
  42. package/dist/collection/components/bn-chart-time/bn-chart-time.js +172 -51
  43. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +22 -9
  44. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
  45. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
  46. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
  47. package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
  48. package/dist/collection/components/bn-datasource/bn-datasource.js +46 -3
  49. package/dist/collection/components/bn-layout-card/bn-layout-card.css +3 -2
  50. package/dist/collection/components/bn-layout-card/bn-layout-card.js +207 -32
  51. package/dist/collection/components/bn-layout-page/bn-layout-page.css +1 -3
  52. package/dist/collection/components/bn-layout-page/bn-layout-page.js +172 -43
  53. package/dist/collection/components/bn-message/bn-message.js +1 -1
  54. package/dist/collection/components/bn-page/bn-page.js +1 -1
  55. package/dist/collection/components/bn-scaling-group/bn-scaling-group.css +3 -0
  56. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +136 -0
  57. package/dist/collection/components/bn-table/bn-table.js +201 -55
  58. package/dist/collection/components/bn-table/ibcs-table.css +7 -5
  59. package/dist/collection/components/bn-table/ibcs-table.js +91 -5
  60. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +79 -31
  61. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
  62. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
  63. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
  64. package/dist/collection/components/bn-template/bn-template.js +1 -1
  65. package/dist/collection/components/bn-text/bn-text.js +1 -1
  66. package/dist/collection/components/bn-title/bn-title.js +1 -9
  67. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -1
  68. package/dist/collection/components/bn-tree/bn-tree.js +5 -1
  69. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  70. package/dist/collection/stores/componentStyles.js +2 -0
  71. package/dist/collection/stores/createScopedStores.js +3 -1
  72. package/dist/collection/utils/DateStringFactory.js +0 -1
  73. package/dist/collection/utils/constants.js +35 -5
  74. package/dist/collection/utils/contentDecoder.js +28 -0
  75. package/dist/collection/utils/layoutObserver.js +88 -0
  76. package/dist/collection/utils/parentDimensions.js +57 -10
  77. package/dist/collection/utils/stackColors.js +2 -2
  78. package/dist/collection/utils/validate.js +5 -2
  79. package/dist/collection/utils/withInheritedProps.js +152 -0
  80. package/dist/collection/utils/withScalingGroup.js +66 -0
  81. package/dist/components/DataFormatDigits.js +1 -1
  82. package/dist/components/DateStringFactory.js +1 -1
  83. package/dist/components/Order.js +1 -1
  84. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  85. package/dist/components/bn-body2.js +1 -1
  86. package/dist/components/bn-card2.js +1 -1
  87. package/dist/components/bn-chart-structure.js +1 -1
  88. package/dist/components/bn-chart-time.js +1 -1
  89. package/dist/components/bn-dataset.js +1 -1
  90. package/dist/components/bn-datasource.js +1 -1
  91. package/dist/components/bn-layout-card.js +1 -1
  92. package/dist/components/bn-layout-page.js +1 -1
  93. package/dist/components/bn-message2.js +1 -1
  94. package/dist/components/bn-page2.js +1 -1
  95. package/dist/components/{test-runner-time.d.ts → bn-scaling-group.d.ts} +4 -4
  96. package/dist/components/bn-scaling-group.js +1 -0
  97. package/dist/components/bn-table.js +1 -1
  98. package/dist/components/bn-template.js +1 -1
  99. package/dist/components/bn-text.js +1 -1
  100. package/dist/components/bn-title2.js +1 -1
  101. package/dist/components/bn-tree.js +1 -1
  102. package/dist/components/contentDecoder.js +1 -0
  103. package/dist/components/context-protocol.js +1 -1
  104. package/dist/components/editor-companion.js +1 -1
  105. package/dist/components/emotion-hash.esm.js +1 -0
  106. package/dist/components/ibcs-chart-structure2.js +1 -1
  107. package/dist/components/ibcs-chart-time2.js +1 -1
  108. package/dist/components/ibcs-table2.js +1 -1
  109. package/dist/components/ibcs-title2.js +1 -1
  110. package/dist/components/ibcsRuleSet.js +1 -1
  111. package/dist/components/layoutObserver.js +1 -0
  112. package/dist/components/scaling.js +1 -1
  113. package/dist/components/validate.js +1 -1
  114. package/dist/components/withHasError.js +1 -1
  115. package/dist/components/withInheritedProps.js +1 -0
  116. package/dist/components/withStyled.js +1 -1
  117. package/dist/esm/bn-asset_21.entry.js +23884 -0
  118. package/dist/esm/bn-grid.entry.js +4 -11
  119. package/dist/esm/bn-image.entry.js +4 -11
  120. package/dist/esm/bn-internationalization.entry.js +4 -6
  121. package/dist/esm/bn-template-engine.js +3 -3
  122. package/dist/esm/bn-template.entry.js +3 -5
  123. package/dist/esm/bn-text.entry.js +6 -15
  124. package/dist/esm/bn-tree.entry.js +9 -12
  125. package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-D-o_UZ33.js} +6 -2
  126. package/dist/esm/editor-companion.entry.js +3 -3
  127. package/dist/esm/{index-B27Ax6P_.js → index-B_d-jp99.js} +2 -2
  128. package/dist/esm/loader.js +3 -3
  129. package/dist/esm/scaling-BzbiBnuN.js +324 -0
  130. package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-AFk2wwHT.js} +2 -2
  131. package/dist/esm/{withHasError-C48fTE2k.js → withHasError-DW_vMDUp.js} +106 -2
  132. package/dist/{cjs/luxon-8hyy5YD7.js → esm/withStyled-5RqF8WBL.js} +1371 -2
  133. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +163 -110
  134. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +4 -3
  135. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  136. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
  137. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  138. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +29 -12
  139. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +4 -3
  140. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
  141. package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
  142. package/dist/types/components/bn-datasource/bn-datasource.d.ts +8 -0
  143. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +153 -0
  144. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +160 -1
  145. package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +37 -0
  146. package/dist/types/components/bn-table/bn-table.d.ts +32 -16
  147. package/dist/types/components/bn-table/ibcs-table.d.ts +20 -0
  148. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
  149. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +1 -0
  150. package/dist/types/components/bn-title/bn-title.d.ts +0 -1
  151. package/dist/types/components.d.ts +389 -443
  152. package/dist/types/context/context-protocol.d.ts +2 -1
  153. package/dist/types/stores/componentStyles.d.ts +2 -0
  154. package/dist/types/stores/createScopedStores.d.ts +1 -0
  155. package/dist/types/utils/constants.d.ts +23 -5
  156. package/dist/types/utils/contentDecoder.d.ts +12 -0
  157. package/dist/types/utils/layoutObserver.d.ts +27 -0
  158. package/dist/types/utils/parentDimensions.d.ts +7 -2
  159. package/dist/types/utils/validate.d.ts +1 -0
  160. package/dist/types/utils/withInheritedProps.d.ts +38 -0
  161. package/dist/types/utils/withScalingGroup.d.ts +14 -0
  162. package/package.json +3 -3
  163. package/readme.md +0 -1
  164. package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
  165. package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  166. package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
  167. package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
  168. package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
  169. package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
  170. package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
  171. package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
  172. package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
  173. package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
  174. package/dist/bn-template-engine/assets/icons/pin.png +0 -0
  175. package/dist/bn-template-engine/p--TeDldm8.js +0 -1
  176. package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
  177. package/dist/bn-template-engine/p-1jFf17Vj.js +0 -1
  178. package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
  179. package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
  180. package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
  181. package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
  182. package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
  183. package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
  184. package/dist/bn-template-engine/p-65f8962a.entry.js +0 -1
  185. package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
  186. package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
  187. package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
  188. package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
  189. package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
  190. package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
  191. package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
  192. package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
  193. package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
  194. package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
  195. package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
  196. package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
  197. package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
  198. package/dist/bn-template-engine/p-BFTU3MAI.js +0 -1
  199. package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
  200. package/dist/bn-template-engine/p-BYmPQYxx.js +0 -1
  201. package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
  202. package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
  203. package/dist/bn-template-engine/p-CY1RzLjU.js +0 -1
  204. package/dist/bn-template-engine/p-CfWnag33.js +0 -1
  205. package/dist/bn-template-engine/p-CnI71OA9.js +0 -1
  206. package/dist/bn-template-engine/p-Cp4MVxCu.js +0 -1
  207. package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
  208. package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
  209. package/dist/bn-template-engine/p-_LBTIfNN.js +0 -1
  210. package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
  211. package/dist/bn-template-engine/p-ad94cf63.entry.js +0 -1
  212. package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
  213. package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
  214. package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
  215. package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
  216. package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
  217. package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
  218. package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
  219. package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
  220. package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
  221. package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
  222. package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
  223. package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
  224. package/dist/cjs/DataFormatDigits-DmTbhF8q.js +0 -142
  225. package/dist/cjs/DateStringFactory-Dn0aRj2Y.js +0 -453
  226. package/dist/cjs/Order-B4NIqQWe.js +0 -129
  227. package/dist/cjs/SVGVariancesStyleGroup-Czizhngt.js +0 -7973
  228. package/dist/cjs/StringAdapter-0EbYMkR0.js +0 -136
  229. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
  230. package/dist/cjs/alasql.min-C_nHTuEQ.js +0 -306
  231. package/dist/cjs/bn-asset.cjs.entry.js +0 -42
  232. package/dist/cjs/bn-body_3.cjs.entry.js +0 -413
  233. package/dist/cjs/bn-card.cjs.entry.js +0 -37
  234. package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -705
  235. package/dist/cjs/bn-chart-time.cjs.entry.js +0 -987
  236. package/dist/cjs/bn-component-style.cjs.entry.js +0 -44
  237. package/dist/cjs/bn-context_5.cjs.entry.js +0 -3380
  238. package/dist/cjs/bn-dataset.cjs.entry.js +0 -278
  239. package/dist/cjs/bn-layout-card.cjs.entry.js +0 -128
  240. package/dist/cjs/bn-layout-page.cjs.entry.js +0 -142
  241. package/dist/cjs/bn-map.cjs.entry.js +0 -425
  242. package/dist/cjs/bn-message.cjs.entry.js +0 -52
  243. package/dist/cjs/componentRegister-C17UFNPh.js +0 -72
  244. package/dist/cjs/constants-DHqQXSSd.js +0 -158
  245. package/dist/cjs/formatter-DIJL_crx.js +0 -215
  246. package/dist/cjs/ibcs-chart-structure.cjs.entry.js +0 -2906
  247. package/dist/cjs/ibcs-chart-time.cjs.entry.js +0 -4140
  248. package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
  249. package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
  250. package/dist/cjs/scaling-B23eOtsC.js +0 -67
  251. package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
  252. package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
  253. package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
  254. package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
  255. package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
  256. package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
  257. package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
  258. package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
  259. package/dist/cjs/withComponentStyle-C6KHnZHt.js +0 -128
  260. package/dist/cjs/withDataset-ZdN-RRTx.js +0 -146
  261. package/dist/cjs/withStyled-Bf-stJTR.js +0 -567
  262. package/dist/cjs/withTranslation-Cz0M5maV.js +0 -77
  263. package/dist/collection/components/bn-map/bn-map.css +0 -4
  264. package/dist/collection/components/bn-map/bn-map.js +0 -725
  265. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
  266. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  267. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
  268. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
  269. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
  270. package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
  271. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
  272. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
  273. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
  274. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
  275. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
  276. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
  277. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
  278. package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
  279. package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
  280. package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
  281. package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
  282. package/dist/collection/test-runner/test-runner-card.js +0 -36
  283. package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
  284. package/dist/collection/test-runner/test-runner-chart.js +0 -364
  285. package/dist/collection/test-runner/test-runner-map.js +0 -1901
  286. package/dist/collection/test-runner/test-runner-table.js +0 -469
  287. package/dist/collection/test-runner/test-runner-time.js +0 -399
  288. package/dist/collection/test-runner/test-runner-title.js +0 -108
  289. package/dist/components/bn-map.d.ts +0 -11
  290. package/dist/components/bn-map.js +0 -1
  291. package/dist/components/componentRegister.js +0 -1
  292. package/dist/components/ibcs-map.d.ts +0 -11
  293. package/dist/components/ibcs-map.js +0 -1
  294. package/dist/components/ibcs-map2.js +0 -1
  295. package/dist/components/test-runner-card.d.ts +0 -11
  296. package/dist/components/test-runner-card.js +0 -1
  297. package/dist/components/test-runner-chart-time.d.ts +0 -11
  298. package/dist/components/test-runner-chart-time.js +0 -1
  299. package/dist/components/test-runner-chart.d.ts +0 -11
  300. package/dist/components/test-runner-chart.js +0 -1
  301. package/dist/components/test-runner-map.d.ts +0 -11
  302. package/dist/components/test-runner-map.js +0 -1
  303. package/dist/components/test-runner-table.d.ts +0 -11
  304. package/dist/components/test-runner-table.js +0 -1
  305. package/dist/components/test-runner-time.js +0 -1
  306. package/dist/components/test-runner-title.d.ts +0 -11
  307. package/dist/components/test-runner-title.js +0 -1
  308. package/dist/components/withDataset.js +0 -1
  309. package/dist/esm/DataFormatDigits-Dt6gpIiZ.js +0 -137
  310. package/dist/esm/DateStringFactory-_Qiv0IvF.js +0 -451
  311. package/dist/esm/Order-B4fpLe_f.js +0 -125
  312. package/dist/esm/SVGVariancesStyleGroup-DlWgvpzs.js +0 -7961
  313. package/dist/esm/StringAdapter-BLvo1Krl.js +0 -133
  314. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
  315. package/dist/esm/alasql.min-CWu4NkIt.js +0 -304
  316. package/dist/esm/bn-asset.entry.js +0 -40
  317. package/dist/esm/bn-body_3.entry.js +0 -409
  318. package/dist/esm/bn-card.entry.js +0 -35
  319. package/dist/esm/bn-chart-structure.entry.js +0 -703
  320. package/dist/esm/bn-chart-time.entry.js +0 -985
  321. package/dist/esm/bn-component-style.entry.js +0 -42
  322. package/dist/esm/bn-context_5.entry.js +0 -3374
  323. package/dist/esm/bn-dataset.entry.js +0 -276
  324. package/dist/esm/bn-layout-card.entry.js +0 -126
  325. package/dist/esm/bn-layout-page.entry.js +0 -140
  326. package/dist/esm/bn-map.entry.js +0 -423
  327. package/dist/esm/bn-message.entry.js +0 -50
  328. package/dist/esm/componentRegister-BtVfu16B.js +0 -72
  329. package/dist/esm/constants-kMyLevYy.js +0 -158
  330. package/dist/esm/formatter-DTMEZ6d8.js +0 -211
  331. package/dist/esm/ibcs-chart-structure.entry.js +0 -2904
  332. package/dist/esm/ibcs-chart-time.entry.js +0 -4138
  333. package/dist/esm/ibcs-map.entry.js +0 -1073
  334. package/dist/esm/ibcs-title.entry.js +0 -350
  335. package/dist/esm/scaling-BBd0ZVLL.js +0 -64
  336. package/dist/esm/test-runner-card.entry.js +0 -25
  337. package/dist/esm/test-runner-chart-time.entry.js +0 -228
  338. package/dist/esm/test-runner-chart.entry.js +0 -324
  339. package/dist/esm/test-runner-map.entry.js +0 -1860
  340. package/dist/esm/test-runner-table.entry.js +0 -475
  341. package/dist/esm/test-runner-time.entry.js +0 -379
  342. package/dist/esm/test-runner-title.entry.js +0 -113
  343. package/dist/esm/withComponentStatus-elELReKt.js +0 -37
  344. package/dist/esm/withComponentStyle-NaxfakAG.js +0 -126
  345. package/dist/esm/withDataset-BT2VQCsG.js +0 -144
  346. package/dist/esm/withStyled-CpUTv74m.js +0 -539
  347. package/dist/esm/withTranslation-Do4GhleK.js +0 -75
  348. package/dist/types/components/bn-map/bn-map.d.ts +0 -122
  349. package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
  350. package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
  351. package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
  352. package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
  353. package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
  354. package/dist/types/test-runner/test-runner-card.d.ts +0 -3
  355. package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
  356. package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
  357. package/dist/types/test-runner/test-runner-map.d.ts +0 -3
  358. package/dist/types/test-runner/test-runner-table.d.ts +0 -3
  359. package/dist/types/test-runner/test-runner-time.d.ts +0 -3
  360. package/dist/types/test-runner/test-runner-title.d.ts +0 -3
@@ -1,276 +0,0 @@
1
- import { g as getElement, r as registerInstance, h, H as Host } from './index-B27Ax6P_.js';
2
- import { g as getStores, c as clearStoresCache } from './context-protocol-DzeqZxg6.js';
3
- import { r as runIfExisits, w as withHasError } from './withHasError-C48fTE2k.js';
4
- import { w as withBodyObserver } from './withBodyObserver-gZpZiEIK.js';
5
- import { a as alasql } from './alasql.min-CWu4NkIt.js';
6
- import { w as withComponentStatus } from './withComponentStatus-elELReKt.js';
7
- import './_commonjsHelpers-BFTU3MAI.js';
8
- import './componentRegister-BtVfu16B.js';
9
-
10
- /**
11
- * Mixin that subscribes a Stencil component to raw datasources.
12
- *
13
- * This is the simpler counterpart of {@link withDataset} -- it reads directly from
14
- * the datasources store without going through bn-dataset query processing.
15
- * Primarily used by bn-dataset itself, which needs access to raw data before
16
- * producing a processed dataset.
17
- *
18
- * Watches the host element's `datasources` attribute via MutationObserver for
19
- * dynamic rebinding at runtime.
20
- *
21
- * @param component - The Stencil component instance
22
- * @param onUpdate - Callback invoked with `(name, data)` whenever a subscribed datasource changes
23
- */
24
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
- const withDatasource = (component, onUpdate) => {
26
- let subscription;
27
- let datasources = [];
28
- let stores;
29
- const observer = new MutationObserver((mutations) => {
30
- mutations.forEach((mutation) => {
31
- if (mutation.attributeName === "datasources") {
32
- datasources = (getElement(component).getAttribute("datasources") || "").split(",");
33
- datasources.forEach((name) => {
34
- // @ts-ignore
35
- onUpdate(name, stores.datasources.get(name));
36
- });
37
- }
38
- });
39
- });
40
- const connectedCallback = component["connectedCallback"];
41
- component["connectedCallback"] = () => {
42
- const element = getElement(component);
43
- stores = getStores(element);
44
- datasources = (element.getAttribute("datasources") || "").split(",");
45
- datasources.forEach((name) => {
46
- // @ts-ignore
47
- onUpdate(name, stores.datasources.get(name));
48
- });
49
- observer.observe(element, { attributes: true, attributeFilter: ["datasources"] });
50
- subscription = stores.datasources.on("set", (key, newVlaue) => {
51
- if (datasources.includes(key)) {
52
- onUpdate(key, newVlaue);
53
- }
54
- });
55
- runIfExisits(connectedCallback, component);
56
- };
57
- const disconnectedCallback = component["disconnectedCallback"];
58
- component["disconnectedCallback"] = () => {
59
- observer.disconnect();
60
- runIfExisits(subscription);
61
- clearStoresCache(getElement(component));
62
- runIfExisits(disconnectedCallback, component);
63
- };
64
- };
65
-
66
- /** All recognized IBCS scenario column keys: actual (ac1-4), previous period (pp1-4), forecast (fc1-4), plan (pl1-4). */
67
- const SCENARIO_KEYS = [
68
- "ac1",
69
- "ac2",
70
- "ac3",
71
- "ac4",
72
- "pp1",
73
- "pp2",
74
- "pp3",
75
- "pp4",
76
- "fc1",
77
- "fc2",
78
- "fc3",
79
- "fc4",
80
- "pl1",
81
- "pl2",
82
- "pl3",
83
- "pl4",
84
- ];
85
- /** Hierarchical dimension fields from coarsest (rowGroup) to finest (columnSubGroup). */
86
- const DIMENSION_FIELDS = ["rowGroup", "category", "subCategory", "columnGroup", "columnSubGroup"];
87
- function isNumericValue(val) {
88
- return typeof val === "number" && !isNaN(val) && isFinite(val);
89
- }
90
- /** Converts a Set of collected distinct values into a {@link DimensionMeta} summary. */
91
- function buildDimensionMeta(values) {
92
- const distinctValues = Array.from(values);
93
- return {
94
- distinctValues,
95
- count: distinctValues.length,
96
- hasData: distinctValues.length > 0,
97
- };
98
- }
99
- /**
100
- * Computes metadata for a dataset in a single O(n) pass over all rows.
101
- *
102
- * Collects:
103
- * - **Dimensions**: distinct values per dimension field (using Sets for deduplication)
104
- * - **Scenarios**: presence flag, min/max values for each scenario column
105
- * - **Date range**: min/max date strings and distinct date count
106
- * - **Suggested defaults**: `suggestedLevel` is the deepest populated dimension
107
- * (subCategory > category > rowGroup), `suggestedOrder` mirrors it,
108
- * and `suggestedDateInterval` is "auto" when date data exists.
109
- *
110
- * This function is called by bn-dataset whenever data changes and the result is
111
- * stored in the datasetsMeta store for consumption by visualization components.
112
- */
113
- function calculateDatasetMeta(data) {
114
- const dimensionSets = {};
115
- for (const field of DIMENSION_FIELDS) {
116
- dimensionSets[field] = new Set();
117
- }
118
- const scenarioStats = {};
119
- for (const key of SCENARIO_KEYS) {
120
- scenarioStats[key] = { hasData: false, min: null, max: null };
121
- }
122
- const dateSeen = new Set();
123
- let dateMin = null;
124
- let dateMax = null;
125
- const rows = Array.isArray(data) ? data : [];
126
- for (let i = 0; i < rows.length; i++) {
127
- const row = rows[i];
128
- if (row == null)
129
- continue;
130
- for (const field of DIMENSION_FIELDS) {
131
- const val = row[field];
132
- if (val != null && val !== "") {
133
- dimensionSets[field].add(String(val));
134
- }
135
- }
136
- for (const key of SCENARIO_KEYS) {
137
- const val = row[key];
138
- if (isNumericValue(val)) {
139
- const stat = scenarioStats[key];
140
- stat.hasData = true;
141
- if (stat.min === null || val < stat.min)
142
- stat.min = val;
143
- if (stat.max === null || val > stat.max)
144
- stat.max = val;
145
- }
146
- }
147
- const dateVal = row["date"];
148
- if (dateVal != null && dateVal !== "") {
149
- const dateStr = String(dateVal);
150
- dateSeen.add(dateStr);
151
- if (dateMin === null || dateStr < dateMin)
152
- dateMin = dateStr;
153
- if (dateMax === null || dateStr > dateMax)
154
- dateMax = dateStr;
155
- }
156
- }
157
- const scenarios = SCENARIO_KEYS.map((key) => ({
158
- key,
159
- hasData: scenarioStats[key].hasData,
160
- min: scenarioStats[key].min,
161
- max: scenarioStats[key].max,
162
- }));
163
- const availableScenarios = scenarios.filter((s) => s.hasData).map((s) => s.key);
164
- const rowGroup = buildDimensionMeta(dimensionSets["rowGroup"]);
165
- const category = buildDimensionMeta(dimensionSets["category"]);
166
- const subCategory = buildDimensionMeta(dimensionSets["subCategory"]);
167
- const columnGroup = buildDimensionMeta(dimensionSets["columnGroup"]);
168
- const columnSubGroup = buildDimensionMeta(dimensionSets["columnSubGroup"]);
169
- const dateRange = {
170
- min: dateMin,
171
- max: dateMax,
172
- hasData: dateSeen.size > 0,
173
- distinctCount: dateSeen.size,
174
- };
175
- let suggestedLevel = "category";
176
- if (subCategory.hasData) {
177
- suggestedLevel = "subCategory";
178
- }
179
- else if (category.hasData) {
180
- suggestedLevel = "category";
181
- }
182
- else if (rowGroup.hasData) {
183
- suggestedLevel = "rowGroup";
184
- }
185
- const suggestedOrder = suggestedLevel;
186
- const suggestedDateInterval = dateRange.hasData ? "auto" : null;
187
- return {
188
- rowCount: rows.length,
189
- scenarios,
190
- availableScenarios,
191
- rowGroup,
192
- category,
193
- subCategory,
194
- columnGroup,
195
- columnSubGroup,
196
- dateRange,
197
- suggestedLevel,
198
- suggestedOrder,
199
- suggestedDateInterval,
200
- calculatedAt: Date.now(),
201
- };
202
- }
203
-
204
- const bnDatasetCss = () => `bn-dataset{display:none}`;
205
-
206
- const Dataset = class {
207
- constructor(hostRef) {
208
- registerInstance(this, hostRef);
209
- /**
210
- * Commaseperated list of datasourcees
211
- * <br /><br />
212
- * example: <br />
213
- * ```source1,source2```
214
- *
215
- */
216
- this.datasources = "";
217
- /**
218
- * When true, bypasses the AlaSQL query engine and parses the body
219
- * content as raw JSON, writing it directly to the datasets store.
220
- */
221
- this.static = false;
222
- withComponentStatus(this);
223
- this.errors = withHasError(this);
224
- // @ts-ignore
225
- this.database = new alasql.Database();
226
- withDatasource(this, (name, data) => {
227
- this.database.tables[name] = { data };
228
- this.executeQuery();
229
- });
230
- withBodyObserver(this, (data) => {
231
- this.query = data;
232
- this.executeQuery();
233
- });
234
- }
235
- executeQuery() {
236
- if (!this.stores)
237
- this.stores = getStores(this.element);
238
- if (!!this.query && !!this.name) {
239
- let result;
240
- if (this.static) {
241
- try {
242
- result = JSON.parse(this.query);
243
- }
244
- catch (e) {
245
- console.error("Failed to parse static dataset", e);
246
- result = [];
247
- }
248
- }
249
- else {
250
- result = this.database.exec(this.query);
251
- }
252
- if (this.latestResult !== result) {
253
- this.latestResult = result;
254
- // @ts-ignore
255
- this.stores.datasets.set(this.name, result);
256
- // @ts-ignore
257
- this.stores.datasetsMeta.set(this.name, calculateDatasetMeta(result));
258
- }
259
- }
260
- }
261
- nameUpdated() {
262
- this.executeQuery();
263
- }
264
- render() {
265
- return h(Host, { key: '0aecc50d8aa488f49d6630fec9f0755d306f213e' });
266
- }
267
- get element() { return getElement(this); }
268
- static get watchers() { return {
269
- "name": [{
270
- "nameUpdated": 0
271
- }]
272
- }; }
273
- };
274
- Dataset.style = bnDatasetCss();
275
-
276
- export { Dataset as bn_dataset };
@@ -1,126 +0,0 @@
1
- import { r as registerInstance, h, F as Fragment, g as getElement } from './index-B27Ax6P_.js';
2
- import { g as getStores } from './context-protocol-DzeqZxg6.js';
3
- import { w as withHasError } from './withHasError-C48fTE2k.js';
4
-
5
- const bnLayoutCardCss = () => `:host{background:var(--bn-font-background, white);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);flex-direction:column;overflow:hidden;float:left;clear:left}.cardtitle{display:inline-flex}.image{margin-right:0.5em;margin-top:0.5em;z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}`;
6
-
7
- const LayoutCard = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.titleImage = "";
11
- this.titleBusinessUnit = "";
12
- this.titleOrder = "category";
13
- this.titleOrderDirection = "asc";
14
- this.titleDateFormat = "none";
15
- this.titleDateLink = "none";
16
- this.titleNamespace = "_system";
17
- this.footerText = "";
18
- this.cardLayout = "full";
19
- this.cardCustomTemplate = '"a b" "c d"';
20
- this.cardGridGap = "0";
21
- this.cardFitToContent = true;
22
- this.cardShowBorder = true;
23
- this.templateMap = new Map([
24
- ["split-vertical", '"a b"'],
25
- ["split-horizontal", '"a" "b"'],
26
- ["2x2", '"a b" "c d"'],
27
- ["3x3", '"a b c" "d e f" "g h i"'],
28
- ["4x4", '"a b c d" "e f g h" "i j k l" "m n o p"'],
29
- ["1-over-2", '"a a" "b c"'],
30
- ["2-over-1", '"a b" "c c"'],
31
- ["1-over-3", '"a a a " "b c d"'],
32
- ["3-over-1", '"a b c" "d d d"'],
33
- ["custom-template", '"a b" "c c c"'],
34
- ["gold3", '"a c" "b c"'],
35
- ["gold4", '"a b c c" "d d c c"'],
36
- ]);
37
- this.errors = withHasError(this);
38
- }
39
- connectedCallback() {
40
- this.stores = getStores(this.element);
41
- }
42
- getCommonStyles() {
43
- let height = "100%";
44
- let width = "100%";
45
- if (this.cardFitToContent === true) {
46
- width = "fit-content";
47
- height = "fit-content";
48
- }
49
- return {
50
- display: "grid",
51
- height: height,
52
- width: width,
53
- gap: this.cardGridGap + "px",
54
- };
55
- }
56
- getLayoutStyle() {
57
- return Object.assign(Object.assign({}, this.getCommonStyles()), { "grid-template-areas": this.getTemplatePattern(this.cardLayout) });
58
- }
59
- createDivAreaStyles(elements) {
60
- return elements.map((x) => ({
61
- overflow: "hidden",
62
- "grid-area": x,
63
- }));
64
- }
65
- getSlots(slotNames) {
66
- const items = this.createDivAreaStyles(slotNames);
67
- return (h(Fragment, null, items.map((value, index) => {
68
- return (h("div", { style: value }, h("slot", { name: "card-slot-" + index })));
69
- })));
70
- }
71
- extractSlotNames(styleElement) {
72
- if (styleElement == null) {
73
- return [];
74
- }
75
- const words = styleElement.match(/\b\w+\b/g);
76
- if (!words) {
77
- return [];
78
- }
79
- return Array.from(new Set(words));
80
- }
81
- getTemplatePattern(name) {
82
- console.warn("getTemplatePattern", { name: name });
83
- if (this.templateMap.has(name) === false && name !== "custom-template") {
84
- return '"a"';
85
- }
86
- if (name === "custom-template") {
87
- return this.cardCustomTemplate;
88
- }
89
- return this.templateMap.get(name);
90
- }
91
- async getNumberOfSlot(name) {
92
- const template = this.getTemplatePattern(name);
93
- return this.extractSlotNames(template).length;
94
- }
95
- componentDidUpdate() {
96
- // workaround for the render rotation issue
97
- }
98
- setCardClass() {
99
- if (this.cardShowBorder === true) {
100
- return "card_box border";
101
- }
102
- return "card_box";
103
- }
104
- prepareTitleImage(value) {
105
- if (value == null || value === "") {
106
- return "";
107
- }
108
- const assetsState = this.stores.assets.state;
109
- // for backward compatibility deprecated "asset:" prefix
110
- if (value.startsWith("asset:")) {
111
- return assetsState[value.substring(6)];
112
- }
113
- return assetsState[value] || value;
114
- }
115
- render() {
116
- const style = this.getLayoutStyle();
117
- const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
118
- return (
119
- // @ts-ignore
120
- h("bn-card", { key: 'cdc04f3414fa80148fc8be40cbaf0cac1035fca1', styles: this.styles, class: this.setCardClass() }, h("div", { key: '3374b14ec8a8a73de58f866b0c6a691ee0b8d2ae', class: "cardtitle" }, h("bn-title", { key: '23a6f991ad6b1a8b74066943b108f3666ae0c863', namespace: this.titleNamespace, "business-unit": this.titleBusinessUnit, scenarios: this.titleScenarios, variances: this.titleVariances, order: this.titleOrder, "order-direction": this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), this.titleImage != null && this.titleImage !== "" ? (h("img", { class: "image", src: this.prepareTitleImage(this.titleImage) })) : ("")), h("bn-body", { key: '06d86283489ea2db12d448b1d4b72b540ad352f8' }, h("div", { key: '659cfb06f4d756ffd4e1d08910c66a0751d71f9d', style: style }, this.getSlots(arrOfSlots))), h("bn-footer", { key: '8aa67fdf3bcbb465c7861f83f6371bc7f73ae75e', text: this.footerText, "page-number": 0, "display-page-number": "false" })));
121
- }
122
- get element() { return getElement(this); }
123
- };
124
- LayoutCard.style = bnLayoutCardCss();
125
-
126
- export { LayoutCard as bn_layout_card };
@@ -1,140 +0,0 @@
1
- import { r as registerInstance, h, F as Fragment, g as getElement } from './index-B27Ax6P_.js';
2
- import { w as withHasError } from './withHasError-C48fTE2k.js';
3
-
4
- const bnLayoutPageCss = () => `:host{background:var(--bn-font-background, white);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);flex-direction:column;overflow:hidden;float:left;clear:left}`;
5
-
6
- const LayoutPage = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.messageText = "";
10
- this.messageImage = "";
11
- this.titleBusinessUnit = "";
12
- this.titleOrder = "category";
13
- this.titleOrderDirection = "asc";
14
- this.titleDateFormat = "none";
15
- this.titleDateLink = "none";
16
- this.titleNamespace = "_system";
17
- this.footerDisplayPageNumber = true;
18
- this.pageLayout = "full";
19
- this.pageCustomTemplate = '"a b" "c d"';
20
- this.pageGridGap = "0";
21
- this.pageFitToContent = true;
22
- this.templateMap = new Map([
23
- ["split-vertical", '"a b"'],
24
- ["split-horizontal", '"a" "b"'],
25
- ["2x2", '"a b" "c d"'],
26
- ["3x3", '"a b c" "d e f" "g h i"'],
27
- ["4x4", '"a b c d" "e f g h" "i j k l" "m n o p"'],
28
- ["1-over-2", '"a a" "b c"'],
29
- ["2-over-1", '"a b" "c c"'],
30
- ["1-over-3", '"a a a " "b c d"'],
31
- ["3-over-1", '"a b c" "d d d"'],
32
- ["custom-template", '"a b" "c c c"'],
33
- ["gold3", '"a c" "b c"'],
34
- ["gold4", '"a b c c" "d d c c"'],
35
- ]);
36
- this.errors = withHasError(this);
37
- }
38
- getCommonStyles() {
39
- let height = "100%";
40
- let width = "100%";
41
- if (this.pageFitToContent === true) {
42
- width = "fit-content";
43
- height = "fit-content";
44
- }
45
- return {
46
- display: "grid",
47
- height: height,
48
- width: width,
49
- gap: this.pageGridGap + "px",
50
- };
51
- }
52
- getLayoutStyle() {
53
- return Object.assign(Object.assign({}, this.getCommonStyles()), { "grid-template-areas": this.getTemplateAreas(this.pageLayout), "grid-template-columns": this.getGridTemplateColumns(this.pageLayout) });
54
- }
55
- createDivAreaStyles(elements) {
56
- return elements.map((x) => ({
57
- width: "100%",
58
- overflow: "hidden",
59
- "grid-area": x,
60
- height: "100%",
61
- }));
62
- }
63
- getSlots(slotNames) {
64
- const items = this.createDivAreaStyles(slotNames);
65
- return (h(Fragment, null, items.map((value, index) => {
66
- return (h("div", { style: value }, h("slot", { name: "slot-" + index })));
67
- })));
68
- }
69
- extractSlotNames(styleElement) {
70
- if (styleElement == null) {
71
- return [];
72
- }
73
- const words = styleElement.match(/\b\w+\b/g);
74
- if (!words) {
75
- return [];
76
- }
77
- return Array.from(new Set(words));
78
- }
79
- getTemplateAreas(name) {
80
- if (this.templateMap.has(name) === false && name !== "custom-template") {
81
- return '"a"';
82
- }
83
- if (name === "custom-template") {
84
- return this.pageCustomTemplate;
85
- }
86
- return this.templateMap.get(name);
87
- }
88
- calculatePercentages(input) {
89
- const items = input.trim().split(/\s+/);
90
- const count = items.length;
91
- if (count === 0)
92
- return "100%";
93
- const percentage = (100 / count).toFixed(0) + "%";
94
- return Array(count).fill(percentage).join(" ");
95
- }
96
- getGridTemplateColumns(name) {
97
- if (this.templateMap.has(name) === false && name !== "custom-template") {
98
- return "100%";
99
- }
100
- let template;
101
- const pattern = /"[\w\d\s.]+"/g;
102
- if (name === "custom-template") {
103
- template = this.pageCustomTemplate;
104
- }
105
- else {
106
- template = this.templateMap.get(name);
107
- }
108
- const matches = template.match(pattern);
109
- return this.calculatePercentages(matches[0]);
110
- }
111
- async getNumberOfSlot(name) {
112
- const template = this.getTemplateAreas(name);
113
- return this.extractSlotNames(template).length;
114
- }
115
- componentDidUpdate() {
116
- // workaround for the render rotation issue
117
- const renderOrientation = this.element.closest("bn-context").getAttribute("render-orientation");
118
- if (renderOrientation && renderOrientation !== this.pageOrientation) {
119
- const page = this.element.shadowRoot.querySelector("bn-page");
120
- const layout = this.element.closest("bn-layout-page");
121
- if (layout && page) {
122
- page.style.transform = "rotate(-90deg) translate(-100%)";
123
- page.style.transformOrigin = "top left";
124
- layout.style.width = `${page.clientHeight}px`;
125
- layout.style.height = `${page.clientWidth}px`;
126
- }
127
- }
128
- }
129
- render() {
130
- const style = this.getLayoutStyle();
131
- const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
132
- return (
133
- // @ts-ignore
134
- h("bn-page", { key: '2f67c9b949ab18de247ea492c95b1e53e450fcca', styles: this.styles, format: this.pageFormat, orientation: this.pageOrientation }, h("bn-message", { key: '6fb865fe6cf9785c6a3932967d9969d5e0a4eda5', text: this.messageText, image: this.messageImage }), h("bn-title", { key: '3ba10325d834b364d0a68012f589ba5508877652', namespace: this.titleNamespace, "business-unit": this.titleBusinessUnit, scenarios: this.titleScenarios, variances: this.titleVariances, order: this.titleOrder, "order-direction": this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), h("bn-body", { key: '16bcb1e231d65b2f0e90c82d8e3ec1a84cc79c59' }, h("div", { key: '1408692a37d04686e5d9ad00bca7f1d24787b595', style: style }, this.getSlots(arrOfSlots))), h("bn-footer", { key: '83e924e38db44fb678490a8a4d12b264699fc3e2', text: this.footerText, "page-number": this.pageNumber, "display-page-number": this.footerDisplayPageNumber })));
135
- }
136
- get element() { return getElement(this); }
137
- };
138
- LayoutPage.style = bnLayoutPageCss();
139
-
140
- export { LayoutPage as bn_layout_page };