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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/LICENSE +203 -21
  2. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  3. package/dist/bn-template-engine/p-095f74d7.entry.js +1 -0
  4. package/dist/bn-template-engine/p-14318b0d.entry.js +1 -0
  5. package/dist/bn-template-engine/{p-c9f050bf.entry.js → p-2133e02b.entry.js} +1 -1
  6. package/dist/bn-template-engine/p-6b469808.entry.js +1 -0
  7. package/dist/bn-template-engine/p-7HSTE79g.js +1 -0
  8. package/dist/bn-template-engine/p-B4JfKvVT.js +1 -0
  9. package/dist/bn-template-engine/p-B_d-jp99.js +2 -0
  10. package/dist/bn-template-engine/p-Bi2wx-el.js +1 -0
  11. package/dist/bn-template-engine/p-CWiZks2h.js +1 -0
  12. package/dist/bn-template-engine/{p-BQp6ZPYW.js → p-DSXNgKLa.js} +1 -1
  13. package/dist/bn-template-engine/p-c2cbb8ea.entry.js +1 -0
  14. package/dist/bn-template-engine/p-e783733e.entry.js +1 -0
  15. package/dist/bn-template-engine/p-e94b4e31.entry.js +1 -0
  16. package/dist/bn-template-engine/p-fdb3e99a.entry.js +1 -0
  17. package/dist/cjs/bn-asset_21.cjs.entry.js +23995 -0
  18. package/dist/cjs/bn-grid.cjs.entry.js +6 -13
  19. package/dist/cjs/bn-image.cjs.entry.js +6 -13
  20. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -7
  21. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  22. package/dist/cjs/bn-template.cjs.entry.js +4 -6
  23. package/dist/cjs/bn-text.cjs.entry.js +10 -19
  24. package/dist/cjs/bn-tree.cjs.entry.js +11 -14
  25. package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-B_jipZpJ.js} +6 -2
  26. package/dist/cjs/editor-companion.cjs.entry.js +3 -3
  27. package/dist/cjs/{index-CScBFiS1.js → index-CDKG4xmO.js} +2 -2
  28. package/dist/cjs/loader.cjs.js +2 -2
  29. package/dist/cjs/scaling-eyzCrFB8.js +329 -0
  30. package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-D7BKWN2N.js} +2 -2
  31. package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-Cl2gTQzA.js} +106 -2
  32. package/dist/{esm/luxon-DbyXf6dF.js → cjs/withStyled-V7xz_x1c.js} +1406 -1
  33. package/dist/collection/collection-manifest.json +2 -10
  34. package/dist/collection/components/bn-body/bn-body.css +1 -0
  35. package/dist/collection/components/bn-card/bn-card.css +2 -0
  36. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +368 -130
  37. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +34 -10
  38. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
  39. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
  40. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
  41. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
  42. package/dist/collection/components/bn-chart-time/bn-chart-time.css +1 -1
  43. package/dist/collection/components/bn-chart-time/bn-chart-time.js +172 -51
  44. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +22 -9
  45. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
  46. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
  47. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
  48. package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
  49. package/dist/collection/components/bn-datasource/bn-datasource.js +173 -8
  50. package/dist/collection/components/bn-layout-card/bn-layout-card.css +3 -2
  51. package/dist/collection/components/bn-layout-card/bn-layout-card.js +207 -32
  52. package/dist/collection/components/bn-layout-page/bn-layout-page.css +1 -3
  53. package/dist/collection/components/bn-layout-page/bn-layout-page.js +172 -43
  54. package/dist/collection/components/bn-message/bn-message.js +1 -1
  55. package/dist/collection/components/bn-page/bn-page.js +1 -1
  56. package/dist/collection/components/bn-scaling-group/bn-scaling-group.css +3 -0
  57. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +136 -0
  58. package/dist/collection/components/bn-table/bn-table.js +201 -58
  59. package/dist/collection/components/bn-table/ibcs-table.css +7 -5
  60. package/dist/collection/components/bn-table/ibcs-table.js +91 -5
  61. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +79 -31
  62. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
  63. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
  64. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
  65. package/dist/collection/components/bn-template/bn-template.js +1 -1
  66. package/dist/collection/components/bn-text/bn-text.js +1 -1
  67. package/dist/collection/components/bn-title/bn-title.js +1 -9
  68. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -4
  69. package/dist/collection/components/bn-tree/bn-tree.js +5 -1
  70. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  71. package/dist/collection/stores/componentStyles.js +2 -0
  72. package/dist/collection/stores/createScopedStores.js +3 -1
  73. package/dist/collection/utils/DateStringFactory.js +0 -1
  74. package/dist/collection/utils/constants.js +35 -5
  75. package/dist/collection/utils/contentDecoder.js +28 -0
  76. package/dist/collection/utils/layoutObserver.js +88 -0
  77. package/dist/collection/utils/parentDimensions.js +57 -10
  78. package/dist/collection/utils/stackColors.js +2 -2
  79. package/dist/collection/utils/validate.js +5 -2
  80. package/dist/collection/utils/withInheritedProps.js +152 -0
  81. package/dist/collection/utils/withScalingGroup.js +66 -0
  82. package/dist/components/DataFormatDigits.js +1 -1
  83. package/dist/components/DateStringFactory.js +1 -1
  84. package/dist/components/Order.js +1 -1
  85. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  86. package/dist/components/bn-body2.js +1 -1
  87. package/dist/components/bn-card2.js +1 -1
  88. package/dist/components/bn-chart-structure.js +1 -1
  89. package/dist/components/bn-chart-time.js +1 -1
  90. package/dist/components/bn-dataset.js +1 -1
  91. package/dist/components/bn-datasource.js +1 -1
  92. package/dist/components/bn-layout-card.js +1 -1
  93. package/dist/components/bn-layout-page.js +1 -1
  94. package/dist/components/bn-message2.js +1 -1
  95. package/dist/components/bn-page2.js +1 -1
  96. package/dist/components/{test-runner-time.d.ts → bn-scaling-group.d.ts} +4 -4
  97. package/dist/components/bn-scaling-group.js +1 -0
  98. package/dist/components/bn-table.js +1 -1
  99. package/dist/components/bn-template.js +1 -1
  100. package/dist/components/bn-text.js +1 -1
  101. package/dist/components/bn-title2.js +1 -1
  102. package/dist/components/bn-tree.js +1 -1
  103. package/dist/components/contentDecoder.js +1 -0
  104. package/dist/components/context-protocol.js +1 -1
  105. package/dist/components/editor-companion.js +1 -1
  106. package/dist/components/emotion-hash.esm.js +1 -0
  107. package/dist/components/ibcs-chart-structure2.js +1 -1
  108. package/dist/components/ibcs-chart-time2.js +1 -1
  109. package/dist/components/ibcs-table2.js +1 -1
  110. package/dist/components/ibcs-title2.js +1 -1
  111. package/dist/components/ibcsRuleSet.js +1 -1
  112. package/dist/components/layoutObserver.js +1 -0
  113. package/dist/components/scaling.js +1 -1
  114. package/dist/components/validate.js +1 -1
  115. package/dist/components/withHasError.js +1 -1
  116. package/dist/components/withInheritedProps.js +1 -0
  117. package/dist/components/withStyled.js +1 -1
  118. package/dist/esm/bn-asset_21.entry.js +23973 -0
  119. package/dist/esm/bn-grid.entry.js +4 -11
  120. package/dist/esm/bn-image.entry.js +4 -11
  121. package/dist/esm/bn-internationalization.entry.js +4 -6
  122. package/dist/esm/bn-template-engine.js +3 -3
  123. package/dist/esm/bn-template.entry.js +3 -5
  124. package/dist/esm/bn-text.entry.js +6 -15
  125. package/dist/esm/bn-tree.entry.js +9 -12
  126. package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-D-o_UZ33.js} +6 -2
  127. package/dist/esm/editor-companion.entry.js +3 -3
  128. package/dist/esm/{index-B27Ax6P_.js → index-B_d-jp99.js} +2 -2
  129. package/dist/esm/loader.js +3 -3
  130. package/dist/esm/scaling-BzbiBnuN.js +324 -0
  131. package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-AFk2wwHT.js} +2 -2
  132. package/dist/esm/{withHasError-C48fTE2k.js → withHasError-DW_vMDUp.js} +106 -2
  133. package/dist/{cjs/luxon-8hyy5YD7.js → esm/withStyled-5RqF8WBL.js} +1371 -2
  134. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +163 -110
  135. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +4 -3
  136. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  137. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
  138. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  139. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +29 -12
  140. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +4 -3
  141. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
  142. package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
  143. package/dist/types/components/bn-datasource/bn-datasource.d.ts +48 -5
  144. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +153 -0
  145. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +160 -1
  146. package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +37 -0
  147. package/dist/types/components/bn-table/bn-table.d.ts +32 -17
  148. package/dist/types/components/bn-table/ibcs-table.d.ts +20 -0
  149. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
  150. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +1 -0
  151. package/dist/types/components/bn-title/bn-title.d.ts +0 -1
  152. package/dist/types/components.d.ts +438 -461
  153. package/dist/types/context/context-protocol.d.ts +2 -1
  154. package/dist/types/stores/componentStyles.d.ts +2 -0
  155. package/dist/types/stores/createScopedStores.d.ts +1 -0
  156. package/dist/types/utils/constants.d.ts +23 -5
  157. package/dist/types/utils/contentDecoder.d.ts +12 -0
  158. package/dist/types/utils/layoutObserver.d.ts +27 -0
  159. package/dist/types/utils/parentDimensions.d.ts +7 -2
  160. package/dist/types/utils/validate.d.ts +1 -0
  161. package/dist/types/utils/withInheritedProps.d.ts +38 -0
  162. package/dist/types/utils/withScalingGroup.d.ts +14 -0
  163. package/package.json +4 -4
  164. package/readme.md +2 -3
  165. package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
  166. package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  167. package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
  168. package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
  169. package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
  170. package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
  171. package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
  172. package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
  173. package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
  174. package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
  175. package/dist/bn-template-engine/assets/icons/pin.png +0 -0
  176. package/dist/bn-template-engine/p--TeDldm8.js +0 -1
  177. package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
  178. package/dist/bn-template-engine/p-1jFf17Vj.js +0 -1
  179. package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
  180. package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
  181. package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
  182. package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
  183. package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
  184. package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
  185. package/dist/bn-template-engine/p-65f8962a.entry.js +0 -1
  186. package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
  187. package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
  188. package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
  189. package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
  190. package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
  191. package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
  192. package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
  193. package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
  194. package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
  195. package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
  196. package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
  197. package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
  198. package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
  199. package/dist/bn-template-engine/p-BFTU3MAI.js +0 -1
  200. package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
  201. package/dist/bn-template-engine/p-BYmPQYxx.js +0 -1
  202. package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
  203. package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
  204. package/dist/bn-template-engine/p-CY1RzLjU.js +0 -1
  205. package/dist/bn-template-engine/p-CfWnag33.js +0 -1
  206. package/dist/bn-template-engine/p-CnI71OA9.js +0 -1
  207. package/dist/bn-template-engine/p-Cp4MVxCu.js +0 -1
  208. package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
  209. package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
  210. package/dist/bn-template-engine/p-_LBTIfNN.js +0 -1
  211. package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
  212. package/dist/bn-template-engine/p-ad94cf63.entry.js +0 -1
  213. package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
  214. package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
  215. package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
  216. package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
  217. package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
  218. package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
  219. package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
  220. package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
  221. package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
  222. package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
  223. package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
  224. package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
  225. package/dist/cjs/DataFormatDigits-DmTbhF8q.js +0 -142
  226. package/dist/cjs/DateStringFactory-Dn0aRj2Y.js +0 -453
  227. package/dist/cjs/Order-B4NIqQWe.js +0 -129
  228. package/dist/cjs/SVGVariancesStyleGroup-Czizhngt.js +0 -7973
  229. package/dist/cjs/StringAdapter-0EbYMkR0.js +0 -136
  230. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
  231. package/dist/cjs/alasql.min-C_nHTuEQ.js +0 -306
  232. package/dist/cjs/bn-asset.cjs.entry.js +0 -42
  233. package/dist/cjs/bn-body_3.cjs.entry.js +0 -413
  234. package/dist/cjs/bn-card.cjs.entry.js +0 -37
  235. package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -705
  236. package/dist/cjs/bn-chart-time.cjs.entry.js +0 -987
  237. package/dist/cjs/bn-component-style.cjs.entry.js +0 -44
  238. package/dist/cjs/bn-context_5.cjs.entry.js +0 -3380
  239. package/dist/cjs/bn-dataset.cjs.entry.js +0 -278
  240. package/dist/cjs/bn-layout-card.cjs.entry.js +0 -128
  241. package/dist/cjs/bn-layout-page.cjs.entry.js +0 -142
  242. package/dist/cjs/bn-map.cjs.entry.js +0 -425
  243. package/dist/cjs/bn-message.cjs.entry.js +0 -52
  244. package/dist/cjs/componentRegister-C17UFNPh.js +0 -72
  245. package/dist/cjs/constants-DHqQXSSd.js +0 -158
  246. package/dist/cjs/formatter-DIJL_crx.js +0 -215
  247. package/dist/cjs/ibcs-chart-structure.cjs.entry.js +0 -2906
  248. package/dist/cjs/ibcs-chart-time.cjs.entry.js +0 -4140
  249. package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
  250. package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
  251. package/dist/cjs/scaling-B23eOtsC.js +0 -67
  252. package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
  253. package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
  254. package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
  255. package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
  256. package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
  257. package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
  258. package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
  259. package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
  260. package/dist/cjs/withComponentStyle-C6KHnZHt.js +0 -128
  261. package/dist/cjs/withDataset-ZdN-RRTx.js +0 -146
  262. package/dist/cjs/withStyled-Bf-stJTR.js +0 -567
  263. package/dist/cjs/withTranslation-Cz0M5maV.js +0 -77
  264. package/dist/collection/components/bn-map/bn-map.css +0 -4
  265. package/dist/collection/components/bn-map/bn-map.js +0 -725
  266. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
  267. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  268. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
  269. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
  270. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
  271. package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
  272. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
  273. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
  274. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
  275. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
  276. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
  277. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
  278. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
  279. package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
  280. package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
  281. package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
  282. package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
  283. package/dist/collection/test-runner/test-runner-card.js +0 -36
  284. package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
  285. package/dist/collection/test-runner/test-runner-chart.js +0 -364
  286. package/dist/collection/test-runner/test-runner-map.js +0 -1901
  287. package/dist/collection/test-runner/test-runner-table.js +0 -469
  288. package/dist/collection/test-runner/test-runner-time.js +0 -399
  289. package/dist/collection/test-runner/test-runner-title.js +0 -108
  290. package/dist/components/bn-map.d.ts +0 -11
  291. package/dist/components/bn-map.js +0 -1
  292. package/dist/components/componentRegister.js +0 -1
  293. package/dist/components/ibcs-map.d.ts +0 -11
  294. package/dist/components/ibcs-map.js +0 -1
  295. package/dist/components/ibcs-map2.js +0 -1
  296. package/dist/components/test-runner-card.d.ts +0 -11
  297. package/dist/components/test-runner-card.js +0 -1
  298. package/dist/components/test-runner-chart-time.d.ts +0 -11
  299. package/dist/components/test-runner-chart-time.js +0 -1
  300. package/dist/components/test-runner-chart.d.ts +0 -11
  301. package/dist/components/test-runner-chart.js +0 -1
  302. package/dist/components/test-runner-map.d.ts +0 -11
  303. package/dist/components/test-runner-map.js +0 -1
  304. package/dist/components/test-runner-table.d.ts +0 -11
  305. package/dist/components/test-runner-table.js +0 -1
  306. package/dist/components/test-runner-time.js +0 -1
  307. package/dist/components/test-runner-title.d.ts +0 -11
  308. package/dist/components/test-runner-title.js +0 -1
  309. package/dist/components/withDataset.js +0 -1
  310. package/dist/esm/DataFormatDigits-Dt6gpIiZ.js +0 -137
  311. package/dist/esm/DateStringFactory-_Qiv0IvF.js +0 -451
  312. package/dist/esm/Order-B4fpLe_f.js +0 -125
  313. package/dist/esm/SVGVariancesStyleGroup-DlWgvpzs.js +0 -7961
  314. package/dist/esm/StringAdapter-BLvo1Krl.js +0 -133
  315. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
  316. package/dist/esm/alasql.min-CWu4NkIt.js +0 -304
  317. package/dist/esm/bn-asset.entry.js +0 -40
  318. package/dist/esm/bn-body_3.entry.js +0 -409
  319. package/dist/esm/bn-card.entry.js +0 -35
  320. package/dist/esm/bn-chart-structure.entry.js +0 -703
  321. package/dist/esm/bn-chart-time.entry.js +0 -985
  322. package/dist/esm/bn-component-style.entry.js +0 -42
  323. package/dist/esm/bn-context_5.entry.js +0 -3374
  324. package/dist/esm/bn-dataset.entry.js +0 -276
  325. package/dist/esm/bn-layout-card.entry.js +0 -126
  326. package/dist/esm/bn-layout-page.entry.js +0 -140
  327. package/dist/esm/bn-map.entry.js +0 -423
  328. package/dist/esm/bn-message.entry.js +0 -50
  329. package/dist/esm/componentRegister-BtVfu16B.js +0 -72
  330. package/dist/esm/constants-kMyLevYy.js +0 -158
  331. package/dist/esm/formatter-DTMEZ6d8.js +0 -211
  332. package/dist/esm/ibcs-chart-structure.entry.js +0 -2904
  333. package/dist/esm/ibcs-chart-time.entry.js +0 -4138
  334. package/dist/esm/ibcs-map.entry.js +0 -1073
  335. package/dist/esm/ibcs-title.entry.js +0 -350
  336. package/dist/esm/scaling-BBd0ZVLL.js +0 -64
  337. package/dist/esm/test-runner-card.entry.js +0 -25
  338. package/dist/esm/test-runner-chart-time.entry.js +0 -228
  339. package/dist/esm/test-runner-chart.entry.js +0 -324
  340. package/dist/esm/test-runner-map.entry.js +0 -1860
  341. package/dist/esm/test-runner-table.entry.js +0 -475
  342. package/dist/esm/test-runner-time.entry.js +0 -379
  343. package/dist/esm/test-runner-title.entry.js +0 -113
  344. package/dist/esm/withComponentStatus-elELReKt.js +0 -37
  345. package/dist/esm/withComponentStyle-NaxfakAG.js +0 -126
  346. package/dist/esm/withDataset-BT2VQCsG.js +0 -144
  347. package/dist/esm/withStyled-CpUTv74m.js +0 -539
  348. package/dist/esm/withTranslation-Do4GhleK.js +0 -75
  349. package/dist/types/components/bn-map/bn-map.d.ts +0 -122
  350. package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
  351. package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
  352. package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
  353. package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
  354. package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
  355. package/dist/types/test-runner/test-runner-card.d.ts +0 -3
  356. package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
  357. package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
  358. package/dist/types/test-runner/test-runner-map.d.ts +0 -3
  359. package/dist/types/test-runner/test-runner-table.d.ts +0 -3
  360. package/dist/types/test-runner/test-runner-time.d.ts +0 -3
  361. package/dist/types/test-runner/test-runner-title.d.ts +0 -3
