@bino-bi/bn-template-engine 1.0.0-alpha.16 → 1.0.0-alpha.18
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-0107f0cc.entry.js +1 -0
- package/dist/bn-template-engine/p-209351c9.entry.js +1 -0
- package/dist/bn-template-engine/p-22d0fb7a.entry.js +1 -0
- package/dist/bn-template-engine/p-2e6dc267.entry.js +1 -0
- package/dist/bn-template-engine/p-485d23d7.entry.js +1 -0
- package/dist/bn-template-engine/p-5651417d.entry.js +1 -0
- package/dist/bn-template-engine/p-5bfdc1e5.entry.js +1 -0
- package/dist/bn-template-engine/p-6b75762d.entry.js +1 -0
- package/dist/bn-template-engine/{p-ff659485.entry.js → p-7bdc0e28.entry.js} +1 -1
- package/dist/bn-template-engine/p-9879c9b2.entry.js +1 -0
- package/dist/bn-template-engine/p-BA48JiHe.js +1 -0
- package/dist/bn-template-engine/p-BWKdb9ym.js +1 -0
- package/dist/bn-template-engine/p-BZV1b5VH.js +1 -0
- package/dist/bn-template-engine/p-Bdfxd_Ke.js +1 -0
- package/dist/bn-template-engine/p-BqhIhYr1.js +1 -0
- package/dist/bn-template-engine/p-C0Pwqx-O.js +1 -0
- package/dist/bn-template-engine/p-CBqUr7I8.js +1 -0
- package/dist/bn-template-engine/{p-BPDZcex5.js → p-CPzF3Q2m.js} +1 -1
- package/dist/bn-template-engine/p-CiudZRQr.js +1 -0
- package/dist/bn-template-engine/p-Dg9OcXAO.js +1 -0
- package/dist/bn-template-engine/p-DsTzlzxQ.js +1 -0
- package/dist/bn-template-engine/p-X6CxL6W-.js +1 -0
- package/dist/bn-template-engine/p-a130cb43.entry.js +1 -0
- package/dist/bn-template-engine/p-aakBGfzL.js +1 -0
- package/dist/bn-template-engine/p-dc745c32.entry.js +1 -0
- package/dist/bn-template-engine/p-e96da91f.entry.js +1 -0
- package/dist/bn-template-engine/p-f3d1fa06.entry.js +1 -0
- package/dist/bn-template-engine/p-fcb43f2c.entry.js +1 -0
- package/dist/bn-template-engine/p-rdqTC0_5.js +1 -0
- package/dist/cjs/AxisConfig-VnVelfSV.js +233 -0
- package/dist/cjs/LabelCollisionManager-nfD5P__k.js +412 -0
- package/dist/cjs/NumericScale-BAyYXpKL.js +107 -0
- package/dist/cjs/Order-DobBozQC.js +87 -0
- package/dist/cjs/SVGStyle-BQOmGWLX.js +8209 -0
- package/dist/cjs/SVGVariancesStyleGroup-DCGfHrqh.js +50 -0
- package/dist/cjs/VarianceMeasure-NY9yhiNV.js +372 -0
- package/dist/cjs/XYChartDataRow-B7OKrAcC.js +829 -0
- package/dist/cjs/bn-asset_21.cjs.entry.js +1614 -9670
- 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 +2 -2
- 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-Cn5PL928.js → context-protocol-BDrMkhc4.js} +272 -1
- package/dist/cjs/editor-companion.cjs.entry.js +2 -2
- 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-p0wXIWFg.js +350 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sanitizeHtml-LuZr1IMd.js +85 -0
- package/dist/cjs/{scaling-DM2UILdF.js → scaling-BmqxcNOf.js} +1 -1
- package/dist/cjs/withScalingGroup-BmcRlWBs.js +73 -0
- package/dist/cjs/{withStyled-Dx3uRw9g.js → withStyled-CRiC9fzc.js} +44 -383
- package/dist/collection/collection-manifest.json +7 -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 +23 -2
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +29 -4
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +3 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +27 -4
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +29 -4
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +16 -4
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -3
- package/dist/collection/components/bn-component-style/bn-component-style.js +1 -1
- package/dist/collection/components/bn-context/bn-context.js +1 -1
- package/dist/collection/components/bn-dataset/bn-dataset.js +1 -1
- package/dist/collection/components/bn-datasource/bn-datasource.js +1 -1
- package/dist/collection/components/bn-footer/bn-footer.js +1 -1
- package/dist/collection/components/bn-grid/bn-grid.js +1 -1
- package/dist/collection/components/bn-image/bn-image.js +1 -1
- package/dist/collection/components/bn-internationalization/bn-internationalization.js +1 -1
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +26 -3
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +33 -4
- 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.js +1 -1
- package/dist/collection/components/bn-table/bn-table.js +146 -14
- package/dist/collection/components/bn-table/ibcs-table.css +8 -0
- package/dist/collection/components/bn-table/ibcs-table.js +64 -8
- package/dist/collection/components/bn-table/utils/Table.js +43 -5
- 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 +87 -15
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +284 -3
- package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +140 -0
- 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/TableComponentConfig.js +10 -0
- 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 +27 -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 +29 -3
- package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +3 -0
- package/dist/collection/components/editor-companion/editor-companion.js +1 -1
- package/dist/collection/stores/componentStyles.js +67 -0
- package/dist/collection/stores/createScopedStores.js +6 -1
- package/dist/collection/stores/internationalization.js +68 -0
- package/dist/collection/stores/ruleSets.js +46 -0
- package/dist/collection/utils/constants.js +5 -0
- package/dist/collection/utils/ibcsRuleSet.js +14 -26
- package/dist/collection/utils/sanitizeHtml.js +81 -0
- package/dist/collection/utils/validate.js +24 -0
- package/dist/collection/utils/withComponentStyle.js +3 -5
- package/dist/collection/utils/withInheritedProps.js +1 -1
- package/dist/collection/utils/withRuleSet.js +105 -0
- package/dist/collection/utils/withScalingGroup.js +3 -0
- 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/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-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.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/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 -1
- package/dist/components/luxon.js +1 -1
- 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/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/esm/AxisConfig-C_zWCKlL.js +224 -0
- package/dist/esm/LabelCollisionManager-8swVQHKA.js +404 -0
- package/dist/esm/NumericScale-DsTzlzxQ.js +105 -0
- package/dist/esm/Order-BPeWfygb.js +83 -0
- package/dist/esm/SVGStyle-BxEDw9zh.js +8199 -0
- package/dist/esm/SVGVariancesStyleGroup-DRQYvSDD.js +48 -0
- package/dist/esm/VarianceMeasure-DnwNKspZ.js +364 -0
- package/dist/esm/XYChartDataRow-DeV4r-Wm.js +820 -0
- package/dist/esm/bn-asset_21.entry.js +1127 -9183
- 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 +2 -2
- 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-BB-4Onmw.js → context-protocol-1Yj1uKvh.js} +268 -2
- package/dist/esm/editor-companion.entry.js +2 -2
- 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-DCbmpGrz.js +345 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sanitizeHtml-BA48JiHe.js +83 -0
- package/dist/esm/{scaling-h4KcBet3.js → scaling-B_k50v9z.js} +2 -2
- package/dist/esm/withScalingGroup-Br70pAv9.js +71 -0
- package/dist/esm/{withStyled-BBvU2f-A.js → withStyled-Br2DGTPs.js} +30 -367
- 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 +7 -0
- package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +2 -0
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +1 -0
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +10 -1
- package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +2 -0
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +1 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +10 -0
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +14 -0
- 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-table/bn-table.d.ts +38 -5
- package/dist/types/components/bn-table/ibcs-table.d.ts +8 -1
- package/dist/types/components/bn-table/utils/Table.d.ts +8 -0
- 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 +13 -7
- package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +17 -0
- package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +37 -0
- 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/TableComponentConfig.d.ts +4 -0
- package/dist/types/components/bn-table/utils/model/index.d.ts +21 -0
- package/dist/types/components/bn-title/bn-title.d.ts +11 -1
- package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +2 -0
- package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +1 -0
- package/dist/types/components.d.ts +1383 -82
- package/dist/types/context/context-protocol.d.ts +2 -0
- package/dist/types/stores/componentStyles.d.ts +41 -0
- package/dist/types/stores/createScopedStores.d.ts +2 -0
- package/dist/types/stores/ruleSets.d.ts +40 -0
- package/dist/types/utils/constants.d.ts +5 -0
- package/dist/types/utils/ibcsRuleSet.d.ts +6 -1
- package/dist/types/utils/model/ChartStyles.d.ts +2 -1
- package/dist/types/utils/sanitizeHtml.d.ts +6 -0
- package/dist/types/utils/validate.d.ts +12 -0
- package/dist/types/utils/withInheritedProps.d.ts +11 -0
- package/dist/types/utils/withRuleSet.d.ts +24 -0
- 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 +1 -1
- package/readme.md +7 -3
- package/dist/bn-template-engine/p-19f49fbc.entry.js +0 -1
- package/dist/bn-template-engine/p-3465fcdc.entry.js +0 -1
- package/dist/bn-template-engine/p-67746414.entry.js +0 -1
- package/dist/bn-template-engine/p-6b469808.entry.js +0 -1
- package/dist/bn-template-engine/p-86ca2d5e.entry.js +0 -1
- package/dist/bn-template-engine/p-Tx6omDWp.js +0 -1
- package/dist/bn-template-engine/p-d724ab88.entry.js +0 -1
- package/dist/bn-template-engine/p-efd3b67a.entry.js +0 -1
- package/dist/bn-template-engine/p-z9bPNFYF.js +0 -1
- package/dist/components/ibcsRuleSet.js +0 -1
- package/dist/components/scaling.js +0 -1
- package/dist/components/withInheritedProps.js +0 -1
|
@@ -75,7 +75,7 @@ export class IbcsChartTime {
|
|
|
75
75
|
const config = this.prepareConfig();
|
|
76
76
|
const styles = this.prepareStyle();
|
|
77
77
|
const availableWidth = this.containerWidth || 0;
|
|
78
|
-
this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
78
|
+
this.chart = new TimeChart(new IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
79
79
|
this.chart.setI18n(this.i18n);
|
|
80
80
|
this.autoFitScaling(config, styles);
|
|
81
81
|
this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
|
|
@@ -92,6 +92,7 @@ export class IbcsChartTime {
|
|
|
92
92
|
this.chart.setI18n(this.i18n);
|
|
93
93
|
this.chart.setStyles(styles);
|
|
94
94
|
this.chart.setAvailableWidth(this.containerWidth || 0);
|
|
95
|
+
this.chart.setRuleSet(new IBCSRuleSet(this.ruleSetConfig));
|
|
95
96
|
this.chart.setConfig(config);
|
|
96
97
|
this.autoFitScaling(config, styles);
|
|
97
98
|
this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
|
|
@@ -118,7 +119,7 @@ export class IbcsChartTime {
|
|
|
118
119
|
config.pixelPerUnit = 1;
|
|
119
120
|
if (autoPercent)
|
|
120
121
|
config.pixelPerPercentage = 50;
|
|
121
|
-
this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
122
|
+
this.chart = new TimeChart(new IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
122
123
|
this.chart.setI18n(this.i18n);
|
|
123
124
|
return;
|
|
124
125
|
}
|
|
@@ -127,7 +128,7 @@ export class IbcsChartTime {
|
|
|
127
128
|
config.pixelPerUnit = 1;
|
|
128
129
|
if (autoPercent)
|
|
129
130
|
config.pixelPerPercentage = 1;
|
|
130
|
-
this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
131
|
+
this.chart = new TimeChart(new IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
131
132
|
this.chart.setI18n(this.i18n);
|
|
132
133
|
this.chart.toString();
|
|
133
134
|
const svgHeight = this.chart.getAllocatedCanvasHeight();
|
|
@@ -141,7 +142,7 @@ export class IbcsChartTime {
|
|
|
141
142
|
if (autoPercent)
|
|
142
143
|
config.pixelPerPercentage = ratio;
|
|
143
144
|
// Second pass with the corrected scaling
|
|
144
|
-
this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
145
|
+
this.chart = new TimeChart(new IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
|
|
145
146
|
this.chart.setI18n(this.i18n);
|
|
146
147
|
}
|
|
147
148
|
async componentWillRender() {
|
|
@@ -860,6 +861,30 @@ export class IbcsChartTime {
|
|
|
860
861
|
"getter": false,
|
|
861
862
|
"setter": false,
|
|
862
863
|
"defaultValue": "{ width: 0, height: 0 }"
|
|
864
|
+
},
|
|
865
|
+
"ruleSetConfig": {
|
|
866
|
+
"type": "unknown",
|
|
867
|
+
"mutable": false,
|
|
868
|
+
"complexType": {
|
|
869
|
+
"original": "RuleSetConfig",
|
|
870
|
+
"resolved": "RuleSetConfig",
|
|
871
|
+
"references": {
|
|
872
|
+
"RuleSetConfig": {
|
|
873
|
+
"location": "import",
|
|
874
|
+
"path": "../../stores/ruleSets",
|
|
875
|
+
"id": "src/stores/ruleSets.ts::RuleSetConfig",
|
|
876
|
+
"referenceLocation": "RuleSetConfig"
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
"required": false,
|
|
881
|
+
"optional": true,
|
|
882
|
+
"docs": {
|
|
883
|
+
"tags": [],
|
|
884
|
+
"text": ""
|
|
885
|
+
},
|
|
886
|
+
"getter": false,
|
|
887
|
+
"setter": false
|
|
863
888
|
}
|
|
864
889
|
};
|
|
865
890
|
}
|
|
@@ -9,7 +9,7 @@ import { ScaleFactorsTimeChart } from "./model/styles/ScaleFactorsTimeChart";
|
|
|
9
9
|
import { DateTime } from "luxon";
|
|
10
10
|
import { buildFromExpr } from "../../../context/scopedDb";
|
|
11
11
|
import { DateDistance, DateStringFactory } from "../../../utils/DateStringFactory";
|
|
12
|
-
import { AxisLabelsMode, ChartMode, StackBy, StackMode } from "../../../utils/constants";
|
|
12
|
+
import { AxisLabelsMode, ChartMode, RELATIVE_STACK_UNITS, StackBy, StackMode, } from "../../../utils/constants";
|
|
13
13
|
import { getScenarioPrefix, IBCS_LAYER_ORDER } from "../../../utils/stackColors";
|
|
14
14
|
import { Formatter } from "../../../utils";
|
|
15
15
|
import { IBCSRuleSet } from "../../../utils/ibcsRuleSet";
|
|
@@ -102,6 +102,9 @@ export class TimeChart {
|
|
|
102
102
|
setStyles(newStyle) {
|
|
103
103
|
this.styles = newStyle;
|
|
104
104
|
}
|
|
105
|
+
setRuleSet(ruleSet) {
|
|
106
|
+
this.ruleSet = ruleSet || new IBCSRuleSet();
|
|
107
|
+
}
|
|
105
108
|
setAvailableWidth(w) {
|
|
106
109
|
this.availableWidth = w;
|
|
107
110
|
}
|
|
@@ -401,6 +404,7 @@ export class TimeChart {
|
|
|
401
404
|
return new Map([...defaultI18n, ...i18n]);
|
|
402
405
|
}
|
|
403
406
|
createElementPosition(scenarios) {
|
|
407
|
+
var _a;
|
|
404
408
|
let maxLabelLengthLeft;
|
|
405
409
|
// only need scenarios written on the leftside of bar/ marker
|
|
406
410
|
const scenarioLabelLeft = CalculateSize(scenarios
|
|
@@ -436,6 +440,12 @@ export class TimeChart {
|
|
|
436
440
|
min = this.smallestDataPointValue;
|
|
437
441
|
max = this.highestDataPointValue;
|
|
438
442
|
}
|
|
443
|
+
// In relative (100%) stacking the vertical domain is 0..RELATIVE_STACK_UNITS percent,
|
|
444
|
+
// not the raw data values — use a virtual max so axis position, canvas height and
|
|
445
|
+
// auto-fit all agree on the percent domain.
|
|
446
|
+
if (((_a = this.stackConfig) === null || _a === void 0 ? void 0 : _a.mode) === StackMode.RELATIVE) {
|
|
447
|
+
max = new DataPoint(RELATIVE_STACK_UNITS, max.scenario, this.pixelPerUnit, max.variance);
|
|
448
|
+
}
|
|
439
449
|
// When overflow config is active, create a virtual max so the coordinate system
|
|
440
450
|
// allocates exactly cutHeight + breakGap + overdriveZoneHeight instead of the
|
|
441
451
|
// full (clipped) bar height.
|
|
@@ -1167,7 +1177,9 @@ export class TimeChart {
|
|
|
1167
1177
|
groups.forEach((group, groupIdx) => {
|
|
1168
1178
|
const groupTotal = group.segments.reduce((sum, s) => sum + Math.abs(s.value), 0);
|
|
1169
1179
|
const pixelPerUnit = group.segments[0].dataPoint.pixelPerUnit;
|
|
1170
|
-
const groupPixelHeight = this.stackConfig.mode === StackMode.RELATIVE
|
|
1180
|
+
const groupPixelHeight = this.stackConfig.mode === StackMode.RELATIVE
|
|
1181
|
+
? RELATIVE_STACK_UNITS * pixelPerUnit
|
|
1182
|
+
: groupTotal * pixelPerUnit;
|
|
1171
1183
|
// The front-most group (drawn last, e.g. AC) is fully visible, so its
|
|
1172
1184
|
// label is centered on the bar. Back groups are mostly hidden behind it
|
|
1173
1185
|
// and only peek out at the top, so their labels align with the bar's top edge.
|
|
@@ -1190,7 +1202,7 @@ export class TimeChart {
|
|
|
1190
1202
|
let segmentHeight;
|
|
1191
1203
|
if (this.stackConfig.mode === StackMode.RELATIVE) {
|
|
1192
1204
|
const proportion = total !== 0 ? Math.abs(seg.value) / total : 0;
|
|
1193
|
-
segmentHeight = proportion * pixelPerUnit;
|
|
1205
|
+
segmentHeight = proportion * RELATIVE_STACK_UNITS * pixelPerUnit;
|
|
1194
1206
|
}
|
|
1195
1207
|
else {
|
|
1196
1208
|
segmentHeight = Math.abs(seg.value * pixelPerUnit);
|
|
@@ -1273,7 +1285,7 @@ export class TimeChart {
|
|
|
1273
1285
|
x: this.position.getColumnCenterPositionX(idx),
|
|
1274
1286
|
y: axisY -
|
|
1275
1287
|
(stackMode === StackMode.RELATIVE
|
|
1276
|
-
? val * pixelPerUnit //
|
|
1288
|
+
? val * RELATIVE_STACK_UNITS * pixelPerUnit // val is a 0..1 cumulative proportion
|
|
1277
1289
|
: val * pixelPerUnit),
|
|
1278
1290
|
}));
|
|
1279
1291
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookLocation, Label } from "./Label";
|
|
2
2
|
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
3
|
-
import { StackMode } from "../../../../utils/constants";
|
|
3
|
+
import { RELATIVE_STACK_UNITS, StackMode } from "../../../../utils/constants";
|
|
4
4
|
/**
|
|
5
5
|
* Renders a single segment within a stacked bar column in a time chart.
|
|
6
6
|
*
|
|
@@ -44,8 +44,8 @@ export class StackedColumn {
|
|
|
44
44
|
if (this.stackMode === StackMode.RELATIVE) {
|
|
45
45
|
// 100% stacked: segment height is proportion of total
|
|
46
46
|
const proportion = this.totalValue !== 0 ? Math.abs(value) / Math.abs(this.totalValue) : 0;
|
|
47
|
-
//
|
|
48
|
-
const totalPixelHeight =
|
|
47
|
+
// Full stack spans RELATIVE_STACK_UNITS percent; pixelPerUnit = pixels per percentage point
|
|
48
|
+
const totalPixelHeight = RELATIVE_STACK_UNITS * pixelPerUnit;
|
|
49
49
|
segmentHeight = proportion * totalPixelHeight;
|
|
50
50
|
const baselinePixels = (this.baselineValue / Math.abs(this.totalValue)) * totalPixelHeight;
|
|
51
51
|
yPos = axisY - baselinePixels - segmentHeight;
|
|
@@ -28,7 +28,7 @@ export class ComponentStyle {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return h(Host, { key: '
|
|
31
|
+
return h(Host, { key: '9138ba4914f990823213f637bdc65274669bfe86' });
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "bn-component-style"; }
|
|
34
34
|
static get originalStyleUrls() {
|
|
@@ -49,7 +49,7 @@ export class Context {
|
|
|
49
49
|
componentWillUpdate() { }
|
|
50
50
|
componentDidUpdate() { }
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: 'f4f3a64c06e0cd8fa4863007ba25cacc74194e45' }, h("slot", { key: 'ee5dd7d7065107f657f1d92cdf91eedbd94f8f81' })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "bn-context"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -280,7 +280,7 @@ export class Dataset {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
render() {
|
|
283
|
-
return h(Host, { key: '
|
|
283
|
+
return h(Host, { key: 'bfa62b924abb8097cd9bad75eb71ab38caf02267' });
|
|
284
284
|
}
|
|
285
285
|
static get is() { return "bn-dataset"; }
|
|
286
286
|
static get originalStyleUrls() {
|
|
@@ -178,7 +178,7 @@ export class Datasource {
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
render() {
|
|
181
|
-
return h(Host, { key: '
|
|
181
|
+
return h(Host, { key: '4beaa62937dea949255669bfd5008a2928e460fc' });
|
|
182
182
|
}
|
|
183
183
|
static get is() { return "bn-datasource"; }
|
|
184
184
|
static get originalStyleUrls() {
|
|
@@ -45,7 +45,7 @@ export class Footer {
|
|
|
45
45
|
return `./assets/${imgUrl}.png`;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '666fa787056f32825c15427f2a6c15b971fbc25e', id: this.displayPageNumber || this.text || this.code ? "container-page-footer" : "container", style: this.getFontStyles() }, h("div", { key: '691752d51748c4e1eb7ec25d380c00ddf0095c83', id: "footer-text" }, this.text != null ? h("span", { class: "note" }, this.text) : ""), h("div", { key: '561a81e063e110ef6386fb0056a05f1b6a0e0f44', id: "code" }, this.code != null ? h("img", { class: "image", src: getAssetPath(`${this.prepareAssetUrl(this.code)}`) }) : ""), h("div", { key: '963658fcff1a6dd07b448f85e8d170000422e3cc', id: "page-number" }, this.displayPageNumber ? h("span", { class: "page" }, this.pageNumber) : "")));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "bn-footer"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -262,7 +262,7 @@ export class Grid {
|
|
|
262
262
|
"grid-template-rows": this.getGridTemplateRows(),
|
|
263
263
|
gap: this.cellGap,
|
|
264
264
|
};
|
|
265
|
-
return (h(Host, { key: '
|
|
265
|
+
return (h(Host, { key: '05d4b729414b87446a98ea2f98552e8c17e3f4e1', style: this.getFontStyles() }, h("div", { key: 'dd2325babb734553c8661e2e18c0ab12f59e0c9f', class: "grid-container", style: gridContainerStyle }, this.renderTitle(), this.renderColumnHeaders(), this.renderDataCells()), h("slot", { key: '30cab0c8effc88704e781ff48e9295aa3cc9c954' })));
|
|
266
266
|
}
|
|
267
267
|
static get is() { return "bn-grid"; }
|
|
268
268
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class Image {
|
|
|
37
37
|
return assetsState[value] || value;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'cfa7e1b2978773f449f6596174edf51e4a61d4d7', style: this.getFontStyles() }, this.source != null && this.source !== "" ? h("img", { src: this.prepareAssetUrl(this.source) }) : ""));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "bn-image"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class Internationalization {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return h(Host, { key: '
|
|
28
|
+
return h(Host, { key: 'be9f6b1dc6c60ef5559ad47228e612ee74b0c80c' });
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "bn-internationalization"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -21,6 +21,8 @@ export class LayoutCard {
|
|
|
21
21
|
* Name of the business unit displayed in the title header row.
|
|
22
22
|
* If empty, the business unit row is omitted.
|
|
23
23
|
*
|
|
24
|
+
* Rendered as sanitized HTML, so inline markup is supported.
|
|
25
|
+
*
|
|
24
26
|
* @example
|
|
25
27
|
* <bn-layout-card title-business-unit="Sales"></bn-layout-card>
|
|
26
28
|
*/
|
|
@@ -136,6 +138,7 @@ export class LayoutCard {
|
|
|
136
138
|
{ propName: "titleVariances", ancestorAttr: "title-variances" },
|
|
137
139
|
{ propName: "titleOrder", ancestorAttr: "title-order" },
|
|
138
140
|
{ propName: "titleOrderDirection", ancestorAttr: "title-order-direction" },
|
|
141
|
+
{ propName: "ruleset", ancestorAttr: "ruleset" },
|
|
139
142
|
]);
|
|
140
143
|
}
|
|
141
144
|
connectedCallback() {
|
|
@@ -251,6 +254,7 @@ export class LayoutCard {
|
|
|
251
254
|
{ prop: "titleVariances", attr: "title-variances" },
|
|
252
255
|
{ prop: "titleOrder", attr: "title-order" },
|
|
253
256
|
{ prop: "titleOrderDirection", attr: "title-order-direction" },
|
|
257
|
+
{ prop: "ruleset", attr: "ruleset" },
|
|
254
258
|
];
|
|
255
259
|
for (const { prop, attr } of mappings) {
|
|
256
260
|
const resolved = this.resolveInherited(prop, this[prop]);
|
|
@@ -271,10 +275,10 @@ export class LayoutCard {
|
|
|
271
275
|
return assetsState[value] || value;
|
|
272
276
|
}
|
|
273
277
|
render() {
|
|
274
|
-
var _a, _b, _c, _d;
|
|
278
|
+
var _a, _b, _c, _d, _e;
|
|
275
279
|
const style = this.getLayoutStyle();
|
|
276
280
|
const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
|
|
277
|
-
return (h("bn-card", { key: '
|
|
281
|
+
return (h("bn-card", { key: '463870e184f942e7f9cefa3624884c888c301bab', styles: this.styles, "selected-style": this.selectedStyle, class: this.setCardClass() }, h("div", { key: '97488f38c561c22d774836f2081e44f852084280', class: "cardtitle" }, h("bn-title", { key: '8f5f8bb49aa5f24c4e683822e6f263ac69ed3284', namespace: this.titleNamespace, ruleset: (_a = this.resolveInherited("ruleset", this.ruleset)) !== null && _a !== void 0 ? _a : this.ruleset, "business-unit": this.titleBusinessUnit, scenarios: (_b = this.resolveInherited("titleScenarios", this.titleScenarios)) !== null && _b !== void 0 ? _b : this.titleScenarios, variances: (_c = this.resolveInherited("titleVariances", this.titleVariances)) !== null && _c !== void 0 ? _c : this.titleVariances, order: (_d = this.resolveInherited("titleOrder", this.titleOrder)) !== null && _d !== void 0 ? _d : this.titleOrder, "order-direction": (_e = this.resolveInherited("titleOrderDirection", this.titleOrderDirection)) !== null && _e !== void 0 ? _e : this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), this.titleImage != null && this.titleImage !== "" ? (h("img", { class: "image", src: this.prepareTitleImage(this.titleImage) })) : ("")), h("bn-body", { key: '1976084cef975f9aa6c857dc690d5ac4b180a88e' }, h("div", { key: '5c4290635821b1896135f35fcf3e045d504803bb', style: style, "data-bn-fit-content": this.cardFitToContent ? String(this.getRowCount(this.cardLayout)) : null }, this.getSlots(arrOfSlots))), h("bn-footer", { key: '7338dd8bfdc3a43cfc6f8ad7b99f007d44496fc8', text: this.footerText, "page-number": 0, "display-page-number": "false" })));
|
|
278
282
|
}
|
|
279
283
|
static get is() { return "bn-layout-card"; }
|
|
280
284
|
static get encapsulation() { return "shadow"; }
|
|
@@ -328,6 +332,25 @@ export class LayoutCard {
|
|
|
328
332
|
"reflect": false,
|
|
329
333
|
"attribute": "selected-style"
|
|
330
334
|
},
|
|
335
|
+
"ruleset": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"mutable": false,
|
|
338
|
+
"complexType": {
|
|
339
|
+
"original": "string",
|
|
340
|
+
"resolved": "string",
|
|
341
|
+
"references": {}
|
|
342
|
+
},
|
|
343
|
+
"required": false,
|
|
344
|
+
"optional": true,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": "Name of a registered IBCS rule set (see `bn-ruleset`) passed through to\nthe inner `<bn-title>` element as its `ruleset` attribute. Supports\n`\"inherited-page\"` to take over the value from an ancestor\n`bn-layout-page`. Nested visualization components can reference it via\n`ruleset=\"inherited-closest\"`."
|
|
348
|
+
},
|
|
349
|
+
"getter": false,
|
|
350
|
+
"setter": false,
|
|
351
|
+
"reflect": false,
|
|
352
|
+
"attribute": "ruleset"
|
|
353
|
+
},
|
|
331
354
|
"titleImage": {
|
|
332
355
|
"type": "string",
|
|
333
356
|
"mutable": false,
|
|
@@ -366,7 +389,7 @@ export class LayoutCard {
|
|
|
366
389
|
"name": "example",
|
|
367
390
|
"text": "<bn-layout-card title-business-unit=\"Sales\"></bn-layout-card>"
|
|
368
391
|
}],
|
|
369
|
-
"text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted."
|
|
392
|
+
"text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted.\n\nRendered as sanitized HTML, so inline markup is supported."
|
|
370
393
|
},
|
|
371
394
|
"getter": false,
|
|
372
395
|
"setter": false,
|
|
@@ -5,6 +5,11 @@ export class LayoutPage {
|
|
|
5
5
|
/**
|
|
6
6
|
* Message text displayed in the message row above the title.
|
|
7
7
|
* If empty, the message row is omitted.
|
|
8
|
+
*
|
|
9
|
+
* Rendered as sanitized HTML, so inline markup is supported.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <bn-layout-page message-text="Revenue <b>above plan</b><br />Q3 2026"></bn-layout-page>
|
|
8
13
|
*/
|
|
9
14
|
this.messageText = "";
|
|
10
15
|
/**
|
|
@@ -20,6 +25,8 @@ export class LayoutPage {
|
|
|
20
25
|
* Name of the business unit displayed in the title header row.
|
|
21
26
|
* If empty, the business unit row is omitted.
|
|
22
27
|
*
|
|
28
|
+
* Rendered as sanitized HTML, so inline markup is supported.
|
|
29
|
+
*
|
|
23
30
|
* @example
|
|
24
31
|
* <bn-layout-page title-business-unit="Group Controlling"></bn-layout-page>
|
|
25
32
|
*/
|
|
@@ -242,7 +249,7 @@ export class LayoutPage {
|
|
|
242
249
|
render() {
|
|
243
250
|
const style = this.getLayoutStyle();
|
|
244
251
|
const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
|
|
245
|
-
return (h("bn-page", { key: '
|
|
252
|
+
return (h("bn-page", { key: 'd38690fd46d6ed0319cee6be00a9af439425f4f2', styles: this.styles, "selected-style": this.selectedStyle, format: this.pageFormat, orientation: this.pageOrientation }, h("bn-message", { key: '860994ef08afa528be6a609cf24459ecfcfd42ae', text: this.messageText, image: this.messageImage }), h("bn-title", { key: '10ede4a5387ca6d1182d4204934d9ec0851dd380', namespace: this.titleNamespace, ruleset: this.ruleset, "business-unit": this.titleBusinessUnit, scenarios: this.titleScenarios, variances: this.titleVariances, order: this.titleOrder, "order-direction": this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), h("bn-body", { key: '6de8a070c887717ed6d46edcbe240661763bb2e6' }, h("div", { key: 'd25c50b3b5122ff193c75ca93af36b8a1debb0e9', style: style, "data-bn-fit-content": this.pageFitToContent ? String(this.getRowCount(this.pageLayout)) : null }, this.getSlots(arrOfSlots))), h("bn-footer", { key: '725a98e64a36859b546011b5339303f455bb0744', text: this.footerText, "page-number": this.pageNumber, "display-page-number": this.footerDisplayPageNumber })));
|
|
246
253
|
}
|
|
247
254
|
static get is() { return "bn-layout-page"; }
|
|
248
255
|
static get encapsulation() { return "shadow"; }
|
|
@@ -296,6 +303,25 @@ export class LayoutPage {
|
|
|
296
303
|
"reflect": false,
|
|
297
304
|
"attribute": "selected-style"
|
|
298
305
|
},
|
|
306
|
+
"ruleset": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "string",
|
|
311
|
+
"resolved": "string",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": true,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "Name of a registered IBCS rule set (see `bn-ruleset`) passed through to\nthe inner `<bn-title>` element as its `ruleset` attribute. Nested\nvisualization components can reference it via\n`ruleset=\"inherited-page\"` / `ruleset=\"inherited-closest\"`."
|
|
319
|
+
},
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
322
|
+
"reflect": false,
|
|
323
|
+
"attribute": "ruleset"
|
|
324
|
+
},
|
|
299
325
|
"messageText": {
|
|
300
326
|
"type": "string",
|
|
301
327
|
"mutable": false,
|
|
@@ -307,8 +333,11 @@ export class LayoutPage {
|
|
|
307
333
|
"required": false,
|
|
308
334
|
"optional": false,
|
|
309
335
|
"docs": {
|
|
310
|
-
"tags": [
|
|
311
|
-
|
|
336
|
+
"tags": [{
|
|
337
|
+
"name": "example",
|
|
338
|
+
"text": "<bn-layout-page message-text=\"Revenue <b>above plan</b><br />Q3 2026\"></bn-layout-page>"
|
|
339
|
+
}],
|
|
340
|
+
"text": "Message text displayed in the message row above the title.\nIf empty, the message row is omitted.\n\nRendered as sanitized HTML, so inline markup is supported."
|
|
312
341
|
},
|
|
313
342
|
"getter": false,
|
|
314
343
|
"setter": false,
|
|
@@ -354,7 +383,7 @@ export class LayoutPage {
|
|
|
354
383
|
"name": "example",
|
|
355
384
|
"text": "<bn-layout-page title-business-unit=\"Group Controlling\"></bn-layout-page>"
|
|
356
385
|
}],
|
|
357
|
-
"text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted."
|
|
386
|
+
"text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted.\n\nRendered as sanitized HTML, so inline markup is supported."
|
|
358
387
|
},
|
|
359
388
|
"getter": false,
|
|
360
389
|
"setter": false,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:host(#container-page-message) {
|
|
12
|
-
height: 4.55em;
|
|
12
|
+
min-height: 4.55em;
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
-webkit-box-sizing: border-box;
|
|
15
15
|
border-bottom: 0.1em solid #ddd;
|
|
@@ -21,11 +21,15 @@ div#message-text {
|
|
|
21
21
|
display: inline;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
span.note p {
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
.image {
|
|
25
29
|
z-index: 2;
|
|
26
30
|
background-color: transparent;
|
|
27
31
|
border: transparent;
|
|
28
32
|
height: 4em;
|
|
29
33
|
width: auto;
|
|
30
|
-
display:
|
|
34
|
+
display: block;
|
|
31
35
|
}
|
|
@@ -3,6 +3,7 @@ import withComponentStatus from "../../utils/withComponentStatus";
|
|
|
3
3
|
import withComponentStyle from "../../utils/withComponentStyle";
|
|
4
4
|
import { getStores } from "../../context/context-protocol";
|
|
5
5
|
import withHasError from "../../utils/withHasError";
|
|
6
|
+
import { sanitizeHtml } from "../../utils/sanitizeHtml";
|
|
6
7
|
export class Footer {
|
|
7
8
|
constructor() {
|
|
8
9
|
withComponentStatus(this);
|
|
@@ -35,7 +36,7 @@ export class Footer {
|
|
|
35
36
|
return assetsState[value] || value;
|
|
36
37
|
}
|
|
37
38
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '2865cf0252e528ecb1cb1c60694ea129e53d92e5', id: this.text || this.image ? "container-page-message" : "container", style: this.getFontStyles() }, h("div", { key: 'df47160da185163b2e5eaeb845321734614ef107', id: "message-text" }, this.text != null && this.text !== "" ? h("span", { class: "note", innerHTML: sanitizeHtml(this.text) }) : ""), h("div", { key: '59c2eb3ac2e439d4f6f5fdd4d68b42a220c2122f', id: "page-image" }, this.image != null && this.image !== "" ? h("img", { class: "image", src: this.prepareAssetUrl(this.image) }) : "")));
|
|
39
40
|
}
|
|
40
41
|
static get is() { return "bn-message"; }
|
|
41
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -64,7 +65,7 @@ export class Footer {
|
|
|
64
65
|
"optional": false,
|
|
65
66
|
"docs": {
|
|
66
67
|
"tags": [],
|
|
67
|
-
"text": "Message text.\n<br />If empty string (`''` or `null`) the
|
|
68
|
+
"text": "Message text. Rendered as HTML, sanitized against XSS\n(only safe tags such as `br`, `b`, `i`, `strong`, `em`, `a` and their\nattributes are kept; event handlers and `javascript:` URLs are stripped).\n<br />Use `<br />` for an explicit line break.\n<br />If empty string (`''` or `null`) the message row is omitted"
|
|
68
69
|
},
|
|
69
70
|
"getter": false,
|
|
70
71
|
"setter": false,
|
|
@@ -38,7 +38,7 @@ export class Page {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '8ca8dd9381a7d4cd5dc3e85b7f1de1fdfbc07d54', format: this.format, orientation: this.orientation, style: this.prepareStyle() }, h("slot", { key: '2fffa1f8dd81286f63dea8be433559a9569b94de' })));
|
|
42
42
|
}
|
|
43
43
|
prepareStyle() {
|
|
44
44
|
const pageStyle = {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import withBodyObserver from "../../utils/withBodyObserver";
|
|
3
|
+
import { getStores } from "../../context/context-protocol";
|
|
4
|
+
import withComponentStatus from "../../utils/withComponentStatus";
|
|
5
|
+
import withHasError from "../../utils/withHasError";
|
|
6
|
+
export class Ruleset {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.name = "_default";
|
|
9
|
+
withComponentStatus(this);
|
|
10
|
+
this.errors = withHasError(this);
|
|
11
|
+
withBodyObserver(this, (data) => {
|
|
12
|
+
if (!this.stores)
|
|
13
|
+
this.stores = getStores(this.element);
|
|
14
|
+
try {
|
|
15
|
+
const parsedData = JSON.parse(data);
|
|
16
|
+
this.stores.ruleSets.set(this.name, parsedData);
|
|
17
|
+
this.errors.remove("JSON_PARSE");
|
|
18
|
+
}
|
|
19
|
+
catch (e) {
|
|
20
|
+
this.errors.addOrReplace({
|
|
21
|
+
id: "JSON_PARSE",
|
|
22
|
+
type: "error",
|
|
23
|
+
message: `bn-ruleset: Failed to parse JSON body — ${e.message}`,
|
|
24
|
+
});
|
|
25
|
+
console.error(e);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return h(Host, { key: '9049a4abd1e2b4ae4d28f56c4fe51919a89c0773' });
|
|
31
|
+
}
|
|
32
|
+
static get is() { return "bn-ruleset"; }
|
|
33
|
+
static get originalStyleUrls() {
|
|
34
|
+
return {
|
|
35
|
+
"$": ["bn-ruleset.scss"]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
static get styleUrls() {
|
|
39
|
+
return {
|
|
40
|
+
"$": ["bn-ruleset.css"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static get properties() {
|
|
44
|
+
return {
|
|
45
|
+
"name": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "string",
|
|
50
|
+
"resolved": "string",
|
|
51
|
+
"references": {}
|
|
52
|
+
},
|
|
53
|
+
"required": false,
|
|
54
|
+
"optional": false,
|
|
55
|
+
"docs": {
|
|
56
|
+
"tags": [],
|
|
57
|
+
"text": ""
|
|
58
|
+
},
|
|
59
|
+
"getter": false,
|
|
60
|
+
"setter": false,
|
|
61
|
+
"reflect": false,
|
|
62
|
+
"attribute": "name",
|
|
63
|
+
"defaultValue": "\"_default\""
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static get elementRef() { return "element"; }
|
|
68
|
+
}
|
|
@@ -68,7 +68,7 @@ export class ScalingGroup {
|
|
|
68
68
|
this.stores.scalingGroups.set(trimmedName, this.value);
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return h(Host, { key: '
|
|
71
|
+
return h(Host, { key: '954d0817ee263278c7922e10b9a0da3d85e6bbd8' });
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "bn-scaling-group"; }
|
|
74
74
|
static get originalStyleUrls() {
|