@bino-bi/bn-template-engine 1.0.0-alpha.16 → 1.0.0-alpha.18

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 (326) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-0107f0cc.entry.js +1 -0
  3. package/dist/bn-template-engine/p-209351c9.entry.js +1 -0
  4. package/dist/bn-template-engine/p-22d0fb7a.entry.js +1 -0
  5. package/dist/bn-template-engine/p-2e6dc267.entry.js +1 -0
  6. package/dist/bn-template-engine/p-485d23d7.entry.js +1 -0
  7. package/dist/bn-template-engine/p-5651417d.entry.js +1 -0
  8. package/dist/bn-template-engine/p-5bfdc1e5.entry.js +1 -0
  9. package/dist/bn-template-engine/p-6b75762d.entry.js +1 -0
  10. package/dist/bn-template-engine/{p-ff659485.entry.js → p-7bdc0e28.entry.js} +1 -1
  11. package/dist/bn-template-engine/p-9879c9b2.entry.js +1 -0
  12. package/dist/bn-template-engine/p-BA48JiHe.js +1 -0
  13. package/dist/bn-template-engine/p-BWKdb9ym.js +1 -0
  14. package/dist/bn-template-engine/p-BZV1b5VH.js +1 -0
  15. package/dist/bn-template-engine/p-Bdfxd_Ke.js +1 -0
  16. package/dist/bn-template-engine/p-BqhIhYr1.js +1 -0
  17. package/dist/bn-template-engine/p-C0Pwqx-O.js +1 -0
  18. package/dist/bn-template-engine/p-CBqUr7I8.js +1 -0
  19. package/dist/bn-template-engine/{p-BPDZcex5.js → p-CPzF3Q2m.js} +1 -1
  20. package/dist/bn-template-engine/p-CiudZRQr.js +1 -0
  21. package/dist/bn-template-engine/p-Dg9OcXAO.js +1 -0
  22. package/dist/bn-template-engine/p-DsTzlzxQ.js +1 -0
  23. package/dist/bn-template-engine/p-X6CxL6W-.js +1 -0
  24. package/dist/bn-template-engine/p-a130cb43.entry.js +1 -0
  25. package/dist/bn-template-engine/p-aakBGfzL.js +1 -0
  26. package/dist/bn-template-engine/p-dc745c32.entry.js +1 -0
  27. package/dist/bn-template-engine/p-e96da91f.entry.js +1 -0
  28. package/dist/bn-template-engine/p-f3d1fa06.entry.js +1 -0
  29. package/dist/bn-template-engine/p-fcb43f2c.entry.js +1 -0
  30. package/dist/bn-template-engine/p-rdqTC0_5.js +1 -0
  31. package/dist/cjs/AxisConfig-VnVelfSV.js +233 -0
  32. package/dist/cjs/LabelCollisionManager-nfD5P__k.js +412 -0
  33. package/dist/cjs/NumericScale-BAyYXpKL.js +107 -0
  34. package/dist/cjs/Order-DobBozQC.js +87 -0
  35. package/dist/cjs/SVGStyle-BQOmGWLX.js +8209 -0
  36. package/dist/cjs/SVGVariancesStyleGroup-DCGfHrqh.js +50 -0
  37. package/dist/cjs/VarianceMeasure-NY9yhiNV.js +372 -0
  38. package/dist/cjs/XYChartDataRow-B7OKrAcC.js +829 -0
  39. package/dist/cjs/bn-asset_21.cjs.entry.js +1614 -9670
  40. package/dist/cjs/bn-chart-bubble.cjs.entry.js +762 -0
  41. package/dist/cjs/bn-chart-bullet.cjs.entry.js +785 -0
  42. package/dist/cjs/bn-chart-scatter.cjs.entry.js +658 -0
  43. package/dist/cjs/bn-grid.cjs.entry.js +5 -3
  44. package/dist/cjs/bn-image.cjs.entry.js +5 -3
  45. package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
  46. package/dist/cjs/bn-ruleset.cjs.entry.js +41 -0
  47. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  48. package/dist/cjs/bn-template.cjs.entry.js +1 -1
  49. package/dist/cjs/bn-text.cjs.entry.js +8 -79
  50. package/dist/cjs/bn-tree.cjs.entry.js +4 -2
  51. package/dist/cjs/{context-protocol-Cn5PL928.js → context-protocol-BDrMkhc4.js} +272 -1
  52. package/dist/cjs/editor-companion.cjs.entry.js +2 -2
  53. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +624 -0
  54. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +673 -0
  55. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +667 -0
  56. package/dist/cjs/layoutObserver-p0wXIWFg.js +350 -0
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/sanitizeHtml-LuZr1IMd.js +85 -0
  59. package/dist/cjs/{scaling-DM2UILdF.js → scaling-BmqxcNOf.js} +1 -1
  60. package/dist/cjs/withScalingGroup-BmcRlWBs.js +73 -0
  61. package/dist/cjs/{withStyled-Dx3uRw9g.js → withStyled-CRiC9fzc.js} +44 -383
  62. package/dist/collection/collection-manifest.json +7 -0
  63. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +10 -0
  64. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +1110 -0
  65. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +9 -0
  66. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +653 -0
  67. package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +472 -0
  68. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +10 -0
  69. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +1014 -0
  70. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +9 -0
  71. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +538 -0
  72. package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +440 -0
  73. package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +132 -0
  74. package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +89 -0
  75. package/dist/collection/components/bn-chart-bullet/utils/model/index.js +2 -0
  76. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +10 -0
  77. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +965 -0
  78. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +9 -0
  79. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +580 -0
  80. package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +409 -0
  81. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +23 -2
  82. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +29 -4
  83. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +3 -0
  84. package/dist/collection/components/bn-chart-time/bn-chart-time.js +27 -4
  85. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +29 -4
  86. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +16 -4
  87. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -3
  88. package/dist/collection/components/bn-component-style/bn-component-style.js +1 -1
  89. package/dist/collection/components/bn-context/bn-context.js +1 -1
  90. package/dist/collection/components/bn-dataset/bn-dataset.js +1 -1
  91. package/dist/collection/components/bn-datasource/bn-datasource.js +1 -1
  92. package/dist/collection/components/bn-footer/bn-footer.js +1 -1
  93. package/dist/collection/components/bn-grid/bn-grid.js +1 -1
  94. package/dist/collection/components/bn-image/bn-image.js +1 -1
  95. package/dist/collection/components/bn-internationalization/bn-internationalization.js +1 -1
  96. package/dist/collection/components/bn-layout-card/bn-layout-card.js +26 -3
  97. package/dist/collection/components/bn-layout-page/bn-layout-page.js +33 -4
  98. package/dist/collection/components/bn-message/bn-message.css +6 -2
  99. package/dist/collection/components/bn-message/bn-message.js +3 -2
  100. package/dist/collection/components/bn-page/bn-page.js +1 -1
  101. package/dist/collection/components/bn-ruleset/bn-ruleset.css +3 -0
  102. package/dist/collection/components/bn-ruleset/bn-ruleset.js +68 -0
  103. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +1 -1
  104. package/dist/collection/components/bn-table/bn-table.js +146 -14
  105. package/dist/collection/components/bn-table/ibcs-table.css +8 -0
  106. package/dist/collection/components/bn-table/ibcs-table.js +64 -8
  107. package/dist/collection/components/bn-table/utils/Table.js +43 -5
  108. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +13 -8
  109. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -2
  110. package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +47 -0
  111. package/dist/collection/components/bn-table/utils/elements/index.js +1 -0
  112. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +87 -15
  113. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +284 -3
  114. package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +140 -0
  115. package/dist/collection/components/bn-table/utils/helper/WaterfallCalculator.js +166 -0
  116. package/dist/collection/components/bn-table/utils/helper/index.js +2 -0
  117. package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +10 -0
  118. package/dist/collection/components/bn-template/bn-template.js +1 -1
  119. package/dist/collection/components/bn-text/bn-text.js +2 -75
  120. package/dist/collection/components/bn-title/bn-title.js +27 -3
  121. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.css +4 -0
  122. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +29 -3
  123. package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +3 -0
  124. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  125. package/dist/collection/stores/componentStyles.js +67 -0
  126. package/dist/collection/stores/createScopedStores.js +6 -1
  127. package/dist/collection/stores/internationalization.js +68 -0
  128. package/dist/collection/stores/ruleSets.js +46 -0
  129. package/dist/collection/utils/constants.js +5 -0
  130. package/dist/collection/utils/ibcsRuleSet.js +14 -26
  131. package/dist/collection/utils/sanitizeHtml.js +81 -0
  132. package/dist/collection/utils/validate.js +24 -0
  133. package/dist/collection/utils/withComponentStyle.js +3 -5
  134. package/dist/collection/utils/withInheritedProps.js +1 -1
  135. package/dist/collection/utils/withRuleSet.js +105 -0
  136. package/dist/collection/utils/withScalingGroup.js +3 -0
  137. package/dist/collection/utils/xy/FacetGrid.js +36 -0
  138. package/dist/collection/utils/xy/IsoCurves.js +156 -0
  139. package/dist/collection/utils/xy/NumericScale.js +103 -0
  140. package/dist/collection/utils/xy/PointLabeler.js +96 -0
  141. package/dist/collection/utils/xy/RadiusScale.js +42 -0
  142. package/dist/collection/utils/xy/SeriesPalette.js +80 -0
  143. package/dist/collection/utils/xy/VarianceMeasure.js +76 -0
  144. package/dist/collection/utils/xy/XYFrame.js +120 -0
  145. package/dist/collection/utils/xy/XYLegend.js +107 -0
  146. package/dist/collection/utils/xy/model/AxisConfig.js +221 -0
  147. package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +69 -0
  148. package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
  149. package/dist/collection/utils/xy/model/XYChartStyle.js +52 -0
  150. package/dist/components/AxisConfig.js +1 -0
  151. package/dist/components/CompareUtil.js +1 -0
  152. package/dist/components/DataFormatDigits.js +1 -1
  153. package/dist/components/LabelCollisionManager.js +1 -0
  154. package/dist/components/NumericScale.js +1 -0
  155. package/dist/components/Order.js +1 -1
  156. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  157. package/dist/components/SiPrefix.js +1 -0
  158. package/dist/components/StringAdapter.js +1 -0
  159. package/dist/components/VarianceMeasure.js +1 -0
  160. package/dist/components/XYChartDataRow.js +1 -0
  161. package/dist/components/bn-chart-bubble.d.ts +11 -0
  162. package/dist/components/bn-chart-bubble.js +1 -0
  163. package/dist/components/bn-chart-bullet.d.ts +11 -0
  164. package/dist/components/bn-chart-bullet.js +1 -0
  165. package/dist/components/bn-chart-scatter.d.ts +11 -0
  166. package/dist/components/bn-chart-scatter.js +1 -0
  167. package/dist/components/bn-chart-structure.js +1 -1
  168. package/dist/components/bn-chart-time.js +1 -1
  169. package/dist/components/bn-component-style.js +1 -1
  170. package/dist/components/bn-context.js +1 -1
  171. package/dist/components/bn-dataset.js +1 -1
  172. package/dist/components/bn-datasource.js +1 -1
  173. package/dist/components/bn-footer2.js +1 -1
  174. package/dist/components/bn-grid.js +1 -1
  175. package/dist/components/bn-image.js +1 -1
  176. package/dist/components/bn-internationalization.js +1 -1
  177. package/dist/components/bn-layout-card.js +1 -1
  178. package/dist/components/bn-layout-page.js +1 -1
  179. package/dist/components/bn-message2.js +1 -1
  180. package/dist/components/bn-page2.js +1 -1
  181. package/dist/components/bn-ruleset.d.ts +11 -0
  182. package/dist/components/bn-ruleset.js +1 -0
  183. package/dist/components/bn-scaling-group.js +1 -1
  184. package/dist/components/bn-table.js +1 -1
  185. package/dist/components/bn-template.js +1 -1
  186. package/dist/components/bn-text.js +1 -1
  187. package/dist/components/bn-title2.js +1 -1
  188. package/dist/components/bn-tree.js +1 -1
  189. package/dist/components/context-protocol.js +1 -1
  190. package/dist/components/editor-companion.js +1 -1
  191. package/dist/components/formatter.js +1 -0
  192. package/dist/components/ibcs-chart-bubble.d.ts +11 -0
  193. package/dist/components/ibcs-chart-bubble.js +1 -0
  194. package/dist/components/ibcs-chart-bubble2.js +1 -0
  195. package/dist/components/ibcs-chart-bullet.d.ts +11 -0
  196. package/dist/components/ibcs-chart-bullet.js +1 -0
  197. package/dist/components/ibcs-chart-bullet2.js +1 -0
  198. package/dist/components/ibcs-chart-scatter.d.ts +11 -0
  199. package/dist/components/ibcs-chart-scatter.js +1 -0
  200. package/dist/components/ibcs-chart-scatter2.js +1 -0
  201. package/dist/components/ibcs-chart-structure2.js +1 -1
  202. package/dist/components/ibcs-chart-time2.js +1 -1
  203. package/dist/components/ibcs-table2.js +1 -1
  204. package/dist/components/ibcs-title2.js +1 -1
  205. package/dist/components/layoutObserver.js +1 -1
  206. package/dist/components/luxon.js +1 -1
  207. package/dist/components/main.js +1 -0
  208. package/dist/components/merge.js +1 -0
  209. package/dist/components/sanitizeHtml.js +1 -0
  210. package/dist/components/stackColors.js +1 -0
  211. package/dist/components/validate.js +1 -1
  212. package/dist/components/withComponentStyle.js +1 -1
  213. package/dist/components/withDataset.js +1 -0
  214. package/dist/components/withRuleSet.js +1 -0
  215. package/dist/components/withScalingGroup.js +1 -0
  216. package/dist/components/withStyled.js +1 -1
  217. package/dist/esm/AxisConfig-C_zWCKlL.js +224 -0
  218. package/dist/esm/LabelCollisionManager-8swVQHKA.js +404 -0
  219. package/dist/esm/NumericScale-DsTzlzxQ.js +105 -0
  220. package/dist/esm/Order-BPeWfygb.js +83 -0
  221. package/dist/esm/SVGStyle-BxEDw9zh.js +8199 -0
  222. package/dist/esm/SVGVariancesStyleGroup-DRQYvSDD.js +48 -0
  223. package/dist/esm/VarianceMeasure-DnwNKspZ.js +364 -0
  224. package/dist/esm/XYChartDataRow-DeV4r-Wm.js +820 -0
  225. package/dist/esm/bn-asset_21.entry.js +1127 -9183
  226. package/dist/esm/bn-chart-bubble.entry.js +760 -0
  227. package/dist/esm/bn-chart-bullet.entry.js +783 -0
  228. package/dist/esm/bn-chart-scatter.entry.js +656 -0
  229. package/dist/esm/bn-grid.entry.js +5 -3
  230. package/dist/esm/bn-image.entry.js +5 -3
  231. package/dist/esm/bn-internationalization.entry.js +2 -2
  232. package/dist/esm/bn-ruleset.entry.js +39 -0
  233. package/dist/esm/bn-template-engine.js +1 -1
  234. package/dist/esm/bn-template.entry.js +1 -1
  235. package/dist/esm/bn-text.entry.js +7 -78
  236. package/dist/esm/bn-tree.entry.js +4 -2
  237. package/dist/esm/{context-protocol-BB-4Onmw.js → context-protocol-1Yj1uKvh.js} +268 -2
  238. package/dist/esm/editor-companion.entry.js +2 -2
  239. package/dist/esm/ibcs-chart-bubble.entry.js +622 -0
  240. package/dist/esm/ibcs-chart-bullet.entry.js +671 -0
  241. package/dist/esm/ibcs-chart-scatter.entry.js +665 -0
  242. package/dist/esm/layoutObserver-DCbmpGrz.js +345 -0
  243. package/dist/esm/loader.js +1 -1
  244. package/dist/esm/sanitizeHtml-BA48JiHe.js +83 -0
  245. package/dist/esm/{scaling-h4KcBet3.js → scaling-B_k50v9z.js} +2 -2
  246. package/dist/esm/withScalingGroup-Br70pAv9.js +71 -0
  247. package/dist/esm/{withStyled-BBvU2f-A.js → withStyled-Br2DGTPs.js} +30 -367
  248. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +193 -0
  249. package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +58 -0
  250. package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +91 -0
  251. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +172 -0
  252. package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +52 -0
  253. package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +91 -0
  254. package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +70 -0
  255. package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +43 -0
  256. package/dist/types/components/bn-chart-bullet/utils/model/index.d.ts +2 -0
  257. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +172 -0
  258. package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +53 -0
  259. package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +66 -0
  260. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +7 -0
  261. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +2 -0
  262. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +1 -0
  263. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +10 -1
  264. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +2 -0
  265. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +1 -0
  266. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +10 -0
  267. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +14 -0
  268. package/dist/types/components/bn-message/bn-message.d.ts +5 -2
  269. package/dist/types/components/bn-ruleset/bn-ruleset.d.ts +8 -0
  270. package/dist/types/components/bn-table/bn-table.d.ts +38 -5
  271. package/dist/types/components/bn-table/ibcs-table.d.ts +8 -1
  272. package/dist/types/components/bn-table/utils/Table.d.ts +8 -0
  273. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
  274. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +33 -0
  275. package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +2 -1
  276. package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +21 -0
  277. package/dist/types/components/bn-table/utils/elements/index.d.ts +1 -0
  278. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +13 -7
  279. package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +17 -0
  280. package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +37 -0
  281. package/dist/types/components/bn-table/utils/helper/WaterfallCalculator.d.ts +55 -0
  282. package/dist/types/components/bn-table/utils/helper/index.d.ts +2 -0
  283. package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +4 -0
  284. package/dist/types/components/bn-table/utils/model/index.d.ts +21 -0
  285. package/dist/types/components/bn-title/bn-title.d.ts +11 -1
  286. package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +2 -0
  287. package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +1 -0
  288. package/dist/types/components.d.ts +1383 -82
  289. package/dist/types/context/context-protocol.d.ts +2 -0
  290. package/dist/types/stores/componentStyles.d.ts +41 -0
  291. package/dist/types/stores/createScopedStores.d.ts +2 -0
  292. package/dist/types/stores/ruleSets.d.ts +40 -0
  293. package/dist/types/utils/constants.d.ts +5 -0
  294. package/dist/types/utils/ibcsRuleSet.d.ts +6 -1
  295. package/dist/types/utils/model/ChartStyles.d.ts +2 -1
  296. package/dist/types/utils/sanitizeHtml.d.ts +6 -0
  297. package/dist/types/utils/validate.d.ts +12 -0
  298. package/dist/types/utils/withInheritedProps.d.ts +11 -0
  299. package/dist/types/utils/withRuleSet.d.ts +24 -0
  300. package/dist/types/utils/xy/FacetGrid.d.ts +27 -0
  301. package/dist/types/utils/xy/IsoCurves.d.ts +46 -0
  302. package/dist/types/utils/xy/NumericScale.d.ts +41 -0
  303. package/dist/types/utils/xy/PointLabeler.d.ts +58 -0
  304. package/dist/types/utils/xy/RadiusScale.d.ts +26 -0
  305. package/dist/types/utils/xy/SeriesPalette.d.ts +59 -0
  306. package/dist/types/utils/xy/VarianceMeasure.d.ts +37 -0
  307. package/dist/types/utils/xy/XYFrame.d.ts +44 -0
  308. package/dist/types/utils/xy/XYLegend.d.ts +43 -0
  309. package/dist/types/utils/xy/model/AxisConfig.d.ts +96 -0
  310. package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +36 -0
  311. package/dist/types/utils/xy/model/XYChartDataRow.d.ts +157 -0
  312. package/dist/types/utils/xy/model/XYChartStyle.d.ts +31 -0
  313. package/package.json +1 -1
  314. package/readme.md +7 -3
  315. package/dist/bn-template-engine/p-19f49fbc.entry.js +0 -1
  316. package/dist/bn-template-engine/p-3465fcdc.entry.js +0 -1
  317. package/dist/bn-template-engine/p-67746414.entry.js +0 -1
  318. package/dist/bn-template-engine/p-6b469808.entry.js +0 -1
  319. package/dist/bn-template-engine/p-86ca2d5e.entry.js +0 -1
  320. package/dist/bn-template-engine/p-Tx6omDWp.js +0 -1
  321. package/dist/bn-template-engine/p-d724ab88.entry.js +0 -1
  322. package/dist/bn-template-engine/p-efd3b67a.entry.js +0 -1
  323. package/dist/bn-template-engine/p-z9bPNFYF.js +0 -1
  324. package/dist/components/ibcsRuleSet.js +0 -1
  325. package/dist/components/scaling.js +0 -1
  326. package/dist/components/withInheritedProps.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,h as s,H as i,g as o}from"./p-B_d-jp99.js";import{w as n,a as r}from"./p-z9bPNFYF.js";import{w as e,a}from"./p-B4JfKvVT.js";import{g as l}from"./p-Tx6omDWp.js";const f=class{constructor(s){t(this,s),n(this),e(this),this.errors=a(this),this.componentStyle=r(this)}connectedCallback(){this.stores=l(this.element)}getFontStyles(){return this.componentStyle((t=>{var s,i,o,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(t){if(null==t||""===t)return"";const s=this.stores.assets.state;return t.startsWith("asset:")?s[t.substring(6)]:s[t]||t}render(){return s(i,{key:"656f301d5fb1a7650f4c7d0cbb3fe1ef15b8ae92",style:this.getFontStyles()},null!=this.source&&""!==this.source?s("img",{src:this.prepareAssetUrl(this.source)}):"")}get element(){return o(this)}};f.style=":host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}";export{f as bn_image}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as e,g as i}from"./p-B_d-jp99.js";import{w as n,a as s,g as a,p as r}from"./p-BPDZcex5.js";import{w as l,a as d}from"./p-B4JfKvVT.js";import{w as c,a as h}from"./p-z9bPNFYF.js";import"./p-Tx6omDWp.js";const v=new Set(["br","b","i","strong","em","span","p","div","table","tr","td","th","thead","tbody","tfoot","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","sup","small","hr","a","img"]),f=new Set(["class","style","colspan","rowspan","href","title","src","alt","width","height"]),u=/\b(__proto__|globalThis)\b|\.constructor\b/;function p(t){const o=document.createElement("div");return o.innerHTML=t,b(o),o.innerHTML}function b(t){for(const o of Array.from(t.childNodes)){if(o.nodeType!==Node.ELEMENT_NODE)continue;const e=o;if(v.has(e.tagName.toLowerCase())){for(const t of Array.from(e.attributes)){const o=t.name.toLowerCase();o.startsWith("on")||!f.has(o)?e.removeAttribute(t.name):"href"!==o&&"src"!==o||!/^\s*javascript:/i.test(t.value)?"style"===o&&/expression|javascript/i.test(t.value)&&e.removeAttribute(t.name):e.removeAttribute(t.name)}b(e)}else t.replaceChild(document.createTextNode(e.textContent||""),e)}}const m=class{constructor(o){t(this,o),this.data={},c(this),l(this),this.errors=d(this),this.t=n(this).t,s(this,((t,o)=>{this.data=Object.assign(Object.assign({},this.data),{[t]:o})})),this.componentStyle=h(this)}validateValue(t){"string"!=typeof t||""===t?this.errors.addOrReplace({id:"no_value",type:"warning",message:"Empty value"}):this.errors.remove("no_value")}validateScaling(t){if(null==t||""===t||"none"===t||"auto"===t)return void this.errors.remove("ERR_scale");const o=Number(t);isNaN(o)||o<=0?this.errors.addOrReplace({id:"ERR_scale",type:"warning",message:`Invalid scale value: "${t}". Use "none", "auto", or a positive number.`}):this.errors.remove("ERR_scale")}componentWillLoad(){this.validateValue(this.value),this.validateScaling(this.scale)}evalTemplate(t){if(!t)return"";if(u.test(t))return this.errors.addOrReplace({id:"ERR_value_eval",type:"error",message:"Template contains forbidden pattern"}),"";try{const o=new Proxy({data:this.data,t:this.t},{has:()=>!0,get:(t,o)=>o===Symbol.unscopables?void 0:t[o],set:()=>!0}),e=new Function("sandbox","with(sandbox){try{return`"+t+'`}catch(e){return""}}').call(o,o);return this.errors.remove("ERR_value_eval"),null!=e?String(e):""}catch(t){return this.errors.addOrReplace({id:"ERR_value_eval",type:"error",message:`Template evaluation failed: ${t instanceof Error?t.message:String(t)}`}),""}}prepareStyle(){return this.componentStyle((t=>{var o,e,i,n,s,a,r,l,d,c,h,v,f,u,p,b,m,g,y,w,_,$;return{fontStyles:{font:`${null!==(n=null!==(e=null===(o=t["bn-text"])||void 0===o?void 0:o.fontSizePx)&&void 0!==e?e:null===(i=t.global)||void 0===i?void 0:i.fontSizePx)&&void 0!==n?n:13.3333}px ${null!==(l=null!==(a=null===(s=t["bn-text"])||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:null===(r=t.global)||void 0===r?void 0:r.fontFamily)&&void 0!==l?l:"'Noto Sans', sans-serif"}`,size:null!==(v=null!==(c=null===(d=t["bn-text"])||void 0===d?void 0:d.fontSizePx)&&void 0!==c?c:null===(h=t.global)||void 0===h?void 0:h.fontSizePx)&&void 0!==v?v:13.3333,color:null!==(b=null!==(u=null===(f=t["bn-text"])||void 0===f?void 0:f.fontColor)&&void 0!==u?u:null===(p=t.global)||void 0===p?void 0:p.fontColor)&&void 0!==b?b:"#000000",background:null!==(w=null!==(g=null===(m=t["bn-text"])||void 0===m?void 0:m.fontBackgroundColor)&&void 0!==g?g:null===(y=t.global)||void 0===y?void 0:y.fontBackgroundColor)&&void 0!==w?w:"#ffffff",leading:null!==($=null===(_=t["bn-text"])||void 0===_?void 0:_.leading)&&void 0!==$?$:1.8}}}))}applyScaling(t){const o=this.element,{mode:e,factor:i}=r(this.scale),{width:n,height:s}=a(o),l=o.scrollHeight>o.clientHeight+1?o.clientHeight:s,d=n,c=d>0&&o.scrollWidth>d+1,h=l>0&&o.scrollHeight>l+1,v=c||h;if(d<=0&&l<=0)return;if("none"===e){if(v){const t=[];c&&t.push(`w:${o.scrollWidth}>${Math.round(d)}`),h&&t.push(`h:${o.scrollHeight}>${Math.round(l)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows container (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}if("factor"===e){if(v){const t=[];c&&t.push(`w:${o.scrollWidth}>${Math.round(d)}`),h&&t.push(`h:${o.scrollHeight}>${Math.round(l)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows with factor ${i} (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}o.style.setProperty("--bn-font-size",`${t}px`);const f=o.scrollWidth,u=o.scrollHeight,p=o.clientHeight,b=u>p+1?p:s,m=d<=0||f<=d+1,g=b<=0||u<=b+1;if(m&&g)return void this.errors.remove("AUTO_scale");const y=Math.min(1,!m&&d>0?d/f:1,!g&&b>0?b/u:1);o.style.setProperty("--bn-font-size",t*y+"px"),"empty"===e?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:`Auto-scaled font by factor ${y.toFixed(3)}`}):this.errors.remove("AUTO_scale")}componentDidRender(){this.container.innerHTML=p(this.evalTemplate(this.value)),this.applyScaling(this.prepareStyle().fontStyles.size)}render(){const{fontStyles:t}=this.prepareStyle(),{mode:i,factor:n}=r(this.scale),s="factor"===i?t.size*n+"px":`${t.size}px`,a={"--bn-font-family":t.font.substring(t.font.indexOf("px ")+3),"--bn-font-size":s,"--bn-font-color":t.color,"--bn-font-background":t.background};return o(e,{key:"086c3caad1f7c502e26ebbd1bf7d9044782333ab",style:a},o("div",{key:"584938536bedd3de7a6390ce9d57fb568a69191b"},o("span",{key:"b545bd809b32d2d0cac2310bd1003dab39bebc8a",class:"container",ref:t=>{this.container=t}})))}get element(){return i(this)}static get watchers(){return{value:[{validateValue:0}],scale:[{validateScaling:0}]}}};m.style=':host{padding:0.5em;display:inline-block;position:relative;overflow:hidden;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000);background-color:var(--bn-font-background, white)}span.container p{margin:0}';export{m as bn_text}
@@ -1 +0,0 @@
1
- import{g as t,f as e}from"./p-B_d-jp99.js";import{g as r,c as n,D as s}from"./p-Tx6omDWp.js";import{r as a}from"./p-B4JfKvVT.js";const i=t=>{if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}return"[object Object]"===Object.prototype.toString.call(t)}return!1},o=(t,e)=>e,u=(t,e)=>[...new Set([...t,...e])],c=(t,e)=>{const r=(t=>{return{arrayMergeType:"combine",arrayMerge:(e=t?t.arrayMergeType:"combine","overwrite"===e?o:u),...t};var e})(e);return t.reduce(((t,e)=>(Object.keys(e).forEach((n=>{Array.isArray(t[n])&&Array.isArray(e[n])?r&&r.arrayMerge&&(t[n]=r.arrayMerge(t[n],e[n])):t[n]=i(t[n])&&i(e[n])?c([t[n],e[n]],r):e[n]})),t)),{})},l=s=>{let i,o,u,l;const f=()=>{const t=o.componentStyles.state;l=c([t._system||{},t._default||{},t[u]||{}])},d=new MutationObserver((r=>{r.forEach((r=>{"selected-style"===r.attributeName&&(u=t(s).getAttribute("selected-style"),f(),e(s))}))})),m=s.connectedCallback;s.connectedCallback=()=>{const n=t(s);o=r(n),l=o.componentStyles.state._system,d.observe(n,{attributes:!0,attributeFilter:["selected-style"]}),u=t(s).getAttribute("selected-style"),f(),i=o.componentStyles.on("set",(r=>{r===u&&(u=t(s).getAttribute("selected-style"),f(),e(t(s)))})),a(m,s)};const h=s.disconnectedCallback;return s.disconnectedCallback=()=>{d.disconnect(),a(i),n(t(s)),a(h,s)},t=>t(l)};var f,d,m,h,y,p,b,g;!function(t){t.ALL="all",t.META="meta"}(f||(f={})),function(t){t.CURRENCY="currency",t.VOLUME="volume"}(d||(d={})),function(t){t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(m||(m={})),function(t){t.POS="pos",t.NEG="neg",t.NEU="neu"}(h||(h={})),function(t){t.DECIMAL="decimal",t.PERCENT="percent"}(y||(y={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(p||(p={})),function(t){t.INF="inf",t.W100="w100",t.W50="w50",t.W25="w25",t.W20="w20",t.W15="w15",t.W10="w10",t.W5="w5"}(b||(b={})),function(t){t.W5="w5",t.W10="w10",t.W15="w15",t.W20="w20",t.W25="w25",t.W30="w30",t.W40="w40",t.W60="w60",t.W80="w80",t.W100="w100"}(g||(g={}));const N={[g.W5]:5,[g.W10]:10,[g.W15]:15,[g.W20]:20,[g.W25]:25,[g.W30]:30,[g.W40]:40,[g.W60]:60,[g.W80]:80,[g.W100]:100};var v,w,S,D,O,T,k;!function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex"}(v||(v={})),function(t){t.SMART="smart",t.LONG="long",t.SHORT="short"}(w||(w={})),function(t){t.COLUMN="column",t.LINE="line",t.WATERFALL="waterfall"}(S||(S={})),function(t){t.BAR="bar",t.LINE="line",t.AUTO="auto"}(D||(D={})),function(t){t.SCENARIOS="scenarios",t.DIMENSIONS="dimensions"}(O||(O={})),function(t){t.ABSOLUTE="absolute",t.RELATIVE="relative",t.ABSOLUTE_RELATIVE="absolute-relative"}(T||(T={})),function(t){t.ASC="asc",t.DESC="desc",t.DATASET="dataset"}(k||(k={}));const A=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,J=/^[A-Za-z_][A-Za-z0-9_]*$/,M=["min","max","avg","sum"];class F{constructor(t,e,r,n){this.label=t,this.alias=e,this.fn=r,this.arg=n}get isNumeric(){return M.includes(this.fn)}}function j(t){if("string"!=typeof t)return!1;const e=A.exec(t);if(!e)return!1;const[,r,n]=e;return"lit"===r?n.length>0:J.test(n)}function E(t,e,r){if(!j(r))return null;const[,n,s]=A.exec(r);return new F(t,e,n,s)}var L,I,x,$;!function(t){t.YEAR="year",t.QUARTER="quarter",t.MONTH="month",t.WEEK="week",t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.MILLISECOND="millisecond",t.NONE="fallback",t.AUTO="auto"}(L||(L={})),function(t){t.AVG="avg",t.INTERVAL="interval",t.START="start",t.END="end",t.YTD="ytd",t.YTG="ytg",t.CUM="cum",t.MAT="mat",t.NONE="none",t.AUTO="auto"}(I||(I={}));class q{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW yyyy",day:"dd.MM.yyyy",hour:"TT",minute:"TT",second:"TT",millisecond:"TT:SSS",fallback:"dd.MM.yyyy"},this._dateFormatShort={year:"yy",quarter:"q'Q'",month:"LLL",week:"'KW'WW",day:"dd",hour:"hh'h'",minute:"mm'm'",second:"ss's'",millisecond:"SSS'ms'",fallback:"dd.MM.yyyy"},this._dateLinkFormat={avg:"Ø[LINK]",interval:"[DATE]..[DATE2]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE2]",mat:"~[DATE]",none:"[DATE]"},this.locale="de",this.dateFormat=this._dateFormat,this.dateLinkFormat=this._dateLinkFormat,this.dateFormatShort=this._dateFormatShort}setDateLinkFormat(t){this.dateLinkFormat=t}setDateFormat(t){this.dateFormat=t}setDateFormatShort(t){this.dateFormatShort=t}setLocale(t){this.locale=t}getDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormat[e]||this.dateFormat.fallback)}getSmartDateString(t,e){switch(e){case L.DAY:return this.getFormatedDayDate(t);case L.MONTH:return this.getFormatedMonthDate(t);case L.QUARTER:return this.getFormatedQuarterDate(t);case L.WEEK:return this.getFormatedWeekDate(t);case L.HOUR:return this.getFormatedHourDate(t);case L.MINUTE:return this.getFormatedMinuteDate(t);case L.SECOND:return this.getFormatedSecondDate(t);case L.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,e)}}calculateDistanceType(t,e,r=32){if(null==e)return L.DAY;const n="number"==typeof t?s.fromMillis(t):t,a="number"==typeof e?s.fromMillis(e):e;return 0===a.diff(n).as("milliseconds")?L.DAY:a.diff(n).as("milliseconds")<r?L.MILLISECOND:a.diff(n).as("seconds")<r?L.SECOND:a.diff(n).as("minutes")<r?L.MINUTE:a.diff(n).as("hours")<r?L.HOUR:a.diff(n).as("days")<r?L.DAY:a.diff(n).as("weeks")<r?L.WEEK:a.diff(n).as("months")<r?L.MONTH:a.diff(n).as("quarters")<r?L.QUARTER:L.YEAR}datesBetween(t,e,r,n){const s=this.convertDateDistanceToMomentunitOfTime(r),a=t.startOf(s),i=e.endOf(s);let o=i.diff(a).as(s);const u=[];o>=n&&(o=n);let c=a;do{u.push(c),c=c.plus(this.createDiratonLike(s,1))}while(c<=i&&u.length<o);return u}getDateLinkString(t,e,r,n,a){if(null==t&&null==e)return"";if(null==t&&r!==I.END&&r!==I.YTD)return"";if(null==e&&(I.INTERVAL===r||I.CUM===r||I.END===r||I.YTD===r))return"";const i=t||s.now(),o=e;n===L.AUTO&&(n=this.calculateDistanceType(i,o,a));let u=this.getDateString(i,n),c="",l=I.NONE;return null!=o&&(c=this.getDateString(o,n),l=I.INTERVAL,u===c&&r===I.INTERVAL&&(r=I.NONE),u===c&&r===I.AVG&&(l=I.NONE),I.END!==r&&I.YTD!==r||(u=c),(r===I.INTERVAL||r===I.CUM||I.AVG)&&(n===L.QUARTER?i.quarter===o.quarter&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):n===L.MONTH?i.month===o.month&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):n===L.WEEK&&(i.weekNumber===o.weekNumber&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,""))))),this.dateLinkFormat[r].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",u).replace("[DATE2]",c)}getShortDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormatShort[e]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let e=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(e+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedMonthDate(t){let e=this.dateFormatShort.month;return this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedQuarterDate(t){let e=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedWeekDate(t){let e=this.dateFormatShort.week;return this.isFirstWeek(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedHourDate(t){let e=this.dateFormatShort.hour;return this.isFirstHour(t)&&(e+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(e)}getFormatedMinuteDate(t){let e=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(e=this.dateFormatShort.hour+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedSecondDate(t){let e=this.dateFormatShort.second;return this.isFirstSecond(t)&&(e=this.dateFormatShort.minute+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedMilliSecondDate(t){let e=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(e=this.dateFormatShort.second+":"+e),t.setLocale(this.locale).toFormat(e)}isFirstInMonth(t){return 1===t.day}isJanuary(t){return 1===t.month}isFirstQuarter(t){return 1===t.quarter}isFirstWeek(t){return 1===t.weekNumber}isFirstHour(t){return 0===t.hour}isFirstMinute(t){return 0===t.minute}isFirstSecond(t){return 0===t.second}isFirstMilliSecond(t){return 0===t.millisecond}convertDateDistanceToMomentunitOfTime(t){let e;switch(t){case L.YEAR:e="year";break;case L.MONTH:e="month";break;case L.QUARTER:e="quarter";break;case L.WEEK:e="week";break;case L.DAY:e="day";break;case L.HOUR:e="hour";break;case L.MINUTE:e="minute";break;case L.SECOND:e="second";break;case L.MILLISECOND:e="millisecond";break;default:e="day"}return e}createDiratonLike(t,e){switch(t){case"year":return{years:e};case"month":return{months:e};case"quarter":return{quarters:e};case"week":return{weeks:e};case"day":default:return{days:e};case"hour":return{hours:e};case"minute":return{minutes:e};case"second":return{seconds:e};case"millisecond":return{milliseconds:e}}}}class G{static isExisting(t){return null!=t}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t&&!Number.isNaN(t)}static isBoolean(t){return"boolean"==typeof t}static isArray(t){return Array.isArray(t)}static isObject(t){return"object"==typeof t&&null!==t}static isOperator(t){return"+"===t||"-"===t}static isDate(t){return t instanceof s&&t.isValid}}class W{static adaptDefaultString(t){return G.isString(t)?t.trim():""}static adaptArray(t,e){const r=[];return G.isArray(t)&&t.forEach((t=>{r.push(e.adapt(t))})),r}}!function(t){t.ASC="asc",t.DESC="desc"}(x||(x={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}($||($={}));class _{constructor(t=["category"],e=x.ASC){this.hierarchy=t,this.direction=e}}class C{constructor(t){this.stringAdapter=t}adapt(t){var e;const r=W.adaptArray(t.hierarchy,this.stringAdapter),n=x[null===(e=t.direction)||void 0===e?void 0:e.toUpperCase()]||x.ASC;return new _(r.map((t=>$[t.toUpperCase()]||$.CATEGORY)),n)}default(){return new _(["category"],x.ASC)}}function z(t){return null==t||""===t||"null"===t}function K(t){return z(t)||"auto"===t.trim().toLowerCase()?[]:B((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in m)))).toString())}function B(t){return z(t)?[]:t.replace(";",",").split(",").filter((t=>{var e,r,n;const s=t.split("_"),a=null===(e=s[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(r=s[1])||void 0===r?void 0:r.toUpperCase().trim(),o=null===(n=s[2])||void 0===n?void 0:n.toUpperCase().trim();return 3!==s.length||!(a in m)||!(i in m)||!(o in h)}))}function Q(t){return z(t)||"auto"===t.trim().toLowerCase()?[]:B(t.split(",").filter((t=>!(t.toUpperCase()in $))).toString())}function P(t){return!z(t)&&Number.isInteger(Number(t))}function H(t){return!z(t)&&!Number.isNaN(Number(t))}function Z(t){return!z(t)&&(null==t?void 0:t.toUpperCase())in x}function R(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in v}function V(t){if(z(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function U(t){const e=Date.parse(t);return Number.isInteger(e)}function Y(t){return(null==t?void 0:t.toUpperCase())in I}function X(t){return(null==t?void 0:t.toUpperCase())in L}function tt(t){return(null==t?void 0:t.toUpperCase())in w}function et(t){return!z(t)&&(null==t?void 0:t.toUpperCase())in y}function rt(t){return!z(t)&&["true","false",!0,!1].some((e=>e===t))}function nt(t){return!z(t)&&(null==t?void 0:t.toUpperCase())in p}function st(t){if(z(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function at(t){if(z(t))return[];try{const e=JSON.parse(t);if(null!==e&&"object"==typeof e&&!(e instanceof Array))return Object.entries(e).filter((([,t])=>"string"!=typeof t||!j(t))).map((([t,e])=>`${t}: ${e}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function it(t){if(z(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function ot(t){return(null==t?void 0:t.trim().toUpperCase())in d}function ut(t){return["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function ct(t){return(null==t?void 0:t.toUpperCase().trim())in b}function lt(t){return(null==t?void 0:t.toUpperCase().trim())in g}function ft(t){if(z(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function dt(t){if(z(t))return[];try{const e=JSON.parse(t);if("object"!=typeof e||null===e||Array.isArray(e))return["stack: must be a JSON object"];const r=[];if(e.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(e.by)||r.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else r.push("stack: 'by' is required");if(e.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(e.mode)||r.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(e.order)||r.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return r}catch(t){return["stack: invalid JSON"]}}class mt{constructor(){this.cache=new Map,this.tag=mt.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.innerHTML=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const ht=new mt;function yt(t){for(var e,r=0,n=0,s=t.length;s>=4;++n,s-=4)e=1540483477*(65535&(e=255&t.charCodeAt(n)|(255&t.charCodeAt(++n))<<8|(255&t.charCodeAt(++n))<<16|(255&t.charCodeAt(++n))<<24))+(59797*(e>>>16)<<16),r=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(s){case 3:r^=(255&t.charCodeAt(n+2))<<16;case 2:r^=(255&t.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}const pt=t=>H(t)?`${t}px`:t,bt={width:{className:"w",cssName:"width",attrName:"width",transform:pt},height:{className:"h",cssName:"height",attrName:"height",transform:pt},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:pt},right:{className:"rgt",cssName:"right",attrName:"right",transform:pt},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:pt},left:{className:"lft",cssName:"left",attrName:"left",transform:pt},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:pt},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},gt=Object.keys(bt);function Nt(t,e){const r=function(t,e){const r=yt(e);return`bn-c-${t.className}_${r}`}(t,e),n=function(t,e,r){return`.${e} {${t.cssName}: ${r};}`}(t,r,e);return{className:r,style:n}}const vt=t=>{const e=new Map;return gt.forEach((r=>{const n=t.getAttribute(r);n&&(["top","left","right","bottom"].includes(r)&&e.set("position",Nt(bt.position,"absolute")),e.set(r,Nt(bt[r],(bt[r].transform||function(t){return t})(n))))})),e},wt=new MutationObserver((t=>{for(const r of t){const t=r.target,n=vt(t);ht.apply(n);const s=Array.from(n.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),e(t)}})),St=e=>{const r=e.connectedCallback,n=e.disconnectedCallback;e.connectedCallback=()=>{const n=t(e);if(!n)throw new Error("Can't find element field in component undefined");(t=>{const e=vt(t);ht.apply(e);const r=Array.from(e.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...r).join(" "),wt.observe(t,{attributes:!0,attributeFilter:gt,childList:!1,subtree:!1})})(n),a(r,e)},e.disconnectedCallback=()=>{a(n,e)}};export{v as A,ct as B,D as C,L as D,ft as E,at as F,y as G,E as H,f as I,N as J,g as K,V as L,d as M,U as N,x as O,Y as P,I as Q,W as R,O as S,b as T,G as U,C as V,q as W,l as a,H as b,B as c,R as d,Q as e,Z as f,P as g,ut as h,rt as i,dt as j,z as k,$ as l,k as m,T as n,X as o,tt as p,w as q,yt as r,lt as s,et as t,nt as u,K as v,St as w,st as x,it as y,ot as z}
@@ -1 +0,0 @@
1
- import{j as t}from"./Order.js";import{g as r}from"./luxon.js";class i{adapt(r){return t.adaptDefaultString(r)}default(){return""}}class e{constructor(t){this.type="",this.base="",this.delta="",this.direction="",this.isValid=!1;const r=/(d|dr)(pl\d|ac\d|fc\d|pp\d)_(pl\d|ac\d|fc\d|pp\d)_(pos|neg|neu)/;if(r.test(t)){const i=r.exec(t);null!=i&&(this.type=String(i[1]),this.base=String(i[2]),this.delta=String(i[3]),this.direction=String(i[4]),this.isValid=!0)}}}var s;!function(t){t.OPERATION="operation",t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CURRENTROW="currentRow",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.COLUMNGROUP="columnGroup",t.COLUMNGROUPINDEX="columnIndex",t.COLUMNSUBGROUP="columnSubGroup",t.COLUMNSUBGROUPINDEX="columnSubGroupIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4",t.TOTALROWCOUNT="totalRowCnt",t.ROWNR="rowNr",t.TYPE="type"}(s||(s={}));var n,o={},a=r(function(){if(n)return o;n=1;var t={};return Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(r,i){void 0===i&&(i={});var e=JSON.stringify({text:r,options:i});if(t[e])return t[e];i.font=i.font||"Times",i.fontSize=i.fontSize||"16px",i.fontWeight=i.fontWeight||"normal",i.width=i.width||"auto";var s=function(t,r){var i=document.createElement("div"),e=document.createTextNode(t);return i.appendChild(e),i.style.fontFamily=r.font,i.style.fontSize=r.fontSize,i.style.fontWeight=r.fontWeight,i.style.position="absolute",i.style.visibility="hidden",i.style.left="-999px",i.style.top="-999px",i.style.width=r.width,i.style.height="auto",document.body.appendChild(i),i}(r,i),n={width:s.offsetWidth,height:s.offsetHeight};return function(t){t.parentNode.removeChild(t)}(s),t[e]=n,n},o}());class c{static number(t,r="decimal",i=1,e=0,s=1){return(t/s).toLocaleString("de-DE",{style:r,useGrouping:!0,maximumFractionDigits:i,minimumFractionDigits:e}).replace(/\s+(%)/g,"$1").replace(/\s/g,this.postfixSeperator).replace(/\./g,this.tsdDelimiter)}static translateScenarioLabel(t,r){if(null==t)return"";const i=new e(t);if(!i.isValid)return`${r.get(t)||t}`;let n,o;return s.AC1===i.base?(n=r.get("dr"===i.type?"ibcssymbol_delta_ac_relative":"ibcssymbol_delta_ac"),o=r.get(i.delta)||i.delta):(n=r.get("dr"===i.type?"ibcssymbol_delta_generic_relative":"ibcssymbol_delta_generic"),o=`${r.get(i.base)||i.base} - ${r.get(i.delta)||i.delta}`),void 0===n&&(n="{%}"),`${n.replace("{%}",o)}`}static getMaxWidthOfArrayItems(t,r,i){return a(t.map((t=>c.translateScenarioLabel(t,r))).reduce(((t,r)=>t.length<r.length?r:t),""),{font:i.fontStyles.font,fontSize:i.fontStyles.size+"px"}).width}}c.tsdDelimiter=".",c.postfixSeperator=",";class d{constructor(){this._dateFormat={year:"YYYY",quarter:"Q[Q] YYYY",month:"MMM YYYY",locale:"[KW]WW YYYY",day:"DD.MM.YYYY"},this._dateLinkFormat={avg:"Ø[DATE]",interval:"[DATE]..[DATE]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE]",mat:"~[DATE]",none:"[DATE]"},this._scenarioMap=new Map,this._fallBackScenario={name:"Series",group:"Series",colorIndex:10,sortIndex:120},this.createScenarioMapEntry("ac","AC",10,400),this.createScenarioMapEntry("fc","FC",30,300),this.createScenarioMapEntry("pl","PL",50,200),this.createScenarioMapEntry("bu","BU",50,200),this.createScenarioMapEntry("pp","PP",20,100),this.createScenarioMapEntry("py","PY",20,100),this.createScenarioMapEntry("dac","dAC",10,1400),this.createScenarioMapEntry("dfc","dFC",30,1300),this.createScenarioMapEntry("dpl","dPL",50,1200),this.createScenarioMapEntry("dbu","dBU",50,1200),this.createScenarioMapEntry("dpp","dPP",20,1100),this.createScenarioMapEntry("dpy","dPY",20,1100),this.createScenarioMapEntry("drac","drAC",10,2400),this.createScenarioMapEntry("drfc","drFC",30,2300),this.createScenarioMapEntry("drpl","drPL",50,2200),this.createScenarioMapEntry("drbu","drBU",50,2200),this.createScenarioMapEntry("drpp","drPP",20,2100),this.createScenarioMapEntry("drpy","drPY",20,2100)}createScenarioMapEntry(t,r,i,e){const s=r,n=i;[1,2,3,4].forEach((i=>{this._scenarioMap.set(t+i,{name:r+i,group:s,colorIndex:n,sortIndex:e+10*i})}))}getScenario(t){return this._scenarioMap.has(t)?this._scenarioMap.get(t):this._fallBackScenario}getScenarioGroup(t){return this._scenarioMap.has(t)?this._scenarioMap.get(t).name:this._fallBackScenario.name}getScenarioColorIndex(t){return this._scenarioMap.has(t)?this._scenarioMap.get(t).colorIndex:this._fallBackScenario.colorIndex}getScenarioSorIndex(t){const r=this.normalizeVarianceScenario(t);return this._scenarioMap.has(r)?this._scenarioMap.get(r).sortIndex:this._fallBackScenario.sortIndex}normalizeVarianceScenario(t){if(null==t)return"";const r=new e(t);return r.isValid?r.type+r.delta:t}}export{a as C,c as F,d as I,s as Q,i as S,e as V}
@@ -1 +0,0 @@
1
- import{g as t,c as e}from"./context-protocol.js";import{r as n}from"./utils.js";import{getElement as o}from"@stencil/core/internal/client";const a=(t,e)=>{const n=[],o=[];for(const a of e)(t(a)?n:o).push(a);return[n,o]},r="WARN_use_dataset",s=(t,e)=>{const n=t.errors;if(n)if(e.length>0){const t=e.map((t=>t.substring(1))).join(", ");n.addOrReplace({id:r,type:"warning",message:`Using datasource(s) "${t}" directly. Prefer using a dataset (bn-dataset) for query support and metadata.`})}else n.remove(r)},i=(r,i,c)=>{let l,u,d=[],f=[],p=[];const h=(t,e)=>{const n=e?t.substring(1):t;let o;try{o=u.db.db.exec(`SELECT * FROM \`${n}\``)}catch(t){o=[]}i(t,o)},m=()=>{d.forEach((t=>t())),d=[],f.forEach((t=>{t&&(d.push(u.db.subscribe(t,(()=>h(t,!1)))),h(t,!1),(t=>{if(c){const e=u.datasetsMeta.get(t);e&&c(t,e)}})(t))})),p.forEach((t=>{t&&(d.push(u.db.subscribe(t.substring(1),(()=>h(t,!0)))),h(t,!0))}))},g=new MutationObserver((t=>{t.forEach((t=>{"datasets"===t.attributeName&&([p,f]=a((t=>t.startsWith("$")),o(r).getAttribute("datasets").split(",")),s(r,p),m())}))})),w=r.connectedCallback;r.connectedCallback=()=>{const e=o(r);u=t(e),[p,f]=a((t=>t.startsWith("$")),(e.getAttribute("datasets")||"").split(",")),s(r,p),m(),g.observe(e,{attributes:!0,attributeFilter:["datasets"]}),c&&(l=u.datasetsMeta.on("set",((t,e)=>{f.includes(t)&&c(t,e)}))),n(w,r)};const $=r.disconnectedCallback;return r.disconnectedCallback=()=>{g.disconnect(),d.forEach((t=>t())),d=[],n(l),e(o(r)),n($,r)},t=>{f=t,m()}};function c(t,e=!1){const n=l(t);if(!n)return e&&console.log("[parentDims] no layout parent found for",t.tagName),{width:0,height:0};const o=getComputedStyle(n),a=n.clientWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight),r=function(t,e=!1){let n=l(t),o=0,a=null,r=1;for(;n;){if(n.hasAttribute("data-bn-fit-content")){e&&console.log(`[height:${o}]`,n.tagName,"fit-content region → discarding inner candidate"),a=null;const t=parseInt(n.getAttribute("data-bn-fit-content"),10);!isNaN(t)&&t>1&&(r*=t),n=u(n),o++;continue}const t=getComputedStyle(n),s=t.overflowY;if(e&&console.log(`[height:${o}]`,n.tagName,n.className||"(no class)",`overflow=${s} clientH=${n.clientHeight} h=${t.height}`),null===a)if("hidden"===s||"scroll"===s||"auto"===s)a=n.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom),e&&console.log(`[height] candidate at depth ${o}: ${Math.round(a)}px`);else if("none"!==t.maxHeight){const e=parseFloat(t.maxHeight);!isNaN(e)&&e>0&&(a=Math.min(e,n.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)))}n=u(n),o++}return null!==a?a/r:(e&&console.log("[height] NO constrained ancestor → viewport fallback"),"undefined"!=typeof window?window.innerHeight/r:0)}(t,e);return e&&console.log("[parentDims]",t.tagName,"→ layoutParent:",n.tagName,n.className||"(no class)",`clientW=${n.clientWidth} → w=${Math.round(a)}, h=${Math.round(r)}`,"overflow:",o.overflow),{width:Math.max(0,a),height:Math.max(0,r)}}function l(t){var e;const n=t.parentElement;return(null===(e=null==n?void 0:n.assignedSlot)||void 0===e?void 0:e.parentElement)?n.assignedSlot.parentElement:n}function u(t){var e;if(null===(e=t.assignedSlot)||void 0===e?void 0:e.parentElement)return t.assignedSlot.parentElement;if(t.parentElement)return t.parentElement;const n=t.getRootNode();return n instanceof ShadowRoot?n.host:null}function d(t){if(null==t||""===t)return{mode:"empty"};if("none"===t)return{mode:"none"};if("auto"===t)return{mode:"auto"};const e=Number(t);return!isNaN(e)&&e>0?{mode:"factor",factor:e}:{mode:"empty"}}export{c as g,d as p,i as w}
@@ -1 +0,0 @@
1
- import{getElement as t,forceUpdate as n}from"@stencil/core/internal/client";import{r as o}from"./utils.js";const e="inherited-page",i="bn-layout-page";function r(t){return"inherited-closest"===t||t===e}function s(t,n){let o=t.parentNode;for(;o;){if(o instanceof HTMLElement){const t=o.nodeName.toLowerCase();if(n===e){if(t===i)return o}else if("bn-layout-card"===t||t===i)return o}if(o.parentNode)o=o.parentNode;else{if(!(o instanceof ShadowRoot))break;o=o.host}}}const c=(e,i)=>{const c=new Map;let f,l=null;const u=e.connectedCallback;e.connectedCallback=()=>{(()=>{const o=t(e);c.clear();const u=[];for(const t of i){const n=e[t.propName];if("string"!=typeof n||!r(n))continue;if(f||(f=s(o,n)),!f)continue;const i=f.getAttribute(t.ancestorAttr);null!=i&&c.set(t.propName,i),u.push(t.ancestorAttr)}f&&u.length>0&&(l=new MutationObserver((()=>{for(const t of i){if(!r(e[t.propName]))continue;const n=f.getAttribute(t.ancestorAttr);null!=n?c.set(t.propName,n):c.delete(t.propName)}n(e)})),l.observe(f,{attributes:!0,attributeFilter:u}))})(),o(u,e)};const a=e.disconnectedCallback;return e.disconnectedCallback=()=>{l&&(l.disconnect(),l=null),f=void 0,c.clear(),o(a,e)},(t,n)=>{if(r(n))return c.get(t)}};export{r as i,c as w}