react-semaphor 0.1.552 → 0.1.554
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 +228 -227
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{assistant-chat-sWQaBT61.js → assistant-chat-ngs5dTvo.js} +1275 -1296
- package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-BAeGKd3s.js} +3 -3
- package/dist/chunks/{comparison-window-caption-CF90-I0i.js → comparison-window-caption-C2WNTlxK.js} +44 -44
- package/dist/chunks/{custom-visual-inputs-ByQUyWf4.js → custom-visual-inputs-cTHqcqPu.js} +1 -1
- package/dist/chunks/{dashboard-BjoJI7NN.js → dashboard-548YvEW5.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DUJQv719.js → dashboard-briefing-launcher-ptIRn5FS.js} +62 -62
- package/dist/chunks/{dashboard-controls-BjnvfcQp.js → dashboard-controls-CqyUTN6Q.js} +46 -46
- package/dist/chunks/{dashboard-json-BqcLekhd.js → dashboard-json-CvDFipA0.js} +4 -4
- package/dist/chunks/{document-dashboard-inputs-PoQihHLu.js → document-dashboard-inputs-DrA9m-5H.js} +119 -119
- package/dist/chunks/{edit-dashboard-visual-KNJQr60W.js → edit-dashboard-visual-BHL0AlIj.js} +4087 -3979
- package/dist/chunks/{filter-reach-copy-zdhUFn6t.js → filter-reach-copy-CyftKCZE.js} +48 -48
- package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DMrpj4h9.js} +2 -2
- package/dist/chunks/{global-date-filter-utils-C1jCNWdV.js → global-date-filter-utils-Or-3DL3k.js} +6033 -5772
- package/dist/chunks/{index-Dp0ta6KB.js → index-ClwmmbUH.js} +9 -9
- package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-DPVGg1mU.js} +12 -12
- package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-CVFVtqyo.js} +2 -2
- package/dist/chunks/{matrix-formatter-C_EpDP6o.js → matrix-formatter-K2OVPJQI.js} +30 -30
- package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DRWcJ8Mi.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract--lMaLlpV.js} +64 -61
- package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-CYIt2F5X.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-CX4fkRuG.js} +1 -1
- package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-BHJGZwIc.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-BygCpOhk.js} +20 -20
- package/dist/chunks/{raw-temporal-presentation-D3i0mnUe.js → raw-temporal-presentation-gooAp93G.js} +6 -6
- package/dist/chunks/{report-preferences-dialog-C0uGI0v7.js → report-preferences-dialog-2tqY0BMQ.js} +49 -49
- package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-BaIKSaja.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Cm0b7s-d.js → resolve-dashboard-input-context-bOKDTHfJ.js} +2062 -1986
- package/dist/chunks/{saved-dashboard-context-DCtGmAWe.js → saved-dashboard-context--Hq1juf9.js} +8 -8
- package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-yw_JgICP.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-ChyotaWB.js → semaphor-ready-indicator-yM4wo-FH.js} +26 -26
- package/dist/chunks/{shelf-drop-preview-context-D09ATIXv.js → shelf-drop-preview-context-BuLzyT1T.js} +119 -119
- package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-CGymm5td.js} +1 -1
- package/dist/chunks/{switch-wJP6O7ZT.js → switch-B-UTI6v-.js} +2 -2
- package/dist/chunks/{table-export-sheet-DUS_s8Cj.js → table-export-sheet-CgO6gaSM.js} +1 -1
- package/dist/chunks/{table-settings-WysCBj62.js → table-settings-DOT_Bv1m.js} +224 -201
- package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-C4rqmwaQ.js} +24 -24
- package/dist/chunks/{token-types-BMqRmT-C.js → token-types-DYECHYGH.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-t7JLE_LV.js → use-create-flow-overlay-state-DSXC-LD7.js} +6 -6
- package/dist/chunks/{validators-C-aOQlTB.js → validators-ClKLGDGZ.js} +1077 -1054
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +273 -264
- package/dist/data-app-sdk/index.js +5 -5
- 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 +15 -15
- package/dist/index.js +21 -21
- 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/index.js +6 -6
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +3 -2
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -2
- package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
- package/dist/types/lib/utils/card-definition.d.ts +2 -1
- package/dist/types/lib/utils/card-type-change.d.ts +5 -1
- package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -2
- package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +59 -21
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +12 -7
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +16 -9
- package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +62 -0
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +4 -2
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as Ne, jsx as L, Fragment as ft } from "react/jsx-runtime";
|
|
2
2
|
import * as T from "react";
|
|
3
3
|
import zn, { forwardRef as Fe, createElement as xe, useContext as rt, createContext as xt, useRef as q, useLayoutEffect as Pn, useImperativeHandle as zt, useEffect as re, useState as ce, useCallback as O, useMemo as G, memo as wn, Suspense as Cn, useSyncExternalStore as En } from "react";
|
|
4
|
-
import { b0 as In, a6 as ie, b1 as Pt, a7 as wt, b2 as ot, b3 as Ct, b4 as Rn, b5 as Dn, b6 as An, b7 as Nn, u as Re, b8 as Mn, b9 as Ln, ba as _n, bb as kn, bc as Tn, bd as Hn, be as Vn, bf as $n, bg as Fn } from "./semaphor-ready-indicator-
|
|
5
|
-
import { C as Et, y as It, z as ze, A as pe, D as Rt, E as Kn, F as Bn, G as Pe, H as qn, J as Dt, K as On, M as Gn } from "./switch-
|
|
4
|
+
import { b0 as In, a6 as ie, b1 as Pt, a7 as wt, b2 as ot, b3 as Ct, b4 as Rn, b5 as Dn, b6 as An, b7 as Nn, u as Re, b8 as Mn, b9 as Ln, ba as _n, bb as kn, bc as Tn, bd as Hn, be as Vn, bf as $n, bg as Fn } from "./semaphor-ready-indicator-yM4wo-FH.js";
|
|
5
|
+
import { C as Et, y as It, z as ze, A as pe, D as Rt, E as Kn, F as Bn, G as Pe, H as qn, J as Dt, K as On, M as Gn } from "./switch-B-UTI6v-.js";
|
|
6
6
|
import { f as Un, r as At } from "./editor-draft-sync-BN5qYHPF.js";
|
|
7
|
-
import {
|
|
8
|
-
import { f as Yn, r as Nt, g as Mt, a as Je, c as Te, n as jn, b as Qn } from "./custom-visual-inputs-
|
|
7
|
+
import { cU as Wn, cV as Xn } from "./global-date-filter-utils-Or-3DL3k.js";
|
|
8
|
+
import { f as Yn, r as Nt, g as Mt, a as Je, c as Te, n as jn, b as Qn } from "./custom-visual-inputs-cTHqcqPu.js";
|
|
9
9
|
import "./index-CuHybtft.js";
|
|
10
|
-
import "./validators-
|
|
11
|
-
import "./matrix-operation-contract
|
|
10
|
+
import "./validators-ClKLGDGZ.js";
|
|
11
|
+
import "./matrix-operation-contract--lMaLlpV.js";
|
|
12
12
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
13
13
|
import "zod";
|
|
14
14
|
import "../value-format-preferences/index.js";
|
|
@@ -292,7 +292,7 @@ function Ht(e) {
|
|
|
292
292
|
return t && t instanceof ShadowRoot ? t.host : t;
|
|
293
293
|
}
|
|
294
294
|
const Vt = 1, $t = 2, Ft = 4, Kt = 8, ur = or() === "coarse";
|
|
295
|
-
let se = [],
|
|
295
|
+
let se = [], Se = !1, fe = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map();
|
|
296
296
|
const Me = /* @__PURE__ */ new Set();
|
|
297
297
|
function dr(e, t, n, r, i) {
|
|
298
298
|
var o;
|
|
@@ -321,7 +321,7 @@ function fr(e) {
|
|
|
321
321
|
x: n,
|
|
322
322
|
y: r
|
|
323
323
|
} = Be(e);
|
|
324
|
-
|
|
324
|
+
Se = !0, lt({
|
|
325
325
|
target: t,
|
|
326
326
|
x: n,
|
|
327
327
|
y: r
|
|
@@ -332,7 +332,7 @@ function Xe(e) {
|
|
|
332
332
|
x: t,
|
|
333
333
|
y: n
|
|
334
334
|
} = Be(e);
|
|
335
|
-
if (
|
|
335
|
+
if (Se && e.buttons === 0 && (Se = !1, $e("up", e)), !Se) {
|
|
336
336
|
const {
|
|
337
337
|
target: r
|
|
338
338
|
} = e;
|
|
@@ -351,7 +351,7 @@ function Ye(e) {
|
|
|
351
351
|
x: n,
|
|
352
352
|
y: r
|
|
353
353
|
} = Be(e);
|
|
354
|
-
qe.clear(),
|
|
354
|
+
qe.clear(), Se = !1, se.length > 0 && (e.preventDefault(), Bt(t) || e.stopImmediatePropagation()), $e("up", e), lt({
|
|
355
355
|
target: t,
|
|
356
356
|
x: n,
|
|
357
357
|
y: r
|
|
@@ -426,7 +426,7 @@ function Ve() {
|
|
|
426
426
|
capture: !0,
|
|
427
427
|
signal: Qe.signal
|
|
428
428
|
};
|
|
429
|
-
Me.size && (
|
|
429
|
+
Me.size && (Se ? (se.length > 0 && fe.forEach((t, n) => {
|
|
430
430
|
const {
|
|
431
431
|
body: r
|
|
432
432
|
} = n;
|
|
@@ -473,7 +473,7 @@ function mr(e, t, n) {
|
|
|
473
473
|
}
|
|
474
474
|
return !0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function be({
|
|
477
477
|
panelConstraints: e,
|
|
478
478
|
panelIndex: t,
|
|
479
479
|
size: n
|
|
@@ -547,7 +547,7 @@ function De({
|
|
|
547
547
|
for (; ; ) {
|
|
548
548
|
const g = t[c];
|
|
549
549
|
I(g != null, `Previous layout not found for panel index ${c}`);
|
|
550
|
-
const h =
|
|
550
|
+
const h = be({
|
|
551
551
|
panelConstraints: n,
|
|
552
552
|
panelIndex: c,
|
|
553
553
|
size: 100
|
|
@@ -563,7 +563,7 @@ function De({
|
|
|
563
563
|
for (; c >= 0 && c < n.length; ) {
|
|
564
564
|
const m = Math.abs(e) - Math.abs(d), p = t[c];
|
|
565
565
|
I(p != null, `Previous layout not found for panel index ${c}`);
|
|
566
|
-
const g = p - m, v =
|
|
566
|
+
const g = p - m, v = be({
|
|
567
567
|
panelConstraints: n,
|
|
568
568
|
panelIndex: c,
|
|
569
569
|
size: g
|
|
@@ -580,7 +580,7 @@ function De({
|
|
|
580
580
|
{
|
|
581
581
|
const u = e < 0 ? a : l, c = t[u];
|
|
582
582
|
I(c != null, `Previous layout not found for panel index ${u}`);
|
|
583
|
-
const m = c + d, p =
|
|
583
|
+
const m = c + d, p = be({
|
|
584
584
|
panelConstraints: n,
|
|
585
585
|
panelIndex: u,
|
|
586
586
|
size: m
|
|
@@ -590,7 +590,7 @@ function De({
|
|
|
590
590
|
for (; h >= 0 && h < n.length; ) {
|
|
591
591
|
const A = s[h];
|
|
592
592
|
I(A != null, `Previous layout not found for panel index ${h}`);
|
|
593
|
-
const x = A + g, R =
|
|
593
|
+
const x = A + g, R = be({
|
|
594
594
|
panelConstraints: n,
|
|
595
595
|
panelIndex: h,
|
|
596
596
|
size: x
|
|
@@ -774,7 +774,7 @@ function vr(e, t, n, r, i) {
|
|
|
774
774
|
const u = f.getBoundingClientRect(), c = o ? u.width : u.height;
|
|
775
775
|
return (d - a) / c * 100;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function br(e, t, n, r, i, o) {
|
|
778
778
|
if (_t(e)) {
|
|
779
779
|
const s = n === "horizontal";
|
|
780
780
|
let l = 0;
|
|
@@ -804,7 +804,7 @@ function Sr(e, t, n, r, i, o) {
|
|
|
804
804
|
} else
|
|
805
805
|
return r == null ? 0 : vr(e, t, n, r, o);
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function Sr({
|
|
808
808
|
panelDataArray: e
|
|
809
809
|
}) {
|
|
810
810
|
const t = Array(e.length), n = e.map((o) => o.constraints);
|
|
@@ -947,7 +947,7 @@ function wr(e, t, n, r, i) {
|
|
|
947
947
|
console.error(d);
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function bt({
|
|
951
951
|
layout: e,
|
|
952
952
|
panelConstraints: t
|
|
953
953
|
}) {
|
|
@@ -965,7 +965,7 @@ function St({
|
|
|
965
965
|
for (let o = 0; o < t.length; o++) {
|
|
966
966
|
const s = n[o];
|
|
967
967
|
I(s != null, `No layout data found for index ${o}`);
|
|
968
|
-
const l =
|
|
968
|
+
const l = be({
|
|
969
969
|
panelConstraints: t,
|
|
970
970
|
panelIndex: o,
|
|
971
971
|
size: s
|
|
@@ -976,7 +976,7 @@ function St({
|
|
|
976
976
|
for (let o = 0; o < t.length; o++) {
|
|
977
977
|
const s = n[o];
|
|
978
978
|
I(s != null, `No layout data found for index ${o}`);
|
|
979
|
-
const l = s + i, a =
|
|
979
|
+
const l = s + i, a = be({
|
|
980
980
|
panelConstraints: t,
|
|
981
981
|
panelIndex: o,
|
|
982
982
|
size: l
|
|
@@ -991,7 +991,7 @@ const Cr = 100, Ae = {
|
|
|
991
991
|
setItem: (e, t) => {
|
|
992
992
|
vt(Ae), Ae.setItem(e, t);
|
|
993
993
|
}
|
|
994
|
-
},
|
|
994
|
+
}, St = {};
|
|
995
995
|
function jt({
|
|
996
996
|
autoSaveId: e = null,
|
|
997
997
|
children: t,
|
|
@@ -1027,21 +1027,21 @@ function jt({
|
|
|
1027
1027
|
getId: () => k.current.id,
|
|
1028
1028
|
getLayout: () => {
|
|
1029
1029
|
const {
|
|
1030
|
-
layout:
|
|
1030
|
+
layout: b
|
|
1031
1031
|
} = w.current;
|
|
1032
|
-
return
|
|
1032
|
+
return b;
|
|
1033
1033
|
},
|
|
1034
|
-
setLayout: (
|
|
1034
|
+
setLayout: (b) => {
|
|
1035
1035
|
const {
|
|
1036
1036
|
onLayout: P
|
|
1037
1037
|
} = k.current, {
|
|
1038
1038
|
layout: E,
|
|
1039
1039
|
panelDataArray: z
|
|
1040
|
-
} = w.current,
|
|
1041
|
-
layout:
|
|
1040
|
+
} = w.current, S = bt({
|
|
1041
|
+
layout: b,
|
|
1042
1042
|
panelConstraints: z.map((C) => C.constraints)
|
|
1043
1043
|
});
|
|
1044
|
-
yt(E,
|
|
1044
|
+
yt(E, S) || (h(S), w.current.layout = S, P && P(S), ye(z, S, x.current));
|
|
1045
1045
|
}
|
|
1046
1046
|
}), []), me(() => {
|
|
1047
1047
|
k.current.autoSaveId = e, k.current.direction = r, k.current.dragState = p, k.current.id = c, k.current.onLayout = s, k.current.storage = a;
|
|
@@ -1055,37 +1055,37 @@ function jt({
|
|
|
1055
1055
|
panelGroupElement: m.current
|
|
1056
1056
|
}), re(() => {
|
|
1057
1057
|
const {
|
|
1058
|
-
panelDataArray:
|
|
1058
|
+
panelDataArray: b
|
|
1059
1059
|
} = w.current;
|
|
1060
1060
|
if (e) {
|
|
1061
|
-
if (v.length === 0 || v.length !==
|
|
1061
|
+
if (v.length === 0 || v.length !== b.length)
|
|
1062
1062
|
return;
|
|
1063
|
-
let P =
|
|
1064
|
-
P == null && (P = zr(wr, Cr),
|
|
1065
|
-
const E = [...
|
|
1063
|
+
let P = St[e];
|
|
1064
|
+
P == null && (P = zr(wr, Cr), St[e] = P);
|
|
1065
|
+
const E = [...b], z = new Map(R.current);
|
|
1066
1066
|
P(e, E, z, v, a);
|
|
1067
1067
|
}
|
|
1068
1068
|
}, [e, v, a]), re(() => {
|
|
1069
1069
|
});
|
|
1070
|
-
const X = O((
|
|
1070
|
+
const X = O((b) => {
|
|
1071
1071
|
const {
|
|
1072
1072
|
onLayout: P
|
|
1073
1073
|
} = k.current, {
|
|
1074
1074
|
layout: E,
|
|
1075
1075
|
panelDataArray: z
|
|
1076
1076
|
} = w.current;
|
|
1077
|
-
if (
|
|
1078
|
-
const
|
|
1077
|
+
if (b.constraints.collapsible) {
|
|
1078
|
+
const S = z.map((j) => j.constraints), {
|
|
1079
1079
|
collapsedSize: C = 0,
|
|
1080
1080
|
panelSize: y,
|
|
1081
1081
|
pivotIndices: N
|
|
1082
|
-
} = de(z,
|
|
1083
|
-
if (I(y != null, `Panel size not found for panel "${
|
|
1084
|
-
R.current.set(
|
|
1085
|
-
const J = ve(z,
|
|
1082
|
+
} = de(z, b, E);
|
|
1083
|
+
if (I(y != null, `Panel size not found for panel "${b.id}"`), !le(y, C)) {
|
|
1084
|
+
R.current.set(b.id, y);
|
|
1085
|
+
const J = ve(z, b) === z.length - 1 ? y - C : C - y, K = De({
|
|
1086
1086
|
delta: J,
|
|
1087
1087
|
initialLayout: E,
|
|
1088
|
-
panelConstraints:
|
|
1088
|
+
panelConstraints: S,
|
|
1089
1089
|
pivotIndices: N,
|
|
1090
1090
|
prevLayout: E,
|
|
1091
1091
|
trigger: "imperative-api"
|
|
@@ -1093,22 +1093,22 @@ function jt({
|
|
|
1093
1093
|
ke(E, K) || (h(K), w.current.layout = K, P && P(K), ye(z, K, x.current));
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
|
-
}, []), Q = O((
|
|
1096
|
+
}, []), Q = O((b, P) => {
|
|
1097
1097
|
const {
|
|
1098
1098
|
onLayout: E
|
|
1099
1099
|
} = k.current, {
|
|
1100
1100
|
layout: z,
|
|
1101
|
-
panelDataArray:
|
|
1101
|
+
panelDataArray: S
|
|
1102
1102
|
} = w.current;
|
|
1103
|
-
if (
|
|
1104
|
-
const C =
|
|
1103
|
+
if (b.constraints.collapsible) {
|
|
1104
|
+
const C = S.map((oe) => oe.constraints), {
|
|
1105
1105
|
collapsedSize: y = 0,
|
|
1106
1106
|
panelSize: N = 0,
|
|
1107
1107
|
minSize: j = 0,
|
|
1108
1108
|
pivotIndices: J
|
|
1109
|
-
} = de(
|
|
1109
|
+
} = de(S, b, z), K = P ?? j;
|
|
1110
1110
|
if (le(N, y)) {
|
|
1111
|
-
const oe = R.current.get(
|
|
1111
|
+
const oe = R.current.get(b.id), Ee = oe != null && oe >= K ? oe : K, Ue = ve(S, b) === S.length - 1 ? N - Ee : Ee - N, Z = De({
|
|
1112
1112
|
delta: Ue,
|
|
1113
1113
|
initialLayout: z,
|
|
1114
1114
|
panelConstraints: C,
|
|
@@ -1116,21 +1116,21 @@ function jt({
|
|
|
1116
1116
|
prevLayout: z,
|
|
1117
1117
|
trigger: "imperative-api"
|
|
1118
1118
|
});
|
|
1119
|
-
ke(z, Z) || (h(Z), w.current.layout = Z, E && E(Z), ye(
|
|
1119
|
+
ke(z, Z) || (h(Z), w.current.layout = Z, E && E(Z), ye(S, Z, x.current));
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
|
-
}, []), $ = O((
|
|
1122
|
+
}, []), $ = O((b) => {
|
|
1123
1123
|
const {
|
|
1124
1124
|
layout: P,
|
|
1125
1125
|
panelDataArray: E
|
|
1126
1126
|
} = w.current, {
|
|
1127
1127
|
panelSize: z
|
|
1128
|
-
} = de(E,
|
|
1129
|
-
return I(z != null, `Panel size not found for panel "${
|
|
1130
|
-
}, []), _ = O((
|
|
1128
|
+
} = de(E, b, P);
|
|
1129
|
+
return I(z != null, `Panel size not found for panel "${b.id}"`), z;
|
|
1130
|
+
}, []), _ = O((b, P) => {
|
|
1131
1131
|
const {
|
|
1132
1132
|
panelDataArray: E
|
|
1133
|
-
} = w.current, z = ve(E,
|
|
1133
|
+
} = w.current, z = ve(E, b);
|
|
1134
1134
|
return xr({
|
|
1135
1135
|
defaultSize: P,
|
|
1136
1136
|
dragState: p,
|
|
@@ -1138,71 +1138,71 @@ function jt({
|
|
|
1138
1138
|
panelData: E,
|
|
1139
1139
|
panelIndex: z
|
|
1140
1140
|
});
|
|
1141
|
-
}, [p, v]), M = O((
|
|
1141
|
+
}, [p, v]), M = O((b) => {
|
|
1142
1142
|
const {
|
|
1143
1143
|
layout: P,
|
|
1144
1144
|
panelDataArray: E
|
|
1145
1145
|
} = w.current, {
|
|
1146
1146
|
collapsedSize: z = 0,
|
|
1147
|
-
collapsible:
|
|
1147
|
+
collapsible: S,
|
|
1148
1148
|
panelSize: C
|
|
1149
|
-
} = de(E,
|
|
1150
|
-
return I(C != null, `Panel size not found for panel "${
|
|
1151
|
-
}, []), U = O((
|
|
1149
|
+
} = de(E, b, P);
|
|
1150
|
+
return I(C != null, `Panel size not found for panel "${b.id}"`), S === !0 && le(C, z);
|
|
1151
|
+
}, []), U = O((b) => {
|
|
1152
1152
|
const {
|
|
1153
1153
|
layout: P,
|
|
1154
1154
|
panelDataArray: E
|
|
1155
1155
|
} = w.current, {
|
|
1156
1156
|
collapsedSize: z = 0,
|
|
1157
|
-
collapsible:
|
|
1157
|
+
collapsible: S,
|
|
1158
1158
|
panelSize: C
|
|
1159
|
-
} = de(E,
|
|
1160
|
-
return I(C != null, `Panel size not found for panel "${
|
|
1161
|
-
}, []), F = O((
|
|
1159
|
+
} = de(E, b, P);
|
|
1160
|
+
return I(C != null, `Panel size not found for panel "${b.id}"`), !S || ge(C, z) > 0;
|
|
1161
|
+
}, []), F = O((b) => {
|
|
1162
1162
|
const {
|
|
1163
1163
|
panelDataArray: P
|
|
1164
1164
|
} = w.current;
|
|
1165
|
-
P.push(
|
|
1166
|
-
const
|
|
1167
|
-
return
|
|
1165
|
+
P.push(b), P.sort((E, z) => {
|
|
1166
|
+
const S = E.order, C = z.order;
|
|
1167
|
+
return S == null && C == null ? 0 : S == null ? -1 : C == null ? 1 : S - C;
|
|
1168
1168
|
}), w.current.panelDataArrayChanged = !0, A();
|
|
1169
1169
|
}, [A]);
|
|
1170
1170
|
me(() => {
|
|
1171
1171
|
if (w.current.panelDataArrayChanged) {
|
|
1172
1172
|
w.current.panelDataArrayChanged = !1;
|
|
1173
1173
|
const {
|
|
1174
|
-
autoSaveId:
|
|
1174
|
+
autoSaveId: b,
|
|
1175
1175
|
onLayout: P,
|
|
1176
1176
|
storage: E
|
|
1177
1177
|
} = k.current, {
|
|
1178
1178
|
layout: z,
|
|
1179
|
-
panelDataArray:
|
|
1179
|
+
panelDataArray: S
|
|
1180
1180
|
} = w.current;
|
|
1181
1181
|
let C = null;
|
|
1182
|
-
if (
|
|
1183
|
-
const N = Pr(
|
|
1182
|
+
if (b) {
|
|
1183
|
+
const N = Pr(b, S, E);
|
|
1184
1184
|
N && (R.current = new Map(Object.entries(N.expandToSizes)), C = N.layout);
|
|
1185
1185
|
}
|
|
1186
|
-
C == null && (C =
|
|
1187
|
-
panelDataArray:
|
|
1186
|
+
C == null && (C = Sr({
|
|
1187
|
+
panelDataArray: S
|
|
1188
1188
|
}));
|
|
1189
|
-
const y =
|
|
1189
|
+
const y = bt({
|
|
1190
1190
|
layout: C,
|
|
1191
|
-
panelConstraints:
|
|
1191
|
+
panelConstraints: S.map((N) => N.constraints)
|
|
1192
1192
|
});
|
|
1193
|
-
yt(z, y) || (h(y), w.current.layout = y, P && P(y), ye(
|
|
1193
|
+
yt(z, y) || (h(y), w.current.layout = y, P && P(y), ye(S, y, x.current));
|
|
1194
1194
|
}
|
|
1195
1195
|
}), me(() => {
|
|
1196
|
-
const
|
|
1196
|
+
const b = w.current;
|
|
1197
1197
|
return () => {
|
|
1198
|
-
|
|
1198
|
+
b.layout = [];
|
|
1199
1199
|
};
|
|
1200
1200
|
}, []);
|
|
1201
|
-
const H = O((
|
|
1201
|
+
const H = O((b) => {
|
|
1202
1202
|
let P = !1;
|
|
1203
1203
|
const E = m.current;
|
|
1204
|
-
return E && window.getComputedStyle(E, null).getPropertyValue("direction") === "rtl" && (P = !0), function(
|
|
1205
|
-
|
|
1204
|
+
return E && window.getComputedStyle(E, null).getPropertyValue("direction") === "rtl" && (P = !0), function(S) {
|
|
1205
|
+
S.preventDefault();
|
|
1206
1206
|
const C = m.current;
|
|
1207
1207
|
if (!C)
|
|
1208
1208
|
return () => null;
|
|
@@ -1217,32 +1217,32 @@ function jt({
|
|
|
1217
1217
|
panelDataArray: Ee
|
|
1218
1218
|
} = w.current, {
|
|
1219
1219
|
initialLayout: _e
|
|
1220
|
-
} = N ?? {}, Ue = Ot(j,
|
|
1221
|
-
let Z =
|
|
1220
|
+
} = N ?? {}, Ue = Ot(j, b, C);
|
|
1221
|
+
let Z = br(S, b, y, N, J, C);
|
|
1222
1222
|
const ut = y === "horizontal";
|
|
1223
1223
|
ut && P && (Z = -Z);
|
|
1224
|
-
const
|
|
1224
|
+
const Sn = Ee.map((xn) => xn.constraints), Ie = De({
|
|
1225
1225
|
delta: Z,
|
|
1226
1226
|
initialLayout: _e ?? oe,
|
|
1227
|
-
panelConstraints:
|
|
1227
|
+
panelConstraints: Sn,
|
|
1228
1228
|
pivotIndices: Ue,
|
|
1229
1229
|
prevLayout: oe,
|
|
1230
|
-
trigger: _t(
|
|
1230
|
+
trigger: _t(S) ? "keyboard" : "mouse-or-touch"
|
|
1231
1231
|
}), dt = !ke(oe, Ie);
|
|
1232
|
-
(kt(
|
|
1232
|
+
(kt(S) || Tt(S)) && D.current != Z && (D.current = Z, !dt && Z !== 0 ? ut ? je(b, Z < 0 ? Vt : $t) : je(b, Z < 0 ? Ft : Kt) : je(b, 0)), dt && (h(Ie), w.current.layout = Ie, K && K(Ie), ye(Ee, Ie, x.current));
|
|
1233
1233
|
};
|
|
1234
|
-
}, []), V = O((
|
|
1234
|
+
}, []), V = O((b, P) => {
|
|
1235
1235
|
const {
|
|
1236
1236
|
onLayout: E
|
|
1237
1237
|
} = k.current, {
|
|
1238
1238
|
layout: z,
|
|
1239
|
-
panelDataArray:
|
|
1240
|
-
} = w.current, C =
|
|
1239
|
+
panelDataArray: S
|
|
1240
|
+
} = w.current, C = S.map((oe) => oe.constraints), {
|
|
1241
1241
|
panelSize: y,
|
|
1242
1242
|
pivotIndices: N
|
|
1243
|
-
} = de(
|
|
1244
|
-
I(y != null, `Panel size not found for panel "${
|
|
1245
|
-
const J = ve(
|
|
1243
|
+
} = de(S, b, z);
|
|
1244
|
+
I(y != null, `Panel size not found for panel "${b.id}"`);
|
|
1245
|
+
const J = ve(S, b) === S.length - 1 ? y - P : P - y, K = De({
|
|
1246
1246
|
delta: J,
|
|
1247
1247
|
initialLayout: z,
|
|
1248
1248
|
panelConstraints: C,
|
|
@@ -1250,24 +1250,24 @@ function jt({
|
|
|
1250
1250
|
prevLayout: z,
|
|
1251
1251
|
trigger: "imperative-api"
|
|
1252
1252
|
});
|
|
1253
|
-
ke(z, K) || (h(K), w.current.layout = K, E && E(K), ye(
|
|
1254
|
-
}, []), Y = O((
|
|
1253
|
+
ke(z, K) || (h(K), w.current.layout = K, E && E(K), ye(S, K, x.current));
|
|
1254
|
+
}, []), Y = O((b, P) => {
|
|
1255
1255
|
const {
|
|
1256
1256
|
layout: E,
|
|
1257
1257
|
panelDataArray: z
|
|
1258
1258
|
} = w.current, {
|
|
1259
|
-
collapsedSize:
|
|
1259
|
+
collapsedSize: S = 0,
|
|
1260
1260
|
collapsible: C
|
|
1261
1261
|
} = P, {
|
|
1262
1262
|
collapsedSize: y = 0,
|
|
1263
1263
|
collapsible: N,
|
|
1264
1264
|
maxSize: j = 100,
|
|
1265
1265
|
minSize: J = 0
|
|
1266
|
-
} =
|
|
1266
|
+
} = b.constraints, {
|
|
1267
1267
|
panelSize: K
|
|
1268
|
-
} = de(z,
|
|
1269
|
-
K != null && (C && N && le(K,
|
|
1270
|
-
}, [V]), W = O((
|
|
1268
|
+
} = de(z, b, E);
|
|
1269
|
+
K != null && (C && N && le(K, S) ? le(S, y) || V(b, y) : K < J ? V(b, J) : K > j && V(b, j));
|
|
1270
|
+
}, [V]), W = O((b, P) => {
|
|
1271
1271
|
const {
|
|
1272
1272
|
direction: E
|
|
1273
1273
|
} = k.current, {
|
|
@@ -1275,22 +1275,22 @@ function jt({
|
|
|
1275
1275
|
} = w.current;
|
|
1276
1276
|
if (!m.current)
|
|
1277
1277
|
return;
|
|
1278
|
-
const
|
|
1279
|
-
I(
|
|
1278
|
+
const S = Oe(b, m.current);
|
|
1279
|
+
I(S, `Drag handle element not found for id "${b}"`);
|
|
1280
1280
|
const C = Ut(E, P);
|
|
1281
1281
|
g({
|
|
1282
|
-
dragHandleId:
|
|
1283
|
-
dragHandleRect:
|
|
1282
|
+
dragHandleId: b,
|
|
1283
|
+
dragHandleRect: S.getBoundingClientRect(),
|
|
1284
1284
|
initialCursorPosition: C,
|
|
1285
1285
|
initialLayout: z
|
|
1286
1286
|
});
|
|
1287
1287
|
}, []), ee = O(() => {
|
|
1288
1288
|
g(null);
|
|
1289
|
-
}, []), he = O((
|
|
1289
|
+
}, []), he = O((b) => {
|
|
1290
1290
|
const {
|
|
1291
1291
|
panelDataArray: P
|
|
1292
|
-
} = w.current, E = ve(P,
|
|
1293
|
-
E >= 0 && (P.splice(E, 1), delete x.current[
|
|
1292
|
+
} = w.current, E = ve(P, b);
|
|
1293
|
+
E >= 0 && (P.splice(E, 1), delete x.current[b.id], w.current.panelDataArrayChanged = !0, A());
|
|
1294
1294
|
}, [A]), ne = G(() => ({
|
|
1295
1295
|
collapsePanel: X,
|
|
1296
1296
|
direction: r,
|
|
@@ -1461,27 +1461,27 @@ function Rr({
|
|
|
1461
1461
|
case "down": {
|
|
1462
1462
|
M("drag"), ue = !1, I(z, 'Expected event to be defined for "down" action'), w($, z);
|
|
1463
1463
|
const {
|
|
1464
|
-
onDragging:
|
|
1464
|
+
onDragging: S,
|
|
1465
1465
|
onPointerDown: C
|
|
1466
1466
|
} = A.current;
|
|
1467
|
-
|
|
1467
|
+
S == null || S(!0), C == null || C();
|
|
1468
1468
|
break;
|
|
1469
1469
|
}
|
|
1470
1470
|
case "move": {
|
|
1471
1471
|
const {
|
|
1472
|
-
state:
|
|
1472
|
+
state: S
|
|
1473
1473
|
} = Y.current;
|
|
1474
|
-
ue = !0,
|
|
1474
|
+
ue = !0, S !== "drag" && M("hover"), I(z, 'Expected event to be defined for "move" action'), H(z);
|
|
1475
1475
|
break;
|
|
1476
1476
|
}
|
|
1477
1477
|
case "up": {
|
|
1478
1478
|
M("hover"), X();
|
|
1479
1479
|
const {
|
|
1480
|
-
onClick:
|
|
1480
|
+
onClick: S,
|
|
1481
1481
|
onDragging: C,
|
|
1482
1482
|
onPointerUp: y
|
|
1483
1483
|
} = A.current;
|
|
1484
|
-
C == null || C(!1), y == null || y(), ue ||
|
|
1484
|
+
C == null || C(!1), y == null || y(), ue || S == null || S();
|
|
1485
1485
|
break;
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
@@ -1690,7 +1690,7 @@ function Lr({ className: e }, t) {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
const Eo = Fe(Lr);
|
|
1692
1692
|
function _r({ card: e }) {
|
|
1693
|
-
var P, E, z,
|
|
1693
|
+
var P, E, z, S, C;
|
|
1694
1694
|
const t = Rn(), [n, r] = ce({}), { authToken: i } = Dn(), o = Xn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = G(
|
|
1695
1695
|
() => An(s),
|
|
1696
1696
|
[s]
|
|
@@ -1788,7 +1788,7 @@ function _r({ card: e }) {
|
|
|
1788
1788
|
},
|
|
1789
1789
|
[]
|
|
1790
1790
|
), W = (z = c.customCardPreferences) == null ? void 0 : z.componentName, ee = W ? m(W) : null, he = _n(
|
|
1791
|
-
(
|
|
1791
|
+
(S = c.customCardPreferences) == null ? void 0 : S.settings,
|
|
1792
1792
|
c
|
|
1793
1793
|
), ne = G(
|
|
1794
1794
|
() => Qn(h),
|
|
@@ -1802,7 +1802,7 @@ function _r({ card: e }) {
|
|
|
1802
1802
|
)
|
|
1803
1803
|
),
|
|
1804
1804
|
[ne, g == null ? void 0 : g.slots]
|
|
1805
|
-
),
|
|
1805
|
+
), b = G(
|
|
1806
1806
|
() => kn(
|
|
1807
1807
|
v === "multiple" ? Tn({
|
|
1808
1808
|
slotOrderedCards: ne,
|
|
@@ -1848,7 +1848,7 @@ function _r({ card: e }) {
|
|
|
1848
1848
|
onDataChange: Y,
|
|
1849
1849
|
data: (D == null ? void 0 : D.records) || [],
|
|
1850
1850
|
columns: (D == null ? void 0 : D.columns) || [],
|
|
1851
|
-
formatTemporalBucketValue:
|
|
1851
|
+
formatTemporalBucketValue: b,
|
|
1852
1852
|
filterInputs: F,
|
|
1853
1853
|
filters: H,
|
|
1854
1854
|
filterValues: [
|
|
@@ -1896,7 +1896,7 @@ function _r({ card: e }) {
|
|
|
1896
1896
|
...d || []
|
|
1897
1897
|
],
|
|
1898
1898
|
inlineFilters: U,
|
|
1899
|
-
formatTemporalBucketValue:
|
|
1899
|
+
formatTemporalBucketValue: b
|
|
1900
1900
|
})
|
|
1901
1901
|
}
|
|
1902
1902
|
) })
|
|
@@ -2432,17 +2432,17 @@ const io = T.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Ne(
|
|
|
2432
2432
|
));
|
|
2433
2433
|
io.displayName = vn.displayName;
|
|
2434
2434
|
const so = xt(null), lo = Fn();
|
|
2435
|
-
function
|
|
2435
|
+
function bn(e) {
|
|
2436
2436
|
const t = rt(so) ?? lo;
|
|
2437
2437
|
return En(t.subscribe, () => e(t.get()), () => e(null));
|
|
2438
2438
|
}
|
|
2439
2439
|
function Ro(e) {
|
|
2440
|
-
return
|
|
2440
|
+
return bn(
|
|
2441
2441
|
O((t) => (t == null ? void 0 : t.slot.zone) === e ? t.outcome : null, [e])
|
|
2442
2442
|
);
|
|
2443
2443
|
}
|
|
2444
2444
|
function Do(e, t, n) {
|
|
2445
|
-
return
|
|
2445
|
+
return bn(
|
|
2446
2446
|
O(
|
|
2447
2447
|
(r) => (r == null ? void 0 : r.slot.zone) !== e || r.outcome.kind === "refused" ? null : r.slot.beforeId === t ? "top" : !r.slot.beforeId && n ? "bottom" : null,
|
|
2448
2448
|
[e, t, n]
|
|
@@ -2,8 +2,8 @@ import { jsx as y, jsxs as de, Fragment as St } from "react/jsx-runtime";
|
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import De, { useLayoutEffect as Wi, useState as qr, forwardRef as Ui, useRef as gn, useMemo as Hi, useId as Vi, useImperativeHandle as zi } from "react";
|
|
4
4
|
import "./index-CuHybtft.js";
|
|
5
|
-
import "./validators-
|
|
6
|
-
import "./matrix-operation-contract
|
|
5
|
+
import "./validators-ClKLGDGZ.js";
|
|
6
|
+
import "./matrix-operation-contract--lMaLlpV.js";
|
|
7
7
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
8
8
|
import "zod";
|
|
9
9
|
import "../value-format-preferences/index.js";
|
|
@@ -2,7 +2,7 @@ var ft = Object.defineProperty;
|
|
|
2
2
|
var ht = (e, t, r) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ne = (e, t, r) => ht(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { z as S } from "zod";
|
|
5
|
-
import { e as ct } from "./comparison-window-caption-
|
|
5
|
+
import { e as ct } from "./comparison-window-caption-C2WNTlxK.js";
|
|
6
6
|
var E = Uint8Array, I = Uint16Array, pe = Int32Array, xe = new E([
|
|
7
7
|
0,
|
|
8
8
|
0,
|