@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,146 @@
|
|
|
1
|
+
// import { IAdapter } from "../../../../utils/helper/IAdapter";
|
|
2
|
+
// import { CompareUtil } from "../../../../utils/helper/CompareUtil";
|
|
3
|
+
import { DateTime } from "luxon";
|
|
4
|
+
import { CompareUtil } from "../../../../utils/helper/CompareUtil";
|
|
5
|
+
/**
|
|
6
|
+
* IBCS-compliant data row for time-series chart visualizations.
|
|
7
|
+
*
|
|
8
|
+
* Extends the standard table data row schema with a Luxon {@link DateTime} field for temporal
|
|
9
|
+
* positioning on the x-axis. Shares the same three-level row hierarchy, two-level column hierarchy,
|
|
10
|
+
* and 16 scenario value slots as {@link TableDataRow}.
|
|
11
|
+
*/
|
|
12
|
+
export class TimeChartDataRow {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.operation = "+";
|
|
15
|
+
}
|
|
16
|
+
addRowGroup(name, index) {
|
|
17
|
+
this.rowGroup = name;
|
|
18
|
+
this.rowGroupIndex = index;
|
|
19
|
+
}
|
|
20
|
+
addCategory(name, index) {
|
|
21
|
+
this.category = name;
|
|
22
|
+
this.categoryIndex = index;
|
|
23
|
+
}
|
|
24
|
+
addSubCategory(name, index) {
|
|
25
|
+
this.subCategory = name;
|
|
26
|
+
this.subCategoryIndex = index;
|
|
27
|
+
}
|
|
28
|
+
addColumnGroup(name, index) {
|
|
29
|
+
this.columnGroup = name;
|
|
30
|
+
this.columnGroupIndex = index;
|
|
31
|
+
}
|
|
32
|
+
addSubColumnGroup(name, index) {
|
|
33
|
+
this.columnSubGroup = name;
|
|
34
|
+
this.columnSubGroupIndex = index;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Converts untyped JSON records into validated {@link TimeChartDataRow} instances.
|
|
39
|
+
*
|
|
40
|
+
* Parses the `date` field from an ISO 8601 string into a Luxon DateTime.
|
|
41
|
+
* Invalid dates are silently dropped (field remains undefined).
|
|
42
|
+
*/
|
|
43
|
+
export class TimeChartDataRowAdapter {
|
|
44
|
+
constructor() { }
|
|
45
|
+
adapt(data) {
|
|
46
|
+
const dataRow = new TimeChartDataRow();
|
|
47
|
+
if (CompareUtil.isString(data.date)) {
|
|
48
|
+
dataRow.date = this.parseDateString(data.date);
|
|
49
|
+
}
|
|
50
|
+
//if (CompareUtil.isExisting(data.date)) {
|
|
51
|
+
// else if (CompareUtil.isDate(data.date)) {
|
|
52
|
+
// dataRow.date = data.date;
|
|
53
|
+
// }
|
|
54
|
+
//}
|
|
55
|
+
if (CompareUtil.isOperator(data.operation)) {
|
|
56
|
+
dataRow.operation = data.operation;
|
|
57
|
+
}
|
|
58
|
+
if (CompareUtil.isNumber(data.rowGroupIndex) && CompareUtil.isString(data.rowGroup)) {
|
|
59
|
+
dataRow.addRowGroup(data.rowGroup, data.rowGroupIndex);
|
|
60
|
+
}
|
|
61
|
+
if (CompareUtil.isNumber(data.categoryIndex) && CompareUtil.isString(data.category)) {
|
|
62
|
+
dataRow.addCategory(data.category, data.categoryIndex);
|
|
63
|
+
}
|
|
64
|
+
if (CompareUtil.isNumber(data.subCategoryIndex) && CompareUtil.isString(data.subCategory)) {
|
|
65
|
+
dataRow.addSubCategory(data.subCategory, data.subCategoryIndex);
|
|
66
|
+
}
|
|
67
|
+
if (CompareUtil.isNumber(data.columnGroupIndex) && CompareUtil.isString(data.columnGroup)) {
|
|
68
|
+
dataRow.addColumnGroup(data.columnGroup, data.columnGroupIndex);
|
|
69
|
+
}
|
|
70
|
+
if (CompareUtil.isNumber(data.columnSubGroupIndex) && CompareUtil.isString(data.columnSubGroup)) {
|
|
71
|
+
dataRow.addSubColumnGroup(data.columnSubGroup, data.columnSubGroupIndex);
|
|
72
|
+
}
|
|
73
|
+
this.setActualValues(data, dataRow);
|
|
74
|
+
this.setPlanValues(data, dataRow);
|
|
75
|
+
this.setPreviousPeriodValues(data, dataRow);
|
|
76
|
+
this.setForecastValues(data, dataRow);
|
|
77
|
+
return dataRow;
|
|
78
|
+
}
|
|
79
|
+
parseDateString(date) {
|
|
80
|
+
const timestamp = DateTime.fromISO(date);
|
|
81
|
+
if (timestamp.isValid) {
|
|
82
|
+
return timestamp;
|
|
83
|
+
}
|
|
84
|
+
console.warn(`TimeChartDataRow: invalid date value '${date}' — skipping row`);
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
default() {
|
|
88
|
+
return new TimeChartDataRow();
|
|
89
|
+
}
|
|
90
|
+
setActualValues(data, dataRow) {
|
|
91
|
+
if (CompareUtil.isNumber(data.ac1)) {
|
|
92
|
+
dataRow.ac1 = data.ac1;
|
|
93
|
+
}
|
|
94
|
+
if (CompareUtil.isNumber(data.ac2)) {
|
|
95
|
+
dataRow.ac2 = data.ac2;
|
|
96
|
+
}
|
|
97
|
+
if (CompareUtil.isNumber(data.ac3)) {
|
|
98
|
+
dataRow.ac3 = data.ac3;
|
|
99
|
+
}
|
|
100
|
+
if (CompareUtil.isNumber(data.ac4)) {
|
|
101
|
+
dataRow.ac4 = data.ac4;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
setPlanValues(data, dataRow) {
|
|
105
|
+
if (CompareUtil.isNumber(data.pl1)) {
|
|
106
|
+
dataRow.pl1 = data.pl1;
|
|
107
|
+
}
|
|
108
|
+
if (CompareUtil.isNumber(data.pl2)) {
|
|
109
|
+
dataRow.pl2 = data.pl2;
|
|
110
|
+
}
|
|
111
|
+
if (CompareUtil.isNumber(data.pl3)) {
|
|
112
|
+
dataRow.pl3 = data.pl3;
|
|
113
|
+
}
|
|
114
|
+
if (CompareUtil.isNumber(data.pl4)) {
|
|
115
|
+
dataRow.pl4 = data.pl4;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
setPreviousPeriodValues(data, dataRow) {
|
|
119
|
+
if (CompareUtil.isNumber(data.pp1)) {
|
|
120
|
+
dataRow.pp1 = data.pp1;
|
|
121
|
+
}
|
|
122
|
+
if (CompareUtil.isNumber(data.pp2)) {
|
|
123
|
+
dataRow.pp2 = data.pp2;
|
|
124
|
+
}
|
|
125
|
+
if (CompareUtil.isNumber(data.pp3)) {
|
|
126
|
+
dataRow.pp3 = data.pp3;
|
|
127
|
+
}
|
|
128
|
+
if (CompareUtil.isNumber(data.pp4)) {
|
|
129
|
+
dataRow.pp4 = data.pp4;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
setForecastValues(data, dataRow) {
|
|
133
|
+
if (CompareUtil.isNumber(data.fc1)) {
|
|
134
|
+
dataRow.fc1 = data.fc1;
|
|
135
|
+
}
|
|
136
|
+
if (CompareUtil.isNumber(data.fc2)) {
|
|
137
|
+
dataRow.fc2 = data.fc2;
|
|
138
|
+
}
|
|
139
|
+
if (CompareUtil.isNumber(data.fc3)) {
|
|
140
|
+
dataRow.fc3 = data.fc3;
|
|
141
|
+
}
|
|
142
|
+
if (CompareUtil.isNumber(data.fc4)) {
|
|
143
|
+
dataRow.fc4 = data.fc4;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export * from "./DataPoint";
|
|
2
|
+
export * from "./DataPoint";
|
|
3
|
+
export * from "./TimeChartDataRow";
|
|
4
|
+
export * from "./styles/TimeChartStyle";
|
|
5
|
+
export * from "./styles/ScaleFactorsTimeChart";
|
|
6
|
+
export * from "./OverflowConfig";
|
|
7
|
+
/**
|
|
8
|
+
* IBCS scenario enumeration for time-series charts.
|
|
9
|
+
*
|
|
10
|
+
* Includes all 16 scenario slots (4 each of ac, pp, fc, pl) plus three
|
|
11
|
+
* variance direction markers: POS (positive/favorable), NEG (negative/unfavorable),
|
|
12
|
+
* NEU (neutral).
|
|
13
|
+
*/
|
|
14
|
+
export var Scenario;
|
|
15
|
+
(function (Scenario) {
|
|
16
|
+
Scenario["AC1"] = "ac1";
|
|
17
|
+
Scenario["PP1"] = "pp1";
|
|
18
|
+
Scenario["FC1"] = "fc1";
|
|
19
|
+
Scenario["PL1"] = "pl1";
|
|
20
|
+
Scenario["AC2"] = "ac2";
|
|
21
|
+
Scenario["PP2"] = "pp2";
|
|
22
|
+
Scenario["FC2"] = "fc2";
|
|
23
|
+
Scenario["PL2"] = "pl2";
|
|
24
|
+
Scenario["AC3"] = "ac3";
|
|
25
|
+
Scenario["PP3"] = "pp3";
|
|
26
|
+
Scenario["FC3"] = "fc3";
|
|
27
|
+
Scenario["PL3"] = "pl3";
|
|
28
|
+
Scenario["AC4"] = "ac4";
|
|
29
|
+
Scenario["PP4"] = "pp4";
|
|
30
|
+
Scenario["FC4"] = "fc4";
|
|
31
|
+
Scenario["PL4"] = "pl4";
|
|
32
|
+
/** Positive/favorable variance (rendered in green per IBCS). */
|
|
33
|
+
Scenario["POS"] = "pos";
|
|
34
|
+
/** Negative/unfavorable variance (rendered in red per IBCS). */
|
|
35
|
+
Scenario["NEG"] = "neg";
|
|
36
|
+
/** Neutral variance (rendered in grey per IBCS). */
|
|
37
|
+
Scenario["NEU"] = "neu";
|
|
38
|
+
})(Scenario || (Scenario = {}));
|
|
39
|
+
/** Chart-internal table aggregation modes. */
|
|
40
|
+
export var TableType;
|
|
41
|
+
(function (TableType) {
|
|
42
|
+
TableType["LIST"] = "LIST";
|
|
43
|
+
TableType["SUM"] = "SUM";
|
|
44
|
+
TableType["OPT"] = "OPT";
|
|
45
|
+
})(TableType || (TableType = {}));
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// import { IAdapter } from "../../../../../utils/helper/IAdapter";
|
|
2
|
+
// import { CompareUtil } from "../../../../../utils/helper/CompareUtil";
|
|
3
|
+
import { CompareUtil } from "../../../../../utils/helper/CompareUtil";
|
|
4
|
+
/**
|
|
5
|
+
* Proportional scale factors for time-series chart elements.
|
|
6
|
+
*
|
|
7
|
+
* All values are expressed in **font-size multiples** (em-like units), so the chart
|
|
8
|
+
* scales uniformly when the base font size changes. The chart renderer multiplies
|
|
9
|
+
* each factor by the computed font size to get pixel dimensions.
|
|
10
|
+
*/
|
|
11
|
+
export class ScaleFactorsTimeChart {
|
|
12
|
+
constructor() {
|
|
13
|
+
/** Horizontal gap between adjacent scenario bars within a data point. */
|
|
14
|
+
this.scenarioOffset = 0.3;
|
|
15
|
+
/** Vertical gap between the scenario label and the top of its column. */
|
|
16
|
+
this.scenarioLabelToColumn = 0.3;
|
|
17
|
+
/** Vertical gap between the value label and the top of its column. */
|
|
18
|
+
this.labelToColumn = 0.3;
|
|
19
|
+
/** Gap between axis labels and the axis line. */
|
|
20
|
+
this.labelToAxis = 0.3;
|
|
21
|
+
/** Width of the variance needle (pin chart element). */
|
|
22
|
+
this.needleWidth = 0.3;
|
|
23
|
+
/** Width of the arrowhead on variance needles. */
|
|
24
|
+
this.needleHeadWidth = 0.6;
|
|
25
|
+
/** Width of a single data column (bar). */
|
|
26
|
+
this.columnWidth = 2.0;
|
|
27
|
+
/** Stroke width of the variance chart axis line. */
|
|
28
|
+
this.varianceAxisLineWidth = 0.3;
|
|
29
|
+
/** Stroke width of the main value axis line. */
|
|
30
|
+
this.axisLineWidth = 0.1;
|
|
31
|
+
/** Stroke width of auxiliary/grid lines. */
|
|
32
|
+
this.auxiliaryLineWidth = 0.1;
|
|
33
|
+
/** Stroke width of scenario indicator lines (e.g. forecast hatching). */
|
|
34
|
+
this.scenarioLineWidth = 0.2;
|
|
35
|
+
/** Width of plan/previous-period marker symbols. */
|
|
36
|
+
this.markerWidth = 0.7;
|
|
37
|
+
/** Horizontal offset of markers from the column center. */
|
|
38
|
+
this.markerOffset = 0.0;
|
|
39
|
+
/** Total horizontal space allocated per data point (bar + padding). */
|
|
40
|
+
this.categoryWidth = 3.0;
|
|
41
|
+
/** Length of axis tick marks. */
|
|
42
|
+
this.axisTickLength = 0.3;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/** Converts untyped JSON into a validated {@link ScaleFactorsTimeChart}. */
|
|
46
|
+
export class ScaleFactorsTimeChartAdapter {
|
|
47
|
+
adapt(data) {
|
|
48
|
+
const scaleFactors = new ScaleFactorsTimeChart();
|
|
49
|
+
if (CompareUtil.isNumber(data.scenarioOffset)) {
|
|
50
|
+
scaleFactors.scenarioOffset = data.scenarioOffset;
|
|
51
|
+
}
|
|
52
|
+
if (CompareUtil.isNumber(data.scenarioLabelToColumn)) {
|
|
53
|
+
scaleFactors.scenarioLabelToColumn = data.scenarioLabelToColumn;
|
|
54
|
+
}
|
|
55
|
+
if (CompareUtil.isNumber(data.labelToColumn)) {
|
|
56
|
+
scaleFactors.labelToColumn = data.labelToColumn;
|
|
57
|
+
}
|
|
58
|
+
if (CompareUtil.isNumber(data.labelToAxis)) {
|
|
59
|
+
scaleFactors.labelToAxis = data.labelToAxis;
|
|
60
|
+
}
|
|
61
|
+
if (CompareUtil.isNumber(data.needleWidth)) {
|
|
62
|
+
scaleFactors.needleWidth = data.needleWidth;
|
|
63
|
+
}
|
|
64
|
+
if (CompareUtil.isNumber(data.needleHeadWidth)) {
|
|
65
|
+
scaleFactors.needleHeadWidth = data.needleHeadWidth;
|
|
66
|
+
}
|
|
67
|
+
if (CompareUtil.isNumber(data.columnWidth)) {
|
|
68
|
+
scaleFactors.columnWidth = data.columnWidth;
|
|
69
|
+
}
|
|
70
|
+
if (CompareUtil.isNumber(data.varianceAxisLineWidth)) {
|
|
71
|
+
scaleFactors.varianceAxisLineWidth = data.varianceAxisLineWidth;
|
|
72
|
+
}
|
|
73
|
+
if (CompareUtil.isNumber(data.axisLineWidth)) {
|
|
74
|
+
scaleFactors.axisLineWidth = data.axisLineWidth;
|
|
75
|
+
}
|
|
76
|
+
if (CompareUtil.isNumber(data.auxiliaryLineWidth)) {
|
|
77
|
+
scaleFactors.auxiliaryLineWidth = data.auxiliaryLineWidth;
|
|
78
|
+
}
|
|
79
|
+
if (CompareUtil.isNumber(data.scenarioLineWidth)) {
|
|
80
|
+
scaleFactors.scenarioLineWidth = data.scenarioLineWidth;
|
|
81
|
+
}
|
|
82
|
+
if (CompareUtil.isNumber(data.markerWidth)) {
|
|
83
|
+
scaleFactors.markerWidth = data.markerWidth;
|
|
84
|
+
}
|
|
85
|
+
if (CompareUtil.isNumber(data.markerOffset)) {
|
|
86
|
+
scaleFactors.markerOffset = data.markerOffset;
|
|
87
|
+
}
|
|
88
|
+
if (CompareUtil.isNumber(data.categoryWidth)) {
|
|
89
|
+
scaleFactors.categoryWidth = data.categoryWidth;
|
|
90
|
+
}
|
|
91
|
+
if (CompareUtil.isNumber(data.axisTickLength)) {
|
|
92
|
+
scaleFactors.axisTickLength = data.axisTickLength;
|
|
93
|
+
}
|
|
94
|
+
return scaleFactors;
|
|
95
|
+
}
|
|
96
|
+
default() {
|
|
97
|
+
return new ScaleFactorsTimeChart();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// import { IAdapter } from "../../../../../utils/helper/IAdapter";
|
|
2
|
+
import { CompareUtil } from "../../../../../utils/helper/CompareUtil";
|
|
3
|
+
import { MarkerPattern } from "../../helper/MarkerPattern";
|
|
4
|
+
// import { SVGPolgonPattern } from "../../../../../utils/model";
|
|
5
|
+
/** Aggregates all style configuration for a time chart: scale factors, fonts, colors, patterns, and padding. */
|
|
6
|
+
export class TimeChartStyle {
|
|
7
|
+
constructor(scaleFactors, fontStyles, axisStyles, barStyles, varianceStyles, padding) {
|
|
8
|
+
this.scaleFactors = scaleFactors;
|
|
9
|
+
this.fontStyles = fontStyles;
|
|
10
|
+
this.axisStyles = axisStyles;
|
|
11
|
+
this.barStyles = barStyles;
|
|
12
|
+
this.varianceStyles = varianceStyles;
|
|
13
|
+
this.padding = padding;
|
|
14
|
+
this.pattern = new Map();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** Adapts raw componentStyle JSON into a TimeChartStyle, falling back to defaults for missing properties. */
|
|
18
|
+
export class TimeChartStylesAdapter {
|
|
19
|
+
constructor(scaleFactorsStructureChartAdapter, fontStyleAdapter, svgStyleGroupAdapter, svgVariancesStyleGroupAdapter, paddingadapter) {
|
|
20
|
+
this.scaleFactorsStructureChartAdapter = scaleFactorsStructureChartAdapter;
|
|
21
|
+
this.fontStyleAdapter = fontStyleAdapter;
|
|
22
|
+
this.svgStyleGroupAdapter = svgStyleGroupAdapter;
|
|
23
|
+
this.svgVariancesStyleGroupAdapter = svgVariancesStyleGroupAdapter;
|
|
24
|
+
this.paddingadapter = paddingadapter;
|
|
25
|
+
}
|
|
26
|
+
adapt(data) {
|
|
27
|
+
const styles = new TimeChartStyle(this.scaleFactorsStructureChartAdapter.default(), this.fontStyleAdapter.default(), this.svgStyleGroupAdapter.default(), this.svgStyleGroupAdapter.default(), this.svgVariancesStyleGroupAdapter.default(), this.paddingadapter.default());
|
|
28
|
+
if (CompareUtil.isExisting(data)) {
|
|
29
|
+
if (CompareUtil.isExisting(data.scaleFactors)) {
|
|
30
|
+
styles.scaleFactors = this.scaleFactorsStructureChartAdapter.adapt(data.scaleFactors);
|
|
31
|
+
}
|
|
32
|
+
if (CompareUtil.isExisting(data.fontStyles)) {
|
|
33
|
+
styles.fontStyles = this.fontStyleAdapter.adapt(data.fontStyles);
|
|
34
|
+
}
|
|
35
|
+
if (CompareUtil.isExisting(data.axisStyles)) {
|
|
36
|
+
styles.axisStyles = this.svgStyleGroupAdapter.adapt(data.axisStyles);
|
|
37
|
+
}
|
|
38
|
+
if (CompareUtil.isExisting(data.barStyles)) {
|
|
39
|
+
styles.barStyles = this.svgStyleGroupAdapter.adapt(data.barStyles);
|
|
40
|
+
}
|
|
41
|
+
if (CompareUtil.isExisting(data.varianceStyles)) {
|
|
42
|
+
styles.varianceStyles = this.svgVariancesStyleGroupAdapter.adapt(data.varianceStyles);
|
|
43
|
+
}
|
|
44
|
+
if (CompareUtil.isExisting(data.padding)) {
|
|
45
|
+
styles.padding = this.paddingadapter.adapt(data.padding);
|
|
46
|
+
}
|
|
47
|
+
styles.pattern = new MarkerPattern(styles.fontStyles.size).createPatternMapForStructureBar();
|
|
48
|
+
}
|
|
49
|
+
return styles;
|
|
50
|
+
}
|
|
51
|
+
default() {
|
|
52
|
+
return new TimeChartStyle(this.scaleFactorsStructureChartAdapter.default(), this.fontStyleAdapter.default(), this.svgStyleGroupAdapter.default(), this.svgStyleGroupAdapter.default(), this.svgVariancesStyleGroupAdapter.default(), this.paddingadapter.default());
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import withBodyObserver from "../../utils/withBodyObserver";
|
|
3
|
+
import { getStores } from "../../context/context-protocol";
|
|
4
|
+
import withComponentStatus from "../../utils/withComponentStatus";
|
|
5
|
+
import withHasError from "../../utils/withHasError";
|
|
6
|
+
export class ComponentStyle {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.name = "_default";
|
|
9
|
+
withComponentStatus(this);
|
|
10
|
+
this.errors = withHasError(this);
|
|
11
|
+
withBodyObserver(this, (data) => {
|
|
12
|
+
if (!this.stores)
|
|
13
|
+
this.stores = getStores(this.element);
|
|
14
|
+
try {
|
|
15
|
+
const parsedData = JSON.parse(data);
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
this.stores.componentStyles.set(this.name, parsedData);
|
|
18
|
+
this.errors.remove("JSON_PARSE");
|
|
19
|
+
}
|
|
20
|
+
catch (e) {
|
|
21
|
+
this.errors.addOrReplace({
|
|
22
|
+
id: "JSON_PARSE",
|
|
23
|
+
type: "error",
|
|
24
|
+
message: `bn-component-style: Failed to parse JSON body — ${e.message}`,
|
|
25
|
+
});
|
|
26
|
+
console.error(e);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return h(Host, { key: 'e9298c6ce5b0b51260165e78dcf19efdef0646f9' });
|
|
32
|
+
}
|
|
33
|
+
static get is() { return "bn-component-style"; }
|
|
34
|
+
static get originalStyleUrls() {
|
|
35
|
+
return {
|
|
36
|
+
"$": ["bn-component-style.scss"]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static get styleUrls() {
|
|
40
|
+
return {
|
|
41
|
+
"$": ["bn-component-style.css"]
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
static get properties() {
|
|
45
|
+
return {
|
|
46
|
+
"name": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"mutable": false,
|
|
49
|
+
"complexType": {
|
|
50
|
+
"original": "string",
|
|
51
|
+
"resolved": "string",
|
|
52
|
+
"references": {}
|
|
53
|
+
},
|
|
54
|
+
"required": false,
|
|
55
|
+
"optional": false,
|
|
56
|
+
"docs": {
|
|
57
|
+
"tags": [],
|
|
58
|
+
"text": ""
|
|
59
|
+
},
|
|
60
|
+
"getter": false,
|
|
61
|
+
"setter": false,
|
|
62
|
+
"reflect": false,
|
|
63
|
+
"attribute": "name",
|
|
64
|
+
"defaultValue": "\"_default\""
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static get elementRef() { return "element"; }
|
|
69
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getOrCreateStores } from "../../context/context-protocol";
|
|
3
|
+
import withComponentStatus from "../../utils/withComponentStatus";
|
|
4
|
+
import withHasError from "../../utils/withHasError";
|
|
5
|
+
export class Context {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.currentPageUpdate = undefined;
|
|
8
|
+
withComponentStatus(this);
|
|
9
|
+
this.errors = withHasError(this);
|
|
10
|
+
}
|
|
11
|
+
setLocale(newValue) {
|
|
12
|
+
this.stores.context.state.locale = newValue;
|
|
13
|
+
}
|
|
14
|
+
connectedCallback() {
|
|
15
|
+
// Retrieve (or create) the stores for this context element.
|
|
16
|
+
// A descendant component may have already triggered creation via
|
|
17
|
+
// getStores() if Stencil initialized it before this component.
|
|
18
|
+
this.stores = getOrCreateStores(this.element);
|
|
19
|
+
if (this.locale) {
|
|
20
|
+
this.stores.context.state.locale = this.locale;
|
|
21
|
+
}
|
|
22
|
+
this.currentPageUpdate = setTimeout(() => {
|
|
23
|
+
this.element.querySelectorAll("bn-page, bn-layout-page").forEach((page, index) => {
|
|
24
|
+
if (page.localName === "bn-layout-page") {
|
|
25
|
+
page.setAttribute("page-number", (index + 1).toString());
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
const footer = page.querySelector("bn-footer");
|
|
29
|
+
if (footer) {
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
footer.setAttribute("page-number", (index + 1).toString());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}, 250);
|
|
36
|
+
}
|
|
37
|
+
disconnectedCallback() {
|
|
38
|
+
if (this.currentPageUpdate) {
|
|
39
|
+
clearTimeout(this.currentPageUpdate);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
componentWillLoad() {
|
|
43
|
+
// stencil needs one componenet implementing all lifecycle steps to get mixing working
|
|
44
|
+
}
|
|
45
|
+
componentDidLoad() { }
|
|
46
|
+
componentShouldUpdate() { }
|
|
47
|
+
componentWillRender() { }
|
|
48
|
+
componentDidRender() { }
|
|
49
|
+
componentWillUpdate() { }
|
|
50
|
+
componentDidUpdate() { }
|
|
51
|
+
render() {
|
|
52
|
+
return (h(Host, { key: 'b92019b909e271225baca2cf740c8301e324164e' }, h("slot", { key: '87bac4bb29bca32d961afe31355dc1bd48fff0f8' })));
|
|
53
|
+
}
|
|
54
|
+
static get is() { return "bn-context"; }
|
|
55
|
+
static get encapsulation() { return "shadow"; }
|
|
56
|
+
static get originalStyleUrls() {
|
|
57
|
+
return {
|
|
58
|
+
"$": ["bn-context.css"]
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
static get styleUrls() {
|
|
62
|
+
return {
|
|
63
|
+
"$": ["bn-context.css"]
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
static get properties() {
|
|
67
|
+
return {
|
|
68
|
+
"locale": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"mutable": false,
|
|
71
|
+
"complexType": {
|
|
72
|
+
"original": "string",
|
|
73
|
+
"resolved": "string",
|
|
74
|
+
"references": {}
|
|
75
|
+
},
|
|
76
|
+
"required": false,
|
|
77
|
+
"optional": false,
|
|
78
|
+
"docs": {
|
|
79
|
+
"tags": [],
|
|
80
|
+
"text": ""
|
|
81
|
+
},
|
|
82
|
+
"getter": false,
|
|
83
|
+
"setter": false,
|
|
84
|
+
"reflect": false,
|
|
85
|
+
"attribute": "locale"
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
static get elementRef() { return "element"; }
|
|
90
|
+
static get watchers() {
|
|
91
|
+
return [{
|
|
92
|
+
"propName": "locale",
|
|
93
|
+
"methodName": "setLocale"
|
|
94
|
+
}];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import withDatasource from "../../utils/withDatasource";
|
|
3
|
+
import withBodyObserver from "../../utils/withBodyObserver";
|
|
4
|
+
import { getStores } from "../../context/context-protocol";
|
|
5
|
+
import { calculateDatasetMeta } from "../../utils/datasetMetaCalculator";
|
|
6
|
+
import alasql from "alasql";
|
|
7
|
+
import withComponentStatus from "../../utils/withComponentStatus";
|
|
8
|
+
import withHasError from "../../utils/withHasError";
|
|
9
|
+
/**
|
|
10
|
+
* Queries data from one or more `bn-datasource` entries via AlaSQL and
|
|
11
|
+
* writes the result to the `datasets` store (+ computed `DatasetMeta`).
|
|
12
|
+
*
|
|
13
|
+
* The SQL query is provided as text inside the element body (observed via
|
|
14
|
+
* `withBodyObserver`). When any referenced datasource changes, the query
|
|
15
|
+
* is re-executed automatically. Set `static="true"` to bypass the SQL
|
|
16
|
+
* engine and treat the body content as raw JSON data directly.
|
|
17
|
+
*/
|
|
18
|
+
export class Dataset {
|
|
19
|
+
constructor() {
|
|
20
|
+
/**
|
|
21
|
+
* Commaseperated list of datasourcees
|
|
22
|
+
* <br /><br />
|
|
23
|
+
* example: <br />
|
|
24
|
+
* ```source1,source2```
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
this.datasources = "";
|
|
28
|
+
/**
|
|
29
|
+
* When true, bypasses the AlaSQL query engine and parses the body
|
|
30
|
+
* content as raw JSON, writing it directly to the datasets store.
|
|
31
|
+
*/
|
|
32
|
+
this.static = false;
|
|
33
|
+
withComponentStatus(this);
|
|
34
|
+
this.errors = withHasError(this);
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
this.database = new alasql.Database();
|
|
37
|
+
withDatasource(this, (name, data) => {
|
|
38
|
+
this.database.tables[name] = { data };
|
|
39
|
+
this.executeQuery();
|
|
40
|
+
});
|
|
41
|
+
withBodyObserver(this, (data) => {
|
|
42
|
+
this.query = data;
|
|
43
|
+
this.executeQuery();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
executeQuery() {
|
|
47
|
+
if (!this.stores)
|
|
48
|
+
this.stores = getStores(this.element);
|
|
49
|
+
if (!!this.query && !!this.name) {
|
|
50
|
+
let result;
|
|
51
|
+
if (this.static) {
|
|
52
|
+
try {
|
|
53
|
+
result = JSON.parse(this.query);
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
console.error("Failed to parse static dataset", e);
|
|
57
|
+
result = [];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
result = this.database.exec(this.query);
|
|
62
|
+
}
|
|
63
|
+
if (this.latestResult !== result) {
|
|
64
|
+
this.latestResult = result;
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
this.stores.datasets.set(this.name, result);
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
this.stores.datasetsMeta.set(this.name, calculateDatasetMeta(result));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
nameUpdated() {
|
|
73
|
+
this.executeQuery();
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return h(Host, { key: '0aecc50d8aa488f49d6630fec9f0755d306f213e' });
|
|
77
|
+
}
|
|
78
|
+
static get is() { return "bn-dataset"; }
|
|
79
|
+
static get originalStyleUrls() {
|
|
80
|
+
return {
|
|
81
|
+
"$": ["bn-dataset.css"]
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
static get styleUrls() {
|
|
85
|
+
return {
|
|
86
|
+
"$": ["bn-dataset.css"]
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
static get properties() {
|
|
90
|
+
return {
|
|
91
|
+
"name": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"mutable": false,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "string",
|
|
96
|
+
"resolved": "string",
|
|
97
|
+
"references": {}
|
|
98
|
+
},
|
|
99
|
+
"required": true,
|
|
100
|
+
"optional": false,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": "Unique (template scope) name of the datasource"
|
|
104
|
+
},
|
|
105
|
+
"getter": false,
|
|
106
|
+
"setter": false,
|
|
107
|
+
"reflect": false,
|
|
108
|
+
"attribute": "name"
|
|
109
|
+
},
|
|
110
|
+
"datasources": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "string",
|
|
115
|
+
"resolved": "string",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Commaseperated list of datasourcees\n<br /><br />\n example: <br />\n ```source1,source2```"
|
|
123
|
+
},
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
126
|
+
"reflect": false,
|
|
127
|
+
"attribute": "datasources",
|
|
128
|
+
"defaultValue": "\"\""
|
|
129
|
+
},
|
|
130
|
+
"static": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "boolean",
|
|
135
|
+
"resolved": "boolean",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": false,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": "When true, bypasses the AlaSQL query engine and parses the body\ncontent as raw JSON, writing it directly to the datasets store."
|
|
143
|
+
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
146
|
+
"reflect": false,
|
|
147
|
+
"attribute": "static",
|
|
148
|
+
"defaultValue": "false"
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
static get elementRef() { return "element"; }
|
|
153
|
+
static get watchers() {
|
|
154
|
+
return [{
|
|
155
|
+
"propName": "name",
|
|
156
|
+
"methodName": "nameUpdated"
|
|
157
|
+
}];
|
|
158
|
+
}
|
|
159
|
+
}
|