@bino-bi/bn-template-engine 1.0.0-next.47 → 1.0.0-next.49
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-b3f5eba0.entry.js → p-2de524d0.entry.js} +1 -1
- package/dist/bn-template-engine/{p-a6017fce.entry.js → p-510d2ee6.entry.js} +1 -1
- package/dist/bn-template-engine/{p-6ab684a9.entry.js → p-8fc90dc8.entry.js} +1 -1
- package/dist/bn-template-engine/p-BFl7OwcC.js +1 -0
- package/dist/bn-template-engine/{p-3ktFZb1x.js → p-Bxa4pX1M.js} +1 -1
- package/dist/bn-template-engine/p-c1d679af.entry.js +1 -0
- package/dist/cjs/bn-annotation-layer_30.cjs.entry.js +632 -112
- package/dist/cjs/bn-grid.cjs.entry.js +1 -1
- package/dist/cjs/bn-image.cjs.entry.js +1 -1
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{withStyled-DHKHBdRb.js → withStyled-pkdctrK9.js} +18 -1
- package/dist/cjs/{withTranslation-CLwC9a8V.js → withTranslation-BIzTNYZM.js} +1 -1
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.css +19 -0
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +65 -8
- package/dist/collection/components/bn-annotation-layer/utils/marks.js +85 -5
- package/dist/collection/components/bn-annotation-layer/utils/matchPoint.js +7 -1
- package/dist/collection/components/bn-chart-time/bn-chart-time-renderer/bn-chart-time-renderer.js +20 -6
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +55 -23
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +329 -53
- package/dist/collection/components/bn-chart-time/utils/elements/Column.js +4 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Label.js +2 -1
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +53 -11
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +1 -23
- package/dist/collection/components/bn-title/bn-title-renderer/bn-title-renderer.css +0 -10
- package/dist/collection/components/bn-title/bn-title-renderer/bn-title-renderer.js +1 -23
- package/dist/collection/components/bn-title/bn-title.js +1 -20
- package/dist/collection/utils/annotations.js +1 -1
- package/dist/collection/utils/constants.js +2 -0
- package/dist/collection/utils/layoutState/svgChartElements.js +10 -0
- package/dist/collection/utils/validate.js +16 -1
- package/dist/components/bn-annotation-layer.js +1 -1
- package/dist/components/bn-annotation-list.js +1 -1
- package/dist/components/bn-chart-bubble-renderer.js +1 -1
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet-renderer.js +1 -1
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter-renderer.js +1 -1
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure-renderer.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time-renderer.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-image.js +1 -1
- package/dist/components/bn-layout-card.js +1 -1
- package/dist/components/bn-layout-page.js +1 -1
- package/dist/components/bn-page.js +1 -1
- package/dist/components/bn-table-renderer.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title-renderer.js +1 -1
- package/dist/components/bn-title.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/{p-CLjuZoiT.js → p-B11cXOLy.js} +1 -1
- package/dist/components/p-BBdzTx8V.js +1 -0
- package/dist/components/p-BVNOmHh4.js +1 -0
- package/dist/components/p-BXP6aagM.js +1 -0
- package/dist/components/{p-CG-iY7pQ.js → p-Blre9f28.js} +1 -1
- package/dist/components/p-CHJ6WE0l.js +1 -0
- package/dist/components/{p-Do4GqlMV.js → p-CHhxQoF9.js} +1 -1
- package/dist/components/{p-C-3TOa6K.js → p-CJ0-xdfZ.js} +1 -1
- package/dist/components/{p-BFoRIqDi.js → p-CO6bgquz.js} +1 -1
- package/dist/components/{p-CytMTBFu.js → p-CSJCkHEL.js} +1 -1
- package/dist/components/p-CVfmhtEW.js +1 -0
- package/dist/components/{p-Zuxd3z0q.js → p-Cc0gaLwp.js} +1 -1
- package/dist/components/p-CuUfiEu0.js +1 -0
- package/dist/components/{p-DUZCLRVu.js → p-D362XOg2.js} +1 -1
- package/dist/components/p-DBj1Yd3M.js +1 -0
- package/dist/components/{p-BjgkgCAQ.js → p-DHX92KDP.js} +1 -1
- package/dist/components/p-DHloMyxV.js +1 -0
- package/dist/components/{p-Uc0zvXcQ.js → p-Dd1QOWDV.js} +1 -1
- package/dist/components/p-DguYWLBj.js +1 -0
- package/dist/components/p-Do-IGHJk.js +1 -0
- package/dist/components/{p-DDo-fu3v.js → p-DsC0ew4j.js} +1 -1
- package/dist/components/p-HVN8BNWN.js +1 -0
- package/dist/components/{p-Dyzb4ika.js → p-YSRTB0jS.js} +1 -1
- package/dist/components/{p-CrZ_O3DT.js → p-k7heRDPP.js} +1 -1
- package/dist/components/{p-dO0utE8m.js → p-keKnrAVS.js} +1 -1
- package/dist/components/p-x0W2_FAX.js +1 -0
- package/dist/components/{p-BgdoWKFY.js → p-y12CmIFS.js} +1 -1
- package/dist/esm/bn-annotation-layer_30.entry.js +632 -112
- package/dist/esm/bn-grid.entry.js +1 -1
- package/dist/esm/bn-image.entry.js +1 -1
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-text.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{withStyled-CTZFjg4L.js → withStyled-B62R20Zx.js} +18 -1
- package/dist/esm/{withTranslation-BESW5BNq.js → withTranslation-BEseMLQ6.js} +1 -1
- package/dist/types/components/bn-annotation-layer/utils/marks.d.ts +48 -0
- package/dist/types/components/bn-annotation-layer/utils/matchPoint.d.ts +4 -0
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +29 -6
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +51 -2
- package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +5 -1
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +6 -0
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +0 -9
- package/dist/types/components/bn-title/bn-title-renderer/bn-title-renderer.d.ts +0 -2
- package/dist/types/components/bn-title/bn-title.d.ts +0 -5
- package/dist/types/components.d.ts +6 -27
- package/dist/types/utils/annotations.d.ts +11 -1
- package/dist/types/utils/constants.d.ts +3 -1
- package/dist/types/utils/layoutState/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/bn-template-engine/p-444a231f.entry.js +0 -1
- package/dist/bn-template-engine/p-DXtYQE4s.js +0 -1
- package/dist/components/p-6gET6YXc.js +0 -1
- package/dist/components/p-BFWvVe7v.js +0 -1
- package/dist/components/p-C8rpOS5t.js +0 -1
- package/dist/components/p-CUoPUIej.js +0 -1
- package/dist/components/p-D3hr9wra.js +0 -1
- package/dist/components/p-DFybNETX.js +0 -1
- package/dist/components/p-DJSj3oQq.js +0 -1
- package/dist/components/p-DRmphEA0.js +0 -1
- package/dist/components/p-D_K7tYhY.js +0 -1
- package/dist/components/p-Dw3rv_Y9.js +0 -1
- package/dist/components/p-TNX3alPU.js +0 -1
- package/dist/components/p-j42D1yrQ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,B as a,c as t,w as i,N as l,H as r,b as n}from"./p-GstO_GU5.js";export{s as setNonce}from"./p-GstO_GU5.js";import{g as o}from"./p-DQuL1Twl.js";var c=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const t=a.call(this,!1),i=this.childNodes;if(e)for(let e=0;e<i.length;e++)2!==i[e].nodeType&&t.appendChild(i[e].cloneNode(!0));return t}};(()=>{a.isDev&&!a.isTesting&&t("Running in development mode."),a.cloneNodeFix&&c(r.prototype);const s=a.scriptDataOpts?i.document&&Array.from(i.document.querySelectorAll("script")).find((e=>new RegExp(`/${l}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===l)):null,n=import.meta.url,o=a.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==n&&(o.resourcesUrl=new URL(".",n).href),e(o)})().then((async e=>(await o(),n(JSON.parse('[["p-a6017fce",[[257,"bn-grid",{"selectedStyle":[513,"selected-style"],"chartTitle":[1,"chart-title"],"rowHeaders":[1,"row-headers"],"columnHeaders":[1,"column-headers"],"showRowHeaders":[4,"show-row-headers"],"showColumnHeaders":[4,"show-column-headers"],"i18nNamespace":[513,"i18n-namespace"],"showBorders":[4,"show-borders"],"rowHeaderWidth":[1,"row-header-width"],"cellGap":[1,"cell-gap"],"cellHeight":[1,"cell-height"],"cellWidth":[1,"cell-width"],"cellVerticalAlign":[1,"cell-vertical-align"],"cellHorizontalAlign":[1,"cell-horizontal-align"],"cellCaptions":[1,"cell-captions"],"gridConfig":[32],"resolvedHeight":[32],"resolvedWidth":[32],"resolvedVertical":[32],"resolvedHorizontal":[32],"captions":[32],"offsets":[32],"cellAttributes":[32],"getLayoutState":[64]},null,{"rowHeaders":[{"validateRowHeaders":0}],"columnHeaders":[{"validateColumnHeaders":0}],"cellHeight":[{"validateCellHeight":0}],"cellWidth":[{"validateCellWidth":0}],"cellVerticalAlign":[{"validateCellVerticalAlign":0}],"cellHorizontalAlign":[{"validateCellHorizontalAlign":0}],"cellCaptions":[{"validateCellCaptions":0}]}]]],["p-b3f5eba0",[[1,"bn-image",{"selectedStyle":[513,"selected-style"],"source":[1]}]]],["p-9a24e486",[[0,"bn-internationalization",{"code":[1],"namespace":[1]}]]],["p-ddc1b2a9",[[0,"bn-ruleset",{"name":[1]}]]],["p-6ab684a9",[[1,"bn-text",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"value":[1],"scale":[1],"data":[32]},null,{"value":[{"validateValue":0}],"scale":[{"validateScaling":0}]}]]],["p-444a231f",[[257,"bn-layout-page",{"styles":[1],"selectedStyle":[1,"selected-style"],"ruleset":[1],"messageText":[1,"message-text"],"messageImage":[1,"message-image"],"titleId":[1,"title-id"],"titleBusinessUnit":[1,"title-business-unit"],"titleScenarios":[1,"title-scenarios"],"titleVariances":[1,"title-variances"],"titleOrder":[1,"title-order"],"titleOrderDirection":[1,"title-order-direction"],"titleMeasures":[1,"title-measures"],"titleDateStart":[1,"title-date-start"],"titleDateEnd":[1,"title-date-end"],"titleDateFormat":[1,"title-date-format"],"titleDateLink":[1,"title-date-link"],"titleNamespace":[1,"title-namespace"],"i18nNamespace":[513,"i18n-namespace"],"pageFormat":[1,"page-format"],"pageOrientation":[1,"page-orientation"],"pageNumber":[1,"page-number"],"footerText":[1,"footer-text"],"footerDisplayPageNumber":[4,"footer-display-page-number"],"pageLayout":[1,"page-layout"],"pageCustomTemplate":[1,"page-custom-template"],"pageGridGap":[1,"page-grid-gap"],"pageFitToContent":[4,"page-fit-to-content"]}],[257,"bn-layout-card",{"styles":[1],"selectedStyle":[1,"selected-style"],"ruleset":[1],"titleImage":[1,"title-image"],"titleBusinessUnit":[1,"title-business-unit"],"titleScenarios":[1,"title-scenarios"],"titleVariances":[1,"title-variances"],"titleOrder":[1,"title-order"],"titleOrderDirection":[1,"title-order-direction"],"titleMeasures":[1,"title-measures"],"titleDateStart":[1,"title-date-start"],"titleDateEnd":[1,"title-date-end"],"titleDateFormat":[1,"title-date-format"],"titleDateLink":[1,"title-date-link"],"titleNamespace":[1,"title-namespace"],"i18nNamespace":[513,"i18n-namespace"],"footerText":[1,"footer-text"],"cardLayout":[1,"card-layout"],"cardCustomTemplate":[1,"card-custom-template"],"cardGridGap":[1,"card-grid-gap"],"cardFitToContent":[4,"card-fit-to-content"],"cardShowBorder":[4,"card-show-border"]}],[1,"bn-chart-bubble",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"chartTitle":[1,"chart-title"],"filter":[1],"x":[1],"y":[1],"size":[1],"share":[1],"compareWith":[1,"compare-with"],"level":[1],"seriesLevel":[1,"series-level"],"facet":[1],"labels":[1],"legend":[1],"aspect":[1],"limit":[2],"scale":[1],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"x":[{"validateX":0}],"y":[{"validateY":0}],"size":[{"validateSize":0}],"share":[{"validateShare":0}],"compareWith":[{"validateCompareWith":0}],"level":[{"validateLevel":0}],"seriesLevel":[{"validateSeriesLevel":0}],"facet":[{"validateFacet":0}],"labels":[{"validateLabels":0}],"legend":[{"validateLegend":0}],"aspect":[{"validateAspect":0}],"limit":[{"validateLimit":0}],"scale":[{"validateScale":0}]}],[1,"bn-chart-bullet",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"chartTitle":[1,"chart-title"],"filter":[1],"actual":[1],"target":[1],"ranges":[1],"normalizeMode":[1,"normalize"],"variances":[1],"level":[1],"order":[1],"orderDirection":[1,"order-direction"],"limit":[2],"labels":[1],"scale":[1],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"actual":[{"validateActual":0}],"target":[{"validateTarget":0}],"ranges":[{"validateRanges":0}],"normalizeMode":[{"validateNormalize":0}],"variances":[{"validateVariances":0}],"level":[{"validateLevel":0}],"order":[{"validateOrder":0}],"orderDirection":[{"validateOrderDirection":0}],"limit":[{"validateLimit":0}],"labels":[{"validateLabels":0}],"scale":[{"validateScale":0}]}],[1,"bn-chart-scatter",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"chartTitle":[1,"chart-title"],"filter":[1],"x":[1],"y":[1],"iso":[1],"level":[1],"seriesLevel":[1,"series-level"],"facet":[1],"labels":[1],"legend":[1],"aspect":[1],"limit":[2],"scale":[1],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"x":[{"validateX":0}],"y":[{"validateY":0}],"iso":[{"validateIso":0}],"level":[{"validateLevel":0}],"seriesLevel":[{"validateSeriesLevel":0}],"facet":[{"validateFacet":0}],"labels":[{"validateLabels":0}],"legend":[{"validateLegend":0}],"aspect":[{"validateAspect":0}],"limit":[{"validateLimit":0}],"scale":[{"validateScale":0}]}],[1,"bn-chart-structure",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"chartTitle":[1,"chart-title"],"ruleset":[513],"filter":[1],"scenarios":[1],"variances":[1],"unitScaling":[8,"unit-scaling"],"percentageScaling":[8,"percentage-scaling"],"level":[1],"order":[1],"orderDirection":[1,"order-direction"],"limit":[2],"showCategories":[4,"show-categories"],"measureScale":[1,"measure-scale"],"showMeasureScale":[4,"show-measure-scale"],"measureUnit":[1,"measure-unit"],"dataFormatDigitsDecimal":[2,"data-format-digits-decimal"],"dataFormatDigitsPercent":[2,"data-format-digits-percent"],"stack":[1],"scale":[1],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"scenarios":[{"validateScenario":0}],"variances":[{"validateVariances":0}],"unitScaling":[{"validateUnitScaling":0}],"percentageScaling":[{"validatePercentageScaling":0}],"level":[{"validateLevel":0}],"order":[{"validateOrderList":0}],"orderDirection":[{"validateOrderDirection":0}],"limit":[{"validateLimit":0}],"measureScale":[{"validateMeasureScale":0}],"dataFormatDigitsDecimal":[{"validateDataFormatDigitsDecimal":0}],"dataFormatDigitsPercent":[{"validateDataFormatDigitsPercent":0}],"stack":[{"validateStack":0}],"scale":[{"validateScaling":0}]}],[1,"bn-chart-time",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"chartTitle":[1,"chart-title"],"filter":[1],"scenarios":[1],"variances":[1],"syncSpaceLeft":[2,"sync-space-left"],"unitScaling":[8,"unit-scaling"],"percentageScaling":[8,"percentage-scaling"],"dateInterval":[1,"date-interval"],"chartMode":[1,"chart-mode"],"maxBars":[2,"max-bars"],"stack":[1],"scale":[1],"intervalSpanLimit":[2,"interval-span-limit"],"axisLabelsMode":[1,"axis-labels-mode"],"lineFullWidth":[4,"line-full-width"],"showCategories":[4,"show-categories"],"measureScale":[1,"measure-scale"],"showMeasureScale":[4,"show-measure-scale"],"showOverlayAvg":[4,"show-overlay-avg"],"showOverlayMedian":[4,"show-overlay-median"],"measureUnit":[1,"measure-unit"],"dataFormatDigitsDecimal":[2,"data-format-digits-decimal"],"dataFormatDigitsPercent":[2,"data-format-digits-percent"],"axisLabelsStep":[2,"axis-labels-step"],"scenarioSwitch":[4,"scenario-switch"],"axisTitlePosition":[1,"axis-title-position"],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"scenarios":[{"validateScenario":0}],"variances":[{"validateVariances":0}],"syncSpaceLeft":[{"validateLeftSync":0}],"unitScaling":[{"validateUnitScaling":0}],"percentageScaling":[{"validatePercentageScaling":0}],"dateInterval":[{"validateDateInterval":0}],"chartMode":[{"validateChartMode":0}],"maxBars":[{"validateMaxBars":0}],"stack":[{"validateStack":0}],"scale":[{"validateScaling":0}],"axisLabelsMode":[{"validateAxisLabelsMode":0}],"measureScale":[{"validateMeasureScale":0}],"dataFormatDigitsDecimal":[{"validateDataFormatDigitsDecimal":0}],"dataFormatDigitsPercent":[{"validateDataFormatDigitsPercent":0}],"axisLabelsStep":[{"validateAxisLabelsStep":0}],"axisTitlePosition":[{"validateAxisTitlePosition":0}]}],[1,"bn-table",{"datasets":[513],"i18nNamespace":[513,"i18n-namespace"],"scale":[1],"ruleset":[513],"selectedStyle":[513,"selected-style"],"sumTitle":[1,"sum-title"],"filter":[1],"measureUnit":[1,"measure-unit"],"scenarios":[1],"variances":[1],"barColumns":[1,"bar-columns"],"barColumnWidth":[1,"bar-column-width"],"unitScaling":[8,"unit-scaling"],"percentageScaling":[8,"percentage-scaling"],"dataFormat":[1,"data-format"],"grouped":[4],"showMeasureScale":[4,"show-measure-scale"],"showGroupTitle":[4,"show-group-title"],"runningSum":[4,"running-sum"],"varianceWaterfall":[4,"variance-waterfall"],"type":[1],"limit":[2],"thereof":[1],"thereofPosition":[1,"thereof-position"],"partof":[1],"order":[1],"orderDirection":[1,"order-direction"],"measureType":[1,"measure-type"],"measureScale":[1,"measure-scale"],"dataFormatDigitsDecimal":[2,"data-format-digits-decimal"],"dataFormatDigitsPercent":[2,"data-format-digits-percent"],"categoryWidth":[1,"category-width"],"columnthereof":[1],"interval":[1],"categoryIntervalPosition":[2,"category-interval-position"],"tableAttributes":[1,"attributes"],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"hasBlankSetnames":[32],"hasSetnameIndexWithoutSetname":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"scale":[{"validateScaling":0}],"filter":[{"validateFilter":0}],"scenarios":[{"validateScenario":0}],"variances":[{"validateVariances":0}],"barColumns":[{"validateBarColumns":0}],"barColumnWidth":[{"validateBarColumnWidth":0}],"unitScaling":[{"validateUnitScaling":0}],"percentageScaling":[{"validatePercentageScaling":0}],"dataFormat":[{"validateDataFormat":0}],"type":[{"validateType":0}],"limit":[{"validateLimit":0}],"thereof":[{"validateThereOf":0}],"thereofPosition":[{"validateThereofPosition":0}],"partof":[{"validatePartOf":0}],"order":[{"validateOrderList":0}],"orderDirection":[{"validateOrderDirection":0}],"measureType":[{"validateMeasureType":0}],"measureScale":[{"validateMeasureScale":0}],"dataFormatDigitsDecimal":[{"validateDataFormatDigitsDecimal":0}],"dataFormatDigitsPercent":[{"validateDateFormatDigitsPercent":0}],"categoryWidth":[{"validateCategoryWidth":0}],"columnthereof":[{"validateColumnThereOf":0}],"interval":[{"validateInterval":0}],"categoryIntervalPosition":[{"validateCategoryIntervalPosition":0}],"tableAttributes":[{"validateTableAttributes":0}]}],[1,"bn-annotation-layer",{"items":[1],"selectedStyle":[513,"selected-style"],"marks":[32]},null,{"items":[{"onItemsChange":0}]}],[1,"bn-annotation-list",{"items":[1],"selectedStyle":[513,"selected-style"]}],[1,"bn-asset",{"name":[1]}],[0,"bn-component-style",{"name":[1]}],[257,"bn-context",{"locale":[1],"i18nNamespace":[513,"i18n-namespace"],"renderOrientation":[513,"render-orientation"],"getLayoutState":[64],"getNotation":[64]},null,{"locale":[{"setLocale":0}]}],[0,"bn-dataset",{"name":[1],"datasources":[1],"static":[4],"raw":[4],"refreshInterval":[2,"refresh-interval"],"src":[1]},null,{"name":[{"nameUpdated":0}],"refreshInterval":[{"onIntervalChange":0}],"src":[{"onSrcChange":0}]}],[0,"bn-datasource",{"name":[1],"raw":[4],"refreshInterval":[2,"refresh-interval"],"src":[1]},null,{"refreshInterval":[{"onIntervalChange":0}],"src":[{"onSrcChange":0}],"name":[{"nameUpdated":0}]}],[0,"bn-scaling-group",{"name":[1],"value":[8]},null,{"name":[{"onNameChange":0}],"value":[{"onValueChange":0}]}],[257,"bn-tree",{"selectedStyle":[513,"selected-style"],"edges":[1],"direction":[1],"levelSpacing":[2,"level-spacing"],"nodeSpacing":[2,"node-spacing"],"edgeStyle":[1,"edge-style"],"i18nNamespace":[513,"i18n-namespace"],"showOperators":[4,"show-operators"],"treeConfig":[32],"layout":[32],"nodeRects":[32],"svgWidth":[32],"svgHeight":[32],"getLayoutState":[64]},null,{"edges":[{"validateEdgesProp":0}],"direction":[{"validateDirection":0}],"levelSpacing":[{"validateLevelSpacing":0}],"nodeSpacing":[{"validateNodeSpacing":0}],"edgeStyle":[{"validateEdgeStyle":0}]}],[257,"bn-card",{"selectedStyle":[513,"selected-style"]}],[1,"bn-chart-bubble-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"x":[16],"y":[16],"size":[16],"share":[16],"compareFamily":[1,"compare-family"],"labels":[16],"legend":[16],"facet":[16],"pointLevel":[1,"point-level"],"seriesLevel":[1,"series-level"],"aspect":[2],"limit":[2],"filter":[1],"sizeAreaPerUnit":[2,"size-area-per-unit"],"styles":[16],"i18n":[16],"containerWidth":[2,"container-width"],"ruleSetConfig":[16],"errors":[16],"translator":[16]}],[1,"bn-chart-bullet-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"actual":[16],"target":[16],"ranges":[16],"normalizeMode":[1,"normalize-mode"],"showVariances":[4,"show-variances"],"level":[1],"order":[16],"limit":[2],"labels":[16],"filter":[1],"styles":[16],"i18n":[16],"containerWidth":[2,"container-width"],"ruleSetConfig":[16],"errors":[16],"translator":[16]}],[1,"bn-chart-scatter-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"x":[16],"y":[16],"iso":[16],"labels":[16],"legend":[16],"facet":[16],"pointLevel":[1,"point-level"],"seriesLevel":[1,"series-level"],"aspect":[2],"limit":[2],"filter":[1],"styles":[16],"i18n":[16],"containerWidth":[2,"container-width"],"ruleSetConfig":[16],"errors":[16],"translator":[16]}],[1,"bn-chart-structure-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"scenarios":[16],"variances":[16],"hideCategories":[4,"hide-categories"],"pixelPerUnit":[2,"pixel-per-unit"],"pixelPerPercentage":[2,"pixel-per-percentage"],"reportAutoScaling":[16],"errors":[16],"limit":[2],"styles":[1040],"i18n":[1040],"order":[16],"level":[1],"filter":[1],"measureScale":[1,"measure-scale"],"measureUnit":[1,"measure-unit"],"showMeasureScale":[4,"show-measure-scale"],"dataFormatDigits":[16],"stackConfig":[16],"parentDimensions":[16],"ruleSetConfig":[16]}],[1,"bn-chart-time-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"scenarios":[16],"variances":[16],"hideAxisLabels":[4,"hide-axis-labels"],"pixelPerUnit":[2,"pixel-per-unit"],"pixelPerPercentage":[2,"pixel-per-percentage"],"reportAutoScaling":[16],"errors":[16],"leftSideOffsetForHorizontalSync":[2,"left-side-offset-for-horizontal-sync"],"styles":[1040],"i18n":[1040],"dateInterval":[1,"date-interval"],"intervalSpanLimit":[2,"interval-span-limit"],"axisLabelsMode":[1,"axis-labels-mode"],"filter":[1],"measureScale":[1,"measure-scale"],"measureUnit":[1,"measure-unit"],"showMeasureScale":[4,"show-measure-scale"],"showOverlayMedian":[4,"show-overlay-median"],"showOverlayAvg":[4,"show-overlay-avg"],"chartMode":[1,"chart-mode"],"maxBars":[2,"max-bars"],"stackConfig":[16],"lineFullWidth":[4,"line-full-width"],"containerWidth":[2,"container-width"],"dataFormatDigits":[16],"axisLabelsStep":[2,"axis-labels-step"],"scenarioSwitch":[4,"scenario-switch"],"axisTitlePosition":[1,"axis-title-position"],"parentDimensions":[16],"ruleSetConfig":[16]}],[1,"bn-message",{"selectedStyle":[513,"selected-style"],"text":[1025],"image":[1]}],[257,"bn-page",{"selectedStyle":[513,"selected-style"],"format":[1],"orientation":[1]},null,{"format":[{"validateFormat":0}],"orientation":[{"validateOrientation":0}]}],[1,"bn-table-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"selectedStyle":[513,"selected-style"],"sumTitle":[1,"sum-title"],"scenarios":[16],"scenariosDataFormat":[1,"scenarios-data-format"],"grouped":[4],"limit":[2],"showGroupTitle":[4,"show-group-title"],"runningSum":[4,"running-sum"],"varianceWaterfall":[4,"variance-waterfall"],"thereof":[16],"thereofPosition":[1,"thereof-position"],"partof":[16],"order":[16],"categorythereof":[16],"attributeColumns":[16],"type":[1],"categoryWidth":[1,"category-width"],"dataFormatDigits":[16],"ruleSetConfig":[16],"i18n":[1040],"i18nMode":[1,"i18n-mode"],"measureScale":[1,"measure-scale"],"measureUnit":[1,"measure-unit"],"showMeasureScale":[4,"show-measure-scale"],"measureType":[1,"measure-type"],"filter":[1],"barColumns":[16],"interval":[1],"categoryIntervalPosition":[2,"category-interval-position"],"barColumnMaxWidth":[2,"bar-column-max-width"],"unitScaling":[2,"unit-scaling"],"percentageScaling":[2,"percentage-scaling"],"reportAutoScaling":[16],"errors":[16],"scaleFactor":[2,"scale-factor"],"getLayoutDetail":[64]}],[1,"bn-title",{"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"titleFontSize":[2,"title-font-size"],"titleId":[1,"title-id"],"businessUnit":[1,"business-unit"],"scenarios":[1],"variances":[1],"order":[1],"orderDirection":[1,"order-direction"],"measures":[1],"dateStart":[1,"date-start"],"dateEnd":[1,"date-end"],"dateFormat":[1,"date-format"],"dateLink":[1,"date-link"]},null,{"scenarios":[{"validateScenario":0}],"variances":[{"validateVariances":0}],"order":[{"validateOrder":0}],"orderDirection":[{"validateOrderDirection":0}],"measures":[{"validateMeasures":0}],"dateStart":[{"validateDateStart":0}],"dateEnd":[{"validateDateEnd":0}],"dateFormat":[{"validateDateFormat":0}],"dateLink":[{"validateDateLink":0}]}],[257,"bn-body",{"selectedStyle":[513,"selected-style"]}],[1,"bn-footer",{"selectedStyle":[513,"selected-style"],"pageNumber":[1025,"page-number"],"text":[1025],"displayPageNumber":[4,"display-page-number"]}],[1,"bn-title-renderer",{"businessUnit":[1537,"business-unit"],"scenarios":[16],"measures":[16],"timeperiod":[16],"intervalSpanLimit":[2,"interval-span-limit"],"order":[16],"i18n":[1040],"i18nMode":[1,"i18n-mode"],"locale":[1],"ruleSetConfig":[16],"titleId":[1,"title-id"]}]]]]'),e))));
|
|
1
|
+
import{p as e,B as a,c as t,w as i,N as l,H as r,b as n}from"./p-GstO_GU5.js";export{s as setNonce}from"./p-GstO_GU5.js";import{g as o}from"./p-DQuL1Twl.js";var c=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const t=a.call(this,!1),i=this.childNodes;if(e)for(let e=0;e<i.length;e++)2!==i[e].nodeType&&t.appendChild(i[e].cloneNode(!0));return t}};(()=>{a.isDev&&!a.isTesting&&t("Running in development mode."),a.cloneNodeFix&&c(r.prototype);const s=a.scriptDataOpts?i.document&&Array.from(i.document.querySelectorAll("script")).find((e=>new RegExp(`/${l}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===l)):null,n=import.meta.url,o=a.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==n&&(o.resourcesUrl=new URL(".",n).href),e(o)})().then((async e=>(await o(),n(JSON.parse('[["p-510d2ee6",[[257,"bn-grid",{"selectedStyle":[513,"selected-style"],"chartTitle":[1,"chart-title"],"rowHeaders":[1,"row-headers"],"columnHeaders":[1,"column-headers"],"showRowHeaders":[4,"show-row-headers"],"showColumnHeaders":[4,"show-column-headers"],"i18nNamespace":[513,"i18n-namespace"],"showBorders":[4,"show-borders"],"rowHeaderWidth":[1,"row-header-width"],"cellGap":[1,"cell-gap"],"cellHeight":[1,"cell-height"],"cellWidth":[1,"cell-width"],"cellVerticalAlign":[1,"cell-vertical-align"],"cellHorizontalAlign":[1,"cell-horizontal-align"],"cellCaptions":[1,"cell-captions"],"gridConfig":[32],"resolvedHeight":[32],"resolvedWidth":[32],"resolvedVertical":[32],"resolvedHorizontal":[32],"captions":[32],"offsets":[32],"cellAttributes":[32],"getLayoutState":[64]},null,{"rowHeaders":[{"validateRowHeaders":0}],"columnHeaders":[{"validateColumnHeaders":0}],"cellHeight":[{"validateCellHeight":0}],"cellWidth":[{"validateCellWidth":0}],"cellVerticalAlign":[{"validateCellVerticalAlign":0}],"cellHorizontalAlign":[{"validateCellHorizontalAlign":0}],"cellCaptions":[{"validateCellCaptions":0}]}]]],["p-2de524d0",[[1,"bn-image",{"selectedStyle":[513,"selected-style"],"source":[1]}]]],["p-9a24e486",[[0,"bn-internationalization",{"code":[1],"namespace":[1]}]]],["p-ddc1b2a9",[[0,"bn-ruleset",{"name":[1]}]]],["p-8fc90dc8",[[1,"bn-text",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"value":[1],"scale":[1],"data":[32]},null,{"value":[{"validateValue":0}],"scale":[{"validateScaling":0}]}]]],["p-c1d679af",[[257,"bn-layout-page",{"styles":[1],"selectedStyle":[1,"selected-style"],"ruleset":[1],"messageText":[1,"message-text"],"messageImage":[1,"message-image"],"titleBusinessUnit":[1,"title-business-unit"],"titleScenarios":[1,"title-scenarios"],"titleVariances":[1,"title-variances"],"titleOrder":[1,"title-order"],"titleOrderDirection":[1,"title-order-direction"],"titleMeasures":[1,"title-measures"],"titleDateStart":[1,"title-date-start"],"titleDateEnd":[1,"title-date-end"],"titleDateFormat":[1,"title-date-format"],"titleDateLink":[1,"title-date-link"],"titleNamespace":[1,"title-namespace"],"i18nNamespace":[513,"i18n-namespace"],"pageFormat":[1,"page-format"],"pageOrientation":[1,"page-orientation"],"pageNumber":[1,"page-number"],"footerText":[1,"footer-text"],"footerDisplayPageNumber":[4,"footer-display-page-number"],"pageLayout":[1,"page-layout"],"pageCustomTemplate":[1,"page-custom-template"],"pageGridGap":[1,"page-grid-gap"],"pageFitToContent":[4,"page-fit-to-content"]}],[257,"bn-layout-card",{"styles":[1],"selectedStyle":[1,"selected-style"],"ruleset":[1],"titleImage":[1,"title-image"],"titleBusinessUnit":[1,"title-business-unit"],"titleScenarios":[1,"title-scenarios"],"titleVariances":[1,"title-variances"],"titleOrder":[1,"title-order"],"titleOrderDirection":[1,"title-order-direction"],"titleMeasures":[1,"title-measures"],"titleDateStart":[1,"title-date-start"],"titleDateEnd":[1,"title-date-end"],"titleDateFormat":[1,"title-date-format"],"titleDateLink":[1,"title-date-link"],"titleNamespace":[1,"title-namespace"],"i18nNamespace":[513,"i18n-namespace"],"footerText":[1,"footer-text"],"cardLayout":[1,"card-layout"],"cardCustomTemplate":[1,"card-custom-template"],"cardGridGap":[1,"card-grid-gap"],"cardFitToContent":[4,"card-fit-to-content"],"cardShowBorder":[4,"card-show-border"]}],[1,"bn-chart-bubble",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"chartTitle":[1,"chart-title"],"filter":[1],"x":[1],"y":[1],"size":[1],"share":[1],"compareWith":[1,"compare-with"],"level":[1],"seriesLevel":[1,"series-level"],"facet":[1],"labels":[1],"legend":[1],"aspect":[1],"limit":[2],"scale":[1],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"x":[{"validateX":0}],"y":[{"validateY":0}],"size":[{"validateSize":0}],"share":[{"validateShare":0}],"compareWith":[{"validateCompareWith":0}],"level":[{"validateLevel":0}],"seriesLevel":[{"validateSeriesLevel":0}],"facet":[{"validateFacet":0}],"labels":[{"validateLabels":0}],"legend":[{"validateLegend":0}],"aspect":[{"validateAspect":0}],"limit":[{"validateLimit":0}],"scale":[{"validateScale":0}]}],[1,"bn-chart-bullet",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"chartTitle":[1,"chart-title"],"filter":[1],"actual":[1],"target":[1],"ranges":[1],"normalizeMode":[1,"normalize"],"variances":[1],"level":[1],"order":[1],"orderDirection":[1,"order-direction"],"limit":[2],"labels":[1],"scale":[1],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"actual":[{"validateActual":0}],"target":[{"validateTarget":0}],"ranges":[{"validateRanges":0}],"normalizeMode":[{"validateNormalize":0}],"variances":[{"validateVariances":0}],"level":[{"validateLevel":0}],"order":[{"validateOrder":0}],"orderDirection":[{"validateOrderDirection":0}],"limit":[{"validateLimit":0}],"labels":[{"validateLabels":0}],"scale":[{"validateScale":0}]}],[1,"bn-chart-scatter",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"chartTitle":[1,"chart-title"],"filter":[1],"x":[1],"y":[1],"iso":[1],"level":[1],"seriesLevel":[1,"series-level"],"facet":[1],"labels":[1],"legend":[1],"aspect":[1],"limit":[2],"scale":[1],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"x":[{"validateX":0}],"y":[{"validateY":0}],"iso":[{"validateIso":0}],"level":[{"validateLevel":0}],"seriesLevel":[{"validateSeriesLevel":0}],"facet":[{"validateFacet":0}],"labels":[{"validateLabels":0}],"legend":[{"validateLegend":0}],"aspect":[{"validateAspect":0}],"limit":[{"validateLimit":0}],"scale":[{"validateScale":0}]}],[1,"bn-chart-structure",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"chartTitle":[1,"chart-title"],"ruleset":[513],"filter":[1],"scenarios":[1],"variances":[1],"unitScaling":[8,"unit-scaling"],"percentageScaling":[8,"percentage-scaling"],"level":[1],"order":[1],"orderDirection":[1,"order-direction"],"limit":[2],"showCategories":[4,"show-categories"],"measureScale":[1,"measure-scale"],"showMeasureScale":[4,"show-measure-scale"],"measureUnit":[1,"measure-unit"],"dataFormatDigitsDecimal":[2,"data-format-digits-decimal"],"dataFormatDigitsPercent":[2,"data-format-digits-percent"],"stack":[1],"scale":[1],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"scenarios":[{"validateScenario":0}],"variances":[{"validateVariances":0}],"unitScaling":[{"validateUnitScaling":0}],"percentageScaling":[{"validatePercentageScaling":0}],"level":[{"validateLevel":0}],"order":[{"validateOrderList":0}],"orderDirection":[{"validateOrderDirection":0}],"limit":[{"validateLimit":0}],"measureScale":[{"validateMeasureScale":0}],"dataFormatDigitsDecimal":[{"validateDataFormatDigitsDecimal":0}],"dataFormatDigitsPercent":[{"validateDataFormatDigitsPercent":0}],"stack":[{"validateStack":0}],"scale":[{"validateScaling":0}]}],[1,"bn-chart-time",{"datasets":[513],"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"chartTitle":[1,"chart-title"],"filter":[1],"scenarios":[1],"variances":[1],"syncSpaceLeft":[2,"sync-space-left"],"unitScaling":[8,"unit-scaling"],"percentageScaling":[8,"percentage-scaling"],"dateInterval":[1,"date-interval"],"chartMode":[1,"chart-mode"],"maxBars":[2,"max-bars"],"stack":[1],"scale":[1],"intervalSpanLimit":[2,"interval-span-limit"],"axisLabelsMode":[1,"axis-labels-mode"],"lineFullWidth":[4,"line-full-width"],"showCategories":[4,"show-categories"],"measureScale":[1,"measure-scale"],"showMeasureScale":[4,"show-measure-scale"],"showOverlayAvg":[4,"show-overlay-avg"],"showOverlayMedian":[4,"show-overlay-median"],"measureUnit":[1,"measure-unit"],"dataFormatDigitsDecimal":[2,"data-format-digits-decimal"],"dataFormatDigitsPercent":[2,"data-format-digits-percent"],"axisLabelsStep":[2,"axis-labels-step"],"scenarioSwitch":[4,"scenario-switch"],"axisTitlePosition":[1,"axis-title-position"],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"filter":[{"validateFilter":0}],"scenarios":[{"validateScenario":0}],"variances":[{"validateVariances":0}],"syncSpaceLeft":[{"validateLeftSync":0}],"unitScaling":[{"validateUnitScaling":0}],"percentageScaling":[{"validatePercentageScaling":0}],"dateInterval":[{"validateDateInterval":0}],"chartMode":[{"validateChartMode":0}],"maxBars":[{"validateMaxBars":0}],"stack":[{"validateStack":0}],"scale":[{"validateScaling":0}],"axisLabelsMode":[{"validateAxisLabelsMode":0}],"measureScale":[{"validateMeasureScale":0}],"dataFormatDigitsDecimal":[{"validateDataFormatDigitsDecimal":0}],"dataFormatDigitsPercent":[{"validateDataFormatDigitsPercent":0}],"axisLabelsStep":[{"validateAxisLabelsStep":0}],"axisTitlePosition":[{"validateAxisTitlePosition":0}]}],[1,"bn-table",{"datasets":[513],"i18nNamespace":[513,"i18n-namespace"],"scale":[1],"ruleset":[513],"selectedStyle":[513,"selected-style"],"sumTitle":[1,"sum-title"],"filter":[1],"measureUnit":[1,"measure-unit"],"scenarios":[1],"variances":[1],"barColumns":[1,"bar-columns"],"barColumnWidth":[1,"bar-column-width"],"unitScaling":[8,"unit-scaling"],"percentageScaling":[8,"percentage-scaling"],"dataFormat":[1,"data-format"],"grouped":[4],"showMeasureScale":[4,"show-measure-scale"],"showGroupTitle":[4,"show-group-title"],"runningSum":[4,"running-sum"],"varianceWaterfall":[4,"variance-waterfall"],"type":[1],"limit":[2],"thereof":[1],"thereofPosition":[1,"thereof-position"],"partof":[1],"order":[1],"orderDirection":[1,"order-direction"],"measureType":[1,"measure-type"],"measureScale":[1,"measure-scale"],"dataFormatDigitsDecimal":[2,"data-format-digits-decimal"],"dataFormatDigitsPercent":[2,"data-format-digits-percent"],"categoryWidth":[1,"category-width"],"columnthereof":[1],"interval":[1],"categoryIntervalPosition":[2,"category-interval-position"],"tableAttributes":[1,"attributes"],"datasetName":[32],"dataVersion":[32],"datasetMeta":[32],"appliedScaleFactor":[32],"hasBlankSetnames":[32],"hasSetnameIndexWithoutSetname":[32],"getBaseline":[64],"getLayoutState":[64]},null,{"scale":[{"validateScaling":0}],"filter":[{"validateFilter":0}],"scenarios":[{"validateScenario":0}],"variances":[{"validateVariances":0}],"barColumns":[{"validateBarColumns":0}],"barColumnWidth":[{"validateBarColumnWidth":0}],"unitScaling":[{"validateUnitScaling":0}],"percentageScaling":[{"validatePercentageScaling":0}],"dataFormat":[{"validateDataFormat":0}],"type":[{"validateType":0}],"limit":[{"validateLimit":0}],"thereof":[{"validateThereOf":0}],"thereofPosition":[{"validateThereofPosition":0}],"partof":[{"validatePartOf":0}],"order":[{"validateOrderList":0}],"orderDirection":[{"validateOrderDirection":0}],"measureType":[{"validateMeasureType":0}],"measureScale":[{"validateMeasureScale":0}],"dataFormatDigitsDecimal":[{"validateDataFormatDigitsDecimal":0}],"dataFormatDigitsPercent":[{"validateDateFormatDigitsPercent":0}],"categoryWidth":[{"validateCategoryWidth":0}],"columnthereof":[{"validateColumnThereOf":0}],"interval":[{"validateInterval":0}],"categoryIntervalPosition":[{"validateCategoryIntervalPosition":0}],"tableAttributes":[{"validateTableAttributes":0}]}],[1,"bn-annotation-layer",{"items":[1],"selectedStyle":[513,"selected-style"],"marks":[32]},null,{"items":[{"onItemsChange":0}]}],[1,"bn-annotation-list",{"items":[1],"selectedStyle":[513,"selected-style"]}],[1,"bn-asset",{"name":[1]}],[0,"bn-component-style",{"name":[1]}],[257,"bn-context",{"locale":[1],"i18nNamespace":[513,"i18n-namespace"],"renderOrientation":[513,"render-orientation"],"getLayoutState":[64],"getNotation":[64]},null,{"locale":[{"setLocale":0}]}],[0,"bn-dataset",{"name":[1],"datasources":[1],"static":[4],"raw":[4],"refreshInterval":[2,"refresh-interval"],"src":[1]},null,{"name":[{"nameUpdated":0}],"refreshInterval":[{"onIntervalChange":0}],"src":[{"onSrcChange":0}]}],[0,"bn-datasource",{"name":[1],"raw":[4],"refreshInterval":[2,"refresh-interval"],"src":[1]},null,{"refreshInterval":[{"onIntervalChange":0}],"src":[{"onSrcChange":0}],"name":[{"nameUpdated":0}]}],[0,"bn-scaling-group",{"name":[1],"value":[8]},null,{"name":[{"onNameChange":0}],"value":[{"onValueChange":0}]}],[257,"bn-tree",{"selectedStyle":[513,"selected-style"],"edges":[1],"direction":[1],"levelSpacing":[2,"level-spacing"],"nodeSpacing":[2,"node-spacing"],"edgeStyle":[1,"edge-style"],"i18nNamespace":[513,"i18n-namespace"],"showOperators":[4,"show-operators"],"treeConfig":[32],"layout":[32],"nodeRects":[32],"svgWidth":[32],"svgHeight":[32],"getLayoutState":[64]},null,{"edges":[{"validateEdgesProp":0}],"direction":[{"validateDirection":0}],"levelSpacing":[{"validateLevelSpacing":0}],"nodeSpacing":[{"validateNodeSpacing":0}],"edgeStyle":[{"validateEdgeStyle":0}]}],[257,"bn-card",{"selectedStyle":[513,"selected-style"]}],[1,"bn-chart-bubble-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"x":[16],"y":[16],"size":[16],"share":[16],"compareFamily":[1,"compare-family"],"labels":[16],"legend":[16],"facet":[16],"pointLevel":[1,"point-level"],"seriesLevel":[1,"series-level"],"aspect":[2],"limit":[2],"filter":[1],"sizeAreaPerUnit":[2,"size-area-per-unit"],"styles":[16],"i18n":[16],"containerWidth":[2,"container-width"],"ruleSetConfig":[16],"errors":[16],"translator":[16]}],[1,"bn-chart-bullet-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"actual":[16],"target":[16],"ranges":[16],"normalizeMode":[1,"normalize-mode"],"showVariances":[4,"show-variances"],"level":[1],"order":[16],"limit":[2],"labels":[16],"filter":[1],"styles":[16],"i18n":[16],"containerWidth":[2,"container-width"],"ruleSetConfig":[16],"errors":[16],"translator":[16]}],[1,"bn-chart-scatter-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"x":[16],"y":[16],"iso":[16],"labels":[16],"legend":[16],"facet":[16],"pointLevel":[1,"point-level"],"seriesLevel":[1,"series-level"],"aspect":[2],"limit":[2],"filter":[1],"styles":[16],"i18n":[16],"containerWidth":[2,"container-width"],"ruleSetConfig":[16],"errors":[16],"translator":[16]}],[1,"bn-chart-structure-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"scenarios":[16],"variances":[16],"hideCategories":[4,"hide-categories"],"pixelPerUnit":[2,"pixel-per-unit"],"pixelPerPercentage":[2,"pixel-per-percentage"],"reportAutoScaling":[16],"errors":[16],"limit":[2],"styles":[1040],"i18n":[1040],"order":[16],"level":[1],"filter":[1],"measureScale":[1,"measure-scale"],"measureUnit":[1,"measure-unit"],"showMeasureScale":[4,"show-measure-scale"],"dataFormatDigits":[16],"stackConfig":[16],"parentDimensions":[16],"ruleSetConfig":[16]}],[1,"bn-chart-time-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"chartTitle":[1,"chart-title"],"scenarios":[16],"variances":[16],"hideAxisLabels":[4,"hide-axis-labels"],"pixelPerUnit":[2,"pixel-per-unit"],"pixelPerPercentage":[2,"pixel-per-percentage"],"reportAutoScaling":[16],"errors":[16],"leftSideOffsetForHorizontalSync":[2,"left-side-offset-for-horizontal-sync"],"styles":[1040],"i18n":[1040],"dateInterval":[1,"date-interval"],"intervalSpanLimit":[2,"interval-span-limit"],"axisLabelsMode":[1,"axis-labels-mode"],"filter":[1],"measureScale":[1,"measure-scale"],"measureUnit":[1,"measure-unit"],"showMeasureScale":[4,"show-measure-scale"],"showOverlayMedian":[4,"show-overlay-median"],"showOverlayAvg":[4,"show-overlay-avg"],"chartMode":[1,"chart-mode"],"maxBars":[2,"max-bars"],"stackConfig":[16],"lineFullWidth":[4,"line-full-width"],"containerWidth":[2,"container-width"],"dataFormatDigits":[16],"axisLabelsStep":[2,"axis-labels-step"],"scenarioSwitch":[4,"scenario-switch"],"axisTitlePosition":[1,"axis-title-position"],"parentDimensions":[16],"ruleSetConfig":[16]}],[1,"bn-message",{"selectedStyle":[513,"selected-style"],"text":[1025],"image":[1]}],[257,"bn-page",{"selectedStyle":[513,"selected-style"],"format":[1],"orientation":[1]},null,{"format":[{"validateFormat":0}],"orientation":[{"validateOrientation":0}]}],[1,"bn-table-renderer",{"tableName":[1,"table-name"],"dataVersion":[2,"data-version"],"selectedStyle":[513,"selected-style"],"sumTitle":[1,"sum-title"],"scenarios":[16],"scenariosDataFormat":[1,"scenarios-data-format"],"grouped":[4],"limit":[2],"showGroupTitle":[4,"show-group-title"],"runningSum":[4,"running-sum"],"varianceWaterfall":[4,"variance-waterfall"],"thereof":[16],"thereofPosition":[1,"thereof-position"],"partof":[16],"order":[16],"categorythereof":[16],"attributeColumns":[16],"type":[1],"categoryWidth":[1,"category-width"],"dataFormatDigits":[16],"ruleSetConfig":[16],"i18n":[1040],"i18nMode":[1,"i18n-mode"],"measureScale":[1,"measure-scale"],"measureUnit":[1,"measure-unit"],"showMeasureScale":[4,"show-measure-scale"],"measureType":[1,"measure-type"],"filter":[1],"barColumns":[16],"interval":[1],"categoryIntervalPosition":[2,"category-interval-position"],"barColumnMaxWidth":[2,"bar-column-max-width"],"unitScaling":[2,"unit-scaling"],"percentageScaling":[2,"percentage-scaling"],"reportAutoScaling":[16],"errors":[16],"scaleFactor":[2,"scale-factor"],"getLayoutDetail":[64]}],[1,"bn-title",{"selectedStyle":[513,"selected-style"],"i18nNamespace":[513,"i18n-namespace"],"ruleset":[513],"titleFontSize":[2,"title-font-size"],"businessUnit":[1,"business-unit"],"scenarios":[1],"variances":[1],"order":[1],"orderDirection":[1,"order-direction"],"measures":[1],"dateStart":[1,"date-start"],"dateEnd":[1,"date-end"],"dateFormat":[1,"date-format"],"dateLink":[1,"date-link"]},null,{"scenarios":[{"validateScenario":0}],"variances":[{"validateVariances":0}],"order":[{"validateOrder":0}],"orderDirection":[{"validateOrderDirection":0}],"measures":[{"validateMeasures":0}],"dateStart":[{"validateDateStart":0}],"dateEnd":[{"validateDateEnd":0}],"dateFormat":[{"validateDateFormat":0}],"dateLink":[{"validateDateLink":0}]}],[257,"bn-body",{"selectedStyle":[513,"selected-style"]}],[1,"bn-footer",{"selectedStyle":[513,"selected-style"],"pageNumber":[1025,"page-number"],"text":[1025],"displayPageNumber":[4,"display-page-number"]}],[1,"bn-title-renderer",{"businessUnit":[1537,"business-unit"],"scenarios":[16],"measures":[16],"timeperiod":[16],"intervalSpanLimit":[2,"interval-span-limit"],"order":[16],"i18n":[1040],"i18nMode":[1,"i18n-mode"],"locale":[1],"ruleSetConfig":[16]}]]]]'),e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,a as i,g as o}from"./p-GstO_GU5.js";import{w as n,a as e}from"./p-
|
|
1
|
+
import{r as t,h as s,a as i,g as o}from"./p-GstO_GU5.js";import{w as n,a as e}from"./p-BFl7OwcC.js";import{w as r,a,g as l}from"./p-7pLJBHT2.js";const h=class{constructor(s){t(this,s),n(this),r(this),this.errors=a(this),this.componentStyle=e(this)}connectedCallback(){this.stores=l(this.element)}getFontStyles(){return this.componentStyle((t=>{var s,i,o,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(t){if(null==t||""===t)return"";const s=this.stores.assets.state;return t.startsWith("asset:")?s[t.substring(6)]:s[t]||t}render(){return s(i,{key:"b303581057c183cc27eb13cfdc389c6b008e9172",style:this.getFontStyles()},null!=this.source&&""!==this.source?s("img",{src:this.prepareAssetUrl(this.source)}):"")}get element(){return o(this)}};h.style=":host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}";export{h as bn_image}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,a as e,g as o}from"./p-GstO_GU5.js";import{L as s}from"./p-DY5fMUX8.js";import{l as n,o as l,r,m as a,a as d}from"./p-Dvlw60RF.js";import{w as h,a as c}from"./p-7pLJBHT2.js";import{w as u,a as v}from"./p-DXtYQE4s.js";function f(t){if(!t||""===t.trim()||"[]"===t)return[];try{const i=JSON.parse(t);return Array.isArray(i)?i.map(((t,i)=>{var e,o,s;return"string"==typeof t?{label:t,id:String(i)}:"object"==typeof t&&null!==t?{label:null!==(o=null!==(e=t.label)&&void 0!==e?e:t.name)&&void 0!==o?o:String(i),id:null!==(s=t.id)&&void 0!==s?s:String(i)}:{label:String(t),id:String(i)}})):[]}catch(t){return console.error("parseHeaders: failed to parse JSON",t),[]}}function p(t,i){return`${t.id}-${i.id}`}function g(t){if(!t||""===t.trim()||"[]"===t)return[];try{const i=JSON.parse(t);if(!Array.isArray(i))return["Headers must be an array"];const e=[],o=new Set;return i.forEach(((t,i)=>{"object"==typeof t&&null!==t&&void 0!==t.id&&("string"!=typeof t.id?e.push(`Header[${i}]: 'id' must be a string`):o.has(t.id)?e.push(`Header[${i}]: duplicate id '${t.id}'`):o.add(t.id),void 0!==t.label&&"string"!=typeof t.label&&e.push(`Header[${i}]: 'label' must be a string`))})),e}catch(t){return console.error("validateHeadersJson: failed to parse JSON",t),["Invalid JSON structure"]}}const b=["auto","equal"],m=["top","center","bottom","baseline"],w=["left","center","right","baseline"],y={top:"flex-start",center:"center",bottom:"flex-end",baseline:"flex-start"},S={left:"stretch",center:"center",right:"flex-end",baseline:"stretch"};function x(t){if(null===t||""===t.trim())return 1;const i=Number(t);return Number.isInteger(i)&&i>=1?i:void 0}function $(t,i,e){var o,s;const n=Array.from({length:t},(()=>Array(i))),l=[],r=[];for(let a=0;a<t;a++)for(let d=0;d<i;d++){const h=n[a][d];if(h){r.push({row:a,column:d,by:h});continue}const c=e(a,d),u=Math.min(null!==(o=null==c?void 0:c.rowSpan)&&void 0!==o?o:1,t-a);let v=1;const f=Math.min(null!==(s=null==c?void 0:c.columnSpan)&&void 0!==s?s:1,i-d);for(;v<f&&!n[a][d+v];)v++;const p={row:a,column:d,rowSpan:u,columnSpan:v};for(let t=a;t<a+u;t++)for(let i=d;i<d+v;i++)n[t][i]=p;l.push(p)}return{cells:l,covered:r}}const C=t=>Math.round(100*t)/100,R=new Set(["bn-asset","bn-component-style","bn-dataset","bn-datasource","bn-internationalization","bn-ruleset","bn-scaling-group"]),O=new Set(["bn-layout-card"]),j={top:"--bn-baseline-offset-top",left:"--bn-baseline-offset-left",right:"--bn-baseline-offset-right"},H=["row-span","column-span","cell-background"],k=class{validateRowHeaders(t){const i="ERR_rowHeaders",e=g(t);e.length>0?this.errors.addOrReplace({id:i,type:"error",message:`row-headers: ${e.join("; ")}`}):this.errors.remove(i),this.updateGridConfig()}validateColumnHeaders(t){const i="ERR_columnHeaders",e=g(t);e.length>0?this.errors.addOrReplace({id:i,type:"error",message:`column-headers: ${e.join("; ")}`}):this.errors.remove(i),this.updateGridConfig()}validateCellHeight(t){this.resolvedHeight=this.validateChoice("cell-height","ERR_cellHeight",t,b,"auto")}validateCellWidth(t){this.resolvedWidth=this.validateChoice("cell-width","ERR_cellWidth",t,b,"auto")}validateCellVerticalAlign(t){this.resolvedVertical=this.validateChoice("cell-vertical-align","ERR_cellVerticalAlign",t,m,"top"),this.schedule()}validateCellHorizontalAlign(t){this.resolvedHorizontal=this.validateChoice("cell-horizontal-align","ERR_cellHorizontalAlign",t,w,"left"),this.schedule()}validateCellCaptions(t){const i=function(t){if(void 0===t||""===t.trim())return{};let i;try{i=JSON.parse(t)}catch(t){return}if("object"!=typeof i||null===i||Array.isArray(i))return;const e={};for(const[t,o]of Object.entries(i)){if("string"!=typeof o)return;""!==o&&(e[t]=o)}return e}(t);i?this.errors.remove("ERR_cellCaptions"):this.errors.addOrReplace({id:"ERR_cellCaptions",type:"error",message:"cell-captions: not a JSON object from slot name to text."}),this.captions=null!=i?i:{}}constructor(i){t(this,i),this.gridConfig={rows:[],columns:[]},this.resolvedHeight="auto",this.resolvedWidth="auto",this.resolvedVertical="top",this.resolvedHorizontal="left",this.captions={},this.offsets={},this.cellAttributes={},this.placed=[],this.frames=new Map,this.observed=new WeakSet,this.scheduled=!1,this.run=0,this.adjustments=0,this.chartTitle="",this.rowHeaders="[]",this.columnHeaders="[]",this.showRowHeaders=!0,this.showColumnHeaders=!0,this.showBorders=!0,this.rowHeaderWidth="auto",this.cellGap="0px",this.cellHeight="auto",this.cellWidth="auto",this.cellVerticalAlign="top",this.cellHorizontalAlign="left",this.cellCaptions="",this.schedule=()=>{if(!this.isBaselineMode())return this.run++,Object.keys(this.offsets).length>0&&(this.offsets={}),void this.applyFrameOffsets();this.scheduled||(this.scheduled=!0,this.holdStatus(new Promise((t=>{requestAnimationFrame((()=>{this.scheduled=!1,this.align().catch((t=>console.error("bn-grid: aligning the baselines failed",t))).finally(t)}))}))))},u(this),this.holdStatus=h(this),this.errors=c(this),this.componentStyle=v(this)}connectedCallback(){var t;this.observed=new WeakSet,this.resizeObserver=new ResizeObserver(this.schedule),this.mutationObserver=new MutationObserver((()=>{this.readCellAttributes(),this.checkCoveredSlots(),this.schedule()})),this.mutationObserver.observe(this.element,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot",...H]}),null===(t=document.fonts)||void 0===t||t.addEventListener("loadingdone",this.schedule),this.readCellAttributes()}disconnectedCallback(){var t,i,e;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(i=this.mutationObserver)||void 0===i||i.disconnect(),null===(e=document.fonts)||void 0===e||e.removeEventListener("loadingdone",this.schedule),this.run++}componentDidRender(){this.schedule()}validateChoice(t,i,e,o,s){return null==e||""===e?(this.errors.remove(i),s):o.includes(e)?(this.errors.remove(i),e):(this.errors.addOrReplace({id:i,type:"error",message:`${t}: "${e}" is not one of ${o.join(", ")}.`}),s)}readCellAttributes(){const t={},i=[];for(const e of Array.from(this.element.children)){const o=e.getAttribute("slot");if(null===o)continue;const s=t=>{const s=x(e.getAttribute(t));return void 0===s&&i.push(`${t} of slot "${o}"`),null!=s?s:1},n={rowSpan:s("row-span"),columnSpan:s("column-span")},l=e.getAttribute("cell-background");l&&(n.background=l),(n.rowSpan>1||n.columnSpan>1||n.background)&&(t[o]=n)}i.length>0?this.errors.addOrReplace({id:"ERR_cellSpan",type:"error",message:`${i.join(", ")}: not a whole number from 1.`}):this.errors.remove("ERR_cellSpan"),JSON.stringify(t)!==JSON.stringify(this.cellAttributes)&&(this.cellAttributes=t)}placeDataCells(){const{rows:t,columns:i}=this.gridConfig,e=(e,o)=>p(t[e],i[o]),{cells:o}=$(t.length,i.length,((t,i)=>this.cellAttributes[e(t,i)]));this.placed=o.map((t=>Object.assign(Object.assign({},t),{slot:e(t.row,t.column)}))),this.checkCoveredSlots()}checkCoveredSlots(){var t;const{rows:i,columns:e}=null!==(t=this.gridConfig)&&void 0!==t?t:{rows:[],columns:[]},o=(t,o)=>p(i[t],e[o]),{covered:s}=$(i.length,e.length,((t,i)=>this.cellAttributes[o(t,i)])),n=new Set(Array.from(this.element.children).map((t=>t.getAttribute("slot")))),l=s.filter((({row:t,column:i})=>n.has(o(t,i))));if(l.length>0){const t=l.map((({row:t,column:i,by:e})=>`"${o(t,i)}" (covered by "${o(e.row,e.column)}")`));this.errors.addOrReplace({id:"WARN_cellSpan",type:"warning",message:`a span covers the slot ${t.join(", ")}: its content is not shown.`})}else this.errors.remove("WARN_cellSpan")}isBaselineMode(){return"baseline"===this.resolvedVertical||"baseline"===this.resolvedHorizontal}contentIn(t){const i=Array.from(this.element.children).find((i=>i.getAttribute("slot")===t));if(!i)return{};const e=[i,...Array.from(i.querySelectorAll("*"))],o=e.find((t=>t.localName.startsWith("bn-")&&!R.has(t.localName)&&!O.has(t.localName))),s=o?e.find((t=>O.has(t.localName)&&t.contains(o))):void 0;return{visual:o,frame:s}}applyFrameOffsets(){this.frames.forEach(((t,i)=>{const e=this.offsets[i];Object.keys(j).forEach((i=>{const o=null==e?void 0:e[i];o?t.style.setProperty(j[i],`${o}px`):t.style.removeProperty(j[i])}))}))}async align(){var t;const i=++this.run;if(!this.element.isConnected||!this.isBaselineMode())return;const e=this.placed,o=e.map((({slot:t})=>this.contentIn(t))),s=o.map((t=>t.visual));if(await Promise.all(s.map((t=>{var i;return null===(i=null==t?void 0:t.componentOnReady)||void 0===i?void 0:i.call(t)}))),i!==this.run)return;s.forEach((t=>t&&this.observe(t)));const l=await Promise.all(s.map((t=>"function"==typeof(null==t?void 0:t.getBaseline)?t.getBaseline().catch((()=>({}))):Promise.resolve({}))));if(i!==this.run)return;const r=n(this.element),a=new Map;null===(t=this.element.shadowRoot)||void 0===t||t.querySelectorAll(".grid-slot").forEach((t=>{var i;a.set(null!==(i=t.getAttribute("data-slot"))&&void 0!==i?i:"",t)})),this.frames=new Map,o.forEach((({frame:t},i)=>t&&this.frames.set(e[i].slot,t)));const d=function(t,i,e){const o={};for(const i of t)o[i.slot]={};const s=(i,e,s,n,l)=>{var r,a;const d=new Map;for(const o of t)(null!==(r=o[e])&&void 0!==r?r:1)>1||d.set(o[i],[...null!==(a=d.get(o[i]))&&void 0!==a?a:[],o]);for(const t of d.values()){const i=t.map((t=>{const i=s(t);return void 0===i?void 0:i-n(t)})),e=i.filter((t=>void 0!==t)),r=e.length>0?Math.max(...e):0,a=i.map((t=>void 0===t?void 0:C(r-t))),d=Math.max(0,...a.filter((t=>void 0!==t)));t.forEach(((t,i)=>l(o[t.slot],a[i],d)))}};return i&&s("row","rowSpan",(t=>t.y),(t=>t.top),((t,i)=>{void 0===i?t.bottom=!0:t.top=i})),e&&s("column","columnSpan",(t=>t.x),(t=>t.left),((t,i,e)=>{void 0!==i&&(t.left=i);const o=C(e-(null!=i?i:0));o>0&&(t.right=o)})),o}(e.map((({slot:t,row:i,column:e,rowSpan:n,columnSpan:d},h)=>{const c=s[h],u=l[h],v=o[h].frame,f=null!=v?v:a.get(t),p=t=>parseFloat((null==f?void 0:f.style.getPropertyValue(t))||"0")||0,g={slot:t,row:i,column:e,rowSpan:n,columnSpan:d,top:p(v?j.top:"padding-top"),left:p(v?j.left:"margin-left")};if(c){const t=r.toLocal(c.getBoundingClientRect());void 0!==u.y&&(g.y=t.y+u.y),void 0!==u.x&&(g.x=t.x+u.x)}return g})),"baseline"===this.resolvedVertical,"baseline"===this.resolvedHorizontal);if(function(t,i){var e,o,s,n,l,r,a,d;const h=new Set([...Object.keys(t),...Object.keys(i)]);for(const c of h){const h=null!==(e=t[c])&&void 0!==e?e:{},u=null!==(o=i[c])&&void 0!==o?o:{};if(Boolean(h.bottom)!==Boolean(u.bottom))return!1;if(Math.abs((null!==(s=h.top)&&void 0!==s?s:0)-(null!==(n=u.top)&&void 0!==n?n:0))>=.5)return!1;if(Math.abs((null!==(l=h.left)&&void 0!==l?l:0)-(null!==(r=u.left)&&void 0!==r?r:0))>=.5)return!1;if(Math.abs((null!==(a=h.right)&&void 0!==a?a:0)-(null!==(d=u.right)&&void 0!==d?d:0))>=.5)return!1}return!0}(d,this.offsets))this.adjustments=0;else{if(this.adjustments>=5)return console.warn("bn-grid: the baselines did not settle; the cells keep their last alignment."),void(this.adjustments=0);this.adjustments++,this.offsets=d,this.applyFrameOffsets(),this.schedule()}}observe(t){var i;this.observed.has(t)||(this.observed.add(t),null===(i=this.resizeObserver)||void 0===i||i.observe(t));const e=t=>{var i;t&&(this.observed.has(t)||(this.observed.add(t),null===(i=this.mutationObserver)||void 0===i||i.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["x1","y1","x2","y2","x","y","width","height","transform","style","class"]})),t.querySelectorAll("*").forEach((t=>e(t.shadowRoot))))};e(t.shadowRoot)}async getLayoutState(t){var i,e,o,n;const h=null!==(i=null==t?void 0:t.detail)&&void 0!==i?i:"summary",c=l(this.element),u=this.componentStyle((t=>{var i;return(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333})),{rows:v,columns:f}=this.gridConfig,p={version:s,tag:this.element.localName,id:d(this.element),slot:null!==(e=this.element.getAttribute("slot"))&&void 0!==e?e:void 0,rect:a(this.element,c),em:{fontSizePx:u,appliedScaleFactor:1},regions:[],metadata:{title:this.chartTitle||void 0,rowCount:v.length,columnCount:f.length,cellCount:this.placed.length},diagnostics:r(this.element)},g=null===(o=this.element.shadowRoot)||void 0===o?void 0:o.querySelector(".grid-container");if(g&&p.regions.push({id:"grid",rect:a(g,c)}),"full"!==h||!g)return p;const b=[],m=t=>b.push(t),w=g.querySelector(".grid-title");return w&&m({kind:"gridTitle",label:(null===(n=w.textContent)||void 0===n?void 0:n.trim())||void 0,rect:a(w,c)}),g.querySelectorAll(".grid-header-col").forEach(((t,i)=>{var e,o;m({kind:"gridHeader",columnId:null===(e=f[i])||void 0===e?void 0:e.id,label:(null===(o=t.textContent)||void 0===o?void 0:o.trim())||void 0,rect:a(t,c)})})),g.querySelectorAll(".grid-header-row").forEach(((t,i)=>{var e,o;m({kind:"gridHeader",rowId:null===(e=v[i])||void 0===e?void 0:e.id,label:(null===(o=t.textContent)||void 0===o?void 0:o.trim())||void 0,rect:a(t,c)})})),g.querySelectorAll(".grid-cell").forEach(((t,i)=>{var e,o,s,n;const l=this.placed[i];m(Object.assign(Object.assign(Object.assign({kind:"gridCell",rowId:l?null===(e=v[l.row])||void 0===e?void 0:e.id:void 0,columnId:l?null===(o=f[l.column])||void 0===o?void 0:o.id:void 0,slot:null!==(n=null===(s=t.querySelector("slot"))||void 0===s?void 0:s.getAttribute("name"))&&void 0!==n?n:void 0},(null==l?void 0:l.rowSpan)>1?{rowSpan:l.rowSpan}:{}),(null==l?void 0:l.columnSpan)>1?{columnSpan:l.columnSpan}:{}),{rect:a(t,c)}))})),g.querySelectorAll(".grid-caption").forEach((t=>{var i,e,o,s;m({kind:"gridCaption",slot:null!==(o=null===(e=null===(i=t.parentElement)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.getAttribute("name"))&&void 0!==o?o:void 0,label:(null===(s=t.textContent)||void 0===s?void 0:s.trim())||void 0,rect:a(t,c)})})),p.elements=b,p}getGridStyle(){return this.componentStyle((t=>t["bn-grid"]))}componentWillLoad(){this.validateRowHeaders(this.rowHeaders),this.validateColumnHeaders(this.columnHeaders),this.validateCellHeight(this.cellHeight),this.validateCellWidth(this.cellWidth),this.validateCellVerticalAlign(this.cellVerticalAlign),this.validateCellHorizontalAlign(this.cellHorizontalAlign),this.validateCellCaptions(this.cellCaptions),this.readCellAttributes()}componentWillRender(){this.placeDataCells()}updateGridConfig(){var t;this.gridConfig=(t=this.columnHeaders,{rows:f(this.rowHeaders),columns:f(t)})}shouldShowRowHeaders(){return this.showRowHeaders&&this.gridConfig.rows.length>0}shouldShowColumnHeaders(){return this.showColumnHeaders&&this.gridConfig.columns.length>0}shouldShowBorders(){return this.showBorders}getGridTemplateColumns(){const t=[];this.shouldShowRowHeaders()&&t.push(this.rowHeaderWidth);const i=this.gridConfig.columns.length||1;for(let e=0;e<i;e++)t.push("equal"===this.resolvedWidth?"minmax(0, 1fr)":"auto");return t.join(" ")}getGridTemplateRows(){const t=[];this.chartTitle&&t.push("auto"),this.shouldShowColumnHeaders()&&t.push("auto");const i=this.gridConfig.rows.length||1;for(let e=0;e<i;e++)t.push("equal"===this.resolvedHeight?"1fr":"auto");return t.join(" ")}renderTitle(){if(!this.chartTitle)return null;const t=(this.shouldShowRowHeaders()?1:0)+this.gridConfig.columns.length;return i("div",{class:"grid-title",style:{"grid-column":`1 / span ${t}`,"grid-row":"1"}},this.chartTitle)}renderColumnHeaders(){if(!this.shouldShowColumnHeaders())return null;const t=this.getGridStyle(),e=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",o=this.shouldShowRowHeaders()?2:1,s=this.chartTitle?2:1;return this.gridConfig.columns.map(((n,l)=>{const r=l>0;return i("div",{key:`col-header-${n.id}`,class:"grid-header grid-header-col",style:{"grid-column":String(o+l),"grid-row":String(s),"border-left":r?e:"none",padding:`${t.cellPadding}px`,"padding-left":r?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},n.label)}))}renderDataCells(){const t=this.getGridStyle(),e=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",o=this.shouldShowRowHeaders()?2:1,s=(this.chartTitle?1:0)+(this.shouldShowColumnHeaders()?1:0)+1,n=[],l=(t,i)=>i>1?`${t} / span ${i}`:String(t);return this.gridConfig.rows.length>0&&this.gridConfig.columns.length>0&&this.gridConfig.rows.forEach(((r,a)=>{if(this.shouldShowRowHeaders()){const o=a>0;n.push(i("div",{key:`row-header-${r.id}`,class:"grid-header grid-header-row",style:{"grid-column":"1","grid-row":String(s+a),"border-top":o?e:"none",padding:`${t.cellPadding}px`,"padding-top":o?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},r.label))}this.placed.filter((t=>t.row===a)).forEach((({slot:r,column:d,rowSpan:h,columnSpan:c})=>{var u,v;const f=d>0,p=a>0,g=null!==(v=null===(u=this.cellAttributes[r])||void 0===u?void 0:u.background)&&void 0!==v?v:t.cellBackground&&"transparent"!==t.cellBackground?t.cellBackground:void 0;n.push(i("div",{key:`cell-${r}`,class:"grid-cell","data-bn-fit-content":"",style:Object.assign(Object.assign({"grid-column":l(o+d,c),"grid-row":l(s+a,h),"border-left":f?e:"none","border-top":p?e:"none","padding-left":f?`${t.cellPadding+4}px`:"0","padding-top":p?`${t.cellPadding+4}px`:"0"},this.cellAlignStyle()),g?{"background-color":g}:{})},this.renderCellContent(r,t)))}))})),n}cellAlignStyle(){return"top"===this.resolvedVertical&&"left"===this.resolvedHorizontal?{}:{display:"flex","flex-direction":"column","justify-content":y[this.resolvedVertical],"align-items":S[this.resolvedHorizontal]}}renderCellContent(t,e){var o;const s=this.captions[t],n=void 0!==s?i("div",{class:"grid-caption",style:{"font-size":`${e.captionFontSize}px`,"font-weight":String(e.captionFontWeight),color:e.captionColor,"margin-bottom":`${e.captionGap}px`,"align-self":"flex-start"}},s):null,l={};"top"===this.resolvedVertical&&"left"===this.resolvedHorizontal||(l["align-self"]="stretch","center"!==this.resolvedHorizontal&&"right"!==this.resolvedHorizontal||(l.display="flex",l["flex-direction"]="column",l["align-items"]=S[this.resolvedHorizontal])),"center"===this.resolvedVertical?(l["margin-top"]="auto",l["margin-bottom"]="auto"):"bottom"===this.resolvedVertical&&(l["margin-top"]="auto");const r=this.frames.has(t)?{bottom:null===(o=this.offsets[t])||void 0===o?void 0:o.bottom}:this.offsets[t];return(null==r?void 0:r.bottom)&&(l["margin-top"]="auto"),(null==r?void 0:r.top)&&(l["padding-top"]=`${r.top}px`),(null==r?void 0:r.left)&&(l["margin-left"]=`${r.left}px`),(null==r?void 0:r.right)&&(l["margin-right"]=`${r.right}px`),[n,i("div",{class:"grid-slot","data-slot":t,style:l},i("slot",{name:t}))]}getFontStyles(){return this.componentStyle((t=>{var i,e,o,s;return{"--bn-font-family":(null===(i=t.global)||void 0===i?void 0:i.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(e=t.global)||void 0===e?void 0:e.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(s=t.global)||void 0===s?void 0:s.fontBackgroundColor)||"#ffffff"}}))}render(){const t="equal"===this.resolvedWidth,o=Object.assign(Object.assign({display:t?"grid":"inline-grid"},t?{width:"100%"}:{}),{"grid-template-columns":this.getGridTemplateColumns(),"grid-template-rows":this.getGridTemplateRows(),gap:this.cellGap});return i(e,{key:"97d858fb6f5704dfd46638c8e5c6a74927e702e0",style:t?Object.assign(Object.assign({},this.getFontStyles()),{display:"block"}):this.getFontStyles()},i("div",{key:"1e218eac5865574fcb4572d1aaea60f1d87d8948",class:"grid-container",style:o},this.renderTitle(),this.renderColumnHeaders(),this.renderDataCells()),i("slot",{key:"aabefa01213c69c0303f1df06f5575973253677e"}))}get element(){return o(this)}static get watchers(){return{rowHeaders:[{validateRowHeaders:0}],columnHeaders:[{validateColumnHeaders:0}],cellHeight:[{validateCellHeight:0}],cellWidth:[{validateCellWidth:0}],cellVerticalAlign:[{validateCellVerticalAlign:0}],cellHorizontalAlign:[{validateCellHorizontalAlign:0}],cellCaptions:[{validateCellCaptions:0}]}}};k.style=':host{display:inline-block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.grid-container{display:inline-grid;box-sizing:border-box}.grid-title{font-weight:normal;padding-bottom:8px}.grid-header{display:flex;align-items:flex-end;box-sizing:border-box}.grid-header-row{justify-content:flex-end;padding-right:8px}.grid-header-col{white-space:nowrap;justify-content:flex-start}.grid-cell{position:relative;box-sizing:border-box}';export{k as bn_grid}
|
|
1
|
+
import{r as t,h as i,a as e,g as o}from"./p-GstO_GU5.js";import{L as s}from"./p-DY5fMUX8.js";import{l as n,o as l,r,m as a,a as d}from"./p-Dvlw60RF.js";import{w as h,a as c}from"./p-7pLJBHT2.js";import{w as u,a as v}from"./p-BFl7OwcC.js";function f(t){if(!t||""===t.trim()||"[]"===t)return[];try{const i=JSON.parse(t);return Array.isArray(i)?i.map(((t,i)=>{var e,o,s;return"string"==typeof t?{label:t,id:String(i)}:"object"==typeof t&&null!==t?{label:null!==(o=null!==(e=t.label)&&void 0!==e?e:t.name)&&void 0!==o?o:String(i),id:null!==(s=t.id)&&void 0!==s?s:String(i)}:{label:String(t),id:String(i)}})):[]}catch(t){return console.error("parseHeaders: failed to parse JSON",t),[]}}function p(t,i){return`${t.id}-${i.id}`}function g(t){if(!t||""===t.trim()||"[]"===t)return[];try{const i=JSON.parse(t);if(!Array.isArray(i))return["Headers must be an array"];const e=[],o=new Set;return i.forEach(((t,i)=>{"object"==typeof t&&null!==t&&void 0!==t.id&&("string"!=typeof t.id?e.push(`Header[${i}]: 'id' must be a string`):o.has(t.id)?e.push(`Header[${i}]: duplicate id '${t.id}'`):o.add(t.id),void 0!==t.label&&"string"!=typeof t.label&&e.push(`Header[${i}]: 'label' must be a string`))})),e}catch(t){return console.error("validateHeadersJson: failed to parse JSON",t),["Invalid JSON structure"]}}const b=["auto","equal"],m=["top","center","bottom","baseline"],w=["left","center","right","baseline"],y={top:"flex-start",center:"center",bottom:"flex-end",baseline:"flex-start"},S={left:"stretch",center:"center",right:"flex-end",baseline:"stretch"};function x(t){if(null===t||""===t.trim())return 1;const i=Number(t);return Number.isInteger(i)&&i>=1?i:void 0}function $(t,i,e){var o,s;const n=Array.from({length:t},(()=>Array(i))),l=[],r=[];for(let a=0;a<t;a++)for(let d=0;d<i;d++){const h=n[a][d];if(h){r.push({row:a,column:d,by:h});continue}const c=e(a,d),u=Math.min(null!==(o=null==c?void 0:c.rowSpan)&&void 0!==o?o:1,t-a);let v=1;const f=Math.min(null!==(s=null==c?void 0:c.columnSpan)&&void 0!==s?s:1,i-d);for(;v<f&&!n[a][d+v];)v++;const p={row:a,column:d,rowSpan:u,columnSpan:v};for(let t=a;t<a+u;t++)for(let i=d;i<d+v;i++)n[t][i]=p;l.push(p)}return{cells:l,covered:r}}const C=t=>Math.round(100*t)/100,O=new Set(["bn-asset","bn-component-style","bn-dataset","bn-datasource","bn-internationalization","bn-ruleset","bn-scaling-group"]),R=new Set(["bn-layout-card"]),j={top:"--bn-baseline-offset-top",left:"--bn-baseline-offset-left",right:"--bn-baseline-offset-right"},H=["row-span","column-span","cell-background"],k=class{validateRowHeaders(t){const i="ERR_rowHeaders",e=g(t);e.length>0?this.errors.addOrReplace({id:i,type:"error",message:`row-headers: ${e.join("; ")}`}):this.errors.remove(i),this.updateGridConfig()}validateColumnHeaders(t){const i="ERR_columnHeaders",e=g(t);e.length>0?this.errors.addOrReplace({id:i,type:"error",message:`column-headers: ${e.join("; ")}`}):this.errors.remove(i),this.updateGridConfig()}validateCellHeight(t){this.resolvedHeight=this.validateChoice("cell-height","ERR_cellHeight",t,b,"auto")}validateCellWidth(t){this.resolvedWidth=this.validateChoice("cell-width","ERR_cellWidth",t,b,"auto")}validateCellVerticalAlign(t){this.resolvedVertical=this.validateChoice("cell-vertical-align","ERR_cellVerticalAlign",t,m,"top"),this.schedule()}validateCellHorizontalAlign(t){this.resolvedHorizontal=this.validateChoice("cell-horizontal-align","ERR_cellHorizontalAlign",t,w,"left"),this.schedule()}validateCellCaptions(t){const i=function(t){if(void 0===t||""===t.trim())return{};let i;try{i=JSON.parse(t)}catch(t){return}if("object"!=typeof i||null===i||Array.isArray(i))return;const e={};for(const[t,o]of Object.entries(i)){if("string"!=typeof o)return;""!==o&&(e[t]=o)}return e}(t);i?this.errors.remove("ERR_cellCaptions"):this.errors.addOrReplace({id:"ERR_cellCaptions",type:"error",message:"cell-captions: not a JSON object from slot name to text."}),this.captions=null!=i?i:{}}constructor(i){t(this,i),this.gridConfig={rows:[],columns:[]},this.resolvedHeight="auto",this.resolvedWidth="auto",this.resolvedVertical="top",this.resolvedHorizontal="left",this.captions={},this.offsets={},this.cellAttributes={},this.placed=[],this.frames=new Map,this.observed=new WeakSet,this.scheduled=!1,this.run=0,this.adjustments=0,this.chartTitle="",this.rowHeaders="[]",this.columnHeaders="[]",this.showRowHeaders=!0,this.showColumnHeaders=!0,this.showBorders=!0,this.rowHeaderWidth="auto",this.cellGap="0px",this.cellHeight="auto",this.cellWidth="auto",this.cellVerticalAlign="top",this.cellHorizontalAlign="left",this.cellCaptions="",this.schedule=()=>{if(!this.isBaselineMode())return this.run++,Object.keys(this.offsets).length>0&&(this.offsets={}),void this.applyFrameOffsets();this.scheduled||(this.scheduled=!0,this.holdStatus(new Promise((t=>{requestAnimationFrame((()=>{this.scheduled=!1,this.align().catch((t=>console.error("bn-grid: aligning the baselines failed",t))).finally(t)}))}))))},u(this),this.holdStatus=h(this),this.errors=c(this),this.componentStyle=v(this)}connectedCallback(){var t;this.observed=new WeakSet,this.resizeObserver=new ResizeObserver(this.schedule),this.mutationObserver=new MutationObserver((()=>{this.readCellAttributes(),this.checkCoveredSlots(),this.schedule()})),this.mutationObserver.observe(this.element,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot",...H]}),null===(t=document.fonts)||void 0===t||t.addEventListener("loadingdone",this.schedule),this.readCellAttributes()}disconnectedCallback(){var t,i,e;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(i=this.mutationObserver)||void 0===i||i.disconnect(),null===(e=document.fonts)||void 0===e||e.removeEventListener("loadingdone",this.schedule),this.run++}componentDidRender(){this.schedule()}validateChoice(t,i,e,o,s){return null==e||""===e?(this.errors.remove(i),s):o.includes(e)?(this.errors.remove(i),e):(this.errors.addOrReplace({id:i,type:"error",message:`${t}: "${e}" is not one of ${o.join(", ")}.`}),s)}readCellAttributes(){const t={},i=[];for(const e of Array.from(this.element.children)){const o=e.getAttribute("slot");if(null===o)continue;const s=t=>{const s=x(e.getAttribute(t));return void 0===s&&i.push(`${t} of slot "${o}"`),null!=s?s:1},n={rowSpan:s("row-span"),columnSpan:s("column-span")},l=e.getAttribute("cell-background");l&&(n.background=l),(n.rowSpan>1||n.columnSpan>1||n.background)&&(t[o]=n)}i.length>0?this.errors.addOrReplace({id:"ERR_cellSpan",type:"error",message:`${i.join(", ")}: not a whole number from 1.`}):this.errors.remove("ERR_cellSpan"),JSON.stringify(t)!==JSON.stringify(this.cellAttributes)&&(this.cellAttributes=t)}placeDataCells(){const{rows:t,columns:i}=this.gridConfig,e=(e,o)=>p(t[e],i[o]),{cells:o}=$(t.length,i.length,((t,i)=>this.cellAttributes[e(t,i)]));this.placed=o.map((t=>Object.assign(Object.assign({},t),{slot:e(t.row,t.column)}))),this.checkCoveredSlots()}checkCoveredSlots(){var t;const{rows:i,columns:e}=null!==(t=this.gridConfig)&&void 0!==t?t:{rows:[],columns:[]},o=(t,o)=>p(i[t],e[o]),{covered:s}=$(i.length,e.length,((t,i)=>this.cellAttributes[o(t,i)])),n=new Set(Array.from(this.element.children).map((t=>t.getAttribute("slot")))),l=s.filter((({row:t,column:i})=>n.has(o(t,i))));if(l.length>0){const t=l.map((({row:t,column:i,by:e})=>`"${o(t,i)}" (covered by "${o(e.row,e.column)}")`));this.errors.addOrReplace({id:"WARN_cellSpan",type:"warning",message:`a span covers the slot ${t.join(", ")}: its content is not shown.`})}else this.errors.remove("WARN_cellSpan")}isBaselineMode(){return"baseline"===this.resolvedVertical||"baseline"===this.resolvedHorizontal}contentIn(t){const i=Array.from(this.element.children).find((i=>i.getAttribute("slot")===t));if(!i)return{};const e=[i,...Array.from(i.querySelectorAll("*"))],o=e.find((t=>t.localName.startsWith("bn-")&&!O.has(t.localName)&&!R.has(t.localName))),s=o?e.find((t=>R.has(t.localName)&&t.contains(o))):void 0;return{visual:o,frame:s}}applyFrameOffsets(){this.frames.forEach(((t,i)=>{const e=this.offsets[i];Object.keys(j).forEach((i=>{const o=null==e?void 0:e[i];o?t.style.setProperty(j[i],`${o}px`):t.style.removeProperty(j[i])}))}))}async align(){var t;const i=++this.run;if(!this.element.isConnected||!this.isBaselineMode())return;const e=this.placed,o=e.map((({slot:t})=>this.contentIn(t))),s=o.map((t=>t.visual));if(await Promise.all(s.map((t=>{var i;return null===(i=null==t?void 0:t.componentOnReady)||void 0===i?void 0:i.call(t)}))),i!==this.run)return;s.forEach((t=>t&&this.observe(t)));const l=await Promise.all(s.map((t=>"function"==typeof(null==t?void 0:t.getBaseline)?t.getBaseline().catch((()=>({}))):Promise.resolve({}))));if(i!==this.run)return;const r=n(this.element),a=new Map;null===(t=this.element.shadowRoot)||void 0===t||t.querySelectorAll(".grid-slot").forEach((t=>{var i;a.set(null!==(i=t.getAttribute("data-slot"))&&void 0!==i?i:"",t)})),this.frames=new Map,o.forEach((({frame:t},i)=>t&&this.frames.set(e[i].slot,t)));const d=function(t,i,e){const o={};for(const i of t)o[i.slot]={};const s=(i,e,s,n,l)=>{var r,a;const d=new Map;for(const o of t)(null!==(r=o[e])&&void 0!==r?r:1)>1||d.set(o[i],[...null!==(a=d.get(o[i]))&&void 0!==a?a:[],o]);for(const t of d.values()){const i=t.map((t=>{const i=s(t);return void 0===i?void 0:i-n(t)})),e=i.filter((t=>void 0!==t)),r=e.length>0?Math.max(...e):0,a=i.map((t=>void 0===t?void 0:C(r-t))),d=Math.max(0,...a.filter((t=>void 0!==t)));t.forEach(((t,i)=>l(o[t.slot],a[i],d)))}};return i&&s("row","rowSpan",(t=>t.y),(t=>t.top),((t,i)=>{void 0===i?t.bottom=!0:t.top=i})),e&&s("column","columnSpan",(t=>t.x),(t=>t.left),((t,i,e)=>{void 0!==i&&(t.left=i);const o=C(e-(null!=i?i:0));o>0&&(t.right=o)})),o}(e.map((({slot:t,row:i,column:e,rowSpan:n,columnSpan:d},h)=>{const c=s[h],u=l[h],v=o[h].frame,f=null!=v?v:a.get(t),p=t=>parseFloat((null==f?void 0:f.style.getPropertyValue(t))||"0")||0,g={slot:t,row:i,column:e,rowSpan:n,columnSpan:d,top:p(v?j.top:"padding-top"),left:p(v?j.left:"margin-left")};if(c){const t=r.toLocal(c.getBoundingClientRect());void 0!==u.y&&(g.y=t.y+u.y),void 0!==u.x&&(g.x=t.x+u.x)}return g})),"baseline"===this.resolvedVertical,"baseline"===this.resolvedHorizontal);if(function(t,i){var e,o,s,n,l,r,a,d;const h=new Set([...Object.keys(t),...Object.keys(i)]);for(const c of h){const h=null!==(e=t[c])&&void 0!==e?e:{},u=null!==(o=i[c])&&void 0!==o?o:{};if(Boolean(h.bottom)!==Boolean(u.bottom))return!1;if(Math.abs((null!==(s=h.top)&&void 0!==s?s:0)-(null!==(n=u.top)&&void 0!==n?n:0))>=.5)return!1;if(Math.abs((null!==(l=h.left)&&void 0!==l?l:0)-(null!==(r=u.left)&&void 0!==r?r:0))>=.5)return!1;if(Math.abs((null!==(a=h.right)&&void 0!==a?a:0)-(null!==(d=u.right)&&void 0!==d?d:0))>=.5)return!1}return!0}(d,this.offsets))this.adjustments=0;else{if(this.adjustments>=5)return console.warn("bn-grid: the baselines did not settle; the cells keep their last alignment."),void(this.adjustments=0);this.adjustments++,this.offsets=d,this.applyFrameOffsets(),this.schedule()}}observe(t){var i;this.observed.has(t)||(this.observed.add(t),null===(i=this.resizeObserver)||void 0===i||i.observe(t));const e=t=>{var i;t&&(this.observed.has(t)||(this.observed.add(t),null===(i=this.mutationObserver)||void 0===i||i.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["x1","y1","x2","y2","x","y","width","height","transform","style","class"]})),t.querySelectorAll("*").forEach((t=>e(t.shadowRoot))))};e(t.shadowRoot)}async getLayoutState(t){var i,e,o,n;const h=null!==(i=null==t?void 0:t.detail)&&void 0!==i?i:"summary",c=l(this.element),u=this.componentStyle((t=>{var i;return(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333})),{rows:v,columns:f}=this.gridConfig,p={version:s,tag:this.element.localName,id:d(this.element),slot:null!==(e=this.element.getAttribute("slot"))&&void 0!==e?e:void 0,rect:a(this.element,c),em:{fontSizePx:u,appliedScaleFactor:1},regions:[],metadata:{title:this.chartTitle||void 0,rowCount:v.length,columnCount:f.length,cellCount:this.placed.length},diagnostics:r(this.element)},g=null===(o=this.element.shadowRoot)||void 0===o?void 0:o.querySelector(".grid-container");if(g&&p.regions.push({id:"grid",rect:a(g,c)}),"full"!==h||!g)return p;const b=[],m=t=>b.push(t),w=g.querySelector(".grid-title");return w&&m({kind:"gridTitle",label:(null===(n=w.textContent)||void 0===n?void 0:n.trim())||void 0,rect:a(w,c)}),g.querySelectorAll(".grid-header-col").forEach(((t,i)=>{var e,o;m({kind:"gridHeader",columnId:null===(e=f[i])||void 0===e?void 0:e.id,label:(null===(o=t.textContent)||void 0===o?void 0:o.trim())||void 0,rect:a(t,c)})})),g.querySelectorAll(".grid-header-row").forEach(((t,i)=>{var e,o;m({kind:"gridHeader",rowId:null===(e=v[i])||void 0===e?void 0:e.id,label:(null===(o=t.textContent)||void 0===o?void 0:o.trim())||void 0,rect:a(t,c)})})),g.querySelectorAll(".grid-cell").forEach(((t,i)=>{var e,o,s,n;const l=this.placed[i];m(Object.assign(Object.assign(Object.assign({kind:"gridCell",rowId:l?null===(e=v[l.row])||void 0===e?void 0:e.id:void 0,columnId:l?null===(o=f[l.column])||void 0===o?void 0:o.id:void 0,slot:null!==(n=null===(s=t.querySelector("slot"))||void 0===s?void 0:s.getAttribute("name"))&&void 0!==n?n:void 0},(null==l?void 0:l.rowSpan)>1?{rowSpan:l.rowSpan}:{}),(null==l?void 0:l.columnSpan)>1?{columnSpan:l.columnSpan}:{}),{rect:a(t,c)}))})),g.querySelectorAll(".grid-caption").forEach((t=>{var i,e,o,s;m({kind:"gridCaption",slot:null!==(o=null===(e=null===(i=t.parentElement)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.getAttribute("name"))&&void 0!==o?o:void 0,label:(null===(s=t.textContent)||void 0===s?void 0:s.trim())||void 0,rect:a(t,c)})})),p.elements=b,p}getGridStyle(){return this.componentStyle((t=>t["bn-grid"]))}componentWillLoad(){this.validateRowHeaders(this.rowHeaders),this.validateColumnHeaders(this.columnHeaders),this.validateCellHeight(this.cellHeight),this.validateCellWidth(this.cellWidth),this.validateCellVerticalAlign(this.cellVerticalAlign),this.validateCellHorizontalAlign(this.cellHorizontalAlign),this.validateCellCaptions(this.cellCaptions),this.readCellAttributes()}componentWillRender(){this.placeDataCells()}updateGridConfig(){var t;this.gridConfig=(t=this.columnHeaders,{rows:f(this.rowHeaders),columns:f(t)})}shouldShowRowHeaders(){return this.showRowHeaders&&this.gridConfig.rows.length>0}shouldShowColumnHeaders(){return this.showColumnHeaders&&this.gridConfig.columns.length>0}shouldShowBorders(){return this.showBorders}getGridTemplateColumns(){const t=[];this.shouldShowRowHeaders()&&t.push(this.rowHeaderWidth);const i=this.gridConfig.columns.length||1;for(let e=0;e<i;e++)t.push("equal"===this.resolvedWidth?"minmax(0, 1fr)":"auto");return t.join(" ")}getGridTemplateRows(){const t=[];this.chartTitle&&t.push("auto"),this.shouldShowColumnHeaders()&&t.push("auto");const i=this.gridConfig.rows.length||1;for(let e=0;e<i;e++)t.push("equal"===this.resolvedHeight?"1fr":"auto");return t.join(" ")}renderTitle(){if(!this.chartTitle)return null;const t=(this.shouldShowRowHeaders()?1:0)+this.gridConfig.columns.length;return i("div",{class:"grid-title",style:{"grid-column":`1 / span ${t}`,"grid-row":"1"}},this.chartTitle)}renderColumnHeaders(){if(!this.shouldShowColumnHeaders())return null;const t=this.getGridStyle(),e=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",o=this.shouldShowRowHeaders()?2:1,s=this.chartTitle?2:1;return this.gridConfig.columns.map(((n,l)=>{const r=l>0;return i("div",{key:`col-header-${n.id}`,class:"grid-header grid-header-col",style:{"grid-column":String(o+l),"grid-row":String(s),"border-left":r?e:"none",padding:`${t.cellPadding}px`,"padding-left":r?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},n.label)}))}renderDataCells(){const t=this.getGridStyle(),e=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",o=this.shouldShowRowHeaders()?2:1,s=(this.chartTitle?1:0)+(this.shouldShowColumnHeaders()?1:0)+1,n=[],l=(t,i)=>i>1?`${t} / span ${i}`:String(t);return this.gridConfig.rows.length>0&&this.gridConfig.columns.length>0&&this.gridConfig.rows.forEach(((r,a)=>{if(this.shouldShowRowHeaders()){const o=a>0;n.push(i("div",{key:`row-header-${r.id}`,class:"grid-header grid-header-row",style:{"grid-column":"1","grid-row":String(s+a),"border-top":o?e:"none",padding:`${t.cellPadding}px`,"padding-top":o?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},r.label))}this.placed.filter((t=>t.row===a)).forEach((({slot:r,column:d,rowSpan:h,columnSpan:c})=>{var u,v;const f=d>0,p=a>0,g=null!==(v=null===(u=this.cellAttributes[r])||void 0===u?void 0:u.background)&&void 0!==v?v:t.cellBackground&&"transparent"!==t.cellBackground?t.cellBackground:void 0;n.push(i("div",{key:`cell-${r}`,class:"grid-cell","data-bn-fit-content":"",style:Object.assign(Object.assign({"grid-column":l(o+d,c),"grid-row":l(s+a,h),"border-left":f?e:"none","border-top":p?e:"none","padding-left":f?`${t.cellPadding+4}px`:"0","padding-top":p?`${t.cellPadding+4}px`:"0"},this.cellAlignStyle()),g?{"background-color":g}:{})},this.renderCellContent(r,t)))}))})),n}cellAlignStyle(){return"top"===this.resolvedVertical&&"left"===this.resolvedHorizontal?{}:{display:"flex","flex-direction":"column","justify-content":y[this.resolvedVertical],"align-items":S[this.resolvedHorizontal]}}renderCellContent(t,e){var o;const s=this.captions[t],n=void 0!==s?i("div",{class:"grid-caption",style:{"font-size":`${e.captionFontSize}px`,"font-weight":String(e.captionFontWeight),color:e.captionColor,"margin-bottom":`${e.captionGap}px`,"align-self":"flex-start"}},s):null,l={};"top"===this.resolvedVertical&&"left"===this.resolvedHorizontal||(l["align-self"]="stretch","center"!==this.resolvedHorizontal&&"right"!==this.resolvedHorizontal||(l.display="flex",l["flex-direction"]="column",l["align-items"]=S[this.resolvedHorizontal])),"center"===this.resolvedVertical?(l["margin-top"]="auto",l["margin-bottom"]="auto"):"bottom"===this.resolvedVertical&&(l["margin-top"]="auto");const r=this.frames.has(t)?{bottom:null===(o=this.offsets[t])||void 0===o?void 0:o.bottom}:this.offsets[t];return(null==r?void 0:r.bottom)&&(l["margin-top"]="auto"),(null==r?void 0:r.top)&&(l["padding-top"]=`${r.top}px`),(null==r?void 0:r.left)&&(l["margin-left"]=`${r.left}px`),(null==r?void 0:r.right)&&(l["margin-right"]=`${r.right}px`),[n,i("div",{class:"grid-slot","data-slot":t,style:l},i("slot",{name:t}))]}getFontStyles(){return this.componentStyle((t=>{var i,e,o,s;return{"--bn-font-family":(null===(i=t.global)||void 0===i?void 0:i.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(e=t.global)||void 0===e?void 0:e.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(s=t.global)||void 0===s?void 0:s.fontBackgroundColor)||"#ffffff"}}))}render(){const t="equal"===this.resolvedWidth,o=Object.assign(Object.assign({display:t?"grid":"inline-grid"},t?{width:"100%"}:{}),{"grid-template-columns":this.getGridTemplateColumns(),"grid-template-rows":this.getGridTemplateRows(),gap:this.cellGap});return i(e,{key:"97d858fb6f5704dfd46638c8e5c6a74927e702e0",style:t?Object.assign(Object.assign({},this.getFontStyles()),{display:"block"}):this.getFontStyles()},i("div",{key:"1e218eac5865574fcb4572d1aaea60f1d87d8948",class:"grid-container",style:o},this.renderTitle(),this.renderColumnHeaders(),this.renderDataCells()),i("slot",{key:"aabefa01213c69c0303f1df06f5575973253677e"}))}get element(){return o(this)}static get watchers(){return{rowHeaders:[{validateRowHeaders:0}],columnHeaders:[{validateColumnHeaders:0}],cellHeight:[{validateCellHeight:0}],cellWidth:[{validateCellWidth:0}],cellVerticalAlign:[{validateCellVerticalAlign:0}],cellHorizontalAlign:[{validateCellHorizontalAlign:0}],cellCaptions:[{validateCellCaptions:0}]}}};k.style=':host{display:inline-block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.grid-container{display:inline-grid;box-sizing:border-box}.grid-title{font-weight:normal;padding-bottom:8px}.grid-header{display:flex;align-items:flex-end;box-sizing:border-box}.grid-header-row{justify-content:flex-end;padding-right:8px}.grid-header-col{white-space:nowrap;justify-content:flex-start}.grid-cell{position:relative;box-sizing:border-box}';export{k as bn_grid}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,f as n,h as i,a as o,g as s}from"./p-GstO_GU5.js";import{w as e,a,g as l,p as r,s as d}from"./p-
|
|
1
|
+
import{r as t,f as n,h as i,a as o,g as s}from"./p-GstO_GU5.js";import{w as e,a,g as l,p as r,s as d}from"./p-Bxa4pX1M.js";import{w as c,a as u}from"./p-7pLJBHT2.js";import{w as f,a as v}from"./p-BFl7OwcC.js";const h="[A-Za-z_$\\u00C0-\\uFFFF][\\w$\\u00C0-\\uFFFF]*",p="'[^'\\\\]*'|\"[^\"\\\\]*\"",g=`(?:this\\.)?data(?:\\.(${h})|\\[\\s*(${p})\\s*\\])\\[\\s*(\\d+)\\s*\\]\\.(${h})`,b=new RegExp(`\\$\\{\\s*(?:${g}|t\\(\\s*(${p})\\s*(?:,\\s*\\{([^{}]*)\\}\\s*)?\\))\\s*\\}`,"g"),m=new RegExp(`\\s*(?:(${h})|(${p}))\\s*:\\s*(?:(${p})|(-?\\d+(?:\\.\\d+)?)|(${g}))\\s*(?:,|$)`,"y"),$=t=>String(t).replace(/[&<>"'\t\n\f\r ]/g,(t=>`&#${t.charCodeAt(0)};`)),w=(t,n)=>"object"==typeof t&&null!==t&&Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0,y=t=>t.slice(1,-1);const _=class{constructor(i){t(this,i),this.refit=()=>{n(this)},this.data={},f(this),c(this),this.errors=u(this),this.t=e(this).t,a(this,((t,n)=>{this.data=""===t?{}:Object.assign(Object.assign({},this.data),{[t]:n})})),this.componentStyle=v(this)}connectedCallback(){var t;null===(t=document.fonts)||void 0===t||t.addEventListener("loadingdone",this.refit)}disconnectedCallback(){var t;null===(t=document.fonts)||void 0===t||t.removeEventListener("loadingdone",this.refit)}validateValue(t){"string"!=typeof t||""===t?this.errors.addOrReplace({id:"WARN_value",type:"warning",message:"Empty value"}):this.errors.remove("WARN_value")}validateScaling(t){if(null==t||""===t||"none"===t||"auto"===t)return void this.errors.remove("WARN_scale");const n=Number(t);isNaN(n)||n<=0?this.errors.addOrReplace({id:"WARN_scale",type:"warning",message:`Invalid scale value: "${t}". Use "none", "auto", or a positive number.`}):this.errors.remove("WARN_scale")}componentWillLoad(){this.validateValue(this.value),this.validateScaling(this.scale)}prepareStyle(){return this.componentStyle((t=>{var n,i,o,s,e,a,l,r,d,c,u,f,v,h,p,g,b,m,$,w,y,_;return{fontStyles:{font:`${null!==(s=null!==(i=null===(n=t["bn-text"])||void 0===n?void 0:n.fontSizePx)&&void 0!==i?i:null===(o=t.global)||void 0===o?void 0:o.fontSizePx)&&void 0!==s?s:13.3333}px ${null!==(r=null!==(a=null===(e=t["bn-text"])||void 0===e?void 0:e.fontFamily)&&void 0!==a?a:null===(l=t.global)||void 0===l?void 0:l.fontFamily)&&void 0!==r?r:"'Noto Sans', sans-serif"}`,size:null!==(f=null!==(c=null===(d=t["bn-text"])||void 0===d?void 0:d.fontSizePx)&&void 0!==c?c:null===(u=t.global)||void 0===u?void 0:u.fontSizePx)&&void 0!==f?f:13.3333,color:null!==(g=null!==(h=null===(v=t["bn-text"])||void 0===v?void 0:v.fontColor)&&void 0!==h?h:null===(p=t.global)||void 0===p?void 0:p.fontColor)&&void 0!==g?g:"#000000",background:null!==(w=null!==(m=null===(b=t["bn-text"])||void 0===b?void 0:b.fontBackgroundColor)&&void 0!==m?m:null===($=t.global)||void 0===$?void 0:$.fontBackgroundColor)&&void 0!==w?w:"#ffffff",leading:null!==(_=null===(y=t["bn-text"])||void 0===y?void 0:y.leading)&&void 0!==_?_:1.8}}}))}applyScaling(t){const n=this.element,{mode:i,factor:o}=r(this.scale),{width:s,height:e}=l(n),a=n.scrollHeight>n.clientHeight+1?n.clientHeight:e,d=s,c=d>0&&n.scrollWidth>d+1,u=a>0&&n.scrollHeight>a+1,f=c||u;if(d<=0&&a<=0)return;if("none"===i){if(f){const t=[];c&&t.push(`w:${n.scrollWidth}>${Math.round(d)}`),u&&t.push(`h:${n.scrollHeight}>${Math.round(a)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows container (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}if("factor"===i){if(f){const t=[];c&&t.push(`w:${n.scrollWidth}>${Math.round(d)}`),u&&t.push(`h:${n.scrollHeight}>${Math.round(a)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows with factor ${o} (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}n.style.setProperty("--bn-font-size",`${t}px`);const v=n.scrollWidth,h=n.scrollHeight,p=n.clientHeight,g=h>p+1?p:e,b=d<=0||v<=d+1,m=g<=0||h<=g+1;if(b&&m)return void this.errors.remove("AUTO_scale");const $=Math.min(1,!b&&d>0?d/v:1,!m&&g>0?g/h:1);n.style.setProperty("--bn-font-size",t*$+"px"),"empty"===i?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:`Auto-scaled font by factor ${$.toFixed(3)}`}):this.errors.remove("AUTO_scale")}componentDidRender(){var t;const{html:n,unknown:i}=function(t,n,i){const o=[],s=t=>{o.includes(t)||o.push(t)},e=(t,i,o,e,a)=>{const l=w(w(w(n,null!=i?i:y(o)),String(Number(e))),a);return void 0===l&&s(t),l};return{html:t.replace(b,((t,n,o,a,l,r,d)=>{const c=t.slice(2,-1).trim();try{if(void 0===r){const t=e(c,n,o,a,l);return null==t?"":$(t)}const s=void 0===d?void 0:(t=>{const n={};for(m.lastIndex=0;""!==t.slice(m.lastIndex).trim();){const i=m.exec(t);if(!i)return null;const[,o,s,a,l,r,d,c,u,f]=i;n[null!=o?o:y(s)]=void 0!==a?y(a):void 0!==l?Number(l):e(r,d,c,u,f)}return n})(d);return null===s?t:$(i(y(r),s))}catch(t){return s(c),""}})),unknown:o}}(null!==(t=this.value)&&void 0!==t?t:"",this.data,this.t);i.length>0?this.errors.addOrReplace({id:"WARN_value_path",type:"warning",message:`Unknown template path: ${i.join(", ")}`}):this.errors.remove("WARN_value_path"),this.container.innerHTML=d(n),this.applyScaling(this.prepareStyle().fontStyles.size)}render(){const{fontStyles:t}=this.prepareStyle(),{mode:n,factor:s}=r(this.scale),e="factor"===n?t.size*s+"px":`${t.size}px`,a={"--bn-font-family":t.font.substring(t.font.indexOf("px ")+3),"--bn-font-size":e,"--bn-font-color":t.color,"--bn-font-background":t.background};return i(o,{key:"47eaf1468ffc8b8de7e77f2b0aff4b927f8b0471",style:a},i("div",{key:"1f592c2fd0a4af77047c56ee043f6bdd84dfb2d2"},i("span",{key:"ecad3e6ea36dfa495ef78183fc6c3979eb9d5be2",class:"container",ref:t=>{this.container=t}})))}get element(){return s(this)}static get watchers(){return{value:[{validateValue:0}],scale:[{validateScaling:0}]}}};_.style=':host{padding:0.5em;display:inline-block;position:relative;overflow:hidden;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000);background-color:var(--bn-font-background, white)}span.container p{margin:0}';export{_ as bn_text}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t,f as n}from"./p-GstO_GU5.js";import{g as e,r,c as s,D as a}from"./p-7pLJBHT2.js";const i=t=>{if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){const n=Object.getPrototypeOf(t);return n===Object.prototype||null===n}return"[object Object]"===Object.prototype.toString.call(t)}return!1},o=(t,n)=>n,c=(t,n)=>[...new Set([...t,...n])],u=(t,n)=>{const e=(t=>{return{arrayMergeType:"combine",arrayMerge:(n=t?t.arrayMergeType:"combine","overwrite"===n?o:c),...t};var n})(n);return t.reduce(((t,n)=>(Object.keys(n).forEach((r=>{Array.isArray(t[r])&&Array.isArray(n[r])?e&&e.arrayMerge&&(t[r]=e.arrayMerge(t[r],n[r])):t[r]=i(t[r])&&i(n[r])?u([t[r],n[r]],e):n[r]})),t)),{})},l=(t,n)=>u([t._system||{},t._default||{},void 0!==n&&t[n]||{}],{arrayMergeType:"overwrite"}),f=a=>{let i,o,c,u;const f=()=>{u=l(o.componentStyles.state,c)},d=a.connectedCallback;a.connectedCallback=()=>{const s=t(a);o=e(s),u=o.componentStyles.state._system,c=a.selectedStyle,f(),i=o.componentStyles.on("set",(e=>{e!==c&&"_default"!==e||(c=a.selectedStyle,f(),n(t(a)))})),r(d,a)};const h=a.disconnectedCallback;return a.disconnectedCallback=()=>{r(i),s(t(a)),r(h,a)},t=>(void 0!==o&&a.selectedStyle!==c&&(c=a.selectedStyle,f()),t(u))};var d,h,m,y,p,b,v,g;!function(t){t.ALL="all",t.META="meta"}(d||(d={})),function(t){t.CURRENCY="currency",t.VOLUME="volume"}(h||(h={})),function(t){t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(m||(m={})),function(t){t.POS="pos",t.NEG="neg",t.NEU="neu",t.OP="op",t.OPINV="opinv"}(y||(y={})),function(t){t.DECIMAL="decimal",t.PERCENT="percent"}(p||(p={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(b||(b={})),function(t){t.INF="inf",t.W100="w100",t.W50="w50",t.W25="w25",t.W20="w20",t.W15="w15",t.W10="w10",t.W5="w5"}(v||(v={})),function(t){t.W5="w5",t.W10="w10",t.W15="w15",t.W20="w20",t.W25="w25",t.W30="w30",t.W40="w40",t.W60="w60",t.W80="w80",t.W100="w100"}(g||(g={}));const w={[g.W5]:5,[g.W10]:10,[g.W15]:15,[g.W20]:20,[g.W25]:25,[g.W30]:30,[g.W40]:40,[g.W60]:60,[g.W80]:80,[g.W100]:100};var N,k,S,O,D,T;!function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex"}(N||(N={})),function(t){t.SMART="smart",t.LONG="long",t.SHORT="short",t.TWO_ROW="two-row"}(k||(k={})),function(t){t.COLUMN="column",t.LINE="line",t.WATERFALL="waterfall"}(S||(S={})),function(t){t.BAR="bar",t.LINE="line",t.AUTO="auto"}(O||(O={})),function(t){t.SCENARIOS="scenarios",t.DIMENSIONS="dimensions"}(D||(D={})),function(t){t.ABSOLUTE="absolute",t.RELATIVE="relative",t.ABSOLUTE_RELATIVE="absolute-relative"}(T||(T={}));const A=100;var M,E,j,$,J,L,F;!function(t){t.ASC="asc",t.DESC="desc",t.DATASET="dataset"}(M||(M={})),function(t){t[t.ALL=-1]="ALL"}(E||(E={})),function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(j||(j={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}($||($={})),function(t){t.BELOW="below",t.ABOVE="above"}(J||(J={})),function(t){t.ASC="asc",t.DESC="desc"}(L||(L={})),function(t){t.HEADER="HEADER",t.GROUPHEAD="GROUPHEAD",t.SEPERATORLINE="SEPERATORLINE",t.SUM="SUM",t.GROUPSUM="GROUP_SUM",t.DRILLELEMENT="DRILLELEMENT",t.STANDARD="STANDARD",t.PARTELEMENT="PARTELEMENT",t.ENTRY="ENTRY"}(F||(F={}));const _=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,I=/^[A-Za-z_][A-Za-z0-9_]*$/,W=["min","max","avg","sum"];class x{constructor(t,n,e,r){this.label=t,this.alias=n,this.fn=e,this.arg=r}get isNumeric(){return W.includes(this.fn)}}function G(t){if("string"!=typeof t)return!1;const n=_.exec(t);if(!n)return!1;const[,e,r]=n;return"lit"===e?r.length>0:I.test(r)}function R(t,n,e){if(!G(e))return null;const[,r,s]=_.exec(e);return new x(t,n,r,s)}var q,z,C,P;!function(t){t.YEAR="year",t.QUARTER="quarter",t.MONTH="month",t.WEEK="week",t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.MILLISECOND="millisecond",t.NONE="fallback",t.AUTO="auto"}(q||(q={})),function(t){t.AVG="avg",t.INTERVAL="interval",t.START="start",t.END="end",t.YTD="ytd",t.YTG="ytg",t.CUM="cum",t.MAT="mat",t.NONE="none",t.AUTO="auto"}(z||(z={}));class U{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW kkkk",day:"dd.MM.yyyy",hour:"TT",minute:"TT",second:"TT",millisecond:"TT:SSS",fallback:"dd.MM.yyyy"},this._dateFormatShort={year:"yy",quarter:"q'Q'",month:"LLL",week:"'KW'WW",day:"dd",hour:"hh'h'",minute:"mm'm'",second:"ss's'",millisecond:"SSS'ms'",fallback:"dd.MM.yyyy"},this._dateLinkFormat={avg:"Ø[LINK]",interval:"[DATE]..[DATE2]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE2]",mat:"~[DATE]",none:"[DATE]"},this.locale="de",this.dateFormatPinned=!1,this.dateFormatShortPinned=!1,this.dateFormat=this._dateFormat,this.dateLinkFormat=this._dateLinkFormat,this.dateFormatShort=this._dateFormatShort}setDateLinkFormat(t){this.dateLinkFormat=t}setDateFormat(t){this.dateFormat=t,this.dateFormatPinned=!0}setDateFormatShort(t){this.dateFormatShort=t,this.dateFormatShortPinned=!0}patchDateFormatShort(t){this.dateFormatShort=Object.assign(Object.assign({},this.dateFormatShort),t)}setLocale(t){this.locale=t,this.dateFormatPinned||(this.dateFormat=Object.assign(Object.assign({},this._dateFormat),U.LOCALE_DATE_FORMAT[t]||{})),this.dateFormatShortPinned||(this.dateFormatShort=Object.assign(Object.assign({},this._dateFormatShort),U.LOCALE_DATE_FORMAT_SHORT[t]||{}))}getDateString(t,n){return t.setLocale(this.locale).toFormat(this.dateFormat[n]||this.dateFormat.fallback)}getSmartDateString(t,n){switch(n){case q.DAY:return this.getFormatedDayDate(t);case q.MONTH:return this.getFormatedMonthDate(t);case q.QUARTER:return this.getFormatedQuarterDate(t);case q.WEEK:return this.getFormatedWeekDate(t);case q.HOUR:return this.getFormatedHourDate(t);case q.MINUTE:return this.getFormatedMinuteDate(t);case q.SECOND:return this.getFormatedSecondDate(t);case q.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,n)}}calculateDistanceType(t,n,e=32){if(null==n)return q.DAY;const r="number"==typeof t?a.fromMillis(t):t,s="number"==typeof n?a.fromMillis(n):n;return 0===s.diff(r).as("milliseconds")?q.DAY:s.diff(r).as("milliseconds")<e?q.MILLISECOND:s.diff(r).as("seconds")<e?q.SECOND:s.diff(r).as("minutes")<e?q.MINUTE:s.diff(r).as("hours")<e?q.HOUR:s.diff(r).as("days")<e?q.DAY:s.diff(r).as("weeks")<e?q.WEEK:s.diff(r).as("months")<e?q.MONTH:s.diff(r).as("quarters")<e?q.QUARTER:q.YEAR}datesBetween(t,n,e){const r=this.convertDateDistanceToMomentunitOfTime(e),s=t.startOf(r),a=n.endOf(r),i=[];let o=s;do{i.push(o),o=o.plus(this.createDiratonLike(r,1))}while(o<=a);return i}countBetween(t,n,e){const r=this.convertDateDistanceToMomentunitOfTime(e);return Math.floor(n.startOf(r).diff(t.startOf(r),r).as(r))+1}getDateLinkString(t,n,e,r,s){if(null==t&&null==n)return"";if(null==t&&e!==z.END&&e!==z.YTD)return"";if(null==n&&(z.INTERVAL===e||z.CUM===e||z.END===e||z.YTD===e))return"";const i=t||a.now(),o=n;r===q.AUTO&&(r=this.calculateDistanceType(i,o,s));let c=this.getDateString(i,r),u="",l=z.NONE;return null!=o&&(u=this.getDateString(o,r),l=z.INTERVAL,c===u&&e===z.INTERVAL&&(e=z.NONE),c===u&&e===z.AVG&&(l=z.NONE),z.END!==e&&z.YTD!==e||(c=u),e!==z.INTERVAL&&e!==z.CUM&&e!==z.AVG||(r===q.QUARTER?i.quarter===o.quarter&&i.year===o.year?u=u.replace(" "+o.year,""):i.year===o.year&&(c=c.replace(" "+i.year,"")):r===q.MONTH?i.month===o.month&&i.year===o.year?u=u.replace(" "+o.year,""):i.year===o.year&&(c=c.replace(" "+i.year,"")):r===q.WEEK&&(i.weekNumber===o.weekNumber&&i.weekYear===o.weekYear?u=u.replace(" "+o.weekYear,""):i.weekYear===o.weekYear&&(c=c.replace(" "+i.weekYear,""))))),this.dateLinkFormat[e].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",c).replace("[DATE2]",u)}getShortDateString(t,n){return t.setLocale(this.locale).toFormat(this.dateFormatShort[n]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let n=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(n+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(n+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(n)}getFormatedMonthDate(t){let n=this.dateFormatShort.month;return this.isJanuary(t)&&(n+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(n)}getFormatedQuarterDate(t){let n=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(n+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(n)}getFormatedWeekDate(t){let n=this.dateFormatShort.week;return this.isFirstWeek(t)&&(n+=" kk"),t.setLocale(this.locale).toFormat(n)}getFormatedHourDate(t){let n=this.dateFormatShort.hour;return this.isFirstHour(t)&&(n+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(n)}getFormatedMinuteDate(t){let n=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(n=this.dateFormatShort.hour+":"+n),t.setLocale(this.locale).toFormat(n)}getFormatedSecondDate(t){let n=this.dateFormatShort.second;return this.isFirstSecond(t)&&(n=this.dateFormatShort.minute+":"+n),t.setLocale(this.locale).toFormat(n)}getFormatedMilliSecondDate(t){let n=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(n=this.dateFormatShort.second+":"+n),t.setLocale(this.locale).toFormat(n)}isSmartBoundary(t,n){switch(n){case q.DAY:return this.isFirstInMonth(t);case q.WEEK:return this.isFirstWeek(t);case q.MONTH:return this.isJanuary(t);case q.QUARTER:return this.isFirstQuarter(t);default:return!1}}isFirstInMonth(t){return 1===t.day}isJanuary(t){return 1===t.month}isFirstQuarter(t){return 1===t.quarter}isFirstWeek(t){return 1===t.weekNumber}isFirstHour(t){return 0===t.hour}isFirstMinute(t){return 0===t.minute}isFirstSecond(t){return 0===t.second}isFirstMilliSecond(t){return 0===t.millisecond}convertDateDistanceToMomentunitOfTime(t){let n;switch(t){case q.YEAR:n="year";break;case q.MONTH:n="month";break;case q.QUARTER:n="quarter";break;case q.WEEK:n="week";break;case q.DAY:n="day";break;case q.HOUR:n="hour";break;case q.MINUTE:n="minute";break;case q.SECOND:n="second";break;case q.MILLISECOND:n="millisecond";break;default:n="day"}return n}createDiratonLike(t,n){switch(t){case"year":return{years:n};case"month":return{months:n};case"quarter":return{quarters:n};case"week":return{weeks:n};case"day":default:return{days:n};case"hour":return{hours:n};case"minute":return{minutes:n};case"second":return{seconds:n};case"millisecond":return{milliseconds:n}}}}U.LOCALE_DATE_FORMAT={en:{week:"'W'WW kkkk",day:"MM/dd/yyyy",fallback:"MM/dd/yyyy"}},U.LOCALE_DATE_FORMAT_SHORT={en:{week:"'W'WW",fallback:"MM/dd/yyyy"}};class B{static isExisting(t){return null!=t}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t&&!Number.isNaN(t)}static isBoolean(t){return"boolean"==typeof t}static isArray(t){return Array.isArray(t)}static isObject(t){return"object"==typeof t&&null!==t}static isOperator(t){return"+"===t||"-"===t}static isDate(t){return t instanceof a&&t.isValid}}class H{static adaptDefaultString(t){return B.isString(t)?t.trim():""}static adaptArray(t,n){const e=[];return B.isArray(t)&&t.forEach((t=>{e.push(n.adapt(t))})),e}}!function(t){t.ASC="asc",t.DESC="desc"}(C||(C={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(P||(P={}));class K{constructor(t=["category"],n=C.ASC){this.hierarchy=t,this.direction=n}}const Q=[P.ROWGROUP,P.ROWGROUPINDEX,P.CATEGORY,P.CATEGORYINDEX,P.SUBCATEGORY,P.SUBCATEGORYINDEX],Y=/^(?:ac|fc|pp|pl)[1-4]$/,Z=/^(dr|d)((?:ac|fc|pp|pl)[1-4])_((?:ac|fc|pp|pl)[1-4])(?:_(?:pos|neg|neu|opinv|op))?$/;function V(t){if(null==t)return;const n=t.indexOf("@"),e=(n<0?t:t.slice(0,n)).trim().toLowerCase(),r=n<0?void 0:t.slice(n+1).trim();if(""===r)return;const s=P[e.toUpperCase()];if(null!=s&&Q.includes(s))return void 0===r?{kind:"dim",column:s}:void 0;if(Y.test(e))return{kind:"scenario",column:e,bucket:r};const a=Z.exec(e);if(null!=a){const[,t,n,e]=a;return{kind:"variance",column:`${t}${n}_${e}`,type:t,base:n,delta:e,bucket:r}}}function X(t){const n=V(t);if(null!=n)return void 0===n.bucket?n.column:`${n.column}@${n.bucket}`}class tt{constructor(t,n=!1){this.stringAdapter=t,this.allowMeasures=n}adapt(t){var n;const e=H.adaptArray(t.hierarchy,this.stringAdapter),r=C[null===(n=t.direction)||void 0===n?void 0:n.toUpperCase()]||C.ASC;return new K(e.map((t=>(this.allowMeasures?X(t):P[t.toUpperCase()])||P.CATEGORY)),r)}default(){return new K(["category"],C.ASC)}}const nt="n/a";function et(t,n){if(!(Math.abs(n)<=1e-9*Math.abs(t)))return t/Math.abs(n)}const rt=/^(dr|d)((?:ac|pp|fc|pl)[1-4])_((?:ac|pp|fc|pl)[1-4])(?:_(pos|neg|neu|op|opinv))?$/;class st{constructor(t,n,e){this.type=t,this.base=n,this.delta=e}static parse(t){const n=rt.exec(t);return null===n?null:new st(n[1],n[2],n[3])}compute(t,n){var e;return null==t||null==n?null:"dr"===this.type?0===n?null:null!==(e=et(t-n,n))&&void 0!==e?e:null:t-n}}function at(t){const n=t.trim();if(Object.values(m).includes(n))return{kind:"scenario",slot:n};const e=st.parse(n);return null!==e?{kind:"variance",measure:e}:null}function it(t){return t.replace(/\d+$/,"")}function ot(t){return t.replace(/^[a-z]+/,"")}function ct(t){var n;return"dr"===(null===(n=st.parse(t.trim()))||void 0===n?void 0:n.type)}function ut(t){if(!ct(t.measure))return t;const n=t=>void 0===t?void 0:t/100;return Object.assign(Object.assign({},t),{min:n(t.min),max:n(t.max),refLine:n(t.refLine),highlight:t.highlight&&{from:n(t.highlight.from),to:n(t.highlight.to)}})}function lt(t){return null==t||""===t||"null"===t}function ft(t){return"string"==typeof t&&"none"===t.trim().toLowerCase()}function dt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:ht((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in m)))).toString())}function ht(t){return lt(t)?[]:t.replace(";",",").split(",").filter((t=>{var n,e,r;const s=t.split("_"),a=null===(n=s[0])||void 0===n?void 0:n.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(e=s[1])||void 0===e?void 0:e.toUpperCase().trim(),o=null===(r=s[2])||void 0===r?void 0:r.toUpperCase().trim();return 3!==s.length||!(a in m)||!(i in m)||!(o in y)}))}function mt(t){return lt(t)?[]:ht(t.split(",").filter((t=>!(t.toUpperCase().trim()in m))).toString())}function yt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:ht(t.split(",").filter((t=>!(t.toUpperCase()in P))).toString())}function pt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:t.split(",").filter((t=>void 0===V(t)))}function bt(t){return!lt(t)&&Number.isInteger(Number(t))}function vt(t){return!lt(t)&&!Number.isNaN(Number(t))}function gt(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in C}function wt(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in N}function Nt(t){if(lt(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function kt(t){const n=Date.parse(t);return Number.isInteger(n)}function St(t){return(null==t?void 0:t.toUpperCase())in z}function Ot(t){return(null==t?void 0:t.toUpperCase())in q}function Dt(t){return(null==t?void 0:t.toUpperCase().replace("-","_"))in k}function Tt(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in p}function At(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in b}function Mt(t){return(null==t?void 0:t.toUpperCase())in J}function Et(t){if(lt(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function jt(t){if(lt(t))return[];try{const n=JSON.parse(t);if(null!==n&&"object"==typeof n&&!(n instanceof Array))return Object.entries(n).filter((([,t])=>"string"!=typeof t||!G(t))).map((([t,n])=>`${t}: ${n}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function $t(t){if(lt(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Jt(t){return(null==t?void 0:t.trim().toUpperCase())in h}function Lt(t){return["_","k","M","G","T","P","E","Z","Y","m","my","μ","n","p","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function Ft(t){return(null==t?void 0:t.toUpperCase().trim())in v}function _t(t){return(null==t?void 0:t.toUpperCase().trim())in g}function It(t){if(lt(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Wt(t){if(lt(t))return[];try{const n=JSON.parse(t);if("object"!=typeof n||null===n||Array.isArray(n))return["stack: must be a JSON object"];const e=[];if(n.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(n.by)||e.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else e.push("stack: 'by' is required");if(n.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(n.mode)||e.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(n.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(n.order)||e.push(`stack: 'order' must be one of: ${t.join(", ")}`)}if(n.hasOwnProperty("notation")){const t=["none","scenario"];t.includes(n.notation)||e.push(`stack: 'notation' must be one of: ${t.join(", ")}`)}if(n.hasOwnProperty("legend")){const t=["left","right","both","none"];t.includes(n.legend)||e.push(`stack: 'legend' must be one of: ${t.join(", ")}`)}return n.hasOwnProperty("percentMark")&&"boolean"!=typeof n.percentMark&&e.push("stack: 'percentMark' must be true or false"),e}catch(t){return["stack: invalid JSON"]}}function xt(t){return!lt(t)&&null!==at(t)}class Gt{constructor(){this.cache=new Map,this.tag=Gt.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.textContent=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const Rt=new Gt;function qt(t){for(var n,e=0,r=0,s=t.length;s>=4;++r,s-=4)n=1540483477*(65535&(n=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(n>>>16)<<16),e=1540483477*(65535&(n^=n>>>24))+(59797*(n>>>16)<<16)^1540483477*(65535&e)+(59797*(e>>>16)<<16);switch(s){case 3:e^=(255&t.charCodeAt(r+2))<<16;case 2:e^=(255&t.charCodeAt(r+1))<<8;case 1:e=1540483477*(65535&(e^=255&t.charCodeAt(r)))+(59797*(e>>>16)<<16)}return(((e=1540483477*(65535&(e^=e>>>13))+(59797*(e>>>16)<<16))^e>>>15)>>>0).toString(36)}const zt=t=>vt(t)?`${t}px`:t,Ct={width:{className:"w",cssName:"width",attrName:"width",transform:zt},height:{className:"h",cssName:"height",attrName:"height",transform:zt},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:zt},right:{className:"rgt",cssName:"right",attrName:"right",transform:zt},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:zt},left:{className:"lft",cssName:"left",attrName:"left",transform:zt},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:zt},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},Pt=Object.keys(Ct);function Ut(t,n,e){return`.${n} {${t.cssName}: ${e};}`}function Bt(t,n){const e=document.createElement("div").style;e.setProperty(t.cssName,n);const r=e.getPropertyValue(t.cssName);if(e.cssText=`${t.cssName}:${r};--bn-end:1`,!r||r.includes("<")||"1"!==e.getPropertyValue("--bn-end"))return;const s=function(t,n){const e=qt(n);return`bn-c-${t.className}_${e}`}(t,n);return{className:s,style:Ut(t,s,r)}}const Ht=t=>{const n=new Map;return Pt.forEach((e=>{const r=t.getAttribute(e);if(r){["top","left","right","bottom"].includes(e)&&n.set("position",Bt(Ct.position,"absolute"));const t=Bt(Ct[e],(Ct[e].transform||function(t){return t})(r));t&&n.set(e,t)}})),n},Kt=new MutationObserver((t=>{for(const e of t){const t=e.target,r=Ht(t);Rt.apply(r);const s=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),n(t)}})),Qt=n=>{const e=n.connectedCallback,s=n.disconnectedCallback;n.connectedCallback=()=>{const s=t(n);if(!s)throw new Error("Can't find element field in component undefined");(t=>{const n=Ht(t);Rt.apply(n);const e=Array.from(n.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...e).join(" "),Kt.observe(t,{attributes:!0,attributeFilter:Pt,childList:!1,subtree:!1})})(s),r(e,n)},n.disconnectedCallback=()=>{r(s,n)}};export{p as $,N as A,vt as B,B as C,Ot as D,Dt as E,q as F,k as G,O as H,U as I,l as J,qt as K,mt as L,_t as M,nt as N,C as O,Tt as P,At as Q,A as R,D as S,Et as T,Mt as U,$t as V,pt as W,Jt as X,Ft as Y,It as Z,jt as _,f as a,J as a0,$ as a1,X as a2,d as a3,v as a4,h as a5,R as a6,w as a7,g as a8,F as a9,I as aa,V as ab,m as ac,L as ad,j as ae,Nt as af,kt as ag,St as ah,z as ai,bt as b,xt as c,ot as d,ut as e,ct as f,gt as g,K as h,lt as i,P as j,ft as k,dt as l,u as m,ht as n,wt as o,Lt as p,Wt as q,at as r,it as s,M as t,T as u,yt as v,Qt as w,H as x,tt as y,et as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t,r as n,c as e,R as o}from"./p-7pLJBHT2.js";import{g as r,f as i}from"./p-GstO_GU5.js";import{i as s}from"./p-
|
|
1
|
+
import{g as t,r as n,c as e,R as o}from"./p-7pLJBHT2.js";import{g as r,f as i}from"./p-GstO_GU5.js";import{i as s}from"./p-BFl7OwcC.js";const a=new Set(["br","b","i","strong","em","span","p","div","table","tr","td","th","thead","tbody","tfoot","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","sup","small","hr","a","img","code","pre","blockquote","del"]),l=new Set(["class","style","colspan","rowspan","href","title","src","alt","width","height"]),u=new Set(["http:","https:","mailto:"]),c=/^\s*text-align:\s*(left|center|right)\s*;?\s*$/i;function d(t){if(!t)return"";const n=(new DOMParser).parseFromString(t,"text/html").body;return f(n),n.innerHTML}function f(t){for(const n of Array.from(t.childNodes)){if(n.nodeType===Node.TEXT_NODE)continue;const e=n;if(n.nodeType!==Node.ELEMENT_NODE||!a.has(e.localName)){t.removeChild(n);continue}for(const t of Array.from(e.attributes)){const n=t.name.toLowerCase();l.has(n)&&("href"!==n&&"src"!==n||v(n,t.value))||e.removeAttribute(t.name)}const o=e.getAttribute("style");null===o||c.test(o)||e.removeAttribute("style"),f(e)}}function v(t,n){try{const{protocol:e}=new URL(n,"http://a");return u.has(e)||"src"===t&&"data:"===e}catch(t){return!1}}function h(t,n=!1){const e=p(t);if(!e)return n&&console.log("[parentDims] no layout parent found for",t.tagName),{width:0,height:0};const o=getComputedStyle(e),r=e.clientWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight),i=function(t,n=!1){let e=p(t),o=0,r=null,i=1;for(;e;){if(e.hasAttribute("data-bn-fit-content")){n&&console.log(`[height:${o}]`,e.tagName,"fit-content region → discarding inner candidate"),r=null;const t=parseInt(e.getAttribute("data-bn-fit-content"),10);!isNaN(t)&&t>1&&(i*=t),e=m(e),o++;continue}const t=getComputedStyle(e),s=t.overflowY;if(n&&console.log(`[height:${o}]`,e.tagName,e.className||"(no class)",`overflow=${s} clientH=${e.clientHeight} h=${t.height}`),null===r)if("hidden"===s||"scroll"===s||"auto"===s)r=e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom),n&&console.log(`[height] candidate at depth ${o}: ${Math.round(r)}px`);else if("none"!==t.maxHeight){const n=parseFloat(t.maxHeight);!isNaN(n)&&n>0&&(r=Math.min(n,e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)))}e=m(e),o++}return null!==r?r/i:(n&&console.log("[height] NO constrained ancestor → viewport fallback"),"undefined"!=typeof window?window.innerHeight/i:0)}(t,n);return n&&console.log("[parentDims]",t.tagName,"→ layoutParent:",e.tagName,e.className||"(no class)",`clientW=${e.clientWidth} → w=${Math.round(r)}, h=${Math.round(i)}`,"overflow:",o.overflow),{width:Math.max(0,r),height:Math.max(0,i)}}function p(t){var n;const e=t.parentElement;return(null===(n=null==e?void 0:e.assignedSlot)||void 0===n?void 0:n.parentElement)?e.assignedSlot.parentElement:e}function m(t){var n;if(null===(n=t.assignedSlot)||void 0===n?void 0:n.parentElement)return t.assignedSlot.parentElement;if(t.parentElement)return t.parentElement;const e=t.getRootNode();return e instanceof ShadowRoot?e.host:null}function b(t,n){const e=t.getBoundingClientRect(),o=t.offsetHeight>0?e.height/t.offsetHeight:0;if(!(o>0)||Math.abs(o-(t.offsetWidth>0?e.width/t.offsetWidth:0))>.01*o)return 0;const r=e.top+n*o;let i=0;for(let n=t;n;n=m(n)){const t=getComputedStyle(n).overflowY;if("hidden"===t||"clip"===t)i=Math.max(i,r-n.getBoundingClientRect().bottom);else if(("auto"===t||"scroll"===t)&&n.scrollHeight>n.clientHeight+1)break}return i/o}const g=(t,n)=>Math.round(t*n*100)/100;function w(t){if(null==t||""===t)return{mode:"empty"};if("none"===t)return{mode:"none"};if("auto"===t)return{mode:"auto"};const n=Number(t);return!isNaN(n)&&n>0?{mode:"factor",factor:n}:{mode:"empty"}}const y={k:1e3,K:1e3,M:1e6,G:1e9,T:1e12},$=/^(\d+(?:\.\d+)?|\.\d+)\s*([kKMGT])?$/;function M(t){var n;if("number"==typeof t)return Number.isFinite(t)&&t>0?{kind:"number",value:t}:{kind:"invalid",raw:String(t)};const e=null!==(n=null==t?void 0:t.toString().trim())&&void 0!==n?n:"";if("auto"===e.toLowerCase())return{kind:"auto"};const o=$.exec(e);if(o){const t=Number(o[1])*(o[2]?y[o[2]]:1);if(Number.isFinite(t)&&t>0)return{kind:"number",value:t}}return{kind:"invalid",raw:e}}function k(t,n){const e=M(t);if("auto"===e.kind)return{kind:"auto"};if("string"==typeof t){const e=t.trim();if(n.has(e))return{kind:"value",value:n.get(e)}}return"number"===e.kind?{kind:"value",value:e.value}:{kind:"invalid",raw:e.raw}}const N=[[1e12,"T"],[1e9,"G"],[1e6,"M"],[1e3,"k"]];function S(t){if(!Number.isFinite(t)||t<=0)return String(t);const n=t=>String(Number(t.toPrecision(3)));for(const[e,o]of N)if(t>=e)return`${n(t/e)}${o}`;return n(t)}const F="WARN_datasets",O=(o,i,s)=>{let a,l,u=[],c=[],d=[],f="";const v=()=>{const t=f;f=o.datasets||"",""!==t&&t!==f&&i("",[]),[d,c]=((t,n)=>{const e=[],o=[];for(const t of n)(r=t,r.startsWith("$")?e:o).push(t);var r;return[e,o]})(0,f.split(",")),((t,n)=>{const e=t.errors;if(e)if(n.length>0){const t=n.map((t=>t.substring(1))).join(", ");e.addOrReplace({id:F,type:"warning",message:`Using datasource(s) "${t}" directly. Prefer using a dataset (bn-dataset) for query support and metadata.`})}else e.remove(F)})(o,d),p()},h=(t,n)=>{const e=n?t.substring(1):t;let o;try{o=l.db.db.exec(`SELECT * FROM \`${e}\``)}catch(t){o=[]}i(t,o)},p=()=>{u.forEach((t=>t())),u=[],c.forEach((t=>{t&&(u.push(l.db.subscribe(t,(()=>h(t,!1)))),h(t,!1),(t=>{if(s){const n=l.datasetsMeta.get(t);n&&s(t,n)}})(t))})),d.forEach((t=>{t&&(u.push(l.db.subscribe(t.substring(1),(()=>h(t,!0)))),h(t,!0))}))},m=new MutationObserver((t=>{t.forEach((t=>{"datasets"===t.attributeName&&(o.datasets||"")!==f&&v()}))})),b=o.connectedCallback;o.connectedCallback=()=>{const e=r(o);l=t(e),v(),m.observe(e,{attributes:!0,attributeFilter:["datasets"]}),s&&(a=l.datasetsMeta.on("set",((t,n)=>{c.includes(t)&&s(t,n)}))),n(b,o)};const g=o.disconnectedCallback;return o.disconnectedCallback=()=>{m.disconnect(),u.forEach((t=>t())),u=[],n(a),e(r(o)),n(g,o)},t=>{c=t,p()}},R="inherited-page",T="bn-layout-page";function j(t){return"inherited-closest"===t||t===R}function C(t,n){const e=[];let o=t.parentNode;for(;o;){const t=o.nodeName.toLowerCase();if(t===T){e.push(o);break}if("bn-layout-card"===t&&n!==R&&e.push(o),o.parentNode)o=o.parentNode;else{if(!(o instanceof ShadowRoot))break;o=o.host}}return e}function G(t,n){var e;const o=t=>{const e=t.getAttribute(n),o=null==e?void 0:e.trim();return s(o)||j(o)?void 0:e};for(const r of t){if((null===(e=r.getAttribute(n))||void 0===e?void 0:e.trim())===R){const n=t.find((t=>t.nodeName.toLowerCase()===T)),e=n&&o(n);if(void 0!==e)return e;continue}const i=o(r);if(void 0!==i)return i}}const _=(t,e,o)=>{const s=new Map,a=new Map;let l=null;const u=()=>{var n;const o=r(t);s.clear(),a.clear(),l&&(l.disconnect(),l=null);const c=new Map;for(const r of e){const e=t[r.propName];if("string"!=typeof e||!j(e))continue;a.set(r.propName,e);const i=C(o,e),l=G(i,r.ancestorAttr);void 0!==l&&s.set(r.propName,l);for(const t of i)c.set(t,[...null!==(n=c.get(t))&&void 0!==n?n:[],r.ancestorAttr])}if(c.size>0){l=new MutationObserver((()=>{u(),i(t)}));for(const[t,n]of c)l.observe(t,{attributes:!0,attributeFilter:n})}},c=t.connectedCallback;t.connectedCallback=()=>{u(),n(c,t)};const d=t.disconnectedCallback;t.disconnectedCallback=()=>{l&&(l.disconnect(),l=null),s.clear(),a.clear(),n(d,t)};const f=t=>{var n;return null===(n=e.find((n=>n.propName===t)))||void 0===n?void 0:n.ancestorAttr.replace(/-(\w)/g,((t,n)=>n.toUpperCase()))};return(t,n,e)=>{const r=`WARN_inherited_${t}`,i=j(n);i&&a.get(t)!==n&&u();const l=i?s.get(t):void 0;return i&&void 0===l?(null==o||o.addOrReplace({id:r,type:"warning",message:`${t}: '${n}' could not be resolved, no surrounding ${n===R?"page":"card or page"} sets ${f(t)}`}),{value:e,inherited:!1,unresolved:!0}):(null==o||o.remove(r),{value:null!=l?l:n,inherited:void 0!==l,unresolved:!1})}},x=s=>{let a,l,u,c,d=null;const f=()=>{const t=r(s);if(d&&(d.disconnect(),d=null),u=s.i18nNamespace,l=u,null!=l)return;const n=function(t){let n=t.parentNode;for(;n;){if(n instanceof HTMLElement&&n.hasAttribute("i18n-namespace"))return n;if(n.parentNode)n=n.parentNode;else{if(!(n instanceof ShadowRoot))break;n=n.host}}}(t);n&&(l=n.getAttribute("i18n-namespace"),d=new MutationObserver((()=>{f(),i(s)})),d.observe(n,{attributes:!0,attributeFilter:["i18n-namespace"]}))},v=s.connectedCallback;s.connectedCallback=()=>{const e=r(s);c=t(e),f(),a=c.internationalization.on("set",(t=>{t!==l&&"_system"!==t||i(s)})),n(v,s)};const h=s.disconnectedCallback;return s.disconnectedCallback=()=>{d&&(d.disconnect(),d=null),n(a),e(r(s)),n(h,s)},{t:(t,n)=>{var e,i,a,d,v;void 0!==c&&s.i18nNamespace!==u&&f(),t.startsWith(".")&&(t=r(s).localName+t),Object.prototype.hasOwnProperty.call(o,t)&&(t=o[t]);const h=c.internationalization.state,p=c.context.state.locale,m=null!==(a=null===(i=null===(e=h[l])||void 0===e?void 0:e[p])||void 0===i?void 0:i[t])&&void 0!==a?a:null===(v=null===(d=h._system)||void 0===d?void 0:d[p])||void 0===v?void 0:v[t];return null==m?t:m.replace(/{{([\s\S]+?)}}/g,((t,e)=>{var o;return null!==(o=null==n?void 0:n[e.trim()])&&void 0!==o?o:""}))}}};export{O as a,b,g as c,k as d,S as e,C as f,h as g,_ as h,j as i,M as j,w as p,G as r,d as s,x as w}
|