react-semaphor 0.1.526 → 0.1.527
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/DATA_APP_SDK.md +5 -1
- package/dist/analytics-protocol/index.js +1179 -296
- package/dist/brand-studio/index.js +15 -15
- package/dist/briefings/index.js +50 -49
- package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DEhjPSr-.js} +66 -65
- package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BlIbwkuD.js} +68 -65
- package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
- package/dist/chunks/dashboard-JNHR0_cZ.js +14 -0
- package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-D9pFByPh.js} +372 -359
- package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-CJI5ZWMq.js} +739 -686
- package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DLdrFry-.js} +10 -10
- package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-D5LjWle1.js} +6603 -6572
- package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-G91NQKxU.js} +266 -267
- package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-DeVQLIsP.js} +19 -19
- package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
- package/dist/chunks/{index-CbjuruKe.js → index-BvJOYbNv.js} +755 -745
- package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
- package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DY45yiUM.js} +7 -6
- package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BypfLZsK.js} +11 -11
- package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
- package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-BoKU3MzZ.js} +655 -511
- package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
- package/dist/chunks/matrix-operation-contract-BV02rLhu.js +809 -0
- package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
- package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
- package/dist/chunks/pivot-header-presentation-D5v8uyjj.js +618 -0
- package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-BWrPhlGT.js} +259 -204
- package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
- package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
- package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
- package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-D3hxu4sE.js} +131 -132
- package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
- package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-C7Um5XN-.js} +47 -26
- package/dist/chunks/semantic-format-BjBMOSoo.js +192 -0
- package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-D46I_4g7.js} +49895 -46141
- package/dist/chunks/{slider-BYIH4icg.js → slider-B6LELqx6.js} +81 -82
- package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
- package/dist/chunks/switch-_7uBAbYx.js +24003 -0
- package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
- package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
- package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
- package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
- package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +138 -137
- package/dist/data-app-sdk/index.js +12 -12
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +27 -26
- package/dist/format-utils/index.js +247 -329
- package/dist/index.js +165 -168
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/briefings/index.d.ts +3 -0
- package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
- package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
- package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
- package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +8 -29
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
- package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
- package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
- package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
- package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
- package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/api/exports-api.d.ts +3 -0
- package/dist/types/lib/csv-download.d.ts +9 -0
- package/dist/types/lib/csv-encoding-options.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
- package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
- package/dist/types/lib/export-utils.d.ts +17 -15
- package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
- package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
- package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
- package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
- package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
- package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
- package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
- package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
- package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
- package/dist/types/lib/types/common-types.d.ts +5 -0
- package/dist/types/lib/types/explorer-types.d.ts +14 -0
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/lib/utils/card-definition.d.ts +1 -1
- package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
- package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
- package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +10 -7
- package/dist/types/shared/analytics-protocol/index.d.ts +12 -1
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +51 -5
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
- package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
- package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
- package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
- package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
- package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
- package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
- package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
- package/dist/types/shared/temporal/index.d.ts +5 -0
- package/dist/types/shared/temporal/relative-date.d.ts +21 -0
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
- package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
- package/package.json +1 -17
- package/src/data-app-sdk/README.md +6 -3
- package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
- package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
- package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
- package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
- package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
- package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
- package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
- package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
- package/dist/chunks/search-CJz-QQ0Q.js +0 -24
- package/dist/chunks/switch-XaAACBrJ.js +0 -2234
- package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
- package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
- package/dist/data-app-builder/index.js +0 -3666
- package/dist/data-app-builder-browser-runtime/index.js +0 -8
- package/dist/data-app-codegen/index.js +0 -22
- package/dist/data-app-codegen-node/index.js +0 -1807
- package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
- package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
- package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
- package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
- package/dist/types/data-app-builder/constants.d.ts +0 -14
- package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
- package/dist/types/data-app-builder/index.d.ts +0 -1
- package/dist/types/data-app-builder/lib/api.d.ts +0 -36
- package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
- package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
- package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
- package/dist/types/data-app-builder/types.d.ts +0 -558
- package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
- package/dist/types/data-app-builder.d.ts +0 -2
- package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
- package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
- package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
- package/dist/types/data-app-codegen/index.d.ts +0 -6
- package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
- package/dist/types/data-app-codegen/node.d.ts +0 -2
- package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
- package/dist/types/data-app-codegen/validation.d.ts +0 -8
- package/dist/types/data-app-codegen-node.d.ts +0 -2
- package/dist/types/data-app-codegen.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
- package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
- package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
|
@@ -1,366 +1,284 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { f as
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import { f as
|
|
7
|
-
import { d as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { f as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function P(e, r) {
|
|
20
|
-
const s = [];
|
|
21
|
-
r.includeHeaders && s.push(f(r.visibleColumns, r.delimiter));
|
|
22
|
-
for (const t of e) {
|
|
23
|
-
const a = w(t, r);
|
|
24
|
-
s.push(
|
|
25
|
-
a.map((l) => E(l, r.delimiter)).join(r.delimiter)
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
return s;
|
|
29
|
-
}
|
|
30
|
-
function g(e, r, s = `
|
|
31
|
-
`) {
|
|
32
|
-
return P(e, r).join(s);
|
|
33
|
-
}
|
|
34
|
-
function d(e, r, s) {
|
|
35
|
-
for (const t of e) {
|
|
36
|
-
if (t.level < s) {
|
|
37
|
-
r[t.level].push(t.name);
|
|
38
|
-
for (let a = 1; a < t.colspan; a++)
|
|
39
|
-
r[t.level].push("");
|
|
40
|
-
}
|
|
41
|
-
t.children ? d(t.children, r, s) : t.columnKey && r[s].push(t.name);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function v(e) {
|
|
45
|
-
const r = e.pivotByColumns.length, s = e.groupByColumns.length, t = Array.from(
|
|
46
|
-
{ length: r + 1 },
|
|
47
|
-
() => []
|
|
48
|
-
);
|
|
49
|
-
for (let a = 0; a < r; a++)
|
|
50
|
-
t[a].push(...Array(s).fill(""));
|
|
51
|
-
if (t[r].push(
|
|
52
|
-
...e.groupByColumns.map((a) => a.label || a.name)
|
|
53
|
-
), d(e.columnHeadersTree, t, r), e.showRowTotals) {
|
|
54
|
-
for (let a = 0; a < r; a++)
|
|
55
|
-
t[a].push("");
|
|
56
|
-
t[r].push("Total");
|
|
57
|
-
}
|
|
58
|
-
return t;
|
|
59
|
-
}
|
|
60
|
-
function C(e, r, s) {
|
|
61
|
-
if (e == null)
|
|
62
|
-
return "";
|
|
63
|
-
if (!s.useFormattedValues)
|
|
64
|
-
return String(e);
|
|
65
|
-
const t = s.columnSettings[r];
|
|
66
|
-
return typeof e == "number" && (t == null ? void 0 : t.type) === "number" ? R(
|
|
67
|
-
e,
|
|
68
|
-
t.numberFormat,
|
|
69
|
-
s.locale
|
|
70
|
-
) : typeof e == "number" ? e.toLocaleString(s.locale) : String(e);
|
|
71
|
-
}
|
|
72
|
-
function S(e, r, s) {
|
|
73
|
-
const t = [];
|
|
74
|
-
e.fieldValues.forEach((l, o) => {
|
|
75
|
-
e.isSubtotal && o === 0 ? t.push(`${l} Total`) : e.isSubtotal ? t.push("") : t.push(String(l ?? ""));
|
|
76
|
-
});
|
|
77
|
-
let a = 0;
|
|
78
|
-
return r.columnHeaders.forEach((l) => {
|
|
79
|
-
var i;
|
|
80
|
-
const o = (i = e.cells[l]) == null ? void 0 : i.value, n = C(o, l, s);
|
|
81
|
-
t.push(n), r.showRowTotals && typeof o == "number" && (a += o);
|
|
82
|
-
}), r.showRowTotals && t.push(a.toLocaleString(s.locale)), t;
|
|
83
|
-
}
|
|
84
|
-
function I(e, r, s) {
|
|
85
|
-
const t = [];
|
|
86
|
-
if (s.includeHeaders) {
|
|
87
|
-
const a = v(r);
|
|
88
|
-
for (const l of a)
|
|
89
|
-
t.push(f(l, s.delimiter));
|
|
90
|
-
}
|
|
91
|
-
for (const a of e) {
|
|
92
|
-
const l = S(
|
|
93
|
-
a,
|
|
94
|
-
r,
|
|
95
|
-
s
|
|
96
|
-
);
|
|
97
|
-
t.push(
|
|
98
|
-
l.map((o) => E(o, s.delimiter)).join(s.delimiter)
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
return t;
|
|
102
|
-
}
|
|
103
|
-
function p(e) {
|
|
104
|
-
if (e === null || typeof e != "object" || Array.isArray(e))
|
|
1
|
+
import { R as S, e as h, c as y, b as F, g as x, a as M, i as I, d as N, p as O, f as D, r as $, v as B } from "../chunks/raw-temporal-CdnA_OXJ.js";
|
|
2
|
+
import { f as E } from "../chunks/numeric-presentation-LvnNY5Ma.js";
|
|
3
|
+
import { b as L, i as V, j as X, a as G, h as q, g as j, e as U, c as z, d as K, p as Y, k as H, r as W, l as Q, v as Z } from "../chunks/numeric-presentation-LvnNY5Ma.js";
|
|
4
|
+
import { P as ee, A as re, D as ae, F as te, b as oe, M as se, a as ie, i as le, g as ne, P as me, l as ue, z as ce, j as pe, h as fe, e as Te, d as Ee, u as be, x as Re, y as Ce, t as Ae, f as ve, q as Pe, m as de, c as we, k as ge, p as _e, w as Se, B as he, n as ye, o as Fe, r as xe, s as Me, v as Ie } from "../chunks/pivot-header-presentation-D5v8uyjj.js";
|
|
5
|
+
import { c as Oe, f as De, a as $e, d as Be, g as ke, b as Le, p as Ve, r as Xe } from "../chunks/matrix-formatter-BoKU3MzZ.js";
|
|
6
|
+
import { f as b, c as R } from "../chunks/pivot-result-lifecycle-BWrPhlGT.js";
|
|
7
|
+
import { d as qe, a as je, C as Ue, b as ze, D as Ke, M as Ye, y as He, P as We, A as Qe, o as Ze, g as Je, j as er, w as rr, x as ar, k as tr, h as or, q as sr, s as ir, u as lr, z as nr, e as mr, p as ur, n as cr, l as pr, m as fr, i as Tr, r as Er, t as br, v as Rr } from "../chunks/pivot-result-lifecycle-BWrPhlGT.js";
|
|
8
|
+
import { M as Ar, d as vr, a as Pr, b as dr, c as wr, m as gr, f as _r, p as Sr, e as hr, g as yr } from "../chunks/matrix-continuation-C4sRcjZU.js";
|
|
9
|
+
import { f as xr } from "../chunks/semantic-format-BjBMOSoo.js";
|
|
10
|
+
import { FAST_PDF_POLICY as Ir, PDF_SAFETY_LIMIT_EXCEEDED as Nr, getUtf8ByteLength as Or, isFastPdfOutputSizeEligible as Dr, isFastPdfPageCountEligible as $r, isFastPdfRequestSizeEligible as Br, isFastPdfRowCountEligible as kr } from "../pdf-export-policy/index.js";
|
|
11
|
+
import { D as Vr, T as Xr, a as Gr, f as qr, i as jr, b as Ur, p as zr, r as Kr, c as Yr, t as Hr, v as Wr } from "../chunks/temporal-bucket-DlFuhCnT.js";
|
|
12
|
+
import { f as Zr, p as Jr, v as ea } from "../chunks/temporal-input-presentation-DyMWCZYh.js";
|
|
13
|
+
import { S as aa } from "../chunks/validators-CQcG0EPN.js";
|
|
14
|
+
import { r as oa } from "../chunks/metric-comparison-Crljx_XY.js";
|
|
15
|
+
import { P as ia, b as la, i as na, c as ma, d as ua, r as ca, a as pa } from "../chunks/pivot-result-identity-CY__BuwI.js";
|
|
16
|
+
import { p as Ta, v as Ea } from "../chunks/raw-temporal-contract-Bc9z83t-.js";
|
|
17
|
+
function p(r) {
|
|
18
|
+
if (r === null || typeof r != "object" || Array.isArray(r))
|
|
105
19
|
return !1;
|
|
106
|
-
const
|
|
107
|
-
return
|
|
20
|
+
const a = Object.getPrototypeOf(r);
|
|
21
|
+
return a === null || a === Object.prototype;
|
|
108
22
|
}
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
112
|
-
throw new Error(`${
|
|
23
|
+
function T(r, a, o) {
|
|
24
|
+
const i = new Set(a), t = Object.keys(r).find((l) => !i.has(l));
|
|
25
|
+
if (t)
|
|
26
|
+
throw new Error(`${o} contains unknown property "${t}"`);
|
|
113
27
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!p(
|
|
116
|
-
throw new Error(`${
|
|
117
|
-
if (
|
|
118
|
-
throw new Error(`${
|
|
119
|
-
if (!Array.isArray(
|
|
120
|
-
throw new Error(`${
|
|
121
|
-
let
|
|
122
|
-
const
|
|
123
|
-
const
|
|
124
|
-
if (!p(
|
|
125
|
-
throw new Error(`${
|
|
126
|
-
|
|
127
|
-
|
|
28
|
+
function P(r, a = "tableTotalsRequest") {
|
|
29
|
+
if (!p(r))
|
|
30
|
+
throw new Error(`${a} must be an object`);
|
|
31
|
+
if (T(r, ["source", "columns"], a), r.source !== "documentFlatTable")
|
|
32
|
+
throw new Error(`${a}.source must be documentFlatTable`);
|
|
33
|
+
if (!Array.isArray(r.columns) || r.columns.length === 0)
|
|
34
|
+
throw new Error(`${a}.columns must be a non-empty array`);
|
|
35
|
+
let o = 0;
|
|
36
|
+
const i = r.columns.map((e, n) => {
|
|
37
|
+
const s = `${a}.columns.${n}`;
|
|
38
|
+
if (!p(e))
|
|
39
|
+
throw new Error(`${s} must be an object`);
|
|
40
|
+
T(
|
|
41
|
+
e,
|
|
128
42
|
["fieldId", "role", "behavior", "metricAlias", "label"],
|
|
129
|
-
|
|
43
|
+
s
|
|
130
44
|
);
|
|
131
|
-
const
|
|
132
|
-
if (!
|
|
133
|
-
throw new Error(`${
|
|
134
|
-
if (
|
|
135
|
-
throw new Error(`${
|
|
136
|
-
const m =
|
|
137
|
-
if (
|
|
138
|
-
throw new Error(`${
|
|
139
|
-
const c =
|
|
140
|
-
if (
|
|
141
|
-
throw new Error(`${
|
|
45
|
+
const f = typeof e.fieldId == "string" ? e.fieldId.trim() : "";
|
|
46
|
+
if (!f)
|
|
47
|
+
throw new Error(`${s}.fieldId must be a non-empty string`);
|
|
48
|
+
if (e.role !== "detail" && e.role !== "groupby" && e.role !== "metric")
|
|
49
|
+
throw new Error(`${s}.role is invalid`);
|
|
50
|
+
const m = e.role;
|
|
51
|
+
if (e.behavior !== "sum" && e.behavior !== "avg" && e.behavior !== "count" && e.behavior !== "label")
|
|
52
|
+
throw new Error(`${s}.behavior is invalid`);
|
|
53
|
+
const c = e.behavior, u = typeof e.metricAlias == "string" ? e.metricAlias.trim() : void 0;
|
|
54
|
+
if (e.metricAlias !== void 0 && !u)
|
|
55
|
+
throw new Error(`${s}.metricAlias must be a non-empty string`);
|
|
142
56
|
if (u && m !== "metric")
|
|
143
|
-
throw new Error(`${
|
|
57
|
+
throw new Error(`${s}.metricAlias requires metric role`);
|
|
144
58
|
if (c === "label") {
|
|
145
|
-
if (
|
|
146
|
-
throw new Error(`${
|
|
59
|
+
if (o += 1, m === "metric")
|
|
60
|
+
throw new Error(`${s}.behavior label requires a non-metric role`);
|
|
147
61
|
} else if (m !== "metric")
|
|
148
|
-
throw new Error(`${
|
|
149
|
-
if (
|
|
150
|
-
throw new Error(`${
|
|
62
|
+
throw new Error(`${s}.${c} requires metric role`);
|
|
63
|
+
if (e.label !== void 0 && typeof e.label != "string")
|
|
64
|
+
throw new Error(`${s}.label must be a string`);
|
|
151
65
|
return {
|
|
152
|
-
fieldId:
|
|
66
|
+
fieldId: f,
|
|
153
67
|
role: m,
|
|
154
68
|
behavior: c,
|
|
155
69
|
...u ? { metricAlias: u } : {},
|
|
156
|
-
...
|
|
70
|
+
...e.label !== void 0 ? { label: e.label } : {}
|
|
157
71
|
};
|
|
158
|
-
}),
|
|
159
|
-
for (const
|
|
160
|
-
if (
|
|
161
|
-
if (l.has(
|
|
72
|
+
}), t = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
|
|
73
|
+
for (const e of i) {
|
|
74
|
+
if (e.metricAlias) {
|
|
75
|
+
if (l.has(e.metricAlias))
|
|
162
76
|
throw new Error(
|
|
163
|
-
`${
|
|
77
|
+
`${a}.columns duplicates metricAlias "${e.metricAlias}"`
|
|
164
78
|
);
|
|
165
|
-
l.add(
|
|
79
|
+
l.add(e.metricAlias);
|
|
166
80
|
}
|
|
167
|
-
const n =
|
|
168
|
-
n.push(
|
|
81
|
+
const n = t.get(e.fieldId) ?? [];
|
|
82
|
+
n.push(e), t.set(e.fieldId, n);
|
|
169
83
|
}
|
|
170
|
-
for (const [
|
|
84
|
+
for (const [e, n] of t)
|
|
171
85
|
if (n.length !== 1) {
|
|
172
|
-
for (const
|
|
173
|
-
if (
|
|
86
|
+
for (const s of n)
|
|
87
|
+
if (s.role !== "metric" || !s.metricAlias)
|
|
174
88
|
throw new Error(
|
|
175
|
-
`${
|
|
89
|
+
`${a}.columns duplicates fieldId "${e}" without distinct metricAlias values`
|
|
176
90
|
);
|
|
177
91
|
}
|
|
178
|
-
if (
|
|
179
|
-
throw new Error(`${
|
|
180
|
-
return { source: "documentFlatTable", columns:
|
|
92
|
+
if (o > 1)
|
|
93
|
+
throw new Error(`${a}.columns may contain at most one label`);
|
|
94
|
+
return { source: "documentFlatTable", columns: i };
|
|
181
95
|
}
|
|
182
|
-
function
|
|
183
|
-
if (!p(
|
|
184
|
-
throw new Error(`${
|
|
185
|
-
const
|
|
186
|
-
for (const [
|
|
187
|
-
if (!
|
|
188
|
-
throw new Error(`${
|
|
189
|
-
if (
|
|
190
|
-
throw new Error(`${
|
|
191
|
-
|
|
96
|
+
function d(r, a = "tableTotalsByColumnId") {
|
|
97
|
+
if (!p(r))
|
|
98
|
+
throw new Error(`${a} must be an object`);
|
|
99
|
+
const o = {};
|
|
100
|
+
for (const [i, t] of Object.entries(r)) {
|
|
101
|
+
if (!i.trim())
|
|
102
|
+
throw new Error(`${a} contains an empty column id`);
|
|
103
|
+
if (t !== null && typeof t != "string" && (typeof t != "number" || !Number.isFinite(t)))
|
|
104
|
+
throw new Error(`${a}.${i} must be a string, finite number, or null`);
|
|
105
|
+
o[i] = t;
|
|
192
106
|
}
|
|
193
|
-
if (Object.keys(
|
|
194
|
-
throw new Error(`${
|
|
195
|
-
return
|
|
107
|
+
if (Object.keys(o).length === 0)
|
|
108
|
+
throw new Error(`${a} must not be empty`);
|
|
109
|
+
return o;
|
|
196
110
|
}
|
|
197
|
-
function
|
|
198
|
-
if (typeof
|
|
199
|
-
return Number.isFinite(
|
|
200
|
-
if (!
|
|
111
|
+
function C(r) {
|
|
112
|
+
if (typeof r == "number")
|
|
113
|
+
return Number.isFinite(r) ? r : null;
|
|
114
|
+
if (!r.trim())
|
|
201
115
|
return null;
|
|
202
|
-
const
|
|
203
|
-
return Number.isFinite(
|
|
116
|
+
const a = Number(r);
|
|
117
|
+
return Number.isFinite(a) ? a : null;
|
|
204
118
|
}
|
|
205
|
-
function
|
|
206
|
-
const
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
) ?
|
|
211
|
-
if (
|
|
119
|
+
function w(r) {
|
|
120
|
+
const a = r.visibleColumns.map((o) => {
|
|
121
|
+
const t = Object.prototype.hasOwnProperty.call(
|
|
122
|
+
r.totalsByColumnId,
|
|
123
|
+
o
|
|
124
|
+
) ? r.totalsByColumnId[o] : o === r.labelColumnKey ? "Total" : null;
|
|
125
|
+
if (t === null)
|
|
212
126
|
return "";
|
|
213
|
-
if (!
|
|
214
|
-
return String(
|
|
215
|
-
const l =
|
|
216
|
-
snapshot:
|
|
217
|
-
scope:
|
|
218
|
-
target: { kind: "column", columnKey:
|
|
219
|
-
}),
|
|
220
|
-
return l &&
|
|
127
|
+
if (!r.useFormattedValues)
|
|
128
|
+
return String(t);
|
|
129
|
+
const l = b({
|
|
130
|
+
snapshot: r.snapshot,
|
|
131
|
+
scope: r.scope,
|
|
132
|
+
target: { kind: "column", columnKey: o }
|
|
133
|
+
}), e = l ? C(t) : null;
|
|
134
|
+
return l && e !== null ? E(e, l) : String(t);
|
|
221
135
|
});
|
|
222
|
-
return
|
|
223
|
-
`;
|
|
136
|
+
return R(a, r.delimiter);
|
|
224
137
|
}
|
|
225
138
|
export {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
139
|
+
ee as AGGREGATE_PDF_CONTINUATION_CLASS,
|
|
140
|
+
re as AGGREGATE_TOTAL_MEMBER_MARKER,
|
|
141
|
+
qe as CSV_CONTENT_TYPE,
|
|
142
|
+
je as CSV_DELIMITERS,
|
|
143
|
+
Ue as CSV_ENCODINGS,
|
|
144
|
+
ze as CSV_RECORD_SEPARATOR,
|
|
145
|
+
Ke as DEFAULT_CSV_ENCODING,
|
|
146
|
+
Vr as DEFAULT_RESOLVED_TEMPORAL_STYLE_SET,
|
|
147
|
+
ae as DIRECT_CSV_EXPORT_MAX_ROWS,
|
|
148
|
+
Ir as FAST_PDF_POLICY,
|
|
149
|
+
te as FULL_DATASET_CSV_EXPORT_MAX_ROWS,
|
|
150
|
+
oe as MATRIX_EXPORT_MAX_ARTIFACT_BYTES,
|
|
151
|
+
se as MATRIX_EXPORT_MAX_CELLS,
|
|
152
|
+
ie as MATRIX_EXPORT_MAX_ENCODED_BYTES,
|
|
153
|
+
Ar as MATRIX_EXPORT_TRANSFER_BYTES,
|
|
154
|
+
le as MATRIX_PRINT_DEFAULT_DECIMALS,
|
|
155
|
+
ne as MATRIX_PRINT_ORGANIZATION_DEFAULTS,
|
|
156
|
+
Ye as MissingResolvedRawTemporalFormatError,
|
|
157
|
+
me as PDF_GROUP_CONTINUATION_CLASS,
|
|
158
|
+
Nr as PDF_SAFETY_LIMIT_EXCEEDED,
|
|
159
|
+
ue as PdfSafetyLimitError,
|
|
160
|
+
ce as PivotHeaderPresentationError,
|
|
161
|
+
ia as PivotResultIdentityError,
|
|
162
|
+
He as PivotResultLifecycleError,
|
|
163
|
+
We as PresentationExecutionSnapshotError,
|
|
164
|
+
S as RawTemporalFormatContractError,
|
|
165
|
+
aa as SEMAPHOR_GENERATED_COUNT_METRIC_ID,
|
|
166
|
+
Xr as TEMPORAL_BUCKET_PATTERN_TOKENS,
|
|
249
167
|
Gr as TemporalBucketContractError,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
P as formatTableForCSV,
|
|
168
|
+
pe as applyMatrixPrintNumberDefaults,
|
|
169
|
+
fe as applyMatrixPrintOrganization,
|
|
170
|
+
vr as assertMatrixBatchResponseSize,
|
|
171
|
+
h as assertRawTemporalChunkClassificationAgreement,
|
|
172
|
+
w as buildFlatTableExportTotalsFooter,
|
|
173
|
+
Te as buildMatrixPrintTable,
|
|
174
|
+
Ee as buildMatrixTableStructure,
|
|
175
|
+
y as classifyDeclaredSqlTemporalColumn,
|
|
176
|
+
Qe as createCanonicalPivotResultTransport,
|
|
177
|
+
Ze as createPresentationExecutionSnapshot,
|
|
178
|
+
F as createRawTemporalChunkClassificationEvidence,
|
|
179
|
+
Je as csvFilePreamble,
|
|
180
|
+
R as csvRecord,
|
|
181
|
+
er as csvRecords,
|
|
182
|
+
rr as deriveMetricInstanceAliasExpectations,
|
|
183
|
+
ar as derivePivotResultContractExpectations,
|
|
184
|
+
tr as encodeCsvFile,
|
|
185
|
+
or as escapeCSVValue,
|
|
186
|
+
b as findResolvedMeasureFormat,
|
|
187
|
+
sr as findResolvedNumericFormat,
|
|
188
|
+
ir as findResolvedRawTemporalFormat,
|
|
189
|
+
lr as findResolvedTemporalBucketFormat,
|
|
190
|
+
be as formatAggregateGrandTotalLabel,
|
|
191
|
+
Re as formatAggregateGroupCell,
|
|
192
|
+
Ce as formatAggregateGroupRow,
|
|
193
|
+
Ae as formatAggregateSubtotalLabel,
|
|
194
|
+
Oe as formatCellValue,
|
|
195
|
+
L as formatCurrency,
|
|
196
|
+
De as formatDate,
|
|
197
|
+
V as formatDuration,
|
|
198
|
+
X as formatDurationCanonical,
|
|
199
|
+
E as formatMeasureCanonical,
|
|
200
|
+
ve as formatMetricComparison,
|
|
201
|
+
G as formatNumber,
|
|
202
|
+
q as formatNumberCustom,
|
|
203
|
+
j as formatNumberWithColumnSettings,
|
|
204
|
+
U as formatNumericCanonical,
|
|
205
|
+
z as formatPercent,
|
|
206
|
+
x as formatRawTemporalValue,
|
|
207
|
+
$e as formatRelativeTime,
|
|
208
|
+
Be as formatRowForExport,
|
|
209
|
+
K as formatScientific,
|
|
293
210
|
qr as formatTemporalBucket,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
U as parseResolvedRawTemporalFormat,
|
|
211
|
+
Zr as formatTemporalInputValue,
|
|
212
|
+
xr as fromSemanticFormat,
|
|
213
|
+
ke as getTimezoneAbbreviation,
|
|
214
|
+
Le as getTimezoneName,
|
|
215
|
+
Or as getUtf8ByteLength,
|
|
216
|
+
Pe as isAggregateTotalMemberMarker,
|
|
217
|
+
Dr as isFastPdfOutputSizeEligible,
|
|
218
|
+
$r as isFastPdfPageCountEligible,
|
|
219
|
+
Br as isFastPdfRequestSizeEligible,
|
|
220
|
+
kr as isFastPdfRowCountEligible,
|
|
221
|
+
M as isMeasureCanonicalFormat,
|
|
222
|
+
I as isNumericCanonicalFormat,
|
|
223
|
+
la as isPivotEmptyTupleAllowed,
|
|
224
|
+
na as isPivotSubtotalPrefix,
|
|
225
|
+
jr as isTemporalBucketPreset,
|
|
226
|
+
Pr as matrixAttemptKey,
|
|
227
|
+
dr as matrixBatchInputSchema,
|
|
228
|
+
wr as matrixBatchResponseSchema,
|
|
229
|
+
gr as matrixExportDeadlineSchema,
|
|
230
|
+
de as matrixFlatCsvHeaders,
|
|
231
|
+
we as matrixFlatCsvRow,
|
|
232
|
+
_r as matrixManifestSchema,
|
|
233
|
+
nr as parseCanonicalPivotResultTransport,
|
|
234
|
+
mr as parseCsvDelimiter,
|
|
235
|
+
ur as parseCsvEncoding,
|
|
236
|
+
d as parseFlatTableExportTotalsByColumnId,
|
|
237
|
+
P as parseFlatTableExportTotalsRequest,
|
|
238
|
+
Sr as parseMatrixAttemptKey,
|
|
239
|
+
hr as parseMatrixBatchResponse,
|
|
240
|
+
yr as parseMatrixManifest,
|
|
241
|
+
Y as parseNumericCanonicalFormat,
|
|
242
|
+
cr as parsePresentationExecutionSnapshot,
|
|
243
|
+
pr as parsePresentationScope,
|
|
244
|
+
N as parseRawTemporalChunkClassificationEvidence,
|
|
245
|
+
Ta as parseRawTemporalValueMetadata,
|
|
246
|
+
H as parseResolvedNumericCanonicalFormat,
|
|
247
|
+
fr as parseResolvedPresentationEntries,
|
|
248
|
+
O as parseResolvedRawTemporalFormat,
|
|
333
249
|
Ur as parseResolvedTemporalBucketFormat,
|
|
334
250
|
zr as parseTemporalBucketValue,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
251
|
+
Jr as parseTemporalInputPresentation,
|
|
252
|
+
Ve as parseWithSourceTimezone,
|
|
253
|
+
ge as planMatrixKeepWithPrevious,
|
|
254
|
+
_e as prepareMatrixExportPresentation,
|
|
255
|
+
D as prepareRawTemporalFormatter,
|
|
256
|
+
Se as presentAggregateGroupRow,
|
|
257
|
+
he as presentPivotHeader,
|
|
258
|
+
Tr as protectCSVText,
|
|
259
|
+
ye as readPdfErrorResponse,
|
|
260
|
+
Fe as requestStructuredPdf,
|
|
261
|
+
ma as requirePivotHeaderMembers,
|
|
262
|
+
ua as requirePivotResultColumnIdentities,
|
|
263
|
+
xe as requiresChunkedCsvExport,
|
|
264
|
+
Me as resolveAggregateTablePresentationContext,
|
|
349
265
|
Kr as resolveApplicableTemporalBucketFormat,
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
266
|
+
Er as resolveCsvEncoding,
|
|
267
|
+
W as resolveCurrencyFractionDigits,
|
|
268
|
+
oa as resolveMetricResultAlias,
|
|
269
|
+
Q as resolveNumericPresentation,
|
|
270
|
+
ca as resolveQueryColumnKeyMapEntry,
|
|
271
|
+
$ as resolveRawTemporalFormat,
|
|
355
272
|
Yr as resolveTemporalBucketPresentation,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
273
|
+
Xe as resolveTimezone,
|
|
274
|
+
pa as resolveUniqueQueryColumnKeyMapEntry,
|
|
275
|
+
Ie as shouldPresentAggregateGroupValue,
|
|
276
|
+
br as toCsvCell,
|
|
277
|
+
Hr as tokenizeTemporalBucketPattern,
|
|
278
|
+
Z as validateCardExportNumericPresentationSnapshot,
|
|
279
|
+
Rr as validateCardExportPresentationSnapshot,
|
|
280
|
+
B as validateRawTemporalPattern,
|
|
281
|
+
Ea as validateRawTemporalResultColumn,
|
|
282
|
+
Wr as validateTemporalBucketFormatApplicability,
|
|
283
|
+
ea as validateTemporalInputPattern
|
|
366
284
|
};
|