react-semaphor 0.1.544 → 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.
- package/dist/analytics-protocol/index.js +405 -441
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +100 -76
- package/dist/brand-studio/index.js +5 -5
- package/dist/briefings/index.js +55 -52
- package/dist/chunks/{class-utils-Df1OVOT1.js → _commonjsHelpers-DimLPMtv.js} +124 -98
- package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
- package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
- package/dist/chunks/{assistant-chat-BNLkCDml.js → assistant-chat-BPXhulAx.js} +2792 -2562
- package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-C4vetoa0.js} +7 -8
- package/dist/chunks/column-catalog-BYnochWQ.js +3363 -0
- package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
- package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
- package/dist/chunks/custom-visual-inputs-CkJW9pBS.js +295 -0
- package/dist/chunks/{dashboard-g5a4DKWq.js → dashboard-C3CoKbGY.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-Be4h-7My.js +3734 -0
- package/dist/chunks/dashboard-controls-bxPrlSyp.js +2307 -0
- package/dist/chunks/{dashboard-json-7qT9jmfL.js → dashboard-json-BrjxIiRt.js} +6 -6
- package/dist/chunks/document-dashboard-inputs-CRVHpIHp.js +3010 -0
- package/dist/chunks/{edit-dashboard-visual-BfJwnRIZ.js → edit-dashboard-visual-DYYYDjY6.js} +5986 -6063
- package/dist/chunks/{filter-value-text-CYsVYPuD.js → filter-value-text-Ddf55Ku1.js} +8 -8
- package/dist/chunks/global-date-filter-utils-9d6m9-FE.js +11859 -0
- package/dist/chunks/index-CtoK1Lgu.js +586 -0
- package/dist/chunks/{index-DkAyQvC6.js → index-DkQkMKa1.js} +385 -339
- package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
- package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
- package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
- package/dist/chunks/{matrix-formatter-CxJLkztA.js → matrix-formatter-DWEeC0_c.js} +55 -55
- package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
- package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
- package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
- package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-CLiVi90c.js → raw-temporal-presentation-CBzrDOjM.js} +8 -8
- package/dist/chunks/rendered-file-D8xEuVVx.js +108 -0
- package/dist/chunks/{report-preferences-dialog-Df7VpRVW.js → report-preferences-dialog-4QEZWe5U.js} +637 -610
- package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-UpK_LBpL.js +5677 -0
- package/dist/chunks/{saved-dashboard-context-B-mQ--nV.js → saved-dashboard-context-D_I3Lxk0.js} +184 -212
- package/dist/chunks/selection-filter-compiler-BKXmyLrS.js +79 -0
- package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
- package/dist/chunks/{semaphor-ready-indicator-DDAxk8us.js → semaphor-ready-indicator-4zpRHE-X.js} +56832 -59068
- package/dist/chunks/{shelf-drop-preview-context-BSRPwaED.js → shelf-drop-preview-context-Cfw7TRAx.js} +890 -871
- package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
- package/dist/chunks/{switch-C3jLxlG0.js → switch-CEBOR4n7.js} +47 -48
- package/dist/chunks/{table-export-sheet-CPfGAQ9X.js → table-export-sheet-4X9mAG3V.js} +1 -1
- package/dist/chunks/table-settings-CunhoDUi.js +605 -0
- package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
- package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BxzFviM-.js → use-create-flow-overlay-state-DZBZiiD-.js} +83 -83
- package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1800 -1135
- package/dist/data-app-sdk/index.js +6 -6
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +14 -14
- package/dist/format-utils/index.js +198 -187
- package/dist/index.js +359 -325
- package/dist/layouts/index.js +5 -242
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/shared/index.js +4 -5
- 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/briefings/attachments.d.ts +33 -6
- package/dist/types/briefings/index.d.ts +6 -5
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +0 -14
- package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -0
- package/dist/types/index.js +6 -6
- package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +68 -82
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +0 -8
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +41 -1
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +201 -0
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +7 -2
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +1 -1
- package/dist/types/lib/dashboard-viewer/captured-runtime-values.d.ts +40 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +16 -16
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +11 -9
- package/dist/types/lib/download-pdf.d.ts +75 -1
- package/dist/types/lib/hooks/use-date-filter.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +5 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +5 -4
- package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
- package/dist/types/lib/query-context/assemble-card-query.d.ts +158 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +3 -3
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +15 -6
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +11 -13
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +22 -12
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +69 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +159 -56
- package/dist/types/lib/stores/editor-store.d.ts +0 -3
- package/dist/types/lib/types/common-types.d.ts +29 -6
- package/dist/types/lib/types/explorer-types.d.ts +10 -0
- package/dist/types/lib/types/semantic-types.d.ts +84 -0
- package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
- package/dist/types/lib/utils/card-type-change.d.ts +16 -0
- package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
- package/dist/types/lib/utils/field-placement.d.ts +96 -0
- package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
- package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -12
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +21 -21
- package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
- package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
- package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
- package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +43 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +89 -0
- package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +16 -6
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +118 -0
- package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
- package/dist/types/shared/dashboard-authoring/filter-model/ad-hoc-filter-values.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +29 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/filter-model/prototype-document-inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/filter-model/stored-dashboard.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-model/toolbar-filter-reach.d.ts +23 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +20 -2
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +94 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -0
- package/dist/types/shared/format-utils/exporters/rendered-file.d.ts +106 -0
- package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
- package/dist/types/shared/layouts/engine/index.d.ts +4 -0
- package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
- package/dist/types/shared/layouts/engine/types.d.ts +125 -0
- package/dist/types/shared/layouts/index.d.ts +1 -2
- package/package.json +2 -2
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/chunks/apply-dashboard-operations-Bz4n1Lq6.js +0 -2260
- package/dist/chunks/calendar-day-equality-BmJAWduY.js +0 -460
- package/dist/chunks/comparison-window-caption-BTkrN3W4.js +0 -1623
- package/dist/chunks/custom-visual-inputs-DUtpYZOk.js +0 -323
- package/dist/chunks/dashboard-briefing-launcher-DQ_8O_e2.js +0 -3725
- package/dist/chunks/dashboard-controls-8RyBTQUO.js +0 -2315
- package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
- package/dist/chunks/document-dashboard-inputs-BC6p-ESg.js +0 -8087
- package/dist/chunks/document-sheet-utils-Duo9uLoH.js +0 -3619
- package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
- package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
- package/dist/chunks/numeric-presentation-DESvLiu9.js +0 -5227
- package/dist/chunks/sort-target-MT1WK1vX.js +0 -29
- package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
- package/dist/chunks/table-settings-CLZocegs.js +0 -501
- package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +0 -88
- package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +0 -10
- package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
- package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
- package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
package/dist/layouts/index.js
CHANGED
|
@@ -1,244 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
function v({
|
|
3
|
-
id: n,
|
|
4
|
-
layouts: t,
|
|
5
|
-
initialHeight: i,
|
|
6
|
-
y: e,
|
|
7
|
-
x: o,
|
|
8
|
-
w: a,
|
|
9
|
-
minH: s,
|
|
10
|
-
minW: f
|
|
11
|
-
}) {
|
|
12
|
-
const r = {
|
|
13
|
-
i: n,
|
|
14
|
-
x: o ?? 0,
|
|
15
|
-
y: e ?? 1 / 0,
|
|
16
|
-
w: a || 20,
|
|
17
|
-
h: i || 35,
|
|
18
|
-
minW: f || 6,
|
|
19
|
-
minH: s || 10
|
|
20
|
-
}, c = t ? { ...t } : {};
|
|
21
|
-
return M.forEach((d) => {
|
|
22
|
-
c[d] = [...c[d] ?? []];
|
|
23
|
-
const m = c[d].reduce(
|
|
24
|
-
(y, x) => Math.max(y, x.y + x.h),
|
|
25
|
-
0
|
|
26
|
-
);
|
|
27
|
-
r.y = r.y === 1 / 0 ? m : r.y, c[d].push({ ...r });
|
|
28
|
-
}), c;
|
|
29
|
-
}
|
|
30
|
-
const H = ["lg", "md", "sm", "xs", "xxs"], h = {
|
|
31
|
-
lg: 48,
|
|
32
|
-
md: 36,
|
|
33
|
-
sm: 24,
|
|
34
|
-
xs: 12,
|
|
35
|
-
xxs: 6
|
|
36
|
-
}, u = [...H].sort(
|
|
37
|
-
(n, t) => h[n] - h[t]
|
|
38
|
-
), E = {
|
|
39
|
-
initialHeight: 35,
|
|
40
|
-
minH: 10
|
|
41
|
-
}, O = {
|
|
42
|
-
initialHeight: 8,
|
|
43
|
-
minH: 4
|
|
44
|
-
};
|
|
45
|
-
function L(n) {
|
|
46
|
-
var t, i;
|
|
47
|
-
if (n)
|
|
48
|
-
return ((t = n.cards) == null ? void 0 : t.find((e) => e.id === n.activeCardId)) || ((i = n.cards) == null ? void 0 : i[0]);
|
|
49
|
-
}
|
|
50
|
-
function p(n) {
|
|
51
|
-
var i;
|
|
52
|
-
const t = (i = L(n)) == null ? void 0 : i.type;
|
|
53
|
-
return t === "text" || t === "kpi" ? "compact" : "default";
|
|
54
|
-
}
|
|
55
|
-
function A(n) {
|
|
56
|
-
return p(n) === "compact" ? O : E;
|
|
57
|
-
}
|
|
58
|
-
function T(n, t) {
|
|
59
|
-
return n.x < t.x + t.w && n.x + n.w > t.x;
|
|
60
|
-
}
|
|
61
|
-
function B(n) {
|
|
62
|
-
const t = [...n].sort((e, o) => e.y !== o.y ? e.y - o.y : e.x - o.x), i = [];
|
|
63
|
-
for (const e of t) {
|
|
64
|
-
if (e.static) {
|
|
65
|
-
i.push({ ...e });
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
const o = i.reduce((a, s) => T(e, s) ? Math.max(a, s.y + s.h) : a, 0);
|
|
69
|
-
i.push({
|
|
70
|
-
...e,
|
|
71
|
-
y: o
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return i;
|
|
75
|
-
}
|
|
76
|
-
function g({
|
|
77
|
-
layouts: n,
|
|
78
|
-
previousFrame: t,
|
|
79
|
-
nextFrame: i
|
|
80
|
-
}) {
|
|
81
|
-
if (!n || p(t) === p(i))
|
|
82
|
-
return n;
|
|
83
|
-
const e = A(i);
|
|
84
|
-
let o = !1;
|
|
85
|
-
const a = {};
|
|
86
|
-
return Object.keys(n).forEach((s) => {
|
|
87
|
-
const f = n[s];
|
|
88
|
-
if (!f)
|
|
89
|
-
return;
|
|
90
|
-
let r = !1;
|
|
91
|
-
const c = f.map((d) => d.i !== i.id || d.h === e.initialHeight && d.minH === e.minH ? d : (o = !0, r = !0, {
|
|
92
|
-
...d,
|
|
93
|
-
h: e.initialHeight,
|
|
94
|
-
minH: e.minH
|
|
95
|
-
}));
|
|
96
|
-
a[s] = r ? B(c) : c;
|
|
97
|
-
}), o ? a : n;
|
|
98
|
-
}
|
|
99
|
-
function F(n, t) {
|
|
100
|
-
const i = Math.max(1, Math.min(n.w, t)), e = n.minW == null ? void 0 : Math.max(1, Math.min(n.minW, i)), o = n.maxW == null ? void 0 : Math.max(i, Math.min(n.maxW, t));
|
|
101
|
-
return {
|
|
102
|
-
...n,
|
|
103
|
-
x: Math.max(0, Math.min(n.x, t - i)),
|
|
104
|
-
y: Math.max(0, n.y),
|
|
105
|
-
w: i,
|
|
106
|
-
...e == null ? {} : { minW: e },
|
|
107
|
-
...o == null ? {} : { maxW: o }
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function S(n, t) {
|
|
111
|
-
return n.x < t.x + t.w && n.x + n.w > t.x && n.y < t.y + t.h && n.y + n.h > t.y;
|
|
112
|
-
}
|
|
113
|
-
function w(n, t) {
|
|
114
|
-
return !t.some(
|
|
115
|
-
(i) => S(n, i)
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
function k(n, t, i) {
|
|
119
|
-
const e = n.x + n.w;
|
|
120
|
-
if (e + n.w <= i) {
|
|
121
|
-
const r = { ...n, x: e, y: n.y };
|
|
122
|
-
if (w(r, t))
|
|
123
|
-
return { x: e, y: n.y };
|
|
124
|
-
}
|
|
125
|
-
const o = Math.max(i - n.w, 0), a = n.y + n.h, s = t.map((r) => r.y + r.h).filter((r) => r > a).sort((r, c) => r - c), f = [a, ...s];
|
|
126
|
-
for (const r of f)
|
|
127
|
-
for (let c = 0; c <= o; c += 1) {
|
|
128
|
-
const d = {
|
|
129
|
-
...n,
|
|
130
|
-
x: c,
|
|
131
|
-
y: r
|
|
132
|
-
};
|
|
133
|
-
if (w(d, t))
|
|
134
|
-
return {
|
|
135
|
-
x: c,
|
|
136
|
-
y: r
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
return {
|
|
140
|
-
x: 0,
|
|
141
|
-
y: a
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
function l(n, t, i) {
|
|
145
|
-
var a, s, f;
|
|
146
|
-
const e = (a = n[i]) == null ? void 0 : a.find((r) => r.i === t);
|
|
147
|
-
if (e)
|
|
148
|
-
return e;
|
|
149
|
-
const o = u.indexOf(i);
|
|
150
|
-
if (o !== -1) {
|
|
151
|
-
for (let r = o + 1; r < u.length; r += 1) {
|
|
152
|
-
const c = u[r], d = (s = n[c]) == null ? void 0 : s.find(
|
|
153
|
-
(m) => m.i === t
|
|
154
|
-
);
|
|
155
|
-
if (d)
|
|
156
|
-
return d;
|
|
157
|
-
}
|
|
158
|
-
for (let r = o - 1; r >= 0; r -= 1) {
|
|
159
|
-
const c = u[r], d = (f = n[c]) == null ? void 0 : f.find(
|
|
160
|
-
(m) => m.i === t
|
|
161
|
-
);
|
|
162
|
-
if (d)
|
|
163
|
-
return d;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
function _({
|
|
168
|
-
id: n,
|
|
169
|
-
layouts: t,
|
|
170
|
-
initialHeight: i,
|
|
171
|
-
y: e,
|
|
172
|
-
x: o,
|
|
173
|
-
w: a,
|
|
174
|
-
minH: s,
|
|
175
|
-
frame: f
|
|
176
|
-
}) {
|
|
177
|
-
const r = A(f);
|
|
178
|
-
return v({
|
|
179
|
-
id: n,
|
|
180
|
-
layouts: t,
|
|
181
|
-
initialHeight: i ?? r.initialHeight,
|
|
182
|
-
y: e,
|
|
183
|
-
x: o,
|
|
184
|
-
w: a,
|
|
185
|
-
minH: s ?? r.minH
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
function C(n, t) {
|
|
189
|
-
if (!t)
|
|
190
|
-
return;
|
|
191
|
-
const i = { ...t };
|
|
192
|
-
return H.forEach((e) => {
|
|
193
|
-
i[e] && (i[e] = i[e].filter((o) => o.i !== n));
|
|
194
|
-
}), i;
|
|
195
|
-
}
|
|
196
|
-
function I({
|
|
197
|
-
sourceId: n,
|
|
198
|
-
duplicatedId: t,
|
|
199
|
-
layouts: i
|
|
200
|
-
}) {
|
|
201
|
-
if (!i || !u.some(
|
|
202
|
-
(a) => {
|
|
203
|
-
var s;
|
|
204
|
-
return (s = i[a]) == null ? void 0 : s.some((f) => f.i === n);
|
|
205
|
-
}
|
|
206
|
-
))
|
|
207
|
-
return;
|
|
208
|
-
const o = { ...i };
|
|
209
|
-
return Object.keys(o).forEach((a) => {
|
|
210
|
-
const s = o[a];
|
|
211
|
-
if (!s)
|
|
212
|
-
return;
|
|
213
|
-
const f = [...s], r = l(
|
|
214
|
-
i,
|
|
215
|
-
n,
|
|
216
|
-
a
|
|
217
|
-
);
|
|
218
|
-
if (!r)
|
|
219
|
-
return;
|
|
220
|
-
const c = F(
|
|
221
|
-
r,
|
|
222
|
-
h[a]
|
|
223
|
-
), d = f.filter(
|
|
224
|
-
(x) => x.i !== n && x.i !== t
|
|
225
|
-
), { x: m, y } = k(
|
|
226
|
-
c,
|
|
227
|
-
d,
|
|
228
|
-
h[a]
|
|
229
|
-
);
|
|
230
|
-
f.push({
|
|
231
|
-
...c,
|
|
232
|
-
i: t,
|
|
233
|
-
x: m,
|
|
234
|
-
y
|
|
235
|
-
}), o[a] = f;
|
|
236
|
-
}), o;
|
|
237
|
-
}
|
|
1
|
+
import { D as t, a as s, b as o, r } from "../chunks/index-CtoK1Lgu.js";
|
|
238
2
|
export {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
g as resizeFrameLayoutsForFrameTypeChange
|
|
3
|
+
t as DASHBOARD_GRID,
|
|
4
|
+
s as applySheetLayoutChange,
|
|
5
|
+
o as assertSheetLayouts,
|
|
6
|
+
r as readSheetLayout
|
|
244
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as r } from "../chunks/analytics-base-schemas-
|
|
2
|
-
import { D as n, p as o, a as p, b as t } from "../chunks/report-runtime-context-
|
|
1
|
+
import { i as r } from "../chunks/analytics-base-schemas-BKs3flFS.js";
|
|
2
|
+
import { D as n, p as o, a as p, b as t } from "../chunks/report-runtime-context-hWiTCzFV.js";
|
|
3
3
|
export {
|
|
4
4
|
n as DEFAULT_CALENDAR_CONTEXT,
|
|
5
5
|
r as isValidIanaTimeZone,
|
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as s, s as i } from "../chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
1
|
+
import { n as a, s as o, u as s } from "../chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
3
2
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
a as normalizeDashboardForDirtyCheck,
|
|
4
|
+
o as serializeDashboardForDirtyCheck,
|
|
5
|
+
s as useDebouncedDirtyCheck
|
|
7
6
|
};
|