@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,453 +0,0 @@
1
- 'use strict';
2
-
3
- var luxon = require('./luxon-8hyy5YD7.js');
4
-
5
- /** Granularity levels for date intervals, from YEAR down to MILLISECOND. AUTO triggers auto-detection. */
6
- exports.DateDistance = void 0;
7
- (function (DateDistance) {
8
- DateDistance["YEAR"] = "year";
9
- DateDistance["QUARTER"] = "quarter";
10
- DateDistance["MONTH"] = "month";
11
- DateDistance["WEEK"] = "week";
12
- DateDistance["DAY"] = "day";
13
- DateDistance["HOUR"] = "hour";
14
- DateDistance["MINUTE"] = "minute";
15
- DateDistance["SECOND"] = "second";
16
- DateDistance["MILLISECOND"] = "millisecond";
17
- DateDistance["NONE"] = "fallback";
18
- DateDistance["AUTO"] = "auto";
19
- })(exports.DateDistance || (exports.DateDistance = {}));
20
- /** IBCS date-link modes controlling how start/end dates are rendered in titles and axis labels. */
21
- exports.DateLink = void 0;
22
- (function (DateLink) {
23
- DateLink["AVG"] = "avg";
24
- DateLink["INTERVAL"] = "interval";
25
- DateLink["START"] = "start";
26
- DateLink["END"] = "end";
27
- DateLink["YTD"] = "ytd";
28
- DateLink["YTG"] = "ytg";
29
- DateLink["CUM"] = "cum";
30
- DateLink["MAT"] = "mat";
31
- DateLink["NONE"] = "none";
32
- DateLink["AUTO"] = "auto";
33
- })(exports.DateLink || (exports.DateLink = {}));
34
- /**
35
- * Produces formatted date strings and IBCS date-link notations for time-series charts.
36
- *
37
- * Supports configurable date formats (full and abbreviated), locale-aware formatting
38
- * via Luxon, smart boundary labels that append the parent period at crossings
39
- * (e.g. month name shown at the first day of a new month), and IBCS date-link
40
- * notation (AVG, YTD, YTG, CUM, MAT, INTERVAL, START, END).
41
- */
42
- class DateStringFactory {
43
- constructor() {
44
- this._dateFormat = {
45
- year: "yyyy",
46
- quarter: "q'Q' yyyy",
47
- month: "LLL yyyy",
48
- week: "'KW'WW yyyy",
49
- day: "dd.MM.yyyy",
50
- hour: "TT",
51
- minute: "TT",
52
- second: "TT",
53
- millisecond: "TT:SSS",
54
- fallback: "dd.MM.yyyy",
55
- };
56
- this._dateFormatShort = {
57
- year: "yy",
58
- quarter: "q'Q'",
59
- month: "LLL",
60
- week: "'KW'WW",
61
- day: "dd",
62
- hour: "hh'h'",
63
- minute: "mm'm'",
64
- second: "ss's'",
65
- millisecond: "SSS'ms'",
66
- fallback: "dd.MM.yyyy",
67
- };
68
- this._dateLinkFormat = {
69
- avg: "Ø[LINK]",
70
- interval: "[DATE]..[DATE2]",
71
- start: ".[DATE]",
72
- end: "[DATE].",
73
- ytd: "_[DATE]",
74
- ytg: "[DATE]_",
75
- cum: "[DATE]_[DATE2]",
76
- mat: "~[DATE]",
77
- none: "[DATE]",
78
- };
79
- this.locale = "de";
80
- this.dateFormat = this._dateFormat;
81
- this.dateLinkFormat = this._dateLinkFormat;
82
- this.dateFormatShort = this._dateFormatShort;
83
- }
84
- setDateLinkFormat(datelink) {
85
- this.dateLinkFormat = datelink;
86
- }
87
- setDateFormat(dateFormat) {
88
- this.dateFormat = dateFormat;
89
- }
90
- setDateFormatShort(dateFormatShort) {
91
- this.dateFormatShort = dateFormatShort;
92
- }
93
- setLocale(locale) {
94
- this.locale = locale;
95
- }
96
- /**
97
- * Converts date string based on dateFormatMap and the selected Type
98
- *
99
- * @param date
100
- * @param type?
101
- */
102
- getDateString(date, type) {
103
- return date.setLocale(this.locale).toFormat(this.dateFormat[type] || this.dateFormat["fallback"]);
104
- }
105
- /**
106
- * Produces abbreviated date labels that include the parent period at boundary crossings.
107
- *
108
- * For example, with MONTH granularity, most ticks show just "Jan", "Feb", etc.,
109
- * but the first month of a new year also appends the year ("Jan 24").
110
- * This avoids redundant repetition while keeping boundary context visible.
111
- */
112
- getSmartDateString(date, type) {
113
- switch (type) {
114
- case exports.DateDistance.DAY: {
115
- return this.getFormatedDayDate(date);
116
- }
117
- case exports.DateDistance.MONTH: {
118
- return this.getFormatedMonthDate(date);
119
- }
120
- case exports.DateDistance.QUARTER: {
121
- return this.getFormatedQuarterDate(date);
122
- }
123
- case exports.DateDistance.WEEK: {
124
- return this.getFormatedWeekDate(date);
125
- }
126
- case exports.DateDistance.HOUR: {
127
- return this.getFormatedHourDate(date);
128
- }
129
- case exports.DateDistance.MINUTE: {
130
- return this.getFormatedMinuteDate(date);
131
- }
132
- case exports.DateDistance.SECOND: {
133
- return this.getFormatedSecondDate(date);
134
- }
135
- case exports.DateDistance.MILLISECOND: {
136
- return this.getFormatedMilliSecondDate(date);
137
- }
138
- default: {
139
- return this.getDateString(date, type);
140
- }
141
- }
142
- }
143
- /**
144
- * Determines the best-fitting {@link DateDistance} granularity for the span between two dates.
145
- *
146
- * Cascades through granularities from finest (millisecond) to coarsest (year),
147
- * comparing the span against the `limit` threshold at each level. Returns the
148
- * first granularity where the span is below the limit, ensuring the number of
149
- * axis ticks stays manageable. Defaults to DAY for zero-span or null end dates.
150
- *
151
- * @param limit Maximum number of intervals before stepping up to a coarser granularity (default 32).
152
- */
153
- calculateDistanceType(start, end, limit = 32) {
154
- if (end == null) {
155
- return exports.DateDistance.DAY;
156
- }
157
- const mStart = typeof start == "number" ? luxon.DateTime.fromMillis(start) : start;
158
- const mEnd = typeof end == "number" ? luxon.DateTime.fromMillis(end) : end;
159
- if (mEnd.diff(mStart).as("milliseconds") === 0) {
160
- return exports.DateDistance.DAY;
161
- }
162
- else if (mEnd.diff(mStart).as("milliseconds") < limit) {
163
- return exports.DateDistance.MILLISECOND;
164
- }
165
- else if (mEnd.diff(mStart).as("seconds") < limit) {
166
- return exports.DateDistance.SECOND;
167
- }
168
- else if (mEnd.diff(mStart).as("minutes") < limit) {
169
- return exports.DateDistance.MINUTE;
170
- }
171
- else if (mEnd.diff(mStart).as("hours") < limit) {
172
- return exports.DateDistance.HOUR;
173
- }
174
- else if (mEnd.diff(mStart).as("days") < limit) {
175
- return exports.DateDistance.DAY;
176
- }
177
- else if (mEnd.diff(mStart).as("weeks") < limit) {
178
- return exports.DateDistance.WEEK;
179
- }
180
- else if (mEnd.diff(mStart).as("months") < limit) {
181
- return exports.DateDistance.MONTH;
182
- }
183
- else if (mEnd.diff(mStart).as("quarters") < limit) {
184
- return exports.DateDistance.QUARTER;
185
- }
186
- else {
187
- return exports.DateDistance.YEAR;
188
- }
189
- }
190
- /**
191
- * Get an array of moment instances, each representing a day beween given timestamps.
192
- * @param {string|Date} from start date
193
- * @param {string|Date} to end date
194
- * @param dateInterval
195
- * @param spanLimit
196
- */
197
- datesBetween(from, to, dateInterval, spanLimit) {
198
- const unit = this.convertDateDistanceToMomentunitOfTime(dateInterval);
199
- const fromDate = from.startOf(unit);
200
- const toDate = to.endOf(unit);
201
- let span = toDate.diff(fromDate).as(unit);
202
- const days = [];
203
- if (span >= spanLimit) {
204
- console.warn("Clip Span from", span, "to spanLimit", spanLimit);
205
- span = spanLimit;
206
- }
207
- let currentDate = fromDate;
208
- do {
209
- days.push(currentDate);
210
- currentDate = currentDate.plus(this.createDiratonLike(unit, 1));
211
- } while (currentDate <= toDate && days.length < span);
212
- return days;
213
- }
214
- /**
215
- * Produces an IBCS date-link string combining date formatting with link notation.
216
- *
217
- * Supported modes map to IBCS conventions:
218
- * - `AVG`: average symbol `Ø` wrapping the interval
219
- * - `YTD` / `YTG`: year-to-date / year-to-go underline notation
220
- * - `CUM`: cumulative range `start_end`
221
- * - `MAT`: moving annual total `~date`
222
- * - `INTERVAL`: `start..end` range
223
- * - `START` / `END`: dot-prefixed/suffixed single date
224
- *
225
- * When start and end resolve to the same formatted string, INTERVAL is collapsed
226
- * to NONE to avoid redundant display. Year parts are deduplicated when both dates
227
- * share the same year (e.g. "Q1 .. Q3 2024" instead of "Q1 2024 .. Q3 2024").
228
- *
229
- * @param type DateDistance granularity; when AUTO, it is auto-detected via `calculateDistanceType`.
230
- */
231
- getDateLinkString(startDateTime, endDateTime, mode, type, spanLimit) {
232
- // No Start/ End Date exists
233
- if (startDateTime == null && endDateTime == null) {
234
- // BinoSystem.warn('NO START AND END DATE SELECTED');
235
- return "";
236
- }
237
- if (startDateTime == null && !(mode === exports.DateLink.END || mode === exports.DateLink.YTD)) {
238
- // BinoSystem.warn('NO START N SELECTED');
239
- return "";
240
- }
241
- if (endDateTime == null &&
242
- (exports.DateLink.INTERVAL === mode || exports.DateLink.CUM === mode || exports.DateLink.END === mode || exports.DateLink.YTD === mode)) {
243
- // BinoSystem.warn('NO END N SELECTED');
244
- return "";
245
- }
246
- const date1 = startDateTime || luxon.DateTime.now();
247
- const date2 = endDateTime;
248
- // calculate type value aka. auto-mode
249
- if (type === exports.DateDistance.AUTO) {
250
- type = this.calculateDistanceType(date1, date2, spanLimit);
251
- }
252
- let dateString1 = this.getDateString(date1, type);
253
- let dateString2 = "";
254
- let link = exports.DateLink.NONE;
255
- if (date2 != null) {
256
- dateString2 = this.getDateString(date2, type);
257
- link = exports.DateLink.INTERVAL;
258
- // clean up visualisation if start and end (formated) ist identical
259
- if (dateString1 === dateString2 && mode === exports.DateLink.INTERVAL) {
260
- // BinoSystem.warn('CHANGED INTERVAL TO NONE; START AND END ARE IDENTICAL');
261
- mode = exports.DateLink.NONE;
262
- }
263
- if (dateString1 === dateString2 && mode === exports.DateLink.AVG) {
264
- // BinoSystem.warn('CHANGED INTERVAL TO NONE; START AND END ARE IDENTICAL');
265
- link = exports.DateLink.NONE;
266
- }
267
- if (exports.DateLink.END === mode || exports.DateLink.YTD === mode) {
268
- dateString1 = dateString2;
269
- }
270
- // clean up dateString1 if same year
271
- if (mode === exports.DateLink.INTERVAL || mode === exports.DateLink.CUM || exports.DateLink.AVG) {
272
- if (type === exports.DateDistance.QUARTER) {
273
- if (date1.quarter === date2.quarter && date1.year === date2.year) {
274
- dateString2 = dateString2.replace(" " + date2.year, "");
275
- }
276
- else if (date1.year === date2.year) {
277
- dateString1 = dateString1.replace(" " + date1.year, "");
278
- }
279
- }
280
- else if (type === exports.DateDistance.MONTH) {
281
- if (date1.month === date2.month && date1.year === date2.year) {
282
- dateString2 = dateString2.replace(" " + date2.year, "");
283
- }
284
- else if (date1.year === date2.year) {
285
- dateString1 = dateString1.replace(" " + date1.year, "");
286
- }
287
- }
288
- else if (type === exports.DateDistance.WEEK) {
289
- if (date1.weekNumber === date2.weekNumber && date1.year === date2.year) {
290
- dateString2 = dateString2.replace(" " + date2.year, "");
291
- }
292
- else if (date1.year === date2.year) {
293
- dateString1 = dateString1.replace(" " + date1.year, "");
294
- }
295
- }
296
- }
297
- }
298
- return this.dateLinkFormat[mode]
299
- .replace("[LINK]", this.dateLinkFormat[link])
300
- .replace("[DATE]", dateString1)
301
- .replace("[DATE2]", dateString2);
302
- }
303
- /** Returns an abbreviated date string using the short format map (e.g. "yy" for year, "LLL" for month). */
304
- getShortDateString(date, type) {
305
- return date
306
- .setLocale(this.locale)
307
- .toFormat(this.dateFormatShort[type] || this.dateFormatShort["fallback"]);
308
- }
309
- getFormatedDayDate(date) {
310
- let format = this.dateFormatShort["day"];
311
- if (this.isFirstInMonth(date)) {
312
- format += " " + this.dateFormatShort["month"];
313
- }
314
- if (this.isJanuary(date)) {
315
- format += " " + this.dateFormatShort["year"];
316
- }
317
- return date.setLocale(this.locale).toFormat(format);
318
- }
319
- getFormatedMonthDate(date) {
320
- let format = this.dateFormatShort["month"];
321
- if (this.isJanuary(date)) {
322
- format += " " + this.dateFormatShort["year"];
323
- }
324
- return date.setLocale(this.locale).toFormat(format);
325
- }
326
- getFormatedQuarterDate(date) {
327
- let format = this.dateFormatShort["quarter"];
328
- if (this.isFirstQuarter(date)) {
329
- format += " " + this.dateFormatShort["year"];
330
- }
331
- return date.setLocale(this.locale).toFormat(format);
332
- }
333
- getFormatedWeekDate(date) {
334
- let format = this.dateFormatShort["week"];
335
- if (this.isFirstWeek(date)) {
336
- format += " " + this.dateFormatShort["year"];
337
- }
338
- return date.setLocale(this.locale).toFormat(format);
339
- }
340
- getFormatedHourDate(date) {
341
- let format = this.dateFormatShort["hour"];
342
- if (this.isFirstHour(date)) {
343
- format += " " + this.dateFormatShort["day"];
344
- }
345
- return date.setLocale(this.locale).toFormat(format);
346
- }
347
- getFormatedMinuteDate(date) {
348
- let format = this.dateFormatShort["minute"];
349
- if (this.isFirstMinute(date)) {
350
- format = this.dateFormatShort["hour"] + ":" + format;
351
- }
352
- return date.setLocale(this.locale).toFormat(format);
353
- }
354
- getFormatedSecondDate(date) {
355
- let format = this.dateFormatShort["second"];
356
- if (this.isFirstSecond(date)) {
357
- format = this.dateFormatShort["minute"] + ":" + format;
358
- }
359
- return date.setLocale(this.locale).toFormat(format);
360
- }
361
- getFormatedMilliSecondDate(date) {
362
- let format = this.dateFormatShort["millisecond"];
363
- if (this.isFirstMilliSecond(date)) {
364
- format = this.dateFormatShort["second"] + ":" + format;
365
- }
366
- return date.setLocale(this.locale).toFormat(format);
367
- }
368
- isFirstInMonth(date) {
369
- return date.day === 1;
370
- }
371
- isJanuary(date) {
372
- return date.month === 1;
373
- }
374
- isFirstQuarter(date) {
375
- return date.quarter === 1;
376
- }
377
- isFirstWeek(date) {
378
- return date.weekNumber === 1;
379
- }
380
- isFirstHour(date) {
381
- return date.hour === 0;
382
- }
383
- isFirstMinute(date) {
384
- return date.minute === 0;
385
- }
386
- isFirstSecond(date) {
387
- return date.second === 0;
388
- }
389
- isFirstMilliSecond(date) {
390
- return date.millisecond === 0;
391
- }
392
- convertDateDistanceToMomentunitOfTime(dateInterval) {
393
- let unitOfTime;
394
- switch (dateInterval) {
395
- case exports.DateDistance.YEAR:
396
- unitOfTime = "year";
397
- break;
398
- case exports.DateDistance.MONTH:
399
- unitOfTime = "month";
400
- break;
401
- case exports.DateDistance.QUARTER:
402
- unitOfTime = "quarter";
403
- break;
404
- case exports.DateDistance.WEEK:
405
- unitOfTime = "week";
406
- break;
407
- case exports.DateDistance.DAY:
408
- unitOfTime = "day";
409
- break;
410
- case exports.DateDistance.HOUR:
411
- unitOfTime = "hour";
412
- break;
413
- case exports.DateDistance.MINUTE:
414
- unitOfTime = "minute";
415
- break;
416
- case exports.DateDistance.SECOND:
417
- unitOfTime = "second";
418
- break;
419
- case exports.DateDistance.MILLISECOND:
420
- unitOfTime = "millisecond";
421
- break;
422
- default:
423
- unitOfTime = "day";
424
- }
425
- return unitOfTime;
426
- }
427
- createDiratonLike(unit, number) {
428
- switch (unit) {
429
- case "year":
430
- return { years: number };
431
- case "month":
432
- return { months: number };
433
- case "quarter":
434
- return { quarters: number };
435
- case "week":
436
- return { weeks: number };
437
- case "day":
438
- return { days: number };
439
- case "hour":
440
- return { hours: number };
441
- case "minute":
442
- return { minutes: number };
443
- case "second":
444
- return { seconds: number };
445
- case "millisecond":
446
- return { milliseconds: number };
447
- default:
448
- return { days: number };
449
- }
450
- }
451
- }
452
-
453
- exports.DateStringFactory = DateStringFactory;
@@ -1,129 +0,0 @@
1
- 'use strict';
2
-
3
- var luxon = require('./luxon-8hyy5YD7.js');
4
-
5
- /**
6
- * Type-checking utility used throughout the adapter layer for safe JSON-to-domain conversion.
7
- *
8
- * All methods are static guards that validate a single `unknown` value before it is
9
- * assigned to a typed domain property. Methods that serve as TypeScript type guards
10
- * use `data is T` return types to enable downstream type narrowing.
11
- */
12
- class CompareUtil {
13
- static isExisting(data) {
14
- return data !== null && data !== undefined;
15
- }
16
- static isString(data) {
17
- return typeof data === "string";
18
- }
19
- static isNumber(data) {
20
- return typeof data === "number" && !Number.isNaN(data);
21
- }
22
- static isBoolean(data) {
23
- return typeof data === "boolean";
24
- }
25
- static isArray(data) {
26
- return Array.isArray(data);
27
- }
28
- static isObject(data) {
29
- return typeof data === "object" && data !== null;
30
- }
31
- /**
32
- * Checks if the value is a valid IBCS aggregation operator.
33
- * Only `"+"` and `"-"` are valid; any other value is rejected.
34
- */
35
- static isOperator(data) {
36
- return data === "+" || data === "-";
37
- }
38
- /**
39
- * Checks if the value is a valid Luxon DateTime instance.
40
- * Returns false for invalid DateTime objects (e.g. parsed from malformed strings).
41
- */
42
- static isDate(data) {
43
- return data instanceof luxon.DateTime && data.isValid;
44
- }
45
- }
46
-
47
- /** Shared utilities for the adapter layer, used by all component config adapters. */
48
- class AdapterUtils {
49
- /** Returns the trimmed string value, or an empty string if the input is not a string. */
50
- static adaptDefaultString(data) {
51
- if (CompareUtil.isString(data)) {
52
- return data.trim();
53
- }
54
- return "";
55
- }
56
- /**
57
- * Safely adapts an array of untyped records through a typed adapter.
58
- * If `data` is not an array, returns an empty array instead of throwing.
59
- */
60
- static adaptArray(data, adapter) {
61
- const targetArray = [];
62
- if (CompareUtil.isArray(data)) {
63
- data.forEach((b) => {
64
- targetArray.push(adapter.adapt(b));
65
- });
66
- }
67
- return targetArray;
68
- }
69
- }
70
-
71
- exports.OrderDirection = void 0;
72
- (function (OrderDirection) {
73
- OrderDirection["ASC"] = "asc";
74
- OrderDirection["DESC"] = "desc";
75
- })(exports.OrderDirection || (exports.OrderDirection = {}));
76
- /** Valid columns for ORDER BY in AlaSQL queries — includes hierarchy dimensions and all 16 scenario slots. */
77
- exports.OrderColumn = void 0;
78
- (function (OrderColumn) {
79
- OrderColumn["ROWGROUP"] = "rowGroup";
80
- OrderColumn["ROWGROUPINDEX"] = "rowGroupIndex";
81
- OrderColumn["CATEGORY"] = "category";
82
- OrderColumn["CATEGORYINDEX"] = "categoryIndex";
83
- OrderColumn["SUBCATEGORY"] = "subCategory";
84
- OrderColumn["SUBCATEGORYINDEX"] = "subCategoryIndex";
85
- OrderColumn["AC1"] = "ac1";
86
- OrderColumn["AC2"] = "ac2";
87
- OrderColumn["AC3"] = "ac3";
88
- OrderColumn["AC4"] = "ac4";
89
- OrderColumn["PP1"] = "pp1";
90
- OrderColumn["PP2"] = "pp2";
91
- OrderColumn["PP3"] = "pp3";
92
- OrderColumn["PP4"] = "pp4";
93
- OrderColumn["FC1"] = "fc1";
94
- OrderColumn["FC2"] = "fc2";
95
- OrderColumn["FC3"] = "fc3";
96
- OrderColumn["FC4"] = "fc4";
97
- OrderColumn["PL1"] = "pl1";
98
- OrderColumn["PL2"] = "pl2";
99
- OrderColumn["PL3"] = "pl3";
100
- OrderColumn["PL4"] = "pl4";
101
- })(exports.OrderColumn || (exports.OrderColumn = {}));
102
- class Order {
103
- /**
104
- * @param hierarchy Columns for multi-level sorting, applied left-to-right (e.g. `["rowGroup", "category"]`).
105
- * @param direction Sort direction applied to all hierarchy levels.
106
- */
107
- constructor(hierarchy = ["category"], direction = exports.OrderDirection.ASC) {
108
- this.hierarchy = hierarchy;
109
- this.direction = direction;
110
- }
111
- }
112
- class OrderAdapter {
113
- constructor(stringAdapter) {
114
- this.stringAdapter = stringAdapter;
115
- }
116
- adapt(data) {
117
- var _a;
118
- const hierarchy = AdapterUtils.adaptArray(data.hierarchy, this.stringAdapter);
119
- const order = exports.OrderDirection[(_a = data.direction) === null || _a === void 0 ? void 0 : _a.toUpperCase()] || exports.OrderDirection.ASC;
120
- return new Order(hierarchy.map((str) => exports.OrderColumn[str.toUpperCase()] || exports.OrderColumn.CATEGORY), order);
121
- }
122
- default() {
123
- return new Order(["category"], exports.OrderDirection.ASC);
124
- }
125
- }
126
-
127
- exports.AdapterUtils = AdapterUtils;
128
- exports.CompareUtil = CompareUtil;
129
- exports.OrderAdapter = OrderAdapter;