@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,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IBCS-style area fill colors for stacked area charts.
|
|
3
|
+
*/
|
|
4
|
+
const SCENARIO_AREA_STYLES = {
|
|
5
|
+
ac: { fill: "#000000", opacity: 0.3, lineColor: "#000000" },
|
|
6
|
+
pp: { fill: "#999999", opacity: 0.3, lineColor: "#999999" },
|
|
7
|
+
fc: { fill: "#000000", opacity: 0.2, lineColor: "#000000", dashArray: "4,4" },
|
|
8
|
+
pl: { fill: "#000000", opacity: 0.1, lineColor: "#000000" },
|
|
9
|
+
};
|
|
10
|
+
const GRAYSCALE_AREA_STYLES = [
|
|
11
|
+
{ fill: "#000000", opacity: 0.3 },
|
|
12
|
+
{ fill: "#555555", opacity: 0.25 },
|
|
13
|
+
{ fill: "#999999", opacity: 0.2 },
|
|
14
|
+
{ fill: "#bbbbbb", opacity: 0.15 },
|
|
15
|
+
{ fill: "#dddddd", opacity: 0.1 },
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* Draws an SVG path filling the area between an upper boundary polyline
|
|
19
|
+
* and a lower boundary polyline — used for stacked area charts.
|
|
20
|
+
*/
|
|
21
|
+
export class AreaFill {
|
|
22
|
+
constructor(parentGroup, upperPoints, lowerPoints, scenarioType, segmentIndex, isScenarioStack) {
|
|
23
|
+
this.group = parentGroup.group().id(`area_fill_${segmentIndex}`);
|
|
24
|
+
this.upperPoints = upperPoints;
|
|
25
|
+
this.lowerPoints = lowerPoints;
|
|
26
|
+
this.scenarioType = scenarioType;
|
|
27
|
+
this.segmentIndex = segmentIndex;
|
|
28
|
+
this.isScenarioStack = isScenarioStack;
|
|
29
|
+
}
|
|
30
|
+
draw() {
|
|
31
|
+
if (this.upperPoints.length < 2 || this.lowerPoints.length < 2) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
// Build SVG path: upper line forward, then lower line backward
|
|
35
|
+
let pathStr = `M ${this.upperPoints[0].x},${this.upperPoints[0].y}`;
|
|
36
|
+
for (let i = 1; i < this.upperPoints.length; i++) {
|
|
37
|
+
pathStr += ` L ${this.upperPoints[i].x},${this.upperPoints[i].y}`;
|
|
38
|
+
}
|
|
39
|
+
// Walk lower points in reverse to close the shape
|
|
40
|
+
for (let i = this.lowerPoints.length - 1; i >= 0; i--) {
|
|
41
|
+
pathStr += ` L ${this.lowerPoints[i].x},${this.lowerPoints[i].y}`;
|
|
42
|
+
}
|
|
43
|
+
pathStr += " Z";
|
|
44
|
+
let fill;
|
|
45
|
+
let opacity;
|
|
46
|
+
if (this.isScenarioStack && this.scenarioType) {
|
|
47
|
+
const prefix = this.scenarioType.slice(0, 2).toLowerCase();
|
|
48
|
+
const style = SCENARIO_AREA_STYLES[prefix] || SCENARIO_AREA_STYLES["ac"];
|
|
49
|
+
fill = style.fill;
|
|
50
|
+
opacity = style.opacity;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
const idx = Math.min(this.segmentIndex, GRAYSCALE_AREA_STYLES.length - 1);
|
|
54
|
+
fill = GRAYSCALE_AREA_STYLES[idx].fill;
|
|
55
|
+
opacity = GRAYSCALE_AREA_STYLES[idx].opacity;
|
|
56
|
+
}
|
|
57
|
+
this.group.path(pathStr).fill(fill).opacity(opacity).stroke("none");
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Draw the boundary line on top of the area fill.
|
|
61
|
+
*/
|
|
62
|
+
drawBoundaryLine() {
|
|
63
|
+
if (this.upperPoints.length < 2) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
let lineColor = "#000000";
|
|
67
|
+
let dashArray;
|
|
68
|
+
if (this.isScenarioStack && this.scenarioType) {
|
|
69
|
+
const prefix = this.scenarioType.slice(0, 2).toLowerCase();
|
|
70
|
+
const style = SCENARIO_AREA_STYLES[prefix] || SCENARIO_AREA_STYLES["ac"];
|
|
71
|
+
lineColor = style.lineColor;
|
|
72
|
+
dashArray = style.dashArray;
|
|
73
|
+
}
|
|
74
|
+
const polyline = this.group
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
|
+
.polyline(this.upperPoints.map((p) => [p.x, p.y]))
|
|
77
|
+
.fill("none")
|
|
78
|
+
.stroke({ color: lineColor, width: 1.5 });
|
|
79
|
+
if (dashArray) {
|
|
80
|
+
polyline.attr("stroke-dasharray", dashArray);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders the horizontal baseline axis for a time chart.
|
|
3
|
+
*
|
|
4
|
+
* The axis line spans from the left padding to the end of the data area.
|
|
5
|
+
* A CSS class based on the scenario type (e.g. "axis-ac", "axis-pp") is applied
|
|
6
|
+
* to control stroke style (solid for AC, dashed for FC, etc. per IBCS rules).
|
|
7
|
+
* An optional title label (e.g. "AC" or variance expression) is drawn above the axis.
|
|
8
|
+
*/
|
|
9
|
+
export class Axis {
|
|
10
|
+
constructor(axis, position, svgParentGroup) {
|
|
11
|
+
this.ID_AXIS = "axis";
|
|
12
|
+
this.CSS_AXIS_TITLE = "categories";
|
|
13
|
+
this.scenarioType = axis.scenarioType;
|
|
14
|
+
this.labelText = axis.labelText || null;
|
|
15
|
+
this.isRelative = axis.isRelative || false;
|
|
16
|
+
this.position = position;
|
|
17
|
+
this.svgGroup = svgParentGroup.group().id(this.ID_AXIS);
|
|
18
|
+
}
|
|
19
|
+
drawAxisTitle(group, text) {
|
|
20
|
+
if (null == text) {
|
|
21
|
+
text = "";
|
|
22
|
+
}
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
+
const title = group.text(text).addClass(this.CSS_AXIS_TITLE).attr("text-anchor", "middle");
|
|
25
|
+
title.move(this.position.getAxisTitlePositionX(group), this.position.getAxisTitlePositionY(true, this.isRelative));
|
|
26
|
+
}
|
|
27
|
+
draw() {
|
|
28
|
+
if (this.labelText) {
|
|
29
|
+
this.drawAxisTitle(this.svgGroup, this.labelText);
|
|
30
|
+
}
|
|
31
|
+
this.svgGroup
|
|
32
|
+
.line(this.position.getAxisPositionX(), this.position.getAxisPositionY(this.isRelative), this.position.getAxisEndPositionX(), this.position.getAxisPositionY(this.isRelative))
|
|
33
|
+
.addClass(this.ID_AXIS + "-" + this.convertScenarioType());
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
convertScenarioType() {
|
|
37
|
+
if (this.scenarioType === undefined || this.scenarioType == null) {
|
|
38
|
+
return "default";
|
|
39
|
+
}
|
|
40
|
+
return `${this.scenarioType}`.slice(0, 2);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { HookLocation, Label } from "./Label";
|
|
2
|
+
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
3
|
+
// import { DataFormatDigits } from "../../../../utils/model/DataFormatDigits";
|
|
4
|
+
// import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
5
|
+
/**
|
|
6
|
+
* Renders a vertical bar (column) in an IBCS time chart.
|
|
7
|
+
*
|
|
8
|
+
* Coordinate system: SVG Y-axis is inverted -- positive values grow upward from the
|
|
9
|
+
* axis baseline, so yPos decreases as value increases. Negative values extend downward.
|
|
10
|
+
*
|
|
11
|
+
* Overflow handling: When a bar exceeds the available chart height (determined by
|
|
12
|
+
* OverflowConfig), the bar is split into a base segment and an overdrive segment
|
|
13
|
+
* separated by a zigzag break indicator. The overdrive zone maps the overflow amount
|
|
14
|
+
* proportionally into a fixed pixel region so all overflowing bars remain comparable.
|
|
15
|
+
*
|
|
16
|
+
* Primary columns (AC foreground) carry data labels and scenario labels;
|
|
17
|
+
* secondary columns (PP background) render without labels by default.
|
|
18
|
+
*/
|
|
19
|
+
export class Column {
|
|
20
|
+
constructor(position, styles, dataPoint, index, isPrimaryColumn, scenarioGroup, columnLabel, overflowConfig = null) {
|
|
21
|
+
this.ID_DATA_PREFIX = "DATA";
|
|
22
|
+
this.ID_SCENARIO_PREFIX = "SCENARIO";
|
|
23
|
+
this.ID_RECT = "RECT";
|
|
24
|
+
this.FALLBACK_COLOUR = "#000000";
|
|
25
|
+
this.label = null;
|
|
26
|
+
this.scenarioLabel = null;
|
|
27
|
+
this.isVarianceColumn = false;
|
|
28
|
+
this.overflowConfig = null;
|
|
29
|
+
this.isOverflowing = false;
|
|
30
|
+
this.overdriveHeight = 0;
|
|
31
|
+
this.dimensions = {
|
|
32
|
+
columnLength: 0,
|
|
33
|
+
xPos: 0,
|
|
34
|
+
yPos: 0,
|
|
35
|
+
labelYPos: 0,
|
|
36
|
+
scenarioLabelXPos: 0,
|
|
37
|
+
scenarioLabelYPos: 0,
|
|
38
|
+
clipped: false,
|
|
39
|
+
};
|
|
40
|
+
this.hasData = false;
|
|
41
|
+
this.dataPoint = dataPoint;
|
|
42
|
+
this.index = index;
|
|
43
|
+
this.isPrimaryColumn = isPrimaryColumn;
|
|
44
|
+
this.position = position;
|
|
45
|
+
this.columnBarStyles = styles.barStyles;
|
|
46
|
+
this.overflowConfig = overflowConfig;
|
|
47
|
+
this.scenarioGroup = scenarioGroup;
|
|
48
|
+
this.styles = styles;
|
|
49
|
+
this.columnGroup = scenarioGroup.group().id(scenarioGroup.toString() + "_" + this.ID_RECT);
|
|
50
|
+
if ((dataPoint === null || dataPoint === void 0 ? void 0 : dataPoint.isEmpty()) !== true) {
|
|
51
|
+
this.hasData = true;
|
|
52
|
+
this.dimensions = this.createDimensions(dataPoint, index, isPrimaryColumn);
|
|
53
|
+
this.label = this.getDataLabel(dataPoint);
|
|
54
|
+
this.scenarioLabel = this.getScenarioLabel(columnLabel);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
setAsVariance() {
|
|
58
|
+
var _a;
|
|
59
|
+
this.isVarianceColumn = true;
|
|
60
|
+
(_a = this.label) === null || _a === void 0 ? void 0 : _a.setToVarianceLabel();
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
updateLabelGroup(newGroup) {
|
|
64
|
+
var _a;
|
|
65
|
+
if (this.isEmpty()) {
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
(_a = this.label) === null || _a === void 0 ? void 0 : _a.updateGroup(newGroup);
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SiPrefix()) {
|
|
72
|
+
// TODE: JHE: Remove DataFOrmatDigits Type Duplicates
|
|
73
|
+
if (this.isEmpty()) {
|
|
74
|
+
return this;
|
|
75
|
+
}
|
|
76
|
+
const scenarioStyle = this.getScenarioStyle();
|
|
77
|
+
const strokeStyle = this.convertToSVGStyle(scenarioStyle, "stroke");
|
|
78
|
+
const fillStyle = this.getFillStyle(scenarioStyle);
|
|
79
|
+
if (this.columnGroup != null) {
|
|
80
|
+
if (this.isOverflowing && this.overflowConfig) {
|
|
81
|
+
this.drawOverdriveBar(fillStyle, strokeStyle);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
this.columnGroup
|
|
85
|
+
.rect(this.position.getColumnWidth(), this.dimensions.columnLength)
|
|
86
|
+
.fill(fillStyle)
|
|
87
|
+
.stroke(strokeStyle)
|
|
88
|
+
.y(this.dimensions.yPos)
|
|
89
|
+
.cx(this.dimensions.xPos);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
this.drawColumnDataLabel(dataFormatDigits, measureScale);
|
|
93
|
+
this.drawScenarioLabel();
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Draws a broken bar: base segment + break gap + overdrive segment.
|
|
97
|
+
* The break gap is filled with a white background and zigzag lines.
|
|
98
|
+
*/
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
|
+
drawOverdriveBar(fillStyle, strokeStyle) {
|
|
101
|
+
if (!this.columnGroup || !this.overflowConfig)
|
|
102
|
+
return;
|
|
103
|
+
const axisY = this.position.getColumnPositionY();
|
|
104
|
+
const colWidth = this.position.getColumnWidth();
|
|
105
|
+
const effectiveCut = this.dimensions.columnLength; // scenario-aware cut height
|
|
106
|
+
const { breakGap } = this.overflowConfig;
|
|
107
|
+
// Base bar: from axis up to effective cut height
|
|
108
|
+
const baseY = axisY - effectiveCut;
|
|
109
|
+
this.columnGroup.rect(colWidth, effectiveCut).fill(fillStyle).stroke(strokeStyle).y(baseY).cx(this.dimensions.xPos);
|
|
110
|
+
// Overdrive bar: above the break gap
|
|
111
|
+
const overdriveY = baseY - breakGap - this.overdriveHeight;
|
|
112
|
+
this.columnGroup
|
|
113
|
+
.rect(colWidth, this.overdriveHeight)
|
|
114
|
+
.fill(fillStyle)
|
|
115
|
+
.stroke(strokeStyle)
|
|
116
|
+
.y(overdriveY)
|
|
117
|
+
.cx(this.dimensions.xPos);
|
|
118
|
+
// Break indicator: zigzag lines across bar width
|
|
119
|
+
this.drawBreakIndicator(baseY, breakGap);
|
|
120
|
+
}
|
|
121
|
+
/** Draws top and bottom zigzag lines across the column width to indicate a broken axis. */
|
|
122
|
+
drawBreakIndicator(baseY, breakGap) {
|
|
123
|
+
if (!this.columnGroup)
|
|
124
|
+
return;
|
|
125
|
+
const colWidth = this.position.getColumnWidth();
|
|
126
|
+
const xLeft = this.dimensions.xPos - colWidth / 2;
|
|
127
|
+
const midY = baseY - breakGap / 2;
|
|
128
|
+
const halfGap = breakGap * 0.35;
|
|
129
|
+
const zigCount = 3;
|
|
130
|
+
const segWidth = colWidth / zigCount;
|
|
131
|
+
// Top zigzag line
|
|
132
|
+
let topPath = `M ${xLeft} ${midY - halfGap}`;
|
|
133
|
+
for (let i = 0; i < zigCount; i++) {
|
|
134
|
+
const x1 = xLeft + segWidth * (i + 0.5);
|
|
135
|
+
const x2 = xLeft + segWidth * (i + 1);
|
|
136
|
+
const yPeak = midY - halfGap - breakGap * 0.3;
|
|
137
|
+
topPath += ` L ${x1} ${yPeak} L ${x2} ${midY - halfGap}`;
|
|
138
|
+
}
|
|
139
|
+
// Bottom zigzag line
|
|
140
|
+
let bottomPath = `M ${xLeft} ${midY + halfGap}`;
|
|
141
|
+
for (let i = 0; i < zigCount; i++) {
|
|
142
|
+
const x1 = xLeft + segWidth * (i + 0.5);
|
|
143
|
+
const x2 = xLeft + segWidth * (i + 1);
|
|
144
|
+
const yPeak = midY + halfGap + breakGap * 0.3;
|
|
145
|
+
bottomPath += ` L ${x1} ${yPeak} L ${x2} ${midY + halfGap}`;
|
|
146
|
+
}
|
|
147
|
+
// White background to cover the bar behind the break
|
|
148
|
+
this.columnGroup
|
|
149
|
+
.rect(colWidth + 2, breakGap)
|
|
150
|
+
.fill("#ffffff")
|
|
151
|
+
.stroke("none")
|
|
152
|
+
.y(baseY - breakGap)
|
|
153
|
+
.cx(this.dimensions.xPos);
|
|
154
|
+
this.columnGroup.path(topPath).fill("none").stroke({ color: "#000000", width: 1 });
|
|
155
|
+
this.columnGroup.path(bottomPath).fill("none").stroke({ color: "#000000", width: 1 });
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Computes the pixel geometry for the column: position, height, label anchors.
|
|
159
|
+
* Handles three cases: overflow (broken bar), negative value, and normal positive.
|
|
160
|
+
* For overflow, the column is capped at effectiveCut height and an overdrive zone is added.
|
|
161
|
+
*/
|
|
162
|
+
createDimensions(dataPoint, index, isPrimaryBar) {
|
|
163
|
+
const scaledUnit = dataPoint.getScaledUnit();
|
|
164
|
+
// Determine effective cut height: AC scenarios use full cutHeight, others break lower
|
|
165
|
+
if (this.overflowConfig && scaledUnit > 0) {
|
|
166
|
+
const isAC = dataPoint.getScenario() === "ac";
|
|
167
|
+
const effectiveCut = isAC
|
|
168
|
+
? this.overflowConfig.cutHeight
|
|
169
|
+
: this.overflowConfig.cutHeight - this.overflowConfig.scenarioCutOffset;
|
|
170
|
+
if (scaledUnit > effectiveCut) {
|
|
171
|
+
this.isOverflowing = true;
|
|
172
|
+
const { breakGap, overdriveZoneHeight, maxOverflow } = this.overflowConfig;
|
|
173
|
+
const overflowAmount = scaledUnit - effectiveCut;
|
|
174
|
+
this.overdriveHeight = maxOverflow > 0 ? (overflowAmount / maxOverflow) * overdriveZoneHeight : 0;
|
|
175
|
+
const totalVisualHeight = effectiveCut + breakGap + this.overdriveHeight;
|
|
176
|
+
const axisY = this.position.getColumnPositionY();
|
|
177
|
+
return {
|
|
178
|
+
clipped: false,
|
|
179
|
+
columnLength: effectiveCut,
|
|
180
|
+
xPos: this.position.getColumnPositionX(index, isPrimaryBar),
|
|
181
|
+
yPos: axisY - effectiveCut,
|
|
182
|
+
labelYPos: axisY - totalVisualHeight - this.position.spacings.labelToColumn,
|
|
183
|
+
scenarioLabelXPos: this.position.getColumnPositionX(index, isPrimaryBar) +
|
|
184
|
+
this.position.getScenarioLabelPositionOffsetX(isPrimaryBar),
|
|
185
|
+
scenarioLabelYPos: axisY - effectiveCut * 0.5,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
if (scaledUnit < 0) {
|
|
190
|
+
return {
|
|
191
|
+
clipped: false,
|
|
192
|
+
columnLength: Math.abs(scaledUnit),
|
|
193
|
+
xPos: this.position.getColumnPositionX(index, isPrimaryBar),
|
|
194
|
+
yPos: this.position.getColumnPositionY(),
|
|
195
|
+
labelYPos: this.position.getColumnDataLabelPositionY(scaledUnit),
|
|
196
|
+
scenarioLabelXPos: this.position.getColumnPositionX(index, isPrimaryBar) +
|
|
197
|
+
this.position.getScenarioLabelPositionOffsetX(isPrimaryBar),
|
|
198
|
+
scenarioLabelYPos: this.position.getColumnPositionY() + Math.abs(scaledUnit) * 0.5,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
return {
|
|
203
|
+
clipped: false,
|
|
204
|
+
columnLength: scaledUnit,
|
|
205
|
+
xPos: this.position.getColumnPositionX(index, isPrimaryBar),
|
|
206
|
+
yPos: this.position.getColumnPositionY() - scaledUnit,
|
|
207
|
+
labelYPos: this.position.getColumnDataLabelPositionY(scaledUnit),
|
|
208
|
+
scenarioLabelXPos: this.position.getColumnPositionX(index, isPrimaryBar) +
|
|
209
|
+
this.position.getScenarioLabelPositionOffsetX(isPrimaryBar),
|
|
210
|
+
scenarioLabelYPos: this.position.getColumnPositionY() - Math.abs(scaledUnit) * 0.5,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
getDataLabel(dataPoint) {
|
|
215
|
+
let labelHook = HookLocation.Bottom;
|
|
216
|
+
if (dataPoint.value != null && dataPoint.value < 0) {
|
|
217
|
+
labelHook = HookLocation.Top;
|
|
218
|
+
}
|
|
219
|
+
const labelY = this.isOverflowing
|
|
220
|
+
? this.dimensions.labelYPos
|
|
221
|
+
: this.position.getColumnDataLabelPositionY(this.dataPoint.getScaledUnit());
|
|
222
|
+
return new Label(this.scenarioGroup, this.position.getColumnCenterPositionX(this.index), labelY, this.ID_DATA_PREFIX, dataPoint.value, this.styles, labelHook, HookLocation.Center);
|
|
223
|
+
}
|
|
224
|
+
getScenarioLabel(columnLabel) {
|
|
225
|
+
if (this.isPrimaryColumn) {
|
|
226
|
+
return new Label(this.scenarioGroup, -1, -1, this.ID_SCENARIO_PREFIX, columnLabel, this.styles, HookLocation.Center, HookLocation.Left);
|
|
227
|
+
}
|
|
228
|
+
return new Label(this.scenarioGroup, -1, -1, this.ID_SCENARIO_PREFIX, columnLabel, this.styles, HookLocation.Center, HookLocation.Right);
|
|
229
|
+
}
|
|
230
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
231
|
+
convertToSVGStyle(style, mode) {
|
|
232
|
+
if (style == null) {
|
|
233
|
+
style = [];
|
|
234
|
+
}
|
|
235
|
+
style["color"] = style[mode] || this.FALLBACK_COLOUR;
|
|
236
|
+
return Object.assign({}, style);
|
|
237
|
+
}
|
|
238
|
+
drawScenarioLabel() {
|
|
239
|
+
if (this.scenarioLabel != null && !this.scenarioLabel.isEmpty() && !this.isVarianceColumn) {
|
|
240
|
+
this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos, this.dimensions.scenarioLabelYPos).draw(true);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
drawColumnDataLabel(dataFormatDigits, measureScale = new SiPrefix()) {
|
|
244
|
+
var _a;
|
|
245
|
+
(_a = this.label) === null || _a === void 0 ? void 0 : _a.draw(this.isPrimaryColumn, dataFormatDigits, measureScale);
|
|
246
|
+
}
|
|
247
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
248
|
+
getFillStyle(scenarioStyle) {
|
|
249
|
+
var _a, _b, _c, _d;
|
|
250
|
+
const pattern = this.columnBarStyles[this.dataPoint.getScenario()];
|
|
251
|
+
if ((pattern === null || pattern === void 0 ? void 0 : pattern.fillpattern) && ((_a = this.styles.pattern.get(pattern.fillpattern)) === null || _a === void 0 ? void 0 : _a.pattern)) {
|
|
252
|
+
return (_d = (_c = (_b = this.styles) === null || _b === void 0 ? void 0 : _b.pattern) === null || _c === void 0 ? void 0 : _c.get(pattern.fillpattern)) === null || _d === void 0 ? void 0 : _d.pattern;
|
|
253
|
+
}
|
|
254
|
+
return this.convertToSVGStyle(scenarioStyle, "fill");
|
|
255
|
+
}
|
|
256
|
+
getScenarioStyle() {
|
|
257
|
+
var _a;
|
|
258
|
+
if (this.isVarianceColumn) {
|
|
259
|
+
return (_a = this.styles) === null || _a === void 0 ? void 0 : _a.varianceStyles.getSVGStyle(this.dataPoint.getVarianceStyle());
|
|
260
|
+
}
|
|
261
|
+
return this.columnBarStyles[this.dataPoint.getScenario()];
|
|
262
|
+
}
|
|
263
|
+
isEmpty() {
|
|
264
|
+
return false === this.hasData || Number.isNaN(this.dataPoint.value);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
2
|
+
import { Formatter } from "../../../../utils";
|
|
3
|
+
import { getContrastTextColor } from "../../../../utils/stackColors";
|
|
4
|
+
// import { DataFormatDigits } from "../../../../utils/model/DataFormatDigits";
|
|
5
|
+
// import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
6
|
+
/**
|
|
7
|
+
* Anchor point for label positioning relative to its coordinates.
|
|
8
|
+
* Vertical hooks control how the label is offset from its Y coordinate;
|
|
9
|
+
* horizontal hooks control text-anchor alignment (start/middle/end).
|
|
10
|
+
*/
|
|
11
|
+
export var HookLocation;
|
|
12
|
+
(function (HookLocation) {
|
|
13
|
+
HookLocation[HookLocation["Left"] = 0] = "Left";
|
|
14
|
+
HookLocation[HookLocation["Center"] = 1] = "Center";
|
|
15
|
+
HookLocation[HookLocation["Right"] = 2] = "Right";
|
|
16
|
+
HookLocation[HookLocation["Top"] = 3] = "Top";
|
|
17
|
+
HookLocation[HookLocation["Bottom"] = 4] = "Bottom";
|
|
18
|
+
})(HookLocation || (HookLocation = {}));
|
|
19
|
+
/**
|
|
20
|
+
* SVG text label used across all chart elements (columns, needles, markers, axes).
|
|
21
|
+
*
|
|
22
|
+
* Handles numeric formatting via Formatter.number() with configurable type (decimal/percent),
|
|
23
|
+
* digit precision, and SI prefix scaling. Variance labels prepend a "+" sign for positive values.
|
|
24
|
+
*
|
|
25
|
+
* The label is drawn with a semi-transparent white background rectangle to ensure
|
|
26
|
+
* readability over chart geometry. For stacked segments, the background is omitted
|
|
27
|
+
* and text color is derived from the segment fill for contrast.
|
|
28
|
+
*
|
|
29
|
+
* Positioning uses a two-axis hook system: verticalHookLocation shifts the label
|
|
30
|
+
* above/below/centered on the Y coordinate, horizontalHookLocation sets the SVG
|
|
31
|
+
* text-anchor (start/middle/end) relative to X.
|
|
32
|
+
*/
|
|
33
|
+
export class Label {
|
|
34
|
+
constructor(parent, xPosition, yPosition, groupPrefix, value, styles, verticalHookLocation, horizontalHookLocation) {
|
|
35
|
+
this.ID_SCENARIOLABEL = "Label";
|
|
36
|
+
this.CSS_CATEGORIES = "categories";
|
|
37
|
+
this.isRelativeLabel = false;
|
|
38
|
+
this.segmentFillColor = null;
|
|
39
|
+
this.x = xPosition;
|
|
40
|
+
this.y = yPosition;
|
|
41
|
+
this.value = value;
|
|
42
|
+
this.group = parent.group().id(this.createElementID(parent.toString(), groupPrefix));
|
|
43
|
+
this.styles = styles;
|
|
44
|
+
this.isVarianceLabel = false;
|
|
45
|
+
this.verticalHookLocation = verticalHookLocation || HookLocation.Top;
|
|
46
|
+
this.horizontalHookLocation = horizontalHookLocation || HookLocation.Left;
|
|
47
|
+
}
|
|
48
|
+
setToVarianceLabel() {
|
|
49
|
+
this.isVarianceLabel = true;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
setToRelativeVarianceLabel() {
|
|
53
|
+
this.isVarianceLabel = true;
|
|
54
|
+
this.isRelativeLabel = true;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
setSegmentFill(color) {
|
|
58
|
+
this.segmentFillColor = color;
|
|
59
|
+
return this;
|
|
60
|
+
}
|
|
61
|
+
updateGroup(newGroup) {
|
|
62
|
+
this.group = newGroup;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
draw(displayLabel = true, dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SiPrefix()) {
|
|
66
|
+
if (this.isEmpty()) {
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
const label = this.group;
|
|
70
|
+
let valueStr;
|
|
71
|
+
let prefix = "";
|
|
72
|
+
if (Number.isNaN(Number(this.value)) === false) {
|
|
73
|
+
const value = this.value;
|
|
74
|
+
let type = "percent";
|
|
75
|
+
let digits = dataFormatDigits.percent;
|
|
76
|
+
let digitsMin = dataFormatDigits.percent;
|
|
77
|
+
let scale = 1;
|
|
78
|
+
if (this.isRelativeLabel === false) {
|
|
79
|
+
digits = dataFormatDigits.decimal;
|
|
80
|
+
digitsMin = dataFormatDigits.decimal;
|
|
81
|
+
scale = measureScale.value;
|
|
82
|
+
type = "decimal";
|
|
83
|
+
}
|
|
84
|
+
valueStr = Formatter.number(Number(value), type, digits, digitsMin, scale);
|
|
85
|
+
if (this.isVarianceLabel && Number(this.value) >= 0) {
|
|
86
|
+
prefix = "+";
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
valueStr = "" + this.value;
|
|
91
|
+
// displayLabel = false;
|
|
92
|
+
}
|
|
93
|
+
const labelStr = prefix + valueStr;
|
|
94
|
+
const text = this.drawLabel(label, labelStr);
|
|
95
|
+
if (displayLabel === false) {
|
|
96
|
+
text.addClass("hide");
|
|
97
|
+
label.addClass("hide");
|
|
98
|
+
}
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
isEmpty() {
|
|
102
|
+
return this.value == null || "" === this.value;
|
|
103
|
+
}
|
|
104
|
+
setPos(xPosition, yPosition) {
|
|
105
|
+
this.x = xPosition;
|
|
106
|
+
this.y = yPosition;
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
109
|
+
forceStringTypeDraw() {
|
|
110
|
+
const label = this.group;
|
|
111
|
+
const labelStr = "" + this.value;
|
|
112
|
+
this.drawLabel(label, labelStr);
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
drawLabel(label, labelStr) {
|
|
116
|
+
const background = this.styles.fontStyles.background || "#ffffff";
|
|
117
|
+
//let text = label.text(labelStr)
|
|
118
|
+
// .leading(1)
|
|
119
|
+
// .addClass(this.CSS_CATEGORIES)
|
|
120
|
+
// .font({anchor: 'middle'})
|
|
121
|
+
// .move(this.x, this.y);
|
|
122
|
+
let labelAnchor = "start";
|
|
123
|
+
const text = label.text(labelStr);
|
|
124
|
+
text.move(this.x, this.y);
|
|
125
|
+
const boxWidth = text.bbox().w;
|
|
126
|
+
const boxHeight = text.bbox().h;
|
|
127
|
+
let rectX = 0;
|
|
128
|
+
let rectY = 0;
|
|
129
|
+
const textX = text.x();
|
|
130
|
+
let textY = text.y();
|
|
131
|
+
if (this.horizontalHookLocation === HookLocation.Left) {
|
|
132
|
+
labelAnchor = "left";
|
|
133
|
+
rectX = text.x();
|
|
134
|
+
}
|
|
135
|
+
else if (this.horizontalHookLocation === HookLocation.Center) {
|
|
136
|
+
labelAnchor = "middle";
|
|
137
|
+
rectX = text.x() - (boxWidth + 2) / 2;
|
|
138
|
+
}
|
|
139
|
+
else if (this.horizontalHookLocation === HookLocation.Right) {
|
|
140
|
+
labelAnchor = "end";
|
|
141
|
+
rectX = text.x() - boxWidth;
|
|
142
|
+
}
|
|
143
|
+
if (this.verticalHookLocation === HookLocation.Center) {
|
|
144
|
+
textY = text.y() - (boxHeight * 1.2) / 2;
|
|
145
|
+
rectY = textY + boxHeight * 0.2;
|
|
146
|
+
}
|
|
147
|
+
else if (this.verticalHookLocation === HookLocation.Top) {
|
|
148
|
+
textY -= boxHeight / 4;
|
|
149
|
+
rectY = textY + boxHeight * 0.2;
|
|
150
|
+
}
|
|
151
|
+
else if (this.verticalHookLocation === HookLocation.Bottom) {
|
|
152
|
+
textY -= boxHeight;
|
|
153
|
+
rectY = textY + boxHeight * 0.2; // + (boxHeight / 2);
|
|
154
|
+
}
|
|
155
|
+
text.move(textX, textY);
|
|
156
|
+
text.font({ anchor: labelAnchor });
|
|
157
|
+
if (this.segmentFillColor != null) {
|
|
158
|
+
text.fill(getContrastTextColor(this.segmentFillColor));
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
label
|
|
162
|
+
.rect(boxWidth + 2, boxHeight * 0.8)
|
|
163
|
+
.stroke(background)
|
|
164
|
+
.fill(background)
|
|
165
|
+
.opacity(0.9)
|
|
166
|
+
.move(rectX - 1, rectY)
|
|
167
|
+
.insertBefore(text);
|
|
168
|
+
}
|
|
169
|
+
return text;
|
|
170
|
+
}
|
|
171
|
+
createElementID(prefix, groupPrefix) {
|
|
172
|
+
return prefix + "_" + groupPrefix + "_" + this.ID_SCENARIOLABEL;
|
|
173
|
+
}
|
|
174
|
+
}
|