@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,661 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CScBFiS1.js');
|
|
4
|
+
|
|
5
|
+
const appendToMap = (map, propName, value) => {
|
|
6
|
+
let refs = map.get(propName);
|
|
7
|
+
if (!refs) {
|
|
8
|
+
refs = [];
|
|
9
|
+
map.set(propName, refs);
|
|
10
|
+
}
|
|
11
|
+
if (!refs.some((ref) => ref.deref() === value)) {
|
|
12
|
+
refs.push(new WeakRef(value));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const debounce = (fn, ms) => {
|
|
16
|
+
let timeoutId;
|
|
17
|
+
return (...args) => {
|
|
18
|
+
if (timeoutId) {
|
|
19
|
+
clearTimeout(timeoutId);
|
|
20
|
+
}
|
|
21
|
+
timeoutId = setTimeout(() => {
|
|
22
|
+
timeoutId = 0;
|
|
23
|
+
fn(...args);
|
|
24
|
+
}, ms);
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Check if a possible element isConnected.
|
|
30
|
+
* The property might not be there, so we check for it.
|
|
31
|
+
*
|
|
32
|
+
* We want it to return true if isConnected is not a property,
|
|
33
|
+
* otherwise we would remove these elements and would not update.
|
|
34
|
+
*
|
|
35
|
+
* Better leak in Edge than to be useless.
|
|
36
|
+
*/
|
|
37
|
+
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
38
|
+
const cleanupElements = debounce((map) => {
|
|
39
|
+
for (let key of map.keys()) {
|
|
40
|
+
const refs = map.get(key).filter((ref) => {
|
|
41
|
+
const elm = ref.deref();
|
|
42
|
+
return elm && isConnected(elm);
|
|
43
|
+
});
|
|
44
|
+
map.set(key, refs);
|
|
45
|
+
}
|
|
46
|
+
}, 2_000);
|
|
47
|
+
const core = index.StencilCore;
|
|
48
|
+
const forceUpdate = core.forceUpdate;
|
|
49
|
+
const getRenderingRef = core.getRenderingRef;
|
|
50
|
+
const stencilSubscription = () => {
|
|
51
|
+
if (typeof getRenderingRef !== 'function' || typeof forceUpdate !== 'function') {
|
|
52
|
+
// If we are not in a stencil project, we do nothing.
|
|
53
|
+
// This function is not really exported by @stencil/core.
|
|
54
|
+
return {};
|
|
55
|
+
}
|
|
56
|
+
const ensureForceUpdate = forceUpdate;
|
|
57
|
+
const ensureGetRenderingRef = getRenderingRef;
|
|
58
|
+
const elmsToUpdate = new Map();
|
|
59
|
+
return {
|
|
60
|
+
dispose: () => elmsToUpdate.clear(),
|
|
61
|
+
get: (propName) => {
|
|
62
|
+
const elm = ensureGetRenderingRef();
|
|
63
|
+
if (elm) {
|
|
64
|
+
appendToMap(elmsToUpdate, propName, elm);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
set: (propName) => {
|
|
68
|
+
const refs = elmsToUpdate.get(propName);
|
|
69
|
+
if (refs) {
|
|
70
|
+
const nextRefs = refs.filter((ref) => {
|
|
71
|
+
const elm = ref.deref();
|
|
72
|
+
if (!elm)
|
|
73
|
+
return false;
|
|
74
|
+
return ensureForceUpdate(elm);
|
|
75
|
+
});
|
|
76
|
+
elmsToUpdate.set(propName, nextRefs);
|
|
77
|
+
}
|
|
78
|
+
cleanupElements(elmsToUpdate);
|
|
79
|
+
},
|
|
80
|
+
reset: () => {
|
|
81
|
+
elmsToUpdate.forEach((refs) => {
|
|
82
|
+
refs.forEach((ref) => {
|
|
83
|
+
const elm = ref.deref();
|
|
84
|
+
if (elm)
|
|
85
|
+
ensureForceUpdate(elm);
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
cleanupElements(elmsToUpdate);
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const unwrap = (val) => (typeof val === 'function' ? val() : val);
|
|
94
|
+
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
|
95
|
+
const resolveDefaultState = () => (unwrap(defaultState) ?? {});
|
|
96
|
+
const initialState = resolveDefaultState();
|
|
97
|
+
let states = new Map(Object.entries(initialState));
|
|
98
|
+
const proxyAvailable = typeof Proxy !== 'undefined';
|
|
99
|
+
const plainState = proxyAvailable ? null : {};
|
|
100
|
+
const handlers = {
|
|
101
|
+
dispose: [],
|
|
102
|
+
get: [],
|
|
103
|
+
set: [],
|
|
104
|
+
reset: [],
|
|
105
|
+
};
|
|
106
|
+
// Track onChange listeners to enable removeListener functionality
|
|
107
|
+
const changeListeners = new Map();
|
|
108
|
+
const reset = () => {
|
|
109
|
+
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
|
110
|
+
// otherwise, the state won't be properly reset
|
|
111
|
+
states = new Map(Object.entries(resolveDefaultState()));
|
|
112
|
+
if (!proxyAvailable) {
|
|
113
|
+
syncPlainStateKeys();
|
|
114
|
+
}
|
|
115
|
+
handlers.reset.forEach((cb) => cb());
|
|
116
|
+
};
|
|
117
|
+
const dispose = () => {
|
|
118
|
+
// Call first dispose as resetting the state would
|
|
119
|
+
// cause less updates ;)
|
|
120
|
+
handlers.dispose.forEach((cb) => cb());
|
|
121
|
+
reset();
|
|
122
|
+
};
|
|
123
|
+
const get = (propName) => {
|
|
124
|
+
handlers.get.forEach((cb) => cb(propName));
|
|
125
|
+
return states.get(propName);
|
|
126
|
+
};
|
|
127
|
+
const set = (propName, value) => {
|
|
128
|
+
const oldValue = states.get(propName);
|
|
129
|
+
if (shouldUpdate(value, oldValue, propName)) {
|
|
130
|
+
states.set(propName, value);
|
|
131
|
+
if (!proxyAvailable) {
|
|
132
|
+
ensurePlainProperty(propName);
|
|
133
|
+
}
|
|
134
|
+
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
const state = (proxyAvailable
|
|
138
|
+
? new Proxy(initialState, {
|
|
139
|
+
get(_, propName) {
|
|
140
|
+
return get(propName);
|
|
141
|
+
},
|
|
142
|
+
ownKeys(_) {
|
|
143
|
+
return Array.from(states.keys());
|
|
144
|
+
},
|
|
145
|
+
getOwnPropertyDescriptor() {
|
|
146
|
+
return {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
configurable: true,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
has(_, propName) {
|
|
152
|
+
return states.has(propName);
|
|
153
|
+
},
|
|
154
|
+
set(_, propName, value) {
|
|
155
|
+
set(propName, value);
|
|
156
|
+
return true;
|
|
157
|
+
},
|
|
158
|
+
})
|
|
159
|
+
: (() => {
|
|
160
|
+
syncPlainStateKeys();
|
|
161
|
+
return plainState;
|
|
162
|
+
})());
|
|
163
|
+
const on = (eventName, callback) => {
|
|
164
|
+
handlers[eventName].push(callback);
|
|
165
|
+
return () => {
|
|
166
|
+
removeFromArray(handlers[eventName], callback);
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
const onChange = (propName, cb) => {
|
|
170
|
+
const setHandler = (key, newValue) => {
|
|
171
|
+
if (key === propName) {
|
|
172
|
+
cb(newValue);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
const resetHandler = () => {
|
|
176
|
+
const snapshot = resolveDefaultState();
|
|
177
|
+
cb(snapshot[propName]);
|
|
178
|
+
};
|
|
179
|
+
// Register the handlers
|
|
180
|
+
const unSet = on('set', setHandler);
|
|
181
|
+
const unReset = on('reset', resetHandler);
|
|
182
|
+
// Track the relationship between the user callback and internal handlers
|
|
183
|
+
changeListeners.set(cb, { setHandler, resetHandler, propName });
|
|
184
|
+
return () => {
|
|
185
|
+
unSet();
|
|
186
|
+
unReset();
|
|
187
|
+
changeListeners.delete(cb);
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const use = (...subscriptions) => {
|
|
191
|
+
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
|
192
|
+
if (subscription.set) {
|
|
193
|
+
unsubs.push(on('set', subscription.set));
|
|
194
|
+
}
|
|
195
|
+
if (subscription.get) {
|
|
196
|
+
unsubs.push(on('get', subscription.get));
|
|
197
|
+
}
|
|
198
|
+
if (subscription.reset) {
|
|
199
|
+
unsubs.push(on('reset', subscription.reset));
|
|
200
|
+
}
|
|
201
|
+
if (subscription.dispose) {
|
|
202
|
+
unsubs.push(on('dispose', subscription.dispose));
|
|
203
|
+
}
|
|
204
|
+
return unsubs;
|
|
205
|
+
}, []);
|
|
206
|
+
return () => unsubs.forEach((unsub) => unsub());
|
|
207
|
+
};
|
|
208
|
+
const forceUpdate = (key) => {
|
|
209
|
+
const oldValue = states.get(key);
|
|
210
|
+
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
|
211
|
+
};
|
|
212
|
+
const removeListener = (propName, listener) => {
|
|
213
|
+
const listenerInfo = changeListeners.get(listener);
|
|
214
|
+
if (listenerInfo && listenerInfo.propName === propName) {
|
|
215
|
+
// Remove the specific handlers that were created for this listener
|
|
216
|
+
removeFromArray(handlers.set, listenerInfo.setHandler);
|
|
217
|
+
removeFromArray(handlers.reset, listenerInfo.resetHandler);
|
|
218
|
+
changeListeners.delete(listener);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
function ensurePlainProperty(key) {
|
|
222
|
+
if (proxyAvailable || !plainState) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
if (Object.prototype.hasOwnProperty.call(plainState, key)) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
Object.defineProperty(plainState, key, {
|
|
229
|
+
configurable: true,
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get() {
|
|
232
|
+
return get(key);
|
|
233
|
+
},
|
|
234
|
+
set(value) {
|
|
235
|
+
set(key, value);
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function syncPlainStateKeys() {
|
|
240
|
+
if (proxyAvailable || !plainState) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
const knownKeys = new Set(states.keys());
|
|
244
|
+
for (const key of Object.keys(plainState)) {
|
|
245
|
+
if (!knownKeys.has(key)) {
|
|
246
|
+
delete plainState[key];
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
for (const key of knownKeys) {
|
|
250
|
+
ensurePlainProperty(key);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return {
|
|
254
|
+
state,
|
|
255
|
+
get,
|
|
256
|
+
set,
|
|
257
|
+
on,
|
|
258
|
+
onChange,
|
|
259
|
+
use,
|
|
260
|
+
dispose,
|
|
261
|
+
reset,
|
|
262
|
+
forceUpdate,
|
|
263
|
+
removeListener,
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
const removeFromArray = (array, item) => {
|
|
267
|
+
const index = array.indexOf(item);
|
|
268
|
+
if (index >= 0) {
|
|
269
|
+
array[index] = array[array.length - 1];
|
|
270
|
+
array.length--;
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
const createStore = (defaultState, shouldUpdate) => {
|
|
275
|
+
const map = createObservableMap(defaultState, shouldUpdate);
|
|
276
|
+
map.use(stencilSubscription());
|
|
277
|
+
return map;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
const SYSTEM_STYLE_DEFAULTS = {
|
|
281
|
+
global: {
|
|
282
|
+
fontFamily: "'Noto Sans', sans-serif",
|
|
283
|
+
fontSizePx: 13.3333,
|
|
284
|
+
fontColor: "#000000",
|
|
285
|
+
fontBackgroundColor: "#ffffff",
|
|
286
|
+
},
|
|
287
|
+
"bn-text": {},
|
|
288
|
+
"bn-chart-time": {
|
|
289
|
+
scaleFactors: {
|
|
290
|
+
scenarioOffset: 0.3,
|
|
291
|
+
scenarioLabelToColumn: 0.3,
|
|
292
|
+
labelToColumn: 0.3,
|
|
293
|
+
labelToAxis: 0.3,
|
|
294
|
+
needleWidth: 0.3,
|
|
295
|
+
needleHeadWidth: 0.6,
|
|
296
|
+
columnWidth: 2.0,
|
|
297
|
+
varianceAxisLineWidth: 0.3,
|
|
298
|
+
axisLineWidth: 0.1,
|
|
299
|
+
auxiliaryLineWidth: 0.1,
|
|
300
|
+
scenarioLineWidth: 0.2,
|
|
301
|
+
markerWidth: 0.7,
|
|
302
|
+
markerOffset: 0.0,
|
|
303
|
+
categoryWidth: 3.0,
|
|
304
|
+
axisTickLength: 0.3,
|
|
305
|
+
},
|
|
306
|
+
axisStyles: {
|
|
307
|
+
ac: { stroke: "#121212", fill: "#121212", width: 0.1 },
|
|
308
|
+
fc: { stroke: "#121212", fill: "#ffffff", width: 0.1, dasharray: "10 5 5 5" },
|
|
309
|
+
pp: { stroke: "#606060", fill: "#606060", width: 0.1 },
|
|
310
|
+
pl: { stroke: "#121212", fill: "#ffffff", width: 0.1 },
|
|
311
|
+
},
|
|
312
|
+
barStyles: {
|
|
313
|
+
ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
|
|
314
|
+
fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
|
|
315
|
+
pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
|
|
316
|
+
pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
|
|
317
|
+
},
|
|
318
|
+
varianceStyles: {
|
|
319
|
+
pos: { stroke: "#008f96", fill: "#008f96", width: 0.1 },
|
|
320
|
+
neg: { stroke: "#ff0000", fill: "#ff0000", width: 0.1 },
|
|
321
|
+
neu: { stroke: "#808080", fill: "#808080", width: 0.1 },
|
|
322
|
+
},
|
|
323
|
+
padding: {
|
|
324
|
+
top: 10,
|
|
325
|
+
left: 10,
|
|
326
|
+
right: 10,
|
|
327
|
+
bottom: 10,
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
"bn-chart-structure": {
|
|
331
|
+
scaleFactors: {
|
|
332
|
+
scenarioOffset: 0.3,
|
|
333
|
+
scenarioLabelToBar: 0.1,
|
|
334
|
+
labelToBar: 0.3,
|
|
335
|
+
labelToAxis: 0.3,
|
|
336
|
+
needleWidth: 0.3,
|
|
337
|
+
needleHeadWidth: 0.6,
|
|
338
|
+
barWidth: 1.2,
|
|
339
|
+
varianceAxisLineWidth: 0.3,
|
|
340
|
+
axisLineWidth: 0.1,
|
|
341
|
+
auxiliaryLineWidth: 0.1,
|
|
342
|
+
scenarioLineWidth: 0.2,
|
|
343
|
+
markerWidth: 0.7,
|
|
344
|
+
markerOffset: 0.0,
|
|
345
|
+
categoryWidth: 1.9,
|
|
346
|
+
axisTickLength: 0.3,
|
|
347
|
+
},
|
|
348
|
+
axisStyles: {
|
|
349
|
+
ac: { stroke: "#121212", fill: "#121212", width: 0.1 },
|
|
350
|
+
fc: { stroke: "#121212", fill: "#ffffff", width: 0.1, dasharray: "10 5 5 5" },
|
|
351
|
+
pp: { stroke: "#606060", fill: "#606060", width: 0.1 },
|
|
352
|
+
pl: { stroke: "#121212", fill: "#ffffff", width: 0.1 },
|
|
353
|
+
},
|
|
354
|
+
barStyles: {
|
|
355
|
+
ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
|
|
356
|
+
fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
|
|
357
|
+
pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
|
|
358
|
+
pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
|
|
359
|
+
},
|
|
360
|
+
varianceStyles: {
|
|
361
|
+
pos: { stroke: "#008f96", fill: "#008f96", width: 0.1 },
|
|
362
|
+
neg: { stroke: "#ff0000", fill: "#ff0000", width: 0.1 },
|
|
363
|
+
neu: { stroke: "#808080", fill: "#808080", width: 0.1 },
|
|
364
|
+
},
|
|
365
|
+
padding: {
|
|
366
|
+
top: 10,
|
|
367
|
+
left: 10,
|
|
368
|
+
right: 10,
|
|
369
|
+
bottom: 10,
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
"bn-tree": {
|
|
373
|
+
edgeColor: "#404040",
|
|
374
|
+
edgeWidth: 1,
|
|
375
|
+
operatorCircleRadius: 10,
|
|
376
|
+
operatorFontSizeScale: 0.9,
|
|
377
|
+
operatorColor: "#404040",
|
|
378
|
+
},
|
|
379
|
+
"bn-grid": {
|
|
380
|
+
headerBackground: "transparent",
|
|
381
|
+
borderColor: "#A6A6A6",
|
|
382
|
+
borderWidth: 1,
|
|
383
|
+
cellPadding: 4,
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Recursively flattens a nested object into a single-depth object with
|
|
389
|
+
* dot-separated keys.
|
|
390
|
+
*
|
|
391
|
+
* Used by the i18n store to convert hierarchical locale files into a flat
|
|
392
|
+
* lookup map, e.g. `{ a: { b: "hello" } }` becomes `{ "a.b": "hello" }`.
|
|
393
|
+
*
|
|
394
|
+
* @param ob - The nested object to flatten
|
|
395
|
+
* @param prefix - Internal accumulator for the current key path (omit on initial call)
|
|
396
|
+
* @param result - Internal accumulator for the output object (omit on initial call)
|
|
397
|
+
* @returns A flat object with dot-separated keys mapping to leaf values
|
|
398
|
+
*/
|
|
399
|
+
function flattenObject(ob, prefix = undefined, result = null) {
|
|
400
|
+
result = result || {};
|
|
401
|
+
prefix = prefix ? prefix + "." : "";
|
|
402
|
+
for (const i in ob) {
|
|
403
|
+
if (Object.prototype.hasOwnProperty.call(ob, i)) {
|
|
404
|
+
if (typeof ob[i] === "object" && ob[i] !== null) {
|
|
405
|
+
// Recursion on deeper objects
|
|
406
|
+
flattenObject(ob[i], prefix + i, result);
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
result[prefix + i] = ob[i];
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return result;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Reactive store for internationalized labels and symbols.
|
|
418
|
+
*
|
|
419
|
+
* Organized by namespace (`_system` ships built-in `de`/`en` bundles). Each
|
|
420
|
+
* bundle is a flat key-value map produced by `flattenObject()` from a nested
|
|
421
|
+
* `{ namespace: { key: label } }` structure, yielding keys like `"bn-table.SUM_TOTAL"`.
|
|
422
|
+
*
|
|
423
|
+
* **Token pattern**: Variance symbols use `{%}` as a placeholder for the
|
|
424
|
+
* scenario abbreviation. For example, `"Δ{%}"` becomes `"ΔPY"` when the
|
|
425
|
+
* comparison scenario is "PY". The `{%}` replacement is performed at render
|
|
426
|
+
* time by the `withTranslation` mixin.
|
|
427
|
+
*
|
|
428
|
+
* @module stores/internationalization
|
|
429
|
+
*/
|
|
430
|
+
/**
|
|
431
|
+
* Keys that are treated as global (not namespace-scoped) across all components.
|
|
432
|
+
* Includes scenario abbreviations (ac1..pl4), sort-order arrows, and IBCS
|
|
433
|
+
* variance symbols with the `{%}` token for scenario substitution.
|
|
434
|
+
*/
|
|
435
|
+
const globalLabelKeys = [
|
|
436
|
+
"ORDER_asc",
|
|
437
|
+
"ORDER_desc",
|
|
438
|
+
"ac1",
|
|
439
|
+
"pp1",
|
|
440
|
+
"fc1",
|
|
441
|
+
"pl1",
|
|
442
|
+
"ac2",
|
|
443
|
+
"pp2",
|
|
444
|
+
"fc2",
|
|
445
|
+
"pl2",
|
|
446
|
+
"ac3",
|
|
447
|
+
"pp3",
|
|
448
|
+
"fc3",
|
|
449
|
+
"pl3",
|
|
450
|
+
"ac4",
|
|
451
|
+
"pp4",
|
|
452
|
+
"fc4",
|
|
453
|
+
"pl4",
|
|
454
|
+
"ibcssymbol_delta_ac",
|
|
455
|
+
"ibcssymbol_delta_generic",
|
|
456
|
+
"ibcssymbol_delta_ac_relative",
|
|
457
|
+
"ibcssymbol_delta_generic_relative",
|
|
458
|
+
];
|
|
459
|
+
const de = flattenObject({
|
|
460
|
+
global: {
|
|
461
|
+
ac1: "AC",
|
|
462
|
+
pp1: "PY",
|
|
463
|
+
fc1: "FC",
|
|
464
|
+
pl1: "PL",
|
|
465
|
+
ac2: "AC2",
|
|
466
|
+
pp2: "PY2",
|
|
467
|
+
fc2: "FC2",
|
|
468
|
+
pl2: "PL2",
|
|
469
|
+
ac3: "AC3",
|
|
470
|
+
pp3: "PY3",
|
|
471
|
+
fc3: "FC3",
|
|
472
|
+
pl3: "PL3",
|
|
473
|
+
ac4: "AC4",
|
|
474
|
+
pp4: "PY4",
|
|
475
|
+
fc4: "FC4",
|
|
476
|
+
pl4: "PL4",
|
|
477
|
+
ORDER_asc: "↑",
|
|
478
|
+
ORDER_desc: "↓",
|
|
479
|
+
ibcssymbol_delta_ac: "Δ{%}",
|
|
480
|
+
ibcssymbol_delta_generic: "Δ({%})",
|
|
481
|
+
ibcssymbol_delta_ac_relative: "Δ{%}%",
|
|
482
|
+
ibcssymbol_delta_generic_relative: "Δ({%})%",
|
|
483
|
+
},
|
|
484
|
+
"bn-title": {
|
|
485
|
+
SEPERATOR_WS: ", ",
|
|
486
|
+
CONNECTOR_WS: " und ",
|
|
487
|
+
in: "in",
|
|
488
|
+
},
|
|
489
|
+
"bn-chart": {},
|
|
490
|
+
"bn-table": {
|
|
491
|
+
in: "in",
|
|
492
|
+
category: " ",
|
|
493
|
+
operation: " ",
|
|
494
|
+
there_of: "davon",
|
|
495
|
+
part_of: "in % von",
|
|
496
|
+
SUM_TOTAL: "❖",
|
|
497
|
+
REST: "REST",
|
|
498
|
+
},
|
|
499
|
+
});
|
|
500
|
+
const en = flattenObject({
|
|
501
|
+
global: {
|
|
502
|
+
ac1: "AC",
|
|
503
|
+
pp1: "PY",
|
|
504
|
+
fc1: "FC",
|
|
505
|
+
pl1: "PL",
|
|
506
|
+
ac2: "AC2",
|
|
507
|
+
pp2: "PY2",
|
|
508
|
+
fc2: "FC2",
|
|
509
|
+
pl2: "PL2",
|
|
510
|
+
ac3: "AC3",
|
|
511
|
+
pp3: "PY3",
|
|
512
|
+
fc3: "FC3",
|
|
513
|
+
pl3: "PL3",
|
|
514
|
+
ac4: "AC4",
|
|
515
|
+
pp4: "PY4",
|
|
516
|
+
fc4: "FC4",
|
|
517
|
+
pl4: "PL4",
|
|
518
|
+
ORDER_asc: "↑",
|
|
519
|
+
ORDER_desc: "↓",
|
|
520
|
+
ibcssymbol_delta_ac: "Δ{%}",
|
|
521
|
+
ibcssymbol_delta_generic: "Δ({%})",
|
|
522
|
+
ibcssymbol_delta_ac_relative: "Δ{%}%",
|
|
523
|
+
ibcssymbol_delta_generic_relative: "Δ({%})%",
|
|
524
|
+
},
|
|
525
|
+
"bn-title": {
|
|
526
|
+
SEPERATOR_WS: ", ",
|
|
527
|
+
CONNECTOR_WS: " and ",
|
|
528
|
+
in: "in",
|
|
529
|
+
},
|
|
530
|
+
"bn-chart": {},
|
|
531
|
+
"bn-table": {
|
|
532
|
+
category: " ",
|
|
533
|
+
operation: " ",
|
|
534
|
+
there_of: "there of",
|
|
535
|
+
part_of: "in % of",
|
|
536
|
+
SUM_TOTAL: "❖",
|
|
537
|
+
REST: "REST",
|
|
538
|
+
},
|
|
539
|
+
});
|
|
540
|
+
const BN_INTERNATIONALIZATION_KEYS = Object.keys(de || {});
|
|
541
|
+
const SYSTEM_I18N_DEFAULTS = { _system: { de, en } };
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Factory that creates a fresh set of all 7 `@stencil/store` instances.
|
|
545
|
+
*
|
|
546
|
+
* Called once per `<bn-context>` element so that each context owns isolated
|
|
547
|
+
* reactive state. The returned object satisfies the {@link ScopedStores} interface.
|
|
548
|
+
*
|
|
549
|
+
* @module stores/createScopedStores
|
|
550
|
+
*/
|
|
551
|
+
function createScopedStores() {
|
|
552
|
+
const datasources = createStore({});
|
|
553
|
+
const datasets = createStore({});
|
|
554
|
+
const datasetsMeta = createStore({});
|
|
555
|
+
const componentStyles = createStore({
|
|
556
|
+
_system: SYSTEM_STYLE_DEFAULTS,
|
|
557
|
+
});
|
|
558
|
+
const internationalization = createStore(Object.assign({}, SYSTEM_I18N_DEFAULTS));
|
|
559
|
+
const assets = createStore({});
|
|
560
|
+
const context = createStore({ locale: "en" });
|
|
561
|
+
return {
|
|
562
|
+
datasources,
|
|
563
|
+
datasets,
|
|
564
|
+
datasetsMeta,
|
|
565
|
+
componentStyles,
|
|
566
|
+
internationalization,
|
|
567
|
+
assets,
|
|
568
|
+
context,
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Scoped store resolution for `<bn-context>`.
|
|
574
|
+
*
|
|
575
|
+
* Each `<bn-context>` element owns its own set of `@stencil/store` instances.
|
|
576
|
+
* Because Stencil does NOT guarantee parent-before-child initialization order,
|
|
577
|
+
* stores are created lazily: the first component that calls `getStores()` walks
|
|
578
|
+
* the DOM to find the nearest `<bn-context>` element and creates (or retrieves)
|
|
579
|
+
* the stores for it. When `<bn-context>` itself initializes, it picks up the
|
|
580
|
+
* already-created stores from the registry.
|
|
581
|
+
*
|
|
582
|
+
* @module context/context-protocol
|
|
583
|
+
*/
|
|
584
|
+
/**
|
|
585
|
+
* Module-level registry mapping `<bn-context>` DOM elements to their stores.
|
|
586
|
+
* Stores are created lazily by `getOrCreateStores()` — whichever component
|
|
587
|
+
* initializes first triggers creation for its ancestor `<bn-context>`.
|
|
588
|
+
*/
|
|
589
|
+
const contextRegistry = new WeakMap();
|
|
590
|
+
/**
|
|
591
|
+
* Returns the stores for a `<bn-context>` element, creating them if needed.
|
|
592
|
+
* Called both by descendant components (via `getStores()`) and by the
|
|
593
|
+
* `<bn-context>` component itself during its initialization.
|
|
594
|
+
*/
|
|
595
|
+
function getOrCreateStores(contextElement) {
|
|
596
|
+
let stores = contextRegistry.get(contextElement);
|
|
597
|
+
if (!stores) {
|
|
598
|
+
stores = createScopedStores();
|
|
599
|
+
contextRegistry.set(contextElement, stores);
|
|
600
|
+
}
|
|
601
|
+
return stores;
|
|
602
|
+
}
|
|
603
|
+
const storesCache = new WeakMap();
|
|
604
|
+
/**
|
|
605
|
+
* Walks up the DOM tree (crossing shadow boundaries) to find the nearest
|
|
606
|
+
* `<bn-context>` ancestor element.
|
|
607
|
+
*/
|
|
608
|
+
function findContextElement(element) {
|
|
609
|
+
var _a;
|
|
610
|
+
let current = element.parentNode;
|
|
611
|
+
while (current) {
|
|
612
|
+
if (current instanceof HTMLElement && ((_a = current.nodeName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "bn-context") {
|
|
613
|
+
return current;
|
|
614
|
+
}
|
|
615
|
+
if (current.parentNode) {
|
|
616
|
+
current = current.parentNode;
|
|
617
|
+
}
|
|
618
|
+
else if (current instanceof ShadowRoot) {
|
|
619
|
+
current = current.host;
|
|
620
|
+
}
|
|
621
|
+
else {
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return undefined;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Resolves scoped stores from the nearest `<bn-context>` ancestor.
|
|
629
|
+
*
|
|
630
|
+
* Walks the DOM tree to find the nearest `<bn-context>` element, then
|
|
631
|
+
* returns (or lazily creates) the stores for it. This works regardless
|
|
632
|
+
* of Stencil component initialization order because it only depends on
|
|
633
|
+
* the native DOM tree being in place.
|
|
634
|
+
*
|
|
635
|
+
* Results are cached per element in a WeakMap.
|
|
636
|
+
*
|
|
637
|
+
* @throws Error if no `<bn-context>` ancestor is found in the DOM
|
|
638
|
+
*/
|
|
639
|
+
function getStores(element) {
|
|
640
|
+
const cached = storesCache.get(element);
|
|
641
|
+
if (cached)
|
|
642
|
+
return cached;
|
|
643
|
+
const contextEl = findContextElement(element);
|
|
644
|
+
if (!contextEl) {
|
|
645
|
+
throw new Error(`[bn] <${element.localName}> must be inside a <bn-context>. No ancestor <bn-context> found.`);
|
|
646
|
+
}
|
|
647
|
+
const stores = getOrCreateStores(contextEl);
|
|
648
|
+
storesCache.set(element, stores);
|
|
649
|
+
return stores;
|
|
650
|
+
}
|
|
651
|
+
/** Removes the cached stores entry for an element (call in `disconnectedCallback`). */
|
|
652
|
+
function clearStoresCache(element) {
|
|
653
|
+
storesCache.delete(element);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
exports.BN_INTERNATIONALIZATION_KEYS = BN_INTERNATIONALIZATION_KEYS;
|
|
657
|
+
exports.clearStoresCache = clearStoresCache;
|
|
658
|
+
exports.flattenObject = flattenObject;
|
|
659
|
+
exports.getOrCreateStores = getOrCreateStores;
|
|
660
|
+
exports.getStores = getStores;
|
|
661
|
+
exports.globalLabelKeys = globalLabelKeys;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CScBFiS1.js');
|
|
4
|
+
var contextProtocol = require('./context-protocol-BkYHFkXE.js');
|
|
5
|
+
|
|
6
|
+
const editorCompanionCss = () => `editor-companion{display:none}`;
|
|
7
|
+
|
|
8
|
+
const EditorCompanion = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.distinctCache = new Map();
|
|
12
|
+
}
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
this.stores = contextProtocol.getStores(this.element);
|
|
15
|
+
}
|
|
16
|
+
internationalizationKeys() {
|
|
17
|
+
return Promise.resolve(contextProtocol.BN_INTERNATIONALIZATION_KEYS);
|
|
18
|
+
}
|
|
19
|
+
getDistinctFromDataSource(dataSourceName, key) {
|
|
20
|
+
const cacheKey = `datasource:${dataSourceName}:${key}`;
|
|
21
|
+
if (this.distinctCache.has(cacheKey)) {
|
|
22
|
+
return Promise.resolve(this.distinctCache.get(cacheKey));
|
|
23
|
+
}
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const result = this.distinct(this.stores.datasources.get(dataSourceName) || [], key);
|
|
26
|
+
this.distinctCache.set(cacheKey, result);
|
|
27
|
+
return Promise.resolve(result);
|
|
28
|
+
}
|
|
29
|
+
getDistinctFromDataset(datasetName, key) {
|
|
30
|
+
const cacheKey = `dataset:${datasetName}:${key}`;
|
|
31
|
+
if (this.distinctCache.has(cacheKey)) {
|
|
32
|
+
return Promise.resolve(this.distinctCache.get(cacheKey));
|
|
33
|
+
}
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
const result = this.distinct(this.stores.datasets.get(datasetName) || [], key);
|
|
36
|
+
this.distinctCache.set(cacheKey, result);
|
|
37
|
+
return Promise.resolve(result);
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return index.h(index.Fragment, { key: '1380161960ef3791df5ddf8314818ae135d01de9' });
|
|
41
|
+
}
|
|
42
|
+
distinct(data, key) {
|
|
43
|
+
return [...new Set(data.map((d) => d[key]))].filter((v) => v !== null && v !== undefined);
|
|
44
|
+
}
|
|
45
|
+
get element() { return index.getElement(this); }
|
|
46
|
+
};
|
|
47
|
+
EditorCompanion.style = editorCompanionCss();
|
|
48
|
+
|
|
49
|
+
exports.editor_companion = EditorCompanion;
|