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

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 (287) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-172499ac.entry.js +1 -0
  3. package/dist/bn-template-engine/p-19e65c04.entry.js +1 -0
  4. package/dist/bn-template-engine/{p-ff659485.entry.js → p-1a1fd8eb.entry.js} +1 -1
  5. package/dist/bn-template-engine/p-2849c367.entry.js +1 -0
  6. package/dist/bn-template-engine/p-44L8rZSd.js +1 -0
  7. package/dist/bn-template-engine/p-5dd11fcc.entry.js +1 -0
  8. package/dist/bn-template-engine/p-63f891d9.entry.js +1 -0
  9. package/dist/bn-template-engine/p-72f63181.entry.js +1 -0
  10. package/dist/bn-template-engine/p-836ad6f3.entry.js +1 -0
  11. package/dist/bn-template-engine/p-B2KOyHRY.js +1 -0
  12. package/dist/bn-template-engine/p-BA48JiHe.js +1 -0
  13. package/dist/bn-template-engine/p-BnOTt2YD.js +1 -0
  14. package/dist/bn-template-engine/p-CDPTCKVx.js +1 -0
  15. package/dist/bn-template-engine/p-CIXlJoMr.js +1 -0
  16. package/dist/bn-template-engine/{p-BPDZcex5.js → p-COXiPUfj.js} +1 -1
  17. package/dist/bn-template-engine/p-CPZIJpxn.js +1 -0
  18. package/dist/bn-template-engine/p-DHibUOw5.js +1 -0
  19. package/dist/bn-template-engine/p-a50da0f0.entry.js +1 -0
  20. package/dist/bn-template-engine/p-a9a34fb2.entry.js +1 -0
  21. package/dist/bn-template-engine/p-b0369558.entry.js +1 -0
  22. package/dist/bn-template-engine/p-d3fc17ee.entry.js +1 -0
  23. package/dist/bn-template-engine/p-f8c46905.entry.js +1 -0
  24. package/dist/bn-template-engine/p-lIy3SJs2.js +1 -0
  25. package/dist/cjs/AxisConfig-B_GMRfX_.js +233 -0
  26. package/dist/cjs/LabelCollisionManager-8HGn9W0V.js +8616 -0
  27. package/dist/cjs/VarianceMeasure-DEOzP-XZ.js +372 -0
  28. package/dist/cjs/XYChartDataRow-CDl1Ofnv.js +933 -0
  29. package/dist/cjs/bn-asset_21.cjs.entry.js +1586 -9600
  30. package/dist/cjs/bn-chart-bubble.cjs.entry.js +761 -0
  31. package/dist/cjs/bn-chart-scatter.cjs.entry.js +657 -0
  32. package/dist/cjs/bn-grid.cjs.entry.js +4 -3
  33. package/dist/cjs/bn-image.cjs.entry.js +4 -3
  34. package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
  35. package/dist/cjs/bn-ruleset.cjs.entry.js +41 -0
  36. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  37. package/dist/cjs/bn-template.cjs.entry.js +1 -1
  38. package/dist/cjs/bn-text.cjs.entry.js +7 -79
  39. package/dist/cjs/bn-tree.cjs.entry.js +3 -2
  40. package/dist/cjs/{context-protocol-Cn5PL928.js → context-protocol-CIuyJKkK.js} +206 -1
  41. package/dist/cjs/editor-companion.cjs.entry.js +2 -2
  42. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +622 -0
  43. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +665 -0
  44. package/dist/cjs/layoutObserver-CJWRV_y6.js +350 -0
  45. package/dist/cjs/loader.cjs.js +1 -1
  46. package/dist/cjs/sanitizeHtml-LuZr1IMd.js +85 -0
  47. package/dist/cjs/{scaling-DM2UILdF.js → scaling-B4UPXivZ.js} +1 -1
  48. package/dist/cjs/withScalingGroup-D832DQKp.js +73 -0
  49. package/dist/cjs/{withStyled-Dx3uRw9g.js → withStyled-COxuhL-N.js} +43 -301
  50. package/dist/collection/collection-manifest.json +5 -0
  51. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +10 -0
  52. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +1110 -0
  53. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +9 -0
  54. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +653 -0
  55. package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +472 -0
  56. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +10 -0
  57. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +965 -0
  58. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +9 -0
  59. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +580 -0
  60. package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +409 -0
  61. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +23 -2
  62. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +29 -4
  63. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +3 -0
  64. package/dist/collection/components/bn-chart-time/bn-chart-time.js +27 -4
  65. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +29 -4
  66. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +16 -4
  67. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -3
  68. package/dist/collection/components/bn-component-style/bn-component-style.js +1 -1
  69. package/dist/collection/components/bn-context/bn-context.js +1 -1
  70. package/dist/collection/components/bn-dataset/bn-dataset.js +1 -1
  71. package/dist/collection/components/bn-datasource/bn-datasource.js +1 -1
  72. package/dist/collection/components/bn-footer/bn-footer.js +1 -1
  73. package/dist/collection/components/bn-grid/bn-grid.js +1 -1
  74. package/dist/collection/components/bn-image/bn-image.js +1 -1
  75. package/dist/collection/components/bn-internationalization/bn-internationalization.js +1 -1
  76. package/dist/collection/components/bn-layout-card/bn-layout-card.js +26 -3
  77. package/dist/collection/components/bn-layout-page/bn-layout-page.js +33 -4
  78. package/dist/collection/components/bn-message/bn-message.css +6 -2
  79. package/dist/collection/components/bn-message/bn-message.js +3 -2
  80. package/dist/collection/components/bn-page/bn-page.js +1 -1
  81. package/dist/collection/components/bn-ruleset/bn-ruleset.css +3 -0
  82. package/dist/collection/components/bn-ruleset/bn-ruleset.js +68 -0
  83. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +1 -1
  84. package/dist/collection/components/bn-table/bn-table.js +146 -14
  85. package/dist/collection/components/bn-table/ibcs-table.css +8 -0
  86. package/dist/collection/components/bn-table/ibcs-table.js +64 -8
  87. package/dist/collection/components/bn-table/utils/Table.js +43 -5
  88. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +13 -8
  89. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -2
  90. package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +47 -0
  91. package/dist/collection/components/bn-table/utils/elements/index.js +1 -0
  92. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +87 -15
  93. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +284 -3
  94. package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +140 -0
  95. package/dist/collection/components/bn-table/utils/helper/WaterfallCalculator.js +166 -0
  96. package/dist/collection/components/bn-table/utils/helper/index.js +2 -0
  97. package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +10 -0
  98. package/dist/collection/components/bn-template/bn-template.js +1 -1
  99. package/dist/collection/components/bn-text/bn-text.js +2 -75
  100. package/dist/collection/components/bn-title/bn-title.js +27 -3
  101. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.css +4 -0
  102. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +29 -3
  103. package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +3 -0
  104. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  105. package/dist/collection/stores/componentStyles.js +29 -0
  106. package/dist/collection/stores/createScopedStores.js +6 -1
  107. package/dist/collection/stores/internationalization.js +40 -0
  108. package/dist/collection/stores/ruleSets.js +46 -0
  109. package/dist/collection/utils/constants.js +5 -0
  110. package/dist/collection/utils/ibcsRuleSet.js +14 -26
  111. package/dist/collection/utils/sanitizeHtml.js +81 -0
  112. package/dist/collection/utils/validate.js +24 -0
  113. package/dist/collection/utils/withComponentStyle.js +3 -5
  114. package/dist/collection/utils/withInheritedProps.js +1 -1
  115. package/dist/collection/utils/withRuleSet.js +105 -0
  116. package/dist/collection/utils/withScalingGroup.js +3 -0
  117. package/dist/collection/utils/xy/FacetGrid.js +36 -0
  118. package/dist/collection/utils/xy/IsoCurves.js +156 -0
  119. package/dist/collection/utils/xy/NumericScale.js +103 -0
  120. package/dist/collection/utils/xy/PointLabeler.js +96 -0
  121. package/dist/collection/utils/xy/RadiusScale.js +42 -0
  122. package/dist/collection/utils/xy/SeriesPalette.js +80 -0
  123. package/dist/collection/utils/xy/VarianceMeasure.js +76 -0
  124. package/dist/collection/utils/xy/XYFrame.js +120 -0
  125. package/dist/collection/utils/xy/XYLegend.js +107 -0
  126. package/dist/collection/utils/xy/model/AxisConfig.js +221 -0
  127. package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +69 -0
  128. package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
  129. package/dist/collection/utils/xy/model/XYChartStyle.js +52 -0
  130. package/dist/components/AxisConfig.js +1 -0
  131. package/dist/components/CompareUtil.js +1 -0
  132. package/dist/components/DataFormatDigits.js +1 -1
  133. package/dist/components/LabelCollisionManager.js +1 -0
  134. package/dist/components/Order.js +1 -1
  135. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  136. package/dist/components/SiPrefix.js +1 -0
  137. package/dist/components/StringAdapter.js +1 -0
  138. package/dist/components/VarianceMeasure.js +1 -0
  139. package/dist/components/XYChartDataRow.js +1 -0
  140. package/dist/components/bn-chart-bubble.d.ts +11 -0
  141. package/dist/components/bn-chart-bubble.js +1 -0
  142. package/dist/components/bn-chart-scatter.d.ts +11 -0
  143. package/dist/components/bn-chart-scatter.js +1 -0
  144. package/dist/components/bn-chart-structure.js +1 -1
  145. package/dist/components/bn-chart-time.js +1 -1
  146. package/dist/components/bn-component-style.js +1 -1
  147. package/dist/components/bn-context.js +1 -1
  148. package/dist/components/bn-dataset.js +1 -1
  149. package/dist/components/bn-datasource.js +1 -1
  150. package/dist/components/bn-footer2.js +1 -1
  151. package/dist/components/bn-grid.js +1 -1
  152. package/dist/components/bn-image.js +1 -1
  153. package/dist/components/bn-internationalization.js +1 -1
  154. package/dist/components/bn-layout-card.js +1 -1
  155. package/dist/components/bn-layout-page.js +1 -1
  156. package/dist/components/bn-message2.js +1 -1
  157. package/dist/components/bn-page2.js +1 -1
  158. package/dist/components/bn-ruleset.d.ts +11 -0
  159. package/dist/components/bn-ruleset.js +1 -0
  160. package/dist/components/bn-scaling-group.js +1 -1
  161. package/dist/components/bn-table.js +1 -1
  162. package/dist/components/bn-template.js +1 -1
  163. package/dist/components/bn-text.js +1 -1
  164. package/dist/components/bn-title2.js +1 -1
  165. package/dist/components/bn-tree.js +1 -1
  166. package/dist/components/context-protocol.js +1 -1
  167. package/dist/components/editor-companion.js +1 -1
  168. package/dist/components/formatter.js +1 -0
  169. package/dist/components/ibcs-chart-bubble.d.ts +11 -0
  170. package/dist/components/ibcs-chart-bubble.js +1 -0
  171. package/dist/components/ibcs-chart-bubble2.js +1 -0
  172. package/dist/components/ibcs-chart-scatter.d.ts +11 -0
  173. package/dist/components/ibcs-chart-scatter.js +1 -0
  174. package/dist/components/ibcs-chart-scatter2.js +1 -0
  175. package/dist/components/ibcs-chart-structure2.js +1 -1
  176. package/dist/components/ibcs-chart-time2.js +1 -1
  177. package/dist/components/ibcs-table2.js +1 -1
  178. package/dist/components/ibcs-title2.js +1 -1
  179. package/dist/components/layoutObserver.js +1 -1
  180. package/dist/components/luxon.js +1 -1
  181. package/dist/components/merge.js +1 -0
  182. package/dist/components/sanitizeHtml.js +1 -0
  183. package/dist/components/stackColors.js +1 -0
  184. package/dist/components/validate.js +1 -1
  185. package/dist/components/withComponentStyle.js +1 -1
  186. package/dist/components/withDataset.js +1 -0
  187. package/dist/components/withRuleSet.js +1 -0
  188. package/dist/components/withScalingGroup.js +1 -0
  189. package/dist/components/withStyled.js +1 -1
  190. package/dist/esm/AxisConfig-BwUQrme0.js +224 -0
  191. package/dist/esm/LabelCollisionManager-DZP5Vl8T.js +8599 -0
  192. package/dist/esm/VarianceMeasure-Cxshx01h.js +364 -0
  193. package/dist/esm/XYChartDataRow-FF_VxRnF.js +923 -0
  194. package/dist/esm/bn-asset_21.entry.js +1124 -9138
  195. package/dist/esm/bn-chart-bubble.entry.js +759 -0
  196. package/dist/esm/bn-chart-scatter.entry.js +655 -0
  197. package/dist/esm/bn-grid.entry.js +4 -3
  198. package/dist/esm/bn-image.entry.js +4 -3
  199. package/dist/esm/bn-internationalization.entry.js +2 -2
  200. package/dist/esm/bn-ruleset.entry.js +39 -0
  201. package/dist/esm/bn-template-engine.js +1 -1
  202. package/dist/esm/bn-template.entry.js +1 -1
  203. package/dist/esm/bn-text.entry.js +6 -78
  204. package/dist/esm/bn-tree.entry.js +3 -2
  205. package/dist/esm/{context-protocol-BB-4Onmw.js → context-protocol-BNHTlllP.js} +202 -2
  206. package/dist/esm/editor-companion.entry.js +2 -2
  207. package/dist/esm/ibcs-chart-bubble.entry.js +620 -0
  208. package/dist/esm/ibcs-chart-scatter.entry.js +663 -0
  209. package/dist/esm/layoutObserver-D5FY_lQa.js +345 -0
  210. package/dist/esm/loader.js +1 -1
  211. package/dist/esm/sanitizeHtml-BA48JiHe.js +83 -0
  212. package/dist/esm/{scaling-h4KcBet3.js → scaling-B7Pa0d_s.js} +2 -2
  213. package/dist/esm/withScalingGroup-DBheBsP4.js +71 -0
  214. package/dist/esm/{withStyled-BBvU2f-A.js → withStyled-DTvj2nar.js} +29 -287
  215. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +193 -0
  216. package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +58 -0
  217. package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +91 -0
  218. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +172 -0
  219. package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +53 -0
  220. package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +66 -0
  221. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +7 -0
  222. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +2 -0
  223. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +1 -0
  224. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +10 -1
  225. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +2 -0
  226. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +1 -0
  227. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +10 -0
  228. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +14 -0
  229. package/dist/types/components/bn-message/bn-message.d.ts +5 -2
  230. package/dist/types/components/bn-ruleset/bn-ruleset.d.ts +8 -0
  231. package/dist/types/components/bn-table/bn-table.d.ts +38 -5
  232. package/dist/types/components/bn-table/ibcs-table.d.ts +8 -1
  233. package/dist/types/components/bn-table/utils/Table.d.ts +8 -0
  234. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
  235. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +33 -0
  236. package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +2 -1
  237. package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +21 -0
  238. package/dist/types/components/bn-table/utils/elements/index.d.ts +1 -0
  239. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +13 -7
  240. package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +17 -0
  241. package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +37 -0
  242. package/dist/types/components/bn-table/utils/helper/WaterfallCalculator.d.ts +55 -0
  243. package/dist/types/components/bn-table/utils/helper/index.d.ts +2 -0
  244. package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +4 -0
  245. package/dist/types/components/bn-table/utils/model/index.d.ts +21 -0
  246. package/dist/types/components/bn-title/bn-title.d.ts +11 -1
  247. package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +2 -0
  248. package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +1 -0
  249. package/dist/types/components.d.ts +943 -37
  250. package/dist/types/context/context-protocol.d.ts +2 -0
  251. package/dist/types/stores/componentStyles.d.ts +21 -0
  252. package/dist/types/stores/createScopedStores.d.ts +2 -0
  253. package/dist/types/stores/ruleSets.d.ts +40 -0
  254. package/dist/types/utils/constants.d.ts +5 -0
  255. package/dist/types/utils/ibcsRuleSet.d.ts +6 -1
  256. package/dist/types/utils/model/ChartStyles.d.ts +2 -1
  257. package/dist/types/utils/sanitizeHtml.d.ts +6 -0
  258. package/dist/types/utils/validate.d.ts +12 -0
  259. package/dist/types/utils/withInheritedProps.d.ts +11 -0
  260. package/dist/types/utils/withRuleSet.d.ts +24 -0
  261. package/dist/types/utils/xy/FacetGrid.d.ts +27 -0
  262. package/dist/types/utils/xy/IsoCurves.d.ts +46 -0
  263. package/dist/types/utils/xy/NumericScale.d.ts +41 -0
  264. package/dist/types/utils/xy/PointLabeler.d.ts +58 -0
  265. package/dist/types/utils/xy/RadiusScale.d.ts +26 -0
  266. package/dist/types/utils/xy/SeriesPalette.d.ts +59 -0
  267. package/dist/types/utils/xy/VarianceMeasure.d.ts +37 -0
  268. package/dist/types/utils/xy/XYFrame.d.ts +44 -0
  269. package/dist/types/utils/xy/XYLegend.d.ts +43 -0
  270. package/dist/types/utils/xy/model/AxisConfig.d.ts +96 -0
  271. package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +36 -0
  272. package/dist/types/utils/xy/model/XYChartDataRow.d.ts +157 -0
  273. package/dist/types/utils/xy/model/XYChartStyle.d.ts +31 -0
  274. package/package.json +1 -1
  275. package/readme.md +7 -3
  276. package/dist/bn-template-engine/p-19f49fbc.entry.js +0 -1
  277. package/dist/bn-template-engine/p-3465fcdc.entry.js +0 -1
  278. package/dist/bn-template-engine/p-67746414.entry.js +0 -1
  279. package/dist/bn-template-engine/p-6b469808.entry.js +0 -1
  280. package/dist/bn-template-engine/p-86ca2d5e.entry.js +0 -1
  281. package/dist/bn-template-engine/p-Tx6omDWp.js +0 -1
  282. package/dist/bn-template-engine/p-d724ab88.entry.js +0 -1
  283. package/dist/bn-template-engine/p-efd3b67a.entry.js +0 -1
  284. package/dist/bn-template-engine/p-z9bPNFYF.js +0 -1
  285. package/dist/components/ibcsRuleSet.js +0 -1
  286. package/dist/components/scaling.js +0 -1
  287. package/dist/components/withInheritedProps.js +0 -1
