react-semaphor 0.1.545 → 0.1.546

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.
Files changed (141) hide show
  1. package/dist/analytics-protocol/index.js +405 -442
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +100 -76
  4. package/dist/brand-studio/index.js +4 -4
  5. package/dist/briefings/index.js +6 -6
  6. package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
  7. package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
  8. package/dist/chunks/{assistant-chat-D7sWTypJ.js → assistant-chat-BPXhulAx.js} +2826 -2595
  9. package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-C4vetoa0.js} +7 -8
  10. package/dist/chunks/column-catalog-BYnochWQ.js +3363 -0
  11. package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
  12. package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
  13. package/dist/chunks/custom-visual-inputs-CkJW9pBS.js +295 -0
  14. package/dist/chunks/{dashboard-B1tMju0u.js → dashboard-C3CoKbGY.js} +1 -1
  15. package/dist/chunks/dashboard-briefing-launcher-Be4h-7My.js +3734 -0
  16. package/dist/chunks/dashboard-controls-bxPrlSyp.js +2307 -0
  17. package/dist/chunks/{dashboard-json-CoYRPqxx.js → dashboard-json-BrjxIiRt.js} +5 -5
  18. package/dist/chunks/{document-dashboard-inputs-BesAHZvB.js → document-dashboard-inputs-CRVHpIHp.js} +872 -974
  19. package/dist/chunks/{edit-dashboard-visual-JPtNfJRb.js → edit-dashboard-visual-DYYYDjY6.js} +2361 -2447
  20. package/dist/chunks/{filter-value-text-ff7osJr7.js → filter-value-text-Ddf55Ku1.js} +9 -9
  21. package/dist/chunks/global-date-filter-utils-9d6m9-FE.js +11859 -0
  22. package/dist/chunks/index-CtoK1Lgu.js +586 -0
  23. package/dist/chunks/{index-DRWiuqyd.js → index-DkQkMKa1.js} +80 -79
  24. package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
  25. package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
  26. package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
  27. package/dist/chunks/{matrix-formatter-DnCyRXJE.js → matrix-formatter-DWEeC0_c.js} +44 -44
  28. package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
  30. package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
  31. package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
  32. package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
  33. package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
  34. package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
  35. package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
  36. package/dist/chunks/{raw-temporal-presentation-C3mUgnEx.js → raw-temporal-presentation-CBzrDOjM.js} +8 -8
  37. package/dist/chunks/{report-preferences-dialog-DUtuUL_5.js → report-preferences-dialog-4QEZWe5U.js} +111 -112
  38. package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
  39. package/dist/chunks/resolve-dashboard-input-context-UpK_LBpL.js +5677 -0
  40. package/dist/chunks/{saved-dashboard-context-LrF_kW0l.js → saved-dashboard-context-D_I3Lxk0.js} +34 -34
  41. package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
  42. package/dist/chunks/{semaphor-ready-indicator-BxF96Yhv.js → semaphor-ready-indicator-4zpRHE-X.js} +45823 -47304
  43. package/dist/chunks/{shelf-drop-preview-context-CNaM_Gmh.js → shelf-drop-preview-context-Cfw7TRAx.js} +84 -84
  44. package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
  45. package/dist/chunks/{switch-uDtPgQlQ.js → switch-CEBOR4n7.js} +3 -3
  46. package/dist/chunks/{table-export-sheet-YzMioA7Y.js → table-export-sheet-4X9mAG3V.js} +1 -1
  47. package/dist/chunks/table-settings-CunhoDUi.js +605 -0
  48. package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
  49. package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
  50. package/dist/chunks/{use-create-flow-overlay-state-CjB7ig1o.js → use-create-flow-overlay-state-DZBZiiD-.js} +101 -101
  51. package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
  52. package/dist/chunks/{relative-date-label-Bk2j94pA.js → zoned-wall-clock-MulfA26h.js} +64 -21
  53. package/dist/dashboard/index.js +2 -2
  54. package/dist/dashboard-authoring/index.js +1802 -1149
  55. package/dist/data-app-sdk/index.js +6 -6
  56. package/dist/data-app-sdk-adapters/index.js +3 -3
  57. package/dist/data-app-sdk-validation/index.js +14 -14
  58. package/dist/format-utils/index.js +133 -133
  59. package/dist/index.js +192 -186
  60. package/dist/layouts/index.js +5 -242
  61. package/dist/report-runtime-context/index.js +2 -2
  62. package/dist/shared/index.js +4 -5
  63. package/dist/style.css +1 -1
  64. package/dist/surfboard/index.js +2 -2
  65. package/dist/types/components/index.d.ts +2 -0
  66. package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
  67. package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -0
  68. package/dist/types/index.js +6 -6
  69. package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
  70. package/dist/types/lib/charts/types.d.ts +2 -2
  71. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +6 -0
  72. package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +2 -0
  73. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
  74. package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
  75. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +69 -0
  76. package/dist/types/lib/stores/dashboard-store.d.ts +125 -6
  77. package/dist/types/lib/types/common-types.d.ts +8 -0
  78. package/dist/types/lib/types/explorer-types.d.ts +10 -0
  79. package/dist/types/lib/types/semantic-types.d.ts +84 -0
  80. package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
  81. package/dist/types/lib/utils/card-type-change.d.ts +16 -0
  82. package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
  83. package/dist/types/lib/utils/field-placement.d.ts +96 -0
  84. package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
  85. package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
  86. package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
  87. package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
  88. package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
  89. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
  90. package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
  91. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -1
  92. package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
  93. package/dist/types/shared/assistant-protocol/context.d.ts +21 -21
  94. package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
  95. package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
  96. package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
  97. package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
  98. package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
  99. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
  100. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
  101. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
  102. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +43 -0
  103. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
  104. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +89 -0
  105. package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
  106. package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
  107. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +24 -14
  108. package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
  109. package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +26 -0
  110. package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
  111. package/dist/types/shared/dashboard-authoring/index.d.ts +18 -2
  112. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
  113. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
  114. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +94 -0
  115. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +78 -0
  116. package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
  117. package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
  118. package/dist/types/shared/layouts/engine/index.d.ts +4 -0
  119. package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
  120. package/dist/types/shared/layouts/engine/types.d.ts +125 -0
  121. package/dist/types/shared/layouts/index.d.ts +1 -2
  122. package/package.json +2 -2
  123. package/dist/chunks/apply-dashboard-operations-CZEMsx8E.js +0 -2080
  124. package/dist/chunks/calendar-day-equality-dvoQp1xW.js +0 -410
  125. package/dist/chunks/comparison-window-caption-D4E6IHPD.js +0 -1624
  126. package/dist/chunks/custom-visual-inputs-DLCD9Y5V.js +0 -329
  127. package/dist/chunks/dashboard-briefing-launcher-CePgIu0Z.js +0 -3720
  128. package/dist/chunks/dashboard-controls-Cq05n3e0.js +0 -2315
  129. package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
  130. package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
  131. package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
  132. package/dist/chunks/numeric-presentation-7X_IrD58.js +0 -5226
  133. package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +0 -9415
  134. package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
  135. package/dist/chunks/table-settings-CLZocegs.js +0 -501
  136. package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
  137. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
  138. package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
  139. package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
  140. package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
  141. package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
