@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,1510 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { isBlankInput, isValidAxisLabelsMode, isValidBoolean, isValidDateFormat, isValidDirection, isValidInteger, isValidLevel, isValidMeasureScale, isValidNumber, validateOrderList, validateScenarioList, validateStackConfig, validateVariancesList, } from "../../utils/validate";
|
|
3
|
+
import withDataset from "../../utils/withDataset";
|
|
4
|
+
import withComponentStatus from "../../utils/withComponentStatus";
|
|
5
|
+
import withTranslation from "../../utils/withTranslation";
|
|
6
|
+
import { globalLabelKeys } from "../../stores/internationalization";
|
|
7
|
+
import { withStyled } from "../../utils/styled/withStyled";
|
|
8
|
+
import withComponentStyle from "../../utils/withComponentStyle";
|
|
9
|
+
import withHasError from "../../utils/withHasError";
|
|
10
|
+
import { getParentDimensions } from "../../utils/parentDimensions";
|
|
11
|
+
import { parseScaling } from "../../utils/scaling";
|
|
12
|
+
import { OrderColumn, OrderDirection } from "../../utils/model/Order";
|
|
13
|
+
import { Formatter } from "../../utils/formatter";
|
|
14
|
+
import { AxisLabelsMode, ChartMode, StackMode, StackOrder } from "../../utils/constants";
|
|
15
|
+
import { DateDistance } from "../../utils/DateStringFactory";
|
|
16
|
+
var AggregationLevel;
|
|
17
|
+
(function (AggregationLevel) {
|
|
18
|
+
AggregationLevel["ROWGROUP"] = "rowGroup";
|
|
19
|
+
AggregationLevel["ROWGROUPINDEX"] = "rowGroupIndex";
|
|
20
|
+
AggregationLevel["CATEGORY"] = "category";
|
|
21
|
+
AggregationLevel["CATEGORYINDEX"] = "categoryIndex";
|
|
22
|
+
AggregationLevel["SUBCATEGORY"] = "subCategory";
|
|
23
|
+
AggregationLevel["SUBCATEGORYINDEX"] = "subCategoryIndex";
|
|
24
|
+
})(AggregationLevel || (AggregationLevel = {}));
|
|
25
|
+
/**
|
|
26
|
+
* SVG time-series chart following IBCS standards.
|
|
27
|
+
*
|
|
28
|
+
* Subscribes to a dataset (via `withDataset`) and renders date-axis bar or
|
|
29
|
+
* line charts with up to four scenario layers, optional variance sub-charts,
|
|
30
|
+
* stacking, and proportional auto-scaling. Date normalization and interval
|
|
31
|
+
* detection are delegated to `DateStringFactory`. The heavy SVG rendering
|
|
32
|
+
* is performed by the inner `ibcs-chart-time` element; this outer component
|
|
33
|
+
* validates props, resolves auto-detected metadata, and computes styles.
|
|
34
|
+
*/
|
|
35
|
+
export class Chart {
|
|
36
|
+
validateScenario(newValue) {
|
|
37
|
+
const invalidScenarios = validateScenarioList(newValue);
|
|
38
|
+
const errId = "ERR_scenarios";
|
|
39
|
+
if (invalidScenarios.length > 0) {
|
|
40
|
+
this.errors.addOrReplace({
|
|
41
|
+
id: errId,
|
|
42
|
+
type: "warning",
|
|
43
|
+
message: "scenarios: invalid value(s) '" + JSON.stringify(invalidScenarios) + "' are not supported.",
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.errors.remove(errId);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
validateVariances(newValue) {
|
|
51
|
+
const errIdVar = "ERR_variances";
|
|
52
|
+
const invalidVariances = validateVariancesList(newValue);
|
|
53
|
+
if (invalidVariances.length > 0) {
|
|
54
|
+
this.errors.addOrReplace({
|
|
55
|
+
id: errIdVar,
|
|
56
|
+
type: "warning",
|
|
57
|
+
message: "variances: invalid value(s) '" + JSON.stringify(invalidVariances) + "' are not supported.",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
this.errors.remove(errIdVar);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
validateLeftSync(newValue) {
|
|
65
|
+
const errId = "ERR_syncSpaceLeft";
|
|
66
|
+
if (!isValidNumber(newValue)) {
|
|
67
|
+
this.errors.addOrReplace({
|
|
68
|
+
id: errId,
|
|
69
|
+
type: "warning",
|
|
70
|
+
message: "syncSpaceLeft: invalid value(s) '" + newValue + "' are not supported.",
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
this.errors.remove(errId);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
validateLimit(newValue) {
|
|
78
|
+
const errId = "ERR_limit";
|
|
79
|
+
if (!isValidInteger(newValue)) {
|
|
80
|
+
this.errors.addOrReplace({
|
|
81
|
+
id: errId,
|
|
82
|
+
type: "warning",
|
|
83
|
+
message: "limit: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this.errors.remove(errId);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
validateUnitScaling(newValue) {
|
|
91
|
+
const errId = "ERR_unitScaling";
|
|
92
|
+
if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
93
|
+
this.errors.addOrReplace({
|
|
94
|
+
id: errId,
|
|
95
|
+
type: "warning",
|
|
96
|
+
message: "unitScaling: invalid value(s) '" + newValue + "' are not supported.",
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
this.errors.remove(errId);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
validatePercentageScaling(newValue) {
|
|
104
|
+
const errId = "ERR_percentageScaling";
|
|
105
|
+
if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
106
|
+
this.errors.addOrReplace({
|
|
107
|
+
id: errId,
|
|
108
|
+
type: "warning",
|
|
109
|
+
message: "percentageScaling: invalid value(s) '" + newValue + "' are not supported.",
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
this.errors.remove(errId);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
validateLevel(newValue) {
|
|
117
|
+
const errId = "ERR_level";
|
|
118
|
+
if (!isValidLevel(newValue)) {
|
|
119
|
+
this.errors.addOrReplace({
|
|
120
|
+
id: errId,
|
|
121
|
+
type: "warning",
|
|
122
|
+
message: "level: invalid value(s) '" + newValue + "' are not supported.",
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
this.errors.remove(errId);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
validateOrderList(newValue) {
|
|
130
|
+
const errId = "ERR_order";
|
|
131
|
+
const invalidElements = validateOrderList(newValue);
|
|
132
|
+
if (invalidElements.length > 0) {
|
|
133
|
+
this.errors.addOrReplace({
|
|
134
|
+
id: errId,
|
|
135
|
+
type: "warning",
|
|
136
|
+
message: "order: invalid value(s) '" + JSON.stringify(invalidElements) + "' are not supported.",
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
this.errors.remove(errId);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
validateOrderDirection(newValue) {
|
|
144
|
+
const errId = "ERR_orderDirection";
|
|
145
|
+
if (!isValidDirection(newValue)) {
|
|
146
|
+
this.errors.addOrReplace({
|
|
147
|
+
id: errId,
|
|
148
|
+
type: "warning",
|
|
149
|
+
message: "orderDirection: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
this.errors.remove(errId);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
validateDateInterval(newValue) {
|
|
157
|
+
const errId = "ERR_dateInterval";
|
|
158
|
+
if (!isValidDateFormat(newValue)) {
|
|
159
|
+
this.errors.addOrReplace({
|
|
160
|
+
id: errId,
|
|
161
|
+
type: "warning",
|
|
162
|
+
message: "dateInterval: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
this.errors.remove(errId);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
validateChartMode(newValue) {
|
|
170
|
+
const errId = "ERR_chartMode";
|
|
171
|
+
const validModes = ["bar", "line", "auto"];
|
|
172
|
+
if (!validModes.includes(newValue === null || newValue === void 0 ? void 0 : newValue.toLowerCase())) {
|
|
173
|
+
this.errors.addOrReplace({
|
|
174
|
+
id: errId,
|
|
175
|
+
type: "warning",
|
|
176
|
+
message: "chartMode: invalid value '" +
|
|
177
|
+
(newValue === null || newValue === void 0 ? void 0 : newValue.toString()) +
|
|
178
|
+
"' is not supported. Valid values are: bar, line, auto.",
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
this.errors.remove(errId);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
validateMaxBars(newValue) {
|
|
186
|
+
const errId = "ERR_maxBars";
|
|
187
|
+
if (!isValidInteger(newValue) || newValue < 1) {
|
|
188
|
+
this.errors.addOrReplace({
|
|
189
|
+
id: errId,
|
|
190
|
+
type: "warning",
|
|
191
|
+
message: "maxBars: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported. Must be a positive integer.",
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
this.errors.remove(errId);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
validateStack(newValue) {
|
|
199
|
+
const errId = "ERR_stack";
|
|
200
|
+
const errors = validateStackConfig(newValue);
|
|
201
|
+
if (errors.length > 0) {
|
|
202
|
+
this.errors.addOrReplace({
|
|
203
|
+
id: errId,
|
|
204
|
+
type: "warning",
|
|
205
|
+
message: errors.join("; "),
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
this.errors.remove(errId);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
validateScaling(newValue) {
|
|
213
|
+
if (newValue == null || newValue === "" || newValue === "none" || newValue === "auto") {
|
|
214
|
+
this.errors.remove("ERR_scale");
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const num = Number(newValue);
|
|
218
|
+
if (isNaN(num) || num <= 0) {
|
|
219
|
+
this.errors.addOrReplace({
|
|
220
|
+
id: "ERR_scale",
|
|
221
|
+
type: "warning",
|
|
222
|
+
message: `Invalid scale value: "${newValue}". Use "none", "auto", or a positive number.`,
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
this.errors.remove("ERR_scale");
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
validateAxisLabelsMode(newValue) {
|
|
230
|
+
const errId = "ERR_axisLabelsMode";
|
|
231
|
+
if (!isValidAxisLabelsMode(newValue)) {
|
|
232
|
+
this.errors.addOrReplace({
|
|
233
|
+
id: errId,
|
|
234
|
+
type: "warning",
|
|
235
|
+
message: "axisLabelsMode: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
this.errors.remove(errId);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
validateLineFullWidth(newValue) {
|
|
243
|
+
const errId = "ERR_lineFullWidth";
|
|
244
|
+
if (!isValidBoolean(newValue)) {
|
|
245
|
+
this.errors.addOrReplace({
|
|
246
|
+
id: errId,
|
|
247
|
+
type: "warning",
|
|
248
|
+
message: "lineFullWidth: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
this.errors.remove(errId);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
validateShowCategories(newValue) {
|
|
256
|
+
const errId = "ERR_showCategories";
|
|
257
|
+
if (!isValidBoolean(newValue)) {
|
|
258
|
+
this.errors.addOrReplace({
|
|
259
|
+
id: errId,
|
|
260
|
+
type: "warning",
|
|
261
|
+
message: "showCategories: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
this.errors.remove(errId);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
validateMeasureScale(newValue) {
|
|
269
|
+
const errId = "ERR_measureScale";
|
|
270
|
+
if (!isValidMeasureScale(newValue)) {
|
|
271
|
+
this.errors.addOrReplace({
|
|
272
|
+
id: errId,
|
|
273
|
+
type: "warning",
|
|
274
|
+
message: "measureScale: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
this.errors.remove(errId);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
validateShowMeasureScale(newValue) {
|
|
282
|
+
const errId = "ERR_grouped";
|
|
283
|
+
if (!isValidBoolean(newValue)) {
|
|
284
|
+
this.errors.addOrReplace({
|
|
285
|
+
id: errId,
|
|
286
|
+
type: "warning",
|
|
287
|
+
message: "showMeasureScale: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
this.errors.remove(errId);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
validateShowOverlayAvg(newValue) {
|
|
295
|
+
const errId = "ERR_grouped";
|
|
296
|
+
if (!isValidBoolean(newValue)) {
|
|
297
|
+
this.errors.addOrReplace({
|
|
298
|
+
id: errId,
|
|
299
|
+
type: "warning",
|
|
300
|
+
message: "showOverlayAvg: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
this.errors.remove(errId);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
validateShowOverlayMedian(newValue) {
|
|
308
|
+
const errId = "ERR_grouped";
|
|
309
|
+
if (!isValidBoolean(newValue)) {
|
|
310
|
+
this.errors.addOrReplace({
|
|
311
|
+
id: errId,
|
|
312
|
+
type: "warning",
|
|
313
|
+
message: "showOverlayMedian: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
this.errors.remove(errId);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
constructor() {
|
|
321
|
+
this.data = [];
|
|
322
|
+
this.datasetMeta = null;
|
|
323
|
+
this.appliedScaleFactor = 1;
|
|
324
|
+
/**
|
|
325
|
+
* Custom chart title
|
|
326
|
+
*/
|
|
327
|
+
this.chartTitle = "";
|
|
328
|
+
/**
|
|
329
|
+
* AlaSQL WHERE clause fragment injected into the data query to filter
|
|
330
|
+
* rows before rendering (e.g. `"rowGroup = 'Revenue'"`).
|
|
331
|
+
*/
|
|
332
|
+
this.filter = "";
|
|
333
|
+
this.syncSpaceLeft = -1;
|
|
334
|
+
/**
|
|
335
|
+
* Set the maximum number of columns stacks The value 0 means *no limit*
|
|
336
|
+
* <br /><br />
|
|
337
|
+
*
|
|
338
|
+
* columns stacks wich where cut by the limit are cumulated as REST
|
|
339
|
+
*
|
|
340
|
+
*/
|
|
341
|
+
this.limit = 0;
|
|
342
|
+
/** Chart Mode - controls how the chart is rendered
|
|
343
|
+
* <br /><br />
|
|
344
|
+
* values:<br />
|
|
345
|
+
* ```bar // line // auto```
|
|
346
|
+
* <br /><br />
|
|
347
|
+
* When set to 'auto', the chart will switch to line mode
|
|
348
|
+
* when the number of data points exceeds maxBars.
|
|
349
|
+
*/
|
|
350
|
+
this.chartMode = "bar";
|
|
351
|
+
/** Max Bars - threshold for auto-switching to line mode
|
|
352
|
+
* <br /><br />
|
|
353
|
+
* When chartMode is set to 'auto' and the number of data points
|
|
354
|
+
* exceeds this value, the chart will render as a line chart.
|
|
355
|
+
*/
|
|
356
|
+
this.maxBars = 28;
|
|
357
|
+
/**
|
|
358
|
+
* Stacking configuration for the chart as a JSON string.
|
|
359
|
+
*
|
|
360
|
+
* When set, bars/columns are drawn stacked (additive layers) instead of
|
|
361
|
+
* side-by-side. In line mode (`chart-mode="line"`), stacking produces a
|
|
362
|
+
* stacked area chart with filled regions between cumulative lines.
|
|
363
|
+
*
|
|
364
|
+
* **JSON schema:**
|
|
365
|
+
* ```json
|
|
366
|
+
* {
|
|
367
|
+
* "by": "scenario" | "category" | "subcategory" | "rowgroup",
|
|
368
|
+
* "mode": "absolute" | "relative" | "absolute-relative",
|
|
369
|
+
* "order": "asc" | "desc" | "dataset"
|
|
370
|
+
* }
|
|
371
|
+
* ```
|
|
372
|
+
*
|
|
373
|
+
* - `by` (required): The dimension to stack.
|
|
374
|
+
* - `"scenario"` — stack the scenarios from the `scenarios` prop as layers.
|
|
375
|
+
* - `"category"` / `"subcategory"` / `"rowgroup"` — decompose a single
|
|
376
|
+
* scenario by this data dimension. Must be finer than `level`.
|
|
377
|
+
* - `mode` (optional, default `"absolute"`):
|
|
378
|
+
* - `"absolute"` — additive stacking, axis shows absolute units.
|
|
379
|
+
* - `"relative"` — 100% stacking, axis shows 0%–100%.
|
|
380
|
+
* - `"absolute-relative"` — bar height is absolute (real value), but
|
|
381
|
+
* segment labels inside show percentages.
|
|
382
|
+
* - `order` (optional, default `"dataset"`): Segment order within each stack.
|
|
383
|
+
* `"asc"` / `"desc"` sort segments by value; `"dataset"` preserves the
|
|
384
|
+
* original data/scenario order.
|
|
385
|
+
*
|
|
386
|
+
* @default '' (empty — no stacking)
|
|
387
|
+
*
|
|
388
|
+
* @example
|
|
389
|
+
* // Stack scenarios
|
|
390
|
+
* stack='{"by":"scenario"}'
|
|
391
|
+
*
|
|
392
|
+
* @example
|
|
393
|
+
* // Stack by category, relative mode
|
|
394
|
+
* stack='{"by":"category","mode":"relative"}'
|
|
395
|
+
*/
|
|
396
|
+
this.stack = "";
|
|
397
|
+
/** Max number of collumns
|
|
398
|
+
* is used to calculate Axis Date Interval (if dateInterval is set to AUTO)
|
|
399
|
+
*/
|
|
400
|
+
this.intervalSpanLimit = 28;
|
|
401
|
+
/** When true (default), line charts stretch to fill the full parent width
|
|
402
|
+
* instead of using fixed per-data-point spacing.
|
|
403
|
+
* Has no effect in bar mode.
|
|
404
|
+
* <br /><br />
|
|
405
|
+
* values:<br />
|
|
406
|
+
* ```true // false```
|
|
407
|
+
*/
|
|
408
|
+
this.lineFullWidth = "true";
|
|
409
|
+
this.showCategories = "true";
|
|
410
|
+
/**
|
|
411
|
+
* Sets the SiPrefix of the Mesaurements and converts the
|
|
412
|
+
* original value.
|
|
413
|
+
* <br /><br />
|
|
414
|
+
* values: <br />
|
|
415
|
+
* ```_ // k // M // G // T // P // E // Z // Y // m // μ // n // p // P // f // a // z // y // GREATEST // LEAST```
|
|
416
|
+
* <br /><br />
|
|
417
|
+
* SiPrefix overview:
|
|
418
|
+
* ``` "Y": 1E+24,```<br />
|
|
419
|
+
* ``` "Z": 1E+21,```<br />
|
|
420
|
+
* ``` "E": 1E+18,```<br />
|
|
421
|
+
* ``` "P": 1E+15,```<br />
|
|
422
|
+
* ``` "T": 1E+12,```<br />
|
|
423
|
+
* ``` "G": 1000000000,```<br />
|
|
424
|
+
* ``` "M": 1000000,```<br />
|
|
425
|
+
* ``` "k": 1000,```<br />
|
|
426
|
+
* <br />
|
|
427
|
+
* ``` "m": 0.001,```<br />
|
|
428
|
+
* ``` "μ": 0.000001,```<br />
|
|
429
|
+
* ``` "n": 0.000000001,```<br />
|
|
430
|
+
* ``` "p": 0.000000000001,```<br />
|
|
431
|
+
* ``` "f": 0.000000000000001,```<br />
|
|
432
|
+
* ``` "a": 0.000000000000000001,```<br />
|
|
433
|
+
* ``` "z": 0.000000000000000000001,```<br />
|
|
434
|
+
* ``` "y": 0.000000000000000000000001,```<br />
|
|
435
|
+
* <br /><br />
|
|
436
|
+
* Special modes:
|
|
437
|
+
* ```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />
|
|
438
|
+
* ```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />
|
|
439
|
+
*<br /><br />
|
|
440
|
+
* ```_``` is the value for no SiPrefix the value is displayed as in the dataset stored.
|
|
441
|
+
*
|
|
442
|
+
*
|
|
443
|
+
*/
|
|
444
|
+
this.measureScale = "greatest";
|
|
445
|
+
/**
|
|
446
|
+
* Toggles display of measure units in table header
|
|
447
|
+
* <br /><br />
|
|
448
|
+
* values: <br />
|
|
449
|
+
* ```true // false```
|
|
450
|
+
*/
|
|
451
|
+
this.showMeasureScale = "false";
|
|
452
|
+
this.showOverlayAvg = "true";
|
|
453
|
+
this.showOverlayMedian = "false";
|
|
454
|
+
/**
|
|
455
|
+
* measureUnit displayed in table.
|
|
456
|
+
*/
|
|
457
|
+
this.measureUnit = "";
|
|
458
|
+
this.pixelPerUnitGroupMap = new Map();
|
|
459
|
+
this._autoScaleIterations = 0;
|
|
460
|
+
withStyled(this);
|
|
461
|
+
withComponentStatus(this);
|
|
462
|
+
withDataset(this, (_name, data) => {
|
|
463
|
+
this.data = (data || []);
|
|
464
|
+
}, (_name, meta) => {
|
|
465
|
+
this.datasetMeta = meta;
|
|
466
|
+
});
|
|
467
|
+
this.chartTemplate = this.chartTemplate.bind(this);
|
|
468
|
+
this.errors = withHasError(this);
|
|
469
|
+
this.componentStyle = withComponentStyle(this);
|
|
470
|
+
this.t = withTranslation(this).t;
|
|
471
|
+
}
|
|
472
|
+
componentWillLoad() {
|
|
473
|
+
this.validateScenario(this.scenarios);
|
|
474
|
+
this.validateVariances(this.variances);
|
|
475
|
+
this.validateUnitScaling(this.unitScaling);
|
|
476
|
+
this.validateLimit(this.limit);
|
|
477
|
+
// this.validateStyles(this.styles);
|
|
478
|
+
this.validateLevel(this.level);
|
|
479
|
+
this.validateOrderDirection(this.orderDirection);
|
|
480
|
+
this.validateOrderList(this.order);
|
|
481
|
+
this.validateLeftSync(this.syncSpaceLeft);
|
|
482
|
+
this.validateDateInterval(this.dateInterval);
|
|
483
|
+
this.validateAxisLabelsMode(this.axisLabelsMode);
|
|
484
|
+
this.validateLineFullWidth(this.lineFullWidth);
|
|
485
|
+
this.validateShowCategories(this.showCategories);
|
|
486
|
+
this.validateMeasureScale(this.measureScale);
|
|
487
|
+
this.validateShowMeasureScale(this.showMeasureScale);
|
|
488
|
+
this.validateShowOverlayAvg(this.showOverlayAvg);
|
|
489
|
+
this.validateShowOverlayMedian(this.showOverlayMedian);
|
|
490
|
+
this.validateChartMode(this.chartMode);
|
|
491
|
+
this.validateMaxBars(this.maxBars);
|
|
492
|
+
this.validateStack(this.stack);
|
|
493
|
+
this.validateScaling(this.scale);
|
|
494
|
+
}
|
|
495
|
+
componentDidRender() {
|
|
496
|
+
var _a, _b;
|
|
497
|
+
const { mode } = parseScaling(this.scale);
|
|
498
|
+
if (mode !== "auto" && mode !== "empty") {
|
|
499
|
+
this._autoScaleIterations = 0;
|
|
500
|
+
// Keep existing width-based overflow warning for non-auto modes
|
|
501
|
+
const parent = getParentDimensions(this.element);
|
|
502
|
+
const errId = "WARN_overflow";
|
|
503
|
+
if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
|
|
504
|
+
this.errors.addOrReplace({
|
|
505
|
+
id: errId,
|
|
506
|
+
type: "warning",
|
|
507
|
+
message: "Chart exceeds available space and will be cut off. Check unit-scaling value.",
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
else {
|
|
511
|
+
this.errors.remove(errId);
|
|
512
|
+
}
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
const host = this.element;
|
|
516
|
+
const { width: parentWidth } = getParentDimensions(host);
|
|
517
|
+
if (parentWidth <= 0)
|
|
518
|
+
return;
|
|
519
|
+
const div = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".container");
|
|
520
|
+
const currentWidth = (_b = div === null || div === void 0 ? void 0 : div.scrollWidth) !== null && _b !== void 0 ? _b : host.scrollWidth;
|
|
521
|
+
const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
522
|
+
// Content fits — no scaling needed (or current scale is sufficient)
|
|
523
|
+
if (currentWidth <= parentWidth + 1) {
|
|
524
|
+
this._autoScaleIterations = 0;
|
|
525
|
+
this.errors.remove("AUTO_scale");
|
|
526
|
+
// If previously scaled but content now fits at base, reset to 1
|
|
527
|
+
if (this.appliedScaleFactor !== 1) {
|
|
528
|
+
// Try resetting — if that overflows, the next didRender will re-scale
|
|
529
|
+
this._autoScaleIterations = 1;
|
|
530
|
+
this.appliedScaleFactor = 1;
|
|
531
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
|
|
532
|
+
}
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
// Prevent infinite loop
|
|
536
|
+
if (this._autoScaleIterations >= Chart.MAX_SCALE_ITERATIONS) {
|
|
537
|
+
this._autoScaleIterations = 0;
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
// Content overflows — compute multiplicative correction
|
|
541
|
+
const correction = (parentWidth - 1) / currentWidth;
|
|
542
|
+
const newFactor = this.appliedScaleFactor * correction;
|
|
543
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize * newFactor}px`);
|
|
544
|
+
if (mode === "empty") {
|
|
545
|
+
this.errors.addOrReplace({
|
|
546
|
+
id: "AUTO_scale",
|
|
547
|
+
type: "warning",
|
|
548
|
+
message: `Auto-scaled chart by factor ${newFactor.toFixed(3)}`,
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
this.errors.remove("AUTO_scale");
|
|
553
|
+
}
|
|
554
|
+
if (Math.abs(newFactor - this.appliedScaleFactor) > 0.001) {
|
|
555
|
+
this._autoScaleIterations++;
|
|
556
|
+
this.appliedScaleFactor = newFactor;
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
this._autoScaleIterations = 0;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
prepareDimension() {
|
|
563
|
+
const parent = getParentDimensions(this.element);
|
|
564
|
+
const scenariosList = this.prepareScenarios();
|
|
565
|
+
const variancesList = this.prepareVariances();
|
|
566
|
+
this.canvasWidthSegmented = parent.width / (scenariosList.length + variancesList.length || 1);
|
|
567
|
+
return { width: this.canvasWidthSegmented, height: parent.height };
|
|
568
|
+
}
|
|
569
|
+
prepareScenarios() {
|
|
570
|
+
var _a, _b, _c, _d;
|
|
571
|
+
const isAuto = ((_a = this.scenarios) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
572
|
+
if (isBlankInput(this.scenarios) || isAuto) {
|
|
573
|
+
if (((_c = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.availableScenarios) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
574
|
+
if (!isAuto) {
|
|
575
|
+
this.errors.addOrReplace({
|
|
576
|
+
id: "AUTO_scenarios",
|
|
577
|
+
type: "warning",
|
|
578
|
+
message: `scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`,
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
else {
|
|
582
|
+
this.errors.remove("AUTO_scenarios");
|
|
583
|
+
}
|
|
584
|
+
return this.datasetMeta.availableScenarios;
|
|
585
|
+
}
|
|
586
|
+
return [];
|
|
587
|
+
}
|
|
588
|
+
this.errors.remove("AUTO_scenarios");
|
|
589
|
+
return (_d = this.scenarios) === null || _d === void 0 ? void 0 : _d.split(",").map((entry) => entry.trim());
|
|
590
|
+
}
|
|
591
|
+
prepareAvg() {
|
|
592
|
+
return this.showOverlayAvg === "true";
|
|
593
|
+
}
|
|
594
|
+
prepareMedian() {
|
|
595
|
+
return this.showOverlayMedian === "true";
|
|
596
|
+
}
|
|
597
|
+
prepareVariances() {
|
|
598
|
+
var _a;
|
|
599
|
+
if (isBlankInput(this.variances)) {
|
|
600
|
+
return [];
|
|
601
|
+
}
|
|
602
|
+
return (_a = this.variances) === null || _a === void 0 ? void 0 : _a.split(",").map((entry) => entry.trim());
|
|
603
|
+
}
|
|
604
|
+
prepareHideAxisLabels(idx) {
|
|
605
|
+
return idx >= 1 || this.showCategories !== "true";
|
|
606
|
+
}
|
|
607
|
+
prepareI18n() {
|
|
608
|
+
const i18nMetaLabelsLocal = [];
|
|
609
|
+
const i18nMetaLabelsGlobal = globalLabelKeys;
|
|
610
|
+
const i18nMapLocal = new Map(i18nMetaLabelsLocal.map((key) => [key, this.t(".".concat(key))]));
|
|
611
|
+
const i18nMapGlobal = new Map(i18nMetaLabelsGlobal.map((key) => [key, this.t("global.".concat(key))]));
|
|
612
|
+
return new Map([...i18nMapGlobal.entries(), ...i18nMapLocal.entries()]);
|
|
613
|
+
}
|
|
614
|
+
preparePixelPerUnit() {
|
|
615
|
+
var _a;
|
|
616
|
+
if (this.pixelPerUnitGroupMap.has(this.unitScaling)) {
|
|
617
|
+
this.errors.remove("AUTO_unitScaling");
|
|
618
|
+
return this.pixelPerUnitGroupMap.get(this.unitScaling);
|
|
619
|
+
}
|
|
620
|
+
// Explicit 'auto' → auto-calculate silently
|
|
621
|
+
if (((_a = this.unitScaling) === null || _a === void 0 ? void 0 : _a.toString().trim().toLowerCase()) === "auto") {
|
|
622
|
+
this.errors.remove("AUTO_unitScaling");
|
|
623
|
+
return 0;
|
|
624
|
+
}
|
|
625
|
+
const numeric = Number(this.unitScaling);
|
|
626
|
+
if (!isNaN(numeric) && numeric > 0) {
|
|
627
|
+
this.errors.remove("AUTO_unitScaling");
|
|
628
|
+
return numeric;
|
|
629
|
+
}
|
|
630
|
+
// Not set / invalid → auto-calculate with warning
|
|
631
|
+
this.errors.addOrReplace({
|
|
632
|
+
id: "AUTO_unitScaling",
|
|
633
|
+
type: "warning",
|
|
634
|
+
message: `unit-scaling: not set, auto-calculated to fit available space.`,
|
|
635
|
+
});
|
|
636
|
+
return 0;
|
|
637
|
+
}
|
|
638
|
+
preparePixelPerPercentage() {
|
|
639
|
+
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
640
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling); // TODO(JHE): revisit '* 100' correctness when global scaling groups are implemented
|
|
641
|
+
}
|
|
642
|
+
return Number(this.percentageScaling) * 100;
|
|
643
|
+
}
|
|
644
|
+
prepareLevel() {
|
|
645
|
+
var _a, _b, _c;
|
|
646
|
+
const isAuto = ((_a = this.level) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
647
|
+
if (isBlankInput(this.level) || isAuto) {
|
|
648
|
+
if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedLevel) {
|
|
649
|
+
if (!isAuto) {
|
|
650
|
+
this.errors.addOrReplace({
|
|
651
|
+
id: "AUTO_level",
|
|
652
|
+
type: "warning",
|
|
653
|
+
message: `level: not set, auto-detected: ${this.datasetMeta.suggestedLevel}`,
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
else {
|
|
657
|
+
this.errors.remove("AUTO_level");
|
|
658
|
+
}
|
|
659
|
+
return AggregationLevel[this.datasetMeta.suggestedLevel.toUpperCase()];
|
|
660
|
+
}
|
|
661
|
+
return undefined;
|
|
662
|
+
}
|
|
663
|
+
this.errors.remove("AUTO_level");
|
|
664
|
+
return AggregationLevel[(_c = this.level) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
|
|
665
|
+
}
|
|
666
|
+
prepareOrder() {
|
|
667
|
+
var _a, _b, _c, _d, _e, _f;
|
|
668
|
+
const isLevelAuto = isBlankInput(this.level) || ((_a = this.level) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
669
|
+
let entryValue = isLevelAuto && ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedLevel) ? this.datasetMeta.suggestedLevel : this.level;
|
|
670
|
+
const isOrderAuto = ((_c = this.order) === null || _c === void 0 ? void 0 : _c.trim().toLowerCase()) === "auto";
|
|
671
|
+
if (isBlankInput(this.order) || isOrderAuto) {
|
|
672
|
+
if ((_d = this.datasetMeta) === null || _d === void 0 ? void 0 : _d.suggestedLevel) {
|
|
673
|
+
if (!isOrderAuto) {
|
|
674
|
+
this.errors.addOrReplace({
|
|
675
|
+
id: "AUTO_order",
|
|
676
|
+
type: "warning",
|
|
677
|
+
message: `order: not set, auto-detected: ${entryValue}`,
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
else {
|
|
681
|
+
this.errors.remove("AUTO_order");
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
this.errors.remove("AUTO_order");
|
|
687
|
+
if (((_e = this.order) === null || _e === void 0 ? void 0 : _e.toLocaleLowerCase()) === "levelindex") {
|
|
688
|
+
entryValue += "Index";
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
const tableOrder = {
|
|
692
|
+
hierarchy: [OrderColumn[entryValue === null || entryValue === void 0 ? void 0 : entryValue.toUpperCase()]],
|
|
693
|
+
direction: OrderDirection[(_f = this.orderDirection) === null || _f === void 0 ? void 0 : _f.toUpperCase()],
|
|
694
|
+
};
|
|
695
|
+
return tableOrder;
|
|
696
|
+
}
|
|
697
|
+
prepareStyle() {
|
|
698
|
+
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
699
|
+
return this.componentStyle(($) => {
|
|
700
|
+
const baseFontSize = $["global"]["fontSizePx"];
|
|
701
|
+
const scaledFontSize = baseFontSize * effectiveFactor;
|
|
702
|
+
return {
|
|
703
|
+
scaleFactors: {
|
|
704
|
+
scenarioOffset: $["bn-chart-time"]["scaleFactors"]["scenarioOffset"],
|
|
705
|
+
scenarioLabelToColumn: $["bn-chart-time"]["scaleFactors"]["scenarioLabelToColumn"],
|
|
706
|
+
labelToColumn: 0.3,
|
|
707
|
+
labelToColum: $["bn-chart-time"]["scaleFactors"]["labelToColum"],
|
|
708
|
+
labelToAxis: $["bn-chart-time"]["scaleFactors"]["labelToAxis"],
|
|
709
|
+
needleWidth: $["bn-chart-time"]["scaleFactors"]["needleWidth"],
|
|
710
|
+
needleHeadWidth: $["bn-chart-time"]["scaleFactors"]["needleHeadWidth"],
|
|
711
|
+
columnWidth: $["bn-chart-time"]["scaleFactors"]["columnWidth"],
|
|
712
|
+
varianceAxisLineWidth: $["bn-chart-time"]["scaleFactors"]["varianceAxisLineWidth"],
|
|
713
|
+
axisLineWidth: $["bn-chart-time"]["scaleFactors"]["axisLineWidth"],
|
|
714
|
+
auxiliaryLineWidth: $["bn-chart-time"]["scaleFactors"]["auxiliaryLineWidth"],
|
|
715
|
+
scenarioLineWidth: $["bn-chart-time"]["scaleFactors"]["scenarioLineWidth"],
|
|
716
|
+
markerWidth: $["bn-chart-time"]["scaleFactors"]["markerWidth"],
|
|
717
|
+
markerOffset: $["bn-chart-time"]["scaleFactors"]["markerOffset"],
|
|
718
|
+
categoryWidth: $["bn-chart-time"]["scaleFactors"]["categoryWidth"],
|
|
719
|
+
axisTickLength: $["bn-chart-time"]["scaleFactors"]["axisTickLength"],
|
|
720
|
+
},
|
|
721
|
+
fontStyles: {
|
|
722
|
+
font: `${scaledFontSize}px ${$["global"]["fontFamily"]}`,
|
|
723
|
+
size: scaledFontSize,
|
|
724
|
+
color: $["global"]["fontColor"],
|
|
725
|
+
background: $["global"]["fontBackgroundColor"],
|
|
726
|
+
leading: 1.8,
|
|
727
|
+
},
|
|
728
|
+
axisStyles: $["bn-chart-time"]["axisStyles"],
|
|
729
|
+
barStyles: $["bn-chart-time"]["barStyles"],
|
|
730
|
+
varianceStyles: $["bn-chart-time"]["varianceStyles"],
|
|
731
|
+
padding: $["bn-chart-time"]["padding"],
|
|
732
|
+
pattern: null,
|
|
733
|
+
};
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
prepareLeftSideOffset(preparedI18n, preparedStyle) {
|
|
737
|
+
if (this.syncSpaceLeft > -1) {
|
|
738
|
+
return this.syncSpaceLeft;
|
|
739
|
+
}
|
|
740
|
+
const leftSideOffset = Formatter.getMaxWidthOfArrayItems([...this.prepareVariances(), ...this.prepareScenarios(), this.chartTitle], preparedI18n, preparedStyle);
|
|
741
|
+
//if(leftSideOffset < this.syncSpaceLeft) {
|
|
742
|
+
// return this.syncSpaceLeft;
|
|
743
|
+
//}
|
|
744
|
+
return leftSideOffset;
|
|
745
|
+
}
|
|
746
|
+
prepareChartTitle(idx) {
|
|
747
|
+
if (idx >= 1) {
|
|
748
|
+
return "";
|
|
749
|
+
}
|
|
750
|
+
return this.chartTitle;
|
|
751
|
+
}
|
|
752
|
+
prepareLimit() {
|
|
753
|
+
return Math.floor(Number(this.limit) || 0);
|
|
754
|
+
}
|
|
755
|
+
prepareDateInterval() {
|
|
756
|
+
var _a, _b, _c;
|
|
757
|
+
const isAuto = ((_a = this.dateInterval) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
758
|
+
if (isBlankInput(this.dateInterval) || isAuto) {
|
|
759
|
+
if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedDateInterval) {
|
|
760
|
+
if (!isAuto) {
|
|
761
|
+
this.errors.addOrReplace({
|
|
762
|
+
id: "AUTO_dateInterval",
|
|
763
|
+
type: "warning",
|
|
764
|
+
message: `dateInterval: not set, auto-detected: ${this.datasetMeta.suggestedDateInterval}`,
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
768
|
+
this.errors.remove("AUTO_dateInterval");
|
|
769
|
+
}
|
|
770
|
+
return DateDistance[this.datasetMeta.suggestedDateInterval.toUpperCase()];
|
|
771
|
+
}
|
|
772
|
+
return isAuto ? DateDistance.AUTO : undefined;
|
|
773
|
+
}
|
|
774
|
+
this.errors.remove("AUTO_dateInterval");
|
|
775
|
+
return DateDistance[(_c = this.dateInterval) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
|
|
776
|
+
}
|
|
777
|
+
prepareIntervalSpanLimit() {
|
|
778
|
+
return this.intervalSpanLimit;
|
|
779
|
+
}
|
|
780
|
+
prepareAxisLabelsMode() {
|
|
781
|
+
var _a;
|
|
782
|
+
return AxisLabelsMode[(_a = this.axisLabelsMode) === null || _a === void 0 ? void 0 : _a.toUpperCase()];
|
|
783
|
+
}
|
|
784
|
+
prepareFilter() {
|
|
785
|
+
if (this.filter.length === 0) {
|
|
786
|
+
return "";
|
|
787
|
+
}
|
|
788
|
+
return this.filter;
|
|
789
|
+
}
|
|
790
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
791
|
+
getDataStructure() {
|
|
792
|
+
const dataSetStructure = {
|
|
793
|
+
ITimeChartDataRow: {
|
|
794
|
+
setName: { type: "string", isOptional: false, description: "" },
|
|
795
|
+
date: { type: "string", isOptional: false, description: "" },
|
|
796
|
+
operation: { type: "string", isOptional: false, description: "" },
|
|
797
|
+
rowGroup: { type: "string", isOptional: false, description: "" },
|
|
798
|
+
rowGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
799
|
+
category: { type: "string", isOptional: false, description: "" },
|
|
800
|
+
categoryIndex: { type: "number", isOptional: false, description: "" },
|
|
801
|
+
subCategory: { type: "string", isOptional: false, description: "" },
|
|
802
|
+
subCategoryIndex: { type: "number", isOptional: false, description: "" },
|
|
803
|
+
columnGroup: { type: "string", isOptional: false, description: "" },
|
|
804
|
+
columnGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
805
|
+
columnSubGroup: { type: "string", isOptional: false, description: "" },
|
|
806
|
+
columnSubGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
807
|
+
ac1: { type: "number", isOptional: false, description: "" },
|
|
808
|
+
ac2: { type: "number", isOptional: false, description: "" },
|
|
809
|
+
ac3: { type: "number", isOptional: false, description: "" },
|
|
810
|
+
ac4: { type: "number", isOptional: false, description: "" },
|
|
811
|
+
pp1: { type: "number", isOptional: false, description: "" },
|
|
812
|
+
pp2: { type: "number", isOptional: false, description: "" },
|
|
813
|
+
pp3: { type: "number", isOptional: false, description: "" },
|
|
814
|
+
pp4: { type: "number", isOptional: false, description: "" },
|
|
815
|
+
fc1: { type: "number", isOptional: false, description: "" },
|
|
816
|
+
fc2: { type: "number", isOptional: false, description: "" },
|
|
817
|
+
fc3: { type: "number", isOptional: false, description: "" },
|
|
818
|
+
fc4: { type: "number", isOptional: false, description: "" },
|
|
819
|
+
pl1: { type: "number", isOptional: false, description: "" },
|
|
820
|
+
pl2: { type: "number", isOptional: false, description: "" },
|
|
821
|
+
pl3: { type: "number", isOptional: false, description: "" },
|
|
822
|
+
pl4: { type: "number", isOptional: false, description: "" },
|
|
823
|
+
},
|
|
824
|
+
};
|
|
825
|
+
return dataSetStructure;
|
|
826
|
+
}
|
|
827
|
+
prepareMeasureScale() {
|
|
828
|
+
if (isBlankInput(this.measureScale)) {
|
|
829
|
+
return "GREATEST";
|
|
830
|
+
}
|
|
831
|
+
if (["_", "k", "M", "G", "T", "P", "E", "Z", "Y", "m", "μ", "n", "p", "P", "f", "a", "z", "y"].includes(this.measureScale.trim())) {
|
|
832
|
+
return this.measureScale.trim();
|
|
833
|
+
}
|
|
834
|
+
if (this.measureScale.trim().toUpperCase() === "LEAST") {
|
|
835
|
+
return this.measureScale.trim();
|
|
836
|
+
}
|
|
837
|
+
return "GREATEST";
|
|
838
|
+
}
|
|
839
|
+
prepareShowMeasureScale(idx) {
|
|
840
|
+
return idx === 0 && this.showMeasureScale === "true";
|
|
841
|
+
}
|
|
842
|
+
prepareMeasureUnit() {
|
|
843
|
+
if (this.measureUnit === "" || this.measureUnit == null) {
|
|
844
|
+
return "";
|
|
845
|
+
}
|
|
846
|
+
return this.measureUnit;
|
|
847
|
+
}
|
|
848
|
+
prepareStackConfig() {
|
|
849
|
+
if (isBlankInput(this.stack)) {
|
|
850
|
+
return null;
|
|
851
|
+
}
|
|
852
|
+
try {
|
|
853
|
+
const parsed = JSON.parse(this.stack);
|
|
854
|
+
return {
|
|
855
|
+
by: parsed.by,
|
|
856
|
+
mode: parsed.mode || StackMode.ABSOLUTE,
|
|
857
|
+
order: parsed.order || StackOrder.DATASET,
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
catch (_a) {
|
|
861
|
+
return null;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
prepareLineFullWidth() {
|
|
865
|
+
return this.lineFullWidth === "true";
|
|
866
|
+
}
|
|
867
|
+
prepareChartMode() {
|
|
868
|
+
var _a;
|
|
869
|
+
const mode = (_a = this.chartMode) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
870
|
+
if (mode === "line") {
|
|
871
|
+
return ChartMode.LINE;
|
|
872
|
+
}
|
|
873
|
+
else if (mode === "auto") {
|
|
874
|
+
return ChartMode.AUTO;
|
|
875
|
+
}
|
|
876
|
+
return ChartMode.BAR;
|
|
877
|
+
}
|
|
878
|
+
prepareMaxBars() {
|
|
879
|
+
return Math.floor(Number(this.maxBars) || 28);
|
|
880
|
+
}
|
|
881
|
+
chartTemplate(localScenarioString, idx) {
|
|
882
|
+
const preparedI18n = this.prepareI18n();
|
|
883
|
+
const preparedStyle = this.prepareStyle();
|
|
884
|
+
const fullParentWidth = getParentDimensions(this.element).width;
|
|
885
|
+
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
886
|
+
const ppu = this.preparePixelPerUnit();
|
|
887
|
+
const ppp = this.preparePixelPerPercentage();
|
|
888
|
+
return (h("ibcs-chart-time", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: this.prepareScenarios(), variances: [localScenarioString], hideAxisLabels: this.prepareHideAxisLabels(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), leftSideOffsetForHorizontalSync: this.prepareLeftSideOffset(preparedI18n, preparedStyle), styles: preparedStyle, i18n: preparedI18n, order: this.prepareOrder(), level: this.prepareLevel(), dateInterval: this.prepareDateInterval(), intervalSpanLimit: this.prepareIntervalSpanLimit(), axisLabelsMode: this.prepareAxisLabelsMode(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showOverlayAvg: this.prepareAvg(), showOverlayMedian: this.prepareMedian(), showMeasureScale: this.prepareShowMeasureScale(idx), chartMode: this.prepareChartMode(), maxBars: this.prepareMaxBars(), stackConfig: this.prepareStackConfig(), lineFullWidth: this.prepareLineFullWidth(), containerWidth: fullParentWidth, parentDimensions: this.prepareDimension() }));
|
|
889
|
+
}
|
|
890
|
+
getEffectiveScaleFactor() {
|
|
891
|
+
const { mode, factor } = parseScaling(this.scale);
|
|
892
|
+
if (mode === "factor")
|
|
893
|
+
return factor;
|
|
894
|
+
if (mode === "auto" || mode === "empty")
|
|
895
|
+
return this.appliedScaleFactor;
|
|
896
|
+
return 1;
|
|
897
|
+
}
|
|
898
|
+
getFontStyles() {
|
|
899
|
+
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
900
|
+
return this.componentStyle(($) => {
|
|
901
|
+
var _a, _b, _c, _d;
|
|
902
|
+
const baseFontSize = ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333;
|
|
903
|
+
return {
|
|
904
|
+
"--bn-font-family": ((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontFamily"]) || "'Noto Sans', sans-serif",
|
|
905
|
+
"--bn-font-size": `${baseFontSize * effectiveFactor}px`,
|
|
906
|
+
"--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
|
|
907
|
+
"--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
|
|
908
|
+
};
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
render() {
|
|
912
|
+
let scenariosArray = [""];
|
|
913
|
+
const variancesArray = this.prepareVariances();
|
|
914
|
+
if (variancesArray.length > 0) {
|
|
915
|
+
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
916
|
+
}
|
|
917
|
+
const fontStyles = this.getFontStyles();
|
|
918
|
+
return (h(Host, { key: 'b1fbfa70b5fda0078c06f5983e2defc9c603a96b', style: fontStyles }, h("div", { key: '96666d16869645a1bbe9382a019ac78534229e55', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
919
|
+
}
|
|
920
|
+
static get is() { return "bn-chart-time"; }
|
|
921
|
+
static get encapsulation() { return "shadow"; }
|
|
922
|
+
static get originalStyleUrls() {
|
|
923
|
+
return {
|
|
924
|
+
"$": ["bn-chart-time.scss"]
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
static get styleUrls() {
|
|
928
|
+
return {
|
|
929
|
+
"$": ["bn-chart-time.css"]
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
static get properties() {
|
|
933
|
+
return {
|
|
934
|
+
"chartTitle": {
|
|
935
|
+
"type": "string",
|
|
936
|
+
"mutable": false,
|
|
937
|
+
"complexType": {
|
|
938
|
+
"original": "string",
|
|
939
|
+
"resolved": "string",
|
|
940
|
+
"references": {}
|
|
941
|
+
},
|
|
942
|
+
"required": false,
|
|
943
|
+
"optional": false,
|
|
944
|
+
"docs": {
|
|
945
|
+
"tags": [],
|
|
946
|
+
"text": "Custom chart title"
|
|
947
|
+
},
|
|
948
|
+
"getter": false,
|
|
949
|
+
"setter": false,
|
|
950
|
+
"reflect": false,
|
|
951
|
+
"attribute": "chart-title",
|
|
952
|
+
"defaultValue": "\"\""
|
|
953
|
+
},
|
|
954
|
+
"filter": {
|
|
955
|
+
"type": "string",
|
|
956
|
+
"mutable": false,
|
|
957
|
+
"complexType": {
|
|
958
|
+
"original": "string",
|
|
959
|
+
"resolved": "string",
|
|
960
|
+
"references": {}
|
|
961
|
+
},
|
|
962
|
+
"required": false,
|
|
963
|
+
"optional": false,
|
|
964
|
+
"docs": {
|
|
965
|
+
"tags": [],
|
|
966
|
+
"text": "AlaSQL WHERE clause fragment injected into the data query to filter\nrows before rendering (e.g. `\"rowGroup = 'Revenue'\"`)."
|
|
967
|
+
},
|
|
968
|
+
"getter": false,
|
|
969
|
+
"setter": false,
|
|
970
|
+
"reflect": false,
|
|
971
|
+
"attribute": "filter",
|
|
972
|
+
"defaultValue": "\"\""
|
|
973
|
+
},
|
|
974
|
+
"scenarios": {
|
|
975
|
+
"type": "string",
|
|
976
|
+
"mutable": false,
|
|
977
|
+
"complexType": {
|
|
978
|
+
"original": "string",
|
|
979
|
+
"resolved": "string",
|
|
980
|
+
"references": {}
|
|
981
|
+
},
|
|
982
|
+
"required": true,
|
|
983
|
+
"optional": false,
|
|
984
|
+
"docs": {
|
|
985
|
+
"tags": [],
|
|
986
|
+
"text": "List of Scenarios Map.\n<br /> <br />\nper chart there are up to 4 different scenarios supported.\nThe first 4 scenarios in the list are used, the rest ignored.\n\n<br /> <br />\n values:<br /> ```ac // fc // pp // pl [1-4] // auto```\n example:<br /> ```ac1,ac2,ac3,ac4```\n<br /> <br />\n When set to ```auto```, scenarios are detected from the dataset silently.\n When left blank, scenarios are detected from the dataset with a warning."
|
|
987
|
+
},
|
|
988
|
+
"getter": false,
|
|
989
|
+
"setter": false,
|
|
990
|
+
"reflect": false,
|
|
991
|
+
"attribute": "scenarios"
|
|
992
|
+
},
|
|
993
|
+
"variances": {
|
|
994
|
+
"type": "string",
|
|
995
|
+
"mutable": false,
|
|
996
|
+
"complexType": {
|
|
997
|
+
"original": "string",
|
|
998
|
+
"resolved": "string",
|
|
999
|
+
"references": {}
|
|
1000
|
+
},
|
|
1001
|
+
"required": true,
|
|
1002
|
+
"optional": false,
|
|
1003
|
+
"docs": {
|
|
1004
|
+
"tags": [],
|
|
1005
|
+
"text": "List of Variance Map.\n<br /> <br />\n Variance chart can be added by seperating the scenarios\n of each chart with ```;```<br />\n The additonal variances which\n are calculated form the given scenarios.\n the scenarios used in the variances have also\n be defined in the *scenarios* property.\n<br /> <br />\n the variance is defiend as (Scenario A - ScenarioB)\n neu. neg and pos post fix defines which value is *good*\n a negative or a positive value.\n<br /> <br />\n if empty variance charts are hidden\n<br /> <br />\n each variance creates a chart\n<br /> <br />\n pattern:<br /> ```d<scenarioB>_<scenarioA>_[pos/neg/neu]```\n\n example: <br />```'dpp1_ac1_neg,dfc1_ac1_neg'```"
|
|
1006
|
+
},
|
|
1007
|
+
"getter": false,
|
|
1008
|
+
"setter": false,
|
|
1009
|
+
"reflect": false,
|
|
1010
|
+
"attribute": "variances"
|
|
1011
|
+
},
|
|
1012
|
+
"syncSpaceLeft": {
|
|
1013
|
+
"type": "number",
|
|
1014
|
+
"mutable": false,
|
|
1015
|
+
"complexType": {
|
|
1016
|
+
"original": "number",
|
|
1017
|
+
"resolved": "number",
|
|
1018
|
+
"references": {}
|
|
1019
|
+
},
|
|
1020
|
+
"required": false,
|
|
1021
|
+
"optional": false,
|
|
1022
|
+
"docs": {
|
|
1023
|
+
"tags": [],
|
|
1024
|
+
"text": ""
|
|
1025
|
+
},
|
|
1026
|
+
"getter": false,
|
|
1027
|
+
"setter": false,
|
|
1028
|
+
"reflect": false,
|
|
1029
|
+
"attribute": "sync-space-left",
|
|
1030
|
+
"defaultValue": "-1"
|
|
1031
|
+
},
|
|
1032
|
+
"limit": {
|
|
1033
|
+
"type": "number",
|
|
1034
|
+
"mutable": false,
|
|
1035
|
+
"complexType": {
|
|
1036
|
+
"original": "number",
|
|
1037
|
+
"resolved": "number",
|
|
1038
|
+
"references": {}
|
|
1039
|
+
},
|
|
1040
|
+
"required": false,
|
|
1041
|
+
"optional": false,
|
|
1042
|
+
"docs": {
|
|
1043
|
+
"tags": [],
|
|
1044
|
+
"text": "Set the maximum number of columns stacks The value 0 means *no limit*\n<br /><br />\n\ncolumns stacks wich where cut by the limit are cumulated as REST"
|
|
1045
|
+
},
|
|
1046
|
+
"getter": false,
|
|
1047
|
+
"setter": false,
|
|
1048
|
+
"reflect": false,
|
|
1049
|
+
"attribute": "limit",
|
|
1050
|
+
"defaultValue": "0"
|
|
1051
|
+
},
|
|
1052
|
+
"unitScaling": {
|
|
1053
|
+
"type": "any",
|
|
1054
|
+
"mutable": false,
|
|
1055
|
+
"complexType": {
|
|
1056
|
+
"original": "string | number",
|
|
1057
|
+
"resolved": "number | string",
|
|
1058
|
+
"references": {}
|
|
1059
|
+
},
|
|
1060
|
+
"required": true,
|
|
1061
|
+
"optional": false,
|
|
1062
|
+
"docs": {
|
|
1063
|
+
"tags": [],
|
|
1064
|
+
"text": "Name of the 'scaling-group' which the chart uses\nscaling groups are maintained globally\n<br /> <br />\nalternatively a number which represent the\npixel per measure unit."
|
|
1065
|
+
},
|
|
1066
|
+
"getter": false,
|
|
1067
|
+
"setter": false,
|
|
1068
|
+
"reflect": false,
|
|
1069
|
+
"attribute": "unit-scaling"
|
|
1070
|
+
},
|
|
1071
|
+
"percentageScaling": {
|
|
1072
|
+
"type": "any",
|
|
1073
|
+
"mutable": false,
|
|
1074
|
+
"complexType": {
|
|
1075
|
+
"original": "string | number",
|
|
1076
|
+
"resolved": "number | string",
|
|
1077
|
+
"references": {}
|
|
1078
|
+
},
|
|
1079
|
+
"required": true,
|
|
1080
|
+
"optional": false,
|
|
1081
|
+
"docs": {
|
|
1082
|
+
"tags": [],
|
|
1083
|
+
"text": "Name of the 'scaling-group' which the chart uses\nscaling groups are maintained globally\n<br /> <br />\nalternatively a number which represent the\npixel per percentage."
|
|
1084
|
+
},
|
|
1085
|
+
"getter": false,
|
|
1086
|
+
"setter": false,
|
|
1087
|
+
"reflect": false,
|
|
1088
|
+
"attribute": "percentage-scaling"
|
|
1089
|
+
},
|
|
1090
|
+
"level": {
|
|
1091
|
+
"type": "string",
|
|
1092
|
+
"mutable": false,
|
|
1093
|
+
"complexType": {
|
|
1094
|
+
"original": "string",
|
|
1095
|
+
"resolved": "string",
|
|
1096
|
+
"references": {}
|
|
1097
|
+
},
|
|
1098
|
+
"required": true,
|
|
1099
|
+
"optional": false,
|
|
1100
|
+
"docs": {
|
|
1101
|
+
"tags": [],
|
|
1102
|
+
"text": "Determines level on which the chart is aggregated on.\n<br /> <br />\n\nvalues:<br/>\n``` rowcategory // category // subcategory // auto```\n<br /> <br />\n When set to ```auto```, level is detected from the dataset silently.\n When left blank, level is detected from the dataset with a warning."
|
|
1103
|
+
},
|
|
1104
|
+
"getter": false,
|
|
1105
|
+
"setter": false,
|
|
1106
|
+
"reflect": false,
|
|
1107
|
+
"attribute": "level"
|
|
1108
|
+
},
|
|
1109
|
+
"order": {
|
|
1110
|
+
"type": "string",
|
|
1111
|
+
"mutable": false,
|
|
1112
|
+
"complexType": {
|
|
1113
|
+
"original": "string",
|
|
1114
|
+
"resolved": "string",
|
|
1115
|
+
"references": {}
|
|
1116
|
+
},
|
|
1117
|
+
"required": true,
|
|
1118
|
+
"optional": false,
|
|
1119
|
+
"docs": {
|
|
1120
|
+
"tags": [],
|
|
1121
|
+
"text": "List of the primary scenarios on which the order direction are applied valid scenarios are\nIf order is set to a scenario it has also exists in scenariolist\n<br /><br />\nvalues:<br />\n``` category // categoryindex // rowgroup // rowgroup // rowgroupindex // ac[1-4] // fc[1-4] // py[1-4] // pl[1-4] // auto```\n<br /><br />\nWhen set to ```auto```, order is detected from the dataset silently.\nWhen left blank, order is detected from the dataset with a warning."
|
|
1122
|
+
},
|
|
1123
|
+
"getter": false,
|
|
1124
|
+
"setter": false,
|
|
1125
|
+
"reflect": false,
|
|
1126
|
+
"attribute": "order"
|
|
1127
|
+
},
|
|
1128
|
+
"orderDirection": {
|
|
1129
|
+
"type": "string",
|
|
1130
|
+
"mutable": false,
|
|
1131
|
+
"complexType": {
|
|
1132
|
+
"original": "string",
|
|
1133
|
+
"resolved": "string",
|
|
1134
|
+
"references": {}
|
|
1135
|
+
},
|
|
1136
|
+
"required": true,
|
|
1137
|
+
"optional": false,
|
|
1138
|
+
"docs": {
|
|
1139
|
+
"tags": [],
|
|
1140
|
+
"text": "set sorting order direction\n<br /><br />\nvalues:<br />\n```asc // desc```"
|
|
1141
|
+
},
|
|
1142
|
+
"getter": false,
|
|
1143
|
+
"setter": false,
|
|
1144
|
+
"reflect": false,
|
|
1145
|
+
"attribute": "order-direction"
|
|
1146
|
+
},
|
|
1147
|
+
"dateInterval": {
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"mutable": false,
|
|
1150
|
+
"complexType": {
|
|
1151
|
+
"original": "string",
|
|
1152
|
+
"resolved": "string",
|
|
1153
|
+
"references": {}
|
|
1154
|
+
},
|
|
1155
|
+
"required": true,
|
|
1156
|
+
"optional": false,
|
|
1157
|
+
"docs": {
|
|
1158
|
+
"tags": [],
|
|
1159
|
+
"text": "Axis Date Interval\n<br /><br />\nvalues:<br />\n```year // quarter // month // week // day // hour // minute // second // millisecond // auto```\n<br /><br />\nWhen set to ```auto```, dateInterval is detected from the dataset silently.\nWhen left blank, dateInterval is detected from the dataset with a warning."
|
|
1160
|
+
},
|
|
1161
|
+
"getter": false,
|
|
1162
|
+
"setter": false,
|
|
1163
|
+
"reflect": false,
|
|
1164
|
+
"attribute": "date-interval"
|
|
1165
|
+
},
|
|
1166
|
+
"chartMode": {
|
|
1167
|
+
"type": "string",
|
|
1168
|
+
"mutable": false,
|
|
1169
|
+
"complexType": {
|
|
1170
|
+
"original": "string",
|
|
1171
|
+
"resolved": "string",
|
|
1172
|
+
"references": {}
|
|
1173
|
+
},
|
|
1174
|
+
"required": false,
|
|
1175
|
+
"optional": false,
|
|
1176
|
+
"docs": {
|
|
1177
|
+
"tags": [],
|
|
1178
|
+
"text": "Chart Mode - controls how the chart is rendered\n<br /><br />\nvalues:<br />\n```bar // line // auto```\n<br /><br />\nWhen set to 'auto', the chart will switch to line mode\nwhen the number of data points exceeds maxBars."
|
|
1179
|
+
},
|
|
1180
|
+
"getter": false,
|
|
1181
|
+
"setter": false,
|
|
1182
|
+
"reflect": false,
|
|
1183
|
+
"attribute": "chart-mode",
|
|
1184
|
+
"defaultValue": "\"bar\""
|
|
1185
|
+
},
|
|
1186
|
+
"maxBars": {
|
|
1187
|
+
"type": "number",
|
|
1188
|
+
"mutable": false,
|
|
1189
|
+
"complexType": {
|
|
1190
|
+
"original": "number",
|
|
1191
|
+
"resolved": "number",
|
|
1192
|
+
"references": {}
|
|
1193
|
+
},
|
|
1194
|
+
"required": false,
|
|
1195
|
+
"optional": false,
|
|
1196
|
+
"docs": {
|
|
1197
|
+
"tags": [],
|
|
1198
|
+
"text": "Max Bars - threshold for auto-switching to line mode\n<br /><br />\nWhen chartMode is set to 'auto' and the number of data points\nexceeds this value, the chart will render as a line chart."
|
|
1199
|
+
},
|
|
1200
|
+
"getter": false,
|
|
1201
|
+
"setter": false,
|
|
1202
|
+
"reflect": false,
|
|
1203
|
+
"attribute": "max-bars",
|
|
1204
|
+
"defaultValue": "28"
|
|
1205
|
+
},
|
|
1206
|
+
"stack": {
|
|
1207
|
+
"type": "string",
|
|
1208
|
+
"mutable": false,
|
|
1209
|
+
"complexType": {
|
|
1210
|
+
"original": "string",
|
|
1211
|
+
"resolved": "string",
|
|
1212
|
+
"references": {}
|
|
1213
|
+
},
|
|
1214
|
+
"required": false,
|
|
1215
|
+
"optional": false,
|
|
1216
|
+
"docs": {
|
|
1217
|
+
"tags": [{
|
|
1218
|
+
"name": "default",
|
|
1219
|
+
"text": "'' (empty \u2014 no stacking)"
|
|
1220
|
+
}, {
|
|
1221
|
+
"name": "example",
|
|
1222
|
+
"text": "// Stack scenarios\nstack='{\"by\":\"scenario\"}'"
|
|
1223
|
+
}, {
|
|
1224
|
+
"name": "example",
|
|
1225
|
+
"text": "// Stack by category, relative mode\nstack='{\"by\":\"category\",\"mode\":\"relative\"}'"
|
|
1226
|
+
}],
|
|
1227
|
+
"text": "Stacking configuration for the chart as a JSON string.\n\nWhen set, bars/columns are drawn stacked (additive layers) instead of\nside-by-side. In line mode (`chart-mode=\"line\"`), stacking produces a\nstacked area chart with filled regions between cumulative lines.\n\n**JSON schema:**\n```json\n{\n \"by\": \"scenario\" | \"category\" | \"subcategory\" | \"rowgroup\",\n \"mode\": \"absolute\" | \"relative\" | \"absolute-relative\",\n \"order\": \"asc\" | \"desc\" | \"dataset\"\n}\n```\n\n- `by` (required): The dimension to stack.\n - `\"scenario\"` \u2014 stack the scenarios from the `scenarios` prop as layers.\n - `\"category\"` / `\"subcategory\"` / `\"rowgroup\"` \u2014 decompose a single\n scenario by this data dimension. Must be finer than `level`.\n- `mode` (optional, default `\"absolute\"`):\n - `\"absolute\"` \u2014 additive stacking, axis shows absolute units.\n - `\"relative\"` \u2014 100% stacking, axis shows 0%\u2013100%.\n - `\"absolute-relative\"` \u2014 bar height is absolute (real value), but\n segment labels inside show percentages.\n- `order` (optional, default `\"dataset\"`): Segment order within each stack.\n `\"asc\"` / `\"desc\"` sort segments by value; `\"dataset\"` preserves the\n original data/scenario order."
|
|
1228
|
+
},
|
|
1229
|
+
"getter": false,
|
|
1230
|
+
"setter": false,
|
|
1231
|
+
"reflect": false,
|
|
1232
|
+
"attribute": "stack",
|
|
1233
|
+
"defaultValue": "\"\""
|
|
1234
|
+
},
|
|
1235
|
+
"scale": {
|
|
1236
|
+
"type": "string",
|
|
1237
|
+
"mutable": false,
|
|
1238
|
+
"complexType": {
|
|
1239
|
+
"original": "string",
|
|
1240
|
+
"resolved": "string",
|
|
1241
|
+
"references": {}
|
|
1242
|
+
},
|
|
1243
|
+
"required": false,
|
|
1244
|
+
"optional": true,
|
|
1245
|
+
"docs": {
|
|
1246
|
+
"tags": [],
|
|
1247
|
+
"text": "Controls proportional scaling of the chart to fit the available parent width.\n\n| Value | Behavior |\n|---------------------|-----------------------------------------------------------------------------------|\n| not set / `\"\"` | Auto-scale to fit parent width; emit `AUTO_scale` warning with the applied factor |\n| `\"none\"` | No scaling (render at base font size regardless of available space) |\n| `\"auto\"` | Auto-scale to fit parent width silently (no warning) |\n| `\"0.5\"`, `\"1.2\"`, \u2026 | Fixed factor \u2014 apply `baseFontSize \u00D7 factor` |"
|
|
1248
|
+
},
|
|
1249
|
+
"getter": false,
|
|
1250
|
+
"setter": false,
|
|
1251
|
+
"reflect": false,
|
|
1252
|
+
"attribute": "scale"
|
|
1253
|
+
},
|
|
1254
|
+
"intervalSpanLimit": {
|
|
1255
|
+
"type": "number",
|
|
1256
|
+
"mutable": false,
|
|
1257
|
+
"complexType": {
|
|
1258
|
+
"original": "number",
|
|
1259
|
+
"resolved": "number",
|
|
1260
|
+
"references": {}
|
|
1261
|
+
},
|
|
1262
|
+
"required": false,
|
|
1263
|
+
"optional": false,
|
|
1264
|
+
"docs": {
|
|
1265
|
+
"tags": [],
|
|
1266
|
+
"text": "Max number of collumns\nis used to calculate Axis Date Interval (if dateInterval is set to AUTO)"
|
|
1267
|
+
},
|
|
1268
|
+
"getter": false,
|
|
1269
|
+
"setter": false,
|
|
1270
|
+
"reflect": false,
|
|
1271
|
+
"attribute": "interval-span-limit",
|
|
1272
|
+
"defaultValue": "28"
|
|
1273
|
+
},
|
|
1274
|
+
"axisLabelsMode": {
|
|
1275
|
+
"type": "string",
|
|
1276
|
+
"mutable": false,
|
|
1277
|
+
"complexType": {
|
|
1278
|
+
"original": "string",
|
|
1279
|
+
"resolved": "string",
|
|
1280
|
+
"references": {}
|
|
1281
|
+
},
|
|
1282
|
+
"required": true,
|
|
1283
|
+
"optional": false,
|
|
1284
|
+
"docs": {
|
|
1285
|
+
"tags": [],
|
|
1286
|
+
"text": "Axis Labels Mode defines in which mode the labels are rendered.\nlong, and short mode uses the long an short styles for the date\nsmart only displays relevant information if a change/ transition occured\n(eg. only on 1.Jan the year is displayed)\n<br /><br />\nvalues:<br />\n```smart // long // short```"
|
|
1287
|
+
},
|
|
1288
|
+
"getter": false,
|
|
1289
|
+
"setter": false,
|
|
1290
|
+
"reflect": false,
|
|
1291
|
+
"attribute": "axis-labels-mode"
|
|
1292
|
+
},
|
|
1293
|
+
"lineFullWidth": {
|
|
1294
|
+
"type": "string",
|
|
1295
|
+
"mutable": false,
|
|
1296
|
+
"complexType": {
|
|
1297
|
+
"original": "string",
|
|
1298
|
+
"resolved": "string",
|
|
1299
|
+
"references": {}
|
|
1300
|
+
},
|
|
1301
|
+
"required": false,
|
|
1302
|
+
"optional": false,
|
|
1303
|
+
"docs": {
|
|
1304
|
+
"tags": [],
|
|
1305
|
+
"text": "When true (default), line charts stretch to fill the full parent width\ninstead of using fixed per-data-point spacing.\nHas no effect in bar mode.\n<br /><br />\nvalues:<br />\n```true // false```"
|
|
1306
|
+
},
|
|
1307
|
+
"getter": false,
|
|
1308
|
+
"setter": false,
|
|
1309
|
+
"reflect": false,
|
|
1310
|
+
"attribute": "line-full-width",
|
|
1311
|
+
"defaultValue": "\"true\""
|
|
1312
|
+
},
|
|
1313
|
+
"showCategories": {
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"mutable": false,
|
|
1316
|
+
"complexType": {
|
|
1317
|
+
"original": "string",
|
|
1318
|
+
"resolved": "string",
|
|
1319
|
+
"references": {}
|
|
1320
|
+
},
|
|
1321
|
+
"required": false,
|
|
1322
|
+
"optional": false,
|
|
1323
|
+
"docs": {
|
|
1324
|
+
"tags": [],
|
|
1325
|
+
"text": ""
|
|
1326
|
+
},
|
|
1327
|
+
"getter": false,
|
|
1328
|
+
"setter": false,
|
|
1329
|
+
"reflect": false,
|
|
1330
|
+
"attribute": "show-categories",
|
|
1331
|
+
"defaultValue": "\"true\""
|
|
1332
|
+
},
|
|
1333
|
+
"measureScale": {
|
|
1334
|
+
"type": "string",
|
|
1335
|
+
"mutable": false,
|
|
1336
|
+
"complexType": {
|
|
1337
|
+
"original": "string",
|
|
1338
|
+
"resolved": "string",
|
|
1339
|
+
"references": {}
|
|
1340
|
+
},
|
|
1341
|
+
"required": false,
|
|
1342
|
+
"optional": false,
|
|
1343
|
+
"docs": {
|
|
1344
|
+
"tags": [],
|
|
1345
|
+
"text": "Sets the SiPrefix of the Mesaurements and converts the\noriginal value.\n<br /><br />\nvalues: <br />\n```_ // k // M // G // T // P // E // Z // Y // m // \u03BC // n // p // P // f // a // z // y // GREATEST // LEAST```\n<br /><br />\nSiPrefix overview:\n``` \"Y\": 1E+24,```<br />\n``` \"Z\": 1E+21,```<br />\n``` \"E\": 1E+18,```<br />\n``` \"P\": 1E+15,```<br />\n``` \"T\": 1E+12,```<br />\n``` \"G\": 1000000000,```<br />\n``` \"M\": 1000000,```<br />\n``` \"k\": 1000,```<br />\n<br />\n``` \"m\": 0.001,```<br />\n``` \"\u03BC\": 0.000001,```<br />\n``` \"n\": 0.000000001,```<br />\n``` \"p\": 0.000000000001,```<br />\n``` \"f\": 0.000000000000001,```<br />\n``` \"a\": 0.000000000000000001,```<br />\n``` \"z\": 0.000000000000000000001,```<br />\n``` \"y\": 0.000000000000000000000001,```<br />\n<br /><br />\nSpecial modes:\n```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />\n```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />\n<br /><br />\n```_``` is the value for no SiPrefix the value is displayed as in the dataset stored."
|
|
1346
|
+
},
|
|
1347
|
+
"getter": false,
|
|
1348
|
+
"setter": false,
|
|
1349
|
+
"reflect": false,
|
|
1350
|
+
"attribute": "measure-scale",
|
|
1351
|
+
"defaultValue": "\"greatest\""
|
|
1352
|
+
},
|
|
1353
|
+
"showMeasureScale": {
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
"mutable": false,
|
|
1356
|
+
"complexType": {
|
|
1357
|
+
"original": "string",
|
|
1358
|
+
"resolved": "string",
|
|
1359
|
+
"references": {}
|
|
1360
|
+
},
|
|
1361
|
+
"required": false,
|
|
1362
|
+
"optional": false,
|
|
1363
|
+
"docs": {
|
|
1364
|
+
"tags": [],
|
|
1365
|
+
"text": "Toggles display of measure units in table header\n<br /><br />\nvalues: <br />\n```true // false```"
|
|
1366
|
+
},
|
|
1367
|
+
"getter": false,
|
|
1368
|
+
"setter": false,
|
|
1369
|
+
"reflect": false,
|
|
1370
|
+
"attribute": "show-measure-scale",
|
|
1371
|
+
"defaultValue": "\"false\""
|
|
1372
|
+
},
|
|
1373
|
+
"showOverlayAvg": {
|
|
1374
|
+
"type": "string",
|
|
1375
|
+
"mutable": false,
|
|
1376
|
+
"complexType": {
|
|
1377
|
+
"original": "string",
|
|
1378
|
+
"resolved": "string",
|
|
1379
|
+
"references": {}
|
|
1380
|
+
},
|
|
1381
|
+
"required": false,
|
|
1382
|
+
"optional": false,
|
|
1383
|
+
"docs": {
|
|
1384
|
+
"tags": [],
|
|
1385
|
+
"text": ""
|
|
1386
|
+
},
|
|
1387
|
+
"getter": false,
|
|
1388
|
+
"setter": false,
|
|
1389
|
+
"reflect": false,
|
|
1390
|
+
"attribute": "show-overlay-avg",
|
|
1391
|
+
"defaultValue": "\"true\""
|
|
1392
|
+
},
|
|
1393
|
+
"showOverlayMedian": {
|
|
1394
|
+
"type": "string",
|
|
1395
|
+
"mutable": false,
|
|
1396
|
+
"complexType": {
|
|
1397
|
+
"original": "string",
|
|
1398
|
+
"resolved": "string",
|
|
1399
|
+
"references": {}
|
|
1400
|
+
},
|
|
1401
|
+
"required": false,
|
|
1402
|
+
"optional": false,
|
|
1403
|
+
"docs": {
|
|
1404
|
+
"tags": [],
|
|
1405
|
+
"text": ""
|
|
1406
|
+
},
|
|
1407
|
+
"getter": false,
|
|
1408
|
+
"setter": false,
|
|
1409
|
+
"reflect": false,
|
|
1410
|
+
"attribute": "show-overlay-median",
|
|
1411
|
+
"defaultValue": "\"false\""
|
|
1412
|
+
},
|
|
1413
|
+
"measureUnit": {
|
|
1414
|
+
"type": "string",
|
|
1415
|
+
"mutable": false,
|
|
1416
|
+
"complexType": {
|
|
1417
|
+
"original": "string",
|
|
1418
|
+
"resolved": "string",
|
|
1419
|
+
"references": {}
|
|
1420
|
+
},
|
|
1421
|
+
"required": false,
|
|
1422
|
+
"optional": false,
|
|
1423
|
+
"docs": {
|
|
1424
|
+
"tags": [],
|
|
1425
|
+
"text": "measureUnit displayed in table."
|
|
1426
|
+
},
|
|
1427
|
+
"getter": false,
|
|
1428
|
+
"setter": false,
|
|
1429
|
+
"reflect": false,
|
|
1430
|
+
"attribute": "measure-unit",
|
|
1431
|
+
"defaultValue": "\"\""
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
static get states() {
|
|
1436
|
+
return {
|
|
1437
|
+
"data": {},
|
|
1438
|
+
"datasetMeta": {},
|
|
1439
|
+
"appliedScaleFactor": {}
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
static get elementRef() { return "element"; }
|
|
1443
|
+
static get watchers() {
|
|
1444
|
+
return [{
|
|
1445
|
+
"propName": "scenarios",
|
|
1446
|
+
"methodName": "validateScenario"
|
|
1447
|
+
}, {
|
|
1448
|
+
"propName": "variances",
|
|
1449
|
+
"methodName": "validateVariances"
|
|
1450
|
+
}, {
|
|
1451
|
+
"propName": "syncSpaceLeft",
|
|
1452
|
+
"methodName": "validateLeftSync"
|
|
1453
|
+
}, {
|
|
1454
|
+
"propName": "limit",
|
|
1455
|
+
"methodName": "validateLimit"
|
|
1456
|
+
}, {
|
|
1457
|
+
"propName": "unitScaling",
|
|
1458
|
+
"methodName": "validateUnitScaling"
|
|
1459
|
+
}, {
|
|
1460
|
+
"propName": "percentageScaling",
|
|
1461
|
+
"methodName": "validatePercentageScaling"
|
|
1462
|
+
}, {
|
|
1463
|
+
"propName": "level",
|
|
1464
|
+
"methodName": "validateLevel"
|
|
1465
|
+
}, {
|
|
1466
|
+
"propName": "order",
|
|
1467
|
+
"methodName": "validateOrderList"
|
|
1468
|
+
}, {
|
|
1469
|
+
"propName": "orderDirection",
|
|
1470
|
+
"methodName": "validateOrderDirection"
|
|
1471
|
+
}, {
|
|
1472
|
+
"propName": "dateInterval",
|
|
1473
|
+
"methodName": "validateDateInterval"
|
|
1474
|
+
}, {
|
|
1475
|
+
"propName": "chartMode",
|
|
1476
|
+
"methodName": "validateChartMode"
|
|
1477
|
+
}, {
|
|
1478
|
+
"propName": "maxBars",
|
|
1479
|
+
"methodName": "validateMaxBars"
|
|
1480
|
+
}, {
|
|
1481
|
+
"propName": "stack",
|
|
1482
|
+
"methodName": "validateStack"
|
|
1483
|
+
}, {
|
|
1484
|
+
"propName": "scale",
|
|
1485
|
+
"methodName": "validateScaling"
|
|
1486
|
+
}, {
|
|
1487
|
+
"propName": "axisLabelsMode",
|
|
1488
|
+
"methodName": "validateAxisLabelsMode"
|
|
1489
|
+
}, {
|
|
1490
|
+
"propName": "lineFullWidth",
|
|
1491
|
+
"methodName": "validateLineFullWidth"
|
|
1492
|
+
}, {
|
|
1493
|
+
"propName": "showCategories",
|
|
1494
|
+
"methodName": "validateShowCategories"
|
|
1495
|
+
}, {
|
|
1496
|
+
"propName": "measureScale",
|
|
1497
|
+
"methodName": "validateMeasureScale"
|
|
1498
|
+
}, {
|
|
1499
|
+
"propName": "showMeasureScale",
|
|
1500
|
+
"methodName": "validateShowMeasureScale"
|
|
1501
|
+
}, {
|
|
1502
|
+
"propName": "showOverlayAvg",
|
|
1503
|
+
"methodName": "validateShowOverlayAvg"
|
|
1504
|
+
}, {
|
|
1505
|
+
"propName": "showOverlayMedian",
|
|
1506
|
+
"methodName": "validateShowOverlayMedian"
|
|
1507
|
+
}];
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
Chart.MAX_SCALE_ITERATIONS = 3;
|