@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,6 +1,6 @@
|
|
|
1
|
-
import { g as getStores, c as clearStoresCache } from './context-protocol-
|
|
2
|
-
import { r as runIfExisits } from './withHasError-
|
|
3
|
-
import { g as getElement } from './index-
|
|
1
|
+
import { g as getStores, c as clearStoresCache } from './context-protocol-Bz5klD-F.js';
|
|
2
|
+
import { r as runIfExisits } from './withHasError-B3QX2emi.js';
|
|
3
|
+
import { g as getElement } from './index-JNHhIe7t.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Splits an array into two groups based on a predicate.
|
|
@@ -141,4 +141,67 @@ component, onUpdate, onMetaUpdate) => {
|
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Returns the available dimensions for a component.
|
|
146
|
+
*
|
|
147
|
+
* Width: parent content-box width (excluding padding).
|
|
148
|
+
* Height: walks up the DOM to find the nearest ancestor with a constrained
|
|
149
|
+
* height (overflow !== 'visible' or explicit max-height). Falls back to
|
|
150
|
+
* the viewport height when every ancestor auto-grows with its content.
|
|
151
|
+
*/
|
|
152
|
+
function getParentDimensions(element) {
|
|
153
|
+
const parent = element.parentElement;
|
|
154
|
+
if (!parent) {
|
|
155
|
+
return { width: 0, height: 0 };
|
|
156
|
+
}
|
|
157
|
+
const parentStyle = getComputedStyle(parent);
|
|
158
|
+
const width = parent.clientWidth - parseFloat(parentStyle.paddingLeft) - parseFloat(parentStyle.paddingRight);
|
|
159
|
+
const height = findConstrainedHeight(element);
|
|
160
|
+
return { width: Math.max(0, width), height: Math.max(0, height) };
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Walks up the ancestor chain to find a height that is actually constrained
|
|
164
|
+
* (not just "whatever my content needs"). Returns viewport height as a
|
|
165
|
+
* last resort.
|
|
166
|
+
*/
|
|
167
|
+
function findConstrainedHeight(element) {
|
|
168
|
+
let current = element.parentElement;
|
|
169
|
+
while (current) {
|
|
170
|
+
const style = getComputedStyle(current);
|
|
171
|
+
const overflow = style.overflowY;
|
|
172
|
+
// An ancestor that clips / scrolls its content has a meaningful height
|
|
173
|
+
if (overflow === "hidden" || overflow === "scroll" || overflow === "auto") {
|
|
174
|
+
return current.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);
|
|
175
|
+
}
|
|
176
|
+
// An explicit max-height constrains the available space
|
|
177
|
+
if (style.maxHeight !== "none") {
|
|
178
|
+
const mh = parseFloat(style.maxHeight);
|
|
179
|
+
if (!isNaN(mh) && mh > 0) {
|
|
180
|
+
return Math.min(mh, current.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
current = current.parentElement;
|
|
184
|
+
}
|
|
185
|
+
// No constrained ancestor found — use viewport
|
|
186
|
+
return typeof window !== "undefined" ? window.innerHeight : 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Parses the raw `scale` attribute string into a typed {@link ScalingConfig}.
|
|
191
|
+
* Handles null/empty (-> empty), literal `"none"` / `"auto"`, or a positive
|
|
192
|
+
* numeric string (-> factor mode). Invalid non-numeric strings fall back to empty.
|
|
193
|
+
*/
|
|
194
|
+
function parseScaling(scale) {
|
|
195
|
+
if (scale == null || scale === "")
|
|
196
|
+
return { mode: "empty" };
|
|
197
|
+
if (scale === "none")
|
|
198
|
+
return { mode: "none" };
|
|
199
|
+
if (scale === "auto")
|
|
200
|
+
return { mode: "auto" };
|
|
201
|
+
const num = Number(scale);
|
|
202
|
+
if (!isNaN(num) && num > 0)
|
|
203
|
+
return { mode: "factor", factor: num };
|
|
204
|
+
return { mode: "empty" };
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export { getParentDimensions as g, parseScaling as p, withDataset as w };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getElement } from './index-
|
|
2
|
-
import { r as runIfExisits } from './withHasError-
|
|
1
|
+
import { g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
+
import { r as runIfExisits } from './withHasError-B3QX2emi.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Mixin that observes changes to a component's text content.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { g as generateUUID, r as runIfExisits } from './withHasError-B3QX2emi.js';
|
|
2
|
+
|
|
1
3
|
/** Lifecycle state of a tracked component instance. */
|
|
2
4
|
var ComponentStatus;
|
|
3
5
|
(function (ComponentStatus) {
|
|
@@ -69,4 +71,37 @@ var ComponentRegister;
|
|
|
69
71
|
};
|
|
70
72
|
})(ComponentRegister || (ComponentRegister = {}));
|
|
71
73
|
|
|
72
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Mixin that tracks a component's render lifecycle in the global {@link ComponentRegister}.
|
|
76
|
+
*
|
|
77
|
+
* Assigns a stable UUID to the component instance and reports status transitions:
|
|
78
|
+
* - `RUNNING` on `connectedCallback` and `componentWillRender`
|
|
79
|
+
* - `SUCCESSFUL` on `componentDidRender`
|
|
80
|
+
*
|
|
81
|
+
* External tools (e.g. screenshot/PDF renderers) poll
|
|
82
|
+
* `window.componentRegisterIsRenderedResult` to determine when all components
|
|
83
|
+
* have finished rendering.
|
|
84
|
+
*
|
|
85
|
+
* @param component - The Stencil component instance
|
|
86
|
+
*/
|
|
87
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
|
+
const withComponentStatus = (component) => {
|
|
89
|
+
const uuid = generateUUID();
|
|
90
|
+
const connectedCallback = component["connectedCallback"];
|
|
91
|
+
component["connectedCallback"] = () => {
|
|
92
|
+
ComponentRegister.updateStatus(uuid, ComponentStatus.RUNNING);
|
|
93
|
+
runIfExisits(connectedCallback, component);
|
|
94
|
+
};
|
|
95
|
+
const componentWillRender = component["componentWillRender"];
|
|
96
|
+
component["componentWillRender"] = () => {
|
|
97
|
+
ComponentRegister.updateStatus(uuid, ComponentStatus.RUNNING);
|
|
98
|
+
runIfExisits(componentWillRender, component);
|
|
99
|
+
};
|
|
100
|
+
const componentDidRender = component["componentDidRender"];
|
|
101
|
+
component["componentDidRender"] = () => {
|
|
102
|
+
ComponentRegister.updateStatus(uuid, ComponentStatus.SUCCESSFUL);
|
|
103
|
+
runIfExisits(componentDidRender, component);
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export { withComponentStatus as w };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getElement, f as forceUpdate } from './index-
|
|
2
|
-
import { g as getStores, c as clearStoresCache } from './context-protocol-
|
|
3
|
-
import { r as runIfExisits } from './withHasError-
|
|
1
|
+
import { g as getElement, f as forceUpdate } from './index-JNHhIe7t.js';
|
|
2
|
+
import { g as getStores, c as clearStoresCache } from './context-protocol-Bz5klD-F.js';
|
|
3
|
+
import { r as runIfExisits } from './withHasError-B3QX2emi.js';
|
|
4
4
|
|
|
5
5
|
const isObject = (obj) => {
|
|
6
6
|
if (typeof obj === 'object' && obj !== null) {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as DateDistance, a as DateLink } from './DateStringFactory-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as runIfExisits } from './withHasError-C48fTE2k.js';
|
|
1
|
+
import { f as Scenarios, g as Sentiments, h as DataFormat, T as TableType, a as OrderColumn, O as OrderDirection, M as MeasureType, i as TableCategoryWidth, A as AggregationLevel, c as AxisLabelsMode } from './Order-DdexOqTs.js';
|
|
2
|
+
import { D as DateDistance, a as DateLink } from './DateStringFactory-DRcbojUT.js';
|
|
3
|
+
import { f as forceUpdate, g as getElement } from './index-JNHhIe7t.js';
|
|
4
|
+
import { r as runIfExisits } from './withHasError-B3QX2emi.js';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Prop validators for Stencil @Watch handlers.
|
|
@@ -109,51 +108,6 @@ function validateMeasureList(value) {
|
|
|
109
108
|
}
|
|
110
109
|
return ["Invalid JSON structure"];
|
|
111
110
|
}
|
|
112
|
-
function validateMarkerType(value) {
|
|
113
|
-
if (isBlankInput(value)) {
|
|
114
|
-
return [];
|
|
115
|
-
}
|
|
116
|
-
try {
|
|
117
|
-
const newObj = JSON.parse(value);
|
|
118
|
-
if (newObj instanceof Array) {
|
|
119
|
-
return newObj.filter((elem) => !elem.hasOwnProperty("latitude") && !elem.hasOwnProperty("longitude") && !elem.hasOwnProperty("iconUrl"));
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
catch (e) {
|
|
123
|
-
throw e;
|
|
124
|
-
}
|
|
125
|
-
return ["Invalid JSON structure"];
|
|
126
|
-
}
|
|
127
|
-
function validateGpxType(value) {
|
|
128
|
-
if (isBlankInput(value)) {
|
|
129
|
-
return [];
|
|
130
|
-
}
|
|
131
|
-
try {
|
|
132
|
-
const newObj = JSON.parse(value);
|
|
133
|
-
if (newObj instanceof Array) {
|
|
134
|
-
return newObj.filter((elem) => !elem.hasOwnProperty("file"));
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
catch (e) {
|
|
138
|
-
throw e;
|
|
139
|
-
}
|
|
140
|
-
return ["Invalid JSON structure"];
|
|
141
|
-
}
|
|
142
|
-
function validateGeojsonType(value) {
|
|
143
|
-
if (isBlankInput(value)) {
|
|
144
|
-
return [];
|
|
145
|
-
}
|
|
146
|
-
try {
|
|
147
|
-
const newObj = JSON.parse(value);
|
|
148
|
-
if (newObj instanceof Array) {
|
|
149
|
-
return newObj.filter((elem) => !elem.hasOwnProperty("file"));
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
catch (e) {
|
|
153
|
-
throw e;
|
|
154
|
-
}
|
|
155
|
-
return ["Invalid JSON structure"];
|
|
156
|
-
}
|
|
157
111
|
function isValidDate(value) {
|
|
158
112
|
const newDate = Date.parse(value);
|
|
159
113
|
return Number.isInteger(newDate);
|
|
@@ -536,4 +490,4 @@ const withStyled = (component) => {
|
|
|
536
490
|
};
|
|
537
491
|
};
|
|
538
492
|
|
|
539
|
-
export {
|
|
493
|
+
export { validateVariancesList as a, isValidLevel as b, validateOrderList as c, isValidDirection as d, isValidInteger as e, isValidBoolean as f, isValidMeasureScale as g, validateStackConfig as h, isValidNumber as i, isBlankInput as j, isValidDateFormat as k, isValidAxisLabelsMode as l, validateMeasureList as m, isValidDate as n, isValidDateLink as o, isValidDataFormat as p, isValidTableType as q, validateThereOfJsonStr as r, validatePartOfJsonStr as s, isValidMeasureType as t, isTableCategoryWidth as u, validateScenarioList as v, withStyled as w, validateColumnThereOfJsonStr as x };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getStores, c as clearStoresCache } from './context-protocol-
|
|
2
|
-
import { g as getElement, f as forceUpdate } from './index-
|
|
3
|
-
import { r as runIfExisits } from './withHasError-
|
|
1
|
+
import { g as getStores, c as clearStoresCache } from './context-protocol-Bz5klD-F.js';
|
|
2
|
+
import { g as getElement, f as forceUpdate } from './index-JNHhIe7t.js';
|
|
3
|
+
import { r as runIfExisits } from './withHasError-B3QX2emi.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Mixin that provides i18n translation support to a Stencil component.
|
|
@@ -288,8 +288,7 @@ export declare class Chart {
|
|
|
288
288
|
private pixelPerUnitGroupMap;
|
|
289
289
|
constructor();
|
|
290
290
|
componentWillLoad(): void;
|
|
291
|
-
private
|
|
292
|
-
private static readonly MAX_SCALE_ITERATIONS;
|
|
291
|
+
private _autoScaleGuard;
|
|
293
292
|
componentDidRender(): void;
|
|
294
293
|
prepareDimension(): ParentDimensions;
|
|
295
294
|
private prepareScenarios;
|
|
@@ -115,7 +115,6 @@ export declare class Title {
|
|
|
115
115
|
readonly dateLink: string;
|
|
116
116
|
validateDateLink(newValue: string): void;
|
|
117
117
|
componentWillLoad(): void;
|
|
118
|
-
scopedEval: (scope: any, script: any) => any;
|
|
119
118
|
private prepareI18n;
|
|
120
119
|
private prepareI18nMode;
|
|
121
120
|
private prepareTitleOrder;
|