@@ -1,108 +0,0 @@
1
- import { l as r } from "./validators-DMHTpf7a.js";
2
- import "./matrix-operation-contract-8OIO4gob.js";
3
- import "./analytics-base-schemas-BFAoRlkU.js";
4
- import "zod";
5
- const s = {
6
- date: /* @__PURE__ */ new Set([
7
- "between",
8
- "not between",
9
- "=",
10
- "!=",
11
- ">",
12
- ">=",
13
- "<",
14
- "<=",
15
- "is null",
16
- "is not null"
17
- ]),
18
- number: /* @__PURE__ */ new Set([
19
- "between",
20
- "not between",
21
- "=",
22
- "!=",
23
- ">",
24
- ">=",
25
- "<",
26
- "<=",
27
- "in",
28
- "not in",
29
- "is null",
30
- "is not null"
31
- ]),
32
- string: /* @__PURE__ */ new Set([
33
- "=",
34
- "!=",
35
- "in",
36
- "not in",
37
- "like",
38
- "not like",
39
- "is null",
40
- "is not null"
41
- ]),
42
- boolean: /* @__PURE__ */ new Set(["=", "!=", "in", "not in", "is null", "is not null"])
43
- };
44
- function u(n) {
45
- const t = r(n);
46
- return t === "number" || t === "boolean" ? t : t === "date" || t === "datetime" ? "date" : "string";
47
- }
48
- function h(n, t) {
49
- return typeof t != "string" ? !1 : s[u(n)].has(t);
50
- }
51
- const w = /* @__PURE__ */ new Set([
52
- "=",
53
- ">",
54
- "<",
55
- ">=",
56
- "<=",
57
- "!=",
58
- "in",
59
- "not in",
60
- "like",
61
- "not like",
62
- "between",
63
- "not between",
64
- "is null",
65
- "is not null"
66
- ]);
67
- function a(n, t) {
68
- return t === "number" ? typeof n == "number" && Number.isFinite(n) : t === "boolean" ? typeof n == "boolean" : t === "date" ? n instanceof Date || typeof n == "string" && n.trim().length > 0 : typeof n == "string" || typeof n == "number" || typeof n == "boolean";
69
- }
70
- function c(n, t, o, e, i) {
71
- if (n === "is null" || n === "is not null") {
72
- t.length !== 0 && i.push(`${e} must be empty for null filter operations.`);
73
- return;
74
- }
75
- if (n === "between" || n === "not between") {
76
- if (t.length !== 2) {
77
- i.push(
78
- `${e} must contain exactly two values for between operations.`
79
- );
80
- return;
81
- }
82
- } else if (n === "in" || n === "not in") {
83
- if (t.length === 0) {
84
- i.push(
85
- `${e} must contain at least one value for set operations.`
86
- );
87
- return;
88
- }
89
- } else if (t.length !== 1) {
90
- i.push(
91
- `${e} must contain exactly one value for '${String(n)}' operations.`
92
- );
93
- return;
94
- }
95
- for (const l of t)
96
- if (!a(l, o)) {
97
- i.push(
98
- `${e} contains a value that is incompatible with valueType '${o}'.`
99
- );
100
- return;
101
- }
102
- }
103
- export {
104
- w as D,
105
- u as d,
106
- h as i,
107
- c as v
108
- };
@@ -1,117 +0,0 @@
1
- import { o as f, q as b } from "./validators-DMHTpf7a.js";
2
- function m(t) {
3
- const { label: i, ...n } = t;
4
- return {
5
- dataset: b(n),
6
- ...t.kind === "physical" ? { dialect: t.dialect, connectionType: t.connectionType } : {}
7
- };
8
- }
9
- function p(t) {
10
- const { label: i, source: n, ...e } = t;
11
- return { ...e, source: n && m(n) };
12
- }
13
- function c(t) {
14
- const {
15
- label: i,
16
- format: n,
17
- description: e,
18
- tags: a,
19
- inputs: r,
20
- ...l
21
- } = t;
22
- return {
23
- ...l,
24
- inputs: Object.fromEntries(
25
- Object.entries(r).map(([s, u]) => [
26
- s,
27
- { ...u, field: p(u.field) }
28
- ])
29
- )
30
- };
31
- }
32
- function d(t) {
33
- const { derivedField: i, ...n } = t;
34
- return {
35
- ...p(n),
36
- derivedField: i && c(i)
37
- };
38
- }
39
- function o(t) {
40
- const {
41
- label: i,
42
- format: n,
43
- description: e,
44
- semanticTemporalPresentation: a,
45
- derivedField: r,
46
- calculatedFormula: l,
47
- ...s
48
- } = t;
49
- return {
50
- ...s,
51
- semanticTemporalPresentation: a && {
52
- granularity: a.granularity
53
- },
54
- derivedField: r && c(r),
55
- calculatedFormula: l && {
56
- ...l,
57
- inputFields: l.inputFields.map(o)
58
- }
59
- };
60
- }
61
- function y(t) {
62
- return {
63
- ...t,
64
- conditions: t.conditions.map(
65
- ({ label: i, field: n, ...e }) => ({
66
- ...e,
67
- field: o(n)
68
- })
69
- ),
70
- groups: t.groups.map(y)
71
- };
72
- }
73
- function F(t) {
74
- return {
75
- ...t,
76
- source: m(t.source),
77
- rows: t.rows.map((i) => ({
78
- ...i,
79
- field: d(i.field)
80
- })),
81
- columns: t.columns.map((i) => ({
82
- ...i,
83
- field: d(i.field)
84
- })),
85
- measures: t.measures.map(
86
- (i) => i.kind === "aggregate" ? { ...i, field: d(i.field) } : {
87
- ...i,
88
- definition: c(i.definition)
89
- }
90
- ),
91
- filters: t.filters && y(t.filters),
92
- joinPlan: t.joinPlan && {
93
- ...t.joinPlan,
94
- // relationshipName participates in governed relationship resolution.
95
- joins: t.joinPlan.joins.map((i) => ({
96
- ...i,
97
- joinKeyGroups: i.joinKeyGroups.map((n) => ({
98
- ...n,
99
- keys: n.keys.map((e) => ({
100
- ...e,
101
- source: o(e.source),
102
- target: o(e.target)
103
- }))
104
- }))
105
- }))
106
- },
107
- // Sort scopes are keyed overrides, unlike ordered axes/calculation inputs.
108
- sorts: [...t.sorts].sort((i, n) => {
109
- const e = f(i), a = f(n);
110
- return e < a ? -1 : e > a ? 1 : 0;
111
- })
112
- };
113
- }
114
- export {
115
- c as a,
116
- F as g
117
- };
@@ -1,67 +0,0 @@
1
- import { s } from "./stable-serialize-CfqXeiBP.js";
2
- const a = [
3
- "i",
4
- "x",
5
- "y",
6
- "w",
7
- "h",
8
- "minW",
9
- "minH",
10
- "maxW",
11
- "maxH",
12
- "static",
13
- "isResizable",
14
- "isDraggable"
15
- ];
16
- function f(n, t, r) {
17
- n[t] = r;
18
- }
19
- function c(n) {
20
- const t = {};
21
- for (const r of a) {
22
- const i = n[r];
23
- i !== void 0 && ((r === "isResizable" || r === "isDraggable") && i === !0 || f(t, r, i));
24
- }
25
- return t;
26
- }
27
- function o(n) {
28
- return n ? n.map(c).sort((t, r) => {
29
- const i = String(t.i ?? ""), e = String(r.i ?? "");
30
- return i !== e ? i.localeCompare(e) : Number(t.y ?? 0) - Number(r.y ?? 0) || Number(t.x ?? 0) - Number(r.x ?? 0) || Number(t.h ?? 0) - Number(r.h ?? 0) || Number(t.w ?? 0) - Number(r.w ?? 0);
31
- }) : [];
32
- }
33
- function u(n) {
34
- if (!n) return;
35
- const t = {};
36
- for (const r of Object.keys(n).sort()) {
37
- const i = n[r];
38
- i && (t[r] = o(i));
39
- }
40
- return t;
41
- }
42
- function m(n) {
43
- var t;
44
- return n ? {
45
- ...n,
46
- sheets: (t = n.sheets) == null ? void 0 : t.map((r) => {
47
- if (!r) return r;
48
- const i = {
49
- ...r
50
- };
51
- return r.layout && (i.layout = o(r.layout)), r.layouts && (i.layouts = u(r.layouts)), i;
52
- })
53
- } : null;
54
- }
55
- function l(n) {
56
- return JSON.stringify(n ?? null, function(t, r) {
57
- return t === "layout" && Array.isArray(r) ? o(r) : t === "layouts" && r && typeof r == "object" && !Array.isArray(r) ? u(r) : !r || typeof r != "object" || Array.isArray(r) ? r : Object.keys(r).sort().reduce((i, e) => (i[e] = r[e], i), {});
58
- });
59
- }
60
- function b(n) {
61
- return s(u(n) ?? null);
62
- }
63
- export {
64
- b as a,
65
- m as n,
66
- l as s
67
- };