@bino-bi/bn-template-engine 1.0.0-alpha.0
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 +21 -0
- package/dist/bn-template-engine/assets/bar.png +0 -0
- package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +195076 -0
- package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +142007 -0
- package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
- package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
- package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
- package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin.png +0 -0
- package/dist/bn-template-engine/assets/matrix.png +0 -0
- package/dist/bn-template-engine/bn-template-engine.esm.js +1 -0
- package/dist/bn-template-engine/index.esm.js +0 -0
- package/dist/bn-template-engine/p--TeDldm8.js +1 -0
- package/dist/bn-template-engine/p-0e7dc113.entry.js +1 -0
- package/dist/bn-template-engine/p-1jFf17Vj.js +1 -0
- package/dist/bn-template-engine/p-264c6bad.entry.js +1 -0
- package/dist/bn-template-engine/p-326a0902.entry.js +1 -0
- package/dist/bn-template-engine/p-38a8bde3.entry.js +1 -0
- package/dist/bn-template-engine/p-577eafcd.entry.js +1 -0
- package/dist/bn-template-engine/p-5905cc43.entry.js +1 -0
- package/dist/bn-template-engine/p-5d155a72.entry.js +1 -0
- package/dist/bn-template-engine/p-65f8962a.entry.js +1 -0
- package/dist/bn-template-engine/p-6b8d1ebf.entry.js +1 -0
- package/dist/bn-template-engine/p-7995acb2.entry.js +1 -0
- package/dist/bn-template-engine/p-7afe431e.entry.js +1 -0
- package/dist/bn-template-engine/p-8014b1ac.entry.js +1 -0
- package/dist/bn-template-engine/p-80423fc8.entry.js +1 -0
- package/dist/bn-template-engine/p-91e74d42.entry.js +1 -0
- package/dist/bn-template-engine/p-930a9e29.entry.js +1 -0
- package/dist/bn-template-engine/p-93C9jL8R.js +1 -0
- package/dist/bn-template-engine/p-93ff8584.entry.js +1 -0
- package/dist/bn-template-engine/p-B0m0U4wJ.js +1 -0
- package/dist/bn-template-engine/p-B27Ax6P_.js +2 -0
- package/dist/bn-template-engine/p-B79VcHiT.js +1 -0
- package/dist/bn-template-engine/p-BBd0ZVLL.js +1 -0
- package/dist/bn-template-engine/p-BFTU3MAI.js +1 -0
- package/dist/bn-template-engine/p-BFatTBqh.js +1 -0
- package/dist/bn-template-engine/p-BQp6ZPYW.js +1 -0
- package/dist/bn-template-engine/p-BYmPQYxx.js +1 -0
- package/dist/bn-template-engine/p-BhEQy-2D.js +1 -0
- package/dist/bn-template-engine/p-BtVfu16B.js +1 -0
- package/dist/bn-template-engine/p-CY1RzLjU.js +1 -0
- package/dist/bn-template-engine/p-CfWnag33.js +1 -0
- package/dist/bn-template-engine/p-CnI71OA9.js +1 -0
- package/dist/bn-template-engine/p-Cp4MVxCu.js +1 -0
- package/dist/bn-template-engine/p-DQuL1Twl.js +1 -0
- package/dist/bn-template-engine/p-DbyXf6dF.js +1 -0
- package/dist/bn-template-engine/p-TdL-LRR9.js +1 -0
- package/dist/bn-template-engine/p-_LBTIfNN.js +1 -0
- package/dist/bn-template-engine/p-a342cd3c.entry.js +1 -0
- package/dist/bn-template-engine/p-ad94cf63.entry.js +1 -0
- package/dist/bn-template-engine/p-bc37d750.entry.js +1 -0
- package/dist/bn-template-engine/p-c9f050bf.entry.js +1 -0
- package/dist/bn-template-engine/p-d07a0ca3.entry.js +1 -0
- package/dist/bn-template-engine/p-e5f372af.entry.js +1 -0
- package/dist/bn-template-engine/p-e620028c.entry.js +1 -0
- package/dist/bn-template-engine/p-e81e116a.entry.js +1 -0
- package/dist/bn-template-engine/p-eca98070.entry.js +1 -0
- package/dist/bn-template-engine/p-ee6de950.entry.js +1 -0
- package/dist/bn-template-engine/p-efe0ef1e.entry.js +1 -0
- package/dist/bn-template-engine/p-f034f1b8.entry.js +1 -0
- package/dist/bn-template-engine/p-f1c1a8a3.entry.js +1 -0
- package/dist/bn-template-engine/p-fe573a1a.entry.js +1 -0
- package/dist/bn-template-engine/p-kMyLevYy.js +1 -0
- package/dist/cjs/DataFormatDigits-DmTbhF8q.js +142 -0
- package/dist/cjs/DateStringFactory-Dn0aRj2Y.js +453 -0
- package/dist/cjs/Order-B4NIqQWe.js +129 -0
- package/dist/cjs/SVGVariancesStyleGroup-Czizhngt.js +7973 -0
- package/dist/cjs/StringAdapter-0EbYMkR0.js +136 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/alasql.min-C_nHTuEQ.js +306 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/bn-asset.cjs.entry.js +42 -0
- package/dist/cjs/bn-body_3.cjs.entry.js +413 -0
- package/dist/cjs/bn-card.cjs.entry.js +37 -0
- package/dist/cjs/bn-chart-structure.cjs.entry.js +705 -0
- package/dist/cjs/bn-chart-time.cjs.entry.js +987 -0
- package/dist/cjs/bn-component-style.cjs.entry.js +44 -0
- package/dist/cjs/bn-context_5.cjs.entry.js +3380 -0
- package/dist/cjs/bn-dataset.cjs.entry.js +278 -0
- package/dist/cjs/bn-grid.cjs.entry.js +407 -0
- package/dist/cjs/bn-image.cjs.entry.js +57 -0
- package/dist/cjs/bn-internationalization.cjs.entry.js +40 -0
- package/dist/cjs/bn-layout-card.cjs.entry.js +128 -0
- package/dist/cjs/bn-layout-page.cjs.entry.js +142 -0
- package/dist/cjs/bn-map.cjs.entry.js +425 -0
- package/dist/cjs/bn-message.cjs.entry.js +52 -0
- package/dist/cjs/bn-template-engine.cjs.js +52 -0
- package/dist/cjs/bn-template.cjs.entry.js +20 -0
- package/dist/cjs/bn-text.cjs.entry.js +286 -0
- package/dist/cjs/bn-tree.cjs.entry.js +969 -0
- package/dist/cjs/componentRegister-C17UFNPh.js +72 -0
- package/dist/cjs/constants-DHqQXSSd.js +158 -0
- package/dist/cjs/context-protocol-BkYHFkXE.js +661 -0
- package/dist/cjs/editor-companion.cjs.entry.js +49 -0
- package/dist/cjs/formatter-DIJL_crx.js +215 -0
- package/dist/cjs/ibcs-chart-structure.cjs.entry.js +2906 -0
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +4140 -0
- package/dist/cjs/ibcs-map.cjs.entry.js +1075 -0
- package/dist/cjs/ibcs-title.cjs.entry.js +352 -0
- package/dist/cjs/index-CScBFiS1.js +4653 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/luxon-8hyy5YD7.js +8132 -0
- package/dist/cjs/scaling-B23eOtsC.js +67 -0
- package/dist/cjs/test-runner-card.cjs.entry.js +27 -0
- package/dist/cjs/test-runner-chart-time.cjs.entry.js +230 -0
- package/dist/cjs/test-runner-chart.cjs.entry.js +326 -0
- package/dist/cjs/test-runner-map.cjs.entry.js +1862 -0
- package/dist/cjs/test-runner-table.cjs.entry.js +477 -0
- package/dist/cjs/test-runner-time.cjs.entry.js +381 -0
- package/dist/cjs/test-runner-title.cjs.entry.js +115 -0
- package/dist/cjs/withBodyObserver-B0_W1VOf.js +39 -0
- package/dist/cjs/withComponentStatus-BrxL7usr.js +39 -0
- package/dist/cjs/withComponentStyle-C6KHnZHt.js +128 -0
- package/dist/cjs/withDataset-ZdN-RRTx.js +146 -0
- package/dist/cjs/withHasError-Dspb3lIV.js +154 -0
- package/dist/cjs/withStyled-Bf-stJTR.js +567 -0
- package/dist/cjs/withTranslation-Cz0M5maV.js +77 -0
- package/dist/collection/collection-manifest.json +48 -0
- package/dist/collection/components/bn-asset/bn-asset.css +3 -0
- package/dist/collection/components/bn-asset/bn-asset.js +67 -0
- package/dist/collection/components/bn-body/bn-body.css +9 -0
- package/dist/collection/components/bn-body/bn-body.js +38 -0
- package/dist/collection/components/bn-card/bn-card.css +21 -0
- package/dist/collection/components/bn-card/bn-card.js +38 -0
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.css +105 -0
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +1047 -0
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +594 -0
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +979 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +39 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +293 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +136 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/Marker.js +118 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +151 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +83 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/index.js +6 -0
- package/dist/collection/components/bn-chart-structure/utils/factories/ScenarioFactory.js +119 -0
- package/dist/collection/components/bn-chart-structure/utils/factories/index.js +1 -0
- package/dist/collection/components/bn-chart-structure/utils/helper/CustomPattern.js +45 -0
- package/dist/collection/components/bn-chart-structure/utils/helper/ElementPositions.js +210 -0
- package/dist/collection/components/bn-chart-structure/utils/helper/MarkerPattern.js +46 -0
- package/dist/collection/components/bn-chart-structure/utils/helper/Padding.js +13 -0
- package/dist/collection/components/bn-chart-structure/utils/helper/index.js +15 -0
- package/dist/collection/components/bn-chart-structure/utils/model/DataPoint.js +101 -0
- package/dist/collection/components/bn-chart-structure/utils/model/OverflowConfig.js +1 -0
- package/dist/collection/components/bn-chart-structure/utils/model/StructureChartComponentConfig.js +106 -0
- package/dist/collection/components/bn-chart-structure/utils/model/StructureChartDataRow.js +127 -0
- package/dist/collection/components/bn-chart-structure/utils/model/index.js +45 -0
- package/dist/collection/components/bn-chart-structure/utils/model/styles/ScaleFactorsStructureChart.js +99 -0
- package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +58 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.css +17 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +1510 -0
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +96 -0
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +829 -0
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +1388 -0
- package/dist/collection/components/bn-chart-time/utils/elements/AreaFill.js +83 -0
- package/dist/collection/components/bn-chart-time/utils/elements/Axis.js +42 -0
- package/dist/collection/components/bn-chart-time/utils/elements/Column.js +266 -0
- package/dist/collection/components/bn-chart-time/utils/elements/Label.js +174 -0
- package/dist/collection/components/bn-chart-time/utils/elements/Line.js +150 -0
- package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +267 -0
- package/dist/collection/components/bn-chart-time/utils/elements/Marker.js +121 -0
- package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +148 -0
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +107 -0
- package/dist/collection/components/bn-chart-time/utils/elements/index.js +8 -0
- package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +146 -0
- package/dist/collection/components/bn-chart-time/utils/factories/index.js +1 -0
- package/dist/collection/components/bn-chart-time/utils/helper/CustomPattern.js +46 -0
- package/dist/collection/components/bn-chart-time/utils/helper/ElementPositions.js +178 -0
- package/dist/collection/components/bn-chart-time/utils/helper/LabelCollisionManager.js +199 -0
- package/dist/collection/components/bn-chart-time/utils/helper/MarkerPattern.js +84 -0
- package/dist/collection/components/bn-chart-time/utils/helper/Padding.js +13 -0
- package/dist/collection/components/bn-chart-time/utils/helper/index.js +5 -0
- package/dist/collection/components/bn-chart-time/utils/model/DataPoint.js +93 -0
- package/dist/collection/components/bn-chart-time/utils/model/OverflowConfig.js +1 -0
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +150 -0
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartDataRow.js +146 -0
- package/dist/collection/components/bn-chart-time/utils/model/index.js +45 -0
- package/dist/collection/components/bn-chart-time/utils/model/styles/ScaleFactorsTimeChart.js +99 -0
- package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +54 -0
- package/dist/collection/components/bn-component-style/bn-component-style.css +3 -0
- package/dist/collection/components/bn-component-style/bn-component-style.js +69 -0
- package/dist/collection/components/bn-context/bn-context.css +3 -0
- package/dist/collection/components/bn-context/bn-context.js +96 -0
- package/dist/collection/components/bn-dataset/bn-dataset.css +3 -0
- package/dist/collection/components/bn-dataset/bn-dataset.js +159 -0
- package/dist/collection/components/bn-datasource/bn-datasource.css +3 -0
- package/dist/collection/components/bn-datasource/bn-datasource.js +70 -0
- package/dist/collection/components/bn-footer/assets/bar.png +0 -0
- package/dist/collection/components/bn-footer/assets/matrix.png +0 -0
- package/dist/collection/components/bn-footer/bn-footer.css +40 -0
- package/dist/collection/components/bn-footer/bn-footer.js +146 -0
- package/dist/collection/components/bn-grid/bn-grid.css +37 -0
- package/dist/collection/components/bn-grid/bn-grid.js +467 -0
- package/dist/collection/components/bn-grid/utils/GridConfig.js +114 -0
- package/dist/collection/components/bn-image/bn-image.css +10 -0
- package/dist/collection/components/bn-image/bn-image.js +78 -0
- package/dist/collection/components/bn-internationalization/bn-internationalization.css +3 -0
- package/dist/collection/components/bn-internationalization/bn-internationalization.js +84 -0
- package/dist/collection/components/bn-layout-card/bn-layout-card.css +25 -0
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +534 -0
- package/dist/collection/components/bn-layout-page/bn-layout-page.css +10 -0
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +624 -0
- package/dist/collection/components/bn-map/bn-map.css +4 -0
- package/dist/collection/components/bn-map/bn-map.js +725 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +195076 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +142007 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +674 -0
- package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +744 -0
- package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +9 -0
- package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +13 -0
- package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +11 -0
- package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +2 -0
- package/dist/collection/components/bn-message/assets/bar.png +0 -0
- package/dist/collection/components/bn-message/assets/matrix.png +0 -0
- package/dist/collection/components/bn-message/bn-message.css +31 -0
- package/dist/collection/components/bn-message/bn-message.js +96 -0
- package/dist/collection/components/bn-page/bn-page.css +252 -0
- package/dist/collection/components/bn-page/bn-page.js +118 -0
- package/dist/collection/components/bn-table/bn-table.css +5 -0
- package/dist/collection/components/bn-table/bn-table.js +1475 -0
- package/dist/collection/components/bn-table/ibcs-table.css +322 -0
- package/dist/collection/components/bn-table/ibcs-table.js +757 -0
- package/dist/collection/components/bn-table/utils/Table.js +182 -0
- package/dist/collection/components/bn-table/utils/elements/Cell.js +66 -0
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +251 -0
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +88 -0
- package/dist/collection/components/bn-table/utils/elements/index.js +3 -0
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +380 -0
- package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +62 -0
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +750 -0
- package/dist/collection/components/bn-table/utils/helper/QueryGroup.js +38 -0
- package/dist/collection/components/bn-table/utils/helper/index.js +1 -0
- package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +136 -0
- package/dist/collection/components/bn-table/utils/model/TableDataRow.js +134 -0
- package/dist/collection/components/bn-table/utils/model/TableDrillGroup.js +42 -0
- package/dist/collection/components/bn-table/utils/model/index.js +63 -0
- package/dist/collection/components/bn-template/bn-template.js +38 -0
- package/dist/collection/components/bn-text/bn-text.css +14 -0
- package/dist/collection/components/bn-text/bn-text.js +343 -0
- package/dist/collection/components/bn-title/bn-title.css +11 -0
- package/dist/collection/components/bn-title/bn-title.js +541 -0
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.css +15 -0
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +321 -0
- package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +91 -0
- package/dist/collection/components/bn-title/ibcs-title/utils/factories/TitleDataSetFactory.js +86 -0
- package/dist/collection/components/bn-title/ibcs-title/utils/factories/index.js +1 -0
- package/dist/collection/components/bn-title/ibcs-title/utils/model/MeasureEntriy.js +25 -0
- package/dist/collection/components/bn-title/ibcs-title/utils/model/TimePeriod.js +33 -0
- package/dist/collection/components/bn-title/ibcs-title/utils/model/TitleConfig.js +48 -0
- package/dist/collection/components/bn-title/ibcs-title/utils/model/index.js +6 -0
- package/dist/collection/components/bn-tree/bn-tree.css +40 -0
- package/dist/collection/components/bn-tree/bn-tree.js +520 -0
- package/dist/collection/components/bn-tree/utils/EdgeRenderer.js +196 -0
- package/dist/collection/components/bn-tree/utils/TreeLayout.js +225 -0
- package/dist/collection/components/bn-tree/utils/TreeParser.js +180 -0
- package/dist/collection/components/editor-companion/editor-companion.css +3 -0
- package/dist/collection/components/editor-companion/editor-companion.js +130 -0
- package/dist/collection/context/context-protocol.js +84 -0
- package/dist/collection/declarations.js +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/stores/assets.js +12 -0
- package/dist/collection/stores/componentStyles.js +106 -0
- package/dist/collection/stores/context.js +1 -0
- package/dist/collection/stores/createScopedStores.js +31 -0
- package/dist/collection/stores/datasets.js +14 -0
- package/dist/collection/stores/datasetsMeta.js +14 -0
- package/dist/collection/stores/datasources.js +14 -0
- package/dist/collection/stores/internationalization.js +128 -0
- package/dist/collection/test-runner/test-runner-card.js +36 -0
- package/dist/collection/test-runner/test-runner-chart-time.js +234 -0
- package/dist/collection/test-runner/test-runner-chart.js +364 -0
- package/dist/collection/test-runner/test-runner-map.js +1901 -0
- package/dist/collection/test-runner/test-runner-table.js +469 -0
- package/dist/collection/test-runner/test-runner-time.js +399 -0
- package/dist/collection/test-runner/test-runner-title.js +108 -0
- package/dist/collection/utils/DataUriUtil.js +19 -0
- package/dist/collection/utils/DateStringFactory.js +448 -0
- package/dist/collection/utils/componentRegister.js +70 -0
- package/dist/collection/utils/constants.js +156 -0
- package/dist/collection/utils/dataAnalyzer.js +103 -0
- package/dist/collection/utils/datasetMetaCalculator.js +137 -0
- package/dist/collection/utils/flattenObject.js +28 -0
- package/dist/collection/utils/formatter.js +86 -0
- package/dist/collection/utils/helper/AdapterUtils.js +24 -0
- package/dist/collection/utils/helper/CompareUtil.js +42 -0
- package/dist/collection/utils/helper/IAdapter.js +1 -0
- package/dist/collection/utils/helper/StringAdapter.js +9 -0
- package/dist/collection/utils/ibcsRuleSet.js +120 -0
- package/dist/collection/utils/index.js +2 -0
- package/dist/collection/utils/model/ChartStyles.js +1 -0
- package/dist/collection/utils/model/DataFormatDigits.js +23 -0
- package/dist/collection/utils/model/DataQueryResultRow.js +1 -0
- package/dist/collection/utils/model/DatasetMeta.js +1 -0
- package/dist/collection/utils/model/DateFormat.js +1 -0
- package/dist/collection/utils/model/Order.js +56 -0
- package/dist/collection/utils/model/SiPrefix.js +23 -0
- package/dist/collection/utils/model/TextStyles.js +1 -0
- package/dist/collection/utils/model/VarianceScenario.js +33 -0
- package/dist/collection/utils/model/index.js +38 -0
- package/dist/collection/utils/model/styles/FontStyle.js +34 -0
- package/dist/collection/utils/model/styles/Padding.js +30 -0
- package/dist/collection/utils/model/styles/SVGStyle.js +47 -0
- package/dist/collection/utils/model/styles/SVGStyleGroup.js +48 -0
- package/dist/collection/utils/model/styles/SVGVariancesStyleGroup.js +45 -0
- package/dist/collection/utils/parentDimensions.js +44 -0
- package/dist/collection/utils/scaling.js +17 -0
- package/dist/collection/utils/stackColors.js +31 -0
- package/dist/collection/utils/styled/attributes.js +110 -0
- package/dist/collection/utils/styled/style-sheet.js +21 -0
- package/dist/collection/utils/styled/withStyled.js +71 -0
- package/dist/collection/utils/templateId.js +12 -0
- package/dist/collection/utils/utils.js +83 -0
- package/dist/collection/utils/validate.js +372 -0
- package/dist/collection/utils/withBodyObserver.js +35 -0
- package/dist/collection/utils/withComponentStatus.js +35 -0
- package/dist/collection/utils/withComponentStyle.js +74 -0
- package/dist/collection/utils/withDataset.js +142 -0
- package/dist/collection/utils/withDatasource.js +59 -0
- package/dist/collection/utils/withHasError.js +56 -0
- package/dist/collection/utils/withTranslation.js +73 -0
- package/dist/components/DataFormatDigits.js +1 -0
- package/dist/components/DateStringFactory.js +1 -0
- package/dist/components/Order.js +1 -0
- package/dist/components/SVGVariancesStyleGroup.js +1 -0
- package/dist/components/_commonjsHelpers.js +1 -0
- package/dist/components/alasql.min.js +1 -0
- package/dist/components/bn-asset.d.ts +11 -0
- package/dist/components/bn-asset.js +1 -0
- package/dist/components/bn-body.d.ts +11 -0
- package/dist/components/bn-body.js +1 -0
- package/dist/components/bn-body2.js +1 -0
- package/dist/components/bn-card.d.ts +11 -0
- package/dist/components/bn-card.js +1 -0
- package/dist/components/bn-card2.js +1 -0
- package/dist/components/bn-chart-structure.d.ts +11 -0
- package/dist/components/bn-chart-structure.js +1 -0
- package/dist/components/bn-chart-time.d.ts +11 -0
- package/dist/components/bn-chart-time.js +1 -0
- package/dist/components/bn-component-style.d.ts +11 -0
- package/dist/components/bn-component-style.js +1 -0
- package/dist/components/bn-context.d.ts +11 -0
- package/dist/components/bn-context.js +1 -0
- package/dist/components/bn-dataset.d.ts +11 -0
- package/dist/components/bn-dataset.js +1 -0
- package/dist/components/bn-datasource.d.ts +11 -0
- package/dist/components/bn-datasource.js +1 -0
- package/dist/components/bn-footer.d.ts +11 -0
- package/dist/components/bn-footer.js +1 -0
- package/dist/components/bn-footer2.js +1 -0
- package/dist/components/bn-grid.d.ts +11 -0
- package/dist/components/bn-grid.js +1 -0
- package/dist/components/bn-image.d.ts +11 -0
- package/dist/components/bn-image.js +1 -0
- package/dist/components/bn-internationalization.d.ts +11 -0
- package/dist/components/bn-internationalization.js +1 -0
- package/dist/components/bn-layout-card.d.ts +11 -0
- package/dist/components/bn-layout-card.js +1 -0
- package/dist/components/bn-layout-page.d.ts +11 -0
- package/dist/components/bn-layout-page.js +1 -0
- package/dist/components/bn-map.d.ts +11 -0
- package/dist/components/bn-map.js +1 -0
- package/dist/components/bn-message.d.ts +11 -0
- package/dist/components/bn-message.js +1 -0
- package/dist/components/bn-message2.js +1 -0
- package/dist/components/bn-page.d.ts +11 -0
- package/dist/components/bn-page.js +1 -0
- package/dist/components/bn-page2.js +1 -0
- package/dist/components/bn-table.d.ts +11 -0
- package/dist/components/bn-table.js +1 -0
- package/dist/components/bn-template.d.ts +11 -0
- package/dist/components/bn-template.js +1 -0
- package/dist/components/bn-text.d.ts +11 -0
- package/dist/components/bn-text.js +1 -0
- package/dist/components/bn-title.d.ts +11 -0
- package/dist/components/bn-title.js +1 -0
- package/dist/components/bn-title2.js +1 -0
- package/dist/components/bn-tree.d.ts +11 -0
- package/dist/components/bn-tree.js +1 -0
- package/dist/components/componentRegister.js +1 -0
- package/dist/components/context-protocol.js +1 -0
- package/dist/components/editor-companion.d.ts +11 -0
- package/dist/components/editor-companion.js +1 -0
- package/dist/components/ibcs-chart-structure.d.ts +11 -0
- package/dist/components/ibcs-chart-structure.js +1 -0
- package/dist/components/ibcs-chart-structure2.js +1 -0
- package/dist/components/ibcs-chart-time.d.ts +11 -0
- package/dist/components/ibcs-chart-time.js +1 -0
- package/dist/components/ibcs-chart-time2.js +1 -0
- package/dist/components/ibcs-map.d.ts +11 -0
- package/dist/components/ibcs-map.js +1 -0
- package/dist/components/ibcs-map2.js +1 -0
- package/dist/components/ibcs-table.d.ts +11 -0
- package/dist/components/ibcs-table.js +1 -0
- package/dist/components/ibcs-table2.js +1 -0
- package/dist/components/ibcs-title.d.ts +11 -0
- package/dist/components/ibcs-title.js +1 -0
- package/dist/components/ibcs-title2.js +1 -0
- package/dist/components/ibcsRuleSet.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/scaling.js +1 -0
- package/dist/components/test-runner-card.d.ts +11 -0
- package/dist/components/test-runner-card.js +1 -0
- package/dist/components/test-runner-chart-time.d.ts +11 -0
- package/dist/components/test-runner-chart-time.js +1 -0
- package/dist/components/test-runner-chart.d.ts +11 -0
- package/dist/components/test-runner-chart.js +1 -0
- package/dist/components/test-runner-map.d.ts +11 -0
- package/dist/components/test-runner-map.js +1 -0
- package/dist/components/test-runner-table.d.ts +11 -0
- package/dist/components/test-runner-table.js +1 -0
- package/dist/components/test-runner-time.d.ts +11 -0
- package/dist/components/test-runner-time.js +1 -0
- package/dist/components/test-runner-title.d.ts +11 -0
- package/dist/components/test-runner-title.js +1 -0
- package/dist/components/utils.js +1 -0
- package/dist/components/validate.js +1 -0
- package/dist/components/withBodyObserver.js +1 -0
- package/dist/components/withComponentStyle.js +1 -0
- package/dist/components/withDataset.js +1 -0
- package/dist/components/withHasError.js +1 -0
- package/dist/components/withStyled.js +1 -0
- package/dist/components/withTranslation.js +1 -0
- package/dist/esm/DataFormatDigits-Dt6gpIiZ.js +137 -0
- package/dist/esm/DateStringFactory-_Qiv0IvF.js +451 -0
- package/dist/esm/Order-B4fpLe_f.js +125 -0
- package/dist/esm/SVGVariancesStyleGroup-DlWgvpzs.js +7961 -0
- package/dist/esm/StringAdapter-BLvo1Krl.js +133 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/alasql.min-CWu4NkIt.js +304 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/bn-asset.entry.js +40 -0
- package/dist/esm/bn-body_3.entry.js +409 -0
- package/dist/esm/bn-card.entry.js +35 -0
- package/dist/esm/bn-chart-structure.entry.js +703 -0
- package/dist/esm/bn-chart-time.entry.js +985 -0
- package/dist/esm/bn-component-style.entry.js +42 -0
- package/dist/esm/bn-context_5.entry.js +3374 -0
- package/dist/esm/bn-dataset.entry.js +276 -0
- package/dist/esm/bn-grid.entry.js +405 -0
- package/dist/esm/bn-image.entry.js +55 -0
- package/dist/esm/bn-internationalization.entry.js +38 -0
- package/dist/esm/bn-layout-card.entry.js +126 -0
- package/dist/esm/bn-layout-page.entry.js +140 -0
- package/dist/esm/bn-map.entry.js +423 -0
- package/dist/esm/bn-message.entry.js +50 -0
- package/dist/esm/bn-template-engine.js +48 -0
- package/dist/esm/bn-template.entry.js +18 -0
- package/dist/esm/bn-text.entry.js +284 -0
- package/dist/esm/bn-tree.entry.js +967 -0
- package/dist/esm/componentRegister-BtVfu16B.js +72 -0
- package/dist/esm/constants-kMyLevYy.js +158 -0
- package/dist/esm/context-protocol-DzeqZxg6.js +654 -0
- package/dist/esm/editor-companion.entry.js +47 -0
- package/dist/esm/formatter-DTMEZ6d8.js +211 -0
- package/dist/esm/ibcs-chart-structure.entry.js +2904 -0
- package/dist/esm/ibcs-chart-time.entry.js +4138 -0
- package/dist/esm/ibcs-map.entry.js +1073 -0
- package/dist/esm/ibcs-title.entry.js +350 -0
- package/dist/esm/index-B27Ax6P_.js +4635 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/luxon-DbyXf6dF.js +8130 -0
- package/dist/esm/scaling-BBd0ZVLL.js +64 -0
- package/dist/esm/test-runner-card.entry.js +25 -0
- package/dist/esm/test-runner-chart-time.entry.js +228 -0
- package/dist/esm/test-runner-chart.entry.js +324 -0
- package/dist/esm/test-runner-map.entry.js +1860 -0
- package/dist/esm/test-runner-table.entry.js +475 -0
- package/dist/esm/test-runner-time.entry.js +379 -0
- package/dist/esm/test-runner-title.entry.js +113 -0
- package/dist/esm/withBodyObserver-gZpZiEIK.js +37 -0
- package/dist/esm/withComponentStatus-elELReKt.js +37 -0
- package/dist/esm/withComponentStyle-NaxfakAG.js +126 -0
- package/dist/esm/withDataset-BT2VQCsG.js +144 -0
- package/dist/esm/withHasError-C48fTE2k.js +150 -0
- package/dist/esm/withStyled-CpUTv74m.js +539 -0
- package/dist/esm/withTranslation-Do4GhleK.js +75 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/bn-asset/bn-asset.d.ts +11 -0
- package/dist/types/components/bn-body/bn-body.d.ts +8 -0
- package/dist/types/components/bn-card/bn-card.d.ts +8 -0
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +234 -0
- package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +47 -0
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +137 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Axis.d.ts +29 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Bar.d.ts +58 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +47 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Marker.d.ts +33 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Needle.d.ts +37 -0
- package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +25 -0
- package/dist/types/components/bn-chart-structure/utils/elements/index.d.ts +6 -0
- package/dist/types/components/bn-chart-structure/utils/factories/ScenarioFactory.d.ts +46 -0
- package/dist/types/components/bn-chart-structure/utils/factories/index.d.ts +1 -0
- package/dist/types/components/bn-chart-structure/utils/helper/CustomPattern.d.ts +20 -0
- package/dist/types/components/bn-chart-structure/utils/helper/ElementPositions.d.ts +60 -0
- package/dist/types/components/bn-chart-structure/utils/helper/MarkerPattern.d.ts +28 -0
- package/dist/types/components/bn-chart-structure/utils/helper/Padding.d.ts +14 -0
- package/dist/types/components/bn-chart-structure/utils/helper/index.d.ts +13 -0
- package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +44 -0
- package/dist/types/components/bn-chart-structure/utils/model/OverflowConfig.d.ts +7 -0
- package/dist/types/components/bn-chart-structure/utils/model/StructureChartComponentConfig.d.ts +60 -0
- package/dist/types/components/bn-chart-structure/utils/model/StructureChartDataRow.d.ts +61 -0
- package/dist/types/components/bn-chart-structure/utils/model/index.d.ts +108 -0
- package/dist/types/components/bn-chart-structure/utils/model/styles/ScaleFactorsStructureChart.d.ts +46 -0
- package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +29 -0
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +325 -0
- package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +59 -0
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +154 -0
- package/dist/types/components/bn-chart-time/utils/elements/AreaFill.d.ts +23 -0
- package/dist/types/components/bn-chart-time/utils/elements/Axis.d.ts +28 -0
- package/dist/types/components/bn-chart-time/utils/elements/Column.d.ts +68 -0
- package/dist/types/components/bn-chart-time/utils/elements/Label.d.ts +55 -0
- package/dist/types/components/bn-chart-time/utils/elements/Line.d.ts +48 -0
- package/dist/types/components/bn-chart-time/utils/elements/LineSeries.d.ts +74 -0
- package/dist/types/components/bn-chart-time/utils/elements/Marker.d.ts +37 -0
- package/dist/types/components/bn-chart-time/utils/elements/Needle.d.ts +41 -0
- package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +40 -0
- package/dist/types/components/bn-chart-time/utils/elements/index.d.ts +8 -0
- package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +65 -0
- package/dist/types/components/bn-chart-time/utils/factories/index.d.ts +1 -0
- package/dist/types/components/bn-chart-time/utils/helper/CustomPattern.d.ts +22 -0
- package/dist/types/components/bn-chart-time/utils/helper/ElementPositions.d.ts +60 -0
- package/dist/types/components/bn-chart-time/utils/helper/LabelCollisionManager.d.ts +101 -0
- package/dist/types/components/bn-chart-time/utils/helper/MarkerPattern.d.ts +42 -0
- package/dist/types/components/bn-chart-time/utils/helper/Padding.d.ts +14 -0
- package/dist/types/components/bn-chart-time/utils/helper/index.d.ts +5 -0
- package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +44 -0
- package/dist/types/components/bn-chart-time/utils/model/OverflowConfig.d.ts +7 -0
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +73 -0
- package/dist/types/components/bn-chart-time/utils/model/TimeChartDataRow.d.ts +62 -0
- package/dist/types/components/bn-chart-time/utils/model/index.d.ts +109 -0
- package/dist/types/components/bn-chart-time/utils/model/styles/ScaleFactorsTimeChart.d.ts +46 -0
- package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +29 -0
- package/dist/types/components/bn-component-style/bn-component-style.d.ts +8 -0
- package/dist/types/components/bn-context/bn-context.d.ts +19 -0
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +38 -0
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +18 -0
- package/dist/types/components/bn-footer/bn-footer.d.ts +29 -0
- package/dist/types/components/bn-grid/bn-grid.d.ts +70 -0
- package/dist/types/components/bn-grid/utils/GridConfig.d.ts +47 -0
- package/dist/types/components/bn-image/bn-image.d.ts +22 -0
- package/dist/types/components/bn-internationalization/bn-internationalization.d.ts +9 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +38 -0
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +40 -0
- package/dist/types/components/bn-map/bn-map.d.ts +122 -0
- package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +73 -0
- package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +8 -0
- package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +11 -0
- package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +9 -0
- package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +2 -0
- package/dist/types/components/bn-message/bn-message.d.ts +27 -0
- package/dist/types/components/bn-page/bn-page.d.ts +29 -0
- package/dist/types/components/bn-table/bn-table.d.ts +373 -0
- package/dist/types/components/bn-table/ibcs-table.d.ts +59 -0
- package/dist/types/components/bn-table/utils/Table.d.ts +61 -0
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +36 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +45 -0
- package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +30 -0
- package/dist/types/components/bn-table/utils/elements/index.d.ts +3 -0
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +114 -0
- package/dist/types/components/bn-table/utils/helper/ColumnStatistics.d.ts +21 -0
- package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +139 -0
- package/dist/types/components/bn-table/utils/helper/QueryGroup.d.ts +19 -0
- package/dist/types/components/bn-table/utils/helper/index.d.ts +1 -0
- package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +72 -0
- package/dist/types/components/bn-table/utils/model/TableDataRow.d.ts +70 -0
- package/dist/types/components/bn-table/utils/model/TableDrillGroup.d.ts +22 -0
- package/dist/types/components/bn-table/utils/model/index.d.ts +130 -0
- package/dist/types/components/bn-template/bn-template.d.ts +10 -0
- package/dist/types/components/bn-text/bn-text.d.ts +63 -0
- package/dist/types/components/bn-title/bn-title.d.ts +128 -0
- package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +23 -0
- package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +28 -0
- package/dist/types/components/bn-title/ibcs-title/utils/factories/TitleDataSetFactory.d.ts +26 -0
- package/dist/types/components/bn-title/ibcs-title/utils/factories/index.d.ts +1 -0
- package/dist/types/components/bn-title/ibcs-title/utils/model/MeasureEntriy.d.ts +11 -0
- package/dist/types/components/bn-title/ibcs-title/utils/model/TimePeriod.d.ts +15 -0
- package/dist/types/components/bn-title/ibcs-title/utils/model/TitleConfig.d.ts +25 -0
- package/dist/types/components/bn-title/ibcs-title/utils/model/index.d.ts +35 -0
- package/dist/types/components/bn-tree/bn-tree.d.ts +84 -0
- package/dist/types/components/bn-tree/utils/EdgeRenderer.d.ts +57 -0
- package/dist/types/components/bn-tree/utils/TreeLayout.d.ts +37 -0
- package/dist/types/components/bn-tree/utils/TreeParser.d.ts +42 -0
- package/dist/types/components/editor-companion/editor-companion.d.ts +18 -0
- package/dist/types/components.d.ts +3311 -0
- package/dist/types/context/context-protocol.d.ts +53 -0
- package/dist/types/declarations.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/stores/assets.d.ts +12 -0
- package/dist/types/stores/componentStyles.d.ts +82 -0
- package/dist/types/stores/context.d.ts +12 -0
- package/dist/types/stores/createScopedStores.d.ts +12 -0
- package/dist/types/stores/datasets.d.ts +14 -0
- package/dist/types/stores/datasetsMeta.d.ts +14 -0
- package/dist/types/stores/datasources.d.ts +14 -0
- package/dist/types/stores/internationalization.d.ts +9 -0
- package/dist/types/test-runner/test-runner-card.d.ts +3 -0
- package/dist/types/test-runner/test-runner-chart-time.d.ts +3 -0
- package/dist/types/test-runner/test-runner-chart.d.ts +3 -0
- package/dist/types/test-runner/test-runner-map.d.ts +3 -0
- package/dist/types/test-runner/test-runner-table.d.ts +3 -0
- package/dist/types/test-runner/test-runner-time.d.ts +3 -0
- package/dist/types/test-runner/test-runner-title.d.ts +3 -0
- package/dist/types/utils/DataUriUtil.d.ts +5 -0
- package/dist/types/utils/DateStringFactory.d.ts +123 -0
- package/dist/types/utils/componentRegister.d.ts +38 -0
- package/dist/types/utils/constants.d.ts +142 -0
- package/dist/types/utils/dataAnalyzer.d.ts +56 -0
- package/dist/types/utils/datasetMetaCalculator.d.ts +16 -0
- package/dist/types/utils/flattenObject.d.ts +13 -0
- package/dist/types/utils/formatter.d.ts +34 -0
- package/dist/types/utils/helper/AdapterUtils.d.ts +11 -0
- package/dist/types/utils/helper/CompareUtil.d.ts +26 -0
- package/dist/types/utils/helper/IAdapter.d.ts +16 -0
- package/dist/types/utils/helper/StringAdapter.d.ts +5 -0
- package/dist/types/utils/ibcsRuleSet.d.ts +47 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/model/ChartStyles.d.ts +58 -0
- package/dist/types/utils/model/DataFormatDigits.d.ts +11 -0
- package/dist/types/utils/model/DataQueryResultRow.d.ts +29 -0
- package/dist/types/utils/model/DatasetMeta.d.ts +43 -0
- package/dist/types/utils/model/DateFormat.d.ts +38 -0
- package/dist/types/utils/model/Order.d.ts +46 -0
- package/dist/types/utils/model/SiPrefix.d.ts +11 -0
- package/dist/types/utils/model/TextStyles.d.ts +10 -0
- package/dist/types/utils/model/VarianceScenario.d.ts +20 -0
- package/dist/types/utils/model/index.d.ts +37 -0
- package/dist/types/utils/model/styles/FontStyle.d.ts +13 -0
- package/dist/types/utils/model/styles/Padding.d.ts +11 -0
- package/dist/types/utils/model/styles/SVGStyle.d.ts +20 -0
- package/dist/types/utils/model/styles/SVGStyleGroup.d.ts +16 -0
- package/dist/types/utils/model/styles/SVGVariancesStyleGroup.d.ts +16 -0
- package/dist/types/utils/parentDimensions.d.ts +13 -0
- package/dist/types/utils/scaling.d.ts +22 -0
- package/dist/types/utils/stackColors.d.ts +20 -0
- package/dist/types/utils/styled/attributes.d.ts +6 -0
- package/dist/types/utils/styled/style-sheet.d.ts +10 -0
- package/dist/types/utils/styled/withStyled.d.ts +12 -0
- package/dist/types/utils/templateId.d.ts +9 -0
- package/dist/types/utils/utils.d.ts +36 -0
- package/dist/types/utils/validate.d.ts +55 -0
- package/dist/types/utils/withBodyObserver.d.ts +14 -0
- package/dist/types/utils/withComponentStatus.d.ts +15 -0
- package/dist/types/utils/withComponentStyle.d.ts +20 -0
- package/dist/types/utils/withDataset.d.ts +18 -0
- package/dist/types/utils/withDatasource.d.ts +16 -0
- package/dist/types/utils/withHasError.d.ts +35 -0
- package/dist/types/utils/withTranslation.d.ts +24 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +68 -0
- package/readme.md +164 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { FactoryState } from "./model";
|
|
2
|
+
// import {IBCSRuleSet} from "../../../utils/ibcsRuleSet";
|
|
3
|
+
import { TableDataSetFactory } from "./factories/tableDataSetFactory";
|
|
4
|
+
// import { Order } from "../../../utils/model/Order";
|
|
5
|
+
import alasql from "alasql";
|
|
6
|
+
import { IBCSRuleSet } from "../../../utils/ibcsRuleSet";
|
|
7
|
+
/**
|
|
8
|
+
* High-level controller for IBCS table generation.
|
|
9
|
+
*
|
|
10
|
+
* Coordinates the data pipeline: raw data is filtered via AlaSQL, scenarios are
|
|
11
|
+
* sorted by the visualization rule set, and TableDataSetFactory produces the
|
|
12
|
+
* header rows (with i18n-translated labels) and body rows (with grouped/drilled data).
|
|
13
|
+
*
|
|
14
|
+
* Uses a dirty-flag pattern (FactoryState) to lazily regenerate header/body rows
|
|
15
|
+
* only when configuration, data, or i18n changes. getHeader() and getBody() trigger
|
|
16
|
+
* regeneration if the state is dirty.
|
|
17
|
+
*/
|
|
18
|
+
export class Table {
|
|
19
|
+
/**
|
|
20
|
+
* Initialises all Variables for the DataSet, created by the factory
|
|
21
|
+
* @param ruleSet
|
|
22
|
+
*/
|
|
23
|
+
constructor(ruleSet, data, config) {
|
|
24
|
+
this.data = [];
|
|
25
|
+
this.headerRows = [];
|
|
26
|
+
this.bodyRows = [];
|
|
27
|
+
this.ruleSet = ruleSet || new IBCSRuleSet();
|
|
28
|
+
this.dataSetFactory = new TableDataSetFactory();
|
|
29
|
+
this.config = this.initConfig(config);
|
|
30
|
+
this.i18n = this.initI18n(new Map());
|
|
31
|
+
this.setData(data, config.filter);
|
|
32
|
+
this.state = FactoryState.DIRTY;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Init load of translation dictionary map
|
|
36
|
+
* map is used to translate lables in the table
|
|
37
|
+
*
|
|
38
|
+
* example:
|
|
39
|
+
* ```
|
|
40
|
+
* let i18n: Map<string, string> = new Map();
|
|
41
|
+
* [{key: 'ac',value: 'AC'}].forEach(function(entry){
|
|
42
|
+
* i18n.set(entry.key, entry.value);
|
|
43
|
+
* })
|
|
44
|
+
* ```
|
|
45
|
+
* @param i18n
|
|
46
|
+
*/
|
|
47
|
+
setI18n(i18n) {
|
|
48
|
+
this.i18n = this.initI18n(i18n);
|
|
49
|
+
}
|
|
50
|
+
initI18n(i18n) {
|
|
51
|
+
const defaultI18n = new Map([
|
|
52
|
+
["", ""],
|
|
53
|
+
["SEPERATOR_WS", ", "],
|
|
54
|
+
["in", "in"],
|
|
55
|
+
["ORDER_asc", "↑"],
|
|
56
|
+
["ORDER_desc", "↓"],
|
|
57
|
+
["ac1", "AC"],
|
|
58
|
+
["pp1", "PY"],
|
|
59
|
+
["fc1", "FC"],
|
|
60
|
+
["pl1", "PL"],
|
|
61
|
+
["ac2", "AC2"],
|
|
62
|
+
["pp2", "PY2"],
|
|
63
|
+
["fc2", "FC2"],
|
|
64
|
+
["pl2", "PL2"],
|
|
65
|
+
["ac3", "AC3"],
|
|
66
|
+
["pp3", "PY3"],
|
|
67
|
+
["fc3", "FC3"],
|
|
68
|
+
["pl3", "PL3"],
|
|
69
|
+
["ac4", "AC4"],
|
|
70
|
+
["pp4", "PY4"],
|
|
71
|
+
["fc4", "FC4"],
|
|
72
|
+
["pl4", "PL4"],
|
|
73
|
+
["in", "in"],
|
|
74
|
+
["category", " "],
|
|
75
|
+
["operation", " "],
|
|
76
|
+
["there_of", "davon"],
|
|
77
|
+
["part_of", "in % von"],
|
|
78
|
+
["ibcssymbol_delta_ac", "Δ{%}"],
|
|
79
|
+
["ibcssymbol_delta_generic", "Δ({%})"],
|
|
80
|
+
["ibcssymbol_delta_ac_relative", "Δ{%}%"],
|
|
81
|
+
["ibcssymbol_delta_generic_relative", "Δ({%})%"],
|
|
82
|
+
["SUM_TOTAL", "❖"],
|
|
83
|
+
]);
|
|
84
|
+
this.state = FactoryState.DIRTY; // mark dataSet for update
|
|
85
|
+
return new Map([...defaultI18n, ...(i18n || new Map())]);
|
|
86
|
+
}
|
|
87
|
+
initConfig(config) {
|
|
88
|
+
this.state = FactoryState.DIRTY; // mark dataSet for update
|
|
89
|
+
const tmpConfig = config;
|
|
90
|
+
// sorting scenario order based on Ruleset
|
|
91
|
+
const self = this;
|
|
92
|
+
config.scenarios.sort((n1, n2) => {
|
|
93
|
+
return self.ruleSet.getScenarioSorIndex(n1) - self.ruleSet.getScenarioSorIndex(n2);
|
|
94
|
+
});
|
|
95
|
+
return tmpConfig;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* loads and varifies configuration which describes
|
|
99
|
+
* the filte for the to be generated dataset
|
|
100
|
+
*
|
|
101
|
+
* missing but necessary attributes are replaced by default values
|
|
102
|
+
*
|
|
103
|
+
* @param config
|
|
104
|
+
*/
|
|
105
|
+
setConfig(config) {
|
|
106
|
+
this.config = this.initConfig(config);
|
|
107
|
+
}
|
|
108
|
+
setData(data, filter) {
|
|
109
|
+
if (data == null) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (filter != null && filter.length > 0) {
|
|
113
|
+
try {
|
|
114
|
+
this.data = alasql(`SELECT * FROM ? WHERE ${filter}`, [data]);
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
console.error("Table: filter query failed, using unfiltered data", filter, e);
|
|
118
|
+
this.data = data;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
this.data = data;
|
|
123
|
+
}
|
|
124
|
+
const normalizedScenarios = this.normalizeScenarios(this.config.scenarios, this.config.categoryThereOf, this.config.sortOrder);
|
|
125
|
+
this.headerRows = this.dataSetFactory.createHeader(this.config.type, normalizedScenarios, this.i18n, this.config.measureScale, this.config.measureUnit, this.config.showMeasureScale);
|
|
126
|
+
this.bodyRows = this.dataSetFactory.createBodyRows(this.config, this.i18n, this.data);
|
|
127
|
+
this.state = FactoryState.UP_TO_DATE;
|
|
128
|
+
}
|
|
129
|
+
update() {
|
|
130
|
+
const normalizedScenarios = this.normalizeScenarios(this.config.scenarios, this.config.categoryThereOf, this.config.sortOrder);
|
|
131
|
+
this.headerRows = this.dataSetFactory.createHeader(this.config.type, normalizedScenarios, this.i18n, this.config.measureScale, this.config.measureUnit, this.config.showMeasureScale);
|
|
132
|
+
this.bodyRows = this.dataSetFactory.createBodyRows(this.config, this.i18n, this.data);
|
|
133
|
+
this.state = FactoryState.UP_TO_DATE;
|
|
134
|
+
}
|
|
135
|
+
getHeader() {
|
|
136
|
+
if (this.state === FactoryState.DIRTY) {
|
|
137
|
+
this.update();
|
|
138
|
+
}
|
|
139
|
+
return this.headerRows;
|
|
140
|
+
}
|
|
141
|
+
getBody() {
|
|
142
|
+
if (this.state === FactoryState.DIRTY) {
|
|
143
|
+
this.update();
|
|
144
|
+
}
|
|
145
|
+
return this.bodyRows;
|
|
146
|
+
}
|
|
147
|
+
normalizeScenarios(scenarios, categoryThereOf, order) {
|
|
148
|
+
var _a;
|
|
149
|
+
const normalizedScenarios = [];
|
|
150
|
+
for (const scenario of scenarios) {
|
|
151
|
+
if (categoryThereOf === null || categoryThereOf === void 0 ? void 0 : categoryThereOf.has(scenario)) {
|
|
152
|
+
const categoryDrills = categoryThereOf.get(scenario);
|
|
153
|
+
for (const drillElement of categoryDrills) {
|
|
154
|
+
normalizedScenarios.push({
|
|
155
|
+
name: drillElement.name,
|
|
156
|
+
group: drillElement.name,
|
|
157
|
+
type: scenario,
|
|
158
|
+
order: undefined,
|
|
159
|
+
});
|
|
160
|
+
for (const drillSubElement of drillElement.subGroups) {
|
|
161
|
+
normalizedScenarios.push({
|
|
162
|
+
name: drillSubElement,
|
|
163
|
+
group: drillElement.name,
|
|
164
|
+
type: scenario,
|
|
165
|
+
order: undefined,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
normalizedScenarios.push({ name: "REST", group: "REST", type: scenario, order: undefined });
|
|
170
|
+
}
|
|
171
|
+
let orderDirection = undefined;
|
|
172
|
+
if (((_a = order === null || order === void 0 ? void 0 : order.hierarchy) === null || _a === void 0 ? void 0 : _a.at(0)) === scenario) {
|
|
173
|
+
orderDirection = order.direction;
|
|
174
|
+
}
|
|
175
|
+
normalizedScenarios.push({ name: scenario, group: scenario, type: scenario, order: orderDirection });
|
|
176
|
+
}
|
|
177
|
+
return normalizedScenarios;
|
|
178
|
+
}
|
|
179
|
+
hasNoData() {
|
|
180
|
+
return this.data.length === 0;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// import {Formatter} from "../../../../utils/formatter";
|
|
2
|
+
// import {DataFormatDigits} from "../../../../utils/model/DataFormatDigits";
|
|
3
|
+
import { Formatter } from "../../../../utils";
|
|
4
|
+
/**
|
|
5
|
+
* Represents a single table cell with formatting and rendering capabilities.
|
|
6
|
+
*
|
|
7
|
+
* The draw() method implements a formatting pipeline:
|
|
8
|
+
* 1. Checks for undefined/null/NaN values -- returns empty string for missing data
|
|
9
|
+
* 2. Non-numeric values (category labels) are returned as-is
|
|
10
|
+
* 3. Numeric values are routed through Formatter.number() with the cell's type
|
|
11
|
+
* (decimal or percent) and configured digit precision
|
|
12
|
+
* 4. For decimal type, the raw value is divided by measureScale before formatting,
|
|
13
|
+
* enabling SI prefix display (e.g. "in Mio EUR")
|
|
14
|
+
*/
|
|
15
|
+
export class Cell {
|
|
16
|
+
constructor(scenario, index, value, cssStyle, type, prefix, prefixStyle, colSpan, measureScale) {
|
|
17
|
+
this.prefixStyle = "prefix";
|
|
18
|
+
this.isBarChart = false;
|
|
19
|
+
this.key = scenario;
|
|
20
|
+
this.index = index;
|
|
21
|
+
this.value = value;
|
|
22
|
+
this.prefix = prefix || "";
|
|
23
|
+
this.cssStyle = cssStyle || "";
|
|
24
|
+
this.prefixStyle = prefixStyle || "prefix";
|
|
25
|
+
this.type = type;
|
|
26
|
+
this.mark = undefined;
|
|
27
|
+
this.colSpan = colSpan || 1;
|
|
28
|
+
this.measureScale = measureScale || 1;
|
|
29
|
+
}
|
|
30
|
+
getAsHeaderList() {
|
|
31
|
+
if (this.value == null) {
|
|
32
|
+
return [""];
|
|
33
|
+
}
|
|
34
|
+
const result = [];
|
|
35
|
+
for (const line of this.value.toString().split("<br/>")) {
|
|
36
|
+
result.push(line);
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
draw(dataFormatDigits) {
|
|
41
|
+
let cellValue = this.value;
|
|
42
|
+
if (cellValue === "undefined" || cellValue === undefined || cellValue == null) {
|
|
43
|
+
return "";
|
|
44
|
+
}
|
|
45
|
+
if (Number.isNaN(Number(cellValue))) {
|
|
46
|
+
return cellValue;
|
|
47
|
+
}
|
|
48
|
+
if (this.type === "" || this.type === undefined || this.type == null) {
|
|
49
|
+
return cellValue;
|
|
50
|
+
}
|
|
51
|
+
let digitsMin = dataFormatDigits.percent;
|
|
52
|
+
let scale = dataFormatDigits.percent;
|
|
53
|
+
if (this.type === "decimal") {
|
|
54
|
+
cellValue = +cellValue / this.measureScale;
|
|
55
|
+
digitsMin = dataFormatDigits.decimal;
|
|
56
|
+
scale = dataFormatDigits.decimal;
|
|
57
|
+
}
|
|
58
|
+
return Formatter.number(Number(cellValue), this.type, digitsMin, scale);
|
|
59
|
+
}
|
|
60
|
+
drawPrefix() {
|
|
61
|
+
if (this.prefix == null) {
|
|
62
|
+
return "";
|
|
63
|
+
}
|
|
64
|
+
return this.prefix;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
// Default fallback colors (should come from componentStyle)
|
|
3
|
+
const DEFAULT_STYLES = {
|
|
4
|
+
positive: { stroke: "#008f96", fill: "#008f96", fillpattern: "solid" },
|
|
5
|
+
negative: { stroke: "#ff0000", fill: "#ff0000", fillpattern: "solid" },
|
|
6
|
+
neutral: { stroke: "#808080", fill: "#808080", fillpattern: "outlined" },
|
|
7
|
+
scenarios: {
|
|
8
|
+
ac: { stroke: "#404040", fill: "#404040", fillpattern: "solid" },
|
|
9
|
+
pp: { stroke: "#A6A6A6", fill: "#A6A6A6", fillpattern: "solid" },
|
|
10
|
+
fc: { stroke: "#404040", fill: "#ffffff", fillpattern: "hatched" },
|
|
11
|
+
pl: { stroke: "#404040", fill: "#ffffff", fillpattern: "outlined" },
|
|
12
|
+
},
|
|
13
|
+
fontColor: "#000000",
|
|
14
|
+
fontSize: 11,
|
|
15
|
+
fontFamily: "'Noto Sans', sans-serif",
|
|
16
|
+
unitScaling: 0.01, // Default: 1000 units = 10 pixels
|
|
17
|
+
percentageScaling: 0.5, // Default: 100% = 50 pixels
|
|
18
|
+
scaleFactor: 1,
|
|
19
|
+
};
|
|
20
|
+
const AXIS_COLOR = "#666666";
|
|
21
|
+
/**
|
|
22
|
+
* Creates a unique pattern ID for the SVG defs
|
|
23
|
+
*/
|
|
24
|
+
function getPatternId(prefix, color) {
|
|
25
|
+
return `pattern-${prefix}-${color.replace("#", "")}`;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Renders SVG pattern definitions for hatched fills
|
|
29
|
+
*/
|
|
30
|
+
const PatternDefs = ({ styles }) => {
|
|
31
|
+
const s = styles.scaleFactor;
|
|
32
|
+
const patternSize = 6 * s;
|
|
33
|
+
const patterns = [
|
|
34
|
+
{ id: getPatternId("pos", styles.positive.stroke), stroke: styles.positive.stroke, fill: styles.positive.fill },
|
|
35
|
+
{ id: getPatternId("neg", styles.negative.stroke), stroke: styles.negative.stroke, fill: styles.negative.fill },
|
|
36
|
+
{ id: getPatternId("neu", styles.neutral.stroke), stroke: styles.neutral.stroke, fill: styles.neutral.fill },
|
|
37
|
+
];
|
|
38
|
+
return (h("defs", null, patterns.map((p) => (h("pattern", { id: p.id, patternUnits: "userSpaceOnUse", width: patternSize, height: patternSize }, h("rect", { width: patternSize, height: patternSize, fill: "#ffffff" }), h("line", { x1: "0", y1: patternSize, x2: patternSize, y2: "0", stroke: p.stroke, "stroke-width": 1.5 * s }))))));
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Formats a number for display with appropriate SI prefix.
|
|
42
|
+
*/
|
|
43
|
+
function formatValue(value, isRelative, measureScale = 1) {
|
|
44
|
+
let scaledValue;
|
|
45
|
+
let absValue;
|
|
46
|
+
const prefix = value >= 0 ? "+" : "";
|
|
47
|
+
if (isRelative) {
|
|
48
|
+
// Relative variance is stored as decimal (e.g., -2.0 = -200%)
|
|
49
|
+
// Multiply by 100 to get percentage value for display
|
|
50
|
+
scaledValue = value * 100;
|
|
51
|
+
// Show as integer percentage with % suffix
|
|
52
|
+
return prefix + Math.round(scaledValue).toString() + "%";
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
// Absolute variance - apply measure scale and use SI prefixes
|
|
56
|
+
scaledValue = value / measureScale;
|
|
57
|
+
absValue = Math.abs(scaledValue);
|
|
58
|
+
let formatted;
|
|
59
|
+
if (absValue >= 1000000000) {
|
|
60
|
+
formatted = (scaledValue / 1000000000).toFixed(absValue >= 10000000000 ? 0 : 1) + "B";
|
|
61
|
+
}
|
|
62
|
+
else if (absValue >= 1000000) {
|
|
63
|
+
formatted = (scaledValue / 1000000).toFixed(absValue >= 10000000 ? 0 : 1) + "M";
|
|
64
|
+
}
|
|
65
|
+
else if (absValue >= 1000) {
|
|
66
|
+
formatted = (scaledValue / 1000).toFixed(absValue >= 10000 ? 0 : 1) + "K";
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
formatted = scaledValue.toFixed(absValue >= 10 ? 0 : 1);
|
|
70
|
+
}
|
|
71
|
+
// Remove trailing .0 if present
|
|
72
|
+
formatted = formatted.replace(/\.0([KMB]?)$/, "$1");
|
|
73
|
+
return prefix + formatted;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Checks if the column is a scenario column (ac, pp, fc, pl) vs variance (d_, dr_).
|
|
78
|
+
*/
|
|
79
|
+
function isScenarioColumn(scenario) {
|
|
80
|
+
const scenarioPrefix = scenario.slice(0, 2).toLowerCase();
|
|
81
|
+
return ["ac", "pp", "fc", "pl"].includes(scenarioPrefix);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Gets the scenario type from the column name (ac, pp, fc, pl).
|
|
85
|
+
*/
|
|
86
|
+
function getScenarioType(scenario) {
|
|
87
|
+
const scenarioPrefix = scenario.slice(0, 2).toLowerCase();
|
|
88
|
+
if (scenarioPrefix === "pp")
|
|
89
|
+
return "pp";
|
|
90
|
+
if (scenarioPrefix === "fc")
|
|
91
|
+
return "fc";
|
|
92
|
+
if (scenarioPrefix === "pl")
|
|
93
|
+
return "pl";
|
|
94
|
+
return "ac"; // default
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Gets the style for a scenario column (ac, pp, fc, pl).
|
|
98
|
+
*/
|
|
99
|
+
function getScenarioStyle(scenario, styles) {
|
|
100
|
+
const type = getScenarioType(scenario);
|
|
101
|
+
return styles.scenarios[type];
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Gets the variance style based on value and sentiment direction.
|
|
105
|
+
* pos suffix = positive values are good (green), negative are bad (red)
|
|
106
|
+
* neg suffix = negative values are good (green), positive are bad (red)
|
|
107
|
+
*/
|
|
108
|
+
function getVarianceStyle(value, isPositiveGood, styles) {
|
|
109
|
+
const isPositive = value >= 0;
|
|
110
|
+
if (isPositiveGood) {
|
|
111
|
+
return isPositive ? styles.positive : styles.negative;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return isPositive ? styles.negative : styles.positive;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Gets the appropriate style for a bar based on column type.
|
|
119
|
+
* Scenarios (ac, pp, fc, pl) use scenario styles.
|
|
120
|
+
* Variances (d_, dr_) use variance styles with pos/neg/neu coloring.
|
|
121
|
+
*/
|
|
122
|
+
function getBarStyle(scenario, value, isPositiveGood, styles) {
|
|
123
|
+
if (isScenarioColumn(scenario)) {
|
|
124
|
+
return getScenarioStyle(scenario, styles);
|
|
125
|
+
}
|
|
126
|
+
return getVarianceStyle(value, isPositiveGood, styles);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Gets the fill value for a bar - either solid color, pattern URL, or transparent with stroke.
|
|
130
|
+
*/
|
|
131
|
+
function getBarFill(varianceStyle, patternPrefix) {
|
|
132
|
+
const pattern = varianceStyle.fillpattern;
|
|
133
|
+
if (pattern === "hatched") {
|
|
134
|
+
return `url(#${getPatternId(patternPrefix, varianceStyle.stroke)})`;
|
|
135
|
+
}
|
|
136
|
+
if (pattern === "outlined") {
|
|
137
|
+
return "transparent";
|
|
138
|
+
}
|
|
139
|
+
// Default: solid fill
|
|
140
|
+
return varianceStyle.fill;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Gets the stroke for a bar based on pattern type.
|
|
144
|
+
*/
|
|
145
|
+
function getBarStroke(varianceStyle) {
|
|
146
|
+
const pattern = varianceStyle.fillpattern;
|
|
147
|
+
if (pattern === "outlined") {
|
|
148
|
+
return { stroke: varianceStyle.stroke, strokeWidth: 1.5 }; // scaled by caller via * s
|
|
149
|
+
}
|
|
150
|
+
// Solid and hatched bars don't need visible stroke
|
|
151
|
+
return { stroke: "none", strokeWidth: 0 };
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Renders an absolute variance bar chart (d_ prefix).
|
|
155
|
+
* Horizontal bar with centered axis, green for positive, red for negative.
|
|
156
|
+
* Value label shown next to the bar (black text per IBCS).
|
|
157
|
+
*
|
|
158
|
+
* Layout: [left label area][bar area with axis][right label area]
|
|
159
|
+
* Uses unitScaling to determine bar width (pixels per unit of measure).
|
|
160
|
+
*/
|
|
161
|
+
const AbsoluteVarianceBar = (props) => {
|
|
162
|
+
const { value, scenario, height, isPositiveGood, formattedValue, measureScale, styles = DEFAULT_STYLES } = props;
|
|
163
|
+
const s = styles.scaleFactor;
|
|
164
|
+
const labelAreaWidth = 50 * s;
|
|
165
|
+
const maxBarWidth = 40 * s;
|
|
166
|
+
const barAreaWidth = maxBarWidth * 2;
|
|
167
|
+
const totalWidth = labelAreaWidth + barAreaWidth + labelAreaWidth;
|
|
168
|
+
const padding = 2 * s;
|
|
169
|
+
const barHeight = height - padding * 2;
|
|
170
|
+
const axisX = labelAreaWidth + maxBarWidth; // Axis in center of bar area
|
|
171
|
+
// Calculate bar width using unitScaling (pixels per unit)
|
|
172
|
+
// Clamp to maxBarWidth to prevent overflow
|
|
173
|
+
const scaledWidth = Math.abs(value) * styles.unitScaling * s;
|
|
174
|
+
const barWidth = Math.min(scaledWidth, maxBarWidth);
|
|
175
|
+
const isPositive = value >= 0;
|
|
176
|
+
const barX = isPositive ? axisX : axisX - barWidth;
|
|
177
|
+
const barY = padding;
|
|
178
|
+
// Get style based on column type (scenario vs variance)
|
|
179
|
+
const barStyle = getBarStyle(scenario, value, isPositiveGood, styles);
|
|
180
|
+
// Pattern prefix for scenarios uses scenario type, for variances uses pos/neg
|
|
181
|
+
const patternPrefix = isScenarioColumn(scenario)
|
|
182
|
+
? getScenarioType(scenario)
|
|
183
|
+
: isPositiveGood
|
|
184
|
+
? isPositive
|
|
185
|
+
? "pos"
|
|
186
|
+
: "neg"
|
|
187
|
+
: isPositive
|
|
188
|
+
? "neg"
|
|
189
|
+
: "pos";
|
|
190
|
+
const fillValue = getBarFill(barStyle, patternPrefix);
|
|
191
|
+
const { stroke: barStroke, strokeWidth: barStrokeWidth } = getBarStroke(barStyle);
|
|
192
|
+
const displayValue = formattedValue || formatValue(value, false, measureScale);
|
|
193
|
+
// Label position: in the label area on the appropriate side
|
|
194
|
+
// Positive values: label in right area, left-aligned
|
|
195
|
+
// Negative values: label in left area, right-aligned
|
|
196
|
+
const labelX = isPositive ? axisX + barWidth + 4 * s : axisX - barWidth - 4 * s;
|
|
197
|
+
const labelAnchor = isPositive ? "start" : "end";
|
|
198
|
+
return (h("svg", { width: totalWidth, height: height, class: "cell-bar-chart absolute-variance", style: { overflow: "visible" } }, h(PatternDefs, { styles: styles }), h("line", { x1: axisX, y1: 0, x2: axisX, y2: height, stroke: AXIS_COLOR, "stroke-width": 1 * s }), barWidth > 0 && (h("rect", { x: barX, y: barY, width: barWidth, height: barHeight, fill: fillValue, stroke: barStroke, "stroke-width": barStrokeWidth * s })), h("text", { x: labelX, y: height / 2, dy: "0.35em", "text-anchor": labelAnchor, fill: styles.fontColor, "font-size": styles.fontSize, "font-family": styles.fontFamily }, displayValue)));
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Renders a relative variance pin chart (dr_ prefix).
|
|
202
|
+
* Thin horizontal line from axis with dot at end and value label.
|
|
203
|
+
*
|
|
204
|
+
* Layout: [pin area with axis][label area on right]
|
|
205
|
+
* Uses percentageScaling to determine pin length (pixels per percentage point).
|
|
206
|
+
*/
|
|
207
|
+
const RelativeVariancePin = (props) => {
|
|
208
|
+
const { value, scenario, height, isPositiveGood, formattedValue, measureScale, styles = DEFAULT_STYLES } = props;
|
|
209
|
+
const s = styles.scaleFactor;
|
|
210
|
+
const maxPinLength = 25 * s;
|
|
211
|
+
const pinAreaWidth = maxPinLength * 2 + 10 * s;
|
|
212
|
+
const labelAreaWidth = 70 * s;
|
|
213
|
+
const totalWidth = pinAreaWidth + labelAreaWidth;
|
|
214
|
+
const axisX = pinAreaWidth / 2;
|
|
215
|
+
const centerY = height / 2;
|
|
216
|
+
// Calculate pin length using percentageScaling (pixels per percentage point)
|
|
217
|
+
// Value is in decimal form (e.g., 0.5 = 50%), multiply by 100 to get percentage
|
|
218
|
+
const percentValue = Math.abs(value) * 100;
|
|
219
|
+
const scaledLength = percentValue * styles.percentageScaling * s;
|
|
220
|
+
const pinLength = Math.min(scaledLength, maxPinLength);
|
|
221
|
+
const isPositive = value >= 0;
|
|
222
|
+
const pinEndX = isPositive ? axisX + pinLength : axisX - pinLength;
|
|
223
|
+
// Get style based on column type (scenario vs variance)
|
|
224
|
+
const barStyle = getBarStyle(scenario, value, isPositiveGood, styles);
|
|
225
|
+
const dotRadius = 3 * s;
|
|
226
|
+
// Show arrow for extreme values (when pin would exceed max length)
|
|
227
|
+
const isExtreme = scaledLength > maxPinLength;
|
|
228
|
+
const displayValue = formattedValue || formatValue(value, true, measureScale);
|
|
229
|
+
// Label always on the right side after the pin area
|
|
230
|
+
const labelX = pinAreaWidth + 4 * s;
|
|
231
|
+
return (h("svg", { width: totalWidth, height: height, class: "cell-bar-chart relative-variance", style: { overflow: "visible" } }, h("line", { x1: axisX, y1: 0, x2: axisX, y2: height, stroke: AXIS_COLOR, "stroke-width": 1 * s }), !isExtreme && h("circle", { cx: pinEndX, cy: centerY, r: dotRadius, fill: styles.fontColor }), h("line", { x1: axisX, y1: centerY, x2: pinEndX, y2: centerY, stroke: barStyle.fill, "stroke-width": 2 * s }), isExtreme && isPositive && (h("polygon", { points: `${pinAreaWidth - 2 * s},${centerY} ${pinAreaWidth - 8 * s},${centerY - 3 * s} ${pinAreaWidth - 8 * s},${centerY + 3 * s}`, fill: barStyle.fill })), isExtreme && !isPositive && (h("polygon", { points: `${2 * s},${centerY} ${8 * s},${centerY - 3 * s} ${8 * s},${centerY + 3 * s}`, fill: barStyle.fill })), h("text", { x: labelX, y: height / 2, dy: "0.35em", "text-anchor": "start", fill: styles.fontColor, "font-size": styles.fontSize, "font-style": "italic", "font-family": styles.fontFamily }, displayValue)));
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* CellBarChart - Renders IBCS-compliant variance bar charts.
|
|
235
|
+
*
|
|
236
|
+
* Absolute variance (d_ prefix): Horizontal bars with centered axis
|
|
237
|
+
* Relative variance (dr_ prefix): Pin/dot charts with value indication
|
|
238
|
+
*
|
|
239
|
+
* Uses componentStyle patterns from chart components for consistent styling.
|
|
240
|
+
*/
|
|
241
|
+
export const CellBarChart = (props) => {
|
|
242
|
+
const { value, columnStats, isRelative, styles = DEFAULT_STYLES } = props;
|
|
243
|
+
// Handle invalid values
|
|
244
|
+
if (value === null || value === undefined || isNaN(value) || !columnStats || columnStats.absMax === 0) {
|
|
245
|
+
return (h("span", { class: "bar-chart-empty", style: { color: styles.fontColor, fontStyle: "italic" } }, "-"));
|
|
246
|
+
}
|
|
247
|
+
if (isRelative) {
|
|
248
|
+
return h(RelativeVariancePin, Object.assign({}, props));
|
|
249
|
+
}
|
|
250
|
+
return h(AbsoluteVarianceBar, Object.assign({}, props));
|
|
251
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { TableRowType } from "../model";
|
|
2
|
+
import { Cell } from "./Cell";
|
|
3
|
+
/**
|
|
4
|
+
* Represents a single row in an IBCS table, containing an ordered list of Cells.
|
|
5
|
+
*
|
|
6
|
+
* The CSS class is determined by the TableRowType:
|
|
7
|
+
* - HEADER -> "groupheader"
|
|
8
|
+
* - SEPERATORLINE -> "" (styled via cell-level scenario classes)
|
|
9
|
+
* - DRILLELEMENT -> "ofit" (thereof rows)
|
|
10
|
+
* - PARTELEMENT -> "partof" (percentage-of-parent rows)
|
|
11
|
+
* - SUM -> "sum"
|
|
12
|
+
* - STANDARD -> ""
|
|
13
|
+
*
|
|
14
|
+
* createElement() applies type-specific overrides:
|
|
15
|
+
* - HEADER rows force "headerlabel" CSS on all cells
|
|
16
|
+
* - SEPERATORLINE rows use the scenario name as CSS class for border styling
|
|
17
|
+
* - PARTELEMENT rows show "-" for percent cells and force percent type on data cells
|
|
18
|
+
*/
|
|
19
|
+
export class TableRow {
|
|
20
|
+
constructor(index, groupIndex, type) {
|
|
21
|
+
this.index = index;
|
|
22
|
+
this.groupindex = groupIndex;
|
|
23
|
+
this.type = type;
|
|
24
|
+
this.cssStyle = this.initCssStyle();
|
|
25
|
+
this.elements = [];
|
|
26
|
+
}
|
|
27
|
+
initCssStyle() {
|
|
28
|
+
switch (this.type) {
|
|
29
|
+
case TableRowType.HEADER: {
|
|
30
|
+
return "groupheader";
|
|
31
|
+
}
|
|
32
|
+
case TableRowType.SEPERATORLINE: {
|
|
33
|
+
return "";
|
|
34
|
+
}
|
|
35
|
+
case TableRowType.DRILLELEMENT: {
|
|
36
|
+
return "ofit";
|
|
37
|
+
}
|
|
38
|
+
case TableRowType.PARTELEMENT: {
|
|
39
|
+
return "partof";
|
|
40
|
+
}
|
|
41
|
+
case TableRowType.STANDARD: {
|
|
42
|
+
return "";
|
|
43
|
+
}
|
|
44
|
+
case TableRowType.SUM: {
|
|
45
|
+
return "sum";
|
|
46
|
+
}
|
|
47
|
+
default: {
|
|
48
|
+
return "";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
getCells() {
|
|
53
|
+
return this.elements;
|
|
54
|
+
}
|
|
55
|
+
createElement(value, scenario, columnType, cellType, prefix, cellStyle, isSecondaryElement, categoryWidth, measureScale, isBarChart = false, columnStats) {
|
|
56
|
+
let cssStyle = cellStyle;
|
|
57
|
+
if (scenario === "category" && categoryWidth != null) {
|
|
58
|
+
cssStyle = `category-${categoryWidth.toString()}`;
|
|
59
|
+
}
|
|
60
|
+
if (this.type === TableRowType.HEADER) {
|
|
61
|
+
cssStyle = "headerlabel";
|
|
62
|
+
}
|
|
63
|
+
else if (this.type === TableRowType.SEPERATORLINE) {
|
|
64
|
+
cssStyle = scenario;
|
|
65
|
+
}
|
|
66
|
+
if (this.type === TableRowType.PARTELEMENT) {
|
|
67
|
+
if (cellType === "percent") {
|
|
68
|
+
value = "-";
|
|
69
|
+
}
|
|
70
|
+
if (scenario !== "category" && scenario !== "operation") {
|
|
71
|
+
cellType = "percent";
|
|
72
|
+
cssStyle = "";
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (value === "-") {
|
|
76
|
+
cssStyle = "";
|
|
77
|
+
}
|
|
78
|
+
let prefixStyle = "prefix-first";
|
|
79
|
+
if (isSecondaryElement) {
|
|
80
|
+
prefixStyle = "prefix-second";
|
|
81
|
+
}
|
|
82
|
+
cssStyle = `${cssStyle} ${columnType}`;
|
|
83
|
+
const cell = new Cell(scenario, this.elements.length, value, cssStyle, cellType, prefix, prefixStyle, 1, measureScale);
|
|
84
|
+
cell.isBarChart = isBarChart;
|
|
85
|
+
cell.columnStats = columnStats;
|
|
86
|
+
this.elements.push(cell);
|
|
87
|
+
}
|
|
88
|
+
}
|