react-semaphor 0.1.603 → 0.1.605
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/activity/index.js +1 -73
- package/dist/analytics-protocol/index.js +1 -1491
- package/dist/appearance/index.js +1 -12
- package/dist/appearance-runtime/index.js +1 -5
- package/dist/assistant-context/index.js +1 -11
- package/dist/assistant-protocol/index.js +1 -152
- package/dist/brand-studio/index.js +3 -1598
- package/dist/briefings/index.js +1 -70
- package/dist/chunks/add-to-dashboard-CEmZUf9o.js +12 -0
- package/dist/chunks/analytics-base-schemas-DMFrDqn_.js +1 -0
- package/dist/chunks/appearance-provider-CfoAVQuG.js +608 -0
- package/dist/chunks/appearance-runtime-provider-Bx8H-moR.js +1 -0
- package/dist/chunks/applied-constraints-CinevlKD.js +1 -0
- package/dist/chunks/assistant-chat-DgUaCE9k.js +51 -0
- package/dist/chunks/attachment-filter-line-C_zHMhGh.js +1 -0
- package/dist/chunks/attribution-BEFSsbNn.js +1 -0
- package/dist/chunks/availability-3AIOf6Z-.js +1 -0
- package/dist/chunks/bookmark-impact-BAtemeyK.js +1 -0
- package/dist/chunks/bookmark-state-DScd31KT.js +1 -0
- package/dist/chunks/brand-C9APUFaP.js +1 -0
- package/dist/chunks/card-filter-builder-ClWrXB7P.js +11 -0
- package/dist/chunks/column-bands-DwxbZ6UI.js +1 -0
- package/dist/chunks/comparison-window-caption-tguyN24S.js +1 -0
- package/dist/chunks/context-CntvtZwC.js +2 -0
- package/dist/chunks/conversation-JMK2kyTK.js +1 -0
- package/dist/chunks/dashboard-ChIcbVTx.js +1 -0
- package/dist/chunks/dashboard-briefing-launcher-CwMlhkxV.js +42 -0
- package/dist/chunks/dashboard-controls-UCSAFCGA.js +42 -0
- package/dist/chunks/dashboard-json-B120hYDa.js +1 -0
- package/dist/chunks/dashboard-temporal-snapshot-BFJKbp_6.js +1 -0
- package/dist/chunks/edit-dashboard-visual-DvHp03h_.js +73 -0
- package/dist/chunks/export-file-format-B-wQNHIn.js +4 -0
- package/dist/chunks/filter-line-WwUV5JzN.js +1 -0
- package/dist/chunks/filter-reach-preview-C5M5_hf_.js +1 -0
- package/dist/chunks/filter-value-text-DqTHe_vu.js +1 -0
- package/dist/chunks/index-DViPGDFj.js +1 -0
- package/dist/chunks/index-bkP6SnYu.js +1 -0
- package/dist/chunks/kpi-trend-rule-B87LNzcz.js +1 -0
- package/dist/chunks/layout-grid-CFzqJ7GC.js +6 -0
- package/dist/chunks/matrix-analytical-definition-5T-2euHZ.js +1 -0
- package/dist/chunks/matrix-member-presentation-vVAv-aqg.js +1 -0
- package/dist/chunks/matrix-operation-contract-CWvcEsQ0.js +1 -0
- package/dist/chunks/normalize-dashboard-for-dirty-check-ILKfqgL3.js +1 -0
- package/dist/chunks/numeric-range-options-C8tr-Bls.js +1 -0
- package/dist/chunks/palette-NvEIuXHN.js +6 -0
- package/dist/chunks/pivot-result-contract-expectations-BNWhS8mv.js +1 -0
- package/dist/chunks/pivot-result-identity-B0eWVMXg.js +1 -0
- package/dist/chunks/raw-temporal-value-BHQ-ldpW.js +1 -0
- package/dist/chunks/rendered-file-BbvwaU6z.js +1 -0
- package/dist/chunks/report-preferences-dialog-Bseb2Rlg.js +1 -0
- package/dist/chunks/report-runtime-context-Cd1b5pku.js +1 -0
- package/dist/chunks/resolve-dashboard-input-context-BDY7KwRe.js +8 -0
- package/dist/chunks/resolver-CjsW8Rz0.js +1 -0
- package/dist/chunks/saved-dashboard-context-C3lWc4Dx.js +1 -0
- package/dist/chunks/schema-O1Y3WTGF.js +4 -0
- package/dist/chunks/selection-filter-compiler-kYsRugss.js +1 -0
- package/dist/chunks/semaphor-ready-indicator-BQarSo6S.js +612 -0
- package/dist/chunks/set-6mOnfQeH.js +1 -0
- package/dist/chunks/slider-BPnHdMGq.js +4 -0
- package/dist/chunks/stored-dashboard-DfrxDLhR.js +1 -0
- package/dist/chunks/table-export-sheet-xaczzWZF.js +2 -0
- package/dist/chunks/token-types-1vzMWjI-.js +1 -0
- package/dist/chunks/validators-Dg2kyF4_.js +1 -0
- package/dist/chunks/variable-draft-B4_xqr4Y.js +1 -0
- package/dist/chunks/visual-choice-DgEFfkE-.js +1 -0
- package/dist/dashboard/index.js +1 -7
- package/dist/dashboard-authoring/index.js +1 -4614
- package/dist/format-utils/index.js +1 -425
- package/dist/index.js +1 -554
- package/dist/layouts/index.js +1 -7
- package/dist/live-channel/index.js +1 -124
- package/dist/pdf-export-policy/index.js +1 -92
- package/dist/pdf-table-layout/index.js +1 -993
- package/dist/report-runtime-context/index.js +1 -9
- package/dist/shared/index.js +1 -6
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -9
- package/dist/types/brand-studio/brand-studio-draft.d.ts +45 -13
- package/dist/types/brand-studio/brand-studio-editor.d.ts +13 -2
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +17 -6
- package/dist/types/components/visual/data-table/types/data-table.d.ts +52 -42
- package/dist/types/index.js +1 -88
- package/dist/types/lib/appearance/aliases.d.ts +3 -0
- package/dist/types/lib/appearance/index.d.ts +1 -0
- package/dist/types/lib/appearance/table-density.d.ts +18 -0
- package/dist/types/lib/appearance/types.d.ts +39 -1
- package/dist/types/lib/dashboard-viewer/column-header-actions.d.ts +100 -0
- package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +0 -27
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +26 -2
- package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +2 -0
- package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +32 -0
- package/dist/types/lib/hooks/use-add-new-frame.d.ts +7 -0
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +4 -0
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +8 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +9 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +14 -2
- package/dist/types/lib/stores/explorer-actions.d.ts +7 -10
- package/dist/types/lib/types/common-types.d.ts +1 -2
- package/dist/types/lib/types/semantic-types.d.ts +6 -10
- package/dist/types/lib/utils/card-config-utils.d.ts +13 -0
- package/dist/types/lib/utils/field-placement.d.ts +17 -0
- package/dist/types/lib/utils/field-state-calculator.d.ts +7 -19
- package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +21 -1
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +7 -4
- package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-base.d.ts +125 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-field-folders.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-joins.d.ts +114 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-prune.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-catalog.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-folders.d.ts +180 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/join-reach.d.ts +42 -0
- package/dist/types/shared/dashboard-authoring/card-field-places.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +2 -8
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-display-values.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-display.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/card-settings/table-viewer-switches.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +132 -3
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +10 -1
- package/dist/types/shared/dashboard-authoring/field-aggregations.d.ts +9 -2
- package/dist/types/shared/dashboard-authoring/field-folders/field-folders.d.ts +116 -0
- package/dist/types/shared/dashboard-authoring/field-folders/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-decision.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +7 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +6 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +7 -22
- package/dist/types/shared/dashboard-authoring/sheet-kinds.d.ts +36 -0
- package/dist/types/shared/dashboard-authoring/table-sheet-shape.d.ts +140 -0
- package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +15 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +8 -2
- package/dist/types/shared/format-utils/types/format-types.d.ts +1 -1
- package/dist/usage-events/index.js +1 -285
- package/dist/value-format-preferences/index.js +1 -635
- package/package.json +5 -2
- package/dist/chunks/add-to-dashboard-CFF-wFU-.js +0 -291
- package/dist/chunks/analytics-base-schemas-DsUh5Q3C.js +0 -680
- package/dist/chunks/appearance-context-BwBp25ZG.js +0 -162
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +0 -80
- package/dist/chunks/applied-constraints-DU-wndZ7.js +0 -47
- package/dist/chunks/assistant-chat-B6hNQI1t.js +0 -6115
- package/dist/chunks/attribution-BvoKvhcj.js +0 -32
- package/dist/chunks/availability-Bp5Gfu1I.js +0 -44
- package/dist/chunks/bookmark-impact-Ba2PLcGp.js +0 -76
- package/dist/chunks/bookmark-state-n7AaNzR_.js +0 -1667
- package/dist/chunks/brand-BoUV0iHF.js +0 -54
- package/dist/chunks/card-filter-builder-Y22HizVx.js +0 -4069
- package/dist/chunks/column-bands-RdM-kjDe.js +0 -47
- package/dist/chunks/comparison-window-caption-Ck2TIbnR.js +0 -741
- package/dist/chunks/context-UCQ7sere.js +0 -369
- package/dist/chunks/conversation-sQiWYUOb.js +0 -16
- package/dist/chunks/dashboard-BghI99oY.js +0 -14
- package/dist/chunks/dashboard-briefing-launcher-DtBAnGiH.js +0 -4875
- package/dist/chunks/dashboard-controls-CtFXlyjV.js +0 -2290
- package/dist/chunks/dashboard-json-DfGBUtCd.js +0 -66
- package/dist/chunks/dates-BnrXF4bb.js +0 -185
- package/dist/chunks/edit-9df1zOWe.js +0 -226
- package/dist/chunks/edit-dashboard-visual-oxt3x1wb.js +0 -18397
- package/dist/chunks/export-file-format-C-tJsxsf.js +0 -111
- package/dist/chunks/filter-line-Cy5YYqRL.js +0 -703
- package/dist/chunks/filter-reach-copy-CE_ZX147.js +0 -5111
- package/dist/chunks/filter-value-text-fWvSDwkl.js +0 -153
- package/dist/chunks/index-BVKzKl5d.js +0 -90
- package/dist/chunks/index-CV_Kzou0.js +0 -595
- package/dist/chunks/index-D5rxbtS4.js +0 -2795
- package/dist/chunks/layout-grid-9LndRoLa.js +0 -16
- package/dist/chunks/matrix-analytical-definition-CCp48UCw.js +0 -1233
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +0 -391
- package/dist/chunks/matrix-operation-contract-DPBj69D8.js +0 -1413
- package/dist/chunks/metric-comparison-B0FR-Q8I.js +0 -600
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +0 -119
- package/dist/chunks/paintbrush-58FQYY-y.js +0 -27
- package/dist/chunks/palette-Be62Tkoa.js +0 -23
- package/dist/chunks/pickers-DkqmtnTL.js +0 -2403
- package/dist/chunks/pivot-result-contract-expectations-BYqAmG9n.js +0 -5092
- package/dist/chunks/pivot-result-identity-CAP4--iq.js +0 -77
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +0 -3778
- package/dist/chunks/rendered-file-D8xEuVVx.js +0 -108
- package/dist/chunks/report-preferences-dialog-uJp9GBTM.js +0 -1651
- package/dist/chunks/report-runtime-context-c77_KF9v.js +0 -388
- package/dist/chunks/resolve-dashboard-input-context-Rtl1ffmE.js +0 -25324
- package/dist/chunks/resolver-DG_tfEpt.js +0 -156
- package/dist/chunks/save-C5A0JnEV.js +0 -21
- package/dist/chunks/saved-dashboard-context-tcyTU8jm.js +0 -618
- package/dist/chunks/schema-C9NPiIru.js +0 -2568
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +0 -150
- package/dist/chunks/semaphor-ready-indicator-FBvunj6S.js +0 -145603
- package/dist/chunks/shelf-drop-preview-context-QKStrcK9.js +0 -2466
- package/dist/chunks/stored-dashboard-CHozcAY9.js +0 -4075
- package/dist/chunks/style-sheet-parts-CDCG-8Ej.js +0 -8681
- package/dist/chunks/table-export-sheet-ZFIvs6Sj.js +0 -949
- package/dist/chunks/token-types-XbM6QByy.js +0 -8
- package/dist/chunks/upload-H15d7uHK.js +0 -15
- package/dist/chunks/validators-Baf3VIf5.js +0 -3686
- package/dist/chunks/variable-draft-C2y8Jp6Z.js +0 -242
- package/dist/chunks/visual-choice-DDfHfHvY.js +0 -172
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { j as w, r as I, k } from "./validators-Baf3VIf5.js";
|
|
2
|
-
import { a as p } from "./metric-comparison-B0FR-Q8I.js";
|
|
3
|
-
import { d as T, c as D } from "./raw-temporal-value-Dg_MTFF7.js";
|
|
4
|
-
import "../value-format-preferences/index.js";
|
|
5
|
-
import { al as O, ah as L } from "./pivot-result-contract-expectations-BYqAmG9n.js";
|
|
6
|
-
const f = { kind: "plain" }, y = { kind: "temporal" }, S = {
|
|
7
|
-
"=": "=",
|
|
8
|
-
"!=": "!=",
|
|
9
|
-
">": ">",
|
|
10
|
-
">=": ">=",
|
|
11
|
-
"<": "<",
|
|
12
|
-
"<=": "<=",
|
|
13
|
-
in: "in",
|
|
14
|
-
"not in": "not in",
|
|
15
|
-
between: "between",
|
|
16
|
-
"not between": "not between",
|
|
17
|
-
contains: "contains (ignoring case)",
|
|
18
|
-
startsWith: "starts with (ignoring case)",
|
|
19
|
-
endsWith: "ends with (ignoring case)",
|
|
20
|
-
like: "matches the LIKE pattern (ignoring case)",
|
|
21
|
-
"not like": "does not match the LIKE pattern (ignoring case)",
|
|
22
|
-
isNull: "is empty",
|
|
23
|
-
isNotNull: "is not empty"
|
|
24
|
-
}, V = { between: "in", "not between": "not in" };
|
|
25
|
-
function A(t, n = {}) {
|
|
26
|
-
const { operator: e, values: i, reading: r } = t, s = r.kind === "bucket" ? `${t.subject} (${O(r.bucket)})` : t.subject, o = S[e], l = t.shownAs ? ` (shown as ${JSON.stringify(t.shownAs)})` : "", d = (a, c = 0) => ({ text: a, omittedValues: c });
|
|
27
|
-
if (e === "isNull" || e === "isNotNull") return d(`${s} ${o}`);
|
|
28
|
-
if (t.latestValue)
|
|
29
|
-
return d(`${s} ${o} the latest value of this field (resolved at run time)`);
|
|
30
|
-
const h = t.relative ? I(e) : void 0;
|
|
31
|
-
if (t.relative && h) {
|
|
32
|
-
const { definition: a } = w(t.relative), c = i.length === 1 && !p(t.relative).dataAnchored ? `; last resolved here as ${u(i[0], r)}` : "";
|
|
33
|
-
return d(
|
|
34
|
-
`${s} ${o} the ${h} of the relative window ${a} (${JSON.stringify(T(e, t.relative))}; resolved again at run time${c})`
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
if (e === "between" || e === "not between") {
|
|
38
|
-
const a = i.length === 2 ? v(i[0], i[1], r, n.timeZone) : void 0;
|
|
39
|
-
if (t.relative)
|
|
40
|
-
return d(`${s} ${V[e]} ${E(t.relative, a)}`);
|
|
41
|
-
if (a) {
|
|
42
|
-
const c = a.wholeDaysIn ? ` (whole days in ${a.wholeDaysIn})` : "";
|
|
43
|
-
return d(`${s} ${o} ${a.from} and ${a.to}${c}${l}`);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return e === "in" || e === "not in" || i.length !== 1 ? d(
|
|
47
|
-
`${s} ${o} (${N(i, r, n.maxListedValues)})${l}`,
|
|
48
|
-
$(i.length, n.maxListedValues)
|
|
49
|
-
) : d(`${s} ${o} ${u(i[0], r)}${l}`);
|
|
50
|
-
}
|
|
51
|
-
function _(t, n = {}) {
|
|
52
|
-
return t == null ? { text: "no value", omittedValues: 0 } : Array.isArray(t) ? {
|
|
53
|
-
text: N(t, f, n.maxListedValues),
|
|
54
|
-
omittedValues: $(t.length, n.maxListedValues)
|
|
55
|
-
} : { text: u(t), omittedValues: 0 };
|
|
56
|
-
}
|
|
57
|
-
function u(t, n = f) {
|
|
58
|
-
if (n.kind !== "plain") {
|
|
59
|
-
const e = b(t, n);
|
|
60
|
-
if (e !== void 0) return e;
|
|
61
|
-
}
|
|
62
|
-
return t instanceof Date ? b(t, y) ?? JSON.stringify(String(t)) : t === void 0 ? "null" : typeof t == "number" || typeof t == "boolean" || t === null ? String(t) : JSON.stringify(t) ?? String(t);
|
|
63
|
-
}
|
|
64
|
-
function N(t, n = f, e = Number.POSITIVE_INFINITY) {
|
|
65
|
-
const i = t.slice(0, Number.isFinite(e) ? e : void 0).map((s) => u(s, n)).join(", "), r = $(t.length, e);
|
|
66
|
-
return r > 0 ? `${i}, and ${r} more values` : i;
|
|
67
|
-
}
|
|
68
|
-
function $(t, n = Number.POSITIVE_INFINITY) {
|
|
69
|
-
return Math.max(0, t - n);
|
|
70
|
-
}
|
|
71
|
-
function m(t) {
|
|
72
|
-
if (t instanceof Date)
|
|
73
|
-
return Number.isNaN(t.getTime()) ? void 0 : { kind: "instant", instant: t };
|
|
74
|
-
if (typeof t != "string") return;
|
|
75
|
-
const n = D(t);
|
|
76
|
-
return n === "instant" ? { kind: n, instant: new Date(t) } : n ? { kind: n, text: t } : void 0;
|
|
77
|
-
}
|
|
78
|
-
function b(t, n) {
|
|
79
|
-
if (n.kind === "bucket")
|
|
80
|
-
return typeof t == "string" && L(t, n.bucket).ok ? t : void 0;
|
|
81
|
-
const e = m(t);
|
|
82
|
-
if (e)
|
|
83
|
-
return e.kind === "instant" ? e.instant.toISOString() : e.text;
|
|
84
|
-
}
|
|
85
|
-
function v(t, n, e, i) {
|
|
86
|
-
const r = e.kind === "temporal" ? m(t) : void 0, s = e.kind === "temporal" ? m(n) : void 0;
|
|
87
|
-
if (i && (r == null ? void 0 : r.kind) === "instant" && (s == null ? void 0 : s.kind) === "instant") {
|
|
88
|
-
const o = g(r.instant, i), l = g(s.instant, i);
|
|
89
|
-
if (o && l && o.time === "00:00:00" && r.instant.getUTCMilliseconds() === 0 && l.time === "23:59:59" && [0, 999].includes(s.instant.getUTCMilliseconds()))
|
|
90
|
-
return { from: o.date, to: l.date, wholeDaysIn: i };
|
|
91
|
-
}
|
|
92
|
-
return { from: u(t, e), to: u(n, e) };
|
|
93
|
-
}
|
|
94
|
-
function g(t, n) {
|
|
95
|
-
try {
|
|
96
|
-
const e = Object.fromEntries(
|
|
97
|
-
new Intl.DateTimeFormat("en-CA", {
|
|
98
|
-
timeZone: n,
|
|
99
|
-
year: "numeric",
|
|
100
|
-
month: "2-digit",
|
|
101
|
-
day: "2-digit",
|
|
102
|
-
hour: "2-digit",
|
|
103
|
-
minute: "2-digit",
|
|
104
|
-
second: "2-digit",
|
|
105
|
-
hourCycle: "h23"
|
|
106
|
-
}).formatToParts(t).map((i) => [i.type, i.value])
|
|
107
|
-
);
|
|
108
|
-
return {
|
|
109
|
-
date: `${e.year}-${e.month}-${e.day}`,
|
|
110
|
-
time: `${e.hour}:${e.minute}:${e.second}`
|
|
111
|
-
};
|
|
112
|
-
} catch {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function E(t, n) {
|
|
117
|
-
const { label: e, definition: i } = w(t), r = n && !p(t).dataAnchored ? `; last resolved here as ${n.from} to ${n.to}${n.wholeDaysIn ? `, whole days in ${n.wholeDaysIn}` : ""}` : "";
|
|
118
|
-
return `${e ? `${JSON.stringify(e)} ` : ""}(relative window: ${i}; resolved again at run time${r})`;
|
|
119
|
-
}
|
|
120
|
-
const R = {
|
|
121
|
-
"=": "=",
|
|
122
|
-
"!=": "!=",
|
|
123
|
-
">": ">",
|
|
124
|
-
">=": ">=",
|
|
125
|
-
"<": "<",
|
|
126
|
-
"<=": "<=",
|
|
127
|
-
in: "in",
|
|
128
|
-
"not in": "not in",
|
|
129
|
-
like: "like",
|
|
130
|
-
"not like": "not like",
|
|
131
|
-
between: "between",
|
|
132
|
-
"not between": "not between",
|
|
133
|
-
"is null": "isNull",
|
|
134
|
-
"is not null": "isNotNull"
|
|
135
|
-
};
|
|
136
|
-
function j(t, n, e = {}) {
|
|
137
|
-
const i = t.valueType === "date";
|
|
138
|
-
return A({
|
|
139
|
-
subject: n,
|
|
140
|
-
operator: R[t.operation],
|
|
141
|
-
values: t.values,
|
|
142
|
-
reading: i ? y : f,
|
|
143
|
-
...i ? { relative: k(t.relativeMeta) } : {}
|
|
144
|
-
}, e);
|
|
145
|
-
}
|
|
146
|
-
export {
|
|
147
|
-
f as P,
|
|
148
|
-
y as T,
|
|
149
|
-
A as a,
|
|
150
|
-
_ as b,
|
|
151
|
-
j as d,
|
|
152
|
-
$ as o
|
|
153
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { S as A } from "./schema-C9NPiIru.js";
|
|
2
|
-
import { r as h, d as u, n as b, A as k } from "./resolver-DG_tfEpt.js";
|
|
3
|
-
const E = [
|
|
4
|
-
{ path: ["tokens", "spacing", "gridGap"], value: { light: 12, dark: 12 } },
|
|
5
|
-
{ path: ["tokens", "spacing", "dashboardPadding"], alias: ["components", "dashboard", "padding"], value: { light: 16, dark: 16 } },
|
|
6
|
-
{ path: ["tokens", "spacing", "cardPadding"], alias: ["components", "card", "padding"], value: { light: 16, dark: 16 } },
|
|
7
|
-
{ path: ["tokens", "radius", "card"], alias: ["components", "card", "borderRadius"], value: { light: 5, dark: 5 } },
|
|
8
|
-
{
|
|
9
|
-
path: ["components", "chart", "palette"],
|
|
10
|
-
value: {
|
|
11
|
-
light: ["#3b82f6", "#10b981", "#f59e0b", "#ef4444", "#8b5cf6", "#06b6d4", "#84cc16", "#f97316"],
|
|
12
|
-
dark: ["#3b82f6", "#10b981", "#f59e0b", "#ef4444", "#8b5cf6", "#06b6d4", "#84cc16", "#f97316"]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
], p = ["pivotTable", "aggregateTable"], S = [
|
|
16
|
-
["tokens", "shadow", "card"],
|
|
17
|
-
["components", "card", "shadow"]
|
|
18
|
-
];
|
|
19
|
-
function N(e) {
|
|
20
|
-
const { schemes: t, changes: r } = v(e), i = {};
|
|
21
|
-
for (const c of ["light", "dark"]) {
|
|
22
|
-
const n = t[c];
|
|
23
|
-
if (!n) continue;
|
|
24
|
-
const o = A.schemes[c], { value: d, removed: s } = g(n, o, []);
|
|
25
|
-
for (const f of s) r.push(`${c}.${f}: equal to the default, removed`);
|
|
26
|
-
d && Object.keys(d).length > 0 && (i[c] = d);
|
|
27
|
-
}
|
|
28
|
-
const a = Object.keys(i).length > 0;
|
|
29
|
-
return !a && e.mode === void 0 ? { spec: null, changes: r } : {
|
|
30
|
-
spec: { version: e.version, ...e.mode !== void 0 ? { mode: e.mode } : {}, ...a ? { schemes: i } : {} },
|
|
31
|
-
changes: r
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function R(e, t) {
|
|
35
|
-
return e ? v(e).schemes[t] : void 0;
|
|
36
|
-
}
|
|
37
|
-
function v(e) {
|
|
38
|
-
var a, c;
|
|
39
|
-
const t = [], r = {}, i = y(e);
|
|
40
|
-
for (const n of ["light", "dark"]) {
|
|
41
|
-
let o = (a = e.schemes) == null ? void 0 : a[n];
|
|
42
|
-
if (!o) continue;
|
|
43
|
-
for (const s of i ? S : [])
|
|
44
|
-
h(o, s) !== void 0 && (o = u(o, s), t.push(`${n}.${s.join(".")}: never rendered, removed`));
|
|
45
|
-
for (const s of i ? E : []) {
|
|
46
|
-
const f = h(o, s.path);
|
|
47
|
-
f === void 0 || !l(f, s.value[n]) || s.alias && h(o, s.alias) !== void 0 || (o = u(o, s.path), t.push(`${n}.${s.path.join(".")}: hidden legacy default removed`));
|
|
48
|
-
}
|
|
49
|
-
const d = (c = b({ version: e.version, schemes: { [n]: o } }).schemes) == null ? void 0 : c[n];
|
|
50
|
-
l(d, o) || t.push(`${n}: component aliases folded onto canonical paths`), o = d;
|
|
51
|
-
for (const s of p)
|
|
52
|
-
h(o, ["components", s]) !== void 0 && (o = u(o, ["components", s]), t.push(`${n}.components.${s}: retired card type removed`));
|
|
53
|
-
r[n] = o;
|
|
54
|
-
}
|
|
55
|
-
return { schemes: r, changes: t };
|
|
56
|
-
}
|
|
57
|
-
function y(e) {
|
|
58
|
-
return ["light", "dark"].some((t) => {
|
|
59
|
-
var i;
|
|
60
|
-
const r = (i = e.schemes) == null ? void 0 : i[t];
|
|
61
|
-
return r ? k.some(({ alias: a }) => h(r, a) !== void 0) || p.some((a) => h(r, ["components", a]) !== void 0) : !1;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function g(e, t, r) {
|
|
65
|
-
const i = [], a = {};
|
|
66
|
-
for (const [c, n] of Object.entries(e)) {
|
|
67
|
-
const o = m(t) ? t[c] : void 0;
|
|
68
|
-
if (m(n) && !Array.isArray(n)) {
|
|
69
|
-
const d = g(n, o, [...r, c]);
|
|
70
|
-
i.push(...d.removed), d.value && (a[c] = d.value);
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
if (o !== void 0 && l(n, o)) {
|
|
74
|
-
i.push([...r, c].join("."));
|
|
75
|
-
continue;
|
|
76
|
-
}
|
|
77
|
-
a[c] = n;
|
|
78
|
-
}
|
|
79
|
-
return { value: Object.keys(a).length > 0 ? a : void 0, removed: i };
|
|
80
|
-
}
|
|
81
|
-
function l(e, t) {
|
|
82
|
-
return JSON.stringify(e) === JSON.stringify(t);
|
|
83
|
-
}
|
|
84
|
-
function m(e) {
|
|
85
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
N as n,
|
|
89
|
-
R as r
|
|
90
|
-
};
|