@bino-bi/bn-template-engine 1.0.0-alpha.10 → 1.0.0-alpha.11
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/LICENSE +203 -21
- package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/{p-9b1288df.entry.js → p-095f74d7.entry.js} +1 -1
- package/dist/cjs/bn-asset_21.cjs.entry.js +98 -9
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/bn-datasource/bn-datasource.js +130 -8
- package/dist/collection/components/bn-table/bn-table.js +1 -4
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -4
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/esm/bn-asset_21.entry.js +98 -9
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +41 -6
- package/dist/types/components/bn-table/bn-table.d.ts +0 -1
- package/dist/types/components.d.ts +55 -24
- package/package.json +2 -2
- package/readme.md +2 -2
|
@@ -3635,14 +3635,45 @@ const Datasource = class {
|
|
|
3635
3635
|
/**
|
|
3636
3636
|
* When true (default), body content is plain JSON text.
|
|
3637
3637
|
* When false, body content is a compressed payload (`<hash>:<base64_gzip>`).
|
|
3638
|
+
* Ignored in URL mode.
|
|
3638
3639
|
*/
|
|
3639
3640
|
this.raw = true;
|
|
3641
|
+
/**
|
|
3642
|
+
* Polling interval in **seconds** for URL mode.
|
|
3643
|
+
* When set and the body content is a URL, the component re-fetches
|
|
3644
|
+
* data at this interval. Has no effect for inline JSON or compressed content.
|
|
3645
|
+
* Set to `0` or leave unset to disable polling.
|
|
3646
|
+
*/
|
|
3647
|
+
this.interval = 0;
|
|
3640
3648
|
this.lastHash = null;
|
|
3649
|
+
/** The currently active URL (`null` when in inline-JSON mode). */
|
|
3650
|
+
this.currentUrl = null;
|
|
3651
|
+
/** Timer ID for the polling interval. */
|
|
3652
|
+
this.pollTimerId = null;
|
|
3653
|
+
/** AbortController for cancelling in-flight fetch requests. */
|
|
3654
|
+
this.abortController = null;
|
|
3641
3655
|
withHasError.withComponentStatus(this);
|
|
3642
3656
|
this.errors = withHasError.withHasError(this);
|
|
3643
3657
|
withBodyObserver.withBodyObserver(this, (data) => {
|
|
3644
3658
|
if (!this.stores)
|
|
3645
3659
|
this.stores = contextProtocol.getStores(this.element);
|
|
3660
|
+
const trimmed = data.trim();
|
|
3661
|
+
// --- URL mode ---
|
|
3662
|
+
if (this.isUrl(trimmed)) {
|
|
3663
|
+
if (trimmed === this.currentUrl)
|
|
3664
|
+
return;
|
|
3665
|
+
this.currentUrl = trimmed;
|
|
3666
|
+
this.lastHash = null;
|
|
3667
|
+
this.fetchAndStore(trimmed);
|
|
3668
|
+
this.startPolling();
|
|
3669
|
+
return;
|
|
3670
|
+
}
|
|
3671
|
+
// --- Leaving URL mode → clean up ---
|
|
3672
|
+
if (this.currentUrl !== null) {
|
|
3673
|
+
this.clearPolling();
|
|
3674
|
+
this.currentUrl = null;
|
|
3675
|
+
}
|
|
3676
|
+
// --- Inline JSON / compressed mode ---
|
|
3646
3677
|
try {
|
|
3647
3678
|
let contentHash;
|
|
3648
3679
|
let jsonString;
|
|
@@ -3669,10 +3700,74 @@ const Datasource = class {
|
|
|
3669
3700
|
}
|
|
3670
3701
|
});
|
|
3671
3702
|
}
|
|
3703
|
+
onIntervalChange() {
|
|
3704
|
+
if (this.currentUrl) {
|
|
3705
|
+
this.startPolling();
|
|
3706
|
+
}
|
|
3707
|
+
}
|
|
3708
|
+
disconnectedCallback() {
|
|
3709
|
+
this.clearPolling();
|
|
3710
|
+
}
|
|
3711
|
+
/**
|
|
3712
|
+
* Returns `true` if the text starts with `http://` or `https://`.
|
|
3713
|
+
*/
|
|
3714
|
+
isUrl(text) {
|
|
3715
|
+
return text.startsWith("http://") || text.startsWith("https://");
|
|
3716
|
+
}
|
|
3717
|
+
/**
|
|
3718
|
+
* Fetches JSON from the given URL and stores the result.
|
|
3719
|
+
* Cancels any in-flight request before starting a new one.
|
|
3720
|
+
*/
|
|
3721
|
+
async fetchAndStore(url) {
|
|
3722
|
+
var _a;
|
|
3723
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
3724
|
+
this.abortController = new AbortController();
|
|
3725
|
+
if (!this.stores)
|
|
3726
|
+
this.stores = contextProtocol.getStores(this.element);
|
|
3727
|
+
try {
|
|
3728
|
+
const response = await fetch(url, { signal: this.abortController.signal });
|
|
3729
|
+
const json = await response.json();
|
|
3730
|
+
// @ts-ignore
|
|
3731
|
+
this.stores.datasources.set(this.name, json);
|
|
3732
|
+
}
|
|
3733
|
+
catch (e) {
|
|
3734
|
+
if (e instanceof DOMException && e.name === "AbortError")
|
|
3735
|
+
return;
|
|
3736
|
+
console.error("bn-datasource: error fetching URL", e, url);
|
|
3737
|
+
// @ts-ignore
|
|
3738
|
+
this.stores.datasources.set(this.name, []);
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
/** Stops the polling timer and cancels any in-flight fetch. */
|
|
3742
|
+
clearPolling() {
|
|
3743
|
+
var _a;
|
|
3744
|
+
if (this.pollTimerId !== null) {
|
|
3745
|
+
clearInterval(this.pollTimerId);
|
|
3746
|
+
this.pollTimerId = null;
|
|
3747
|
+
}
|
|
3748
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
3749
|
+
this.abortController = null;
|
|
3750
|
+
}
|
|
3751
|
+
/** Starts (or restarts) the polling timer if in URL mode with a positive interval. */
|
|
3752
|
+
startPolling() {
|
|
3753
|
+
this.clearPolling();
|
|
3754
|
+
if (this.currentUrl && this.interval > 0) {
|
|
3755
|
+
this.pollTimerId = setInterval(() => {
|
|
3756
|
+
if (this.currentUrl) {
|
|
3757
|
+
this.fetchAndStore(this.currentUrl);
|
|
3758
|
+
}
|
|
3759
|
+
}, this.interval * 1000);
|
|
3760
|
+
}
|
|
3761
|
+
}
|
|
3672
3762
|
render() {
|
|
3673
|
-
return index.h(index.Host, { key: '
|
|
3763
|
+
return index.h(index.Host, { key: 'ca9f70b8f570c1b3ec94c800cd63baa4a0733d07' });
|
|
3674
3764
|
}
|
|
3675
3765
|
get element() { return index.getElement(this); }
|
|
3766
|
+
static get watchers() { return {
|
|
3767
|
+
"interval": [{
|
|
3768
|
+
"onIntervalChange": 0
|
|
3769
|
+
}]
|
|
3770
|
+
}; }
|
|
3676
3771
|
};
|
|
3677
3772
|
Datasource.style = bnDatasourceCss();
|
|
3678
3773
|
|
|
@@ -5078,8 +5173,6 @@ const Table$1 = class Table {
|
|
|
5078
5173
|
}
|
|
5079
5174
|
}
|
|
5080
5175
|
componentWillLoad() {
|
|
5081
|
-
//this.datasouce = get("test");
|
|
5082
|
-
// this.unsubscribe = onChange("test", (value) => this.datasouce = value);
|
|
5083
5176
|
this.validateScenario(this.scenarios);
|
|
5084
5177
|
this.validateVariances(this.variances);
|
|
5085
5178
|
this.validateDataFormat(this.dataFormat);
|
|
@@ -5124,7 +5217,6 @@ const Table$1 = class Table {
|
|
|
5124
5217
|
var _a;
|
|
5125
5218
|
(_a = this.layoutObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
5126
5219
|
this.layoutObserver = null;
|
|
5127
|
-
this.unsubscribe();
|
|
5128
5220
|
}
|
|
5129
5221
|
componentDidRender() {
|
|
5130
5222
|
const { mode } = scaling.parseScaling(this.scale);
|
|
@@ -5465,7 +5557,7 @@ const Table$1 = class Table {
|
|
|
5465
5557
|
render() {
|
|
5466
5558
|
const fontStyles = this.getFontStyles();
|
|
5467
5559
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
5468
|
-
return (index.h(index.Host, { key: '
|
|
5560
|
+
return (index.h(index.Host, { key: 'bf02ff1729d38196191e293039cc642f1f320cad', style: fontStyles }, index.h("div", { key: '57b40dfd2e861e02646e445a1e9e1ab9d2a41799' }, index.h("ibcs-table", { key: 'e779297177445a5d2c899603984f7be82088c6d3', 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(), barColumnMaxWidth: this.prepareBarColumnWidth(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), scaleFactor: effectiveFactor }))));
|
|
5469
5561
|
}
|
|
5470
5562
|
get element() { return index.getElement(this); }
|
|
5471
5563
|
static get watchers() { return {
|
|
@@ -23823,9 +23915,6 @@ const ibcsTitleCss = () => `:host{display:block;font-family:var(--bn-font-family
|
|
|
23823
23915
|
const IbcsTitle = class {
|
|
23824
23916
|
constructor(hostRef) {
|
|
23825
23917
|
index.registerInstance(this, hostRef);
|
|
23826
|
-
// sample fuer die chrome dev console:
|
|
23827
|
-
// document.querySelector("ibcs-title").setBusinessUnit("Sven")
|
|
23828
|
-
// document.querySelector("ibcs-title").setProps({businessUnit: "Lalal"})
|
|
23829
23918
|
this.businessUnit = "";
|
|
23830
23919
|
this.scenarios = [];
|
|
23831
23920
|
this.measures = [];
|
|
@@ -23850,7 +23939,7 @@ const IbcsTitle = class {
|
|
|
23850
23939
|
});
|
|
23851
23940
|
}
|
|
23852
23941
|
render() {
|
|
23853
|
-
return (index.h("div", { key: '
|
|
23942
|
+
return (index.h("div", { key: '314cf7dad025643a6cdc190312eb100a310f076b' }, index.h("div", { key: 'b2e5c89f5d9d08987d09d0ee46e63b5889ede87c' }, this.title.unit), index.h("div", { key: 'd9cb4aa0cc02d8b354eb61609d4e22f4641e10a1' }, this.title.measures.map((measure, index$1) => (index.h("span", null, this.isFirstElement(index$1) ? this.title.i18n.get("SEPERATOR_WS") : "", index.h("span", { class: "measure" }, measure.name), " ", measure.unit ? this.title.i18n.get("in") : "", " ", measure.unit)))), index.h("div", { key: 'ccbfb094dd5fa097fe339b03958ea3854e87083e' }, this.title.dimension)));
|
|
23854
23943
|
}
|
|
23855
23944
|
componentWillLoad() {
|
|
23856
23945
|
const config = this.prepareConfig();
|
|
@@ -46,7 +46,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
46
46
|
|
|
47
47
|
patchBrowser().then(async (options) => {
|
|
48
48
|
await appGlobals.globalScripts();
|
|
49
|
-
return index.bootstrapLazy(JSON.parse("[[\"bn-grid.cjs\",[[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.cjs\",[[1,\"bn-image\",{\"source\":[1]}]]],[\"bn-internationalization.cjs\",[[0,\"bn-internationalization\",{\"code\":[1],\"namespace\":[1]}]]],[\"bn-template.cjs\",[[257,\"bn-template\",{\"templateId\":[1,\"template-id\"]}]]],[\"bn-text.cjs\",[[1,\"bn-text\",{\"value\":[1],\"scale\":[1],\"data\":[32]},null,{\"value\":[{\"validateValue\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-tree.cjs\",[[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.cjs\",[[0,\"editor-companion\",{\"internationalizationKeys\":[64],\"getDistinctFromDataSource\":[64],\"getDistinctFromDataset\":[64]}]]],[\"bn-asset_21.cjs\",[[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]}],[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]}],[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}]}],[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}]}],[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}]}],[1,\"bn-asset\",{\"name\":[1]}],[0,\"bn-component-style\",{\"name\":[1]}],[257,\"bn-context\",{\"locale\":[1]},null,{\"locale\":[{\"setLocale\":0}]}],[0,\"bn-dataset\",{\"name\":[1],\"datasources\":[1],\"static\":[4],\"raw\":[4]},null,{\"name\":[{\"nameUpdated\":0}]}],[0,\"bn-datasource\",{\"name\":[1],\"raw\":[4]}],[0,\"bn-scaling-group\",{\"name\":[1],\"value\":[2]},null,{\"name\":[{\"onNameChange\":0}],\"value\":[{\"onValueChange\":0}]}],[257,\"bn-card\"],[1,\"bn-message\",{\"text\":[1025],\"image\":[1]}],[257,\"bn-page\",{\"format\":[1],\"orientation\":[1]},null,{\"format\":[{\"validateFormat\":0}],\"orientation\":[{\"validateOrientation\":0}]}],[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]}],[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]}],[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\"]}],[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);
|
|
49
|
+
return index.bootstrapLazy(JSON.parse("[[\"bn-grid.cjs\",[[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.cjs\",[[1,\"bn-image\",{\"source\":[1]}]]],[\"bn-internationalization.cjs\",[[0,\"bn-internationalization\",{\"code\":[1],\"namespace\":[1]}]]],[\"bn-template.cjs\",[[257,\"bn-template\",{\"templateId\":[1,\"template-id\"]}]]],[\"bn-text.cjs\",[[1,\"bn-text\",{\"value\":[1],\"scale\":[1],\"data\":[32]},null,{\"value\":[{\"validateValue\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-tree.cjs\",[[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.cjs\",[[0,\"editor-companion\",{\"internationalizationKeys\":[64],\"getDistinctFromDataSource\":[64],\"getDistinctFromDataset\":[64]}]]],[\"bn-asset_21.cjs\",[[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]}],[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]}],[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}]}],[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}]}],[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}]}],[1,\"bn-asset\",{\"name\":[1]}],[0,\"bn-component-style\",{\"name\":[1]}],[257,\"bn-context\",{\"locale\":[1]},null,{\"locale\":[{\"setLocale\":0}]}],[0,\"bn-dataset\",{\"name\":[1],\"datasources\":[1],\"static\":[4],\"raw\":[4]},null,{\"name\":[{\"nameUpdated\":0}]}],[0,\"bn-datasource\",{\"name\":[1],\"raw\":[4],\"interval\":[2]},null,{\"interval\":[{\"onIntervalChange\":0}]}],[0,\"bn-scaling-group\",{\"name\":[1],\"value\":[2]},null,{\"name\":[{\"onNameChange\":0}],\"value\":[{\"onValueChange\":0}]}],[257,\"bn-card\"],[1,\"bn-message\",{\"text\":[1025],\"image\":[1]}],[257,\"bn-page\",{\"format\":[1],\"orientation\":[1]},null,{\"format\":[{\"validateFormat\":0}],\"orientation\":[{\"validateOrientation\":0}]}],[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]}],[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]}],[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\"]}],[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);
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
|
6
6
|
const defineCustomElements = async (win, options) => {
|
|
7
7
|
if (typeof window === 'undefined') return undefined;
|
|
8
8
|
await appGlobals.globalScripts();
|
|
9
|
-
return index.bootstrapLazy(JSON.parse("[[\"bn-grid.cjs\",[[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.cjs\",[[1,\"bn-image\",{\"source\":[1]}]]],[\"bn-internationalization.cjs\",[[0,\"bn-internationalization\",{\"code\":[1],\"namespace\":[1]}]]],[\"bn-template.cjs\",[[257,\"bn-template\",{\"templateId\":[1,\"template-id\"]}]]],[\"bn-text.cjs\",[[1,\"bn-text\",{\"value\":[1],\"scale\":[1],\"data\":[32]},null,{\"value\":[{\"validateValue\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-tree.cjs\",[[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.cjs\",[[0,\"editor-companion\",{\"internationalizationKeys\":[64],\"getDistinctFromDataSource\":[64],\"getDistinctFromDataset\":[64]}]]],[\"bn-asset_21.cjs\",[[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]}],[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]}],[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}]}],[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}]}],[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}]}],[1,\"bn-asset\",{\"name\":[1]}],[0,\"bn-component-style\",{\"name\":[1]}],[257,\"bn-context\",{\"locale\":[1]},null,{\"locale\":[{\"setLocale\":0}]}],[0,\"bn-dataset\",{\"name\":[1],\"datasources\":[1],\"static\":[4],\"raw\":[4]},null,{\"name\":[{\"nameUpdated\":0}]}],[0,\"bn-datasource\",{\"name\":[1],\"raw\":[4]}],[0,\"bn-scaling-group\",{\"name\":[1],\"value\":[2]},null,{\"name\":[{\"onNameChange\":0}],\"value\":[{\"onValueChange\":0}]}],[257,\"bn-card\"],[1,\"bn-message\",{\"text\":[1025],\"image\":[1]}],[257,\"bn-page\",{\"format\":[1],\"orientation\":[1]},null,{\"format\":[{\"validateFormat\":0}],\"orientation\":[{\"validateOrientation\":0}]}],[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]}],[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]}],[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\"]}],[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
|
+
return index.bootstrapLazy(JSON.parse("[[\"bn-grid.cjs\",[[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.cjs\",[[1,\"bn-image\",{\"source\":[1]}]]],[\"bn-internationalization.cjs\",[[0,\"bn-internationalization\",{\"code\":[1],\"namespace\":[1]}]]],[\"bn-template.cjs\",[[257,\"bn-template\",{\"templateId\":[1,\"template-id\"]}]]],[\"bn-text.cjs\",[[1,\"bn-text\",{\"value\":[1],\"scale\":[1],\"data\":[32]},null,{\"value\":[{\"validateValue\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-tree.cjs\",[[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.cjs\",[[0,\"editor-companion\",{\"internationalizationKeys\":[64],\"getDistinctFromDataSource\":[64],\"getDistinctFromDataset\":[64]}]]],[\"bn-asset_21.cjs\",[[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]}],[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]}],[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}]}],[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}]}],[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}]}],[1,\"bn-asset\",{\"name\":[1]}],[0,\"bn-component-style\",{\"name\":[1]}],[257,\"bn-context\",{\"locale\":[1]},null,{\"locale\":[{\"setLocale\":0}]}],[0,\"bn-dataset\",{\"name\":[1],\"datasources\":[1],\"static\":[4],\"raw\":[4]},null,{\"name\":[{\"nameUpdated\":0}]}],[0,\"bn-datasource\",{\"name\":[1],\"raw\":[4],\"interval\":[2]},null,{\"interval\":[{\"onIntervalChange\":0}]}],[0,\"bn-scaling-group\",{\"name\":[1],\"value\":[2]},null,{\"name\":[{\"onNameChange\":0}],\"value\":[{\"onValueChange\":0}]}],[257,\"bn-card\"],[1,\"bn-message\",{\"text\":[1025],\"image\":[1]}],[257,\"bn-page\",{\"format\":[1],\"orientation\":[1]},null,{\"format\":[{\"validateFormat\":0}],\"orientation\":[{\"validateOrientation\":0}]}],[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]}],[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]}],[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\"]}],[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);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -5,27 +5,64 @@ import withComponentStatus from "../../utils/withComponentStatus";
|
|
|
5
5
|
import withHasError from "../../utils/withHasError";
|
|
6
6
|
import { computeContentHash, decodeCompressedContent } from "../../utils/contentDecoder";
|
|
7
7
|
/**
|
|
8
|
-
* Ingests
|
|
8
|
+
* Ingests data and writes it to the scoped `datasources` store.
|
|
9
9
|
*
|
|
10
|
-
* Data
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Data can be provided in three ways:
|
|
11
|
+
* 1. **Inline JSON** — Place JSON text inside the element body (default).
|
|
12
|
+
* 2. **Compressed payload** — Set `raw="false"` and provide `<hash>:<base64_gzip>` format.
|
|
13
|
+
* 3. **URL** — Place an `http://` or `https://` URL in the body to fetch JSON
|
|
14
|
+
* from a remote endpoint.
|
|
13
15
|
*
|
|
14
|
-
*
|
|
16
|
+
* In URL mode the component fetches JSON from the URL. Set the `interval`
|
|
17
|
+
* prop (in seconds) to enable periodic re-fetching (polling).
|
|
18
|
+
*
|
|
19
|
+
* Other components (e.g. `bn-dataset`) reference the stored data by the
|
|
20
|
+
* `name` prop to run queries against it.
|
|
15
21
|
*/
|
|
16
22
|
export class Datasource {
|
|
17
23
|
constructor() {
|
|
18
24
|
/**
|
|
19
25
|
* When true (default), body content is plain JSON text.
|
|
20
26
|
* When false, body content is a compressed payload (`<hash>:<base64_gzip>`).
|
|
27
|
+
* Ignored in URL mode.
|
|
21
28
|
*/
|
|
22
29
|
this.raw = true;
|
|
30
|
+
/**
|
|
31
|
+
* Polling interval in **seconds** for URL mode.
|
|
32
|
+
* When set and the body content is a URL, the component re-fetches
|
|
33
|
+
* data at this interval. Has no effect for inline JSON or compressed content.
|
|
34
|
+
* Set to `0` or leave unset to disable polling.
|
|
35
|
+
*/
|
|
36
|
+
this.interval = 0;
|
|
23
37
|
this.lastHash = null;
|
|
38
|
+
/** The currently active URL (`null` when in inline-JSON mode). */
|
|
39
|
+
this.currentUrl = null;
|
|
40
|
+
/** Timer ID for the polling interval. */
|
|
41
|
+
this.pollTimerId = null;
|
|
42
|
+
/** AbortController for cancelling in-flight fetch requests. */
|
|
43
|
+
this.abortController = null;
|
|
24
44
|
withComponentStatus(this);
|
|
25
45
|
this.errors = withHasError(this);
|
|
26
46
|
withBodyObserver(this, (data) => {
|
|
27
47
|
if (!this.stores)
|
|
28
48
|
this.stores = getStores(this.element);
|
|
49
|
+
const trimmed = data.trim();
|
|
50
|
+
// --- URL mode ---
|
|
51
|
+
if (this.isUrl(trimmed)) {
|
|
52
|
+
if (trimmed === this.currentUrl)
|
|
53
|
+
return;
|
|
54
|
+
this.currentUrl = trimmed;
|
|
55
|
+
this.lastHash = null;
|
|
56
|
+
this.fetchAndStore(trimmed);
|
|
57
|
+
this.startPolling();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
// --- Leaving URL mode → clean up ---
|
|
61
|
+
if (this.currentUrl !== null) {
|
|
62
|
+
this.clearPolling();
|
|
63
|
+
this.currentUrl = null;
|
|
64
|
+
}
|
|
65
|
+
// --- Inline JSON / compressed mode ---
|
|
29
66
|
try {
|
|
30
67
|
let contentHash;
|
|
31
68
|
let jsonString;
|
|
@@ -52,8 +89,67 @@ export class Datasource {
|
|
|
52
89
|
}
|
|
53
90
|
});
|
|
54
91
|
}
|
|
92
|
+
onIntervalChange() {
|
|
93
|
+
if (this.currentUrl) {
|
|
94
|
+
this.startPolling();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
disconnectedCallback() {
|
|
98
|
+
this.clearPolling();
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Returns `true` if the text starts with `http://` or `https://`.
|
|
102
|
+
*/
|
|
103
|
+
isUrl(text) {
|
|
104
|
+
return text.startsWith("http://") || text.startsWith("https://");
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Fetches JSON from the given URL and stores the result.
|
|
108
|
+
* Cancels any in-flight request before starting a new one.
|
|
109
|
+
*/
|
|
110
|
+
async fetchAndStore(url) {
|
|
111
|
+
var _a;
|
|
112
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
113
|
+
this.abortController = new AbortController();
|
|
114
|
+
if (!this.stores)
|
|
115
|
+
this.stores = getStores(this.element);
|
|
116
|
+
try {
|
|
117
|
+
const response = await fetch(url, { signal: this.abortController.signal });
|
|
118
|
+
const json = await response.json();
|
|
119
|
+
// @ts-ignore
|
|
120
|
+
this.stores.datasources.set(this.name, json);
|
|
121
|
+
}
|
|
122
|
+
catch (e) {
|
|
123
|
+
if (e instanceof DOMException && e.name === "AbortError")
|
|
124
|
+
return;
|
|
125
|
+
console.error("bn-datasource: error fetching URL", e, url);
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
this.stores.datasources.set(this.name, []);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/** Stops the polling timer and cancels any in-flight fetch. */
|
|
131
|
+
clearPolling() {
|
|
132
|
+
var _a;
|
|
133
|
+
if (this.pollTimerId !== null) {
|
|
134
|
+
clearInterval(this.pollTimerId);
|
|
135
|
+
this.pollTimerId = null;
|
|
136
|
+
}
|
|
137
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
138
|
+
this.abortController = null;
|
|
139
|
+
}
|
|
140
|
+
/** Starts (or restarts) the polling timer if in URL mode with a positive interval. */
|
|
141
|
+
startPolling() {
|
|
142
|
+
this.clearPolling();
|
|
143
|
+
if (this.currentUrl && this.interval > 0) {
|
|
144
|
+
this.pollTimerId = setInterval(() => {
|
|
145
|
+
if (this.currentUrl) {
|
|
146
|
+
this.fetchAndStore(this.currentUrl);
|
|
147
|
+
}
|
|
148
|
+
}, this.interval * 1000);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
55
151
|
render() {
|
|
56
|
-
return h(Host, { key: '
|
|
152
|
+
return h(Host, { key: 'ca9f70b8f570c1b3ec94c800cd63baa4a0733d07' });
|
|
57
153
|
}
|
|
58
154
|
static get is() { return "bn-datasource"; }
|
|
59
155
|
static get originalStyleUrls() {
|
|
@@ -80,7 +176,7 @@ export class Datasource {
|
|
|
80
176
|
"optional": false,
|
|
81
177
|
"docs": {
|
|
82
178
|
"tags": [],
|
|
83
|
-
"text": "Unique (template scope) name of the datasource"
|
|
179
|
+
"text": "Unique (template scope) name of the datasource."
|
|
84
180
|
},
|
|
85
181
|
"getter": false,
|
|
86
182
|
"setter": false,
|
|
@@ -99,15 +195,41 @@ export class Datasource {
|
|
|
99
195
|
"optional": false,
|
|
100
196
|
"docs": {
|
|
101
197
|
"tags": [],
|
|
102
|
-
"text": "When true (default), body content is plain JSON text.\nWhen false, body content is a compressed payload (`<hash>:<base64_gzip>`)."
|
|
198
|
+
"text": "When true (default), body content is plain JSON text.\nWhen false, body content is a compressed payload (`<hash>:<base64_gzip>`).\nIgnored in URL mode."
|
|
103
199
|
},
|
|
104
200
|
"getter": false,
|
|
105
201
|
"setter": false,
|
|
106
202
|
"reflect": false,
|
|
107
203
|
"attribute": "raw",
|
|
108
204
|
"defaultValue": "true"
|
|
205
|
+
},
|
|
206
|
+
"interval": {
|
|
207
|
+
"type": "number",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "number",
|
|
211
|
+
"resolved": "number",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": "Polling interval in **seconds** for URL mode.\nWhen set and the body content is a URL, the component re-fetches\ndata at this interval. Has no effect for inline JSON or compressed content.\nSet to `0` or leave unset to disable polling."
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false,
|
|
222
|
+
"reflect": false,
|
|
223
|
+
"attribute": "interval",
|
|
224
|
+
"defaultValue": "0"
|
|
109
225
|
}
|
|
110
226
|
};
|
|
111
227
|
}
|
|
112
228
|
static get elementRef() { return "element"; }
|
|
229
|
+
static get watchers() {
|
|
230
|
+
return [{
|
|
231
|
+
"propName": "interval",
|
|
232
|
+
"methodName": "onIntervalChange"
|
|
233
|
+
}];
|
|
234
|
+
}
|
|
113
235
|
}
|
|
@@ -602,8 +602,6 @@ export class Table {
|
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
componentWillLoad() {
|
|
605
|
-
//this.datasouce = get("test");
|
|
606
|
-
// this.unsubscribe = onChange("test", (value) => this.datasouce = value);
|
|
607
605
|
this.validateScenario(this.scenarios);
|
|
608
606
|
this.validateVariances(this.variances);
|
|
609
607
|
this.validateDataFormat(this.dataFormat);
|
|
@@ -648,7 +646,6 @@ export class Table {
|
|
|
648
646
|
var _a;
|
|
649
647
|
(_a = this.layoutObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
650
648
|
this.layoutObserver = null;
|
|
651
|
-
this.unsubscribe();
|
|
652
649
|
}
|
|
653
650
|
componentDidRender() {
|
|
654
651
|
const { mode } = parseScaling(this.scale);
|
|
@@ -989,7 +986,7 @@ export class Table {
|
|
|
989
986
|
render() {
|
|
990
987
|
const fontStyles = this.getFontStyles();
|
|
991
988
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
992
|
-
return (h(Host, { key: '
|
|
989
|
+
return (h(Host, { key: 'bf02ff1729d38196191e293039cc642f1f320cad', style: fontStyles }, h("div", { key: '57b40dfd2e861e02646e445a1e9e1ab9d2a41799' }, h("ibcs-table", { key: 'e779297177445a5d2c899603984f7be82088c6d3', 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(), barColumnMaxWidth: this.prepareBarColumnWidth(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), scaleFactor: effectiveFactor }))));
|
|
993
990
|
}
|
|
994
991
|
static get is() { return "bn-table"; }
|
|
995
992
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,9 +9,6 @@ import { IBCSRuleSet } from "../../../utils/ibcsRuleSet";
|
|
|
9
9
|
import { StringAdapter } from "../../../utils/helper/StringAdapter";
|
|
10
10
|
export class IbcsTitle {
|
|
11
11
|
constructor() {
|
|
12
|
-
// sample fuer die chrome dev console:
|
|
13
|
-
// document.querySelector("ibcs-title").setBusinessUnit("Sven")
|
|
14
|
-
// document.querySelector("ibcs-title").setProps({businessUnit: "Lalal"})
|
|
15
12
|
this.businessUnit = "";
|
|
16
13
|
this.scenarios = [];
|
|
17
14
|
this.measures = [];
|
|
@@ -36,7 +33,7 @@ export class IbcsTitle {
|
|
|
36
33
|
});
|
|
37
34
|
}
|
|
38
35
|
render() {
|
|
39
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: '314cf7dad025643a6cdc190312eb100a310f076b' }, h("div", { key: 'b2e5c89f5d9d08987d09d0ee46e63b5889ede87c' }, this.title.unit), h("div", { key: 'd9cb4aa0cc02d8b354eb61609d4e22f4641e10a1' }, this.title.measures.map((measure, index) => (h("span", null, this.isFirstElement(index) ? this.title.i18n.get("SEPERATOR_WS") : "", h("span", { class: "measure" }, measure.name), " ", measure.unit ? this.title.i18n.get("in") : "", " ", measure.unit)))), h("div", { key: 'ccbfb094dd5fa097fe339b03958ea3854e87083e' }, this.title.dimension)));
|
|
40
37
|
}
|
|
41
38
|
componentWillLoad() {
|
|
42
39
|
const config = this.prepareConfig();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as s,h as
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as s,h as i,Host as e,transformTag as n}from"@stencil/core/internal/client";import{w as r}from"./withBodyObserver.js";import{g as h}from"./context-protocol.js";import{w as o,a}from"./withHasError.js";import{c as l,d as c}from"./contentDecoder.js";const u=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.raw=!0,this.interval=0,this.lastHash=null,this.currentUrl=null,this.pollTimerId=null,this.abortController=null,o(this),this.errors=a(this),r(this,(t=>{this.stores||(this.stores=h(this.element));const s=t.trim();if(this.isUrl(s)){if(s===this.currentUrl)return;return this.currentUrl=s,this.lastHash=null,this.fetchAndStore(s),void this.startPolling()}null!==this.currentUrl&&(this.clearPolling(),this.currentUrl=null);try{let s,i;if(this.raw)s=l(t),i=t;else{const e=c(t);s=e.hash,i=e.json}if(s===this.lastHash)return;this.lastHash=s;const e=JSON.parse(i);this.stores.datasources.set(this.name,e)}catch(s){console.error("Error parsing datasource",s,(t+"").slice(0,200)),this.stores.datasources.set(this.name,[])}}))}onIntervalChange(){this.currentUrl&&this.startPolling()}disconnectedCallback(){this.clearPolling()}isUrl(t){return t.startsWith("http://")||t.startsWith("https://")}async fetchAndStore(t){var s;null===(s=this.abortController)||void 0===s||s.abort(),this.abortController=new AbortController,this.stores||(this.stores=h(this.element));try{const s=await fetch(t,{signal:this.abortController.signal}),i=await s.json();this.stores.datasources.set(this.name,i)}catch(s){if(s instanceof DOMException&&"AbortError"===s.name)return;console.error("bn-datasource: error fetching URL",s,t),this.stores.datasources.set(this.name,[])}}clearPolling(){var t;null!==this.pollTimerId&&(clearInterval(this.pollTimerId),this.pollTimerId=null),null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=null}startPolling(){this.clearPolling(),this.currentUrl&&this.interval>0&&(this.pollTimerId=setInterval((()=>{this.currentUrl&&this.fetchAndStore(this.currentUrl)}),1e3*this.interval))}render(){return i(e,{key:"ca9f70b8f570c1b3ec94c800cd63baa4a0733d07"})}get element(){return this}static get watchers(){return{interval:[{onIntervalChange:0}]}}static get style(){return"bn-datasource{display:none}"}},[0,"bn-datasource",{name:[1],raw:[4],interval:[2]},void 0,{interval:[{onIntervalChange:0}]}]),d=u,f=function(){"undefined"!=typeof customElements&&["bn-datasource"].forEach((t=>{"bn-datasource"===t&&(customElements.get(n(t))||customElements.define(n(t),u))}))};export{d as BnDatasource,f as defineCustomElement}
|