react-semaphor 0.1.536 → 0.1.538
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 +352 -341
- package/dist/assistant-context/index.js +10 -0
- package/dist/assistant-protocol/index.js +104 -0
- package/dist/brand-studio/index.js +35 -31
- package/dist/briefings/index.js +46 -45
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/chunks/add-to-dashboard-CxtTfISD.js +56 -0
- package/dist/chunks/aggregate-table-row-presentation-Qgpv6_G8.js +979 -0
- package/dist/chunks/analytics-base-schemas-BFAoRlkU.js +472 -0
- package/dist/chunks/apply-dashboard-operations-C-iahGka.js +402 -0
- package/dist/chunks/assistant-chat-BAqUIFp5.js +7966 -0
- package/dist/chunks/availability-Bp5Gfu1I.js +44 -0
- package/dist/chunks/{bookmark-state-B-I9BDD0.js → bookmark-state-k7y5SNGf.js} +9 -9
- package/dist/chunks/{braces-8TRlDwDw.js → braces-o9UiRQes.js} +1 -1
- package/dist/chunks/calculated-field-identity-DcBS2NPP.js +2161 -0
- package/dist/chunks/calendar-day-equality-Bpl15IBo.js +487 -0
- package/dist/chunks/class-utils-Df1OVOT1.js +2315 -0
- package/dist/chunks/{field-dependencies-CpRUwr9J.js → common-types-CUf03Htv.js} +65 -58
- package/dist/chunks/context-HD9usB1P.js +349 -0
- package/dist/chunks/conversation-sQiWYUOb.js +16 -0
- package/dist/chunks/csv-utils-GUfKyT1J.js +56 -0
- package/dist/chunks/custom-visual-inputs-BrUOIwln.js +3288 -0
- package/dist/chunks/{dashboard-BTDY_I5L.js → dashboard-DTDDFQsS.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DV_rlhT2.js → dashboard-briefing-launcher-Bb2QUqOa.js} +764 -740
- package/dist/chunks/{dashboard-controls-B4LxN5dr.js → dashboard-controls-FpONU8QV.js} +683 -686
- package/dist/chunks/{common-types-g7yS12Cg.js → dashboard-filter-value-compatibility-D95O4nd7.js} +18 -24
- package/dist/chunks/dashboard-json-DazPhBU_.js +69 -0
- package/dist/chunks/document-dashboard-inputs-D96rlU7S.js +10678 -0
- package/dist/chunks/document-sheet-utils-C1eEldxs.js +1076 -0
- package/dist/chunks/{edit-dashboard-visual-L5zsle6X.js → edit-dashboard-visual-CIhZodVH.js} +4744 -4746
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +15 -0
- package/dist/chunks/filter-value-text-BhWugPWE.js +163 -0
- package/dist/chunks/index-CqMiAkay.js +3164 -0
- package/dist/chunks/index-CuHybtft.js +51 -0
- package/dist/chunks/layout-grid-Bgzth8vd.js +16 -0
- package/dist/chunks/{matrix-analytical-definition-CgBTD6H8.js → matrix-analytical-definition-bcprSe4u.js} +1 -1
- package/dist/chunks/{matrix-card-CAdizkUl.js → matrix-card-CJn1hB5V.js} +13 -12
- package/dist/chunks/matrix-definition-DQDI2okF.js +206 -0
- package/dist/chunks/{matrix-formatter-DJCk8Znf.js → matrix-formatter-Bgw32tb3.js} +648 -457
- package/dist/chunks/matrix-member-presentation-BNPSDKBG.js +105 -0
- package/dist/chunks/{matrix-operation-contract-BKupLHXL.js → matrix-operation-contract-B8PBF1Gd.js} +134 -133
- package/dist/chunks/{metric-comparison-BKHyvnAy.js → metric-comparison-CojWeLqx.js} +1 -1
- package/dist/chunks/{palette-Cp1hqZtm.js → palette-D10o_yYX.js} +1 -1
- package/dist/chunks/pivot-header-presentation-MkcKnjn3.js +42 -0
- package/dist/chunks/{pivot-result-identity-Bs4tLtLo.js → pivot-result-identity-D6hhcRXi.js} +1 -1
- package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +804 -0
- package/dist/chunks/raw-temporal-D61lr48Y.js +1464 -0
- package/dist/chunks/{raw-temporal-contract-mLFS-9wk.js → raw-temporal-contract-C51YG48G.js} +1 -1
- package/dist/chunks/report-preferences-dialog-BCGs4-AE.js +1808 -0
- package/dist/chunks/{report-runtime-context-CG_I0PPW.js → report-runtime-context-B984Nq1E.js} +8 -7
- package/dist/chunks/save-CfJpQQ68.js +21 -0
- package/dist/chunks/saved-dashboard-context-BrTkjcod.js +566 -0
- package/dist/chunks/{selection-reducer-CiDEtmAq.js → selection-reducer-vKIb_jS6.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-3TXTZgw-.js → semaphor-ready-indicator-CHHoWhil.js} +65657 -62814
- package/dist/chunks/{shelf-drop-preview-context-CBCs9rjz.js → shelf-drop-preview-context-EsayECEC.js} +199 -196
- package/dist/chunks/{source-entity-resolution-C-oNyYMp.js → source-entity-resolution-CVA1a85c.js} +8 -8
- package/dist/chunks/switch-CvItuC1Q.js +8199 -0
- package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-D8JF7zKz.js} +86 -71
- package/dist/chunks/{temporal-bucket-contract-D2OuaVZ7.js → temporal-bucket-contract-DaOajRC7.js} +1 -1
- package/dist/chunks/{token-types-DtSJOUjh.js → token-types-bxUxXDX2.js} +1 -1
- package/dist/chunks/{upload-CAIpsti1.js → upload-BFX7apKV.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Bk-SBnaY.js → use-create-flow-overlay-state-BqA92GkX.js} +331 -339
- package/dist/chunks/{validators-DMSH81OM.js → validators-Ej1DdCXa.js} +1050 -1510
- package/dist/chunks/visual-choice-JiJ-_3bi.js +204 -0
- package/dist/chunks/x-4f5U2XwU.js +100 -0
- package/dist/chunks/{zoned-wall-clock-1qlWCE20.js → zoned-wall-clock-MulfA26h.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +823 -661
- package/dist/data-app-sdk/index.js +32 -30
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +23 -22
- package/dist/format-utils/index.js +173 -168
- package/dist/index.js +267 -258
- package/dist/layouts/index.js +236 -24
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/assistant-context.d.ts +2 -0
- package/dist/types/assistant-protocol.d.ts +2 -0
- package/dist/types/components/assistant/assistant-entry-points.d.ts +18 -0
- package/dist/types/components/assistant/assistant-provider.d.ts +19 -0
- package/dist/types/components/assistant/assistant-store.d.ts +52 -0
- package/dist/types/components/assistant/use-assistant.d.ts +38 -0
- package/dist/types/components/index.d.ts +5 -1
- package/dist/types/components/surfboard/filter/types.d.ts +5 -2
- package/dist/types/index.js +50 -51
- package/dist/types/lib/api/invalidate-token.d.ts +7 -0
- package/dist/types/lib/charts/cartesian-fields.d.ts +64 -0
- package/dist/types/lib/charts/types.d.ts +7 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +14 -2
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +5 -6
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +8 -3
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +11 -6
- package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +7 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +79 -0
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +3 -2
- package/dist/types/lib/document/document-table-data-policy.d.ts +15 -0
- package/dist/types/lib/filter-values/filter-mode.d.ts +22 -0
- package/dist/types/lib/hooks/use-calendar-context.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +7 -0
- package/dist/types/lib/print/print-inputs.d.ts +4 -2
- package/dist/types/lib/query-context/build-card-query-context.d.ts +12 -4
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +93 -0
- package/dist/types/lib/query-context/card-server-request.d.ts +72 -0
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
- package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +56 -0
- package/dist/types/lib/query-context/document-section-card-query.d.ts +45 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +17 -2
- package/dist/types/lib/stores/dashboard-store.d.ts +34 -11
- package/dist/types/lib/stores/editor-store.d.ts +4 -2
- package/dist/types/lib/types/token-types.d.ts +11 -0
- package/dist/types/lib/utils/card-type-change.d.ts +30 -0
- package/dist/types/lib/utils/comparison-window-caption.d.ts +12 -0
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +13 -2
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +74 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +5 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +43 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/visual-choice.d.ts +75 -0
- package/dist/types/shared/assistant-context/index.d.ts +9 -0
- package/dist/types/shared/assistant-context/project-context.d.ts +55 -0
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +130 -0
- package/dist/types/shared/assistant-protocol/add-to-dashboard.d.ts +17 -0
- package/dist/types/shared/assistant-protocol/artifact.d.ts +63 -0
- package/dist/types/shared/assistant-protocol/availability.d.ts +39 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +952 -0
- package/dist/types/shared/assistant-protocol/conversation.d.ts +38 -0
- package/dist/types/shared/assistant-protocol/index.d.ts +16 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +53 -0
- package/dist/types/shared/assistant-protocol/parts.d.ts +131 -0
- package/dist/types/shared/assistant-protocol/request.d.ts +77 -0
- package/dist/types/shared/assistant-protocol/sources.d.ts +27 -0
- package/dist/types/shared/assistant-protocol/token-config.d.ts +32 -0
- package/dist/types/shared/assistant-protocol/transcript.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +112 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +1794 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/resolved-primary-date-field-validation.d.ts +16 -0
- package/dist/types/shared/format-utils/filter-detail.d.ts +70 -0
- package/dist/types/shared/format-utils/filter-value-text.d.ts +15 -0
- package/dist/types/shared/format-utils/index.d.ts +3 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +7 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +7 -0
- package/dist/types/shared/layouts/frame-layouts.d.ts +23 -0
- package/dist/types/shared/layouts/index.d.ts +1 -0
- package/package.json +12 -2
- package/dist/chunks/calculated-field-identity-BptYhyOP.js +0 -1326
- package/dist/chunks/calendar-day-equality-BRjN1S9h.js +0 -383
- package/dist/chunks/card-config-utils-BOM1dxCk.js +0 -1150
- package/dist/chunks/constants-DNWVy8Y3.js +0 -9
- package/dist/chunks/dashboard-json-Ccjo0Dzw.js +0 -65
- package/dist/chunks/field-aggregations-CoLzYHeL.js +0 -1229
- package/dist/chunks/index-DTcTAGGM.js +0 -4101
- package/dist/chunks/matrix-continuation-C4sRcjZU.js +0 -72
- package/dist/chunks/matrix-control-sources-DTqcA2_L.js +0 -636
- package/dist/chunks/matrix-definition-D9iShKZI.js +0 -87
- package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +0 -209
- package/dist/chunks/numeric-presentation-CWu3gunq.js +0 -537
- package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +0 -753
- package/dist/chunks/pivot-result-lifecycle-DQz_gjGu.js +0 -789
- package/dist/chunks/raw-temporal-iMXRK-Qz.js +0 -930
- package/dist/chunks/report-preferences-dialog-CW8VEIDx.js +0 -1623
- package/dist/chunks/save-kO6cIaob.js +0 -34
- package/dist/chunks/semantic-format-DiqYeKwU.js +0 -192
- package/dist/chunks/switch-CKB-kUaC.js +0 -25003
- package/dist/chunks/temporal-input-presentation-BD7YNUzu.js +0 -195
- package/dist/chunks/x-CXDkqdur.js +0 -149
- package/dist/types/lib/class-utils.d.ts +0 -2
- package/dist/types/lib/document/document-input-runtime.d.ts +0 -26
- package/dist/types/lib/utils.d.ts +0 -51
package/dist/layouts/index.js
CHANGED
|
@@ -1,32 +1,244 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
id:
|
|
4
|
-
layouts:
|
|
5
|
-
initialHeight:
|
|
6
|
-
y:
|
|
1
|
+
const M = ["lg", "md", "sm", "xs", "xxs"];
|
|
2
|
+
function v({
|
|
3
|
+
id: n,
|
|
4
|
+
layouts: t,
|
|
5
|
+
initialHeight: i,
|
|
6
|
+
y: e,
|
|
7
7
|
x: o,
|
|
8
|
-
w:
|
|
9
|
-
minH:
|
|
10
|
-
minW:
|
|
8
|
+
w: a,
|
|
9
|
+
minH: s,
|
|
10
|
+
minW: f
|
|
11
11
|
}) {
|
|
12
|
-
const
|
|
13
|
-
i:
|
|
12
|
+
const r = {
|
|
13
|
+
i: n,
|
|
14
14
|
x: o ?? 0,
|
|
15
|
-
y:
|
|
16
|
-
w:
|
|
17
|
-
h:
|
|
18
|
-
minW:
|
|
19
|
-
minH:
|
|
20
|
-
},
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
(
|
|
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
25
|
0
|
|
26
26
|
);
|
|
27
|
-
|
|
28
|
-
}),
|
|
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;
|
|
29
237
|
}
|
|
30
238
|
export {
|
|
31
|
-
|
|
239
|
+
_ as addToLayout,
|
|
240
|
+
v as createFrameLayouts,
|
|
241
|
+
I as duplicateLayoutItem,
|
|
242
|
+
C as removeFromLayout,
|
|
243
|
+
g as resizeFrameLayoutsForFrameTypeChange
|
|
32
244
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as r } from "../chunks/
|
|
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-BFAoRlkU.js";
|
|
2
|
+
import { D as n, p as o, a as p, b as t } from "../chunks/report-runtime-context-B984Nq1E.js";
|
|
3
3
|
export {
|
|
4
4
|
n as DEFAULT_CALENDAR_CONTEXT,
|
|
5
5
|
r as isValidIanaTimeZone,
|