@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.
- package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/p-0107f0cc.entry.js +1 -0
- package/dist/bn-template-engine/p-209351c9.entry.js +1 -0
- package/dist/bn-template-engine/p-22d0fb7a.entry.js +1 -0
- package/dist/bn-template-engine/p-2e6dc267.entry.js +1 -0
- package/dist/bn-template-engine/p-485d23d7.entry.js +1 -0
- package/dist/bn-template-engine/p-5651417d.entry.js +1 -0
- package/dist/bn-template-engine/p-5bfdc1e5.entry.js +1 -0
- package/dist/bn-template-engine/p-6b75762d.entry.js +1 -0
- package/dist/bn-template-engine/{p-ff659485.entry.js → p-7bdc0e28.entry.js} +1 -1
- package/dist/bn-template-engine/p-9879c9b2.entry.js +1 -0
- package/dist/bn-template-engine/p-BA48JiHe.js +1 -0
- package/dist/bn-template-engine/p-BWKdb9ym.js +1 -0
- package/dist/bn-template-engine/p-BZV1b5VH.js +1 -0
- package/dist/bn-template-engine/p-Bdfxd_Ke.js +1 -0
- package/dist/bn-template-engine/p-BqhIhYr1.js +1 -0
- package/dist/bn-template-engine/p-C0Pwqx-O.js +1 -0
- package/dist/bn-template-engine/p-CBqUr7I8.js +1 -0
- package/dist/bn-template-engine/{p-BPDZcex5.js → p-CPzF3Q2m.js} +1 -1
- package/dist/bn-template-engine/p-CiudZRQr.js +1 -0
- package/dist/bn-template-engine/p-Dg9OcXAO.js +1 -0
- package/dist/bn-template-engine/p-DsTzlzxQ.js +1 -0
- package/dist/bn-template-engine/p-X6CxL6W-.js +1 -0
- package/dist/bn-template-engine/p-a130cb43.entry.js +1 -0
- package/dist/bn-template-engine/p-aakBGfzL.js +1 -0
- package/dist/bn-template-engine/p-dc745c32.entry.js +1 -0
- package/dist/bn-template-engine/p-e96da91f.entry.js +1 -0
- package/dist/bn-template-engine/p-f3d1fa06.entry.js +1 -0
- package/dist/bn-template-engine/p-fcb43f2c.entry.js +1 -0
- package/dist/bn-template-engine/p-rdqTC0_5.js +1 -0
- package/dist/cjs/AxisConfig-VnVelfSV.js +233 -0
- package/dist/cjs/LabelCollisionManager-nfD5P__k.js +412 -0
- package/dist/cjs/NumericScale-BAyYXpKL.js +107 -0
- package/dist/cjs/Order-DobBozQC.js +87 -0
- package/dist/cjs/SVGStyle-BQOmGWLX.js +8209 -0
- package/dist/cjs/SVGVariancesStyleGroup-DCGfHrqh.js +50 -0
- package/dist/cjs/VarianceMeasure-NY9yhiNV.js +372 -0
- package/dist/cjs/XYChartDataRow-B7OKrAcC.js +829 -0
- package/dist/cjs/bn-asset_21.cjs.entry.js +1614 -9670
- package/dist/cjs/bn-chart-bubble.cjs.entry.js +762 -0
- package/dist/cjs/bn-chart-bullet.cjs.entry.js +785 -0
- package/dist/cjs/bn-chart-scatter.cjs.entry.js +658 -0
- package/dist/cjs/bn-grid.cjs.entry.js +5 -3
- package/dist/cjs/bn-image.cjs.entry.js +5 -3
- package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
- package/dist/cjs/bn-ruleset.cjs.entry.js +41 -0
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-template.cjs.entry.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +8 -79
- package/dist/cjs/bn-tree.cjs.entry.js +4 -2
- package/dist/cjs/{context-protocol-Cn5PL928.js → context-protocol-BDrMkhc4.js} +272 -1
- package/dist/cjs/editor-companion.cjs.entry.js +2 -2
- package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +624 -0
- package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +673 -0
- package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +667 -0
- package/dist/cjs/layoutObserver-p0wXIWFg.js +350 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sanitizeHtml-LuZr1IMd.js +85 -0
- package/dist/cjs/{scaling-DM2UILdF.js → scaling-BmqxcNOf.js} +1 -1
- package/dist/cjs/withScalingGroup-BmcRlWBs.js +73 -0
- package/dist/cjs/{withStyled-Dx3uRw9g.js → withStyled-CRiC9fzc.js} +44 -383
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +10 -0
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +1110 -0
- package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +9 -0
- package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +653 -0
- package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +472 -0
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +10 -0
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +1014 -0
- package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +9 -0
- package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +538 -0
- package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +440 -0
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +132 -0
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +89 -0
- package/dist/collection/components/bn-chart-bullet/utils/model/index.js +2 -0
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +10 -0
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +965 -0
- package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +9 -0
- package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +580 -0
- package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +409 -0
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +23 -2
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +29 -4
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +3 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +27 -4
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +29 -4
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +16 -4
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -3
- package/dist/collection/components/bn-component-style/bn-component-style.js +1 -1
- package/dist/collection/components/bn-context/bn-context.js +1 -1
- package/dist/collection/components/bn-dataset/bn-dataset.js +1 -1
- package/dist/collection/components/bn-datasource/bn-datasource.js +1 -1
- package/dist/collection/components/bn-footer/bn-footer.js +1 -1
- package/dist/collection/components/bn-grid/bn-grid.js +1 -1
- package/dist/collection/components/bn-image/bn-image.js +1 -1
- package/dist/collection/components/bn-internationalization/bn-internationalization.js +1 -1
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +26 -3
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +33 -4
- package/dist/collection/components/bn-message/bn-message.css +6 -2
- package/dist/collection/components/bn-message/bn-message.js +3 -2
- package/dist/collection/components/bn-page/bn-page.js +1 -1
- package/dist/collection/components/bn-ruleset/bn-ruleset.css +3 -0
- package/dist/collection/components/bn-ruleset/bn-ruleset.js +68 -0
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +1 -1
- package/dist/collection/components/bn-table/bn-table.js +146 -14
- package/dist/collection/components/bn-table/ibcs-table.css +8 -0
- package/dist/collection/components/bn-table/ibcs-table.js +64 -8
- package/dist/collection/components/bn-table/utils/Table.js +43 -5
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +13 -8
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -2
- package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +47 -0
- package/dist/collection/components/bn-table/utils/elements/index.js +1 -0
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +87 -15
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +284 -3
- package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +140 -0
- package/dist/collection/components/bn-table/utils/helper/WaterfallCalculator.js +166 -0
- package/dist/collection/components/bn-table/utils/helper/index.js +2 -0
- package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +10 -0
- package/dist/collection/components/bn-template/bn-template.js +1 -1
- package/dist/collection/components/bn-text/bn-text.js +2 -75
- package/dist/collection/components/bn-title/bn-title.js +27 -3
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.css +4 -0
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +29 -3
- package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +3 -0
- package/dist/collection/components/editor-companion/editor-companion.js +1 -1
- package/dist/collection/stores/componentStyles.js +67 -0
- package/dist/collection/stores/createScopedStores.js +6 -1
- package/dist/collection/stores/internationalization.js +68 -0
- package/dist/collection/stores/ruleSets.js +46 -0
- package/dist/collection/utils/constants.js +5 -0
- package/dist/collection/utils/ibcsRuleSet.js +14 -26
- package/dist/collection/utils/sanitizeHtml.js +81 -0
- package/dist/collection/utils/validate.js +24 -0
- package/dist/collection/utils/withComponentStyle.js +3 -5
- package/dist/collection/utils/withInheritedProps.js +1 -1
- package/dist/collection/utils/withRuleSet.js +105 -0
- package/dist/collection/utils/withScalingGroup.js +3 -0
- package/dist/collection/utils/xy/FacetGrid.js +36 -0
- package/dist/collection/utils/xy/IsoCurves.js +156 -0
- package/dist/collection/utils/xy/NumericScale.js +103 -0
- package/dist/collection/utils/xy/PointLabeler.js +96 -0
- package/dist/collection/utils/xy/RadiusScale.js +42 -0
- package/dist/collection/utils/xy/SeriesPalette.js +80 -0
- package/dist/collection/utils/xy/VarianceMeasure.js +76 -0
- package/dist/collection/utils/xy/XYFrame.js +120 -0
- package/dist/collection/utils/xy/XYLegend.js +107 -0
- package/dist/collection/utils/xy/model/AxisConfig.js +221 -0
- package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +69 -0
- package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
- package/dist/collection/utils/xy/model/XYChartStyle.js +52 -0
- package/dist/components/AxisConfig.js +1 -0
- package/dist/components/CompareUtil.js +1 -0
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/LabelCollisionManager.js +1 -0
- package/dist/components/NumericScale.js +1 -0
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGVariancesStyleGroup.js +1 -1
- package/dist/components/SiPrefix.js +1 -0
- package/dist/components/StringAdapter.js +1 -0
- package/dist/components/VarianceMeasure.js +1 -0
- package/dist/components/XYChartDataRow.js +1 -0
- package/dist/components/bn-chart-bubble.d.ts +11 -0
- package/dist/components/bn-chart-bubble.js +1 -0
- package/dist/components/bn-chart-bullet.d.ts +11 -0
- package/dist/components/bn-chart-bullet.js +1 -0
- package/dist/components/bn-chart-scatter.d.ts +11 -0
- package/dist/components/bn-chart-scatter.js +1 -0
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-component-style.js +1 -1
- package/dist/components/bn-context.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-footer2.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-image.js +1 -1
- package/dist/components/bn-internationalization.js +1 -1
- package/dist/components/bn-layout-card.js +1 -1
- package/dist/components/bn-layout-page.js +1 -1
- package/dist/components/bn-message2.js +1 -1
- package/dist/components/bn-page2.js +1 -1
- package/dist/components/bn-ruleset.d.ts +11 -0
- package/dist/components/bn-ruleset.js +1 -0
- package/dist/components/bn-scaling-group.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-template.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/context-protocol.js +1 -1
- package/dist/components/editor-companion.js +1 -1
- package/dist/components/formatter.js +1 -0
- package/dist/components/ibcs-chart-bubble.d.ts +11 -0
- package/dist/components/ibcs-chart-bubble.js +1 -0
- package/dist/components/ibcs-chart-bubble2.js +1 -0
- package/dist/components/ibcs-chart-bullet.d.ts +11 -0
- package/dist/components/ibcs-chart-bullet.js +1 -0
- package/dist/components/ibcs-chart-bullet2.js +1 -0
- package/dist/components/ibcs-chart-scatter.d.ts +11 -0
- package/dist/components/ibcs-chart-scatter.js +1 -0
- package/dist/components/ibcs-chart-scatter2.js +1 -0
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/layoutObserver.js +1 -1
- package/dist/components/luxon.js +1 -1
- package/dist/components/main.js +1 -0
- package/dist/components/merge.js +1 -0
- package/dist/components/sanitizeHtml.js +1 -0
- package/dist/components/stackColors.js +1 -0
- package/dist/components/validate.js +1 -1
- package/dist/components/withComponentStyle.js +1 -1
- package/dist/components/withDataset.js +1 -0
- package/dist/components/withRuleSet.js +1 -0
- package/dist/components/withScalingGroup.js +1 -0
- package/dist/components/withStyled.js +1 -1
- package/dist/esm/AxisConfig-C_zWCKlL.js +224 -0
- package/dist/esm/LabelCollisionManager-8swVQHKA.js +404 -0
- package/dist/esm/NumericScale-DsTzlzxQ.js +105 -0
- package/dist/esm/Order-BPeWfygb.js +83 -0
- package/dist/esm/SVGStyle-BxEDw9zh.js +8199 -0
- package/dist/esm/SVGVariancesStyleGroup-DRQYvSDD.js +48 -0
- package/dist/esm/VarianceMeasure-DnwNKspZ.js +364 -0
- package/dist/esm/XYChartDataRow-DeV4r-Wm.js +820 -0
- package/dist/esm/bn-asset_21.entry.js +1127 -9183
- package/dist/esm/bn-chart-bubble.entry.js +760 -0
- package/dist/esm/bn-chart-bullet.entry.js +783 -0
- package/dist/esm/bn-chart-scatter.entry.js +656 -0
- package/dist/esm/bn-grid.entry.js +5 -3
- package/dist/esm/bn-image.entry.js +5 -3
- package/dist/esm/bn-internationalization.entry.js +2 -2
- package/dist/esm/bn-ruleset.entry.js +39 -0
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-template.entry.js +1 -1
- package/dist/esm/bn-text.entry.js +7 -78
- package/dist/esm/bn-tree.entry.js +4 -2
- package/dist/esm/{context-protocol-BB-4Onmw.js → context-protocol-1Yj1uKvh.js} +268 -2
- package/dist/esm/editor-companion.entry.js +2 -2
- package/dist/esm/ibcs-chart-bubble.entry.js +622 -0
- package/dist/esm/ibcs-chart-bullet.entry.js +671 -0
- package/dist/esm/ibcs-chart-scatter.entry.js +665 -0
- package/dist/esm/layoutObserver-DCbmpGrz.js +345 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sanitizeHtml-BA48JiHe.js +83 -0
- package/dist/esm/{scaling-h4KcBet3.js → scaling-B_k50v9z.js} +2 -2
- package/dist/esm/withScalingGroup-Br70pAv9.js +71 -0
- package/dist/esm/{withStyled-BBvU2f-A.js → withStyled-Br2DGTPs.js} +30 -367
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +193 -0
- package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +58 -0
- package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +91 -0
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +172 -0
- package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +52 -0
- package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +91 -0
- package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +70 -0
- package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +43 -0
- package/dist/types/components/bn-chart-bullet/utils/model/index.d.ts +2 -0
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +172 -0
- package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +53 -0
- package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +66 -0
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +7 -0
- package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +2 -0
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +1 -0
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +10 -1
- package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +2 -0
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +1 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +10 -0
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +14 -0
- package/dist/types/components/bn-message/bn-message.d.ts +5 -2
- package/dist/types/components/bn-ruleset/bn-ruleset.d.ts +8 -0
- package/dist/types/components/bn-table/bn-table.d.ts +38 -5
- package/dist/types/components/bn-table/ibcs-table.d.ts +8 -1
- package/dist/types/components/bn-table/utils/Table.d.ts +8 -0
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +33 -0
- package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +2 -1
- package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +21 -0
- package/dist/types/components/bn-table/utils/elements/index.d.ts +1 -0
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +13 -7
- package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +17 -0
- package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +37 -0
- package/dist/types/components/bn-table/utils/helper/WaterfallCalculator.d.ts +55 -0
- package/dist/types/components/bn-table/utils/helper/index.d.ts +2 -0
- package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +4 -0
- package/dist/types/components/bn-table/utils/model/index.d.ts +21 -0
- package/dist/types/components/bn-title/bn-title.d.ts +11 -1
- package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +2 -0
- package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +1 -0
- package/dist/types/components.d.ts +1383 -82
- package/dist/types/context/context-protocol.d.ts +2 -0
- package/dist/types/stores/componentStyles.d.ts +41 -0
- package/dist/types/stores/createScopedStores.d.ts +2 -0
- package/dist/types/stores/ruleSets.d.ts +40 -0
- package/dist/types/utils/constants.d.ts +5 -0
- package/dist/types/utils/ibcsRuleSet.d.ts +6 -1
- package/dist/types/utils/model/ChartStyles.d.ts +2 -1
- package/dist/types/utils/sanitizeHtml.d.ts +6 -0
- package/dist/types/utils/validate.d.ts +12 -0
- package/dist/types/utils/withInheritedProps.d.ts +11 -0
- package/dist/types/utils/withRuleSet.d.ts +24 -0
- package/dist/types/utils/xy/FacetGrid.d.ts +27 -0
- package/dist/types/utils/xy/IsoCurves.d.ts +46 -0
- package/dist/types/utils/xy/NumericScale.d.ts +41 -0
- package/dist/types/utils/xy/PointLabeler.d.ts +58 -0
- package/dist/types/utils/xy/RadiusScale.d.ts +26 -0
- package/dist/types/utils/xy/SeriesPalette.d.ts +59 -0
- package/dist/types/utils/xy/VarianceMeasure.d.ts +37 -0
- package/dist/types/utils/xy/XYFrame.d.ts +44 -0
- package/dist/types/utils/xy/XYLegend.d.ts +43 -0
- package/dist/types/utils/xy/model/AxisConfig.d.ts +96 -0
- package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +36 -0
- package/dist/types/utils/xy/model/XYChartDataRow.d.ts +157 -0
- package/dist/types/utils/xy/model/XYChartStyle.d.ts +31 -0
- package/package.json +1 -1
- package/readme.md +7 -3
- package/dist/bn-template-engine/p-19f49fbc.entry.js +0 -1
- package/dist/bn-template-engine/p-3465fcdc.entry.js +0 -1
- package/dist/bn-template-engine/p-67746414.entry.js +0 -1
- package/dist/bn-template-engine/p-6b469808.entry.js +0 -1
- package/dist/bn-template-engine/p-86ca2d5e.entry.js +0 -1
- package/dist/bn-template-engine/p-Tx6omDWp.js +0 -1
- package/dist/bn-template-engine/p-d724ab88.entry.js +0 -1
- package/dist/bn-template-engine/p-efd3b67a.entry.js +0 -1
- package/dist/bn-template-engine/p-z9bPNFYF.js +0 -1
- package/dist/components/ibcsRuleSet.js +0 -1
- package/dist/components/scaling.js +0 -1
- package/dist/components/withInheritedProps.js +0 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parsed shapes of the XY charts' structured object props (spec: the JSON
|
|
3
|
+
* attribute forms of `x`, `y`, `size`, `share`, `iso`, `labels`, `facet`,
|
|
4
|
+
* `legend`). Facades parse and validate the raw attribute once and pass
|
|
5
|
+
* these typed objects to the inner elements, following the `stackConfig`
|
|
6
|
+
* precedent of bn-chart-time.
|
|
7
|
+
*/
|
|
8
|
+
/** Shaded band on one axis; open ends run to the domain edge. */
|
|
9
|
+
export interface HighlightRange {
|
|
10
|
+
from?: number;
|
|
11
|
+
to?: number;
|
|
12
|
+
}
|
|
13
|
+
/** Parsed `x` / `y` prop. */
|
|
14
|
+
export interface AxisConfig {
|
|
15
|
+
/** Scenario-column token (`ac1`…`pl4`) or variance token (`d…`/`dr…`). */
|
|
16
|
+
measure: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
unit?: string;
|
|
19
|
+
min?: number;
|
|
20
|
+
max?: number;
|
|
21
|
+
refLine?: number;
|
|
22
|
+
highlight?: HighlightRange;
|
|
23
|
+
}
|
|
24
|
+
/** Parsed `size` prop (bubble). */
|
|
25
|
+
export interface SizeConfig {
|
|
26
|
+
measure: string;
|
|
27
|
+
label?: string;
|
|
28
|
+
unit?: string;
|
|
29
|
+
/** `bn-scaling-group` name for cross-chart value→area sync. */
|
|
30
|
+
group?: string;
|
|
31
|
+
}
|
|
32
|
+
/** Parsed `share` prop (bubble). */
|
|
33
|
+
export interface ShareConfig {
|
|
34
|
+
measure: string;
|
|
35
|
+
}
|
|
36
|
+
/** Parsed `iso` prop (scatter). */
|
|
37
|
+
export interface IsoConfig {
|
|
38
|
+
values: "auto" | number[];
|
|
39
|
+
label?: string;
|
|
40
|
+
unit?: string;
|
|
41
|
+
/** Shade the region `x·y >= from`. */
|
|
42
|
+
highlight?: {
|
|
43
|
+
from: number;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/** Parsed `labels` prop. */
|
|
47
|
+
export interface LabelConfig {
|
|
48
|
+
points: "auto" | "none" | "all" | string[];
|
|
49
|
+
/** Bubble only: render the value inside the bubble. */
|
|
50
|
+
values: boolean;
|
|
51
|
+
/** Candidate cap for `points: "auto"`. */
|
|
52
|
+
max: number;
|
|
53
|
+
}
|
|
54
|
+
/** Parsed `facet` prop. */
|
|
55
|
+
export interface FacetConfig {
|
|
56
|
+
level: "rowgroup" | "category";
|
|
57
|
+
/** Wrap width; default: all panels in one row. */
|
|
58
|
+
columns?: number;
|
|
59
|
+
}
|
|
60
|
+
/** Parsed `legend` prop. */
|
|
61
|
+
export interface LegendConfig {
|
|
62
|
+
show: boolean;
|
|
63
|
+
position: "right" | "bottom";
|
|
64
|
+
}
|
|
65
|
+
/** Result of parsing a raw attribute string into an untyped record. */
|
|
66
|
+
export interface ParsedSpec {
|
|
67
|
+
data: Record<string, unknown> | null;
|
|
68
|
+
parseError: boolean;
|
|
69
|
+
}
|
|
70
|
+
/** Result of converting an untyped record into a typed config. */
|
|
71
|
+
export interface SpecResult<T> {
|
|
72
|
+
config: T | null;
|
|
73
|
+
/** Sub-fields present but not part of the spec (forward compat — warning, never error). */
|
|
74
|
+
unknownKeys: string[];
|
|
75
|
+
/** Sub-fields present with an unusable type/value. */
|
|
76
|
+
invalidFields: string[];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Parses a raw object-prop attribute value. A blank value yields `data: null`
|
|
80
|
+
* without error. A value starting with `{` must be valid JSON describing an
|
|
81
|
+
* object. Any other bare string is treated as shorthand for
|
|
82
|
+
* `{ [shorthandKey]: value }` when a shorthand key is allowed, otherwise it
|
|
83
|
+
* is a parse error.
|
|
84
|
+
*/
|
|
85
|
+
export declare function parseSpec(raw: string | undefined | null, shorthandKey: string | null): ParsedSpec;
|
|
86
|
+
export declare function toAxisConfig(data: Record<string, unknown>): SpecResult<AxisConfig>;
|
|
87
|
+
export declare function toSizeConfig(data: Record<string, unknown>): SpecResult<SizeConfig>;
|
|
88
|
+
export declare function toShareConfig(data: Record<string, unknown>): SpecResult<ShareConfig>;
|
|
89
|
+
export declare function toIsoConfig(data: Record<string, unknown>): SpecResult<IsoConfig>;
|
|
90
|
+
export declare function toLabelConfig(data: Record<string, unknown>, defaults: {
|
|
91
|
+
points: LabelConfig["points"];
|
|
92
|
+
values: boolean;
|
|
93
|
+
max: number;
|
|
94
|
+
}): SpecResult<LabelConfig>;
|
|
95
|
+
export declare function toFacetConfig(data: Record<string, unknown>): SpecResult<FacetConfig>;
|
|
96
|
+
export declare function toLegendConfig(data: Record<string, unknown>): SpecResult<LegendConfig>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IAdapter } from "../../helper/IAdapter";
|
|
2
|
+
/**
|
|
3
|
+
* Proportional scale factors for XY chart elements (scatter and bubble).
|
|
4
|
+
*
|
|
5
|
+
* All values except the `*LineWidth` entries are expressed in **font-size
|
|
6
|
+
* multiples** (em-like units), so the chart scales uniformly when the base
|
|
7
|
+
* font size changes. The chart renderer multiplies each factor by the
|
|
8
|
+
* computed font size to get pixel dimensions. Line widths are absolute
|
|
9
|
+
* pixel values (hairlines must not scale with the font).
|
|
10
|
+
*/
|
|
11
|
+
export declare class ScaleFactorsXYChart {
|
|
12
|
+
/** Radius of a scatter point. */
|
|
13
|
+
pointRadius: number;
|
|
14
|
+
/** Maximum bubble radius in local (vMax-normalized) sizing mode. */
|
|
15
|
+
bubbleMaxRadius: number;
|
|
16
|
+
/** Minimum visible bubble radius in local sizing mode. */
|
|
17
|
+
bubbleMinRadius: number;
|
|
18
|
+
/** Length of axis tick marks. */
|
|
19
|
+
axisTickLength: number;
|
|
20
|
+
/** Gap between a mark (dot/bubble) and its name label. */
|
|
21
|
+
labelToMark: number;
|
|
22
|
+
/** Diameter of a legend color swatch. */
|
|
23
|
+
legendSwatch: number;
|
|
24
|
+
/** Gap between facet panels. */
|
|
25
|
+
panelGap: number;
|
|
26
|
+
/** Stroke width of reference lines, in pixels. */
|
|
27
|
+
refLineWidth: number;
|
|
28
|
+
/** Stroke width of gridlines and the plot frame, in pixels. */
|
|
29
|
+
gridLineWidth: number;
|
|
30
|
+
constructor();
|
|
31
|
+
}
|
|
32
|
+
/** Converts untyped JSON into a validated {@link ScaleFactorsXYChart}. */
|
|
33
|
+
export declare class ScaleFactorsXYChartAdapter implements IAdapter<ScaleFactorsXYChart> {
|
|
34
|
+
adapt(data: Record<string, unknown>): ScaleFactorsXYChart;
|
|
35
|
+
default(): ScaleFactorsXYChart;
|
|
36
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { DateTime } from "luxon";
|
|
2
|
+
import { IAdapter } from "../../helper/IAdapter";
|
|
3
|
+
import { MeasureRef } from "../VarianceMeasure";
|
|
4
|
+
/**
|
|
5
|
+
* IBCS-compliant data row for XY (scatter/bubble) chart visualizations.
|
|
6
|
+
*
|
|
7
|
+
* Same schema as {@link StructureChartDataRow}: the full dimension hierarchy
|
|
8
|
+
* plus the 16 scenario value slots. `date` is parsed but unused (reserved),
|
|
9
|
+
* there are no `setName` semantics. `_`-prefixed passthrough columns are
|
|
10
|
+
* retained on the row (engine convention) but unused by v1 rendering;
|
|
11
|
+
* `<slot>_cnt` columns feed the variance no-data rule.
|
|
12
|
+
*/
|
|
13
|
+
export declare class XYChartDataRow {
|
|
14
|
+
date?: DateTime | null | undefined;
|
|
15
|
+
operation: string;
|
|
16
|
+
rowGroup: string | null | undefined;
|
|
17
|
+
rowGroupIndex: number | null | undefined;
|
|
18
|
+
category: string | null | undefined;
|
|
19
|
+
categoryIndex: number | null | undefined;
|
|
20
|
+
subCategory: string | null | undefined;
|
|
21
|
+
subCategoryIndex: number | null | undefined;
|
|
22
|
+
columnGroup: string | null | undefined;
|
|
23
|
+
columnGroupIndex: number | null | undefined;
|
|
24
|
+
columnSubGroup: string | null | undefined;
|
|
25
|
+
columnSubGroupIndex: number | null | undefined;
|
|
26
|
+
ac1: number | null | undefined;
|
|
27
|
+
ac2: number | null | undefined;
|
|
28
|
+
ac3: number | null | undefined;
|
|
29
|
+
ac4: number | null | undefined;
|
|
30
|
+
pp1: number | null | undefined;
|
|
31
|
+
pp2: number | null | undefined;
|
|
32
|
+
pp3: number | null | undefined;
|
|
33
|
+
pp4: number | null | undefined;
|
|
34
|
+
fc1: number | null | undefined;
|
|
35
|
+
fc2: number | null | undefined;
|
|
36
|
+
fc3: number | null | undefined;
|
|
37
|
+
fc4: number | null | undefined;
|
|
38
|
+
pl1: number | null | undefined;
|
|
39
|
+
pl2: number | null | undefined;
|
|
40
|
+
pl3: number | null | undefined;
|
|
41
|
+
pl4: number | null | undefined;
|
|
42
|
+
/** `_`-prefixed passthrough columns, retained but unused by v1 rendering. */
|
|
43
|
+
custom: Record<string, unknown>;
|
|
44
|
+
/** `<slot>_cnt` columns: non-null value counts used by the variance no-data rule. */
|
|
45
|
+
counts: Record<string, number>;
|
|
46
|
+
constructor();
|
|
47
|
+
/** Value of a scenario slot, `null`-normalized. */
|
|
48
|
+
slotValue(slot: string): number | null;
|
|
49
|
+
/** True when the slot's `_cnt` column reports zero non-null source values. */
|
|
50
|
+
slotHasNoData(slot: string): boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Converts untyped JSON records into validated {@link XYChartDataRow}
|
|
54
|
+
* instances. Only assigns fields that pass {@link CompareUtil} type guards,
|
|
55
|
+
* so malformed input data is silently dropped and defaults are preserved.
|
|
56
|
+
*/
|
|
57
|
+
export declare class XYChartDataRowAdapter implements IAdapter<XYChartDataRow> {
|
|
58
|
+
adapt(data: Record<string, unknown>): XYChartDataRow;
|
|
59
|
+
default(): XYChartDataRow;
|
|
60
|
+
}
|
|
61
|
+
/** Hierarchy level a point identity can live on. */
|
|
62
|
+
export type PointLevel = "rowGroup" | "category" | "subCategory";
|
|
63
|
+
/** Hierarchy level series/facets can live on. */
|
|
64
|
+
export type GroupLevel = "rowGroup" | "category";
|
|
65
|
+
/** The measures mapped onto the chart. */
|
|
66
|
+
export interface XYMeasures {
|
|
67
|
+
x: MeasureRef;
|
|
68
|
+
y: MeasureRef;
|
|
69
|
+
size?: MeasureRef;
|
|
70
|
+
share?: MeasureRef;
|
|
71
|
+
}
|
|
72
|
+
export interface XYResolveOptions {
|
|
73
|
+
pointLevel: PointLevel;
|
|
74
|
+
/** `null` = single series. */
|
|
75
|
+
seriesLevel: GroupLevel | null;
|
|
76
|
+
/** `null` = no facet panels. */
|
|
77
|
+
facetLevel: GroupLevel | null;
|
|
78
|
+
measures: XYMeasures;
|
|
79
|
+
/** Comparison scenario family (bubble `compareWith`), e.g. `"pp"`. */
|
|
80
|
+
compareFamily?: string | null;
|
|
81
|
+
/** Explicit axis domain overrides; points outside are excluded. */
|
|
82
|
+
domains?: {
|
|
83
|
+
x?: {
|
|
84
|
+
min?: number;
|
|
85
|
+
max?: number;
|
|
86
|
+
};
|
|
87
|
+
y?: {
|
|
88
|
+
min?: number;
|
|
89
|
+
max?: number;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
/** 0 = unlimited; applies per facet panel. */
|
|
93
|
+
limit: number;
|
|
94
|
+
/** `"size"`: top-N by size (bubble); `"order"`: first N rows (scatter). */
|
|
95
|
+
limitBy: "size" | "order";
|
|
96
|
+
}
|
|
97
|
+
/** Comparison-scenario values of a point (same slot numbers, other family). */
|
|
98
|
+
export interface XYComparePoint {
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
size?: number;
|
|
102
|
+
}
|
|
103
|
+
/** One resolved, renderable point. */
|
|
104
|
+
export interface XYPoint {
|
|
105
|
+
name: string;
|
|
106
|
+
seriesKey: string;
|
|
107
|
+
facetKey: string;
|
|
108
|
+
x: number;
|
|
109
|
+
y: number;
|
|
110
|
+
size?: number;
|
|
111
|
+
share?: number;
|
|
112
|
+
compare?: XYComparePoint | null;
|
|
113
|
+
row: XYChartDataRow;
|
|
114
|
+
}
|
|
115
|
+
export interface XYSeries {
|
|
116
|
+
key: string;
|
|
117
|
+
/** Order rank (0-based) following the series level's `*Index` sort keys. */
|
|
118
|
+
index: number;
|
|
119
|
+
}
|
|
120
|
+
export interface XYFacet {
|
|
121
|
+
key: string;
|
|
122
|
+
points: XYPoint[];
|
|
123
|
+
}
|
|
124
|
+
export interface XYWarningRecord {
|
|
125
|
+
code: string;
|
|
126
|
+
data: Record<string, string>;
|
|
127
|
+
}
|
|
128
|
+
export interface XYExtents {
|
|
129
|
+
xMin: number;
|
|
130
|
+
xMax: number;
|
|
131
|
+
yMin: number;
|
|
132
|
+
yMax: number;
|
|
133
|
+
/** Max size value across primary and comparison sets (shared bubble scale). */
|
|
134
|
+
sizeMax: number;
|
|
135
|
+
}
|
|
136
|
+
export interface ResolvedXYData {
|
|
137
|
+
/** Facet panels ordered by the facet level's `*Index`. Single unnamed facet when no facet level. */
|
|
138
|
+
facets: XYFacet[];
|
|
139
|
+
/** Series ordered by the series level's `*Index`. Single unnamed series when no series level. */
|
|
140
|
+
series: XYSeries[];
|
|
141
|
+
/** `null` when there are no points. */
|
|
142
|
+
extents: XYExtents | null;
|
|
143
|
+
warnings: XYWarningRecord[];
|
|
144
|
+
totalPoints: number;
|
|
145
|
+
}
|
|
146
|
+
/** Points above this budget raise the `xy-point-budget` warning (spec §10). */
|
|
147
|
+
export declare const XY_POINT_BUDGET = 5000;
|
|
148
|
+
/**
|
|
149
|
+
* Resolves adapted rows into facets, series, and renderable points —
|
|
150
|
+
* the shared data pipeline of both XY orchestrators.
|
|
151
|
+
*
|
|
152
|
+
* One row = one point. Duplicate identities (same facet + point name) keep
|
|
153
|
+
* the first row (deterministic) and raise `xy-duplicate-point`. There is no
|
|
154
|
+
* implicit aggregation — axes are frequently ratios where SUM is wrong; the
|
|
155
|
+
* DataSet SQL is the aggregation surface.
|
|
156
|
+
*/
|
|
157
|
+
export declare function resolveXYData(rows: XYChartDataRow[], opts: XYResolveOptions): ResolvedXYData;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IAdapter } from "../../helper/IAdapter";
|
|
2
|
+
import { FontStyle, FontStyleAdapter } from "../../model/styles/FontStyle";
|
|
3
|
+
import { Padding, PaddingAdapter } from "../../model/styles/Padding";
|
|
4
|
+
import { SVGStyleGroup, SVGStyleGroupAdapter } from "../../model/styles/SVGStyleGroup";
|
|
5
|
+
import { ScaleFactorsXYChart, ScaleFactorsXYChartAdapter } from "./ScaleFactorsXYChart";
|
|
6
|
+
/**
|
|
7
|
+
* Aggregates all style configuration for an XY chart (scatter/bubble):
|
|
8
|
+
* scale factors, fonts, axis styles, the series color palette, and padding.
|
|
9
|
+
*
|
|
10
|
+
* The analog of {@link TimeChartStyle} with `seriesColors` in place of
|
|
11
|
+
* `stackColors` and no variance styles (variance measures position points,
|
|
12
|
+
* they don't color them).
|
|
13
|
+
*/
|
|
14
|
+
export declare class XYChartStyle {
|
|
15
|
+
scaleFactors: ScaleFactorsXYChart;
|
|
16
|
+
fontStyles: FontStyle;
|
|
17
|
+
axisStyles: SVGStyleGroup;
|
|
18
|
+
padding: Padding;
|
|
19
|
+
seriesColors: string[];
|
|
20
|
+
constructor(scaleFactors: ScaleFactorsXYChart, fontStyles: FontStyle, axisStyles: SVGStyleGroup, padding: Padding);
|
|
21
|
+
}
|
|
22
|
+
/** Adapts raw componentStyle JSON into an XYChartStyle, falling back to defaults for missing properties. */
|
|
23
|
+
export declare class XYChartStylesAdapter implements IAdapter<XYChartStyle> {
|
|
24
|
+
private scaleFactorsXYChartAdapter;
|
|
25
|
+
private fontStyleAdapter;
|
|
26
|
+
private svgStyleGroupAdapter;
|
|
27
|
+
private paddingAdapter;
|
|
28
|
+
constructor(scaleFactorsXYChartAdapter: ScaleFactorsXYChartAdapter, fontStyleAdapter: FontStyleAdapter, svgStyleGroupAdapter: SVGStyleGroupAdapter, paddingAdapter: PaddingAdapter);
|
|
29
|
+
adapt(data: Record<string, unknown>): XYChartStyle;
|
|
30
|
+
default(): XYChartStyle;
|
|
31
|
+
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -60,8 +60,8 @@ This renders an IBCS-compliant table comparing actual vs. plan revenue with an a
|
|
|
60
60
|
Data flows through three layers:
|
|
61
61
|
|
|
62
62
|
```
|
|
63
|
-
bn-datasource → bn-dataset → Visualization (bn-table, bn-chart-time, bn-chart-structure
|
|
64
|
-
(raw JSON) (SQL query)
|
|
63
|
+
bn-datasource → bn-dataset → Visualization (bn-table, bn-chart-time, bn-chart-structure,
|
|
64
|
+
(raw JSON) (SQL query) bn-chart-scatter, bn-chart-bubble — renders IBCS output)
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
1. **`<bn-datasource>`** — Receives raw JSON data and stores it by name
|
|
@@ -83,7 +83,9 @@ All components must be wrapped in a **`<bn-context>`** element, which provides s
|
|
|
83
83
|
│ ├── <bn-body> Content area
|
|
84
84
|
│ │ ├── <bn-table> Data table
|
|
85
85
|
│ │ ├── <bn-chart-time> Time series chart
|
|
86
|
-
│ │
|
|
86
|
+
│ │ ├── <bn-chart-structure> Structure chart
|
|
87
|
+
│ │ ├── <bn-chart-scatter> XY scattergram (IBCS C09)
|
|
88
|
+
│ │ └── <bn-chart-bubble> Bubble portfolio chart (IBCS C10)
|
|
87
89
|
│ └── <bn-footer> Footer
|
|
88
90
|
│
|
|
89
91
|
└── <bn-template> Multi-page wrapper (optional)
|
|
@@ -106,6 +108,8 @@ All components must be wrapped in a **`<bn-context>`** element, which provides s
|
|
|
106
108
|
| [`<bn-table>`](src/components/bn-table/readme.md) | IBCS data table with grouping, drill-down, and variances |
|
|
107
109
|
| [`<bn-chart-time>`](src/components/bn-chart-time/readme.md) | Time series bar/line chart |
|
|
108
110
|
| [`<bn-chart-structure>`](src/components/bn-chart-structure/readme.md) | Categorical/structural bar chart |
|
|
111
|
+
| [`<bn-chart-scatter>`](src/components/bn-chart-scatter/readme.md) | XY scattergram with iso-lines and highlight bands (IBCS C09) |
|
|
112
|
+
| [`<bn-chart-bubble>`](src/components/bn-chart-bubble/readme.md) | Area-true bubble chart with scenario overlay and pie shares (IBCS C10) |
|
|
109
113
|
|
|
110
114
|
### Layout
|
|
111
115
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as n,g as s}from"./p-B_d-jp99.js";import{b as r,i,w as o,a}from"./p-z9bPNFYF.js";import{w as l,a as c}from"./p-B4JfKvVT.js";import"./p-Tx6omDWp.js";const d=["*","/","+","-","x","÷","none"];function u(t){switch(t){case"*":case"x":return"×";case"/":case"÷":return"÷";case"+":return"+";case"-":return"−";default:return""}}function h(t,e,n){return t.find((t=>t.from===e&&t.to===n))}function f(t){return 2*(t-1)+1}function p(t){return 2*(t-1)+1}function g(t,e){const n=t.getBoundingClientRect(),s=n.left-e.left,r=n.top-e.top;return{left:s,top:r,width:n.width,height:n.height,centerX:s+n.width/2,centerY:r+n.height/2}}function v(t,e,n){switch(n){case"ltr":return e?{x:t.left+t.width,y:t.centerY}:{x:t.left,y:t.centerY};case"rtl":return e?{x:t.left,y:t.centerY}:{x:t.left+t.width,y:t.centerY};case"ttb":return e?{x:t.centerX,y:t.top+t.height}:{x:t.centerX,y:t.top};case"btt":return e?{x:t.centerX,y:t.top}:{x:t.centerX,y:t.top+t.height}}}function y(t,e,n,s,r=8){const i=-(s-1)*r/2+n*r;switch(e){case"ltr":return{x:t.left,y:t.centerY+i};case"rtl":return{x:t.left+t.width,y:t.centerY+i};case"ttb":return{x:t.centerX+i,y:t.top};case"btt":return{x:t.centerX+i,y:t.top+t.height}}}function m(t,e,n,s){switch(n){case"straight":return function(t,e){return{path:`M ${t.x} ${t.y} L ${e.x} ${e.y}`,midpoint:{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}}(t,e);case"curved":return function(t,e,n){let s,r;if("ltr"===n||"rtl"===n){const n=(t.x+e.x)/2;s={x:n,y:t.y},r={x:n,y:e.y}}else{const n=(t.y+e.y)/2;s={x:t.x,y:n},r={x:e.x,y:n}}return{path:`M ${t.x} ${t.y} C ${s.x} ${s.y}, ${r.x} ${r.y}, ${e.x} ${e.y}`,midpoint:{x:.125*t.x+.375*s.x+.375*r.x+.125*e.x,y:.125*t.y+.375*s.y+.375*r.y+.125*e.y}}}(t,e,s);default:return function(t,e,n){let s,r;if("ltr"===n||"rtl"===n){const n=t.x+.7*(e.x-t.x);s=`M ${t.x} ${t.y} L ${n} ${t.y} L ${n} ${e.y} L ${e.x} ${e.y}`,r={x:n,y:(t.y+e.y)/2}}else{const n=t.y+.7*(e.y-t.y);s=`M ${t.x} ${t.y} L ${t.x} ${n} L ${e.x} ${n} L ${e.x} ${e.y}`,r={x:(t.x+e.x)/2,y:n}}return{path:s,midpoint:r}}(t,e,s)}}function b(t,e,n,s){const r=.7;switch(s){case"ltr":{const s=t.left+t.width;return{x:s+(Math.min(e.left,n.left)-s)*r,y:t.centerY}}case"rtl":{const s=t.left,i=Math.max(e.left+e.width,n.left+n.width);return{x:i+(s-i)*r,y:t.centerY}}case"ttb":{const s=t.top+t.height,i=Math.min(e.top,n.top);return{x:t.centerX,y:s+(i-s)*r}}case"btt":{const s=t.top,i=Math.max(e.top+e.height,n.top+n.height);return{x:t.centerX,y:i+(s-i)*r}}}}function $(t,e,n){var s,r;return Object.assign({stroke:null!==(s=null==n?void 0:n.color)&&void 0!==s?s:t,strokeWidth:null!==(r=null==n?void 0:n.width)&&void 0!==r?r:e},(null==n?void 0:n.dasharray)?{strokeDasharray:n.dasharray}:{})}const x=class{validateEdgesProp(t){const e="ERR_edges",n=function(t){const e=[];if(!t||""===t.trim())return e.push("edges: value is required"),e;let n;try{n=JSON.parse(t)}catch(t){return e.push("edges: invalid JSON structure"),e}if(!Array.isArray(n))return e.push("edges: must be an array"),e;if(0===n.length)return e.push("edges: array must not be empty"),e;const s=new Set,r=new Set;n.forEach(((t,n)=>{if("object"!=typeof t||null===t)return void e.push(`edges[${n}]: must be an object`);const i=t;if("string"!=typeof i.from||""===i.from.trim()?e.push(`edges[${n}]: 'from' is required and must be a non-empty string`):s.add(i.from),"string"!=typeof i.to||""===i.to.trim()?e.push(`edges[${n}]: 'to' is required and must be a non-empty string`):(s.add(i.to),r.add(i.to)),void 0!==i.operator&&("string"==typeof i.operator&&d.includes(i.operator)||e.push(`edges[${n}]: 'operator' must be one of: ${d.join(", ")}`)),void 0!==i.label&&"string"!=typeof i.label&&e.push(`edges[${n}]: 'label' must be a string`),void 0!==i.style)if("object"!=typeof i.style||null===i.style)e.push(`edges[${n}]: 'style' must be an object`);else{const t=i.style;void 0!==t.color&&"string"!=typeof t.color&&e.push(`edges[${n}]: 'style.color' must be a string`),void 0!==t.width&&"number"!=typeof t.width&&e.push(`edges[${n}]: 'style.width' must be a number`),void 0!==t.dasharray&&"string"!=typeof t.dasharray&&e.push(`edges[${n}]: 'style.dasharray' must be a string`)}}));const i=Array.from(s).filter((t=>!r.has(t)));return 0===i.length?e.push("edges: tree has no root node (circular reference detected)"):i.length>1&&e.push(`edges: tree has multiple root nodes: ${i.join(", ")}`),e}(t);n.length>0?(this.errors.addOrReplace({id:e,type:"error",message:`edges: ${n.join("; ")}`}),this.treeConfig=null):(this.errors.remove(e),this.treeConfig=function(t){if(!t||""===t.trim())return null;try{const e=JSON.parse(t);if(!Array.isArray(e))return null;const n=e,s=function(t){const e=new Map;for(const n of t){const t=e.get(n.from)||[];t.push(n.to),e.set(n.from,t)}return e}(n),r=function(t){const e=new Set;for(const n of t)e.add(n.from),e.add(n.to);return e}(n),i=function(t,e){const n=new Set;for(const e of t)n.add(e.to);const s=Array.from(e).filter((t=>!n.has(t)));return 1===s.length?s[0]:null}(n,r);return{edges:n,adjacencyList:s,rootNode:i,allNodes:r}}catch(t){return console.error("parseTreeConfig: failed to parse tree configuration",t),null}}(t)),this.recalculateLayout()}validateDirection(t){const e="ERR_direction",n=["ltr","rtl","ttb","btt"];n.includes(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`direction: invalid value '${t}', must be one of: ${n.join(", ")}`}),this.recalculateLayout()}validateLevelSpacing(t){const e="ERR_levelSpacing";!r(t)||t<0?this.errors.addOrReplace({id:e,type:"warning",message:`level-spacing: invalid value '${t}', must be a non-negative number`}):this.errors.remove(e),this.recalculateLayout()}validateNodeSpacing(t){const e="ERR_nodeSpacing";!r(t)||t<0?this.errors.addOrReplace({id:e,type:"warning",message:`node-spacing: invalid value '${t}', must be a non-negative number`}):this.errors.remove(e),this.recalculateLayout()}validateEdgeStyle(t){const e="ERR_edgeStyle",n=["straight","orthogonal","curved"];n.includes(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`edge-style: invalid value '${t}', must be one of: ${n.join(", ")}`})}validateShowOperators(t){const e="ERR_showOperators";i(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`show-operators: invalid value '${t}', must be 'true' or 'false'`})}constructor(e){t(this,e),this.treeConfig=null,this.layout=null,this.nodeRects=new Map,this.svgWidth=0,this.svgHeight=0,this.resizeObserver=null,this.gridContainer=null,this.direction="ltr",this.levelSpacing=60,this.nodeSpacing=20,this.edgeStyle="orthogonal",this.showOperators="true",o(this),l(this),this.errors=c(this),this.componentStyle=a(this)}getTreeStyle(){return this.componentStyle((t=>({edgeColor:t["bn-tree"].edgeColor,edgeWidth:t["bn-tree"].edgeWidth,operatorCircleRadius:t["bn-tree"].operatorCircleRadius,operatorFontSize:t.global.fontSizePx*t["bn-tree"].operatorFontSizeScale,operatorColor:t["bn-tree"].operatorColor})))}componentWillLoad(){this.validateEdgesProp(this.edges),this.validateDirection(this.direction),this.validateLevelSpacing(this.levelSpacing),this.validateNodeSpacing(this.nodeSpacing),this.validateEdgeStyle(this.edgeStyle),this.validateShowOperators(this.showOperators)}componentDidLoad(){this.setupResizeObserver(),requestAnimationFrame((()=>{this.updateNodeRects()}))}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}setupResizeObserver(){var t;this.gridContainer=null===(t=this.element.shadowRoot)||void 0===t?void 0:t.querySelector(".tree-grid"),this.gridContainer&&(this.resizeObserver=new ResizeObserver((()=>{this.updateNodeRects()})),this.resizeObserver.observe(this.gridContainer),this.element.querySelectorAll("[slot]").forEach((t=>{this.resizeObserver.observe(t)})))}recalculateLayout(){this.layout=this.treeConfig?function(t,e,n,s){if(!t.rootNode)return{positions:new Map,gridTemplateColumns:"",gridTemplateRows:"",maxLevel:0,maxIndex:0};const r=function(t){const e=new Map;if(!t.rootNode)return e;const n=[{node:t.rootNode,level:0}],s=new Set;for(;n.length>0;){const{node:r,level:i}=n.shift();if(s.has(r))continue;s.add(r),e.set(r,i);const o=t.adjacencyList.get(r)||[];for(const t of o)s.has(t)||n.push({node:t,level:i+1})}return e}(t),i=function(t){const e=new Map;if(!t.rootNode)return e;let n=0;return function s(r){const i=e.get(r);if(i)return i;const o=t.adjacencyList.get(r)||[];if(0===o.length){const t={startIndex:n,endIndex:n};return e.set(r,t),n++,t}let a=1/0,l=-1/0;for(const t of o){const e=s(t);a=Math.min(a,e.startIndex),l=Math.max(l,e.endIndex)}const c={startIndex:a,endIndex:l};return e.set(r,c),c}(t.rootNode),e}(t),o=function(t,e,n,s){var r,i;const o=new Map,a=Math.max(...Array.from(e.values()));for(const l of t.allNodes){const t=null!==(r=e.get(l))&&void 0!==r?r:0,c=null!==(i=n.get(l))&&void 0!==i?i:{startIndex:0,endIndex:0};let d,u,h;switch(s){case"ltr":d=t+1,u=c.startIndex+1,h=c.endIndex-c.startIndex+1;break;case"rtl":d=a-t+1,u=c.startIndex+1,h=c.endIndex-c.startIndex+1;break;case"ttb":u=t+1,d=c.startIndex+1,h=1;break;case"btt":u=a-t+1,d=c.startIndex+1,h=1}o.set(l,{nodeId:l,level:t,index:c.startIndex,gridColumn:d,gridRow:u,gridRowSpan:h})}return o}(t,r,i,e),a=Math.max(...Array.from(r.values())),l=Math.max(...Array.from(i.values()).map((t=>t.endIndex))),{gridTemplateColumns:c,gridTemplateRows:d}=function(t,e,n,s,r){const i=t+1,o=e+1;if("ltr"===n||"rtl"===n){const t=[];for(let e=0;e<i;e++)t.push("auto"),e<i-1&&t.push(`${s}px`);const e=[];for(let t=0;t<o;t++)e.push("auto"),t<o-1&&e.push(`${r}px`);return{gridTemplateColumns:t.join(" "),gridTemplateRows:e.join(" ")}}{const t=[];for(let e=0;e<i;e++)t.push("auto"),e<i-1&&t.push(`${s}px`);const e=[];for(let t=0;t<o;t++)e.push("auto"),t<o-1&&e.push(`${r}px`);return{gridTemplateColumns:e.join(" "),gridTemplateRows:t.join(" ")}}}(a,l,e,n,s);return{positions:o,gridTemplateColumns:c,gridTemplateRows:d,maxLevel:a,maxIndex:l}}(this.treeConfig,this.direction,this.levelSpacing,this.nodeSpacing):null}updateNodeRects(){if(!this.treeConfig||!this.gridContainer)return;const t=this.gridContainer.getBoundingClientRect(),e=new Map;for(const n of this.treeConfig.allNodes){const s=this.element.querySelector(`[slot="${n}"]`);s&&e.set(n,g(s,t))}this.nodeRects=e,this.svgWidth=t.width,this.svgHeight=t.height}getSlotStyle(t){if(!this.layout)return{};const e=this.layout.positions.get(t);return e?"ltr"===this.direction||"rtl"===this.direction?{"grid-column":String(f(e.gridColumn)),"grid-row":`${p(e.gridRow)} / span ${n=e.gridRowSpan,n<=1?1:2*(n-1)+1}`,"align-self":"center"}:{"grid-row":String(p(e.gridRow)),"grid-column":String(f(e.gridColumn)),"justify-self":"center"}:{};var n}renderEdges(){var t;if(!this.treeConfig||0===this.nodeRects.size)return null;const n=this.getTreeStyle(),s=[],r=[],i=new Map;for(const t of this.treeConfig.edges){const e=i.get(t.to)||[];e.push(t.from),i.set(t.to,e)}for(const t of this.treeConfig.edges){const r=this.nodeRects.get(t.from),o=this.nodeRects.get(t.to);if(!r||!o)continue;const a=v(r,!0,this.direction),l=i.get(t.to)||[];let c;if(l.length>1){const e=l.indexOf(t.from);c=y(o,this.direction,e,l.length)}else c=v(o,!1,this.direction);const{path:d}=m(a,c,this.edgeStyle,this.direction),u=$(n.edgeColor,n.edgeWidth,t.style);s.push(e("path",{key:`edge-${t.from}-${t.to}`,d,fill:"none",stroke:u.stroke,"stroke-width":u.strokeWidth,"stroke-dasharray":u.strokeDasharray}))}if("true"===this.showOperators)for(const[s,i]of this.treeConfig.adjacencyList.entries()){const o=this.nodeRects.get(s);if(o)for(let a=0;a<i.length-1;a++){const l=i[a],c=i[a+1],d=h(this.treeConfig.edges,s,l);if(!(null==d?void 0:d.operator)||"none"===d.operator)continue;const f=this.nodeRects.get(l),p=this.nodeRects.get(c);if(!f||!p)continue;const g=null!==(t=d.label)&&void 0!==t?t:u(d.operator),v=b(o,f,p,this.direction);r.push(e("g",{key:`operator-${s}-${l}`,class:"operator-group"},e("circle",{cx:v.x,cy:v.y,r:n.operatorCircleRadius,fill:"white",stroke:n.edgeColor,"stroke-width":n.edgeWidth}),e("text",{x:v.x,y:v.y,"text-anchor":"middle","dominant-baseline":"central",style:{fontSize:`${n.operatorFontSize}px`,fill:n.operatorColor,fontWeight:"bold"}},g)))}}return e("svg",{class:"edge-layer",width:this.svgWidth,height:this.svgHeight,style:{position:"absolute",top:"0",left:"0",pointerEvents:"none"}},s,r)}renderSlots(){return this.treeConfig&&this.layout?Array.from(this.treeConfig.allNodes).map((t=>e("div",{key:t,class:"tree-node",style:this.getSlotStyle(t)},e("slot",{name:t})))):null}getFontStyles(){return this.componentStyle((t=>{var e,n,s,r;return{"--bn-font-family":(null===(e=t.global)||void 0===e?void 0:e.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(n=t.global)||void 0===n?void 0:n.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(s=t.global)||void 0===s?void 0:s.fontColor)||"#000000","--bn-font-background":(null===(r=t.global)||void 0===r?void 0:r.fontBackgroundColor)||"#ffffff"}}))}render(){const t=this.getFontStyles();return e(n,{style:t},this.treeConfig&&this.layout?e("div",{class:"tree-container"},e("div",{class:"tree-grid",style:{display:"grid","grid-template-columns":this.layout.gridTemplateColumns,"grid-template-rows":this.layout.gridTemplateRows,position:"relative"}},this.renderEdges(),this.renderSlots())):e("div",{class:"tree-container tree-error"},e("slot",null)))}get element(){return s(this)}static get watchers(){return{edges:[{validateEdgesProp:0}],direction:[{validateDirection:0}],levelSpacing:[{validateLevelSpacing:0}],nodeSpacing:[{validateNodeSpacing:0}],edgeStyle:[{validateEdgeStyle:0}],showOperators:[{validateShowOperators:0}]}}};x.style=':host{display:inline-block;position:relative;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.tree-container{position:relative;display:inline-block}.tree-grid{position:relative;display:grid;align-items:center}.tree-node{position:relative;z-index:1;border:1px solid #404040;background:var(--bn-font-background, white)}.edge-layer{position:absolute;top:0;left:0;z-index:0;pointer-events:none;overflow:visible}.tree-error{display:flex;flex-wrap:wrap;gap:20px}';export{x as bn_tree}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as s,g as r}from"./p-B_d-jp99.js";import{i,w as o,a as n}from"./p-z9bPNFYF.js";import{w as a,a as d}from"./p-B4JfKvVT.js";import"./p-Tx6omDWp.js";function l(t){if(!t||""===t.trim()||"[]"===t)return[];try{const e=JSON.parse(t);return Array.isArray(e)?e.map(((t,e)=>{var s,r,i;return"string"==typeof t?{label:t,id:String(e)}:"object"==typeof t&&null!==t?{label:null!==(r=null!==(s=t.label)&&void 0!==s?s:t.name)&&void 0!==r?r:String(e),id:null!==(i=t.id)&&void 0!==i?i:String(e)}:{label:String(t),id:String(e)}})):[]}catch(t){return console.error("parseHeaders: failed to parse JSON",t),[]}}function h(t){if(!t||""===t.trim()||"[]"===t)return[];try{const e=JSON.parse(t);if(!Array.isArray(e))return["Headers must be an array"];const s=[],r=new Set;return e.forEach(((t,e)=>{"object"==typeof t&&null!==t&&void 0!==t.id&&("string"!=typeof t.id?s.push(`Header[${e}]: 'id' must be a string`):r.has(t.id)?s.push(`Header[${e}]: duplicate id '${t.id}'`):r.add(t.id),void 0!==t.label&&"string"!=typeof t.label&&s.push(`Header[${e}]: 'label' must be a string`))})),s}catch(t){return console.error("validateHeadersJson: failed to parse JSON",t),["Invalid JSON structure"]}}const u=class{validateRowHeaders(t){const e="ERR_rowHeaders",s=h(t);s.length>0?this.errors.addOrReplace({id:e,type:"error",message:`row-headers: ${s.join("; ")}`}):this.errors.remove(e),this.updateGridConfig()}validateColumnHeaders(t){const e="ERR_columnHeaders",s=h(t);s.length>0?this.errors.addOrReplace({id:e,type:"error",message:`column-headers: ${s.join("; ")}`}):this.errors.remove(e),this.updateGridConfig()}validateShowRowHeaders(t){const e="ERR_showRowHeaders";i(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`show-row-headers: invalid value '${t}', must be 'true' or 'false'`})}validateShowColumnHeaders(t){const e="ERR_showColumnHeaders";i(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`show-column-headers: invalid value '${t}', must be 'true' or 'false'`})}validateShowBorders(t){const e="ERR_showBorders";i(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`show-borders: invalid value '${t}', must be 'true' or 'false'`})}constructor(e){t(this,e),this.gridConfig={rows:[],columns:[]},this.chartTitle="",this.rowHeaders="[]",this.columnHeaders="[]",this.showRowHeaders="true",this.showColumnHeaders="true",this.showBorders="true",this.rowHeaderWidth="auto",this.cellGap="0px",o(this),a(this),this.errors=d(this),this.componentStyle=n(this)}getGridStyle(){return this.componentStyle((t=>t["bn-grid"]))}componentWillLoad(){this.validateRowHeaders(this.rowHeaders),this.validateColumnHeaders(this.columnHeaders),this.validateShowRowHeaders(this.showRowHeaders),this.validateShowColumnHeaders(this.showColumnHeaders),this.validateShowBorders(this.showBorders)}updateGridConfig(){var t;this.gridConfig=(t=this.columnHeaders,{rows:l(this.rowHeaders),columns:l(t)})}shouldShowRowHeaders(){return"true"===this.showRowHeaders&&this.gridConfig.rows.length>0}shouldShowColumnHeaders(){return"true"===this.showColumnHeaders&&this.gridConfig.columns.length>0}shouldShowBorders(){return"true"===this.showBorders}getGridTemplateColumns(){const t=[];this.shouldShowRowHeaders()&&t.push(this.rowHeaderWidth);const e=this.gridConfig.columns.length||1;for(let s=0;s<e;s++)t.push("auto");return t.join(" ")}getGridTemplateRows(){const t=[];this.chartTitle&&t.push("auto"),this.shouldShowColumnHeaders()&&t.push("auto");const e=this.gridConfig.rows.length||1;for(let s=0;s<e;s++)t.push("auto");return t.join(" ")}renderTitle(){if(!this.chartTitle)return null;const t=(this.shouldShowRowHeaders()?1:0)+this.gridConfig.columns.length;return e("div",{class:"grid-title",style:{"grid-column":`1 / span ${t}`,"grid-row":"1"}},this.chartTitle)}renderColumnHeaders(){if(!this.shouldShowColumnHeaders())return null;const t=this.getGridStyle(),s=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",r=this.shouldShowRowHeaders()?2:1,i=this.chartTitle?2:1;return this.gridConfig.columns.map(((o,n)=>{const a=n>0;return e("div",{key:`col-header-${o.id}`,class:"grid-header grid-header-col",style:{"grid-column":String(r+n),"grid-row":String(i),"border-left":a?s:"none",padding:`${t.cellPadding}px`,"padding-left":a?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},o.label)}))}renderDataCells(){const t=this.getGridStyle(),s=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",r=this.shouldShowRowHeaders()?2:1,i=(this.chartTitle?1:0)+(this.shouldShowColumnHeaders()?1:0)+1,o=[];return this.gridConfig.rows.length>0&&this.gridConfig.columns.length>0&&this.gridConfig.rows.forEach(((n,a)=>{if(this.shouldShowRowHeaders()){const r=a>0;o.push(e("div",{key:`row-header-${n.id}`,class:"grid-header grid-header-row",style:{"grid-column":"1","grid-row":String(i+a),"border-top":r?s:"none",padding:`${t.cellPadding}px`,"padding-top":r?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},n.label))}this.gridConfig.columns.forEach(((d,l)=>{const h=function(t,e){return`${t.id}-${e.id}`}(n,d),u=l>0,c=a>0;o.push(e("div",{key:`cell-${h}`,class:"grid-cell",style:{"grid-column":String(r+l),"grid-row":String(i+a),"border-left":u?s:"none","border-top":c?s:"none","padding-left":u?`${t.cellPadding+4}px`:"0","padding-top":c?`${t.cellPadding+4}px`:"0"}},e("slot",{name:h})))}))})),o}getFontStyles(){return this.componentStyle((t=>{var e,s,r,i;return{"--bn-font-family":(null===(e=t.global)||void 0===e?void 0:e.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(s=t.global)||void 0===s?void 0:s.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(r=t.global)||void 0===r?void 0:r.fontColor)||"#000000","--bn-font-background":(null===(i=t.global)||void 0===i?void 0:i.fontBackgroundColor)||"#ffffff"}}))}render(){const t={display:"inline-grid","grid-template-columns":this.getGridTemplateColumns(),"grid-template-rows":this.getGridTemplateRows(),gap:this.cellGap};return e(s,{key:"e84402bafd778e7069cd17bd86687a6648dbafe0",style:this.getFontStyles()},e("div",{key:"91941a42bc41fbbaf53c66551035bf97765a9f88",class:"grid-container",style:t},this.renderTitle(),this.renderColumnHeaders(),this.renderDataCells()),e("slot",{key:"349958090f4bf35b9ec768c8994bdf5a96636a36"}))}get element(){return r(this)}static get watchers(){return{rowHeaders:[{validateRowHeaders:0}],columnHeaders:[{validateColumnHeaders:0}],showRowHeaders:[{validateShowRowHeaders:0}],showColumnHeaders:[{validateShowColumnHeaders:0}],showBorders:[{validateShowBorders:0}]}}};u.style=':host{display:inline-block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.grid-container{display:inline-grid;box-sizing:border-box}.grid-title{font-weight:normal;padding-bottom:8px}.grid-header{display:flex;align-items:flex-end;box-sizing:border-box}.grid-header-row{justify-content:flex-end;padding-right:8px}.grid-header-col{white-space:nowrap;justify-content:flex-start}.grid-cell{position:relative;box-sizing:border-box}';export{u as bn_grid}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,g as a}from"./p-B_d-jp99.js";import{w as o}from"./p-BjBz5cSL.js";import{g as r,f as n}from"./p-Tx6omDWp.js";import{w as e,a as h}from"./p-B4JfKvVT.js";const c=class{constructor(s){t(this,s),e(this),this.errors=h(this),o(this,(t=>{this.stores||(this.stores=r(this.element));try{const s=n(JSON.parse(t)),i=Object.assign({},this.stores.internationalization.get(this.namespace));i[this.code]=s,this.stores.internationalization.set(this.namespace,i)}catch(t){console.error(t)}}))}render(){return s(i,{key:"dd384ecf77e4fd5d46ed04b04c4395fba8bac4e1"})}get element(){return a(this)}};c.style="bn-internationalization{display:none}";export{c as bn_internationalization}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as s,H as t,g as a}from"./p-B_d-jp99.js";import{w as r,a as o}from"./p-B4JfKvVT.js";const d=class{constructor(s){e(this,s),r(this),this.errors=o(this)}render(){return s(t,{key:"cd6a2945603feda3610bc9f2678e03b26f54d6dd"},s("slot",{key:"0e2ba3942a4ef74ab334572656383e85be7e1654"}))}get element(){return a(this)}};export{d as bn_template}
|