@bino-bi/bn-template-engine 1.0.0-alpha.0 → 1.0.0-alpha.3
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/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/p-05a82a77.entry.js +1 -0
- package/dist/bn-template-engine/p-0f1504f3.entry.js +1 -0
- package/dist/bn-template-engine/p-1970906d.entry.js +1 -0
- package/dist/bn-template-engine/p-1dbd339c.entry.js +1 -0
- package/dist/bn-template-engine/p-2e68cf09.entry.js +1 -0
- package/dist/bn-template-engine/p-31cc6a2d.entry.js +1 -0
- package/dist/bn-template-engine/p-37881d05.entry.js +1 -0
- package/dist/bn-template-engine/{p-65f8962a.entry.js → p-3b894997.entry.js} +1 -1
- package/dist/bn-template-engine/p-50e49732.entry.js +1 -0
- package/dist/bn-template-engine/{p-ad94cf63.entry.js → p-6c7c0455.entry.js} +1 -1
- package/dist/bn-template-engine/p-6da93eae.entry.js +1 -0
- package/dist/bn-template-engine/p-701e1578.entry.js +1 -0
- package/dist/bn-template-engine/{p-_LBTIfNN.js → p-8tsCnxIz.js} +1 -1
- package/dist/bn-template-engine/p-997b2fe4.entry.js +1 -0
- package/dist/bn-template-engine/p-B4ySv9KQ.js +1 -0
- package/dist/bn-template-engine/p-BL8gyUwE.js +1 -0
- package/dist/bn-template-engine/p-BSfqOkN_.js +1 -0
- package/dist/bn-template-engine/{p-Cp4MVxCu.js → p-C0yAPzJz.js} +1 -1
- package/dist/bn-template-engine/{p--TeDldm8.js → p-CRLgp9-v.js} +1 -1
- package/dist/bn-template-engine/p-CYjZRKdI.js +1 -0
- package/dist/bn-template-engine/p-DG-1MR_T.js +1 -0
- package/dist/bn-template-engine/{p-CnI71OA9.js → p-DRikHQE-.js} +1 -1
- package/dist/bn-template-engine/p-DVMu6dEy.js +1 -0
- package/dist/bn-template-engine/p-DtdQCMzj.js +1 -0
- package/dist/bn-template-engine/p-JNHhIe7t.js +2 -0
- package/dist/bn-template-engine/p-a90f1cbe.entry.js +1 -0
- package/dist/bn-template-engine/p-b7bec050.entry.js +1 -0
- package/dist/bn-template-engine/p-d7f0cbaf.entry.js +1 -0
- package/dist/bn-template-engine/p-dfb61aa5.entry.js +1 -0
- package/dist/bn-template-engine/p-ece17f84.entry.js +1 -0
- package/dist/bn-template-engine/p-f27995c9.entry.js +1 -0
- package/dist/bn-template-engine/p-fd427179.entry.js +1 -0
- package/dist/bn-template-engine/p-sqjrku2z.js +1 -0
- package/dist/bn-template-engine/{p-CY1RzLjU.js → p-tzFCK9qn.js} +1 -1
- package/dist/cjs/{DataFormatDigits-DmTbhF8q.js → DataFormatDigits-DAmZzqbD.js} +1 -1
- package/dist/cjs/{DateStringFactory-Dn0aRj2Y.js → DateStringFactory-CcluhpGI.js} +4 -5
- package/dist/cjs/{luxon-8hyy5YD7.js → Order-BKoDS21t.js} +310 -0
- package/dist/cjs/{SVGVariancesStyleGroup-Czizhngt.js → SVGVariancesStyleGroup-DYYAU-81.js} +1 -1
- package/dist/cjs/{StringAdapter-0EbYMkR0.js → StringAdapter-Bneo8T4k.js} +1 -1
- package/dist/cjs/bn-asset.cjs.entry.js +5 -6
- package/dist/cjs/{bn-body_3.cjs.entry.js → bn-body_4.cjs.entry.js} +360 -27
- package/dist/cjs/bn-card.cjs.entry.js +5 -6
- package/dist/cjs/bn-chart-structure.cjs.entry.js +17 -22
- package/dist/cjs/bn-chart-time.cjs.entry.js +38 -51
- package/dist/cjs/bn-component-style.cjs.entry.js +5 -6
- package/dist/cjs/bn-context_5.cjs.entry.js +145 -78
- package/dist/cjs/bn-dataset.cjs.entry.js +5 -6
- package/dist/cjs/bn-grid.cjs.entry.js +8 -11
- package/dist/cjs/bn-image.cjs.entry.js +8 -11
- package/dist/cjs/bn-internationalization.cjs.entry.js +5 -6
- package/dist/cjs/bn-layout-card.cjs.entry.js +3 -3
- package/dist/cjs/bn-layout-page.cjs.entry.js +2 -2
- package/dist/cjs/bn-message.cjs.entry.js +6 -7
- package/dist/cjs/bn-template-engine.cjs.js +2 -2
- package/dist/cjs/bn-template.cjs.entry.js +4 -5
- package/dist/cjs/bn-text.cjs.entry.js +12 -16
- package/dist/cjs/bn-tree.cjs.entry.js +8 -11
- package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-CRPmux5D.js} +1 -1
- package/dist/cjs/editor-companion.cjs.entry.js +3 -3
- package/dist/cjs/ibcs-chart-structure.cjs.entry.js +31 -33
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +42 -44
- package/dist/cjs/{index-CScBFiS1.js → index-Cjw0q6gP.js} +1 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{withDataset-ZdN-RRTx.js → scaling-D8sIIKft.js} +68 -3
- package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-C6gLgq_e.js} +2 -2
- package/dist/cjs/{componentRegister-C17UFNPh.js → withComponentStatus-_x4LQZ0N.js} +43 -6
- package/dist/cjs/{withComponentStyle-C6KHnZHt.js → withComponentStyle-DMtic_9Y.js} +3 -3
- package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-B8gHkfV2.js} +1 -1
- package/dist/cjs/{withStyled-Bf-stJTR.js → withStyled-CW30Bh6c.js} +18 -63
- package/dist/cjs/{withTranslation-Cz0M5maV.js → withTranslation-CWPAIRjh.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -10
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +2 -3
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +21 -30
- package/dist/collection/components/bn-message/bn-message.js +1 -1
- package/dist/collection/components/bn-page/bn-page.js +1 -1
- package/dist/collection/components/bn-table/bn-table.js +63 -12
- package/dist/collection/components/bn-table/ibcs-table.css +7 -5
- package/dist/collection/components/bn-table/ibcs-table.js +22 -1
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +56 -25
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
- package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
- package/dist/collection/components/bn-template/bn-template.js +1 -1
- package/dist/collection/components/bn-text/bn-text.js +1 -1
- package/dist/collection/components/bn-title/bn-title.js +1 -9
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -1
- package/dist/collection/components/editor-companion/editor-companion.js +1 -1
- package/dist/collection/utils/DateStringFactory.js +0 -1
- package/dist/collection/utils/constants.js +27 -0
- package/dist/collection/utils/validate.js +4 -1
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/DateStringFactory.js +1 -1
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGVariancesStyleGroup.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-message2.js +1 -1
- package/dist/components/bn-page2.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-template.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/editor-companion.js +1 -1
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/ibcsRuleSet.js +1 -1
- package/dist/components/scaling.js +1 -1
- package/dist/components/validate.js +1 -1
- package/dist/components/withHasError.js +1 -1
- package/dist/esm/{DataFormatDigits-Dt6gpIiZ.js → DataFormatDigits--qIbKvXa.js} +1 -1
- package/dist/esm/{DateStringFactory-_Qiv0IvF.js → DateStringFactory-XWdUjsn8.js} +1 -2
- package/dist/esm/{luxon-DbyXf6dF.js → Order-sqjrku2z.js} +307 -1
- package/dist/esm/{SVGVariancesStyleGroup-DlWgvpzs.js → SVGVariancesStyleGroup-ibg3sLjM.js} +1 -1
- package/dist/esm/{StringAdapter-BLvo1Krl.js → StringAdapter-BCLJpQQ8.js} +1 -1
- package/dist/esm/bn-asset.entry.js +5 -6
- package/dist/esm/{bn-body_3.entry.js → bn-body_4.entry.js} +356 -24
- package/dist/esm/bn-card.entry.js +5 -6
- package/dist/esm/bn-chart-structure.entry.js +12 -17
- package/dist/esm/bn-chart-time.entry.js +31 -44
- package/dist/esm/bn-component-style.entry.js +5 -6
- package/dist/esm/bn-context_5.entry.js +124 -57
- package/dist/esm/bn-dataset.entry.js +5 -6
- package/dist/esm/bn-grid.entry.js +8 -11
- package/dist/esm/bn-image.entry.js +8 -11
- package/dist/esm/bn-internationalization.entry.js +5 -6
- package/dist/esm/bn-layout-card.entry.js +3 -3
- package/dist/esm/bn-layout-page.entry.js +2 -2
- package/dist/esm/bn-message.entry.js +6 -7
- package/dist/esm/bn-template-engine.js +3 -3
- package/dist/esm/bn-template.entry.js +4 -5
- package/dist/esm/bn-text.entry.js +11 -15
- package/dist/esm/bn-tree.entry.js +8 -11
- package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-Bz5klD-F.js} +1 -1
- package/dist/esm/editor-companion.entry.js +3 -3
- package/dist/esm/ibcs-chart-structure.entry.js +5 -7
- package/dist/esm/ibcs-chart-time.entry.js +6 -8
- package/dist/esm/{index-B27Ax6P_.js → index-JNHhIe7t.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{withDataset-BT2VQCsG.js → scaling-C6K8FYSF.js} +67 -4
- package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-DczL5ia8.js} +2 -2
- package/dist/esm/{componentRegister-BtVfu16B.js → withComponentStatus-DodoSXe-.js} +36 -1
- package/dist/esm/{withComponentStyle-NaxfakAG.js → withComponentStyle-BerJY64r.js} +3 -3
- package/dist/esm/{withHasError-C48fTE2k.js → withHasError-B3QX2emi.js} +1 -1
- package/dist/esm/{withStyled-CpUTv74m.js → withStyled-D1fAWJ3g.js} +8 -51
- package/dist/esm/{withTranslation-Do4GhleK.js → withTranslation-mimbJdER.js} +3 -3
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +1 -2
- package/dist/types/components/bn-table/bn-table.d.ts +11 -7
- package/dist/types/components/bn-table/ibcs-table.d.ts +1 -0
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +3 -0
- package/dist/types/components/bn-title/bn-title.d.ts +0 -1
- package/dist/types/components.d.ts +22 -403
- package/dist/types/utils/constants.d.ts +15 -0
- package/dist/types/utils/validate.d.ts +1 -0
- package/package.json +2 -3
- package/readme.md +0 -1
- package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
- package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
- 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/p-0e7dc113.entry.js +0 -1
- package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
- package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
- package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
- package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
- package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
- package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
- package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
- package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
- package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
- package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
- package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
- package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
- package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
- package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
- package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
- package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
- package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
- package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
- package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
- package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
- package/dist/bn-template-engine/p-BQp6ZPYW.js +0 -1
- package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
- package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
- package/dist/bn-template-engine/p-CfWnag33.js +0 -1
- package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
- package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
- package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
- package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
- package/dist/bn-template-engine/p-c9f050bf.entry.js +0 -1
- package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
- package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
- package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
- package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
- package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
- package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
- package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
- package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
- package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
- package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
- package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
- package/dist/cjs/Order-B4NIqQWe.js +0 -129
- package/dist/cjs/bn-map.cjs.entry.js +0 -425
- package/dist/cjs/constants-DHqQXSSd.js +0 -158
- package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
- package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
- package/dist/cjs/scaling-B23eOtsC.js +0 -67
- package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
- package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
- package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
- package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
- package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
- package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
- package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
- package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
- package/dist/collection/components/bn-map/bn-map.css +0 -4
- package/dist/collection/components/bn-map/bn-map.js +0 -725
- package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
- package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
- 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 +0 -674
- package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
- package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
- package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
- package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
- package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
- package/dist/collection/test-runner/test-runner-card.js +0 -36
- package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
- package/dist/collection/test-runner/test-runner-chart.js +0 -364
- package/dist/collection/test-runner/test-runner-map.js +0 -1901
- package/dist/collection/test-runner/test-runner-table.js +0 -469
- package/dist/collection/test-runner/test-runner-time.js +0 -399
- package/dist/collection/test-runner/test-runner-title.js +0 -108
- package/dist/components/bn-map.d.ts +0 -11
- package/dist/components/bn-map.js +0 -1
- package/dist/components/componentRegister.js +0 -1
- package/dist/components/ibcs-map.d.ts +0 -11
- package/dist/components/ibcs-map.js +0 -1
- package/dist/components/ibcs-map2.js +0 -1
- package/dist/components/test-runner-card.d.ts +0 -11
- package/dist/components/test-runner-card.js +0 -1
- package/dist/components/test-runner-chart-time.d.ts +0 -11
- package/dist/components/test-runner-chart-time.js +0 -1
- package/dist/components/test-runner-chart.d.ts +0 -11
- package/dist/components/test-runner-chart.js +0 -1
- package/dist/components/test-runner-map.d.ts +0 -11
- package/dist/components/test-runner-map.js +0 -1
- package/dist/components/test-runner-table.d.ts +0 -11
- package/dist/components/test-runner-table.js +0 -1
- package/dist/components/test-runner-time.d.ts +0 -11
- package/dist/components/test-runner-time.js +0 -1
- package/dist/components/test-runner-title.d.ts +0 -11
- package/dist/components/test-runner-title.js +0 -1
- package/dist/components/withDataset.js +0 -1
- package/dist/esm/Order-B4fpLe_f.js +0 -125
- package/dist/esm/bn-map.entry.js +0 -423
- package/dist/esm/constants-kMyLevYy.js +0 -158
- package/dist/esm/ibcs-map.entry.js +0 -1073
- package/dist/esm/ibcs-title.entry.js +0 -350
- package/dist/esm/scaling-BBd0ZVLL.js +0 -64
- package/dist/esm/test-runner-card.entry.js +0 -25
- package/dist/esm/test-runner-chart-time.entry.js +0 -228
- package/dist/esm/test-runner-chart.entry.js +0 -324
- package/dist/esm/test-runner-map.entry.js +0 -1860
- package/dist/esm/test-runner-table.entry.js +0 -475
- package/dist/esm/test-runner-time.entry.js +0 -379
- package/dist/esm/test-runner-title.entry.js +0 -113
- package/dist/esm/withComponentStatus-elELReKt.js +0 -37
- package/dist/types/components/bn-map/bn-map.d.ts +0 -122
- package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
- package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
- package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
- package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
- package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
- package/dist/types/test-runner/test-runner-card.d.ts +0 -3
- package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
- package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
- package/dist/types/test-runner/test-runner-map.d.ts +0 -3
- package/dist/types/test-runner/test-runner-table.d.ts +0 -3
- package/dist/types/test-runner/test-runner-time.d.ts +0 -3
- package/dist/types/test-runner/test-runner-title.d.ts +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
5
|
-
var withComponentStyle = require('./withComponentStyle-
|
|
6
|
-
var withHasError = require('./withHasError-
|
|
7
|
-
var withStyled = require('./withStyled-
|
|
8
|
-
var
|
|
9
|
-
var withTranslation = require('./withTranslation-
|
|
10
|
-
var contextProtocol = require('./context-protocol-
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
require('./
|
|
3
|
+
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
+
var withComponentStatus = require('./withComponentStatus-_x4LQZ0N.js');
|
|
5
|
+
var withComponentStyle = require('./withComponentStyle-DMtic_9Y.js');
|
|
6
|
+
var withHasError = require('./withHasError-B8gHkfV2.js');
|
|
7
|
+
var withStyled = require('./withStyled-CW30Bh6c.js');
|
|
8
|
+
var Order = require('./Order-BKoDS21t.js');
|
|
9
|
+
var withTranslation = require('./withTranslation-CWPAIRjh.js');
|
|
10
|
+
var contextProtocol = require('./context-protocol-CRPmux5D.js');
|
|
11
|
+
var DateStringFactory = require('./DateStringFactory-CcluhpGI.js');
|
|
12
|
+
var formatter = require('./formatter-DIJL_crx.js');
|
|
13
|
+
var StringAdapter = require('./StringAdapter-Bneo8T4k.js');
|
|
14
|
+
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
15
15
|
|
|
16
16
|
const bnBodyCss = () => `:host{flex:1;position:relative;overflow:hidden;display: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)}`;
|
|
17
17
|
|
|
@@ -95,7 +95,7 @@ Footer.style = bnFooterCss();
|
|
|
95
95
|
|
|
96
96
|
const bnTitleCss = () => `:host{padding:0.5em;margin-bottom:0.5em;box-sizing:border-box;-webkit-box-sizing:border-box;width:100%;display: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)}`;
|
|
97
97
|
|
|
98
|
-
const Title = class {
|
|
98
|
+
const Title$1 = class Title {
|
|
99
99
|
constructor(hostRef) {
|
|
100
100
|
index.registerInstance(this, hostRef);
|
|
101
101
|
/** Name of the business unit displayed in card header. If empty string (`''` or `null`) the business unit row is omitted */
|
|
@@ -149,14 +149,6 @@ const Title = class {
|
|
|
149
149
|
*
|
|
150
150
|
*/
|
|
151
151
|
this.dateLink = "none";
|
|
152
|
-
this.scopedEval = (scope, script) => {
|
|
153
|
-
try {
|
|
154
|
-
return Function(`"use strict"; try { return ${script} } catch { return ""}`).bind(scope)();
|
|
155
|
-
}
|
|
156
|
-
catch (e) {
|
|
157
|
-
console.error("bn-text", e);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
152
|
withStyled.withStyled(this);
|
|
161
153
|
withComponentStatus.withComponentStatus(this);
|
|
162
154
|
this.t = withTranslation.withTranslation(this).t;
|
|
@@ -307,7 +299,7 @@ const Title = class {
|
|
|
307
299
|
return new Map([...i18nMapSystemGlobal.entries(), ...i18nMapSystemLocal.entries()]);
|
|
308
300
|
}
|
|
309
301
|
prepareI18nMode() {
|
|
310
|
-
return
|
|
302
|
+
return Order.I18nMode.META;
|
|
311
303
|
}
|
|
312
304
|
prepareTitleOrder() {
|
|
313
305
|
var _a;
|
|
@@ -328,8 +320,8 @@ const Title = class {
|
|
|
328
320
|
return null;
|
|
329
321
|
}
|
|
330
322
|
return {
|
|
331
|
-
start:
|
|
332
|
-
end:
|
|
323
|
+
start: Order.DateTime.fromISO(this.dateStart),
|
|
324
|
+
end: Order.DateTime.fromISO(this.dateEnd),
|
|
333
325
|
format: DateStringFactory.DateDistance[(_a = this.dateFormat) === null || _a === void 0 ? void 0 : _a.toUpperCase()],
|
|
334
326
|
link: DateStringFactory.DateLink[(_b = this.dateLink) === null || _b === void 0 ? void 0 : _b.toUpperCase()],
|
|
335
327
|
};
|
|
@@ -373,7 +365,7 @@ const Title = class {
|
|
|
373
365
|
}
|
|
374
366
|
render() {
|
|
375
367
|
const fontStyles = this.getFontStyles();
|
|
376
|
-
return (index.h(index.Host, { key: '
|
|
368
|
+
return (index.h(index.Host, { key: '029abd8096c5274f94123da2dc1c1e88e76be922', style: fontStyles }, index.h("ibcs-title", { key: 'c8b128a6ea36d44d8a0730898b35fa3f944e23ae', businessUnit: this.prepareBusinessUnit(), scenarios: this.prepareScenarios(), measures: this.prepareMeasures(), timeperiod: this.prepareTitleTimePeriod(), order: this.prepareTitleOrder(), i18n: this.prepareI18n(), "i18n-mode": this.prepareI18nMode() })));
|
|
377
369
|
}
|
|
378
370
|
get element() { return index.getElement(this); }
|
|
379
371
|
static get watchers() { return {
|
|
@@ -406,8 +398,349 @@ const Title = class {
|
|
|
406
398
|
}]
|
|
407
399
|
}; }
|
|
408
400
|
};
|
|
409
|
-
Title.style = bnTitleCss();
|
|
401
|
+
Title$1.style = bnTitleCss();
|
|
402
|
+
|
|
403
|
+
class TitleDataSetFactory {
|
|
404
|
+
constructor() { }
|
|
405
|
+
/**
|
|
406
|
+
* Creates measures, adds i18n to each element
|
|
407
|
+
* @param measures
|
|
408
|
+
* @param i18n
|
|
409
|
+
* @param i18nMode
|
|
410
|
+
*/
|
|
411
|
+
createMeasures(measures, i18n, i18nMode) {
|
|
412
|
+
if (this.allMeasuresUseSameUnit(measures)) {
|
|
413
|
+
const amountOfMeasures = measures.length;
|
|
414
|
+
let measureName = "";
|
|
415
|
+
let unit = "";
|
|
416
|
+
for (let i = 0; i < amountOfMeasures; i++) {
|
|
417
|
+
let separator = "";
|
|
418
|
+
if (i > 0) {
|
|
419
|
+
separator = i18n.get("SEPERATOR_WS");
|
|
420
|
+
}
|
|
421
|
+
if (amountOfMeasures > 1 && i === amountOfMeasures - 1) {
|
|
422
|
+
separator = i18n.get("CONNECTOR_WS");
|
|
423
|
+
}
|
|
424
|
+
if (i18nMode === Order.I18nMode.ALL) {
|
|
425
|
+
measureName =
|
|
426
|
+
(i18n.get(measureName) || measureName) + separator + (i18n.get(measures[i].name) || measures[i].name);
|
|
427
|
+
unit = i18n.get(measures[i].unit) || measures[i].unit;
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
measureName = measureName + separator + measures[i].name;
|
|
431
|
+
unit = measures[i].unit;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
return [
|
|
435
|
+
{
|
|
436
|
+
name: measureName,
|
|
437
|
+
unit: unit,
|
|
438
|
+
},
|
|
439
|
+
];
|
|
440
|
+
}
|
|
441
|
+
else {
|
|
442
|
+
return measures;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Creates Dimension String,
|
|
447
|
+
* concat of translated scenarios, time and order
|
|
448
|
+
*
|
|
449
|
+
* @param scenarios
|
|
450
|
+
* @param time
|
|
451
|
+
* @param order
|
|
452
|
+
* @param i18n
|
|
453
|
+
*/
|
|
454
|
+
createDimension(scenarios, time, order, i18n, spanLimit) {
|
|
455
|
+
let formatedTime = "";
|
|
456
|
+
if (time !== undefined) {
|
|
457
|
+
formatedTime = new DateStringFactory.DateStringFactory().getDateLinkString(time.start, time.end, time.link, time.format, spanLimit);
|
|
458
|
+
}
|
|
459
|
+
const formatedScenarios = scenarios
|
|
460
|
+
.map((scenario) => {
|
|
461
|
+
let orderString = "";
|
|
462
|
+
if (order != null && order.hierarchy != null) {
|
|
463
|
+
if (order.hierarchy.find((x) => x === scenario)) {
|
|
464
|
+
if (order.direction === "asc") {
|
|
465
|
+
orderString = i18n.get("ORDER_asc");
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
orderString = i18n.get("ORDER_desc");
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
return "".concat(" ", formatter.Formatter.translateScenarioLabel(scenario, i18n), orderString);
|
|
473
|
+
})
|
|
474
|
+
.toString();
|
|
475
|
+
return formatedTime + formatedScenarios;
|
|
476
|
+
}
|
|
477
|
+
allMeasuresUseSameUnit(measures) {
|
|
478
|
+
const units = new Map();
|
|
479
|
+
measures.forEach(function (entry) {
|
|
480
|
+
units.set(entry.unit, true);
|
|
481
|
+
});
|
|
482
|
+
const hasOneUnit = units.size === 1;
|
|
483
|
+
return hasOneUnit;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
class TitleConfig {
|
|
488
|
+
constructor() {
|
|
489
|
+
this.businessunit = "";
|
|
490
|
+
this.measures = [];
|
|
491
|
+
this.scenarios = [];
|
|
492
|
+
this.i18nMode = Order.I18nMode.ALL;
|
|
493
|
+
this.intervalSpanLimit = 32;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
class TitleConifgAdapter {
|
|
497
|
+
constructor(measureEntryAdapter, timePeriodAdapter, orderAdapter, stringAdapter) {
|
|
498
|
+
this.measureEntryAdapter = measureEntryAdapter;
|
|
499
|
+
this.timePeriodAdapter = timePeriodAdapter;
|
|
500
|
+
this.orderAdapter = orderAdapter;
|
|
501
|
+
this.stringAdapter = stringAdapter;
|
|
502
|
+
}
|
|
503
|
+
adapt(data) {
|
|
504
|
+
const config = new TitleConfig();
|
|
505
|
+
if (Order.CompareUtil.isString(data.businessunit)) {
|
|
506
|
+
config.businessunit = data.businessunit;
|
|
507
|
+
}
|
|
508
|
+
if (Order.CompareUtil.isArray(data.measures)) {
|
|
509
|
+
config.measures = Order.AdapterUtils.adaptArray(data.measures, this.measureEntryAdapter);
|
|
510
|
+
}
|
|
511
|
+
if (Order.CompareUtil.isArray(data.scenarios)) {
|
|
512
|
+
config.scenarios = Order.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
|
|
513
|
+
}
|
|
514
|
+
if (Order.CompareUtil.isExisting(data.timeperiod)) {
|
|
515
|
+
config.timeperiod = this.timePeriodAdapter.adapt(data.timeperiod);
|
|
516
|
+
}
|
|
517
|
+
if (Order.CompareUtil.isNumber(data.intervalSpanLimit)) {
|
|
518
|
+
config.intervalSpanLimit = data.intervalSpanLimit;
|
|
519
|
+
}
|
|
520
|
+
if (Order.CompareUtil.isExisting(data.i18nMode)) {
|
|
521
|
+
config.i18nMode = data.i18nMode;
|
|
522
|
+
}
|
|
523
|
+
if (Order.CompareUtil.isExisting(data.order)) {
|
|
524
|
+
config.order = this.orderAdapter.adapt(data.order);
|
|
525
|
+
}
|
|
526
|
+
return config;
|
|
527
|
+
}
|
|
528
|
+
default() {
|
|
529
|
+
return new TitleConfig();
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
var FactoryState;
|
|
534
|
+
(function (FactoryState) {
|
|
535
|
+
FactoryState[FactoryState["UP_TO_DATE"] = 0] = "UP_TO_DATE";
|
|
536
|
+
FactoryState[FactoryState["DIRTY"] = 1] = "DIRTY";
|
|
537
|
+
})(FactoryState || (FactoryState = {}));
|
|
538
|
+
class Title {
|
|
539
|
+
constructor(ruleSet) {
|
|
540
|
+
this.i18n = new Map();
|
|
541
|
+
this.unit = "";
|
|
542
|
+
this.measures = [];
|
|
543
|
+
this.dimension = "";
|
|
544
|
+
this.config = new TitleConfig();
|
|
545
|
+
this.state = FactoryState.DIRTY;
|
|
546
|
+
this.ruleSet = ruleSet || new StringAdapter.IBCSRuleSet();
|
|
547
|
+
this.dataSetFactory = new TitleDataSetFactory();
|
|
548
|
+
this.state = FactoryState.DIRTY;
|
|
549
|
+
this.setI18n(new Map());
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Set Localisation Map
|
|
553
|
+
* @param i18n
|
|
554
|
+
*/
|
|
555
|
+
setI18n(i18n) {
|
|
556
|
+
this.state = FactoryState.DIRTY; // mark dataSet for update
|
|
557
|
+
const defaultI18n = new Map([
|
|
558
|
+
["SEPERATOR_WS", ", "],
|
|
559
|
+
["in", "in"],
|
|
560
|
+
["ORDER_asc", "↑"],
|
|
561
|
+
["ORDER_desc", "↓"],
|
|
562
|
+
["ac1", "AC"],
|
|
563
|
+
["pp1", "PY"],
|
|
564
|
+
["fc1", "FC"],
|
|
565
|
+
["pl1", "PL"],
|
|
566
|
+
["ac2", "AC2"],
|
|
567
|
+
["pp2", "PY2"],
|
|
568
|
+
["fc2", "FC2"],
|
|
569
|
+
["pl2", "PL2"],
|
|
570
|
+
["ac3", "AC3"],
|
|
571
|
+
["pp3", "PY3"],
|
|
572
|
+
["fc3", "FC3"],
|
|
573
|
+
["pp3", "PL3"],
|
|
574
|
+
["ac4", "AC4"],
|
|
575
|
+
["py4", "PY4"],
|
|
576
|
+
["fc4", "FC4"],
|
|
577
|
+
["pp4", "PL4"],
|
|
578
|
+
["category", " "],
|
|
579
|
+
["operation", " "],
|
|
580
|
+
["there_of", "davon"],
|
|
581
|
+
["part_of", "in % von"],
|
|
582
|
+
["ibcssymbol_delta_ac", "Δ{%}"],
|
|
583
|
+
["ibcssymbol_delta_generic", "Δ({%})"],
|
|
584
|
+
["ibcssymbol_delta_ac_relative", "Δ{%}%"],
|
|
585
|
+
["ibcssymbol_delta_generic_relative", "Δ({%})%"],
|
|
586
|
+
["SUM_TOTAL", "❖"],
|
|
587
|
+
["CONNECTOR_WS", " und "],
|
|
588
|
+
]);
|
|
589
|
+
this.i18n = new Map([...defaultI18n, ...(i18n || new Map())]);
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Generates and Returns the DataSet based,
|
|
593
|
+
* data and config.
|
|
594
|
+
* if data or config have not been changed since last run
|
|
595
|
+
* the dataSet will not be regenerated.
|
|
596
|
+
*/
|
|
597
|
+
update() {
|
|
598
|
+
if (FactoryState.DIRTY === this.state) {
|
|
599
|
+
this.unit = this.config.businessunit;
|
|
600
|
+
this.measures = this.dataSetFactory.createMeasures(this.config.measures, this.i18n, this.config.i18nMode);
|
|
601
|
+
this.dimension = this.dataSetFactory.createDimension(this.config.scenarios, this.config.timeperiod, this.config.order, this.i18n, this.config.intervalSpanLimit);
|
|
602
|
+
this.state = FactoryState.UP_TO_DATE;
|
|
603
|
+
}
|
|
604
|
+
return this;
|
|
605
|
+
}
|
|
606
|
+
setConfig(config) {
|
|
607
|
+
this.config = this.initConfig(config);
|
|
608
|
+
}
|
|
609
|
+
initConfig(config) {
|
|
610
|
+
this.state = FactoryState.DIRTY;
|
|
611
|
+
const tmpConfig = config;
|
|
612
|
+
// this.checkConfigIfValidElseSetDefaultOrder(config.order);
|
|
613
|
+
// sorting scenario order based on Ruleset
|
|
614
|
+
const self = this;
|
|
615
|
+
config.scenarios.sort((n1, n2) => {
|
|
616
|
+
return self.ruleSet.getScenarioSorIndex(n1) - self.ruleSet.getScenarioSorIndex(n2);
|
|
617
|
+
});
|
|
618
|
+
return tmpConfig;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
//import { IAdapter } from "../../../../utils/helper/IAdapter";
|
|
623
|
+
// import { CompareUtil } from "../../../../utils/helper/CompareUtil";
|
|
624
|
+
class MeasureEntry {
|
|
625
|
+
constructor(name = "", unit = "") {
|
|
626
|
+
this.name = name;
|
|
627
|
+
this.unit = unit;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
class MeasureEntryAdapter {
|
|
631
|
+
construnctor() { }
|
|
632
|
+
adapt(data) {
|
|
633
|
+
const entry = new MeasureEntry();
|
|
634
|
+
if (Order.CompareUtil.isString(data.name)) {
|
|
635
|
+
entry.name = data.name;
|
|
636
|
+
}
|
|
637
|
+
if (Order.CompareUtil.isString(data.unit)) {
|
|
638
|
+
entry.unit = data.unit;
|
|
639
|
+
}
|
|
640
|
+
return entry;
|
|
641
|
+
}
|
|
642
|
+
default() {
|
|
643
|
+
return new MeasureEntry("", "");
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
class TimePeriod {
|
|
648
|
+
constructor(start = Order.DateTime.now(), end = Order.DateTime.now(), format = DateStringFactory.DateDistance.AUTO, link = DateStringFactory.DateLink.AUTO) {
|
|
649
|
+
this.start = start;
|
|
650
|
+
this.end = end;
|
|
651
|
+
this.format = format;
|
|
652
|
+
this.link = link;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
class TimePeriodAdapter {
|
|
656
|
+
construnctor() { }
|
|
657
|
+
adapt(data) {
|
|
658
|
+
const entry = new TimePeriod();
|
|
659
|
+
if (Order.CompareUtil.isDate(data.start)) {
|
|
660
|
+
entry.start = data.start;
|
|
661
|
+
}
|
|
662
|
+
if (Order.CompareUtil.isDate(data.end)) {
|
|
663
|
+
entry.end = data.end;
|
|
664
|
+
}
|
|
665
|
+
if (Order.CompareUtil.isExisting(data.format)) {
|
|
666
|
+
entry.format = data.format;
|
|
667
|
+
}
|
|
668
|
+
if (Order.CompareUtil.isExisting(data.link)) {
|
|
669
|
+
entry.link = data.link;
|
|
670
|
+
}
|
|
671
|
+
return entry;
|
|
672
|
+
}
|
|
673
|
+
default() {
|
|
674
|
+
return new TimePeriod();
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
const ibcsTitleCss = () => `:host{display: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)}.measure{font-weight:bold}div{background-color:var(--bn-font-background, white);color:var(--bn-font-color, black)}`;
|
|
679
|
+
|
|
680
|
+
const IbcsTitle = class {
|
|
681
|
+
constructor(hostRef) {
|
|
682
|
+
index.registerInstance(this, hostRef);
|
|
683
|
+
// sample fuer die chrome dev console:
|
|
684
|
+
// document.querySelector("ibcs-title").setBusinessUnit("Sven")
|
|
685
|
+
// document.querySelector("ibcs-title").setProps({businessUnit: "Lalal"})
|
|
686
|
+
this.businessUnit = "";
|
|
687
|
+
this.scenarios = [];
|
|
688
|
+
this.measures = [];
|
|
689
|
+
this.intervalSpanLimit = 28;
|
|
690
|
+
this.order = {
|
|
691
|
+
hierarchy: [],
|
|
692
|
+
direction: Order.OrderDirection.ASC,
|
|
693
|
+
};
|
|
694
|
+
this.i18n = new Map(); // I18nMode;
|
|
695
|
+
this.i18nMode = Order.I18nMode.ALL;
|
|
696
|
+
this.title = new Title(new StringAdapter.IBCSRuleSet());
|
|
697
|
+
}
|
|
698
|
+
// so
|
|
699
|
+
async setBusinessUnit(businessUnit) {
|
|
700
|
+
this.businessUnit = businessUnit;
|
|
701
|
+
}
|
|
702
|
+
// oder so
|
|
703
|
+
async setProps(data) {
|
|
704
|
+
Object.keys(data).forEach((key) => {
|
|
705
|
+
//@ts-ignore
|
|
706
|
+
this[key] = data[key];
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
render() {
|
|
710
|
+
return (index.h("div", { key: '08439c867ae47a9ee17ef8280801896a823c8826' }, index.h("div", { key: 'bb5b7325de2ae2f2e0bdba8d7f7f36511835efa9' }, this.title.unit), index.h("div", { key: '3edb730c95280ca0c47db70e32dd8e471747d989' }, this.title.measures.map((measure, index$1) => (index.h("span", null, this.isFirstElement(index$1) ? this.title.i18n.get("SEPERATOR_WS") : "", index.h("span", { class: "measure" }, measure.name), " ", measure.unit ? this.title.i18n.get("in") : "", " ", measure.unit)))), index.h("div", { key: '3bae51f2fddef6b2195d1c24915512b6255c9a75' }, this.title.dimension)));
|
|
711
|
+
}
|
|
712
|
+
componentWillLoad() {
|
|
713
|
+
const config = this.prepareConfig();
|
|
714
|
+
this.title = new Title(new StringAdapter.IBCSRuleSet());
|
|
715
|
+
this.title.setI18n(this.i18n);
|
|
716
|
+
this.title.setConfig(config);
|
|
717
|
+
}
|
|
718
|
+
componentWillUpdate() {
|
|
719
|
+
const config = this.prepareConfig();
|
|
720
|
+
this.title.setI18n(this.i18n);
|
|
721
|
+
this.title.setConfig(config);
|
|
722
|
+
}
|
|
723
|
+
componentWillRender() {
|
|
724
|
+
this.title.update();
|
|
725
|
+
}
|
|
726
|
+
isFirstElement(index) {
|
|
727
|
+
return index !== 0;
|
|
728
|
+
}
|
|
729
|
+
prepareConfig() {
|
|
730
|
+
return new TitleConifgAdapter(new MeasureEntryAdapter(), new TimePeriodAdapter(), new Order.OrderAdapter(new StringAdapter.StringAdapter()), new StringAdapter.StringAdapter()).adapt({
|
|
731
|
+
businessunit: this.businessUnit,
|
|
732
|
+
measures: this.measures,
|
|
733
|
+
scenarios: this.scenarios,
|
|
734
|
+
timeperiod: this.timeperiod,
|
|
735
|
+
intervalSpanLimit: this.intervalSpanLimit,
|
|
736
|
+
i18nMode: this.i18nMode,
|
|
737
|
+
order: this.order,
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
IbcsTitle.style = ibcsTitleCss();
|
|
410
742
|
|
|
411
743
|
exports.bn_body = Body;
|
|
412
744
|
exports.bn_footer = Footer;
|
|
413
|
-
exports.bn_title = Title;
|
|
745
|
+
exports.bn_title = Title$1;
|
|
746
|
+
exports.ibcs_title = IbcsTitle;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
5
|
-
var withComponentStyle = require('./withComponentStyle-
|
|
6
|
-
var withHasError = require('./withHasError-
|
|
7
|
-
require('./
|
|
8
|
-
require('./context-protocol-BkYHFkXE.js');
|
|
3
|
+
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
+
var withComponentStatus = require('./withComponentStatus-_x4LQZ0N.js');
|
|
5
|
+
var withComponentStyle = require('./withComponentStyle-DMtic_9Y.js');
|
|
6
|
+
var withHasError = require('./withHasError-B8gHkfV2.js');
|
|
7
|
+
require('./context-protocol-CRPmux5D.js');
|
|
9
8
|
|
|
10
9
|
const bnCardCss = () => `:host{display:flex;flex-direction:column;justify-content:space-between;padding:0.25em;margin:0.5em;background-origin:content-box;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(.border){box-sizing:border-box;-webkit-box-sizing:border-box;border:0.1em solid #ddd}div{color:var(--bn-font-color, black)}`;
|
|
11
10
|
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var withStyled = require('./withStyled-
|
|
5
|
-
var
|
|
6
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
7
|
-
var withTranslation = require('./withTranslation-
|
|
8
|
-
var contextProtocol = require('./context-protocol-
|
|
9
|
-
var withComponentStyle = require('./withComponentStyle-
|
|
10
|
-
var withHasError = require('./withHasError-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var Order = require('./Order-B4NIqQWe.js');
|
|
14
|
-
require('./DateStringFactory-Dn0aRj2Y.js');
|
|
15
|
-
require('./luxon-8hyy5YD7.js');
|
|
16
|
-
require('./componentRegister-C17UFNPh.js');
|
|
3
|
+
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
+
var withStyled = require('./withStyled-CW30Bh6c.js');
|
|
5
|
+
var scaling = require('./scaling-D8sIIKft.js');
|
|
6
|
+
var withComponentStatus = require('./withComponentStatus-_x4LQZ0N.js');
|
|
7
|
+
var withTranslation = require('./withTranslation-CWPAIRjh.js');
|
|
8
|
+
var contextProtocol = require('./context-protocol-CRPmux5D.js');
|
|
9
|
+
var withComponentStyle = require('./withComponentStyle-DMtic_9Y.js');
|
|
10
|
+
var withHasError = require('./withHasError-B8gHkfV2.js');
|
|
11
|
+
var Order = require('./Order-BKoDS21t.js');
|
|
12
|
+
require('./DateStringFactory-CcluhpGI.js');
|
|
17
13
|
|
|
18
14
|
const bnChartStructureCss = () => `:host{display:inline-block;position:relative;overflow:hidden}.container{display:flex;flex-direction:row}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}.categories{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.label-bg{fill:var(--bn-font-background, white);opacity:0.7}.label-text{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-title{text-align:center;font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-ac{stroke:black;stroke-width:0.1em}.axis-pp{stroke:grey;stroke-width:0.1em}.axis-fc{stroke:black;stroke-dasharray:2;stroke-width:0.1em}.axis-pl{stroke:white;stroke-width:0.1em;outline-offset:0em;outline:0.1em solid black}canvas{image-rendering:-moz-crisp-edges;image-rendering:-webkit-crisp-edges;image-rendering:pixelated;image-rendering:crisp-edges}.measure{font-weight:bold}span{display:inline-block}.hidePatternContainer{height:0;width:0}div{float:left}.warning{font-size:0.8em;font-style:italic}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}`;
|
|
19
15
|
|
|
@@ -283,7 +279,7 @@ const Chart = class {
|
|
|
283
279
|
this._autoScaleGuard = false;
|
|
284
280
|
withStyled.withStyled(this);
|
|
285
281
|
withComponentStatus.withComponentStatus(this);
|
|
286
|
-
|
|
282
|
+
scaling.withDataset(this, (_name, data) => {
|
|
287
283
|
this.data = (data || []);
|
|
288
284
|
}, (_name, meta) => {
|
|
289
285
|
this.datasetMeta = meta;
|
|
@@ -436,7 +432,7 @@ const Chart = class {
|
|
|
436
432
|
}
|
|
437
433
|
preparePixelPerPercentage() {
|
|
438
434
|
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
439
|
-
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
435
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
440
436
|
}
|
|
441
437
|
return Number(this.percentageScaling) * 100;
|
|
442
438
|
}
|
|
@@ -455,12 +451,12 @@ const Chart = class {
|
|
|
455
451
|
else {
|
|
456
452
|
this.errors.remove("AUTO_level");
|
|
457
453
|
}
|
|
458
|
-
return
|
|
454
|
+
return Order.AggregationLevel[this.datasetMeta.suggestedLevel.toUpperCase()];
|
|
459
455
|
}
|
|
460
456
|
return undefined;
|
|
461
457
|
}
|
|
462
458
|
this.errors.remove("AUTO_level");
|
|
463
|
-
return
|
|
459
|
+
return Order.AggregationLevel[(_c = this.level) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
|
|
464
460
|
}
|
|
465
461
|
prepareOrder() {
|
|
466
462
|
var _a, _b, _c;
|
|
@@ -494,7 +490,6 @@ const Chart = class {
|
|
|
494
490
|
};
|
|
495
491
|
return tableOrder;
|
|
496
492
|
}
|
|
497
|
-
// TODO(JHE): consider extracting style preparation into an adapter pattern
|
|
498
493
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
499
494
|
prepareStyle() {
|
|
500
495
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
@@ -548,8 +543,8 @@ const Chart = class {
|
|
|
548
543
|
const parsed = JSON.parse(this.stack);
|
|
549
544
|
return {
|
|
550
545
|
by: parsed.by,
|
|
551
|
-
mode: parsed.mode ||
|
|
552
|
-
order: parsed.order ||
|
|
546
|
+
mode: parsed.mode || Order.StackMode.ABSOLUTE,
|
|
547
|
+
order: parsed.order || Order.StackOrder.DATASET,
|
|
553
548
|
};
|
|
554
549
|
}
|
|
555
550
|
catch (_a) {
|
|
@@ -655,7 +650,7 @@ const Chart = class {
|
|
|
655
650
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
656
651
|
}
|
|
657
652
|
const fontStyles = this.getFontStyles();
|
|
658
|
-
return (index.h(index.Host, { key: '
|
|
653
|
+
return (index.h(index.Host, { key: 'c8ad939fbe92ab4a01af1e5ce17e097dbb5eab56', style: fontStyles }, index.h("div", { key: 'd786c49dd808c2dd9093ede7100e16ac52f50689', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
659
654
|
}
|
|
660
655
|
get element() { return index.getElement(this); }
|
|
661
656
|
static get watchers() { return {
|