@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,1475 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { isBlankInput, isTableCategoryWidth, isValidBoolean, isValidDataFormat, isValidDirection, isValidInteger, isValidMeasureScale, isValidMeasureType, isValidNumber, isValidTableType, validateColumnThereOfJsonStr, validateOrderList, validatePartOfJsonStr, validateScenarioList, validateThereOfJsonStr, validateVariancesList, } from "../../utils/validate";
|
|
3
|
+
import withDataset from "../../utils/withDataset";
|
|
4
|
+
import withComponentStatus from "../../utils/withComponentStatus";
|
|
5
|
+
import { globalLabelKeys } from "../../stores/internationalization";
|
|
6
|
+
import withTranslation from "../../utils/withTranslation";
|
|
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 { DataFormat, I18nMode, MeasureType, TableCategoryWidth } from "../../utils/constants";
|
|
13
|
+
import { TableType } from "./utils/model";
|
|
14
|
+
import { OrderColumn, OrderDirection } from "../../utils/model/Order";
|
|
15
|
+
/**
|
|
16
|
+
* Public-facing wrapper for the IBCS table component.
|
|
17
|
+
*
|
|
18
|
+
* Accepts user-facing string/number props, validates them, and converts
|
|
19
|
+
* them into the typed internal format expected by `ibcs-table`. Handles
|
|
20
|
+
* auto-scaling, dataset subscription (via `withDataset`), and i18n setup.
|
|
21
|
+
* The actual table rendering (header, body, drill-down rows) is delegated
|
|
22
|
+
* to the inner `ibcs-table` element.
|
|
23
|
+
*/
|
|
24
|
+
export class Table {
|
|
25
|
+
validateScaling(newValue) {
|
|
26
|
+
if (newValue == null || newValue === "" || newValue === "none" || newValue === "auto") {
|
|
27
|
+
this.errors.remove("ERR_scale");
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const num = Number(newValue);
|
|
31
|
+
if (isNaN(num) || num <= 0) {
|
|
32
|
+
this.errors.addOrReplace({
|
|
33
|
+
id: "ERR_scale",
|
|
34
|
+
type: "warning",
|
|
35
|
+
message: `Invalid scale value: "${newValue}". Use "none", "auto", or a positive number.`,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.errors.remove("ERR_scale");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
constructor() {
|
|
43
|
+
this.data = [];
|
|
44
|
+
this.datasetMeta = null;
|
|
45
|
+
this.appliedScaleFactor = 1;
|
|
46
|
+
/**
|
|
47
|
+
* A not mundane tile which should describes the shown data.
|
|
48
|
+
*/
|
|
49
|
+
this.tableTitle = "";
|
|
50
|
+
/**
|
|
51
|
+
* AlaSQL WHERE clause fragment injected into the data query to filter
|
|
52
|
+
* rows before rendering (e.g. `"category = 'Sales'"`).
|
|
53
|
+
*/
|
|
54
|
+
this.filter = "";
|
|
55
|
+
/**
|
|
56
|
+
* measureUnit displayed in table.
|
|
57
|
+
*/
|
|
58
|
+
this.measureUnit = "";
|
|
59
|
+
/**
|
|
60
|
+
* Scaling for absolute variance bar charts (ΔPY).
|
|
61
|
+
* <br /><br />
|
|
62
|
+
* Name of the 'scaling-group' which the table uses.
|
|
63
|
+
* Scaling groups are maintained globally.
|
|
64
|
+
* <br /><br />
|
|
65
|
+
* Alternatively a number which represents pixels per unit of measure.
|
|
66
|
+
* <br /><br />
|
|
67
|
+
* Example: 0.01 means 1000 units = 10 pixels width.
|
|
68
|
+
* <br /><br />
|
|
69
|
+
* Default: 0.01
|
|
70
|
+
*/
|
|
71
|
+
this.unitScaling = 0.01;
|
|
72
|
+
/**
|
|
73
|
+
* Scaling for relative variance pin charts (ΔPY%).
|
|
74
|
+
* <br /><br />
|
|
75
|
+
* Name of the 'scaling-group' which the table uses.
|
|
76
|
+
* Scaling groups are maintained globally.
|
|
77
|
+
* <br /><br />
|
|
78
|
+
* Alternatively a number which represents pixels per percentage point.
|
|
79
|
+
* <br /><br />
|
|
80
|
+
* Example: 0.5 means 100% = 50 pixels width.
|
|
81
|
+
* <br /><br />
|
|
82
|
+
* Default: 0.5
|
|
83
|
+
*/
|
|
84
|
+
this.percentageScaling = 0.5;
|
|
85
|
+
// Global scaling groups map - can be populated externally for shared scaling across components
|
|
86
|
+
this.pixelPerUnitGroupMap = new Map();
|
|
87
|
+
/**
|
|
88
|
+
* Defines the data unit type of the tables data.
|
|
89
|
+
* <br /><br />
|
|
90
|
+
* If percent is chosen all data values are converted into percent
|
|
91
|
+
* (0.02 -> 2%)
|
|
92
|
+
* <br /><br />
|
|
93
|
+
* values: <br />
|
|
94
|
+
* ```percent // decimal```
|
|
95
|
+
*/
|
|
96
|
+
this.dataFormat = "decimal";
|
|
97
|
+
/**
|
|
98
|
+
* Toggles of data should be grouped by
|
|
99
|
+
* 'rowgroup'.
|
|
100
|
+
* <br /><br />
|
|
101
|
+
* values: <br />
|
|
102
|
+
* ```true // false```
|
|
103
|
+
*/
|
|
104
|
+
this.grouped = "false";
|
|
105
|
+
/**
|
|
106
|
+
* Toggles display of measure units in table header
|
|
107
|
+
* <br /><br />
|
|
108
|
+
* values: <br />
|
|
109
|
+
* ```true // false```
|
|
110
|
+
*/
|
|
111
|
+
this.showMeasureScale = "false";
|
|
112
|
+
/**
|
|
113
|
+
* Toggles a title header for each (row-)group
|
|
114
|
+
* the title header value is found set by 'rowgroup'
|
|
115
|
+
* <br /><br />
|
|
116
|
+
* values: <br />
|
|
117
|
+
* ```true // false```
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
this.showGroupTitle = "true";
|
|
121
|
+
/**
|
|
122
|
+
* Set the table type
|
|
123
|
+
* <br /><br />
|
|
124
|
+
* values: <br />
|
|
125
|
+
* ```list // sum // opt // sumnototal // optnototal```
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
this.type = "list";
|
|
129
|
+
/**
|
|
130
|
+
* Set the maximum number of rows for each
|
|
131
|
+
* group. The value 0 means *no limit*
|
|
132
|
+
* <br /><br />
|
|
133
|
+
* rows wich where cut by the limit are cumulated as REST
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
this.limit = 0;
|
|
137
|
+
/**
|
|
138
|
+
* Stringified Array of drilldown Objects {
|
|
139
|
+
"rowGroup": string,<br />
|
|
140
|
+
"category": string,<br />
|
|
141
|
+
"subCategory": string,<br />
|
|
142
|
+
},<br /><br />
|
|
143
|
+
* rowgroup, categroy defines the location of the drill
|
|
144
|
+
* subcategory is the displayed label of the data row
|
|
145
|
+
*<br /><br />
|
|
146
|
+
* example:<br />
|
|
147
|
+
* ```[{
|
|
148
|
+
"rowGroup":"Umsatz",
|
|
149
|
+
"category": "Applications",
|
|
150
|
+
"subCategory": "Applications-A",
|
|
151
|
+
},]```
|
|
152
|
+
*/
|
|
153
|
+
this.thereof = "[]";
|
|
154
|
+
/**
|
|
155
|
+
* Stringified Array of Partof Objects <br />{<br />
|
|
156
|
+
"rowGroup": string,<br />
|
|
157
|
+
"category": string<br />
|
|
158
|
+
},<br /><br />
|
|
159
|
+
* rowgroup, categroy defines the location of the drill
|
|
160
|
+
* percentage of category in rowgorup
|
|
161
|
+
*<br /><br />
|
|
162
|
+
* example:<br />
|
|
163
|
+
* ```[{
|
|
164
|
+
"rowGroups":"Umsatz",
|
|
165
|
+
"category": "Applications",
|
|
166
|
+
},]```
|
|
167
|
+
*/
|
|
168
|
+
this.partof = "[]";
|
|
169
|
+
/** List of the primary scenarios on which the order direction are applied valid scenarios are
|
|
170
|
+
* If order is set to a scenario it has also exists in scenariolist
|
|
171
|
+
* <br /><br />
|
|
172
|
+
* values: <br />
|
|
173
|
+
* ```category // categoryindex // rowgroup // rowgroup // rowgroupindex // ac[1-4] // fc[1-4] // pp[1-4] // pl[1-4] // auto```
|
|
174
|
+
* <br /><br />
|
|
175
|
+
* When set to ```auto```, order is detected from the dataset silently.
|
|
176
|
+
*/
|
|
177
|
+
this.order = "category";
|
|
178
|
+
/** Set sorting order direction
|
|
179
|
+
* <br /><br />
|
|
180
|
+
* values: <br />
|
|
181
|
+
* ```asc // desc```
|
|
182
|
+
*/
|
|
183
|
+
this.orderDirection = "asc";
|
|
184
|
+
/** Sets the Measure Type of the Table
|
|
185
|
+
* volume is different displayed and interpreted as currency
|
|
186
|
+
* names of siprefix are adapted.
|
|
187
|
+
* <br /><br />
|
|
188
|
+
* values: <br />
|
|
189
|
+
* ```volume // currency```
|
|
190
|
+
|
|
191
|
+
*/
|
|
192
|
+
this.measureType = "volume";
|
|
193
|
+
/**
|
|
194
|
+
* Sets the SiPrefix of the Mesaurements and converts the
|
|
195
|
+
* original value.
|
|
196
|
+
* <br /><br />
|
|
197
|
+
* values: <br />
|
|
198
|
+
* ```_ // k // M // G // T // P // E // Z // Y // m // μ // n // p // P // f // a // z // y // GREATEST // LEAST```
|
|
199
|
+
* <br /><br />
|
|
200
|
+
* SiPrefix overview:
|
|
201
|
+
* ``` "Y": 1E+24,```<br />
|
|
202
|
+
* ``` "Z": 1E+21,```<br />
|
|
203
|
+
* ``` "E": 1E+18,```<br />
|
|
204
|
+
* ``` "P": 1E+15,```<br />
|
|
205
|
+
* ``` "T": 1E+12,```<br />
|
|
206
|
+
* ``` "G": 1000000000,```<br />
|
|
207
|
+
* ``` "M": 1000000,```<br />
|
|
208
|
+
* ``` "k": 1000,```<br />
|
|
209
|
+
* <br />
|
|
210
|
+
* ``` "m": 0.001,```<br />
|
|
211
|
+
* ``` "μ": 0.000001,```<br />
|
|
212
|
+
* ``` "n": 0.000000001,```<br />
|
|
213
|
+
* ``` "p": 0.000000000001,```<br />
|
|
214
|
+
* ``` "f": 0.000000000000001,```<br />
|
|
215
|
+
* ``` "a": 0.000000000000000001,```<br />
|
|
216
|
+
* ``` "z": 0.000000000000000000001,```<br />
|
|
217
|
+
* ``` "y": 0.000000000000000000000001,```<br />
|
|
218
|
+
* <br /><br />
|
|
219
|
+
* Special modes:
|
|
220
|
+
* ```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />
|
|
221
|
+
* ```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />
|
|
222
|
+
*<br /><br />
|
|
223
|
+
* ```_``` is the value for no SiPrefix the value is displayed as in the dataset stored.
|
|
224
|
+
*
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
this.measureScale = "greatest";
|
|
228
|
+
/**
|
|
229
|
+
* Number of decimal digits in a table cell
|
|
230
|
+
*/
|
|
231
|
+
this.dataFormatDigitsDecimal = 1;
|
|
232
|
+
/**
|
|
233
|
+
* Number of percent digits in a table cell
|
|
234
|
+
*/
|
|
235
|
+
this.dataFormatDigitsPercent = 2;
|
|
236
|
+
/**
|
|
237
|
+
* Set width of category column. <br />
|
|
238
|
+
* If INF is selected the columns scaling to the min space they need
|
|
239
|
+
* seperatly.
|
|
240
|
+
* <br /><br />
|
|
241
|
+
* values:<br />
|
|
242
|
+
* ``` w5 // w10 // w15 // w20 // w25 // w50 // inf ```
|
|
243
|
+
*/
|
|
244
|
+
this.categoryWidth = "w15";
|
|
245
|
+
/**
|
|
246
|
+
* Defines which drill-column is displayed. <br />
|
|
247
|
+
* <br /><br />
|
|
248
|
+
* ```scenario``` the scenaro to drill <br/>
|
|
249
|
+
* ```group``` is a list of child columns of the parent <br/><br/>
|
|
250
|
+
* ```subGroups``` is a list of child columns of the parent <br/><br/>
|
|
251
|
+
* example:<br />
|
|
252
|
+
* ```[{"scenario": "ac1", "name": "DE", "subGroups": ["Berlin"]},
|
|
253
|
+
* {"scenario": "ac2", "name": "UK", "subGroups": []}],
|
|
254
|
+
* ```
|
|
255
|
+
*/
|
|
256
|
+
this.columnthereof = null;
|
|
257
|
+
this._autoScaleGuard = false;
|
|
258
|
+
withStyled(this);
|
|
259
|
+
withComponentStatus(this);
|
|
260
|
+
this.errors = withHasError(this);
|
|
261
|
+
this.componentStyle = withComponentStyle(this);
|
|
262
|
+
withDataset(this, (_name, data) => {
|
|
263
|
+
this.data = (data || []);
|
|
264
|
+
}, (_name, meta) => {
|
|
265
|
+
this.datasetMeta = meta;
|
|
266
|
+
});
|
|
267
|
+
this.t = withTranslation(this).t;
|
|
268
|
+
}
|
|
269
|
+
validateScenario(newValue) {
|
|
270
|
+
const errId = "ERR_scenarios";
|
|
271
|
+
const invalidScenarios = validateScenarioList(newValue);
|
|
272
|
+
if (invalidScenarios.length > 0) {
|
|
273
|
+
this.errors.addOrReplace({
|
|
274
|
+
id: errId,
|
|
275
|
+
type: "warning",
|
|
276
|
+
message: "scenarios: invalid value(s) '" + (invalidScenarios === null || invalidScenarios === void 0 ? void 0 : invalidScenarios.toString()) + "' are not supported.",
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
this.errors.remove(errId);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
validateVariances(newValue) {
|
|
284
|
+
const errId = "ERR_variances";
|
|
285
|
+
const invalidVariances = validateVariancesList(newValue);
|
|
286
|
+
if (invalidVariances.length > 0) {
|
|
287
|
+
this.errors.addOrReplace({
|
|
288
|
+
id: errId,
|
|
289
|
+
type: "warning",
|
|
290
|
+
message: "variances: invalid value(s) '" + JSON.stringify(invalidVariances) + "' are not supported.",
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
this.errors.remove(errId);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
validateBarColumns(newValue) {
|
|
298
|
+
const errId = "ERR_barColumns";
|
|
299
|
+
if (isBlankInput(newValue)) {
|
|
300
|
+
this.errors.remove(errId);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
const invalidColumns = validateVariancesList(newValue);
|
|
304
|
+
if (invalidColumns.length > 0) {
|
|
305
|
+
this.errors.addOrReplace({
|
|
306
|
+
id: errId,
|
|
307
|
+
type: "warning",
|
|
308
|
+
message: "barColumns: invalid value(s) '" + JSON.stringify(invalidColumns) + "' are not supported.",
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
this.errors.remove(errId);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
validateUnitScaling(newValue) {
|
|
316
|
+
const errId = "ERR_unitScaling";
|
|
317
|
+
if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
318
|
+
this.errors.addOrReplace({
|
|
319
|
+
id: errId,
|
|
320
|
+
type: "warning",
|
|
321
|
+
message: "unitScaling: invalid value '" + newValue + "' is not supported.",
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
this.errors.remove(errId);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
validatePercentageScaling(newValue) {
|
|
329
|
+
const errId = "ERR_percentageScaling";
|
|
330
|
+
if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
331
|
+
this.errors.addOrReplace({
|
|
332
|
+
id: errId,
|
|
333
|
+
type: "warning",
|
|
334
|
+
message: "percentageScaling: invalid value '" + newValue + "' is not supported.",
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
else {
|
|
338
|
+
this.errors.remove(errId);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
validateDataFormat(newValue) {
|
|
342
|
+
const errId = "ERR_dataFormat";
|
|
343
|
+
if (!isValidDataFormat(newValue)) {
|
|
344
|
+
this.errors.addOrReplace({
|
|
345
|
+
id: errId,
|
|
346
|
+
type: "warning",
|
|
347
|
+
message: "dataFormat: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
this.errors.remove(errId);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
validateGrouped(newValue) {
|
|
355
|
+
const errId = "ERR_grouped";
|
|
356
|
+
if (!isValidBoolean(newValue)) {
|
|
357
|
+
this.errors.addOrReplace({
|
|
358
|
+
id: errId,
|
|
359
|
+
type: "warning",
|
|
360
|
+
message: "grouped: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
this.errors.remove(errId);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
validateShowMeasureScale(newValue) {
|
|
368
|
+
const errId = "ERR_grouped";
|
|
369
|
+
if (!isValidBoolean(newValue)) {
|
|
370
|
+
this.errors.addOrReplace({
|
|
371
|
+
id: errId,
|
|
372
|
+
type: "warning",
|
|
373
|
+
message: "showMeasureScale: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
this.errors.remove(errId);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
validateShowGroupTitle(newValue) {
|
|
381
|
+
const errId = "ERR_showGroupTitle";
|
|
382
|
+
if (!isValidBoolean(newValue)) {
|
|
383
|
+
this.errors.addOrReplace({
|
|
384
|
+
id: errId,
|
|
385
|
+
type: "warning",
|
|
386
|
+
message: "showGroupTitle: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
this.errors.remove(errId);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
validateType(newValue) {
|
|
394
|
+
const errId = "ERR_type";
|
|
395
|
+
if (!isValidTableType(newValue)) {
|
|
396
|
+
this.errors.addOrReplace({
|
|
397
|
+
id: errId,
|
|
398
|
+
type: "warning",
|
|
399
|
+
message: "type: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
this.errors.remove(errId);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
validateLimit(newValue) {
|
|
407
|
+
const errId = "ERR_limit";
|
|
408
|
+
if (!isValidInteger(newValue)) {
|
|
409
|
+
this.errors.addOrReplace({
|
|
410
|
+
id: errId,
|
|
411
|
+
type: "warning",
|
|
412
|
+
message: "order: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
this.errors.remove(errId);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
validateThereOf(newValue) {
|
|
420
|
+
const errId = "ERR_thereof";
|
|
421
|
+
const invalidElements = validateThereOfJsonStr(newValue);
|
|
422
|
+
if (invalidElements.length > 0) {
|
|
423
|
+
this.errors.addOrReplace({
|
|
424
|
+
id: errId,
|
|
425
|
+
type: "warning",
|
|
426
|
+
message: "ThereOf: invalid value(s) '" + JSON.stringify(invalidElements) + "' are not supported.",
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
this.errors.remove(errId);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
validatePartOf(newValue) {
|
|
434
|
+
const errId = "ERR_partof";
|
|
435
|
+
const invalidElements = validatePartOfJsonStr(newValue);
|
|
436
|
+
if (invalidElements.length > 0) {
|
|
437
|
+
this.errors.addOrReplace({
|
|
438
|
+
id: errId,
|
|
439
|
+
type: "warning",
|
|
440
|
+
message: "partof: invalid value(s) '" + JSON.stringify(invalidElements) + "' are not supported.",
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
else {
|
|
444
|
+
this.errors.remove(errId);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
validateOrderList(newValue) {
|
|
448
|
+
const errId = "ERR_order";
|
|
449
|
+
const invalidElements = validateOrderList(newValue);
|
|
450
|
+
if (invalidElements.length > 0) {
|
|
451
|
+
this.errors.addOrReplace({
|
|
452
|
+
id: errId,
|
|
453
|
+
type: "warning",
|
|
454
|
+
message: "order: invalid value(s) '" + JSON.stringify(invalidElements) + "' are not supported.",
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
this.errors.remove(errId);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
validateOrderDirection(newValue) {
|
|
462
|
+
const errId = "ERR_orderDirection";
|
|
463
|
+
if (!isValidDirection(newValue)) {
|
|
464
|
+
this.errors.addOrReplace({
|
|
465
|
+
id: errId,
|
|
466
|
+
type: "warning",
|
|
467
|
+
message: "orderDirection: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
this.errors.remove(errId);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
validateMeasureType(newValue) {
|
|
475
|
+
const errId = "ERR_measureType";
|
|
476
|
+
if (!isValidMeasureType(newValue)) {
|
|
477
|
+
this.errors.addOrReplace({
|
|
478
|
+
id: errId,
|
|
479
|
+
type: "warning",
|
|
480
|
+
message: "measureType: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
this.errors.remove(errId);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
validateMeasureScale(newValue) {
|
|
488
|
+
const errId = "ERR_measureScale";
|
|
489
|
+
if (!isValidMeasureScale(newValue)) {
|
|
490
|
+
this.errors.addOrReplace({
|
|
491
|
+
id: errId,
|
|
492
|
+
type: "warning",
|
|
493
|
+
message: "measureScale: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
else {
|
|
497
|
+
this.errors.remove(errId);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
validateDataFormatDigitsDecimal(newValue) {
|
|
501
|
+
const errId = "ERR_dataFormatDigitsDecimal";
|
|
502
|
+
if (!isValidInteger(newValue)) {
|
|
503
|
+
this.errors.addOrReplace({
|
|
504
|
+
id: errId,
|
|
505
|
+
type: "warning",
|
|
506
|
+
message: "dataFormatDigitsDecimal: invalid value(s) '" + newValue + "' are not supported.",
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
this.errors.remove(errId);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
validateDateFormatDigitsPercent(newValue) {
|
|
514
|
+
const errId = "ERR_dataFormatDigitsPercent";
|
|
515
|
+
if (!isValidInteger(newValue)) {
|
|
516
|
+
this.errors.addOrReplace({
|
|
517
|
+
id: errId,
|
|
518
|
+
type: "warning",
|
|
519
|
+
message: "dataFormatDigitsPercent: invalid value(s) '" + newValue + "' are not supported.",
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
else {
|
|
523
|
+
this.errors.remove(errId);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
validateCategoryWidth(newValue) {
|
|
527
|
+
const errId = "ERR_categoryWidth";
|
|
528
|
+
if (!isTableCategoryWidth(newValue)) {
|
|
529
|
+
this.errors.addOrReplace({
|
|
530
|
+
id: errId,
|
|
531
|
+
type: "warning",
|
|
532
|
+
message: "categoryWidth: invalid value(s) '" + newValue + "' are not supported.",
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
else {
|
|
536
|
+
this.errors.remove(errId);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
validateColumnThereOf(newValue) {
|
|
540
|
+
const invalidElements = validateColumnThereOfJsonStr(newValue);
|
|
541
|
+
const errId = "ERR_categorythereof";
|
|
542
|
+
if (invalidElements.length > 0) {
|
|
543
|
+
this.errors.addOrReplace({
|
|
544
|
+
id: errId,
|
|
545
|
+
type: "warning",
|
|
546
|
+
message: "columnthereof: invalid value(s) '" + JSON.stringify(invalidElements) + "' are not supported.",
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
this.errors.remove(errId);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
componentWillLoad() {
|
|
554
|
+
//this.datasouce = get("test");
|
|
555
|
+
// this.unsubscribe = onChange("test", (value) => this.datasouce = value);
|
|
556
|
+
this.validateScenario(this.scenarios);
|
|
557
|
+
this.validateVariances(this.variances);
|
|
558
|
+
this.validateDataFormat(this.dataFormat);
|
|
559
|
+
this.validateGrouped(this.grouped);
|
|
560
|
+
this.validateShowGroupTitle(this.showGroupTitle);
|
|
561
|
+
this.validateType(this.type);
|
|
562
|
+
this.validateLimit(this.limit);
|
|
563
|
+
this.validateThereOf(this.thereof);
|
|
564
|
+
this.validatePartOf(this.partof);
|
|
565
|
+
this.validateOrderDirection(this.orderDirection);
|
|
566
|
+
this.validateOrderList(this.order);
|
|
567
|
+
this.validateDataFormatDigitsDecimal(this.dataFormatDigitsDecimal);
|
|
568
|
+
this.validateDateFormatDigitsPercent(this.dataFormatDigitsPercent);
|
|
569
|
+
this.validateCategoryWidth(this.categoryWidth);
|
|
570
|
+
this.validateMeasureType(this.measureType);
|
|
571
|
+
this.validateMeasureScale(this.measureScale);
|
|
572
|
+
this.validateColumnThereOf(this.columnthereof);
|
|
573
|
+
this.validateShowMeasureScale(this.showMeasureScale);
|
|
574
|
+
this.validateBarColumns(this.barColumns);
|
|
575
|
+
this.validateUnitScaling(this.unitScaling);
|
|
576
|
+
this.validatePercentageScaling(this.percentageScaling);
|
|
577
|
+
this.validateScaling(this.scale);
|
|
578
|
+
}
|
|
579
|
+
disconnectedCallback() {
|
|
580
|
+
this.unsubscribe();
|
|
581
|
+
}
|
|
582
|
+
componentDidRender() {
|
|
583
|
+
var _a, _b;
|
|
584
|
+
const { mode } = parseScaling(this.scale);
|
|
585
|
+
// Only auto-scale for 'auto' and 'empty' (blank) modes
|
|
586
|
+
if (mode !== "auto" && mode !== "empty") {
|
|
587
|
+
this._autoScaleGuard = false;
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
// Skip re-measurement after the state-triggered re-render
|
|
591
|
+
if (this._autoScaleGuard) {
|
|
592
|
+
this._autoScaleGuard = false;
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
const host = this.element;
|
|
596
|
+
const { width: parentWidth } = getParentDimensions(host);
|
|
597
|
+
if (parentWidth <= 0)
|
|
598
|
+
return;
|
|
599
|
+
// Measure at base (unscaled) font size to get true content width.
|
|
600
|
+
// This avoids the oscillation where scaled-down content fits → reset
|
|
601
|
+
// to 1 → overflows → scale down → fits → …
|
|
602
|
+
const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
603
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
|
|
604
|
+
// Reading scrollWidth forces a synchronous reflow at base size
|
|
605
|
+
const div = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("div");
|
|
606
|
+
const unscaledWidth = (_b = div === null || div === void 0 ? void 0 : div.scrollWidth) !== null && _b !== void 0 ? _b : host.scrollWidth;
|
|
607
|
+
if (unscaledWidth <= parentWidth + 1) {
|
|
608
|
+
// Content fits at base size — no scaling needed
|
|
609
|
+
this.errors.remove("AUTO_scale");
|
|
610
|
+
if (this.appliedScaleFactor !== 1) {
|
|
611
|
+
this._autoScaleGuard = true;
|
|
612
|
+
this.appliedScaleFactor = 1;
|
|
613
|
+
}
|
|
614
|
+
return;
|
|
615
|
+
}
|
|
616
|
+
// Subtract 1px to account for sub-pixel rounding after scaling,
|
|
617
|
+
// preventing the right edge from being clipped by overflow:hidden.
|
|
618
|
+
const computedFactor = (parentWidth - 1) / unscaledWidth;
|
|
619
|
+
// Apply immediately via CSS var for smooth visual (before state re-render)
|
|
620
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
|
|
621
|
+
if (mode === "empty") {
|
|
622
|
+
this.errors.addOrReplace({
|
|
623
|
+
id: "AUTO_scale",
|
|
624
|
+
type: "warning",
|
|
625
|
+
message: `Auto-scaled table by factor ${computedFactor.toFixed(3)}`,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
this.errors.remove("AUTO_scale");
|
|
630
|
+
}
|
|
631
|
+
// Update state so bar charts re-render at the new scale
|
|
632
|
+
if (Math.abs(computedFactor - this.appliedScaleFactor) > 0.001) {
|
|
633
|
+
this._autoScaleGuard = true;
|
|
634
|
+
this.appliedScaleFactor = computedFactor;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
prepareDataFormat() {
|
|
638
|
+
var _a;
|
|
639
|
+
return DataFormat[(_a = this.dataFormat) === null || _a === void 0 ? void 0 : _a.toUpperCase()];
|
|
640
|
+
}
|
|
641
|
+
prepareGrouped() {
|
|
642
|
+
return this.grouped === "true";
|
|
643
|
+
}
|
|
644
|
+
prepareShowGroupTitle() {
|
|
645
|
+
return this.showGroupTitle === "true";
|
|
646
|
+
}
|
|
647
|
+
prepareTableType() {
|
|
648
|
+
var _a;
|
|
649
|
+
return TableType[(_a = this.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()];
|
|
650
|
+
}
|
|
651
|
+
prepareLimit() {
|
|
652
|
+
return Math.floor(Number(this.limit) || 0);
|
|
653
|
+
}
|
|
654
|
+
prepareThereOf() {
|
|
655
|
+
if (this.thereof == null || this.thereof.trim() === "") {
|
|
656
|
+
return [];
|
|
657
|
+
}
|
|
658
|
+
return JSON.parse(this.thereof);
|
|
659
|
+
}
|
|
660
|
+
preparePartOf() {
|
|
661
|
+
if (this.partof == null || this.partof.trim() === "") {
|
|
662
|
+
return [];
|
|
663
|
+
}
|
|
664
|
+
return JSON.parse(this.partof);
|
|
665
|
+
}
|
|
666
|
+
prepareOrder() {
|
|
667
|
+
var _a, _b, _c;
|
|
668
|
+
const isAuto = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
669
|
+
let orderStr = this.order;
|
|
670
|
+
if (isAuto && ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedOrder)) {
|
|
671
|
+
orderStr = this.datasetMeta.suggestedOrder;
|
|
672
|
+
}
|
|
673
|
+
const tableOrder = {
|
|
674
|
+
hierarchy: orderStr.split(",").map((entry) => OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
|
|
675
|
+
direction: OrderDirection[(_c = this.orderDirection) === null || _c === void 0 ? void 0 : _c.toUpperCase()],
|
|
676
|
+
};
|
|
677
|
+
return tableOrder;
|
|
678
|
+
}
|
|
679
|
+
prepareI18nMode() {
|
|
680
|
+
return I18nMode.META;
|
|
681
|
+
}
|
|
682
|
+
prepareI18n() {
|
|
683
|
+
const i18nMetaLabelsLocal = ["in", "category", "operation", "there_of", "part_of", "SUM_TOTAL"];
|
|
684
|
+
const i18nMetaLabelsGlobal = globalLabelKeys;
|
|
685
|
+
// system
|
|
686
|
+
const i18nMapLocal = new Map(i18nMetaLabelsLocal.map((key) => [key, this.t(".".concat(key))]));
|
|
687
|
+
const i18nMapGlobal = new Map(i18nMetaLabelsGlobal.map((key) => [key, this.t("global.".concat(key))]));
|
|
688
|
+
return new Map([...i18nMapGlobal.entries(), ...i18nMapLocal.entries()]);
|
|
689
|
+
}
|
|
690
|
+
prepareDataFormatDigits() {
|
|
691
|
+
const formatDigits = {
|
|
692
|
+
percent: this.dataFormatDigitsPercent,
|
|
693
|
+
decimal: this.dataFormatDigitsDecimal,
|
|
694
|
+
};
|
|
695
|
+
return formatDigits;
|
|
696
|
+
}
|
|
697
|
+
prepareScenarios() {
|
|
698
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
699
|
+
const isAuto = ((_a = this.scenarios) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
700
|
+
if ((isBlankInput(this.scenarios) || isAuto) && isBlankInput(this.variances)) {
|
|
701
|
+
if (((_c = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.availableScenarios) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
702
|
+
if (!isAuto) {
|
|
703
|
+
this.errors.addOrReplace({
|
|
704
|
+
id: "AUTO_scenarios",
|
|
705
|
+
type: "warning",
|
|
706
|
+
message: `scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`,
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
this.errors.remove("AUTO_scenarios");
|
|
711
|
+
}
|
|
712
|
+
return this.datasetMeta.availableScenarios;
|
|
713
|
+
}
|
|
714
|
+
return [];
|
|
715
|
+
}
|
|
716
|
+
let scenarios = [];
|
|
717
|
+
if (isAuto || isBlankInput(this.scenarios)) {
|
|
718
|
+
if (((_e = (_d = this.datasetMeta) === null || _d === void 0 ? void 0 : _d.availableScenarios) === null || _e === void 0 ? void 0 : _e.length) > 0) {
|
|
719
|
+
if (!isAuto) {
|
|
720
|
+
this.errors.addOrReplace({
|
|
721
|
+
id: "AUTO_scenarios",
|
|
722
|
+
type: "warning",
|
|
723
|
+
message: `scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`,
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
else {
|
|
727
|
+
this.errors.remove("AUTO_scenarios");
|
|
728
|
+
}
|
|
729
|
+
scenarios = scenarios.concat(this.datasetMeta.availableScenarios);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
else {
|
|
733
|
+
this.errors.remove("AUTO_scenarios");
|
|
734
|
+
scenarios = scenarios.concat((_f = this.scenarios) === null || _f === void 0 ? void 0 : _f.split(","));
|
|
735
|
+
}
|
|
736
|
+
if (((_g = this.variances) === null || _g === void 0 ? void 0 : _g.trim().length) > 0) {
|
|
737
|
+
scenarios = scenarios.concat((_h = this.variances) === null || _h === void 0 ? void 0 : _h.split(","));
|
|
738
|
+
}
|
|
739
|
+
return scenarios.map((entry) => entry.trim());
|
|
740
|
+
}
|
|
741
|
+
prepareCategoryWidth() {
|
|
742
|
+
var _a;
|
|
743
|
+
if (isBlankInput(this.categoryWidth)) {
|
|
744
|
+
return TableCategoryWidth.INF;
|
|
745
|
+
}
|
|
746
|
+
return TableCategoryWidth[(_a = this.categoryWidth) === null || _a === void 0 ? void 0 : _a.toUpperCase()];
|
|
747
|
+
}
|
|
748
|
+
prepareMeasureScale() {
|
|
749
|
+
if (isBlankInput(this.measureScale)) {
|
|
750
|
+
return "GREATEST";
|
|
751
|
+
}
|
|
752
|
+
if (["_", "k", "M", "G", "T", "P", "E", "Z", "Y", "m", "μ", "n", "p", "P", "f", "a", "z", "y"].includes(this.measureScale.trim())) {
|
|
753
|
+
return this.measureScale.trim();
|
|
754
|
+
}
|
|
755
|
+
if (this.measureScale.trim().toUpperCase() === "LEAST") {
|
|
756
|
+
return this.measureScale.trim();
|
|
757
|
+
}
|
|
758
|
+
return "GREATEST";
|
|
759
|
+
}
|
|
760
|
+
prepareMeasureType() {
|
|
761
|
+
var _a;
|
|
762
|
+
if (isBlankInput(this.measureType)) {
|
|
763
|
+
return MeasureType.VOLUME;
|
|
764
|
+
}
|
|
765
|
+
return MeasureType[(_a = this.measureType) === null || _a === void 0 ? void 0 : _a.toUpperCase()];
|
|
766
|
+
}
|
|
767
|
+
prepareColumnThereOf() {
|
|
768
|
+
if (this.columnthereof == null || this.columnthereof.trim() === "") {
|
|
769
|
+
return new Map();
|
|
770
|
+
}
|
|
771
|
+
const parsedString = JSON.parse(this.columnthereof);
|
|
772
|
+
const map = new Map();
|
|
773
|
+
for (const [_key, value] of Object.entries(parsedString)) {
|
|
774
|
+
if (map.has(value["scenario"]) === false) {
|
|
775
|
+
map.set(value["scenario"], []);
|
|
776
|
+
}
|
|
777
|
+
map.get(value["scenario"]).push(value);
|
|
778
|
+
}
|
|
779
|
+
return map;
|
|
780
|
+
}
|
|
781
|
+
prepareTableTitle() {
|
|
782
|
+
if (this.tableTitle === "" || this.tableTitle == null) {
|
|
783
|
+
return "SUM_TOTAL";
|
|
784
|
+
}
|
|
785
|
+
return this.tableTitle;
|
|
786
|
+
}
|
|
787
|
+
prepareShowMeasureScale() {
|
|
788
|
+
return this.showMeasureScale === "true";
|
|
789
|
+
}
|
|
790
|
+
prepareMeasureUnit() {
|
|
791
|
+
if (this.measureUnit === "" || this.measureUnit == null) {
|
|
792
|
+
return "";
|
|
793
|
+
}
|
|
794
|
+
return this.measureUnit;
|
|
795
|
+
}
|
|
796
|
+
prepareFilter() {
|
|
797
|
+
if (this.filter.length === 0) {
|
|
798
|
+
return "";
|
|
799
|
+
}
|
|
800
|
+
return this.filter;
|
|
801
|
+
}
|
|
802
|
+
prepareBarColumns() {
|
|
803
|
+
if (isBlankInput(this.barColumns)) {
|
|
804
|
+
return [];
|
|
805
|
+
}
|
|
806
|
+
return this.barColumns.split(",").map((col) => col.trim());
|
|
807
|
+
}
|
|
808
|
+
prepareUnitScaling() {
|
|
809
|
+
if (this.pixelPerUnitGroupMap.has(this.unitScaling)) {
|
|
810
|
+
return this.pixelPerUnitGroupMap.get(this.unitScaling);
|
|
811
|
+
}
|
|
812
|
+
return Number(this.unitScaling);
|
|
813
|
+
}
|
|
814
|
+
preparePercentageScaling() {
|
|
815
|
+
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
816
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
817
|
+
}
|
|
818
|
+
return Number(this.percentageScaling);
|
|
819
|
+
}
|
|
820
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
821
|
+
getDataStructure() {
|
|
822
|
+
const dataSetStructure = {
|
|
823
|
+
ITableDataRow: {
|
|
824
|
+
setName: { type: "string", isOptional: false, description: "" },
|
|
825
|
+
date: { type: "string", isOptional: false, description: "" },
|
|
826
|
+
operation: { type: "string", isOptional: false, description: "" },
|
|
827
|
+
rowGroup: { type: "string", isOptional: false, description: "" },
|
|
828
|
+
rowGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
829
|
+
category: { type: "string", isOptional: false, description: "" },
|
|
830
|
+
categoryIndex: { type: "number", isOptional: false, description: "" },
|
|
831
|
+
subCategory: { type: "string", isOptional: false, description: "" },
|
|
832
|
+
subCategoryIndex: { type: "number", isOptional: false, description: "" },
|
|
833
|
+
columnGroup: { type: "string", isOptional: false, description: "" },
|
|
834
|
+
columnGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
835
|
+
columnSubGroup: { type: "string", isOptional: false, description: "" },
|
|
836
|
+
columnSubGroupIndex: { type: "number", isOptional: false, description: "" },
|
|
837
|
+
ac1: { type: "number", isOptional: false, description: "" },
|
|
838
|
+
ac2: { type: "number", isOptional: false, description: "" },
|
|
839
|
+
ac3: { type: "number", isOptional: false, description: "" },
|
|
840
|
+
ac4: { type: "number", isOptional: false, description: "" },
|
|
841
|
+
pp1: { type: "number", isOptional: false, description: "" },
|
|
842
|
+
pp2: { type: "number", isOptional: false, description: "" },
|
|
843
|
+
pp3: { type: "number", isOptional: false, description: "" },
|
|
844
|
+
pp4: { type: "number", isOptional: false, description: "" },
|
|
845
|
+
fc1: { type: "number", isOptional: false, description: "" },
|
|
846
|
+
fc2: { type: "number", isOptional: false, description: "" },
|
|
847
|
+
fc3: { type: "number", isOptional: false, description: "" },
|
|
848
|
+
fc4: { type: "number", isOptional: false, description: "" },
|
|
849
|
+
pl1: { type: "number", isOptional: false, description: "" },
|
|
850
|
+
pl2: { type: "number", isOptional: false, description: "" },
|
|
851
|
+
pl3: { type: "number", isOptional: false, description: "" },
|
|
852
|
+
pl4: { type: "number", isOptional: false, description: "" },
|
|
853
|
+
},
|
|
854
|
+
};
|
|
855
|
+
return dataSetStructure;
|
|
856
|
+
}
|
|
857
|
+
getEffectiveScaleFactor() {
|
|
858
|
+
const { mode, factor } = parseScaling(this.scale);
|
|
859
|
+
if (mode === "factor")
|
|
860
|
+
return factor;
|
|
861
|
+
if (mode === "auto" || mode === "empty")
|
|
862
|
+
return this.appliedScaleFactor;
|
|
863
|
+
return 1;
|
|
864
|
+
}
|
|
865
|
+
getFontStyles() {
|
|
866
|
+
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
867
|
+
return this.componentStyle(($) => {
|
|
868
|
+
var _a, _b, _c, _d;
|
|
869
|
+
const baseFontSize = ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333;
|
|
870
|
+
return {
|
|
871
|
+
"--bn-font-family": ((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontFamily"]) || "'Noto Sans', sans-serif",
|
|
872
|
+
"--bn-font-size": `${baseFontSize * effectiveFactor}px`,
|
|
873
|
+
"--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
|
|
874
|
+
"--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
|
|
875
|
+
};
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
render() {
|
|
879
|
+
const fontStyles = this.getFontStyles();
|
|
880
|
+
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
881
|
+
return (h(Host, { key: 'ff1e93fe32fef547dfcd092016cbde05a82e54ce', style: fontStyles }, h("div", { key: '54a4539d8f67b50ed96036e66492a5a280cef987' }, h("ibcs-table", { key: '54a47b6ffd1ca979583b79339bfe19cbbaa00ce8', data: this.data, "table-title": this.prepareTableTitle(), scenarios: this.prepareScenarios(), "scenarios-data-format": this.prepareDataFormat(), grouped: this.prepareGrouped(), limit: this.prepareLimit(), showGroupTitle: this.prepareShowGroupTitle(), thereof: this.prepareThereOf(), partof: this.preparePartOf(), order: this.prepareOrder(), categorythereof: this.prepareColumnThereOf(), type: this.prepareTableType(), "category-width": this.prepareCategoryWidth(), dataFormatDigits: this.prepareDataFormatDigits(), i18n: this.prepareI18n(), "i18n-mode": this.prepareI18nMode(), "measure-scale": this.prepareMeasureScale(), "measure-type": this.prepareMeasureType(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(), filter: this.prepareFilter(), barColumns: this.prepareBarColumns(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), scaleFactor: effectiveFactor }))));
|
|
882
|
+
}
|
|
883
|
+
static get is() { return "bn-table"; }
|
|
884
|
+
static get encapsulation() { return "shadow"; }
|
|
885
|
+
static get originalStyleUrls() {
|
|
886
|
+
return {
|
|
887
|
+
"$": ["bn-table.css"]
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
static get styleUrls() {
|
|
891
|
+
return {
|
|
892
|
+
"$": ["bn-table.css"]
|
|
893
|
+
};
|
|
894
|
+
}
|
|
895
|
+
static get properties() {
|
|
896
|
+
return {
|
|
897
|
+
"scale": {
|
|
898
|
+
"type": "string",
|
|
899
|
+
"mutable": false,
|
|
900
|
+
"complexType": {
|
|
901
|
+
"original": "string",
|
|
902
|
+
"resolved": "string",
|
|
903
|
+
"references": {}
|
|
904
|
+
},
|
|
905
|
+
"required": false,
|
|
906
|
+
"optional": true,
|
|
907
|
+
"docs": {
|
|
908
|
+
"tags": [{
|
|
909
|
+
"name": "example",
|
|
910
|
+
"text": "// Auto-scale to parent (silent)\n<bn-table scale=\"auto\" ...></bn-table>\n\n// Fixed 50 % reduction\n<bn-table scale=\"0.5\" ...></bn-table>\n\n// Double size\n<bn-table scale=\"2\" ...></bn-table>\n\n// No scaling \u2014 always render at base font size\n<bn-table scale=\"none\" ...></bn-table>"
|
|
911
|
+
}],
|
|
912
|
+
"text": "Controls proportional scaling of the entire table relative to the\navailable parent width. All visual dimensions scale together: font size,\nem-based spacing/padding, SVG bar-chart widths, pin lengths, dot radii,\npattern fills, axis strokes, and label offsets.\n\nScaling is driven by a single factor applied to the base font size\n(`global.fontSizePx` from the component-style store, default 13.3333 px).\nBecause the table's SCSS uses `em` units for padding, borders, and\ncolumn widths, changing the font size cascades to all layout dimensions.\nSVG elements (bars, pins, patterns) receive the factor via the\n`scaleFactor` prop on `ibcs-table` and multiply every pixel constant\nby it, so they stay proportional to the surrounding text.\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` |\n\n**Auto-scale algorithm** (modes `\"\"` and `\"auto\"`):\n1. After each render, the CSS variable `--bn-font-size` is temporarily\n reset to the unscaled base size and a synchronous reflow is forced.\n2. The unscaled `scrollWidth` of the table container is compared against\n the parent's content-box width (via `getParentDimensions`).\n3. If the table overflows, `factor = parentWidth / unscaledScrollWidth`\n is computed and applied to both the CSS variable and the\n `appliedScaleFactor` state (which re-renders the SVG charts).\n4. A guard flag (`_autoScaleGuard`) prevents the subsequent\n state-triggered re-render from re-measuring, avoiding an infinite\n measure \u2192 scale \u2192 fits \u2192 reset \u2192 overflow loop.\n\nInvalid values (negative numbers, non-numeric strings that are not\n`\"none\"` or `\"auto\"`) fall back to the default behaviour (auto + warning)\nand emit an `ERR_scale` warning."
|
|
913
|
+
},
|
|
914
|
+
"getter": false,
|
|
915
|
+
"setter": false,
|
|
916
|
+
"reflect": false,
|
|
917
|
+
"attribute": "scale"
|
|
918
|
+
},
|
|
919
|
+
"tableTitle": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"mutable": false,
|
|
922
|
+
"complexType": {
|
|
923
|
+
"original": "string",
|
|
924
|
+
"resolved": "string",
|
|
925
|
+
"references": {}
|
|
926
|
+
},
|
|
927
|
+
"required": false,
|
|
928
|
+
"optional": false,
|
|
929
|
+
"docs": {
|
|
930
|
+
"tags": [],
|
|
931
|
+
"text": "A not mundane tile which should describes the shown data."
|
|
932
|
+
},
|
|
933
|
+
"getter": false,
|
|
934
|
+
"setter": false,
|
|
935
|
+
"reflect": false,
|
|
936
|
+
"attribute": "table-title",
|
|
937
|
+
"defaultValue": "\"\""
|
|
938
|
+
},
|
|
939
|
+
"filter": {
|
|
940
|
+
"type": "string",
|
|
941
|
+
"mutable": false,
|
|
942
|
+
"complexType": {
|
|
943
|
+
"original": "string",
|
|
944
|
+
"resolved": "string",
|
|
945
|
+
"references": {}
|
|
946
|
+
},
|
|
947
|
+
"required": false,
|
|
948
|
+
"optional": false,
|
|
949
|
+
"docs": {
|
|
950
|
+
"tags": [],
|
|
951
|
+
"text": "AlaSQL WHERE clause fragment injected into the data query to filter\nrows before rendering (e.g. `\"category = 'Sales'\"`)."
|
|
952
|
+
},
|
|
953
|
+
"getter": false,
|
|
954
|
+
"setter": false,
|
|
955
|
+
"reflect": false,
|
|
956
|
+
"attribute": "filter",
|
|
957
|
+
"defaultValue": "\"\""
|
|
958
|
+
},
|
|
959
|
+
"measureUnit": {
|
|
960
|
+
"type": "string",
|
|
961
|
+
"mutable": false,
|
|
962
|
+
"complexType": {
|
|
963
|
+
"original": "string",
|
|
964
|
+
"resolved": "string",
|
|
965
|
+
"references": {}
|
|
966
|
+
},
|
|
967
|
+
"required": false,
|
|
968
|
+
"optional": false,
|
|
969
|
+
"docs": {
|
|
970
|
+
"tags": [],
|
|
971
|
+
"text": "measureUnit displayed in table."
|
|
972
|
+
},
|
|
973
|
+
"getter": false,
|
|
974
|
+
"setter": false,
|
|
975
|
+
"reflect": false,
|
|
976
|
+
"attribute": "measure-unit",
|
|
977
|
+
"defaultValue": "\"\""
|
|
978
|
+
},
|
|
979
|
+
"scenarios": {
|
|
980
|
+
"type": "string",
|
|
981
|
+
"mutable": false,
|
|
982
|
+
"complexType": {
|
|
983
|
+
"original": "string",
|
|
984
|
+
"resolved": "string",
|
|
985
|
+
"references": {}
|
|
986
|
+
},
|
|
987
|
+
"required": false,
|
|
988
|
+
"optional": false,
|
|
989
|
+
"docs": {
|
|
990
|
+
"tags": [],
|
|
991
|
+
"text": "List of scenarios displayed in card header.\n<br /><br />\nIf scenarios is empty string (`''` or `null`) the scenarios are omitted\n<br /><br />\nvalues:<br /> ```ac // fc // py // pl // null // auto```\n<br /><br />\nWhen set to ```auto```, scenarios are detected from the dataset silently.\nWhen left blank (and variances are also blank), scenarios are detected from the dataset with a warning."
|
|
992
|
+
},
|
|
993
|
+
"getter": false,
|
|
994
|
+
"setter": false,
|
|
995
|
+
"reflect": false,
|
|
996
|
+
"attribute": "scenarios"
|
|
997
|
+
},
|
|
998
|
+
"variances": {
|
|
999
|
+
"type": "string",
|
|
1000
|
+
"mutable": false,
|
|
1001
|
+
"complexType": {
|
|
1002
|
+
"original": "string",
|
|
1003
|
+
"resolved": "string",
|
|
1004
|
+
"references": {}
|
|
1005
|
+
},
|
|
1006
|
+
"required": false,
|
|
1007
|
+
"optional": false,
|
|
1008
|
+
"docs": {
|
|
1009
|
+
"tags": [],
|
|
1010
|
+
"text": "<br /> <br />\nList of Variances\nThe additonal variances which\nare calculated form the given scenarios.\nthe scenarios used in the variances have also\nbe defined in the *scenarios* property.\n<br /> <br />\nthe variance is defiend as (Scenario A - ScenarioB)\nneu. neg and pos post fix defines which value is *good*\na negative or a positive value.\n<br /> <br />\nif empty variance charts are hidden\n<br /> <br />\neach variance creates a chart\n<br /> <br />\npattern:<br /> ```d<scenarioB>_<scenarioA>_[pos/neg/neu]```"
|
|
1011
|
+
},
|
|
1012
|
+
"getter": false,
|
|
1013
|
+
"setter": false,
|
|
1014
|
+
"reflect": false,
|
|
1015
|
+
"attribute": "variances"
|
|
1016
|
+
},
|
|
1017
|
+
"barColumns": {
|
|
1018
|
+
"type": "string",
|
|
1019
|
+
"mutable": false,
|
|
1020
|
+
"complexType": {
|
|
1021
|
+
"original": "string",
|
|
1022
|
+
"resolved": "string",
|
|
1023
|
+
"references": {}
|
|
1024
|
+
},
|
|
1025
|
+
"required": false,
|
|
1026
|
+
"optional": false,
|
|
1027
|
+
"docs": {
|
|
1028
|
+
"tags": [],
|
|
1029
|
+
"text": "List of variance column names to render as bar charts instead of numbers.\n<br /><br />\nAbsolute variances (d_*) render as horizontal bar charts.\nRelative variances (dr_*) render as pin/dot charts.\n<br /><br />\nexample:<br />\n```dac1_pp1_pos,drac1_pp1_pos```"
|
|
1030
|
+
},
|
|
1031
|
+
"getter": false,
|
|
1032
|
+
"setter": false,
|
|
1033
|
+
"reflect": false,
|
|
1034
|
+
"attribute": "bar-columns"
|
|
1035
|
+
},
|
|
1036
|
+
"unitScaling": {
|
|
1037
|
+
"type": "any",
|
|
1038
|
+
"mutable": false,
|
|
1039
|
+
"complexType": {
|
|
1040
|
+
"original": "string | number",
|
|
1041
|
+
"resolved": "number | string",
|
|
1042
|
+
"references": {}
|
|
1043
|
+
},
|
|
1044
|
+
"required": false,
|
|
1045
|
+
"optional": false,
|
|
1046
|
+
"docs": {
|
|
1047
|
+
"tags": [],
|
|
1048
|
+
"text": "Scaling for absolute variance bar charts (\u0394PY).\n<br /><br />\nName of the 'scaling-group' which the table uses.\nScaling groups are maintained globally.\n<br /><br />\nAlternatively a number which represents pixels per unit of measure.\n<br /><br />\nExample: 0.01 means 1000 units = 10 pixels width.\n<br /><br />\nDefault: 0.01"
|
|
1049
|
+
},
|
|
1050
|
+
"getter": false,
|
|
1051
|
+
"setter": false,
|
|
1052
|
+
"reflect": false,
|
|
1053
|
+
"attribute": "unit-scaling",
|
|
1054
|
+
"defaultValue": "0.01"
|
|
1055
|
+
},
|
|
1056
|
+
"percentageScaling": {
|
|
1057
|
+
"type": "any",
|
|
1058
|
+
"mutable": false,
|
|
1059
|
+
"complexType": {
|
|
1060
|
+
"original": "string | number",
|
|
1061
|
+
"resolved": "number | string",
|
|
1062
|
+
"references": {}
|
|
1063
|
+
},
|
|
1064
|
+
"required": false,
|
|
1065
|
+
"optional": false,
|
|
1066
|
+
"docs": {
|
|
1067
|
+
"tags": [],
|
|
1068
|
+
"text": "Scaling for relative variance pin charts (\u0394PY%).\n<br /><br />\nName of the 'scaling-group' which the table uses.\nScaling groups are maintained globally.\n<br /><br />\nAlternatively a number which represents pixels per percentage point.\n<br /><br />\nExample: 0.5 means 100% = 50 pixels width.\n<br /><br />\nDefault: 0.5"
|
|
1069
|
+
},
|
|
1070
|
+
"getter": false,
|
|
1071
|
+
"setter": false,
|
|
1072
|
+
"reflect": false,
|
|
1073
|
+
"attribute": "percentage-scaling",
|
|
1074
|
+
"defaultValue": "0.5"
|
|
1075
|
+
},
|
|
1076
|
+
"dataFormat": {
|
|
1077
|
+
"type": "string",
|
|
1078
|
+
"mutable": false,
|
|
1079
|
+
"complexType": {
|
|
1080
|
+
"original": "string",
|
|
1081
|
+
"resolved": "string",
|
|
1082
|
+
"references": {}
|
|
1083
|
+
},
|
|
1084
|
+
"required": false,
|
|
1085
|
+
"optional": false,
|
|
1086
|
+
"docs": {
|
|
1087
|
+
"tags": [],
|
|
1088
|
+
"text": "Defines the data unit type of the tables data.\n<br /><br />\nIf percent is chosen all data values are converted into percent\n(0.02 -> 2%)\n<br /><br />\nvalues: <br />\n```percent // decimal```"
|
|
1089
|
+
},
|
|
1090
|
+
"getter": false,
|
|
1091
|
+
"setter": false,
|
|
1092
|
+
"reflect": false,
|
|
1093
|
+
"attribute": "data-format",
|
|
1094
|
+
"defaultValue": "\"decimal\""
|
|
1095
|
+
},
|
|
1096
|
+
"grouped": {
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
"mutable": false,
|
|
1099
|
+
"complexType": {
|
|
1100
|
+
"original": "string",
|
|
1101
|
+
"resolved": "string",
|
|
1102
|
+
"references": {}
|
|
1103
|
+
},
|
|
1104
|
+
"required": false,
|
|
1105
|
+
"optional": false,
|
|
1106
|
+
"docs": {
|
|
1107
|
+
"tags": [],
|
|
1108
|
+
"text": "Toggles of data should be grouped by\n'rowgroup'.\n<br /><br />\nvalues: <br />\n```true // false```"
|
|
1109
|
+
},
|
|
1110
|
+
"getter": false,
|
|
1111
|
+
"setter": false,
|
|
1112
|
+
"reflect": false,
|
|
1113
|
+
"attribute": "grouped",
|
|
1114
|
+
"defaultValue": "\"false\""
|
|
1115
|
+
},
|
|
1116
|
+
"showMeasureScale": {
|
|
1117
|
+
"type": "string",
|
|
1118
|
+
"mutable": false,
|
|
1119
|
+
"complexType": {
|
|
1120
|
+
"original": "string",
|
|
1121
|
+
"resolved": "string",
|
|
1122
|
+
"references": {}
|
|
1123
|
+
},
|
|
1124
|
+
"required": false,
|
|
1125
|
+
"optional": false,
|
|
1126
|
+
"docs": {
|
|
1127
|
+
"tags": [],
|
|
1128
|
+
"text": "Toggles display of measure units in table header\n<br /><br />\nvalues: <br />\n```true // false```"
|
|
1129
|
+
},
|
|
1130
|
+
"getter": false,
|
|
1131
|
+
"setter": false,
|
|
1132
|
+
"reflect": false,
|
|
1133
|
+
"attribute": "show-measure-scale",
|
|
1134
|
+
"defaultValue": "\"false\""
|
|
1135
|
+
},
|
|
1136
|
+
"showGroupTitle": {
|
|
1137
|
+
"type": "string",
|
|
1138
|
+
"mutable": false,
|
|
1139
|
+
"complexType": {
|
|
1140
|
+
"original": "string",
|
|
1141
|
+
"resolved": "string",
|
|
1142
|
+
"references": {}
|
|
1143
|
+
},
|
|
1144
|
+
"required": false,
|
|
1145
|
+
"optional": false,
|
|
1146
|
+
"docs": {
|
|
1147
|
+
"tags": [],
|
|
1148
|
+
"text": "Toggles a title header for each (row-)group\nthe title header value is found set by 'rowgroup'\n<br /><br />\nvalues: <br />\n```true // false```"
|
|
1149
|
+
},
|
|
1150
|
+
"getter": false,
|
|
1151
|
+
"setter": false,
|
|
1152
|
+
"reflect": false,
|
|
1153
|
+
"attribute": "show-group-title",
|
|
1154
|
+
"defaultValue": "\"true\""
|
|
1155
|
+
},
|
|
1156
|
+
"type": {
|
|
1157
|
+
"type": "string",
|
|
1158
|
+
"mutable": false,
|
|
1159
|
+
"complexType": {
|
|
1160
|
+
"original": "string",
|
|
1161
|
+
"resolved": "string",
|
|
1162
|
+
"references": {}
|
|
1163
|
+
},
|
|
1164
|
+
"required": false,
|
|
1165
|
+
"optional": false,
|
|
1166
|
+
"docs": {
|
|
1167
|
+
"tags": [],
|
|
1168
|
+
"text": "Set the table type\n<br /><br />\nvalues: <br />\n```list // sum // opt // sumnototal // optnototal```"
|
|
1169
|
+
},
|
|
1170
|
+
"getter": false,
|
|
1171
|
+
"setter": false,
|
|
1172
|
+
"reflect": false,
|
|
1173
|
+
"attribute": "type",
|
|
1174
|
+
"defaultValue": "\"list\""
|
|
1175
|
+
},
|
|
1176
|
+
"limit": {
|
|
1177
|
+
"type": "number",
|
|
1178
|
+
"mutable": false,
|
|
1179
|
+
"complexType": {
|
|
1180
|
+
"original": "number",
|
|
1181
|
+
"resolved": "number",
|
|
1182
|
+
"references": {}
|
|
1183
|
+
},
|
|
1184
|
+
"required": false,
|
|
1185
|
+
"optional": false,
|
|
1186
|
+
"docs": {
|
|
1187
|
+
"tags": [],
|
|
1188
|
+
"text": "Set the maximum number of rows for each\ngroup. The value 0 means *no limit*\n<br /><br />\nrows wich where cut by the limit are cumulated as REST"
|
|
1189
|
+
},
|
|
1190
|
+
"getter": false,
|
|
1191
|
+
"setter": false,
|
|
1192
|
+
"reflect": false,
|
|
1193
|
+
"attribute": "limit",
|
|
1194
|
+
"defaultValue": "0"
|
|
1195
|
+
},
|
|
1196
|
+
"thereof": {
|
|
1197
|
+
"type": "string",
|
|
1198
|
+
"mutable": false,
|
|
1199
|
+
"complexType": {
|
|
1200
|
+
"original": "string",
|
|
1201
|
+
"resolved": "string",
|
|
1202
|
+
"references": {}
|
|
1203
|
+
},
|
|
1204
|
+
"required": false,
|
|
1205
|
+
"optional": false,
|
|
1206
|
+
"docs": {
|
|
1207
|
+
"tags": [],
|
|
1208
|
+
"text": "Stringified Array of drilldown Objects {\n \"rowGroup\": string,<br />\n \"category\": string,<br />\n \"subCategory\": string,<br />\n },<br /><br />\nrowgroup, categroy defines the location of the drill\nsubcategory is the displayed label of the data row\n<br /><br />\nexample:<br />\n```[{\n\"rowGroup\":\"Umsatz\",\n\"category\": \"Applications\",\n\"subCategory\": \"Applications-A\",\n},]```"
|
|
1209
|
+
},
|
|
1210
|
+
"getter": false,
|
|
1211
|
+
"setter": false,
|
|
1212
|
+
"reflect": false,
|
|
1213
|
+
"attribute": "thereof",
|
|
1214
|
+
"defaultValue": "\"[]\""
|
|
1215
|
+
},
|
|
1216
|
+
"partof": {
|
|
1217
|
+
"type": "string",
|
|
1218
|
+
"mutable": false,
|
|
1219
|
+
"complexType": {
|
|
1220
|
+
"original": "string",
|
|
1221
|
+
"resolved": "string",
|
|
1222
|
+
"references": {}
|
|
1223
|
+
},
|
|
1224
|
+
"required": false,
|
|
1225
|
+
"optional": false,
|
|
1226
|
+
"docs": {
|
|
1227
|
+
"tags": [],
|
|
1228
|
+
"text": "Stringified Array of Partof Objects <br />{<br />\n \"rowGroup\": string,<br />\n \"category\": string<br />\n },<br /><br />\nrowgroup, categroy defines the location of the drill\npercentage of category in rowgorup\n<br /><br />\nexample:<br />\n```[{\n\"rowGroups\":\"Umsatz\",\n\"category\": \"Applications\",\n},]```"
|
|
1229
|
+
},
|
|
1230
|
+
"getter": false,
|
|
1231
|
+
"setter": false,
|
|
1232
|
+
"reflect": false,
|
|
1233
|
+
"attribute": "partof",
|
|
1234
|
+
"defaultValue": "\"[]\""
|
|
1235
|
+
},
|
|
1236
|
+
"order": {
|
|
1237
|
+
"type": "string",
|
|
1238
|
+
"mutable": false,
|
|
1239
|
+
"complexType": {
|
|
1240
|
+
"original": "string",
|
|
1241
|
+
"resolved": "string",
|
|
1242
|
+
"references": {}
|
|
1243
|
+
},
|
|
1244
|
+
"required": false,
|
|
1245
|
+
"optional": false,
|
|
1246
|
+
"docs": {
|
|
1247
|
+
"tags": [],
|
|
1248
|
+
"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] // pp[1-4] // pl[1-4] // auto```\n<br /><br />\nWhen set to ```auto```, order is detected from the dataset silently."
|
|
1249
|
+
},
|
|
1250
|
+
"getter": false,
|
|
1251
|
+
"setter": false,
|
|
1252
|
+
"reflect": false,
|
|
1253
|
+
"attribute": "order",
|
|
1254
|
+
"defaultValue": "\"category\""
|
|
1255
|
+
},
|
|
1256
|
+
"orderDirection": {
|
|
1257
|
+
"type": "string",
|
|
1258
|
+
"mutable": false,
|
|
1259
|
+
"complexType": {
|
|
1260
|
+
"original": "string",
|
|
1261
|
+
"resolved": "string",
|
|
1262
|
+
"references": {}
|
|
1263
|
+
},
|
|
1264
|
+
"required": false,
|
|
1265
|
+
"optional": false,
|
|
1266
|
+
"docs": {
|
|
1267
|
+
"tags": [],
|
|
1268
|
+
"text": "Set sorting order direction\n<br /><br />\nvalues: <br />\n```asc // desc```"
|
|
1269
|
+
},
|
|
1270
|
+
"getter": false,
|
|
1271
|
+
"setter": false,
|
|
1272
|
+
"reflect": false,
|
|
1273
|
+
"attribute": "order-direction",
|
|
1274
|
+
"defaultValue": "\"asc\""
|
|
1275
|
+
},
|
|
1276
|
+
"measureType": {
|
|
1277
|
+
"type": "string",
|
|
1278
|
+
"mutable": false,
|
|
1279
|
+
"complexType": {
|
|
1280
|
+
"original": "string",
|
|
1281
|
+
"resolved": "string",
|
|
1282
|
+
"references": {}
|
|
1283
|
+
},
|
|
1284
|
+
"required": false,
|
|
1285
|
+
"optional": false,
|
|
1286
|
+
"docs": {
|
|
1287
|
+
"tags": [],
|
|
1288
|
+
"text": "Sets the Measure Type of the Table\nvolume is different displayed and interpreted as currency\nnames of siprefix are adapted.\n<br /><br />\nvalues: <br />\n```volume // currency```"
|
|
1289
|
+
},
|
|
1290
|
+
"getter": false,
|
|
1291
|
+
"setter": false,
|
|
1292
|
+
"reflect": false,
|
|
1293
|
+
"attribute": "measure-type",
|
|
1294
|
+
"defaultValue": "\"volume\""
|
|
1295
|
+
},
|
|
1296
|
+
"measureScale": {
|
|
1297
|
+
"type": "string",
|
|
1298
|
+
"mutable": false,
|
|
1299
|
+
"complexType": {
|
|
1300
|
+
"original": "string",
|
|
1301
|
+
"resolved": "string",
|
|
1302
|
+
"references": {}
|
|
1303
|
+
},
|
|
1304
|
+
"required": false,
|
|
1305
|
+
"optional": false,
|
|
1306
|
+
"docs": {
|
|
1307
|
+
"tags": [],
|
|
1308
|
+
"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."
|
|
1309
|
+
},
|
|
1310
|
+
"getter": false,
|
|
1311
|
+
"setter": false,
|
|
1312
|
+
"reflect": false,
|
|
1313
|
+
"attribute": "measure-scale",
|
|
1314
|
+
"defaultValue": "\"greatest\""
|
|
1315
|
+
},
|
|
1316
|
+
"dataFormatDigitsDecimal": {
|
|
1317
|
+
"type": "number",
|
|
1318
|
+
"mutable": false,
|
|
1319
|
+
"complexType": {
|
|
1320
|
+
"original": "number",
|
|
1321
|
+
"resolved": "number",
|
|
1322
|
+
"references": {}
|
|
1323
|
+
},
|
|
1324
|
+
"required": false,
|
|
1325
|
+
"optional": false,
|
|
1326
|
+
"docs": {
|
|
1327
|
+
"tags": [],
|
|
1328
|
+
"text": "Number of decimal digits in a table cell"
|
|
1329
|
+
},
|
|
1330
|
+
"getter": false,
|
|
1331
|
+
"setter": false,
|
|
1332
|
+
"reflect": false,
|
|
1333
|
+
"attribute": "data-format-digits-decimal",
|
|
1334
|
+
"defaultValue": "1"
|
|
1335
|
+
},
|
|
1336
|
+
"dataFormatDigitsPercent": {
|
|
1337
|
+
"type": "number",
|
|
1338
|
+
"mutable": false,
|
|
1339
|
+
"complexType": {
|
|
1340
|
+
"original": "number",
|
|
1341
|
+
"resolved": "number",
|
|
1342
|
+
"references": {}
|
|
1343
|
+
},
|
|
1344
|
+
"required": false,
|
|
1345
|
+
"optional": false,
|
|
1346
|
+
"docs": {
|
|
1347
|
+
"tags": [],
|
|
1348
|
+
"text": "Number of percent digits in a table cell"
|
|
1349
|
+
},
|
|
1350
|
+
"getter": false,
|
|
1351
|
+
"setter": false,
|
|
1352
|
+
"reflect": false,
|
|
1353
|
+
"attribute": "data-format-digits-percent",
|
|
1354
|
+
"defaultValue": "2"
|
|
1355
|
+
},
|
|
1356
|
+
"categoryWidth": {
|
|
1357
|
+
"type": "string",
|
|
1358
|
+
"mutable": false,
|
|
1359
|
+
"complexType": {
|
|
1360
|
+
"original": "string",
|
|
1361
|
+
"resolved": "string",
|
|
1362
|
+
"references": {}
|
|
1363
|
+
},
|
|
1364
|
+
"required": false,
|
|
1365
|
+
"optional": false,
|
|
1366
|
+
"docs": {
|
|
1367
|
+
"tags": [],
|
|
1368
|
+
"text": "Set width of category column. <br />\nIf INF is selected the columns scaling to the min space they need\nseperatly.\n<br /><br />\nvalues:<br />\n``` w5 // w10 // w15 // w20 // w25 // w50 // inf ```"
|
|
1369
|
+
},
|
|
1370
|
+
"getter": false,
|
|
1371
|
+
"setter": false,
|
|
1372
|
+
"reflect": false,
|
|
1373
|
+
"attribute": "category-width",
|
|
1374
|
+
"defaultValue": "\"w15\""
|
|
1375
|
+
},
|
|
1376
|
+
"columnthereof": {
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
"mutable": false,
|
|
1379
|
+
"complexType": {
|
|
1380
|
+
"original": "string | null",
|
|
1381
|
+
"resolved": "string",
|
|
1382
|
+
"references": {}
|
|
1383
|
+
},
|
|
1384
|
+
"required": false,
|
|
1385
|
+
"optional": false,
|
|
1386
|
+
"docs": {
|
|
1387
|
+
"tags": [],
|
|
1388
|
+
"text": "Defines which drill-column is displayed. <br />\n<br /><br />\n```scenario``` the scenaro to drill <br/>\n```group``` is a list of child columns of the parent <br/><br/>\n```subGroups``` is a list of child columns of the parent <br/><br/>\nexample:<br />\n```[{\"scenario\": \"ac1\", \"name\": \"DE\", \"subGroups\": [\"Berlin\"]},\n {\"scenario\": \"ac2\", \"name\": \"UK\", \"subGroups\": []}],\n ```"
|
|
1389
|
+
},
|
|
1390
|
+
"getter": false,
|
|
1391
|
+
"setter": false,
|
|
1392
|
+
"reflect": false,
|
|
1393
|
+
"attribute": "columnthereof",
|
|
1394
|
+
"defaultValue": "null"
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
static get states() {
|
|
1399
|
+
return {
|
|
1400
|
+
"data": {},
|
|
1401
|
+
"datasetMeta": {},
|
|
1402
|
+
"appliedScaleFactor": {}
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1405
|
+
static get elementRef() { return "element"; }
|
|
1406
|
+
static get watchers() {
|
|
1407
|
+
return [{
|
|
1408
|
+
"propName": "scale",
|
|
1409
|
+
"methodName": "validateScaling"
|
|
1410
|
+
}, {
|
|
1411
|
+
"propName": "scenarios",
|
|
1412
|
+
"methodName": "validateScenario"
|
|
1413
|
+
}, {
|
|
1414
|
+
"propName": "variances",
|
|
1415
|
+
"methodName": "validateVariances"
|
|
1416
|
+
}, {
|
|
1417
|
+
"propName": "barColumns",
|
|
1418
|
+
"methodName": "validateBarColumns"
|
|
1419
|
+
}, {
|
|
1420
|
+
"propName": "unitScaling",
|
|
1421
|
+
"methodName": "validateUnitScaling"
|
|
1422
|
+
}, {
|
|
1423
|
+
"propName": "percentageScaling",
|
|
1424
|
+
"methodName": "validatePercentageScaling"
|
|
1425
|
+
}, {
|
|
1426
|
+
"propName": "dataFormat",
|
|
1427
|
+
"methodName": "validateDataFormat"
|
|
1428
|
+
}, {
|
|
1429
|
+
"propName": "grouped",
|
|
1430
|
+
"methodName": "validateGrouped"
|
|
1431
|
+
}, {
|
|
1432
|
+
"propName": "showMeasureScale",
|
|
1433
|
+
"methodName": "validateShowMeasureScale"
|
|
1434
|
+
}, {
|
|
1435
|
+
"propName": "showGroupTitle",
|
|
1436
|
+
"methodName": "validateShowGroupTitle"
|
|
1437
|
+
}, {
|
|
1438
|
+
"propName": "type",
|
|
1439
|
+
"methodName": "validateType"
|
|
1440
|
+
}, {
|
|
1441
|
+
"propName": "limit",
|
|
1442
|
+
"methodName": "validateLimit"
|
|
1443
|
+
}, {
|
|
1444
|
+
"propName": "thereof",
|
|
1445
|
+
"methodName": "validateThereOf"
|
|
1446
|
+
}, {
|
|
1447
|
+
"propName": "partof",
|
|
1448
|
+
"methodName": "validatePartOf"
|
|
1449
|
+
}, {
|
|
1450
|
+
"propName": "order",
|
|
1451
|
+
"methodName": "validateOrderList"
|
|
1452
|
+
}, {
|
|
1453
|
+
"propName": "orderDirection",
|
|
1454
|
+
"methodName": "validateOrderDirection"
|
|
1455
|
+
}, {
|
|
1456
|
+
"propName": "measureType",
|
|
1457
|
+
"methodName": "validateMeasureType"
|
|
1458
|
+
}, {
|
|
1459
|
+
"propName": "measureScale",
|
|
1460
|
+
"methodName": "validateMeasureScale"
|
|
1461
|
+
}, {
|
|
1462
|
+
"propName": "dataFormatDigitsDecimal",
|
|
1463
|
+
"methodName": "validateDataFormatDigitsDecimal"
|
|
1464
|
+
}, {
|
|
1465
|
+
"propName": "dataFormatDigitsPercent",
|
|
1466
|
+
"methodName": "validateDateFormatDigitsPercent"
|
|
1467
|
+
}, {
|
|
1468
|
+
"propName": "categoryWidth",
|
|
1469
|
+
"methodName": "validateCategoryWidth"
|
|
1470
|
+
}, {
|
|
1471
|
+
"propName": "columnthereof",
|
|
1472
|
+
"methodName": "validateColumnThereOf"
|
|
1473
|
+
}];
|
|
1474
|
+
}
|
|
1475
|
+
}
|