@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,114 @@
|
|
|
1
|
+
import { TableRow } from "../elements";
|
|
2
|
+
import { TableType } from "../model";
|
|
3
|
+
import { TableDataRow } from "../model/TableDataRow";
|
|
4
|
+
import { TableComponentConfig } from "../model/TableComponentConfig";
|
|
5
|
+
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
6
|
+
/**
|
|
7
|
+
* Transforms raw query results into structured TableRow collections for header and body.
|
|
8
|
+
*
|
|
9
|
+
* Header normalization: prepends fixed columns (operation, category) to the configured
|
|
10
|
+
* scenarios, then translates labels via i18n and adds separator rows for IBCS-style borders.
|
|
11
|
+
*
|
|
12
|
+
* Body row creation: iterates DataQuery results grouped by rowGroup, creates detail rows
|
|
13
|
+
* with type-specific logic (GROUPHEAD, SUM, DRILLELEMENT, PARTELEMENT, ENTRY), and
|
|
14
|
+
* translates cell values/prefixes via i18n. Supports inline bar chart columns via
|
|
15
|
+
* columnStats calculation.
|
|
16
|
+
*/
|
|
17
|
+
export declare class TableDataSetFactory {
|
|
18
|
+
private normalizedHeader;
|
|
19
|
+
constructor();
|
|
20
|
+
/**
|
|
21
|
+
* Creates Tableheader based on the configured scenarios (in config)
|
|
22
|
+
* the created header is stored in the dataset json
|
|
23
|
+
* the lables are translated based on the used i18n map
|
|
24
|
+
* based on the structure of the scenarios 'spacer'coulumns are added, to
|
|
25
|
+
* visualise grouping.
|
|
26
|
+
* finally a seperator header row is created for the header underlining (border)
|
|
27
|
+
*/
|
|
28
|
+
createHeader(type: TableType, scenarios: readonly {
|
|
29
|
+
name: string;
|
|
30
|
+
group: string;
|
|
31
|
+
type: string;
|
|
32
|
+
order: string | undefined;
|
|
33
|
+
}[], i18n: Map<string | number, string>, measureScale: SiPrefix, measureUnit: string, showMeasureScale: boolean): TableRow[];
|
|
34
|
+
private setHeaderPrefix;
|
|
35
|
+
/**
|
|
36
|
+
* combines the default columnnames (operation and category) with the
|
|
37
|
+
* configured scenarios.
|
|
38
|
+
* depending of table type operation column is used (OPT) or not (SUM | LIST)
|
|
39
|
+
* in addition the headers are sorted based on the ruleset and duplicates are removed
|
|
40
|
+
*/
|
|
41
|
+
private normalizeHeader;
|
|
42
|
+
/**
|
|
43
|
+
* Creates table data colelction,
|
|
44
|
+
* eachh row consists of data columns and 'spacer' columns which are needed to seperate
|
|
45
|
+
* the columns correctyl (IBCS style)
|
|
46
|
+
*/
|
|
47
|
+
createBodyRows(config: TableComponentConfig, i18n: Map<string | number, string>, data: TableDataRow[]): TableRow[];
|
|
48
|
+
/**
|
|
49
|
+
* Calculate min/max statistics for bar chart columns across all query data.
|
|
50
|
+
*/
|
|
51
|
+
private calculateColumnStatistics;
|
|
52
|
+
/**
|
|
53
|
+
* Extract a numeric value from a row for a given column name.
|
|
54
|
+
* Handles the various naming conventions used in the table data.
|
|
55
|
+
*/
|
|
56
|
+
private extractColumnValue;
|
|
57
|
+
/**
|
|
58
|
+
* Helper funciton to generate a new Table Row,
|
|
59
|
+
* it calls itsself recursive if a drilldown is set by the config file.
|
|
60
|
+
* a drilldown is detected if there is a colection of rows in .drill
|
|
61
|
+
*
|
|
62
|
+
* @param i18nMode
|
|
63
|
+
* @param i18n
|
|
64
|
+
* @param scenariosUnitType
|
|
65
|
+
* @param groupData
|
|
66
|
+
* @param iGroupIndex
|
|
67
|
+
* @param iRowIndex
|
|
68
|
+
* @param categoryWidth
|
|
69
|
+
* @param measureScale
|
|
70
|
+
* @param barColumns
|
|
71
|
+
* @param columnStatsMap
|
|
72
|
+
*/
|
|
73
|
+
private createRow;
|
|
74
|
+
private getRawDataRowElement;
|
|
75
|
+
/**
|
|
76
|
+
* Crates a detail row depending on the radDataRow Type
|
|
77
|
+
* it switches between header, sum and standard,
|
|
78
|
+
*
|
|
79
|
+
* @param type valid values GROUPHEADER, SUM other values are interpreted as standard
|
|
80
|
+
* @param rowIndex
|
|
81
|
+
* @param groupIndex
|
|
82
|
+
* @param maxIndex total number of rows
|
|
83
|
+
*/
|
|
84
|
+
private createDetailRow;
|
|
85
|
+
/**
|
|
86
|
+
* Translates Cell-Value (value) if possible,
|
|
87
|
+
* Numbers are not translated, just category names,
|
|
88
|
+
* if it is a SUM ROW rowGroup is used
|
|
89
|
+
* if it is a variance in OPT mode the absolute value is used
|
|
90
|
+
*
|
|
91
|
+
* @param value
|
|
92
|
+
* @param rowGroup
|
|
93
|
+
* @param type
|
|
94
|
+
* @param scenario
|
|
95
|
+
* @param subCategory
|
|
96
|
+
*/
|
|
97
|
+
private translateSumCellLabel;
|
|
98
|
+
private isOperationColumn;
|
|
99
|
+
/**
|
|
100
|
+
* converts Scenario to CSS class
|
|
101
|
+
*
|
|
102
|
+
* @param scenario
|
|
103
|
+
* @param value
|
|
104
|
+
*/
|
|
105
|
+
private translateScenarioCSS;
|
|
106
|
+
private setCellType;
|
|
107
|
+
private isDrillElementCategory;
|
|
108
|
+
private isPartElementCategory;
|
|
109
|
+
private isSumElementCategory;
|
|
110
|
+
private isEntryCategory;
|
|
111
|
+
private isGroupHeadCategory;
|
|
112
|
+
private translateCellPrefix;
|
|
113
|
+
private createColumnType;
|
|
114
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ColumnStats } from "../elements/Cell";
|
|
2
|
+
import { DataQueryResultRow } from "../../../../utils/model/DataQueryResultRow";
|
|
3
|
+
/**
|
|
4
|
+
* Utility class to calculate min/max statistics per column for bar chart scaling.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ColumnStatistics {
|
|
7
|
+
/**
|
|
8
|
+
* Calculate min, max, and absMax for specified columns from query result data.
|
|
9
|
+
*
|
|
10
|
+
* @param data - Array of data rows from the query result
|
|
11
|
+
* @param columns - Array of column names to calculate statistics for
|
|
12
|
+
* @returns Map of column name to statistics
|
|
13
|
+
*/
|
|
14
|
+
calculate(data: DataQueryResultRow[][], columns: string[]): Map<string, ColumnStats>;
|
|
15
|
+
/**
|
|
16
|
+
* Extract the numeric value from a row for a given column.
|
|
17
|
+
* Handles both direct column access and the special naming conventions
|
|
18
|
+
* used in the table (e.g., "dr##ac1_pp1_pos").
|
|
19
|
+
*/
|
|
20
|
+
private extractValue;
|
|
21
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { TableComponentConfig } from "../model/TableComponentConfig";
|
|
2
|
+
import { TableDataRow } from "../model/TableDataRow";
|
|
3
|
+
import { DataQueryResultRow } from "../../../../utils/model/DataQueryResultRow";
|
|
4
|
+
/**
|
|
5
|
+
* AlaSQL-based query builder that produces the complete table result set for bn-table.
|
|
6
|
+
*
|
|
7
|
+
* Translates a {@link TableComponentConfig} into a series of SQL statements executed
|
|
8
|
+
* against in-memory data rows. The pipeline handles scenario aggregation, row/column
|
|
9
|
+
* grouping, drill-down expansion (thereof / partof), REST rows, sum rows, NaN detection,
|
|
10
|
+
* column-level drill columns, and relative variance calculation.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DataQuery {
|
|
13
|
+
private readonly config;
|
|
14
|
+
private hasPartOf;
|
|
15
|
+
private i18n;
|
|
16
|
+
constructor(config: TableComponentConfig, i18n: Map<string | number, string>);
|
|
17
|
+
/**
|
|
18
|
+
* Executes the full query pipeline and returns a segmented result set.
|
|
19
|
+
*
|
|
20
|
+
* Pipeline steps:
|
|
21
|
+
* 1. Translate scenario columns into SQL aggregation expressions
|
|
22
|
+
* 2. Run a meta query to discover row groups and their category counts
|
|
23
|
+
* 3. For each group: generate header row, data rows, REST overflow row, and group sum row
|
|
24
|
+
* 4. Append a total sum row (if table type requires it)
|
|
25
|
+
* 5. Execute all accumulated SQL statements against the input data
|
|
26
|
+
* 6. Detect NaN cells (aggregated cells with zero contributing rows)
|
|
27
|
+
* 7. Inject thereof/partof drill rows and column-level drill columns
|
|
28
|
+
* 8. Calculate REST columns (parent minus drilled children)
|
|
29
|
+
* 9. Divide absolute variances by their denominator to produce relative variances
|
|
30
|
+
*
|
|
31
|
+
* @returns Array of row-group segments; each segment is an array of result rows.
|
|
32
|
+
*/
|
|
33
|
+
execute(data: TableDataRow[]): DataQueryResultRow[][];
|
|
34
|
+
/**
|
|
35
|
+
* Marks aggregated cells as NaN when no source rows contributed to the sum.
|
|
36
|
+
*
|
|
37
|
+
* Without this step, SUM() over zero matching rows would produce 0, which is
|
|
38
|
+
* misleading -- it would be indistinguishable from an actual zero value.
|
|
39
|
+
* Each scenario column has a companion `_cnt` counter; when that counter is 0
|
|
40
|
+
* the cell is overwritten with NaN. For variance scenarios, both base and delta
|
|
41
|
+
* counters must be non-zero.
|
|
42
|
+
*/
|
|
43
|
+
detectNaNCells(scenarios: string[], res: DataQueryResultRow[][]): void;
|
|
44
|
+
/**
|
|
45
|
+
* Creates "part-of" drill rows that express each category's value as a fraction
|
|
46
|
+
* of its row group sum. Queries the drill subset, then divides each scenario
|
|
47
|
+
* value by the corresponding group sum to produce a percentage.
|
|
48
|
+
*/
|
|
49
|
+
createPartOfDrillRows(scenarios: string, order: [string, string], sumGroupQueries: string[], data: TableDataRow[], res: DataQueryResultRow[][]): void;
|
|
50
|
+
/**
|
|
51
|
+
* Generates a REST row that aggregates all data rows beyond the configured limit.
|
|
52
|
+
* Only emitted when a limit is set and the group has more rows than the limit.
|
|
53
|
+
*/
|
|
54
|
+
private createRestRow;
|
|
55
|
+
/** Generates the main data rows for a single row group, applying GROUP BY, ORDER, and LIMIT. */
|
|
56
|
+
private createDataRow;
|
|
57
|
+
/** Generates a GROUPHEAD row used as a visual header when row grouping is active. */
|
|
58
|
+
private createGroupHeaderRow;
|
|
59
|
+
/** Generates a GROUP_SUM row that aggregates all entries within a single row group. */
|
|
60
|
+
private createGroupSumRow;
|
|
61
|
+
/** Generates a total SUM row across all groups (only for SUM / OPT table types). */
|
|
62
|
+
private createTotalSumRow;
|
|
63
|
+
/**
|
|
64
|
+
* Manually merges drill rows that AlaSQL fails to aggregate correctly.
|
|
65
|
+
* Groups by composite key (rowNr + rowGroup + type + category) and sums scenario values.
|
|
66
|
+
*/
|
|
67
|
+
private reduceResDrillByCategoryGroups;
|
|
68
|
+
/**
|
|
69
|
+
* Inserts drill (thereof/partof) rows into the result set directly after their
|
|
70
|
+
* parent category row. Handles both grouped and ungrouped modes, disambiguating
|
|
71
|
+
* duplicate subCategory names by appending the rowGroup in parentheses.
|
|
72
|
+
*/
|
|
73
|
+
private injectDrillRowsToResultRows;
|
|
74
|
+
/**
|
|
75
|
+
* Creates "thereof" drill rows -- sub-breakdowns shown with absolute values
|
|
76
|
+
* beneath their parent category row. Each thereof config entry produces a
|
|
77
|
+
* filtered/grouped SQL query whose results are spliced into the result set.
|
|
78
|
+
*/
|
|
79
|
+
private createThereOfDrillRows;
|
|
80
|
+
/**
|
|
81
|
+
* Converts absolute variance columns into relative (percentage) variances by dividing
|
|
82
|
+
* each `dr_*` cell by its denominator column (the delta scenario's aggregated value).
|
|
83
|
+
*/
|
|
84
|
+
private calculateRelativeVariances;
|
|
85
|
+
/**
|
|
86
|
+
* Calculates REST columns for column-level thereof drills.
|
|
87
|
+
* REST = parent scenario value minus sum of all drilled child columns.
|
|
88
|
+
* Columns where REST is zero across all rows are removed entirely.
|
|
89
|
+
*/
|
|
90
|
+
private calculateColumnGroupRest;
|
|
91
|
+
/** Collects all relative variance scenarios and maps each to its denominator column name. */
|
|
92
|
+
private getRelativeScenarios;
|
|
93
|
+
/**
|
|
94
|
+
* Translates a scenario identifier into a SQL aggregation expression.
|
|
95
|
+
*
|
|
96
|
+
* - **OPT/OPTNOTOTAL types**: Values are summed without `transformOperator` (the
|
|
97
|
+
* operation sign is already baked into the data). Variance scenarios produce
|
|
98
|
+
* `SUM(base - delta)`.
|
|
99
|
+
* - **Other types**: Each value is multiplied by `transformOperator(operation)` which
|
|
100
|
+
* converts the `"+"` / `"-"` operation field into +1 / -1, so rows with negative
|
|
101
|
+
* operation are subtracted from the aggregate.
|
|
102
|
+
* - **Relative variances** (`dr_*`): additionally select the delta denominator column
|
|
103
|
+
* so `calculateRelativeVariances` can divide later.
|
|
104
|
+
* - A companion `_cnt` column (COUNT of non-null values) is emitted for NaN detection.
|
|
105
|
+
*/
|
|
106
|
+
private translateScenarioSQL;
|
|
107
|
+
/**
|
|
108
|
+
* generates Tuple
|
|
109
|
+
* [0] orderby string example: category asc
|
|
110
|
+
* [1] inverted order example: category desc
|
|
111
|
+
* @param orderComponent
|
|
112
|
+
*/
|
|
113
|
+
private createOrderString;
|
|
114
|
+
/** Returns a key/value pair mapping a relative variance column to its denominator, or null for non-relative scenarios. */
|
|
115
|
+
private createRelativeScenario;
|
|
116
|
+
/** Parses the comma-separated SQL scenario fragment to extract the alias names (the part after `as`). */
|
|
117
|
+
private exctractScenarioNames;
|
|
118
|
+
/** Identifies subCategory values that appear more than once in the drill set, requiring disambiguation. */
|
|
119
|
+
private findDuplicateSubCategories;
|
|
120
|
+
/** Builds the SQL query for partof drill rows, filtering to configured partOf categories. */
|
|
121
|
+
private createPartOfQuery;
|
|
122
|
+
private checkConfigForPartOf;
|
|
123
|
+
/**
|
|
124
|
+
* Creates column-level thereof drill breakdowns for the configured `categoryThereOf` map.
|
|
125
|
+
*
|
|
126
|
+
* For each scenario key, queries are generated at multiple aggregation levels
|
|
127
|
+
* (ENTRY, DRILLELEMENT, GROUP_SUM, SUM) crossed with column dimensions
|
|
128
|
+
* (COLUMNGROUP, SUBGROUP). Results are stored as new properties on existing
|
|
129
|
+
* result rows using the `"##"` separator convention: `scenario##columnGroup` or
|
|
130
|
+
* `scenario##columnGroup##columnSubGroup`.
|
|
131
|
+
*/
|
|
132
|
+
private createThereOfDrillColumns;
|
|
133
|
+
/**
|
|
134
|
+
* Merges column-drill query results into existing result rows by matching
|
|
135
|
+
* row type, category, subCategory, and rowGroup. Uses the `"##"` separator
|
|
136
|
+
* to form composite property keys for drill column values.
|
|
137
|
+
*/
|
|
138
|
+
private injectDrillColumnsToResultRows;
|
|
139
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TableComponentConfig } from "../model/TableComponentConfig";
|
|
2
|
+
/**
|
|
3
|
+
* Manages the GROUP BY column list for DataQuery's SQL statements and registers
|
|
4
|
+
* the `transformOperator` AlaSQL custom function.
|
|
5
|
+
*
|
|
6
|
+
* `transformOperator` converts the dataset's `operation` field (`"+"` or `"-"`)
|
|
7
|
+
* into a numeric multiplier (+1 / -1) so that SUM aggregations correctly add
|
|
8
|
+
* or subtract rows based on their sign.
|
|
9
|
+
*
|
|
10
|
+
* The GROUP BY columns are composed dynamically: always category + categoryIndex,
|
|
11
|
+
* plus operation for OPT types, plus rowGroup/rowGroupIndex when grouping is active.
|
|
12
|
+
*/
|
|
13
|
+
export declare class QueryGroups {
|
|
14
|
+
private groups;
|
|
15
|
+
constructor(config: TableComponentConfig);
|
|
16
|
+
toString(): string;
|
|
17
|
+
noCategory(): string[];
|
|
18
|
+
toArray(): string[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DataQuery";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Order } from "../../../../components";
|
|
2
|
+
import { DataFormat, I18nMode, TableCategoryWidth, MeasureType } from "../../../../utils/constants";
|
|
3
|
+
import { IAdapter } from "../../../../utils/helper/IAdapter";
|
|
4
|
+
import { StringAdapter } from "../../../../utils/helper/StringAdapter";
|
|
5
|
+
import { OrderAdapter } from "../../../../utils/model/Order";
|
|
6
|
+
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
7
|
+
import { TableType } from "./index";
|
|
8
|
+
import { TableDrillGroup, TableDrillGroupAdapter } from "./TableDrillGroup";
|
|
9
|
+
/**
|
|
10
|
+
* Configuration for an IBCS table component.
|
|
11
|
+
*
|
|
12
|
+
* Controls table behavior including drill-down groups, data formatting, and display modes.
|
|
13
|
+
*
|
|
14
|
+
* Drill-down concepts:
|
|
15
|
+
* - **thereOf** -- Sub-rows that break down a parent row's total (e.g. "thereof: domestic / international").
|
|
16
|
+
* Configured as an array of {@link TableDrillGroup} filters.
|
|
17
|
+
* - **partOf** -- Rows shown as a percentage share of a parent total.
|
|
18
|
+
* Also configured via {@link TableDrillGroup} filters.
|
|
19
|
+
* - **categoryThereOf** -- Column-level drill-down using the `##` separator convention in category names
|
|
20
|
+
* (e.g. `"Revenue##Product A"`) to expand a single category column into detail sub-columns.
|
|
21
|
+
* The Map key is the parent category, values are the detail records.
|
|
22
|
+
*/
|
|
23
|
+
export declare class TableComponentConfig {
|
|
24
|
+
title: string;
|
|
25
|
+
/** Active scenario column names (e.g. `["ac1", "pl1"]`). */
|
|
26
|
+
scenarios: string[];
|
|
27
|
+
/** Number format for scenario values (decimal, percent, etc.). */
|
|
28
|
+
scenariosUnitType: DataFormat;
|
|
29
|
+
/** When true, rows are visually grouped by rowGroup. */
|
|
30
|
+
grouped: boolean;
|
|
31
|
+
showGroupTitle: boolean;
|
|
32
|
+
/** Drill-down sub-row definitions -- "thereof" breakdowns within a category. */
|
|
33
|
+
thereOf: TableDrillGroup[];
|
|
34
|
+
/** Column-level drill-down using `##` separator in category names. */
|
|
35
|
+
categoryThereOf: Map<string, Record<string, unknown>[]>;
|
|
36
|
+
/** Percentage-of-total sub-row definitions. */
|
|
37
|
+
partOf: TableDrillGroup[];
|
|
38
|
+
sortOrder: Order;
|
|
39
|
+
/** Table aggregation mode: LIST (flat), SUM (with totals), OPT (with optional totals), etc. */
|
|
40
|
+
type: TableType;
|
|
41
|
+
/** Maximum rows to display; 0 means unlimited. */
|
|
42
|
+
limit: number;
|
|
43
|
+
i18n: I18nMode;
|
|
44
|
+
/** Proportion of table width allocated to the category label column. */
|
|
45
|
+
categoryWidth: TableCategoryWidth;
|
|
46
|
+
/** SI prefix for measure scaling (e.g. "k" for thousands, "M" for millions). */
|
|
47
|
+
measureScale: SiPrefix;
|
|
48
|
+
/** Unit label displayed in the table header (e.g. "EUR", "USD"). */
|
|
49
|
+
measureUnit: string;
|
|
50
|
+
/** Whether the measure represents a volume or a ratio, affecting formatting. */
|
|
51
|
+
measureType: MeasureType;
|
|
52
|
+
showMeasureScale: boolean;
|
|
53
|
+
/** AlaSQL WHERE clause for additional row filtering. */
|
|
54
|
+
filter: string;
|
|
55
|
+
/** Scenario columns to render as inline bar charts instead of numbers. */
|
|
56
|
+
barColumns: string[];
|
|
57
|
+
constructor();
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Converts untyped JSON into a validated {@link TableComponentConfig}.
|
|
61
|
+
*
|
|
62
|
+
* Requires the raw dataset for measure scale auto-calculation when `measureScale` is set to "auto".
|
|
63
|
+
*/
|
|
64
|
+
export declare class TableComponentConfigAdapter implements IAdapter<TableComponentConfig> {
|
|
65
|
+
private tableDrillGroupAdapter;
|
|
66
|
+
private stringAdapter;
|
|
67
|
+
private orderAdapter;
|
|
68
|
+
private dataSet;
|
|
69
|
+
constructor(tableDrillGroupAdapter: TableDrillGroupAdapter, stringAdapter: StringAdapter, orderAdapter: OrderAdapter, dataSet: Record<string, unknown>[]);
|
|
70
|
+
adapt(data: Record<string, unknown>): TableComponentConfig;
|
|
71
|
+
default(): TableComponentConfig;
|
|
72
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { IAdapter } from "../../../../utils/helper/IAdapter";
|
|
2
|
+
/**
|
|
3
|
+
* IBCS-compliant data row for table visualizations.
|
|
4
|
+
*
|
|
5
|
+
* Represents a single record with a three-level row hierarchy (rowGroup > category > subCategory),
|
|
6
|
+
* a two-level column hierarchy (columnGroup > columnSubGroup), and 16 scenario value slots across
|
|
7
|
+
* four scenario types: actual (ac1-4), previous period (pp1-4), forecast (fc1-4), and plan (pl1-4).
|
|
8
|
+
*
|
|
9
|
+
* The {@link operation} field controls how this row participates in aggregations:
|
|
10
|
+
* `"+"` adds and `"-"` subtracts the row's values. This is converted to a numeric multiplier
|
|
11
|
+
* by `transformOperator()` in the SQL query engine.
|
|
12
|
+
*/
|
|
13
|
+
export declare class TableDataRow {
|
|
14
|
+
/** Aggregation operator: `"+"` adds values, `"-"` subtracts them in SUM/OPT roll-ups. */
|
|
15
|
+
operation: string;
|
|
16
|
+
rowGroup: string | null | undefined;
|
|
17
|
+
/** Sort/display order within the row group level. */
|
|
18
|
+
rowGroupIndex: number | null | undefined;
|
|
19
|
+
category: string | null | undefined;
|
|
20
|
+
/** Sort/display order within the category level. */
|
|
21
|
+
categoryIndex: number | null | undefined;
|
|
22
|
+
subCategory: string | null | undefined;
|
|
23
|
+
/** Sort/display order within the sub-category level. */
|
|
24
|
+
subCategoryIndex: number | null | undefined;
|
|
25
|
+
columnGroup: string | null | undefined;
|
|
26
|
+
columnGroupIndex: number | null | undefined;
|
|
27
|
+
columnSubGroup: string | null | undefined;
|
|
28
|
+
columnSubGroupIndex: number | null | undefined;
|
|
29
|
+
/** Actual values (ac1-ac4) -- reported/measured figures. */
|
|
30
|
+
ac1: number | null | undefined;
|
|
31
|
+
ac2: number | null | undefined;
|
|
32
|
+
ac3: number | null | undefined;
|
|
33
|
+
ac4: number | null | undefined;
|
|
34
|
+
/** Previous period values (pp1-pp4) -- prior year/period comparisons. */
|
|
35
|
+
pp1: number | null | undefined;
|
|
36
|
+
pp2: number | null | undefined;
|
|
37
|
+
pp3: number | null | undefined;
|
|
38
|
+
pp4: number | null | undefined;
|
|
39
|
+
/** Forecast values (fc1-fc4) -- projected/estimated figures. */
|
|
40
|
+
fc1: number | null | undefined;
|
|
41
|
+
fc2: number | null | undefined;
|
|
42
|
+
fc3: number | null | undefined;
|
|
43
|
+
fc4: number | null | undefined;
|
|
44
|
+
/** Plan/budget values (pl1-pl4) -- target figures. */
|
|
45
|
+
pl1: number | null | undefined;
|
|
46
|
+
pl2: number | null | undefined;
|
|
47
|
+
pl3: number | null | undefined;
|
|
48
|
+
pl4: number | null | undefined;
|
|
49
|
+
constructor();
|
|
50
|
+
addRowGroup(name: string, index: number): void;
|
|
51
|
+
addCategory(name: string, index: number): void;
|
|
52
|
+
addSubCategory(name: string, index: number): void;
|
|
53
|
+
addColumnGroup(name: string, index: number): void;
|
|
54
|
+
addSubColumnGroup(name: string, index: number): void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Converts untyped JSON records into validated {@link TableDataRow} instances.
|
|
58
|
+
*
|
|
59
|
+
* Only assigns fields that pass type validation via {@link CompareUtil}, so malformed
|
|
60
|
+
* input data is silently dropped and defaults are preserved.
|
|
61
|
+
*/
|
|
62
|
+
export declare class TableDataRowAdapter implements IAdapter<TableDataRow> {
|
|
63
|
+
constructor();
|
|
64
|
+
adapt(data: Record<string, unknown>): TableDataRow;
|
|
65
|
+
default(): TableDataRow;
|
|
66
|
+
private setActualValues;
|
|
67
|
+
private setPlanValues;
|
|
68
|
+
private setPreviousPeriodValues;
|
|
69
|
+
private setForecastValues;
|
|
70
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IAdapter } from "../../../../utils/helper/IAdapter";
|
|
2
|
+
/**
|
|
3
|
+
* Filter definition for a table drill-down operation (thereOf or partOf).
|
|
4
|
+
*
|
|
5
|
+
* Identifies which rows in the dataset participate in a drill-down group by matching
|
|
6
|
+
* on the three-level row hierarchy. For partOf drill-downs, the {@link partOf} field
|
|
7
|
+
* names the parent category whose total is used as the 100% reference.
|
|
8
|
+
*/
|
|
9
|
+
export declare class TableDrillGroup {
|
|
10
|
+
rowGroup: string;
|
|
11
|
+
category: string;
|
|
12
|
+
subCategory: string;
|
|
13
|
+
/** Parent category name for percentage-of-total (partOf) calculations. Empty for thereOf groups. */
|
|
14
|
+
partOf: string;
|
|
15
|
+
constructor();
|
|
16
|
+
}
|
|
17
|
+
/** Converts untyped JSON into a validated {@link TableDrillGroup}. */
|
|
18
|
+
export declare class TableDrillGroupAdapter implements IAdapter<TableDrillGroup> {
|
|
19
|
+
constructor();
|
|
20
|
+
adapt(data: Record<string, unknown>): TableDrillGroup;
|
|
21
|
+
default(): TableDrillGroup;
|
|
22
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { TableRow } from "../elements";
|
|
2
|
+
/**
|
|
3
|
+
* Strategy interface for IBCS visualisation rules.
|
|
4
|
+
* Maps scenario names to their visual properties (color, sort order, grouping).
|
|
5
|
+
*/
|
|
6
|
+
export interface VisualisationRuleSet {
|
|
7
|
+
getScenario(scenarioName: string): ScenarioStyle;
|
|
8
|
+
getScenarioGroup(scenarioName: string): string;
|
|
9
|
+
getScenarioColorIndex(scenarioName: string): number;
|
|
10
|
+
getScenarioSorIndex(scenarioName: string): number;
|
|
11
|
+
}
|
|
12
|
+
/** Sentinel value indicating all groups should be included. */
|
|
13
|
+
export declare enum GroupSelection {
|
|
14
|
+
ALL = -1
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Tracks whether a factory's output is current or needs recalculation.
|
|
18
|
+
* Used to avoid redundant re-rendering when underlying data has not changed.
|
|
19
|
+
*/
|
|
20
|
+
export declare enum FactoryState {
|
|
21
|
+
/** Output matches the current input data. */
|
|
22
|
+
UP_TO_DATE = 0,
|
|
23
|
+
/** Input data has changed; output needs to be regenerated. */
|
|
24
|
+
DIRTY = 1
|
|
25
|
+
}
|
|
26
|
+
/** Fully assembled table dataset ready for rendering, including header and detail rows. */
|
|
27
|
+
export interface TableDataSet {
|
|
28
|
+
type: string;
|
|
29
|
+
version: string;
|
|
30
|
+
name: string;
|
|
31
|
+
author: string;
|
|
32
|
+
description: string;
|
|
33
|
+
executedBy: string;
|
|
34
|
+
timestamp: Date;
|
|
35
|
+
query: string;
|
|
36
|
+
header: TableRow[];
|
|
37
|
+
details: TableRow[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Table aggregation modes controlling how rows are grouped and totalled.
|
|
41
|
+
*
|
|
42
|
+
* - `LIST` -- Flat list with no aggregation.
|
|
43
|
+
* - `SUM` -- Grouped rows with sum totals per group and a grand total.
|
|
44
|
+
* - `SUMNOTOTAL` -- Grouped rows with group sums but no grand total row.
|
|
45
|
+
* - `OPT` -- Operation-aware aggregation (respects the +/- operation field).
|
|
46
|
+
* - `OPTNOTOTAL` -- Operation-aware aggregation without a grand total row.
|
|
47
|
+
*/
|
|
48
|
+
export declare enum TableType {
|
|
49
|
+
LIST = "list",
|
|
50
|
+
SUM = "sum",
|
|
51
|
+
SUMNOTOTAL = "sumnototal",
|
|
52
|
+
OPT = "opt",
|
|
53
|
+
OPTNOTOTAL = "optnototal"
|
|
54
|
+
}
|
|
55
|
+
export declare enum OrderDirection {
|
|
56
|
+
ASC = "asc",
|
|
57
|
+
DESC = "desc"
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Discriminator for rendered table rows, controlling visual styling and behavior.
|
|
61
|
+
*
|
|
62
|
+
* - `HEADER` -- Column header row.
|
|
63
|
+
* - `GROUPHEAD` -- Group title row (rendered when `grouped` is true).
|
|
64
|
+
* - `SEPERATORLINE` -- Visual divider between groups.
|
|
65
|
+
* - `SUM` -- Grand total row.
|
|
66
|
+
* - `GROUPSUM` -- Sub-total row for a single group.
|
|
67
|
+
* - `DRILLELEMENT` -- "Thereof" drill-down sub-row.
|
|
68
|
+
* - `STANDARD` -- Normal data row.
|
|
69
|
+
* - `PARTELEMENT` -- "Part of" percentage row.
|
|
70
|
+
* - `ENTRY` -- Generic entry row.
|
|
71
|
+
*/
|
|
72
|
+
export declare enum TableRowType {
|
|
73
|
+
HEADER = "HEADER",
|
|
74
|
+
GROUPHEAD = "GROUPHEAD",
|
|
75
|
+
SEPERATORLINE = "SEPERATORLINE",
|
|
76
|
+
SUM = "SUM",
|
|
77
|
+
GROUPSUM = "GROUP_SUM",
|
|
78
|
+
DRILLELEMENT = "DRILLELEMENT",
|
|
79
|
+
STANDARD = "STANDARD",
|
|
80
|
+
PARTELEMENT = "PARTELEMENT",
|
|
81
|
+
ENTRY = "ENTRY"
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Maps logical column roles to their actual SQL column names in AlaSQL queries.
|
|
85
|
+
* Used by the query engine to build dynamic SELECT/GROUP BY statements
|
|
86
|
+
* without hard-coding column identifiers.
|
|
87
|
+
*/
|
|
88
|
+
export interface ColumnNameMap {
|
|
89
|
+
currentRow: string;
|
|
90
|
+
operation: string;
|
|
91
|
+
rowGroup: string;
|
|
92
|
+
rowGroupIndex: string;
|
|
93
|
+
category: string;
|
|
94
|
+
categoryIndex: string;
|
|
95
|
+
subcategory: string;
|
|
96
|
+
subCategoryIndex: string;
|
|
97
|
+
columnGroup: string;
|
|
98
|
+
columnIndex: string;
|
|
99
|
+
columnSubGroup: string;
|
|
100
|
+
columnSubGroupIndex: string;
|
|
101
|
+
ac1: string;
|
|
102
|
+
ac2: string;
|
|
103
|
+
ac3: string;
|
|
104
|
+
ac4: string;
|
|
105
|
+
pp1: string;
|
|
106
|
+
pp2: string;
|
|
107
|
+
pp3: string;
|
|
108
|
+
pp4: string;
|
|
109
|
+
fc1: string;
|
|
110
|
+
fc2: string;
|
|
111
|
+
fc3: string;
|
|
112
|
+
fc4: string;
|
|
113
|
+
pl1: string;
|
|
114
|
+
pl2: string;
|
|
115
|
+
pl3: string;
|
|
116
|
+
pl4: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* IBCS scenario descriptor with visual properties for rendering.
|
|
120
|
+
*
|
|
121
|
+
* @property colorIndex - Index into the IBCS color palette (determines fill/stroke color).
|
|
122
|
+
* @property sortIndex - Controls the left-to-right display order of scenario columns.
|
|
123
|
+
*/
|
|
124
|
+
export interface ScenarioStyle {
|
|
125
|
+
name: string;
|
|
126
|
+
/** Scenario type group (e.g. "ac", "pp", "fc", "pl"). */
|
|
127
|
+
group: string;
|
|
128
|
+
colorIndex: number;
|
|
129
|
+
sortIndex: number;
|
|
130
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders a template-driven text block with dataset interpolation.
|
|
3
|
+
*
|
|
4
|
+
* The `value` prop is evaluated as a JavaScript template literal in a
|
|
5
|
+
* sandboxed scope (`data` and `t` are available) and sanitized against
|
|
6
|
+
* XSS before being injected as HTML. Supports auto-scaling to fit the
|
|
7
|
+
* parent container.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Text {
|
|
10
|
+
private element;
|
|
11
|
+
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Template string rendered as HTML. Supports JavaScript template literal
|
|
14
|
+
* syntax — use `${data.<dataset>}` to interpolate dataset values and
|
|
15
|
+
* `${t('<key>')}` for translated strings.
|
|
16
|
+
*
|
|
17
|
+
* The template is evaluated in a sandboxed scope (only `data` and `t` are
|
|
18
|
+
* accessible; globals like `window`/`document` are blocked) and the output
|
|
19
|
+
* is sanitized against XSS (only safe HTML tags and attributes are kept).
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // plain text
|
|
23
|
+
* value="Hello World"
|
|
24
|
+
*
|
|
25
|
+
* // with dataset interpolation
|
|
26
|
+
* value="Revenue: ${data.kpi[0].ac1}"
|
|
27
|
+
*
|
|
28
|
+
* // with translation
|
|
29
|
+
* value="${t('report.title')}"
|
|
30
|
+
*
|
|
31
|
+
* // with HTML formatting
|
|
32
|
+
* value="<b>Total</b>: ${data.kpi[0].ac1}<br>as of today"
|
|
33
|
+
*/
|
|
34
|
+
value?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Controls font-size scaling relative to the available parent space.
|
|
37
|
+
* Scaling considers both width and height — the tighter constraint wins.
|
|
38
|
+
*
|
|
39
|
+
* | Value | Behavior |
|
|
40
|
+
* |----------------|----------------------------------------------------------------|
|
|
41
|
+
* | not set / `""` | Auto-scale to fit, emit `AUTO_scale` warning with applied factor |
|
|
42
|
+
* | `"none"` | No scaling; emit `WARN_overflow` warning if content overflows |
|
|
43
|
+
* | `"auto"` | Auto-scale to fit, silent (no warning) |
|
|
44
|
+
* | `"0.5"`, `"1.2"`, … | Apply `baseFontSize × factor`; emit `WARN_overflow` if still overflows |
|
|
45
|
+
*
|
|
46
|
+
* Invalid values (negative, non-numeric, non-keyword) fall back to the
|
|
47
|
+
* default (auto + warning) and emit an `ERR_scale` warning.
|
|
48
|
+
*/
|
|
49
|
+
scale?: string;
|
|
50
|
+
data: Record<string, unknown>;
|
|
51
|
+
private readonly componentStyle;
|
|
52
|
+
private readonly t;
|
|
53
|
+
private readonly errors;
|
|
54
|
+
validateValue(newValue: string): void;
|
|
55
|
+
validateScaling(newValue: string): void;
|
|
56
|
+
componentWillLoad(): void;
|
|
57
|
+
private evalTemplate;
|
|
58
|
+
private prepareStyle;
|
|
59
|
+
private container;
|
|
60
|
+
private applyScaling;
|
|
61
|
+
componentDidRender(): void;
|
|
62
|
+
render(): any;
|
|
63
|
+
}
|