@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
@@ -0,0 +1 @@
1
+ const t=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"]),s=new Set(["class","style","colspan","rowspan","href","title","src","alt","width","height"]);function o(t){if(!t)return"";const s=document.createElement("div");return s.innerHTML=t,e(s),s.innerHTML}function e(o){for(const n of Array.from(o.childNodes)){if(n.nodeType!==Node.ELEMENT_NODE)continue;const r=n;if(t.has(r.tagName.toLowerCase())){for(const t of Array.from(r.attributes)){const o=t.name.toLowerCase();o.startsWith("on")||!s.has(o)?r.removeAttribute(t.name):"href"!==o&&"src"!==o||!/^\s*javascript:/i.test(t.value)?"style"===o&&/expression|javascript/i.test(t.value)&&r.removeAttribute(t.name):r.removeAttribute(t.name)}e(r)}else o.replaceChild(document.createTextNode(r.textContent||""),r)}}export{o as s}
@@ -0,0 +1 @@
1
+ const n=["pl","fc","pp","ac"];function f(n){return n.replace(/\d+$/,"")}function t(n){return.299*parseInt(n.slice(1,3),16)+.587*parseInt(n.slice(3,5),16)+.114*parseInt(n.slice(5,7),16)>128?"#000000":"#ffffff"}export{n as I,f as a,t as g}
@@ -1 +1 @@
1
- import{S as n,a as t,A as r,b as e,O as u,c as i,T as s,D as o,d as a,M as c,e as l}from"./Order.js";import{a as f,D as d}from"./DateStringFactory.js";const v=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,m=/^[A-Za-z_][A-Za-z0-9_]*$/,S=["min","max","avg","sum"];class y{constructor(n,t,r,e){this.label=n,this.alias=t,this.fn=r,this.arg=e}get isNumeric(){return S.includes(this.fn)}}function N(n){if("string"!=typeof n)return!1;const t=v.exec(n);if(!t)return!1;const[,r,e]=t;return"lit"===r?e.length>0:m.test(e)}function O(n,t,r){if(!N(r))return null;const[,e,u]=v.exec(r);return new y(n,t,e,u)}function b(n){return null==n||""===n||"null"===n}function J(t){return b(t)||"auto"===t.trim().toLowerCase()?[]:p((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in n)))).toString())}function p(r){return b(r)?[]:r.replace(";",",").split(",").filter((r=>{var e,u,i;const s=r.split("_"),o=null===(e=s[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),a=null===(u=s[1])||void 0===u?void 0:u.toUpperCase().trim(),c=null===(i=s[2])||void 0===i?void 0:i.toUpperCase().trim();return 3!==s.length||!(o in n)||!(a in n)||!(c in t)}))}function h(n){return b(n)||"auto"===n.trim().toLowerCase()?[]:p(n.split(",").filter((n=>!(n.toUpperCase()in e))).toString())}function A(n){return!b(n)&&Number.isInteger(Number(n))}function g(n){return!b(n)&&!Number.isNaN(Number(n))}function k(n){return!b(n)&&(null==n?void 0:n.toUpperCase())in u}function j(n){return"auto"===(null==n?void 0:n.toLowerCase())||(null==n?void 0:n.toUpperCase())in r}function T(n){if(b(n))return[];try{const t=JSON.parse(n);if(t instanceof Array)return t.filter((n=>!(n.hasOwnProperty("name")&&n.hasOwnProperty("unit"))))}catch(n){console.error("validateMeasureList: failed to parse JSON",n)}return["Invalid JSON structure"]}function $(n){const t=Date.parse(n);return Number.isInteger(t)}function G(n){return(null==n?void 0:n.toUpperCase())in d}function I(n){return(null==n?void 0:n.toUpperCase())in f}function w(n){return(null==n?void 0:n.toUpperCase())in i}function x(n){return!b(n)&&(null==n?void 0:n.toUpperCase())in o}function z(n){return!b(n)&&["true","false",!0,!1].some((t=>t===n))}function D(n){return!b(n)&&(null==n?void 0:n.toUpperCase())in a}function E(n){if(b(n))return[];try{const t=JSON.parse(n);if(t instanceof Array)return t.filter((n=>!(n.hasOwnProperty("rowGroup")&&n.hasOwnProperty("category")&&n.hasOwnProperty("subCategory"))))}catch(n){console.error("validateThereOfJsonStr: failed to parse JSON",n)}return["Invalid JSON structure"]}function _(n){if(b(n))return[];try{const t=JSON.parse(n);if(null!==t&&"object"==typeof t&&!(t instanceof Array))return Object.entries(t).filter((([,n])=>"string"!=typeof n||!N(n))).map((([n,t])=>`${n}: ${t}`))}catch(n){console.error("validateAttributesJsonStr: failed to parse JSON",n)}return["Invalid JSON structure"]}function M(n){if(b(n))return[];try{const t=JSON.parse(n);if(t instanceof Array)return t.filter((n=>!(n.hasOwnProperty("rowGroup")&&n.hasOwnProperty("category"))))}catch(n){console.error("validatePartOfJsonStr: failed to parse JSON",n)}return["Invalid JSON structure"]}function P(n){return(null==n?void 0:n.trim().toUpperCase())in c}function Z(n){return["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(null==n?void 0:n.trim())||["GREATEST","LEAST"].includes(null==n?void 0:n.trim().toUpperCase())}function q(n){return(null==n?void 0:n.toUpperCase().trim())in l}function C(n){return(null==n?void 0:n.toUpperCase().trim())in s}function L(n){if(b(n))return[];try{return JSON.parse(n).filter((n=>!(n.hasOwnProperty("scenario")&&n.hasOwnProperty("name")&&n.hasOwnProperty("subGroups"))))}catch(n){console.error("validateColumnThereOfJsonStr: failed to parse JSON",n)}return["Invalid JSON structure"]}function F(n){if(b(n))return[];try{const t=JSON.parse(n);if("object"!=typeof t||null===t||Array.isArray(t))return["stack: must be a JSON object"];const r=[];if(t.hasOwnProperty("by")){const n=["scenarios","dimensions"];n.includes(t.by)||r.push(`stack: 'by' must be one of: ${n.join(", ")}`)}else r.push("stack: 'by' is required");if(t.hasOwnProperty("mode")){const n=["absolute","relative","absolute-relative"];n.includes(t.mode)||r.push(`stack: 'mode' must be one of: ${n.join(", ")}`)}if(t.hasOwnProperty("order")){const n=["asc","desc","dataset"];n.includes(t.order)||r.push(`stack: 'order' must be one of: ${n.join(", ")}`)}return r}catch(n){return["stack: invalid JSON"]}}export{p as a,h as b,k as c,T as d,$ as e,I as f,G as g,g as h,b as i,j,A as k,z as l,Z as m,F as n,w as o,C as p,x as q,D as r,E as s,M as t,P as u,J as v,q as w,L as x,_ as y,O as z}
1
+ import{S as n,a as t,A as r,b as e,T as u,D as i,c as o,M as s,d as a}from"./CompareUtil.js";import{a as c,D as l}from"./DateStringFactory.js";import{a as f,O as d}from"./Order.js";import{r as v}from"./VarianceMeasure.js";const m=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,S=/^[A-Za-z_][A-Za-z0-9_]*$/,y=["min","max","avg","sum"];class N{constructor(n,t,r,e){this.label=n,this.alias=t,this.fn=r,this.arg=e}get isNumeric(){return y.includes(this.fn)}}function O(n){if("string"!=typeof n)return!1;const t=m.exec(n);if(!t)return!1;const[,r,e]=t;return"lit"===r?e.length>0:S.test(e)}function b(n,t,r){if(!O(r))return null;const[,e,u]=m.exec(r);return new N(n,t,e,u)}function J(n){return null==n||""===n||"null"===n}function p(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:h((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in n)))).toString())}function h(r){return J(r)?[]:r.replace(";",",").split(",").filter((r=>{var e,u,i;const o=r.split("_"),s=null===(e=o[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),a=null===(u=o[1])||void 0===u?void 0:u.toUpperCase().trim(),c=null===(i=o[2])||void 0===i?void 0:i.toUpperCase().trim();return 3!==o.length||!(s in n)||!(a in n)||!(c in t)}))}function A(t){return J(t)?[]:h(t.split(",").filter((t=>!(t.toUpperCase().trim()in n))).toString())}function g(n){return J(n)||"auto"===n.trim().toLowerCase()?[]:h(n.split(",").filter((n=>!(n.toUpperCase()in f))).toString())}function j(n){return!J(n)&&Number.isInteger(Number(n))}function k(n){return!J(n)&&!Number.isNaN(Number(n))}function T(n){return!J(n)&&(null==n?void 0:n.toUpperCase())in d}function $(n){return"auto"===(null==n?void 0:n.toLowerCase())||(null==n?void 0:n.toUpperCase())in r}function G(n){if(J(n))return[];try{const t=JSON.parse(n);if(t instanceof Array)return t.filter((n=>!(n.hasOwnProperty("name")&&n.hasOwnProperty("unit"))))}catch(n){console.error("validateMeasureList: failed to parse JSON",n)}return["Invalid JSON structure"]}function I(n){const t=Date.parse(n);return Number.isInteger(t)}function w(n){return(null==n?void 0:n.toUpperCase())in l}function x(n){return(null==n?void 0:n.toUpperCase())in c}function z(n){return(null==n?void 0:n.toUpperCase())in e}function D(n){return!J(n)&&(null==n?void 0:n.toUpperCase())in i}function E(n){return!J(n)&&["true","false",!0,!1].some((t=>t===n))}function M(n){return!J(n)&&(null==n?void 0:n.toUpperCase())in o}function _(n){if(J(n))return[];try{const t=JSON.parse(n);if(t instanceof Array)return t.filter((n=>!(n.hasOwnProperty("rowGroup")&&n.hasOwnProperty("category")&&n.hasOwnProperty("subCategory"))))}catch(n){console.error("validateThereOfJsonStr: failed to parse JSON",n)}return["Invalid JSON structure"]}function C(n){if(J(n))return[];try{const t=JSON.parse(n);if(null!==t&&"object"==typeof t&&!(t instanceof Array))return Object.entries(t).filter((([,n])=>"string"!=typeof n||!O(n))).map((([n,t])=>`${n}: ${t}`))}catch(n){console.error("validateAttributesJsonStr: failed to parse JSON",n)}return["Invalid JSON structure"]}function P(n){if(J(n))return[];try{const t=JSON.parse(n);if(t instanceof Array)return t.filter((n=>!(n.hasOwnProperty("rowGroup")&&n.hasOwnProperty("category"))))}catch(n){console.error("validatePartOfJsonStr: failed to parse JSON",n)}return["Invalid JSON structure"]}function Z(n){return(null==n?void 0:n.trim().toUpperCase())in s}function q(n){return["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(null==n?void 0:n.trim())||["GREATEST","LEAST"].includes(null==n?void 0:n.trim().toUpperCase())}function L(n){return(null==n?void 0:n.toUpperCase().trim())in a}function B(n){return(null==n?void 0:n.toUpperCase().trim())in u}function F(n){if(J(n))return[];try{return JSON.parse(n).filter((n=>!(n.hasOwnProperty("scenario")&&n.hasOwnProperty("name")&&n.hasOwnProperty("subGroups"))))}catch(n){console.error("validateColumnThereOfJsonStr: failed to parse JSON",n)}return["Invalid JSON structure"]}function R(n){if(J(n))return[];try{const t=JSON.parse(n);if("object"!=typeof t||null===t||Array.isArray(t))return["stack: must be a JSON object"];const r=[];if(t.hasOwnProperty("by")){const n=["scenarios","dimensions"];n.includes(t.by)||r.push(`stack: 'by' must be one of: ${n.join(", ")}`)}else r.push("stack: 'by' is required");if(t.hasOwnProperty("mode")){const n=["absolute","relative","absolute-relative"];n.includes(t.mode)||r.push(`stack: 'mode' must be one of: ${n.join(", ")}`)}if(t.hasOwnProperty("order")){const n=["asc","desc","dataset"];n.includes(t.order)||r.push(`stack: 'order' must be one of: ${n.join(", ")}`)}return r}catch(n){return["stack: invalid JSON"]}}function U(n){return!J(n)&&null!==v(n)}export{C as A,b as B,h as a,g as b,T as c,G as d,I as e,x as f,w as g,j as h,J as i,U as j,k,$ as l,E as m,q as n,R as o,z as p,A as q,B as r,D as s,M as t,_ as u,p as v,P as w,Z as x,L as y,F as z}
@@ -1 +1 @@
1
- import{getElement as e,forceUpdate as t}from"@stencil/core/internal/client";import{g as r,c}from"./context-protocol.js";import{r as o}from"./utils.js";const s=e=>{if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},n=(e,t)=>t,l=(e,t)=>[...new Set([...e,...t])],i=(e,t)=>{const r=(e=>{return{arrayMergeType:"combine",arrayMerge:(t=e?e.arrayMergeType:"combine","overwrite"===t?n:l),...e};var t})(t);return e.reduce(((e,t)=>(Object.keys(t).forEach((c=>{Array.isArray(e[c])&&Array.isArray(t[c])?r&&r.arrayMerge&&(e[c]=r.arrayMerge(e[c],t[c])):e[c]=s(e[c])&&s(t[c])?i([e[c],t[c]],r):t[c]})),e)),{})},a=s=>{let n,l,a,b;const u=()=>{const e=l.componentStyles.state;b=i([e._system||{},e._default||{},e[a]||{}])},y=new MutationObserver((r=>{r.forEach((r=>{"selected-style"===r.attributeName&&(a=e(s).getAttribute("selected-style"),u(),t(s))}))})),j=s.connectedCallback;s.connectedCallback=()=>{const c=e(s);l=r(c),b=l.componentStyles.state._system,y.observe(c,{attributes:!0,attributeFilter:["selected-style"]}),a=e(s).getAttribute("selected-style"),u(),n=l.componentStyles.on("set",(r=>{r===a&&(a=e(s).getAttribute("selected-style"),u(),t(e(s)))})),o(j,s)};const f=s.disconnectedCallback;return s.disconnectedCallback=()=>{y.disconnect(),o(n),c(e(s)),o(f,s)},e=>e(b)};export{a as w}
1
+ import{getElement as e,forceUpdate as t}from"@stencil/core/internal/client";import{g as s,c as r}from"./context-protocol.js";import{r as o}from"./utils.js";import{m as l}from"./merge.js";const c=c=>{let i,n,a,m;const p=()=>{const e=n.componentStyles.state;m=l([e._system||{},e._default||{},e[a]||{}],{arrayMergeType:"overwrite"})},y=new MutationObserver((s=>{s.forEach((s=>{"selected-style"===s.attributeName&&(a=e(c).getAttribute("selected-style"),p(),t(c))}))})),d=c.connectedCallback;c.connectedCallback=()=>{const r=e(c);n=s(r),m=n.componentStyles.state._system,y.observe(r,{attributes:!0,attributeFilter:["selected-style"]}),a=e(c).getAttribute("selected-style"),p(),i=n.componentStyles.on("set",(s=>{s===a&&(a=e(c).getAttribute("selected-style"),p(),t(e(c)))})),o(d,c)};const u=c.disconnectedCallback;return c.disconnectedCallback=()=>{y.disconnect(),o(i),r(e(c)),o(u,c)},e=>e(m)};export{c as w}
@@ -0,0 +1 @@
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";function a(t,e=!1){const n=r(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),i=function(t,e=!1){let n=r(t),o=0,a=null,i=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&&(i*=t),n=s(n),o++;continue}const t=getComputedStyle(n),r=t.overflowY;if(e&&console.log(`[height:${o}]`,n.tagName,n.className||"(no class)",`overflow=${r} clientH=${n.clientHeight} h=${t.height}`),null===a)if("hidden"===r||"scroll"===r||"auto"===r)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=s(n),o++}return null!==a?a/i:(e&&console.log("[height] NO constrained ancestor → viewport fallback"),"undefined"!=typeof window?window.innerHeight/i: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(i)}`,"overflow:",o.overflow),{width:Math.max(0,a),height:Math.max(0,i)}}function r(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 s(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 i(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"}}const c=(t,e)=>{const n=[],o=[];for(const a of e)(t(a)?n:o).push(a);return[n,o]},l="WARN_use_dataset",u=(t,e)=>{const n=t.errors;if(n)if(e.length>0){const t=e.map((t=>t.substring(1))).join(", ");n.addOrReplace({id:l,type:"warning",message:`Using datasource(s) "${t}" directly. Prefer using a dataset (bn-dataset) for query support and metadata.`})}else n.remove(l)},d=(a,r,s)=>{let i,l,d=[],f=[],p=[];const h=(t,e)=>{const n=e?t.substring(1):t;let o;try{o=l.db.db.exec(`SELECT * FROM \`${n}\``)}catch(t){o=[]}r(t,o)},m=()=>{d.forEach((t=>t())),d=[],f.forEach((t=>{t&&(d.push(l.db.subscribe(t,(()=>h(t,!1)))),h(t,!1),(t=>{if(s){const e=l.datasetsMeta.get(t);e&&s(t,e)}})(t))})),p.forEach((t=>{t&&(d.push(l.db.subscribe(t.substring(1),(()=>h(t,!0)))),h(t,!0))}))},g=new MutationObserver((t=>{t.forEach((t=>{"datasets"===t.attributeName&&([p,f]=c((t=>t.startsWith("$")),o(a).getAttribute("datasets").split(",")),u(a,p),m())}))})),w=a.connectedCallback;a.connectedCallback=()=>{const e=o(a);l=t(e),[p,f]=c((t=>t.startsWith("$")),(e.getAttribute("datasets")||"").split(",")),u(a,p),m(),g.observe(e,{attributes:!0,attributeFilter:["datasets"]}),s&&(i=l.datasetsMeta.on("set",((t,e)=>{f.includes(t)&&s(t,e)}))),n(w,a)};const $=a.disconnectedCallback;return a.disconnectedCallback=()=>{g.disconnect(),d.forEach((t=>t())),d=[],n(i),e(o(a)),n($,a)},t=>{f=t,m()}};export{a as g,i as p,d as w}
@@ -0,0 +1 @@
1
+ import{getElement as t,forceUpdate as e}from"@stencil/core/internal/client";import{g as n,c as o}from"./context-protocol.js";import{r}from"./utils.js";import{m as s}from"./merge.js";const i="inherited-page",l="bn-layout-page";function u(t){return"inherited-closest"===t||t===i}function c(t,e){let n=t.parentNode;for(;n;){if(n instanceof HTMLElement){const t=n.nodeName.toLowerCase();if(e===i){if(t===l)return n}else if("bn-layout-card"===t||t===l)return n}if(n.parentNode)n=n.parentNode;else{if(!(n instanceof ShadowRoot))break;n=n.host}}}const a=(n,o)=>{const s=new Map;let i,l=null;const a=n.connectedCallback;n.connectedCallback=()=>{(()=>{const r=t(n);s.clear();const a=[];for(const t of o){const e=n[t.propName];if("string"!=typeof e||!u(e))continue;if(i||(i=c(r,e)),!i)continue;const o=i.getAttribute(t.ancestorAttr);null!=o&&s.set(t.propName,o),a.push(t.ancestorAttr)}i&&a.length>0&&(l=new MutationObserver((()=>{for(const t of o){if(!u(n[t.propName]))continue;const e=i.getAttribute(t.ancestorAttr);null!=e?s.set(t.propName,e):s.delete(t.propName)}e(n)})),l.observe(i,{attributes:!0,attributeFilter:a}))})(),r(a,n)};const f=n.disconnectedCallback;return n.disconnectedCallback=()=>{l&&(l.disconnect(),l=null),i=void 0,s.clear(),r(f,n)},(t,e)=>{if(u(e))return s.get(t)}},f=i=>{let l,a,f,b,m=null;const p=()=>{const t=a.ruleSets.state;b=s([t._system||{},t._default||{},t[f]||{}])},d=()=>{const n=t(i),o=n.getAttribute("ruleset");if(m&&(m.disconnect(),m=null),o&&u(o)){const t=c(n,o);f=null==t?void 0:t.getAttribute("ruleset"),t&&(m=new MutationObserver((()=>{f=t.getAttribute("ruleset"),p(),e(i)})),m.observe(t,{attributes:!0,attributeFilter:["ruleset"]}))}else f=o},w=new MutationObserver((t=>{t.forEach((t=>{"ruleset"===t.attributeName&&(d(),p(),e(i))}))})),g=i.connectedCallback;i.connectedCallback=()=>{const o=t(i);a=n(o),b=a.ruleSets.state._system,w.observe(o,{attributes:!0,attributeFilter:["ruleset"]}),d(),p(),l=a.ruleSets.on("set",(n=>{n!==f&&"_default"!==n||(d(),p(),e(t(i)))})),r(g,i)};const v=i.disconnectedCallback;return i.disconnectedCallback=()=>{w.disconnect(),m&&(m.disconnect(),m=null),r(l),o(t(i)),r(v,i)},()=>b};export{a,u as i,f as w}
@@ -0,0 +1 @@
1
+ import{getElement as o,forceUpdate as t}from"@stencil/core/internal/client";import{g as n,c}from"./context-protocol.js";import{r as s}from"./utils.js";const e=e=>{let i,r;const f=()=>{"function"==typeof e.validateUnitScaling&&e.validateUnitScaling(e.unitScaling),"function"==typeof e.validatePercentageScaling&&e.validatePercentageScaling(e.percentageScaling),"function"==typeof e.validateSizeScaling&&e.validateSizeScaling()},p=e.connectedCallback;e.connectedCallback=()=>{const c=o(e);r=n(c),(()=>{const o=r.scalingGroups.state;for(const t of Object.keys(o))void 0!==o[t]?e.pixelPerUnitGroupMap.set(t,o[t]):e.pixelPerUnitGroupMap.delete(t)})(),f(),i=r.scalingGroups.on("set",((n,c)=>{void 0!==c?e.pixelPerUnitGroupMap.set(n,c):e.pixelPerUnitGroupMap.delete(n),f(),t(o(e))})),s(p,e)};const l=e.disconnectedCallback;e.disconnectedCallback=()=>{s(i),c(o(e)),s(l,e)}};export{e as w}
@@ -1 +1 @@
1
- import{m as t}from"./emotion-hash.esm.js";import{h as s}from"./validate.js";import{forceUpdate as e,getElement as a}from"@stencil/core/internal/client";import{r as o}from"./utils.js";class r{constructor(){this.cache=new Map,this.tag=r.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 n=new r,m=t=>s(t)?`${t}px`:t,c={width:{className:"w",cssName:"width",attrName:"width",transform:m},height:{className:"h",cssName:"height",attrName:"height",transform:m},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:m},right:{className:"rgt",cssName:"right",attrName:"right",transform:m},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:m},left:{className:"lft",cssName:"left",attrName:"left",transform:m},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:m},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},i=Object.keys(c);function l(s,e){const a=function(s,e){const a=t(e);return`bn-c-${s.className}_${a}`}(s,e),o=function(t,s,e){return`.${s} {${t.cssName}: ${e};}`}(s,a,e);return{className:a,style:o}}const N=t=>{const s=new Map;return i.forEach((e=>{const a=t.getAttribute(e);a&&(["top","left","right","bottom"].includes(e)&&s.set("position",l(c.position,"absolute")),s.set(e,l(c[e],(c[e].transform||function(t){return t})(a))))})),s},f=new MutationObserver((t=>{for(const s of t){const t=s.target,a=N(t);n.apply(a);const o=Array.from(a.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...o).join(" "),e(t)}})),u=t=>{const s=t.connectedCallback,e=t.disconnectedCallback;t.connectedCallback=()=>{const e=a(t);if(!e)throw new Error("Can't find element field in component undefined");(t=>{const s=N(t);n.apply(s);const e=Array.from(s.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...e).join(" "),f.observe(t,{attributes:!0,attributeFilter:i,childList:!1,subtree:!1})})(e),o(s,t)},t.disconnectedCallback=()=>{o(e,t)}};export{u as w}
1
+ import{m as t}from"./emotion-hash.esm.js";import{k as s}from"./validate.js";import{forceUpdate as e,getElement as a}from"@stencil/core/internal/client";import{r as o}from"./utils.js";class r{constructor(){this.cache=new Map,this.tag=r.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 n=new r,m=t=>s(t)?`${t}px`:t,c={width:{className:"w",cssName:"width",attrName:"width",transform:m},height:{className:"h",cssName:"height",attrName:"height",transform:m},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:m},right:{className:"rgt",cssName:"right",attrName:"right",transform:m},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:m},left:{className:"lft",cssName:"left",attrName:"left",transform:m},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:m},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},i=Object.keys(c);function l(s,e){const a=function(s,e){const a=t(e);return`bn-c-${s.className}_${a}`}(s,e),o=function(t,s,e){return`.${s} {${t.cssName}: ${e};}`}(s,a,e);return{className:a,style:o}}const N=t=>{const s=new Map;return i.forEach((e=>{const a=t.getAttribute(e);a&&(["top","left","right","bottom"].includes(e)&&s.set("position",l(c.position,"absolute")),s.set(e,l(c[e],(c[e].transform||function(t){return t})(a))))})),s},f=new MutationObserver((t=>{for(const s of t){const t=s.target,a=N(t);n.apply(a);const o=Array.from(a.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...o).join(" "),e(t)}})),u=t=>{const s=t.connectedCallback,e=t.disconnectedCallback;t.connectedCallback=()=>{const e=a(t);if(!e)throw new Error("Can't find element field in component undefined");(t=>{const s=N(t);n.apply(s);const e=Array.from(s.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...e).join(" "),f.observe(t,{attributes:!0,attributeFilter:i,childList:!1,subtree:!1})})(e),o(s,t)},t.disconnectedCallback=()=>{o(e,t)}};export{u as w}
@@ -0,0 +1,224 @@
1
+ import { C as CompareUtil } from './VarianceMeasure-DnwNKspZ.js';
2
+
3
+ /**
4
+ * Parses a raw object-prop attribute value. A blank value yields `data: null`
5
+ * without error. A value starting with `{` must be valid JSON describing an
6
+ * object. Any other bare string is treated as shorthand for
7
+ * `{ [shorthandKey]: value }` when a shorthand key is allowed, otherwise it
8
+ * is a parse error.
9
+ */
10
+ function parseSpec(raw, shorthandKey) {
11
+ var _a;
12
+ const trimmed = (_a = raw === null || raw === void 0 ? void 0 : raw.trim()) !== null && _a !== void 0 ? _a : "";
13
+ if (trimmed === "" || trimmed === "null") {
14
+ return { data: null, parseError: false };
15
+ }
16
+ if (trimmed.startsWith("{") || trimmed.startsWith("[")) {
17
+ try {
18
+ const parsed = JSON.parse(trimmed);
19
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
20
+ return { data: null, parseError: true };
21
+ }
22
+ return { data: parsed, parseError: false };
23
+ }
24
+ catch (_b) {
25
+ return { data: null, parseError: true };
26
+ }
27
+ }
28
+ if (shorthandKey !== null) {
29
+ return { data: { [shorthandKey]: trimmed }, parseError: false };
30
+ }
31
+ return { data: null, parseError: true };
32
+ }
33
+ function collectUnknownKeys(data, knownKeys) {
34
+ return Object.keys(data).filter((key) => !knownKeys.includes(key));
35
+ }
36
+ function readString(data, key, invalid) {
37
+ if (!CompareUtil.isExisting(data[key])) {
38
+ return undefined;
39
+ }
40
+ if (CompareUtil.isString(data[key])) {
41
+ return data[key];
42
+ }
43
+ invalid.push(key);
44
+ return undefined;
45
+ }
46
+ function readNumber(data, key, invalid) {
47
+ if (!CompareUtil.isExisting(data[key])) {
48
+ return undefined;
49
+ }
50
+ if (CompareUtil.isNumber(data[key])) {
51
+ return data[key];
52
+ }
53
+ invalid.push(key);
54
+ return undefined;
55
+ }
56
+ function readHighlight(data, invalid) {
57
+ if (!CompareUtil.isExisting(data.highlight)) {
58
+ return undefined;
59
+ }
60
+ if (!CompareUtil.isObject(data.highlight) || Array.isArray(data.highlight)) {
61
+ invalid.push("highlight");
62
+ return undefined;
63
+ }
64
+ const range = data.highlight;
65
+ const result = {};
66
+ const from = readNumber(range, "from", invalid);
67
+ const to = readNumber(range, "to", invalid);
68
+ if (from !== undefined) {
69
+ result.from = from;
70
+ }
71
+ if (to !== undefined) {
72
+ result.to = to;
73
+ }
74
+ return result;
75
+ }
76
+ const AXIS_KEYS = ["measure", "label", "unit", "min", "max", "refLine", "highlight"];
77
+ function toAxisConfig(data) {
78
+ const invalidFields = [];
79
+ const measure = readString(data, "measure", invalidFields);
80
+ if (measure === undefined || measure.trim() === "") {
81
+ invalidFields.push("measure");
82
+ return { config: null, unknownKeys: collectUnknownKeys(data, AXIS_KEYS), invalidFields };
83
+ }
84
+ const config = { measure: measure.trim() };
85
+ config.label = readString(data, "label", invalidFields);
86
+ config.unit = readString(data, "unit", invalidFields);
87
+ config.min = readNumber(data, "min", invalidFields);
88
+ config.max = readNumber(data, "max", invalidFields);
89
+ config.refLine = readNumber(data, "refLine", invalidFields);
90
+ config.highlight = readHighlight(data, invalidFields);
91
+ return { config, unknownKeys: collectUnknownKeys(data, AXIS_KEYS), invalidFields };
92
+ }
93
+ const SIZE_KEYS = ["measure", "label", "unit", "group"];
94
+ function toSizeConfig(data) {
95
+ const invalidFields = [];
96
+ const measure = readString(data, "measure", invalidFields);
97
+ if (measure === undefined || measure.trim() === "") {
98
+ invalidFields.push("measure");
99
+ return { config: null, unknownKeys: collectUnknownKeys(data, SIZE_KEYS), invalidFields };
100
+ }
101
+ const config = { measure: measure.trim() };
102
+ config.label = readString(data, "label", invalidFields);
103
+ config.unit = readString(data, "unit", invalidFields);
104
+ config.group = readString(data, "group", invalidFields);
105
+ return { config, unknownKeys: collectUnknownKeys(data, SIZE_KEYS), invalidFields };
106
+ }
107
+ const SHARE_KEYS = ["measure"];
108
+ function toShareConfig(data) {
109
+ const invalidFields = [];
110
+ const measure = readString(data, "measure", invalidFields);
111
+ if (measure === undefined || measure.trim() === "") {
112
+ invalidFields.push("measure");
113
+ return { config: null, unknownKeys: collectUnknownKeys(data, SHARE_KEYS), invalidFields };
114
+ }
115
+ return { config: { measure: measure.trim() }, unknownKeys: collectUnknownKeys(data, SHARE_KEYS), invalidFields };
116
+ }
117
+ const ISO_KEYS = ["values", "label", "unit", "highlight"];
118
+ function toIsoConfig(data) {
119
+ const invalidFields = [];
120
+ let values = null;
121
+ if (data.values === "auto") {
122
+ values = "auto";
123
+ }
124
+ else if (CompareUtil.isArray(data.values) && data.values.every((v) => CompareUtil.isNumber(v))) {
125
+ values = data.values;
126
+ }
127
+ else {
128
+ invalidFields.push("values");
129
+ }
130
+ if (values === null) {
131
+ return { config: null, unknownKeys: collectUnknownKeys(data, ISO_KEYS), invalidFields };
132
+ }
133
+ const config = { values };
134
+ config.label = readString(data, "label", invalidFields);
135
+ config.unit = readString(data, "unit", invalidFields);
136
+ if (CompareUtil.isExisting(data.highlight)) {
137
+ if (CompareUtil.isObject(data.highlight) && !Array.isArray(data.highlight)) {
138
+ const from = readNumber(data.highlight, "from", invalidFields);
139
+ if (from !== undefined) {
140
+ config.highlight = { from };
141
+ }
142
+ }
143
+ else {
144
+ invalidFields.push("highlight");
145
+ }
146
+ }
147
+ return { config, unknownKeys: collectUnknownKeys(data, ISO_KEYS), invalidFields };
148
+ }
149
+ const LABEL_KEYS = ["points", "values", "max"];
150
+ function toLabelConfig(data, defaults) {
151
+ const invalidFields = [];
152
+ const config = { points: defaults.points, values: defaults.values, max: defaults.max };
153
+ if (CompareUtil.isExisting(data.points)) {
154
+ if (data.points === "auto" || data.points === "none" || data.points === "all") {
155
+ config.points = data.points;
156
+ }
157
+ else if (CompareUtil.isArray(data.points) && data.points.every((p) => CompareUtil.isString(p))) {
158
+ config.points = data.points;
159
+ }
160
+ else {
161
+ invalidFields.push("points");
162
+ }
163
+ }
164
+ if (CompareUtil.isExisting(data.values)) {
165
+ if (CompareUtil.isBoolean(data.values)) {
166
+ config.values = data.values;
167
+ }
168
+ else {
169
+ invalidFields.push("values");
170
+ }
171
+ }
172
+ if (CompareUtil.isExisting(data.max)) {
173
+ if (CompareUtil.isNumber(data.max) && data.max > 0) {
174
+ config.max = Math.floor(data.max);
175
+ }
176
+ else {
177
+ invalidFields.push("max");
178
+ }
179
+ }
180
+ return { config, unknownKeys: collectUnknownKeys(data, LABEL_KEYS), invalidFields };
181
+ }
182
+ const FACET_KEYS = ["level", "columns"];
183
+ function toFacetConfig(data) {
184
+ const invalidFields = [];
185
+ const level = CompareUtil.isString(data.level) ? data.level.toLowerCase() : null;
186
+ if (level !== "rowgroup" && level !== "category") {
187
+ invalidFields.push("level");
188
+ return { config: null, unknownKeys: collectUnknownKeys(data, FACET_KEYS), invalidFields };
189
+ }
190
+ const config = { level };
191
+ if (CompareUtil.isExisting(data.columns)) {
192
+ if (CompareUtil.isNumber(data.columns) && data.columns >= 1) {
193
+ config.columns = Math.floor(data.columns);
194
+ }
195
+ else {
196
+ invalidFields.push("columns");
197
+ }
198
+ }
199
+ return { config, unknownKeys: collectUnknownKeys(data, FACET_KEYS), invalidFields };
200
+ }
201
+ const LEGEND_KEYS = ["show", "position"];
202
+ function toLegendConfig(data) {
203
+ const invalidFields = [];
204
+ const config = { show: true, position: "right" };
205
+ if (CompareUtil.isExisting(data.show)) {
206
+ if (CompareUtil.isBoolean(data.show)) {
207
+ config.show = data.show;
208
+ }
209
+ else {
210
+ invalidFields.push("show");
211
+ }
212
+ }
213
+ if (CompareUtil.isExisting(data.position)) {
214
+ if (data.position === "right" || data.position === "bottom") {
215
+ config.position = data.position;
216
+ }
217
+ else {
218
+ invalidFields.push("position");
219
+ }
220
+ }
221
+ return { config, unknownKeys: collectUnknownKeys(data, LEGEND_KEYS), invalidFields };
222
+ }
223
+
224
+ export { toSizeConfig as a, toShareConfig as b, toFacetConfig as c, toLabelConfig as d, toLegendConfig as e, toIsoConfig as f, parseSpec as p, toAxisConfig as t };