@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
|
@@ -6,6 +6,7 @@ import { DataFormatDigits } from "../../../../components";
|
|
|
6
6
|
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
7
7
|
import { StackMode } from "../../../../utils/constants";
|
|
8
8
|
import { StackLayout, StackSegment } from "../../../../utils/stackLayout";
|
|
9
|
+
import { DataPointKey } from "../../../../utils/layoutState/types";
|
|
9
10
|
/**
|
|
10
11
|
* Renders a single segment within a stacked bar column in a time chart.
|
|
11
12
|
*
|
|
@@ -37,5 +38,5 @@ export declare class StackedColumn {
|
|
|
37
38
|
/**
|
|
38
39
|
* Draw the signed total of the stack: above the positive side, or below the negative side for a negative total.
|
|
39
40
|
*/
|
|
40
|
-
drawTotalLabel(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): void;
|
|
41
|
+
drawTotalLabel(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix, key?: DataPointKey): void;
|
|
41
42
|
}
|
|
@@ -61,5 +61,5 @@ export declare class ScenarioFactory {
|
|
|
61
61
|
* Moves the label group to the front of the SVG tree so labels render on top of all geometry.
|
|
62
62
|
*/
|
|
63
63
|
moveLabelsToFront(): void;
|
|
64
|
-
createLineSeries(dataPoints: LineSeriesDataPoint[], scenarioName: string): LineSeries;
|
|
64
|
+
createLineSeries(dataPoints: LineSeriesDataPoint[], scenarioName: string, lineSlot?: string): LineSeries;
|
|
65
65
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Scenario } from "./index";
|
|
2
|
+
import { DataPointKey } from "../../../../utils/layoutState/types";
|
|
2
3
|
/**
|
|
3
4
|
* A single renderable data point in a time-series chart.
|
|
4
5
|
*
|
|
@@ -18,6 +19,8 @@ export declare class DataPoint {
|
|
|
18
19
|
pixelPerUnit: number;
|
|
19
20
|
/** Variance direction for IBCS color coding (POS=green, NEG=red, NEU=grey). */
|
|
20
21
|
variance: Scenario | string;
|
|
22
|
+
/** The data row this point shows. Written as `data-bn-*` attributes on what is drawn for it. */
|
|
23
|
+
key?: DataPointKey;
|
|
21
24
|
constructor(value: number | null | undefined, scenario: Scenario | string | null, pixelPerUnit: number | null, variance: Scenario | string | null);
|
|
22
25
|
isEmpty(): boolean;
|
|
23
26
|
/** Returns the value scaled to pixel height for absolute (non-percentage) bars. */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AxisLabelsMode, ChartMode, StackBy, StackMode, StackOrder } from "../../../../utils/constants";
|
|
2
2
|
import { DateDistance } from "../../../../utils/DateStringFactory";
|
|
3
3
|
import { IAdapter } from "../../../../utils/helper/IAdapter";
|
|
4
4
|
import { StringAdapter } from "../../../../utils/helper/StringAdapter";
|
|
5
5
|
import { DataFormatDigits, DataFormatDigitsAdapter } from "../../../../utils/model/DataFormatDigits";
|
|
6
|
-
import { Order, OrderAdapter } from "../../../../utils/model/Order";
|
|
7
6
|
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
8
7
|
import { TimeChartDataRow, TimeChartDataRowAdapter } from "./TimeChartDataRow";
|
|
9
8
|
import { AlaSQLDatabase } from "../../../../context/scopedDb";
|
|
@@ -30,10 +29,6 @@ export declare class TimeChartComponentConfig {
|
|
|
30
29
|
pixelPerUnit: number;
|
|
31
30
|
/** Vertical scale factor for percentage variances: pixels per 1.0 (=100%). */
|
|
32
31
|
pixelPerPercentage: number;
|
|
33
|
-
/** Maximum data points to display; 0 means unlimited. */
|
|
34
|
-
limit: number;
|
|
35
|
-
sortOrder: Order;
|
|
36
|
-
level: AggregationLevel;
|
|
37
32
|
/** Pixel offset from left edge for horizontal alignment across multiple charts. -1 disables sync. */
|
|
38
33
|
leftSideOffsetForHorizontalSync: number;
|
|
39
34
|
/** Date granularity (year, quarter, month, etc.). AUTO auto-detects from data. */
|
|
@@ -66,13 +61,12 @@ export declare class TimeChartComponentConfig {
|
|
|
66
61
|
*/
|
|
67
62
|
export declare class TimeChartComponentConfigAdapter implements IAdapter<TimeChartComponentConfig> {
|
|
68
63
|
private dataRowAdapter;
|
|
69
|
-
private orderAdapter;
|
|
70
64
|
private stringAdapter;
|
|
71
65
|
private dataFormatDigitsAdapter;
|
|
72
66
|
private db;
|
|
73
67
|
private fromExpr;
|
|
74
68
|
private onQueryError?;
|
|
75
|
-
constructor(dataRowAdapter: TimeChartDataRowAdapter,
|
|
69
|
+
constructor(dataRowAdapter: TimeChartDataRowAdapter, stringAdapter: StringAdapter, dataFormatDigitsAdapter: DataFormatDigitsAdapter, db: AlaSQLDatabase, fromExpr: string, onQueryError?: (e: unknown) => void);
|
|
76
70
|
adapt(data: Record<string, unknown>): TimeChartComponentConfig;
|
|
77
71
|
default(): TimeChartComponentConfig;
|
|
78
72
|
}
|
|
@@ -13,12 +13,18 @@ export declare class Context {
|
|
|
13
13
|
* part of the typed public API rather than a bare DOM attribute.
|
|
14
14
|
*/
|
|
15
15
|
i18nNamespace: string;
|
|
16
|
+
/**
|
|
17
|
+
* Orientation of the sheets the document is printed on: `landscape` or
|
|
18
|
+
* `portrait`. A `<bn-layout-page>` with the other orientation is turned
|
|
19
|
+
* onto the sheet. Without it no page is turned.
|
|
20
|
+
*/
|
|
21
|
+
renderOrientation?: "landscape" | "portrait";
|
|
16
22
|
setLocale(newValue: string): void;
|
|
17
23
|
/** The page numbers this context wrote. A number that is not in here was set by the author and is left alone. */
|
|
18
24
|
private readonly assignedPageNumbers;
|
|
19
25
|
private pageObserver;
|
|
20
26
|
private pageSizeStyle;
|
|
21
|
-
private
|
|
27
|
+
private lastRenderOrientation;
|
|
22
28
|
connectedCallback(): void;
|
|
23
29
|
disconnectedCallback(): void;
|
|
24
30
|
/** Numbers the pages and writes the paper size of the document. */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* parsed body directly to the `datasets` store.
|
|
9
9
|
*
|
|
10
10
|
* Set the `src` attribute to fetch JSON from an HTTP endpoint instead and
|
|
11
|
-
* write it to the `datasets` store. Set the `interval`
|
|
11
|
+
* write it to the `datasets` store. Set the `refresh-interval` attribute (in seconds)
|
|
12
12
|
* to enable periodic re-fetching.
|
|
13
13
|
*/
|
|
14
14
|
export declare class Dataset {
|
|
@@ -45,7 +45,7 @@ export declare class Dataset {
|
|
|
45
45
|
* interval. Has no effect for SQL, inline JSON or compressed content.
|
|
46
46
|
* Set to `0` or leave unset to disable polling.
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
refreshInterval: number;
|
|
49
49
|
/**
|
|
50
50
|
* URL to fetch the dataset JSON from. When set, the body is ignored and
|
|
51
51
|
* the fetched payload is written directly to the `datasets` store
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 1. **Inline JSON** - Place JSON text inside the element body (default).
|
|
6
6
|
* 2. **Compressed payload** - Set `raw="false"` and provide `<hash>:<base64_gzip>` format.
|
|
7
7
|
* 3. **URL** - Set the `src` attribute to fetch JSON from an HTTP endpoint.
|
|
8
|
-
* Set the `interval`
|
|
8
|
+
* Set the `refresh-interval` attribute (in seconds) to enable periodic re-fetching
|
|
9
9
|
* (polling).
|
|
10
10
|
*
|
|
11
11
|
* The body is always inline data and is ignored while `src` is set.
|
|
@@ -31,7 +31,7 @@ export declare class Datasource {
|
|
|
31
31
|
* interval. Has no effect for inline JSON or compressed content.
|
|
32
32
|
* Set to `0` or leave unset to disable polling.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
refreshInterval: number;
|
|
35
35
|
/**
|
|
36
36
|
* URL to fetch the JSON from. When set, the body is ignored.
|
|
37
37
|
*/
|
|
@@ -4,6 +4,11 @@ export declare class Footer {
|
|
|
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
|
/**
|
|
8
13
|
* Page label: a number or any text, e.g. `3` or `A-1`.
|
|
9
14
|
* Is displayed if displayPageNumber == true
|
|
@@ -14,16 +19,9 @@ export declare class Footer {
|
|
|
14
19
|
* <br />If empty string (`''` or `null`) the footer row is omitted
|
|
15
20
|
*/
|
|
16
21
|
text: string;
|
|
17
|
-
/**
|
|
18
|
-
* code .
|
|
19
|
-
* <br />If empty string (`''` or `null`) the footer row is omitted
|
|
20
|
-
*/
|
|
21
|
-
code: string;
|
|
22
22
|
/**
|
|
23
23
|
* Toggle if pagenumer label is displayed
|
|
24
24
|
*/
|
|
25
25
|
displayPageNumber: boolean;
|
|
26
|
-
isValidHttpUrl(string: any): boolean;
|
|
27
|
-
prepareAssetUrl(imgUrl: string): string;
|
|
28
26
|
render(): any;
|
|
29
27
|
}
|
|
@@ -10,6 +10,11 @@ export declare class Grid {
|
|
|
10
10
|
private gridConfig;
|
|
11
11
|
private readonly errors;
|
|
12
12
|
private readonly componentStyle;
|
|
13
|
+
/**
|
|
14
|
+
* Name of the component style to use (the `name` of a
|
|
15
|
+
* `<bn-component-style>`). Its values go on top of the default style.
|
|
16
|
+
*/
|
|
17
|
+
selectedStyle?: string;
|
|
13
18
|
/**
|
|
14
19
|
* Title displayed at top-left of the grid.
|
|
15
20
|
*/
|
|
@@ -31,12 +36,11 @@ export declare class Grid {
|
|
|
31
36
|
/**
|
|
32
37
|
* Whether to display row headers.
|
|
33
38
|
*/
|
|
34
|
-
showRowHeaders:
|
|
35
|
-
validateShowRowHeaders(newValue: string): void;
|
|
39
|
+
showRowHeaders: boolean;
|
|
36
40
|
/**
|
|
37
41
|
* Whether to display column headers.
|
|
38
42
|
*/
|
|
39
|
-
showColumnHeaders:
|
|
43
|
+
showColumnHeaders: boolean;
|
|
40
44
|
/**
|
|
41
45
|
* I18n namespace inherited by this grid's children (their own namespace
|
|
42
46
|
* wins). Resolved at runtime from the `i18n-namespace` attribute by the
|
|
@@ -45,12 +49,10 @@ export declare class Grid {
|
|
|
45
49
|
* public API rather than a bare DOM attribute.
|
|
46
50
|
*/
|
|
47
51
|
i18nNamespace: string;
|
|
48
|
-
validateShowColumnHeaders(newValue: string): void;
|
|
49
52
|
/**
|
|
50
53
|
* Whether to display divider lines between cells.
|
|
51
54
|
*/
|
|
52
|
-
showBorders:
|
|
53
|
-
validateShowBorders(newValue: string): void;
|
|
55
|
+
showBorders: boolean;
|
|
54
56
|
/**
|
|
55
57
|
* Width of row header column. Accepts CSS values (e.g., 'auto', '100px', '20%').
|
|
56
58
|
*/
|
|
@@ -7,6 +7,10 @@ export declare class Image {
|
|
|
7
7
|
connectedCallback(): void;
|
|
8
8
|
private getFontStyles;
|
|
9
9
|
/**
|
|
10
|
+
* Name of the component style to use (the `name` of a
|
|
11
|
+
* `<bn-component-style>`). Its values go on top of the default style.
|
|
12
|
+
*/
|
|
13
|
+
selectedStyle?: string;
|
|
10
14
|
/**
|
|
11
15
|
* Url of the image.
|
|
12
16
|
* <br />
|
|
@@ -205,7 +205,6 @@ export declare class LayoutCard {
|
|
|
205
205
|
private getSlots;
|
|
206
206
|
private extractSlotNames;
|
|
207
207
|
private getTemplatePattern;
|
|
208
|
-
getNumberOfSlot(name: string): Promise<number>;
|
|
209
208
|
componentWillRender(): void;
|
|
210
209
|
setCardClass(): string;
|
|
211
210
|
/** The value of a prop for the inner title. An unresolved keyword reaches it as blank. */
|
|
@@ -6,6 +6,11 @@ export declare class Footer {
|
|
|
6
6
|
constructor();
|
|
7
7
|
connectedCallback(): void;
|
|
8
8
|
private getFontStyles;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the component style to use (the `name` of a
|
|
11
|
+
* `<bn-component-style>`). Its values go on top of the default style.
|
|
12
|
+
*/
|
|
13
|
+
selectedStyle?: string;
|
|
9
14
|
/**
|
|
10
15
|
* Message text. Rendered as HTML, sanitized against XSS
|
|
11
16
|
* (only safe tags such as `br`, `b`, `i`, `strong`, `em`, `a` and their
|
|
@@ -3,6 +3,11 @@ export declare class Page {
|
|
|
3
3
|
private readonly componentStyle;
|
|
4
4
|
private readonly errors;
|
|
5
5
|
constructor();
|
|
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
|
/**
|
|
7
12
|
* Defines the size of the page
|
|
8
13
|
* <br /><br />
|
package/dist/types/components/bn-table/{ibcs-table.d.ts → bn-table-renderer/bn-table-renderer.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TableType } from "
|
|
2
|
-
import { ComponentMetadata, LayoutDiagnosticItem, LayoutElement, LayoutRegion, Origins, TableDetail } from "
|
|
3
|
-
import { TableDrillGroup } from "
|
|
4
|
-
import { TableAttribute } from "
|
|
5
|
-
import { DataFormat, I18nMode, MeasureType, TableCategoryWidth } from "
|
|
6
|
-
import { RuleSetConfig } from "
|
|
7
|
-
import { DataFormatDigits } from "
|
|
8
|
-
import { Order } from "
|
|
9
|
-
import { AutoScalingReport } from "
|
|
10
|
-
import { ErrorDispatcher } from "
|
|
1
|
+
import { TableType } from "../utils/model";
|
|
2
|
+
import { ComponentMetadata, LayoutDiagnosticItem, LayoutElement, LayoutRegion, Origins, TableDetail } from "../../../utils/layoutState";
|
|
3
|
+
import { TableDrillGroup } from "../utils/model/TableDrillGroup";
|
|
4
|
+
import { TableAttribute } from "../utils/model/TableAttribute";
|
|
5
|
+
import { DataFormat, I18nMode, MeasureType, TableCategoryWidth } from "../../../utils/constants";
|
|
6
|
+
import { RuleSetConfig } from "../../../stores/ruleSets";
|
|
7
|
+
import { DataFormatDigits } from "../../../utils/model/DataFormatDigits";
|
|
8
|
+
import { Order } from "../../../utils/model/Order";
|
|
9
|
+
import { AutoScalingReport } from "../../../utils/scaling";
|
|
10
|
+
import { ErrorDispatcher } from "../../../utils/withHasError";
|
|
11
11
|
/** Layout-state contribution of the inner table, merged by `bn-table.getLayoutState()`. */
|
|
12
12
|
export interface TableLayoutDetail {
|
|
13
13
|
regions: LayoutRegion[];
|
|
@@ -24,70 +24,106 @@ export interface TableLayoutDetail {
|
|
|
24
24
|
* columns, variance columns (with optional inline bar/pin charts), thereof/
|
|
25
25
|
* partof drill-down rows, and grouped row sections. This component should
|
|
26
26
|
* not be used directly; use `bn-table` instead.
|
|
27
|
+
* @internal
|
|
27
28
|
*/
|
|
28
|
-
export declare class
|
|
29
|
+
export declare class BnTableRenderer {
|
|
29
30
|
private element;
|
|
30
31
|
private readonly componentStyle;
|
|
31
32
|
/**
|
|
32
33
|
* Name of the dataset (a table or view in the shared alasql database). The
|
|
33
34
|
* inner `Table` helper queries it directly - no array copy.
|
|
35
|
+
* @internal
|
|
34
36
|
*/
|
|
35
37
|
tableName: string;
|
|
36
38
|
/**
|
|
37
39
|
* Bumped by the outer `bn-table` whenever the dataset's data changes. Triggers
|
|
38
40
|
* a re-render via Stencil's prop-change detection.
|
|
41
|
+
* @internal
|
|
39
42
|
*/
|
|
40
43
|
dataVersion: number;
|
|
41
44
|
/**
|
|
42
45
|
* Name of a registered component style, forwarded by the outer `bn-table`.
|
|
43
46
|
* Reflected so the `withComponentStyle` mixin can read the `selected-style`
|
|
44
47
|
* attribute from the host element.
|
|
48
|
+
* @internal
|
|
45
49
|
*/
|
|
46
50
|
selectedStyle?: string;
|
|
47
51
|
/**
|
|
48
52
|
* Label of the grand-total row (`sum` / `opt` types only). The default
|
|
49
53
|
* `SUM_TOTAL` is an i18n key that resolves to the IBCS total symbol (❖).
|
|
54
|
+
* @internal
|
|
50
55
|
*/
|
|
51
56
|
sumTitle: string;
|
|
57
|
+
/** @internal */
|
|
52
58
|
scenarios: string[];
|
|
59
|
+
/** @internal */
|
|
53
60
|
scenariosDataFormat: DataFormat;
|
|
61
|
+
/** @internal */
|
|
54
62
|
grouped?: boolean;
|
|
63
|
+
/** @internal */
|
|
55
64
|
limit: number;
|
|
65
|
+
/** @internal */
|
|
56
66
|
showGroupTitle: boolean;
|
|
67
|
+
/** @internal */
|
|
57
68
|
thereof: TableDrillGroup[];
|
|
69
|
+
/** @internal */
|
|
58
70
|
partof: TableDrillGroup[];
|
|
71
|
+
/** @internal */
|
|
59
72
|
order: Order;
|
|
73
|
+
/** @internal */
|
|
60
74
|
categorythereof: Map<string, Record<string, unknown>[]>;
|
|
75
|
+
/** @internal */
|
|
61
76
|
attributeColumns: TableAttribute[];
|
|
77
|
+
/** @internal */
|
|
62
78
|
type: TableType;
|
|
79
|
+
/** @internal */
|
|
63
80
|
categoryWidth: TableCategoryWidth;
|
|
81
|
+
/** @internal */
|
|
64
82
|
dataFormatDigits: DataFormatDigits;
|
|
83
|
+
/** @internal */
|
|
65
84
|
ruleSetConfig?: RuleSetConfig;
|
|
85
|
+
/** @internal */
|
|
66
86
|
i18n: Map<string, string>;
|
|
87
|
+
/** @internal */
|
|
67
88
|
i18nMode: I18nMode;
|
|
89
|
+
/** @internal */
|
|
68
90
|
measureScale: string;
|
|
91
|
+
/** @internal */
|
|
69
92
|
measureUnit: string;
|
|
93
|
+
/** @internal */
|
|
70
94
|
showMeasureScale: boolean;
|
|
95
|
+
/** @internal */
|
|
71
96
|
measureType: MeasureType;
|
|
97
|
+
/** @internal */
|
|
72
98
|
filter: string;
|
|
99
|
+
/** @internal */
|
|
73
100
|
barColumns: string[];
|
|
101
|
+
/** @internal */
|
|
74
102
|
interval: string;
|
|
75
103
|
/**
|
|
76
104
|
* Total width of a bar chart column, in em of the table font - the same unit
|
|
77
105
|
* `categoryWidth` uses, so the two render at the same width for the same value.
|
|
106
|
+
* @internal
|
|
78
107
|
*/
|
|
79
108
|
barColumnMaxWidth: number;
|
|
109
|
+
/** @internal */
|
|
80
110
|
unitScaling: number;
|
|
111
|
+
/** @internal */
|
|
81
112
|
percentageScaling: number;
|
|
82
113
|
/**
|
|
83
114
|
* Internal wrapper channel: called with the auto-fitted scaling values
|
|
84
115
|
* (em per unit / em per percentage point) whenever one of them was
|
|
85
116
|
* auto-resolved, so the outer `bn-table` can surface them in its AUTO_*
|
|
86
117
|
* warnings. Not for end users.
|
|
118
|
+
* @internal
|
|
87
119
|
*/
|
|
88
120
|
reportAutoScaling?: (report: AutoScalingReport) => void;
|
|
89
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* The wrapper's error dispatcher: a failed query is reported through it as `ERR_sql`. Not for end users.
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
90
125
|
errors?: ErrorDispatcher;
|
|
126
|
+
/** @internal */
|
|
91
127
|
scaleFactor: number;
|
|
92
128
|
private table;
|
|
93
129
|
private componentDataFormatDigits;
|
|
@@ -99,6 +135,7 @@ export declare class IbcsTable {
|
|
|
99
135
|
* counts, and - with `detail: "full"` - per-cell geometry paired with the
|
|
100
136
|
* table model (values, column keys, in-cell bar charts). Called by the
|
|
101
137
|
* outer `bn-table`; not for end users.
|
|
138
|
+
* @internal
|
|
102
139
|
*/
|
|
103
140
|
getLayoutDetail(origins: Origins, detail: "summary" | "full"): Promise<TableLayoutDetail>;
|
|
104
141
|
render(): any;
|
|
@@ -3,10 +3,10 @@ import { ComponentLayoutState, LayoutStateOptions } from "../../utils/layoutStat
|
|
|
3
3
|
* Public-facing wrapper for the IBCS table component.
|
|
4
4
|
*
|
|
5
5
|
* Accepts user-facing string/number props, validates them, and converts
|
|
6
|
-
* them into the typed internal format expected by `
|
|
6
|
+
* them into the typed internal format expected by `bn-table-renderer`. Handles
|
|
7
7
|
* auto-scaling, dataset subscription (via `withDataset`), and i18n setup.
|
|
8
8
|
* The actual table rendering (header, body, drill-down rows) is delegated
|
|
9
|
-
* to the inner `
|
|
9
|
+
* to the inner `bn-table-renderer` element.
|
|
10
10
|
*/
|
|
11
11
|
export declare class Table {
|
|
12
12
|
private element;
|
|
@@ -26,6 +26,19 @@ export declare class Table {
|
|
|
26
26
|
private appliedScaleFactor;
|
|
27
27
|
/** True when the active dataset contains rows with a blank `setname` (relevant for `interval='setname'`). */
|
|
28
28
|
private hasBlankSetnames;
|
|
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
|
+
* Namespace of the translations to use (the `namespace` of a
|
|
37
|
+
* `<bn-internationalization>`). Without it the component takes the
|
|
38
|
+
* `i18n-namespace` of the nearest ancestor that has one, then the built-in
|
|
39
|
+
* texts.
|
|
40
|
+
*/
|
|
41
|
+
i18nNamespace?: string;
|
|
29
42
|
/**
|
|
30
43
|
* Controls proportional scaling of the entire table relative to the
|
|
31
44
|
* available parent width. All visual dimensions scale together: font size,
|
|
@@ -37,7 +50,7 @@ export declare class Table {
|
|
|
37
50
|
* Because the table's SCSS uses `em` units for padding, borders, and
|
|
38
51
|
* column widths, changing the font size cascades to all layout dimensions.
|
|
39
52
|
* SVG elements (bars, pins, patterns) receive the factor via the
|
|
40
|
-
* `scaleFactor` prop on `
|
|
53
|
+
* `scaleFactor` prop on `bn-table-renderer` and multiply every pixel constant
|
|
41
54
|
* by it, so they stay proportional to the surrounding text.
|
|
42
55
|
*
|
|
43
56
|
* | Value | Behavior |
|
|
@@ -63,14 +76,14 @@ export declare class Table {
|
|
|
63
76
|
*
|
|
64
77
|
* Invalid values (negative numbers, non-numeric strings that are not
|
|
65
78
|
* `"none"` or `"auto"`) fall back to the default behaviour (auto + warning)
|
|
66
|
-
* and emit an `
|
|
79
|
+
* and emit an `WARN_scale` warning.
|
|
67
80
|
*
|
|
68
81
|
* **Only the width is fitted.** A table that renders taller than its
|
|
69
82
|
* constrained parent is clipped by the layout cell - bottom rows and the
|
|
70
83
|
* grand total simply disappear - so every render reports the measured
|
|
71
|
-
* overflow
|
|
72
|
-
*
|
|
73
|
-
* mode. The same item reports a width overflow, which only a fixed `scale`
|
|
84
|
+
* overflow in `has-error`: as the error `ERR_overflow` when the size is
|
|
85
|
+
* pinned by `scale` (`"none"` or a factor), as the warning `WARN_overflow`
|
|
86
|
+
* in auto mode. The same item reports a width overflow, which only a fixed `scale`
|
|
74
87
|
* can produce. Setting `scale="auto"` does not fix a height overflow: give
|
|
75
88
|
* the component more space, reduce rows (`limit`), or set a smaller fixed
|
|
76
89
|
* `scale`.
|
|
@@ -93,13 +106,13 @@ export declare class Table {
|
|
|
93
106
|
constructor();
|
|
94
107
|
/**
|
|
95
108
|
* Name of a registered IBCS rule set (see `bn-ruleset`) used for scenario
|
|
96
|
-
* ordering. Supports `"inherited-closest"` / `"inherited-page"` to
|
|
97
|
-
* over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
|
|
109
|
+
* ordering, look and names. Supports `"inherited-closest"` / `"inherited-page"` to
|
|
110
|
+
* take over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
|
|
98
111
|
*/
|
|
99
112
|
ruleset?: string;
|
|
100
113
|
/**
|
|
101
114
|
* Name of a registered component style (see `bn-component-style`). Forwarded
|
|
102
|
-
* to the inner `
|
|
115
|
+
* to the inner `bn-table-renderer` so bar-chart colors and fonts follow the selected
|
|
103
116
|
* style as well.
|
|
104
117
|
*/
|
|
105
118
|
selectedStyle?: string;
|
|
@@ -233,16 +246,14 @@ export declare class Table {
|
|
|
233
246
|
* values: <br />
|
|
234
247
|
* ```true // false```
|
|
235
248
|
*/
|
|
236
|
-
grouped:
|
|
237
|
-
validateGrouped(newValue: string): void;
|
|
249
|
+
grouped: boolean;
|
|
238
250
|
/**
|
|
239
251
|
* Toggles display of measure units in table header
|
|
240
252
|
* <br /><br />
|
|
241
253
|
* values: <br />
|
|
242
254
|
* ```true // false```
|
|
243
255
|
*/
|
|
244
|
-
showMeasureScale:
|
|
245
|
-
validateShowMeasureScale(newValue: string): void;
|
|
256
|
+
showMeasureScale: boolean;
|
|
246
257
|
/**
|
|
247
258
|
* Toggles a title header for each (row-)group
|
|
248
259
|
* the title header value is found set by 'rowgroup'
|
|
@@ -251,8 +262,7 @@ export declare class Table {
|
|
|
251
262
|
* ```true // false```
|
|
252
263
|
*
|
|
253
264
|
*/
|
|
254
|
-
showGroupTitle:
|
|
255
|
-
validateShowGroupTitle(newValue: string): void;
|
|
265
|
+
showGroupTitle: boolean;
|
|
256
266
|
/**
|
|
257
267
|
* Set the table type
|
|
258
268
|
* <br /><br />
|
|
@@ -272,36 +282,26 @@ export declare class Table {
|
|
|
272
282
|
limit: number;
|
|
273
283
|
validateLimit(newValue: number): void;
|
|
274
284
|
/**
|
|
275
|
-
*
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
*
|
|
281
|
-
* subcategory is the displayed label of the data row
|
|
282
|
-
*<br /><br />
|
|
285
|
+
* JSON array of drilldown objects with the keys `rowGroup`, `category` and
|
|
286
|
+
* `subCategory` (all strings, all required).
|
|
287
|
+
* <br /><br />
|
|
288
|
+
* `rowGroup` and `category` name the row the drilldown belongs to,
|
|
289
|
+
* `subCategory` is the label of the data row that is shown below it.
|
|
290
|
+
* <br /><br />
|
|
283
291
|
* example:<br />
|
|
284
|
-
* ```[{
|
|
285
|
-
"rowGroup":"Umsatz",
|
|
286
|
-
"category": "Applications",
|
|
287
|
-
"subCategory": "Applications-A",
|
|
288
|
-
},]```
|
|
292
|
+
* ```[{"rowGroup": "Umsatz", "category": "Applications", "subCategory": "Applications-A"}]```
|
|
289
293
|
*/
|
|
290
294
|
thereof: string;
|
|
291
295
|
validateThereOf(newValue: string): void;
|
|
292
296
|
/**
|
|
293
|
-
*
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*<br /><br />
|
|
297
|
+
* JSON array of part-of objects with the keys `rowGroup` and `category`
|
|
298
|
+
* (both strings, both required).
|
|
299
|
+
* <br /><br />
|
|
300
|
+
* Each object names a category. The table shows its share of the row group
|
|
301
|
+
* in percent.
|
|
302
|
+
* <br /><br />
|
|
300
303
|
* example:<br />
|
|
301
|
-
* ```[{
|
|
302
|
-
"rowGroups":"Umsatz",
|
|
303
|
-
"category": "Applications",
|
|
304
|
-
},]```
|
|
304
|
+
* ```[{"rowGroup": "Umsatz", "category": "Applications"}]```
|
|
305
305
|
*/
|
|
306
306
|
partof: string;
|
|
307
307
|
validatePartOf(newValue: string): void;
|
|
@@ -392,15 +392,14 @@ export declare class Table {
|
|
|
392
392
|
categoryWidth: string;
|
|
393
393
|
validateCategoryWidth(newValue: string): void;
|
|
394
394
|
/**
|
|
395
|
-
*
|
|
395
|
+
* JSON array that defines which drill columns are shown. Each object has
|
|
396
|
+
* the keys `scenario`, `name` and `subGroups` (all required).
|
|
396
397
|
* <br /><br />
|
|
397
|
-
* ```scenario``` the
|
|
398
|
-
* ```
|
|
399
|
-
* ```subGroups```
|
|
398
|
+
* ```scenario``` the scenario to drill <br/>
|
|
399
|
+
* ```name``` the label of the parent column <br/>
|
|
400
|
+
* ```subGroups``` the list of child columns of the parent <br/><br/>
|
|
400
401
|
* example:<br />
|
|
401
|
-
* ```[{"scenario": "ac1", "name": "DE", "subGroups": ["Berlin"]},
|
|
402
|
-
* {"scenario": "ac2", "name": "UK", "subGroups": []}],
|
|
403
|
-
* ```
|
|
402
|
+
* ```[{"scenario": "ac1", "name": "DE", "subGroups": ["Berlin"]}, {"scenario": "ac2", "name": "UK", "subGroups": []}]```
|
|
404
403
|
*/
|
|
405
404
|
columnthereof: string | null;
|
|
406
405
|
validateColumnThereOf(newValue: string | null): void;
|
|
@@ -437,7 +436,7 @@ export declare class Table {
|
|
|
437
436
|
private _autoScaleGuard;
|
|
438
437
|
componentDidRender(): void;
|
|
439
438
|
/**
|
|
440
|
-
* Reports
|
|
439
|
+
* Reports an overflow item when the rendered table exceeds its
|
|
441
440
|
* container. The table only auto-fits its WIDTH, so nothing prevents it
|
|
442
441
|
* from growing taller than the layout cell, which clips the bottom rows
|
|
443
442
|
* (grand total included) without a trace - this item is the only signal.
|
|
@@ -478,7 +477,7 @@ export declare class Table {
|
|
|
478
477
|
private prepareUnitScaling;
|
|
479
478
|
private preparePercentageScaling;
|
|
480
479
|
/**
|
|
481
|
-
* Receives the auto-fitted scaling values from the inner
|
|
480
|
+
* Receives the auto-fitted scaling values from the inner bn-table-renderer
|
|
482
481
|
* (em per unit / em per percentage point) and surfaces them in the AUTO_*
|
|
483
482
|
* warnings, converted back to the attribute's units-per-em form so users
|
|
484
483
|
* can copy them into a bn-scaling-group.
|
|
@@ -32,6 +32,8 @@ export declare class Cell {
|
|
|
32
32
|
columnStats?: ColumnStats;
|
|
33
33
|
waterfall?: WaterfallBarData;
|
|
34
34
|
measureScale: number;
|
|
35
|
+
/** The first day of the bucket of an interval column. */
|
|
36
|
+
date?: string;
|
|
35
37
|
constructor(scenario: string, index: number, value: number | string | null, cssStyle: string | null, type: string | null, prefix: string | null, prefixStyle: string | null, colSpan: number | null, measureScale: number | null | undefined);
|
|
36
38
|
getAsHeaderList(): Array<string | number>;
|
|
37
39
|
draw(dataFormatDigits: DataFormatDigits, locale?: string): string | number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
2
|
import { ColumnStats } from "./Cell";
|
|
3
|
+
import { FillPattern } from "../../../../utils/model/styles/SVGStyle";
|
|
3
4
|
export interface VarianceStyle {
|
|
4
5
|
stroke: string;
|
|
5
6
|
fill: string;
|
|
6
|
-
fillpattern?:
|
|
7
|
+
fillpattern?: FillPattern;
|
|
7
8
|
}
|
|
8
9
|
export interface ScenarioStyles {
|
|
9
10
|
ac: VarianceStyle;
|
|
@@ -2,6 +2,7 @@ import { TableCategoryWidth } from "../../../../utils/constants";
|
|
|
2
2
|
import { TableRowType } from "../model";
|
|
3
3
|
import { Cell, ColumnStats } from "./Cell";
|
|
4
4
|
import { WaterfallBarData } from "../helper/WaterfallCalculator";
|
|
5
|
+
import { DataPointKey } from "../../../../utils/layoutState/types";
|
|
5
6
|
/**
|
|
6
7
|
* Represents a single row in an IBCS table, containing an ordered list of Cells.
|
|
7
8
|
*
|
|
@@ -24,6 +25,8 @@ export declare class TableRow {
|
|
|
24
25
|
type: TableRowType;
|
|
25
26
|
cssStyle: string;
|
|
26
27
|
elements: Cell[];
|
|
28
|
+
/** The data this row shows. Header, group header and part-of rows have none: they cannot be addressed. */
|
|
29
|
+
key?: DataPointKey;
|
|
27
30
|
constructor(index: number, groupIndex: number, type: TableRowType);
|
|
28
31
|
private initCssStyle;
|
|
29
32
|
getCells(): Cell[];
|