@bino-bi/bn-template-engine 1.0.0-next.28 → 1.0.0-next.30
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-132ad556.entry.js +1 -0
- package/dist/bn-template-engine/p-17d71782.entry.js +1 -0
- package/dist/bn-template-engine/p-40ba7f43.entry.js +1 -0
- package/dist/bn-template-engine/p-467871f3.entry.js +1 -0
- package/dist/bn-template-engine/p-64803a42.entry.js +1 -0
- package/dist/bn-template-engine/p-B8AjeKja.js +1 -0
- package/dist/bn-template-engine/p-CCZcKl0Q.js +2 -0
- package/dist/bn-template-engine/p-CrT83eO4.js +1 -0
- package/dist/bn-template-engine/p-D_DzKxRV.js +1 -0
- package/dist/bn-template-engine/p-Z2rUaSh_.js +1 -0
- package/dist/bn-template-engine/p-c41c0a1b.entry.js +1 -0
- package/dist/bn-template-engine/p-yc69rwuH.js +1 -0
- package/dist/cjs/{bn-asset_28.cjs.entry.js → bn-annotation-layer_30.cjs.entry.js} +27566 -26774
- package/dist/cjs/bn-grid.cjs.entry.js +11 -63
- package/dist/cjs/bn-image.cjs.entry.js +5 -6
- package/dist/cjs/bn-internationalization.cjs.entry.js +11 -7
- package/dist/cjs/bn-ruleset.cjs.entry.js +7 -8
- package/dist/cjs/bn-template-engine.cjs.js +2 -2
- package/dist/cjs/bn-text.cjs.entry.js +18 -18
- package/dist/cjs/{diagnostics-Cq-qDtXq.js → diagnostics-C4Ggts3w.js} +50 -2
- package/dist/cjs/{index-C1Z9vO7z.js → index-DGis1BzT.js} +0 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{withBodyObserver-CaPUjuC5.js → withBodyObserver-BK4idxqG.js} +2 -2
- package/dist/cjs/{context-protocol-C0rKepqu.js → withHasError-CqvcS23z.js} +462 -14
- package/dist/cjs/{withStyled-vSfogp9J.js → withStyled-70D4Isgt.js} +22 -35
- package/dist/cjs/{sanitizeHtml-Yx1xn6i_.js → withTranslation-C6Pye2CM.js} +148 -129
- package/dist/collection/collection-manifest.json +11 -11
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.css +24 -0
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +430 -0
- package/dist/collection/components/bn-annotation-layer/utils/marks.js +161 -0
- package/dist/collection/components/bn-annotation-layer/utils/matchPoint.js +25 -0
- package/dist/collection/components/bn-annotation-list/bn-annotation-list.css +46 -0
- package/dist/collection/components/bn-annotation-list/bn-annotation-list.js +112 -0
- package/dist/collection/components/bn-asset/bn-asset.js +1 -1
- package/dist/collection/components/bn-body/bn-body.js +24 -1
- package/dist/collection/components/bn-card/bn-card.js +24 -1
- package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.js → bn-chart-bubble-renderer/bn-chart-bubble-renderer.js} +153 -59
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +70 -13
- package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +29 -21
- package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.js → bn-chart-bullet-renderer/bn-chart-bullet-renderer.js} +127 -53
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +83 -20
- package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +26 -17
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +4 -4
- package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.js → bn-chart-scatter-renderer/bn-chart-scatter-renderer.js} +132 -53
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +69 -12
- package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +26 -14
- package/dist/collection/components/bn-chart-structure/{ibcs-chart-structure.js → bn-chart-structure-renderer/bn-chart-structure-renderer.js} +159 -66
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +115 -95
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +44 -15
- package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +1 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +6 -2
- package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/Marker.js +5 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +4 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +6 -2
- package/dist/collection/components/bn-chart-time/{ibcs-chart-time.js → bn-chart-time-renderer/bn-chart-time-renderer.js} +188 -150
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +140 -405
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +55 -15
- package/dist/collection/components/bn-chart-time/utils/elements/Column.js +5 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Label.js +14 -0
- package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +18 -12
- package/dist/collection/components/bn-chart-time/utils/elements/Marker.js +5 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +4 -1
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +6 -2
- package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +2 -2
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +2 -18
- package/dist/collection/components/bn-component-style/bn-component-style.js +3 -3
- package/dist/collection/components/bn-context/bn-context.js +24 -5
- package/dist/collection/components/bn-dataset/bn-dataset.js +8 -8
- package/dist/collection/components/bn-datasource/bn-datasource.js +8 -8
- package/dist/collection/components/bn-footer/bn-footer.css +1 -15
- package/dist/collection/components/bn-footer/bn-footer.js +17 -34
- package/dist/collection/components/bn-grid/bn-grid.js +38 -71
- package/dist/collection/components/bn-image/bn-image.js +21 -2
- package/dist/collection/components/bn-internationalization/bn-internationalization.js +7 -1
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +3 -32
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +3 -32
- package/dist/collection/components/bn-message/bn-message.js +20 -2
- package/dist/collection/components/bn-page/bn-page.js +22 -3
- package/dist/collection/components/bn-ruleset/bn-ruleset.js +3 -3
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +9 -9
- package/dist/collection/components/bn-table/{ibcs-table.js → bn-table-renderer/bn-table-renderer.js} +230 -83
- package/dist/collection/components/bn-table/bn-table.js +134 -157
- package/dist/collection/components/bn-table/utils/Table.js +3 -3
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +1 -1
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +38 -4
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +3 -1
- package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +2 -2
- package/dist/collection/components/bn-text/bn-text.js +66 -8
- package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.js → bn-title-renderer/bn-title-renderer.js} +59 -83
- package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.js +2 -2
- package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.js +1 -1
- package/dist/collection/components/bn-title/bn-title.js +58 -14
- package/dist/collection/components/bn-tree/bn-tree.js +30 -28
- package/dist/collection/index.js +0 -1
- package/dist/collection/schemas.js +1 -0
- package/dist/collection/stores/componentStyles.js +10 -6
- package/dist/collection/stores/createScopedStores.js +3 -1
- package/dist/collection/stores/internationalization.js +10 -6
- package/dist/collection/utils/annotations.js +66 -0
- package/dist/collection/utils/autoFit.js +2 -2
- package/dist/collection/utils/emptyState.js +1 -1
- package/dist/collection/utils/ibcsRuleSet.js +42 -0
- package/dist/collection/utils/layoutState/dataPoint.js +59 -0
- package/dist/collection/utils/layoutState/geometry.js +46 -0
- package/dist/collection/utils/layoutState/index.js +1 -0
- package/dist/collection/utils/layoutState/svgChartElements.js +113 -11
- package/dist/collection/utils/layoutTemplate.js +0 -2
- package/dist/collection/utils/scaling.js +9 -0
- package/dist/collection/utils/validate.js +0 -7
- package/dist/collection/utils/withComponentStyle.js +14 -18
- package/dist/collection/utils/withDataset.js +22 -11
- package/dist/collection/utils/withHasError.js +17 -2
- package/dist/collection/utils/withRuleSet.js +7 -7
- package/dist/collection/utils/withTranslation.js +14 -14
- package/dist/collection/utils/xy/XYFrame.js +13 -3
- package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +8 -9
- package/dist/collection/utils/xy/pointKey.js +10 -0
- package/dist/components/{ibcs-chart-bullet.d.ts → bn-annotation-layer.d.ts} +4 -4
- package/dist/components/bn-annotation-layer.js +1 -0
- package/dist/components/{ibcs-chart-scatter.d.ts → bn-annotation-list.d.ts} +4 -4
- package/dist/components/bn-annotation-list.js +1 -0
- package/dist/components/bn-asset.js +1 -1
- package/dist/components/bn-body.js +1 -1
- package/dist/components/bn-card.js +1 -1
- package/dist/components/bn-chart-bubble-renderer.d.ts +11 -0
- package/dist/components/bn-chart-bubble-renderer.js +1 -0
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet-renderer.d.ts +11 -0
- package/dist/components/bn-chart-bullet-renderer.js +1 -0
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter-renderer.d.ts +11 -0
- package/dist/components/bn-chart-scatter-renderer.js +1 -0
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure-renderer.d.ts +11 -0
- package/dist/components/bn-chart-structure-renderer.js +1 -0
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/{bn-template.d.ts → bn-chart-time-renderer.d.ts} +4 -4
- package/dist/components/bn-chart-time-renderer.js +1 -0
- 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-footer.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-message.js +1 -1
- package/dist/components/bn-page.js +1 -1
- package/dist/components/bn-ruleset.js +1 -1
- package/dist/components/bn-scaling-group.js +1 -1
- package/dist/components/{ibcs-chart-bubble.d.ts → bn-table-renderer.d.ts} +4 -4
- package/dist/components/bn-table-renderer.js +1 -0
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/{editor-companion.d.ts → bn-title-renderer.d.ts} +4 -4
- package/dist/components/bn-title-renderer.js +1 -0
- package/dist/components/bn-title.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B1nL0yOa.js +1 -0
- package/dist/components/p-B7uwck1J.js +1 -0
- package/dist/components/p-BDS_jiow.js +1 -0
- package/dist/components/p-BIIDTtcR.js +1 -0
- package/dist/components/p-BQMKgvEC.js +1 -0
- package/dist/components/p-BSV_vyqs.js +1 -0
- package/dist/components/p-BVKLCz2k.js +1 -0
- package/dist/components/p-BWBHlztH.js +1 -0
- package/dist/components/p-BXrPfAvP.js +1 -0
- package/dist/components/p-Ba9PUiBp.js +1 -0
- package/dist/components/p-BpCL2bfw.js +1 -0
- package/dist/components/p-BpsXOtoW.js +1 -0
- package/dist/components/p-Bs-YxJEt.js +1 -0
- package/dist/components/p-CGI6XIaK.js +1 -0
- package/dist/components/p-CMM8vtHW.js +1 -0
- package/dist/components/p-COqIkH1M.js +1 -0
- package/dist/components/p-CYwd_ZNM.js +1 -0
- package/dist/components/p-CkW23yp2.js +1 -0
- package/dist/components/p-CtBM3KFY.js +1 -0
- package/dist/{bn-template-engine/p-DFmSrSnf.js → components/p-CurWSJkH.js} +1 -1
- package/dist/components/p-CxPSvrcF.js +1 -0
- package/dist/components/p-D2Epww9R.js +1 -0
- package/dist/components/p-D5-dYgK_.js +1 -0
- package/dist/components/p-D6YGOYV1.js +2 -0
- package/dist/components/p-DEHnizot.js +1 -0
- package/dist/components/p-DIyUaSBg.js +1 -0
- package/dist/components/p-DPLcGhVt.js +1 -0
- package/dist/components/p-DUHp_9X-.js +1 -0
- package/dist/components/p-DYG9FH_u.js +1 -0
- package/dist/components/p-DdGnuNtc.js +1 -0
- package/dist/components/p-Dlb4ncGF.js +1 -0
- package/dist/components/p-Dm55bMs2.js +1 -0
- package/dist/components/p-Dq1AzGKX.js +1 -0
- package/dist/components/p-Dq4KMCDU.js +1 -0
- package/dist/components/p-DsOaqeTN.js +1 -0
- package/dist/components/p-Ds_BSK8v.js +1 -0
- package/dist/components/p-LZ9lAY8T.js +1 -0
- package/dist/components/p-U3zkcEJZ.js +1 -0
- package/dist/components/p-WzaayhTX.js +1 -0
- package/dist/components/p-X9hpquOX.js +1 -0
- package/dist/components/p-Xb6Ilq8u.js +1 -0
- package/dist/components/p-ey23VlID.js +1 -0
- package/dist/components/p-jbp6YiHf.js +1 -0
- package/dist/components/p-oJjMz8JF.js +1 -0
- package/dist/components/p-xhiPDAZa.js +1 -0
- package/dist/components/p-xpguaboj.js +1 -0
- package/dist/esm/{bn-asset_28.entry.js → bn-annotation-layer_30.entry.js} +24689 -23899
- package/dist/esm/bn-grid.entry.js +11 -63
- package/dist/esm/bn-image.entry.js +4 -5
- package/dist/esm/bn-internationalization.entry.js +9 -5
- package/dist/esm/bn-ruleset.entry.js +6 -7
- package/dist/esm/bn-template-engine.js +3 -3
- package/dist/esm/bn-text.entry.js +12 -12
- package/dist/esm/{diagnostics-vw6TKMiT.js → diagnostics-Cyqy1zDT.js} +48 -2
- package/dist/esm/{index-C5UYpZUU.js → index-CCZcKl0Q.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{withBodyObserver-DD_-r04o.js → withBodyObserver-JcRB9OPQ.js} +2 -2
- package/dist/esm/{context-protocol-CdTp19uA.js → withHasError-l3cMN-oP.js} +458 -14
- package/dist/esm/{withStyled-BDEyKd_H.js → withStyled-DGOiR00Q.js} +17 -29
- package/dist/esm/{sanitizeHtml-C5bFtARM.js → withTranslation-BpO8BC5B.js} +144 -126
- package/dist/schemas/axis.schema.json +52 -0
- package/dist/schemas/i18n.schema.json +31 -0
- package/dist/schemas/partof.schema.json +33 -0
- package/dist/schemas/ruleset.schema.json +59 -0
- package/dist/schemas/stack.schema.json +51 -0
- package/dist/schemas/theme.schema.json +604 -0
- package/dist/schemas/thereof.schema.json +34 -0
- package/dist/types/components/bn-annotation-layer/bn-annotation-layer.d.ts +81 -0
- package/dist/types/components/bn-annotation-layer/utils/marks.d.ts +69 -0
- package/dist/types/components/bn-annotation-layer/utils/matchPoint.d.ts +17 -0
- package/dist/types/components/bn-annotation-list/bn-annotation-list.d.ts +35 -0
- package/dist/types/components/bn-body/bn-body.d.ts +5 -0
- package/dist/types/components/bn-card/bn-card.d.ts +5 -0
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble-renderer/bn-chart-bubble-renderer.d.ts +97 -0
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +20 -2
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet-renderer/bn-chart-bullet-renderer.d.ts +81 -0
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +21 -3
- package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +2 -0
- package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +2 -2
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter-renderer/bn-chart-scatter-renderer.d.ts +85 -0
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +20 -2
- package/dist/types/components/bn-chart-structure/{ibcs-chart-structure.d.ts → bn-chart-structure-renderer/bn-chart-structure-renderer.d.ts} +43 -13
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +29 -17
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +5 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Marker.d.ts +1 -0
- package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +2 -1
- package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +3 -0
- package/dist/types/components/bn-chart-time/{ibcs-chart-time.d.ts → bn-chart-time-renderer/bn-chart-time-renderer.d.ts} +50 -17
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +36 -66
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +7 -0
- package/dist/types/components/bn-chart-time/utils/elements/Label.d.ts +5 -0
- package/dist/types/components/bn-chart-time/utils/elements/LineSeries.d.ts +5 -1
- package/dist/types/components/bn-chart-time/utils/elements/Marker.d.ts +1 -0
- package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +2 -1
- package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
- package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +3 -0
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +2 -8
- package/dist/types/components/bn-context/bn-context.d.ts +7 -1
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +2 -2
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +2 -2
- package/dist/types/components/bn-footer/bn-footer.d.ts +5 -7
- package/dist/types/components/bn-grid/bn-grid.d.ts +8 -6
- package/dist/types/components/bn-image/bn-image.d.ts +4 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +0 -1
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +0 -1
- package/dist/types/components/bn-message/bn-message.d.ts +5 -0
- package/dist/types/components/bn-page/bn-page.d.ts +5 -0
- package/dist/types/components/bn-table/{ibcs-table.d.ts → bn-table-renderer/bn-table-renderer.d.ts} +49 -12
- package/dist/types/components/bn-table/bn-table.d.ts +48 -49
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +2 -1
- package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +3 -0
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +9 -2
- package/dist/types/components/bn-text/bn-text.d.ts +19 -1
- package/dist/types/components/bn-title/{ibcs-title/ibcs-title.d.ts → bn-title-renderer/bn-title-renderer.d.ts} +15 -4
- package/dist/types/components/bn-title/bn-title.d.ts +15 -3
- package/dist/types/components/bn-tree/bn-tree.d.ts +6 -2
- package/dist/types/components.d.ts +2070 -2406
- package/dist/types/context/context-protocol.d.ts +2 -0
- package/dist/types/context/scopedDb.d.ts +9 -12
- package/dist/types/index.d.ts +0 -1
- package/dist/types/schemas.d.ts +50 -0
- package/dist/types/stores/componentStyles.d.ts +8 -0
- package/dist/types/stores/createScopedStores.d.ts +1 -0
- package/dist/types/stores/internationalization.d.ts +3 -2
- package/dist/types/stores/ruleSets.d.ts +15 -3
- package/dist/types/utils/annotations.d.ts +45 -0
- package/dist/types/utils/autoFit.d.ts +2 -2
- package/dist/types/utils/emptyState.d.ts +1 -1
- package/dist/types/utils/ibcsRuleSet.d.ts +16 -0
- package/dist/types/utils/layoutState/dataPoint.d.ts +13 -0
- package/dist/types/utils/layoutState/geometry.d.ts +12 -0
- package/dist/types/utils/layoutState/index.d.ts +1 -0
- package/dist/types/utils/layoutState/svgChartElements.d.ts +9 -6
- package/dist/types/utils/layoutState/types.d.ts +29 -0
- package/dist/types/utils/model/ChartStyles.d.ts +2 -1
- package/dist/types/utils/scaling.d.ts +2 -0
- package/dist/types/utils/validate.d.ts +0 -1
- package/dist/types/utils/withComponentStyle.d.ts +4 -4
- package/dist/types/utils/withDataset.d.ts +3 -3
- package/dist/types/utils/withHasError.d.ts +22 -1
- package/dist/types/utils/withRuleSet.d.ts +3 -2
- package/dist/types/utils/withTranslation.d.ts +1 -2
- package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +6 -7
- package/dist/types/utils/xy/pointKey.d.ts +9 -0
- package/package.json +24 -8
- package/readme.md +14 -8
- package/dist/bn-template-engine/assets/bar.png +0 -0
- package/dist/bn-template-engine/assets/matrix.png +0 -0
- package/dist/bn-template-engine/p-5075771a.entry.js +0 -1
- package/dist/bn-template-engine/p-5d516435.entry.js +0 -1
- package/dist/bn-template-engine/p-5e90e728.entry.js +0 -1
- package/dist/bn-template-engine/p-9ef7e132.entry.js +0 -1
- package/dist/bn-template-engine/p-9f7a1980.entry.js +0 -1
- package/dist/bn-template-engine/p-BeXgxHkW.js +0 -1
- package/dist/bn-template-engine/p-C5UYpZUU.js +0 -2
- package/dist/bn-template-engine/p-CH0bpt_k.js +0 -1
- package/dist/bn-template-engine/p-DI3efDSV.js +0 -1
- package/dist/bn-template-engine/p-DXLTTILG.js +0 -1
- package/dist/bn-template-engine/p-DtP4jqG5.js +0 -1
- package/dist/bn-template-engine/p-a8281b71.entry.js +0 -1
- package/dist/bn-template-engine/p-b31277e7.entry.js +0 -1
- package/dist/bn-template-engine/p-b396ac84.entry.js +0 -1
- package/dist/cjs/bn-template.cjs.entry.js +0 -18
- package/dist/cjs/editor-companion.cjs.entry.js +0 -56
- package/dist/cjs/withHasError-qGW_yqIv.js +0 -426
- package/dist/collection/components/bn-footer/assets/bar.png +0 -0
- package/dist/collection/components/bn-footer/assets/matrix.png +0 -0
- package/dist/collection/components/bn-message/assets/bar.png +0 -0
- package/dist/collection/components/bn-message/assets/matrix.png +0 -0
- package/dist/collection/components/bn-template/bn-template.js +0 -38
- package/dist/collection/components/editor-companion/editor-companion.css +0 -3
- package/dist/collection/components/editor-companion/editor-companion.js +0 -137
- package/dist/collection/utils/templateId.js +0 -12
- package/dist/collection/utils/testing/fakeGroup.js +0 -21
- package/dist/collection/utils/testing/hostFont.js +0 -20
- package/dist/collection/utils/testing/mutationObserver.js +0 -44
- package/dist/collection/utils/testing/structureChart.js +0 -26
- package/dist/collection/utils/testing/timeChart.js +0 -28
- package/dist/components/AxisConfig.js +0 -1
- package/dist/components/CompareUtil.js +0 -1
- package/dist/components/DataFormatDigits.js +0 -1
- package/dist/components/DateStringFactory.js +0 -1
- package/dist/components/LabelCollisionManager.js +0 -1
- package/dist/components/Order.js +0 -1
- package/dist/components/SVGStyle.js +0 -1
- package/dist/components/SVGVariancesStyleGroup.js +0 -1
- package/dist/components/StringAdapter.js +0 -1
- package/dist/components/VarianceMeasure.js +0 -1
- package/dist/components/XYChartDataRow.js +0 -1
- package/dist/components/bn-body2.js +0 -1
- package/dist/components/bn-card2.js +0 -1
- package/dist/components/bn-footer2.js +0 -1
- package/dist/components/bn-message2.js +0 -1
- package/dist/components/bn-page2.js +0 -1
- package/dist/components/bn-template.js +0 -1
- package/dist/components/bn-title2.js +0 -1
- package/dist/components/checkXYOverflow.js +0 -1
- package/dist/components/contentDecoder.js +0 -1
- package/dist/components/context-protocol.js +0 -1
- package/dist/components/editor-companion.js +0 -1
- package/dist/components/formatter.js +0 -1
- package/dist/components/geometry.js +0 -1
- package/dist/components/ibcs-chart-bubble.js +0 -1
- package/dist/components/ibcs-chart-bubble2.js +0 -1
- package/dist/components/ibcs-chart-bullet.js +0 -1
- package/dist/components/ibcs-chart-bullet2.js +0 -1
- package/dist/components/ibcs-chart-scatter.js +0 -1
- package/dist/components/ibcs-chart-scatter2.js +0 -1
- package/dist/components/ibcs-chart-structure.d.ts +0 -11
- package/dist/components/ibcs-chart-structure.js +0 -1
- package/dist/components/ibcs-chart-structure2.js +0 -1
- package/dist/components/ibcs-chart-time.d.ts +0 -11
- package/dist/components/ibcs-chart-time.js +0 -1
- package/dist/components/ibcs-chart-time2.js +0 -1
- package/dist/components/ibcs-table.d.ts +0 -11
- package/dist/components/ibcs-table.js +0 -1
- package/dist/components/ibcs-table2.js +0 -1
- package/dist/components/ibcs-title.d.ts +0 -11
- package/dist/components/ibcs-title.js +0 -1
- package/dist/components/ibcs-title2.js +0 -1
- package/dist/components/layoutTemplate.js +0 -1
- package/dist/components/luxon.js +0 -1
- package/dist/components/scaling.js +0 -1
- package/dist/components/svg.esm.js +0 -1
- package/dist/components/svgChartElements.js +0 -1
- package/dist/components/types.js +0 -1
- package/dist/components/validate.js +0 -1
- package/dist/components/withBodyObserver.js +0 -1
- package/dist/components/withComponentStatus.js +0 -1
- package/dist/components/withComponentStyle.js +0 -1
- package/dist/components/withDataset.js +0 -1
- package/dist/components/withHasError.js +0 -1
- package/dist/components/withRuleSet.js +0 -1
- package/dist/components/withScalingGroup.js +0 -1
- package/dist/components/withStyled.js +0 -1
- package/dist/components/withTranslation.js +0 -1
- package/dist/esm/bn-template.entry.js +0 -16
- package/dist/esm/editor-companion.entry.js +0 -54
- package/dist/esm/withHasError-73WV2SP5.js +0 -422
- package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +0 -59
- package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +0 -53
- package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +0 -54
- package/dist/types/components/bn-template/bn-template.d.ts +0 -10
- package/dist/types/components/editor-companion/editor-companion.d.ts +0 -20
- package/dist/types/utils/templateId.d.ts +0 -9
- package/dist/types/utils/testing/fakeGroup.d.ts +0 -8
- package/dist/types/utils/testing/hostFont.d.ts +0 -16
- package/dist/types/utils/testing/mutationObserver.d.ts +0 -5
- package/dist/types/utils/testing/structureChart.d.ts +0 -5
- package/dist/types/utils/testing/timeChart.d.ts +0 -5
- /package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.css → bn-chart-bubble-renderer/bn-chart-bubble-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.css → bn-chart-bullet-renderer/bn-chart-bullet-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.css → bn-chart-scatter-renderer/bn-chart-scatter-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-time/{ibcs-chart-time.css → bn-chart-time-renderer/bn-chart-time-renderer.css} +0 -0
- /package/dist/collection/components/bn-table/{ibcs-table.css → bn-table-renderer/bn-table-renderer.css} +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.css → bn-title-renderer/bn-title-renderer.css} +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.js +0 -0
- /package/dist/components/{stackColors.js → p-4q8nRcWC.js} +0 -0
- /package/dist/components/{merge.js → p-B2NXsfMz.js} +0 -0
- /package/dist/components/{layoutObserver.js → p-B6kka9sT.js} +0 -0
- /package/dist/components/{NumericScale.js → p-BJmwHV0a.js} +0 -0
- /package/dist/components/{stackLayout.js → p-BTnRaHPb.js} +0 -0
- /package/dist/components/{emotion-hash.esm.js → p-BYBpC0EO.js} +0 -0
- /package/dist/components/{diagnostics.js → p-CckAR27O.js} +0 -0
- /package/dist/components/{SiPrefix.js → p-CeE4_3wQ.js} +0 -0
- /package/dist/components/{queryError.js → p-ClruFZD_.js} +0 -0
- /package/dist/components/{sanitizeHtml.js → p-CyUmrWfW.js} +0 -0
- /package/dist/components/{TableAttribute.js → p-DCPLGEs_.js} +0 -0
- /package/dist/components/{parentDimensions.js → p-DD1zlev_.js} +0 -0
- /package/dist/components/{pageFormats.js → p-DM7fwmH4.js} +0 -0
- /package/dist/components/{emptyState.js → p-DakXa7Dp.js} +0 -0
- /package/dist/components/{relativeVariance.js → p-fCjsrD7I.js} +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.d.ts +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Draws annotation marks over a page: a numbered circle on a data point, a
|
|
3
|
+
* rounded frame around a value, or a straight arrow between two data points.
|
|
4
|
+
*
|
|
5
|
+
* The marks are an overlay and not part of the charts, because a chart
|
|
6
|
+
* rewrites its SVG on every render. Positions come from `getLayoutState()` of
|
|
7
|
+
* the components, and they are measured again when a component resizes or
|
|
8
|
+
* draws again. A point with no match, or with more than one, draws nothing:
|
|
9
|
+
* that is a finding in the data and not a broken page, so the layer does not fail.
|
|
10
|
+
*
|
|
11
|
+
* Place it in the `annotations` slot of `bn-layout-page`. The numbers are given,
|
|
12
|
+
* the layer never counts.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <bn-layout-page>
|
|
16
|
+
* <div slot="slot-0" data-bino-annotation-target="t1"><bn-chart-time ...></bn-chart-time></div>
|
|
17
|
+
* <bn-annotation-layer slot="annotations"
|
|
18
|
+
* items='[{"label":"1","mark":"marker","target":"t1","point":{"date":"2024-01-01","scenario":"pl1"}}]'>
|
|
19
|
+
* </bn-annotation-layer>
|
|
20
|
+
* </bn-layout-page>
|
|
21
|
+
*/
|
|
22
|
+
export declare class AnnotationLayer {
|
|
23
|
+
private element;
|
|
24
|
+
/**
|
|
25
|
+
* JSON array of the marks, each one `{ label?, mark?, color?, target, point?, to?, toPoint? }`.
|
|
26
|
+
* `mark` is `marker` (default), `frame` or `arrow`. `target` and `to` name a
|
|
27
|
+
* `data-bino-annotation-target` on this page. `point` and `toPoint` hold raw
|
|
28
|
+
* data values (`rowGroup`, `category`, `subCategory`, `date`, `scenario`, `row`)
|
|
29
|
+
* and a `part` (`element`, `label`, `total`). Without a field they mean the
|
|
30
|
+
* component as a whole.
|
|
31
|
+
*/
|
|
32
|
+
items?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the component style to use (the `name` of a
|
|
35
|
+
* `<bn-component-style>`). Its section `bn-annotation` sets the colours.
|
|
36
|
+
*/
|
|
37
|
+
selectedStyle?: string;
|
|
38
|
+
private marks;
|
|
39
|
+
private readonly errors;
|
|
40
|
+
private readonly holdStatus;
|
|
41
|
+
private readonly componentStyle;
|
|
42
|
+
private stores;
|
|
43
|
+
private pageKey;
|
|
44
|
+
private parsedItems;
|
|
45
|
+
private svg?;
|
|
46
|
+
private scheduled;
|
|
47
|
+
private run;
|
|
48
|
+
private resizeObserver?;
|
|
49
|
+
private mutationObserver?;
|
|
50
|
+
private observed;
|
|
51
|
+
private reported;
|
|
52
|
+
constructor();
|
|
53
|
+
connectedCallback(): void;
|
|
54
|
+
disconnectedCallback(): void;
|
|
55
|
+
componentWillLoad(): void;
|
|
56
|
+
componentDidLoad(): void;
|
|
57
|
+
onItemsChange(): void;
|
|
58
|
+
private parseItems;
|
|
59
|
+
/**
|
|
60
|
+
* Places the marks after the next paint. The layer counts as working until
|
|
61
|
+
* then, so a printer does not print a page with marks of an older layout.
|
|
62
|
+
*/
|
|
63
|
+
private readonly schedule;
|
|
64
|
+
private place;
|
|
65
|
+
/**
|
|
66
|
+
* Not part of the placement: the register would wait for this layer, and this
|
|
67
|
+
* layer for the register. The checks end within the quiet period the register
|
|
68
|
+
* has before it publishes, so the warning is out before a page counts as ready.
|
|
69
|
+
*/
|
|
70
|
+
private reportWhenQuiet;
|
|
71
|
+
private report;
|
|
72
|
+
/** The screen box of an element is axis-aligned on a rotated page too, so its corners map to a box here. */
|
|
73
|
+
private toLocalSpace;
|
|
74
|
+
private storeUnplaced;
|
|
75
|
+
/** A chart redraws inside its shadow roots, where the host and a mutation observer on it see nothing. */
|
|
76
|
+
private observe;
|
|
77
|
+
private observeSize;
|
|
78
|
+
private renderBadge;
|
|
79
|
+
private renderMark;
|
|
80
|
+
render(): any;
|
|
81
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AnnotationLayerItem } from "../../../utils/annotations";
|
|
2
|
+
export interface Box {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
interface Area {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
interface Badge {
|
|
13
|
+
cx: number;
|
|
14
|
+
cy: number;
|
|
15
|
+
r: number;
|
|
16
|
+
label?: string;
|
|
17
|
+
}
|
|
18
|
+
/** What the layer draws for one item, in the coordinates of its SVG. `color` is the name given in the item. */
|
|
19
|
+
export type DrawnMark = {
|
|
20
|
+
kind: "marker";
|
|
21
|
+
color?: string;
|
|
22
|
+
badge: Badge;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "frame";
|
|
25
|
+
color?: string;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
rx: number;
|
|
31
|
+
ry: number;
|
|
32
|
+
badge?: Badge;
|
|
33
|
+
} | {
|
|
34
|
+
kind: "arrow";
|
|
35
|
+
color?: string;
|
|
36
|
+
x1: number;
|
|
37
|
+
y1: number;
|
|
38
|
+
x2: number;
|
|
39
|
+
y2: number;
|
|
40
|
+
head: string;
|
|
41
|
+
badge?: Badge;
|
|
42
|
+
};
|
|
43
|
+
export interface MarkOptions {
|
|
44
|
+
/** The box is a component and not one of its data points. */
|
|
45
|
+
whole?: boolean;
|
|
46
|
+
/** The size of the layer: marks that would leave it stay inside. */
|
|
47
|
+
area?: Area;
|
|
48
|
+
/** The box of the text, when the data point is a table cell. */
|
|
49
|
+
text?: Box;
|
|
50
|
+
/** What a marker next to a text must not cover: the texts of the other cells. */
|
|
51
|
+
obstacles?: Box[];
|
|
52
|
+
}
|
|
53
|
+
/** Where the line from the centre of a box to `towards` leaves the box. */
|
|
54
|
+
export declare function boxEdge(box: Box, towards: {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
}): {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The geometry of one item. On a whole component a marker sits in the top-right
|
|
63
|
+
* corner, and on a table cell next to the number. A frame goes around the text
|
|
64
|
+
* of a cell. It is an oval around a text, and long sides stay straight, so it
|
|
65
|
+
* also fits a long label; a whole component keeps its corners. An arrow between
|
|
66
|
+
* two boxes with the same centre has no direction and gives `undefined`.
|
|
67
|
+
*/
|
|
68
|
+
export declare function buildMark(item: AnnotationLayerItem, box: Box, toBox: Box | undefined, em: number, options?: MarkOptions): DrawnMark | undefined;
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AnnotationPoint } from "../../../utils/annotations";
|
|
2
|
+
import { ComponentLayoutState, DualRect } from "../../../utils/layoutState/types";
|
|
3
|
+
/** The box of a point, and the box of its text when it is a table cell. */
|
|
4
|
+
export interface MatchedPoint {
|
|
5
|
+
rect: DualRect;
|
|
6
|
+
content?: DualRect;
|
|
7
|
+
contentSign?: number;
|
|
8
|
+
}
|
|
9
|
+
/** A point without a field, or no point at all, means the component as a whole. */
|
|
10
|
+
export declare function isWholeComponent(point: AnnotationPoint | undefined): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The rendered boxes of a point. A table point without a scenario means the
|
|
13
|
+
* whole row, so it is looked up in the rows and not in the cells. A thereof row
|
|
14
|
+
* of a table repeats the key of its parent and adds a `subCategory`, so a point
|
|
15
|
+
* without one means the parent: otherwise the parent could never be named.
|
|
16
|
+
*/
|
|
17
|
+
export declare function matchPoint(state: ComponentLayoutState, point: AnnotationPoint): MatchedPoint[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prints the numbered texts of the annotations of a page: the number in a
|
|
3
|
+
* circle like the ones on the page (always in the main colour of the style), the bold
|
|
4
|
+
* title, then the text.
|
|
5
|
+
*
|
|
6
|
+
* The numbers are given. An entry without a number has no circle, and neither
|
|
7
|
+
* has an entry whose mark `bn-annotation-layer` could not place on this page.
|
|
8
|
+
* The other entries keep their numbers: the list never counts again.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <bn-annotation-list items='[{"label":"1","title":"2024 Plan Software","html":"Up by <b>9.1 kEUR</b>."}]'>
|
|
12
|
+
* </bn-annotation-list>
|
|
13
|
+
*/
|
|
14
|
+
export declare class AnnotationList {
|
|
15
|
+
private element;
|
|
16
|
+
/**
|
|
17
|
+
* JSON array of the entries, each one `{ label?, title?, html? }`. `html` is
|
|
18
|
+
* inline markup and is sanitized before it is inserted.
|
|
19
|
+
*/
|
|
20
|
+
items?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Name of the component style to use (the `name` of a
|
|
23
|
+
* `<bn-component-style>`). Its section `bn-annotation` sets the colour of the circles.
|
|
24
|
+
*/
|
|
25
|
+
selectedStyle?: string;
|
|
26
|
+
private readonly errors;
|
|
27
|
+
private readonly componentStyle;
|
|
28
|
+
private stores;
|
|
29
|
+
private pageKey;
|
|
30
|
+
private unsubscribe?;
|
|
31
|
+
constructor();
|
|
32
|
+
connectedCallback(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
render(): any;
|
|
35
|
+
}
|
|
@@ -4,5 +4,10 @@ export declare class Body {
|
|
|
4
4
|
private readonly errors;
|
|
5
5
|
constructor();
|
|
6
6
|
private getFontStyles;
|
|
7
|
+
/**
|
|
8
|
+
* Name of the component style to use (the `name` of a
|
|
9
|
+
* `<bn-component-style>`). Its values go on top of the default style.
|
|
10
|
+
*/
|
|
11
|
+
selectedStyle?: string;
|
|
7
12
|
render(): any;
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ export declare class Card {
|
|
|
3
3
|
private readonly errors;
|
|
4
4
|
constructor();
|
|
5
5
|
private element;
|
|
6
|
+
/**
|
|
7
|
+
* Name of the component style to use (the `name` of a
|
|
8
|
+
* `<bn-component-style>`). Its values go on top of the default style.
|
|
9
|
+
*/
|
|
10
|
+
selectedStyle?: string;
|
|
6
11
|
render(): any;
|
|
7
12
|
private prepareStyle;
|
|
8
13
|
}
|
package/dist/types/components/bn-chart-bubble/bn-chart-bubble-renderer/bn-chart-bubble-renderer.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { RuleSetConfig } from "../../../stores/ruleSets";
|
|
2
|
+
import { ErrorDispatcher } from "../../../utils/withHasError";
|
|
3
|
+
import { AxisConfig, FacetConfig, LabelConfig, LegendConfig, ShareConfig, SizeConfig } from "../../../utils/xy/model/AxisConfig";
|
|
4
|
+
import { GroupLevel, PointLevel } from "../../../utils/xy/model/XYChartDataRow";
|
|
5
|
+
import { XYChartStyle } from "../../../utils/xy/model/XYChartStyle";
|
|
6
|
+
/**
|
|
7
|
+
* Inner presentational element of `bn-chart-bubble`: owns the
|
|
8
|
+
* {@link BubbleChart} orchestrator and emits its SVG string. All props
|
|
9
|
+
* arrive validated and parsed from the facade.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare class BnChartBubbleRenderer {
|
|
13
|
+
element: HTMLElement;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the dataset (table or view in the scoped alasql database).
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
tableName: string;
|
|
19
|
+
/**
|
|
20
|
+
* Bumped by the facade when the dataset changes; triggers re-render.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
dataVersion: number;
|
|
24
|
+
/** @internal */
|
|
25
|
+
chartTitle: string;
|
|
26
|
+
/** @internal */
|
|
27
|
+
x: AxisConfig;
|
|
28
|
+
/** @internal */
|
|
29
|
+
y: AxisConfig;
|
|
30
|
+
/** @internal */
|
|
31
|
+
size: SizeConfig;
|
|
32
|
+
/** @internal */
|
|
33
|
+
share: ShareConfig | null;
|
|
34
|
+
/**
|
|
35
|
+
* Comparison scenario family, or `null` (10D overlay).
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
compareFamily: string | null;
|
|
39
|
+
/** @internal */
|
|
40
|
+
labels: LabelConfig;
|
|
41
|
+
/** @internal */
|
|
42
|
+
legend: LegendConfig;
|
|
43
|
+
/** @internal */
|
|
44
|
+
facet: FacetConfig | null;
|
|
45
|
+
/** @internal */
|
|
46
|
+
pointLevel: PointLevel;
|
|
47
|
+
/** @internal */
|
|
48
|
+
seriesLevel: GroupLevel | null;
|
|
49
|
+
/**
|
|
50
|
+
* Plot aspect ratio, width/height.
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
aspect: number;
|
|
54
|
+
/** @internal */
|
|
55
|
+
limit: number;
|
|
56
|
+
/** @internal */
|
|
57
|
+
filter: string;
|
|
58
|
+
/**
|
|
59
|
+
* Scaling-group mode: area px² per data unit (0 = local sizing).
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
sizeAreaPerUnit: number;
|
|
63
|
+
/** @internal */
|
|
64
|
+
styles: XYChartStyle | undefined;
|
|
65
|
+
/** @internal */
|
|
66
|
+
i18n: Map<string, string>;
|
|
67
|
+
/** @internal */
|
|
68
|
+
containerWidth: number;
|
|
69
|
+
/** @internal */
|
|
70
|
+
ruleSetConfig?: RuleSetConfig;
|
|
71
|
+
/**
|
|
72
|
+
* The facade's error dispatcher - data warnings are synced through it (stable ids).
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
errors?: ErrorDispatcher;
|
|
76
|
+
/**
|
|
77
|
+
* Facade-bound translator for warning messages (resolves `.key` in the facade's namespace).
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
translator?: (key: string, data?: object) => string;
|
|
81
|
+
private chart;
|
|
82
|
+
private svgMarkup;
|
|
83
|
+
private stores;
|
|
84
|
+
constructor();
|
|
85
|
+
private getDb;
|
|
86
|
+
componentWillLoad(): void;
|
|
87
|
+
componentWillUpdate(): void;
|
|
88
|
+
private rebuild;
|
|
89
|
+
/**
|
|
90
|
+
* Syncs the orchestrator's data warnings to the facade's dispatcher.
|
|
91
|
+
* Walks the full fixed code list so cleared warnings are removed again
|
|
92
|
+
* (addOrReplace/remove discipline, stable ids).
|
|
93
|
+
*/
|
|
94
|
+
private syncWarnings;
|
|
95
|
+
private prepareStyle;
|
|
96
|
+
render(): any;
|
|
97
|
+
}
|
|
@@ -7,7 +7,7 @@ import { ComponentLayoutState, LayoutStateOptions } from "../../utils/layoutStat
|
|
|
7
7
|
* compose series hues with scenario treatments, an optional comparison
|
|
8
8
|
* family overlays behind the primary set (10D), and `share` draws pie
|
|
9
9
|
* sectors inside the bubbles (10E). The heavy SVG rendering is performed
|
|
10
|
-
* by the inner `
|
|
10
|
+
* by the inner `bn-chart-bubble-renderer` element; this facade validates props,
|
|
11
11
|
* resolves auto-detected metadata, and computes styles.
|
|
12
12
|
*/
|
|
13
13
|
export declare class ChartBubble {
|
|
@@ -27,6 +27,24 @@ export declare class ChartBubble {
|
|
|
27
27
|
private readonly activeErrors;
|
|
28
28
|
/** Named scaling-group values, synced from the scoped store by `withScalingGroup`. */
|
|
29
29
|
private pixelPerUnitGroupMap;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the dataset to render (the `name` of a `<bn-dataset>`). A name
|
|
32
|
+
* that starts with `$` reads a `<bn-datasource>` directly, which gives a
|
|
33
|
+
* warning.
|
|
34
|
+
*/
|
|
35
|
+
datasets?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the component style to use (the `name` of a
|
|
38
|
+
* `<bn-component-style>`). Its values go on top of the default style.
|
|
39
|
+
*/
|
|
40
|
+
selectedStyle?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Namespace of the translations to use (the `namespace` of a
|
|
43
|
+
* `<bn-internationalization>`). Without it the component takes the
|
|
44
|
+
* `i18n-namespace` of the nearest ancestor that has one, then the built-in
|
|
45
|
+
* texts.
|
|
46
|
+
*/
|
|
47
|
+
i18nNamespace?: string;
|
|
30
48
|
/**
|
|
31
49
|
* Name of a registered IBCS rule set (see `bn-ruleset`) used for scenario
|
|
32
50
|
* treatments and display names. Supports `"inherited-closest"` /
|
|
@@ -200,7 +218,7 @@ export declare class ChartBubble {
|
|
|
200
218
|
/** Facade-bound translator handed to the inner element for warning messages. */
|
|
201
219
|
private readonly translateForInner;
|
|
202
220
|
/**
|
|
203
|
-
* Dataset field map
|
|
221
|
+
* Dataset field map: hierarchy fields plus the
|
|
204
222
|
* 16 scenario slots; descriptions of currently-mapped slots reflect the
|
|
205
223
|
* live mapping (e.g. `ac3 → "size: Net sales"`).
|
|
206
224
|
*/
|
package/dist/types/components/bn-chart-bullet/bn-chart-bullet-renderer/bn-chart-bullet-renderer.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { RuleSetConfig } from "../../../stores/ruleSets";
|
|
2
|
+
import { AggregationLevel } from "../../../utils/constants";
|
|
3
|
+
import { Order } from "../../../utils/model/Order";
|
|
4
|
+
import { ErrorDispatcher } from "../../../utils/withHasError";
|
|
5
|
+
import { BulletChartStyle } from "../utils/model/BulletChartStyle";
|
|
6
|
+
import { BulletLabelConfig, BulletMeasureConfig } from "../utils/model/BulletConfig";
|
|
7
|
+
/**
|
|
8
|
+
* Inner presentational element of `bn-chart-bullet`: owns the
|
|
9
|
+
* {@link BulletChart} orchestrator and emits its SVG string. All props
|
|
10
|
+
* arrive validated and parsed from the facade.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class BnChartBulletRenderer {
|
|
14
|
+
element: HTMLElement;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the dataset (table or view in the scoped alasql database).
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
tableName: string;
|
|
20
|
+
/**
|
|
21
|
+
* Bumped by the facade when the dataset changes; triggers re-render.
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
dataVersion: number;
|
|
25
|
+
/** @internal */
|
|
26
|
+
chartTitle: string;
|
|
27
|
+
/** @internal */
|
|
28
|
+
actual: BulletMeasureConfig;
|
|
29
|
+
/** @internal */
|
|
30
|
+
target: BulletMeasureConfig | null;
|
|
31
|
+
/** @internal */
|
|
32
|
+
ranges: number[];
|
|
33
|
+
/** @internal */
|
|
34
|
+
normalizeMode: "target" | "none";
|
|
35
|
+
/** @internal */
|
|
36
|
+
showVariances: boolean;
|
|
37
|
+
/** @internal */
|
|
38
|
+
level: AggregationLevel;
|
|
39
|
+
/** @internal */
|
|
40
|
+
order: Order;
|
|
41
|
+
/** @internal */
|
|
42
|
+
limit: number;
|
|
43
|
+
/** @internal */
|
|
44
|
+
labels: BulletLabelConfig;
|
|
45
|
+
/** @internal */
|
|
46
|
+
filter: string;
|
|
47
|
+
/** @internal */
|
|
48
|
+
styles: BulletChartStyle | undefined;
|
|
49
|
+
/** @internal */
|
|
50
|
+
i18n: Map<string, string>;
|
|
51
|
+
/** @internal */
|
|
52
|
+
containerWidth: number;
|
|
53
|
+
/** @internal */
|
|
54
|
+
ruleSetConfig?: RuleSetConfig;
|
|
55
|
+
/**
|
|
56
|
+
* The facade's error dispatcher - data warnings are synced through it (stable ids).
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
errors?: ErrorDispatcher;
|
|
60
|
+
/**
|
|
61
|
+
* Facade-bound translator for warning messages (resolves `.key` in the facade's namespace).
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
translator?: (key: string, data?: object) => string;
|
|
65
|
+
private chart;
|
|
66
|
+
private svgMarkup;
|
|
67
|
+
private stores;
|
|
68
|
+
constructor();
|
|
69
|
+
private getDb;
|
|
70
|
+
componentWillLoad(): void;
|
|
71
|
+
componentWillUpdate(): void;
|
|
72
|
+
private rebuild;
|
|
73
|
+
/**
|
|
74
|
+
* Syncs the orchestrator's data warnings to the facade's dispatcher.
|
|
75
|
+
* Walks the full fixed code list so cleared warnings are removed again
|
|
76
|
+
* (addOrReplace/remove discipline, stable ids).
|
|
77
|
+
*/
|
|
78
|
+
private syncWarnings;
|
|
79
|
+
private prepareStyle;
|
|
80
|
+
render(): any;
|
|
81
|
+
}
|
|
@@ -11,7 +11,7 @@ import { ComponentLayoutState, LayoutStateOptions } from "../../utils/layoutStat
|
|
|
11
11
|
* `normalize="none"` (per-row scales) and `ranges` (max two qualitative
|
|
12
12
|
* gray bands). Actual and target scenarios are auto-detected from the
|
|
13
13
|
* dataset meta when not set. The heavy SVG rendering is performed by the
|
|
14
|
-
* inner `
|
|
14
|
+
* inner `bn-chart-bullet-renderer` element; this facade validates props, resolves
|
|
15
15
|
* auto-detected metadata, and computes styles.
|
|
16
16
|
*/
|
|
17
17
|
export declare class ChartBullet {
|
|
@@ -29,6 +29,24 @@ export declare class ChartBullet {
|
|
|
29
29
|
private layoutObserver;
|
|
30
30
|
/** Ids of currently-active blocking errors - the chart renders empty while any is set. */
|
|
31
31
|
private readonly activeErrors;
|
|
32
|
+
/**
|
|
33
|
+
* Name of the dataset to render (the `name` of a `<bn-dataset>`). A name
|
|
34
|
+
* that starts with `$` reads a `<bn-datasource>` directly, which gives a
|
|
35
|
+
* warning.
|
|
36
|
+
*/
|
|
37
|
+
datasets?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the component style to use (the `name` of a
|
|
40
|
+
* `<bn-component-style>`). Its values go on top of the default style.
|
|
41
|
+
*/
|
|
42
|
+
selectedStyle?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Namespace of the translations to use (the `namespace` of a
|
|
45
|
+
* `<bn-internationalization>`). Without it the component takes the
|
|
46
|
+
* `i18n-namespace` of the nearest ancestor that has one, then the built-in
|
|
47
|
+
* texts.
|
|
48
|
+
*/
|
|
49
|
+
i18nNamespace?: string;
|
|
32
50
|
/**
|
|
33
51
|
* Name of a registered IBCS rule set (see `bn-ruleset`) used for scenario
|
|
34
52
|
* treatments and display names. Supports `"inherited-closest"` /
|
|
@@ -75,7 +93,7 @@ export declare class ChartBullet {
|
|
|
75
93
|
* position, the IBCS-comparable form) or `none` (classic per-row scales
|
|
76
94
|
* with tick strips).
|
|
77
95
|
*/
|
|
78
|
-
|
|
96
|
+
normalizeMode: string;
|
|
79
97
|
validateNormalize(newValue: string): void;
|
|
80
98
|
/**
|
|
81
99
|
* Variance bars between actual and target: `auto` (default - drawn in
|
|
@@ -173,7 +191,7 @@ export declare class ChartBullet {
|
|
|
173
191
|
/** Facade-bound translator handed to the inner element for warning messages. */
|
|
174
192
|
private readonly translateForInner;
|
|
175
193
|
/**
|
|
176
|
-
* Dataset field map
|
|
194
|
+
* Dataset field map: hierarchy fields plus the
|
|
177
195
|
* 16 scenario slots; descriptions of currently-mapped slots reflect the
|
|
178
196
|
* live mapping (e.g. `pl1 → "target: Plan"`).
|
|
179
197
|
*/
|
|
@@ -91,4 +91,6 @@ export declare class BulletChart {
|
|
|
91
91
|
/** Classic mode: per-row scales with tick strips, target ticks, optional range bands. */
|
|
92
92
|
private drawClassic;
|
|
93
93
|
private drawValueText;
|
|
94
|
+
/** The row of a bullet: its value of the chart's level and the actual measure. */
|
|
95
|
+
private rowKey;
|
|
94
96
|
}
|
|
@@ -20,9 +20,9 @@ export declare class ScaleFactorsBulletChart {
|
|
|
20
20
|
varianceHeight: number;
|
|
21
21
|
/** Height of a per-row target tick (classic mode). */
|
|
22
22
|
targetTickHeight: number;
|
|
23
|
-
/** Stroke width of the shared target line
|
|
23
|
+
/** Stroke width of the shared target line (2 px at the default font size). */
|
|
24
24
|
targetLineWidth: number;
|
|
25
|
-
/** Stroke width of the baseline axis
|
|
25
|
+
/** Stroke width of the baseline axis (1 px at the default font size). */
|
|
26
26
|
axisLineWidth: number;
|
|
27
27
|
/** Gap between a bar end and its value label. */
|
|
28
28
|
labelToBar: number;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { RuleSetConfig } from "../../../stores/ruleSets";
|
|
2
|
+
import { ErrorDispatcher } from "../../../utils/withHasError";
|
|
3
|
+
import { AxisConfig, FacetConfig, IsoConfig, LabelConfig, LegendConfig } from "../../../utils/xy/model/AxisConfig";
|
|
4
|
+
import { GroupLevel, PointLevel } from "../../../utils/xy/model/XYChartDataRow";
|
|
5
|
+
import { XYChartStyle } from "../../../utils/xy/model/XYChartStyle";
|
|
6
|
+
/**
|
|
7
|
+
* Inner presentational element of `bn-chart-scatter`: owns the
|
|
8
|
+
* {@link ScatterChart} orchestrator and emits its SVG string. All props
|
|
9
|
+
* arrive validated and parsed from the facade.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare class BnChartScatterRenderer {
|
|
13
|
+
element: HTMLElement;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the dataset (table or view in the scoped alasql database).
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
tableName: string;
|
|
19
|
+
/**
|
|
20
|
+
* Bumped by the facade when the dataset changes; triggers re-render.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
dataVersion: number;
|
|
24
|
+
/** @internal */
|
|
25
|
+
chartTitle: string;
|
|
26
|
+
/** @internal */
|
|
27
|
+
x: AxisConfig;
|
|
28
|
+
/** @internal */
|
|
29
|
+
y: AxisConfig;
|
|
30
|
+
/** @internal */
|
|
31
|
+
iso: IsoConfig | null;
|
|
32
|
+
/** @internal */
|
|
33
|
+
labels: LabelConfig;
|
|
34
|
+
/** @internal */
|
|
35
|
+
legend: LegendConfig;
|
|
36
|
+
/** @internal */
|
|
37
|
+
facet: FacetConfig | null;
|
|
38
|
+
/** @internal */
|
|
39
|
+
pointLevel: PointLevel;
|
|
40
|
+
/** @internal */
|
|
41
|
+
seriesLevel: GroupLevel | null;
|
|
42
|
+
/**
|
|
43
|
+
* Plot aspect ratio, width/height.
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
aspect: number;
|
|
47
|
+
/** @internal */
|
|
48
|
+
limit: number;
|
|
49
|
+
/** @internal */
|
|
50
|
+
filter: string;
|
|
51
|
+
/** @internal */
|
|
52
|
+
styles: XYChartStyle | undefined;
|
|
53
|
+
/** @internal */
|
|
54
|
+
i18n: Map<string, string>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
containerWidth: number;
|
|
57
|
+
/** @internal */
|
|
58
|
+
ruleSetConfig?: RuleSetConfig;
|
|
59
|
+
/**
|
|
60
|
+
* The facade's error dispatcher - data warnings are synced through it (stable ids).
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
errors?: ErrorDispatcher;
|
|
64
|
+
/**
|
|
65
|
+
* Facade-bound translator for warning messages (resolves `.key` in the facade's namespace).
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
translator?: (key: string, data?: object) => string;
|
|
69
|
+
private chart;
|
|
70
|
+
private svgMarkup;
|
|
71
|
+
private stores;
|
|
72
|
+
constructor();
|
|
73
|
+
private getDb;
|
|
74
|
+
componentWillLoad(): void;
|
|
75
|
+
componentWillUpdate(): void;
|
|
76
|
+
private rebuild;
|
|
77
|
+
/**
|
|
78
|
+
* Syncs the orchestrator's data warnings to the facade's dispatcher.
|
|
79
|
+
* Walks the full fixed code list so cleared warnings are removed again
|
|
80
|
+
* (addOrReplace/remove discipline, stable ids).
|
|
81
|
+
*/
|
|
82
|
+
private syncWarnings;
|
|
83
|
+
private prepareStyle;
|
|
84
|
+
render(): any;
|
|
85
|
+
}
|
|
@@ -8,7 +8,7 @@ import { XYChartStyle } from "../../utils/xy/model/XYChartStyle";
|
|
|
8
8
|
* Subscribes to a dataset (via `withDataset`) and renders an XY point cloud
|
|
9
9
|
* with series hues, selective labels, highlight bands, and hyperbolic
|
|
10
10
|
* iso-lines (`x·y = k`). The heavy SVG rendering is performed by the inner
|
|
11
|
-
* `
|
|
11
|
+
* `bn-chart-scatter-renderer` element; this facade validates props, resolves
|
|
12
12
|
* auto-detected metadata, and computes styles.
|
|
13
13
|
*/
|
|
14
14
|
export declare class ChartScatter {
|
|
@@ -26,6 +26,24 @@ export declare class ChartScatter {
|
|
|
26
26
|
private layoutObserver;
|
|
27
27
|
/** Ids of currently-active blocking errors - the chart renders empty while any is set. */
|
|
28
28
|
private readonly activeErrors;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the dataset to render (the `name` of a `<bn-dataset>`). A name
|
|
31
|
+
* that starts with `$` reads a `<bn-datasource>` directly, which gives a
|
|
32
|
+
* warning.
|
|
33
|
+
*/
|
|
34
|
+
datasets?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Name of the component style to use (the `name` of a
|
|
37
|
+
* `<bn-component-style>`). Its values go on top of the default style.
|
|
38
|
+
*/
|
|
39
|
+
selectedStyle?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Namespace of the translations to use (the `namespace` of a
|
|
42
|
+
* `<bn-internationalization>`). Without it the component takes the
|
|
43
|
+
* `i18n-namespace` of the nearest ancestor that has one, then the built-in
|
|
44
|
+
* texts.
|
|
45
|
+
*/
|
|
46
|
+
i18nNamespace?: string;
|
|
29
47
|
/**
|
|
30
48
|
* Name of a registered IBCS rule set (see `bn-ruleset`) used for scenario
|
|
31
49
|
* treatments and display names. Supports `"inherited-closest"` /
|
|
@@ -173,7 +191,7 @@ export declare class ChartScatter {
|
|
|
173
191
|
/** Facade-bound translator handed to the inner element for warning messages. */
|
|
174
192
|
private readonly translateForInner;
|
|
175
193
|
/**
|
|
176
|
-
* Dataset field map
|
|
194
|
+
* Dataset field map: hierarchy fields plus the
|
|
177
195
|
* 16 scenario slots; descriptions of currently-mapped slots reflect the
|
|
178
196
|
* live mapping (e.g. `ac1 → "x: Margin"`).
|
|
179
197
|
*/
|