@bino-bi/bn-template-engine 1.0.0-alpha.3 → 1.0.0-alpha.4
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-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-745f4596.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-7ea7c325.entry.js +1 -0
- package/dist/bn-template-engine/p-945cc95d.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-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} +1058 -28
- 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 +979 -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/StackedBar.js +3 -4
- 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 +9 -12
- 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} +1048 -22
- 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 +977 -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} +68 -1235
- 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/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 +3 -3
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +0 -2
- package/dist/types/components.d.ts +100 -36
- 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,14 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
-
import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber,
|
|
3
|
-
import { w as withDataset, g as getParentDimensions, p as parseScaling } from './scaling-
|
|
4
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
5
|
-
import { w as withTranslation } from './withTranslation-
|
|
6
|
-
import { a as globalLabelKeys } from './context-protocol-
|
|
7
|
-
import { w as withComponentStyle } from './withComponentStyle-
|
|
8
|
-
import { w as withHasError } from './withHasError-
|
|
9
|
-
import { O as OrderDirection, a as OrderColumn,
|
|
2
|
+
import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber, b as isValidInteger, c as isValidLevel, d as validateOrderList, e as isValidDirection, f as isValidDateFormat, g as validateStackConfig, h as isValidAxisLabelsMode, j as isValidBoolean, k as isValidMeasureScale, w as withStyled, l as isBlankInput } from './withStyled--qQWquTH.js';
|
|
3
|
+
import { w as withDataset, g as getParentDimensions, p as parseScaling } from './scaling-Cehc74IE.js';
|
|
4
|
+
import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
|
|
5
|
+
import { w as withTranslation } from './withTranslation-BqD0Kp7b.js';
|
|
6
|
+
import { a as globalLabelKeys } from './context-protocol-BHnQsVsr.js';
|
|
7
|
+
import { w as withComponentStyle } from './withComponentStyle-9uP_hcDq.js';
|
|
8
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
9
|
+
import { O as OrderDirection, a as OrderColumn, A as AxisLabelsMode, S as StackBy, b as StackOrder, c as StackMode, C as ChartMode } from './Order-Bnhh02CF.js';
|
|
10
10
|
import { F as Formatter } from './formatter-DTMEZ6d8.js';
|
|
11
|
-
import { D as DateDistance } from './DateStringFactory-
|
|
11
|
+
import { D as DateDistance } from './DateStringFactory-CSGz6TDk.js';
|
|
12
|
+
import './emotion-hash.esm-BYBpC0EO.js';
|
|
13
|
+
import './utils-DvvwfRQG.js';
|
|
12
14
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
13
15
|
|
|
14
16
|
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}`;
|
|
@@ -711,6 +713,7 @@ const Chart = class {
|
|
|
711
713
|
axisStyles: $["bn-chart-time"]["axisStyles"],
|
|
712
714
|
barStyles: $["bn-chart-time"]["barStyles"],
|
|
713
715
|
varianceStyles: $["bn-chart-time"]["varianceStyles"],
|
|
716
|
+
stackColors: $["bn-chart-time"]["stackColors"],
|
|
714
717
|
padding: $["bn-chart-time"]["padding"],
|
|
715
718
|
pattern: null,
|
|
716
719
|
};
|
|
@@ -830,17 +833,37 @@ const Chart = class {
|
|
|
830
833
|
}
|
|
831
834
|
prepareStackConfig() {
|
|
832
835
|
if (isBlankInput(this.stack)) {
|
|
836
|
+
this.errors.remove("WARN_stack_dimensions_scenarios");
|
|
833
837
|
return null;
|
|
834
838
|
}
|
|
835
839
|
try {
|
|
836
840
|
const parsed = JSON.parse(this.stack);
|
|
841
|
+
const by = parsed.by;
|
|
842
|
+
const errId = "WARN_stack_dimensions_scenarios";
|
|
843
|
+
if (by === StackBy.DIMENSIONS) {
|
|
844
|
+
const scenarios = this.prepareScenarios();
|
|
845
|
+
if (scenarios.length > 1) {
|
|
846
|
+
this.errors.addOrReplace({
|
|
847
|
+
id: errId,
|
|
848
|
+
type: "warning",
|
|
849
|
+
message: `stack by dimensions: only the first scenario "${scenarios[0]}" is used, the rest (${scenarios.slice(1).join(", ")}) are discarded.`,
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
else {
|
|
853
|
+
this.errors.remove(errId);
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
else {
|
|
857
|
+
this.errors.remove(errId);
|
|
858
|
+
}
|
|
837
859
|
return {
|
|
838
|
-
by
|
|
860
|
+
by,
|
|
839
861
|
mode: parsed.mode || StackMode.ABSOLUTE,
|
|
840
862
|
order: parsed.order || StackOrder.DATASET,
|
|
841
863
|
};
|
|
842
864
|
}
|
|
843
865
|
catch (_a) {
|
|
866
|
+
this.errors.remove("WARN_stack_dimensions_scenarios");
|
|
844
867
|
return null;
|
|
845
868
|
}
|
|
846
869
|
}
|
|
@@ -868,7 +891,10 @@ const Chart = class {
|
|
|
868
891
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
869
892
|
const ppu = this.preparePixelPerUnit();
|
|
870
893
|
const ppp = this.preparePixelPerPercentage();
|
|
871
|
-
|
|
894
|
+
const stackConfig = this.prepareStackConfig();
|
|
895
|
+
const scenarios = this.prepareScenarios();
|
|
896
|
+
const effectiveScenarios = (stackConfig === null || stackConfig === void 0 ? void 0 : stackConfig.by) === StackBy.DIMENSIONS ? scenarios.slice(0, 1) : scenarios;
|
|
897
|
+
return (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() }));
|
|
872
898
|
}
|
|
873
899
|
getEffectiveScaleFactor() {
|
|
874
900
|
const { mode, factor } = parseScaling(this.scale);
|
|
@@ -898,7 +924,7 @@ const Chart = class {
|
|
|
898
924
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
899
925
|
}
|
|
900
926
|
const fontStyles = this.getFontStyles();
|
|
901
|
-
return (h(Host, { key: '
|
|
927
|
+
return (h(Host, { key: 'ecbf96e2d037a7dad9b3380bcc28b6e010ac867c', style: fontStyles }, h("div", { key: 'c556b86aac629e59c601986650d1a4857a2ee068', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
902
928
|
}
|
|
903
929
|
get element() { return getElement(this); }
|
|
904
930
|
static get watchers() { return {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
-
import { w as withBodyObserver } from './withBodyObserver-
|
|
3
|
-
import { g as getStores } from './context-protocol-
|
|
4
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
5
|
-
import { w as withHasError } from './withHasError-
|
|
2
|
+
import { w as withBodyObserver } from './withBodyObserver-FQ8NwCIz.js';
|
|
3
|
+
import { g as getStores } from './context-protocol-BHnQsVsr.js';
|
|
4
|
+
import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
|
|
5
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
6
|
+
import './utils-DvvwfRQG.js';
|
|
6
7
|
|
|
7
8
|
const bnComponentStyleCss = () => `bn-component-style{display:none}`;
|
|
8
9
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { g as getElement, r as registerInstance, h, H as Host } from './index-JNHhIe7t.js';
|
|
2
|
-
import { g as getStores, c as clearStoresCache } from './context-protocol-
|
|
3
|
-
import { r as runIfExisits
|
|
4
|
-
import { w as withBodyObserver } from './withBodyObserver-
|
|
2
|
+
import { g as getStores, c as clearStoresCache } from './context-protocol-BHnQsVsr.js';
|
|
3
|
+
import { r as runIfExisits } from './utils-DvvwfRQG.js';
|
|
4
|
+
import { w as withBodyObserver } from './withBodyObserver-FQ8NwCIz.js';
|
|
5
5
|
import { a as alasql } from './alasql.min-CWu4NkIt.js';
|
|
6
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
6
|
+
import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
|
|
7
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
8
|
+
import { d as decodeCompressedContent, c as computeContentHash } from './contentDecoder-oMmxz6nJ.js';
|
|
7
9
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
10
|
+
import './emotion-hash.esm-BYBpC0EO.js';
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* Mixin that subscribes a Stencil component to raw datasources.
|
|
@@ -218,6 +221,12 @@ const Dataset = class {
|
|
|
218
221
|
* content as raw JSON, writing it directly to the datasets store.
|
|
219
222
|
*/
|
|
220
223
|
this.static = false;
|
|
224
|
+
/**
|
|
225
|
+
* When true (default), body content is plain text (SQL or JSON).
|
|
226
|
+
* When false, body content is a compressed payload (`<hash>:<base64_gzip>`).
|
|
227
|
+
*/
|
|
228
|
+
this.raw = true;
|
|
229
|
+
this.lastBodyHash = null;
|
|
221
230
|
withComponentStatus(this);
|
|
222
231
|
this.errors = withHasError(this);
|
|
223
232
|
// @ts-ignore
|
|
@@ -227,7 +236,27 @@ const Dataset = class {
|
|
|
227
236
|
this.executeQuery();
|
|
228
237
|
});
|
|
229
238
|
withBodyObserver(this, (data) => {
|
|
230
|
-
|
|
239
|
+
let contentHash;
|
|
240
|
+
let body;
|
|
241
|
+
if (!this.raw && this.static) {
|
|
242
|
+
try {
|
|
243
|
+
const decoded = decodeCompressedContent(data);
|
|
244
|
+
contentHash = decoded.hash;
|
|
245
|
+
body = decoded.json;
|
|
246
|
+
}
|
|
247
|
+
catch (e) {
|
|
248
|
+
console.error("Error decoding compressed dataset", e, String(data).slice(0, 200));
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
contentHash = computeContentHash(data);
|
|
254
|
+
body = data;
|
|
255
|
+
}
|
|
256
|
+
if (contentHash === this.lastBodyHash)
|
|
257
|
+
return;
|
|
258
|
+
this.lastBodyHash = contentHash;
|
|
259
|
+
this.query = body;
|
|
231
260
|
this.executeQuery();
|
|
232
261
|
});
|
|
233
262
|
}
|
|
@@ -261,7 +290,7 @@ const Dataset = class {
|
|
|
261
290
|
this.executeQuery();
|
|
262
291
|
}
|
|
263
292
|
render() {
|
|
264
|
-
return h(Host, { key: '
|
|
293
|
+
return h(Host, { key: '3e8b6fbc52b5b5cbe0ae88d7aa1d259f86d63e1b' });
|
|
265
294
|
}
|
|
266
295
|
get element() { return getElement(this); }
|
|
267
296
|
static get watchers() { return {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
-
import {
|
|
3
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
4
|
-
import { w as withComponentStyle } from './withComponentStyle-
|
|
5
|
-
import { w as withHasError } from './withHasError-
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
2
|
+
import { j as isValidBoolean, w as withStyled } from './withStyled--qQWquTH.js';
|
|
3
|
+
import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
|
|
4
|
+
import { w as withComponentStyle } from './withComponentStyle-9uP_hcDq.js';
|
|
5
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
6
|
+
import './emotion-hash.esm-BYBpC0EO.js';
|
|
7
|
+
import './Order-Bnhh02CF.js';
|
|
8
|
+
import './DateStringFactory-CSGz6TDk.js';
|
|
9
|
+
import './utils-DvvwfRQG.js';
|
|
10
|
+
import './context-protocol-BHnQsVsr.js';
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
13
|
* Header configuration types and parsing utilities for bn-grid component.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
-
import { w as withStyled } from './withStyled
|
|
3
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
4
|
-
import { w as withComponentStyle } from './withComponentStyle-
|
|
5
|
-
import { g as getStores } from './context-protocol-
|
|
6
|
-
import { w as withHasError } from './withHasError-
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
2
|
+
import { w as withStyled } from './withStyled--qQWquTH.js';
|
|
3
|
+
import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
|
|
4
|
+
import { w as withComponentStyle } from './withComponentStyle-9uP_hcDq.js';
|
|
5
|
+
import { g as getStores } from './context-protocol-BHnQsVsr.js';
|
|
6
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
7
|
+
import './emotion-hash.esm-BYBpC0EO.js';
|
|
8
|
+
import './Order-Bnhh02CF.js';
|
|
9
|
+
import './DateStringFactory-CSGz6TDk.js';
|
|
10
|
+
import './utils-DvvwfRQG.js';
|
|
9
11
|
|
|
10
12
|
const bnImageCss = () => `:host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}`;
|
|
11
13
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
-
import { w as withBodyObserver } from './withBodyObserver-
|
|
3
|
-
import { g as getStores, f as flattenObject } from './context-protocol-
|
|
4
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
5
|
-
import { w as withHasError } from './withHasError-
|
|
2
|
+
import { w as withBodyObserver } from './withBodyObserver-FQ8NwCIz.js';
|
|
3
|
+
import { g as getStores, f as flattenObject } from './context-protocol-BHnQsVsr.js';
|
|
4
|
+
import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
|
|
5
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
6
|
+
import './utils-DvvwfRQG.js';
|
|
6
7
|
|
|
7
8
|
const bnInternationalizationCss = () => `bn-internationalization{display:none}`;
|
|
8
9
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
-
import { g as getStores } from './context-protocol-
|
|
3
|
-
import { w as withHasError } from './withHasError-
|
|
2
|
+
import { g as getStores } from './context-protocol-BHnQsVsr.js';
|
|
3
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
4
|
+
import './utils-DvvwfRQG.js';
|
|
4
5
|
|
|
5
6
|
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}`;
|
|
6
7
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
-
import { w as withHasError } from './withHasError-
|
|
2
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
3
|
+
import './utils-DvvwfRQG.js';
|
|
3
4
|
|
|
4
5
|
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}`;
|
|
5
6
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
|
|
2
|
-
import { w as withComponentStatus } from './withComponentStatus-
|
|
3
|
-
import { w as withComponentStyle } from './withComponentStyle-
|
|
4
|
-
import { g as getStores } from './context-protocol-
|
|
5
|
-
import { w as withHasError } from './withHasError-
|
|
2
|
+
import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
|
|
3
|
+
import { w as withComponentStyle } from './withComponentStyle-9uP_hcDq.js';
|
|
4
|
+
import { g as getStores } from './context-protocol-BHnQsVsr.js';
|
|
5
|
+
import { w as withHasError } from './withHasError-FyY5mQ_3.js';
|
|
6
|
+
import './utils-DvvwfRQG.js';
|
|
6
7
|
|
|
7
8
|
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}`;
|
|
8
9
|
|