@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
|
@@ -20,6 +20,20 @@ export type AlaSQLDatabase = InstanceType<typeof alasql.Database>;
|
|
|
20
20
|
* alasql doesn't have to ingest a fresh table on every call.
|
|
21
21
|
*/
|
|
22
22
|
export declare function buildFromExpr(tableName: string, filter?: string | null): string;
|
|
23
|
+
/**
|
|
24
|
+
* True when `name` is registered as a table or a view. A query on a name that
|
|
25
|
+
* is not registered yet means "no data so far". A failing query on a
|
|
26
|
+
* registered name is an error.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isRegistered(db: AlaSQLDatabase, name: string): boolean;
|
|
29
|
+
/** {@link buildFromExpr} for a registered source, `""` otherwise. The query helpers read `""` as "no data". */
|
|
30
|
+
export declare function sourceExpr(db: AlaSQLDatabase, tableName: string, filter?: string | null): string;
|
|
31
|
+
/**
|
|
32
|
+
* True when alasql would find a double backtick in `sql`: it runs the text
|
|
33
|
+
* between double backticks as JavaScript. alasql strips comments before it
|
|
34
|
+
* reads the text, so two backticks with only a comment between them count too.
|
|
35
|
+
*/
|
|
36
|
+
export declare function hasInlineJs(sql?: string | null): boolean;
|
|
23
37
|
/** Pub/sub-enabled wrapper around an isolated alasql database. */
|
|
24
38
|
export interface ScopedDb {
|
|
25
39
|
/** The underlying alasql database. Use it directly for `db.exec(...)` queries. */
|
|
@@ -32,6 +46,12 @@ export interface ScopedDb {
|
|
|
32
46
|
hasTable(name: string): boolean;
|
|
33
47
|
/** True if a view with this name exists in the database. */
|
|
34
48
|
hasView(name: string): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Announces a producer of `name` (a dataset or a datasource element). `onShared`
|
|
51
|
+
* tells every producer of the name whether another one holds it too: they would
|
|
52
|
+
* overwrite each other's data. Returns the release function.
|
|
53
|
+
*/
|
|
54
|
+
claim(name: string, onShared: (shared: boolean) => void): () => void;
|
|
35
55
|
}
|
|
36
56
|
/** Creates a fresh isolated database with its own subscriber map. */
|
|
37
57
|
export declare function createScopedDb(): ScopedDb;
|
|
@@ -123,3 +123,9 @@ export interface XYChartStyle {
|
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
export declare const SYSTEM_STYLE_DEFAULTS: Style;
|
|
126
|
+
/**
|
|
127
|
+
* The keys of a style body that no component reads, as paths
|
|
128
|
+
* (e.g. `bn-chart-time.scaleFactors.labelToColum`). Such a key is ignored
|
|
129
|
+
* when the style is applied, so a typo would otherwise go unnoticed.
|
|
130
|
+
*/
|
|
131
|
+
export declare function unknownStyleKeys(style: unknown): string[];
|
|
@@ -98,9 +98,10 @@ export declare class DateStringFactory {
|
|
|
98
98
|
* @param {string|Date} from start date
|
|
99
99
|
* @param {string|Date} to end date
|
|
100
100
|
* @param dateInterval
|
|
101
|
-
* @param spanLimit
|
|
102
101
|
*/
|
|
103
|
-
datesBetween(from: DateTime, to: DateTime, dateInterval: DateDistance
|
|
102
|
+
datesBetween(from: DateTime, to: DateTime, dateInterval: DateDistance): DateTime[];
|
|
103
|
+
/** Number of `dateInterval` periods from `from` to `to`, both included. */
|
|
104
|
+
countBetween(from: DateTime, to: DateTime, dateInterval: DateDistance): number;
|
|
104
105
|
/**
|
|
105
106
|
* Produces an IBCS date-link string combining date formatting with link notation.
|
|
106
107
|
*
|
|
@@ -30,7 +30,7 @@ export interface UnitExtentInputs {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Total bar extent (in data units) that scales linearly with pixelPerUnit.
|
|
33
|
-
* Counts BOTH sides of the axis
|
|
33
|
+
* Counts BOTH sides of the axis - a chart with values -13..+12 spans 25
|
|
34
34
|
* units, not 12 (fitting only the positive side is how charts used to
|
|
35
35
|
* overshoot their container).
|
|
36
36
|
*/
|
|
@@ -70,7 +70,7 @@ export interface AutoFitStepInputs {
|
|
|
70
70
|
/**
|
|
71
71
|
* Solves the affine size model for the target and returns corrected scale
|
|
72
72
|
* values (floored at {@link MIN_PIXEL_SCALE}). Returns an empty object when
|
|
73
|
-
* nothing scales with the solved values (both extents 0)
|
|
73
|
+
* nothing scales with the solved values (both extents 0) - callers fall back
|
|
74
74
|
* to a ratio heuristic. Only the quantities whose extent is > 0 are returned.
|
|
75
75
|
*/
|
|
76
76
|
export declare function solveAutoFitStep(inputs: AutoFitStepInputs): {
|
|
@@ -4,20 +4,31 @@ export declare enum ComponentStatus {
|
|
|
4
4
|
SUCCESSFUL = 1,
|
|
5
5
|
ERROR = 2
|
|
6
6
|
}
|
|
7
|
+
/** A component that threw in `render` or in a lifecycle hook. */
|
|
8
|
+
export interface ComponentFailure {
|
|
9
|
+
tag: string;
|
|
10
|
+
id: string;
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
7
13
|
/**
|
|
8
14
|
* Singleton registry that tracks the render status of all bn-* component instances.
|
|
9
15
|
*
|
|
10
16
|
* Each component registers itself via {@link withComponentStatus} and reports
|
|
11
17
|
* `RUNNING` / `SUCCESSFUL` / `ERROR` transitions. After 500 ms of inactivity
|
|
12
18
|
* (no status updates), the aggregate result is written to
|
|
13
|
-
* `window.componentRegisterIsRenderedResult` as a boolean
|
|
14
|
-
*
|
|
19
|
+
* `window.componentRegisterIsRenderedResult` as a boolean, and the failed
|
|
20
|
+
* components to `window.componentRegisterFailures`. External tools
|
|
21
|
+
* (e.g. headless screenshot renderers) poll these values to detect when
|
|
15
22
|
* the entire page has finished rendering.
|
|
16
23
|
*
|
|
24
|
+
* A reader sees one of three states: the flag is `true` (all rendered), the
|
|
25
|
+
* failures list is not empty (settled, but a component failed), or neither
|
|
26
|
+
* (still working).
|
|
27
|
+
*
|
|
17
28
|
* The 500 ms debounce prevents premature "rendered" signals during rapid
|
|
18
29
|
* successive re-renders.
|
|
19
30
|
*
|
|
20
|
-
* Status counts are maintained incrementally
|
|
31
|
+
* Status counts are maintained incrementally - `updateStatus` adjusts running
|
|
21
32
|
* counters instead of iterating all entries, making it O(1) per update.
|
|
22
33
|
*/
|
|
23
34
|
export declare namespace ComponentRegister {
|
|
@@ -25,10 +36,15 @@ export declare namespace ComponentRegister {
|
|
|
25
36
|
* Records a status change for the component identified by `uuid` and
|
|
26
37
|
* resets the 500 ms debounce timer. When the timer fires, the aggregate
|
|
27
38
|
* "all rendered" boolean is published to `window.componentRegisterIsRenderedResult`.
|
|
39
|
+
* `failure` describes an `ERROR` status.
|
|
28
40
|
*/
|
|
29
|
-
const updateStatus: (uuid: string, status: ComponentStatus) => void;
|
|
30
|
-
/**
|
|
41
|
+
const updateStatus: (uuid: string, status: ComponentStatus, failure?: ComponentFailure) => void;
|
|
42
|
+
/** Forgets a component that left the document. */
|
|
43
|
+
const remove: (uuid: string) => void;
|
|
44
|
+
/** Returns `true` when no component is in `RUNNING` or `ERROR` state. */
|
|
31
45
|
const componentRegisterIsRendered: () => boolean;
|
|
46
|
+
/** The failed components. Empty while a component is still running: only a settled page has a final list. */
|
|
47
|
+
const componentRegisterFailures: () => ComponentFailure[];
|
|
32
48
|
/** Returns a summary count of components in each status category. */
|
|
33
49
|
const componentRegisterStatus: () => {
|
|
34
50
|
running: number;
|
|
@@ -3,7 +3,7 @@ export declare enum I18nMode {
|
|
|
3
3
|
ALL = "all",
|
|
4
4
|
META = "meta"
|
|
5
5
|
}
|
|
6
|
-
/** Unit type of the measured values
|
|
6
|
+
/** Unit type of the measured values - affects default formatting and SI prefix behavior. */
|
|
7
7
|
export declare enum MeasureType {
|
|
8
8
|
CURRENCY = "currency",
|
|
9
9
|
VOLUME = "volume"
|
|
@@ -54,7 +54,7 @@ export declare enum DataFormat {
|
|
|
54
54
|
* - LIST: no aggregation, rows displayed as-is
|
|
55
55
|
* - SUM: simple sum per group with a grand total row
|
|
56
56
|
* - SUMNOTOTAL: sum per group without a grand total
|
|
57
|
-
* - OPT: operation-aware aggregation
|
|
57
|
+
* - OPT: operation-aware aggregation - rows with operation="-" subtract from the group sum
|
|
58
58
|
* - OPTNOTOTAL: operation-aware aggregation without a grand total
|
|
59
59
|
*/
|
|
60
60
|
export declare enum TableType {
|
|
@@ -49,7 +49,7 @@ export declare class DataAnalyzer {
|
|
|
49
49
|
* are considered; variance columns are excluded.
|
|
50
50
|
* - `null` with data: defaults to GREATEST auto-detection
|
|
51
51
|
*/
|
|
52
|
-
static calculateMeasureScale(db: AlaSQLDatabase, fromExpr: string, scenarios: string[], mode: string | null): SiPrefix;
|
|
52
|
+
static calculateMeasureScale(db: AlaSQLDatabase, fromExpr: string, scenarios: string[], mode: string | null, onError?: (e: unknown) => void): SiPrefix;
|
|
53
53
|
/**
|
|
54
54
|
* Maps an absolute numeric value to the best-fitting SI prefix based on
|
|
55
55
|
* its decimal magnitude. Values in (0.001, 1000) keep the identity prefix.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirrors the inner no-data state on the outer component's host.
|
|
3
|
+
*
|
|
4
|
+
* Only the inner `ibcs-*` element knows it has no rows; it sets `no-data` on
|
|
5
|
+
* its own host. The outer host sits in a layout slot wrapper as an
|
|
6
|
+
* inline-block, so it must fill that wrapper too before the empty-state box
|
|
7
|
+
* can fill the cell (see styles/_empty-state.scss). Call from the outer
|
|
8
|
+
* component's componentDidRender, which runs after the inners have rendered.
|
|
9
|
+
*/
|
|
10
|
+
export declare function syncEmptyState(host: HTMLElement, innerTag: string): void;
|
|
@@ -3,20 +3,18 @@ import { BinoChartSyles } from "./model";
|
|
|
3
3
|
* Number and label formatting utilities following ISO 80000-1 conventions.
|
|
4
4
|
*/
|
|
5
5
|
export declare class Formatter {
|
|
6
|
-
/**
|
|
7
|
-
private static
|
|
8
|
-
/** Replacement character for the decimal separator (default de-DE uses comma). */
|
|
9
|
-
private static postfixSeperator;
|
|
6
|
+
/** One formatter per locale, style and digits: building one per cell is slow. */
|
|
7
|
+
private static formats;
|
|
10
8
|
/**
|
|
11
|
-
* Formats a number for display
|
|
9
|
+
* Formats a number for display in the given locale.
|
|
12
10
|
*
|
|
13
|
-
* Pipeline: divide by scale factor -> format via
|
|
14
|
-
* before
|
|
15
|
-
* separator with `tsdDelimiter`.
|
|
11
|
+
* Pipeline: divide by scale factor -> format via `Intl.NumberFormat` for the locale ->
|
|
12
|
+
* strip whitespace before `%`. A value that rounds to zero is never printed with a minus sign.
|
|
16
13
|
*
|
|
17
14
|
* @param scale Divisor applied before formatting (e.g. 1000 for "k" SI prefix).
|
|
15
|
+
* @param locale BCP 47 tag (e.g. `de`, `en`, `de-CH`). An unknown or malformed tag falls back to `de-DE`.
|
|
18
16
|
*/
|
|
19
|
-
static number(value: number, type?: string, digits?: number, digitsMin?: number, scale?: number): string;
|
|
17
|
+
static number(value: number, type?: string, digits?: number, digitsMin?: number, scale?: number, locale?: string): string;
|
|
20
18
|
/**
|
|
21
19
|
* Translates a technical scenario identifier into a human-readable IBCS label.
|
|
22
20
|
*
|
|
@@ -8,7 +8,7 @@ import { ComponentLayoutState } from "./types";
|
|
|
8
8
|
export declare function readFontSizePx(el: HTMLElement): number;
|
|
9
9
|
/**
|
|
10
10
|
* Layout state for a visual component without its own `getLayoutState()`:
|
|
11
|
-
* host box, identity, em context and diagnostics
|
|
11
|
+
* host box, identity, em context and diagnostics - no regions or elements.
|
|
12
12
|
* The caller (`bn-context`) overwrites `id` with its document-order identity.
|
|
13
13
|
*/
|
|
14
14
|
export declare function buildGenericState(el: HTMLElement, origins: Origins): ComponentLayoutState;
|
|
@@ -18,7 +18,7 @@ export interface ChartFacadeLayout {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Walks a chart facade's inner segment components (one per base/variance
|
|
21
|
-
* segment, paired by DOM order
|
|
21
|
+
* segment, paired by DOM order - CSS only reverses the visual order):
|
|
22
22
|
* one `canvas:<segment>` region per inner `svg#drawCanvas`, plus the
|
|
23
23
|
* per-element breakdown and the measure-scale footer at full detail.
|
|
24
24
|
*/
|
|
@@ -31,7 +31,7 @@ export declare function collectChartFacadeLayout(host: HTMLElement, innerTag: st
|
|
|
31
31
|
export declare function collectXYElements(svgRoot: Element, origins: Origins): LayoutElement[];
|
|
32
32
|
/**
|
|
33
33
|
* Complete layout state of a single-inner XY/bullet chart facade: host box,
|
|
34
|
-
* one `canvas` region, point count, diagnostics
|
|
34
|
+
* one `canvas` region, point count, diagnostics - and the tag-classified
|
|
35
35
|
* element list at full detail.
|
|
36
36
|
*/
|
|
37
37
|
export declare function collectXYFacadeState(host: HTMLElement, innerTag: string, title: string | undefined, em: EmContext, origins: Origins, detail: "summary" | "full"): ComponentLayoutState;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const CUSTOM_TEMPLATE = "custom-template";
|
|
2
|
+
/** The rows of a template, each as the list of its cell names. Empty for text that holds no quoted row. */
|
|
3
|
+
export declare function templateRows(areas: string | null | undefined): string[][];
|
|
4
|
+
/** True for a built-in template name and for `custom-template`. Any other layout, such as `full`, is a single cell. */
|
|
5
|
+
export declare function isTemplateLayout(layout: string): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The `grid-template-areas` of a layout. A custom template without a quoted
|
|
8
|
+
* row cannot be laid out and is drawn as a single cell.
|
|
9
|
+
*/
|
|
10
|
+
export declare function templateAreas(layout: string, customTemplate: string | null | undefined): string;
|
|
11
|
+
/** One equal column track per cell of the first row. */
|
|
12
|
+
export declare function templateColumns(areas: string): string;
|
|
13
|
+
/** The area names of a template, in order of first appearance. */
|
|
14
|
+
export declare function templateSlotNames(areas: string | null | undefined): string[];
|
|
15
|
+
/** Why a custom template cannot be used as it is written, or `undefined` when it is fine. */
|
|
16
|
+
export declare function templateProblem(customTemplate: string | null | undefined): string | undefined;
|
|
@@ -42,7 +42,7 @@ export interface SVGVariancesStyleGroup {
|
|
|
42
42
|
neu: SVGStyle;
|
|
43
43
|
[index: string]: SVGStyle;
|
|
44
44
|
}
|
|
45
|
-
/** SVG polygon fill pattern definition
|
|
45
|
+
/** SVG polygon fill pattern definition - used for forecast (FC) hatching with foreground/background layers. */
|
|
46
46
|
export interface SVGPolgonPattern {
|
|
47
47
|
foreground: string;
|
|
48
48
|
background: string;
|
|
@@ -17,11 +17,11 @@ export interface DataQueryResultRow {
|
|
|
17
17
|
subCategory?: string;
|
|
18
18
|
rowNr?: number;
|
|
19
19
|
rowGroupIndex?: number;
|
|
20
|
-
/** `"+"` or `"-"`
|
|
20
|
+
/** `"+"` or `"-"` - determines if values add to or subtract from group aggregations. */
|
|
21
21
|
operation?: string;
|
|
22
22
|
[key: string]: string | number | null | undefined;
|
|
23
23
|
}
|
|
24
|
-
/** Category count per row group
|
|
24
|
+
/** Category count per row group - used for pagination and rendering row group headers. */
|
|
25
25
|
export interface DataQueryMetaRow {
|
|
26
26
|
totalRowCnt: number;
|
|
27
27
|
rowGroup?: string;
|
|
@@ -4,7 +4,7 @@ export declare enum OrderDirection {
|
|
|
4
4
|
ASC = "asc",
|
|
5
5
|
DESC = "desc"
|
|
6
6
|
}
|
|
7
|
-
/** Valid columns for ORDER BY in AlaSQL queries
|
|
7
|
+
/** Valid columns for ORDER BY in AlaSQL queries - includes hierarchy dimensions and all 16 scenario slots. */
|
|
8
8
|
export declare enum OrderColumn {
|
|
9
9
|
ROWGROUP = "rowGroup",
|
|
10
10
|
ROWGROUPINDEX = "rowGroupIndex",
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { IAdapter } from "../../helper/IAdapter";
|
|
2
|
+
/** The accepted `fillpattern` values. */
|
|
3
|
+
export type FillPattern = "solid" | "hatched" | "outlined";
|
|
4
|
+
/** Maps a `fillpattern` of the style JSON to an accepted value: `fc` is the old name of `hatched`, anything else counts as not set. */
|
|
5
|
+
export declare function normalizeFillPattern(value: unknown): FillPattern | undefined;
|
|
2
6
|
export declare class SVGStyle {
|
|
3
7
|
stroke: string;
|
|
4
8
|
fill: string;
|
|
5
9
|
width: number;
|
|
6
|
-
fillpattern:
|
|
10
|
+
fillpattern: FillPattern | undefined;
|
|
7
11
|
dasharray: string | undefined;
|
|
8
12
|
constructor(stroke?: string, fill?: string, width?: number);
|
|
9
13
|
}
|
|
@@ -16,3 +16,12 @@ export interface ParentDimensions {
|
|
|
16
16
|
* find the actual slot wrapper that determines layout.
|
|
17
17
|
*/
|
|
18
18
|
export declare function getParentDimensions(element: HTMLElement, debug?: boolean): ParentDimensions;
|
|
19
|
+
/**
|
|
20
|
+
* How many px of an element are cut off at the bottom, given the height of its content
|
|
21
|
+
* (both in layout px). Only an element that hides its overflow cuts something off: the
|
|
22
|
+
* element itself or one of its visual ancestors. 0 when there is none, the page then
|
|
23
|
+
* grows or scrolls and nothing is lost. Unlike the height of getParentDimensions this is
|
|
24
|
+
* no estimate, so it suits a warning for content that does not adapt its height to the
|
|
25
|
+
* space it has.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getClippedHeight(element: HTMLElement, contentHeight: number): number;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ErrorDispatcher } from "./withHasError";
|
|
2
|
+
/** The text of a caught exception. */
|
|
3
|
+
export declare const errorText: (e: unknown) => string;
|
|
4
|
+
/** Sets the `ERR_sql` item of a visual from the text of a failed query, or removes it when there is none. */
|
|
5
|
+
export declare const reportQueryError: (errors: ErrorDispatcher | undefined, message: string | undefined) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Text shown for a relative variance whose reference is 0. */
|
|
2
|
+
export declare const NOT_AVAILABLE = "n/a";
|
|
3
|
+
/**
|
|
4
|
+
* Relative variance (a - b) / |b|, from the difference a - b and the reference b.
|
|
5
|
+
* undefined: the reference is 0, callers show NOT_AVAILABLE and no bar.
|
|
6
|
+
* The reference counts as 0 also when it is 0 up to float rounding: a ratio above 1e9.
|
|
7
|
+
* NaN: an input is NaN, missing data stays missing.
|
|
8
|
+
*/
|
|
9
|
+
export declare function relativeVariance(difference: number, reference: number): number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Strips everything but the allowed tags and attributes from an HTML string.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* The string is parsed into a separate inert document, so nothing in it loads
|
|
4
|
+
* or runs. Disallowed elements are removed together with their content.
|
|
5
5
|
*/
|
|
6
6
|
export declare function sanitizeHtml(html: string): string;
|
|
@@ -68,7 +68,7 @@ export declare function resolveScalingValue(raw: string | number | null | undefi
|
|
|
68
68
|
/**
|
|
69
69
|
* Formats a positive value with the same SI suffixes the parser accepts,
|
|
70
70
|
* rounded to 3 significant digits (`250000` -> `"250k"`). Values just below
|
|
71
|
-
* a suffix boundary may round up across it (`999999` -> `"1000k"`)
|
|
71
|
+
* a suffix boundary may round up across it (`999999` -> `"1000k"`) - fine
|
|
72
72
|
* for warning messages, which is all this is used for.
|
|
73
73
|
*/
|
|
74
74
|
export declare function formatScalingValue(value: number): string;
|
|
@@ -15,6 +15,7 @@ export declare function getStackFill(index: number): string;
|
|
|
15
15
|
export declare function getStackStroke(index: number): string;
|
|
16
16
|
/**
|
|
17
17
|
* Returns black or white text color for readable contrast against the given
|
|
18
|
-
*
|
|
18
|
+
* background, using the W3C relative luminance formula. A color that cannot
|
|
19
|
+
* be read (a name, a pattern) gets black text.
|
|
19
20
|
*/
|
|
20
|
-
export declare function getContrastTextColor(
|
|
21
|
+
export declare function getContrastTextColor(fill: string): string;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** One segment of a laid-out stack, as signed distance from the axis. */
|
|
2
|
+
export interface StackSegment {
|
|
3
|
+
/** Edge nearer the axis. */
|
|
4
|
+
start: number;
|
|
5
|
+
/** Outer edge: above `start` for a positive value, below it for a negative one. */
|
|
6
|
+
end: number;
|
|
7
|
+
/** Signed share of the sum of absolute values of the stack. */
|
|
8
|
+
share: number;
|
|
9
|
+
}
|
|
10
|
+
/** A stack laid out on both sides of the axis. */
|
|
11
|
+
export interface StackLayout {
|
|
12
|
+
/** In the order of the input values. */
|
|
13
|
+
segments: StackSegment[];
|
|
14
|
+
/** Extent of the positive side, >= 0. */
|
|
15
|
+
positive: number;
|
|
16
|
+
/** Extent of the negative side, >= 0. */
|
|
17
|
+
negative: number;
|
|
18
|
+
/** Signed sum of the values. */
|
|
19
|
+
total: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Stacks positive values outward on the positive side of the axis and negative values
|
|
23
|
+
* outward on the other side. A value that is not finite takes no room. A zero has no
|
|
24
|
+
* length and sits on the positive side; pass -0 to put it on the negative side.
|
|
25
|
+
*
|
|
26
|
+
* With `relativeSpan` > 0 the stack is a 100 % stack: lengths are scaled so that both
|
|
27
|
+
* sides together are `relativeSpan` long. `total` is always the sum of the raw values.
|
|
28
|
+
*/
|
|
29
|
+
export declare function layoutStack(values: number[], relativeSpan?: number): StackLayout;
|
|
30
|
+
/** Largest positive and negative side and the highest and lowest total of several stacks. */
|
|
31
|
+
export declare function stackExtent(layouts: StackLayout[]): {
|
|
32
|
+
positive: number;
|
|
33
|
+
negative: number;
|
|
34
|
+
maxTotal: number;
|
|
35
|
+
minTotal: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Where the category label of one row goes. `layouts` are the stacks of the row, the
|
|
39
|
+
* front one last. The label sits opposite the total of the front stack (as for a plain
|
|
40
|
+
* bar: opposite its value), `clearance` away from the axis, behind the segments there.
|
|
41
|
+
*
|
|
42
|
+
* A stack behind the front one can have its total on the other side than the front
|
|
43
|
+
* stack, which is the side of the category label. `totalLabelRoom` gives the room the
|
|
44
|
+
* total label of a stack takes behind its segments, in the units of the layout.
|
|
45
|
+
*/
|
|
46
|
+
export declare function stackLabelSide(layouts: StackLayout[], totalLabelRoom?: (layout: StackLayout) => number): {
|
|
47
|
+
flipped: boolean;
|
|
48
|
+
clearance: number;
|
|
49
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Stand-in for a svg.js group: records the calls on itself, every group() gives a new stand-in. */
|
|
2
|
+
export interface FakeGroup {
|
|
3
|
+
calls: [string, unknown[]][];
|
|
4
|
+
groups: FakeGroup[];
|
|
5
|
+
node: unknown;
|
|
6
|
+
}
|
|
7
|
+
export declare const fakeGroup: () => FakeGroup;
|
|
8
|
+
export declare const callNames: (group: FakeGroup) => string[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const installMutationObserverFake: () => void;
|
|
2
|
+
/** Calls every observer that watches `attributeName` on `target`. */
|
|
3
|
+
export declare const notifyAttributeChange: (target: Node, attributeName: string) => void;
|
|
4
|
+
/** Calls every observer that watches the child list of `target`, or of an ancestor with its subtree. */
|
|
5
|
+
export declare const notifyChildListChange: (target: Node) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StructureChart } from "../../components/bn-chart-structure/utils/StructureChart";
|
|
2
|
+
/** One data row of a structure chart spec. */
|
|
3
|
+
export declare function structureRow(category: string, index: number, values: Record<string, unknown>): Record<string, unknown>;
|
|
4
|
+
/** Builds a StructureChart over `rows` in a scoped database of its own, for specs. */
|
|
5
|
+
export declare function buildStructureChart(rows: Record<string, unknown>[], config: Record<string, unknown>): StructureChart;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TimeChart } from "../../components/bn-chart-time/utils/TimeChart";
|
|
2
|
+
/** One data row of a time chart spec; `date` is an ISO string or epoch millis. */
|
|
3
|
+
export declare function timeRow(date: string | number, values: Record<string, unknown>): Record<string, unknown>;
|
|
4
|
+
/** Builds a TimeChart over `rows` in a scoped database of its own, for specs. */
|
|
5
|
+
export declare function buildTimeChart(rows: Record<string, unknown>[], config: Record<string, unknown>): TimeChart;
|
|
@@ -69,6 +69,6 @@ export declare function validateTreeEdgesJson(value: string): string[];
|
|
|
69
69
|
/**
|
|
70
70
|
* Checks whether a value is a valid XY chart measure token: a scenario
|
|
71
71
|
* column (`ac1`…`pl4`) or a variance token (`d…`/`dr…`, sentiment suffix
|
|
72
|
-
* optional
|
|
72
|
+
* optional - spec §4.4 of the scatter/bubble charts).
|
|
73
73
|
*/
|
|
74
74
|
export declare function isValidMeasureToken(value: string): boolean;
|
|
@@ -2,8 +2,16 @@
|
|
|
2
2
|
* Mixin that tracks a component's render lifecycle in the global {@link ComponentRegister}.
|
|
3
3
|
*
|
|
4
4
|
* Assigns a stable UUID to the component instance and reports status transitions:
|
|
5
|
-
* - `RUNNING`
|
|
6
|
-
*
|
|
5
|
+
* - `RUNNING` from `connectedCallback` (only before the first render: a re-attach does not render again)
|
|
6
|
+
* or from the first hook of a render cycle, until `componentDidRender`
|
|
7
|
+
* - `ERROR` when `render`, a lifecycle hook or `connectedCallback` threw. Stencil catches such
|
|
8
|
+
* an exception and goes on, so without this the component would count as rendered.
|
|
9
|
+
* - `SUCCESSFUL` otherwise
|
|
10
|
+
*
|
|
11
|
+
* A component that leaves the document is removed from the register.
|
|
12
|
+
*
|
|
13
|
+
* Returns a hold function: the component stays `RUNNING` until the promise
|
|
14
|
+
* passed to it has settled, whatever the outcome.
|
|
7
15
|
*
|
|
8
16
|
* External tools (e.g. screenshot/PDF renderers) poll
|
|
9
17
|
* `window.componentRegisterIsRenderedResult` to determine when all components
|
|
@@ -11,5 +19,5 @@
|
|
|
11
19
|
*
|
|
12
20
|
* @param component - The Stencil component instance
|
|
13
21
|
*/
|
|
14
|
-
declare const withComponentStatus: (component: any) => void;
|
|
22
|
+
declare const withComponentStatus: (component: any) => (work: Promise<unknown>) => void;
|
|
15
23
|
export default withComponentStatus;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ErrorDispatcher } from "./withHasError";
|
|
1
2
|
/**
|
|
2
3
|
* Reserved prop values that activate inheritance from ancestor layout
|
|
3
4
|
* components (`bn-layout-card` or `bn-layout-page`).
|
|
@@ -9,49 +10,75 @@ export interface PropMapping {
|
|
|
9
10
|
propName: string;
|
|
10
11
|
ancestorAttr: string;
|
|
11
12
|
}
|
|
13
|
+
/** What a prop resolves to. */
|
|
14
|
+
export interface InheritedProp {
|
|
15
|
+
/** The ancestor's value, the prop's own value, or the fallback of an unresolved keyword. */
|
|
16
|
+
value: string;
|
|
17
|
+
/** `value` was taken from an ancestor. */
|
|
18
|
+
inherited: boolean;
|
|
19
|
+
/** The prop is an inheritance keyword and no ancestor sets the field. */
|
|
20
|
+
unresolved: boolean;
|
|
21
|
+
}
|
|
12
22
|
/**
|
|
13
23
|
* Resolver function returned by the mixin.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
24
|
+
* `fallback` is what an unresolved keyword stands for. Without it the value is
|
|
25
|
+
* `undefined`, as if the prop was not set.
|
|
16
26
|
*/
|
|
17
|
-
export type InheritedResolver = (propName: string, currentValue: string
|
|
27
|
+
export type InheritedResolver = (propName: string, currentValue: string, fallback?: string) => InheritedProp;
|
|
18
28
|
/**
|
|
19
29
|
* Returns `true` when `value` is one of the recognised inheritance keywords.
|
|
20
30
|
*/
|
|
21
31
|
export declare function isInheritedValue(value: string): boolean;
|
|
22
32
|
/**
|
|
23
|
-
* Walks up the DOM tree (crossing shadow boundaries)
|
|
24
|
-
*
|
|
33
|
+
* Walks up the DOM tree (crossing shadow boundaries) and collects the layout
|
|
34
|
+
* ancestors an inheritance keyword can take its value from, nearest first.
|
|
25
35
|
*
|
|
26
|
-
* - `"inherited-closest"
|
|
27
|
-
*
|
|
36
|
+
* - `"inherited-closest"`: every `bn-layout-card` up to and including the
|
|
37
|
+
* first `bn-layout-page`.
|
|
38
|
+
* - `"inherited-page"`: that `bn-layout-page` only.
|
|
28
39
|
*
|
|
29
40
|
* Uses the same traversal pattern as `findContextElement` in
|
|
30
41
|
* `context-protocol.ts`.
|
|
31
42
|
*/
|
|
32
|
-
export declare function
|
|
43
|
+
export declare function findLayoutAncestors(element: HTMLElement, mode: string): HTMLElement[];
|
|
44
|
+
/**
|
|
45
|
+
* Reads `attr` from the nearest of `ancestors` that sets it.
|
|
46
|
+
*
|
|
47
|
+
* An ancestor whose attribute is missing, blank or an inheritance keyword it
|
|
48
|
+
* cannot resolve does not set it and is skipped, so a keyword is never handed
|
|
49
|
+
* down as a value. A card with `inherited-page` stands for the value of the
|
|
50
|
+
* page when the page has one: the cards between the two are not asked.
|
|
51
|
+
*/
|
|
52
|
+
export declare function readInherited(ancestors: HTMLElement[], attr: string): string | undefined;
|
|
33
53
|
/**
|
|
34
54
|
* Walks up the DOM tree (crossing shadow boundaries) to find the nearest
|
|
35
55
|
* ancestor element that carries the given attribute, whatever its tag.
|
|
36
56
|
* Used for attributes that inherit by default (e.g. `i18n-namespace`), where
|
|
37
|
-
* any container
|
|
38
|
-
* itself
|
|
57
|
+
* any container - layout card, layout page, tree, grid, or the `bn-context`
|
|
58
|
+
* itself - can act as the provider.
|
|
39
59
|
*/
|
|
40
60
|
export declare function findAncestorWithAttr(element: HTMLElement, attr: string): HTMLElement | undefined;
|
|
41
61
|
/**
|
|
42
62
|
* Mixin that enables property inheritance from ancestor layout components.
|
|
43
63
|
*
|
|
44
64
|
* When a component sets a prop to `"inherited-closest"` or `"inherited-page"`,
|
|
45
|
-
* this mixin resolves the actual value by walking up the DOM
|
|
46
|
-
* nearest `bn-layout-card` /
|
|
47
|
-
*
|
|
48
|
-
* changes, triggering a re-render when inherited
|
|
65
|
+
* this mixin resolves the actual value by walking up the DOM and reading the
|
|
66
|
+
* corresponding HTML attribute from the nearest `bn-layout-card` /
|
|
67
|
+
* `bn-layout-page` that sets it. A `MutationObserver` watches every ancestor
|
|
68
|
+
* on that path for attribute changes, triggering a re-render when inherited
|
|
69
|
+
* values update.
|
|
49
70
|
*
|
|
50
71
|
* Follows the same decorator-style pattern as `withComponentStyle`.
|
|
51
72
|
*
|
|
73
|
+
* A keyword that no ancestor satisfies is never used as a value: the resolver
|
|
74
|
+
* returns the fallback instead and, when `errors` is given, keeps a
|
|
75
|
+
* `WARN_inherited_<prop>` warning in it for as long as the keyword is
|
|
76
|
+
* unresolved.
|
|
77
|
+
*
|
|
52
78
|
* @param component The Stencil component instance
|
|
53
79
|
* @param mappings Array of prop-to-attribute mappings
|
|
80
|
+
* @param errors The component's error list, to report unresolved keywords
|
|
54
81
|
* @returns A resolver function used inside `prepare*()` methods
|
|
55
82
|
*/
|
|
56
|
-
declare const withInheritedProps: (component: any, mappings: PropMapping[]) => InheritedResolver;
|
|
83
|
+
declare const withInheritedProps: (component: any, mappings: PropMapping[], errors?: ErrorDispatcher) => InheritedResolver;
|
|
57
84
|
export default withInheritedProps;
|
|
@@ -15,7 +15,8 @@ import { RuleSetConfig } from "../stores/ruleSets";
|
|
|
15
15
|
* The `ruleset` attribute supports the `"inherited-closest"` /
|
|
16
16
|
* `"inherited-page"` keywords from `withInheritedProps`: the actual name is
|
|
17
17
|
* then read from the `ruleset` attribute of the nearest ancestor
|
|
18
|
-
* `bn-layout-card` / `bn-layout-page
|
|
18
|
+
* `bn-layout-card` / `bn-layout-page` that sets one. Every ancestor on that
|
|
19
|
+
* path is observed for changes.
|
|
19
20
|
*
|
|
20
21
|
* @param component - The Stencil component instance
|
|
21
22
|
* @returns A function returning the merged {@link RuleSetConfig}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* 1. The host element's own `i18n-namespace` attribute (the deprecated
|
|
9
9
|
* `namespace` attribute is honored as a fallback).
|
|
10
10
|
* 2. Otherwise the `i18n-namespace` attribute of the nearest ancestor that
|
|
11
|
-
* carries one
|
|
12
|
-
* `bn-context` itself
|
|
11
|
+
* carries one - a layout card, layout page, tree, grid, or the
|
|
12
|
+
* `bn-context` itself - crossing shadow boundaries. The resolved ancestor
|
|
13
13
|
* is observed so attribute changes re-render the component.
|
|
14
14
|
* 3. Otherwise the built-in `_system` namespace.
|
|
15
15
|
*
|
|
@@ -8,7 +8,7 @@ export interface Rect {
|
|
|
8
8
|
/**
|
|
9
9
|
* Small-multiple panel layout: divides a drawing area into equal panels,
|
|
10
10
|
* wrapping row-major at `columns`. Axis tick labels render on the outer
|
|
11
|
-
* edges only (IBCS 10F/10G style)
|
|
11
|
+
* edges only (IBCS 10F/10G style) - the `isOuterLeft`/`isOuterBottom`
|
|
12
12
|
* flags tell the renderer which panels carry them.
|
|
13
13
|
*/
|
|
14
14
|
export declare class FacetGrid {
|
|
@@ -19,7 +19,7 @@ export declare class IsoCurves {
|
|
|
19
19
|
/** Iso-curves are only defined on strictly positive domains. */
|
|
20
20
|
isPositiveDomain(): boolean;
|
|
21
21
|
/**
|
|
22
|
-
* Picks 2
|
|
22
|
+
* Picks 2-4 nice k values from the 1-2-5 ladder spanning the central
|
|
23
23
|
* product range of the data (products = `x·y` per point).
|
|
24
24
|
*/
|
|
25
25
|
static autoK(products: number[]): number[];
|