@bino-bi/bn-template-engine 1.0.0-alpha.2 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/{p-a95ccc16.entry.js → p-1970906d.entry.js} +1 -1
- package/dist/bn-template-engine/{p-0ca8dc17.entry.js → p-1dbd339c.entry.js} +1 -1
- package/dist/bn-template-engine/p-2e68cf09.entry.js +1 -0
- package/dist/bn-template-engine/{p-bc59ea5c.entry.js → p-31cc6a2d.entry.js} +1 -1
- package/dist/bn-template-engine/{p--PSoPbDM.js → p-8tsCnxIz.js} +1 -1
- package/dist/bn-template-engine/{p-dd9dd407.entry.js → p-997b2fe4.entry.js} +1 -1
- package/dist/bn-template-engine/{p-DgfL-ffj.js → p-B4ySv9KQ.js} +1 -1
- package/dist/bn-template-engine/{p-DVo6aZUE.js → p-BL8gyUwE.js} +1 -1
- package/dist/bn-template-engine/{p-CvXqez4D.js → p-C0yAPzJz.js} +1 -1
- package/dist/bn-template-engine/p-DtdQCMzj.js +1 -0
- package/dist/bn-template-engine/{p-e102a490.entry.js → p-a90f1cbe.entry.js} +1 -1
- package/dist/bn-template-engine/{p-35638ad0.entry.js → p-d7f0cbaf.entry.js} +1 -1
- package/dist/bn-template-engine/{p-1d9a3be9.entry.js → p-dfb61aa5.entry.js} +1 -1
- package/dist/bn-template-engine/{p-f89e55c6.entry.js → p-ece17f84.entry.js} +1 -1
- package/dist/bn-template-engine/p-fd427179.entry.js +1 -0
- package/dist/bn-template-engine/p-sqjrku2z.js +1 -0
- package/dist/cjs/{DataFormatDigits-CbIVfGEH.js → DataFormatDigits-DAmZzqbD.js} +1 -1
- package/dist/cjs/{DateStringFactory-CfkXYAMN.js → DateStringFactory-CcluhpGI.js} +1 -1
- package/dist/cjs/{Order-DtpbD8mQ.js → Order-BKoDS21t.js} +28 -0
- package/dist/cjs/{SVGVariancesStyleGroup-D-rTWlDo.js → SVGVariancesStyleGroup-DYYAU-81.js} +1 -1
- package/dist/cjs/{StringAdapter-ByCHdlDO.js → StringAdapter-Bneo8T4k.js} +1 -1
- package/dist/cjs/bn-body_4.cjs.entry.js +4 -4
- package/dist/cjs/bn-chart-structure.cjs.entry.js +3 -3
- package/dist/cjs/bn-chart-time.cjs.entry.js +3 -3
- package/dist/cjs/bn-context_5.cjs.entry.js +115 -44
- package/dist/cjs/bn-grid.cjs.entry.js +3 -3
- package/dist/cjs/bn-image.cjs.entry.js +3 -3
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +3 -3
- package/dist/cjs/bn-tree.cjs.entry.js +3 -3
- package/dist/cjs/ibcs-chart-structure.cjs.entry.js +4 -4
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{withStyled-BBtMesx3.js → withStyled-CW30Bh6c.js} +6 -2
- package/dist/collection/components/bn-table/bn-table.js +63 -12
- package/dist/collection/components/bn-table/ibcs-table.css +7 -5
- package/dist/collection/components/bn-table/ibcs-table.js +22 -1
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +56 -25
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
- package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
- package/dist/collection/utils/constants.js +27 -0
- package/dist/collection/utils/validate.js +4 -1
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/DateStringFactory.js +1 -1
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGVariancesStyleGroup.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/ibcsRuleSet.js +1 -1
- package/dist/components/validate.js +1 -1
- package/dist/esm/{DataFormatDigits-DYdbRX-1.js → DataFormatDigits--qIbKvXa.js} +1 -1
- package/dist/esm/{DateStringFactory-DRcbojUT.js → DateStringFactory-XWdUjsn8.js} +1 -1
- package/dist/esm/{Order-DdexOqTs.js → Order-sqjrku2z.js} +28 -1
- package/dist/esm/{SVGVariancesStyleGroup-D0Cwprv1.js → SVGVariancesStyleGroup-ibg3sLjM.js} +1 -1
- package/dist/esm/{StringAdapter-CTL-Dvzp.js → StringAdapter-BCLJpQQ8.js} +1 -1
- package/dist/esm/bn-body_4.entry.js +4 -4
- package/dist/esm/bn-chart-structure.entry.js +3 -3
- package/dist/esm/bn-chart-time.entry.js +3 -3
- package/dist/esm/bn-context_5.entry.js +115 -44
- package/dist/esm/bn-grid.entry.js +3 -3
- package/dist/esm/bn-image.entry.js +3 -3
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-text.entry.js +3 -3
- package/dist/esm/bn-tree.entry.js +3 -3
- package/dist/esm/ibcs-chart-structure.entry.js +4 -4
- package/dist/esm/ibcs-chart-time.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{withStyled-DCipbf2O.js → withStyled-D1fAWJ3g.js} +6 -3
- package/dist/types/components/bn-table/bn-table.d.ts +11 -7
- package/dist/types/components/bn-table/ibcs-table.d.ts +1 -0
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +3 -0
- package/dist/types/components.d.ts +22 -2
- package/dist/types/utils/constants.d.ts +15 -0
- package/dist/types/utils/validate.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bn-template-engine/p-60a7fc59.entry.js +0 -1
- package/dist/bn-template-engine/p-DdexOqTs.js +0 -1
- package/dist/bn-template-engine/p-DyRaC0MB.js +0 -1
- package/dist/bn-template-engine/p-d279b578.entry.js +0 -1
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy(JSON.parse("[[\"bn-layout-page\",[[257,\"bn-layout-page\",{\"styles\":[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\"],\"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\"],\"getNumberOfSlot\":[64]}]]],[\"bn-layout-card\",[[257,\"bn-layout-card\",{\"styles\":[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\"],\"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\"],\"getNumberOfSlot\":[64]}]]],[\"bn-chart-structure\",[[1,\"bn-chart-structure\",{\"chartTitle\":[1,\"chart-title\"],\"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\":[1,\"show-categories\"],\"measureScale\":[1,\"measure-scale\"],\"showMeasureScale\":[1,\"show-measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"stack\":[1],\"scale\":[1],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"level\":[{\"validateLevel\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"limit\":[{\"validateLimit\":0}],\"showCategories\":[{\"validateShowCategories\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"stack\":[{\"validateStack\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-chart-time\",[[1,\"bn-chart-time\",{\"chartTitle\":[1,\"chart-title\"],\"filter\":[1],\"scenarios\":[1],\"variances\":[1],\"syncSpaceLeft\":[2,\"sync-space-left\"],\"limit\":[2],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"level\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"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\":[1,\"line-full-width\"],\"showCategories\":[1,\"show-categories\"],\"measureScale\":[1,\"measure-scale\"],\"showMeasureScale\":[1,\"show-measure-scale\"],\"showOverlayAvg\":[1,\"show-overlay-avg\"],\"showOverlayMedian\":[1,\"show-overlay-median\"],\"measureUnit\":[1,\"measure-unit\"],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"syncSpaceLeft\":[{\"validateLeftSync\":0}],\"limit\":[{\"validateLimit\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"level\":[{\"validateLevel\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"dateInterval\":[{\"validateDateInterval\":0}],\"chartMode\":[{\"validateChartMode\":0}],\"maxBars\":[{\"validateMaxBars\":0}],\"stack\":[{\"validateStack\":0}],\"scale\":[{\"validateScaling\":0}],\"axisLabelsMode\":[{\"validateAxisLabelsMode\":0}],\"lineFullWidth\":[{\"validateLineFullWidth\":0}],\"showCategories\":[{\"validateShowCategories\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"showOverlayAvg\":[{\"validateShowOverlayAvg\":0}],\"showOverlayMedian\":[{\"validateShowOverlayMedian\":0}]}]]],[\"bn-asset\",[[1,\"bn-asset\",{\"name\":[1]}]]],[\"bn-component-style\",[[0,\"bn-component-style\",{\"name\":[1]}]]],[\"bn-dataset\",[[0,\"bn-dataset\",{\"name\":[1],\"datasources\":[1],\"static\":[4]},null,{\"name\":[{\"nameUpdated\":0}]}]]],[\"bn-grid\",[[257,\"bn-grid\",{\"chartTitle\":[1,\"chart-title\"],\"rowHeaders\":[1,\"row-headers\"],\"columnHeaders\":[1,\"column-headers\"],\"showRowHeaders\":[1,\"show-row-headers\"],\"showColumnHeaders\":[1,\"show-column-headers\"],\"showBorders\":[1,\"show-borders\"],\"rowHeaderWidth\":[1,\"row-header-width\"],\"cellGap\":[1,\"cell-gap\"],\"gridConfig\":[32]},null,{\"rowHeaders\":[{\"validateRowHeaders\":0}],\"columnHeaders\":[{\"validateColumnHeaders\":0}],\"showRowHeaders\":[{\"validateShowRowHeaders\":0}],\"showColumnHeaders\":[{\"validateShowColumnHeaders\":0}],\"showBorders\":[{\"validateShowBorders\":0}]}]]],[\"bn-image\",[[1,\"bn-image\",{\"source\":[1]}]]],[\"bn-internationalization\",[[0,\"bn-internationalization\",{\"code\":[1],\"namespace\":[1]}]]],[\"bn-template\",[[257,\"bn-template\",{\"templateId\":[1,\"template-id\"]}]]],[\"bn-text\",[[1,\"bn-text\",{\"value\":[1],\"scale\":[1],\"data\":[32]},null,{\"value\":[{\"validateValue\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-tree\",[[257,\"bn-tree\",{\"edges\":[1],\"direction\":[1],\"levelSpacing\":[2,\"level-spacing\"],\"nodeSpacing\":[2,\"node-spacing\"],\"edgeStyle\":[1,\"edge-style\"],\"showOperators\":[1,\"show-operators\"],\"treeConfig\":[32],\"layout\":[32],\"nodeRects\":[32],\"svgWidth\":[32],\"svgHeight\":[32]},null,{\"edges\":[{\"validateEdgesProp\":0}],\"direction\":[{\"validateDirection\":0}],\"levelSpacing\":[{\"validateLevelSpacing\":0}],\"nodeSpacing\":[{\"validateNodeSpacing\":0}],\"edgeStyle\":[{\"validateEdgeStyle\":0}],\"showOperators\":[{\"validateShowOperators\":0}]}]]],[\"editor-companion\",[[0,\"editor-companion\",{\"internationalizationKeys\":[64],\"getDistinctFromDataSource\":[64],\"getDistinctFromDataset\":[64]}]]],[\"bn-card\",[[257,\"bn-card\"]]],[\"bn-message\",[[1,\"bn-message\",{\"text\":[1025],\"image\":[1]}]]],[\"ibcs-chart-structure\",[[1,\"ibcs-chart-structure\",{\"data\":[16],\"chartTitle\":[1,\"chart-title\"],\"scenarios\":[16],\"variances\":[16],\"hideCategories\":[4,\"hide-categories\"],\"pixelPerUnit\":[2,\"pixel-per-unit\"],\"pixelPerPercentage\":[2,\"pixel-per-percentage\"],\"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]}]]],[\"ibcs-chart-time\",[[1,\"ibcs-chart-time\",{\"data\":[16],\"chartTitle\":[1,\"chart-title\"],\"scenarios\":[16],\"variances\":[16],\"hideAxisLabels\":[4,\"hide-axis-labels\"],\"pixelPerUnit\":[2,\"pixel-per-unit\"],\"pixelPerPercentage\":[2,\"pixel-per-percentage\"],\"limit\":[2],\"leftSideOffsetForHorizontalSync\":[2,\"left-side-offset-for-horizontal-sync\"],\"styles\":[1040],\"i18n\":[1040],\"order\":[16],\"level\":[1],\"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],\"parentDimensions\":[16]}]]],[\"bn-context_5\",[[1,\"bn-table\",{\"scale\":[1],\"tableTitle\":[1,\"table-title\"],\"filter\":[1],\"measureUnit\":[1,\"measure-unit\"],\"scenarios\":[1],\"variances\":[1],\"barColumns\":[1,\"bar-columns\"],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"dataFormat\":[1,\"data-format\"],\"grouped\":[1],\"showMeasureScale\":[1,\"show-measure-scale\"],\"showGroupTitle\":[1,\"show-group-title\"],\"type\":[1],\"limit\":[2],\"thereof\":[1],\"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],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scale\":[{\"validateScaling\":0}],\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"barColumns\":[{\"validateBarColumns\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"dataFormat\":[{\"validateDataFormat\":0}],\"grouped\":[{\"validateGrouped\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"showGroupTitle\":[{\"validateShowGroupTitle\":0}],\"type\":[{\"validateType\":0}],\"limit\":[{\"validateLimit\":0}],\"thereof\":[{\"validateThereOf\":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}]}],[257,\"bn-context\",{\"locale\":[1]},null,{\"locale\":[{\"setLocale\":0}]}],[0,\"bn-datasource\",{\"name\":[1]}],[257,\"bn-page\",{\"format\":[1],\"orientation\":[1]},null,{\"format\":[{\"validateFormat\":0}],\"orientation\":[{\"validateOrientation\":0}]}],[1,\"ibcs-table\",{\"data\":[16],\"tableTitle\":[1,\"table-title\"],\"scenarios\":[16],\"scenariosDataFormat\":[1,\"scenarios-data-format\"],\"grouped\":[4],\"limit\":[2],\"showGroupTitle\":[4,\"show-group-title\"],\"thereof\":[16],\"partof\":[16],\"order\":[16],\"categorythereof\":[16],\"type\":[1],\"categoryWidth\":[1,\"category-width\"],\"dataFormatDigits\":[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],\"unitScaling\":[2,\"unit-scaling\"],\"percentageScaling\":[2,\"percentage-scaling\"],\"scaleFactor\":[2,\"scale-factor\"]}]]],[\"bn-body_4\",[[1,\"bn-title\",{\"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\"],[1,\"bn-footer\",{\"pageNumber\":[1026,\"page-number\"],\"text\":[1025],\"code\":[1025],\"displayPageNumber\":[4,\"display-page-number\"]}],[1,\"ibcs-title\",{\"businessUnit\":[1537,\"business-unit\"],\"scenarios\":[16],\"measures\":[16],\"timeperiod\":[16],\"intervalSpanLimit\":[2,\"interval-span-limit\"],\"order\":[16],\"i18n\":[1040],\"i18nMode\":[1,\"i18n-mode\"],\"setBusinessUnit\":[64],\"setProps\":[64]}]]]]"), options);
|
|
8
|
+
return bootstrapLazy(JSON.parse("[[\"bn-layout-page\",[[257,\"bn-layout-page\",{\"styles\":[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\"],\"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\"],\"getNumberOfSlot\":[64]}]]],[\"bn-layout-card\",[[257,\"bn-layout-card\",{\"styles\":[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\"],\"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\"],\"getNumberOfSlot\":[64]}]]],[\"bn-chart-structure\",[[1,\"bn-chart-structure\",{\"chartTitle\":[1,\"chart-title\"],\"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\":[1,\"show-categories\"],\"measureScale\":[1,\"measure-scale\"],\"showMeasureScale\":[1,\"show-measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"stack\":[1],\"scale\":[1],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"level\":[{\"validateLevel\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"limit\":[{\"validateLimit\":0}],\"showCategories\":[{\"validateShowCategories\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"stack\":[{\"validateStack\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-chart-time\",[[1,\"bn-chart-time\",{\"chartTitle\":[1,\"chart-title\"],\"filter\":[1],\"scenarios\":[1],\"variances\":[1],\"syncSpaceLeft\":[2,\"sync-space-left\"],\"limit\":[2],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"level\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"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\":[1,\"line-full-width\"],\"showCategories\":[1,\"show-categories\"],\"measureScale\":[1,\"measure-scale\"],\"showMeasureScale\":[1,\"show-measure-scale\"],\"showOverlayAvg\":[1,\"show-overlay-avg\"],\"showOverlayMedian\":[1,\"show-overlay-median\"],\"measureUnit\":[1,\"measure-unit\"],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"syncSpaceLeft\":[{\"validateLeftSync\":0}],\"limit\":[{\"validateLimit\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"level\":[{\"validateLevel\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"dateInterval\":[{\"validateDateInterval\":0}],\"chartMode\":[{\"validateChartMode\":0}],\"maxBars\":[{\"validateMaxBars\":0}],\"stack\":[{\"validateStack\":0}],\"scale\":[{\"validateScaling\":0}],\"axisLabelsMode\":[{\"validateAxisLabelsMode\":0}],\"lineFullWidth\":[{\"validateLineFullWidth\":0}],\"showCategories\":[{\"validateShowCategories\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"showOverlayAvg\":[{\"validateShowOverlayAvg\":0}],\"showOverlayMedian\":[{\"validateShowOverlayMedian\":0}]}]]],[\"bn-asset\",[[1,\"bn-asset\",{\"name\":[1]}]]],[\"bn-component-style\",[[0,\"bn-component-style\",{\"name\":[1]}]]],[\"bn-dataset\",[[0,\"bn-dataset\",{\"name\":[1],\"datasources\":[1],\"static\":[4]},null,{\"name\":[{\"nameUpdated\":0}]}]]],[\"bn-grid\",[[257,\"bn-grid\",{\"chartTitle\":[1,\"chart-title\"],\"rowHeaders\":[1,\"row-headers\"],\"columnHeaders\":[1,\"column-headers\"],\"showRowHeaders\":[1,\"show-row-headers\"],\"showColumnHeaders\":[1,\"show-column-headers\"],\"showBorders\":[1,\"show-borders\"],\"rowHeaderWidth\":[1,\"row-header-width\"],\"cellGap\":[1,\"cell-gap\"],\"gridConfig\":[32]},null,{\"rowHeaders\":[{\"validateRowHeaders\":0}],\"columnHeaders\":[{\"validateColumnHeaders\":0}],\"showRowHeaders\":[{\"validateShowRowHeaders\":0}],\"showColumnHeaders\":[{\"validateShowColumnHeaders\":0}],\"showBorders\":[{\"validateShowBorders\":0}]}]]],[\"bn-image\",[[1,\"bn-image\",{\"source\":[1]}]]],[\"bn-internationalization\",[[0,\"bn-internationalization\",{\"code\":[1],\"namespace\":[1]}]]],[\"bn-template\",[[257,\"bn-template\",{\"templateId\":[1,\"template-id\"]}]]],[\"bn-text\",[[1,\"bn-text\",{\"value\":[1],\"scale\":[1],\"data\":[32]},null,{\"value\":[{\"validateValue\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-tree\",[[257,\"bn-tree\",{\"edges\":[1],\"direction\":[1],\"levelSpacing\":[2,\"level-spacing\"],\"nodeSpacing\":[2,\"node-spacing\"],\"edgeStyle\":[1,\"edge-style\"],\"showOperators\":[1,\"show-operators\"],\"treeConfig\":[32],\"layout\":[32],\"nodeRects\":[32],\"svgWidth\":[32],\"svgHeight\":[32]},null,{\"edges\":[{\"validateEdgesProp\":0}],\"direction\":[{\"validateDirection\":0}],\"levelSpacing\":[{\"validateLevelSpacing\":0}],\"nodeSpacing\":[{\"validateNodeSpacing\":0}],\"edgeStyle\":[{\"validateEdgeStyle\":0}],\"showOperators\":[{\"validateShowOperators\":0}]}]]],[\"editor-companion\",[[0,\"editor-companion\",{\"internationalizationKeys\":[64],\"getDistinctFromDataSource\":[64],\"getDistinctFromDataset\":[64]}]]],[\"bn-card\",[[257,\"bn-card\"]]],[\"bn-message\",[[1,\"bn-message\",{\"text\":[1025],\"image\":[1]}]]],[\"ibcs-chart-structure\",[[1,\"ibcs-chart-structure\",{\"data\":[16],\"chartTitle\":[1,\"chart-title\"],\"scenarios\":[16],\"variances\":[16],\"hideCategories\":[4,\"hide-categories\"],\"pixelPerUnit\":[2,\"pixel-per-unit\"],\"pixelPerPercentage\":[2,\"pixel-per-percentage\"],\"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]}]]],[\"ibcs-chart-time\",[[1,\"ibcs-chart-time\",{\"data\":[16],\"chartTitle\":[1,\"chart-title\"],\"scenarios\":[16],\"variances\":[16],\"hideAxisLabels\":[4,\"hide-axis-labels\"],\"pixelPerUnit\":[2,\"pixel-per-unit\"],\"pixelPerPercentage\":[2,\"pixel-per-percentage\"],\"limit\":[2],\"leftSideOffsetForHorizontalSync\":[2,\"left-side-offset-for-horizontal-sync\"],\"styles\":[1040],\"i18n\":[1040],\"order\":[16],\"level\":[1],\"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],\"parentDimensions\":[16]}]]],[\"bn-context_5\",[[1,\"bn-table\",{\"scale\":[1],\"tableTitle\":[1,\"table-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\":[1],\"showMeasureScale\":[1,\"show-measure-scale\"],\"showGroupTitle\":[1,\"show-group-title\"],\"type\":[1],\"limit\":[2],\"thereof\":[1],\"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],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scale\":[{\"validateScaling\":0}],\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"barColumns\":[{\"validateBarColumns\":0}],\"barColumnWidth\":[{\"validateBarColumnWidth\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"dataFormat\":[{\"validateDataFormat\":0}],\"grouped\":[{\"validateGrouped\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"showGroupTitle\":[{\"validateShowGroupTitle\":0}],\"type\":[{\"validateType\":0}],\"limit\":[{\"validateLimit\":0}],\"thereof\":[{\"validateThereOf\":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}]}],[257,\"bn-context\",{\"locale\":[1]},null,{\"locale\":[{\"setLocale\":0}]}],[0,\"bn-datasource\",{\"name\":[1]}],[257,\"bn-page\",{\"format\":[1],\"orientation\":[1]},null,{\"format\":[{\"validateFormat\":0}],\"orientation\":[{\"validateOrientation\":0}]}],[1,\"ibcs-table\",{\"data\":[16],\"tableTitle\":[1,\"table-title\"],\"scenarios\":[16],\"scenariosDataFormat\":[1,\"scenarios-data-format\"],\"grouped\":[4],\"limit\":[2],\"showGroupTitle\":[4,\"show-group-title\"],\"thereof\":[16],\"partof\":[16],\"order\":[16],\"categorythereof\":[16],\"type\":[1],\"categoryWidth\":[1,\"category-width\"],\"dataFormatDigits\":[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],\"barColumnMaxWidth\":[2,\"bar-column-max-width\"],\"unitScaling\":[2,\"unit-scaling\"],\"percentageScaling\":[2,\"percentage-scaling\"],\"scaleFactor\":[2,\"scale-factor\"]}]]],[\"bn-body_4\",[[1,\"bn-title\",{\"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\"],[1,\"bn-footer\",{\"pageNumber\":[1026,\"page-number\"],\"text\":[1025],\"code\":[1025],\"displayPageNumber\":[4,\"display-page-number\"]}],[1,\"ibcs-title\",{\"businessUnit\":[1537,\"business-unit\"],\"scenarios\":[16],\"measures\":[16],\"timeperiod\":[16],\"intervalSpanLimit\":[2,\"interval-span-limit\"],\"order\":[16],\"i18n\":[1040],\"i18nMode\":[1,\"i18n-mode\"],\"setBusinessUnit\":[64],\"setProps\":[64]}]]]]"), options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as Scenarios, g as Sentiments, h as DataFormat,
|
|
2
|
-
import { D as DateDistance, a as DateLink } from './DateStringFactory-
|
|
1
|
+
import { f as Scenarios, g as Sentiments, T as TableBarColumnWidth, h as DataFormat, i as TableType, a as OrderColumn, O as OrderDirection, M as MeasureType, j as TableCategoryWidth, A as AggregationLevel, c as AxisLabelsMode } from './Order-sqjrku2z.js';
|
|
2
|
+
import { D as DateDistance, a as DateLink } from './DateStringFactory-XWdUjsn8.js';
|
|
3
3
|
import { f as forceUpdate, g as getElement } from './index-JNHhIe7t.js';
|
|
4
4
|
import { r as runIfExisits } from './withHasError-B3QX2emi.js';
|
|
5
5
|
|
|
@@ -186,6 +186,9 @@ function isValidMeasureScale(value) {
|
|
|
186
186
|
function isTableCategoryWidth(value) {
|
|
187
187
|
return (value === null || value === void 0 ? void 0 : value.toUpperCase().trim()) in TableCategoryWidth;
|
|
188
188
|
}
|
|
189
|
+
function isTableBarColumnWidth(value) {
|
|
190
|
+
return (value === null || value === void 0 ? void 0 : value.toUpperCase().trim()) in TableBarColumnWidth;
|
|
191
|
+
}
|
|
189
192
|
function validateColumnThereOfJsonStr(value) {
|
|
190
193
|
if (isBlankInput(value)) {
|
|
191
194
|
return [];
|
|
@@ -490,4 +493,4 @@ const withStyled = (component) => {
|
|
|
490
493
|
};
|
|
491
494
|
};
|
|
492
495
|
|
|
493
|
-
export { validateVariancesList as a, isValidLevel as b, validateOrderList as c, isValidDirection as d, isValidInteger as e, isValidBoolean as f, isValidMeasureScale as g, validateStackConfig as h, isValidNumber as i, isBlankInput as j, isValidDateFormat as k, isValidAxisLabelsMode as l, validateMeasureList as m, isValidDate as n, isValidDateLink as o,
|
|
496
|
+
export { validateVariancesList as a, isValidLevel as b, validateOrderList as c, isValidDirection as d, isValidInteger as e, isValidBoolean as f, isValidMeasureScale as g, validateStackConfig as h, isValidNumber as i, isBlankInput as j, isValidDateFormat as k, isValidAxisLabelsMode as l, validateMeasureList as m, isValidDate as n, isValidDateLink as o, isTableBarColumnWidth as p, isValidDataFormat as q, isValidTableType as r, validateThereOfJsonStr as s, validatePartOfJsonStr as t, isValidMeasureType as u, validateScenarioList as v, withStyled as w, isTableCategoryWidth as x, validateColumnThereOfJsonStr as y };
|
|
@@ -124,14 +124,17 @@ export declare class Table {
|
|
|
124
124
|
readonly barColumns: string;
|
|
125
125
|
validateBarColumns(newValue: string): void;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
|
|
132
|
-
|
|
127
|
+
* Set width of bar chart columns. Controls the max bar/pin width in pixels.
|
|
128
|
+
* <br /><br />
|
|
129
|
+
* values:<br />
|
|
130
|
+
* ``` w5 // w10 // w15 // w20 // w25 // w30 // w40 // w60 // w80 // w100 ```
|
|
131
|
+
*/
|
|
132
|
+
barColumnWidth: string;
|
|
133
|
+
validateBarColumnWidth(newValue: string): void;
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated Bars now scale proportionally via column statistics. Kept for backward compatibility.
|
|
133
136
|
* <br /><br />
|
|
134
|
-
*
|
|
137
|
+
* Scaling for absolute variance bar charts (ΔPY).
|
|
135
138
|
* <br /><br />
|
|
136
139
|
* Default: 0.01
|
|
137
140
|
*/
|
|
@@ -363,6 +366,7 @@ export declare class Table {
|
|
|
363
366
|
prepareShowMeasureScale(): boolean;
|
|
364
367
|
prepareMeasureUnit(): string;
|
|
365
368
|
private prepareFilter;
|
|
369
|
+
private prepareBarColumnWidth;
|
|
366
370
|
private prepareBarColumns;
|
|
367
371
|
private prepareUnitScaling;
|
|
368
372
|
private preparePercentageScaling;
|
|
@@ -19,7 +19,9 @@ export interface CellBarChartStyles {
|
|
|
19
19
|
fontColor: string;
|
|
20
20
|
fontSize: number;
|
|
21
21
|
fontFamily: string;
|
|
22
|
+
/** @deprecated No longer used internally — bars now scale proportionally via columnStats.absMax */
|
|
22
23
|
unitScaling: number;
|
|
24
|
+
/** @deprecated No longer used internally — pins now scale proportionally via columnStats.absMax */
|
|
23
25
|
percentageScaling: number;
|
|
24
26
|
scaleFactor: number;
|
|
25
27
|
}
|
|
@@ -32,6 +34,7 @@ export interface CellBarChartProps {
|
|
|
32
34
|
isPositiveGood: boolean;
|
|
33
35
|
formattedValue?: string;
|
|
34
36
|
measureScale?: number;
|
|
37
|
+
maxBarWidth?: number;
|
|
35
38
|
styles?: CellBarChartStyles;
|
|
36
39
|
}
|
|
37
40
|
/**
|
|
@@ -556,6 +556,11 @@ export namespace Components {
|
|
|
556
556
|
* to the inner `ibcs-table` element.
|
|
557
557
|
*/
|
|
558
558
|
interface BnTable {
|
|
559
|
+
/**
|
|
560
|
+
* Set width of bar chart columns. Controls the max bar/pin width in pixels. <br /><br /> values:<br /> ``` w5 // w10 // w15 // w20 // w25 // w30 // w40 // w60 // w80 // w100 ```
|
|
561
|
+
* @default "w30"
|
|
562
|
+
*/
|
|
563
|
+
"barColumnWidth": string;
|
|
559
564
|
/**
|
|
560
565
|
* List of variance column names to render as bar charts instead of numbers. <br /><br /> Absolute variances (d_*) render as horizontal bar charts. Relative variances (dr_*) render as pin/dot charts. <br /><br /> example:<br /> ```dac1_pp1_pos,drac1_pp1_pos```
|
|
561
566
|
*/
|
|
@@ -670,7 +675,7 @@ export namespace Components {
|
|
|
670
675
|
*/
|
|
671
676
|
"type": string;
|
|
672
677
|
/**
|
|
673
|
-
*
|
|
678
|
+
* @deprecated Bars now scale proportionally via column statistics. Kept for backward compatibility. <br /><br /> Scaling for absolute variance bar charts (ΔPY). <br /><br /> Default: 0.01
|
|
674
679
|
* @default 0.01
|
|
675
680
|
*/
|
|
676
681
|
"unitScaling": string | number;
|
|
@@ -1000,6 +1005,10 @@ export namespace Components {
|
|
|
1000
1005
|
* not be used directly; use `bn-table` instead.
|
|
1001
1006
|
*/
|
|
1002
1007
|
interface IbcsTable {
|
|
1008
|
+
/**
|
|
1009
|
+
* @default 30
|
|
1010
|
+
*/
|
|
1011
|
+
"barColumnMaxWidth": number;
|
|
1003
1012
|
/**
|
|
1004
1013
|
* @default []
|
|
1005
1014
|
*/
|
|
@@ -1921,6 +1930,11 @@ declare namespace LocalJSX {
|
|
|
1921
1930
|
* to the inner `ibcs-table` element.
|
|
1922
1931
|
*/
|
|
1923
1932
|
interface BnTable {
|
|
1933
|
+
/**
|
|
1934
|
+
* Set width of bar chart columns. Controls the max bar/pin width in pixels. <br /><br /> values:<br /> ``` w5 // w10 // w15 // w20 // w25 // w30 // w40 // w60 // w80 // w100 ```
|
|
1935
|
+
* @default "w30"
|
|
1936
|
+
*/
|
|
1937
|
+
"barColumnWidth"?: string;
|
|
1924
1938
|
/**
|
|
1925
1939
|
* List of variance column names to render as bar charts instead of numbers. <br /><br /> Absolute variances (d_*) render as horizontal bar charts. Relative variances (dr_*) render as pin/dot charts. <br /><br /> example:<br /> ```dac1_pp1_pos,drac1_pp1_pos```
|
|
1926
1940
|
*/
|
|
@@ -2035,7 +2049,7 @@ declare namespace LocalJSX {
|
|
|
2035
2049
|
*/
|
|
2036
2050
|
"type"?: string;
|
|
2037
2051
|
/**
|
|
2038
|
-
*
|
|
2052
|
+
* @deprecated Bars now scale proportionally via column statistics. Kept for backward compatibility. <br /><br /> Scaling for absolute variance bar charts (ΔPY). <br /><br /> Default: 0.01
|
|
2039
2053
|
* @default 0.01
|
|
2040
2054
|
*/
|
|
2041
2055
|
"unitScaling"?: string | number;
|
|
@@ -2362,6 +2376,10 @@ declare namespace LocalJSX {
|
|
|
2362
2376
|
* not be used directly; use `bn-table` instead.
|
|
2363
2377
|
*/
|
|
2364
2378
|
interface IbcsTable {
|
|
2379
|
+
/**
|
|
2380
|
+
* @default 30
|
|
2381
|
+
*/
|
|
2382
|
+
"barColumnMaxWidth"?: number;
|
|
2365
2383
|
/**
|
|
2366
2384
|
* @default []
|
|
2367
2385
|
*/
|
|
@@ -2662,6 +2680,7 @@ declare namespace LocalJSX {
|
|
|
2662
2680
|
"scenarios": string;
|
|
2663
2681
|
"variances": string;
|
|
2664
2682
|
"barColumns": string;
|
|
2683
|
+
"barColumnWidth": string;
|
|
2665
2684
|
"unitScaling": string;
|
|
2666
2685
|
"percentageScaling": string;
|
|
2667
2686
|
"dataFormat": string;
|
|
@@ -2756,6 +2775,7 @@ declare namespace LocalJSX {
|
|
|
2756
2775
|
"showMeasureScale": boolean;
|
|
2757
2776
|
"measureType": MeasureType;
|
|
2758
2777
|
"filter": string;
|
|
2778
|
+
"barColumnMaxWidth": number;
|
|
2759
2779
|
"unitScaling": number;
|
|
2760
2780
|
"percentageScaling": number;
|
|
2761
2781
|
"scaleFactor": number;
|
|
@@ -75,6 +75,21 @@ export declare enum TableCategoryWidth {
|
|
|
75
75
|
W10 = "w10",
|
|
76
76
|
W5 = "w5"
|
|
77
77
|
}
|
|
78
|
+
/** Width preset for inline bar/pin chart columns. Value = max bar width in em. */
|
|
79
|
+
export declare enum TableBarColumnWidth {
|
|
80
|
+
W5 = "w5",
|
|
81
|
+
W10 = "w10",
|
|
82
|
+
W15 = "w15",
|
|
83
|
+
W20 = "w20",
|
|
84
|
+
W25 = "w25",
|
|
85
|
+
W30 = "w30",
|
|
86
|
+
W40 = "w40",
|
|
87
|
+
W60 = "w60",
|
|
88
|
+
W80 = "w80",
|
|
89
|
+
W100 = "w100"
|
|
90
|
+
}
|
|
91
|
+
/** Maps TableBarColumnWidth presets to max bar width in em. */
|
|
92
|
+
export declare const BAR_COLUMN_WIDTH_EM: Record<TableBarColumnWidth, number>;
|
|
78
93
|
/**
|
|
79
94
|
* Three-level row hierarchy for grouping and drill-down: rowGroup > category > subCategory.
|
|
80
95
|
* Index variants (e.g. ROWGROUPINDEX) provide stable numeric sort keys that preserve
|
|
@@ -46,6 +46,7 @@ export declare function isValidMeasureScale(value: string): boolean;
|
|
|
46
46
|
export declare function validateI18nString(value: string): string[];
|
|
47
47
|
export declare function validateStylesString(value: string): string[];
|
|
48
48
|
export declare function isTableCategoryWidth(value: string): boolean;
|
|
49
|
+
export declare function isTableBarColumnWidth(value: string): boolean;
|
|
49
50
|
export declare function validateColumnThereOfJsonStr(value: string): string[];
|
|
50
51
|
export declare function validateStackConfig(value: string): string[];
|
|
51
52
|
export declare function isValidFontSize(_value: string): boolean;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,H as e,g as s}from"./p-JNHhIe7t.js";import{b as o,g as n,a as r}from"./p-DRikHQE-.js";import{w as a}from"./p-CYjZRKdI.js";import{w as l}from"./p-tzFCK9qn.js";import{w as h}from"./p-DG-1MR_T.js";import{j as d,w as c,v as p,a as u,i as f,p as m,f as v,q as g,e as w,r as b,s as $,c as y,d as R,t as O,g as S,u as E,x as M}from"./p-DyRaC0MB.js";import{w as T}from"./p-BSfqOkN_.js";import{w as U,g as _,p as G}from"./p-DVMu6dEy.js";import{w as x}from"./p-CRLgp9-v.js";import{h as C,O as N,a as D,I as L,i as P,M as k,e as A,d as F,j as B}from"./p-DdexOqTs.js";import{F as W,Q as Y,V as H}from"./p-1jFf17Vj.js";import{a as I}from"./p-BYmPQYxx.js";import{I as j,S as z}from"./p--PSoPbDM.js";import{D as V,S as J,a as Q,b as q}from"./p-DVo6aZUE.js";import"./p-DgfL-ffj.js";import"./p-BFTU3MAI.js";const K=class{constructor(i){t(this,i),this.currentPageUpdate=void 0,a(this),this.errors=l(this)}setLocale(t){this.stores.context.state.locale=t}connectedCallback(){this.stores=o(this.element),this.locale&&(this.stores.context.state.locale=this.locale),this.currentPageUpdate=setTimeout((()=>{this.element.querySelectorAll("bn-page, bn-layout-page").forEach(((t,i)=>{if("bn-layout-page"===t.localName)t.setAttribute("page-number",(i+1).toString());else{const e=t.querySelector("bn-footer");e&&e.setAttribute("page-number",(i+1).toString())}}))}),250)}disconnectedCallback(){this.currentPageUpdate&&clearTimeout(this.currentPageUpdate)}componentWillLoad(){}componentDidLoad(){}componentShouldUpdate(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}render(){return i(e,{key:"b92019b909e271225baca2cf740c8301e324164e"},i("slot",{key:"87bac4bb29bca32d961afe31355dc1bd48fff0f8"}))}get element(){return s(this)}static get watchers(){return{locale:[{setLocale:0}]}}};K.style=":host{display:block}";const Z=class{constructor(i){t(this,i),a(this),this.errors=l(this),h(this,(t=>{this.stores||(this.stores=n(this.element));try{const i=JSON.parse(t);this.stores.datasources.set(this.name,i)}catch(i){console.error("Error parsing datasource",i,t),this.stores.datasources.set(this.name,[])}}))}render(){return i(e,{key:"e47e62c941bb7954cabe331cb500a7d2fdd7c487"})}get element(){return s(this)}};Z.style="bn-datasource{display:none}";const X=["xga","hd","full-hd","4k","4k2k","a4","a3","a2","a1","a0","letter","legal"],tt=["landscape","portrait"],it=class{constructor(i){t(this,i),a(this),this.errors=l(this),this.componentStyle=T(this)}validateFormat(t){const i="ERR_format";d(t)||X.includes(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:`format: invalid value '${t}' is not supported. Valid values: ${X.join(", ")}`})}validateOrientation(t){const i="ERR_orientation";d(t)||tt.includes(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:`orientation: invalid value '${t}' is not supported. Valid values: ${tt.join(", ")}`})}render(){return i(e,{key:"b4d682a8f6e83f77c58236265eaf9d1327809c6f",format:this.format,orientation:this.orientation,style:this.prepareStyle()},i("slot",{key:"ef49c43c1f8926c4c968b752608627adbe330d6c"}))}prepareStyle(){return{"font-family":this.componentStyle((t=>t.global.fontFamily)),"font-size":`${this.componentStyle((t=>t.global.fontSizePx))}px`,"--bn-font-family":this.componentStyle((t=>t.global.fontFamily))||"'Noto Sans', sans-serif","--bn-font-size":`${this.componentStyle((t=>t.global.fontSizePx))||13.3333}px`,"--bn-font-color":this.componentStyle((t=>t.global.fontColor))||"#000000","--bn-font-background":this.componentStyle((t=>t.global.fontBackgroundColor))||"#ffffff"}}get element(){return s(this)}static get watchers(){return{format:[{validateFormat:0}],orientation:[{validateOrientation:0}]}}};var et,st,ot,nt,rt;it.style=':host{background:var(--bn-font-background, white);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);height:768px;width:1024px;display:flex;flex-direction:column;page-break-after:always;overflow:hidden}:host([format=xga]){height:768px;width:1024px}:host([format=xga][orientation=portrait]){height:1024px;width:768px}:host([format=xga][orientation=landscape]){height:768px;width:1024px}:host([format=hd]){height:720px;width:1280px}:host([format=hd][orientation=portrait]){height:1280px;width:720px}:host([format=hd][orientation=landscape]){height:720px;width:1280px}:host([format=full_hd]){height:1080px;width:1920px}:host([format=full_hd][orientation=portrait]){height:1920px;width:1080px}:host([format=full_hd][orientation=landscape]){height:1080px;width:1920px}:host([format="4k"]){height:2160px;width:3840px}:host([format="4k"][orientation=portrait]){height:3840px;width:2160px}:host([format="4k"][orientation=landscape]){height:2160px;width:3840px}:host([format="4k2k"]){height:2160px;width:4096px}:host([format="4k2k"][orientation=portrait]){height:4096px;width:2160px}:host([format="4k2k"][orientation=landscape]){height:2160px;width:4096px}:host([format=a6]){height:5.83in;width:4.13in}:host([format=a6][orientation=portrait]){height:5.83in;width:4.13in}:host([format=a6][orientation=landscape]){height:4.13in;width:5.83in}:host([format=a5]){height:8.27in;width:5.83in}:host([format=a5][orientation=portrait]){height:8.27in;width:5.83in}:host([format=a5][orientation=landscape]){height:5.83in;width:8.27in}:host([format=a4]){height:11.6in;width:8.17in}:host([format=a4][orientation=portrait]){height:11.6in;width:8.17in}:host([format=a4][orientation=landscape]){height:8.17in;width:11.6in}:host([format=a3]){height:16.54in;width:11.7in}:host([format=a3][orientation=portrait]){height:16.54in;width:11.7in}:host([format=a3][orientation=landscape]){height:11.7in;width:16.54in}:host([format=a2]){height:23.4in;width:16.54in}:host([format=a2][orientation=portrait]){height:23.4in;width:16.54in}:host([format=a2][orientation=landscape]){height:16.54in;width:23.4in}:host([format=a1]){height:33.1in;width:23.4in}:host([format=a1][orientation=portrait]){height:33.1in;width:23.4in}:host([format=a1][orientation=landscape]){height:23.4in;width:33.1in}:host([format=a0]){height:46.8in;width:33.1in}:host([format=a0][orientation=portrait]){height:46.8in;width:33.1in}:host([format=a0][orientation=landscape]){height:33.1in;width:46.8in}:host([format=letter]){height:11in;width:8.5in}:host([format=letter][orientation=portrait]){height:11in;width:8.5in}:host([format=letter][orientation=landscape]){height:8.5in;width:11in}:host([format=legal]){height:14in;width:8.5in}:host([format=legal][orientation=portrait]){height:14in;width:8.5in}:host([format=legal][orientation=landscape]){height:8.5in;width:14in}:host([format=tabloid]){height:17in;width:11in}:host([format=tabloid][orientation=portrait]){height:17in;width:11in}:host([format=tabloid][orientation=landscape]){height:11in;width:17in}:host([format=ledger]){height:11in;width:17in}:host([format=ledger][orientation=portrait]){height:17in;width:11in}:host([format=ledger][orientation=landscape]){height:11in;width:17in}',function(t){t[t.ALL=-1]="ALL"}(et||(et={})),function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(st||(st={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(ot||(ot={})),function(t){t.ASC="asc",t.DESC="desc"}(nt||(nt={})),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"}(rt||(rt={}));const at=class{validateScaling(t){if(null==t||""===t||"none"===t||"auto"===t)return void this.errors.remove("ERR_scale");const i=Number(t);isNaN(i)||i<=0?this.errors.addOrReplace({id:"ERR_scale",type:"warning",message:`Invalid scale value: "${t}". Use "none", "auto", or a positive number.`}):this.errors.remove("ERR_scale")}constructor(i){t(this,i),this.data=[],this.datasetMeta=null,this.appliedScaleFactor=1,this.tableTitle="",this.filter="",this.measureUnit="",this.unitScaling=.01,this.percentageScaling=.5,this.pixelPerUnitGroupMap=new Map,this.dataFormat="decimal",this.grouped="false",this.showMeasureScale="false",this.showGroupTitle="true",this.type="list",this.limit=0,this.thereof="[]",this.partof="[]",this.order="category",this.orderDirection="asc",this.measureType="volume",this.measureScale="greatest",this.dataFormatDigitsDecimal=1,this.dataFormatDigitsPercent=2,this.categoryWidth="w15",this.columnthereof=null,this._autoScaleGuard=!1,c(this),a(this),this.errors=l(this),this.componentStyle=T(this),U(this,((t,i)=>{this.data=i||[]}),((t,i)=>{this.datasetMeta=i})),this.t=x(this).t}validateScenario(t){const i="ERR_scenarios",e=p(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"scenarios: invalid value(s) '"+(null==e?void 0:e.toString())+"' are not supported."}):this.errors.remove(i)}validateVariances(t){const i="ERR_variances",e=u(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"variances: invalid value(s) '"+JSON.stringify(e)+"' are not supported."}):this.errors.remove(i)}validateBarColumns(t){const i="ERR_barColumns";if(d(t))return void this.errors.remove(i);const e=u(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"barColumns: invalid value(s) '"+JSON.stringify(e)+"' are not supported."}):this.errors.remove(i)}validateUnitScaling(t){const i="ERR_unitScaling";f(t)||this.pixelPerUnitGroupMap.has(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"unitScaling: invalid value '"+t+"' is not supported."})}validatePercentageScaling(t){const i="ERR_percentageScaling";f(t)||this.pixelPerUnitGroupMap.has(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"percentageScaling: invalid value '"+t+"' is not supported."})}validateDataFormat(t){const i="ERR_dataFormat";m(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"dataFormat: invalid value(s) '"+(null==t?void 0:t.toString())+"' are not supported."})}validateGrouped(t){const i="ERR_grouped";v(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"grouped: invalid value(s) '"+(null==t?void 0:t.toString())+"' are not supported."})}validateShowMeasureScale(t){const i="ERR_grouped";v(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"showMeasureScale: invalid value(s) '"+(null==t?void 0:t.toString())+"' are not supported."})}validateShowGroupTitle(t){const i="ERR_showGroupTitle";v(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"showGroupTitle: invalid value(s) '"+(null==t?void 0:t.toString())+"' are not supported."})}validateType(t){const i="ERR_type";g(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"type: invalid value(s) '"+(null==t?void 0:t.toString())+"' are not supported."})}validateLimit(t){const i="ERR_limit";w(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"order: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateThereOf(t){const i="ERR_thereof",e=b(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"ThereOf: invalid value(s) '"+JSON.stringify(e)+"' are not supported."}):this.errors.remove(i)}validatePartOf(t){const i="ERR_partof",e=$(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"partof: invalid value(s) '"+JSON.stringify(e)+"' are not supported."}):this.errors.remove(i)}validateOrderList(t){const i="ERR_order",e=y(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"order: invalid value(s) '"+JSON.stringify(e)+"' are not supported."}):this.errors.remove(i)}validateOrderDirection(t){const i="ERR_orderDirection";R(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"orderDirection: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateMeasureType(t){const i="ERR_measureType";O(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"measureType: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateMeasureScale(t){const i="ERR_measureScale";S(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"measureScale: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateDataFormatDigitsDecimal(t){const i="ERR_dataFormatDigitsDecimal";w(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"dataFormatDigitsDecimal: invalid value(s) '"+t+"' are not supported."})}validateDateFormatDigitsPercent(t){const i="ERR_dataFormatDigitsPercent";w(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"dataFormatDigitsPercent: invalid value(s) '"+t+"' are not supported."})}validateCategoryWidth(t){const i="ERR_categoryWidth";E(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"categoryWidth: invalid value(s) '"+t+"' are not supported."})}validateColumnThereOf(t){const i=M(t),e="ERR_categorythereof";i.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"columnthereof: invalid value(s) '"+JSON.stringify(i)+"' are not supported."}):this.errors.remove(e)}componentWillLoad(){this.validateScenario(this.scenarios),this.validateVariances(this.variances),this.validateDataFormat(this.dataFormat),this.validateGrouped(this.grouped),this.validateShowGroupTitle(this.showGroupTitle),this.validateType(this.type),this.validateLimit(this.limit),this.validateThereOf(this.thereof),this.validatePartOf(this.partof),this.validateOrderDirection(this.orderDirection),this.validateOrderList(this.order),this.validateDataFormatDigitsDecimal(this.dataFormatDigitsDecimal),this.validateDateFormatDigitsPercent(this.dataFormatDigitsPercent),this.validateCategoryWidth(this.categoryWidth),this.validateMeasureType(this.measureType),this.validateMeasureScale(this.measureScale),this.validateColumnThereOf(this.columnthereof),this.validateShowMeasureScale(this.showMeasureScale),this.validateBarColumns(this.barColumns),this.validateUnitScaling(this.unitScaling),this.validatePercentageScaling(this.percentageScaling),this.validateScaling(this.scale)}disconnectedCallback(){this.unsubscribe()}componentDidRender(){var t,i;const{mode:e}=G(this.scale);if("auto"!==e&&"empty"!==e)return void(this._autoScaleGuard=!1);if(this._autoScaleGuard)return void(this._autoScaleGuard=!1);const s=this.element,{width:o}=_(s);if(o<=0)return;const n=this.componentStyle((t=>{var i;return(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}));s.style.setProperty("--bn-font-size",`${n}px`);const r=null===(t=s.shadowRoot)||void 0===t?void 0:t.querySelector("div"),a=null!==(i=null==r?void 0:r.scrollWidth)&&void 0!==i?i:s.scrollWidth;if(a<=o+1)return this.errors.remove("AUTO_scale"),void(1!==this.appliedScaleFactor&&(this._autoScaleGuard=!0,this.appliedScaleFactor=1));const l=(o-1)/a;s.style.setProperty("--bn-font-size",n*l+"px"),"empty"===e?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:`Auto-scaled table by factor ${l.toFixed(3)}`}):this.errors.remove("AUTO_scale"),Math.abs(l-this.appliedScaleFactor)>.001&&(this._autoScaleGuard=!0,this.appliedScaleFactor=l)}prepareDataFormat(){var t;return C[null===(t=this.dataFormat)||void 0===t?void 0:t.toUpperCase()]}prepareGrouped(){return"true"===this.grouped}prepareShowGroupTitle(){return"true"===this.showGroupTitle}prepareTableType(){var t;return ot[null===(t=this.type)||void 0===t?void 0:t.toUpperCase()]}prepareLimit(){return Math.floor(Number(this.limit)||0)}prepareThereOf(){return null==this.thereof||""===this.thereof.trim()?[]:JSON.parse(this.thereof)}preparePartOf(){return null==this.partof||""===this.partof.trim()?[]:JSON.parse(this.partof)}prepareOrder(){var t,i,e;const s="auto"===(null===(t=this.order)||void 0===t?void 0:t.trim().toLowerCase());let o=this.order;return s&&(null===(i=this.datasetMeta)||void 0===i?void 0:i.suggestedOrder)&&(o=this.datasetMeta.suggestedOrder),{hierarchy:o.split(",").map((t=>D[null==t?void 0:t.toUpperCase()])),direction:N[null===(e=this.orderDirection)||void 0===e?void 0:e.toUpperCase()]}}prepareI18nMode(){return L.META}prepareI18n(){const t=r,i=new Map(["in","category","operation","there_of","part_of","SUM_TOTAL"].map((t=>[t,this.t(".".concat(t))]))),e=new Map(t.map((t=>[t,this.t("global.".concat(t))])));return new Map([...e.entries(),...i.entries()])}prepareDataFormatDigits(){return{percent:this.dataFormatDigitsPercent,decimal:this.dataFormatDigitsDecimal}}prepareScenarios(){var t,i,e,s,o,n,r,a;const l="auto"===(null===(t=this.scenarios)||void 0===t?void 0:t.trim().toLowerCase());if((d(this.scenarios)||l)&&d(this.variances))return(null===(e=null===(i=this.datasetMeta)||void 0===i?void 0:i.availableScenarios)||void 0===e?void 0:e.length)>0?(l?this.errors.remove("AUTO_scenarios"):this.errors.addOrReplace({id:"AUTO_scenarios",type:"warning",message:`scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`}),this.datasetMeta.availableScenarios):[];let h=[];return l||d(this.scenarios)?(null===(o=null===(s=this.datasetMeta)||void 0===s?void 0:s.availableScenarios)||void 0===o?void 0:o.length)>0&&(l?this.errors.remove("AUTO_scenarios"):this.errors.addOrReplace({id:"AUTO_scenarios",type:"warning",message:`scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`}),h=h.concat(this.datasetMeta.availableScenarios)):(this.errors.remove("AUTO_scenarios"),h=h.concat(null===(n=this.scenarios)||void 0===n?void 0:n.split(","))),(null===(r=this.variances)||void 0===r?void 0:r.trim().length)>0&&(h=h.concat(null===(a=this.variances)||void 0===a?void 0:a.split(","))),h.map((t=>t.trim()))}prepareCategoryWidth(){var t;return d(this.categoryWidth)?P.INF:P[null===(t=this.categoryWidth)||void 0===t?void 0:t.toUpperCase()]}prepareMeasureScale(){return d(this.measureScale)?"GREATEST":["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(this.measureScale.trim())||"LEAST"===this.measureScale.trim().toUpperCase()?this.measureScale.trim():"GREATEST"}prepareMeasureType(){var t;return d(this.measureType)?k.VOLUME:k[null===(t=this.measureType)||void 0===t?void 0:t.toUpperCase()]}prepareColumnThereOf(){if(null==this.columnthereof||""===this.columnthereof.trim())return new Map;const t=JSON.parse(this.columnthereof),i=new Map;for(const[e,s]of Object.entries(t))!1===i.has(s.scenario)&&i.set(s.scenario,[]),i.get(s.scenario).push(s);return i}prepareTableTitle(){return""===this.tableTitle||null==this.tableTitle?"SUM_TOTAL":this.tableTitle}prepareShowMeasureScale(){return"true"===this.showMeasureScale}prepareMeasureUnit(){return""===this.measureUnit||null==this.measureUnit?"":this.measureUnit}prepareFilter(){return 0===this.filter.length?"":this.filter}prepareBarColumns(){return d(this.barColumns)?[]:this.barColumns.split(",").map((t=>t.trim()))}prepareUnitScaling(){return this.pixelPerUnitGroupMap.has(this.unitScaling)?this.pixelPerUnitGroupMap.get(this.unitScaling):Number(this.unitScaling)}preparePercentageScaling(){return this.pixelPerUnitGroupMap.has(this.percentageScaling)?this.pixelPerUnitGroupMap.get(this.percentageScaling):Number(this.percentageScaling)}getDataStructure(){return{ITableDataRow:{setName:{type:"string",isOptional:!1,description:""},date:{type:"string",isOptional:!1,description:""},operation:{type:"string",isOptional:!1,description:""},rowGroup:{type:"string",isOptional:!1,description:""},rowGroupIndex:{type:"number",isOptional:!1,description:""},category:{type:"string",isOptional:!1,description:""},categoryIndex:{type:"number",isOptional:!1,description:""},subCategory:{type:"string",isOptional:!1,description:""},subCategoryIndex:{type:"number",isOptional:!1,description:""},columnGroup:{type:"string",isOptional:!1,description:""},columnGroupIndex:{type:"number",isOptional:!1,description:""},columnSubGroup:{type:"string",isOptional:!1,description:""},columnSubGroupIndex:{type:"number",isOptional:!1,description:""},ac1:{type:"number",isOptional:!1,description:""},ac2:{type:"number",isOptional:!1,description:""},ac3:{type:"number",isOptional:!1,description:""},ac4:{type:"number",isOptional:!1,description:""},pp1:{type:"number",isOptional:!1,description:""},pp2:{type:"number",isOptional:!1,description:""},pp3:{type:"number",isOptional:!1,description:""},pp4:{type:"number",isOptional:!1,description:""},fc1:{type:"number",isOptional:!1,description:""},fc2:{type:"number",isOptional:!1,description:""},fc3:{type:"number",isOptional:!1,description:""},fc4:{type:"number",isOptional:!1,description:""},pl1:{type:"number",isOptional:!1,description:""},pl2:{type:"number",isOptional:!1,description:""},pl3:{type:"number",isOptional:!1,description:""},pl4:{type:"number",isOptional:!1,description:""}}}}getEffectiveScaleFactor(){const{mode:t,factor:i}=G(this.scale);return"factor"===t?i:"auto"===t||"empty"===t?this.appliedScaleFactor:1}getFontStyles(){const t=this.getEffectiveScaleFactor();return this.componentStyle((i=>{var e,s,o,n;const r=(null===(e=i.global)||void 0===e?void 0:e.fontSizePx)||13.3333;return{"--bn-font-family":(null===(s=i.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":r*t+"px","--bn-font-color":(null===(o=i.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(n=i.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}render(){const t=this.getFontStyles(),s=this.getEffectiveScaleFactor();return i(e,{key:"5434656c0626dc8aceea109e4f6ab795443a7c7b",style:t},i("div",{key:"a3d90ae3bce33b025bac95cc486aba1778907762"},i("ibcs-table",{key:"fbff577c7d0bf23f63f6d06edafd75e32a183b49",data:this.data,"table-title":this.prepareTableTitle(),scenarios:this.prepareScenarios(),"scenarios-data-format":this.prepareDataFormat(),grouped:this.prepareGrouped(),limit:this.prepareLimit(),showGroupTitle:this.prepareShowGroupTitle(),thereof:this.prepareThereOf(),partof:this.preparePartOf(),order:this.prepareOrder(),categorythereof:this.prepareColumnThereOf(),type:this.prepareTableType(),"category-width":this.prepareCategoryWidth(),dataFormatDigits:this.prepareDataFormatDigits(),i18n:this.prepareI18n(),"i18n-mode":this.prepareI18nMode(),"measure-scale":this.prepareMeasureScale(),"measure-type":this.prepareMeasureType(),"measure-unit":this.prepareMeasureUnit(),showMeasureScale:this.prepareShowMeasureScale(),filter:this.prepareFilter(),barColumns:this.prepareBarColumns(),unitScaling:this.prepareUnitScaling(),percentageScaling:this.preparePercentageScaling(),scaleFactor:s})))}get element(){return s(this)}static get watchers(){return{scale:[{validateScaling:0}],scenarios:[{validateScenario:0}],variances:[{validateVariances:0}],barColumns:[{validateBarColumns:0}],unitScaling:[{validateUnitScaling:0}],percentageScaling:[{validatePercentageScaling:0}],dataFormat:[{validateDataFormat:0}],grouped:[{validateGrouped:0}],showMeasureScale:[{validateShowMeasureScale:0}],showGroupTitle:[{validateShowGroupTitle:0}],type:[{validateType:0}],limit:[{validateLimit:0}],thereof:[{validateThereOf: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}]}}};at.style=":host{display:inline-block;position:relative;overflow:hidden}";class lt{constructor(t,i,e,s,o,n,r,a,l){this.prefixStyle="prefix",this.isBarChart=!1,this.key=t,this.index=i,this.value=e,this.prefix=n||"",this.cssStyle=s||"",this.prefixStyle=r||"prefix",this.type=o,this.mark=void 0,this.colSpan=a||1,this.measureScale=l||1}getAsHeaderList(){if(null==this.value)return[""];const t=[];for(const i of this.value.toString().split("<br/>"))t.push(i);return t}draw(t){let i=this.value;if("undefined"===i||void 0===i||null==i)return"";if(Number.isNaN(Number(i)))return i;if(""===this.type||void 0===this.type||null==this.type)return i;let e=t.percent,s=t.percent;return"decimal"===this.type&&(i=+i/this.measureScale,e=t.decimal,s=t.decimal),W.number(Number(i),this.type,e,s)}drawPrefix(){return null==this.prefix?"":this.prefix}}class ht{constructor(t,i,e){this.index=t,this.groupindex=i,this.type=e,this.cssStyle=this.initCssStyle(),this.elements=[]}initCssStyle(){switch(this.type){case rt.HEADER:return"groupheader";case rt.SEPERATORLINE:return"";case rt.DRILLELEMENT:return"ofit";case rt.PARTELEMENT:return"partof";case rt.STANDARD:return"";case rt.SUM:return"sum";default:return""}}getCells(){return this.elements}createElement(t,i,e,s,o,n,r,a,l,h=!1,d){let c=n;"category"===i&&null!=a&&(c=`category-${a.toString()}`),this.type===rt.HEADER?c="headerlabel":this.type===rt.SEPERATORLINE&&(c=i),this.type===rt.PARTELEMENT&&("percent"===s&&(t="-"),"category"!==i&&"operation"!==i&&(s="percent",c="")),"-"===t&&(c="");let p="prefix-first";r&&(p="prefix-second"),c=`${c} ${e}`;const u=new lt(i,this.elements.length,t,c,s,o,p,1,l);u.isBarChart=h,u.columnStats=d,this.elements.push(u)}}const dt={positive:{stroke:"#008f96",fill:"#008f96",fillpattern:"solid"},negative:{stroke:"#ff0000",fill:"#ff0000",fillpattern:"solid"},neutral:{stroke:"#808080",fill:"#808080",fillpattern:"outlined"},scenarios:{ac:{stroke:"#404040",fill:"#404040",fillpattern:"solid"},pp:{stroke:"#A6A6A6",fill:"#A6A6A6",fillpattern:"solid"},fc:{stroke:"#404040",fill:"#ffffff",fillpattern:"hatched"},pl:{stroke:"#404040",fill:"#ffffff",fillpattern:"outlined"}},fontColor:"#000000",fontSize:11,fontFamily:"'Noto Sans', sans-serif",unitScaling:.01,percentageScaling:.5,scaleFactor:1},ct="#666666";function pt(t,i){return`pattern-${t}-${i.replace("#","")}`}const ut=({styles:t})=>{const e=t.scaleFactor,s=6*e,o=[{id:pt("pos",t.positive.stroke),stroke:t.positive.stroke,fill:t.positive.fill},{id:pt("neg",t.negative.stroke),stroke:t.negative.stroke,fill:t.negative.fill},{id:pt("neu",t.neutral.stroke),stroke:t.neutral.stroke,fill:t.neutral.fill}];return i("defs",null,o.map((t=>i("pattern",{id:t.id,patternUnits:"userSpaceOnUse",width:s,height:s},i("rect",{width:s,height:s,fill:"#ffffff"}),i("line",{x1:"0",y1:s,x2:s,y2:"0",stroke:t.stroke,"stroke-width":1.5*e})))))};function ft(t,i,e=1){let s,o;const n=t>=0?"+":"";if(i)return s=100*t,n+Math.round(s).toString()+"%";{let i;return s=t/e,o=Math.abs(s),i=o>=1e9?(s/1e9).toFixed(o>=1e10?0:1)+"B":o>=1e6?(s/1e6).toFixed(o>=1e7?0:1)+"M":o>=1e3?(s/1e3).toFixed(o>=1e4?0:1)+"K":s.toFixed(o>=10?0:1),i=i.replace(/\.0([KMB]?)$/,"$1"),n+i}}function mt(t){const i=t.slice(0,2).toLowerCase();return["ac","pp","fc","pl"].includes(i)}function vt(t){const i=t.slice(0,2).toLowerCase();return"pp"===i?"pp":"fc"===i?"fc":"pl"===i?"pl":"ac"}function gt(t,i,e,s){return mt(t)?function(t,i){const e=vt(t);return i.scenarios[e]}(t,s):function(t,i,e){const s=t>=0;return i?s?e.positive:e.negative:s?e.negative:e.positive}(i,e,s)}const wt=t=>{const{value:e,scenario:s,height:o,isPositiveGood:n,formattedValue:r,measureScale:a,styles:l=dt}=t,h=l.scaleFactor,d=50*h,c=40*h,p=d+2*c+d,u=2*h,f=o-2*u,m=d+c,v=Math.abs(e)*l.unitScaling*h,g=Math.min(v,c),w=e>=0,b=w?m:m-g,$=u,y=gt(s,e,n,l),R=function(t,i){const e=t.fillpattern;return"hatched"===e?`url(#${pt(i,t.stroke)})`:"outlined"===e?"transparent":t.fill}(y,mt(s)?vt(s):n?w?"pos":"neg":w?"neg":"pos"),{stroke:O,strokeWidth:S}="outlined"===(E=y).fillpattern?{stroke:E.stroke,strokeWidth:1.5}:{stroke:"none",strokeWidth:0};var E;const M=r||ft(e,!1,a),T=w?m+g+4*h:m-g-4*h,U=w?"start":"end";return i("svg",{width:p,height:o,class:"cell-bar-chart absolute-variance",style:{overflow:"visible"}},i(ut,{styles:l}),i("line",{x1:m,y1:0,x2:m,y2:o,stroke:ct,"stroke-width":1*h}),g>0&&i("rect",{x:b,y:$,width:g,height:f,fill:R,stroke:O,"stroke-width":S*h}),i("text",{x:T,y:o/2,dy:"0.35em","text-anchor":U,fill:l.fontColor,"font-size":l.fontSize,"font-family":l.fontFamily},M))},bt=t=>{const{value:e,scenario:s,height:o,isPositiveGood:n,formattedValue:r,measureScale:a,styles:l=dt}=t,h=l.scaleFactor,d=25*h,c=2*d+10*h,p=c+70*h,u=c/2,f=o/2,m=100*Math.abs(e)*l.percentageScaling*h,v=Math.min(m,d),g=e>=0,w=g?u+v:u-v,b=gt(s,e,n,l),$=3*h,y=m>d,R=r||ft(e,!0,a),O=c+4*h;return i("svg",{width:p,height:o,class:"cell-bar-chart relative-variance",style:{overflow:"visible"}},i("line",{x1:u,y1:0,x2:u,y2:o,stroke:ct,"stroke-width":1*h}),!y&&i("circle",{cx:w,cy:f,r:$,fill:l.fontColor}),i("line",{x1:u,y1:f,x2:w,y2:f,stroke:b.fill,"stroke-width":2*h}),y&&g&&i("polygon",{points:`${c-2*h},${f} ${c-8*h},${f-3*h} ${c-8*h},${f+3*h}`,fill:b.fill}),y&&!g&&i("polygon",{points:`${2*h},${f} ${8*h},${f-3*h} ${8*h},${f+3*h}`,fill:b.fill}),i("text",{x:O,y:o/2,dy:"0.35em","text-anchor":"start",fill:l.fontColor,"font-size":l.fontSize,"font-style":"italic","font-family":l.fontFamily},R))},$t=t=>{const{value:e,columnStats:s,isRelative:o,styles:n=dt}=t;return null==e||isNaN(e)||!s||0===s.absMax?i("span",{class:"bar-chart-empty",style:{color:n.fontColor,fontStyle:"italic"}},"-"):i(o?bt:wt,Object.assign({},t))};class yt{constructor(t){I.fn.transformOperator=function(t){return"-"===t?-1:1},this.groups=[Y.CATEGORY,Y.CATEGORYINDEX],ot.OPT!==t.type&&ot.OPTNOTOTAL!==t.type||this.groups.unshift(Y.OPERATION),t.grouped&&(this.groups.push(Y.ROWGROUP),this.groups.push(Y.ROWGROUPINDEX))}toString(){return this.groups.map((t=>`${t}`)).toString()}noCategory(){return this.groups.filter((t=>t!==Y.CATEGORY))}toArray(){return this.groups}}class Rt{constructor(t,i){this.hasPartOf=!1,this.config=t,this.i18n=i}execute(t){if(0===t.length)return[];const i=[],e=[],s=[],o=this.config.scenarios.map((t=>this.translateScenarioSQL(t,!1,this.config.type))).toString(),n=this.config.scenarios.map((t=>this.translateScenarioSQL(t,!0,this.config.type))).toString(),r=this.getRelativeScenarios(),a=new yt(this.config),l=this.config.grouped?[Y.ROWGROUP,Y.ROWGROUPINDEX]:[];let h=["",""];return this.config.sortOrder.hierarchy.length>0&&(h=this.createOrderString(this.config.sortOrder)),this.hasPartOf=this.checkConfigForPartOf(),I(`SELECT COUNT(DISTINCT ${Y.CATEGORY}) as ${Y.TOTALROWCOUNT} ${l.length>0?","+l:""}\n FROM ? ${l.length>0?"GROUP BY "+l:""} \n ORDER BY ${h[0]}`,[t]).forEach((t=>{const s=t.rowGroup&&t.rowGroup.length>0?`WHERE ${Y.ROWGROUP} = '${t.rowGroup}'`:"";let r="";this.config.limit&&(r=`LIMIT ${this.config.limit}`),this.createGroupHeaderRow(t,i),this.createDataRow(i,t,a,o,s,h,r),this.createRestRow(t,i,a,o,s,h),this.createGroupSumRow(i,e,t,n,h)})),this.createTotalSumRow(i,e,n),i.forEach((i=>{try{s.push(I(i,[t]))}catch(t){console.error("DataQuery: SQL query execution failed",i,t)}})),this.detectNaNCells(this.config.scenarios,s),this.createThereOfDrillRows(o,h,t,s),this.createPartOfDrillRows(o,h,e,t,s),this.createThereOfDrillColumns(this.config.categoryThereOf,t,s),this.calculateColumnGroupRest(s,this.config.categoryThereOf),this.calculateRelativeVariances(s,r),s}detectNaNCells(t,i){i.forEach((i=>{i.map((i=>(t.forEach((t=>{const e=new H(t);!0===e.isValid?0!==i[e.base+"_cnt"]&&0!==i[e.delta+"_cnt"]||(i[t]=Number.NaN):0===i[t+"_cnt"]&&(i[t]=Number.NaN)})),i)))}))}createPartOfDrillRows(t,i,e,s,o){if(null==this.config.partOf||0===this.config.partOf.length||this.config.type===ot.LIST||null==s||0===s.length)return;const n=this.createPartOfQuery(t,i);let r=[];n.forEach((function(t){r.push(...I(t,[s]))}));const a=this.exctractScenarioNames(t),l=[];e.forEach((function(t){l.push(...I(t,[s]))}));const h=new Map;l.forEach((t=>h.set(t[Y.ROWGROUP],t))),r=this.reduceResDrillByCategoryGroups(r,a),r.forEach((function(t){a.forEach((i=>{try{t[i]=t[i]/h.get(t[Y.ROWGROUP])[i]}catch(e){console.error("DataQuery: partOf drill row calculation failed",i,e),t[i]=Number.NaN}}))})),this.injectDrillRowsToResultRows(r,o)}createRestRow(t,i,e,s,o,n){t.totalRowCnt-this.config.limit>0&&0!==this.config.limit&&i.push(`SELECT ${Y.ROWNR}, 1 as ${Y.ROWGROUPINDEX} , 'ENTRY' as ${Y.TYPE}, 'NO_GROUP' as ${Y.ROWGROUP}, 'REST' as ${Y.CATEGORY} , SUM(ac1) as ac1, SUM(pp1) as pp1, SUM(dpp1_ac1_pos) as dpp1_ac1_pos, SUM(drpp1_ac1_pos) as drpp1_ac1_pos, SUM(dr_pp1) as dr_pp1 FROM (SELECT ROWNUM() AS ${Y.ROWNR}, ${i.length} as ${Y.ROWGROUPINDEX} , 'ENTRY' as ${Y.TYPE}, '${t.rowGroup||"NO_GROUP"}' as ${Y.ROWGROUP}, ${e} ${s.length>0?",".concat(s):""} FROM ? ${o} GROUP BY ${e} ORDER BY ${n[0]}) t WHERE t.rowNr > ${this.config.limit}`)}createDataRow(t,i,e,s,o,n,r){t.push(`SELECT ROWNUM() AS ${Y.ROWNR},\n ${t.length} as ${Y.ROWGROUPINDEX},\n 'ENTRY' as ${Y.TYPE},\n '${i.rowGroup||"NO_GROUP"}' as ${Y.ROWGROUP},\n '${Y.CATEGORYINDEX}',\n ${e} ${s.length>0?",".concat(s):""}\n FROM ? ${o}\n GROUP BY ${e}\n ORDER BY ${n[0]} ${r}`)}createGroupHeaderRow(t,i){!0===this.config.grouped&&i.push(`SELECT ROWNUM() AS ${Y.ROWNR},\n ${i.length} as ${Y.ROWGROUPINDEX},\n 'GROUPHEAD' as ${Y.TYPE},\n '${t.rowGroup}' as ${Y.ROWGROUP} ${this.config.showGroupTitle?`,'${t.rowGroup}' as ${Y.CATEGORY}`:""}\n FROM ?\n GROUP BY '1'`)}createGroupSumRow(t,i,e,s,o){!0!==this.config.grouped||ot.SUM!==this.config.type&&ot.SUMNOTOTAL!==this.config.type&&ot.OPT!==this.config.type&&ot.OPTNOTOTAL!==this.config.type||(t.push(`SELECT ${t.length} as ${Y.ROWGROUPINDEX},\n '=' as ${Y.OPERATION},\n '${e.rowGroup}' as ${Y.ROWGROUP},\n ROWNUM() AS ${Y.ROWNR},\n 'GROUP_SUM' as ${Y.TYPE} ${s.length>0?",".concat(s):""}\n FROM ?\n WHERE ${Y.ROWGROUP} = '${e.rowGroup}'\n ORDER BY ${o[0]} `),i.push(`SELECT ${t.length} as ${Y.ROWGROUPINDEX},\n '=' as ${Y.OPERATION},\n '${e.rowGroup}' as ${Y.ROWGROUP},\n ROWNUM() AS ${Y.ROWNR},\n 'GROUP_SUM' as ${Y.TYPE} ${s.length>0?",".concat(s):""}\n FROM ?\n WHERE ${Y.ROWGROUP} = '${e.rowGroup}'\n ORDER BY ${o[0]} `))}createTotalSumRow(t,i,e){if(ot.SUM===this.config.type||ot.OPT===this.config.type){const i=`${this.hasPartOf&&!1===this.config.grouped?`${this.i18n.get("SUM_TOTAL")||"SUM_TOTAL"} `:""}${this.config.title}`;t.push(`SELECT ${t.length} as ${Y.ROWGROUPINDEX},\n '${i}' as ${Y.ROWGROUP},\n '=' as ${Y.OPERATION},\n 'SUM' as ${Y.TYPE} ${e.length>0?",".concat(e):""}\n FROM ? `)}i.push(`SELECT ${t.length} as ${Y.ROWGROUPINDEX},\n 'SUM_TOTAL' as ${Y.ROWGROUP},\n '=' as ${Y.OPERATION},\n 'SUM' as ${Y.TYPE} ${e.length>0?",".concat(e):""}\n FROM ? `)}reduceResDrillByCategoryGroups(t,i){const e=new Map;return t.forEach((function(t){const s=t.rowNr+t.rowGroup+t.type+t.category;if(e.has(s)){const o=e.get(s);i.forEach((i=>{try{o[i]+=t[i]}catch(t){console.error("DataQuery: drill row aggregation failed",i,t)}}))}else e.set(s,t)})),[...e.values()]}injectDrillRowsToResultRows(t,i){const e=new Map;if(!0===this.config.grouped)t.forEach((function(t){i.forEach((function(i){const s=i.findIndex((i=>i.category===t.category&&i.rowGroup===t.rowGroup));if(s>=0){if(e.has(`${t.category}_${t.rowGroup}`)){const i=e.get(`${t.category}_${t.rowGroup}`)||0;e.set(`${t.category}_${t.rowGroup}`,i+1)}else e.set(`${t.category}_${t.rowGroup}`,1);t[Y.ROWNR]=e.get(`${t.category}_${t.rowGroup}`),i.splice(s+t[Y.ROWNR],0,t)}}))}));else{const s=this.findDuplicateSubCategories(t);t.forEach((function(t){i.forEach((function(i){const o=i.findIndex((i=>null!=i.category&&i.category===t.category));if(o>=0){if(e.has(`${t.category}`)){const i=e.get(`${t.category}`)||0;e.set(`${t.category}`,i+1)}else e.set(`${t.category}`,1);(1===t[Y.ROWNR]||s.includes(t.subCategory))&&(t.subCategory=`${t.subCategory} (${t.rowGroup})`),i.splice(o+t[Y.ROWNR],0,t)}}))}))}}createThereOfDrillRows(t,i,e,s){if(void 0===this.config.thereOf||0===this.config.thereOf.length)return;const o=[],n=[];this.config.thereOf.forEach((e=>{let s=!0,n="1 <> 1 OR ( ";null!=e.category&&0!==e.category.length&&e.category.trim()&&(n+=` ${Y.CATEGORY} = '${e.category}'`,s=!1),null!=e.rowGroup&&0!==e.rowGroup.length&&e.rowGroup.trim()&&(n+=` ${s?"":"AND"} ${Y.ROWGROUP} = '${e.rowGroup}'`,s=!1),null!=e.subCategory&&0!==e.subCategory.length&&e.subCategory.trim()&&(n+=` ${s?"":"AND"} ${Y.SUBCATEGORY} = '${e.subCategory}'`),n+=")",o.push(`SELECT ROWNUM() AS ${Y.ROWNR},\n null as operation,\n 'DRILLELEMENT' as ${Y.TYPE},\n ${Y.CATEGORY},\n ${Y.SUBCATEGORY},\n ${Y.ROWGROUP} as ${Y.ROWGROUP},\n ${t}\n FROM ?\n WHERE ${n}\n GROUP BY ${Y.ROWGROUP}, ${Y.CATEGORY}, ${Y.SUBCATEGORY}\n ORDER BY ${i[1]}`)})),o.forEach((function(t){n.push(...I(t,[e]))})),this.injectDrillRowsToResultRows(n,s)}calculateRelativeVariances(t,i){t.forEach((t=>{t.forEach((t=>{"GROUPHEAD"!==t[Y.TYPE]&&i.forEach(((i,e)=>{t[e]=t[e]/t[i]}))}))}))}calculateColumnGroupRest(t,i){if(null==i||0===i.size)return;const e=new Map,s=new Map;i.forEach(((t,i)=>{const o=t,n=[];for(const t of o)n.push(`${i}##${t.name}`);e.set(i,n),s.set(`${i}##REST`,!1)})),t.forEach((t=>{t.forEach((t=>{"GROUPHEAD"!==t[Y.TYPE]&&e.forEach(((i,e)=>{let o=0;i.forEach((i=>{void 0!==t[i]&&(o+=t[i])})),t[`${e}##REST`]=t[e]-o,0!==t[`${e}##REST`]&&s.set(`${e}##REST`,!0)}))}))}));const o=Array.from(s.entries()).filter((([t,i])=>!i)).map((([t])=>t));t.forEach((t=>{t.forEach((t=>{for(const i of o)delete t[i]}))}))}getRelativeScenarios(){const t=new Map;return this.config.scenarios.forEach((i=>{const e=this.createRelativeScenario(i);null!=e&&t.set(e.key,e.value)})),t}translateScenarioSQL(t,i,e){const s=new H(t);return ot.OPT===e||ot.OPTNOTOTAL===e?s.isValid?"dr"===s.type?`SUM(${s.base} - ${s.delta}) as ${t}, SUM(${s.delta}) as dr_${s.delta}`:`SUM(${s.base} - ${s.delta}) as ${t}`:i?`SUM(${t} * transformOperator(operation)) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`:`SUM(${t}) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`:s.isValid?"dr"===s.type?`SUM((${s.base} * transformOperator(operation)) - (${s.delta} * transformOperator(operation))) as ${t}, SUM(${s.delta} * transformOperator(operation)) as dr_${s.delta}`:`SUM((${s.base} * transformOperator(operation))- (${s.delta} * transformOperator(operation))) as ${t}`:`SUM(${t} * transformOperator(operation)) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`}createOrderString(t){return[`${t.hierarchy.toString()} ${t.direction}`,`${t.hierarchy.toString()} ${nt.ASC===t.direction?nt.DESC:nt.ASC}`]}createRelativeScenario(t){const i=new H(t);return i.isValid&&"dr"===i.type?{key:`${t}`,value:`dr_${i.delta}`}:null}exctractScenarioNames(t){const i=[];return t.split(",").forEach((t=>t.length>=2?i.push(t.split("as")[1].trim()):null)),i}findDuplicateSubCategories(t){const i=t.map((t=>({count:1,subCategory:t.subCategory}))).reduce(((t,i)=>(t[i.subCategory]=(t[i.subCategory]||0)+i.count,t)),{});return Object.keys(i).filter((t=>i[t]>1))}createPartOfQuery(t,i){var e;const s=[];let o="1 <> 1 ",n=` ${Y.ROWGROUP}`,r="ROWNUM()";return null===(e=this.config.partOf)||void 0===e||e.forEach((t=>{o+=`OR (${Y.CATEGORY} = '${t.category}'`,null!=t.rowGroup&&0!==t.rowGroup.length&&t.rowGroup.trim()&&(o+=`and ${Y.ROWGROUP} = '${t.rowGroup}'`),!1===this.config.grouped&&(n=` 'SUM_TOTAL' as ${Y.ROWGROUP} `,r="1"),o+=")"})),s.push(`SELECT ${r} AS ${Y.ROWNR},\n 'PARTELEMENT' as ${Y.TYPE},\n ${Y.CATEGORY},\n ${n},\n ${t}\n FROM ?\n WHERE ${o}\n GROUP BY ${Y.ROWGROUP}, ${Y.CATEGORY}, ${Y.TYPE}\n ORDER BY ${i[1]}`),s}checkConfigForPartOf(){return null!=this.config.partOf&&0!==this.config.partOf.length}createThereOfDrillColumns(t,i,e){if(null==t||0===t.size)return;const s=[],o=[];t.forEach(((t,i)=>{let e="1 <> 1 ";t.forEach((t=>{e+=` or columnGroup = '${t.name}' `})),s.push(`SELECT 'ENTRY' as rowlevel,\n 'COLUMNGROUP' as columnlevel,\n rowGroup,\n category,\n columnGroup,\n '${i}' as scenario,\n sum(${i} * transformOperator(operation)) as val\n FROM ?\n WHERE ${e}\n GROUP BY rowlevel, rowGroup, category, columnGroup, scenario`),s.push(`SELECT 'ENTRY' as rowlevel,\n 'SUBGROUP' as columnlevel,\n rowGroup,\n category,\n columnGroup,\n columnSubGroup,\n '${i}' as scenario,\n sum(${i} * transformOperator(operation)) as val\n FROM ?\n WHERE ${e}\n GROUP BY rowlevel, rowGroup, category, columnGroup, columnSubGroup, scenario`),s.push(`SELECT 'DRILLELEMENT' as rowlevel,\n 'COLUMNGROUP' as columnlevel,\n rowGroup,\n category,\n subCategory,\n columnGroup,\n '${i}' as scenario,\n sum(${i} * transformOperator(operation)) as val\n FROM ?\n WHERE ${e}\n GROUP BY rowlevel, rowGroup, category, subCategory, columnGroup, scenario`),s.push(`SELECT 'DRILLELEMENT' as rowlevel,\n 'SUBGROUP' as columnlevel,\n rowGroup,\n category,\n subCategory,\n columnGroup,\n columnSubGroup,\n '${i}' as scenario,\n sum(${i} * transformOperator(operation)) as val\n FROM ?\n WHERE ${e}\n GROUP BY rowlevel, rowGroup, category, subCategory, columnGroup, columnSubGroup, scenario`),s.push(`SELECT 'GROUP_SUM' as rowlevel,\n 'COLUMNGROUP' as columnlevel,\n rowGroup,\n columnGroup,\n '${i}' as scenario,\n sum(${i} * transformOperator(operation)) as val\n FROM ?\n WHERE ${e}\n GROUP BY rowlevel, rowGroup, columnGroup, scenario`),s.push(`SELECT 'GROUP_SUM' as rowlevel,\n 'SUBGROUP' as columnlevel,\n rowGroup,\n columnGroup,\n columnSubGroup,\n '${i}' as scenario,\n sum(${i} * transformOperator(operation)) as val\n FROM ?\n WHERE ${e}\n GROUP BY rowlevel, rowGroup, columnGroup, columnSubGroup, scenario`),s.push(`SELECT 'SUM' as rowlevel,\n 'COLUMNGROUP' as columnlevel,\n columnGroup,\n '${i}' as scenario,\n sum(${i} * transformOperator(operation)) as val\n FROM ?\n WHERE ${e}\n GROUP BY rowlevel, columnGroup, scenario`),s.push(`SELECT 'SUM' as rowlevel,\n 'SUBGROUP' as columnlevel,\n columnGroup,\n columnSubGroup,\n '${i}' as scenario,\n sum(${i} * transformOperator(operation)) as val\n FROM ?\n WHERE ${e}\n GROUP BY rowlevel, columnGroup, columnSubGroup, scenario`)}));for(const t of s)o.push(...I(t,[i]));this.injectDrillColumnsToResultRows(o,e)}injectDrillColumnsToResultRows(t,i){const e="##";for(const s of t)for(const t of i)for(const i of t)i.type===s.rowlevel&&("ENTRY"===s.rowlevel?"COLUMNGROUP"===s.columnlevel&&i.category===s.category?i[s.scenario+e+s.columnGroup]=s.val:"SUBGROUP"===s.columnlevel&&i.category===s.category&&(i[s.scenario+e+s.columnGroup+e+s.columnSubGroup]=s.val):"DRILLELEMENT"===s.rowlevel?"COLUMNGROUP"===s.columnlevel&&i.category===s.category&&i.subCategory===s.subCategory?i[s.scenario+e+s.columnGroup]=s.val:"SUBGROUP"===s.columnlevel&&i.category===s.category&&i.subCategory===s.subCategory?i[s.scenario+e+s.columnGroup+e+s.columnSubGroup]=s.val:"COLUMNGROUP"===s.columnlevel&&i.category===s.category&&i.subCategory===`${s.subCategory} (${s.rowGroup})`?i[s.scenario+e+s.columnGroup]=s.val:"SUBGROUP"===s.columnlevel&&i.category===s.category&&i.subCategory===`${s.subCategory} (${s.rowGroup})`&&(i[s.scenario+e+s.columnGroup+e+s.columnSubGroup]=s.val):("SUM"===s.rowlevel||"GROUP_SUM"===s.rowlevel)&&("COLUMNGROUP"===s.columnlevel&&i.category===s.category&&i.subCategory===s.subCategory&&(i[s.scenario+e+s.columnGroup]=s.val),"SUBGROUP"===s.columnlevel&&i.category===s.category&&i.subCategory===s.subCategory&&(i[s.scenario+e+s.columnGroup+e+s.columnSubGroup]=s.val)))}}class Ot{constructor(){this.normalizedHeader=[]}createHeader(t,i,e,s,o,n){const r=[];this.normalizedHeader=this.normalizeHeader(t,i);const a=new ht(0,0,rt.HEADER),l=new ht(1,0,rt.SEPERATORLINE);for(const t of this.normalizedHeader)a.createElement(W.translateScenarioLabel(t.name,e),t.type,this.createColumnType(t),null,this.setHeaderPrefix(t,e,s,o,n),null,null,null,null),l.createElement(null,t.type,this.createColumnType(t),null,null,null,null,null,null);return r.push(a),r.push(l),r}setHeaderPrefix(t,i,e,s,o){let n="";return"category"===t.name&&o&&(0===e.prefix.length&&0===s.length||(n=W.translateScenarioLabel("in",i)+" "+e.prefix+s)),t.order&&(n+=W.translateScenarioLabel("ORDER_"+t.order,i)),n}normalizeHeader(t,i){let e=[{name:Y.CATEGORY,group:Y.CATEGORY,type:Y.CATEGORY,order:void 0}];return ot.OPT!==t&&ot.OPTNOTOTAL!==t||(e=[{name:Y.OPERATION,group:Y.OPERATION,type:Y.OPERATION,order:void 0},{name:Y.CATEGORY,group:Y.CATEGORY,type:Y.CATEGORY,order:void 0}]),[...e,...i]}createBodyRows(t,i,e){const s=[];let o=-1;const n=new Rt(t,i).execute(e),r=this.calculateColumnStatistics(n,t.barColumns);for(const e of n)o+=1,s.push(...this.createRow(t.i18n,i,t.scenariosUnitType,e,o,-1,t.categoryWidth,t.measureScale,t.barColumns,r));return s}calculateColumnStatistics(t,i){const e=new Map;if(!i||0===i.length)return e;for(const t of i)e.set(t,{min:1/0,max:-1/0,absMax:0});for(const s of t)for(const t of s)for(const s of i){const i=this.extractColumnValue(t,s);if(null!==i&&!isNaN(i)){const t=e.get(s);t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}}for(const[t,i]of e)i.min!==1/0&&i.max!==-1/0||(i.min=0,i.max=0),i.absMax=Math.max(Math.abs(i.min),Math.abs(i.max)),e.set(t,i);return e}extractColumnValue(t,i){if(void 0!==t[i]){const e=Number(t[i]);return isNaN(e)?null:e}for(const e of Object.keys(t))if(e===i||e.endsWith("##"+i)||e===i+"##"+i){const i=Number(t[e]);if(!isNaN(i))return i}return null}createRow(t,i,e,s,o,n,r,a,l,h){var d;const c=[];for(const p of s){const u=p[Y.ROWGROUP],f=p[Y.SUBCATEGORY],m=p[Y.TYPE],v=p[Y.ROWNR]>=2,g=this.createDetailRow(m,n+=1,o,s.length);for(const s of this.normalizedHeader){const o=this.getRawDataRowElement(p,s),n=null!==(d=null==l?void 0:l.includes(s.type))&&void 0!==d&&d,c=n?null==h?void 0:h.get(s.type):void 0;g.createElement(this.translateSumCellLabel(t,i,o,u,f,m,s.type),s.type,this.createColumnType(s),this.setCellType(s.type,e),this.translateCellPrefix(i,m,s.type),this.translateScenarioCSS(s.type,o),v,r,null==a?void 0:a.value,n,c)}c.push(g)}return c}getRawDataRowElement(t,i){return i.name===i.group&&i.name===i.type?t[i.name]:i.name===i.group&&i.name!==i.type?t[i.type+"##"+i.name]:t[i.type+"##"+i.group+"##"+i.name]}createDetailRow(t,i,e,s){switch(t){case rt.GROUPHEAD:return new ht(i,e,rt.HEADER);case rt.SUM:case rt.GROUPSUM:return new ht(s+2,e,rt.SUM);case rt.DRILLELEMENT:return new ht(s+2,e,rt.DRILLELEMENT);case rt.PARTELEMENT:return new ht(s+2,e,rt.PARTELEMENT);default:return new ht(i,e,rt.STANDARD)}}translateSumCellLabel(t,i,e,s,o,n,r){return!1===Number.isNaN(Number(e))||this.isOperationColumn(r)?e:this.isGroupHeadCategory(n,r)||this.isEntryCategory(n,r)?t===L.ALL?`${i.get(e)||e}`:e:this.isDrillElementCategory(n,r)?t===L.ALL?`${i.get(o)||o}`:`${o}`:this.isPartElementCategory(n,r)?t===L.ALL||"SUM_TOTAL"===s?`${i.get(s)||s}`:`${s}`:this.isSumElementCategory(n,r)?t===L.ALL||"SUM_TOTAL"===s?`${i.get(s)||s}`:s:"GROUPHEAD"===n&&null==e?e:Number.isNaN(Number(e))?"-":Number(e)}isOperationColumn(t){return"operation"===t}translateScenarioCSS(t,i){const e=new H(t);let s="pos";return i<0&&(s="neg"),e.isValid?s+"_"+e.direction+("dr"===e.type?" relative_variance":""):t}setCellType(t,i){if("category"===t)return"";let e;const s=new H(t);return i===C.PERCENT?(e="percent",s.isValid&&"d"===s.type&&(e="decimal")):(e="decimal",s.isValid&&"dr"===s.type&&(e="percent")),e}isDrillElementCategory(t,i){return"DRILLELEMENT"===t&&"category"===i}isPartElementCategory(t,i){return"PARTELEMENT"===t&&"category"===i}isSumElementCategory(t,i){return("GROUP_SUM"===t||"SUM"===t)&&"category"===i}isEntryCategory(t,i){return"ENTRY"===t&&"category"===i}isGroupHeadCategory(t,i){return"GROUPHEAD"===t&&"category"===i}translateCellPrefix(t,i,e){return this.isOperationColumn(e)||this.isGroupHeadCategory(i,e)||this.isEntryCategory(i,e)?null:this.isDrillElementCategory(i,e)?`${t.get("there_of")} `:this.isPartElementCategory(i,e)?`${t.get("part_of")} `:null}createColumnType(t){return t.name===t.group&&t.name===t.type?"base":t.name===t.group?"columnGroup":"columnSubGroup"}}class St{constructor(t,i,e){this.data=[],this.headerRows=[],this.bodyRows=[],this.ruleSet=t||new j,this.dataSetFactory=new Ot,this.config=this.initConfig(e),this.i18n=this.initI18n(new Map),this.setData(i,e.filter),this.state=st.DIRTY}setI18n(t){this.i18n=this.initI18n(t)}initI18n(t){const i=new Map([["",""],["SEPERATOR_WS",", "],["in","in"],["ORDER_asc","↑"],["ORDER_desc","↓"],["ac1","AC"],["pp1","PY"],["fc1","FC"],["pl1","PL"],["ac2","AC2"],["pp2","PY2"],["fc2","FC2"],["pl2","PL2"],["ac3","AC3"],["pp3","PY3"],["fc3","FC3"],["pl3","PL3"],["ac4","AC4"],["pp4","PY4"],["fc4","FC4"],["pl4","PL4"],["in","in"],["category"," "],["operation"," "],["there_of","davon"],["part_of","in % von"],["ibcssymbol_delta_ac","Δ{%}"],["ibcssymbol_delta_generic","Δ({%})"],["ibcssymbol_delta_ac_relative","Δ{%}%"],["ibcssymbol_delta_generic_relative","Δ({%})%"],["SUM_TOTAL","❖"]]);return this.state=st.DIRTY,new Map([...i,...t||new Map])}initConfig(t){this.state=st.DIRTY;const i=t,e=this;return t.scenarios.sort(((t,i)=>e.ruleSet.getScenarioSorIndex(t)-e.ruleSet.getScenarioSorIndex(i))),i}setConfig(t){this.config=this.initConfig(t)}setData(t,i){if(null==t)return;if(null!=i&&i.length>0)try{this.data=I(`SELECT * FROM ? WHERE ${i}`,[t])}catch(e){console.error("Table: filter query failed, using unfiltered data",i,e),this.data=t}else this.data=t;const e=this.normalizeScenarios(this.config.scenarios,this.config.categoryThereOf,this.config.sortOrder);this.headerRows=this.dataSetFactory.createHeader(this.config.type,e,this.i18n,this.config.measureScale,this.config.measureUnit,this.config.showMeasureScale),this.bodyRows=this.dataSetFactory.createBodyRows(this.config,this.i18n,this.data),this.state=st.UP_TO_DATE}update(){const t=this.normalizeScenarios(this.config.scenarios,this.config.categoryThereOf,this.config.sortOrder);this.headerRows=this.dataSetFactory.createHeader(this.config.type,t,this.i18n,this.config.measureScale,this.config.measureUnit,this.config.showMeasureScale),this.bodyRows=this.dataSetFactory.createBodyRows(this.config,this.i18n,this.data),this.state=st.UP_TO_DATE}getHeader(){return this.state===st.DIRTY&&this.update(),this.headerRows}getBody(){return this.state===st.DIRTY&&this.update(),this.bodyRows}normalizeScenarios(t,i,e){var s;const o=[];for(const n of t){if(null==i?void 0:i.has(n)){const t=i.get(n);for(const i of t){o.push({name:i.name,group:i.name,type:n,order:void 0});for(const t of i.subGroups)o.push({name:t,group:i.name,type:n,order:void 0})}o.push({name:"REST",group:"REST",type:n,order:void 0})}let t;(null===(s=null==e?void 0:e.hierarchy)||void 0===s?void 0:s.at(0))===n&&(t=e.direction),o.push({name:n,group:n,type:n,order:t})}return o}hasNoData(){return 0===this.data.length}}class Et{constructor(){this.title="",this.scenarios=[],this.scenariosUnitType=C.DECIMAL,this.grouped=!1,this.showGroupTitle=!0,this.thereOf=[],this.categoryThereOf=new Map,this.partOf=[],this.sortOrder=new B(new z).default(),this.type=ot.LIST,this.limit=0,this.i18n=L.ALL,this.categoryWidth=P.W25,this.measureScale=new J,this.measureUnit="",this.measureType=k.VOLUME,this.showMeasureScale=!0,this.filter="",this.barColumns=[]}}class Mt{constructor(t,i,e,s){this.tableDrillGroupAdapter=t,this.stringAdapter=i,this.orderAdapter=e,this.dataSet=s}adapt(t){const i=new Et;return A.isString(t.title)&&(i.title=t.title),A.isArray(t.scenarios)&&(i.scenarios=F.adaptArray(t.scenarios,this.stringAdapter)),A.isExisting(t.scenariosUnitType)&&(i.scenariosUnitType=t.scenariosUnitType),A.isBoolean(t.grouped)&&(i.grouped=t.grouped),A.isBoolean(t.showGroupTitle)&&(i.showGroupTitle=t.showGroupTitle),A.isBoolean(t.showMeasureScale)&&(i.showMeasureScale=t.showMeasureScale),A.isArray(t.thereOf)&&(i.thereOf=F.adaptArray(t.thereOf,this.tableDrillGroupAdapter)),A.isExisting(t.categoryThereOf)&&(i.categoryThereOf=t.categoryThereOf),A.isArray(t.partOf)&&(i.partOf=F.adaptArray(t.partOf,this.tableDrillGroupAdapter)),A.isExisting(t.order)&&(i.sortOrder=this.orderAdapter.adapt(t.order)),A.isExisting(t.type)&&(i.type=t.type),A.isNumber(t.limit)&&(i.limit=t.limit),A.isExisting(t.i18n)&&(i.i18n=t.i18n),A.isExisting(t.categoryWidth)&&(i.categoryWidth=t.categoryWidth),A.isExisting(t.measureScale)&&(i.measureScale=V.calculateMeasureScale(this.dataSet,i.scenarios,t.measureScale)),A.isExisting(t.measureType)&&(i.measureType=t.measureType),A.isString(t.measureUnit)&&(i.measureUnit=t.measureUnit),A.isString(t.filter)&&(i.filter=t.filter.trim()),A.isArray(t.barColumns)&&(i.barColumns=t.barColumns),i}default(){return new Et}}class Tt{constructor(){this.rowGroup="",this.category="",this.subCategory="",this.partOf=""}}class Ut{constructor(){}adapt(t){const i=new Tt;return A.isString(t.rowGroup)&&(i.rowGroup=t.rowGroup),A.isString(t.category)&&(i.category=t.category),A.isString(t.subCategory)&&(i.subCategory=t.subCategory),A.isString(t.partOf)&&(i.partOf=t.partOf),i}default(){return new Tt}}class _t{constructor(){this.operation="+"}addRowGroup(t,i){this.rowGroup=t,this.rowGroupIndex=i}addCategory(t,i){this.category=t,this.categoryIndex=i}addSubCategory(t,i){this.subCategory=t,this.subCategoryIndex=i}addColumnGroup(t,i){this.columnGroup=t,this.columnGroupIndex=i}addSubColumnGroup(t,i){this.columnSubGroup=t,this.columnSubGroupIndex=i}}class Gt{constructor(){}adapt(t){const i=new _t;return A.isOperator(t.operation)&&(i.operation=t.operation),A.isNumber(t.rowGroupIndex)&&A.isString(t.rowGroup)&&i.addRowGroup(t.rowGroup,t.rowGroupIndex),A.isNumber(t.categoryIndex)&&A.isString(t.category)&&i.addCategory(t.category,t.categoryIndex),A.isNumber(t.subCategoryIndex)&&A.isString(t.subCategory)&&i.addSubCategory(t.subCategory,t.subCategoryIndex),A.isNumber(t.columnGroupIndex)&&A.isString(t.columnGroup)&&i.addColumnGroup(t.columnGroup,t.columnGroupIndex),A.isNumber(t.columnSubGroupIndex)&&A.isString(t.columnSubGroup)&&i.addSubColumnGroup(t.columnSubGroup,t.columnSubGroupIndex),this.setActualValues(t,i),this.setPlanValues(t,i),this.setPreviousPeriodValues(t,i),this.setForecastValues(t,i),i}default(){return new _t}setActualValues(t,i){A.isNumber(t.ac1)&&(i.ac1=t.ac1),A.isNumber(t.ac2)&&(i.ac2=t.ac2),A.isNumber(t.ac3)&&(i.ac3=t.ac3),A.isNumber(t.ac4)&&(i.ac4=t.ac4)}setPlanValues(t,i){A.isNumber(t.pp1)&&(i.pp1=t.pp1),A.isNumber(t.pp2)&&(i.pp2=t.pp2),A.isNumber(t.pp3)&&(i.pp3=t.pp3),A.isNumber(t.pp4)&&(i.pp4=t.pp4)}setPreviousPeriodValues(t,i){A.isNumber(t.pl1)&&(i.pl1=t.pl1),A.isNumber(t.pl2)&&(i.pl2=t.pl2),A.isNumber(t.pl3)&&(i.pl3=t.pl3),A.isNumber(t.pl4)&&(i.pl4=t.pl4)}setForecastValues(t,i){A.isNumber(t.fc1)&&(i.fc1=t.fc1),A.isNumber(t.fc2)&&(i.fc2=t.fc2),A.isNumber(t.fc3)&&(i.fc3=t.fc3),A.isNumber(t.fc4)&&(i.fc4=t.fc4)}}const xt=class{constructor(i){t(this,i),this.data=[],this.tableTitle="SUM_TOTAL",this.scenarios=[],this.scenariosDataFormat=C.DECIMAL,this.grouped=!1,this.limit=0,this.showGroupTitle=!0,this.thereof=[],this.partof=[],this.order={hierarchy:[],direction:nt.ASC},this.categorythereof=new Map,this.type=ot.LIST,this.categoryWidth=P.INF,this.dataFormatDigits={percent:2,decimal:1},this.i18n=new Map,this.i18nMode=L.ALL,this.measureScale="_",this.measureUnit="",this.showMeasureScale=!0,this.measureType=k.VOLUME,this.filter="",this.barColumns=[],this.unitScaling=.01,this.percentageScaling=.5,this.scaleFactor=1,this.componentDataFormatDigits=new Q,this.componentStyle=T(this)}render(){return i(e,null,(()=>{if(void 0!==this.table){if(this.table.hasNoData()){const t=this.i18n.get("NO_DATA")||"==No Data==";return i("p",{class:"warning"},t)}return i("table",null,i("thead",null,this.table.getHeader().map((t=>i("tr",{class:t.cssStyle},t.getCells().map((t=>i("th",{colSpan:t.colSpan,class:t.cssStyle},t.getAsHeaderList().map(((e,s,o)=>i("span",null,s===o.length-1?i("span",{class:" "===e?"table-footer":""},e,t.drawPrefix()," "):i("span",null,e,t.drawPrefix(),i("br",null)))))))))))),i("tbody",null,this.table.getBody().map((t=>i("tr",{class:t.cssStyle},null==t?void 0:t.getCells().map((t=>i("td",{colSpan:t.colSpan,class:t.cssStyle+" "+t.type},null!=t.prefix?i("span",{class:t.cssStyle+" "+t.prefixStyle},t.drawPrefix()):"",t.isBarChart&&t.columnStats?i($t,{value:t.value,scenario:t.key,columnStats:t.columnStats,height:18*this.scaleFactor,isRelative:t.key.startsWith("dr"),isPositiveGood:t.key.endsWith("_pos"),measureScale:t.measureScale,styles:this.barChartStyles}):t.draw(this.componentDataFormatDigits)))))))))}})())}componentWillRender(){const t=this.prepareConfig(),i=this.prepareData();this.componentDataFormatDigits=(new q).adapt(this.dataFormatDigits),this.barChartStyles=this.prepareBarChartStyles(),this.table=new St(new j,i,t),this.table.setI18n(this.i18n)}prepareConfig(){return new Mt(new Ut,new z,new B(new z),this.data).adapt({title:this.tableTitle,scenarios:this.scenarios,scenariosUnitType:this.scenariosDataFormat,grouped:this.grouped,showGroupTitle:this.showGroupTitle,thereOf:this.thereof,partOf:this.partof,categoryThereOf:this.categorythereof,order:this.order,type:this.type,limit:this.limit,i18n:this.i18nMode,categoryWidth:this.categoryWidth,measureScale:this.measureScale,measureUnit:this.measureUnit,measureType:this.measureType,showMeasureScale:this.showMeasureScale,filter:this.filter,barColumns:this.barColumns})}prepareData(){return F.adaptArray(this.data,new Gt)}prepareBarChartStyles(){return this.componentStyle((t=>{var i,e,s,o,n,r,a,l,h,d,c,p,u,f,m,v,g,w,b,$,y,R,O,S,E,M;const T=null===(i=t["bn-chart-time"])||void 0===i?void 0:i.varianceStyles,U=null===(e=t["bn-chart-time"])||void 0===e?void 0:e.barStyles;return{positive:{stroke:(null===(s=null==T?void 0:T.pos)||void 0===s?void 0:s.stroke)||"#008f96",fill:(null===(o=null==T?void 0:T.pos)||void 0===o?void 0:o.fill)||"#008f96",fillpattern:(null===(n=null==T?void 0:T.pos)||void 0===n?void 0:n.fillpattern)||"solid"},negative:{stroke:(null===(r=null==T?void 0:T.neg)||void 0===r?void 0:r.stroke)||"#ff0000",fill:(null===(a=null==T?void 0:T.neg)||void 0===a?void 0:a.fill)||"#ff0000",fillpattern:(null===(l=null==T?void 0:T.neg)||void 0===l?void 0:l.fillpattern)||"solid"},neutral:{stroke:(null===(h=null==T?void 0:T.neu)||void 0===h?void 0:h.stroke)||"#808080",fill:(null===(d=null==T?void 0:T.neu)||void 0===d?void 0:d.fill)||"#808080",fillpattern:(null===(c=null==T?void 0:T.neu)||void 0===c?void 0:c.fillpattern)||"outlined"},scenarios:{ac:{stroke:(null===(p=null==U?void 0:U.ac)||void 0===p?void 0:p.stroke)||"#404040",fill:(null===(u=null==U?void 0:U.ac)||void 0===u?void 0:u.fill)||"#404040",fillpattern:(null===(f=null==U?void 0:U.ac)||void 0===f?void 0:f.fillpattern)||"solid"},pp:{stroke:(null===(m=null==U?void 0:U.pp)||void 0===m?void 0:m.stroke)||"#A6A6A6",fill:(null===(v=null==U?void 0:U.pp)||void 0===v?void 0:v.fill)||"#A6A6A6",fillpattern:(null===(g=null==U?void 0:U.pp)||void 0===g?void 0:g.fillpattern)||"solid"},fc:{stroke:(null===(w=null==U?void 0:U.fc)||void 0===w?void 0:w.stroke)||"#404040",fill:(null===(b=null==U?void 0:U.fc)||void 0===b?void 0:b.fill)||"#ffffff",fillpattern:(null===($=null==U?void 0:U.fc)||void 0===$?void 0:$.fillpattern)||"hatched"},pl:{stroke:(null===(y=null==U?void 0:U.pl)||void 0===y?void 0:y.stroke)||"#404040",fill:(null===(R=null==U?void 0:U.pl)||void 0===R?void 0:R.fill)||"#ffffff",fillpattern:(null===(O=null==U?void 0:U.pl)||void 0===O?void 0:O.fillpattern)||"outlined"}},fontColor:(null===(S=t.global)||void 0===S?void 0:S.fontColor)||"#000000",fontSize:.85*((null===(E=t.global)||void 0===E?void 0:E.fontSizePx)||13.3333)*this.scaleFactor,fontFamily:(null===(M=t.global)||void 0===M?void 0:M.fontFamily)||"'Noto Sans', sans-serif",unitScaling:this.unitScaling,percentageScaling:this.percentageScaling,scaleFactor:this.scaleFactor}}))}get element(){return s(this)}};xt.style=':host{position:relative;display:inline-block}table{background-color:var(--bn-font-background, white);font-size:var(--bn-font-size, 1em);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);border-spacing:0.3em 0}thead{border-style:none}tr:first-child td{border-top:none;padding-top:0.5em}td.ac1,td.ac2,td.ac3,td.ac4,td.pp1,td.pp2,td.pp3,td.pp4,td.pl1,td.pl2,td.pl3,td.pl4,td.fc1,td.fc2,td.fc3,td.fc4,td.share,td.variance,td.pos_pos,td.pos_neg,td.neg_pos,td.neg_neg,td.pos_neutral,td.neg_neutral{text-align:right}.category-inf{max-width:1000em}.category-w100{max-width:100em}.category-w50{max-width:50em}.category-w25{max-width:25em}.category-w20{max-width:20em}.category-w15{max-width:15em}.category-w10{max-width:10em}.category-w5{max-width:5em}.prefix-second{color:transparent;font-style:normal}.prefix-first{font-style:normal}th{border-bottom:0.1em solid black;text-align:right;font-weight:normal;vertical-align:text-top}td.columnGroup,th.columnGroup{font-size:0.6em}td.columnSubGroup,th.columnSubGroup{font-size:0.6em;border-spacing:0em 0;font-style:italic}td.base,th.base{font-style:normal}th.ofit,td.ofit,tr.ofit,th.partof,td.partof,tr.partof{font-size:0.6em;font-style:italic}td.ofit,td.partof{font-size:0.6em;font-style:italic}th.ofit td,tr.ofit td,th.partof td,tr.partof td{border-top:0em solid black;padding-left:1em}th.ofit share,th.partof share,tr.share td{border-top:0em solid black}th.share,tr.share,td.share{font-size:0.6em;font-style:italic}th.filler{border-bottom:0em solid black;text-align:right}td.filler{border-top:0em none !important;border-bottom:0em none;text-align:right}th.group{text-align:center;border-spacing:1em 0}th.headerlabel{border-bottom:0em none black;padding-bottom:0em}td.variance:after{content:"%"}td.relative_variance{font-style:italic}td.percent{font-style:italic;text-align:right}td.decimal{text-align:right}td.pos_pos{color:#008f96}td.neg_pos{color:#ff0000}td.pos_neg{color:#ff0000}td.neg_neg{color:#008f96}td.pos_pos:before{content:"+"}td.pos_neg:before{content:"+"}td.pos_neu:before{content:"+"}th.ac1,th.ac2,th.ac3,th.ac4{padding-top:0em;border-bottom:0.3em solid black}th.pp1,th.pp2,th.pp3,th.pp4{padding-top:0em;border-bottom:0.3em solid grey}th.pl1,th.pl2,th.pl3,th.pl4{padding-top:0em;border-bottom:0.3em double black}th.fc1,th.fc2,th.fc3,th.fc4{border-bottom:0.3em solid;border-image:repeating-linear-gradient(-45deg, white, white, black, white, white 0.3em) 2}td.colsum{font-weight:bold}th.colsum{padding-top:0em;font-weight:bold}tr.sum td{border-top:0.1em solid black;font-weight:bold;padding-bottom:0.5em}tr.groupheader td{border-top:0em dotted #ddd;padding-top:0.5em;font-weight:bold;font-style:italic}tr.begingroup td{border-top:0em dotted #ddd;padding-top:0.5em}th.begin-group{padding-left:0.75em}th.end-group{padding-left:0.75em}td{box-sizing:border-box;-webkit-box-sizing:border-box;border-top:0.1em dashed #ddd;padding-left:0.5em;max-width:15em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-footer{font-size:0.6em}.cell-bar-chart{display:inline-block;vertical-align:middle}.bar-chart-empty{color:#999}td:has(.cell-bar-chart){padding:0 0.25em;vertical-align:middle}td:has(.cell-bar-chart).pos_pos:before,td:has(.cell-bar-chart).pos_neg:before,td:has(.cell-bar-chart).pos_neu:before{content:none}td:has(.cell-bar-chart).variance:after{content:none}';export{K as bn_context,Z as bn_datasource,it as bn_page,at as bn_table,xt as ibcs_table}
|