@bino-bi/bn-template-engine 1.0.0-next.26 → 1.0.0-next.28
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-5075771a.entry.js +1 -0
- package/dist/bn-template-engine/p-5d516435.entry.js +1 -0
- package/dist/bn-template-engine/p-5e90e728.entry.js +1 -0
- package/dist/bn-template-engine/p-9ef7e132.entry.js +1 -0
- package/dist/bn-template-engine/{p-f06c3703.entry.js → p-9f7a1980.entry.js} +1 -1
- package/dist/bn-template-engine/p-BeXgxHkW.js +1 -0
- package/dist/bn-template-engine/p-CH0bpt_k.js +1 -0
- package/dist/bn-template-engine/p-ClruFZD_.js +1 -0
- package/dist/bn-template-engine/{p-CTrNbSXN.js → p-DFmSrSnf.js} +1 -1
- package/dist/bn-template-engine/{p-BcLsoDrW.js → p-DI3efDSV.js} +1 -1
- package/dist/bn-template-engine/p-DXLTTILG.js +1 -0
- package/dist/bn-template-engine/p-DtP4jqG5.js +1 -0
- package/dist/bn-template-engine/p-a8281b71.entry.js +1 -0
- package/dist/bn-template-engine/p-b31277e7.entry.js +1 -0
- package/dist/bn-template-engine/p-b396ac84.entry.js +1 -0
- package/dist/cjs/{bn-asset_21.cjs.entry.js → bn-asset_28.cjs.entry.js} +21358 -6528
- package/dist/cjs/bn-grid.cjs.entry.js +4 -6
- package/dist/cjs/bn-image.cjs.entry.js +3 -5
- package/dist/cjs/bn-internationalization.cjs.entry.js +17 -6
- package/dist/cjs/bn-ruleset.cjs.entry.js +5 -5
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-template.cjs.entry.js +2 -2
- package/dist/cjs/bn-text.cjs.entry.js +115 -43
- package/dist/cjs/{context-protocol-DcTEh1rq.js → context-protocol-C0rKepqu.js} +108 -22
- package/dist/cjs/{diagnostics-CTgbq_Gc.js → diagnostics-Cq-qDtXq.js} +1 -1
- package/dist/cjs/editor-companion.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/queryError-BZjnIW_w.js +16 -0
- package/dist/cjs/{scaling-Dsb5_NXy.js → sanitizeHtml-Yx1xn6i_.js} +467 -287
- package/dist/cjs/{withBodyObserver-DJO98AJ-.js → withBodyObserver-CaPUjuC5.js} +1 -1
- package/dist/cjs/withHasError-qGW_yqIv.js +426 -0
- package/dist/cjs/{withStyled-D0jLwCib.js → withStyled-vSfogp9J.js} +543 -42
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +37 -0
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +53 -28
- package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +37 -5
- package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +16 -7
- package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +67 -30
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +37 -0
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +49 -29
- package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +37 -5
- package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +17 -7
- package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +34 -18
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +2 -0
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +1 -1
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +37 -0
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +52 -27
- package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +37 -5
- package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +16 -7
- package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +52 -18
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.css +37 -5
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +74 -44
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +60 -19
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +218 -262
- package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +1 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +11 -4
- package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +16 -25
- package/dist/collection/components/bn-chart-structure/utils/model/StructureChartComponentConfig.js +3 -2
- package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +2 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.css +37 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +122 -52
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +37 -0
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +60 -19
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +245 -250
- package/dist/collection/components/bn-chart-time/utils/elements/AreaFill.js +1 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Label.js +1 -1
- package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +1 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +11 -4
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +22 -34
- package/dist/collection/components/bn-chart-time/utils/helper/LabelCollisionManager.js +3 -3
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +4 -3
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartDataRow.js +2 -2
- package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +2 -0
- package/dist/collection/components/bn-component-style/bn-component-style.js +14 -2
- package/dist/collection/components/bn-context/bn-context.js +92 -22
- package/dist/collection/components/bn-dataset/bn-dataset.js +246 -90
- package/dist/collection/components/bn-datasource/bn-datasource.js +169 -77
- package/dist/collection/components/bn-footer/bn-footer.js +6 -6
- package/dist/collection/components/bn-internationalization/bn-internationalization.js +14 -3
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +25 -74
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +59 -71
- package/dist/collection/components/bn-message/bn-message.js +2 -2
- package/dist/collection/components/bn-page/bn-page.css +0 -240
- package/dist/collection/components/bn-page/bn-page.js +14 -4
- package/dist/collection/components/bn-page/pageFormats.js +69 -0
- package/dist/collection/components/bn-ruleset/bn-ruleset.js +2 -2
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +7 -7
- package/dist/collection/components/bn-table/bn-table.css +38 -1
- package/dist/collection/components/bn-table/bn-table.js +96 -59
- package/dist/collection/components/bn-table/ibcs-table.css +39 -1
- package/dist/collection/components/bn-table/ibcs-table.js +89 -30
- package/dist/collection/components/bn-table/utils/Table.js +12 -13
- package/dist/collection/components/bn-table/utils/elements/Cell.js +9 -3
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +38 -34
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +2 -1
- package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +4 -4
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +17 -4
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +128 -98
- package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +6 -20
- package/dist/collection/components/bn-table/utils/helper/QueryGroup.js +9 -2
- package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +2 -2
- package/dist/collection/components/bn-table/utils/model/TableAttribute.js +2 -2
- package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +3 -2
- package/dist/collection/components/bn-template/bn-template.js +1 -1
- package/dist/collection/components/bn-text/bn-text.js +36 -39
- package/dist/collection/components/bn-text/utils/template.js +79 -0
- package/dist/collection/components/bn-title/bn-title.js +10 -4
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +3 -1
- package/dist/collection/components/bn-tree/bn-tree.js +119 -23
- package/dist/collection/components/bn-tree/utils/EdgeRenderer.js +59 -51
- package/dist/collection/components/bn-tree/utils/TreeLayout.js +30 -5
- package/dist/collection/components/bn-tree/utils/TreeParser.js +35 -0
- package/dist/collection/components/editor-companion/editor-companion.js +1 -1
- package/dist/collection/context/context-protocol.js +1 -1
- package/dist/collection/context/scopedDb.js +47 -4
- package/dist/collection/stores/componentStyles.js +39 -0
- package/dist/collection/stores/internationalization.js +15 -13
- package/dist/collection/utils/DateStringFactory.js +17 -15
- package/dist/collection/utils/autoFit.js +2 -2
- package/dist/collection/utils/componentRegister.js +60 -16
- package/dist/collection/utils/constants.js +2 -2
- package/dist/collection/utils/dataAnalyzer.js +9 -12
- package/dist/collection/utils/emptyState.js +21 -0
- package/dist/collection/utils/formatter.js +29 -20
- package/dist/collection/utils/layoutObserver.js +1 -1
- package/dist/collection/utils/layoutState/generic.js +1 -1
- package/dist/collection/utils/layoutState/svgChartElements.js +2 -2
- package/dist/collection/utils/layoutTemplate.js +81 -0
- package/dist/collection/utils/measurementHost.js +2 -2
- package/dist/collection/utils/model/Order.js +1 -1
- package/dist/collection/utils/model/styles/SVGStyle.js +12 -4
- package/dist/collection/utils/parentDimensions.js +35 -3
- package/dist/collection/utils/queryError.js +11 -0
- package/dist/collection/utils/relativeVariance.js +14 -0
- package/dist/collection/utils/sanitizeHtml.js +30 -16
- package/dist/collection/utils/scaling.js +2 -2
- package/dist/collection/utils/stackColors.js +27 -5
- package/dist/collection/utils/stackLayout.js +71 -0
- package/dist/collection/utils/styled/attributes.js +16 -3
- package/dist/collection/utils/styled/style-sheet.js +1 -1
- package/dist/collection/utils/styled/withStyled.js +1 -1
- package/dist/collection/utils/testing/fakeGroup.js +21 -0
- package/dist/collection/utils/testing/mutationObserver.js +44 -0
- package/dist/collection/utils/testing/structureChart.js +26 -0
- package/dist/collection/utils/testing/timeChart.js +28 -0
- package/dist/collection/utils/validate.js +1 -1
- package/dist/collection/utils/withComponentStatus.js +137 -12
- package/dist/collection/utils/withInheritedProps.js +113 -64
- package/dist/collection/utils/withRuleSet.js +10 -7
- package/dist/collection/utils/withTranslation.js +3 -3
- package/dist/collection/utils/xy/FacetGrid.js +1 -1
- package/dist/collection/utils/xy/IsoCurves.js +1 -1
- package/dist/collection/utils/xy/NumericScale.js +46 -15
- package/dist/collection/utils/xy/PointLabeler.js +2 -2
- package/dist/collection/utils/xy/RadiusScale.js +2 -2
- package/dist/collection/utils/xy/SeriesPalette.js +3 -3
- package/dist/collection/utils/xy/VarianceMeasure.js +22 -4
- package/dist/collection/utils/xy/XYFrame.js +4 -4
- package/dist/collection/utils/xy/XYLegend.js +5 -7
- package/dist/collection/utils/xy/checkXYOverflow.js +32 -0
- package/dist/collection/utils/xy/formatXYValue.js +13 -0
- package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
- package/dist/collection/utils/xy/model/XYChartStyle.js +2 -0
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/DateStringFactory.js +1 -1
- package/dist/components/LabelCollisionManager.js +1 -1
- package/dist/components/NumericScale.js +1 -1
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGStyle.js +1 -0
- package/dist/components/TableAttribute.js +1 -0
- package/dist/components/VarianceMeasure.js +1 -1
- package/dist/components/XYChartDataRow.js +1 -1
- package/dist/components/bn-asset.js +1 -1
- package/dist/components/bn-body2.js +1 -1
- package/dist/components/bn-card2.js +1 -1
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-component-style.js +1 -1
- package/dist/components/bn-context.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-footer2.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-image.js +1 -1
- package/dist/components/bn-internationalization.js +1 -1
- package/dist/components/bn-layout-card.js +1 -1
- package/dist/components/bn-layout-page.js +1 -1
- package/dist/components/bn-message2.js +1 -1
- package/dist/components/bn-page2.js +1 -1
- package/dist/components/bn-ruleset.js +1 -1
- package/dist/components/bn-scaling-group.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-template.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/checkXYOverflow.js +1 -0
- package/dist/components/context-protocol.js +1 -1
- package/dist/components/editor-companion.js +1 -1
- package/dist/components/emptyState.js +1 -0
- package/dist/components/formatter.js +1 -1
- package/dist/components/ibcs-chart-bubble2.js +1 -1
- package/dist/components/ibcs-chart-bullet2.js +1 -1
- package/dist/components/ibcs-chart-scatter2.js +1 -1
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/layoutTemplate.js +1 -0
- package/dist/components/pageFormats.js +1 -0
- package/dist/components/parentDimensions.js +1 -0
- package/dist/components/queryError.js +1 -0
- package/dist/components/relativeVariance.js +1 -0
- package/dist/components/sanitizeHtml.js +1 -1
- package/dist/components/stackColors.js +1 -1
- package/dist/components/stackLayout.js +1 -0
- package/dist/components/svg.esm.js +1 -0
- package/dist/components/validate.js +1 -1
- package/dist/components/withBodyObserver.js +1 -1
- package/dist/components/withComponentStatus.js +1 -0
- package/dist/components/withComponentStyle.js +1 -1
- package/dist/components/withDataset.js +1 -1
- package/dist/components/withHasError.js +1 -1
- package/dist/components/withRuleSet.js +1 -1
- package/dist/components/withScalingGroup.js +1 -1
- package/dist/components/withStyled.js +1 -1
- package/dist/components/withTranslation.js +1 -1
- package/dist/esm/{bn-asset_21.entry.js → bn-asset_28.entry.js} +20948 -6125
- package/dist/esm/bn-grid.entry.js +4 -6
- package/dist/esm/bn-image.entry.js +3 -5
- package/dist/esm/bn-internationalization.entry.js +17 -6
- package/dist/esm/bn-ruleset.entry.js +5 -5
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-template.entry.js +2 -2
- package/dist/esm/bn-text.entry.js +111 -39
- package/dist/esm/{context-protocol-B-vdGKeG.js → context-protocol-CdTp19uA.js} +106 -22
- package/dist/esm/{diagnostics-CiquIw8B.js → diagnostics-vw6TKMiT.js} +1 -1
- package/dist/esm/editor-companion.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/queryError-ClruFZD_.js +13 -0
- package/dist/esm/{scaling-Dggyeqts.js → sanitizeHtml-C5bFtARM.js} +464 -287
- package/dist/esm/{withBodyObserver-Cb9ZC5_J.js → withBodyObserver-DD_-r04o.js} +1 -1
- package/dist/esm/withHasError-73WV2SP5.js +422 -0
- package/dist/esm/{withStyled-DoNsbwS3.js → withStyled-BDEyKd_H.js} +513 -27
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +8 -4
- package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +2 -1
- package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +14 -2
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +12 -11
- package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +2 -1
- package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +8 -5
- package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +2 -0
- package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +1 -1
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +8 -4
- package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +2 -1
- package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +11 -1
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +13 -12
- package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +8 -1
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +29 -6
- package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +4 -3
- package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +3 -2
- package/dist/types/components/bn-chart-structure/utils/model/StructureChartComponentConfig.d.ts +2 -1
- package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +2 -0
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +19 -15
- package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +8 -1
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +63 -5
- package/dist/types/components/bn-chart-time/utils/elements/AreaFill.d.ts +1 -1
- package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +9 -8
- package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +3 -2
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +3 -2
- package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +2 -0
- package/dist/types/components/bn-context/bn-context.d.ts +15 -3
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +41 -20
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +34 -18
- package/dist/types/components/bn-footer/bn-footer.d.ts +2 -2
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +3 -10
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +13 -6
- package/dist/types/components/bn-message/bn-message.d.ts +2 -1
- package/dist/types/components/bn-page/bn-page.d.ts +2 -1
- package/dist/types/components/bn-page/pageFormats.d.ts +40 -0
- package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +2 -2
- package/dist/types/components/bn-table/bn-table.d.ts +11 -10
- package/dist/types/components/bn-table/ibcs-table.d.ts +8 -5
- package/dist/types/components/bn-table/utils/Table.d.ts +3 -1
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -2
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +6 -4
- package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +1 -1
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +2 -0
- package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +14 -5
- package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +2 -2
- package/dist/types/components/bn-table/utils/helper/QueryGroup.d.ts +6 -1
- package/dist/types/components/bn-table/utils/helper/barColumnGeometry.d.ts +2 -2
- package/dist/types/components/bn-table/utils/model/TableAttribute.d.ts +2 -0
- package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +2 -1
- package/dist/types/components/bn-text/bn-text.d.ts +20 -13
- package/dist/types/components/bn-text/utils/template.d.ts +10 -0
- package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +1 -0
- package/dist/types/components/bn-tree/bn-tree.d.ts +8 -1
- package/dist/types/components/bn-tree/utils/EdgeRenderer.d.ts +18 -5
- package/dist/types/components/bn-tree/utils/TreeLayout.d.ts +5 -0
- package/dist/types/components.d.ts +226 -184
- package/dist/types/context/scopedDb.d.ts +20 -0
- package/dist/types/stores/componentStyles.d.ts +6 -0
- package/dist/types/utils/DateStringFactory.d.ts +3 -2
- package/dist/types/utils/autoFit.d.ts +2 -2
- package/dist/types/utils/componentRegister.d.ts +21 -5
- package/dist/types/utils/constants.d.ts +2 -2
- package/dist/types/utils/dataAnalyzer.d.ts +1 -1
- package/dist/types/utils/emptyState.d.ts +10 -0
- package/dist/types/utils/formatter.d.ts +7 -9
- package/dist/types/utils/layoutState/generic.d.ts +1 -1
- package/dist/types/utils/layoutState/svgChartElements.d.ts +2 -2
- package/dist/types/utils/layoutTemplate.d.ts +16 -0
- package/dist/types/utils/model/ChartStyles.d.ts +1 -1
- package/dist/types/utils/model/DataQueryResultRow.d.ts +2 -2
- package/dist/types/utils/model/Order.d.ts +1 -1
- package/dist/types/utils/model/styles/SVGStyle.d.ts +5 -1
- package/dist/types/utils/parentDimensions.d.ts +9 -0
- package/dist/types/utils/queryError.d.ts +5 -0
- package/dist/types/utils/relativeVariance.d.ts +9 -0
- package/dist/types/utils/sanitizeHtml.d.ts +2 -2
- package/dist/types/utils/scaling.d.ts +1 -1
- package/dist/types/utils/stackColors.d.ts +3 -2
- package/dist/types/utils/stackLayout.d.ts +49 -0
- package/dist/types/utils/testing/fakeGroup.d.ts +8 -0
- package/dist/types/utils/testing/mutationObserver.d.ts +5 -0
- package/dist/types/utils/testing/structureChart.d.ts +5 -0
- package/dist/types/utils/testing/timeChart.d.ts +5 -0
- package/dist/types/utils/validate.d.ts +1 -1
- package/dist/types/utils/withComponentStatus.d.ts +11 -3
- package/dist/types/utils/withInheritedProps.d.ts +42 -15
- package/dist/types/utils/withRuleSet.d.ts +2 -1
- package/dist/types/utils/withTranslation.d.ts +2 -2
- package/dist/types/utils/xy/FacetGrid.d.ts +1 -1
- package/dist/types/utils/xy/IsoCurves.d.ts +1 -1
- package/dist/types/utils/xy/NumericScale.d.ts +9 -4
- package/dist/types/utils/xy/PointLabeler.d.ts +2 -2
- package/dist/types/utils/xy/RadiusScale.d.ts +2 -2
- package/dist/types/utils/xy/SeriesPalette.d.ts +3 -3
- package/dist/types/utils/xy/VarianceMeasure.d.ts +10 -2
- package/dist/types/utils/xy/XYFrame.d.ts +4 -1
- package/dist/types/utils/xy/XYLegend.d.ts +3 -1
- package/dist/types/utils/xy/checkXYOverflow.d.ts +8 -0
- package/dist/types/utils/xy/formatXYValue.d.ts +7 -0
- package/dist/types/utils/xy/model/AxisConfig.d.ts +1 -1
- package/dist/types/utils/xy/model/XYChartStyle.d.ts +2 -0
- package/package.json +4 -2
- package/readme.md +11 -11
- package/dist/bn-template-engine/p-03304284.entry.js +0 -1
- package/dist/bn-template-engine/p-0fb02c57.entry.js +0 -1
- package/dist/bn-template-engine/p-4419db8f.entry.js +0 -1
- package/dist/bn-template-engine/p-45508f1b.entry.js +0 -1
- package/dist/bn-template-engine/p-461fdffa.entry.js +0 -1
- package/dist/bn-template-engine/p-5d7a3a77.entry.js +0 -1
- package/dist/bn-template-engine/p-62cc95b7.entry.js +0 -1
- package/dist/bn-template-engine/p-686d8e44.entry.js +0 -1
- package/dist/bn-template-engine/p-829212c3.entry.js +0 -1
- package/dist/bn-template-engine/p-B5Jd_eCX.js +0 -1
- package/dist/bn-template-engine/p-BA48JiHe.js +0 -1
- package/dist/bn-template-engine/p-BbmobTg0.js +0 -1
- package/dist/bn-template-engine/p-BcaI745G.js +0 -1
- package/dist/bn-template-engine/p-CG_Bcm6V.js +0 -1
- package/dist/bn-template-engine/p-CWWWM-XC.js +0 -1
- package/dist/bn-template-engine/p-CsJ84YRk.js +0 -1
- package/dist/bn-template-engine/p-D5e8I9Qe.js +0 -1
- package/dist/bn-template-engine/p-DVrDYxlh.js +0 -1
- package/dist/bn-template-engine/p-DjPXefnq.js +0 -1
- package/dist/bn-template-engine/p-DsTzlzxQ.js +0 -1
- package/dist/bn-template-engine/p-DtLI_CzV.js +0 -1
- package/dist/bn-template-engine/p-EtT29btN.js +0 -1
- package/dist/bn-template-engine/p-TuLpbB5O.js +0 -1
- package/dist/bn-template-engine/p-a5867a4c.entry.js +0 -1
- package/dist/bn-template-engine/p-b27009eb.entry.js +0 -1
- package/dist/bn-template-engine/p-bfa87b07.entry.js +0 -1
- package/dist/bn-template-engine/p-ceb80db3.entry.js +0 -1
- package/dist/bn-template-engine/p-fcfbb329.entry.js +0 -1
- package/dist/bn-template-engine/p-qRZrT-U3.js +0 -1
- package/dist/cjs/AxisConfig-DwiNUyYG.js +0 -233
- package/dist/cjs/LabelCollisionManager-Bv-xkeXw.js +0 -415
- package/dist/cjs/NumericScale-BAyYXpKL.js +0 -107
- package/dist/cjs/Order-2wRydarc.js +0 -87
- package/dist/cjs/SVGStyle-DoxylrEQ.js +0 -8219
- package/dist/cjs/SVGVariancesStyleGroup-CiI4GeWe.js +0 -50
- package/dist/cjs/VarianceMeasure-CQlSRzlp.js +0 -372
- package/dist/cjs/XYChartDataRow-C2FdL58s.js +0 -829
- package/dist/cjs/bn-chart-bubble.cjs.entry.js +0 -792
- package/dist/cjs/bn-chart-bullet.cjs.entry.js +0 -805
- package/dist/cjs/bn-chart-scatter.cjs.entry.js +0 -678
- package/dist/cjs/bn-tree.cjs.entry.js +0 -1042
- package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +0 -624
- package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +0 -673
- package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +0 -667
- package/dist/cjs/sanitizeHtml-LuZr1IMd.js +0 -85
- package/dist/cjs/svgChartElements-tDA43aYj.js +0 -400
- package/dist/cjs/withHasError-BdDmiOXM.js +0 -258
- package/dist/cjs/withScalingGroup-CFIc5-6s.js +0 -73
- package/dist/components/autoFit.js +0 -1
- package/dist/components/main.js +0 -1
- package/dist/components/utils.js +0 -1
- package/dist/esm/AxisConfig-KqzWQbML.js +0 -224
- package/dist/esm/LabelCollisionManager-585bQMtP.js +0 -407
- package/dist/esm/NumericScale-DsTzlzxQ.js +0 -105
- package/dist/esm/Order-DZVWjEL_.js +0 -83
- package/dist/esm/SVGStyle-OrPkzjcb.js +0 -8209
- package/dist/esm/SVGVariancesStyleGroup-DO5QJfRQ.js +0 -48
- package/dist/esm/VarianceMeasure-DDjChp8C.js +0 -364
- package/dist/esm/XYChartDataRow-Dn83Tqh9.js +0 -820
- package/dist/esm/bn-chart-bubble.entry.js +0 -790
- package/dist/esm/bn-chart-bullet.entry.js +0 -803
- package/dist/esm/bn-chart-scatter.entry.js +0 -676
- package/dist/esm/bn-tree.entry.js +0 -1040
- package/dist/esm/ibcs-chart-bubble.entry.js +0 -622
- package/dist/esm/ibcs-chart-bullet.entry.js +0 -671
- package/dist/esm/ibcs-chart-scatter.entry.js +0 -665
- package/dist/esm/sanitizeHtml-BA48JiHe.js +0 -83
- package/dist/esm/svgChartElements-B3YClivG.js +0 -395
- package/dist/esm/withHasError-Bh1Viz52.js +0 -254
- package/dist/esm/withScalingGroup-DNBSqRC0.js +0 -71
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
:host(.no-data) {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host(.no-data) > div {
|
|
9
|
+
float: none;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host(.no-data) .no-data ~ .no-data {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.empty-state {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
float: none;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
min-height: 3em;
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0.5em;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
border: 0.1em dashed #ddd;
|
|
31
|
+
color: #808080;
|
|
32
|
+
font-family: var(--bn-font-family, "Noto Sans", sans-serif);
|
|
33
|
+
font-size: var(--bn-font-size, 13.3333px);
|
|
34
|
+
font-style: normal;
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
:host {
|
|
2
39
|
display: inline-block;
|
|
3
40
|
position: relative;
|
|
@@ -5,4 +42,4 @@
|
|
|
5
42
|
font-family: var(--bn-font-family, "Noto Sans", sans-serif);
|
|
6
43
|
font-size: var(--bn-font-size, 13.3333px);
|
|
7
44
|
color: var(--bn-font-color, #000000);
|
|
8
|
-
}
|
|
45
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { forceUpdate, h, Host, writeTask } from "@stencil/core";
|
|
2
|
+
import { hasInlineJs } from "../../context/scopedDb";
|
|
2
3
|
import { isBlankInput, isTableBarColumnWidth, isTableCategoryWidth, isValidBoolean, isValidDataFormat, isValidDateFormat, isValidDirection, isValidInteger, isValidMeasureScale, isValidMeasureType, isValidTableType, validateAttributesJsonStr, validateBarColumnsList, validateColumnThereOfJsonStr, validateOrderList, validatePartOfJsonStr, validateScenarioList, validateThereOfJsonStr, validateVariancesList, } from "../../utils/validate";
|
|
3
4
|
import withDataset from "../../utils/withDataset";
|
|
4
5
|
import withComponentStatus from "../../utils/withComponentStatus";
|
|
@@ -19,6 +20,7 @@ import { INTERVAL_NONE, INTERVAL_SETNAME } from "./utils/helper/IntervalColumns"
|
|
|
19
20
|
import { parseTableAttributeExpression } from "./utils/model/TableAttribute";
|
|
20
21
|
import { OrderColumn, OrderDirection } from "../../utils/model/Order";
|
|
21
22
|
import { LAYOUT_STATE_VERSION, measure, originsFor, readDiagnostics, resolveStandaloneId, } from "../../utils/layoutState";
|
|
23
|
+
import { syncEmptyState } from "../../utils/emptyState";
|
|
22
24
|
/**
|
|
23
25
|
* Public-facing wrapper for the IBCS table component.
|
|
24
26
|
*
|
|
@@ -74,7 +76,7 @@ export class Table {
|
|
|
74
76
|
*/
|
|
75
77
|
this.measureUnit = "";
|
|
76
78
|
/**
|
|
77
|
-
* Set the total width of bar chart columns, in em of the table font
|
|
79
|
+
* Set the total width of bar chart columns, in em of the table font - the same
|
|
78
80
|
* unit and vocabulary as ```categoryWidth```, so ```bar-column-width="w15"```
|
|
79
81
|
* renders exactly as wide as ```category-width="w15"```. The bar/pin drawing
|
|
80
82
|
* area is that width minus the value-label gutters.
|
|
@@ -85,7 +87,7 @@ export class Table {
|
|
|
85
87
|
this.barColumnWidth = "w10";
|
|
86
88
|
/**
|
|
87
89
|
* Data units displayed per 1 em of bar length for absolute variance bar
|
|
88
|
-
* charts (ΔPY)
|
|
90
|
+
* charts (ΔPY) - map-scale semantics: a larger value means smaller bars.
|
|
89
91
|
* Bars exceeding barColumnWidth are shown with an arrow indicator.
|
|
90
92
|
*
|
|
91
93
|
* | Value | Behavior |
|
|
@@ -103,7 +105,7 @@ export class Table {
|
|
|
103
105
|
this.unitScaling = "100";
|
|
104
106
|
/**
|
|
105
107
|
* Percentage points displayed per 1 em of pin length for relative variance
|
|
106
|
-
* pin charts (ΔPY%)
|
|
108
|
+
* pin charts (ΔPY%) - a larger value means shorter pins.
|
|
107
109
|
*
|
|
108
110
|
* | Value | Behavior |
|
|
109
111
|
* |------------------|----------------------------------------------------------------|
|
|
@@ -302,7 +304,7 @@ export class Table {
|
|
|
302
304
|
* <br /><br />
|
|
303
305
|
* ```none``` (default) deactivates the feature. ```setname``` groups by the
|
|
304
306
|
* dataset's `setname` column (non-date comparison); rows with a blank setname
|
|
305
|
-
* raise a warning and are grouped under
|
|
307
|
+
* raise a warning and are grouped under `-`. Date values bucket rows by the
|
|
306
308
|
* `date` column; ```auto``` detects the granularity from the date span.
|
|
307
309
|
* Cannot be combined with `columnthereof`.
|
|
308
310
|
*/
|
|
@@ -329,7 +331,7 @@ export class Table {
|
|
|
329
331
|
*/
|
|
330
332
|
this.handleAutoScalingReport = (report) => {
|
|
331
333
|
var _a, _b, _c, _d;
|
|
332
|
-
// A report only carries the auto-resolved quantities
|
|
334
|
+
// A report only carries the auto-resolved quantities - keep the other one.
|
|
333
335
|
this.lastAutoScalingReport = {
|
|
334
336
|
unit: (_a = report.unit) !== null && _a !== void 0 ? _a : (_b = this.lastAutoScalingReport) === null || _b === void 0 ? void 0 : _b.unit,
|
|
335
337
|
percentage: (_c = report.percentage) !== null && _c !== void 0 ? _c : (_d = this.lastAutoScalingReport) === null || _d === void 0 ? void 0 : _d.percentage,
|
|
@@ -342,7 +344,7 @@ export class Table {
|
|
|
342
344
|
this.errors.addOrReplace({
|
|
343
345
|
id: "AUTO_unitScaling",
|
|
344
346
|
type: "warning",
|
|
345
|
-
message: `unit-scaling: invalid value "${this.unitScaling}"
|
|
347
|
+
message: `unit-scaling: invalid value "${this.unitScaling}" - auto-fitted to 1 em ≈ ${formatScalingValue(unitsPerEm)} units.`,
|
|
346
348
|
});
|
|
347
349
|
}
|
|
348
350
|
}
|
|
@@ -353,7 +355,7 @@ export class Table {
|
|
|
353
355
|
this.errors.addOrReplace({
|
|
354
356
|
id: "AUTO_percentageScaling",
|
|
355
357
|
type: "warning",
|
|
356
|
-
message: `percentage-scaling: invalid value "${this.percentageScaling}"
|
|
358
|
+
message: `percentage-scaling: invalid value "${this.percentageScaling}" - auto-fitted to 1 em ≈ ${formatScalingValue(ppPerEm)} percentage points.`,
|
|
357
359
|
});
|
|
358
360
|
}
|
|
359
361
|
}
|
|
@@ -381,7 +383,20 @@ export class Table {
|
|
|
381
383
|
{ propName: "variances", ancestorAttr: "title-variances" },
|
|
382
384
|
{ propName: "order", ancestorAttr: "title-order" },
|
|
383
385
|
{ propName: "orderDirection", ancestorAttr: "title-order-direction" },
|
|
384
|
-
]);
|
|
386
|
+
], this.errors);
|
|
387
|
+
}
|
|
388
|
+
validateFilter(newValue) {
|
|
389
|
+
const errId = "ERR_filter";
|
|
390
|
+
if (hasInlineJs(newValue)) {
|
|
391
|
+
this.errors.addOrReplace({
|
|
392
|
+
id: errId,
|
|
393
|
+
type: "error",
|
|
394
|
+
message: "filter: double backticks are not allowed.",
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
this.errors.remove(errId);
|
|
399
|
+
}
|
|
385
400
|
}
|
|
386
401
|
validateScenario(newValue) {
|
|
387
402
|
const errId = "ERR_scenarios";
|
|
@@ -503,7 +518,7 @@ export class Table {
|
|
|
503
518
|
}
|
|
504
519
|
}
|
|
505
520
|
validateShowMeasureScale(newValue) {
|
|
506
|
-
const errId = "
|
|
521
|
+
const errId = "ERR_showMeasureScale";
|
|
507
522
|
if (!isValidBoolean(newValue)) {
|
|
508
523
|
this.errors.addOrReplace({
|
|
509
524
|
id: errId,
|
|
@@ -725,6 +740,7 @@ export class Table {
|
|
|
725
740
|
}
|
|
726
741
|
}
|
|
727
742
|
componentWillLoad() {
|
|
743
|
+
this.validateFilter(this.filter);
|
|
728
744
|
this.validateScenario(this.scenarios);
|
|
729
745
|
this.validateVariances(this.variances);
|
|
730
746
|
this.validateDataFormat(this.dataFormat);
|
|
@@ -758,7 +774,7 @@ export class Table {
|
|
|
758
774
|
if (this._autoScaleGuard)
|
|
759
775
|
return;
|
|
760
776
|
const { width } = getParentDimensions(this.element);
|
|
761
|
-
// Only react to WIDTH changes
|
|
777
|
+
// Only react to WIDTH changes - table scales by width.
|
|
762
778
|
// Height changes (e.g. from page-fit-to-content auto grid rows)
|
|
763
779
|
// are irrelevant and would cause an infinite render loop.
|
|
764
780
|
if (width > 0 && Math.abs(width - this._lastScaledParentWidth) > 2) {
|
|
@@ -773,6 +789,7 @@ export class Table {
|
|
|
773
789
|
this.layoutObserver = null;
|
|
774
790
|
}
|
|
775
791
|
componentDidRender() {
|
|
792
|
+
syncEmptyState(this.element, "ibcs-table");
|
|
776
793
|
const { mode } = parseScaling(this.scale);
|
|
777
794
|
// Only auto-scale for 'auto' and 'empty' (blank) modes
|
|
778
795
|
if (mode !== "auto" && mode !== "empty") {
|
|
@@ -796,7 +813,7 @@ export class Table {
|
|
|
796
813
|
const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
797
814
|
const currentWidth = host.scrollWidth;
|
|
798
815
|
const currentFactor = this.appliedScaleFactor;
|
|
799
|
-
// Content fits at current factor
|
|
816
|
+
// Content fits at current factor - done. Don't estimate unscaled width
|
|
800
817
|
// and reset to factor 1; that estimate is approximate due to pixel
|
|
801
818
|
// rounding and causes oscillation (reset → overflow → scale → reset).
|
|
802
819
|
if (currentWidth <= parentWidth + 1) {
|
|
@@ -841,7 +858,7 @@ export class Table {
|
|
|
841
858
|
* Reports a WARN_overflow item when the rendered table exceeds its
|
|
842
859
|
* container. The table only auto-fits its WIDTH, so nothing prevents it
|
|
843
860
|
* from growing taller than the layout cell, which clips the bottom rows
|
|
844
|
-
* (grand total included) without a trace
|
|
861
|
+
* (grand total included) without a trace - this item is the only signal.
|
|
845
862
|
* Overflow under a fixed `scale` is an error: the author pinned the size.
|
|
846
863
|
* In auto mode it is a warning.
|
|
847
864
|
*/
|
|
@@ -891,20 +908,31 @@ export class Table {
|
|
|
891
908
|
if (this.thereof == null || this.thereof.trim() === "") {
|
|
892
909
|
return [];
|
|
893
910
|
}
|
|
894
|
-
|
|
911
|
+
try {
|
|
912
|
+
return JSON.parse(this.thereof);
|
|
913
|
+
}
|
|
914
|
+
catch (_e) {
|
|
915
|
+
// invalid JSON already reported by validateThereOf
|
|
916
|
+
return [];
|
|
917
|
+
}
|
|
895
918
|
}
|
|
896
919
|
preparePartOf() {
|
|
897
920
|
if (this.partof == null || this.partof.trim() === "") {
|
|
898
921
|
return [];
|
|
899
922
|
}
|
|
900
|
-
|
|
923
|
+
try {
|
|
924
|
+
return JSON.parse(this.partof);
|
|
925
|
+
}
|
|
926
|
+
catch (_e) {
|
|
927
|
+
// invalid JSON already reported by validatePartOf
|
|
928
|
+
return [];
|
|
929
|
+
}
|
|
901
930
|
}
|
|
902
931
|
prepareOrder() {
|
|
903
932
|
var _a;
|
|
904
|
-
|
|
905
|
-
const
|
|
906
|
-
const
|
|
907
|
-
const effectiveDirection = inheritedDirection !== null && inheritedDirection !== void 0 ? inheritedDirection : this.orderDirection;
|
|
933
|
+
// An unresolved keyword falls back to the prop defaults.
|
|
934
|
+
const effectiveOrder = this.resolveInherited("order", this.order, "category").value;
|
|
935
|
+
const effectiveDirection = this.resolveInherited("orderDirection", this.orderDirection, "asc").value;
|
|
908
936
|
const isAuto = (effectiveOrder === null || effectiveOrder === void 0 ? void 0 : effectiveOrder.trim().toLowerCase()) === "auto";
|
|
909
937
|
let orderStr = effectiveOrder;
|
|
910
938
|
if (isAuto && ((_a = this.datasetMeta) === null || _a === void 0 ? void 0 : _a.suggestedOrder)) {
|
|
@@ -935,30 +963,30 @@ export class Table {
|
|
|
935
963
|
return formatDigits;
|
|
936
964
|
}
|
|
937
965
|
prepareScenarios() {
|
|
938
|
-
var _a, _b, _c, _d, _f, _g, _h, _j, _k;
|
|
939
|
-
const
|
|
940
|
-
const
|
|
941
|
-
if (
|
|
966
|
+
var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m;
|
|
967
|
+
const scenariosProp = this.resolveInherited("scenarios", this.scenarios);
|
|
968
|
+
const variancesProp = this.resolveInherited("variances", this.variances);
|
|
969
|
+
if (scenariosProp.inherited || variancesProp.inherited) {
|
|
942
970
|
this.errors.remove("AUTO_scenarios");
|
|
943
971
|
let scenarios = [];
|
|
944
|
-
if (
|
|
945
|
-
scenarios = scenarios.concat(
|
|
972
|
+
if (!isBlankInput(scenariosProp.value)) {
|
|
973
|
+
scenarios = scenarios.concat(scenariosProp.value.split(","));
|
|
946
974
|
}
|
|
947
|
-
else if (
|
|
948
|
-
|
|
975
|
+
else if (scenariosProp.unresolved) {
|
|
976
|
+
// Inherited variances do not take the fallback away from an unresolved scenarios keyword.
|
|
977
|
+
scenarios = scenarios.concat((_b = (_a = this.datasetMeta) === null || _a === void 0 ? void 0 : _a.availableScenarios) !== null && _b !== void 0 ? _b : []);
|
|
949
978
|
}
|
|
950
|
-
if (
|
|
951
|
-
scenarios = scenarios.concat(
|
|
952
|
-
}
|
|
953
|
-
else if (((_a = this.variances) === null || _a === void 0 ? void 0 : _a.trim().length) > 0) {
|
|
954
|
-
scenarios = scenarios.concat(this.variances.split(","));
|
|
979
|
+
if (((_c = variancesProp.value) === null || _c === void 0 ? void 0 : _c.trim().length) > 0) {
|
|
980
|
+
scenarios = scenarios.concat(variancesProp.value.split(","));
|
|
955
981
|
}
|
|
956
982
|
return scenarios.map((entry) => entry.trim());
|
|
957
983
|
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
984
|
+
// An unresolved keyword has its own warning, so it gets no AUTO_scenarios on top.
|
|
985
|
+
const isAuto = ((_d = scenariosProp.value) === null || _d === void 0 ? void 0 : _d.trim().toLowerCase()) === "auto";
|
|
986
|
+
const isSilent = isAuto || scenariosProp.unresolved;
|
|
987
|
+
if ((isBlankInput(scenariosProp.value) || isAuto) && isBlankInput(variancesProp.value)) {
|
|
988
|
+
if (((_g = (_f = this.datasetMeta) === null || _f === void 0 ? void 0 : _f.availableScenarios) === null || _g === void 0 ? void 0 : _g.length) > 0) {
|
|
989
|
+
if (!isSilent) {
|
|
962
990
|
this.errors.addOrReplace({
|
|
963
991
|
id: "AUTO_scenarios",
|
|
964
992
|
type: "warning",
|
|
@@ -973,9 +1001,9 @@ export class Table {
|
|
|
973
1001
|
return [];
|
|
974
1002
|
}
|
|
975
1003
|
let scenarios = [];
|
|
976
|
-
if (isAuto || isBlankInput(
|
|
977
|
-
if (((
|
|
978
|
-
if (!
|
|
1004
|
+
if (isAuto || isBlankInput(scenariosProp.value)) {
|
|
1005
|
+
if (((_j = (_h = this.datasetMeta) === null || _h === void 0 ? void 0 : _h.availableScenarios) === null || _j === void 0 ? void 0 : _j.length) > 0) {
|
|
1006
|
+
if (!isSilent) {
|
|
979
1007
|
this.errors.addOrReplace({
|
|
980
1008
|
id: "AUTO_scenarios",
|
|
981
1009
|
type: "warning",
|
|
@@ -990,10 +1018,10 @@ export class Table {
|
|
|
990
1018
|
}
|
|
991
1019
|
else {
|
|
992
1020
|
this.errors.remove("AUTO_scenarios");
|
|
993
|
-
scenarios = scenarios.concat((
|
|
1021
|
+
scenarios = scenarios.concat((_k = scenariosProp.value) === null || _k === void 0 ? void 0 : _k.split(","));
|
|
994
1022
|
}
|
|
995
|
-
if (((
|
|
996
|
-
scenarios = scenarios.concat((
|
|
1023
|
+
if (((_l = variancesProp.value) === null || _l === void 0 ? void 0 : _l.trim().length) > 0) {
|
|
1024
|
+
scenarios = scenarios.concat((_m = variancesProp.value) === null || _m === void 0 ? void 0 : _m.split(","));
|
|
997
1025
|
}
|
|
998
1026
|
return scenarios.map((entry) => entry.trim());
|
|
999
1027
|
}
|
|
@@ -1027,13 +1055,19 @@ export class Table {
|
|
|
1027
1055
|
if (this.columnthereof == null || this.columnthereof.trim() === "") {
|
|
1028
1056
|
return new Map();
|
|
1029
1057
|
}
|
|
1030
|
-
const parsedString = JSON.parse(this.columnthereof);
|
|
1031
1058
|
const map = new Map();
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1059
|
+
try {
|
|
1060
|
+
const parsedString = JSON.parse(this.columnthereof);
|
|
1061
|
+
for (const [_key, value] of Object.entries(parsedString)) {
|
|
1062
|
+
if (map.has(value["scenario"]) === false) {
|
|
1063
|
+
map.set(value["scenario"], []);
|
|
1064
|
+
}
|
|
1065
|
+
map.get(value["scenario"]).push(value);
|
|
1035
1066
|
}
|
|
1036
|
-
|
|
1067
|
+
}
|
|
1068
|
+
catch (_e) {
|
|
1069
|
+
// invalid JSON already reported by validateColumnThereOf
|
|
1070
|
+
return new Map();
|
|
1037
1071
|
}
|
|
1038
1072
|
return map;
|
|
1039
1073
|
}
|
|
@@ -1067,7 +1101,7 @@ export class Table {
|
|
|
1067
1101
|
this.errors.addOrReplace({
|
|
1068
1102
|
id: setnameErrId,
|
|
1069
1103
|
type: "warning",
|
|
1070
|
-
message: "interval: rows with blank setname found, they are grouped under '
|
|
1104
|
+
message: "interval: rows with blank setname found, they are grouped under '-'.",
|
|
1071
1105
|
});
|
|
1072
1106
|
}
|
|
1073
1107
|
else {
|
|
@@ -1161,7 +1195,7 @@ export class Table {
|
|
|
1161
1195
|
this.errors.addOrReplace({
|
|
1162
1196
|
id: "AUTO_unitScaling",
|
|
1163
1197
|
type: "warning",
|
|
1164
|
-
message: `unit-scaling: invalid value "${resolved.raw}"
|
|
1198
|
+
message: `unit-scaling: invalid value "${resolved.raw}" - auto-fitting to the bar column width.`,
|
|
1165
1199
|
});
|
|
1166
1200
|
return 0;
|
|
1167
1201
|
}
|
|
@@ -1184,7 +1218,7 @@ export class Table {
|
|
|
1184
1218
|
this.errors.addOrReplace({
|
|
1185
1219
|
id: "AUTO_percentageScaling",
|
|
1186
1220
|
type: "warning",
|
|
1187
|
-
message: `percentage-scaling: invalid value "${resolved.raw}"
|
|
1221
|
+
message: `percentage-scaling: invalid value "${resolved.raw}" - auto-fitting to the pin area.`,
|
|
1188
1222
|
});
|
|
1189
1223
|
return 0;
|
|
1190
1224
|
}
|
|
@@ -1238,7 +1272,7 @@ export class Table {
|
|
|
1238
1272
|
const detail = (_a = options === null || options === void 0 ? void 0 : options.detail) !== null && _a !== void 0 ? _a : "summary";
|
|
1239
1273
|
const origins = originsFor(this.element);
|
|
1240
1274
|
const rawFactor = this.getEffectiveScaleFactor();
|
|
1241
|
-
// Auto-scale can be mid-measurement (or unmeasurable in tests)
|
|
1275
|
+
// Auto-scale can be mid-measurement (or unmeasurable in tests) - report a sane factor.
|
|
1242
1276
|
const effectiveFactor = Number.isFinite(rawFactor) && rawFactor > 0 ? rawFactor : 1;
|
|
1243
1277
|
const fontSizePx = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; }) * effectiveFactor;
|
|
1244
1278
|
const state = {
|
|
@@ -1334,13 +1368,13 @@ export class Table {
|
|
|
1334
1368
|
render() {
|
|
1335
1369
|
const fontStyles = this.getFontStyles();
|
|
1336
1370
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
1337
|
-
return (h(Host, { key: '
|
|
1371
|
+
return (h(Host, { key: 'ba76b60711ca2b8fb83226d3473aefdc394036f8', style: fontStyles }, h("div", { key: '425f6a33db9d0baffd4edcffe4a986b4e114886c' }, h("ibcs-table", { key: '4b7c445d24314f515a1432e88f54ec4b52bd76d2', tableName: this.datasetName, dataVersion: this.dataVersion, sumTitle: this.prepareSumTitle(), scenarios: this.prepareScenarios(), scenariosDataFormat: this.prepareDataFormat(), grouped: this.prepareGrouped(), limit: this.prepareLimit(), showGroupTitle: this.prepareShowGroupTitle(), thereof: this.prepareThereOf(), partof: this.preparePartOf(), order: this.prepareOrder(), categorythereof: this.prepareColumnThereOf(), attributeColumns: this.prepareAttributes(), type: this.prepareTableType(), categoryWidth: this.prepareCategoryWidth(), dataFormatDigits: this.prepareDataFormatDigits(), i18n: this.prepareI18n(), i18nMode: this.prepareI18nMode(), measureScale: this.prepareMeasureScale(), measureType: this.prepareMeasureType(), measureUnit: this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(), filter: this.prepareFilter(), barColumns: this.prepareBarColumns(), interval: this.prepareInterval(), barColumnMaxWidth: this.prepareBarColumnWidth(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), reportAutoScaling: this.handleAutoScalingReport, errors: this.errors, scaleFactor: effectiveFactor, ruleSetConfig: this.ruleSetConfig(), selectedStyle: this.selectedStyle }))));
|
|
1338
1372
|
}
|
|
1339
1373
|
static get is() { return "bn-table"; }
|
|
1340
1374
|
static get encapsulation() { return "shadow"; }
|
|
1341
1375
|
static get originalStyleUrls() {
|
|
1342
1376
|
return {
|
|
1343
|
-
"$": ["bn-table.
|
|
1377
|
+
"$": ["bn-table.scss"]
|
|
1344
1378
|
};
|
|
1345
1379
|
}
|
|
1346
1380
|
static get styleUrls() {
|
|
@@ -1363,9 +1397,9 @@ export class Table {
|
|
|
1363
1397
|
"docs": {
|
|
1364
1398
|
"tags": [{
|
|
1365
1399
|
"name": "example",
|
|
1366
|
-
"text": "// Auto-scale to parent (silent)\n<bn-table scale=\"auto\" ...></bn-table>\n\n// Fixed 50 % reduction\n<bn-table scale=\"0.5\" ...></bn-table>\n\n// Double size\n<bn-table scale=\"2\" ...></bn-table>\n\n// No scaling
|
|
1400
|
+
"text": "// Auto-scale to parent (silent)\n<bn-table scale=\"auto\" ...></bn-table>\n\n// Fixed 50 % reduction\n<bn-table scale=\"0.5\" ...></bn-table>\n\n// Double size\n<bn-table scale=\"2\" ...></bn-table>\n\n// No scaling - always render at base font size\n<bn-table scale=\"none\" ...></bn-table>"
|
|
1367
1401
|
}],
|
|
1368
|
-
"text": "Controls proportional scaling of the entire table relative to the\navailable parent width. All visual dimensions scale together: font size,\nem-based spacing/padding, SVG bar-chart widths, pin lengths, dot radii,\npattern fills, axis strokes, and label offsets.\n\nScaling is driven by a single factor applied to the base font size\n(`global.fontSizePx` from the component-style store, default 13.3333 px).\nBecause the table's SCSS uses `em` units for padding, borders, and\ncolumn widths, changing the font size cascades to all layout dimensions.\nSVG elements (bars, pins, patterns) receive the factor via the\n`scaleFactor` prop on `ibcs-table` and multiply every pixel constant\nby it, so they stay proportional to the surrounding text.\n\n| Value | Behavior |\n|---------------------|----------------------------------------------------------------------------------|\n| not set / `\"\"` | Auto-scale to fit parent width; emit `AUTO_scale` warning with the applied factor |\n| `\"none\"` | No scaling (render at base font size regardless of available space) |\n| `\"auto\"` | Auto-scale to fit parent width silently (no warning) |\n| `\"0.5\"`, `\"1.2\"`, \u2026 | Fixed factor
|
|
1402
|
+
"text": "Controls proportional scaling of the entire table relative to the\navailable parent width. All visual dimensions scale together: font size,\nem-based spacing/padding, SVG bar-chart widths, pin lengths, dot radii,\npattern fills, axis strokes, and label offsets.\n\nScaling is driven by a single factor applied to the base font size\n(`global.fontSizePx` from the component-style store, default 13.3333 px).\nBecause the table's SCSS uses `em` units for padding, borders, and\ncolumn widths, changing the font size cascades to all layout dimensions.\nSVG elements (bars, pins, patterns) receive the factor via the\n`scaleFactor` prop on `ibcs-table` and multiply every pixel constant\nby it, so they stay proportional to the surrounding text.\n\n| Value | Behavior |\n|---------------------|----------------------------------------------------------------------------------|\n| not set / `\"\"` | Auto-scale to fit parent width; emit `AUTO_scale` warning with the applied factor |\n| `\"none\"` | No scaling (render at base font size regardless of available space) |\n| `\"auto\"` | Auto-scale to fit parent width silently (no warning) |\n| `\"0.5\"`, `\"1.2\"`, \u2026 | Fixed factor - apply `baseFontSize \u00D7 factor` |\n\n**Auto-scale algorithm** (modes `\"\"` and `\"auto\"`):\n1. After each render, the current `scrollWidth` of the host element is\n divided by the current `appliedScaleFactor` to derive the unscaled\n content width. This avoids resetting `--bn-font-size` to base (which\n would only affect em-based widths but not SVG pixel attributes).\n2. This unscaled width is compared against the parent's content-box\n width (via `getParentDimensions`).\n3. If the table overflows, `factor = parentWidth / unscaledWidth`\n is computed and applied to both the CSS variable and the\n `appliedScaleFactor` state (which re-renders the SVG charts).\n4. A guard flag (`_autoScaleGuard`) prevents the subsequent\n state-triggered re-render from re-measuring, avoiding an infinite\n measure \u2192 scale \u2192 fits \u2192 reset \u2192 overflow loop.\n\nInvalid values (negative numbers, non-numeric strings that are not\n`\"none\"` or `\"auto\"`) fall back to the default behaviour (auto + warning)\nand emit an `ERR_scale` warning.\n\n**Only the width is fitted.** A table that renders taller than its\nconstrained parent is clipped by the layout cell - bottom rows and the\ngrand total simply disappear - so every render reports the measured\noverflow as a `WARN_overflow` item in `has-error`: an `error` when the\nsize is pinned by `scale` (`\"none\"` or a factor), a `warning` in auto\nmode. The same item reports a width overflow, which only a fixed `scale`\ncan produce. Setting `scale=\"auto\"` does not fix a height overflow: give\nthe component more space, reduce rows (`limit`), or set a smaller fixed\n`scale`."
|
|
1369
1403
|
},
|
|
1370
1404
|
"getter": false,
|
|
1371
1405
|
"setter": false,
|
|
@@ -1520,7 +1554,7 @@ export class Table {
|
|
|
1520
1554
|
"optional": false,
|
|
1521
1555
|
"docs": {
|
|
1522
1556
|
"tags": [],
|
|
1523
|
-
"text": "List of column names to render as bar charts instead of numbers.\n<br /><br />\nAbsolute variances (d_*) render as horizontal bar charts.\nRelative variances (dr_*) render as pin/dot charts.\nScenario columns (ac1..pl4) render as horizontal bar charts; when the table\ncontains grouping structure (sum rows, thereof, or partof) they automatically\nrender as an IBCS waterfall
|
|
1557
|
+
"text": "List of column names to render as bar charts instead of numbers.\n<br /><br />\nAbsolute variances (d_*) render as horizontal bar charts.\nRelative variances (dr_*) render as pin/dot charts.\nScenario columns (ac1..pl4) render as horizontal bar charts; when the table\ncontains grouping structure (sum rows, thereof, or partof) they automatically\nrender as an IBCS waterfall - data rows cascade from the running total and\nsum rows anchor at zero. Waterfall columns auto-scale to fit the bar column\nwidth (unit-scaling does not apply) and are not supported in combination\nwith `interval` or `columnthereof`.\n<br /><br />\nexample:<br />\n```dac1_pp1_pos,drac1_pp1_pos,ac1```"
|
|
1524
1558
|
},
|
|
1525
1559
|
"getter": false,
|
|
1526
1560
|
"setter": false,
|
|
@@ -1539,7 +1573,7 @@ export class Table {
|
|
|
1539
1573
|
"optional": false,
|
|
1540
1574
|
"docs": {
|
|
1541
1575
|
"tags": [],
|
|
1542
|
-
"text": "Set the total width of bar chart columns, in em of the table font
|
|
1576
|
+
"text": "Set the total width of bar chart columns, in em of the table font - the same\nunit and vocabulary as ```categoryWidth```, so ```bar-column-width=\"w15\"```\nrenders exactly as wide as ```category-width=\"w15\"```. The bar/pin drawing\narea is that width minus the value-label gutters.\n<br /><br />\nvalues:<br />\n``` w5 // w10 // w15 // w20 // w25 // w30 // w40 // w60 // w80 // w100 ```"
|
|
1543
1577
|
},
|
|
1544
1578
|
"getter": false,
|
|
1545
1579
|
"setter": false,
|
|
@@ -1565,7 +1599,7 @@ export class Table {
|
|
|
1565
1599
|
"name": "example",
|
|
1566
1600
|
"text": "unit-scaling=\"revenue-scale\""
|
|
1567
1601
|
}],
|
|
1568
|
-
"text": "Data units displayed per 1 em of bar length for absolute variance bar\ncharts (\u0394PY)
|
|
1602
|
+
"text": "Data units displayed per 1 em of bar length for absolute variance bar\ncharts (\u0394PY) - map-scale semantics: a larger value means smaller bars.\nBars exceeding barColumnWidth are shown with an arrow indicator.\n\n| Value | Behavior |\n|------------------|----------------------------------------------------------------|\n| `\"auto\"` | Auto-fit the largest bar to the bar column width |\n| `\"250000\"`, `\"1M\"` | Units per em; optional SI suffix `k`/`K`/`M`/`G`/`T` |\n| group name | References a `<bn-scaling-group>` for synchronized scaling |\n| invalid / unknown | Auto-fit + `AUTO_unitScaling` warning |\n\nDefault: `\"100\"` (1 em of bar represents 100 units)"
|
|
1569
1603
|
},
|
|
1570
1604
|
"getter": false,
|
|
1571
1605
|
"setter": false,
|
|
@@ -1591,7 +1625,7 @@ export class Table {
|
|
|
1591
1625
|
"name": "example",
|
|
1592
1626
|
"text": "percentage-scaling=\"pct-scale\""
|
|
1593
1627
|
}],
|
|
1594
|
-
"text": "Percentage points displayed per 1 em of pin length for relative variance\npin charts (\u0394PY%)
|
|
1628
|
+
"text": "Percentage points displayed per 1 em of pin length for relative variance\npin charts (\u0394PY%) - a larger value means shorter pins.\n\n| Value | Behavior |\n|------------------|----------------------------------------------------------------|\n| `\"auto\"` | Auto-fit the largest pin to the pin area |\n| `\"10\"`, `\"2.5\"` | Percentage points per em; optional SI suffix `k`/`K`/`M`/`G`/`T` |\n| group name | References a `<bn-scaling-group>` for synchronized scaling |\n| invalid / unknown | Auto-fit + `AUTO_percentageScaling` warning |\n\nDefault: `\"2\"` (a +2 % variance pin is 1 em long)"
|
|
1595
1629
|
},
|
|
1596
1630
|
"getter": false,
|
|
1597
1631
|
"setter": false,
|
|
@@ -1931,7 +1965,7 @@ export class Table {
|
|
|
1931
1965
|
"optional": false,
|
|
1932
1966
|
"docs": {
|
|
1933
1967
|
"tags": [],
|
|
1934
|
-
"text": "Repeats the entire scenario/variance column block once per interval group,\nrendered under a spanning header band (e.g. `2023 | 2024 | 2025`, each with\nthe configured columns).\n<br /><br />\nvalues:<br /> ```none // setname // year // quarter // month // week // day // hour // minute // second // millisecond // auto```\n<br /><br />\n```none``` (default) deactivates the feature. ```setname``` groups by the\ndataset's `setname` column (non-date comparison); rows with a blank setname\nraise a warning and are grouped under
|
|
1968
|
+
"text": "Repeats the entire scenario/variance column block once per interval group,\nrendered under a spanning header band (e.g. `2023 | 2024 | 2025`, each with\nthe configured columns).\n<br /><br />\nvalues:<br /> ```none // setname // year // quarter // month // week // day // hour // minute // second // millisecond // auto```\n<br /><br />\n```none``` (default) deactivates the feature. ```setname``` groups by the\ndataset's `setname` column (non-date comparison); rows with a blank setname\nraise a warning and are grouped under `-`. Date values bucket rows by the\n`date` column; ```auto``` detects the granularity from the date span.\nCannot be combined with `columnthereof`."
|
|
1935
1969
|
},
|
|
1936
1970
|
"getter": false,
|
|
1937
1971
|
"setter": false,
|
|
@@ -2021,6 +2055,9 @@ export class Table {
|
|
|
2021
2055
|
return [{
|
|
2022
2056
|
"propName": "scale",
|
|
2023
2057
|
"methodName": "validateScaling"
|
|
2058
|
+
}, {
|
|
2059
|
+
"propName": "filter",
|
|
2060
|
+
"methodName": "validateFilter"
|
|
2024
2061
|
}, {
|
|
2025
2062
|
"propName": "scenarios",
|
|
2026
2063
|
"methodName": "validateScenario"
|
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
:host(.no-data) {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host(.no-data) > div {
|
|
9
|
+
float: none;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host(.no-data) .no-data ~ .no-data {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.empty-state {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
float: none;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
min-height: 3em;
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0.5em;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
border: 0.1em dashed #ddd;
|
|
31
|
+
color: #808080;
|
|
32
|
+
font-family: var(--bn-font-family, "Noto Sans", sans-serif);
|
|
33
|
+
font-size: var(--bn-font-size, 13.3333px);
|
|
34
|
+
font-style: normal;
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
:host {
|
|
2
39
|
position: relative;
|
|
3
40
|
display: inline-block;
|
|
@@ -194,7 +231,8 @@ td.percent {
|
|
|
194
231
|
text-align: right;
|
|
195
232
|
}
|
|
196
233
|
|
|
197
|
-
td.decimal
|
|
234
|
+
td.decimal,
|
|
235
|
+
td.percentpoint {
|
|
198
236
|
text-align: right;
|
|
199
237
|
}
|
|
200
238
|
|