@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,151 @@
|
|
|
1
|
+
import { HookLocation, Label } from "./Label";
|
|
2
|
+
// import {SVGStyle} from "../../../../utils/model/styles/SVGStyle";
|
|
3
|
+
/**
|
|
4
|
+
* Renders a horizontal relative variance pin (needle) in an IBCS structure chart.
|
|
5
|
+
*
|
|
6
|
+
* The needle is a thin horizontal bar representing a percentage variance, with a head:
|
|
7
|
+
* - Normal: a square crossbar at the end of the pin
|
|
8
|
+
* - Clipped (value exceeds the percentage scale): a double-arrow polygon (left or right)
|
|
9
|
+
* indicating the value was truncated
|
|
10
|
+
*
|
|
11
|
+
* Positive pins extend rightward from the axis; negative pins extend leftward.
|
|
12
|
+
* Labels are placed beyond the needle head with variance-style formatting (percentage + sign).
|
|
13
|
+
*/
|
|
14
|
+
export class Needle {
|
|
15
|
+
constructor(position, styles, dataPoint, index, scenarioGroup) {
|
|
16
|
+
this.ID_DATA_PREFIX = "DATA";
|
|
17
|
+
this.ID_SCENARIO_PREFIX = "SCENARIO";
|
|
18
|
+
this.ID_RECT = "RECT";
|
|
19
|
+
this.FALLBACK_COLOUR = "#000000";
|
|
20
|
+
this.label = null;
|
|
21
|
+
this.dimensions = {
|
|
22
|
+
barLength: 0,
|
|
23
|
+
xPos: 0,
|
|
24
|
+
yPos: 0,
|
|
25
|
+
labelXPos: 0,
|
|
26
|
+
scenarioLabelXPos: 0,
|
|
27
|
+
scenarioLabelYPos: 0,
|
|
28
|
+
clipped: false,
|
|
29
|
+
};
|
|
30
|
+
this.hasData = false;
|
|
31
|
+
this.dataPoint = dataPoint;
|
|
32
|
+
this.index = index;
|
|
33
|
+
this.position = position;
|
|
34
|
+
this.barStyles = styles.barStyles;
|
|
35
|
+
this.scenarioGroup = scenarioGroup;
|
|
36
|
+
this.styles = styles;
|
|
37
|
+
this.barGroup = scenarioGroup.group().id(scenarioGroup.toString() + "_" + this.ID_RECT);
|
|
38
|
+
if ((dataPoint === null || dataPoint === void 0 ? void 0 : dataPoint.isEmpty()) !== true && dataPoint.value != null) {
|
|
39
|
+
this.hasData = true;
|
|
40
|
+
this.dimensions = this.createDimensions(position, dataPoint, index);
|
|
41
|
+
let textLabelHook = HookLocation.Left;
|
|
42
|
+
if (dataPoint.value < 0) {
|
|
43
|
+
textLabelHook = HookLocation.Right;
|
|
44
|
+
}
|
|
45
|
+
this.label = new Label(this.scenarioGroup, this.dimensions.labelXPos, this.dimensions.yPos, this.ID_DATA_PREFIX, dataPoint.value, this.styles, HookLocation.Center, textLabelHook);
|
|
46
|
+
this.label.setToRelativeVarianceLabel();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
updateLabelGroup(newGroup) {
|
|
50
|
+
var _a;
|
|
51
|
+
if (this.isEmpty() || newGroup == null) {
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
(_a = this.label) === null || _a === void 0 ? void 0 : _a.updateGroup(newGroup);
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
draw() {
|
|
58
|
+
var _a;
|
|
59
|
+
if (this.isEmpty()) {
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
if (this.dimensions == null) {
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
// Needles always use varianceStyles (falls back to 'neu'); bars use barStyles (falls back to 'ac')
|
|
66
|
+
const scenarioStyle = this.styles.varianceStyles.getSVGStyle(this.dataPoint.getVarianceStyle());
|
|
67
|
+
const strokeStyle = scenarioStyle.stroke;
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
|
+
let fillStyle = scenarioStyle.fill;
|
|
70
|
+
const pattern = this.barStyles[this.dataPoint.getScenario()];
|
|
71
|
+
if (pattern != null && pattern.fillpattern) {
|
|
72
|
+
const polygonPattern = this.styles.pattern.get(pattern.fillpattern);
|
|
73
|
+
if (polygonPattern != null && polygonPattern.pattern != null) {
|
|
74
|
+
fillStyle = polygonPattern.pattern;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
this.drawNeedleHead(fillStyle, strokeStyle);
|
|
78
|
+
this.barGroup
|
|
79
|
+
.rect(this.dimensions.barLength, this.position.getNeedleWidth())
|
|
80
|
+
.fill(fillStyle)
|
|
81
|
+
.stroke(strokeStyle)
|
|
82
|
+
.cy(this.dimensions.yPos)
|
|
83
|
+
.x(this.dimensions.xPos);
|
|
84
|
+
(_a = this.label) === null || _a === void 0 ? void 0 : _a.draw();
|
|
85
|
+
}
|
|
86
|
+
createDimensions(position, dataPoint, index) {
|
|
87
|
+
if (dataPoint.getScaledPercentUnit() < 0) {
|
|
88
|
+
return {
|
|
89
|
+
barLength: Math.abs(dataPoint.getScaledPercentUnit()),
|
|
90
|
+
xPos: position.getBarPositionX() + dataPoint.getScaledPercentUnit(),
|
|
91
|
+
yPos: position.getBarCenterPositionY(index),
|
|
92
|
+
labelXPos: this.position.getLabelPositionX(dataPoint.getScaledPercentUnit() - this.position.getNeedleWidth()),
|
|
93
|
+
clipped: dataPoint.isClipped(),
|
|
94
|
+
scenarioLabelXPos: 0,
|
|
95
|
+
scenarioLabelYPos: 0,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
return {
|
|
100
|
+
barLength: dataPoint.getScaledPercentUnit(),
|
|
101
|
+
xPos: position.getBarPositionX(),
|
|
102
|
+
yPos: position.getBarCenterPositionY(index),
|
|
103
|
+
labelXPos: this.position.getLabelPositionX(dataPoint.getScaledPercentUnit() + this.position.getNeedleWidth()),
|
|
104
|
+
clipped: dataPoint.isClipped(),
|
|
105
|
+
scenarioLabelXPos: 0,
|
|
106
|
+
scenarioLabelYPos: 0,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
111
|
+
drawNeedleHead(fillStyle, strokeStyle) {
|
|
112
|
+
if (this.dimensions === null) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const strokeStyleHead = this.styles.varianceStyles.needleHeadColour;
|
|
116
|
+
const fillStyleHead = this.styles.varianceStyles.needleHeadColour;
|
|
117
|
+
if (this.dimensions.clipped) {
|
|
118
|
+
const LEFTARROW = "0,0 9,-5 9,5 0,0 5,0 13,-5 13,5 5,0";
|
|
119
|
+
const RIGHTARROW = "13,0 4,-5 4,5 13,0 8,0 0,-5 0,5 8,0";
|
|
120
|
+
let polygonPath = RIGHTARROW;
|
|
121
|
+
if (this.dataPoint.value != null && this.dataPoint.value < 0) {
|
|
122
|
+
polygonPath = LEFTARROW;
|
|
123
|
+
}
|
|
124
|
+
this.barGroup
|
|
125
|
+
.polygon(polygonPath)
|
|
126
|
+
.fill(fillStyle)
|
|
127
|
+
.cx(this.getHeadXPosition())
|
|
128
|
+
.cy(this.dimensions.yPos)
|
|
129
|
+
.fill(fillStyle)
|
|
130
|
+
.stroke(strokeStyle);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
this.barGroup
|
|
134
|
+
.rect(2 * this.position.getNeedleWidth(), 2 * this.position.getNeedleWidth())
|
|
135
|
+
.cx(this.getHeadXPosition())
|
|
136
|
+
.cy(this.dimensions.yPos)
|
|
137
|
+
.fill(strokeStyleHead)
|
|
138
|
+
.stroke(fillStyleHead);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
isEmpty() {
|
|
142
|
+
return false === this.hasData || Number.isNaN(this.dataPoint.value);
|
|
143
|
+
}
|
|
144
|
+
getHeadXPosition() {
|
|
145
|
+
let xPosition = this.dimensions.xPos;
|
|
146
|
+
if (this.dataPoint.value != null && this.dataPoint.value > 0) {
|
|
147
|
+
xPosition += this.dimensions.barLength;
|
|
148
|
+
}
|
|
149
|
+
return xPosition;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { HookLocation, Label } from "./Label";
|
|
2
|
+
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
3
|
+
import { StackMode } from "../../../../utils/constants";
|
|
4
|
+
import { getStackFill, getStackStroke } from "../../../../utils/stackColors";
|
|
5
|
+
/**
|
|
6
|
+
* Renders a single horizontal stacked bar segment for the structure chart.
|
|
7
|
+
*/
|
|
8
|
+
export class StackedBar {
|
|
9
|
+
constructor(position, styles, dataPoint, index, baselineValue, _segmentLabel, segmentIndex, stackMode, totalValue, _isScenarioStack, parentGroup) {
|
|
10
|
+
this.hasData = false;
|
|
11
|
+
this.position = position;
|
|
12
|
+
this.styles = styles;
|
|
13
|
+
this.dataPoint = dataPoint;
|
|
14
|
+
this.index = index;
|
|
15
|
+
this.baselineValue = baselineValue;
|
|
16
|
+
this.segmentIndex = segmentIndex;
|
|
17
|
+
this.stackMode = stackMode;
|
|
18
|
+
this.totalValue = totalValue;
|
|
19
|
+
this.group = parentGroup;
|
|
20
|
+
this.barGroup = parentGroup.group().id(`stacked_bar_${index}_seg_${segmentIndex}`);
|
|
21
|
+
if ((dataPoint === null || dataPoint === void 0 ? void 0 : dataPoint.isEmpty()) !== true && dataPoint.value != null) {
|
|
22
|
+
this.hasData = true;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SiPrefix()) {
|
|
26
|
+
if (!this.hasData || this.dataPoint.value == null) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const value = this.dataPoint.value;
|
|
30
|
+
const pixelPerUnit = this.dataPoint.pixelPerUnit;
|
|
31
|
+
const axisX = this.position.getBarPositionX();
|
|
32
|
+
const barWidth = this.position.getBarWidth();
|
|
33
|
+
let segmentLength;
|
|
34
|
+
let xPos;
|
|
35
|
+
if (this.stackMode === StackMode.RELATIVE) {
|
|
36
|
+
const proportion = this.totalValue !== 0 ? Math.abs(value) / Math.abs(this.totalValue) : 0;
|
|
37
|
+
const totalPixelLength = pixelPerUnit;
|
|
38
|
+
segmentLength = proportion * totalPixelLength;
|
|
39
|
+
const baselinePixels = (this.baselineValue / Math.abs(this.totalValue)) * totalPixelLength;
|
|
40
|
+
xPos = axisX + baselinePixels;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
segmentLength = Math.abs(value * pixelPerUnit);
|
|
44
|
+
const baselinePixels = this.baselineValue * pixelPerUnit;
|
|
45
|
+
xPos = axisX + baselinePixels;
|
|
46
|
+
}
|
|
47
|
+
const yPos = this.position.getBarPositionY(this.index, true);
|
|
48
|
+
// Unified IBCS 3-color palette for all stacking modes
|
|
49
|
+
const fillColor = getStackFill(this.segmentIndex);
|
|
50
|
+
const fillStyle = { color: fillColor };
|
|
51
|
+
const strokeStyle = { color: getStackStroke(this.segmentIndex), width: 0.5 };
|
|
52
|
+
this.barGroup.rect(Math.max(segmentLength, 0.5), barWidth).fill(fillStyle).stroke(strokeStyle).cy(yPos).x(xPos);
|
|
53
|
+
// Draw segment value label centered on bar if wide enough
|
|
54
|
+
const MIN_SEGMENT_WIDTH_FOR_LABEL = 30;
|
|
55
|
+
if (segmentLength >= MIN_SEGMENT_WIDTH_FOR_LABEL) {
|
|
56
|
+
const labelX = xPos + segmentLength / 2;
|
|
57
|
+
if (this.stackMode === StackMode.RELATIVE || this.stackMode === StackMode.ABSOLUTE_RELATIVE) {
|
|
58
|
+
const pct = this.totalValue !== 0 ? (value / this.totalValue) * 100 : 0;
|
|
59
|
+
const labelValue = pct.toFixed(dataFormatDigits.percent) + "%";
|
|
60
|
+
new Label(this.group, labelX, yPos, "STACK_SEG", labelValue, this.styles, HookLocation.Center, HookLocation.Center)
|
|
61
|
+
.setSegmentFill(fillColor)
|
|
62
|
+
.draw();
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
// Pass raw numeric value — Label.draw() formats with measureScale
|
|
66
|
+
new Label(this.group, labelX, yPos, "STACK_SEG", value, this.styles, HookLocation.Center, HookLocation.Center)
|
|
67
|
+
.setSegmentFill(fillColor)
|
|
68
|
+
.draw(dataFormatDigits, measureScale);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
drawTotalLabel(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SiPrefix()) {
|
|
73
|
+
if (this.stackMode === StackMode.RELATIVE) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const axisX = this.position.getBarPositionX();
|
|
77
|
+
const totalPixels = this.totalValue * this.dataPoint.pixelPerUnit;
|
|
78
|
+
const labelX = axisX + totalPixels + this.position.spacings.labelToBar;
|
|
79
|
+
const yPos = this.position.getBarPositionY(this.index, true);
|
|
80
|
+
const label = new Label(this.group, labelX, yPos, "STACK_TOTAL", this.totalValue, this.styles, HookLocation.Center, HookLocation.Left);
|
|
81
|
+
label.draw(dataFormatDigits, measureScale);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Bar, Marker } from "../elements";
|
|
2
|
+
import { Needle } from "../elements";
|
|
3
|
+
// import { SVGPolgonPattern} from "../../../../utils/model";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for creating horizontal bar chart elements (Bar, Needle, Marker) within the
|
|
6
|
+
* correct SVG group hierarchy for a structure chart.
|
|
7
|
+
*
|
|
8
|
+
* Manages 4 SVG group layers for z-ordering (back-to-front):
|
|
9
|
+
* - scenario2: secondary bars (PP) -- inserted before scenario1 so they render behind
|
|
10
|
+
* - scenario1: primary bars (AC) -- foreground
|
|
11
|
+
* - scenario3: primary markers (positioned above bar center)
|
|
12
|
+
* - scenario4: secondary markers (positioned below bar center)
|
|
13
|
+
* - scenario1Label: label group, always on top
|
|
14
|
+
*
|
|
15
|
+
* createPrimaryBar() / createSecondaryBar() produce foreground/background Bar instances.
|
|
16
|
+
* createVarianceBar() wraps a Bar with variance styling.
|
|
17
|
+
* createRelativeVarianceBar() creates a horizontal Needle for percentage variance.
|
|
18
|
+
*/
|
|
19
|
+
export class ScenarioFactory {
|
|
20
|
+
constructor(position, scenariosGroupParent, styles, elementCnt, i18n) {
|
|
21
|
+
this.overflowConfig = null;
|
|
22
|
+
this.i18n = i18n;
|
|
23
|
+
const primScenario = scenariosGroupParent.group().id("Scenario1");
|
|
24
|
+
const secondScenario = scenariosGroupParent.group().id("Scenario2").insertBefore(primScenario);
|
|
25
|
+
this.svgGroups = {
|
|
26
|
+
parent: scenariosGroupParent,
|
|
27
|
+
scenario1: primScenario,
|
|
28
|
+
scenario2: secondScenario,
|
|
29
|
+
scenario3: scenariosGroupParent.group().id("Scenario3"),
|
|
30
|
+
scenario4: scenariosGroupParent.group().id("Scenario4"),
|
|
31
|
+
scenario1Label: scenariosGroupParent.group().id("label"),
|
|
32
|
+
};
|
|
33
|
+
this.styles = styles;
|
|
34
|
+
this.position = position;
|
|
35
|
+
this.elementCnt = elementCnt;
|
|
36
|
+
}
|
|
37
|
+
setOverflowConfig(config) {
|
|
38
|
+
this.overflowConfig = config;
|
|
39
|
+
}
|
|
40
|
+
isLastDataPoint(index) {
|
|
41
|
+
return this.elementCnt - 1 === index;
|
|
42
|
+
}
|
|
43
|
+
isFirsttDataPoint(index) {
|
|
44
|
+
return 0 === index;
|
|
45
|
+
}
|
|
46
|
+
createPrimaryBar(dataPoint, index) {
|
|
47
|
+
var _a, _b, _c, _d;
|
|
48
|
+
const isPrimaryBar = true;
|
|
49
|
+
const barGroup = (_b = (_a = this.svgGroups) === null || _a === void 0 ? void 0 : _a.scenario1) === null || _b === void 0 ? void 0 : _b.group().id("" + index);
|
|
50
|
+
const labelGroup = (_d = (_c = this.svgGroups) === null || _c === void 0 ? void 0 : _c.scenario1Label) === null || _d === void 0 ? void 0 : _d.group().id("" + index);
|
|
51
|
+
let barLabel = null;
|
|
52
|
+
if (this.isLastDataPoint(index)) {
|
|
53
|
+
barLabel = `${this.i18n.get(dataPoint.scenario) || dataPoint.scenario}`;
|
|
54
|
+
}
|
|
55
|
+
return new Bar(this.position, this.styles, dataPoint, index, isPrimaryBar, barGroup, barLabel, this.overflowConfig).updateLabelGroup(labelGroup);
|
|
56
|
+
}
|
|
57
|
+
createVarianceBar(dataPoint, index) {
|
|
58
|
+
var _a, _b, _c, _d;
|
|
59
|
+
const isPrimaryBar = true;
|
|
60
|
+
const barGroup = (_b = (_a = this.svgGroups) === null || _a === void 0 ? void 0 : _a.scenario1) === null || _b === void 0 ? void 0 : _b.group().id("" + index);
|
|
61
|
+
const labelGroup = (_d = (_c = this.svgGroups) === null || _c === void 0 ? void 0 : _c.scenario1Label) === null || _d === void 0 ? void 0 : _d.group().id("" + index);
|
|
62
|
+
let barLabel = null;
|
|
63
|
+
if (this.isLastDataPoint(index)) {
|
|
64
|
+
barLabel = `${this.i18n.get(dataPoint.scenario) || dataPoint.scenario}`;
|
|
65
|
+
}
|
|
66
|
+
return new Bar(this.position, this.styles, dataPoint, index, isPrimaryBar, barGroup, barLabel, this.overflowConfig)
|
|
67
|
+
.updateLabelGroup(labelGroup)
|
|
68
|
+
.setAsVariance();
|
|
69
|
+
}
|
|
70
|
+
createRelativeVarianceBar(dataPoint, index) {
|
|
71
|
+
var _a, _b, _c, _d;
|
|
72
|
+
const barGroup = (_b = (_a = this.svgGroups) === null || _a === void 0 ? void 0 : _a.scenario1) === null || _b === void 0 ? void 0 : _b.group().id("" + index);
|
|
73
|
+
const labelGroup = (_d = (_c = this.svgGroups) === null || _c === void 0 ? void 0 : _c.scenario1Label) === null || _d === void 0 ? void 0 : _d.group().id("" + index);
|
|
74
|
+
return new Needle(this.position, this.styles, dataPoint, index, barGroup).updateLabelGroup(labelGroup);
|
|
75
|
+
}
|
|
76
|
+
createSecondaryBar(dataPoint, index) {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
const isPrimaryBar = true;
|
|
79
|
+
const barGroup = (_b = (_a = this.svgGroups) === null || _a === void 0 ? void 0 : _a.scenario2) === null || _b === void 0 ? void 0 : _b.group().id("" + index);
|
|
80
|
+
let barLabel = null;
|
|
81
|
+
if (this.isFirsttDataPoint(index)) {
|
|
82
|
+
barLabel = `${this.i18n.get(dataPoint.scenario) || dataPoint.scenario}`;
|
|
83
|
+
}
|
|
84
|
+
return new Bar(this.position, this.styles, dataPoint, index, !isPrimaryBar, barGroup, barLabel, this.overflowConfig);
|
|
85
|
+
}
|
|
86
|
+
createPrimaryMarker(dataPoint, index) {
|
|
87
|
+
var _a, _b;
|
|
88
|
+
const markerGroup = (_b = (_a = this.svgGroups) === null || _a === void 0 ? void 0 : _a.scenario3) === null || _b === void 0 ? void 0 : _b.group().id("" + index);
|
|
89
|
+
const markerPattern = this.styles.pattern.get("marker-down") || {
|
|
90
|
+
foreground: "0,0 1,0 1,1 0,1",
|
|
91
|
+
background: "0,0 1,0 1,1 0,1",
|
|
92
|
+
bgOffset: 0,
|
|
93
|
+
};
|
|
94
|
+
const isPrimaryMarker = true;
|
|
95
|
+
let labelText = null;
|
|
96
|
+
if (this.isFirstDataPoint(index)) {
|
|
97
|
+
labelText = `${this.i18n.get(dataPoint.scenario) || dataPoint.scenario}`;
|
|
98
|
+
}
|
|
99
|
+
return new Marker(this.position, markerGroup, markerPattern, dataPoint.scenario, this.styles, dataPoint, index, labelText, isPrimaryMarker);
|
|
100
|
+
}
|
|
101
|
+
createSecondaryMarker(dataPoint, index) {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
const markerGroup = (_b = (_a = this.svgGroups) === null || _a === void 0 ? void 0 : _a.scenario4) === null || _b === void 0 ? void 0 : _b.group().id("" + index);
|
|
104
|
+
const markerPattern = this.styles.pattern.get("marker-up") || {
|
|
105
|
+
foreground: "0,0 1,0 1,1 0,1",
|
|
106
|
+
background: "0,0 1,0 1,1 0,1",
|
|
107
|
+
bgOffset: 0,
|
|
108
|
+
};
|
|
109
|
+
const isPrimaryMarker = false;
|
|
110
|
+
let labelText = null;
|
|
111
|
+
if (this.isLastDataPoint(index)) {
|
|
112
|
+
labelText = `${this.i18n.get(dataPoint.scenario) || dataPoint.scenario}`;
|
|
113
|
+
}
|
|
114
|
+
return new Marker(this.position, markerGroup, markerPattern, dataPoint.scenario, this.styles, dataPoint, index, labelText, isPrimaryMarker);
|
|
115
|
+
}
|
|
116
|
+
isFirstDataPoint(index) {
|
|
117
|
+
return 0 === index;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ScenarioFactory";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Svg } from "@svgdotjs/svg.js";
|
|
2
|
+
// import { SVGPolgonPattern } from "../../../../utils/model";
|
|
3
|
+
/**
|
|
4
|
+
* Generates SVG diagonal-line hatching patterns for forecast (FC) scenario bars
|
|
5
|
+
* in the structure chart.
|
|
6
|
+
*
|
|
7
|
+
* Creates a 10x10 SVG <pattern> tile with diagonal lines using the FC bar style colors.
|
|
8
|
+
* Used as fill for FC horizontal bars to distinguish forecast from actual data per IBCS.
|
|
9
|
+
*/
|
|
10
|
+
export class CustomPattern {
|
|
11
|
+
constructor(styles) {
|
|
12
|
+
this.container = new Svg();
|
|
13
|
+
this.pattern = this.createFCPattern(this.container.group(), styles);
|
|
14
|
+
this.styles = styles;
|
|
15
|
+
const backgroundFactor = 1;
|
|
16
|
+
const foregroundFactor = 0.7;
|
|
17
|
+
let fontSize = 10;
|
|
18
|
+
if (styles != null && styles.fontStyles != null && styles.fontStyles.size) {
|
|
19
|
+
fontSize = styles.fontStyles.size;
|
|
20
|
+
}
|
|
21
|
+
const maxBg = fontSize * backgroundFactor;
|
|
22
|
+
const maxFg = fontSize * foregroundFactor;
|
|
23
|
+
this.bgOffset = (maxBg - maxFg) / 2;
|
|
24
|
+
}
|
|
25
|
+
createFCPattern(group, styles) {
|
|
26
|
+
const _styles = styles;
|
|
27
|
+
return group
|
|
28
|
+
.pattern(10, 10, function (add) {
|
|
29
|
+
add.rect(10, 10).fill(_styles.barStyles.fc.fill);
|
|
30
|
+
add
|
|
31
|
+
.line(0, 5, 5, 0)
|
|
32
|
+
.stroke({ width: _styles.barStyles.fc.width, color: _styles.barStyles.fc.stroke, linecap: "square" });
|
|
33
|
+
add
|
|
34
|
+
.line(5, 10, 10, 5)
|
|
35
|
+
.stroke({ width: _styles.barStyles.fc.width, color: _styles.barStyles.fc.stroke, linecap: "square" });
|
|
36
|
+
})
|
|
37
|
+
.id("pattern-structure-fc");
|
|
38
|
+
}
|
|
39
|
+
getFCPolygonPattern() {
|
|
40
|
+
return { background: "", foreground: "", bgOffset: 0, pattern: this.pattern };
|
|
41
|
+
}
|
|
42
|
+
toString() {
|
|
43
|
+
return this.container.svg();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spatial layout engine for the structure chart (horizontal bars).
|
|
3
|
+
*
|
|
4
|
+
* Converts logical data model coordinates (bar index, data values) into pixel positions
|
|
5
|
+
* for all chart elements. All spacings are derived from the font size multiplied by
|
|
6
|
+
* ScaleFactorsStructureChart factors.
|
|
7
|
+
*
|
|
8
|
+
* Key coordinate reference points:
|
|
9
|
+
* - getBarPositionX(): the X coordinate of the vertical axis baseline
|
|
10
|
+
* - getBarCenterPositionY(index): center Y for the bar at the given category index
|
|
11
|
+
* - getAxisPositionX(): axis X accounting for left-side labels and padding
|
|
12
|
+
*
|
|
13
|
+
* The layout accounts for: padding, left-side label space (title, category names,
|
|
14
|
+
* negative-value labels), scenario offsets, and marker positioning above/below bars.
|
|
15
|
+
*/
|
|
16
|
+
export class ElementPositions {
|
|
17
|
+
// private smallestDataPoint: DataPoint;
|
|
18
|
+
constructor(padding, scaleFactors, fontSize, numberOfColumns, leftSideLengthSync, titleLength, leftSideWidth, categoryWidth) {
|
|
19
|
+
this.categoryPosition = { x: 0, y: 0 };
|
|
20
|
+
this.spacings = {
|
|
21
|
+
scenarioOffset: 0,
|
|
22
|
+
markerOffset: 0,
|
|
23
|
+
scenarioLabelToBar: 0,
|
|
24
|
+
labelToBar: 0,
|
|
25
|
+
labelToAxis: 0,
|
|
26
|
+
needleWidth: 0,
|
|
27
|
+
needleHeadWidth: 0,
|
|
28
|
+
barWidth: 0,
|
|
29
|
+
varianceAxisLineWidth: 0,
|
|
30
|
+
axisLineWidth: 0,
|
|
31
|
+
auxiliaryLineWidth: 0,
|
|
32
|
+
scenarioLineWidth: 0,
|
|
33
|
+
markerWidth: 0,
|
|
34
|
+
categoryWidth: 0,
|
|
35
|
+
axisTickLength: 0,
|
|
36
|
+
};
|
|
37
|
+
this.categoriesBoxOffset = {
|
|
38
|
+
width: 0,
|
|
39
|
+
height: 0,
|
|
40
|
+
};
|
|
41
|
+
this.padding = padding;
|
|
42
|
+
this.scaleFactors = scaleFactors;
|
|
43
|
+
this.fontSize = fontSize;
|
|
44
|
+
this.axisPosition = { x: 0, y: 0 };
|
|
45
|
+
this.numberOfColumns = numberOfColumns;
|
|
46
|
+
this.leftSideLengthSync = leftSideLengthSync;
|
|
47
|
+
this.topSideLabelHeight = titleLength > 0 ? this.fontSize : 0;
|
|
48
|
+
this.leftSideLabelLength = this.calculateSideLabelLength(titleLength, leftSideWidth, categoryWidth);
|
|
49
|
+
this.calculateSpacings();
|
|
50
|
+
this.calculateCategoryPosition();
|
|
51
|
+
this.calculateAxisPosition();
|
|
52
|
+
}
|
|
53
|
+
getBarPositionX() {
|
|
54
|
+
return this.axisPosition.x;
|
|
55
|
+
}
|
|
56
|
+
getBarCenterPositionY(index) {
|
|
57
|
+
return this.categoryPosition.y + this.spacings.scenarioOffset + index * this.spacings.categoryWidth;
|
|
58
|
+
}
|
|
59
|
+
getBarPositionY(index, isPrimaryMarker) {
|
|
60
|
+
if (isPrimaryMarker) {
|
|
61
|
+
return this.getBarCenterPositionY(index);
|
|
62
|
+
}
|
|
63
|
+
return this.getBarCenterPositionY(index) - this.spacings.scenarioOffset;
|
|
64
|
+
}
|
|
65
|
+
getCategoryPositionX(isPositive) {
|
|
66
|
+
let offset = this.spacings.labelToAxis;
|
|
67
|
+
if (isPositive) {
|
|
68
|
+
offset = -this.spacings.labelToAxis;
|
|
69
|
+
}
|
|
70
|
+
return this.getAxisPositionX() + offset;
|
|
71
|
+
}
|
|
72
|
+
getAxisTitlePositionX() {
|
|
73
|
+
return this.axisPosition.x;
|
|
74
|
+
}
|
|
75
|
+
getAxisTitlePositionY() {
|
|
76
|
+
return this.axisPosition.y - this.spacings.labelToAxis;
|
|
77
|
+
}
|
|
78
|
+
getNeedleWidth() {
|
|
79
|
+
return this.spacings.needleWidth;
|
|
80
|
+
}
|
|
81
|
+
getAxisPositionX() {
|
|
82
|
+
return this.leftSideLabelLength + this.padding.left + this.spacings.labelToAxis;
|
|
83
|
+
}
|
|
84
|
+
getAxisPositionY() {
|
|
85
|
+
return this.padding.top + this.getAxisTitleOffset();
|
|
86
|
+
}
|
|
87
|
+
loadCategoriesBox(categoriesBoxOffset) {
|
|
88
|
+
this.categoriesBoxOffset = categoriesBoxOffset;
|
|
89
|
+
this.calculateAxisPosition();
|
|
90
|
+
}
|
|
91
|
+
addOffsetByNegativeDataPoints(smallestDataPoint, boxWidth, isPercent, titleLength) {
|
|
92
|
+
if (smallestDataPoint != null && smallestDataPoint.value != null) {
|
|
93
|
+
if (smallestDataPoint.value < 0) {
|
|
94
|
+
if (isPercent && smallestDataPoint.isClipped()) {
|
|
95
|
+
this.axisPosition.x += Math.abs(smallestDataPoint.getClippedValue() * smallestDataPoint.pixelPerUnit);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
this.axisPosition.x += Math.abs(smallestDataPoint.value * smallestDataPoint.pixelPerUnit);
|
|
99
|
+
}
|
|
100
|
+
this.axisPosition.x += boxWidth;
|
|
101
|
+
this.axisPosition.x += this.spacings.labelToBar;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (this.axisPosition.x < titleLength / 2) {
|
|
105
|
+
this.axisPosition.x = titleLength / 2 + this.spacings.labelToBar;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
getLabelPositionX(scaledUnit) {
|
|
109
|
+
let offset = this.spacings.labelToBar;
|
|
110
|
+
if (scaledUnit < 0) {
|
|
111
|
+
offset *= -1;
|
|
112
|
+
}
|
|
113
|
+
return this.axisPosition.x + scaledUnit + offset;
|
|
114
|
+
}
|
|
115
|
+
getLabelPositionY(scaledUnit) {
|
|
116
|
+
return this.axisPosition.y + scaledUnit + this.spacings.labelToBar;
|
|
117
|
+
}
|
|
118
|
+
getCategoryToAxisSpaceing() {
|
|
119
|
+
return this.spacings.labelToAxis;
|
|
120
|
+
}
|
|
121
|
+
getCategoryToTopSpaceing() {
|
|
122
|
+
return this.spacings.scenarioOffset;
|
|
123
|
+
}
|
|
124
|
+
getCategoryToBottomSpaceing() {
|
|
125
|
+
return this.spacings.scenarioOffset; // this.categoryOffset;
|
|
126
|
+
}
|
|
127
|
+
getAxisEndPositionY() {
|
|
128
|
+
return this.getAxisPositionY() + (this.numberOfColumns + 1 / 2) * this.spacings.categoryWidth;
|
|
129
|
+
}
|
|
130
|
+
getScenarioLabelPositionOffsetY(isPrimaryBar) {
|
|
131
|
+
if (isPrimaryBar) {
|
|
132
|
+
return this.getBarWidth() * 0.5 + this.spacings.scenarioLabelToBar;
|
|
133
|
+
}
|
|
134
|
+
return -(this.getBarWidth() * 0.5 + this.spacings.scenarioLabelToBar);
|
|
135
|
+
}
|
|
136
|
+
getBarWidth() {
|
|
137
|
+
return this.spacings.barWidth;
|
|
138
|
+
}
|
|
139
|
+
getMarkerPositionY(index, isPrimaryMarker) {
|
|
140
|
+
if (isPrimaryMarker) {
|
|
141
|
+
return this.getBarCenterPositionY(index) - this.spacings.markerOffset - this.getBarWidth() * 0.5;
|
|
142
|
+
}
|
|
143
|
+
return this.getBarCenterPositionY(index) + this.spacings.markerOffset + this.getBarWidth() * 0.5;
|
|
144
|
+
}
|
|
145
|
+
getMarkerPositionX() {
|
|
146
|
+
return this.getBarPositionX();
|
|
147
|
+
}
|
|
148
|
+
getMarkerScenarioLabelPositionOffsetY(isPrimaryColumn) {
|
|
149
|
+
if (isPrimaryColumn) {
|
|
150
|
+
return -(this.spacings.markerWidth * 0.5 + this.spacings.scenarioLabelToBar);
|
|
151
|
+
}
|
|
152
|
+
return this.spacings.scenarioLabelToBar + this.spacings.markerWidth * 0.5;
|
|
153
|
+
}
|
|
154
|
+
getAxisEndPositionX() {
|
|
155
|
+
return this.getAxisPositionX();
|
|
156
|
+
}
|
|
157
|
+
calculateSpacings() {
|
|
158
|
+
this.spacings = {
|
|
159
|
+
scenarioOffset: this.fontSize * this.scaleFactors.scenarioOffset,
|
|
160
|
+
markerOffset: this.fontSize * this.scaleFactors.markerOffset,
|
|
161
|
+
scenarioLabelToBar: this.fontSize * this.scaleFactors.scenarioLabelToBar,
|
|
162
|
+
labelToBar: this.fontSize * this.scaleFactors.labelToBar,
|
|
163
|
+
labelToAxis: this.fontSize * this.scaleFactors.labelToAxis,
|
|
164
|
+
needleWidth: this.fontSize * this.scaleFactors.needleWidth,
|
|
165
|
+
needleHeadWidth: this.fontSize * this.scaleFactors.needleHeadWidth,
|
|
166
|
+
barWidth: this.fontSize * this.scaleFactors.barWidth,
|
|
167
|
+
varianceAxisLineWidth: this.fontSize * this.scaleFactors.varianceAxisLineWidth,
|
|
168
|
+
axisLineWidth: this.fontSize * this.scaleFactors.axisLineWidth,
|
|
169
|
+
auxiliaryLineWidth: this.fontSize * this.scaleFactors.auxiliaryLineWidth,
|
|
170
|
+
scenarioLineWidth: this.fontSize * this.scaleFactors.scenarioLineWidth,
|
|
171
|
+
markerWidth: this.fontSize * this.scaleFactors.markerWidth,
|
|
172
|
+
categoryWidth: this.fontSize * this.scaleFactors.categoryWidth,
|
|
173
|
+
axisTickLength: this.fontSize * this.scaleFactors.axisTickLength,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
calculateCategoryPosition() {
|
|
177
|
+
this.categoryPosition = {
|
|
178
|
+
x: this.padding.left,
|
|
179
|
+
y: this.getAxisPositionY() + this.spacings.categoryWidth * 0.5,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
calculateAxisPosition() {
|
|
183
|
+
this.axisPosition = {
|
|
184
|
+
x: this.getAxisPositionX(),
|
|
185
|
+
y: this.getAxisPositionY(),
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
recalculatePositions() {
|
|
190
|
+
this.calculateCategoryPosition();
|
|
191
|
+
this.calculateAxisPosition();
|
|
192
|
+
}
|
|
193
|
+
getAxisTitleOffset() {
|
|
194
|
+
return this.topSideLabelHeight;
|
|
195
|
+
}
|
|
196
|
+
calculateSideLabelLength(titleLength, leftSideWidth, categoryWidth) {
|
|
197
|
+
if (this.leftSideLengthSync) {
|
|
198
|
+
return this.leftSideLengthSync;
|
|
199
|
+
}
|
|
200
|
+
const leftSideTitleLength = titleLength / 2;
|
|
201
|
+
let sideLabelLength = leftSideWidth;
|
|
202
|
+
if (leftSideTitleLength > sideLabelLength) {
|
|
203
|
+
sideLabelLength = leftSideTitleLength;
|
|
204
|
+
}
|
|
205
|
+
if (categoryWidth > sideLabelLength) {
|
|
206
|
+
sideLabelLength = categoryWidth;
|
|
207
|
+
}
|
|
208
|
+
return sideLabelLength;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// import { SVGPolgonPattern } from "../../../../utils/model";
|
|
2
|
+
export class MarkerPattern {
|
|
3
|
+
constructor(fontSize) {
|
|
4
|
+
const backgroundFactor = 1;
|
|
5
|
+
const foregroundFactor = 0.7;
|
|
6
|
+
const maxBg = fontSize * backgroundFactor;
|
|
7
|
+
const maxFg = fontSize * foregroundFactor;
|
|
8
|
+
this.bgOffset = (maxBg - maxFg) / 2;
|
|
9
|
+
this.markerUp = { top: maxFg / 2 + ",0", left: "0," + maxFg, right: maxFg + "," + maxFg };
|
|
10
|
+
this.markerUpBackground = { top: maxBg / 2 + ",0", left: "0," + maxBg, right: maxBg + "," + maxBg };
|
|
11
|
+
this.markerDown = { bottom: maxFg / 2 + "," + maxFg, left: "0,0", right: maxFg + ",0" };
|
|
12
|
+
this.markerDownBackground = { bottom: maxBg / 2 + "," + maxBg, left: "0,0", right: maxBg + ",0" };
|
|
13
|
+
}
|
|
14
|
+
upMarkerPatternStrings() {
|
|
15
|
+
return {
|
|
16
|
+
background: this.markerUpBackground.left +
|
|
17
|
+
" " +
|
|
18
|
+
this.markerUpBackground.right +
|
|
19
|
+
" " +
|
|
20
|
+
this.markerUpBackground.top +
|
|
21
|
+
" " +
|
|
22
|
+
this.markerUpBackground.left,
|
|
23
|
+
foreground: this.markerUp.left + " " + this.markerUp.right + " " + this.markerUp.top + " " + this.markerUp.left,
|
|
24
|
+
bgOffset: this.bgOffset,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
downMarkerPatternStrings() {
|
|
28
|
+
return {
|
|
29
|
+
background: this.markerDownBackground.left +
|
|
30
|
+
" " +
|
|
31
|
+
this.markerDownBackground.right +
|
|
32
|
+
" " +
|
|
33
|
+
this.markerDownBackground.bottom +
|
|
34
|
+
" " +
|
|
35
|
+
this.markerDownBackground.left,
|
|
36
|
+
foreground: this.markerDown.left + " " + this.markerDown.right + " " + this.markerDown.bottom + " " + this.markerDown.left,
|
|
37
|
+
bgOffset: this.bgOffset,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
createPatternMapForStructureBar() {
|
|
41
|
+
const pattern = new Map();
|
|
42
|
+
pattern.set("marker-up", this.upMarkerPatternStrings());
|
|
43
|
+
pattern.set("marker-down", this.downMarkerPatternStrings());
|
|
44
|
+
return pattern;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class Padding {
|
|
2
|
+
constructor(padding) {
|
|
3
|
+
this.top = padding.top;
|
|
4
|
+
this.bottom = padding.bottom;
|
|
5
|
+
this.left = padding.left;
|
|
6
|
+
this.right = padding.right;
|
|
7
|
+
}
|
|
8
|
+
addBoxTopLeft(addition) {
|
|
9
|
+
this.top += addition.height | this.top;
|
|
10
|
+
this.left += addition.width | this.top;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
}
|