@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,705 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CScBFiS1.js');
|
|
4
|
+
var withStyled = require('./withStyled-Bf-stJTR.js');
|
|
5
|
+
var withDataset = require('./withDataset-ZdN-RRTx.js');
|
|
6
|
+
var withComponentStatus = require('./withComponentStatus-BrxL7usr.js');
|
|
7
|
+
var withTranslation = require('./withTranslation-Cz0M5maV.js');
|
|
8
|
+
var contextProtocol = require('./context-protocol-BkYHFkXE.js');
|
|
9
|
+
var withComponentStyle = require('./withComponentStyle-C6KHnZHt.js');
|
|
10
|
+
var withHasError = require('./withHasError-Dspb3lIV.js');
|
|
11
|
+
var scaling = require('./scaling-B23eOtsC.js');
|
|
12
|
+
var constants = require('./constants-DHqQXSSd.js');
|
|
13
|
+
var Order = require('./Order-B4NIqQWe.js');
|
|
14
|
+
require('./DateStringFactory-Dn0aRj2Y.js');
|
|
15
|
+
require('./luxon-8hyy5YD7.js');
|
|
16
|
+
require('./componentRegister-C17UFNPh.js');
|
|
17
|
+
|
|
18
|
+
const bnChartStructureCss = () => `:host{display:inline-block;position:relative;overflow:hidden}.container{display:flex;flex-direction:row}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}.categories{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.label-bg{fill:var(--bn-font-background, white);opacity:0.7}.label-text{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-title{text-align:center;font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-ac{stroke:black;stroke-width:0.1em}.axis-pp{stroke:grey;stroke-width:0.1em}.axis-fc{stroke:black;stroke-dasharray:2;stroke-width:0.1em}.axis-pl{stroke:white;stroke-width:0.1em;outline-offset:0em;outline:0.1em solid black}canvas{image-rendering:-moz-crisp-edges;image-rendering:-webkit-crisp-edges;image-rendering:pixelated;image-rendering:crisp-edges}.measure{font-weight:bold}span{display:inline-block}.hidePatternContainer{height:0;width:0}div{float:left}.warning{font-size:0.8em;font-style:italic}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}`;
|
|
19
|
+
|
|
20
|
+
const Chart = class {
|
|
21
|
+
validateScenario(newValue) {
|
|
22
|
+
const invalidScenarios = withStyled.validateScenarioList(newValue);
|
|
23
|
+
const errId = "ERR_scenarios";
|
|
24
|
+
if (invalidScenarios.length > 0) {
|
|
25
|
+
this.errors.addOrReplace({
|
|
26
|
+
id: errId,
|
|
27
|
+
type: "warning",
|
|
28
|
+
message: "scenarios: invalid value(s) '" + JSON.stringify(invalidScenarios) + "' are not supported.",
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.errors.remove(errId);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
validateVariances(newValue) {
|
|
36
|
+
const errIdVar = "ERR_variances";
|
|
37
|
+
const invalidVariances = withStyled.validateVariancesList(newValue);
|
|
38
|
+
if (invalidVariances.length > 0) {
|
|
39
|
+
this.errors.addOrReplace({
|
|
40
|
+
id: errIdVar,
|
|
41
|
+
type: "warning",
|
|
42
|
+
message: "variances: invalid value(s) '" + JSON.stringify(invalidVariances) + "' are not supported.",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this.errors.remove(errIdVar);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
validateUnitScaling(newValue) {
|
|
50
|
+
const errId = "ERR_unitScaling";
|
|
51
|
+
if (!withStyled.isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
52
|
+
this.errors.addOrReplace({
|
|
53
|
+
id: errId,
|
|
54
|
+
type: "warning",
|
|
55
|
+
message: "unitScaling: invalid value(s) '" + newValue + "' are not supported.",
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
this.errors.remove(errId);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
validatePercentageScaling(newValue) {
|
|
63
|
+
const errId = "ERR_percentageScaling";
|
|
64
|
+
if (!withStyled.isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
65
|
+
this.errors.addOrReplace({
|
|
66
|
+
id: errId,
|
|
67
|
+
type: "warning",
|
|
68
|
+
message: "percentageScaling: invalid value(s) '" + newValue + "' are not supported.",
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
this.errors.remove(errId);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
validateLevel(newValue) {
|
|
76
|
+
const errId = "ERR_level";
|
|
77
|
+
if (!withStyled.isValidLevel(newValue)) {
|
|
78
|
+
this.errors.addOrReplace({
|
|
79
|
+
id: errId,
|
|
80
|
+
type: "warning",
|
|
81
|
+
message: "level: invalid value(s) '" + newValue + "' are not supported.",
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this.errors.remove(errId);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
validateOrderList(newValue) {
|
|
89
|
+
const invalidElements = withStyled.validateOrderList(newValue);
|
|
90
|
+
const errId = "ERR_order";
|
|
91
|
+
if (invalidElements.length > 0) {
|
|
92
|
+
this.errors.addOrReplace({
|
|
93
|
+
id: errId,
|
|
94
|
+
type: "warning",
|
|
95
|
+
message: "order: invalid value(s) '" + JSON.stringify(invalidElements) + "' are not supported.",
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
this.errors.remove(errId);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
validateOrderDirection(newValue) {
|
|
103
|
+
const errId = "ERR_orderDirection";
|
|
104
|
+
if (!withStyled.isValidDirection(newValue)) {
|
|
105
|
+
this.errors.addOrReplace({
|
|
106
|
+
id: errId,
|
|
107
|
+
type: "warning",
|
|
108
|
+
message: "orderDirection: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
this.errors.remove(errId);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
validateLimit(newValue) {
|
|
116
|
+
const errId = "ERR_limit";
|
|
117
|
+
if (!withStyled.isValidInteger(newValue)) {
|
|
118
|
+
this.errors.addOrReplace({
|
|
119
|
+
id: errId,
|
|
120
|
+
type: "warning",
|
|
121
|
+
message: "limit: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
this.errors.remove(errId);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
validateShowCategories(newValue) {
|
|
129
|
+
const errId = "ERR_showCategories";
|
|
130
|
+
if (!withStyled.isValidBoolean(newValue)) {
|
|
131
|
+
this.errors.addOrReplace({
|
|
132
|
+
id: errId,
|
|
133
|
+
type: "warning",
|
|
134
|
+
message: "showCategories: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this.errors.remove(errId);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
validateMeasureScale(newValue) {
|
|
142
|
+
const errId = "ERR_measureScale";
|
|
143
|
+
if (!withStyled.isValidMeasureScale(newValue)) {
|
|
144
|
+
this.errors.addOrReplace({
|
|
145
|
+
id: errId,
|
|
146
|
+
type: "warning",
|
|
147
|
+
message: "measureScale: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
this.errors.remove(errId);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
validateShowMeasureScale(newValue) {
|
|
155
|
+
const errId = "ERR_grouped";
|
|
156
|
+
if (!withStyled.isValidBoolean(newValue)) {
|
|
157
|
+
this.errors.addOrReplace({
|
|
158
|
+
id: errId,
|
|
159
|
+
type: "warning",
|
|
160
|
+
message: "showMeasureScale: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.errors.remove(errId);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
validateStack(newValue) {
|
|
168
|
+
const errId = "ERR_stack";
|
|
169
|
+
const errors = withStyled.validateStackConfig(newValue);
|
|
170
|
+
if (errors.length > 0) {
|
|
171
|
+
this.errors.addOrReplace({
|
|
172
|
+
id: errId,
|
|
173
|
+
type: "warning",
|
|
174
|
+
message: errors.join("; "),
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
this.errors.remove(errId);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
validateScaling(newValue) {
|
|
182
|
+
if (newValue == null || newValue === "" || newValue === "none" || newValue === "auto") {
|
|
183
|
+
this.errors.remove("ERR_scale");
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
const num = Number(newValue);
|
|
187
|
+
if (isNaN(num) || num <= 0) {
|
|
188
|
+
this.errors.addOrReplace({
|
|
189
|
+
id: "ERR_scale",
|
|
190
|
+
type: "warning",
|
|
191
|
+
message: `Invalid scale value: "${newValue}". Use "none", "auto", or a positive number.`,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
this.errors.remove("ERR_scale");
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
constructor(hostRef) {
|
|
199
|
+
index.registerInstance(this, hostRef);
|
|
200
|
+
this.data = [];
|
|
201
|
+
this.datasetMeta = null;
|
|
202
|
+
this.appliedScaleFactor = 1;
|
|
203
|
+
/**
|
|
204
|
+
* Custom chart title
|
|
205
|
+
*/
|
|
206
|
+
this.chartTitle = "";
|
|
207
|
+
/**
|
|
208
|
+
* AlaSQL WHERE clause fragment injected into the data query to filter
|
|
209
|
+
* rows before rendering (e.g. `"rowGroup = 'Revenue'"`).
|
|
210
|
+
*/
|
|
211
|
+
this.filter = "";
|
|
212
|
+
/** set translaton mode.
|
|
213
|
+
* <br /><br />
|
|
214
|
+
* values:<br />
|
|
215
|
+
* ``` all // none // meta ```
|
|
216
|
+
*/
|
|
217
|
+
/**
|
|
218
|
+
* Set the maximum number of bars for each
|
|
219
|
+
* group. The value 0 means *no limit*
|
|
220
|
+
* <br /><br />
|
|
221
|
+
* rows wich where cut by the limit are cumulated as REST
|
|
222
|
+
*
|
|
223
|
+
*/
|
|
224
|
+
this.limit = 0;
|
|
225
|
+
this.showCategories = "true";
|
|
226
|
+
/**
|
|
227
|
+
* Sets the SiPrefix of the Mesaurements and converts the
|
|
228
|
+
* original value.
|
|
229
|
+
* <br /><br />
|
|
230
|
+
* values: <br />
|
|
231
|
+
* ```_ // k // M // G // T // P // E // Z // Y // m // μ // n // p // P // f // a // z // y // GREATEST // LEAST```
|
|
232
|
+
* <br /><br />
|
|
233
|
+
* SiPrefix overview:
|
|
234
|
+
* ``` "Y": 1E+24,```<br />
|
|
235
|
+
* ``` "Z": 1E+21,```<br />
|
|
236
|
+
* ``` "E": 1E+18,```<br />
|
|
237
|
+
* ``` "P": 1E+15,```<br />
|
|
238
|
+
* ``` "T": 1E+12,```<br />
|
|
239
|
+
* ``` "G": 1000000000,```<br />
|
|
240
|
+
* ``` "M": 1000000,```<br />
|
|
241
|
+
* ``` "k": 1000,```<br />
|
|
242
|
+
* <br />
|
|
243
|
+
* ``` "m": 0.001,```<br />
|
|
244
|
+
* ``` "μ": 0.000001,```<br />
|
|
245
|
+
* ``` "n": 0.000000001,```<br />
|
|
246
|
+
* ``` "p": 0.000000000001,```<br />
|
|
247
|
+
* ``` "f": 0.000000000000001,```<br />
|
|
248
|
+
* ``` "a": 0.000000000000000001,```<br />
|
|
249
|
+
* ``` "z": 0.000000000000000000001,```<br />
|
|
250
|
+
* ``` "y": 0.000000000000000000000001,```<br />
|
|
251
|
+
* <br /><br />
|
|
252
|
+
* Special modes:
|
|
253
|
+
* ```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />
|
|
254
|
+
* ```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />
|
|
255
|
+
*<br /><br />
|
|
256
|
+
* ```_``` is the value for no SiPrefix the value is displayed as in the dataset stored.
|
|
257
|
+
*
|
|
258
|
+
*
|
|
259
|
+
*/
|
|
260
|
+
this.measureScale = "greatest";
|
|
261
|
+
/**
|
|
262
|
+
* Toggles display of measure units in table header
|
|
263
|
+
* <br /><br />
|
|
264
|
+
* values: <br />
|
|
265
|
+
* ```true // false```
|
|
266
|
+
*/
|
|
267
|
+
this.showMeasureScale = "false";
|
|
268
|
+
/**
|
|
269
|
+
* measureUnit displayed in table.
|
|
270
|
+
*/
|
|
271
|
+
this.measureUnit = "";
|
|
272
|
+
/**
|
|
273
|
+
* Stacking configuration for the chart as a JSON string.
|
|
274
|
+
*
|
|
275
|
+
* When set, bars are drawn stacked (additive layers) instead of side-by-side.
|
|
276
|
+
*
|
|
277
|
+
* @default '' (empty — no stacking)
|
|
278
|
+
* @example stack='{"by":"scenario"}'
|
|
279
|
+
*/
|
|
280
|
+
this.stack = "";
|
|
281
|
+
this.scenariosArray = [""];
|
|
282
|
+
this.pixelPerUnitGroupMap = new Map();
|
|
283
|
+
this._autoScaleGuard = false;
|
|
284
|
+
withStyled.withStyled(this);
|
|
285
|
+
withComponentStatus.withComponentStatus(this);
|
|
286
|
+
withDataset.withDataset(this, (_name, data) => {
|
|
287
|
+
this.data = (data || []);
|
|
288
|
+
}, (_name, meta) => {
|
|
289
|
+
this.datasetMeta = meta;
|
|
290
|
+
});
|
|
291
|
+
this.chartTemplate = this.chartTemplate.bind(this);
|
|
292
|
+
this.errors = withHasError.withHasError(this);
|
|
293
|
+
this.componentStyle = withComponentStyle.withComponentStyle(this);
|
|
294
|
+
this.t = withTranslation.withTranslation(this).t;
|
|
295
|
+
}
|
|
296
|
+
componentWillLoad() {
|
|
297
|
+
this.validateScenario(this.scenarios);
|
|
298
|
+
this.validateVariances(this.variances);
|
|
299
|
+
this.validateUnitScaling(this.unitScaling);
|
|
300
|
+
//this.validateSelectedStyle(this.selectedStyle);
|
|
301
|
+
this.validateLevel(this.level);
|
|
302
|
+
this.validateOrderDirection(this.orderDirection);
|
|
303
|
+
this.validateOrderList(this.order);
|
|
304
|
+
this.validateShowCategories(this.showCategories);
|
|
305
|
+
this.validateMeasureScale(this.measureScale);
|
|
306
|
+
this.validateShowMeasureScale(this.showMeasureScale);
|
|
307
|
+
this.validateStack(this.stack);
|
|
308
|
+
this.validateScaling(this.scale);
|
|
309
|
+
}
|
|
310
|
+
componentDidRender() {
|
|
311
|
+
var _a, _b;
|
|
312
|
+
const { mode } = scaling.parseScaling(this.scale);
|
|
313
|
+
if (mode !== "auto" && mode !== "empty") {
|
|
314
|
+
this._autoScaleGuard = false;
|
|
315
|
+
// Keep existing width-based overflow warning for non-auto modes
|
|
316
|
+
const parent = scaling.getParentDimensions(this.element);
|
|
317
|
+
const errId = "WARN_overflow";
|
|
318
|
+
if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
|
|
319
|
+
this.errors.addOrReplace({
|
|
320
|
+
id: errId,
|
|
321
|
+
type: "warning",
|
|
322
|
+
message: "Chart exceeds available space and will be cut off. Check unit-scaling value.",
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
this.errors.remove(errId);
|
|
327
|
+
}
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
if (this._autoScaleGuard) {
|
|
331
|
+
this._autoScaleGuard = false;
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
const host = this.element;
|
|
335
|
+
const { height: parentHeight } = scaling.getParentDimensions(host);
|
|
336
|
+
if (parentHeight <= 0)
|
|
337
|
+
return;
|
|
338
|
+
// Measure at base (unscaled) font size to get true content height
|
|
339
|
+
const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
340
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
|
|
341
|
+
// Reading scrollHeight forces a synchronous reflow at base size
|
|
342
|
+
const div = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".container");
|
|
343
|
+
const unscaledHeight = (_b = div === null || div === void 0 ? void 0 : div.scrollHeight) !== null && _b !== void 0 ? _b : host.scrollHeight;
|
|
344
|
+
if (unscaledHeight <= parentHeight + 1) {
|
|
345
|
+
this.errors.remove("AUTO_scale");
|
|
346
|
+
if (this.appliedScaleFactor !== 1) {
|
|
347
|
+
this._autoScaleGuard = true;
|
|
348
|
+
this.appliedScaleFactor = 1;
|
|
349
|
+
}
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
const computedFactor = (parentHeight - 1) / unscaledHeight;
|
|
353
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
|
|
354
|
+
if (mode === "empty") {
|
|
355
|
+
this.errors.addOrReplace({
|
|
356
|
+
id: "AUTO_scale",
|
|
357
|
+
type: "warning",
|
|
358
|
+
message: `Auto-scaled chart by factor ${computedFactor.toFixed(3)}`,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
this.errors.remove("AUTO_scale");
|
|
363
|
+
}
|
|
364
|
+
if (Math.abs(computedFactor - this.appliedScaleFactor) > 0.001) {
|
|
365
|
+
this._autoScaleGuard = true;
|
|
366
|
+
this.appliedScaleFactor = computedFactor;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
prepareDimension() {
|
|
370
|
+
const parent = scaling.getParentDimensions(this.element);
|
|
371
|
+
this.canvasWidthSegmented = parent.width / this.scenariosArray.length;
|
|
372
|
+
return { width: this.canvasWidthSegmented, height: parent.height };
|
|
373
|
+
}
|
|
374
|
+
prepareScenarios() {
|
|
375
|
+
var _a, _b, _c, _d;
|
|
376
|
+
const isAuto = ((_a = this.scenarios) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
377
|
+
if (withStyled.isBlankInput(this.scenarios) || isAuto) {
|
|
378
|
+
if (((_c = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.availableScenarios) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
379
|
+
if (!isAuto) {
|
|
380
|
+
this.errors.addOrReplace({
|
|
381
|
+
id: "AUTO_scenarios",
|
|
382
|
+
type: "warning",
|
|
383
|
+
message: `scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`,
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
this.errors.remove("AUTO_scenarios");
|
|
388
|
+
}
|
|
389
|
+
return this.datasetMeta.availableScenarios;
|
|
390
|
+
}
|
|
391
|
+
return [];
|
|
392
|
+
}
|
|
393
|
+
this.errors.remove("AUTO_scenarios");
|
|
394
|
+
return (_d = this.scenarios) === null || _d === void 0 ? void 0 : _d.split(",").map((entry) => entry.trim());
|
|
395
|
+
}
|
|
396
|
+
prepareVariances() {
|
|
397
|
+
var _a;
|
|
398
|
+
if (withStyled.isBlankInput(this.variances)) {
|
|
399
|
+
return [];
|
|
400
|
+
}
|
|
401
|
+
return (_a = this.variances) === null || _a === void 0 ? void 0 : _a.split(",").map((entry) => entry.trim());
|
|
402
|
+
}
|
|
403
|
+
prepareHideCategories(idx) {
|
|
404
|
+
return idx >= 1 || this.showCategories !== "true";
|
|
405
|
+
}
|
|
406
|
+
prepareI18n() {
|
|
407
|
+
const i18nMetaLabelsLocal = [];
|
|
408
|
+
const i18nMetaLabelsGlobal = contextProtocol.globalLabelKeys;
|
|
409
|
+
const i18nMapLocal = new Map(i18nMetaLabelsLocal.map((key) => [key, this.t(".".concat(key))]));
|
|
410
|
+
const i18nMapGlobal = new Map(i18nMetaLabelsGlobal.map((key) => [key, this.t("global.".concat(key))]));
|
|
411
|
+
return new Map([...i18nMapGlobal.entries(), ...i18nMapLocal.entries()]);
|
|
412
|
+
}
|
|
413
|
+
preparePixelPerUnit() {
|
|
414
|
+
var _a;
|
|
415
|
+
if (this.pixelPerUnitGroupMap.has(this.unitScaling)) {
|
|
416
|
+
this.errors.remove("AUTO_unitScaling");
|
|
417
|
+
return this.pixelPerUnitGroupMap.get(this.unitScaling);
|
|
418
|
+
}
|
|
419
|
+
// Explicit 'auto' → auto-calculate silently
|
|
420
|
+
if (((_a = this.unitScaling) === null || _a === void 0 ? void 0 : _a.toString().trim().toLowerCase()) === "auto") {
|
|
421
|
+
this.errors.remove("AUTO_unitScaling");
|
|
422
|
+
return 0;
|
|
423
|
+
}
|
|
424
|
+
const numeric = Number(this.unitScaling);
|
|
425
|
+
if (!isNaN(numeric) && numeric > 0) {
|
|
426
|
+
this.errors.remove("AUTO_unitScaling");
|
|
427
|
+
return numeric;
|
|
428
|
+
}
|
|
429
|
+
// Not set / invalid → auto-calculate with warning
|
|
430
|
+
this.errors.addOrReplace({
|
|
431
|
+
id: "AUTO_unitScaling",
|
|
432
|
+
type: "warning",
|
|
433
|
+
message: `unit-scaling: not set, auto-calculated to fit available space.`,
|
|
434
|
+
});
|
|
435
|
+
return 0;
|
|
436
|
+
}
|
|
437
|
+
preparePixelPerPercentage() {
|
|
438
|
+
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
439
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling); // TODO(JHE): revisit '* 100' correctness when global scaling groups are implemented
|
|
440
|
+
}
|
|
441
|
+
return Number(this.percentageScaling) * 100;
|
|
442
|
+
}
|
|
443
|
+
prepareLevel() {
|
|
444
|
+
var _a, _b, _c;
|
|
445
|
+
const isAuto = ((_a = this.level) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
446
|
+
if (withStyled.isBlankInput(this.level) || isAuto) {
|
|
447
|
+
if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedLevel) {
|
|
448
|
+
if (!isAuto) {
|
|
449
|
+
this.errors.addOrReplace({
|
|
450
|
+
id: "AUTO_level",
|
|
451
|
+
type: "warning",
|
|
452
|
+
message: `level: not set, auto-detected: ${this.datasetMeta.suggestedLevel}`,
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
else {
|
|
456
|
+
this.errors.remove("AUTO_level");
|
|
457
|
+
}
|
|
458
|
+
return constants.AggregationLevel[this.datasetMeta.suggestedLevel.toUpperCase()];
|
|
459
|
+
}
|
|
460
|
+
return undefined;
|
|
461
|
+
}
|
|
462
|
+
this.errors.remove("AUTO_level");
|
|
463
|
+
return constants.AggregationLevel[(_c = this.level) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
|
|
464
|
+
}
|
|
465
|
+
prepareOrder() {
|
|
466
|
+
var _a, _b, _c;
|
|
467
|
+
const isAuto = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
468
|
+
let orderStr;
|
|
469
|
+
if (withStyled.isBlankInput(this.order) || isAuto) {
|
|
470
|
+
if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedOrder) {
|
|
471
|
+
if (!isAuto) {
|
|
472
|
+
this.errors.addOrReplace({
|
|
473
|
+
id: "AUTO_order",
|
|
474
|
+
type: "warning",
|
|
475
|
+
message: `order: not set, auto-detected: ${this.datasetMeta.suggestedOrder}`,
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
this.errors.remove("AUTO_order");
|
|
480
|
+
}
|
|
481
|
+
orderStr = this.datasetMeta.suggestedOrder;
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
orderStr = this.order;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
this.errors.remove("AUTO_order");
|
|
489
|
+
orderStr = this.order;
|
|
490
|
+
}
|
|
491
|
+
const tableOrder = {
|
|
492
|
+
hierarchy: orderStr === null || orderStr === void 0 ? void 0 : orderStr.split(",").map((entry) => Order.OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
|
|
493
|
+
direction: Order.OrderDirection[(_c = this.orderDirection) === null || _c === void 0 ? void 0 : _c.toUpperCase()],
|
|
494
|
+
};
|
|
495
|
+
return tableOrder;
|
|
496
|
+
}
|
|
497
|
+
// TODO(JHE): consider extracting style preparation into an adapter pattern
|
|
498
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
499
|
+
prepareStyle() {
|
|
500
|
+
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
501
|
+
return this.componentStyle(($) => {
|
|
502
|
+
const baseFontSize = $["global"]["fontSizePx"];
|
|
503
|
+
const scaledFontSize = baseFontSize * effectiveFactor;
|
|
504
|
+
return {
|
|
505
|
+
scaleFactors: {
|
|
506
|
+
scenarioOffset: $["bn-chart-structure"]["scaleFactors"]["scenarioOffset"],
|
|
507
|
+
scenarioLabelToBar: $["bn-chart-structure"]["scaleFactors"]["scenarioLabelToBar"],
|
|
508
|
+
labelToBar: $["bn-chart-structure"]["scaleFactors"]["labelToBar"],
|
|
509
|
+
labelToAxis: $["bn-chart-structure"]["scaleFactors"]["labelToAxis"],
|
|
510
|
+
needleWidth: $["bn-chart-structure"]["scaleFactors"]["needleWidth"],
|
|
511
|
+
needleHeadWidth: $["bn-chart-structure"]["scaleFactors"]["needleHeadWidth"],
|
|
512
|
+
barWidth: $["bn-chart-structure"]["scaleFactors"]["barWidth"],
|
|
513
|
+
varianceAxisLineWidth: $["bn-chart-structure"]["scaleFactors"]["varianceAxisLineWidth"],
|
|
514
|
+
axisLineWidth: $["bn-chart-structure"]["scaleFactors"]["axisLineWidth"],
|
|
515
|
+
auxiliaryLineWidth: $["bn-chart-structure"]["scaleFactors"]["auxiliaryLineWidth"],
|
|
516
|
+
scenarioLineWidth: $["bn-chart-structure"]["scaleFactors"]["scenarioLineWidth"],
|
|
517
|
+
markerWidth: $["bn-chart-structure"]["scaleFactors"]["markerWidth"],
|
|
518
|
+
markerOffset: $["bn-chart-structure"]["scaleFactors"]["markerOffset"],
|
|
519
|
+
categoryWidth: $["bn-chart-structure"]["scaleFactors"]["categoryWidth"],
|
|
520
|
+
axisTickLength: $["bn-chart-structure"]["scaleFactors"]["axisTickLength"],
|
|
521
|
+
},
|
|
522
|
+
fontStyles: {
|
|
523
|
+
font: `${scaledFontSize}px ${$["global"]["fontFamily"]}`,
|
|
524
|
+
size: scaledFontSize,
|
|
525
|
+
color: $["global"]["fontColor"],
|
|
526
|
+
background: $["global"]["fontBackgroundColor"],
|
|
527
|
+
leading: 1.8,
|
|
528
|
+
},
|
|
529
|
+
axisStyles: $["bn-chart-structure"]["axisStyles"],
|
|
530
|
+
barStyles: $["bn-chart-structure"]["barStyles"],
|
|
531
|
+
varianceStyles: $["bn-chart-structure"]["varianceStyles"],
|
|
532
|
+
padding: $["bn-chart-structure"]["padding"],
|
|
533
|
+
pattern: null,
|
|
534
|
+
};
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
prepareChartTitle(idx) {
|
|
538
|
+
if (idx >= 1) {
|
|
539
|
+
return "";
|
|
540
|
+
}
|
|
541
|
+
return this.chartTitle;
|
|
542
|
+
}
|
|
543
|
+
prepareStackConfig() {
|
|
544
|
+
if (withStyled.isBlankInput(this.stack)) {
|
|
545
|
+
return null;
|
|
546
|
+
}
|
|
547
|
+
try {
|
|
548
|
+
const parsed = JSON.parse(this.stack);
|
|
549
|
+
return {
|
|
550
|
+
by: parsed.by,
|
|
551
|
+
mode: parsed.mode || constants.StackMode.ABSOLUTE,
|
|
552
|
+
order: parsed.order || constants.StackOrder.DATASET,
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
catch (_a) {
|
|
556
|
+
return null;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
prepareFilter() {
|
|
560
|
+
if (this.filter.length === 0) {
|
|
561
|
+
return "";
|
|
562
|
+
}
|
|
563
|
+
return this.filter;
|
|
564
|
+
}
|
|
565
|
+
prepareLimit() {
|
|
566
|
+
return Math.floor(Number(this.limit) || 0);
|
|
567
|
+
}
|
|
568
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
569
|
+
getDataStructure() {
|
|
570
|
+
const dataSetStructure = {
|
|
571
|
+
IStructureChartDataRow: {
|
|
572
|
+
operation: { type: "string", isOptional: false, description: "" },
|
|
573
|
+
rowGroup: { type: "string", isOptional: false, description: "" },
|
|
574
|
+
rowGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
575
|
+
category: { type: "string", isOptional: false, description: "" },
|
|
576
|
+
categoryIndex: { type: "number", isOptional: false, description: "" },
|
|
577
|
+
subCategory: { type: "string", isOptional: false, description: "" },
|
|
578
|
+
subCategoryIndex: { type: "number", isOptional: false, description: "" },
|
|
579
|
+
columnGroup: { type: "string", isOptional: false, description: "" },
|
|
580
|
+
columnGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
581
|
+
columnSubGroup: { type: "string", isOptional: false, description: "" },
|
|
582
|
+
columnSubGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
583
|
+
ac1: { type: "number", isOptional: false, description: "" },
|
|
584
|
+
ac2: { type: "number", isOptional: false, description: "" },
|
|
585
|
+
ac3: { type: "number", isOptional: false, description: "" },
|
|
586
|
+
ac4: { type: "number", isOptional: false, description: "" },
|
|
587
|
+
pp1: { type: "number", isOptional: false, description: "" },
|
|
588
|
+
pp2: { type: "number", isOptional: false, description: "" },
|
|
589
|
+
pp3: { type: "number", isOptional: false, description: "" },
|
|
590
|
+
pp4: { type: "number", isOptional: false, description: "" },
|
|
591
|
+
fc1: { type: "number", isOptional: false, description: "" },
|
|
592
|
+
fc2: { type: "number", isOptional: false, description: "" },
|
|
593
|
+
fc3: { type: "number", isOptional: false, description: "" },
|
|
594
|
+
fc4: { type: "number", isOptional: false, description: "" },
|
|
595
|
+
pl1: { type: "number", isOptional: false, description: "" },
|
|
596
|
+
pl2: { type: "number", isOptional: false, description: "" },
|
|
597
|
+
pl3: { type: "number", isOptional: false, description: "" },
|
|
598
|
+
pl4: { type: "number", isOptional: false, description: "" },
|
|
599
|
+
},
|
|
600
|
+
};
|
|
601
|
+
return dataSetStructure;
|
|
602
|
+
}
|
|
603
|
+
prepareMeasureScale() {
|
|
604
|
+
if (withStyled.isBlankInput(this.measureScale)) {
|
|
605
|
+
return "GREATEST";
|
|
606
|
+
}
|
|
607
|
+
if (["_", "k", "M", "G", "T", "P", "E", "Z", "Y", "m", "μ", "n", "p", "P", "f", "a", "z", "y"].includes(this.measureScale.trim())) {
|
|
608
|
+
return this.measureScale.trim();
|
|
609
|
+
}
|
|
610
|
+
if (this.measureScale.trim().toUpperCase() === "LEAST") {
|
|
611
|
+
return this.measureScale.trim();
|
|
612
|
+
}
|
|
613
|
+
return "GREATEST";
|
|
614
|
+
}
|
|
615
|
+
prepareShowMeasureScale(idx) {
|
|
616
|
+
return idx === 0 && this.showMeasureScale === "true";
|
|
617
|
+
}
|
|
618
|
+
prepareMeasureUnit() {
|
|
619
|
+
if (this.measureUnit === "" || this.measureUnit == null) {
|
|
620
|
+
return "";
|
|
621
|
+
}
|
|
622
|
+
return this.measureUnit;
|
|
623
|
+
}
|
|
624
|
+
chartTemplate(localScenarioString, idx) {
|
|
625
|
+
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
626
|
+
const ppu = this.preparePixelPerUnit();
|
|
627
|
+
const ppp = this.preparePixelPerPercentage();
|
|
628
|
+
return (index.h("ibcs-chart-structure", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: this.prepareScenarios(), variances: [localScenarioString], hideCategories: this.prepareHideCategories(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), styles: this.prepareStyle(), i18n: this.prepareI18n(), order: this.prepareOrder(), level: this.prepareLevel(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(idx), stackConfig: this.prepareStackConfig(), parentDimensions: this.prepareDimension() }));
|
|
629
|
+
}
|
|
630
|
+
getEffectiveScaleFactor() {
|
|
631
|
+
const { mode, factor } = scaling.parseScaling(this.scale);
|
|
632
|
+
if (mode === "factor")
|
|
633
|
+
return factor;
|
|
634
|
+
if (mode === "auto" || mode === "empty")
|
|
635
|
+
return this.appliedScaleFactor;
|
|
636
|
+
return 1;
|
|
637
|
+
}
|
|
638
|
+
getFontStyles() {
|
|
639
|
+
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
640
|
+
return this.componentStyle(($) => {
|
|
641
|
+
var _a, _b, _c, _d;
|
|
642
|
+
const baseFontSize = ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333;
|
|
643
|
+
return {
|
|
644
|
+
"--bn-font-family": ((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontFamily"]) || "'Noto Sans', sans-serif",
|
|
645
|
+
"--bn-font-size": `${baseFontSize * effectiveFactor}px`,
|
|
646
|
+
"--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
|
|
647
|
+
"--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
|
|
648
|
+
};
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
render() {
|
|
652
|
+
let scenariosArray = [""];
|
|
653
|
+
const variancesArray = this.prepareVariances();
|
|
654
|
+
if (variancesArray.length > 0) {
|
|
655
|
+
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
656
|
+
}
|
|
657
|
+
const fontStyles = this.getFontStyles();
|
|
658
|
+
return (index.h(index.Host, { key: '292a75492d9ba0f6ae65e25aa9da26bc094ed69d', style: fontStyles }, index.h("div", { key: '97e10ab499494b6fb71c628cdab049b077e62c44', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
659
|
+
}
|
|
660
|
+
get element() { return index.getElement(this); }
|
|
661
|
+
static get watchers() { return {
|
|
662
|
+
"scenarios": [{
|
|
663
|
+
"validateScenario": 0
|
|
664
|
+
}],
|
|
665
|
+
"variances": [{
|
|
666
|
+
"validateVariances": 0
|
|
667
|
+
}],
|
|
668
|
+
"unitScaling": [{
|
|
669
|
+
"validateUnitScaling": 0
|
|
670
|
+
}],
|
|
671
|
+
"percentageScaling": [{
|
|
672
|
+
"validatePercentageScaling": 0
|
|
673
|
+
}],
|
|
674
|
+
"level": [{
|
|
675
|
+
"validateLevel": 0
|
|
676
|
+
}],
|
|
677
|
+
"order": [{
|
|
678
|
+
"validateOrderList": 0
|
|
679
|
+
}],
|
|
680
|
+
"orderDirection": [{
|
|
681
|
+
"validateOrderDirection": 0
|
|
682
|
+
}],
|
|
683
|
+
"limit": [{
|
|
684
|
+
"validateLimit": 0
|
|
685
|
+
}],
|
|
686
|
+
"showCategories": [{
|
|
687
|
+
"validateShowCategories": 0
|
|
688
|
+
}],
|
|
689
|
+
"measureScale": [{
|
|
690
|
+
"validateMeasureScale": 0
|
|
691
|
+
}],
|
|
692
|
+
"showMeasureScale": [{
|
|
693
|
+
"validateShowMeasureScale": 0
|
|
694
|
+
}],
|
|
695
|
+
"stack": [{
|
|
696
|
+
"validateStack": 0
|
|
697
|
+
}],
|
|
698
|
+
"scale": [{
|
|
699
|
+
"validateScaling": 0
|
|
700
|
+
}]
|
|
701
|
+
}; }
|
|
702
|
+
};
|
|
703
|
+
Chart.style = bnChartStructureCss();
|
|
704
|
+
|
|
705
|
+
exports.bn_chart_structure = Chart;
|