@bino-bi/bn-template-engine 1.0.0-alpha.9 → 1.0.0-next.20
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/LICENSE +203 -21
- package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/p-28d5c266.entry.js +1 -0
- package/dist/bn-template-engine/p-2d3ea756.entry.js +1 -0
- package/dist/bn-template-engine/p-2fba7c99.entry.js +1 -0
- package/dist/bn-template-engine/p-6077155f.entry.js +1 -0
- package/dist/bn-template-engine/p-687032d5.entry.js +1 -0
- package/dist/bn-template-engine/p-6c7f0076.entry.js +1 -0
- package/dist/bn-template-engine/p-6lOdN-fB.js +1 -0
- package/dist/bn-template-engine/p-7e9dbc93.entry.js +1 -0
- package/dist/bn-template-engine/p-99477a27.entry.js +1 -0
- package/dist/bn-template-engine/p-A8xyE4b1.js +1 -0
- package/dist/bn-template-engine/p-BA48JiHe.js +1 -0
- package/dist/bn-template-engine/p-BgIpdpfH.js +1 -0
- package/dist/bn-template-engine/p-BjBz5cSL.js +1 -0
- package/dist/bn-template-engine/p-BpWWgN6k.js +1 -0
- package/dist/bn-template-engine/p-C5uvAEKI.js +1 -0
- package/dist/bn-template-engine/p-C8Q0lsaU.js +1 -0
- package/dist/bn-template-engine/p-C9i1Xsib.js +1 -0
- package/dist/bn-template-engine/p-CJThzFZm.js +1 -0
- package/dist/bn-template-engine/p-CYE0I1Mx.js +1 -0
- package/dist/bn-template-engine/p-DsTzlzxQ.js +1 -0
- package/dist/bn-template-engine/p-DwYUTvvI.js +1 -0
- package/dist/bn-template-engine/p-a1380d7c.entry.js +1 -0
- package/dist/bn-template-engine/p-a4ea9a79.entry.js +1 -0
- package/dist/bn-template-engine/p-a8291de2.entry.js +1 -0
- package/dist/bn-template-engine/p-b5274369.entry.js +1 -0
- package/dist/bn-template-engine/p-b9e94127.entry.js +1 -0
- package/dist/bn-template-engine/p-ba912130.entry.js +1 -0
- package/dist/bn-template-engine/p-de29986f.entry.js +1 -0
- package/dist/bn-template-engine/p-eEfqksk-.js +1 -0
- package/dist/bn-template-engine/p-fFtEvsY-.js +1 -0
- package/dist/cjs/AxisConfig-D7CAyPLO.js +233 -0
- package/dist/cjs/LabelCollisionManager-DkdQ9Xdg.js +412 -0
- package/dist/cjs/NumericScale-BAyYXpKL.js +107 -0
- package/dist/cjs/Order-IPfAP0q8.js +87 -0
- package/dist/cjs/SVGStyle-BD8jApd4.js +8209 -0
- package/dist/cjs/SVGVariancesStyleGroup-BaWzR951.js +50 -0
- package/dist/cjs/VarianceMeasure-BBWTgv2e.js +372 -0
- package/dist/cjs/XYChartDataRow-BoR0CTfl.js +829 -0
- package/dist/cjs/bn-asset_21.cjs.entry.js +16105 -0
- package/dist/cjs/bn-chart-bubble.cjs.entry.js +762 -0
- package/dist/cjs/bn-chart-bullet.cjs.entry.js +785 -0
- package/dist/cjs/bn-chart-scatter.cjs.entry.js +658 -0
- package/dist/cjs/bn-grid.cjs.entry.js +5 -3
- package/dist/cjs/bn-image.cjs.entry.js +5 -3
- package/dist/cjs/bn-internationalization.cjs.entry.js +10 -8
- package/dist/cjs/bn-ruleset.cjs.entry.js +41 -0
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-template.cjs.entry.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +8 -79
- package/dist/cjs/bn-tree.cjs.entry.js +4 -2
- package/dist/cjs/context-protocol-BBhT9B52.js +9505 -0
- package/dist/cjs/editor-companion.cjs.entry.js +13 -6
- package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +624 -0
- package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +673 -0
- package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +667 -0
- package/dist/cjs/layoutObserver-DUYYkDMQ.js +199 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sanitizeHtml-LuZr1IMd.js +85 -0
- package/dist/cjs/scaling-BIJQ2NV1.js +589 -0
- package/dist/cjs/{withBodyObserver-D7BKWN2N.js → withBodyObserver-BKUE_ypL.js} +12 -7
- package/dist/cjs/withScalingGroup-D5clRvRe.js +73 -0
- package/dist/cjs/withStyled-Cm9dWQhu.js +1168 -0
- package/dist/collection/collection-manifest.json +9 -1
- package/dist/collection/components/bn-body/bn-body.css +1 -0
- package/dist/collection/components/bn-card/bn-card.css +2 -0
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +10 -0
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +1110 -0
- package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +9 -0
- package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +653 -0
- package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +472 -0
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +10 -0
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +1014 -0
- package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +9 -0
- package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +538 -0
- package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +440 -0
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +132 -0
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +89 -0
- package/dist/collection/components/bn-chart-bullet/utils/model/index.js +2 -0
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +10 -0
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +965 -0
- package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +9 -0
- package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +580 -0
- package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +409 -0
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +126 -43
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +104 -37
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +101 -60
- package/dist/collection/components/bn-chart-structure/utils/helper/ElementPositions.js +46 -4
- package/dist/collection/components/bn-chart-structure/utils/model/StructureChartComponentConfig.js +5 -4
- package/dist/collection/components/bn-chart-time/bn-chart-time.css +1 -1
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +161 -44
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +97 -32
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +151 -75
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -3
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +10 -4
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartDataRow.js +2 -0
- package/dist/collection/components/bn-component-style/bn-component-style.js +1 -1
- package/dist/collection/components/bn-context/bn-context.js +20 -1
- package/dist/collection/components/bn-dataset/bn-dataset.js +226 -23
- package/dist/collection/components/bn-datasource/bn-datasource.js +163 -12
- package/dist/collection/components/bn-footer/bn-footer.js +1 -1
- package/dist/collection/components/bn-grid/bn-grid.js +20 -1
- package/dist/collection/components/bn-image/bn-image.js +1 -1
- package/dist/collection/components/bn-internationalization/bn-internationalization.js +10 -7
- package/dist/collection/components/bn-layout-card/bn-layout-card.css +8 -3
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +98 -35
- package/dist/collection/components/bn-layout-page/bn-layout-page.css +5 -3
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +98 -25
- package/dist/collection/components/bn-message/bn-message.css +6 -2
- package/dist/collection/components/bn-message/bn-message.js +3 -2
- package/dist/collection/components/bn-page/bn-page.js +1 -1
- package/dist/collection/components/bn-ruleset/bn-ruleset.css +3 -0
- package/dist/collection/components/bn-ruleset/bn-ruleset.js +68 -0
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.css +3 -0
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +136 -0
- package/dist/collection/components/bn-table/bn-table.js +318 -62
- package/dist/collection/components/bn-table/ibcs-table.css +8 -0
- package/dist/collection/components/bn-table/ibcs-table.js +162 -33
- package/dist/collection/components/bn-table/utils/Table.js +72 -29
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +13 -8
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -2
- package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +47 -0
- package/dist/collection/components/bn-table/utils/elements/index.js +1 -0
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +120 -23
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +380 -50
- package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +140 -0
- package/dist/collection/components/bn-table/utils/helper/QueryGroup.js +4 -9
- package/dist/collection/components/bn-table/utils/helper/WaterfallCalculator.js +166 -0
- package/dist/collection/components/bn-table/utils/helper/index.js +2 -0
- package/dist/collection/components/bn-table/utils/model/TableAttribute.js +46 -0
- package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +20 -4
- package/dist/collection/components/bn-template/bn-template.js +1 -1
- package/dist/collection/components/bn-text/bn-text.js +2 -75
- package/dist/collection/components/bn-title/bn-title.js +31 -3
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.css +4 -0
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +52 -6
- package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +7 -4
- package/dist/collection/components/bn-title/ibcs-title/utils/factories/TitleDataSetFactory.js +6 -2
- package/dist/collection/components/bn-title/ibcs-title/utils/model/TitleConfig.js +5 -0
- package/dist/collection/components/bn-tree/bn-tree.js +19 -0
- package/dist/collection/components/editor-companion/editor-companion.js +12 -5
- package/dist/collection/context/scopedDb.js +127 -0
- package/dist/collection/stores/componentStyles.js +67 -0
- package/dist/collection/stores/createScopedStores.js +11 -5
- package/dist/collection/stores/internationalization.js +77 -3
- package/dist/collection/stores/ruleSets.js +46 -0
- package/dist/collection/utils/DateStringFactory.js +31 -0
- package/dist/collection/utils/constants.js +5 -0
- package/dist/collection/utils/dataAnalyzer.js +14 -8
- package/dist/collection/utils/ibcsRuleSet.js +14 -26
- package/dist/collection/utils/layoutObserver.js +88 -0
- package/dist/collection/utils/parentDimensions.js +71 -15
- package/dist/collection/utils/sanitizeHtml.js +81 -0
- package/dist/collection/utils/validate.js +47 -0
- package/dist/collection/utils/withBodyObserver.js +12 -7
- package/dist/collection/utils/withComponentStyle.js +3 -5
- package/dist/collection/utils/withDataset.js +43 -39
- package/dist/collection/utils/withDatasource.js +28 -18
- package/dist/collection/utils/withInheritedProps.js +26 -1
- package/dist/collection/utils/withRuleSet.js +105 -0
- package/dist/collection/utils/withScalingGroup.js +69 -0
- package/dist/collection/utils/withTranslation.js +53 -15
- package/dist/collection/utils/xy/FacetGrid.js +36 -0
- package/dist/collection/utils/xy/IsoCurves.js +156 -0
- package/dist/collection/utils/xy/NumericScale.js +103 -0
- package/dist/collection/utils/xy/PointLabeler.js +96 -0
- package/dist/collection/utils/xy/RadiusScale.js +42 -0
- package/dist/collection/utils/xy/SeriesPalette.js +80 -0
- package/dist/collection/utils/xy/VarianceMeasure.js +76 -0
- package/dist/collection/utils/xy/XYFrame.js +120 -0
- package/dist/collection/utils/xy/XYLegend.js +107 -0
- package/dist/collection/utils/xy/model/AxisConfig.js +221 -0
- package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +69 -0
- package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
- package/dist/collection/utils/xy/model/XYChartStyle.js +52 -0
- package/dist/components/AxisConfig.js +1 -0
- package/dist/components/CompareUtil.js +1 -0
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/DateStringFactory.js +1 -1
- package/dist/components/LabelCollisionManager.js +1 -0
- package/dist/components/NumericScale.js +1 -0
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGVariancesStyleGroup.js +1 -1
- package/dist/components/SiPrefix.js +1 -0
- package/dist/components/StringAdapter.js +1 -0
- package/dist/components/VarianceMeasure.js +1 -0
- package/dist/components/XYChartDataRow.js +1 -0
- package/dist/components/bn-body2.js +1 -1
- package/dist/components/bn-card2.js +1 -1
- package/dist/components/bn-chart-bubble.d.ts +11 -0
- package/dist/components/bn-chart-bubble.js +1 -0
- package/dist/components/bn-chart-bullet.d.ts +11 -0
- package/dist/components/bn-chart-bullet.js +1 -0
- package/dist/components/bn-chart-scatter.d.ts +11 -0
- package/dist/components/bn-chart-scatter.js +1 -0
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-component-style.js +1 -1
- package/dist/components/bn-context.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-footer2.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-image.js +1 -1
- package/dist/components/bn-internationalization.js +1 -1
- package/dist/components/bn-layout-card.js +1 -1
- package/dist/components/bn-layout-page.js +1 -1
- package/dist/components/bn-message2.js +1 -1
- package/dist/components/bn-page2.js +1 -1
- package/dist/components/bn-ruleset.d.ts +11 -0
- package/dist/components/bn-ruleset.js +1 -0
- package/dist/components/bn-scaling-group.d.ts +11 -0
- package/dist/components/bn-scaling-group.js +1 -0
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-template.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/context-protocol.js +1 -1
- package/dist/components/editor-companion.js +1 -1
- package/dist/components/formatter.js +1 -0
- package/dist/components/ibcs-chart-bubble.d.ts +11 -0
- package/dist/components/ibcs-chart-bubble.js +1 -0
- package/dist/components/ibcs-chart-bubble2.js +1 -0
- package/dist/components/ibcs-chart-bullet.d.ts +11 -0
- package/dist/components/ibcs-chart-bullet.js +1 -0
- package/dist/components/ibcs-chart-bullet2.js +1 -0
- package/dist/components/ibcs-chart-scatter.d.ts +11 -0
- package/dist/components/ibcs-chart-scatter.js +1 -0
- package/dist/components/ibcs-chart-scatter2.js +1 -0
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/layoutObserver.js +1 -0
- package/dist/components/luxon.js +1 -0
- package/dist/components/main.js +1 -0
- package/dist/components/merge.js +1 -0
- package/dist/components/sanitizeHtml.js +1 -0
- package/dist/components/stackColors.js +1 -0
- package/dist/components/validate.js +1 -1
- package/dist/components/withBodyObserver.js +1 -1
- package/dist/components/withComponentStyle.js +1 -1
- package/dist/components/withDataset.js +1 -0
- package/dist/components/withRuleSet.js +1 -0
- package/dist/components/withScalingGroup.js +1 -0
- package/dist/components/withStyled.js +1 -1
- package/dist/components/withTranslation.js +1 -1
- package/dist/esm/AxisConfig-ByIP5J-9.js +224 -0
- package/dist/esm/LabelCollisionManager-DaNiDiM9.js +404 -0
- package/dist/esm/NumericScale-DsTzlzxQ.js +105 -0
- package/dist/esm/Order-BQeJE_yi.js +83 -0
- package/dist/esm/SVGStyle-BwBlY3Km.js +8199 -0
- package/dist/esm/SVGVariancesStyleGroup-BpGW4CvN.js +48 -0
- package/dist/esm/VarianceMeasure-CE3N8Bea.js +364 -0
- package/dist/esm/XYChartDataRow-DeMI1JKU.js +820 -0
- package/dist/esm/bn-asset_21.entry.js +16083 -0
- package/dist/esm/bn-chart-bubble.entry.js +760 -0
- package/dist/esm/bn-chart-bullet.entry.js +783 -0
- package/dist/esm/bn-chart-scatter.entry.js +656 -0
- package/dist/esm/bn-grid.entry.js +5 -3
- package/dist/esm/bn-image.entry.js +5 -3
- package/dist/esm/bn-internationalization.entry.js +10 -8
- package/dist/esm/bn-ruleset.entry.js +39 -0
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-template.entry.js +1 -1
- package/dist/esm/bn-text.entry.js +7 -78
- package/dist/esm/bn-tree.entry.js +4 -2
- package/dist/esm/context-protocol-d8MHrEo8.js +9490 -0
- package/dist/esm/editor-companion.entry.js +13 -6
- package/dist/esm/ibcs-chart-bubble.entry.js +622 -0
- package/dist/esm/ibcs-chart-bullet.entry.js +671 -0
- package/dist/esm/ibcs-chart-scatter.entry.js +665 -0
- package/dist/esm/layoutObserver-BJBEyhNf.js +196 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sanitizeHtml-BA48JiHe.js +83 -0
- package/dist/esm/scaling-BGnpSN1j.js +581 -0
- package/dist/esm/{withBodyObserver-AFk2wwHT.js → withBodyObserver-IokS6fHD.js} +12 -7
- package/dist/esm/withScalingGroup-CC3UcvC5.js +71 -0
- package/dist/esm/withStyled-2l5Tx3cf.js +1135 -0
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +193 -0
- package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +58 -0
- package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +91 -0
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +172 -0
- package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +52 -0
- package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +91 -0
- package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +70 -0
- package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +43 -0
- package/dist/types/components/bn-chart-bullet/utils/model/index.d.ts +2 -0
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +172 -0
- package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +53 -0
- package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +66 -0
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +19 -5
- package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +13 -6
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +21 -12
- package/dist/types/components/bn-chart-structure/utils/helper/ElementPositions.d.ts +16 -1
- package/dist/types/components/bn-chart-structure/utils/model/StructureChartComponentConfig.d.ts +5 -3
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +53 -13
- package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +13 -6
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +21 -12
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +7 -3
- package/dist/types/components/bn-context/bn-context.d.ts +8 -0
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +47 -5
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +53 -6
- package/dist/types/components/bn-grid/bn-grid.d.ts +8 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +39 -8
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +36 -1
- package/dist/types/components/bn-message/bn-message.d.ts +5 -2
- package/dist/types/components/bn-ruleset/bn-ruleset.d.ts +8 -0
- package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +37 -0
- package/dist/types/components/bn-table/bn-table.d.ts +74 -12
- package/dist/types/components/bn-table/ibcs-table.d.ts +27 -4
- package/dist/types/components/bn-table/utils/Table.d.ts +16 -6
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +33 -0
- package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +2 -1
- package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +21 -0
- package/dist/types/components/bn-table/utils/elements/index.d.ts +1 -0
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +17 -9
- package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +35 -3
- package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +37 -0
- package/dist/types/components/bn-table/utils/helper/QueryGroup.d.ts +4 -5
- package/dist/types/components/bn-table/utils/helper/WaterfallCalculator.d.ts +55 -0
- package/dist/types/components/bn-table/utils/helper/index.d.ts +2 -0
- package/dist/types/components/bn-table/utils/model/TableAttribute.d.ts +22 -0
- package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +12 -3
- package/dist/types/components/bn-table/utils/model/index.d.ts +21 -0
- package/dist/types/components/bn-title/bn-title.d.ts +12 -1
- package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +4 -0
- package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +1 -0
- package/dist/types/components/bn-title/ibcs-title/utils/factories/TitleDataSetFactory.d.ts +3 -1
- package/dist/types/components/bn-title/ibcs-title/utils/model/TitleConfig.d.ts +2 -0
- package/dist/types/components/bn-tree/bn-tree.d.ts +8 -0
- package/dist/types/components/editor-companion/editor-companion.d.ts +2 -0
- package/dist/types/components.d.ts +1725 -116
- package/dist/types/context/context-protocol.d.ts +7 -3
- package/dist/types/context/scopedDb.d.ts +37 -0
- package/dist/types/stores/componentStyles.d.ts +41 -0
- package/dist/types/stores/createScopedStores.d.ts +4 -2
- package/dist/types/stores/ruleSets.d.ts +40 -0
- package/dist/types/utils/DateStringFactory.d.ts +20 -1
- package/dist/types/utils/constants.d.ts +5 -0
- package/dist/types/utils/dataAnalyzer.d.ts +2 -1
- package/dist/types/utils/ibcsRuleSet.d.ts +6 -1
- package/dist/types/utils/layoutObserver.d.ts +27 -0
- package/dist/types/utils/model/ChartStyles.d.ts +2 -1
- package/dist/types/utils/parentDimensions.d.ts +1 -1
- package/dist/types/utils/sanitizeHtml.d.ts +6 -0
- package/dist/types/utils/validate.d.ts +18 -0
- package/dist/types/utils/withDataset.d.ts +6 -2
- package/dist/types/utils/withDatasource.d.ts +3 -3
- package/dist/types/utils/withInheritedProps.d.ts +19 -0
- package/dist/types/utils/withRuleSet.d.ts +24 -0
- package/dist/types/utils/withScalingGroup.d.ts +14 -0
- package/dist/types/utils/withTranslation.d.ts +15 -5
- package/dist/types/utils/xy/FacetGrid.d.ts +27 -0
- package/dist/types/utils/xy/IsoCurves.d.ts +46 -0
- package/dist/types/utils/xy/NumericScale.d.ts +41 -0
- package/dist/types/utils/xy/PointLabeler.d.ts +58 -0
- package/dist/types/utils/xy/RadiusScale.d.ts +26 -0
- package/dist/types/utils/xy/SeriesPalette.d.ts +59 -0
- package/dist/types/utils/xy/VarianceMeasure.d.ts +37 -0
- package/dist/types/utils/xy/XYFrame.d.ts +44 -0
- package/dist/types/utils/xy/XYLegend.d.ts +43 -0
- package/dist/types/utils/xy/model/AxisConfig.d.ts +96 -0
- package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +36 -0
- package/dist/types/utils/xy/model/XYChartDataRow.d.ts +157 -0
- package/dist/types/utils/xy/model/XYChartStyle.d.ts +31 -0
- package/package.json +5 -4
- package/readme.md +9 -5
- package/dist/bn-template-engine/p-3141c4a2.entry.js +0 -1
- package/dist/bn-template-engine/p-67538176.entry.js +0 -1
- package/dist/bn-template-engine/p-916296a5.entry.js +0 -1
- package/dist/bn-template-engine/p-96006b06.entry.js +0 -1
- package/dist/bn-template-engine/p-Ck-NYtot.js +0 -1
- package/dist/bn-template-engine/p-CnDq0oVa.js +0 -1
- package/dist/bn-template-engine/p-DSXNgKLa.js +0 -1
- package/dist/bn-template-engine/p-bc711fb0.entry.js +0 -1
- package/dist/bn-template-engine/p-c86395b8.entry.js +0 -1
- package/dist/bn-template-engine/p-e6f646b1.entry.js +0 -1
- package/dist/bn-template-engine/p-f41d9242.entry.js +0 -1
- package/dist/bn-template-engine/p-gFbbuhtl.js +0 -1
- package/dist/cjs/bn-asset_20.cjs.entry.js +0 -23547
- package/dist/cjs/context-protocol-ohYzcb5F.js +0 -663
- package/dist/cjs/scaling-CIAClQR5.js +0 -314
- package/dist/cjs/withStyled-qd94SSb4.js +0 -9535
- package/dist/collection/stores/datasets.js +0 -14
- package/dist/collection/stores/datasources.js +0 -14
- package/dist/components/_commonjsHelpers.js +0 -1
- package/dist/components/alasql.min.js +0 -1
- package/dist/components/ibcsRuleSet.js +0 -1
- package/dist/components/scaling.js +0 -1
- package/dist/components/withInheritedProps.js +0 -1
- package/dist/esm/bn-asset_20.entry.js +0 -23526
- package/dist/esm/context-protocol-DdbSplvE.js +0 -656
- package/dist/esm/scaling-DGKKkuL9.js +0 -309
- package/dist/esm/withStyled-BIkqU2w4.js +0 -9501
- package/dist/types/stores/datasets.d.ts +0 -14
- package/dist/types/stores/datasources.d.ts +0 -14
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TableRow } from "../elements";
|
|
2
2
|
import { TableRowType, TableType } from "../model";
|
|
3
|
-
import { DataQuery } from "../helper";
|
|
3
|
+
import { computeWaterfall, DataQuery, hasGroupingStructure, INTERVAL_NONE } from "../helper";
|
|
4
4
|
import { Formatter } from "../../../../utils";
|
|
5
|
-
import { I18nMode, DataFormat } from "../../../../utils/constants";
|
|
5
|
+
import { I18nMode, DataFormat, Scenarios } from "../../../../utils/constants";
|
|
6
6
|
import { QueryColumnNames, VarianceScenario } from "../../../../utils/model";
|
|
7
7
|
/**
|
|
8
8
|
* Transforms raw query results into structured TableRow collections for header and body.
|
|
@@ -18,6 +18,7 @@ import { QueryColumnNames, VarianceScenario } from "../../../../utils/model";
|
|
|
18
18
|
export class TableDataSetFactory {
|
|
19
19
|
constructor() {
|
|
20
20
|
this.normalizedHeader = [];
|
|
21
|
+
this.attributesByAlias = new Map();
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Creates Tableheader based on the configured scenarios (in config)
|
|
@@ -27,19 +28,53 @@ export class TableDataSetFactory {
|
|
|
27
28
|
* visualise grouping.
|
|
28
29
|
* finally a seperator header row is created for the header underlining (border)
|
|
29
30
|
*/
|
|
30
|
-
createHeader(type, scenarios, i18n, measureScale, measureUnit, showMeasureScale) {
|
|
31
|
+
createHeader(type, scenarios, i18n, measureScale, measureUnit, showMeasureScale, attributes = []) {
|
|
31
32
|
const header = [];
|
|
32
|
-
this.
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
this.attributesByAlias = new Map(attributes.map((attribute) => [attribute.alias, attribute]));
|
|
34
|
+
this.normalizedHeader = this.normalizeHeader(type, scenarios, attributes);
|
|
35
|
+
const hasIntervalColumns = this.normalizedHeader.some((column) => column.bucket !== undefined);
|
|
36
|
+
if (hasIntervalColumns) {
|
|
37
|
+
header.push(this.createIntervalBandRow());
|
|
38
|
+
}
|
|
39
|
+
const headerRow = new TableRow(hasIntervalColumns ? 1 : 0, 0, TableRowType.HEADER);
|
|
40
|
+
const separatorRow = new TableRow(hasIntervalColumns ? 2 : 1, 0, TableRowType.SEPERATORLINE);
|
|
35
41
|
for (const scenario of this.normalizedHeader) {
|
|
36
|
-
|
|
42
|
+
const attribute = this.attributesByAlias.get(scenario.name);
|
|
43
|
+
headerRow.createElement(attribute
|
|
44
|
+
? i18n.get(attribute.label) || attribute.label
|
|
45
|
+
: Formatter.translateScenarioLabel(scenario.name, i18n), scenario.type, this.createColumnType(scenario), null, this.setHeaderPrefix(scenario, i18n, measureScale, measureUnit, showMeasureScale), null, null, null, null);
|
|
37
46
|
separatorRow.createElement(null, scenario.type, this.createColumnType(scenario), null, null, null, null, null, null);
|
|
38
47
|
}
|
|
39
48
|
header.push(headerRow);
|
|
40
49
|
header.push(separatorRow);
|
|
41
50
|
return header;
|
|
42
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Creates the spanning interval band row (e.g. `2023 | 2024 | 2025`) rendered
|
|
54
|
+
* above the scenario label row. Leading non-interval columns (category,
|
|
55
|
+
* operation, attributes) receive borderless filler cells; each run of
|
|
56
|
+
* consecutive columns of the same bucket is spanned by one label cell.
|
|
57
|
+
*/
|
|
58
|
+
createIntervalBandRow() {
|
|
59
|
+
const bandRow = new TableRow(0, 0, TableRowType.HEADER);
|
|
60
|
+
let index = 0;
|
|
61
|
+
while (index < this.normalizedHeader.length) {
|
|
62
|
+
const column = this.normalizedHeader[index];
|
|
63
|
+
if (column.bucket === undefined) {
|
|
64
|
+
bandRow.createElement(null, column.type, "filler", null, null, null, null, null, null);
|
|
65
|
+
index += 1;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
let runLength = 1;
|
|
69
|
+
while (index + runLength < this.normalizedHeader.length &&
|
|
70
|
+
this.normalizedHeader[index + runLength].bucket === column.bucket) {
|
|
71
|
+
runLength += 1;
|
|
72
|
+
}
|
|
73
|
+
bandRow.createElement(column.bucketLabel, column.type, "intervalGroup", null, null, null, null, null, null, false, undefined, runLength);
|
|
74
|
+
index += runLength;
|
|
75
|
+
}
|
|
76
|
+
return bandRow;
|
|
77
|
+
}
|
|
43
78
|
setHeaderPrefix(scenario, i18n, measureScale, measureUnit, showMeasureScale) {
|
|
44
79
|
let prefix = "";
|
|
45
80
|
if (scenario.name === "category" && showMeasureScale) {
|
|
@@ -58,7 +93,7 @@ export class TableDataSetFactory {
|
|
|
58
93
|
* depending of table type operation column is used (OPT) or not (SUM | LIST)
|
|
59
94
|
* in addition the headers are sorted based on the ruleset and duplicates are removed
|
|
60
95
|
*/
|
|
61
|
-
normalizeHeader(type, scenarios) {
|
|
96
|
+
normalizeHeader(type, scenarios, attributes) {
|
|
62
97
|
let header = [
|
|
63
98
|
{
|
|
64
99
|
name: QueryColumnNames.CATEGORY,
|
|
@@ -83,32 +118,49 @@ export class TableDataSetFactory {
|
|
|
83
118
|
},
|
|
84
119
|
];
|
|
85
120
|
}
|
|
121
|
+
// attribute columns sit between the category column and the scenario columns
|
|
122
|
+
const attributeColumns = attributes.map((attribute) => ({
|
|
123
|
+
name: attribute.alias,
|
|
124
|
+
group: attribute.alias,
|
|
125
|
+
type: attribute.alias,
|
|
126
|
+
order: undefined,
|
|
127
|
+
}));
|
|
86
128
|
// NOTE: scenarios are already sorted in setConfig
|
|
87
|
-
return [...header, ...scenarios];
|
|
129
|
+
return [...header, ...attributeColumns, ...scenarios];
|
|
88
130
|
}
|
|
89
131
|
/**
|
|
90
132
|
* Creates table data colelction,
|
|
91
133
|
* eachh row consists of data columns and 'spacer' columns which are needed to seperate
|
|
92
134
|
* the columns correctyl (IBCS style)
|
|
93
135
|
*/
|
|
94
|
-
createBodyRows(config, i18n,
|
|
136
|
+
createBodyRows(config, i18n, db, fromExpr) {
|
|
137
|
+
var _a;
|
|
95
138
|
const bodyRows = [];
|
|
96
139
|
let iGroupIndex = -1; // index used in detailRow JSON to count the current group
|
|
97
|
-
const queryData = new DataQuery(config, i18n).execute(
|
|
140
|
+
const queryData = new DataQuery(config, i18n).execute(db, fromExpr); // collection of all query results
|
|
98
141
|
// Calculate column statistics for bar columns
|
|
99
|
-
const columnStatsMap = this.calculateColumnStatistics(queryData, config.barColumns);
|
|
142
|
+
const columnStatsMap = this.calculateColumnStatistics(queryData, config.barColumns, config.interval !== INTERVAL_NONE);
|
|
143
|
+
// Scenario bar columns render as a waterfall when grouping structure is present;
|
|
144
|
+
// interval/columnthereof composite columns are excluded and render as today
|
|
145
|
+
const waterfallColumns = ((_a = config.barColumns) !== null && _a !== void 0 ? _a : []).filter((column) => column.toUpperCase().trim() in Scenarios);
|
|
146
|
+
const waterfallResult = waterfallColumns.length > 0 &&
|
|
147
|
+
config.interval === INTERVAL_NONE &&
|
|
148
|
+
config.categoryThereOf.size === 0 &&
|
|
149
|
+
hasGroupingStructure(queryData)
|
|
150
|
+
? computeWaterfall(queryData, waterfallColumns, config.type)
|
|
151
|
+
: undefined;
|
|
100
152
|
for (const groupData of queryData) {
|
|
101
153
|
// groupData is a collection of dataRows, each group base on a query and represents a 'row' group
|
|
102
154
|
iGroupIndex += 1;
|
|
103
155
|
const iRowIndex = -1;
|
|
104
|
-
bodyRows.push(...this.createRow(config.i18n, i18n, config.scenariosUnitType, groupData, iGroupIndex, iRowIndex, config.categoryWidth, config.measureScale, config.barColumns, columnStatsMap));
|
|
156
|
+
bodyRows.push(...this.createRow(config.i18n, i18n, config.scenariosUnitType, groupData, iGroupIndex, iRowIndex, config.categoryWidth, config.measureScale, config.barColumns, columnStatsMap, waterfallResult));
|
|
105
157
|
}
|
|
106
158
|
return bodyRows;
|
|
107
159
|
}
|
|
108
160
|
/**
|
|
109
161
|
* Calculate min/max statistics for bar chart columns across all query data.
|
|
110
162
|
*/
|
|
111
|
-
calculateColumnStatistics(queryData, barColumns) {
|
|
163
|
+
calculateColumnStatistics(queryData, barColumns, intervalActive = false) {
|
|
112
164
|
const statsMap = new Map();
|
|
113
165
|
if (!barColumns || barColumns.length === 0) {
|
|
114
166
|
return statsMap;
|
|
@@ -123,12 +175,19 @@ export class TableDataSetFactory {
|
|
|
123
175
|
for (const groupData of queryData) {
|
|
124
176
|
for (const row of groupData) {
|
|
125
177
|
for (const column of barColumns) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
178
|
+
// with an active interval the rendered values live under the
|
|
179
|
+
// `column##bucket` keys; the plain column would hold the (larger)
|
|
180
|
+
// un-bucketed aggregate and skew the bar scaling
|
|
181
|
+
const values = intervalActive
|
|
182
|
+
? this.extractIntervalColumnValues(row, column)
|
|
183
|
+
: [this.extractColumnValue(row, column)];
|
|
184
|
+
for (const value of values) {
|
|
185
|
+
if (value !== null && !isNaN(value)) {
|
|
186
|
+
const stats = statsMap.get(column);
|
|
187
|
+
stats.min = Math.min(stats.min, value);
|
|
188
|
+
stats.max = Math.max(stats.max, value);
|
|
189
|
+
valuesMap.get(column).push(Math.abs(value));
|
|
190
|
+
}
|
|
132
191
|
}
|
|
133
192
|
}
|
|
134
193
|
}
|
|
@@ -150,6 +209,20 @@ export class TableDataSetFactory {
|
|
|
150
209
|
}
|
|
151
210
|
return statsMap;
|
|
152
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* Extract all per-bucket values of an interval column (`column##<bucketKey>`).
|
|
214
|
+
*/
|
|
215
|
+
extractIntervalColumnValues(row, column) {
|
|
216
|
+
const prefix = column + "##";
|
|
217
|
+
const values = [];
|
|
218
|
+
for (const key of Object.keys(row)) {
|
|
219
|
+
if (key.startsWith(prefix)) {
|
|
220
|
+
const val = Number(row[key]);
|
|
221
|
+
values.push(isNaN(val) ? null : val);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return values;
|
|
225
|
+
}
|
|
153
226
|
/**
|
|
154
227
|
* Extract a numeric value from a row for a given column name.
|
|
155
228
|
* Handles the various naming conventions used in the table data.
|
|
@@ -187,7 +260,7 @@ export class TableDataSetFactory {
|
|
|
187
260
|
* @param barColumns
|
|
188
261
|
* @param columnStatsMap
|
|
189
262
|
*/
|
|
190
|
-
createRow(i18nMode, i18n, scenariosUnitType, groupData, iGroupIndex, iRowIndex, categoryWidth, measureScale, barColumns, columnStatsMap) {
|
|
263
|
+
createRow(i18nMode, i18n, scenariosUnitType, groupData, iGroupIndex, iRowIndex, categoryWidth, measureScale, barColumns, columnStatsMap, waterfallResult) {
|
|
191
264
|
var _a;
|
|
192
265
|
const result = [];
|
|
193
266
|
for (const rawDataRow of groupData) {
|
|
@@ -202,13 +275,24 @@ export class TableDataSetFactory {
|
|
|
202
275
|
const value = this.getRawDataRowElement(rawDataRow, scenario);
|
|
203
276
|
const isBarChart = (_a = barColumns === null || barColumns === void 0 ? void 0 : barColumns.includes(scenario.type)) !== null && _a !== void 0 ? _a : false;
|
|
204
277
|
const columnStats = isBarChart ? columnStatsMap === null || columnStatsMap === void 0 ? void 0 : columnStatsMap.get(scenario.type) : undefined;
|
|
205
|
-
|
|
278
|
+
// waterfall geometry only exists for plain scenario columns (no ## composites)
|
|
279
|
+
const waterfall = isBarChart &&
|
|
280
|
+
scenario.bucket === undefined &&
|
|
281
|
+
scenario.name === scenario.group &&
|
|
282
|
+
scenario.name === scenario.type
|
|
283
|
+
? waterfallResult === null || waterfallResult === void 0 ? void 0 : waterfallResult.get(rawDataRow, scenario.type)
|
|
284
|
+
: undefined;
|
|
285
|
+
detailsRow.createElement(this.translateSumCellLabel(i18nMode, i18n, value, groupName, subCategory, type, scenario.type), scenario.type, this.createColumnType(scenario), this.setCellType(scenario.type, scenariosUnitType), this.translateCellPrefix(i18n, type, scenario.type), this.translateScenarioCSS(scenario.type, value), isSecondElement, categoryWidth, measureScale === null || measureScale === void 0 ? void 0 : measureScale.value, isBarChart, columnStats, 1, waterfall);
|
|
206
286
|
}
|
|
207
287
|
result.push(detailsRow);
|
|
208
288
|
}
|
|
209
289
|
return result;
|
|
210
290
|
}
|
|
211
291
|
getRawDataRowElement(rawDataRow, scenario) {
|
|
292
|
+
if (scenario.bucket !== undefined) {
|
|
293
|
+
// interval column: value lives under the composite bucket key
|
|
294
|
+
return rawDataRow[scenario.type + "##" + scenario.bucket];
|
|
295
|
+
}
|
|
212
296
|
if (scenario.name === scenario.group && scenario.name === scenario.type) {
|
|
213
297
|
// Default Sum Scenario (e.g. AC)
|
|
214
298
|
return rawDataRow[scenario.name];
|
|
@@ -256,6 +340,10 @@ export class TableDataSetFactory {
|
|
|
256
340
|
* @param subCategory
|
|
257
341
|
*/
|
|
258
342
|
translateSumCellLabel(i18nMode, i18n, value, rowGroup, subCategory, type, scenario) {
|
|
343
|
+
if (this.attributesByAlias.has(scenario)) {
|
|
344
|
+
// attribute values render verbatim; rows without the column (e.g. SUM) stay blank
|
|
345
|
+
return value;
|
|
346
|
+
}
|
|
259
347
|
if (Number.isNaN(Number(value)) === false) {
|
|
260
348
|
return value;
|
|
261
349
|
}
|
|
@@ -269,7 +357,9 @@ export class TableDataSetFactory {
|
|
|
269
357
|
return value;
|
|
270
358
|
}
|
|
271
359
|
if (this.isEntryCategory(type, scenario)) {
|
|
272
|
-
|
|
360
|
+
// "REST" is always translated, like SUM_TOTAL below: it is not a data
|
|
361
|
+
// value but the engine's own label for the limit-overflow row.
|
|
362
|
+
if (i18nMode === I18nMode.ALL || value === "REST") {
|
|
273
363
|
return `${i18n.get(value) || value}`;
|
|
274
364
|
}
|
|
275
365
|
return value;
|
|
@@ -313,6 +403,9 @@ export class TableDataSetFactory {
|
|
|
313
403
|
* @param value
|
|
314
404
|
*/
|
|
315
405
|
translateScenarioCSS(scenario, value) {
|
|
406
|
+
if (this.attributesByAlias.has(scenario)) {
|
|
407
|
+
return "attribute";
|
|
408
|
+
}
|
|
316
409
|
const scenarios = new VarianceScenario(scenario);
|
|
317
410
|
let prefix = "pos";
|
|
318
411
|
if (value < 0) {
|
|
@@ -327,6 +420,10 @@ export class TableDataSetFactory {
|
|
|
327
420
|
if (scenario === "category") {
|
|
328
421
|
return "";
|
|
329
422
|
}
|
|
423
|
+
const attribute = this.attributesByAlias.get(scenario);
|
|
424
|
+
if (attribute) {
|
|
425
|
+
return attribute.isNumeric ? "decimal" : "";
|
|
426
|
+
}
|
|
330
427
|
let unitType;
|
|
331
428
|
const scenarios = new VarianceScenario(scenario);
|
|
332
429
|
if (scenariosUnitType === DataFormat.PERCENT) {
|