react-semaphor 0.1.564 → 0.1.565
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 +3 -3
- package/README.md +2 -2
- package/dist/analytics-protocol/index.js +8 -8
- package/dist/assistant-context/index.js +3 -2
- package/dist/brand-studio/index.js +28 -29
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{assistant-chat-D1BEEHUF.js → assistant-chat-DNfb5fbF.js} +204 -204
- package/dist/chunks/{bookmark-impact-XOsVUAqW.js → bookmark-impact-CHr7b1J2.js} +2 -2
- package/dist/chunks/bookmark-state-ByODVqee.js +1613 -0
- package/dist/chunks/card-filter-builder-CcEcfaYz.js +4100 -0
- package/dist/chunks/{switch-BW4yXSYs.js → code-editor-DJNOsgJH.js} +463 -442
- package/dist/chunks/{comparison-window-caption-D1EUXzaR.js → comparison-window-caption-CMLb3mut.js} +451 -419
- package/dist/chunks/{dashboard-DfYsASNd.js → dashboard-CtIfxycc.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-D3mc6peE.js +4910 -0
- package/dist/chunks/{dashboard-controls-CJ8Dz50D.js → dashboard-controls-BFv0zdws.js} +692 -682
- package/dist/chunks/{dashboard-json-D3uZxGO-.js → dashboard-json-CXn_3OYb.js} +4 -4
- package/dist/chunks/{dates-EvDtT25n.js → dates-DcRxw17S.js} +12 -12
- package/dist/chunks/{edit-dashboard-visual-CgHJXBQv.js → edit-dashboard-visual-Y6HatqBd.js} +7704 -10337
- package/dist/chunks/filter-reach-copy-DbggA5B7.js +4673 -0
- package/dist/chunks/{filter-value-text-CPwFkrMz.js → filter-value-text-7zhmth1S.js} +2 -2
- package/dist/chunks/{index-CAgf2x4E.js → index-DDa_rklN.js} +68 -63
- package/dist/chunks/{layout-grid-BM65viQh.js → layout-grid-0hIlqEtk.js} +1 -1
- package/dist/chunks/{list-filter-BoeLBfL3.js → list-filter-DkgoCeBm.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-hEucouWM.js → matrix-analytical-definition-C9xB_T84.js} +18 -18
- package/dist/chunks/{matrix-card-CCh9JjP1.js → matrix-card-BSUeSXpD.js} +2 -2
- package/dist/chunks/{matrix-member-presentation-DsAUbuoL.js → matrix-member-presentation-DZNgQpUq.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DsLdFdSa.js → matrix-operation-contract-Eb6elidS.js} +1 -1
- package/dist/chunks/{metric-comparison-Bnso1cm1.js → metric-comparison-ChXUFaZu.js} +1 -1
- package/dist/chunks/{palette-p1XSJFgB.js → palette-4vf2BEEg.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-B53jqszr.js → pivot-result-contract-expectations-Ddh1rNz5.js} +4 -4
- package/dist/chunks/{pivot-result-identity-Dq5jm-EC.js → pivot-result-identity-BlbLrqaC.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-DMqxSU4X.js → report-preferences-dialog-Db-b04B4.js} +122 -131
- package/dist/chunks/{report-runtime-context-BITkNSDa.js → report-runtime-context-DnA_PiKo.js} +1 -1
- package/dist/chunks/resolve-dashboard-input-context-C18J-YZC.js +21394 -0
- package/dist/chunks/{save-CHV1B1fL.js → save-D6pHmSSP.js} +1 -1
- package/dist/chunks/saved-dashboard-context-DhC_EVus.js +629 -0
- package/dist/chunks/{selection-reducer-Bz5aywT4.js → selection-reducer-OaJ-N5uN.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-CFeCIuaw.js → semaphor-ready-indicator-T6TsiBMT.js} +80634 -80503
- package/dist/chunks/{shelf-drop-preview-context-cEyVkKTF.js → shelf-drop-preview-context-CNWL_b0S.js} +407 -407
- package/dist/chunks/{source-entity-resolution-DdDVXFB8.js → source-entity-resolution-DF6GulDn.js} +1 -1
- package/dist/chunks/stored-dashboard-IdmtrNkA.js +5026 -0
- package/dist/chunks/{table-export-sheet-bSXxGn-v.js → table-export-sheet--DUKWk6o.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-sk9gqLi6.js → temporal-input-presentation--2r9BLr0.js} +392 -377
- package/dist/chunks/{token-types-BUK06hU2.js → token-types-C8JymO8s.js} +1 -1
- package/dist/chunks/{upload-BnmuyPqW.js → upload-Cf3wXZT8.js} +1 -1
- package/dist/chunks/{validators-BIM0FE31.js → validators-wtjw0aw6.js} +7 -7
- package/dist/chunks/variable-draft-3xseULxR.js +241 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2206 -1705
- package/dist/data-app-sdk/index.js +4 -4
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.js +174 -167
- package/dist/index.js +189 -187
- package/dist/pdf-export-policy/index.js +80 -28
- package/dist/pdf-table-layout/index.js +65 -65
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/components/dashboard-variables/data-variables-menu.d.ts +8 -0
- package/dist/types/components/dashboard-variables/variable-editor-host.d.ts +1 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +62 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +33 -2
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +7 -2
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +4 -2
- package/dist/types/lib/dashboard-variables/data-text.d.ts +33 -0
- package/dist/types/lib/dashboard-variables/types.d.ts +207 -0
- package/dist/types/lib/document/document-edits.d.ts +16 -1
- package/dist/types/lib/document/document-panel-target.d.ts +1 -1
- package/dist/types/lib/document/document-section-query-options.d.ts +29 -0
- package/dist/types/lib/document/document-table-data-policy.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +92 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +6 -0
- package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +1 -0
- package/dist/types/lib/query-context/use-semantic-execution-payload-for-cards.d.ts +24 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +36 -0
- package/dist/types/lib/text-variables/temporal-input-text.d.ts +28 -0
- package/dist/types/lib/text-variables/text-variable-types.d.ts +72 -0
- package/dist/types/lib/types/common-types.d.ts +155 -51
- package/dist/types/lib/utils/card-definition.d.ts +2 -2
- package/dist/types/shared/assistant-context/index.d.ts +1 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +51 -1
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +1087 -430
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +40 -40
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/dashboard-filter-targets.d.ts +29 -0
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +7 -4
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +159 -0
- package/dist/types/shared/dashboard-authoring/dashboard-variable-changes.d.ts +61 -0
- package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +50 -3
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +48 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +87 -13
- package/dist/types/shared/dashboard-authoring/text-card-words/chip-colors.d.ts +23 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +90 -8
- package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +31 -3
- package/dist/types/shared/dashboard-authoring/text-card-words/variable-words.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +125 -0
- package/dist/types/shared/dashboard-authoring/variable-editability.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/variable-references.d.ts +39 -0
- package/dist/types/shared/format-utils/document-print.d.ts +4 -2
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/pdf-capacity-lines.d.ts +17 -0
- package/dist/types/shared/format-utils/pdf-delivery.d.ts +8 -1
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +74 -6
- package/dist/types/shared/format-utils/presentation-execution.d.ts +9 -0
- package/package.json +2 -2
- package/src/data-app-sdk/README.md +3 -3
- package/dist/chunks/bookmark-state-CWeoGbrx.js +0 -743
- package/dist/chunks/braces-DzgoQC64.js +0 -23
- package/dist/chunks/dashboard-briefing-launcher-lvYfJoUQ.js +0 -3878
- package/dist/chunks/filter-reach-copy-Cmb05jlE.js +0 -3965
- package/dist/chunks/global-date-filter-utils-ruJYwjgZ.js +0 -16733
- package/dist/chunks/resolve-dashboard-input-context-i_jCSYae.js +0 -8214
- package/dist/chunks/saved-dashboard-context-Dg3oDmH_.js +0 -564
- package/dist/chunks/use-create-flow-overlay-state-Dl6DCxh8.js +0 -1436
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PDF_NUMBER_COLUMN_TOO_WIDE as me } from "../pdf-export-policy/index.js";
|
|
2
2
|
import { p as he, c as fe } from "../chunks/column-bands-RdM-kjDe.js";
|
|
3
3
|
const pe = {
|
|
4
4
|
letter: "Letter",
|
|
@@ -84,14 +84,14 @@ function we(e, t) {
|
|
|
84
84
|
const n = [...e].sort((s, a) => s - a), i = Math.max(0, Math.ceil(t * n.length) - 1);
|
|
85
85
|
return n[Math.min(i, n.length - 1)];
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ne(e, t) {
|
|
88
88
|
const n = t.map(D).filter(Boolean).map((i) => U(i, e === "numeric"));
|
|
89
89
|
return n.length === 0 ? 0 : e === "numeric" || e === "boolean" ? Math.max(...n) : we(n, H.representativePercentile);
|
|
90
90
|
}
|
|
91
91
|
function F(e) {
|
|
92
92
|
return re[e] || re.text;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Ce({
|
|
95
95
|
type: e = "text",
|
|
96
96
|
label: t = "",
|
|
97
97
|
sampleValues: n = [],
|
|
@@ -99,7 +99,7 @@ function Ne({
|
|
|
99
99
|
measuredWidthPx: s = null,
|
|
100
100
|
declaredNumeric: a = !1
|
|
101
101
|
} = {}) {
|
|
102
|
-
const u = F(e), r = [...n, i], l =
|
|
102
|
+
const u = F(e), r = [...n, i], l = Ne(e, r), o = Math.max(
|
|
103
103
|
u.min,
|
|
104
104
|
Pe(t),
|
|
105
105
|
l
|
|
@@ -147,7 +147,7 @@ function K(e = {}, t = null) {
|
|
|
147
147
|
if (typeof e.isNumeric == "boolean")
|
|
148
148
|
return e.isNumeric;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function B(e = {}, t = null) {
|
|
151
151
|
const n = !!(t != null && t.isNumeric), i = Se(e.className);
|
|
152
152
|
return {
|
|
153
153
|
...e,
|
|
@@ -156,7 +156,7 @@ function T(e = {}, t = null) {
|
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
function ie(e = null, t = null) {
|
|
159
|
-
return
|
|
159
|
+
return B(
|
|
160
160
|
{
|
|
161
161
|
text: "",
|
|
162
162
|
colspan: 1,
|
|
@@ -195,7 +195,7 @@ function ve(e = [], t = []) {
|
|
|
195
195
|
rowspan: 1
|
|
196
196
|
};
|
|
197
197
|
if (u.push(
|
|
198
|
-
y > 1 || !t[d] ?
|
|
198
|
+
y > 1 || !t[d] ? B(m, { isNumeric: !1 }) : B(
|
|
199
199
|
m,
|
|
200
200
|
t[d]
|
|
201
201
|
)
|
|
@@ -250,11 +250,11 @@ function Le(e = []) {
|
|
|
250
250
|
};
|
|
251
251
|
a.push(f);
|
|
252
252
|
for (let S = 0; S < h; S += 1) {
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
253
|
+
const N = c + S;
|
|
254
|
+
if (N >= n) break;
|
|
255
255
|
for (let b = 0; b < m; b += 1) {
|
|
256
256
|
const P = d + b;
|
|
257
|
-
s[
|
|
257
|
+
s[N][P] === void 0 && (s[N][P] = f);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
d += m;
|
|
@@ -287,7 +287,7 @@ function Le(e = []) {
|
|
|
287
287
|
});
|
|
288
288
|
return { headerRows: t, rowSources: i, matrix: s, placements: a, leafCells: l };
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function $() {
|
|
291
291
|
return {
|
|
292
292
|
text: "",
|
|
293
293
|
colspan: 1,
|
|
@@ -318,7 +318,7 @@ function se(e = []) {
|
|
|
318
318
|
0
|
|
319
319
|
);
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Be(e = [], t = 0) {
|
|
322
322
|
const n = Array.from({ length: t }, () => 0);
|
|
323
323
|
return e.map((i = {}) => {
|
|
324
324
|
const s = Array.from(
|
|
@@ -328,7 +328,7 @@ function Te(e = [], t = 0) {
|
|
|
328
328
|
let a = 0;
|
|
329
329
|
const u = () => {
|
|
330
330
|
for (; a < t && n[a] > 0; )
|
|
331
|
-
s[a] =
|
|
331
|
+
s[a] = $(), n[a] -= 1, a += 1;
|
|
332
332
|
};
|
|
333
333
|
for (u(), (i.cells || []).forEach((r = {}) => {
|
|
334
334
|
if (u(), a >= t) return;
|
|
@@ -347,11 +347,11 @@ function Te(e = [], t = 0) {
|
|
|
347
347
|
}
|
|
348
348
|
a += l;
|
|
349
349
|
}); a < t; )
|
|
350
|
-
n[a] > 0 && (n[a] -= 1), s[a] = s[a] ||
|
|
351
|
-
return s.map((r) => r ||
|
|
350
|
+
n[a] > 0 && (n[a] -= 1), s[a] = s[a] || $(), a += 1;
|
|
351
|
+
return s.map((r) => r || $());
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Me(e = null, t = 0) {
|
|
355
355
|
if (!e) return null;
|
|
356
356
|
const n = [];
|
|
357
357
|
for ((e.cells || []).forEach((i = {}) => {
|
|
@@ -365,10 +365,10 @@ function Be(e = null, t = 0) {
|
|
|
365
365
|
measuredWidthPx: null
|
|
366
366
|
})
|
|
367
367
|
);
|
|
368
|
-
}); n.length < t; ) n.push(
|
|
368
|
+
}); n.length < t; ) n.push($());
|
|
369
369
|
return n.slice(0, t);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Te(e) {
|
|
372
372
|
const t = W(e).trim().toLowerCase();
|
|
373
373
|
return t ? ["-", "—", "–", "n/a", "na", "null", "none"].includes(t) : !0;
|
|
374
374
|
}
|
|
@@ -401,16 +401,16 @@ function je(e) {
|
|
|
401
401
|
const n = t.split(",").map((i) => i.trim()).filter(Boolean);
|
|
402
402
|
return n.length < 2 || !n.every((i) => /^[a-z0-9_.:/-]+$/i.test(i)) ? !1 : /,\s+/.test(t) ? !0 : ke(t) ? !1 : n.some((i) => !/^\d+$/.test(i));
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Oe(e, t, n) {
|
|
405
405
|
return Array.isArray(e) && (e.find(
|
|
406
406
|
(s) => (s == null ? void 0 : s.columnId) && s.columnId === t
|
|
407
407
|
) || e[n]) || null;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function $e(e, t, n) {
|
|
410
410
|
const i = K(e, t);
|
|
411
411
|
if (typeof i == "boolean")
|
|
412
412
|
return i ? "numeric" : "text";
|
|
413
|
-
const s = n.filter((a) => !
|
|
413
|
+
const s = n.filter((a) => !Te(a));
|
|
414
414
|
return s.length === 0 || s.some((a) => je(a)) ? "text" : s.filter(He).length / s.length >= 0.8 ? "numeric" : s.filter(ze).length / s.length >= 0.8 ? "boolean" : s.filter(Ee).length / s.length >= 0.7 ? "datetime" : s.filter(_e).length / s.length >= 0.7 ? "id" : "text";
|
|
415
415
|
}
|
|
416
416
|
function oe(e) {
|
|
@@ -420,7 +420,7 @@ function Re(e = []) {
|
|
|
420
420
|
return [
|
|
421
421
|
{
|
|
422
422
|
cells: e.map(
|
|
423
|
-
(t) =>
|
|
423
|
+
(t) => B(
|
|
424
424
|
{
|
|
425
425
|
text: t.label,
|
|
426
426
|
colspan: 1,
|
|
@@ -472,7 +472,7 @@ function Fe(e, t, n) {
|
|
|
472
472
|
__sortIndex: l[0]
|
|
473
473
|
};
|
|
474
474
|
u[r.rowIndex].cells.push(
|
|
475
|
-
c || y ?
|
|
475
|
+
c || y ? B(m, o[0]) : B(m, { isNumeric: !1 })
|
|
476
476
|
);
|
|
477
477
|
}
|
|
478
478
|
return u.map(({ __rowIndex: r, ...l }) => ({
|
|
@@ -540,39 +540,39 @@ function Ve(e = {}, t = {}) {
|
|
|
540
540
|
Number(s.totalColumns || 0),
|
|
541
541
|
...i.map((p) => se((p == null ? void 0 : p.cells) || [])),
|
|
542
542
|
e.grandTotal ? se(e.grandTotal.cells || []) : 0
|
|
543
|
-
), r =
|
|
543
|
+
), r = Be(i, u), l = r.filter(
|
|
544
544
|
(p, x) => {
|
|
545
|
-
var
|
|
546
|
-
return x < 50 || ((
|
|
545
|
+
var C;
|
|
546
|
+
return x < 50 || ((C = i[x]) == null ? void 0 : C.type) === "subtotal";
|
|
547
547
|
}
|
|
548
|
-
), o =
|
|
548
|
+
), o = Me(
|
|
549
549
|
e.grandTotal,
|
|
550
550
|
u
|
|
551
551
|
), c = Array.isArray(s.columns) ? s.columns : [], d = Array.from(
|
|
552
552
|
{ length: u },
|
|
553
553
|
(p, x) => {
|
|
554
554
|
var te, ne;
|
|
555
|
-
const
|
|
556
|
-
var
|
|
557
|
-
return (
|
|
558
|
-
})) == null ? void 0 : te[x], I =
|
|
555
|
+
const C = a.leafCells[x] || X(), A = (te = r.find((E) => {
|
|
556
|
+
var M;
|
|
557
|
+
return (M = E[x]) == null ? void 0 : M.columnId;
|
|
558
|
+
})) == null ? void 0 : te[x], I = Oe(
|
|
559
559
|
c,
|
|
560
|
-
|
|
560
|
+
C.columnId || (A == null ? void 0 : A.columnId),
|
|
561
561
|
x
|
|
562
|
-
), V =
|
|
562
|
+
), V = C.columnId || (I == null ? void 0 : I.columnId) || (A == null ? void 0 : A.columnId) || `col_${x + 1}`, k = W(C.text) || W(I == null ? void 0 : I.label) || `Column ${x + 1}`, j = l.map(
|
|
563
563
|
(E) => {
|
|
564
|
-
var
|
|
565
|
-
return ((
|
|
564
|
+
var M;
|
|
565
|
+
return ((M = E[x]) == null ? void 0 : M.text) ?? "";
|
|
566
566
|
}
|
|
567
|
-
), v = ((ne = o == null ? void 0 : o[x]) == null ? void 0 : ne.text) ?? "",
|
|
567
|
+
), v = ((ne = o == null ? void 0 : o[x]) == null ? void 0 : ne.text) ?? "", T = $e(C, I, [
|
|
568
568
|
...j,
|
|
569
569
|
v
|
|
570
|
-
]), z = K(
|
|
571
|
-
type:
|
|
570
|
+
]), z = K(C, I) === !0, O = F(T).min, de = Number.isFinite(I == null ? void 0 : I.measuredWidthPx) ? Number(I == null ? void 0 : I.measuredWidthPx) : Number.isFinite(C.measuredWidthPx) ? Number(C.measuredWidthPx) : null, ee = Ce({
|
|
571
|
+
type: T,
|
|
572
572
|
label: k,
|
|
573
573
|
sampleValues: z ? r.map((E) => {
|
|
574
|
-
var
|
|
575
|
-
return ((
|
|
574
|
+
var M;
|
|
575
|
+
return ((M = E[x]) == null ? void 0 : M.text) ?? "";
|
|
576
576
|
}) : j,
|
|
577
577
|
grandTotalValue: v,
|
|
578
578
|
measuredWidthPx: de,
|
|
@@ -583,10 +583,10 @@ function Ve(e = {}, t = {}) {
|
|
|
583
583
|
sourceIndex: x,
|
|
584
584
|
columnId: V,
|
|
585
585
|
label: k,
|
|
586
|
-
type:
|
|
587
|
-
minWidthPx:
|
|
586
|
+
type: T,
|
|
587
|
+
minWidthPx: T === "numeric" ? ee : O,
|
|
588
588
|
widthPx: ee,
|
|
589
|
-
isNumeric:
|
|
589
|
+
isNumeric: T === "numeric",
|
|
590
590
|
declaredNumeric: z
|
|
591
591
|
};
|
|
592
592
|
}
|
|
@@ -597,26 +597,26 @@ function Ve(e = {}, t = {}) {
|
|
|
597
597
|
d
|
|
598
598
|
), h = t.suppressEmptyColumns !== !1 && String(s.tableType || "").toLowerCase() === "data" && (r.length > 0 || o) ? d.filter((p) => {
|
|
599
599
|
const x = p.sourceIndex;
|
|
600
|
-
return r.some((
|
|
600
|
+
return r.some((C) => oe(C[x])) || oe(o == null ? void 0 : o[x]);
|
|
601
601
|
}).map((p) => p.sourceIndex) : d.map((p) => p.sourceIndex);
|
|
602
602
|
h.length === 0 && d.length > 0 && h.push(d[0].sourceIndex);
|
|
603
|
-
const f = new Set(h), S = d.filter((p) => !f.has(p.sourceIndex)).map((p) => ({ columnId: p.columnId, label: p.label })),
|
|
603
|
+
const f = new Set(h), S = d.filter((p) => !f.has(p.sourceIndex)).map((p) => ({ columnId: p.columnId, label: p.label })), N = h.map((p, x) => ({
|
|
604
604
|
...d[p],
|
|
605
605
|
index: x
|
|
606
|
-
})), b =
|
|
606
|
+
})), b = N.map((p) => p.index), P = S.length === 0;
|
|
607
607
|
return {
|
|
608
|
-
columns:
|
|
608
|
+
columns: N,
|
|
609
609
|
hiddenEmptyColumns: S,
|
|
610
610
|
isPivotTable: y,
|
|
611
611
|
pivotAnchorCount: g,
|
|
612
|
-
project: (p = b, { preserveHeaderHierarchy: x = !0, preserveBodySpans:
|
|
613
|
-
const A = p.map((v) =>
|
|
612
|
+
project: (p = b, { preserveHeaderHierarchy: x = !0, preserveBodySpans: C = !1 } = {}) => {
|
|
613
|
+
const A = p.map((v) => N[v]).filter(Boolean), I = A.map((v) => v.sourceIndex), V = x ? Fe(a, I, A) : null, k = C && P && A.length === N.length ? ve(i, d) : i.map((v, T) => ({
|
|
614
614
|
...v,
|
|
615
615
|
cells: A.map(
|
|
616
616
|
(z) => {
|
|
617
|
-
var
|
|
618
|
-
return
|
|
619
|
-
ae((
|
|
617
|
+
var O;
|
|
618
|
+
return B(
|
|
619
|
+
ae((O = r[T]) == null ? void 0 : O[z.sourceIndex]),
|
|
620
620
|
z
|
|
621
621
|
);
|
|
622
622
|
}
|
|
@@ -624,7 +624,7 @@ function Ve(e = {}, t = {}) {
|
|
|
624
624
|
})), j = o ? {
|
|
625
625
|
...e.grandTotal || {},
|
|
626
626
|
cells: A.map(
|
|
627
|
-
(v) =>
|
|
627
|
+
(v) => B(
|
|
628
628
|
ae(o[v.sourceIndex]),
|
|
629
629
|
v
|
|
630
630
|
)
|
|
@@ -740,9 +740,9 @@ function Ke(e, t, n = 0) {
|
|
|
740
740
|
throw Y();
|
|
741
741
|
const i = F("text").min, s = n > 0, a = s ? e.slice(0, n).map((f) => f.index) : [];
|
|
742
742
|
let u = s ? [...a] : Je(e, t);
|
|
743
|
-
const r = (f) => f.reduce((S,
|
|
743
|
+
const r = (f) => f.reduce((S, N) => {
|
|
744
744
|
var b;
|
|
745
|
-
return S + (((b = e[
|
|
745
|
+
return S + (((b = e[N]) == null ? void 0 : b.widthPx) || 0);
|
|
746
746
|
}, 0), l = () => e.map((f) => f.index).filter((f) => !(u.includes(f) || s && a.includes(f)));
|
|
747
747
|
let o = l();
|
|
748
748
|
if (o.length > 0) {
|
|
@@ -761,12 +761,12 @@ function Ke(e, t, n = 0) {
|
|
|
761
761
|
const S = ((b = e[f]) == null ? void 0 : b.widthPx) || F("text").min;
|
|
762
762
|
if ((P = e[f]) != null && P.declaredNumeric && S > d)
|
|
763
763
|
throw Y();
|
|
764
|
-
const
|
|
765
|
-
if (y[f] =
|
|
766
|
-
g.push(m), m = [f], h =
|
|
764
|
+
const N = Math.min(S, d);
|
|
765
|
+
if (y[f] = N, m.length > 0 && h + N > d) {
|
|
766
|
+
g.push(m), m = [f], h = N;
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
|
-
m.push(f), h +=
|
|
769
|
+
m.push(f), h += N;
|
|
770
770
|
}), m.length > 0 && g.push(m), g.length === 0 && g.push([]), {
|
|
771
771
|
anchorIndices: u,
|
|
772
772
|
bands: g,
|
|
@@ -865,10 +865,10 @@ function at(e, t = {}) {
|
|
|
865
865
|
rows: p.rows,
|
|
866
866
|
grandTotal: p.grandTotal,
|
|
867
867
|
bandLabel: null,
|
|
868
|
-
columns: r.map((x,
|
|
868
|
+
columns: r.map((x, C) => ({
|
|
869
869
|
columnId: x.columnId,
|
|
870
870
|
label: x.label,
|
|
871
|
-
widthPx: b[
|
|
871
|
+
widthPx: b[C],
|
|
872
872
|
isNumeric: x.isNumeric
|
|
873
873
|
}))
|
|
874
874
|
}
|
|
@@ -940,7 +940,7 @@ function at(e, t = {}) {
|
|
|
940
940
|
), S = f.anchorIndices.map((b) => {
|
|
941
941
|
var P;
|
|
942
942
|
return (P = r[b]) == null ? void 0 : P.label;
|
|
943
|
-
}).filter(Boolean),
|
|
943
|
+
}).filter(Boolean), N = f.bands.map((b) => {
|
|
944
944
|
const P = [...f.anchorIndices, ...b], L = tt(
|
|
945
945
|
r,
|
|
946
946
|
P,
|
|
@@ -961,14 +961,14 @@ function at(e, t = {}) {
|
|
|
961
961
|
};
|
|
962
962
|
});
|
|
963
963
|
return {
|
|
964
|
-
sections:
|
|
964
|
+
sections: N,
|
|
965
965
|
layoutApplied: {
|
|
966
966
|
requestedPageSize: n,
|
|
967
967
|
requestedOrientation: i,
|
|
968
968
|
effectivePageSize: m.pageSize,
|
|
969
969
|
effectiveOrientation: m.orientation,
|
|
970
970
|
usedBanding: !0,
|
|
971
|
-
bandCount:
|
|
971
|
+
bandCount: N.length,
|
|
972
972
|
totalColumns: r.length,
|
|
973
973
|
anchorColumns: S,
|
|
974
974
|
autoAdjustedLayout: m.pageSize !== n || m.orientation !== i,
|
|
@@ -983,7 +983,7 @@ export {
|
|
|
983
983
|
Ve as buildPdfTableModel,
|
|
984
984
|
at as buildWideTableLayout,
|
|
985
985
|
fe as columnBandCaption,
|
|
986
|
-
|
|
986
|
+
Ce as estimateColumnWidthPx,
|
|
987
987
|
F as getColumnWidthBounds,
|
|
988
988
|
be as getTableHorizontalInsetPx,
|
|
989
989
|
st as getTablePdfMargins,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as r } from "../chunks/analytics-base-schemas-BaIQrEzX.js";
|
|
2
|
-
import { D as n, p as o, a as p, b as t } from "../chunks/report-runtime-context-
|
|
2
|
+
import { D as n, p as o, a as p, b as t } from "../chunks/report-runtime-context-DnA_PiKo.js";
|
|
3
3
|
export {
|
|
4
4
|
n as DEFAULT_CALENDAR_CONTEXT,
|
|
5
5
|
r as isValidIanaTimeZone,
|