@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,278 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CScBFiS1.js');
|
|
4
|
+
var contextProtocol = require('./context-protocol-BkYHFkXE.js');
|
|
5
|
+
var withHasError = require('./withHasError-Dspb3lIV.js');
|
|
6
|
+
var withBodyObserver = require('./withBodyObserver-B0_W1VOf.js');
|
|
7
|
+
var alasql_min = require('./alasql.min-C_nHTuEQ.js');
|
|
8
|
+
var withComponentStatus = require('./withComponentStatus-BrxL7usr.js');
|
|
9
|
+
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
10
|
+
require('./componentRegister-C17UFNPh.js');
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Mixin that subscribes a Stencil component to raw datasources.
|
|
14
|
+
*
|
|
15
|
+
* This is the simpler counterpart of {@link withDataset} -- it reads directly from
|
|
16
|
+
* the datasources store without going through bn-dataset query processing.
|
|
17
|
+
* Primarily used by bn-dataset itself, which needs access to raw data before
|
|
18
|
+
* producing a processed dataset.
|
|
19
|
+
*
|
|
20
|
+
* Watches the host element's `datasources` attribute via MutationObserver for
|
|
21
|
+
* dynamic rebinding at runtime.
|
|
22
|
+
*
|
|
23
|
+
* @param component - The Stencil component instance
|
|
24
|
+
* @param onUpdate - Callback invoked with `(name, data)` whenever a subscribed datasource changes
|
|
25
|
+
*/
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
|
+
const withDatasource = (component, onUpdate) => {
|
|
28
|
+
let subscription;
|
|
29
|
+
let datasources = [];
|
|
30
|
+
let stores;
|
|
31
|
+
const observer = new MutationObserver((mutations) => {
|
|
32
|
+
mutations.forEach((mutation) => {
|
|
33
|
+
if (mutation.attributeName === "datasources") {
|
|
34
|
+
datasources = (index.getElement(component).getAttribute("datasources") || "").split(",");
|
|
35
|
+
datasources.forEach((name) => {
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
onUpdate(name, stores.datasources.get(name));
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
const connectedCallback = component["connectedCallback"];
|
|
43
|
+
component["connectedCallback"] = () => {
|
|
44
|
+
const element = index.getElement(component);
|
|
45
|
+
stores = contextProtocol.getStores(element);
|
|
46
|
+
datasources = (element.getAttribute("datasources") || "").split(",");
|
|
47
|
+
datasources.forEach((name) => {
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
onUpdate(name, stores.datasources.get(name));
|
|
50
|
+
});
|
|
51
|
+
observer.observe(element, { attributes: true, attributeFilter: ["datasources"] });
|
|
52
|
+
subscription = stores.datasources.on("set", (key, newVlaue) => {
|
|
53
|
+
if (datasources.includes(key)) {
|
|
54
|
+
onUpdate(key, newVlaue);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
withHasError.runIfExisits(connectedCallback, component);
|
|
58
|
+
};
|
|
59
|
+
const disconnectedCallback = component["disconnectedCallback"];
|
|
60
|
+
component["disconnectedCallback"] = () => {
|
|
61
|
+
observer.disconnect();
|
|
62
|
+
withHasError.runIfExisits(subscription);
|
|
63
|
+
contextProtocol.clearStoresCache(index.getElement(component));
|
|
64
|
+
withHasError.runIfExisits(disconnectedCallback, component);
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** All recognized IBCS scenario column keys: actual (ac1-4), previous period (pp1-4), forecast (fc1-4), plan (pl1-4). */
|
|
69
|
+
const SCENARIO_KEYS = [
|
|
70
|
+
"ac1",
|
|
71
|
+
"ac2",
|
|
72
|
+
"ac3",
|
|
73
|
+
"ac4",
|
|
74
|
+
"pp1",
|
|
75
|
+
"pp2",
|
|
76
|
+
"pp3",
|
|
77
|
+
"pp4",
|
|
78
|
+
"fc1",
|
|
79
|
+
"fc2",
|
|
80
|
+
"fc3",
|
|
81
|
+
"fc4",
|
|
82
|
+
"pl1",
|
|
83
|
+
"pl2",
|
|
84
|
+
"pl3",
|
|
85
|
+
"pl4",
|
|
86
|
+
];
|
|
87
|
+
/** Hierarchical dimension fields from coarsest (rowGroup) to finest (columnSubGroup). */
|
|
88
|
+
const DIMENSION_FIELDS = ["rowGroup", "category", "subCategory", "columnGroup", "columnSubGroup"];
|
|
89
|
+
function isNumericValue(val) {
|
|
90
|
+
return typeof val === "number" && !isNaN(val) && isFinite(val);
|
|
91
|
+
}
|
|
92
|
+
/** Converts a Set of collected distinct values into a {@link DimensionMeta} summary. */
|
|
93
|
+
function buildDimensionMeta(values) {
|
|
94
|
+
const distinctValues = Array.from(values);
|
|
95
|
+
return {
|
|
96
|
+
distinctValues,
|
|
97
|
+
count: distinctValues.length,
|
|
98
|
+
hasData: distinctValues.length > 0,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Computes metadata for a dataset in a single O(n) pass over all rows.
|
|
103
|
+
*
|
|
104
|
+
* Collects:
|
|
105
|
+
* - **Dimensions**: distinct values per dimension field (using Sets for deduplication)
|
|
106
|
+
* - **Scenarios**: presence flag, min/max values for each scenario column
|
|
107
|
+
* - **Date range**: min/max date strings and distinct date count
|
|
108
|
+
* - **Suggested defaults**: `suggestedLevel` is the deepest populated dimension
|
|
109
|
+
* (subCategory > category > rowGroup), `suggestedOrder` mirrors it,
|
|
110
|
+
* and `suggestedDateInterval` is "auto" when date data exists.
|
|
111
|
+
*
|
|
112
|
+
* This function is called by bn-dataset whenever data changes and the result is
|
|
113
|
+
* stored in the datasetsMeta store for consumption by visualization components.
|
|
114
|
+
*/
|
|
115
|
+
function calculateDatasetMeta(data) {
|
|
116
|
+
const dimensionSets = {};
|
|
117
|
+
for (const field of DIMENSION_FIELDS) {
|
|
118
|
+
dimensionSets[field] = new Set();
|
|
119
|
+
}
|
|
120
|
+
const scenarioStats = {};
|
|
121
|
+
for (const key of SCENARIO_KEYS) {
|
|
122
|
+
scenarioStats[key] = { hasData: false, min: null, max: null };
|
|
123
|
+
}
|
|
124
|
+
const dateSeen = new Set();
|
|
125
|
+
let dateMin = null;
|
|
126
|
+
let dateMax = null;
|
|
127
|
+
const rows = Array.isArray(data) ? data : [];
|
|
128
|
+
for (let i = 0; i < rows.length; i++) {
|
|
129
|
+
const row = rows[i];
|
|
130
|
+
if (row == null)
|
|
131
|
+
continue;
|
|
132
|
+
for (const field of DIMENSION_FIELDS) {
|
|
133
|
+
const val = row[field];
|
|
134
|
+
if (val != null && val !== "") {
|
|
135
|
+
dimensionSets[field].add(String(val));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
for (const key of SCENARIO_KEYS) {
|
|
139
|
+
const val = row[key];
|
|
140
|
+
if (isNumericValue(val)) {
|
|
141
|
+
const stat = scenarioStats[key];
|
|
142
|
+
stat.hasData = true;
|
|
143
|
+
if (stat.min === null || val < stat.min)
|
|
144
|
+
stat.min = val;
|
|
145
|
+
if (stat.max === null || val > stat.max)
|
|
146
|
+
stat.max = val;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const dateVal = row["date"];
|
|
150
|
+
if (dateVal != null && dateVal !== "") {
|
|
151
|
+
const dateStr = String(dateVal);
|
|
152
|
+
dateSeen.add(dateStr);
|
|
153
|
+
if (dateMin === null || dateStr < dateMin)
|
|
154
|
+
dateMin = dateStr;
|
|
155
|
+
if (dateMax === null || dateStr > dateMax)
|
|
156
|
+
dateMax = dateStr;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const scenarios = SCENARIO_KEYS.map((key) => ({
|
|
160
|
+
key,
|
|
161
|
+
hasData: scenarioStats[key].hasData,
|
|
162
|
+
min: scenarioStats[key].min,
|
|
163
|
+
max: scenarioStats[key].max,
|
|
164
|
+
}));
|
|
165
|
+
const availableScenarios = scenarios.filter((s) => s.hasData).map((s) => s.key);
|
|
166
|
+
const rowGroup = buildDimensionMeta(dimensionSets["rowGroup"]);
|
|
167
|
+
const category = buildDimensionMeta(dimensionSets["category"]);
|
|
168
|
+
const subCategory = buildDimensionMeta(dimensionSets["subCategory"]);
|
|
169
|
+
const columnGroup = buildDimensionMeta(dimensionSets["columnGroup"]);
|
|
170
|
+
const columnSubGroup = buildDimensionMeta(dimensionSets["columnSubGroup"]);
|
|
171
|
+
const dateRange = {
|
|
172
|
+
min: dateMin,
|
|
173
|
+
max: dateMax,
|
|
174
|
+
hasData: dateSeen.size > 0,
|
|
175
|
+
distinctCount: dateSeen.size,
|
|
176
|
+
};
|
|
177
|
+
let suggestedLevel = "category";
|
|
178
|
+
if (subCategory.hasData) {
|
|
179
|
+
suggestedLevel = "subCategory";
|
|
180
|
+
}
|
|
181
|
+
else if (category.hasData) {
|
|
182
|
+
suggestedLevel = "category";
|
|
183
|
+
}
|
|
184
|
+
else if (rowGroup.hasData) {
|
|
185
|
+
suggestedLevel = "rowGroup";
|
|
186
|
+
}
|
|
187
|
+
const suggestedOrder = suggestedLevel;
|
|
188
|
+
const suggestedDateInterval = dateRange.hasData ? "auto" : null;
|
|
189
|
+
return {
|
|
190
|
+
rowCount: rows.length,
|
|
191
|
+
scenarios,
|
|
192
|
+
availableScenarios,
|
|
193
|
+
rowGroup,
|
|
194
|
+
category,
|
|
195
|
+
subCategory,
|
|
196
|
+
columnGroup,
|
|
197
|
+
columnSubGroup,
|
|
198
|
+
dateRange,
|
|
199
|
+
suggestedLevel,
|
|
200
|
+
suggestedOrder,
|
|
201
|
+
suggestedDateInterval,
|
|
202
|
+
calculatedAt: Date.now(),
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const bnDatasetCss = () => `bn-dataset{display:none}`;
|
|
207
|
+
|
|
208
|
+
const Dataset = class {
|
|
209
|
+
constructor(hostRef) {
|
|
210
|
+
index.registerInstance(this, hostRef);
|
|
211
|
+
/**
|
|
212
|
+
* Commaseperated list of datasourcees
|
|
213
|
+
* <br /><br />
|
|
214
|
+
* example: <br />
|
|
215
|
+
* ```source1,source2```
|
|
216
|
+
*
|
|
217
|
+
*/
|
|
218
|
+
this.datasources = "";
|
|
219
|
+
/**
|
|
220
|
+
* When true, bypasses the AlaSQL query engine and parses the body
|
|
221
|
+
* content as raw JSON, writing it directly to the datasets store.
|
|
222
|
+
*/
|
|
223
|
+
this.static = false;
|
|
224
|
+
withComponentStatus.withComponentStatus(this);
|
|
225
|
+
this.errors = withHasError.withHasError(this);
|
|
226
|
+
// @ts-ignore
|
|
227
|
+
this.database = new alasql_min.alasql.Database();
|
|
228
|
+
withDatasource(this, (name, data) => {
|
|
229
|
+
this.database.tables[name] = { data };
|
|
230
|
+
this.executeQuery();
|
|
231
|
+
});
|
|
232
|
+
withBodyObserver.withBodyObserver(this, (data) => {
|
|
233
|
+
this.query = data;
|
|
234
|
+
this.executeQuery();
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
executeQuery() {
|
|
238
|
+
if (!this.stores)
|
|
239
|
+
this.stores = contextProtocol.getStores(this.element);
|
|
240
|
+
if (!!this.query && !!this.name) {
|
|
241
|
+
let result;
|
|
242
|
+
if (this.static) {
|
|
243
|
+
try {
|
|
244
|
+
result = JSON.parse(this.query);
|
|
245
|
+
}
|
|
246
|
+
catch (e) {
|
|
247
|
+
console.error("Failed to parse static dataset", e);
|
|
248
|
+
result = [];
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
result = this.database.exec(this.query);
|
|
253
|
+
}
|
|
254
|
+
if (this.latestResult !== result) {
|
|
255
|
+
this.latestResult = result;
|
|
256
|
+
// @ts-ignore
|
|
257
|
+
this.stores.datasets.set(this.name, result);
|
|
258
|
+
// @ts-ignore
|
|
259
|
+
this.stores.datasetsMeta.set(this.name, calculateDatasetMeta(result));
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
nameUpdated() {
|
|
264
|
+
this.executeQuery();
|
|
265
|
+
}
|
|
266
|
+
render() {
|
|
267
|
+
return index.h(index.Host, { key: '0aecc50d8aa488f49d6630fec9f0755d306f213e' });
|
|
268
|
+
}
|
|
269
|
+
get element() { return index.getElement(this); }
|
|
270
|
+
static get watchers() { return {
|
|
271
|
+
"name": [{
|
|
272
|
+
"nameUpdated": 0
|
|
273
|
+
}]
|
|
274
|
+
}; }
|
|
275
|
+
};
|
|
276
|
+
Dataset.style = bnDatasetCss();
|
|
277
|
+
|
|
278
|
+
exports.bn_dataset = Dataset;
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CScBFiS1.js');
|
|
4
|
+
var withStyled = require('./withStyled-Bf-stJTR.js');
|
|
5
|
+
var withComponentStatus = require('./withComponentStatus-BrxL7usr.js');
|
|
6
|
+
var withComponentStyle = require('./withComponentStyle-C6KHnZHt.js');
|
|
7
|
+
var withHasError = require('./withHasError-Dspb3lIV.js');
|
|
8
|
+
require('./constants-DHqQXSSd.js');
|
|
9
|
+
require('./DateStringFactory-Dn0aRj2Y.js');
|
|
10
|
+
require('./luxon-8hyy5YD7.js');
|
|
11
|
+
require('./Order-B4NIqQWe.js');
|
|
12
|
+
require('./componentRegister-C17UFNPh.js');
|
|
13
|
+
require('./context-protocol-BkYHFkXE.js');
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Header configuration types and parsing utilities for bn-grid component.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Parses a JSON string of headers into HeaderItem array.
|
|
20
|
+
* Supports both simple string arrays and objects with id/label properties.
|
|
21
|
+
*
|
|
22
|
+
* Examples:
|
|
23
|
+
* - Simple: '["Electronics", "Furniture"]'
|
|
24
|
+
* - With IDs: '[{"label": "Electronics", "id": "elec"}, {"label": "Furniture", "id": "furn"}]'
|
|
25
|
+
*
|
|
26
|
+
* @param json - JSON string containing header definitions
|
|
27
|
+
* @returns Array of HeaderItem objects
|
|
28
|
+
*/
|
|
29
|
+
function parseHeaders(json) {
|
|
30
|
+
if (!json || json.trim() === "" || json === "[]") {
|
|
31
|
+
return [];
|
|
32
|
+
}
|
|
33
|
+
try {
|
|
34
|
+
const parsed = JSON.parse(json);
|
|
35
|
+
if (!Array.isArray(parsed)) {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
return parsed.map((item, index) => {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
if (typeof item === "string") {
|
|
41
|
+
// Simple string - use index as ID
|
|
42
|
+
return {
|
|
43
|
+
label: item,
|
|
44
|
+
id: String(index),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
else if (typeof item === "object" && item !== null) {
|
|
48
|
+
// Object with label and optional id
|
|
49
|
+
const label = (_b = (_a = item.label) !== null && _a !== void 0 ? _a : item.name) !== null && _b !== void 0 ? _b : String(index);
|
|
50
|
+
const id = (_c = item.id) !== null && _c !== void 0 ? _c : String(index);
|
|
51
|
+
return { label, id };
|
|
52
|
+
}
|
|
53
|
+
// Fallback for unexpected types
|
|
54
|
+
return {
|
|
55
|
+
label: String(item),
|
|
56
|
+
id: String(index),
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
console.error("parseHeaders: failed to parse JSON", e);
|
|
62
|
+
return [];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Parses both row and column headers into a GridConfig.
|
|
67
|
+
*
|
|
68
|
+
* @param rowHeaders - JSON string for row headers
|
|
69
|
+
* @param columnHeaders - JSON string for column headers
|
|
70
|
+
* @returns GridConfig object with parsed rows and columns
|
|
71
|
+
*/
|
|
72
|
+
function parseGridConfig(rowHeaders, columnHeaders) {
|
|
73
|
+
return {
|
|
74
|
+
rows: parseHeaders(rowHeaders),
|
|
75
|
+
columns: parseHeaders(columnHeaders),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Generates a slot name for a cell based on row and column indices.
|
|
80
|
+
* Uses IDs if available (e.g., "elec-inv"), otherwise uses indices (e.g., "0-1").
|
|
81
|
+
*
|
|
82
|
+
* @param row - Row HeaderItem
|
|
83
|
+
* @param col - Column HeaderItem
|
|
84
|
+
* @returns Slot name string
|
|
85
|
+
*/
|
|
86
|
+
function getSlotName(row, col) {
|
|
87
|
+
return `${row.id}-${col.id}`;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Validates the headers JSON string.
|
|
91
|
+
*
|
|
92
|
+
* @param json - JSON string to validate
|
|
93
|
+
* @returns Array of validation error messages (empty if valid)
|
|
94
|
+
*/
|
|
95
|
+
function validateHeadersJson(json) {
|
|
96
|
+
if (!json || json.trim() === "" || json === "[]") {
|
|
97
|
+
return [];
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
const parsed = JSON.parse(json);
|
|
101
|
+
if (!Array.isArray(parsed)) {
|
|
102
|
+
return ["Headers must be an array"];
|
|
103
|
+
}
|
|
104
|
+
const errors = [];
|
|
105
|
+
const ids = new Set();
|
|
106
|
+
parsed.forEach((item, index) => {
|
|
107
|
+
if (typeof item === "object" && item !== null && item.id !== undefined) {
|
|
108
|
+
if (typeof item.id !== "string") {
|
|
109
|
+
errors.push(`Header[${index}]: 'id' must be a string`);
|
|
110
|
+
}
|
|
111
|
+
else if (ids.has(item.id)) {
|
|
112
|
+
errors.push(`Header[${index}]: duplicate id '${item.id}'`);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
ids.add(item.id);
|
|
116
|
+
}
|
|
117
|
+
if (item.label !== undefined && typeof item.label !== "string") {
|
|
118
|
+
errors.push(`Header[${index}]: 'label' must be a string`);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
return errors;
|
|
123
|
+
}
|
|
124
|
+
catch (e) {
|
|
125
|
+
console.error("validateHeadersJson: failed to parse JSON", e);
|
|
126
|
+
return ["Invalid JSON structure"];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const bnGridCss = () => `:host{display:inline-block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.grid-container{display:inline-grid;box-sizing:border-box}.grid-title{font-weight:normal;padding-bottom:8px}.grid-header{display:flex;align-items:flex-end;box-sizing:border-box}.grid-header-row{justify-content:flex-end;padding-right:8px}.grid-header-col{white-space:nowrap;justify-content:flex-start}.grid-cell{position:relative;box-sizing:border-box}`;
|
|
131
|
+
|
|
132
|
+
const Grid = class {
|
|
133
|
+
validateRowHeaders(newValue) {
|
|
134
|
+
const errId = "ERR_rowHeaders";
|
|
135
|
+
const validationErrors = validateHeadersJson(newValue);
|
|
136
|
+
if (validationErrors.length > 0) {
|
|
137
|
+
this.errors.addOrReplace({
|
|
138
|
+
id: errId,
|
|
139
|
+
type: "error",
|
|
140
|
+
message: `row-headers: ${validationErrors.join("; ")}`,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
this.errors.remove(errId);
|
|
145
|
+
}
|
|
146
|
+
this.updateGridConfig();
|
|
147
|
+
}
|
|
148
|
+
validateColumnHeaders(newValue) {
|
|
149
|
+
const errId = "ERR_columnHeaders";
|
|
150
|
+
const validationErrors = validateHeadersJson(newValue);
|
|
151
|
+
if (validationErrors.length > 0) {
|
|
152
|
+
this.errors.addOrReplace({
|
|
153
|
+
id: errId,
|
|
154
|
+
type: "error",
|
|
155
|
+
message: `column-headers: ${validationErrors.join("; ")}`,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
this.errors.remove(errId);
|
|
160
|
+
}
|
|
161
|
+
this.updateGridConfig();
|
|
162
|
+
}
|
|
163
|
+
validateShowRowHeaders(newValue) {
|
|
164
|
+
const errId = "ERR_showRowHeaders";
|
|
165
|
+
if (!withStyled.isValidBoolean(newValue)) {
|
|
166
|
+
this.errors.addOrReplace({
|
|
167
|
+
id: errId,
|
|
168
|
+
type: "warning",
|
|
169
|
+
message: `show-row-headers: invalid value '${newValue}', must be 'true' or 'false'`,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
this.errors.remove(errId);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
validateShowColumnHeaders(newValue) {
|
|
177
|
+
const errId = "ERR_showColumnHeaders";
|
|
178
|
+
if (!withStyled.isValidBoolean(newValue)) {
|
|
179
|
+
this.errors.addOrReplace({
|
|
180
|
+
id: errId,
|
|
181
|
+
type: "warning",
|
|
182
|
+
message: `show-column-headers: invalid value '${newValue}', must be 'true' or 'false'`,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this.errors.remove(errId);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
validateShowBorders(newValue) {
|
|
190
|
+
const errId = "ERR_showBorders";
|
|
191
|
+
if (!withStyled.isValidBoolean(newValue)) {
|
|
192
|
+
this.errors.addOrReplace({
|
|
193
|
+
id: errId,
|
|
194
|
+
type: "warning",
|
|
195
|
+
message: `show-borders: invalid value '${newValue}', must be 'true' or 'false'`,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
this.errors.remove(errId);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
constructor(hostRef) {
|
|
203
|
+
index.registerInstance(this, hostRef);
|
|
204
|
+
this.gridConfig = { rows: [], columns: [] };
|
|
205
|
+
/**
|
|
206
|
+
* Title displayed at top-left of the grid.
|
|
207
|
+
*/
|
|
208
|
+
this.chartTitle = "";
|
|
209
|
+
/**
|
|
210
|
+
* JSON array defining row headers.
|
|
211
|
+
* Simple format: '["Row 1", "Row 2"]'
|
|
212
|
+
* With IDs: '[{"label": "Row 1", "id": "r1"}, {"label": "Row 2", "id": "r2"}]'
|
|
213
|
+
*/
|
|
214
|
+
this.rowHeaders = "[]";
|
|
215
|
+
/**
|
|
216
|
+
* JSON array defining column headers.
|
|
217
|
+
* Simple format: '["Column 1", "Column 2"]'
|
|
218
|
+
* With IDs: '[{"label": "Column 1", "id": "c1"}, {"label": "Column 2", "id": "c2"}]'
|
|
219
|
+
*/
|
|
220
|
+
this.columnHeaders = "[]";
|
|
221
|
+
/**
|
|
222
|
+
* Whether to display row headers.
|
|
223
|
+
*/
|
|
224
|
+
this.showRowHeaders = "true";
|
|
225
|
+
/**
|
|
226
|
+
* Whether to display column headers.
|
|
227
|
+
*/
|
|
228
|
+
this.showColumnHeaders = "true";
|
|
229
|
+
/**
|
|
230
|
+
* Whether to display divider lines between cells.
|
|
231
|
+
*/
|
|
232
|
+
this.showBorders = "true";
|
|
233
|
+
/**
|
|
234
|
+
* Width of row header column. Accepts CSS values (e.g., 'auto', '100px', '20%').
|
|
235
|
+
*/
|
|
236
|
+
this.rowHeaderWidth = "auto";
|
|
237
|
+
/**
|
|
238
|
+
* Gap between cells. Accepts CSS values (e.g., '0px', '8px').
|
|
239
|
+
*/
|
|
240
|
+
this.cellGap = "0px";
|
|
241
|
+
withStyled.withStyled(this);
|
|
242
|
+
withComponentStatus.withComponentStatus(this);
|
|
243
|
+
this.errors = withHasError.withHasError(this);
|
|
244
|
+
this.componentStyle = withComponentStyle.withComponentStyle(this);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Get grid styles from component style store
|
|
248
|
+
*/
|
|
249
|
+
getGridStyle() {
|
|
250
|
+
return this.componentStyle(($) => $["bn-grid"]);
|
|
251
|
+
}
|
|
252
|
+
componentWillLoad() {
|
|
253
|
+
this.validateRowHeaders(this.rowHeaders);
|
|
254
|
+
this.validateColumnHeaders(this.columnHeaders);
|
|
255
|
+
this.validateShowRowHeaders(this.showRowHeaders);
|
|
256
|
+
this.validateShowColumnHeaders(this.showColumnHeaders);
|
|
257
|
+
this.validateShowBorders(this.showBorders);
|
|
258
|
+
}
|
|
259
|
+
updateGridConfig() {
|
|
260
|
+
this.gridConfig = parseGridConfig(this.rowHeaders, this.columnHeaders);
|
|
261
|
+
}
|
|
262
|
+
shouldShowRowHeaders() {
|
|
263
|
+
return this.showRowHeaders === "true" && this.gridConfig.rows.length > 0;
|
|
264
|
+
}
|
|
265
|
+
shouldShowColumnHeaders() {
|
|
266
|
+
return this.showColumnHeaders === "true" && this.gridConfig.columns.length > 0;
|
|
267
|
+
}
|
|
268
|
+
shouldShowBorders() {
|
|
269
|
+
return this.showBorders === "true";
|
|
270
|
+
}
|
|
271
|
+
getGridTemplateColumns() {
|
|
272
|
+
const cols = [];
|
|
273
|
+
if (this.shouldShowRowHeaders()) {
|
|
274
|
+
cols.push(this.rowHeaderWidth);
|
|
275
|
+
}
|
|
276
|
+
// Add columns for each data column (auto-size to content)
|
|
277
|
+
const numCols = this.gridConfig.columns.length || 1;
|
|
278
|
+
for (let i = 0; i < numCols; i++) {
|
|
279
|
+
cols.push("auto");
|
|
280
|
+
}
|
|
281
|
+
return cols.join(" ");
|
|
282
|
+
}
|
|
283
|
+
getGridTemplateRows() {
|
|
284
|
+
const rows = [];
|
|
285
|
+
// Title row (if title exists)
|
|
286
|
+
if (this.chartTitle) {
|
|
287
|
+
rows.push("auto");
|
|
288
|
+
}
|
|
289
|
+
// Column headers row
|
|
290
|
+
if (this.shouldShowColumnHeaders()) {
|
|
291
|
+
rows.push("auto");
|
|
292
|
+
}
|
|
293
|
+
// Add rows for each data row (auto-size to content)
|
|
294
|
+
const numRows = this.gridConfig.rows.length || 1;
|
|
295
|
+
for (let i = 0; i < numRows; i++) {
|
|
296
|
+
rows.push("auto");
|
|
297
|
+
}
|
|
298
|
+
return rows.join(" ");
|
|
299
|
+
}
|
|
300
|
+
renderTitle() {
|
|
301
|
+
if (!this.chartTitle) {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
const totalCols = (this.shouldShowRowHeaders() ? 1 : 0) + this.gridConfig.columns.length;
|
|
305
|
+
return (index.h("div", { class: "grid-title", style: {
|
|
306
|
+
"grid-column": `1 / span ${totalCols}`,
|
|
307
|
+
"grid-row": "1",
|
|
308
|
+
} }, this.chartTitle));
|
|
309
|
+
}
|
|
310
|
+
renderColumnHeaders() {
|
|
311
|
+
if (!this.shouldShowColumnHeaders()) {
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
const style = this.getGridStyle();
|
|
315
|
+
const borderStyle = this.shouldShowBorders() ? `${style.borderWidth}px solid ${style.borderColor}` : "none";
|
|
316
|
+
const startCol = this.shouldShowRowHeaders() ? 2 : 1;
|
|
317
|
+
const headerRow = this.chartTitle ? 2 : 1;
|
|
318
|
+
return this.gridConfig.columns.map((col, index$1) => {
|
|
319
|
+
const isNotFirstCol = index$1 > 0;
|
|
320
|
+
return (index.h("div", { key: `col-header-${col.id}`, class: "grid-header grid-header-col", style: {
|
|
321
|
+
"grid-column": String(startCol + index$1),
|
|
322
|
+
"grid-row": String(headerRow),
|
|
323
|
+
"border-left": isNotFirstCol ? borderStyle : "none",
|
|
324
|
+
padding: `${style.cellPadding}px`,
|
|
325
|
+
"padding-left": isNotFirstCol ? `${style.cellPadding + 4}px` : `${style.cellPadding}px`,
|
|
326
|
+
} }, col.label));
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
renderDataCells() {
|
|
330
|
+
const style = this.getGridStyle();
|
|
331
|
+
const borderStyle = this.shouldShowBorders() ? `${style.borderWidth}px solid ${style.borderColor}` : "none";
|
|
332
|
+
const startCol = this.shouldShowRowHeaders() ? 2 : 1;
|
|
333
|
+
const startRow = (this.chartTitle ? 1 : 0) + (this.shouldShowColumnHeaders() ? 1 : 0) + 1;
|
|
334
|
+
const cells = [];
|
|
335
|
+
if (this.gridConfig.rows.length > 0 && this.gridConfig.columns.length > 0) {
|
|
336
|
+
this.gridConfig.rows.forEach((row, rowIndex) => {
|
|
337
|
+
// Render row header for this row
|
|
338
|
+
if (this.shouldShowRowHeaders()) {
|
|
339
|
+
const isNotFirstRow = rowIndex > 0;
|
|
340
|
+
cells.push(index.h("div", { key: `row-header-${row.id}`, class: "grid-header grid-header-row", style: {
|
|
341
|
+
"grid-column": "1",
|
|
342
|
+
"grid-row": String(startRow + rowIndex),
|
|
343
|
+
"border-top": isNotFirstRow ? borderStyle : "none",
|
|
344
|
+
padding: `${style.cellPadding}px`,
|
|
345
|
+
"padding-top": isNotFirstRow ? `${style.cellPadding + 4}px` : `${style.cellPadding}px`,
|
|
346
|
+
} }, row.label));
|
|
347
|
+
}
|
|
348
|
+
// Render data cells for this row
|
|
349
|
+
this.gridConfig.columns.forEach((col, colIndex) => {
|
|
350
|
+
const slotName = getSlotName(row, col);
|
|
351
|
+
const isNotFirstCol = colIndex > 0;
|
|
352
|
+
const isNotFirstRow = rowIndex > 0;
|
|
353
|
+
cells.push(index.h("div", { key: `cell-${slotName}`, class: "grid-cell", style: {
|
|
354
|
+
"grid-column": String(startCol + colIndex),
|
|
355
|
+
"grid-row": String(startRow + rowIndex),
|
|
356
|
+
"border-left": isNotFirstCol ? borderStyle : "none",
|
|
357
|
+
"border-top": isNotFirstRow ? borderStyle : "none",
|
|
358
|
+
"padding-left": isNotFirstCol ? `${style.cellPadding + 4}px` : "0",
|
|
359
|
+
"padding-top": isNotFirstRow ? `${style.cellPadding + 4}px` : "0",
|
|
360
|
+
} }, index.h("slot", { name: slotName })));
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
return cells;
|
|
365
|
+
}
|
|
366
|
+
getFontStyles() {
|
|
367
|
+
return this.componentStyle(($) => {
|
|
368
|
+
var _a, _b, _c, _d;
|
|
369
|
+
return ({
|
|
370
|
+
"--bn-font-family": ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontFamily"]) || "'Noto Sans', sans-serif",
|
|
371
|
+
"--bn-font-size": `${((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontSizePx"]) || 13.3333}px`,
|
|
372
|
+
"--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
|
|
373
|
+
"--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
render() {
|
|
378
|
+
const gridContainerStyle = {
|
|
379
|
+
display: "inline-grid",
|
|
380
|
+
"grid-template-columns": this.getGridTemplateColumns(),
|
|
381
|
+
"grid-template-rows": this.getGridTemplateRows(),
|
|
382
|
+
gap: this.cellGap,
|
|
383
|
+
};
|
|
384
|
+
return (index.h(index.Host, { key: 'e84402bafd778e7069cd17bd86687a6648dbafe0', style: this.getFontStyles() }, index.h("div", { key: '91941a42bc41fbbaf53c66551035bf97765a9f88', class: "grid-container", style: gridContainerStyle }, this.renderTitle(), this.renderColumnHeaders(), this.renderDataCells()), index.h("slot", { key: '349958090f4bf35b9ec768c8994bdf5a96636a36' })));
|
|
385
|
+
}
|
|
386
|
+
get element() { return index.getElement(this); }
|
|
387
|
+
static get watchers() { return {
|
|
388
|
+
"rowHeaders": [{
|
|
389
|
+
"validateRowHeaders": 0
|
|
390
|
+
}],
|
|
391
|
+
"columnHeaders": [{
|
|
392
|
+
"validateColumnHeaders": 0
|
|
393
|
+
}],
|
|
394
|
+
"showRowHeaders": [{
|
|
395
|
+
"validateShowRowHeaders": 0
|
|
396
|
+
}],
|
|
397
|
+
"showColumnHeaders": [{
|
|
398
|
+
"validateShowColumnHeaders": 0
|
|
399
|
+
}],
|
|
400
|
+
"showBorders": [{
|
|
401
|
+
"validateShowBorders": 0
|
|
402
|
+
}]
|
|
403
|
+
}; }
|
|
404
|
+
};
|
|
405
|
+
Grid.style = bnGridCss();
|
|
406
|
+
|
|
407
|
+
exports.bn_grid = Grid;
|