@@ -0,0 +1,655 @@
1
+ import { r as registerInstance, d as writeTask, f as forceUpdate, h, H as Host, g as getElement } from './index-B_d-jp99.js';
2
+ import { a as globalLabelKeys } from './context-protocol-BNHTlllP.js';
3
+ import { w as withDataset, a as withTranslation, g as getParentDimensions, p as parseScaling } from './scaling-B7Pa0d_s.js';
4
+ import { w as withRuleSet, o as observeParentResize } from './layoutObserver-D5FY_lQa.js';
5
+ import { i as isBlankInput, a as isValidInteger, w as withStyled, b as withComponentStyle, c as isValidMeasureToken } from './withStyled-DTvj2nar.js';
6
+ import { w as withComponentStatus, a as withHasError } from './withHasError-DW_vMDUp.js';
7
+ import { r as resolveMeasure, s as scenarioFamily } from './VarianceMeasure-Cxshx01h.js';
8
+ import { f as toIsoConfig, c as toFacetConfig, d as toLabelConfig, e as toLegendConfig, p as parseSpec, t as toAxisConfig } from './AxisConfig-BwUQrme0.js';
9
+
10
+ const bnChartScatterCss = () => `:host{display:inline-block;position:relative;overflow:hidden}.container{display:flex;flex-direction:column}`;
11
+
12
+ const HIERARCHY_DEPTH = { rowGroup: 0, category: 1, subCategory: 2 };
13
+ const ChartScatter = class {
14
+ validateX(newValue) {
15
+ this.validateAxisSpec("x", newValue);
16
+ }
17
+ validateY(newValue) {
18
+ this.validateAxisSpec("y", newValue);
19
+ }
20
+ validateIso(newValue) {
21
+ this.validateObjectSpec("iso", newValue, null, (data) => toIsoConfig(data));
22
+ }
23
+ validateLevel(newValue) {
24
+ const errId = "ERR_level";
25
+ const valid = ["auto", "category", "subcategory"];
26
+ if (isBlankInput(newValue) || valid.includes(newValue.trim().toLowerCase())) {
27
+ this.errors.remove(errId);
28
+ }
29
+ else {
30
+ this.errors.addOrReplace({
31
+ id: errId,
32
+ type: "warning",
33
+ message: `level: invalid value '${newValue}' — expected ${valid.join("/")}; using 'auto'.`,
34
+ });
35
+ }
36
+ }
37
+ validateSeriesLevel(newValue) {
38
+ const errId = "ERR_seriesLevel";
39
+ const valid = ["auto", "rowgroup", "category", "none"];
40
+ if (isBlankInput(newValue) || valid.includes(newValue.trim().toLowerCase())) {
41
+ this.errors.remove(errId);
42
+ }
43
+ else {
44
+ this.errors.addOrReplace({
45
+ id: errId,
46
+ type: "warning",
47
+ message: `series-level: invalid value '${newValue}' — expected ${valid.join("/")}; using 'auto'.`,
48
+ });
49
+ }
50
+ }
51
+ validateFacet(newValue) {
52
+ this.validateObjectSpec("facet", newValue, null, (data) => toFacetConfig(data));
53
+ }
54
+ validateLabels(newValue) {
55
+ this.validateObjectSpec("labels", newValue, null, (data) => toLabelConfig(data, this.labelDefaults()));
56
+ }
57
+ validateLegend(newValue) {
58
+ this.validateObjectSpec("legend", newValue, null, (data) => toLegendConfig(data));
59
+ }
60
+ validateAspect(newValue) {
61
+ const errId = "ERR_aspect";
62
+ if (isBlankInput(newValue) || this.parseAspect(newValue) !== null) {
63
+ this.errors.remove(errId);
64
+ }
65
+ else {
66
+ this.errors.addOrReplace({
67
+ id: errId,
68
+ type: "warning",
69
+ message: `aspect: invalid value '${newValue}' — expected "w:h" (e.g. "16:9"); using the default.`,
70
+ });
71
+ }
72
+ }
73
+ validateLimit(newValue) {
74
+ const errId = "ERR_limit";
75
+ if (isValidInteger(newValue) && Number(newValue) >= 0) {
76
+ this.errors.remove(errId);
77
+ }
78
+ else {
79
+ this.errors.addOrReplace({
80
+ id: errId,
81
+ type: "warning",
82
+ message: `limit: invalid value '${newValue}' — expected a non-negative integer; using 0.`,
83
+ });
84
+ }
85
+ }
86
+ validateScale(newValue) {
87
+ const errId = "ERR_scale";
88
+ if (isBlankInput(newValue)) {
89
+ this.errors.remove(errId);
90
+ return;
91
+ }
92
+ const { mode, factor } = parseScaling(newValue);
93
+ if (mode === "factor" && (factor === undefined || factor <= 0)) {
94
+ this.errors.addOrReplace({
95
+ id: errId,
96
+ type: "warning",
97
+ message: `scale: invalid value '${newValue}' — expected none/auto or a positive number.`,
98
+ });
99
+ }
100
+ else {
101
+ this.errors.remove(errId);
102
+ }
103
+ }
104
+ constructor(hostRef) {
105
+ registerInstance(this, hostRef);
106
+ /** Active dataset name (the last subscribed dataset to fire `onUpdate`). */
107
+ this.datasetName = "";
108
+ /** Bumped on every data update so Stencil re-renders even when the name is unchanged. */
109
+ this.dataVersion = 0;
110
+ this.datasetMeta = null;
111
+ this.appliedScaleFactor = 1;
112
+ this.layoutObserver = null;
113
+ /** Ids of currently-active blocking errors — the chart renders empty while any is set. */
114
+ this.activeErrors = new Set();
115
+ /**
116
+ * Custom chart title
117
+ */
118
+ this.chartTitle = "";
119
+ /**
120
+ * AlaSQL WHERE clause fragment injected into the data query to filter
121
+ * rows before rendering (e.g. `"rowGroup = 'Revenue'"`).
122
+ */
123
+ this.filter = "";
124
+ /**
125
+ * Hyperbolic iso-lines `x·y = k` (IBCS 09C/09D). JSON object:
126
+ * `{"values":"auto"|[1,2,3],"label":"Gross profit","unit":"mUSD",
127
+ * "highlight":{"from":3}}`. Requires a strictly positive plot domain.
128
+ */
129
+ this.iso = "";
130
+ /**
131
+ * Point identity level: `auto` (deepest populated level from the dataset
132
+ * meta), `category`, or `subcategory`.
133
+ */
134
+ this.level = "auto";
135
+ /**
136
+ * Series (color) grouping level: `auto` (parent of the point level),
137
+ * `rowgroup`, `category`, or `none` (single series).
138
+ */
139
+ this.seriesLevel = "auto";
140
+ /**
141
+ * Small-multiple panels (IBCS 10E/10F/10G style). JSON object:
142
+ * `{"level":"rowgroup"|"category","columns":6}`. The facet level must sit
143
+ * above the series level in the hierarchy.
144
+ */
145
+ this.facet = "";
146
+ /**
147
+ * Point labeling. JSON object: `{"points":"auto"|"none"|"all"|["VAB"],
148
+ * "max":12}` (IBCS requires selective, proximate labels).
149
+ */
150
+ this.labels = "";
151
+ /**
152
+ * Series-color legend. JSON object: `{"show":true,"position":"right"|"bottom"}`.
153
+ */
154
+ this.legend = "";
155
+ /**
156
+ * Plot aspect ratio as `"w:h"` (default `"16:9"`). XY charts have no
157
+ * data-driven height; this is the explicit height control.
158
+ */
159
+ this.aspect = "16:9";
160
+ /**
161
+ * Maximum number of points per panel (0 = unlimited). Scatter keeps the
162
+ * first N rows in dataset order.
163
+ */
164
+ this.limit = 0;
165
+ this._autoScaleGuard = false;
166
+ this._lastObservedWidth = 0;
167
+ /** Facade-bound translator handed to the inner element for warning messages. */
168
+ this.translateForInner = (key, data) => this.t(key, data);
169
+ withStyled(this);
170
+ withComponentStatus(this);
171
+ withDataset(this, (name, _data) => {
172
+ this.datasetName = (name === null || name === void 0 ? void 0 : name.startsWith("$")) ? name.substring(1) : name || "";
173
+ this.dataVersion = this.dataVersion + 1;
174
+ }, (_name, meta) => {
175
+ this.datasetMeta = meta;
176
+ });
177
+ this.errors = withHasError(this);
178
+ this.componentStyle = withComponentStyle(this);
179
+ this.ruleSetConfig = withRuleSet(this);
180
+ this.t = withTranslation(this).t;
181
+ }
182
+ componentWillLoad() {
183
+ this.validateX(this.x);
184
+ this.validateY(this.y);
185
+ this.validateIso(this.iso);
186
+ this.validateLevel(this.level);
187
+ this.validateSeriesLevel(this.seriesLevel);
188
+ this.validateFacet(this.facet);
189
+ this.validateLabels(this.labels);
190
+ this.validateLegend(this.legend);
191
+ this.validateAspect(this.aspect);
192
+ this.validateLimit(this.limit);
193
+ this.validateScale(this.scale);
194
+ }
195
+ componentDidRender() {
196
+ const { mode } = parseScaling(this.scale);
197
+ if (mode !== "auto" && mode !== "empty") {
198
+ this._autoScaleGuard = false;
199
+ const parent = getParentDimensions(this.element);
200
+ const errId = "WARN_overflow";
201
+ if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
202
+ this.errors.addOrReplace({
203
+ id: errId,
204
+ type: "warning",
205
+ message: "Chart exceeds available space and will be cut off. Check the scale value.",
206
+ });
207
+ }
208
+ else {
209
+ this.errors.remove(errId);
210
+ }
211
+ return;
212
+ }
213
+ if (this._autoScaleGuard) {
214
+ this._autoScaleGuard = false;
215
+ return;
216
+ }
217
+ const host = this.element;
218
+ const { width: parentWidth } = getParentDimensions(host);
219
+ if (parentWidth <= 0)
220
+ return;
221
+ this._lastObservedWidth = parentWidth;
222
+ const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
223
+ const currentWidth = host.scrollWidth;
224
+ const currentFactor = this.appliedScaleFactor;
225
+ if (!Number.isFinite(currentWidth) || currentWidth <= parentWidth + 1) {
226
+ this.errors.remove("AUTO_scale");
227
+ return;
228
+ }
229
+ const computedFactor = Math.max(0.3, (currentFactor * (parentWidth - 1)) / currentWidth);
230
+ if (Math.abs(computedFactor - currentFactor) < 0.01) {
231
+ return;
232
+ }
233
+ host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
234
+ if (mode === "empty") {
235
+ this.errors.addOrReplace({
236
+ id: "AUTO_scale",
237
+ type: "warning",
238
+ message: `Auto-scaled chart by factor ${computedFactor.toFixed(3)}`,
239
+ });
240
+ }
241
+ else {
242
+ this.errors.remove("AUTO_scale");
243
+ }
244
+ this._autoScaleGuard = true;
245
+ writeTask(() => {
246
+ this.appliedScaleFactor = computedFactor;
247
+ });
248
+ }
249
+ componentDidLoad() {
250
+ // Watch for size changes (window resize, card relayout) — width only.
251
+ this.layoutObserver = observeParentResize(this.element, () => {
252
+ if (this._autoScaleGuard)
253
+ return;
254
+ const { width } = getParentDimensions(this.element);
255
+ if (width > 0 && Math.abs(width - this._lastObservedWidth) > 2) {
256
+ this._lastObservedWidth = width;
257
+ forceUpdate(this);
258
+ }
259
+ });
260
+ // Double-rAF: guarantees the browser completed at least one full paint
261
+ // cycle so all nested card/body/grid layouts are finalized.
262
+ requestAnimationFrame(() => {
263
+ requestAnimationFrame(() => {
264
+ if (this._autoScaleGuard)
265
+ return;
266
+ const { width } = getParentDimensions(this.element);
267
+ this._lastObservedWidth = width;
268
+ forceUpdate(this);
269
+ });
270
+ });
271
+ }
272
+ disconnectedCallback() {
273
+ var _a;
274
+ (_a = this.layoutObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
275
+ this.layoutObserver = null;
276
+ }
277
+ /** Default label behavior differs between scatter (`auto`) and bubble (`all`). */
278
+ labelDefaults() {
279
+ return { points: "auto", values: false, max: 12 };
280
+ }
281
+ /** Sets or clears a blocking error (type `error`) with a stable id. */
282
+ setBlockingError(id, message) {
283
+ if (message === null) {
284
+ this.errors.remove(id);
285
+ this.activeErrors.delete(id);
286
+ }
287
+ else {
288
+ this.errors.addOrReplace({ id, type: "error", message });
289
+ this.activeErrors.add(id);
290
+ }
291
+ }
292
+ hasBlockingErrors() {
293
+ return this.activeErrors.size > 0;
294
+ }
295
+ /** Shared validator for the x/y axis props. */
296
+ validateAxisSpec(prop, raw) {
297
+ var _a;
298
+ const jsonId = `ERR_xy_json_${prop}`;
299
+ const measureId = `ERR_xy_measure_${prop}`;
300
+ const fieldsId = `WARN_xy_fields_${prop}`;
301
+ const required = prop === "x" || prop === "y" || prop === "size";
302
+ const { data, parseError } = parseSpec(raw, "measure");
303
+ if (parseError) {
304
+ this.setBlockingError(jsonId, this.t(".xy-prop-json", { prop }));
305
+ this.setBlockingError(measureId, null);
306
+ this.errors.remove(fieldsId);
307
+ return;
308
+ }
309
+ this.setBlockingError(jsonId, null);
310
+ if (data === null) {
311
+ this.setBlockingError(measureId, required ? this.t(".xy-measure-invalid", { prop, measure: "" }) : null);
312
+ this.errors.remove(fieldsId);
313
+ return;
314
+ }
315
+ const result = prop === "share" ? null : toAxisConfig(data);
316
+ const measure = (_a = data.measure) !== null && _a !== void 0 ? _a : "";
317
+ if (!isValidMeasureToken(measure)) {
318
+ this.setBlockingError(measureId, this.t(".xy-measure-invalid", { prop, measure }));
319
+ }
320
+ else {
321
+ this.setBlockingError(measureId, null);
322
+ }
323
+ this.reportSpecIssues(fieldsId, prop, result);
324
+ }
325
+ /** Shared validator for optional object props (iso/facet/labels/legend/…). */
326
+ validateObjectSpec(prop, raw, shorthandKey, convert) {
327
+ const jsonId = `ERR_xy_json_${prop}`;
328
+ const fieldsId = `WARN_xy_fields_${prop}`;
329
+ const { data, parseError } = parseSpec(raw, shorthandKey);
330
+ if (parseError) {
331
+ this.setBlockingError(jsonId, this.t(".xy-prop-json", { prop }));
332
+ this.errors.remove(fieldsId);
333
+ return;
334
+ }
335
+ this.setBlockingError(jsonId, null);
336
+ if (data === null) {
337
+ this.errors.remove(fieldsId);
338
+ return;
339
+ }
340
+ this.reportSpecIssues(fieldsId, prop, convert(data));
341
+ }
342
+ /** Unknown sub-fields → warning, never error (forward compatibility). */
343
+ reportSpecIssues(errId, prop, result) {
344
+ const issues = [];
345
+ if (result !== null && result.invalidFields.length > 0) {
346
+ issues.push(`invalid: ${result.invalidFields.join(", ")}`);
347
+ }
348
+ if (result !== null && result.unknownKeys.length > 0) {
349
+ issues.push(`unknown: ${result.unknownKeys.join(", ")}`);
350
+ }
351
+ if (issues.length > 0) {
352
+ this.errors.addOrReplace({
353
+ id: errId,
354
+ type: "warning",
355
+ message: `${prop}: ignored sub-fields (${issues.join("; ")}).`,
356
+ });
357
+ }
358
+ else {
359
+ this.errors.remove(errId);
360
+ }
361
+ }
362
+ prepareAxis(prop, raw) {
363
+ const { data, parseError } = parseSpec(raw, "measure");
364
+ if (parseError || data === null) {
365
+ return null;
366
+ }
367
+ const { config } = toAxisConfig(data);
368
+ if (config === null || !isValidMeasureToken(config.measure)) {
369
+ return null;
370
+ }
371
+ // An inverted explicit domain would silently swallow all points — ignore it.
372
+ if (config.min !== undefined && config.max !== undefined && config.min >= config.max) {
373
+ this.errors.addOrReplace({
374
+ id: `WARN_xy_domain_${prop}`,
375
+ type: "warning",
376
+ message: `${prop}: min must be smaller than max; the override is ignored.`,
377
+ });
378
+ config.min = undefined;
379
+ config.max = undefined;
380
+ }
381
+ else {
382
+ this.errors.remove(`WARN_xy_domain_${prop}`);
383
+ }
384
+ return config;
385
+ }
386
+ prepareIso() {
387
+ const { data, parseError } = parseSpec(this.iso, null);
388
+ if (parseError || data === null) {
389
+ return null;
390
+ }
391
+ return toIsoConfig(data).config;
392
+ }
393
+ prepareLabels() {
394
+ const defaults = this.labelDefaults();
395
+ const { data, parseError } = parseSpec(this.labels, null);
396
+ if (parseError || data === null) {
397
+ return { points: defaults.points, values: defaults.values, max: defaults.max };
398
+ }
399
+ return toLabelConfig(data, defaults).config;
400
+ }
401
+ prepareLegend() {
402
+ const { data, parseError } = parseSpec(this.legend, null);
403
+ if (parseError || data === null) {
404
+ return { show: true, position: "right" };
405
+ }
406
+ return toLegendConfig(data).config;
407
+ }
408
+ prepareFacet() {
409
+ const { data, parseError } = parseSpec(this.facet, null);
410
+ if (parseError || data === null) {
411
+ return null;
412
+ }
413
+ return toFacetConfig(data).config;
414
+ }
415
+ /** Point identity level; `auto` resolves to the dataset's deepest populated level. */
416
+ preparePointLevel() {
417
+ var _a, _b;
418
+ const value = (_a = this.level) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase();
419
+ if (value === "category") {
420
+ return "category";
421
+ }
422
+ if (value === "subcategory") {
423
+ return "subCategory";
424
+ }
425
+ const suggested = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedLevel;
426
+ if (suggested === "rowGroup" || suggested === "category" || suggested === "subCategory") {
427
+ return suggested;
428
+ }
429
+ return "category";
430
+ }
431
+ /** Series level; `auto` resolves to the parent of the point level. */
432
+ prepareSeriesLevel(pointLevel) {
433
+ var _a;
434
+ const value = (_a = this.seriesLevel) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase();
435
+ if (value === "none") {
436
+ return null;
437
+ }
438
+ if (value === "rowgroup") {
439
+ return "rowGroup";
440
+ }
441
+ if (value === "category") {
442
+ return "category";
443
+ }
444
+ if (pointLevel === "subCategory") {
445
+ return "category";
446
+ }
447
+ if (pointLevel === "category") {
448
+ return "rowGroup";
449
+ }
450
+ return null;
451
+ }
452
+ /**
453
+ * Cross-prop checks that need several parsed props at once: the scenario
454
+ * family of all mapped measures and the facet > series > point level
455
+ * order. Runs while preparing the template (stable-id add/remove).
456
+ */
457
+ validateCrossProp(measures, facet) {
458
+ const families = new Set();
459
+ for (const measure of measures) {
460
+ if (measure === undefined) {
461
+ continue;
462
+ }
463
+ const ref = resolveMeasure(measure);
464
+ if (ref !== null && ref.kind === "scenario") {
465
+ families.add(scenarioFamily(ref.slot));
466
+ }
467
+ }
468
+ this.setBlockingError("ERR_xy_family", families.size > 1 ? this.t(".xy-family-mixed", { families: [...families].join(", ") }) : null);
469
+ const pointLevel = this.preparePointLevel();
470
+ const seriesLevel = this.prepareSeriesLevel(pointLevel);
471
+ const facetLevel = facet !== null ? (facet.level === "rowgroup" ? "rowGroup" : "category") : null;
472
+ let orderViolation = null;
473
+ if (seriesLevel !== null && HIERARCHY_DEPTH[seriesLevel] >= HIERARCHY_DEPTH[pointLevel]) {
474
+ orderViolation = `series '${seriesLevel}' vs point '${pointLevel}'`;
475
+ }
476
+ if (facetLevel !== null) {
477
+ const below = seriesLevel !== null && seriesLevel !== void 0 ? seriesLevel : pointLevel;
478
+ if (HIERARCHY_DEPTH[facetLevel] >= HIERARCHY_DEPTH[below]) {
479
+ orderViolation = `facet '${facetLevel}' vs '${below}'`;
480
+ }
481
+ }
482
+ this.setBlockingError("ERR_xy_level_order", orderViolation !== null ? this.t(".xy-level-order", { detail: orderViolation }) : null);
483
+ }
484
+ parseAspect(value) {
485
+ const match = /^\s*(\d+(?:\.\d+)?)\s*:\s*(\d+(?:\.\d+)?)\s*$/.exec(value !== null && value !== void 0 ? value : "");
486
+ if (match === null) {
487
+ return null;
488
+ }
489
+ const w = Number(match[1]);
490
+ const numericH = Number(match[2]);
491
+ if (w <= 0 || numericH <= 0) {
492
+ return null;
493
+ }
494
+ return w / numericH;
495
+ }
496
+ prepareAspect() {
497
+ var _a;
498
+ return (_a = this.parseAspect(this.aspect)) !== null && _a !== void 0 ? _a : 16 / 9;
499
+ }
500
+ prepareLimit() {
501
+ const value = Math.floor(Number(this.limit) || 0);
502
+ return value > 0 ? value : 0;
503
+ }
504
+ /** Local i18n keys handed to the inner element (bubble adds its legend keys). */
505
+ i18nLocalKeys() {
506
+ return ["no-data", "axis.in", "legend.title"];
507
+ }
508
+ prepareI18n() {
509
+ const i18nMapLocal = new Map(this.i18nLocalKeys().map((key) => [key, this.t(".".concat(key))]));
510
+ const i18nMapGlobal = new Map(globalLabelKeys.map((key) => [key, this.t("global.".concat(key))]));
511
+ return new Map([...i18nMapGlobal.entries(), ...i18nMapLocal.entries()]);
512
+ }
513
+ prepareStyle() {
514
+ const effectiveFactor = this.getEffectiveScaleFactor();
515
+ const tag = this.element.localName;
516
+ return this.componentStyle(($) => {
517
+ const baseFontSize = $["global"]["fontSizePx"];
518
+ const scaledFontSize = baseFontSize * effectiveFactor;
519
+ return {
520
+ scaleFactors: $[tag]["scaleFactors"],
521
+ fontStyles: {
522
+ font: `${scaledFontSize}px ${$["global"]["fontFamily"]}`,
523
+ size: scaledFontSize,
524
+ color: $["global"]["fontColor"],
525
+ background: $["global"]["fontBackgroundColor"],
526
+ leading: 1.8,
527
+ },
528
+ axisStyles: $[tag]["axisStyles"],
529
+ seriesColors: $[tag]["seriesColors"],
530
+ padding: $[tag]["padding"],
531
+ };
532
+ });
533
+ }
534
+ getEffectiveScaleFactor() {
535
+ const { mode, factor } = parseScaling(this.scale);
536
+ if (mode === "factor")
537
+ return factor;
538
+ if (mode === "auto" || mode === "empty")
539
+ return this.appliedScaleFactor;
540
+ return 1;
541
+ }
542
+ getFontStyles() {
543
+ const effectiveFactor = this.getEffectiveScaleFactor();
544
+ return this.componentStyle(($) => {
545
+ var _a, _b, _c, _d;
546
+ const baseFontSize = ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333;
547
+ return {
548
+ "--bn-font-family": ((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontFamily"]) || "'Noto Sans', sans-serif",
549
+ "--bn-font-size": `${baseFontSize * effectiveFactor}px`,
550
+ "--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
551
+ "--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
552
+ };
553
+ });
554
+ }
555
+ /**
556
+ * Dataset field map for the editor-companion: hierarchy fields plus the
557
+ * 16 scenario slots; descriptions of currently-mapped slots reflect the
558
+ * live mapping (e.g. `ac1 → "x: Margin"`).
559
+ */
560
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
561
+ getDataStructure() {
562
+ const slots = {};
563
+ for (const family of ["ac", "pp", "fc", "pl"]) {
564
+ for (const index of [1, 2, 3, 4]) {
565
+ slots[`${family}${index}`] = { type: "number", isOptional: true, description: "" };
566
+ }
567
+ }
568
+ for (const [prop, config] of Object.entries(this.mappedAxes())) {
569
+ if (config === null) {
570
+ continue;
571
+ }
572
+ const ref = resolveMeasure(config.measure);
573
+ if (ref === null) {
574
+ continue;
575
+ }
576
+ const label = "label" in config && config.label !== undefined ? config.label : config.measure;
577
+ if (ref.kind === "scenario") {
578
+ slots[ref.slot].description = `${prop}: ${label}`;
579
+ }
580
+ else {
581
+ slots[ref.measure.base].description = `${prop}: ${config.measure} (base)`;
582
+ slots[ref.measure.delta].description = `${prop}: ${config.measure} (delta)`;
583
+ }
584
+ }
585
+ return {
586
+ [this.dataStructureName()]: Object.assign({ operation: { type: "string", isOptional: false, description: "" }, rowGroup: { type: "string", isOptional: true, description: "" }, rowGroupIndex: { type: "number", isOptional: true, description: "" }, category: { type: "string", isOptional: false, description: "" }, categoryIndex: { type: "number", isOptional: false, description: "" }, subCategory: { type: "string", isOptional: true, description: "" }, subCategoryIndex: { type: "number", isOptional: true, description: "" } }, slots),
587
+ };
588
+ }
589
+ /** Mapped measure-carrying configs by prop name (overridden by the bubble chart). */
590
+ mappedAxes() {
591
+ return {
592
+ x: this.prepareAxis("x", this.x),
593
+ y: this.prepareAxis("y", this.y),
594
+ };
595
+ }
596
+ dataStructureName() {
597
+ return "IScatterChartDataRow";
598
+ }
599
+ chartTemplate() {
600
+ const x = this.prepareAxis("x", this.x);
601
+ const y = this.prepareAxis("y", this.y);
602
+ const facet = this.prepareFacet();
603
+ this.validateCrossProp([x === null || x === void 0 ? void 0 : x.measure, y === null || y === void 0 ? void 0 : y.measure], facet);
604
+ if (this.hasBlockingErrors() || x === null || y === null) {
605
+ return null;
606
+ }
607
+ const pointLevel = this.preparePointLevel();
608
+ const preparedI18n = this.prepareI18n();
609
+ const preparedStyle = this.prepareStyle();
610
+ const fullParentWidth = getParentDimensions(this.element).width;
611
+ return (h("ibcs-chart-scatter", { tableName: this.datasetName, dataVersion: this.dataVersion, chartTitle: this.chartTitle, x: x, y: y, iso: this.prepareIso(), labels: this.prepareLabels(), legend: this.prepareLegend(), facet: facet, pointLevel: pointLevel, seriesLevel: this.prepareSeriesLevel(pointLevel), aspect: this.prepareAspect(), limit: this.prepareLimit(), filter: this.filter, styles: preparedStyle, i18n: preparedI18n, containerWidth: fullParentWidth, ruleSetConfig: this.ruleSetConfig(), errors: this.errors, translate: this.translateForInner }));
612
+ }
613
+ render() {
614
+ return (h(Host, { key: '34a4004ac103bf8cee9e723ec5c5ebf47f5c7a4c', style: this.getFontStyles() }, h("div", { key: '28f050a91d0c85e02c8cf295178cd075082787c6', class: "container" }, this.chartTemplate())));
615
+ }
616
+ get element() { return getElement(this); }
617
+ static get watchers() { return {
618
+ "x": [{
619
+ "validateX": 0
620
+ }],
621
+ "y": [{
622
+ "validateY": 0
623
+ }],
624
+ "iso": [{
625
+ "validateIso": 0
626
+ }],
627
+ "level": [{
628
+ "validateLevel": 0
629
+ }],
630
+ "seriesLevel": [{
631
+ "validateSeriesLevel": 0
632
+ }],
633
+ "facet": [{
634
+ "validateFacet": 0
635
+ }],
636
+ "labels": [{
637
+ "validateLabels": 0
638
+ }],
639
+ "legend": [{
640
+ "validateLegend": 0
641
+ }],
642
+ "aspect": [{
643
+ "validateAspect": 0
644
+ }],
645
+ "limit": [{
646
+ "validateLimit": 0
647
+ }],
648
+ "scale": [{
649
+ "validateScale": 0
650
+ }]
651
+ }; }
652
+ };
653
+ ChartScatter.style = bnChartScatterCss();
654
+
655
+ export { ChartScatter as bn_chart_scatter };
@@ -1,7 +1,8 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-B_d-jp99.js';
2
- import { i as isValidBoolean, w as withStyled, a as withComponentStyle } from './withStyled-BBvU2f-A.js';
2
+ import { d as isValidBoolean, w as withStyled, b as withComponentStyle } from './withStyled-DTvj2nar.js';
3
3
  import { w as withComponentStatus, a as withHasError } from './withHasError-DW_vMDUp.js';
4
- import './context-protocol-BB-4Onmw.js';
4
+ import './context-protocol-BNHTlllP.js';
5
+ import './VarianceMeasure-Cxshx01h.js';
5
6
 
6
7
  /**
7
8
  * Header configuration types and parsing utilities for bn-grid component.
@@ -372,7 +373,7 @@ const Grid = class {
372
373
  "grid-template-rows": this.getGridTemplateRows(),
373
374
  gap: this.cellGap,
374
375
  };
375
- return (h(Host, { key: 'e84402bafd778e7069cd17bd86687a6648dbafe0', style: this.getFontStyles() }, h("div", { key: '91941a42bc41fbbaf53c66551035bf97765a9f88', class: "grid-container", style: gridContainerStyle }, this.renderTitle(), this.renderColumnHeaders(), this.renderDataCells()), h("slot", { key: '349958090f4bf35b9ec768c8994bdf5a96636a36' })));
376
+ return (h(Host, { key: 'b764369a9ec0f55923408d7935b3595c296a1f3f', style: this.getFontStyles() }, h("div", { key: '47f0bf65ba39079902449e541f6c447ad171cd83', class: "grid-container", style: gridContainerStyle }, this.renderTitle(), this.renderColumnHeaders(), this.renderDataCells()), h("slot", { key: '502168eab311d3d09be9e5b176a28c0ba3420c74' })));
376
377
  }
377
378
  get element() { return getElement(this); }
378
379
  static get watchers() { return {