@@ -1,567 +0,0 @@
1
- 'use strict';
2
-
3
- var constants = require('./constants-DHqQXSSd.js');
4
- var DateStringFactory = require('./DateStringFactory-Dn0aRj2Y.js');
5
- var Order = require('./Order-B4NIqQWe.js');
6
- var index = require('./index-CScBFiS1.js');
7
- var withHasError = require('./withHasError-Dspb3lIV.js');
8
-
9
- /**
10
- * Prop validators for Stencil @Watch handlers.
11
- *
12
- * Each validator returns an array of invalid items; an empty array means the input is valid.
13
- * These are used in component @Watch methods to warn about malformed attribute values
14
- * without crashing the component.
15
- */
16
- /**
17
- * Checks whether a value is blank, null, undefined, or the string `"null"`.
18
- * The string `"null"` check handles serialized null values from HTML attributes,
19
- * which arrive as the literal string "null" rather than a JS null.
20
- */
21
- function isBlankInput(value) {
22
- return value === null || value === undefined || value === "" || value === "null";
23
- }
24
- /**
25
- * Validates a comma-separated list of scenario identifiers.
26
- * The special value `"auto"` is always valid. Base scenarios are validated against
27
- * the Scenarios enum; remaining invalid entries are passed to `validateVariancesList`
28
- * for variance format checking (e.g. `d_ac1_pl1_pos`).
29
- */
30
- function validateScenarioList(value) {
31
- if (isBlankInput(value)) {
32
- return [];
33
- }
34
- if (value.trim().toLowerCase() === "auto") {
35
- return [];
36
- }
37
- const invalidScenarios = value === null || value === void 0 ? void 0 : value.split(",").filter((element) => !(element.toUpperCase().trim() in constants.Scenarios));
38
- return validateVariancesList(invalidScenarios.toString());
39
- }
40
- /**
41
- * Validates variance identifiers in the format `d_<base>_<delta>_<sentiment>` or
42
- * `dr_<base>_<delta>_<sentiment>`. Each component is checked against the Scenarios
43
- * and Sentiments enums. Returns items that fail validation.
44
- */
45
- function validateVariancesList(value) {
46
- if (isBlankInput(value)) {
47
- return [];
48
- }
49
- const invalidScenarios = value
50
- .replace(";", ",")
51
- .split(",")
52
- .filter((element) => {
53
- var _a, _b, _c;
54
- const splittedElement = element.split("_");
55
- const scenarioSubtrahend = (_a = splittedElement[0]) === null || _a === void 0 ? void 0 : _a.replace(/^dr|^d/, "").toUpperCase().trim();
56
- const scenarioMinuend = (_b = splittedElement[1]) === null || _b === void 0 ? void 0 : _b.toUpperCase().trim();
57
- const scenarioSentiment = (_c = splittedElement[2]) === null || _c === void 0 ? void 0 : _c.toUpperCase().trim();
58
- return (splittedElement.length !== 3 ||
59
- !(scenarioSubtrahend in constants.Scenarios) ||
60
- !(scenarioMinuend in constants.Scenarios) ||
61
- !(scenarioSentiment in constants.Sentiments));
62
- });
63
- return invalidScenarios;
64
- }
65
- function validateOrderList(value) {
66
- if (isBlankInput(value)) {
67
- return [];
68
- }
69
- if (value.trim().toLowerCase() === "auto") {
70
- return [];
71
- }
72
- const invalidScenarios = value.split(",").filter((element) => !(element.toUpperCase() in Order.OrderColumn));
73
- return validateVariancesList(invalidScenarios.toString());
74
- }
75
- function isValidInteger(value) {
76
- if (isBlankInput(value)) {
77
- return false;
78
- }
79
- return Number.isInteger(Number(value));
80
- }
81
- function isValidNumber(value) {
82
- if (isBlankInput(value)) {
83
- return false;
84
- }
85
- return !Number.isNaN(Number(value));
86
- }
87
- function isValidDirection(value) {
88
- if (isBlankInput(value)) {
89
- return false;
90
- }
91
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in Order.OrderDirection;
92
- }
93
- function isValidLevel(value) {
94
- if ((value === null || value === void 0 ? void 0 : value.toLowerCase()) === "auto") {
95
- return true;
96
- }
97
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in constants.AggregationLevel;
98
- }
99
- function validateMeasureList(value) {
100
- if (isBlankInput(value)) {
101
- return [];
102
- }
103
- try {
104
- const newObj = JSON.parse(value);
105
- if (newObj instanceof Array) {
106
- return newObj.filter((elem) => !(elem.hasOwnProperty("name") && elem.hasOwnProperty("unit")));
107
- }
108
- }
109
- catch (e) {
110
- console.error("validateMeasureList: failed to parse JSON", e);
111
- }
112
- return ["Invalid JSON structure"];
113
- }
114
- function validateMarkerType(value) {
115
- if (isBlankInput(value)) {
116
- return [];
117
- }
118
- try {
119
- const newObj = JSON.parse(value);
120
- if (newObj instanceof Array) {
121
- return newObj.filter((elem) => !elem.hasOwnProperty("latitude") && !elem.hasOwnProperty("longitude") && !elem.hasOwnProperty("iconUrl"));
122
- }
123
- }
124
- catch (e) {
125
- throw e;
126
- }
127
- return ["Invalid JSON structure"];
128
- }
129
- function validateGpxType(value) {
130
- if (isBlankInput(value)) {
131
- return [];
132
- }
133
- try {
134
- const newObj = JSON.parse(value);
135
- if (newObj instanceof Array) {
136
- return newObj.filter((elem) => !elem.hasOwnProperty("file"));
137
- }
138
- }
139
- catch (e) {
140
- throw e;
141
- }
142
- return ["Invalid JSON structure"];
143
- }
144
- function validateGeojsonType(value) {
145
- if (isBlankInput(value)) {
146
- return [];
147
- }
148
- try {
149
- const newObj = JSON.parse(value);
150
- if (newObj instanceof Array) {
151
- return newObj.filter((elem) => !elem.hasOwnProperty("file"));
152
- }
153
- }
154
- catch (e) {
155
- throw e;
156
- }
157
- return ["Invalid JSON structure"];
158
- }
159
- function isValidDate(value) {
160
- const newDate = Date.parse(value);
161
- return Number.isInteger(newDate);
162
- }
163
- function isValidDateLink(value) {
164
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in DateStringFactory.DateLink;
165
- }
166
- function isValidDateFormat(value) {
167
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in DateStringFactory.DateDistance;
168
- }
169
- function isValidAxisLabelsMode(value) {
170
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in constants.AxisLabelsMode;
171
- }
172
- function isValidDataFormat(value) {
173
- if (isBlankInput(value)) {
174
- return false;
175
- }
176
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in constants.DataFormat;
177
- }
178
- function isValidBoolean(value) {
179
- if (isBlankInput(value)) {
180
- return false;
181
- }
182
- const validValues = ["true", "false", true, false];
183
- return validValues.some((elem) => elem === value);
184
- }
185
- function isValidTableType(value) {
186
- if (isBlankInput(value)) {
187
- return false;
188
- }
189
- return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in constants.TableType;
190
- }
191
- function validateThereOfJsonStr(value) {
192
- if (isBlankInput(value)) {
193
- return [];
194
- }
195
- try {
196
- const jsonObject = JSON.parse(value);
197
- if (jsonObject instanceof Array) {
198
- // return newObj.filter(elem => elem.hasOwnProperty('rowgroup') && elem.hasOwnProperty('category') && elem.hasOwnProperty('subcategory'))
199
- return jsonObject.filter((elem) => !(elem.hasOwnProperty("rowGroup") && elem.hasOwnProperty("category") && elem.hasOwnProperty("subCategory")));
200
- }
201
- }
202
- catch (err) {
203
- console.error("validateThereOfJsonStr: failed to parse JSON", err);
204
- }
205
- return ["Invalid JSON structure"];
206
- }
207
- function validatePartOfJsonStr(value) {
208
- if (isBlankInput(value)) {
209
- return [];
210
- }
211
- try {
212
- const jsonObject = JSON.parse(value);
213
- if (jsonObject instanceof Array) {
214
- // return newObj.filter(elem => elem.hasOwnProperty('rowgroup') && elem.hasOwnProperty('category') && elem.hasOwnProperty('subcategory'))
215
- return jsonObject.filter((elem) => !(elem.hasOwnProperty("rowGroup") && elem.hasOwnProperty("category")));
216
- }
217
- }
218
- catch (e) {
219
- console.error("validatePartOfJsonStr: failed to parse JSON", e);
220
- }
221
- return ["Invalid JSON structure"];
222
- }
223
- function isValidMeasureType(value) {
224
- return (value === null || value === void 0 ? void 0 : value.trim().toUpperCase()) in constants.MeasureType;
225
- }
226
- /**
227
- * Validates a measure-scale attribute value.
228
- * Accepted values: `"_"` (no scaling), SI prefix letters (k, M, G, T, P, E, Z, Y, m, etc.),
229
- * or auto-detection modes `"GREATEST"` / `"LEAST"`.
230
- */
231
- function isValidMeasureScale(value) {
232
- 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()));
233
- }
234
- function isTableCategoryWidth(value) {
235
- return (value === null || value === void 0 ? void 0 : value.toUpperCase().trim()) in constants.TableCategoryWidth;
236
- }
237
- function validateColumnThereOfJsonStr(value) {
238
- if (isBlankInput(value)) {
239
- return [];
240
- }
241
- try {
242
- const jsonObject = JSON.parse(value);
243
- return jsonObject.filter((elem) => !(elem.hasOwnProperty("scenario") && elem.hasOwnProperty("name") && elem.hasOwnProperty("subGroups")));
244
- }
245
- catch (e) {
246
- console.error("validateColumnThereOfJsonStr: failed to parse JSON", e);
247
- }
248
- return ["Invalid JSON structure"];
249
- }
250
- function validateStackConfig(value) {
251
- if (isBlankInput(value)) {
252
- return [];
253
- }
254
- try {
255
- const config = JSON.parse(value);
256
- if (typeof config !== "object" || config === null || Array.isArray(config)) {
257
- return ["stack: must be a JSON object"];
258
- }
259
- const errors = [];
260
- if (!config.hasOwnProperty("by")) {
261
- errors.push("stack: 'by' is required");
262
- }
263
- else {
264
- const validBy = ["scenario", "category", "subcategory", "rowgroup"];
265
- if (!validBy.includes(config.by)) {
266
- errors.push(`stack: 'by' must be one of: ${validBy.join(", ")}`);
267
- }
268
- }
269
- if (config.hasOwnProperty("mode")) {
270
- const validModes = ["absolute", "relative", "absolute-relative"];
271
- if (!validModes.includes(config.mode)) {
272
- errors.push(`stack: 'mode' must be one of: ${validModes.join(", ")}`);
273
- }
274
- }
275
- if (config.hasOwnProperty("order")) {
276
- const validOrders = ["asc", "desc", "dataset"];
277
- if (!validOrders.includes(config.order)) {
278
- errors.push(`stack: 'order' must be one of: ${validOrders.join(", ")}`);
279
- }
280
- }
281
- return errors;
282
- }
283
- catch (_e) {
284
- return ["stack: invalid JSON"];
285
- }
286
- }
287
-
288
- class StyleSheet {
289
- constructor() {
290
- this.cache = new Map();
291
- this.tag = StyleSheet.makeStyleTag();
292
- }
293
- static makeStyleTag() {
294
- const tag = document.createElement("style");
295
- tag.type = "text/css";
296
- tag.setAttribute("data-bn-computed-style", "");
297
- tag.append(document.createTextNode(""));
298
- (document.head || document.querySelector("head")).append(tag);
299
- return tag;
300
- }
301
- apply(data) {
302
- data.forEach((value) => this.cache.set(value.className, value.style));
303
- this.tag.innerHTML = Array.from(this.cache.values())
304
- .map((value) => value)
305
- .join("\n");
306
- }
307
- }
308
- const styleSheet = new StyleSheet();
309
-
310
- /* eslint-disable */
311
- // Inspired by https://github.com/garycourt/murmurhash-js
312
- // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
313
- function murmur2(str) {
314
- // 'm' and 'r' are mixing constants generated offline.
315
- // They're not really 'magic', they just happen to work well.
316
- // const m = 0x5bd1e995;
317
- // const r = 24;
318
- // Initialize the hash
319
- var h = 0; // Mix 4 bytes at a time into the hash
320
-
321
- var k,
322
- i = 0,
323
- len = str.length;
324
-
325
- for (; len >= 4; ++i, len -= 4) {
326
- k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
327
- k =
328
- /* Math.imul(k, m): */
329
- (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
330
- k ^=
331
- /* k >>> r: */
332
- k >>> 24;
333
- h =
334
- /* Math.imul(k, m): */
335
- (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
336
- /* Math.imul(h, m): */
337
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
338
- } // Handle the last few bytes of the input array
339
-
340
-
341
- switch (len) {
342
- case 3:
343
- h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
344
-
345
- case 2:
346
- h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
347
-
348
- case 1:
349
- h ^= str.charCodeAt(i) & 0xff;
350
- h =
351
- /* Math.imul(h, m): */
352
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
353
- } // Do a few final mixes of the hash to ensure the last few
354
- // bytes are well-incorporated.
355
-
356
-
357
- h ^= h >>> 13;
358
- h =
359
- /* Math.imul(h, m): */
360
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
361
- return ((h ^ h >>> 15) >>> 0).toString(36);
362
- }
363
-
364
- const transofrmToUnitString = (value) => {
365
- if (isValidNumber(value)) {
366
- return `${value}px`;
367
- }
368
- else {
369
- return value;
370
- }
371
- };
372
- const width = {
373
- className: "w",
374
- cssName: "width",
375
- attrName: "width",
376
- transform: transofrmToUnitString,
377
- };
378
- const height = {
379
- className: "h",
380
- cssName: "height",
381
- attrName: "height",
382
- transform: transofrmToUnitString,
383
- };
384
- const position = {
385
- className: "pst",
386
- cssName: "position",
387
- attrName: "position",
388
- };
389
- const top = {
390
- className: "top",
391
- cssName: "top",
392
- attrName: "top",
393
- transform: transofrmToUnitString,
394
- };
395
- const right = {
396
- className: "rgt",
397
- cssName: "right",
398
- attrName: "right",
399
- transform: transofrmToUnitString,
400
- };
401
- const bottom = {
402
- className: "btm",
403
- cssName: "bottom",
404
- attrName: "bottom",
405
- transform: transofrmToUnitString,
406
- };
407
- const left = {
408
- className: "lft",
409
- cssName: "left",
410
- attrName: "left",
411
- transform: transofrmToUnitString,
412
- };
413
- const fontSize = {
414
- className: "fts",
415
- cssName: "font-size",
416
- attrName: "font-size",
417
- transform: transofrmToUnitString,
418
- };
419
- const gridColumn = {
420
- className: "gdc",
421
- cssName: "grid-column",
422
- attrName: "grid-column",
423
- };
424
- const gridRow = {
425
- className: "gdr",
426
- cssName: "grid-row",
427
- attrName: "grid-row",
428
- };
429
- const attributes = {
430
- width: width,
431
- height: height,
432
- position: position,
433
- top: top,
434
- right: right,
435
- bottom: bottom,
436
- left: left,
437
- "font-size": fontSize,
438
- "grid-column": gridColumn,
439
- "grid-row": gridRow,
440
- };
441
- const attributesNames = Object.keys(attributes);
442
- function getClassName(attr, value) {
443
- const valueKey = murmur2(value);
444
- return `bn-c-${attr.className}_${valueKey}`;
445
- }
446
- function getStyle(attr, className, value) {
447
- return `.${className} {${attr.cssName}: ${value};}`;
448
- }
449
- function getCSS(attr, value) {
450
- const className = getClassName(attr, value);
451
- const style = getStyle(attr, className, value);
452
- return { className, style };
453
- }
454
- const apply = (el) => {
455
- const map = new Map();
456
- //map.set("position", getCSS(attributes["position"], "absolute"))
457
- attributesNames.forEach((name) => {
458
- const value = el.getAttribute(name);
459
- if (value) {
460
- if (["top", "left", "right", "bottom"].includes(name)) {
461
- map.set("position", getCSS(attributes["position"], "absolute"));
462
- }
463
- const transform = attributes[name].transform ||
464
- function (v) {
465
- return v;
466
- };
467
- map.set(name, getCSS(attributes[name], transform(value)));
468
- }
469
- });
470
- return map;
471
- };
472
-
473
- /**
474
- * Shared MutationObserver that watches for style-attribute changes on all
475
- * subscribed elements. When a monitored attribute changes, it re-applies the
476
- * Styletron CSS-in-JS stylesheet and updates the element's className,
477
- * preserving any non-`bn-c-` classes.
478
- */
479
- const observer = new MutationObserver((mutations) => {
480
- for (const mutation of mutations) {
481
- const el = mutation.target;
482
- const map = apply(el);
483
- styleSheet.apply(map);
484
- const classes = Array.from(map.values()).map((value) => value.className);
485
- el.className = el.className
486
- .split(" ")
487
- .filter((value) => !value.startsWith("bn-c-"))
488
- .concat(...classes)
489
- .join(" ");
490
- index.forceUpdate(el);
491
- }
492
- });
493
- /**
494
- * Registers an element with the Styletron observer: applies the initial
495
- * stylesheet, assigns generated `bn-c-*` class names, and begins watching
496
- * for attribute mutations that affect styling.
497
- */
498
- const subscribe = (el) => {
499
- const map = apply(el);
500
- styleSheet.apply(map);
501
- const classes = Array.from(map.values()).map((value) => value.className);
502
- el.className = el.className
503
- .split(" ")
504
- .filter((value) => !value.startsWith("bn-c-"))
505
- .concat(...classes)
506
- .join(" ");
507
- observer.observe(el, { attributes: true, attributeFilter: attributesNames, childList: false, subtree: false });
508
- };
509
- /**
510
- * Mixin that integrates Styletron CSS-in-JS styling into a Stencil component.
511
- *
512
- * On `connectedCallback`, it subscribes the host element to a shared
513
- * MutationObserver that watches for style-related attribute changes. When
514
- * attributes change, the Styletron stylesheet is re-applied and the element's
515
- * class list is updated with generated `bn-c-*` class names, followed by a
516
- * forced re-render.
517
- *
518
- * @param component - The Stencil component instance
519
- */
520
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
521
- const withStyled = (component) => {
522
- const cstrConnectedCallback = component["connectedCallback"];
523
- const cstrDisconnectedCallback = component["disconnectedCallback"];
524
- component["connectedCallback"] = () => {
525
- const elm = index.getElement(component);
526
- if (elm) {
527
- subscribe(elm);
528
- }
529
- else {
530
- throw new Error(`Can't find element field in component ${undefined}`);
531
- }
532
- withHasError.runIfExisits(cstrConnectedCallback, component);
533
- };
534
- component["disconnectedCallback"] = () => {
535
- // MutationObserver has no per-element unobserve — the shared observer
536
- // automatically stops firing for elements removed from the DOM.
537
- withHasError.runIfExisits(cstrDisconnectedCallback, component);
538
- };
539
- };
540
-
541
- exports.isBlankInput = isBlankInput;
542
- exports.isTableCategoryWidth = isTableCategoryWidth;
543
- exports.isValidAxisLabelsMode = isValidAxisLabelsMode;
544
- exports.isValidBoolean = isValidBoolean;
545
- exports.isValidDataFormat = isValidDataFormat;
546
- exports.isValidDate = isValidDate;
547
- exports.isValidDateFormat = isValidDateFormat;
548
- exports.isValidDateLink = isValidDateLink;
549
- exports.isValidDirection = isValidDirection;
550
- exports.isValidInteger = isValidInteger;
551
- exports.isValidLevel = isValidLevel;
552
- exports.isValidMeasureScale = isValidMeasureScale;
553
- exports.isValidMeasureType = isValidMeasureType;
554
- exports.isValidNumber = isValidNumber;
555
- exports.isValidTableType = isValidTableType;
556
- exports.validateColumnThereOfJsonStr = validateColumnThereOfJsonStr;
557
- exports.validateGeojsonType = validateGeojsonType;
558
- exports.validateGpxType = validateGpxType;
559
- exports.validateMarkerType = validateMarkerType;
560
- exports.validateMeasureList = validateMeasureList;
561
- exports.validateOrderList = validateOrderList;
562
- exports.validatePartOfJsonStr = validatePartOfJsonStr;
563
- exports.validateScenarioList = validateScenarioList;
564
- exports.validateStackConfig = validateStackConfig;
565
- exports.validateThereOfJsonStr = validateThereOfJsonStr;
566
- exports.validateVariancesList = validateVariancesList;
567
- exports.withStyled = withStyled;
@@ -1,77 +0,0 @@
1
- 'use strict';
2
-
3
- var contextProtocol = require('./context-protocol-BkYHFkXE.js');
4
- var index = require('./index-CScBFiS1.js');
5
- var withHasError = require('./withHasError-Dspb3lIV.js');
6
-
7
- /**
8
- * Mixin that provides i18n translation support to a Stencil component.
9
- *
10
- * Returns an object with a `t(key, data?)` function for looking up translated strings.
11
- *
12
- * **Key resolution shortcuts:**
13
- * - A key starting with `.` (e.g. `.label`) is expanded to `<component-tag>.label`,
14
- * allowing components to reference their own translations concisely.
15
- * - If the key is not found in the component's namespace, the `_system` namespace
16
- * is used as a fallback.
17
- *
18
- * **Mustache-style interpolation:** `{{variable}}` placeholders in translation
19
- * templates are replaced with values from the optional `data` object.
20
- *
21
- * The mixin observes the `namespace` attribute on the host element and re-renders
22
- * the component when the locale store updates for the active namespace.
23
- *
24
- * @param component - The Stencil component instance
25
- * @returns Object containing the `t` translation function
26
- */
27
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
- const withTranslation = (component) => {
29
- let subscription;
30
- let namespace = undefined;
31
- let stores;
32
- const observer = new MutationObserver((mutations) => {
33
- mutations.forEach((mutation) => {
34
- if (mutation.attributeName === "namespace") {
35
- namespace = index.getElement(component).getAttribute("namespace");
36
- index.forceUpdate(component);
37
- }
38
- });
39
- });
40
- const connectedCallback = component["connectedCallback"];
41
- component["connectedCallback"] = () => {
42
- const element = index.getElement(component);
43
- stores = contextProtocol.getStores(element);
44
- observer.observe(element, { attributes: true, attributeFilter: ["namespace"] });
45
- namespace = index.getElement(component).getAttribute("namespace");
46
- subscription = stores.internationalization.on("set", (key, _value) => {
47
- if (key === namespace) {
48
- index.forceUpdate(component);
49
- }
50
- });
51
- withHasError.runIfExisits(connectedCallback, component);
52
- };
53
- const disconnectedCallback = component["disconnectedCallback"];
54
- component["disconnectedCallback"] = () => {
55
- observer.disconnect();
56
- withHasError.runIfExisits(subscription);
57
- contextProtocol.clearStoresCache(index.getElement(component));
58
- withHasError.runIfExisits(disconnectedCallback, component);
59
- };
60
- const t = (key, data) => {
61
- var _a, _b;
62
- if (key.startsWith(".")) {
63
- key = index.getElement(component).localName + key;
64
- }
65
- const locales = stores.internationalization.state;
66
- const locale = stores.context.state.locale;
67
- let currentNamespace = namespace;
68
- if (((_b = (_a = locales[currentNamespace]) === null || _a === void 0 ? void 0 : _a[locale]) === null || _b === void 0 ? void 0 : _b[key]) == null) {
69
- currentNamespace = "_system";
70
- }
71
- const tpl = locales[currentNamespace][locale][key];
72
- return tpl.replace(/{{([\s\S]+?)}}/g, (_, k) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data[k.trim()]) !== null && _a !== void 0 ? _a : ""; });
73
- };
74
- return { t };
75
- };
76
-
77
- exports.withTranslation = withTranslation;
@@ -1,4 +0,0 @@
1
- :host {
2
- display: block;
3
- height: 100%;
4
- }