@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,144 +0,0 @@
1
- import { g as getStores, c as clearStoresCache } from './context-protocol-DzeqZxg6.js';
2
- import { r as runIfExisits } from './withHasError-C48fTE2k.js';
3
- import { g as getElement } from './index-B27Ax6P_.js';
4
-
5
- /**
6
- * Splits an array into two groups based on a predicate.
7
- * Used to separate `$`-prefixed datasource refs from dataset refs.
8
- * @returns Tuple of [matches, nonMatches]
9
- */
10
- const partition = (predicate, arr) => {
11
- const matches = [];
12
- const nonMatches = [];
13
- for (const item of arr) {
14
- (predicate(item) ? matches : nonMatches).push(item);
15
- }
16
- return [matches, nonMatches];
17
- };
18
- const WARN_DATASOURCE_ID = "WARN_use_dataset";
19
- /**
20
- * Emits a warning via the component's ErrorDispatcher when datasource refs
21
- * (`$name`) are used directly, nudging consumers toward bn-dataset wrappers
22
- * which provide query support and metadata.
23
- */
24
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
- const warnIfDatasource = (component, datasources) => {
26
- const errors = component.errors;
27
- if (!errors)
28
- return;
29
- if (datasources.length > 0) {
30
- const names = datasources.map((n) => n.substring(1)).join(", ");
31
- errors.addOrReplace({
32
- id: WARN_DATASOURCE_ID,
33
- type: "warning",
34
- message: `Using datasource(s) "${names}" directly. Prefer using a dataset (bn-dataset) for query support and metadata.`,
35
- });
36
- }
37
- else {
38
- errors.remove(WARN_DATASOURCE_ID);
39
- }
40
- };
41
- /**
42
- * Mixin that subscribes a Stencil component to one or more datasets/datasources.
43
- *
44
- * **Naming convention:** The `datasets` HTML attribute accepts a comma-separated list of names.
45
- * Names prefixed with `$` (e.g. `$revenue`) read directly from the raw datasources store;
46
- * unprefixed names read from the processed datasets store (populated by bn-dataset).
47
- *
48
- * The mixin installs a MutationObserver on the host element's `datasets` attribute so
49
- * bindings update automatically when the attribute is changed at runtime.
50
- *
51
- * @param component - The Stencil component instance (must expose a host element via `@Element()`)
52
- * @param onUpdate - Callback invoked with `(name, data)` whenever a subscribed dataset or datasource changes
53
- * @param onMetaUpdate - Optional callback invoked with `(name, meta)` when DatasetMeta changes for a subscribed dataset
54
- * @returns A function to programmatically replace the list of subscribed dataset names
55
- */
56
- const withDataset = (
57
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
58
- component, onUpdate, onMetaUpdate) => {
59
- let subscriptionSet;
60
- let subscriptionSource;
61
- let subscriptionMeta;
62
- let datasets = [];
63
- let datasources = [];
64
- let stores;
65
- const deliverMeta = (name) => {
66
- if (onMetaUpdate) {
67
- // @ts-ignore
68
- const meta = stores.datasetsMeta.get(name);
69
- if (meta)
70
- onMetaUpdate(name, meta);
71
- }
72
- };
73
- const observer = new MutationObserver((mutations) => {
74
- mutations.forEach((mutation) => {
75
- if (mutation.attributeName === "datasets") {
76
- [datasources, datasets] = partition((s) => s.startsWith("$"), getElement(component).getAttribute("datasets").split(","));
77
- warnIfDatasource(component, datasources);
78
- datasets.forEach((name) => {
79
- // @ts-ignore
80
- onUpdate(name, stores.datasets.get(name));
81
- deliverMeta(name);
82
- });
83
- datasources.forEach((name) => {
84
- // @ts-ignore
85
- onUpdate(name, stores.datasources.get(name.substring(1)));
86
- });
87
- }
88
- });
89
- });
90
- const connectedCallback = component["connectedCallback"];
91
- component["connectedCallback"] = () => {
92
- const element = getElement(component);
93
- stores = getStores(element);
94
- [datasources, datasets] = partition((s) => s.startsWith("$"), (element.getAttribute("datasets") || "").split(","));
95
- warnIfDatasource(component, datasources);
96
- datasets.forEach((name) => {
97
- // @ts-ignore
98
- onUpdate(name, stores.datasets.get(name));
99
- deliverMeta(name);
100
- });
101
- datasources.forEach((name) => {
102
- // @ts-ignore
103
- onUpdate(name, stores.datasources.get(name.substring(1)));
104
- });
105
- observer.observe(element, { attributes: true, attributeFilter: ["datasets"] });
106
- subscriptionSet = stores.datasets.on("set", (key, newVlaue) => {
107
- if (datasets.includes(key)) {
108
- onUpdate(key, newVlaue);
109
- }
110
- });
111
- subscriptionSource = stores.datasources.on("set", (key, newVlaue) => {
112
- if (datasources.includes("$" + key)) {
113
- onUpdate("$" + key, newVlaue);
114
- }
115
- });
116
- if (onMetaUpdate) {
117
- subscriptionMeta = stores.datasetsMeta.on("set", (key, newValue) => {
118
- if (datasets.includes(key)) {
119
- onMetaUpdate(key, newValue);
120
- }
121
- });
122
- }
123
- runIfExisits(connectedCallback, component);
124
- };
125
- const disconnectedCallback = component["disconnectedCallback"];
126
- component["disconnectedCallback"] = () => {
127
- observer.disconnect();
128
- runIfExisits(subscriptionSet);
129
- runIfExisits(subscriptionSource);
130
- runIfExisits(subscriptionMeta);
131
- clearStoresCache(getElement(component));
132
- runIfExisits(disconnectedCallback, component);
133
- };
134
- return (names) => {
135
- datasets = names;
136
- names.forEach((name) => {
137
- // @ts-ignore
138
- onUpdate(name, stores.datasets.get(name));
139
- deliverMeta(name);
140
- });
141
- };
142
- };
143
-
144
- export { withDataset as w };
@@ -1,539 +0,0 @@
1
- import { d as Scenarios, e as Sentiments, D as DataFormat, T as TableType, M as MeasureType, a as TableCategoryWidth, A as AggregationLevel, c as AxisLabelsMode } from './constants-kMyLevYy.js';
2
- import { D as DateDistance, a as DateLink } from './DateStringFactory-_Qiv0IvF.js';
3
- import { a as OrderColumn, O as OrderDirection } from './Order-B4fpLe_f.js';
4
- import { f as forceUpdate, g as getElement } from './index-B27Ax6P_.js';
5
- import { r as runIfExisits } from './withHasError-C48fTE2k.js';
6
-
7
- /**
8
- * Prop validators for Stencil @Watch handlers.
9
- *
10
- * Each validator returns an array of invalid items; an empty array means the input is valid.
11
- * These are used in component @Watch methods to warn about malformed attribute values
12
- * without crashing the component.
13
- */
14
- /**
15
- * Checks whether a value is blank, null, undefined, or the string `"null"`.
16
- * The string `"null"` check handles serialized null values from HTML attributes,
17
- * which arrive as the literal string "null" rather than a JS null.
18
- */
19
- function isBlankInput(value) {
20
- return value === null || value === undefined || value === "" || value === "null";
21
- }
22
- /**
23
- * Validates a comma-separated list of scenario identifiers.
24
- * The special value `"auto"` is always valid. Base scenarios are validated against
25
- * the Scenarios enum; remaining invalid entries are passed to `validateVariancesList`
26
- * for variance format checking (e.g. `d_ac1_pl1_pos`).
27
- */
28
- function validateScenarioList(value) {
29
- if (isBlankInput(value)) {
30
- return [];
31
- }
32
- if (value.trim().toLowerCase() === "auto") {
33
- return [];
34
- }
35
- const invalidScenarios = value === null || value === void 0 ? void 0 : value.split(",").filter((element) => !(element.toUpperCase().trim() in Scenarios));
36
- return validateVariancesList(invalidScenarios.toString());
37
- }
38
- /**
39
- * Validates variance identifiers in the format `d_<base>_<delta>_<sentiment>` or
40
- * `dr_<base>_<delta>_<sentiment>`. Each component is checked against the Scenarios
41
- * and Sentiments enums. Returns items that fail validation.
42
- */
43
- function validateVariancesList(value) {
44
- if (isBlankInput(value)) {
45
- return [];
46
- }
47
- const invalidScenarios = value
48
- .replace(";", ",")
49
- .split(",")
50
- .filter((element) => {
51
- var _a, _b, _c;
52
- const splittedElement = element.split("_");
53
- const scenarioSubtrahend = (_a = splittedElement[0]) === null || _a === void 0 ? void 0 : _a.replace(/^dr|^d/, "").toUpperCase().trim();
54
- const scenarioMinuend = (_b = splittedElement[1]) === null || _b === void 0 ? void 0 : _b.toUpperCase().trim();
55
- const scenarioSentiment = (_c = splittedElement[2]) === null || _c === void 0 ? void 0 : _c.toUpperCase().trim();
56
- return (splittedElement.length !== 3 ||
57
- !(scenarioSubtrahend in Scenarios) ||
58
- !(scenarioMinuend in Scenarios) ||
59
- !(scenarioSentiment in Sentiments));
60
- });
61
- return invalidScenarios;
62
- }
63
- function validateOrderList(value) {
64
- if (isBlankInput(value)) {
65
- return [];
66
- }
67
- if (value.trim().toLowerCase() === "auto") {
68
- return [];
69
- }
70
- const invalidScenarios = value.split(",").filter((element) => !(element.toUpperCase() in OrderColumn));
71
- return validateVariancesList(invalidScenarios.toString());
72
- }
73
- function isValidInteger(value) {
74
- if (isBlankInput(value)) {
75
- return false;
76
- }
77
- return Number.isInteger(Number(value));
78
- }
79
- function isValidNumber(value) {
80
- if (isBlankInput(value)) {
81
- return false;
82
- }
83
- return !Number.isNaN(Number(value));
84
- }
85
- function isValidDirection(value) {
86
- if (isBlankInput(value)) {
87
- return false;
88
- }
89
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in OrderDirection;
90
- }
91
- function isValidLevel(value) {
92
- if ((value === null || value === void 0 ? void 0 : value.toLowerCase()) === "auto") {
93
- return true;
94
- }
95
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in AggregationLevel;
96
- }
97
- function validateMeasureList(value) {
98
- if (isBlankInput(value)) {
99
- return [];
100
- }
101
- try {
102
- const newObj = JSON.parse(value);
103
- if (newObj instanceof Array) {
104
- return newObj.filter((elem) => !(elem.hasOwnProperty("name") && elem.hasOwnProperty("unit")));
105
- }
106
- }
107
- catch (e) {
108
- console.error("validateMeasureList: failed to parse JSON", e);
109
- }
110
- return ["Invalid JSON structure"];
111
- }
112
- function validateMarkerType(value) {
113
- if (isBlankInput(value)) {
114
- return [];
115
- }
116
- try {
117
- const newObj = JSON.parse(value);
118
- if (newObj instanceof Array) {
119
- return newObj.filter((elem) => !elem.hasOwnProperty("latitude") && !elem.hasOwnProperty("longitude") && !elem.hasOwnProperty("iconUrl"));
120
- }
121
- }
122
- catch (e) {
123
- throw e;
124
- }
125
- return ["Invalid JSON structure"];
126
- }
127
- function validateGpxType(value) {
128
- if (isBlankInput(value)) {
129
- return [];
130
- }
131
- try {
132
- const newObj = JSON.parse(value);
133
- if (newObj instanceof Array) {
134
- return newObj.filter((elem) => !elem.hasOwnProperty("file"));
135
- }
136
- }
137
- catch (e) {
138
- throw e;
139
- }
140
- return ["Invalid JSON structure"];
141
- }
142
- function validateGeojsonType(value) {
143
- if (isBlankInput(value)) {
144
- return [];
145
- }
146
- try {
147
- const newObj = JSON.parse(value);
148
- if (newObj instanceof Array) {
149
- return newObj.filter((elem) => !elem.hasOwnProperty("file"));
150
- }
151
- }
152
- catch (e) {
153
- throw e;
154
- }
155
- return ["Invalid JSON structure"];
156
- }
157
- function isValidDate(value) {
158
- const newDate = Date.parse(value);
159
- return Number.isInteger(newDate);
160
- }
161
- function isValidDateLink(value) {
162
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in DateLink;
163
- }
164
- function isValidDateFormat(value) {
165
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in DateDistance;
166
- }
167
- function isValidAxisLabelsMode(value) {
168
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in AxisLabelsMode;
169
- }
170
- function isValidDataFormat(value) {
171
- if (isBlankInput(value)) {
172
- return false;
173
- }
174
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in DataFormat;
175
- }
176
- function isValidBoolean(value) {
177
- if (isBlankInput(value)) {
178
- return false;
179
- }
180
- const validValues = ["true", "false", true, false];
181
- return validValues.some((elem) => elem === value);
182
- }
183
- function isValidTableType(value) {
184
- if (isBlankInput(value)) {
185
- return false;
186
- }
187
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in TableType;
188
- }
189
- function validateThereOfJsonStr(value) {
190
- if (isBlankInput(value)) {
191
- return [];
192
- }
193
- try {
194
- const jsonObject = JSON.parse(value);
195
- if (jsonObject instanceof Array) {
196
- // return newObj.filter(elem => elem.hasOwnProperty('rowgroup') && elem.hasOwnProperty('category') && elem.hasOwnProperty('subcategory'))
197
- return jsonObject.filter((elem) => !(elem.hasOwnProperty("rowGroup") && elem.hasOwnProperty("category") && elem.hasOwnProperty("subCategory")));
198
- }
199
- }
200
- catch (err) {
201
- console.error("validateThereOfJsonStr: failed to parse JSON", err);
202
- }
203
- return ["Invalid JSON structure"];
204
- }
205
- function validatePartOfJsonStr(value) {
206
- if (isBlankInput(value)) {
207
- return [];
208
- }
209
- try {
210
- const jsonObject = JSON.parse(value);
211
- if (jsonObject instanceof Array) {
212
- // return newObj.filter(elem => elem.hasOwnProperty('rowgroup') && elem.hasOwnProperty('category') && elem.hasOwnProperty('subcategory'))
213
- return jsonObject.filter((elem) => !(elem.hasOwnProperty("rowGroup") && elem.hasOwnProperty("category")));
214
- }
215
- }
216
- catch (e) {
217
- console.error("validatePartOfJsonStr: failed to parse JSON", e);
218
- }
219
- return ["Invalid JSON structure"];
220
- }
221
- function isValidMeasureType(value) {
222
- return (value === null || value === void 0 ? void 0 : value.trim().toUpperCase()) in MeasureType;
223
- }
224
- /**
225
- * Validates a measure-scale attribute value.
226
- * Accepted values: `"_"` (no scaling), SI prefix letters (k, M, G, T, P, E, Z, Y, m, etc.),
227
- * or auto-detection modes `"GREATEST"` / `"LEAST"`.
228
- */
229
- function isValidMeasureScale(value) {
230
- return (["_", "k", "M", "G", "T", "P", "E", "Z", "Y", "m", "μ", "n", "p", "P", "f", "a", "z", "y"].includes(value === null || value === void 0 ? void 0 : value.trim()) || ["GREATEST", "LEAST"].includes(value === null || value === void 0 ? void 0 : value.trim().toUpperCase()));
231
- }
232
- function isTableCategoryWidth(value) {
233
- return (value === null || value === void 0 ? void 0 : value.toUpperCase().trim()) in TableCategoryWidth;
234
- }
235
- function validateColumnThereOfJsonStr(value) {
236
- if (isBlankInput(value)) {
237
- return [];
238
- }
239
- try {
240
- const jsonObject = JSON.parse(value);
241
- return jsonObject.filter((elem) => !(elem.hasOwnProperty("scenario") && elem.hasOwnProperty("name") && elem.hasOwnProperty("subGroups")));
242
- }
243
- catch (e) {
244
- console.error("validateColumnThereOfJsonStr: failed to parse JSON", e);
245
- }
246
- return ["Invalid JSON structure"];
247
- }
248
- function validateStackConfig(value) {
249
- if (isBlankInput(value)) {
250
- return [];
251
- }
252
- try {
253
- const config = JSON.parse(value);
254
- if (typeof config !== "object" || config === null || Array.isArray(config)) {
255
- return ["stack: must be a JSON object"];
256
- }
257
- const errors = [];
258
- if (!config.hasOwnProperty("by")) {
259
- errors.push("stack: 'by' is required");
260
- }
261
- else {
262
- const validBy = ["scenario", "category", "subcategory", "rowgroup"];
263
- if (!validBy.includes(config.by)) {
264
- errors.push(`stack: 'by' must be one of: ${validBy.join(", ")}`);
265
- }
266
- }
267
- if (config.hasOwnProperty("mode")) {
268
- const validModes = ["absolute", "relative", "absolute-relative"];
269
- if (!validModes.includes(config.mode)) {
270
- errors.push(`stack: 'mode' must be one of: ${validModes.join(", ")}`);
271
- }
272
- }
273
- if (config.hasOwnProperty("order")) {
274
- const validOrders = ["asc", "desc", "dataset"];
275
- if (!validOrders.includes(config.order)) {
276
- errors.push(`stack: 'order' must be one of: ${validOrders.join(", ")}`);
277
- }
278
- }
279
- return errors;
280
- }
281
- catch (_e) {
282
- return ["stack: invalid JSON"];
283
- }
284
- }
285
-
286
- class StyleSheet {
287
- constructor() {
288
- this.cache = new Map();
289
- this.tag = StyleSheet.makeStyleTag();
290
- }
291
- static makeStyleTag() {
292
- const tag = document.createElement("style");
293
- tag.type = "text/css";
294
- tag.setAttribute("data-bn-computed-style", "");
295
- tag.append(document.createTextNode(""));
296
- (document.head || document.querySelector("head")).append(tag);
297
- return tag;
298
- }
299
- apply(data) {
300
- data.forEach((value) => this.cache.set(value.className, value.style));
301
- this.tag.innerHTML = Array.from(this.cache.values())
302
- .map((value) => value)
303
- .join("\n");
304
- }
305
- }
306
- const styleSheet = new StyleSheet();
307
-
308
- /* eslint-disable */
309
- // Inspired by https://github.com/garycourt/murmurhash-js
310
- // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
311
- function murmur2(str) {
312
- // 'm' and 'r' are mixing constants generated offline.
313
- // They're not really 'magic', they just happen to work well.
314
- // const m = 0x5bd1e995;
315
- // const r = 24;
316
- // Initialize the hash
317
- var h = 0; // Mix 4 bytes at a time into the hash
318
-
319
- var k,
320
- i = 0,
321
- len = str.length;
322
-
323
- for (; len >= 4; ++i, len -= 4) {
324
- k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
325
- k =
326
- /* Math.imul(k, m): */
327
- (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
328
- k ^=
329
- /* k >>> r: */
330
- k >>> 24;
331
- h =
332
- /* Math.imul(k, m): */
333
- (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
334
- /* Math.imul(h, m): */
335
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
336
- } // Handle the last few bytes of the input array
337
-
338
-
339
- switch (len) {
340
- case 3:
341
- h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
342
-
343
- case 2:
344
- h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
345
-
346
- case 1:
347
- h ^= str.charCodeAt(i) & 0xff;
348
- h =
349
- /* Math.imul(h, m): */
350
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
351
- } // Do a few final mixes of the hash to ensure the last few
352
- // bytes are well-incorporated.
353
-
354
-
355
- h ^= h >>> 13;
356
- h =
357
- /* Math.imul(h, m): */
358
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
359
- return ((h ^ h >>> 15) >>> 0).toString(36);
360
- }
361
-
362
- const transofrmToUnitString = (value) => {
363
- if (isValidNumber(value)) {
364
- return `${value}px`;
365
- }
366
- else {
367
- return value;
368
- }
369
- };
370
- const width = {
371
- className: "w",
372
- cssName: "width",
373
- attrName: "width",
374
- transform: transofrmToUnitString,
375
- };
376
- const height = {
377
- className: "h",
378
- cssName: "height",
379
- attrName: "height",
380
- transform: transofrmToUnitString,
381
- };
382
- const position = {
383
- className: "pst",
384
- cssName: "position",
385
- attrName: "position",
386
- };
387
- const top = {
388
- className: "top",
389
- cssName: "top",
390
- attrName: "top",
391
- transform: transofrmToUnitString,
392
- };
393
- const right = {
394
- className: "rgt",
395
- cssName: "right",
396
- attrName: "right",
397
- transform: transofrmToUnitString,
398
- };
399
- const bottom = {
400
- className: "btm",
401
- cssName: "bottom",
402
- attrName: "bottom",
403
- transform: transofrmToUnitString,
404
- };
405
- const left = {
406
- className: "lft",
407
- cssName: "left",
408
- attrName: "left",
409
- transform: transofrmToUnitString,
410
- };
411
- const fontSize = {
412
- className: "fts",
413
- cssName: "font-size",
414
- attrName: "font-size",
415
- transform: transofrmToUnitString,
416
- };
417
- const gridColumn = {
418
- className: "gdc",
419
- cssName: "grid-column",
420
- attrName: "grid-column",
421
- };
422
- const gridRow = {
423
- className: "gdr",
424
- cssName: "grid-row",
425
- attrName: "grid-row",
426
- };
427
- const attributes = {
428
- width: width,
429
- height: height,
430
- position: position,
431
- top: top,
432
- right: right,
433
- bottom: bottom,
434
- left: left,
435
- "font-size": fontSize,
436
- "grid-column": gridColumn,
437
- "grid-row": gridRow,
438
- };
439
- const attributesNames = Object.keys(attributes);
440
- function getClassName(attr, value) {
441
- const valueKey = murmur2(value);
442
- return `bn-c-${attr.className}_${valueKey}`;
443
- }
444
- function getStyle(attr, className, value) {
445
- return `.${className} {${attr.cssName}: ${value};}`;
446
- }
447
- function getCSS(attr, value) {
448
- const className = getClassName(attr, value);
449
- const style = getStyle(attr, className, value);
450
- return { className, style };
451
- }
452
- const apply = (el) => {
453
- const map = new Map();
454
- //map.set("position", getCSS(attributes["position"], "absolute"))
455
- attributesNames.forEach((name) => {
456
- const value = el.getAttribute(name);
457
- if (value) {
458
- if (["top", "left", "right", "bottom"].includes(name)) {
459
- map.set("position", getCSS(attributes["position"], "absolute"));
460
- }
461
- const transform = attributes[name].transform ||
462
- function (v) {
463
- return v;
464
- };
465
- map.set(name, getCSS(attributes[name], transform(value)));
466
- }
467
- });
468
- return map;
469
- };
470
-
471
- /**
472
- * Shared MutationObserver that watches for style-attribute changes on all
473
- * subscribed elements. When a monitored attribute changes, it re-applies the
474
- * Styletron CSS-in-JS stylesheet and updates the element's className,
475
- * preserving any non-`bn-c-` classes.
476
- */
477
- const observer = new MutationObserver((mutations) => {
478
- for (const mutation of mutations) {
479
- const el = mutation.target;
480
- const map = apply(el);
481
- styleSheet.apply(map);
482
- const classes = Array.from(map.values()).map((value) => value.className);
483
- el.className = el.className
484
- .split(" ")
485
- .filter((value) => !value.startsWith("bn-c-"))
486
- .concat(...classes)
487
- .join(" ");
488
- forceUpdate(el);
489
- }
490
- });
491
- /**
492
- * Registers an element with the Styletron observer: applies the initial
493
- * stylesheet, assigns generated `bn-c-*` class names, and begins watching
494
- * for attribute mutations that affect styling.
495
- */
496
- const subscribe = (el) => {
497
- const map = apply(el);
498
- styleSheet.apply(map);
499
- const classes = Array.from(map.values()).map((value) => value.className);
500
- el.className = el.className
501
- .split(" ")
502
- .filter((value) => !value.startsWith("bn-c-"))
503
- .concat(...classes)
504
- .join(" ");
505
- observer.observe(el, { attributes: true, attributeFilter: attributesNames, childList: false, subtree: false });
506
- };
507
- /**
508
- * Mixin that integrates Styletron CSS-in-JS styling into a Stencil component.
509
- *
510
- * On `connectedCallback`, it subscribes the host element to a shared
511
- * MutationObserver that watches for style-related attribute changes. When
512
- * attributes change, the Styletron stylesheet is re-applied and the element's
513
- * class list is updated with generated `bn-c-*` class names, followed by a
514
- * forced re-render.
515
- *
516
- * @param component - The Stencil component instance
517
- */
518
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
519
- const withStyled = (component) => {
520
- const cstrConnectedCallback = component["connectedCallback"];
521
- const cstrDisconnectedCallback = component["disconnectedCallback"];
522
- component["connectedCallback"] = () => {
523
- const elm = getElement(component);
524
- if (elm) {
525
- subscribe(elm);
526
- }
527
- else {
528
- throw new Error(`Can't find element field in component ${undefined}`);
529
- }
530
- runIfExisits(cstrConnectedCallback, component);
531
- };
532
- component["disconnectedCallback"] = () => {
533
- // MutationObserver has no per-element unobserve — the shared observer
534
- // automatically stops firing for elements removed from the DOM.
535
- runIfExisits(cstrDisconnectedCallback, component);
536
- };
537
- };
538
-
539
- export { validateColumnThereOfJsonStr as A, validateVariancesList as a, isValidLevel as b, validateOrderList as c, isValidDirection as d, isValidInteger as e, isValidBoolean as f, isValidMeasureScale as g, validateStackConfig as h, isValidNumber as i, isBlankInput as j, isValidDateFormat as k, isValidAxisLabelsMode as l, validateMarkerType as m, validateGpxType as n, validateGeojsonType as o, validateMeasureList as p, isValidDate as q, isValidDateLink as r, isValidDataFormat as s, isValidTableType as t, validateThereOfJsonStr as u, validateScenarioList as v, withStyled as w, validatePartOfJsonStr as x, isValidMeasureType as y, isTableCategoryWidth as z };