@bino-bi/bn-template-engine 1.0.0-alpha.3 → 1.0.0-alpha.5
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-1265d8d3.entry.js +1 -0
- package/dist/bn-template-engine/p-15516dac.entry.js +1 -0
- package/dist/bn-template-engine/p-1c716641.entry.js +1 -0
- package/dist/bn-template-engine/p-27cc8dc0.entry.js +1 -0
- package/dist/bn-template-engine/p-3b4c7425.entry.js +1 -0
- package/dist/bn-template-engine/p-4426d484.entry.js +1 -0
- package/dist/bn-template-engine/p-51f8dc9e.entry.js +1 -0
- package/dist/bn-template-engine/p-53d4e690.entry.js +1 -0
- package/dist/bn-template-engine/p-5KQYRQLK.js +1 -0
- package/dist/bn-template-engine/p-7337e03d.entry.js +1 -0
- package/dist/bn-template-engine/{p-0f1504f3.entry.js → p-75e97c87.entry.js} +1 -1
- package/dist/bn-template-engine/p-7a560278.entry.js +1 -0
- package/dist/bn-template-engine/p-BYBpC0EO.js +1 -0
- package/dist/bn-template-engine/p-BfXY5dsy.js +1 -0
- package/dist/bn-template-engine/p-BgnHJQ9Q.js +1 -0
- package/dist/bn-template-engine/{p-B4ySv9KQ.js → p-Bhd_WSML.js} +1 -1
- package/dist/bn-template-engine/p-Bka-Z6jo.js +1 -0
- package/dist/bn-template-engine/p-Bnhh02CF.js +1 -0
- package/dist/bn-template-engine/p-C7dQL8CS.js +1 -0
- package/dist/bn-template-engine/p-CL1RYuNU.js +1 -0
- package/dist/bn-template-engine/p-CYwd_ZNM.js +1 -0
- package/dist/bn-template-engine/p-ChlK-T9I.js +1 -0
- package/dist/bn-template-engine/p-DHezf8pZ.js +1 -0
- package/dist/bn-template-engine/{p-DVMu6dEy.js → p-DlppAFq9.js} +1 -1
- package/dist/bn-template-engine/p-DvDDgmcV.js +1 -0
- package/dist/bn-template-engine/p-DvvwfRQG.js +1 -0
- package/dist/bn-template-engine/{p-DG-1MR_T.js → p-P7pGJBgc.js} +1 -1
- package/dist/bn-template-engine/p-abc0067c.entry.js +1 -0
- package/dist/bn-template-engine/p-b34eaf86.entry.js +1 -0
- package/dist/bn-template-engine/p-bdb8b44c.entry.js +1 -0
- package/dist/bn-template-engine/p-c44fcb8e.entry.js +1 -0
- package/dist/bn-template-engine/p-c7e1a49b.entry.js +1 -0
- package/dist/bn-template-engine/p-d9003041.entry.js +1 -0
- package/dist/bn-template-engine/p-daa7ffa3.entry.js +1 -0
- package/dist/bn-template-engine/p-e084f50a.entry.js +1 -0
- package/dist/bn-template-engine/p-eaba6658.entry.js +1 -0
- package/dist/bn-template-engine/{p-C0yAPzJz.js → p-u8igQLRZ.js} +1 -1
- package/dist/cjs/{DataFormatDigits-DAmZzqbD.js → DataFormatDigits-DKcOeLNK.js} +1 -1
- package/dist/cjs/{DateStringFactory-CcluhpGI.js → DateStringFactory-CSKvbS8K.js} +1 -1
- package/dist/cjs/{Order-BKoDS21t.js → Order-iG11HI4R.js} +8 -5
- package/dist/cjs/{SVGVariancesStyleGroup-DYYAU-81.js → SVGVariancesStyleGroup-K-Tw6lOD.js} +1 -14
- package/dist/cjs/bn-asset.cjs.entry.js +5 -4
- package/dist/cjs/bn-body_4.cjs.entry.js +15 -13
- package/dist/cjs/bn-card.cjs.entry.js +5 -4
- package/dist/cjs/{ibcs-chart-structure.cjs.entry.js → bn-chart-structure_5.cjs.entry.js} +1074 -30
- package/dist/cjs/bn-chart-time.cjs.entry.js +38 -12
- package/dist/cjs/bn-component-style.cjs.entry.js +5 -4
- package/dist/cjs/bn-dataset.cjs.entry.js +38 -9
- package/dist/cjs/bn-grid.cjs.entry.js +9 -7
- package/dist/cjs/bn-image.cjs.entry.js +9 -7
- package/dist/cjs/bn-internationalization.cjs.entry.js +5 -4
- package/dist/cjs/bn-layout-card.cjs.entry.js +3 -2
- package/dist/cjs/bn-layout-page.cjs.entry.js +2 -1
- package/dist/cjs/bn-message.cjs.entry.js +5 -4
- package/dist/cjs/bn-table.cjs.entry.js +981 -0
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-template.cjs.entry.js +3 -2
- package/dist/cjs/bn-text.cjs.entry.js +11 -9
- package/dist/cjs/bn-tree.cjs.entry.js +9 -7
- package/dist/cjs/contentDecoder-JxOldq1e.js +419 -0
- package/dist/cjs/{context-protocol-CRPmux5D.js → context-protocol-DRQWrwsA.js} +2 -0
- package/dist/cjs/editor-companion.cjs.entry.js +1 -1
- package/dist/cjs/emotion-hash.esm-nbbEQ0Dn.js +57 -0
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +22 -18
- package/dist/cjs/{bn-context_5.cjs.entry.js → ibcs-table.cjs.entry.js} +122 -1293
- package/dist/cjs/{StringAdapter-Bneo8T4k.js → ibcsRuleSet-DgUoXOfd.js} +10 -10
- package/dist/cjs/index-Dm85hG6t.js +65 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{scaling-D8sIIKft.js → scaling-9Tz595RQ.js} +7 -7
- package/dist/cjs/{withHasError-B8gHkfV2.js → utils-CwHIVbbL.js} +1 -69
- package/dist/cjs/{withBodyObserver-C6gLgq_e.js → withBodyObserver-CKpSD8UT.js} +3 -3
- package/dist/cjs/{withComponentStatus-_x4LQZ0N.js → withComponentStatus-Bw70BhO0.js} +5 -5
- package/dist/cjs/{withComponentStyle-DMtic_9Y.js → withComponentStyle-aIbTCtfj.js} +5 -5
- package/dist/cjs/withHasError-D7ue5vAv.js +72 -0
- package/dist/cjs/{withStyled-CW30Bh6c.js → withStyled-CS1Yp4sv.js} +8 -61
- package/dist/cjs/{withTranslation-CWPAIRjh.js → withTranslation-rwgyITqe.js} +5 -5
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +226 -99
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +13 -3
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
- package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
- package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +28 -4
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
- package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
- package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
- package/dist/collection/components/bn-datasource/bn-datasource.js +46 -3
- package/dist/collection/components/bn-table/bn-table.js +20 -21
- package/dist/collection/components/bn-table/ibcs-table.js +2 -2
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +58 -41
- package/dist/collection/stores/componentStyles.js +2 -0
- package/dist/collection/utils/constants.js +8 -5
- package/dist/collection/utils/contentDecoder.js +28 -0
- package/dist/collection/utils/stackColors.js +2 -2
- package/dist/collection/utils/validate.js +1 -1
- package/dist/components/DataFormatDigits.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-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/contentDecoder.js +1 -0
- package/dist/components/context-protocol.js +1 -1
- package/dist/components/emotion-hash.esm.js +1 -0
- 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/components/withStyled.js +1 -1
- package/dist/esm/{DataFormatDigits--qIbKvXa.js → DataFormatDigits-oSZ1hBKE.js} +1 -1
- package/dist/esm/{DateStringFactory-XWdUjsn8.js → DateStringFactory-CSGz6TDk.js} +1 -1
- package/dist/esm/{Order-sqjrku2z.js → Order-Bnhh02CF.js} +9 -6
- package/dist/esm/{SVGVariancesStyleGroup-ibg3sLjM.js → SVGVariancesStyleGroup-CqTjrZYg.js} +2 -13
- package/dist/esm/bn-asset.entry.js +5 -4
- package/dist/esm/bn-body_4.entry.js +11 -9
- package/dist/esm/bn-card.entry.js +5 -4
- package/dist/esm/{ibcs-chart-structure.entry.js → bn-chart-structure_5.entry.js} +1064 -24
- package/dist/esm/bn-chart-time.entry.js +38 -12
- package/dist/esm/bn-component-style.entry.js +5 -4
- package/dist/esm/bn-dataset.entry.js +35 -6
- package/dist/esm/bn-grid.entry.js +9 -7
- package/dist/esm/bn-image.entry.js +9 -7
- package/dist/esm/bn-internationalization.entry.js +5 -4
- package/dist/esm/bn-layout-card.entry.js +3 -2
- package/dist/esm/bn-layout-page.entry.js +2 -1
- package/dist/esm/bn-message.entry.js +5 -4
- package/dist/esm/bn-table.entry.js +979 -0
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-template.entry.js +3 -2
- package/dist/esm/bn-text.entry.js +11 -9
- package/dist/esm/bn-tree.entry.js +9 -7
- package/dist/esm/contentDecoder-oMmxz6nJ.js +416 -0
- package/dist/esm/{context-protocol-Bz5klD-F.js → context-protocol-BHnQsVsr.js} +2 -0
- package/dist/esm/editor-companion.entry.js +1 -1
- package/dist/esm/emotion-hash.esm-BYBpC0EO.js +55 -0
- package/dist/esm/ibcs-chart-time.entry.js +15 -11
- package/dist/esm/{bn-context_5.entry.js → ibcs-table.entry.js} +69 -1236
- package/dist/esm/{StringAdapter-BCLJpQQ8.js → ibcsRuleSet-K4ytuA1f.js} +10 -10
- package/dist/esm/index-DHezf8pZ.js +65 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{scaling-C6K8FYSF.js → scaling-Cehc74IE.js} +2 -2
- package/dist/esm/{withHasError-B3QX2emi.js → utils-DvvwfRQG.js} +1 -69
- package/dist/esm/{withBodyObserver-DczL5ia8.js → withBodyObserver-FQ8NwCIz.js} +1 -1
- package/dist/esm/{withComponentStatus-DodoSXe-.js → withComponentStatus-DWjDYtZ7.js} +1 -1
- package/dist/esm/{withComponentStyle-BerJY64r.js → withComponentStyle-9uP_hcDq.js} +2 -2
- package/dist/esm/withHasError-FyY5mQ_3.js +70 -0
- package/dist/esm/{withStyled-D1fAWJ3g.js → withStyled--qQWquTH.js} +6 -59
- package/dist/esm/{withTranslation-mimbJdER.js → withTranslation-BqD0Kp7b.js} +2 -2
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +155 -109
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
- package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
- package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +8 -0
- package/dist/types/components/bn-table/bn-table.d.ts +10 -8
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +0 -2
- package/dist/types/components.d.ts +102 -38
- package/dist/types/stores/componentStyles.d.ts +2 -0
- package/dist/types/utils/constants.d.ts +8 -5
- package/dist/types/utils/contentDecoder.d.ts +12 -0
- package/package.json +2 -1
- package/dist/bn-template-engine/p-05a82a77.entry.js +0 -1
- package/dist/bn-template-engine/p-1970906d.entry.js +0 -1
- package/dist/bn-template-engine/p-1dbd339c.entry.js +0 -1
- package/dist/bn-template-engine/p-2e68cf09.entry.js +0 -1
- package/dist/bn-template-engine/p-31cc6a2d.entry.js +0 -1
- package/dist/bn-template-engine/p-37881d05.entry.js +0 -1
- package/dist/bn-template-engine/p-3b894997.entry.js +0 -1
- package/dist/bn-template-engine/p-50e49732.entry.js +0 -1
- package/dist/bn-template-engine/p-6c7c0455.entry.js +0 -1
- package/dist/bn-template-engine/p-6da93eae.entry.js +0 -1
- package/dist/bn-template-engine/p-701e1578.entry.js +0 -1
- package/dist/bn-template-engine/p-8tsCnxIz.js +0 -1
- package/dist/bn-template-engine/p-997b2fe4.entry.js +0 -1
- package/dist/bn-template-engine/p-BL8gyUwE.js +0 -1
- package/dist/bn-template-engine/p-BSfqOkN_.js +0 -1
- package/dist/bn-template-engine/p-CRLgp9-v.js +0 -1
- package/dist/bn-template-engine/p-CYjZRKdI.js +0 -1
- package/dist/bn-template-engine/p-DRikHQE-.js +0 -1
- package/dist/bn-template-engine/p-DtdQCMzj.js +0 -1
- package/dist/bn-template-engine/p-a90f1cbe.entry.js +0 -1
- package/dist/bn-template-engine/p-b7bec050.entry.js +0 -1
- package/dist/bn-template-engine/p-d7f0cbaf.entry.js +0 -1
- package/dist/bn-template-engine/p-dfb61aa5.entry.js +0 -1
- package/dist/bn-template-engine/p-ece17f84.entry.js +0 -1
- package/dist/bn-template-engine/p-f27995c9.entry.js +0 -1
- package/dist/bn-template-engine/p-fd427179.entry.js +0 -1
- package/dist/bn-template-engine/p-sqjrku2z.js +0 -1
- package/dist/bn-template-engine/p-tzFCK9qn.js +0 -1
- package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -700
- package/dist/esm/bn-chart-structure.entry.js +0 -698
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var withStyled = require('./withStyled-
|
|
5
|
-
var scaling = require('./scaling-
|
|
6
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
7
|
-
var withTranslation = require('./withTranslation-
|
|
8
|
-
var contextProtocol = require('./context-protocol-
|
|
9
|
-
var withComponentStyle = require('./withComponentStyle-
|
|
10
|
-
var withHasError = require('./withHasError-
|
|
11
|
-
var Order = require('./Order-
|
|
4
|
+
var withStyled = require('./withStyled-CS1Yp4sv.js');
|
|
5
|
+
var scaling = require('./scaling-9Tz595RQ.js');
|
|
6
|
+
var withComponentStatus = require('./withComponentStatus-Bw70BhO0.js');
|
|
7
|
+
var withTranslation = require('./withTranslation-rwgyITqe.js');
|
|
8
|
+
var contextProtocol = require('./context-protocol-DRQWrwsA.js');
|
|
9
|
+
var withComponentStyle = require('./withComponentStyle-aIbTCtfj.js');
|
|
10
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
11
|
+
var Order = require('./Order-iG11HI4R.js');
|
|
12
12
|
var formatter = require('./formatter-DIJL_crx.js');
|
|
13
|
-
var DateStringFactory = require('./DateStringFactory-
|
|
13
|
+
var DateStringFactory = require('./DateStringFactory-CSKvbS8K.js');
|
|
14
|
+
require('./emotion-hash.esm-nbbEQ0Dn.js');
|
|
15
|
+
require('./utils-CwHIVbbL.js');
|
|
14
16
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
15
17
|
|
|
16
18
|
const bnChartTimeCss = () => `:host{display:inline-block;position:relative;overflow:visible;}.container{display:flex;flex-direction:column-reverse}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}`;
|
|
@@ -713,6 +715,7 @@ const Chart = class {
|
|
|
713
715
|
axisStyles: $["bn-chart-time"]["axisStyles"],
|
|
714
716
|
barStyles: $["bn-chart-time"]["barStyles"],
|
|
715
717
|
varianceStyles: $["bn-chart-time"]["varianceStyles"],
|
|
718
|
+
stackColors: $["bn-chart-time"]["stackColors"],
|
|
716
719
|
padding: $["bn-chart-time"]["padding"],
|
|
717
720
|
pattern: null,
|
|
718
721
|
};
|
|
@@ -832,17 +835,37 @@ const Chart = class {
|
|
|
832
835
|
}
|
|
833
836
|
prepareStackConfig() {
|
|
834
837
|
if (withStyled.isBlankInput(this.stack)) {
|
|
838
|
+
this.errors.remove("WARN_stack_dimensions_scenarios");
|
|
835
839
|
return null;
|
|
836
840
|
}
|
|
837
841
|
try {
|
|
838
842
|
const parsed = JSON.parse(this.stack);
|
|
843
|
+
const by = parsed.by;
|
|
844
|
+
const errId = "WARN_stack_dimensions_scenarios";
|
|
845
|
+
if (by === Order.StackBy.DIMENSIONS) {
|
|
846
|
+
const scenarios = this.prepareScenarios();
|
|
847
|
+
if (scenarios.length > 1) {
|
|
848
|
+
this.errors.addOrReplace({
|
|
849
|
+
id: errId,
|
|
850
|
+
type: "warning",
|
|
851
|
+
message: `stack by dimensions: only the first scenario "${scenarios[0]}" is used, the rest (${scenarios.slice(1).join(", ")}) are discarded.`,
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
else {
|
|
855
|
+
this.errors.remove(errId);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
else {
|
|
859
|
+
this.errors.remove(errId);
|
|
860
|
+
}
|
|
839
861
|
return {
|
|
840
|
-
by
|
|
862
|
+
by,
|
|
841
863
|
mode: parsed.mode || Order.StackMode.ABSOLUTE,
|
|
842
864
|
order: parsed.order || Order.StackOrder.DATASET,
|
|
843
865
|
};
|
|
844
866
|
}
|
|
845
867
|
catch (_a) {
|
|
868
|
+
this.errors.remove("WARN_stack_dimensions_scenarios");
|
|
846
869
|
return null;
|
|
847
870
|
}
|
|
848
871
|
}
|
|
@@ -870,7 +893,10 @@ const Chart = class {
|
|
|
870
893
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
871
894
|
const ppu = this.preparePixelPerUnit();
|
|
872
895
|
const ppp = this.preparePixelPerPercentage();
|
|
873
|
-
|
|
896
|
+
const stackConfig = this.prepareStackConfig();
|
|
897
|
+
const scenarios = this.prepareScenarios();
|
|
898
|
+
const effectiveScenarios = (stackConfig === null || stackConfig === void 0 ? void 0 : stackConfig.by) === Order.StackBy.DIMENSIONS ? scenarios.slice(0, 1) : scenarios;
|
|
899
|
+
return (index.h("ibcs-chart-time", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: effectiveScenarios, variances: [localScenarioString], hideAxisLabels: this.prepareHideAxisLabels(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), leftSideOffsetForHorizontalSync: this.prepareLeftSideOffset(preparedI18n, preparedStyle), styles: preparedStyle, i18n: preparedI18n, order: this.prepareOrder(), level: this.prepareLevel(), dateInterval: this.prepareDateInterval(), intervalSpanLimit: this.prepareIntervalSpanLimit(), axisLabelsMode: this.prepareAxisLabelsMode(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showOverlayAvg: this.prepareAvg(), showOverlayMedian: this.prepareMedian(), showMeasureScale: this.prepareShowMeasureScale(idx), chartMode: this.prepareChartMode(), maxBars: this.prepareMaxBars(), stackConfig: stackConfig, lineFullWidth: this.prepareLineFullWidth(), containerWidth: fullParentWidth, parentDimensions: this.prepareDimension() }));
|
|
874
900
|
}
|
|
875
901
|
getEffectiveScaleFactor() {
|
|
876
902
|
const { mode, factor } = scaling.parseScaling(this.scale);
|
|
@@ -900,7 +926,7 @@ const Chart = class {
|
|
|
900
926
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
901
927
|
}
|
|
902
928
|
const fontStyles = this.getFontStyles();
|
|
903
|
-
return (index.h(index.Host, { key: '
|
|
929
|
+
return (index.h(index.Host, { key: 'ecbf96e2d037a7dad9b3380bcc28b6e010ac867c', style: fontStyles }, index.h("div", { key: 'c556b86aac629e59c601986650d1a4857a2ee068', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
904
930
|
}
|
|
905
931
|
get element() { return index.getElement(this); }
|
|
906
932
|
static get watchers() { return {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var withBodyObserver = require('./withBodyObserver-
|
|
5
|
-
var contextProtocol = require('./context-protocol-
|
|
6
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
7
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var withBodyObserver = require('./withBodyObserver-CKpSD8UT.js');
|
|
5
|
+
var contextProtocol = require('./context-protocol-DRQWrwsA.js');
|
|
6
|
+
var withComponentStatus = require('./withComponentStatus-Bw70BhO0.js');
|
|
7
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
8
|
+
require('./utils-CwHIVbbL.js');
|
|
8
9
|
|
|
9
10
|
const bnComponentStyleCss = () => `bn-component-style{display:none}`;
|
|
10
11
|
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var contextProtocol = require('./context-protocol-
|
|
5
|
-
var
|
|
6
|
-
var withBodyObserver = require('./withBodyObserver-
|
|
4
|
+
var contextProtocol = require('./context-protocol-DRQWrwsA.js');
|
|
5
|
+
var utils = require('./utils-CwHIVbbL.js');
|
|
6
|
+
var withBodyObserver = require('./withBodyObserver-CKpSD8UT.js');
|
|
7
7
|
var alasql_min = require('./alasql.min-C_nHTuEQ.js');
|
|
8
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
8
|
+
var withComponentStatus = require('./withComponentStatus-Bw70BhO0.js');
|
|
9
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
10
|
+
var contentDecoder = require('./contentDecoder-JxOldq1e.js');
|
|
9
11
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
12
|
+
require('./emotion-hash.esm-nbbEQ0Dn.js');
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
15
|
* Mixin that subscribes a Stencil component to raw datasources.
|
|
@@ -53,14 +56,14 @@ const withDatasource = (component, onUpdate) => {
|
|
|
53
56
|
onUpdate(key, newVlaue);
|
|
54
57
|
}
|
|
55
58
|
});
|
|
56
|
-
|
|
59
|
+
utils.runIfExisits(connectedCallback, component);
|
|
57
60
|
};
|
|
58
61
|
const disconnectedCallback = component["disconnectedCallback"];
|
|
59
62
|
component["disconnectedCallback"] = () => {
|
|
60
63
|
observer.disconnect();
|
|
61
|
-
|
|
64
|
+
utils.runIfExisits(subscription);
|
|
62
65
|
contextProtocol.clearStoresCache(index.getElement(component));
|
|
63
|
-
|
|
66
|
+
utils.runIfExisits(disconnectedCallback, component);
|
|
64
67
|
};
|
|
65
68
|
};
|
|
66
69
|
|
|
@@ -220,6 +223,12 @@ const Dataset = class {
|
|
|
220
223
|
* content as raw JSON, writing it directly to the datasets store.
|
|
221
224
|
*/
|
|
222
225
|
this.static = false;
|
|
226
|
+
/**
|
|
227
|
+
* When true (default), body content is plain text (SQL or JSON).
|
|
228
|
+
* When false, body content is a compressed payload (`<hash>:<base64_gzip>`).
|
|
229
|
+
*/
|
|
230
|
+
this.raw = true;
|
|
231
|
+
this.lastBodyHash = null;
|
|
223
232
|
withComponentStatus.withComponentStatus(this);
|
|
224
233
|
this.errors = withHasError.withHasError(this);
|
|
225
234
|
// @ts-ignore
|
|
@@ -229,7 +238,27 @@ const Dataset = class {
|
|
|
229
238
|
this.executeQuery();
|
|
230
239
|
});
|
|
231
240
|
withBodyObserver.withBodyObserver(this, (data) => {
|
|
232
|
-
|
|
241
|
+
let contentHash;
|
|
242
|
+
let body;
|
|
243
|
+
if (!this.raw && this.static) {
|
|
244
|
+
try {
|
|
245
|
+
const decoded = contentDecoder.decodeCompressedContent(data);
|
|
246
|
+
contentHash = decoded.hash;
|
|
247
|
+
body = decoded.json;
|
|
248
|
+
}
|
|
249
|
+
catch (e) {
|
|
250
|
+
console.error("Error decoding compressed dataset", e, String(data).slice(0, 200));
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
contentHash = contentDecoder.computeContentHash(data);
|
|
256
|
+
body = data;
|
|
257
|
+
}
|
|
258
|
+
if (contentHash === this.lastBodyHash)
|
|
259
|
+
return;
|
|
260
|
+
this.lastBodyHash = contentHash;
|
|
261
|
+
this.query = body;
|
|
233
262
|
this.executeQuery();
|
|
234
263
|
});
|
|
235
264
|
}
|
|
@@ -263,7 +292,7 @@ const Dataset = class {
|
|
|
263
292
|
this.executeQuery();
|
|
264
293
|
}
|
|
265
294
|
render() {
|
|
266
|
-
return index.h(index.Host, { key: '
|
|
295
|
+
return index.h(index.Host, { key: '3e8b6fbc52b5b5cbe0ae88d7aa1d259f86d63e1b' });
|
|
267
296
|
}
|
|
268
297
|
get element() { return index.getElement(this); }
|
|
269
298
|
static get watchers() { return {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var withStyled = require('./withStyled-
|
|
5
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
6
|
-
var withComponentStyle = require('./withComponentStyle-
|
|
7
|
-
var withHasError = require('./withHasError-
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
4
|
+
var withStyled = require('./withStyled-CS1Yp4sv.js');
|
|
5
|
+
var withComponentStatus = require('./withComponentStatus-Bw70BhO0.js');
|
|
6
|
+
var withComponentStyle = require('./withComponentStyle-aIbTCtfj.js');
|
|
7
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
8
|
+
require('./emotion-hash.esm-nbbEQ0Dn.js');
|
|
9
|
+
require('./Order-iG11HI4R.js');
|
|
10
|
+
require('./DateStringFactory-CSKvbS8K.js');
|
|
11
|
+
require('./utils-CwHIVbbL.js');
|
|
12
|
+
require('./context-protocol-DRQWrwsA.js');
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* Header configuration types and parsing utilities for bn-grid component.
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var withStyled = require('./withStyled-
|
|
5
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
6
|
-
var withComponentStyle = require('./withComponentStyle-
|
|
7
|
-
var contextProtocol = require('./context-protocol-
|
|
8
|
-
var withHasError = require('./withHasError-
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
4
|
+
var withStyled = require('./withStyled-CS1Yp4sv.js');
|
|
5
|
+
var withComponentStatus = require('./withComponentStatus-Bw70BhO0.js');
|
|
6
|
+
var withComponentStyle = require('./withComponentStyle-aIbTCtfj.js');
|
|
7
|
+
var contextProtocol = require('./context-protocol-DRQWrwsA.js');
|
|
8
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
9
|
+
require('./emotion-hash.esm-nbbEQ0Dn.js');
|
|
10
|
+
require('./Order-iG11HI4R.js');
|
|
11
|
+
require('./DateStringFactory-CSKvbS8K.js');
|
|
12
|
+
require('./utils-CwHIVbbL.js');
|
|
11
13
|
|
|
12
14
|
const bnImageCss = () => `:host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}`;
|
|
13
15
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var withBodyObserver = require('./withBodyObserver-
|
|
5
|
-
var contextProtocol = require('./context-protocol-
|
|
6
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
7
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var withBodyObserver = require('./withBodyObserver-CKpSD8UT.js');
|
|
5
|
+
var contextProtocol = require('./context-protocol-DRQWrwsA.js');
|
|
6
|
+
var withComponentStatus = require('./withComponentStatus-Bw70BhO0.js');
|
|
7
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
8
|
+
require('./utils-CwHIVbbL.js');
|
|
8
9
|
|
|
9
10
|
const bnInternationalizationCss = () => `bn-internationalization{display:none}`;
|
|
10
11
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var contextProtocol = require('./context-protocol-
|
|
5
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var contextProtocol = require('./context-protocol-DRQWrwsA.js');
|
|
5
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
6
|
+
require('./utils-CwHIVbbL.js');
|
|
6
7
|
|
|
7
8
|
const bnLayoutCardCss = () => `: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);flex-direction:column;overflow:hidden;float:left;clear:left}.cardtitle{display:inline-flex}.image{margin-right:0.5em;margin-top:0.5em;z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}`;
|
|
8
9
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
5
|
+
require('./utils-CwHIVbbL.js');
|
|
5
6
|
|
|
6
7
|
const bnLayoutPageCss = () => `: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);flex-direction:column;overflow:hidden;float:left;clear:left}`;
|
|
7
8
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var withComponentStatus = require('./withComponentStatus-
|
|
5
|
-
var withComponentStyle = require('./withComponentStyle-
|
|
6
|
-
var contextProtocol = require('./context-protocol-
|
|
7
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var withComponentStatus = require('./withComponentStatus-Bw70BhO0.js');
|
|
5
|
+
var withComponentStyle = require('./withComponentStyle-aIbTCtfj.js');
|
|
6
|
+
var contextProtocol = require('./context-protocol-DRQWrwsA.js');
|
|
7
|
+
var withHasError = require('./withHasError-D7ue5vAv.js');
|
|
8
|
+
require('./utils-CwHIVbbL.js');
|
|
8
9
|
|
|
9
10
|
const bnMessageCss = () => `:host{padding:0.2em 0.5em;display:flex;flex-direction:row;justify-content:space-between;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(#container-page-message){height:4.55em;box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:0.1em solid #ddd}div#message-text{font-size:1.4em;overflow:clip;display:inline}.image{z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}`;
|
|
10
11
|
|