@bino-bi/bn-template-engine 1.0.0-alpha.0 → 1.0.0-alpha.2
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-_LBTIfNN.js → p--PSoPbDM.js} +1 -1
- package/dist/bn-template-engine/p-05a82a77.entry.js +1 -0
- package/dist/bn-template-engine/p-0ca8dc17.entry.js +1 -0
- package/dist/bn-template-engine/p-0f1504f3.entry.js +1 -0
- package/dist/bn-template-engine/p-1d9a3be9.entry.js +1 -0
- package/dist/bn-template-engine/p-35638ad0.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-60a7fc59.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-BSfqOkN_.js +1 -0
- 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-Cp4MVxCu.js → p-CvXqez4D.js} +1 -1
- 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-DVo6aZUE.js +1 -0
- package/dist/bn-template-engine/p-DdexOqTs.js +1 -0
- package/dist/bn-template-engine/p-DgfL-ffj.js +1 -0
- package/dist/bn-template-engine/p-DyRaC0MB.js +1 -0
- package/dist/bn-template-engine/p-JNHhIe7t.js +2 -0
- package/dist/bn-template-engine/p-a95ccc16.entry.js +1 -0
- package/dist/bn-template-engine/p-b7bec050.entry.js +1 -0
- package/dist/bn-template-engine/p-bc59ea5c.entry.js +1 -0
- package/dist/bn-template-engine/p-d279b578.entry.js +1 -0
- package/dist/bn-template-engine/p-dd9dd407.entry.js +1 -0
- package/dist/bn-template-engine/p-e102a490.entry.js +1 -0
- package/dist/bn-template-engine/p-f27995c9.entry.js +1 -0
- package/dist/bn-template-engine/p-f89e55c6.entry.js +1 -0
- package/dist/bn-template-engine/{p-CY1RzLjU.js → p-tzFCK9qn.js} +1 -1
- package/dist/cjs/{DataFormatDigits-DmTbhF8q.js → DataFormatDigits-CbIVfGEH.js} +1 -1
- package/dist/cjs/{DateStringFactory-Dn0aRj2Y.js → DateStringFactory-CfkXYAMN.js} +4 -5
- package/dist/cjs/{luxon-8hyy5YD7.js → Order-DtpbD8mQ.js} +282 -0
- package/dist/cjs/{SVGVariancesStyleGroup-Czizhngt.js → SVGVariancesStyleGroup-D-rTWlDo.js} +1 -1
- package/dist/cjs/{StringAdapter-0EbYMkR0.js → StringAdapter-ByCHdlDO.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 +36 -40
- 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-BBtMesx3.js} +14 -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 +1 -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/components/DateStringFactory.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-title2.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-DYdbRX-1.js} +1 -1
- package/dist/esm/{DateStringFactory-_Qiv0IvF.js → DateStringFactory-DRcbojUT.js} +1 -2
- package/dist/esm/{luxon-DbyXf6dF.js → Order-DdexOqTs.js} +280 -1
- package/dist/esm/{SVGVariancesStyleGroup-DlWgvpzs.js → SVGVariancesStyleGroup-D0Cwprv1.js} +1 -1
- package/dist/esm/{StringAdapter-BLvo1Krl.js → StringAdapter-CTL-Dvzp.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 +15 -19
- 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-DCipbf2O.js} +5 -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-title/bn-title.d.ts +0 -1
- package/dist/types/components.d.ts +0 -401
- 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,15 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement,
|
|
2
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
3
|
-
import { w as withComponentStyle } from './withComponentStyle-
|
|
4
|
-
import { w as withHasError } from './withHasError-
|
|
5
|
-
import { w as withStyled, v as validateScenarioList, a as validateVariancesList, c as validateOrderList, d as isValidDirection,
|
|
6
|
-
import { D as DateTime } from './
|
|
7
|
-
import { w as withTranslation } from './withTranslation-
|
|
8
|
-
import { a as globalLabelKeys } from './context-protocol-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import './
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, d as getAssetPath } from './index-JNHhIe7t.js';
|
|
2
|
+
import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
|
|
3
|
+
import { w as withComponentStyle } from './withComponentStyle-BerJY64r.js';
|
|
4
|
+
import { w as withHasError } from './withHasError-B3QX2emi.js';
|
|
5
|
+
import { w as withStyled, v as validateScenarioList, a as validateVariancesList, c as validateOrderList, d as isValidDirection, m as validateMeasureList, n as isValidDate, j as isBlankInput, k as isValidDateFormat, o as isValidDateLink } from './withStyled-DCipbf2O.js';
|
|
6
|
+
import { I as I18nMode, O as OrderDirection, D as DateTime, e as CompareUtil, d as AdapterUtils, j as OrderAdapter } from './Order-DdexOqTs.js';
|
|
7
|
+
import { w as withTranslation } from './withTranslation-mimbJdER.js';
|
|
8
|
+
import { a as globalLabelKeys } from './context-protocol-Bz5klD-F.js';
|
|
9
|
+
import { a as DateLink, D as DateDistance, b as DateStringFactory } from './DateStringFactory-DRcbojUT.js';
|
|
10
|
+
import { F as Formatter } from './formatter-DTMEZ6d8.js';
|
|
11
|
+
import { I as IBCSRuleSet, S as StringAdapter } from './StringAdapter-CTL-Dvzp.js';
|
|
12
|
+
import './_commonjsHelpers-BFTU3MAI.js';
|
|
13
13
|
|
|
14
14
|
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)}`;
|
|
15
15
|
|
|
@@ -93,7 +93,7 @@ Footer.style = bnFooterCss();
|
|
|
93
93
|
|
|
94
94
|
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)}`;
|
|
95
95
|
|
|
96
|
-
const Title = class {
|
|
96
|
+
const Title$1 = class Title {
|
|
97
97
|
constructor(hostRef) {
|
|
98
98
|
registerInstance(this, hostRef);
|
|
99
99
|
/** Name of the business unit displayed in card header. If empty string (`''` or `null`) the business unit row is omitted */
|
|
@@ -147,14 +147,6 @@ const Title = class {
|
|
|
147
147
|
*
|
|
148
148
|
*/
|
|
149
149
|
this.dateLink = "none";
|
|
150
|
-
this.scopedEval = (scope, script) => {
|
|
151
|
-
try {
|
|
152
|
-
return Function(`"use strict"; try { return ${script} } catch { return ""}`).bind(scope)();
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
console.error("bn-text", e);
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
150
|
withStyled(this);
|
|
159
151
|
withComponentStatus(this);
|
|
160
152
|
this.t = withTranslation(this).t;
|
|
@@ -371,7 +363,7 @@ const Title = class {
|
|
|
371
363
|
}
|
|
372
364
|
render() {
|
|
373
365
|
const fontStyles = this.getFontStyles();
|
|
374
|
-
return (h(Host, { key: '
|
|
366
|
+
return (h(Host, { key: '029abd8096c5274f94123da2dc1c1e88e76be922', style: fontStyles }, 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() })));
|
|
375
367
|
}
|
|
376
368
|
get element() { return getElement(this); }
|
|
377
369
|
static get watchers() { return {
|
|
@@ -404,6 +396,346 @@ const Title = class {
|
|
|
404
396
|
}]
|
|
405
397
|
}; }
|
|
406
398
|
};
|
|
407
|
-
Title.style = bnTitleCss();
|
|
399
|
+
Title$1.style = bnTitleCss();
|
|
400
|
+
|
|
401
|
+
class TitleDataSetFactory {
|
|
402
|
+
constructor() { }
|
|
403
|
+
/**
|
|
404
|
+
* Creates measures, adds i18n to each element
|
|
405
|
+
* @param measures
|
|
406
|
+
* @param i18n
|
|
407
|
+
* @param i18nMode
|
|
408
|
+
*/
|
|
409
|
+
createMeasures(measures, i18n, i18nMode) {
|
|
410
|
+
if (this.allMeasuresUseSameUnit(measures)) {
|
|
411
|
+
const amountOfMeasures = measures.length;
|
|
412
|
+
let measureName = "";
|
|
413
|
+
let unit = "";
|
|
414
|
+
for (let i = 0; i < amountOfMeasures; i++) {
|
|
415
|
+
let separator = "";
|
|
416
|
+
if (i > 0) {
|
|
417
|
+
separator = i18n.get("SEPERATOR_WS");
|
|
418
|
+
}
|
|
419
|
+
if (amountOfMeasures > 1 && i === amountOfMeasures - 1) {
|
|
420
|
+
separator = i18n.get("CONNECTOR_WS");
|
|
421
|
+
}
|
|
422
|
+
if (i18nMode === I18nMode.ALL) {
|
|
423
|
+
measureName =
|
|
424
|
+
(i18n.get(measureName) || measureName) + separator + (i18n.get(measures[i].name) || measures[i].name);
|
|
425
|
+
unit = i18n.get(measures[i].unit) || measures[i].unit;
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
measureName = measureName + separator + measures[i].name;
|
|
429
|
+
unit = measures[i].unit;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return [
|
|
433
|
+
{
|
|
434
|
+
name: measureName,
|
|
435
|
+
unit: unit,
|
|
436
|
+
},
|
|
437
|
+
];
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
return measures;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Creates Dimension String,
|
|
445
|
+
* concat of translated scenarios, time and order
|
|
446
|
+
*
|
|
447
|
+
* @param scenarios
|
|
448
|
+
* @param time
|
|
449
|
+
* @param order
|
|
450
|
+
* @param i18n
|
|
451
|
+
*/
|
|
452
|
+
createDimension(scenarios, time, order, i18n, spanLimit) {
|
|
453
|
+
let formatedTime = "";
|
|
454
|
+
if (time !== undefined) {
|
|
455
|
+
formatedTime = new DateStringFactory().getDateLinkString(time.start, time.end, time.link, time.format, spanLimit);
|
|
456
|
+
}
|
|
457
|
+
const formatedScenarios = scenarios
|
|
458
|
+
.map((scenario) => {
|
|
459
|
+
let orderString = "";
|
|
460
|
+
if (order != null && order.hierarchy != null) {
|
|
461
|
+
if (order.hierarchy.find((x) => x === scenario)) {
|
|
462
|
+
if (order.direction === "asc") {
|
|
463
|
+
orderString = i18n.get("ORDER_asc");
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
orderString = i18n.get("ORDER_desc");
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
return "".concat(" ", Formatter.translateScenarioLabel(scenario, i18n), orderString);
|
|
471
|
+
})
|
|
472
|
+
.toString();
|
|
473
|
+
return formatedTime + formatedScenarios;
|
|
474
|
+
}
|
|
475
|
+
allMeasuresUseSameUnit(measures) {
|
|
476
|
+
const units = new Map();
|
|
477
|
+
measures.forEach(function (entry) {
|
|
478
|
+
units.set(entry.unit, true);
|
|
479
|
+
});
|
|
480
|
+
const hasOneUnit = units.size === 1;
|
|
481
|
+
return hasOneUnit;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
class TitleConfig {
|
|
486
|
+
constructor() {
|
|
487
|
+
this.businessunit = "";
|
|
488
|
+
this.measures = [];
|
|
489
|
+
this.scenarios = [];
|
|
490
|
+
this.i18nMode = I18nMode.ALL;
|
|
491
|
+
this.intervalSpanLimit = 32;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
class TitleConifgAdapter {
|
|
495
|
+
constructor(measureEntryAdapter, timePeriodAdapter, orderAdapter, stringAdapter) {
|
|
496
|
+
this.measureEntryAdapter = measureEntryAdapter;
|
|
497
|
+
this.timePeriodAdapter = timePeriodAdapter;
|
|
498
|
+
this.orderAdapter = orderAdapter;
|
|
499
|
+
this.stringAdapter = stringAdapter;
|
|
500
|
+
}
|
|
501
|
+
adapt(data) {
|
|
502
|
+
const config = new TitleConfig();
|
|
503
|
+
if (CompareUtil.isString(data.businessunit)) {
|
|
504
|
+
config.businessunit = data.businessunit;
|
|
505
|
+
}
|
|
506
|
+
if (CompareUtil.isArray(data.measures)) {
|
|
507
|
+
config.measures = AdapterUtils.adaptArray(data.measures, this.measureEntryAdapter);
|
|
508
|
+
}
|
|
509
|
+
if (CompareUtil.isArray(data.scenarios)) {
|
|
510
|
+
config.scenarios = AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
|
|
511
|
+
}
|
|
512
|
+
if (CompareUtil.isExisting(data.timeperiod)) {
|
|
513
|
+
config.timeperiod = this.timePeriodAdapter.adapt(data.timeperiod);
|
|
514
|
+
}
|
|
515
|
+
if (CompareUtil.isNumber(data.intervalSpanLimit)) {
|
|
516
|
+
config.intervalSpanLimit = data.intervalSpanLimit;
|
|
517
|
+
}
|
|
518
|
+
if (CompareUtil.isExisting(data.i18nMode)) {
|
|
519
|
+
config.i18nMode = data.i18nMode;
|
|
520
|
+
}
|
|
521
|
+
if (CompareUtil.isExisting(data.order)) {
|
|
522
|
+
config.order = this.orderAdapter.adapt(data.order);
|
|
523
|
+
}
|
|
524
|
+
return config;
|
|
525
|
+
}
|
|
526
|
+
default() {
|
|
527
|
+
return new TitleConfig();
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
var FactoryState;
|
|
532
|
+
(function (FactoryState) {
|
|
533
|
+
FactoryState[FactoryState["UP_TO_DATE"] = 0] = "UP_TO_DATE";
|
|
534
|
+
FactoryState[FactoryState["DIRTY"] = 1] = "DIRTY";
|
|
535
|
+
})(FactoryState || (FactoryState = {}));
|
|
536
|
+
class Title {
|
|
537
|
+
constructor(ruleSet) {
|
|
538
|
+
this.i18n = new Map();
|
|
539
|
+
this.unit = "";
|
|
540
|
+
this.measures = [];
|
|
541
|
+
this.dimension = "";
|
|
542
|
+
this.config = new TitleConfig();
|
|
543
|
+
this.state = FactoryState.DIRTY;
|
|
544
|
+
this.ruleSet = ruleSet || new IBCSRuleSet();
|
|
545
|
+
this.dataSetFactory = new TitleDataSetFactory();
|
|
546
|
+
this.state = FactoryState.DIRTY;
|
|
547
|
+
this.setI18n(new Map());
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Set Localisation Map
|
|
551
|
+
* @param i18n
|
|
552
|
+
*/
|
|
553
|
+
setI18n(i18n) {
|
|
554
|
+
this.state = FactoryState.DIRTY; // mark dataSet for update
|
|
555
|
+
const defaultI18n = new Map([
|
|
556
|
+
["SEPERATOR_WS", ", "],
|
|
557
|
+
["in", "in"],
|
|
558
|
+
["ORDER_asc", "↑"],
|
|
559
|
+
["ORDER_desc", "↓"],
|
|
560
|
+
["ac1", "AC"],
|
|
561
|
+
["pp1", "PY"],
|
|
562
|
+
["fc1", "FC"],
|
|
563
|
+
["pl1", "PL"],
|
|
564
|
+
["ac2", "AC2"],
|
|
565
|
+
["pp2", "PY2"],
|
|
566
|
+
["fc2", "FC2"],
|
|
567
|
+
["pl2", "PL2"],
|
|
568
|
+
["ac3", "AC3"],
|
|
569
|
+
["pp3", "PY3"],
|
|
570
|
+
["fc3", "FC3"],
|
|
571
|
+
["pp3", "PL3"],
|
|
572
|
+
["ac4", "AC4"],
|
|
573
|
+
["py4", "PY4"],
|
|
574
|
+
["fc4", "FC4"],
|
|
575
|
+
["pp4", "PL4"],
|
|
576
|
+
["category", " "],
|
|
577
|
+
["operation", " "],
|
|
578
|
+
["there_of", "davon"],
|
|
579
|
+
["part_of", "in % von"],
|
|
580
|
+
["ibcssymbol_delta_ac", "Δ{%}"],
|
|
581
|
+
["ibcssymbol_delta_generic", "Δ({%})"],
|
|
582
|
+
["ibcssymbol_delta_ac_relative", "Δ{%}%"],
|
|
583
|
+
["ibcssymbol_delta_generic_relative", "Δ({%})%"],
|
|
584
|
+
["SUM_TOTAL", "❖"],
|
|
585
|
+
["CONNECTOR_WS", " und "],
|
|
586
|
+
]);
|
|
587
|
+
this.i18n = new Map([...defaultI18n, ...(i18n || new Map())]);
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Generates and Returns the DataSet based,
|
|
591
|
+
* data and config.
|
|
592
|
+
* if data or config have not been changed since last run
|
|
593
|
+
* the dataSet will not be regenerated.
|
|
594
|
+
*/
|
|
595
|
+
update() {
|
|
596
|
+
if (FactoryState.DIRTY === this.state) {
|
|
597
|
+
this.unit = this.config.businessunit;
|
|
598
|
+
this.measures = this.dataSetFactory.createMeasures(this.config.measures, this.i18n, this.config.i18nMode);
|
|
599
|
+
this.dimension = this.dataSetFactory.createDimension(this.config.scenarios, this.config.timeperiod, this.config.order, this.i18n, this.config.intervalSpanLimit);
|
|
600
|
+
this.state = FactoryState.UP_TO_DATE;
|
|
601
|
+
}
|
|
602
|
+
return this;
|
|
603
|
+
}
|
|
604
|
+
setConfig(config) {
|
|
605
|
+
this.config = this.initConfig(config);
|
|
606
|
+
}
|
|
607
|
+
initConfig(config) {
|
|
608
|
+
this.state = FactoryState.DIRTY;
|
|
609
|
+
const tmpConfig = config;
|
|
610
|
+
// this.checkConfigIfValidElseSetDefaultOrder(config.order);
|
|
611
|
+
// sorting scenario order based on Ruleset
|
|
612
|
+
const self = this;
|
|
613
|
+
config.scenarios.sort((n1, n2) => {
|
|
614
|
+
return self.ruleSet.getScenarioSorIndex(n1) - self.ruleSet.getScenarioSorIndex(n2);
|
|
615
|
+
});
|
|
616
|
+
return tmpConfig;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
//import { IAdapter } from "../../../../utils/helper/IAdapter";
|
|
621
|
+
// import { CompareUtil } from "../../../../utils/helper/CompareUtil";
|
|
622
|
+
class MeasureEntry {
|
|
623
|
+
constructor(name = "", unit = "") {
|
|
624
|
+
this.name = name;
|
|
625
|
+
this.unit = unit;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
class MeasureEntryAdapter {
|
|
629
|
+
construnctor() { }
|
|
630
|
+
adapt(data) {
|
|
631
|
+
const entry = new MeasureEntry();
|
|
632
|
+
if (CompareUtil.isString(data.name)) {
|
|
633
|
+
entry.name = data.name;
|
|
634
|
+
}
|
|
635
|
+
if (CompareUtil.isString(data.unit)) {
|
|
636
|
+
entry.unit = data.unit;
|
|
637
|
+
}
|
|
638
|
+
return entry;
|
|
639
|
+
}
|
|
640
|
+
default() {
|
|
641
|
+
return new MeasureEntry("", "");
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
class TimePeriod {
|
|
646
|
+
constructor(start = DateTime.now(), end = DateTime.now(), format = DateDistance.AUTO, link = DateLink.AUTO) {
|
|
647
|
+
this.start = start;
|
|
648
|
+
this.end = end;
|
|
649
|
+
this.format = format;
|
|
650
|
+
this.link = link;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
class TimePeriodAdapter {
|
|
654
|
+
construnctor() { }
|
|
655
|
+
adapt(data) {
|
|
656
|
+
const entry = new TimePeriod();
|
|
657
|
+
if (CompareUtil.isDate(data.start)) {
|
|
658
|
+
entry.start = data.start;
|
|
659
|
+
}
|
|
660
|
+
if (CompareUtil.isDate(data.end)) {
|
|
661
|
+
entry.end = data.end;
|
|
662
|
+
}
|
|
663
|
+
if (CompareUtil.isExisting(data.format)) {
|
|
664
|
+
entry.format = data.format;
|
|
665
|
+
}
|
|
666
|
+
if (CompareUtil.isExisting(data.link)) {
|
|
667
|
+
entry.link = data.link;
|
|
668
|
+
}
|
|
669
|
+
return entry;
|
|
670
|
+
}
|
|
671
|
+
default() {
|
|
672
|
+
return new TimePeriod();
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
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)}`;
|
|
677
|
+
|
|
678
|
+
const IbcsTitle = class {
|
|
679
|
+
constructor(hostRef) {
|
|
680
|
+
registerInstance(this, hostRef);
|
|
681
|
+
// sample fuer die chrome dev console:
|
|
682
|
+
// document.querySelector("ibcs-title").setBusinessUnit("Sven")
|
|
683
|
+
// document.querySelector("ibcs-title").setProps({businessUnit: "Lalal"})
|
|
684
|
+
this.businessUnit = "";
|
|
685
|
+
this.scenarios = [];
|
|
686
|
+
this.measures = [];
|
|
687
|
+
this.intervalSpanLimit = 28;
|
|
688
|
+
this.order = {
|
|
689
|
+
hierarchy: [],
|
|
690
|
+
direction: OrderDirection.ASC,
|
|
691
|
+
};
|
|
692
|
+
this.i18n = new Map(); // I18nMode;
|
|
693
|
+
this.i18nMode = I18nMode.ALL;
|
|
694
|
+
this.title = new Title(new IBCSRuleSet());
|
|
695
|
+
}
|
|
696
|
+
// so
|
|
697
|
+
async setBusinessUnit(businessUnit) {
|
|
698
|
+
this.businessUnit = businessUnit;
|
|
699
|
+
}
|
|
700
|
+
// oder so
|
|
701
|
+
async setProps(data) {
|
|
702
|
+
Object.keys(data).forEach((key) => {
|
|
703
|
+
//@ts-ignore
|
|
704
|
+
this[key] = data[key];
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
render() {
|
|
708
|
+
return (h("div", { key: '08439c867ae47a9ee17ef8280801896a823c8826' }, h("div", { key: 'bb5b7325de2ae2f2e0bdba8d7f7f36511835efa9' }, this.title.unit), h("div", { key: '3edb730c95280ca0c47db70e32dd8e471747d989' }, this.title.measures.map((measure, index) => (h("span", null, this.isFirstElement(index) ? this.title.i18n.get("SEPERATOR_WS") : "", h("span", { class: "measure" }, measure.name), " ", measure.unit ? this.title.i18n.get("in") : "", " ", measure.unit)))), h("div", { key: '3bae51f2fddef6b2195d1c24915512b6255c9a75' }, this.title.dimension)));
|
|
709
|
+
}
|
|
710
|
+
componentWillLoad() {
|
|
711
|
+
const config = this.prepareConfig();
|
|
712
|
+
this.title = new Title(new IBCSRuleSet());
|
|
713
|
+
this.title.setI18n(this.i18n);
|
|
714
|
+
this.title.setConfig(config);
|
|
715
|
+
}
|
|
716
|
+
componentWillUpdate() {
|
|
717
|
+
const config = this.prepareConfig();
|
|
718
|
+
this.title.setI18n(this.i18n);
|
|
719
|
+
this.title.setConfig(config);
|
|
720
|
+
}
|
|
721
|
+
componentWillRender() {
|
|
722
|
+
this.title.update();
|
|
723
|
+
}
|
|
724
|
+
isFirstElement(index) {
|
|
725
|
+
return index !== 0;
|
|
726
|
+
}
|
|
727
|
+
prepareConfig() {
|
|
728
|
+
return new TitleConifgAdapter(new MeasureEntryAdapter(), new TimePeriodAdapter(), new OrderAdapter(new StringAdapter()), new StringAdapter()).adapt({
|
|
729
|
+
businessunit: this.businessUnit,
|
|
730
|
+
measures: this.measures,
|
|
731
|
+
scenarios: this.scenarios,
|
|
732
|
+
timeperiod: this.timeperiod,
|
|
733
|
+
intervalSpanLimit: this.intervalSpanLimit,
|
|
734
|
+
i18nMode: this.i18nMode,
|
|
735
|
+
order: this.order,
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
IbcsTitle.style = ibcsTitleCss();
|
|
408
740
|
|
|
409
|
-
export { Body as bn_body, Footer as bn_footer, Title as bn_title };
|
|
741
|
+
export { Body as bn_body, Footer as bn_footer, Title$1 as bn_title, IbcsTitle as ibcs_title };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
3
|
-
import { w as withComponentStyle } from './withComponentStyle-
|
|
4
|
-
import { w as withHasError } from './withHasError-
|
|
5
|
-
import './
|
|
6
|
-
import './context-protocol-DzeqZxg6.js';
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
+
import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
|
|
3
|
+
import { w as withComponentStyle } from './withComponentStyle-BerJY64r.js';
|
|
4
|
+
import { w as withHasError } from './withHasError-B3QX2emi.js';
|
|
5
|
+
import './context-protocol-Bz5klD-F.js';
|
|
7
6
|
|
|
8
7
|
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)}`;
|
|
9
8
|
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber, b as isValidLevel, c as validateOrderList, d as isValidDirection, e as isValidInteger, f as isValidBoolean, g as isValidMeasureScale, h as validateStackConfig, w as withStyled, j as isBlankInput } from './withStyled-
|
|
3
|
-
import { w as withDataset } from './
|
|
4
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
5
|
-
import { w as withTranslation } from './withTranslation-
|
|
6
|
-
import { a as globalLabelKeys } from './context-protocol-
|
|
7
|
-
import { w as withComponentStyle } from './withComponentStyle-
|
|
8
|
-
import { w as withHasError } from './withHasError-
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import { O as OrderDirection, a as OrderColumn } from './Order-B4fpLe_f.js';
|
|
12
|
-
import './DateStringFactory-_Qiv0IvF.js';
|
|
13
|
-
import './luxon-DbyXf6dF.js';
|
|
14
|
-
import './componentRegister-BtVfu16B.js';
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
+
import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber, b as isValidLevel, c as validateOrderList, d as isValidDirection, e as isValidInteger, f as isValidBoolean, g as isValidMeasureScale, h as validateStackConfig, w as withStyled, j as isBlankInput } from './withStyled-DCipbf2O.js';
|
|
3
|
+
import { w as withDataset, g as getParentDimensions, p as parseScaling } from './scaling-C6K8FYSF.js';
|
|
4
|
+
import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
|
|
5
|
+
import { w as withTranslation } from './withTranslation-mimbJdER.js';
|
|
6
|
+
import { a as globalLabelKeys } from './context-protocol-Bz5klD-F.js';
|
|
7
|
+
import { w as withComponentStyle } from './withComponentStyle-BerJY64r.js';
|
|
8
|
+
import { w as withHasError } from './withHasError-B3QX2emi.js';
|
|
9
|
+
import { A as AggregationLevel, O as OrderDirection, a as OrderColumn, S as StackOrder, b as StackMode } from './Order-DdexOqTs.js';
|
|
10
|
+
import './DateStringFactory-DRcbojUT.js';
|
|
15
11
|
|
|
16
12
|
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}`;
|
|
17
13
|
|
|
@@ -434,7 +430,7 @@ const Chart = class {
|
|
|
434
430
|
}
|
|
435
431
|
preparePixelPerPercentage() {
|
|
436
432
|
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
437
|
-
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
433
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
438
434
|
}
|
|
439
435
|
return Number(this.percentageScaling) * 100;
|
|
440
436
|
}
|
|
@@ -492,7 +488,6 @@ const Chart = class {
|
|
|
492
488
|
};
|
|
493
489
|
return tableOrder;
|
|
494
490
|
}
|
|
495
|
-
// TODO(JHE): consider extracting style preparation into an adapter pattern
|
|
496
491
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
497
492
|
prepareStyle() {
|
|
498
493
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
@@ -653,7 +648,7 @@ const Chart = class {
|
|
|
653
648
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
654
649
|
}
|
|
655
650
|
const fontStyles = this.getFontStyles();
|
|
656
|
-
return (h(Host, { key: '
|
|
651
|
+
return (h(Host, { key: 'c8ad939fbe92ab4a01af1e5ce17e097dbb5eab56', style: fontStyles }, h("div", { key: 'd786c49dd808c2dd9093ede7100e16ac52f50689', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
657
652
|
}
|
|
658
653
|
get element() { return getElement(this); }
|
|
659
654
|
static get watchers() { return {
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber, e as isValidInteger, b as isValidLevel, c as validateOrderList, d as isValidDirection, k as isValidDateFormat, h as validateStackConfig, l as isValidAxisLabelsMode, f as isValidBoolean, g as isValidMeasureScale, w as withStyled, j as isBlankInput } from './withStyled-
|
|
3
|
-
import { w as withDataset } from './
|
|
4
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
5
|
-
import { w as withTranslation } from './withTranslation-
|
|
6
|
-
import { a as globalLabelKeys } from './context-protocol-
|
|
7
|
-
import { w as withComponentStyle } from './withComponentStyle-
|
|
8
|
-
import { w as withHasError } from './withHasError-
|
|
9
|
-
import {
|
|
10
|
-
import { O as OrderDirection, a as OrderColumn } from './Order-B4fpLe_f.js';
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
+
import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber, e as isValidInteger, b as isValidLevel, c as validateOrderList, d as isValidDirection, k as isValidDateFormat, h as validateStackConfig, l as isValidAxisLabelsMode, f as isValidBoolean, g as isValidMeasureScale, w as withStyled, j as isBlankInput } from './withStyled-DCipbf2O.js';
|
|
3
|
+
import { w as withDataset, g as getParentDimensions, p as parseScaling } from './scaling-C6K8FYSF.js';
|
|
4
|
+
import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
|
|
5
|
+
import { w as withTranslation } from './withTranslation-mimbJdER.js';
|
|
6
|
+
import { a as globalLabelKeys } from './context-protocol-Bz5klD-F.js';
|
|
7
|
+
import { w as withComponentStyle } from './withComponentStyle-BerJY64r.js';
|
|
8
|
+
import { w as withHasError } from './withHasError-B3QX2emi.js';
|
|
9
|
+
import { O as OrderDirection, a as OrderColumn, c as AxisLabelsMode, S as StackOrder, b as StackMode, C as ChartMode } from './Order-DdexOqTs.js';
|
|
11
10
|
import { F as Formatter } from './formatter-DTMEZ6d8.js';
|
|
12
|
-
import {
|
|
13
|
-
import { D as DateDistance } from './DateStringFactory-_Qiv0IvF.js';
|
|
14
|
-
import './componentRegister-BtVfu16B.js';
|
|
15
|
-
import './luxon-DbyXf6dF.js';
|
|
11
|
+
import { D as DateDistance } from './DateStringFactory-DRcbojUT.js';
|
|
16
12
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
17
13
|
|
|
18
14
|
const bnChartTimeCss = () => `:host{display:inline-block;position:relative;overflow:visible;}.container{display:flex;flex-direction:column-reverse}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}`;
|
|
@@ -451,7 +447,7 @@ const Chart = class {
|
|
|
451
447
|
*/
|
|
452
448
|
this.measureUnit = "";
|
|
453
449
|
this.pixelPerUnitGroupMap = new Map();
|
|
454
|
-
this.
|
|
450
|
+
this._autoScaleGuard = false;
|
|
455
451
|
withStyled(this);
|
|
456
452
|
withComponentStatus(this);
|
|
457
453
|
withDataset(this, (_name, data) => {
|
|
@@ -491,7 +487,7 @@ const Chart = class {
|
|
|
491
487
|
var _a, _b;
|
|
492
488
|
const { mode } = parseScaling(this.scale);
|
|
493
489
|
if (mode !== "auto" && mode !== "empty") {
|
|
494
|
-
this.
|
|
490
|
+
this._autoScaleGuard = false;
|
|
495
491
|
// Keep existing width-based overflow warning for non-auto modes
|
|
496
492
|
const parent = getParentDimensions(this.element);
|
|
497
493
|
const errId = "WARN_overflow";
|
|
@@ -507,51 +503,43 @@ const Chart = class {
|
|
|
507
503
|
}
|
|
508
504
|
return;
|
|
509
505
|
}
|
|
506
|
+
if (this._autoScaleGuard) {
|
|
507
|
+
this._autoScaleGuard = false;
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
510
|
const host = this.element;
|
|
511
511
|
const { width: parentWidth } = getParentDimensions(host);
|
|
512
512
|
if (parentWidth <= 0)
|
|
513
513
|
return;
|
|
514
|
-
|
|
515
|
-
const currentWidth = (_b = div === null || div === void 0 ? void 0 : div.scrollWidth) !== null && _b !== void 0 ? _b : host.scrollWidth;
|
|
514
|
+
// Measure at base (unscaled) font size to get true content width
|
|
516
515
|
const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
516
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
|
|
517
|
+
// Reading scrollWidth forces a synchronous reflow at base size
|
|
518
|
+
const div = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".container");
|
|
519
|
+
const unscaledWidth = (_b = div === null || div === void 0 ? void 0 : div.scrollWidth) !== null && _b !== void 0 ? _b : host.scrollWidth;
|
|
520
|
+
if (unscaledWidth <= parentWidth + 1) {
|
|
520
521
|
this.errors.remove("AUTO_scale");
|
|
521
|
-
// If previously scaled but content now fits at base, reset to 1
|
|
522
522
|
if (this.appliedScaleFactor !== 1) {
|
|
523
|
-
|
|
524
|
-
this._autoScaleIterations = 1;
|
|
523
|
+
this._autoScaleGuard = true;
|
|
525
524
|
this.appliedScaleFactor = 1;
|
|
526
|
-
host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
|
|
527
525
|
}
|
|
528
526
|
return;
|
|
529
527
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
this._autoScaleIterations = 0;
|
|
533
|
-
return;
|
|
534
|
-
}
|
|
535
|
-
// Content overflows — compute multiplicative correction
|
|
536
|
-
const correction = (parentWidth - 1) / currentWidth;
|
|
537
|
-
const newFactor = this.appliedScaleFactor * correction;
|
|
538
|
-
host.style.setProperty("--bn-font-size", `${baseFontSize * newFactor}px`);
|
|
528
|
+
const computedFactor = (parentWidth - 1) / unscaledWidth;
|
|
529
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
|
|
539
530
|
if (mode === "empty") {
|
|
540
531
|
this.errors.addOrReplace({
|
|
541
532
|
id: "AUTO_scale",
|
|
542
533
|
type: "warning",
|
|
543
|
-
message: `Auto-scaled chart by factor ${
|
|
534
|
+
message: `Auto-scaled chart by factor ${computedFactor.toFixed(3)}`,
|
|
544
535
|
});
|
|
545
536
|
}
|
|
546
537
|
else {
|
|
547
538
|
this.errors.remove("AUTO_scale");
|
|
548
539
|
}
|
|
549
|
-
if (Math.abs(
|
|
550
|
-
this.
|
|
551
|
-
this.appliedScaleFactor =
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
this._autoScaleIterations = 0;
|
|
540
|
+
if (Math.abs(computedFactor - this.appliedScaleFactor) > 0.001) {
|
|
541
|
+
this._autoScaleGuard = true;
|
|
542
|
+
this.appliedScaleFactor = computedFactor;
|
|
555
543
|
}
|
|
556
544
|
}
|
|
557
545
|
prepareDimension() {
|
|
@@ -632,7 +620,7 @@ const Chart = class {
|
|
|
632
620
|
}
|
|
633
621
|
preparePixelPerPercentage() {
|
|
634
622
|
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
635
|
-
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
623
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
636
624
|
}
|
|
637
625
|
return Number(this.percentageScaling) * 100;
|
|
638
626
|
}
|
|
@@ -910,7 +898,7 @@ const Chart = class {
|
|
|
910
898
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
911
899
|
}
|
|
912
900
|
const fontStyles = this.getFontStyles();
|
|
913
|
-
return (h(Host, { key: '
|
|
901
|
+
return (h(Host, { key: 'ed9bf10764443d9b4be0bf05dbbcd858d271993a', style: fontStyles }, h("div", { key: 'c2bda702b470a4ddba2da84d81908d96ce893c8e', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
914
902
|
}
|
|
915
903
|
get element() { return getElement(this); }
|
|
916
904
|
static get watchers() { return {
|
|
@@ -979,7 +967,6 @@ const Chart = class {
|
|
|
979
967
|
}]
|
|
980
968
|
}; }
|
|
981
969
|
};
|
|
982
|
-
Chart.MAX_SCALE_ITERATIONS = 3;
|
|
983
970
|
Chart.style = bnChartTimeCss();
|
|
984
971
|
|
|
985
972
|
export { Chart as bn_chart_time };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { w as withBodyObserver } from './withBodyObserver-
|
|
3
|
-
import { g as getStores } from './context-protocol-
|
|
4
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
5
|
-
import { w as withHasError } from './withHasError-
|
|
6
|
-
import './componentRegister-BtVfu16B.js';
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
+
import { w as withBodyObserver } from './withBodyObserver-DczL5ia8.js';
|
|
3
|
+
import { g as getStores } from './context-protocol-Bz5klD-F.js';
|
|
4
|
+
import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
|
|
5
|
+
import { w as withHasError } from './withHasError-B3QX2emi.js';
|
|
7
6
|
|
|
8
7
|
const bnComponentStyleCss = () => `bn-component-style{display:none}`;
|
|
9
8
|
|