@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,23 @@
|
|
|
1
|
+
import { CompareUtil } from "../helper/CompareUtil";
|
|
2
|
+
/** SI metric prefix for number scaling (e.g. prefix="M", value=1000000 divides displayed values by one million). */
|
|
3
|
+
export class SiPrefix {
|
|
4
|
+
constructor(prefix = "", value = 1) {
|
|
5
|
+
this.prefix = prefix;
|
|
6
|
+
this.value = value;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export class SiPrefixAdapter {
|
|
10
|
+
adapt(data) {
|
|
11
|
+
const prefix = new SiPrefix();
|
|
12
|
+
if (CompareUtil.isString(data.prefix)) {
|
|
13
|
+
prefix.prefix = data.prefix;
|
|
14
|
+
}
|
|
15
|
+
if (CompareUtil.isNumber(data.value)) {
|
|
16
|
+
prefix.value = data.value;
|
|
17
|
+
}
|
|
18
|
+
return prefix;
|
|
19
|
+
}
|
|
20
|
+
default() {
|
|
21
|
+
return new SiPrefix();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses an IBCS variance column name into its constituent parts.
|
|
3
|
+
*
|
|
4
|
+
* Naming convention: `d{base}_{delta}_{sentiment}` for absolute variance,
|
|
5
|
+
* `dr{base}_{delta}_{sentiment}` for relative (%) variance.
|
|
6
|
+
*
|
|
7
|
+
* Example: `"dac1_pl1_pos"` → type="d", base="ac1" (minuend), delta="pl1" (subtrahend), direction="pos"
|
|
8
|
+
*/
|
|
9
|
+
export class VarianceScenario {
|
|
10
|
+
constructor(scenario) {
|
|
11
|
+
/** `"d"` for absolute variance, `"dr"` for relative (percentage) variance */
|
|
12
|
+
this.type = "";
|
|
13
|
+
/** Minuend scenario (the value subtracted from), e.g. `"ac1"` */
|
|
14
|
+
this.base = "";
|
|
15
|
+
/** Subtrahend scenario (the value subtracted), e.g. `"pl1"` */
|
|
16
|
+
this.delta = "";
|
|
17
|
+
/** Sentiment direction: `"pos"` (favorable), `"neg"` (unfavorable), `"neu"` (neutral) */
|
|
18
|
+
this.direction = "";
|
|
19
|
+
this.isValid = false;
|
|
20
|
+
/** Capture groups: [1]=type (d|dr), [2]=base scenario, [3]=delta scenario, [4]=sentiment */
|
|
21
|
+
const scenarioTestRegex = /(d|dr)(pl\d|ac\d|fc\d|pp\d)_(pl\d|ac\d|fc\d|pp\d)_(pos|neg|neu)/;
|
|
22
|
+
if (scenarioTestRegex.test(scenario)) {
|
|
23
|
+
const tokens = scenarioTestRegex.exec(scenario);
|
|
24
|
+
if (tokens != null) {
|
|
25
|
+
this.type = String(tokens[1]);
|
|
26
|
+
this.base = String(tokens[2]);
|
|
27
|
+
this.delta = String(tokens[3]);
|
|
28
|
+
this.direction = String(tokens[4]);
|
|
29
|
+
this.isValid = true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export * from "./VarianceScenario";
|
|
2
|
+
export * from "./ChartStyles";
|
|
3
|
+
export * from "./TextStyles";
|
|
4
|
+
export * from "./DatasetMeta";
|
|
5
|
+
export var QueryColumnNames;
|
|
6
|
+
(function (QueryColumnNames) {
|
|
7
|
+
QueryColumnNames["OPERATION"] = "operation";
|
|
8
|
+
QueryColumnNames["ROWGROUP"] = "rowGroup";
|
|
9
|
+
QueryColumnNames["ROWGROUPINDEX"] = "rowGroupIndex";
|
|
10
|
+
QueryColumnNames["CURRENTROW"] = "currentRow";
|
|
11
|
+
QueryColumnNames["CATEGORY"] = "category";
|
|
12
|
+
QueryColumnNames["CATEGORYINDEX"] = "categoryIndex";
|
|
13
|
+
QueryColumnNames["SUBCATEGORY"] = "subCategory";
|
|
14
|
+
QueryColumnNames["SUBCATEGORYINDEX"] = "subCategoryIndex";
|
|
15
|
+
QueryColumnNames["COLUMNGROUP"] = "columnGroup";
|
|
16
|
+
QueryColumnNames["COLUMNGROUPINDEX"] = "columnIndex";
|
|
17
|
+
QueryColumnNames["COLUMNSUBGROUP"] = "columnSubGroup";
|
|
18
|
+
QueryColumnNames["COLUMNSUBGROUPINDEX"] = "columnSubGroupIndex";
|
|
19
|
+
QueryColumnNames["AC1"] = "ac1";
|
|
20
|
+
QueryColumnNames["AC2"] = "ac2";
|
|
21
|
+
QueryColumnNames["AC3"] = "ac3";
|
|
22
|
+
QueryColumnNames["AC4"] = "ac4";
|
|
23
|
+
QueryColumnNames["PP1"] = "pp1";
|
|
24
|
+
QueryColumnNames["PP2"] = "pp2";
|
|
25
|
+
QueryColumnNames["PP3"] = "pp3";
|
|
26
|
+
QueryColumnNames["PP4"] = "pp4";
|
|
27
|
+
QueryColumnNames["FC1"] = "fc1";
|
|
28
|
+
QueryColumnNames["FC2"] = "fc2";
|
|
29
|
+
QueryColumnNames["FC3"] = "fc3";
|
|
30
|
+
QueryColumnNames["FC4"] = "fc4";
|
|
31
|
+
QueryColumnNames["PL1"] = "pl1";
|
|
32
|
+
QueryColumnNames["PL2"] = "pl2";
|
|
33
|
+
QueryColumnNames["PL3"] = "pl3";
|
|
34
|
+
QueryColumnNames["PL4"] = "pl4";
|
|
35
|
+
QueryColumnNames["TOTALROWCOUNT"] = "totalRowCnt";
|
|
36
|
+
QueryColumnNames["ROWNR"] = "rowNr";
|
|
37
|
+
QueryColumnNames["TYPE"] = "type";
|
|
38
|
+
})(QueryColumnNames || (QueryColumnNames = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CompareUtil } from "../../helper/CompareUtil";
|
|
2
|
+
export class FontStyle {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.font = "16px Arial";
|
|
5
|
+
this.size = 16;
|
|
6
|
+
this.color = "#000000";
|
|
7
|
+
this.background = "#ffffff";
|
|
8
|
+
this.leading = 1.8;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class FontStyleAdapter {
|
|
12
|
+
adapt(data) {
|
|
13
|
+
const fontStyle = new FontStyle();
|
|
14
|
+
if (CompareUtil.isString(data.font)) {
|
|
15
|
+
fontStyle.font = data.font;
|
|
16
|
+
}
|
|
17
|
+
if (CompareUtil.isNumber(data.size)) {
|
|
18
|
+
fontStyle.size = data.size;
|
|
19
|
+
}
|
|
20
|
+
if (CompareUtil.isString(data.color)) {
|
|
21
|
+
fontStyle.color = data.color;
|
|
22
|
+
}
|
|
23
|
+
if (CompareUtil.isString(data.background)) {
|
|
24
|
+
fontStyle.background = data.background;
|
|
25
|
+
}
|
|
26
|
+
if (CompareUtil.isNumber(data.leading)) {
|
|
27
|
+
fontStyle.leading = data.leading;
|
|
28
|
+
}
|
|
29
|
+
return fontStyle;
|
|
30
|
+
}
|
|
31
|
+
default() {
|
|
32
|
+
return new FontStyle();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CompareUtil } from "../../helper/CompareUtil";
|
|
2
|
+
export class Padding {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.top = 10;
|
|
5
|
+
this.left = 10;
|
|
6
|
+
this.right = 10;
|
|
7
|
+
this.bottom = 10;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export class PaddingAdapter {
|
|
11
|
+
adapt(data) {
|
|
12
|
+
const padding = new Padding();
|
|
13
|
+
if (CompareUtil.isNumber(data.top)) {
|
|
14
|
+
padding.top = data.top;
|
|
15
|
+
}
|
|
16
|
+
if (CompareUtil.isNumber(data.left)) {
|
|
17
|
+
padding.left = data.left;
|
|
18
|
+
}
|
|
19
|
+
if (CompareUtil.isNumber(data.right)) {
|
|
20
|
+
padding.right = data.right;
|
|
21
|
+
}
|
|
22
|
+
if (CompareUtil.isNumber(data.bottom)) {
|
|
23
|
+
padding.bottom = data.bottom;
|
|
24
|
+
}
|
|
25
|
+
return padding;
|
|
26
|
+
}
|
|
27
|
+
default() {
|
|
28
|
+
return new Padding();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CompareUtil } from "../../helper/CompareUtil";
|
|
2
|
+
export class SVGStyle {
|
|
3
|
+
constructor(stroke = "#000000", fill = "#000000", width = 0.1) {
|
|
4
|
+
this.stroke = stroke;
|
|
5
|
+
this.fill = fill;
|
|
6
|
+
this.width = width;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export class SVGStyleAdapter {
|
|
10
|
+
adapt(data) {
|
|
11
|
+
const style = new SVGStyle(data.stroke, data.fill, data.width);
|
|
12
|
+
if (CompareUtil.isString(data.fillpattern)) {
|
|
13
|
+
style.fillpattern = data.fillpattern;
|
|
14
|
+
}
|
|
15
|
+
if (CompareUtil.isString(data.dasharray)) {
|
|
16
|
+
style.dasharray = data.dasharray;
|
|
17
|
+
}
|
|
18
|
+
return style;
|
|
19
|
+
}
|
|
20
|
+
default() {
|
|
21
|
+
return new SVGStyle("#000000", "#000000", 0.3);
|
|
22
|
+
}
|
|
23
|
+
defaultAC() {
|
|
24
|
+
return new SVGStyle("#000000", "#000000", 0.3);
|
|
25
|
+
}
|
|
26
|
+
defaultFC() {
|
|
27
|
+
const style = new SVGStyle("#000000", "#000000", 0.3);
|
|
28
|
+
style.dasharray = "10 5 5 5";
|
|
29
|
+
style.fillpattern = "fc";
|
|
30
|
+
return style;
|
|
31
|
+
}
|
|
32
|
+
defaultPP() {
|
|
33
|
+
return new SVGStyle("#999999", "#999999", 0.3);
|
|
34
|
+
}
|
|
35
|
+
defaultPL() {
|
|
36
|
+
return new SVGStyle("#000000", "#ffffff", 0.3);
|
|
37
|
+
}
|
|
38
|
+
defaultPos() {
|
|
39
|
+
return new SVGStyle("#00ff00", "#00ff00", 0.3);
|
|
40
|
+
}
|
|
41
|
+
defaultNeg() {
|
|
42
|
+
return new SVGStyle("#ff0000", "#ff0000", 0.3);
|
|
43
|
+
}
|
|
44
|
+
defaultNeu() {
|
|
45
|
+
return new SVGStyle("#999999", "#999999", 0.3);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CompareUtil } from "../../helper/CompareUtil";
|
|
2
|
+
export class SVGStyleGroup {
|
|
3
|
+
constructor(ac, fc, pp, pl) {
|
|
4
|
+
this.ac = ac;
|
|
5
|
+
this.fc = fc;
|
|
6
|
+
this.pp = pp;
|
|
7
|
+
this.pl = pl;
|
|
8
|
+
}
|
|
9
|
+
getSVGStyle(scenario) {
|
|
10
|
+
if (scenario === "ac") {
|
|
11
|
+
return this.ac;
|
|
12
|
+
}
|
|
13
|
+
if (scenario === "fc") {
|
|
14
|
+
return this.fc;
|
|
15
|
+
}
|
|
16
|
+
if (scenario === "pp") {
|
|
17
|
+
return this.pp;
|
|
18
|
+
}
|
|
19
|
+
if (scenario === "pl") {
|
|
20
|
+
return this.pl;
|
|
21
|
+
}
|
|
22
|
+
return this.ac;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export class SVGStyleGroupAdapter {
|
|
26
|
+
constructor(svgStyleAdapter) {
|
|
27
|
+
this.svgStyleAdapter = svgStyleAdapter;
|
|
28
|
+
}
|
|
29
|
+
adapt(data) {
|
|
30
|
+
const styleGroup = new SVGStyleGroup(this.svgStyleAdapter.defaultAC(), this.svgStyleAdapter.defaultFC(), this.svgStyleAdapter.defaultPP(), this.svgStyleAdapter.defaultPL());
|
|
31
|
+
if (CompareUtil.isExisting(data.ac)) {
|
|
32
|
+
styleGroup.ac = this.svgStyleAdapter.adapt(data.ac);
|
|
33
|
+
}
|
|
34
|
+
if (CompareUtil.isExisting(data.fc)) {
|
|
35
|
+
styleGroup.fc = this.svgStyleAdapter.adapt(data.fc);
|
|
36
|
+
}
|
|
37
|
+
if (CompareUtil.isExisting(data.pp)) {
|
|
38
|
+
styleGroup.pp = this.svgStyleAdapter.adapt(data.pp);
|
|
39
|
+
}
|
|
40
|
+
if (CompareUtil.isExisting(data.pl)) {
|
|
41
|
+
styleGroup.pl = this.svgStyleAdapter.adapt(data.pl);
|
|
42
|
+
}
|
|
43
|
+
return styleGroup;
|
|
44
|
+
}
|
|
45
|
+
default() {
|
|
46
|
+
return new SVGStyleGroup(this.svgStyleAdapter.defaultAC(), this.svgStyleAdapter.defaultFC(), this.svgStyleAdapter.defaultPP(), this.svgStyleAdapter.defaultPL());
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CompareUtil } from "../../helper/CompareUtil";
|
|
2
|
+
export class SVGVariancesStyleGroup {
|
|
3
|
+
constructor(pos, neg, neu) {
|
|
4
|
+
this.pos = pos;
|
|
5
|
+
this.neg = neg;
|
|
6
|
+
this.neu = neu;
|
|
7
|
+
this.needleHeadColour = "#000000";
|
|
8
|
+
}
|
|
9
|
+
getSVGStyle(scenario) {
|
|
10
|
+
if (scenario === "pos") {
|
|
11
|
+
return this.pos;
|
|
12
|
+
}
|
|
13
|
+
if (scenario === "neg") {
|
|
14
|
+
return this.neg;
|
|
15
|
+
}
|
|
16
|
+
if (scenario === "neu") {
|
|
17
|
+
return this.neu;
|
|
18
|
+
}
|
|
19
|
+
return this.neu;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export class SVGVariancesStyleGroupAdapter {
|
|
23
|
+
constructor(svgStyleAdapter) {
|
|
24
|
+
this.svgStyleAdapter = svgStyleAdapter;
|
|
25
|
+
}
|
|
26
|
+
adapt(data) {
|
|
27
|
+
const styleGroup = new SVGVariancesStyleGroup(this.svgStyleAdapter.defaultPos(), this.svgStyleAdapter.defaultNeg(), this.svgStyleAdapter.defaultNeu());
|
|
28
|
+
if (CompareUtil.isExisting(data.pos)) {
|
|
29
|
+
styleGroup.pos = this.svgStyleAdapter.adapt(data.pos);
|
|
30
|
+
}
|
|
31
|
+
if (CompareUtil.isExisting(data.neg)) {
|
|
32
|
+
styleGroup.neg = this.svgStyleAdapter.adapt(data.neg);
|
|
33
|
+
}
|
|
34
|
+
if (CompareUtil.isExisting(data.pp)) {
|
|
35
|
+
styleGroup.neu = this.svgStyleAdapter.adapt(data.neu);
|
|
36
|
+
}
|
|
37
|
+
if (CompareUtil.isString(data.needleHeadColour)) {
|
|
38
|
+
styleGroup.needleHeadColour = data.needleHeadColour;
|
|
39
|
+
}
|
|
40
|
+
return styleGroup;
|
|
41
|
+
}
|
|
42
|
+
default() {
|
|
43
|
+
return new SVGVariancesStyleGroup(this.svgStyleAdapter.defaultPos(), this.svgStyleAdapter.defaultNeg(), this.svgStyleAdapter.defaultNeu());
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the available dimensions for a component.
|
|
3
|
+
*
|
|
4
|
+
* Width: parent content-box width (excluding padding).
|
|
5
|
+
* Height: walks up the DOM to find the nearest ancestor with a constrained
|
|
6
|
+
* height (overflow !== 'visible' or explicit max-height). Falls back to
|
|
7
|
+
* the viewport height when every ancestor auto-grows with its content.
|
|
8
|
+
*/
|
|
9
|
+
export function getParentDimensions(element) {
|
|
10
|
+
const parent = element.parentElement;
|
|
11
|
+
if (!parent) {
|
|
12
|
+
return { width: 0, height: 0 };
|
|
13
|
+
}
|
|
14
|
+
const parentStyle = getComputedStyle(parent);
|
|
15
|
+
const width = parent.clientWidth - parseFloat(parentStyle.paddingLeft) - parseFloat(parentStyle.paddingRight);
|
|
16
|
+
const height = findConstrainedHeight(element);
|
|
17
|
+
return { width: Math.max(0, width), height: Math.max(0, height) };
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Walks up the ancestor chain to find a height that is actually constrained
|
|
21
|
+
* (not just "whatever my content needs"). Returns viewport height as a
|
|
22
|
+
* last resort.
|
|
23
|
+
*/
|
|
24
|
+
function findConstrainedHeight(element) {
|
|
25
|
+
let current = element.parentElement;
|
|
26
|
+
while (current) {
|
|
27
|
+
const style = getComputedStyle(current);
|
|
28
|
+
const overflow = style.overflowY;
|
|
29
|
+
// An ancestor that clips / scrolls its content has a meaningful height
|
|
30
|
+
if (overflow === "hidden" || overflow === "scroll" || overflow === "auto") {
|
|
31
|
+
return current.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);
|
|
32
|
+
}
|
|
33
|
+
// An explicit max-height constrains the available space
|
|
34
|
+
if (style.maxHeight !== "none") {
|
|
35
|
+
const mh = parseFloat(style.maxHeight);
|
|
36
|
+
if (!isNaN(mh) && mh > 0) {
|
|
37
|
+
return Math.min(mh, current.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
current = current.parentElement;
|
|
41
|
+
}
|
|
42
|
+
// No constrained ancestor found — use viewport
|
|
43
|
+
return typeof window !== "undefined" ? window.innerHeight : 0;
|
|
44
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses the raw `scale` attribute string into a typed {@link ScalingConfig}.
|
|
3
|
+
* Handles null/empty (-> empty), literal `"none"` / `"auto"`, or a positive
|
|
4
|
+
* numeric string (-> factor mode). Invalid non-numeric strings fall back to empty.
|
|
5
|
+
*/
|
|
6
|
+
export function parseScaling(scale) {
|
|
7
|
+
if (scale == null || scale === "")
|
|
8
|
+
return { mode: "empty" };
|
|
9
|
+
if (scale === "none")
|
|
10
|
+
return { mode: "none" };
|
|
11
|
+
if (scale === "auto")
|
|
12
|
+
return { mode: "auto" };
|
|
13
|
+
const num = Number(scale);
|
|
14
|
+
if (!isNaN(num) && num > 0)
|
|
15
|
+
return { mode: "factor", factor: num };
|
|
16
|
+
return { mode: "empty" };
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Default fill colors cycled through for stacked chart segments. */
|
|
2
|
+
export const STACK_FILLS = ["#808080", "#c0c0c0", "#000000"];
|
|
3
|
+
/** Default stroke colors cycled through for stacked chart segments. */
|
|
4
|
+
export const STACK_STROKES = ["#808080", "#c0c0c0", "#000000"];
|
|
5
|
+
/**
|
|
6
|
+
* IBCS rendering order: back-to-front (PL behind FC behind PP behind AC).
|
|
7
|
+
* Used to ensure correct visual layering when scenarios overlap.
|
|
8
|
+
*/
|
|
9
|
+
export const IBCS_LAYER_ORDER = ["pl", "fc", "pp", "ac"];
|
|
10
|
+
/** Strips the trailing numeric suffix from a scenario key (e.g. "ac1" -> "ac"). */
|
|
11
|
+
export function getScenarioPrefix(scenario) {
|
|
12
|
+
return scenario.replace(/\d+$/, "");
|
|
13
|
+
}
|
|
14
|
+
/** Returns a fill color for the given stack index, cycling through `STACK_FILLS`. */
|
|
15
|
+
export function getStackFill(index) {
|
|
16
|
+
return STACK_FILLS[index % STACK_FILLS.length];
|
|
17
|
+
}
|
|
18
|
+
/** Returns a stroke color for the given stack index, cycling through `STACK_STROKES`. */
|
|
19
|
+
export function getStackStroke(index) {
|
|
20
|
+
return STACK_STROKES[index % STACK_STROKES.length];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns black or white text color for readable contrast against the given
|
|
24
|
+
* hex background, using the W3C relative luminance formula.
|
|
25
|
+
*/
|
|
26
|
+
export function getContrastTextColor(hexFill) {
|
|
27
|
+
const r = parseInt(hexFill.slice(1, 3), 16);
|
|
28
|
+
const g = parseInt(hexFill.slice(3, 5), 16);
|
|
29
|
+
const b = parseInt(hexFill.slice(5, 7), 16);
|
|
30
|
+
return 0.299 * r + 0.587 * g + 0.114 * b > 128 ? "#000000" : "#ffffff";
|
|
31
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import hash from "@emotion/hash";
|
|
2
|
+
import { isValidNumber } from "../validate";
|
|
3
|
+
const transofrmToUnitString = (value) => {
|
|
4
|
+
if (isValidNumber(value)) {
|
|
5
|
+
return `${value}px`;
|
|
6
|
+
}
|
|
7
|
+
else {
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const width = {
|
|
12
|
+
className: "w",
|
|
13
|
+
cssName: "width",
|
|
14
|
+
attrName: "width",
|
|
15
|
+
transform: transofrmToUnitString,
|
|
16
|
+
};
|
|
17
|
+
const height = {
|
|
18
|
+
className: "h",
|
|
19
|
+
cssName: "height",
|
|
20
|
+
attrName: "height",
|
|
21
|
+
transform: transofrmToUnitString,
|
|
22
|
+
};
|
|
23
|
+
const position = {
|
|
24
|
+
className: "pst",
|
|
25
|
+
cssName: "position",
|
|
26
|
+
attrName: "position",
|
|
27
|
+
};
|
|
28
|
+
const top = {
|
|
29
|
+
className: "top",
|
|
30
|
+
cssName: "top",
|
|
31
|
+
attrName: "top",
|
|
32
|
+
transform: transofrmToUnitString,
|
|
33
|
+
};
|
|
34
|
+
const right = {
|
|
35
|
+
className: "rgt",
|
|
36
|
+
cssName: "right",
|
|
37
|
+
attrName: "right",
|
|
38
|
+
transform: transofrmToUnitString,
|
|
39
|
+
};
|
|
40
|
+
const bottom = {
|
|
41
|
+
className: "btm",
|
|
42
|
+
cssName: "bottom",
|
|
43
|
+
attrName: "bottom",
|
|
44
|
+
transform: transofrmToUnitString,
|
|
45
|
+
};
|
|
46
|
+
const left = {
|
|
47
|
+
className: "lft",
|
|
48
|
+
cssName: "left",
|
|
49
|
+
attrName: "left",
|
|
50
|
+
transform: transofrmToUnitString,
|
|
51
|
+
};
|
|
52
|
+
const fontSize = {
|
|
53
|
+
className: "fts",
|
|
54
|
+
cssName: "font-size",
|
|
55
|
+
attrName: "font-size",
|
|
56
|
+
transform: transofrmToUnitString,
|
|
57
|
+
};
|
|
58
|
+
const gridColumn = {
|
|
59
|
+
className: "gdc",
|
|
60
|
+
cssName: "grid-column",
|
|
61
|
+
attrName: "grid-column",
|
|
62
|
+
};
|
|
63
|
+
const gridRow = {
|
|
64
|
+
className: "gdr",
|
|
65
|
+
cssName: "grid-row",
|
|
66
|
+
attrName: "grid-row",
|
|
67
|
+
};
|
|
68
|
+
const attributes = {
|
|
69
|
+
width: width,
|
|
70
|
+
height: height,
|
|
71
|
+
position: position,
|
|
72
|
+
top: top,
|
|
73
|
+
right: right,
|
|
74
|
+
bottom: bottom,
|
|
75
|
+
left: left,
|
|
76
|
+
"font-size": fontSize,
|
|
77
|
+
"grid-column": gridColumn,
|
|
78
|
+
"grid-row": gridRow,
|
|
79
|
+
};
|
|
80
|
+
export const attributesNames = Object.keys(attributes);
|
|
81
|
+
function getClassName(attr, value) {
|
|
82
|
+
const valueKey = hash(value);
|
|
83
|
+
return `bn-c-${attr.className}_${valueKey}`;
|
|
84
|
+
}
|
|
85
|
+
function getStyle(attr, className, value) {
|
|
86
|
+
return `.${className} {${attr.cssName}: ${value};}`;
|
|
87
|
+
}
|
|
88
|
+
function getCSS(attr, value) {
|
|
89
|
+
const className = getClassName(attr, value);
|
|
90
|
+
const style = getStyle(attr, className, value);
|
|
91
|
+
return { className, style };
|
|
92
|
+
}
|
|
93
|
+
export const apply = (el) => {
|
|
94
|
+
const map = new Map();
|
|
95
|
+
//map.set("position", getCSS(attributes["position"], "absolute"))
|
|
96
|
+
attributesNames.forEach((name) => {
|
|
97
|
+
const value = el.getAttribute(name);
|
|
98
|
+
if (value) {
|
|
99
|
+
if (["top", "left", "right", "bottom"].includes(name)) {
|
|
100
|
+
map.set("position", getCSS(attributes["position"], "absolute"));
|
|
101
|
+
}
|
|
102
|
+
const transform = attributes[name].transform ||
|
|
103
|
+
function (v) {
|
|
104
|
+
return v;
|
|
105
|
+
};
|
|
106
|
+
map.set(name, getCSS(attributes[name], transform(value)));
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
return map;
|
|
110
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class StyleSheet {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.cache = new Map();
|
|
4
|
+
this.tag = StyleSheet.makeStyleTag();
|
|
5
|
+
}
|
|
6
|
+
static makeStyleTag() {
|
|
7
|
+
const tag = document.createElement("style");
|
|
8
|
+
tag.type = "text/css";
|
|
9
|
+
tag.setAttribute("data-bn-computed-style", "");
|
|
10
|
+
tag.append(document.createTextNode(""));
|
|
11
|
+
(document.head || document.querySelector("head")).append(tag);
|
|
12
|
+
return tag;
|
|
13
|
+
}
|
|
14
|
+
apply(data) {
|
|
15
|
+
data.forEach((value) => this.cache.set(value.className, value.style));
|
|
16
|
+
this.tag.innerHTML = Array.from(this.cache.values())
|
|
17
|
+
.map((value) => value)
|
|
18
|
+
.join("\n");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export const styleSheet = new StyleSheet();
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { styleSheet } from "./style-sheet";
|
|
2
|
+
import { apply, attributesNames } from "./attributes";
|
|
3
|
+
import { forceUpdate, getElement } from "@stencil/core";
|
|
4
|
+
import { runIfExisits } from "../utils";
|
|
5
|
+
/**
|
|
6
|
+
* Shared MutationObserver that watches for style-attribute changes on all
|
|
7
|
+
* subscribed elements. When a monitored attribute changes, it re-applies the
|
|
8
|
+
* Styletron CSS-in-JS stylesheet and updates the element's className,
|
|
9
|
+
* preserving any non-`bn-c-` classes.
|
|
10
|
+
*/
|
|
11
|
+
const observer = new MutationObserver((mutations) => {
|
|
12
|
+
for (const mutation of mutations) {
|
|
13
|
+
const el = mutation.target;
|
|
14
|
+
const map = apply(el);
|
|
15
|
+
styleSheet.apply(map);
|
|
16
|
+
const classes = Array.from(map.values()).map((value) => value.className);
|
|
17
|
+
el.className = el.className
|
|
18
|
+
.split(" ")
|
|
19
|
+
.filter((value) => !value.startsWith("bn-c-"))
|
|
20
|
+
.concat(...classes)
|
|
21
|
+
.join(" ");
|
|
22
|
+
forceUpdate(el);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Registers an element with the Styletron observer: applies the initial
|
|
27
|
+
* stylesheet, assigns generated `bn-c-*` class names, and begins watching
|
|
28
|
+
* for attribute mutations that affect styling.
|
|
29
|
+
*/
|
|
30
|
+
const subscribe = (el) => {
|
|
31
|
+
const map = apply(el);
|
|
32
|
+
styleSheet.apply(map);
|
|
33
|
+
const classes = Array.from(map.values()).map((value) => value.className);
|
|
34
|
+
el.className = el.className
|
|
35
|
+
.split(" ")
|
|
36
|
+
.filter((value) => !value.startsWith("bn-c-"))
|
|
37
|
+
.concat(...classes)
|
|
38
|
+
.join(" ");
|
|
39
|
+
observer.observe(el, { attributes: true, attributeFilter: attributesNames, childList: false, subtree: false });
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Mixin that integrates Styletron CSS-in-JS styling into a Stencil component.
|
|
43
|
+
*
|
|
44
|
+
* On `connectedCallback`, it subscribes the host element to a shared
|
|
45
|
+
* MutationObserver that watches for style-related attribute changes. When
|
|
46
|
+
* attributes change, the Styletron stylesheet is re-applied and the element's
|
|
47
|
+
* class list is updated with generated `bn-c-*` class names, followed by a
|
|
48
|
+
* forced re-render.
|
|
49
|
+
*
|
|
50
|
+
* @param component - The Stencil component instance
|
|
51
|
+
*/
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
|
+
export const withStyled = (component) => {
|
|
54
|
+
const cstrConnectedCallback = component["connectedCallback"];
|
|
55
|
+
const cstrDisconnectedCallback = component["disconnectedCallback"];
|
|
56
|
+
component["connectedCallback"] = () => {
|
|
57
|
+
const elm = getElement(component);
|
|
58
|
+
if (elm) {
|
|
59
|
+
subscribe(elm);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
throw new Error(`Can't find element field in component ${this}`);
|
|
63
|
+
}
|
|
64
|
+
runIfExisits(cstrConnectedCallback, component);
|
|
65
|
+
};
|
|
66
|
+
component["disconnectedCallback"] = () => {
|
|
67
|
+
// MutationObserver has no per-element unobserve — the shared observer
|
|
68
|
+
// automatically stops firing for elements removed from the DOM.
|
|
69
|
+
runIfExisits(cstrDisconnectedCallback, component);
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Walks up the DOM tree from `elm` to find the nearest ancestor that carries
|
|
3
|
+
* a `template-id` attribute. Returns the attribute value, or `undefined` if
|
|
4
|
+
* no ancestor has one.
|
|
5
|
+
*
|
|
6
|
+
* Used to associate components with a named report template scope so that
|
|
7
|
+
* styles and data bindings can be scoped per-template.
|
|
8
|
+
*/
|
|
9
|
+
export const templateId = (elm) => {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
return (_b = (_a = elm.closest("[template-id]")) === null || _a === void 0 ? void 0 : _a.getAttribute("template-id")) !== null && _b !== void 0 ? _b : undefined;
|
|
12
|
+
};
|