@malloy-publisher/sdk 0.0.236 → 0.0.237
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/client/api.d.ts +3 -3
- package/dist/{core-Rj_4rRnA.es.js → core-BSRgt1mG.es.js} +1 -1
- package/dist/{core-C-aiDDhx.cjs.js → core-BaoOGXpy.cjs.js} +1 -1
- package/dist/{index-DPfNLAv1.es.js → index-CjLRzHfD.es.js} +254 -236
- package/dist/{index-DJW7yQLF.cjs.js → index-yyP-Baz8.cjs.js} +64 -64
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +32 -31
- package/dist/utils/pageEmbed.d.ts +20 -0
- package/package.json +1 -1
- package/src/components/PageViewer/PageViewer.tsx +14 -6
- package/src/index.ts +4 -0
- package/src/utils/pageEmbed.ts +35 -0
|
@@ -23678,7 +23678,7 @@ function A8() {
|
|
|
23678
23678
|
{ default: i },
|
|
23679
23679
|
{ default: a }
|
|
23680
23680
|
] = await Promise.all([
|
|
23681
|
-
import("./core-
|
|
23681
|
+
import("./core-BSRgt1mG.es.js"),
|
|
23682
23682
|
import("./engine-oniguruma-C4vnmooL.es.js"),
|
|
23683
23683
|
import("./sql-DCkt643-.es.js"),
|
|
23684
23684
|
import("./json-71t8ZF9g.es.js"),
|
|
@@ -24086,7 +24086,7 @@ function R8(e) {
|
|
|
24086
24086
|
`)
|
|
24087
24087
|
};
|
|
24088
24088
|
}
|
|
24089
|
-
const N8 = nS(() => Promise.resolve().then(() =>
|
|
24089
|
+
const N8 = nS(() => Promise.resolve().then(() => mj));
|
|
24090
24090
|
function Zl({
|
|
24091
24091
|
result: e,
|
|
24092
24092
|
maxHeight: t,
|
|
@@ -24526,7 +24526,7 @@ function F8({
|
|
|
24526
24526
|
);
|
|
24527
24527
|
}
|
|
24528
24528
|
const sC = rS(void 0);
|
|
24529
|
-
function
|
|
24529
|
+
function _j({
|
|
24530
24530
|
children: e,
|
|
24531
24531
|
workbookStorage: t
|
|
24532
24532
|
}) {
|
|
@@ -24648,7 +24648,7 @@ function $8() {
|
|
|
24648
24648
|
(n.metaKey || n.ctrlKey || n.button === 1 || n.shiftKey) && window.open(r, "_blank");
|
|
24649
24649
|
};
|
|
24650
24650
|
}
|
|
24651
|
-
function
|
|
24651
|
+
function Bj({ workbookPath: e, resourceUri: t }) {
|
|
24652
24652
|
const n = $8(), { server: r, getAccessToken: o } = _t(), { apiClients: i } = _t(), { workbookStorage: a } = kh(), { environmentName: s, packageName: l } = Zt(t), [u, c] = Fe.useState(void 0), [d, h] = Fe.useState(
|
|
24653
24653
|
void 0
|
|
24654
24654
|
);
|
|
@@ -25078,7 +25078,7 @@ function z8({ onWorkbookClick: e }) {
|
|
|
25078
25078
|
] });
|
|
25079
25079
|
}
|
|
25080
25080
|
const s1 = "Local";
|
|
25081
|
-
class
|
|
25081
|
+
class $j {
|
|
25082
25082
|
async listWorkspaces(t) {
|
|
25083
25083
|
return Promise.resolve([
|
|
25084
25084
|
{
|
|
@@ -25117,7 +25117,7 @@ class Bj {
|
|
|
25117
25117
|
localStorage.setItem(n.path, r), localStorage.removeItem(t.path);
|
|
25118
25118
|
}
|
|
25119
25119
|
}
|
|
25120
|
-
function
|
|
25120
|
+
function Hj({
|
|
25121
25121
|
onWorkbookSelect: e
|
|
25122
25122
|
}) {
|
|
25123
25123
|
const { workbookStorage: t } = kh(), [n, r] = Fe.useState(""), [o, i] = Fe.useState(""), [a, s] = Fe.useState([]), [l, u] = Fe.useState(null), [c, d] = Fe.useState(!1), [h, f] = Fe.useState(!1), m = !!l, b = (T) => {
|
|
@@ -39104,7 +39104,7 @@ function F_({
|
|
|
39104
39104
|
) }) });
|
|
39105
39105
|
}
|
|
39106
39106
|
const __ = 3e3;
|
|
39107
|
-
function
|
|
39107
|
+
function jj({
|
|
39108
39108
|
resourceUri: e,
|
|
39109
39109
|
onClickPackageFile: t
|
|
39110
39110
|
}) {
|
|
@@ -45821,7 +45821,7 @@ function D9({
|
|
|
45821
45821
|
}
|
|
45822
45822
|
);
|
|
45823
45823
|
}
|
|
45824
|
-
function
|
|
45824
|
+
function Kj({
|
|
45825
45825
|
onSelectPackage: e,
|
|
45826
45826
|
resourceUri: t
|
|
45827
45827
|
}) {
|
|
@@ -57711,7 +57711,7 @@ function _W({
|
|
|
57711
57711
|
}
|
|
57712
57712
|
);
|
|
57713
57713
|
}
|
|
57714
|
-
function
|
|
57714
|
+
function Gj(e) {
|
|
57715
57715
|
const t = /* @__PURE__ */ new Set(), n = e.schema?.fields;
|
|
57716
57716
|
if (!n) return t;
|
|
57717
57717
|
for (const r of n)
|
|
@@ -57842,7 +57842,7 @@ function UW(e, t, n) {
|
|
|
57842
57842
|
}
|
|
57843
57843
|
return r;
|
|
57844
57844
|
}
|
|
57845
|
-
function
|
|
57845
|
+
function Xj(e, t, n) {
|
|
57846
57846
|
return e.length === 0 ? "" : e.map((o) => {
|
|
57847
57847
|
const {
|
|
57848
57848
|
dimensionName: i,
|
|
@@ -57872,14 +57872,14 @@ function Gj(e, t, n) {
|
|
|
57872
57872
|
}
|
|
57873
57873
|
}).filter((o) => o.length > 0).join(" and ");
|
|
57874
57874
|
}
|
|
57875
|
-
function
|
|
57875
|
+
function Qj(e) {
|
|
57876
57876
|
const t = e.match(/run\s*:\s*(\w+)\s*->/);
|
|
57877
57877
|
if (t)
|
|
57878
57878
|
return t[1];
|
|
57879
57879
|
const n = e.match(/^\s*(\w+)\s*->/m);
|
|
57880
57880
|
return n ? n[1] : null;
|
|
57881
57881
|
}
|
|
57882
|
-
function
|
|
57882
|
+
function Zj(e, t) {
|
|
57883
57883
|
return `${e.trimEnd()} + {where: ${t}}`;
|
|
57884
57884
|
}
|
|
57885
57885
|
const zv = Et(/* @__PURE__ */ p("path", {
|
|
@@ -58652,7 +58652,7 @@ const oq = [
|
|
|
58652
58652
|
href: ml.mcpAgents
|
|
58653
58653
|
}
|
|
58654
58654
|
];
|
|
58655
|
-
function
|
|
58655
|
+
function Jj({ onClickEnvironment: e }) {
|
|
58656
58656
|
const { apiClients: t, mutable: n } = _t(), { data: r, isSuccess: o, isError: i, error: a } = an({
|
|
58657
58657
|
queryKey: ["environments"],
|
|
58658
58658
|
queryFn: () => t.environments.listEnvironments()
|
|
@@ -59314,7 +59314,7 @@ function jv({
|
|
|
59314
59314
|
) : /* @__PURE__ */ p("div", { children: "No valid import statement found in cell" }) })
|
|
59315
59315
|
] });
|
|
59316
59316
|
}
|
|
59317
|
-
function
|
|
59317
|
+
function eK({
|
|
59318
59318
|
onChange: e,
|
|
59319
59319
|
resourceUri: t,
|
|
59320
59320
|
runOnDemand: n = !1,
|
|
@@ -60199,7 +60199,7 @@ function Jv(e) {
|
|
|
60199
60199
|
...e
|
|
60200
60200
|
});
|
|
60201
60201
|
}
|
|
60202
|
-
function
|
|
60202
|
+
function tK({
|
|
60203
60203
|
embeddedQueryResult: e
|
|
60204
60204
|
}) {
|
|
60205
60205
|
const { query: t, sourceName: n, queryName: r, resourceUri: o, height: i } = JSON.parse(
|
|
@@ -61100,6 +61100,17 @@ function Iq(e) {
|
|
|
61100
61100
|
function tx(e) {
|
|
61101
61101
|
return e.replace(/\/api\/v0\/?$/, "");
|
|
61102
61102
|
}
|
|
61103
|
+
function Aq({
|
|
61104
|
+
server: e,
|
|
61105
|
+
environmentName: t,
|
|
61106
|
+
packageName: n,
|
|
61107
|
+
path: r
|
|
61108
|
+
}) {
|
|
61109
|
+
const o = r.startsWith("public/") ? r.slice(7) : r;
|
|
61110
|
+
return `${tx(e)}/environments/${encodeURIComponent(
|
|
61111
|
+
t
|
|
61112
|
+
)}/packages/${encodeURIComponent(n)}/` + o;
|
|
61113
|
+
}
|
|
61103
61114
|
function Ys({
|
|
61104
61115
|
type: e,
|
|
61105
61116
|
size: t = 18,
|
|
@@ -61122,16 +61133,16 @@ function Ys({
|
|
|
61122
61133
|
...n
|
|
61123
61134
|
},
|
|
61124
61135
|
children: [
|
|
61125
|
-
e === "report" && /* @__PURE__ */ p(
|
|
61126
|
-
e === "model" && /* @__PURE__ */ p(
|
|
61127
|
-
e === "data" && /* @__PURE__ */ p(
|
|
61128
|
-
e === "materialization" && /* @__PURE__ */ p(
|
|
61129
|
-
e === "page" && /* @__PURE__ */ p(
|
|
61136
|
+
e === "report" && /* @__PURE__ */ p(Oq, {}),
|
|
61137
|
+
e === "model" && /* @__PURE__ */ p(Pq, {}),
|
|
61138
|
+
e === "data" && /* @__PURE__ */ p(Mq, {}),
|
|
61139
|
+
e === "materialization" && /* @__PURE__ */ p(Rq, {}),
|
|
61140
|
+
e === "page" && /* @__PURE__ */ p(Nq, {})
|
|
61130
61141
|
]
|
|
61131
61142
|
}
|
|
61132
61143
|
);
|
|
61133
61144
|
}
|
|
61134
|
-
function
|
|
61145
|
+
function Oq() {
|
|
61135
61146
|
return /* @__PURE__ */ z(pt, { children: [
|
|
61136
61147
|
/* @__PURE__ */ p("path", { d: "M14 3 H6 a2 2 0 0 0 -2 2 v14 a2 2 0 0 0 2 2 h12 a2 2 0 0 0 2 -2 V9 z" }),
|
|
61137
61148
|
/* @__PURE__ */ p("path", { d: "M14 3 v4 a2 2 0 0 0 2 2 h4" }),
|
|
@@ -61140,28 +61151,28 @@ function Aq() {
|
|
|
61140
61151
|
/* @__PURE__ */ p("path", { d: "M16 17 v-4" })
|
|
61141
61152
|
] });
|
|
61142
61153
|
}
|
|
61143
|
-
function
|
|
61154
|
+
function Pq() {
|
|
61144
61155
|
return /* @__PURE__ */ z(pt, { children: [
|
|
61145
61156
|
/* @__PURE__ */ p("path", { d: "M12 3 L4 7 v10 l8 4 l8 -4 V7 z" }),
|
|
61146
61157
|
/* @__PURE__ */ p("path", { d: "M4 7 l8 4 l8 -4" }),
|
|
61147
61158
|
/* @__PURE__ */ p("path", { d: "M12 11 v10" })
|
|
61148
61159
|
] });
|
|
61149
61160
|
}
|
|
61150
|
-
function
|
|
61161
|
+
function Mq() {
|
|
61151
61162
|
return /* @__PURE__ */ z(pt, { children: [
|
|
61152
61163
|
/* @__PURE__ */ p("rect", { x: "3.5", y: "3.5", width: "17", height: "17", rx: "2" }),
|
|
61153
61164
|
/* @__PURE__ */ p("path", { d: "M3.5 9.5 H20.5" }),
|
|
61154
61165
|
/* @__PURE__ */ p("path", { d: "M9.5 3.5 V20.5" })
|
|
61155
61166
|
] });
|
|
61156
61167
|
}
|
|
61157
|
-
function
|
|
61168
|
+
function Rq() {
|
|
61158
61169
|
return /* @__PURE__ */ z(pt, { children: [
|
|
61159
61170
|
/* @__PURE__ */ p("path", { d: "M12 3 L21 7.5 L12 12 L3 7.5 Z" }),
|
|
61160
61171
|
/* @__PURE__ */ p("path", { d: "M3 12 L12 16.5 L21 12" }),
|
|
61161
61172
|
/* @__PURE__ */ p("path", { d: "M3 16.5 L12 21 L21 16.5" })
|
|
61162
61173
|
] });
|
|
61163
61174
|
}
|
|
61164
|
-
function
|
|
61175
|
+
function Nq() {
|
|
61165
61176
|
return /* @__PURE__ */ z(pt, { children: [
|
|
61166
61177
|
/* @__PURE__ */ p("rect", { x: "3.5", y: "4.5", width: "17", height: "15", rx: "2" }),
|
|
61167
61178
|
/* @__PURE__ */ p("path", { d: "M3.5 9.5 H20.5" }),
|
|
@@ -61170,7 +61181,7 @@ function Rq() {
|
|
|
61170
61181
|
] });
|
|
61171
61182
|
}
|
|
61172
61183
|
const jb = "README.malloynb";
|
|
61173
|
-
function
|
|
61184
|
+
function nK({
|
|
61174
61185
|
onClickPackageFile: e,
|
|
61175
61186
|
resourceUri: t,
|
|
61176
61187
|
retrievalFn: n
|
|
@@ -61357,7 +61368,7 @@ function tK({
|
|
|
61357
61368
|
// A file the server could not probe is listed with
|
|
61358
61369
|
// `error` and no `info`; show that instead of a
|
|
61359
61370
|
// row count rather than reading through undefined.
|
|
61360
|
-
A.info ?
|
|
61371
|
+
A.info ? Lq(A.info.rowCount) : "Unreadable"
|
|
61361
61372
|
),
|
|
61362
61373
|
onClick: () => c(A)
|
|
61363
61374
|
},
|
|
@@ -61554,14 +61565,14 @@ function _f({ label: e }) {
|
|
|
61554
61565
|
}
|
|
61555
61566
|
);
|
|
61556
61567
|
}
|
|
61557
|
-
function
|
|
61568
|
+
function Lq(e) {
|
|
61558
61569
|
return e >= 1e9 ? `${(e / 1e9).toFixed(1)} B rows` : e >= 1e6 ? `${(e / 1e6).toFixed(1)} M rows` : e >= 1e3 ? `${(e / 1e3).toFixed(1)} K rows` : `${e} rows`;
|
|
61559
61570
|
}
|
|
61560
|
-
function
|
|
61571
|
+
function Fq(e) {
|
|
61561
61572
|
return Qe("MuiCollapse", e);
|
|
61562
61573
|
}
|
|
61563
61574
|
je("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
61564
|
-
const
|
|
61575
|
+
const _q = (e) => {
|
|
61565
61576
|
const {
|
|
61566
61577
|
orientation: t,
|
|
61567
61578
|
classes: n
|
|
@@ -61572,8 +61583,8 @@ const Fq = (e) => {
|
|
|
61572
61583
|
wrapper: ["wrapper", `${t}`],
|
|
61573
61584
|
wrapperInner: ["wrapperInner", `${t}`]
|
|
61574
61585
|
};
|
|
61575
|
-
return Xe(r,
|
|
61576
|
-
},
|
|
61586
|
+
return Xe(r, Fq, n);
|
|
61587
|
+
}, Bq = de("div", {
|
|
61577
61588
|
name: "MuiCollapse",
|
|
61578
61589
|
slot: "Root",
|
|
61579
61590
|
overridesResolver: (e, t) => {
|
|
@@ -61621,7 +61632,7 @@ const Fq = (e) => {
|
|
|
61621
61632
|
visibility: "hidden"
|
|
61622
61633
|
}
|
|
61623
61634
|
}]
|
|
61624
|
-
}))),
|
|
61635
|
+
}))), $q = de("div", {
|
|
61625
61636
|
name: "MuiCollapse",
|
|
61626
61637
|
slot: "Wrapper"
|
|
61627
61638
|
})({
|
|
@@ -61637,7 +61648,7 @@ const Fq = (e) => {
|
|
|
61637
61648
|
height: "100%"
|
|
61638
61649
|
}
|
|
61639
61650
|
}]
|
|
61640
|
-
}),
|
|
61651
|
+
}), Hq = de("div", {
|
|
61641
61652
|
name: "MuiCollapse",
|
|
61642
61653
|
slot: "WrapperInner"
|
|
61643
61654
|
})({
|
|
@@ -61679,7 +61690,7 @@ const Fq = (e) => {
|
|
|
61679
61690
|
...r,
|
|
61680
61691
|
orientation: E,
|
|
61681
61692
|
collapsedSize: s
|
|
61682
|
-
}, R =
|
|
61693
|
+
}, R = _q(T), A = si(), N = md(), _ = O.useRef(null), B = O.useRef(), w = typeof s == "number" ? `${s}px` : s, H = E === "horizontal", F = H ? "width" : "height", L = O.useRef(null), $ = wt(n, L), j = (G) => (ne) => {
|
|
61683
61694
|
if (G) {
|
|
61684
61695
|
const te = L.current;
|
|
61685
61696
|
ne === void 0 ? G(te) : G(te, ne);
|
|
@@ -61744,7 +61755,7 @@ const Fq = (e) => {
|
|
|
61744
61755
|
children: (G, {
|
|
61745
61756
|
ownerState: ne,
|
|
61746
61757
|
...te
|
|
61747
|
-
}) => /* @__PURE__ */ p(
|
|
61758
|
+
}) => /* @__PURE__ */ p(Bq, {
|
|
61748
61759
|
as: l,
|
|
61749
61760
|
className: We(R.root, a, {
|
|
61750
61761
|
entered: R.entered,
|
|
@@ -61760,14 +61771,14 @@ const Fq = (e) => {
|
|
|
61760
61771
|
state: G
|
|
61761
61772
|
},
|
|
61762
61773
|
...te,
|
|
61763
|
-
children: /* @__PURE__ */ p(
|
|
61774
|
+
children: /* @__PURE__ */ p($q, {
|
|
61764
61775
|
ownerState: {
|
|
61765
61776
|
...T,
|
|
61766
61777
|
state: G
|
|
61767
61778
|
},
|
|
61768
61779
|
className: R.wrapper,
|
|
61769
61780
|
ref: _,
|
|
61770
|
-
children: /* @__PURE__ */ p(
|
|
61781
|
+
children: /* @__PURE__ */ p(Hq, {
|
|
61771
61782
|
ownerState: {
|
|
61772
61783
|
...T,
|
|
61773
61784
|
state: G
|
|
@@ -61784,7 +61795,7 @@ function nx(e) {
|
|
|
61784
61795
|
return nn;
|
|
61785
61796
|
}
|
|
61786
61797
|
const rx = /* @__PURE__ */ O.createContext(null);
|
|
61787
|
-
function
|
|
61798
|
+
function zq(e) {
|
|
61788
61799
|
const {
|
|
61789
61800
|
value: t,
|
|
61790
61801
|
children: n
|
|
@@ -61803,7 +61814,7 @@ const Qi = () => {
|
|
|
61803
61814
|
throw new Error(["MUI X: Could not find the Tree View context.", "It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.", "This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
61804
61815
|
`));
|
|
61805
61816
|
return e;
|
|
61806
|
-
},
|
|
61817
|
+
}, Uq = ({
|
|
61807
61818
|
props: e
|
|
61808
61819
|
}) => {
|
|
61809
61820
|
const {
|
|
@@ -61885,7 +61896,7 @@ const Qi = () => {
|
|
|
61885
61896
|
}
|
|
61886
61897
|
};
|
|
61887
61898
|
};
|
|
61888
|
-
Br.itemPlugin =
|
|
61899
|
+
Br.itemPlugin = Uq;
|
|
61889
61900
|
Br.getDefaultizedParams = ({
|
|
61890
61901
|
params: e,
|
|
61891
61902
|
experimentalFeatures: t
|
|
@@ -61902,7 +61913,7 @@ Br.params = {
|
|
|
61902
61913
|
onItemLabelChange: !0,
|
|
61903
61914
|
isItemEditable: !0
|
|
61904
61915
|
};
|
|
61905
|
-
const Ri = (e, t) => e.getAvailablePlugins().has(t), ox = (e) => Array.isArray(e) ? e.length > 0 && e.some(ox) : !!e,
|
|
61916
|
+
const Ri = (e, t) => e.getAvailablePlugins().has(t), ox = (e) => Array.isArray(e) ? e.length > 0 && e.some(ox) : !!e, Vq = ({
|
|
61906
61917
|
itemId: e,
|
|
61907
61918
|
children: t
|
|
61908
61919
|
}) => {
|
|
@@ -62024,7 +62035,7 @@ const Ri = (e, t) => e.getAvailablePlugins().has(t), ox = (e) => Array.isArray(e
|
|
|
62024
62035
|
d && (i.push(s), u = a.indexOf(s) !== -1, d = s !== null, !u && d && (s = e.getItemMeta(s).parentId)), h && !u && (a.push(l), c = i.indexOf(l) !== -1, h = l !== null, !c && h && (l = e.getItemMeta(l).parentId));
|
|
62025
62036
|
const f = u ? s : l, m = e.getItemOrderedChildrenIds(f), b = i[i.indexOf(f) - 1], y = a[a.indexOf(f) - 1];
|
|
62026
62037
|
return m.indexOf(b) < m.indexOf(y) ? [t, n] : [n, t];
|
|
62027
|
-
},
|
|
62038
|
+
}, Wq = (e, t, n) => {
|
|
62028
62039
|
const r = (l) => {
|
|
62029
62040
|
if (e.isItemExpandable(l) && e.isItemExpanded(l))
|
|
62030
62041
|
return e.getItemOrderedChildrenIds(l)[0];
|
|
@@ -62041,7 +62052,7 @@ const Ri = (e, t) => e.getAvailablePlugins().has(t), ox = (e) => Array.isArray(e
|
|
|
62041
62052
|
for (; s !== i; )
|
|
62042
62053
|
s = r(s), e.isItemDisabled(s) || a.push(s);
|
|
62043
62054
|
return a;
|
|
62044
|
-
},
|
|
62055
|
+
}, qq = (e) => {
|
|
62045
62056
|
let t = Ll(e);
|
|
62046
62057
|
const n = [];
|
|
62047
62058
|
for (; t != null; )
|
|
@@ -62049,11 +62060,11 @@ const Ri = (e, t) => e.getAvailablePlugins().has(t), ox = (e) => Array.isArray(e
|
|
|
62049
62060
|
return n;
|
|
62050
62061
|
}, Fl = (e, t) => t !== e.closest('*[role="treeitem"]');
|
|
62051
62062
|
let Kb = 0;
|
|
62052
|
-
const
|
|
62063
|
+
const Yq = () => (Kb += 1, `mui-tree-view-${Kb}`), am = ({
|
|
62053
62064
|
id: e,
|
|
62054
62065
|
treeId: t = "",
|
|
62055
62066
|
itemId: n
|
|
62056
|
-
}) => e ?? `${t}-${n}`,
|
|
62067
|
+
}) => e ?? `${t}-${n}`, jq = (e) => {
|
|
62057
62068
|
const {
|
|
62058
62069
|
runItemPlugins: t,
|
|
62059
62070
|
items: {
|
|
@@ -62084,7 +62095,7 @@ const qq = () => (Kb += 1, `mui-tree-view-${Kb}`), am = ({
|
|
|
62084
62095
|
} = t(e), {
|
|
62085
62096
|
interactions: S,
|
|
62086
62097
|
status: D
|
|
62087
|
-
} =
|
|
62098
|
+
} = Vq({
|
|
62088
62099
|
itemId: f,
|
|
62089
62100
|
children: b
|
|
62090
62101
|
}), T = O.useRef(null), R = O.useRef(null), A = wt(y, E, T), N = wt(C, R), _ = O.useRef(null), B = am({
|
|
@@ -62214,7 +62225,7 @@ const qq = () => (Kb += 1, `mui-tree-view-${Kb}`), am = ({
|
|
|
62214
62225
|
status: D,
|
|
62215
62226
|
publicAPI: c
|
|
62216
62227
|
};
|
|
62217
|
-
},
|
|
62228
|
+
}, Kq = jq;
|
|
62218
62229
|
function ux(e) {
|
|
62219
62230
|
const {
|
|
62220
62231
|
instance: t,
|
|
@@ -62284,7 +62295,7 @@ function ux(e) {
|
|
|
62284
62295
|
}
|
|
62285
62296
|
};
|
|
62286
62297
|
}
|
|
62287
|
-
const
|
|
62298
|
+
const Gq = de("div", {
|
|
62288
62299
|
name: "MuiTreeItem2DragAndDropOverlay",
|
|
62289
62300
|
slot: "Root",
|
|
62290
62301
|
overridesResolver: (e, t) => t.root,
|
|
@@ -62334,10 +62345,10 @@ const Kq = de("div", {
|
|
|
62334
62345
|
}
|
|
62335
62346
|
}]
|
|
62336
62347
|
}));
|
|
62337
|
-
function
|
|
62338
|
-
return e.action == null ? null : /* @__PURE__ */ p(
|
|
62348
|
+
function Xq(e) {
|
|
62349
|
+
return e.action == null ? null : /* @__PURE__ */ p(Gq, Y({}, e));
|
|
62339
62350
|
}
|
|
62340
|
-
const
|
|
62351
|
+
const Qq = de("input", {
|
|
62341
62352
|
name: "MuiTreeItem2",
|
|
62342
62353
|
slot: "LabelInput",
|
|
62343
62354
|
overridesResolver: (e, t) => t.labelInput
|
|
@@ -62353,7 +62364,7 @@ const Xq = de("input", {
|
|
|
62353
62364
|
"&:focus": {
|
|
62354
62365
|
outline: `1px solid ${e.palette.primary.main}`
|
|
62355
62366
|
}
|
|
62356
|
-
})),
|
|
62367
|
+
})), Zq = ["classes", "className", "displayIcon", "expansionIcon", "icon", "label", "itemId", "onClick", "onMouseDown", "dragAndDropOverlayProps", "labelInputProps"], cx = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
62357
62368
|
const {
|
|
62358
62369
|
classes: r,
|
|
62359
62370
|
className: o,
|
|
@@ -62366,7 +62377,7 @@ const Xq = de("input", {
|
|
|
62366
62377
|
onMouseDown: d,
|
|
62367
62378
|
dragAndDropOverlayProps: h,
|
|
62368
62379
|
labelInputProps: f
|
|
62369
|
-
} = t, m = et(t,
|
|
62380
|
+
} = t, m = et(t, Zq), {
|
|
62370
62381
|
disabled: b,
|
|
62371
62382
|
expanded: y,
|
|
62372
62383
|
selected: E,
|
|
@@ -62406,7 +62417,7 @@ const Xq = de("input", {
|
|
|
62406
62417
|
disabled: b || D,
|
|
62407
62418
|
ref: L,
|
|
62408
62419
|
tabIndex: -1
|
|
62409
|
-
}), x ? /* @__PURE__ */ p(
|
|
62420
|
+
}), x ? /* @__PURE__ */ p(Qq, Y({}, f, {
|
|
62410
62421
|
className: r.labelInput
|
|
62411
62422
|
})) : /* @__PURE__ */ p("div", Y({
|
|
62412
62423
|
className: r.label
|
|
@@ -62414,11 +62425,11 @@ const Xq = de("input", {
|
|
|
62414
62425
|
onDoubleClick: K
|
|
62415
62426
|
}, {
|
|
62416
62427
|
children: l
|
|
62417
|
-
})), h && /* @__PURE__ */ p(
|
|
62428
|
+
})), h && /* @__PURE__ */ p(Xq, Y({}, h))]
|
|
62418
62429
|
}))
|
|
62419
62430
|
);
|
|
62420
62431
|
});
|
|
62421
|
-
function
|
|
62432
|
+
function Jq(e) {
|
|
62422
62433
|
return Qe("MuiTreeItem", e);
|
|
62423
62434
|
}
|
|
62424
62435
|
const Mo = je("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), dx = Et(/* @__PURE__ */ p("path", {
|
|
@@ -62448,7 +62459,7 @@ sm.propTypes = {
|
|
|
62448
62459
|
children: Ce.node,
|
|
62449
62460
|
itemId: Ce.string.isRequired
|
|
62450
62461
|
};
|
|
62451
|
-
const
|
|
62462
|
+
const eY = ["children", "className", "slots", "slotProps", "ContentComponent", "ContentProps", "itemId", "id", "label", "onClick", "onMouseDown", "onFocus", "onBlur", "onKeyDown"], tY = ["ownerState"], nY = ["ownerState"], rY = ["ownerState"], oY = nx(), iY = (e) => {
|
|
62452
62463
|
const {
|
|
62453
62464
|
classes: t
|
|
62454
62465
|
} = e;
|
|
@@ -62466,8 +62477,8 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62466
62477
|
editing: ["editing"],
|
|
62467
62478
|
editable: ["editable"],
|
|
62468
62479
|
groupTransition: ["groupTransition"]
|
|
62469
|
-
},
|
|
62470
|
-
},
|
|
62480
|
+
}, Jq, t);
|
|
62481
|
+
}, aY = de("li", {
|
|
62471
62482
|
name: "MuiTreeItem",
|
|
62472
62483
|
slot: "Root",
|
|
62473
62484
|
overridesResolver: (e, t) => t.root
|
|
@@ -62476,7 +62487,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62476
62487
|
margin: 0,
|
|
62477
62488
|
padding: 0,
|
|
62478
62489
|
outline: 0
|
|
62479
|
-
}),
|
|
62490
|
+
}), sY = de(cx, {
|
|
62480
62491
|
name: "MuiTreeItem",
|
|
62481
62492
|
slot: "Content",
|
|
62482
62493
|
overridesResolver: (e, t) => [t.content, t.iconContainer && {
|
|
@@ -62554,7 +62565,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62554
62565
|
paddingLeft: `calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`
|
|
62555
62566
|
}
|
|
62556
62567
|
}]
|
|
62557
|
-
})),
|
|
62568
|
+
})), lY = de(Nl, {
|
|
62558
62569
|
name: "MuiTreeItem",
|
|
62559
62570
|
slot: "GroupTransition",
|
|
62560
62571
|
overridesResolver: (e, t) => t.groupTransition,
|
|
@@ -62571,7 +62582,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62571
62582
|
paddingLeft: 0
|
|
62572
62583
|
}
|
|
62573
62584
|
}]
|
|
62574
|
-
}),
|
|
62585
|
+
}), uY = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
62575
62586
|
const {
|
|
62576
62587
|
icons: r,
|
|
62577
62588
|
runItemPlugins: o,
|
|
@@ -62587,7 +62598,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62587
62598
|
},
|
|
62588
62599
|
treeId: u,
|
|
62589
62600
|
instance: c
|
|
62590
|
-
} = Qi(), d = O.useContext(im), h =
|
|
62601
|
+
} = Qi(), d = O.useContext(im), h = oY({
|
|
62591
62602
|
props: t,
|
|
62592
62603
|
name: "MuiTreeItem"
|
|
62593
62604
|
}), {
|
|
@@ -62604,7 +62615,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62604
62615
|
onMouseDown: R,
|
|
62605
62616
|
onBlur: A,
|
|
62606
62617
|
onKeyDown: N
|
|
62607
|
-
} = h, _ = et(h,
|
|
62618
|
+
} = h, _ = et(h, eY), {
|
|
62608
62619
|
expanded: B,
|
|
62609
62620
|
focused: w,
|
|
62610
62621
|
selected: H,
|
|
@@ -62629,7 +62640,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62629
62640
|
selected: H,
|
|
62630
62641
|
disabled: F,
|
|
62631
62642
|
indentationAtItemLevel: a
|
|
62632
|
-
}), oe =
|
|
62643
|
+
}), oe = iY(ae), Q = G.groupTransition ?? void 0, he = kt({
|
|
62633
62644
|
elementType: Q,
|
|
62634
62645
|
ownerState: {},
|
|
62635
62646
|
externalSlotProps: y?.groupTransition,
|
|
@@ -62651,15 +62662,15 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62651
62662
|
additionalProps: {
|
|
62652
62663
|
onClick: se
|
|
62653
62664
|
}
|
|
62654
|
-
}), Ee = et(De,
|
|
62665
|
+
}), Ee = et(De, tY), we = te && le ? /* @__PURE__ */ p(le, Y({}, Ee)) : null, be = te ? void 0 : G.endIcon, Ve = kt({
|
|
62655
62666
|
elementType: be,
|
|
62656
62667
|
ownerState: {},
|
|
62657
62668
|
externalSlotProps: (Oe) => te ? {} : Y({}, Nr(r.slotProps.endIcon, Oe), Nr(y?.endIcon, Oe))
|
|
62658
|
-
}), Ne = et(Ve,
|
|
62669
|
+
}), Ne = et(Ve, nY), ot = be ? /* @__PURE__ */ p(be, Y({}, Ne)) : null, Be = G.icon, Yt = kt({
|
|
62659
62670
|
elementType: Be,
|
|
62660
62671
|
ownerState: {},
|
|
62661
62672
|
externalSlotProps: y?.icon
|
|
62662
|
-
}), xt = et(Yt,
|
|
62673
|
+
}), xt = et(Yt, rY), at = Be ? /* @__PURE__ */ p(Be, Y({}, xt)) : null;
|
|
62663
62674
|
let ye;
|
|
62664
62675
|
H ? ye = !0 : s || F ? ye = void 0 : ye = !1;
|
|
62665
62676
|
function Me(Oe) {
|
|
@@ -62694,7 +62705,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62694
62705
|
})) ?? {};
|
|
62695
62706
|
return /* @__PURE__ */ p(sm, {
|
|
62696
62707
|
itemId: x,
|
|
62697
|
-
children: /* @__PURE__ */ z(
|
|
62708
|
+
children: /* @__PURE__ */ z(aY, Y({
|
|
62698
62709
|
className: We(oe.root, m),
|
|
62699
62710
|
role: "treeitem",
|
|
62700
62711
|
"aria-expanded": te ? B : void 0,
|
|
@@ -62712,7 +62723,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62712
62723
|
"--TreeView-itemDepth": typeof d == "function" ? d(x) : d
|
|
62713
62724
|
}) : _.style
|
|
62714
62725
|
}, ct, {
|
|
62715
|
-
children: [/* @__PURE__ */ p(
|
|
62726
|
+
children: [/* @__PURE__ */ p(sY, Y({
|
|
62716
62727
|
as: E,
|
|
62717
62728
|
classes: {
|
|
62718
62729
|
root: oe.content,
|
|
@@ -62741,7 +62752,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62741
62752
|
labelInputProps: Ie
|
|
62742
62753
|
}, {
|
|
62743
62754
|
ref: Z
|
|
62744
|
-
})), f && /* @__PURE__ */ p(
|
|
62755
|
+
})), f && /* @__PURE__ */ p(lY, Y({
|
|
62745
62756
|
as: Q
|
|
62746
62757
|
}, he, {
|
|
62747
62758
|
children: f
|
|
@@ -62749,7 +62760,7 @@ const Jq = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
62749
62760
|
}))
|
|
62750
62761
|
});
|
|
62751
62762
|
});
|
|
62752
|
-
function
|
|
62763
|
+
function cY(e) {
|
|
62753
62764
|
const {
|
|
62754
62765
|
slots: t,
|
|
62755
62766
|
slotProps: n,
|
|
@@ -62768,7 +62779,7 @@ function uY(e) {
|
|
|
62768
62779
|
});
|
|
62769
62780
|
return l ? /* @__PURE__ */ p(l, Y({}, u)) : null;
|
|
62770
62781
|
}
|
|
62771
|
-
const
|
|
62782
|
+
const dY = ["visible"], fY = de("li", {
|
|
62772
62783
|
name: "MuiTreeItem2",
|
|
62773
62784
|
slot: "Root",
|
|
62774
62785
|
overridesResolver: (e, t) => t.root
|
|
@@ -62777,7 +62788,7 @@ const cY = ["visible"], dY = de("li", {
|
|
|
62777
62788
|
margin: 0,
|
|
62778
62789
|
padding: 0,
|
|
62779
62790
|
outline: 0
|
|
62780
|
-
}),
|
|
62791
|
+
}), pY = de("div", {
|
|
62781
62792
|
name: "MuiTreeItem2",
|
|
62782
62793
|
slot: "Content",
|
|
62783
62794
|
overridesResolver: (e, t) => t.content,
|
|
@@ -62847,7 +62858,7 @@ const cY = ["visible"], dY = de("li", {
|
|
|
62847
62858
|
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : Gn(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
62848
62859
|
}
|
|
62849
62860
|
}]
|
|
62850
|
-
})),
|
|
62861
|
+
})), hY = de("div", {
|
|
62851
62862
|
name: "MuiTreeItem2",
|
|
62852
62863
|
slot: "Label",
|
|
62853
62864
|
overridesResolver: (e, t) => t.label,
|
|
@@ -62871,7 +62882,7 @@ const cY = ["visible"], dY = de("li", {
|
|
|
62871
62882
|
paddingLeft: "2px"
|
|
62872
62883
|
}
|
|
62873
62884
|
}]
|
|
62874
|
-
})),
|
|
62885
|
+
})), mY = de("div", {
|
|
62875
62886
|
name: "MuiTreeItem2",
|
|
62876
62887
|
slot: "IconContainer",
|
|
62877
62888
|
overridesResolver: (e, t) => t.iconContainer
|
|
@@ -62905,7 +62916,7 @@ de(Nl, {
|
|
|
62905
62916
|
de(/* @__PURE__ */ O.forwardRef((e, t) => {
|
|
62906
62917
|
const {
|
|
62907
62918
|
visible: n
|
|
62908
|
-
} = e, r = et(e,
|
|
62919
|
+
} = e, r = et(e, dY);
|
|
62909
62920
|
return n ? /* @__PURE__ */ p(Ph, Y({}, r, {
|
|
62910
62921
|
ref: t
|
|
62911
62922
|
})) : null;
|
|
@@ -62916,11 +62927,11 @@ de(/* @__PURE__ */ O.forwardRef((e, t) => {
|
|
|
62916
62927
|
})({
|
|
62917
62928
|
padding: 0
|
|
62918
62929
|
});
|
|
62919
|
-
function
|
|
62930
|
+
function gY(e) {
|
|
62920
62931
|
return Qe("MuiRichTreeView", e);
|
|
62921
62932
|
}
|
|
62922
62933
|
je("MuiRichTreeView", ["root"]);
|
|
62923
|
-
const
|
|
62934
|
+
const bY = (e, t) => {
|
|
62924
62935
|
const n = O.useRef({}), [r, o] = O.useState(() => {
|
|
62925
62936
|
const a = {};
|
|
62926
62937
|
return e.forEach((s) => {
|
|
@@ -62944,7 +62955,7 @@ const gY = (e, t) => {
|
|
|
62944
62955
|
}];
|
|
62945
62956
|
}));
|
|
62946
62957
|
};
|
|
62947
|
-
class
|
|
62958
|
+
class yY {
|
|
62948
62959
|
constructor() {
|
|
62949
62960
|
this.maxListeners = 20, this.warnOnce = !1, this.events = {};
|
|
62950
62961
|
}
|
|
@@ -62982,10 +62993,10 @@ class bY {
|
|
|
62982
62993
|
});
|
|
62983
62994
|
}
|
|
62984
62995
|
}
|
|
62985
|
-
const
|
|
62986
|
-
const [e] = O.useState(() => new
|
|
62996
|
+
const EY = (e) => e.isPropagationStopped !== void 0, px = () => {
|
|
62997
|
+
const [e] = O.useState(() => new yY()), t = O.useCallback((...r) => {
|
|
62987
62998
|
const [o, i, a = {}] = r;
|
|
62988
|
-
a.defaultMuiPrevented = !1, !(
|
|
62999
|
+
a.defaultMuiPrevented = !1, !(EY(a) && a.isPropagationStopped()) && e.emit(o, i, a);
|
|
62989
63000
|
}, [e]), n = O.useCallback((r, o) => (e.on(r, o), () => {
|
|
62990
63001
|
e.removeListener(r, o);
|
|
62991
63002
|
}), [e]);
|
|
@@ -63016,7 +63027,7 @@ const lm = ({
|
|
|
63016
63027
|
O.useEffect(() => {
|
|
63017
63028
|
n((o) => o.id.treeId === e.id && o.id.treeId !== void 0 ? o : Y({}, o, {
|
|
63018
63029
|
id: Y({}, o.id, {
|
|
63019
|
-
treeId: e.id ??
|
|
63030
|
+
treeId: e.id ?? Yq()
|
|
63020
63031
|
})
|
|
63021
63032
|
}));
|
|
63022
63033
|
}, [n, e.id]);
|
|
@@ -63040,7 +63051,7 @@ lm.getInitialState = ({
|
|
|
63040
63051
|
treeId: e ?? void 0
|
|
63041
63052
|
}
|
|
63042
63053
|
});
|
|
63043
|
-
const
|
|
63054
|
+
const CY = [px, hx, lm], vY = ["slots", "slotProps", "apiRef", "experimentalFeatures"], xY = (e) => {
|
|
63044
63055
|
let {
|
|
63045
63056
|
props: {
|
|
63046
63057
|
slots: t,
|
|
@@ -63049,7 +63060,7 @@ const EY = [px, hx, lm], CY = ["slots", "slotProps", "apiRef", "experimentalFeat
|
|
|
63049
63060
|
experimentalFeatures: o
|
|
63050
63061
|
},
|
|
63051
63062
|
plugins: i
|
|
63052
|
-
} = e, a = et(e.props,
|
|
63063
|
+
} = e, a = et(e.props, vY);
|
|
63053
63064
|
const s = {};
|
|
63054
63065
|
i.forEach((h) => {
|
|
63055
63066
|
Object.assign(s, h.params);
|
|
@@ -63071,7 +63082,7 @@ const EY = [px, hx, lm], CY = ["slots", "slotProps", "apiRef", "experimentalFeat
|
|
|
63071
63082
|
slotProps: n ?? {},
|
|
63072
63083
|
experimentalFeatures: c
|
|
63073
63084
|
};
|
|
63074
|
-
},
|
|
63085
|
+
}, TY = ({
|
|
63075
63086
|
plugins: e,
|
|
63076
63087
|
instance: t,
|
|
63077
63088
|
publicAPI: n,
|
|
@@ -63137,26 +63148,26 @@ const EY = [px, hx, lm], CY = ["slots", "slotProps", "apiRef", "experimentalFeat
|
|
|
63137
63148
|
rootRef: r,
|
|
63138
63149
|
publicAPI: n
|
|
63139
63150
|
});
|
|
63140
|
-
function
|
|
63151
|
+
function SY(e) {
|
|
63141
63152
|
const t = O.useRef({});
|
|
63142
63153
|
return e ? (e.current == null && (e.current = {}), e.current) : t.current;
|
|
63143
63154
|
}
|
|
63144
|
-
const
|
|
63155
|
+
const kY = ({
|
|
63145
63156
|
plugins: e,
|
|
63146
63157
|
rootRef: t,
|
|
63147
63158
|
props: n
|
|
63148
63159
|
}) => {
|
|
63149
|
-
const r = [...
|
|
63160
|
+
const r = [...CY, ...e], {
|
|
63150
63161
|
pluginParams: o,
|
|
63151
63162
|
forwardedProps: i,
|
|
63152
63163
|
apiRef: a,
|
|
63153
63164
|
experimentalFeatures: s,
|
|
63154
63165
|
slots: l,
|
|
63155
63166
|
slotProps: u
|
|
63156
|
-
} =
|
|
63167
|
+
} = xY({
|
|
63157
63168
|
plugins: r,
|
|
63158
63169
|
props: n
|
|
63159
|
-
}), c =
|
|
63170
|
+
}), c = bY(r, o), h = O.useRef({}).current, f = SY(a), m = O.useRef(null), b = wt(m, t), y = TY({
|
|
63160
63171
|
plugins: r,
|
|
63161
63172
|
instance: h,
|
|
63162
63173
|
publicAPI: f,
|
|
@@ -63196,14 +63207,14 @@ const SY = ({
|
|
|
63196
63207
|
contextValue: y,
|
|
63197
63208
|
instance: h
|
|
63198
63209
|
};
|
|
63199
|
-
},
|
|
63210
|
+
}, wY = (e, t, n) => {
|
|
63200
63211
|
e.$$publishEvent(t, n);
|
|
63201
|
-
}, Da = "__TREE_VIEW_ROOT_PARENT_ID__",
|
|
63212
|
+
}, Da = "__TREE_VIEW_ROOT_PARENT_ID__", DY = (e) => {
|
|
63202
63213
|
const t = {};
|
|
63203
63214
|
return e.forEach((n, r) => {
|
|
63204
63215
|
t[n] = r;
|
|
63205
63216
|
}), t;
|
|
63206
|
-
},
|
|
63217
|
+
}, IY = ["children"], mx = ({
|
|
63207
63218
|
items: e,
|
|
63208
63219
|
isItemDisabled: t,
|
|
63209
63220
|
getItemLabel: n,
|
|
@@ -63238,7 +63249,7 @@ const SY = ({
|
|
|
63238
63249
|
e.forEach((u) => s(u, 0, null));
|
|
63239
63250
|
const l = {};
|
|
63240
63251
|
return Object.keys(a).forEach((u) => {
|
|
63241
|
-
l[u] =
|
|
63252
|
+
l[u] = DY(a[u]);
|
|
63242
63253
|
}), {
|
|
63243
63254
|
itemMetaMap: o,
|
|
63244
63255
|
itemMap: i,
|
|
@@ -63254,7 +63265,7 @@ const SY = ({
|
|
|
63254
63265
|
}) => {
|
|
63255
63266
|
const i = O.useCallback((E) => n.items.itemMetaMap[E], [n.items.itemMetaMap]), a = O.useCallback((E) => n.items.itemMap[E], [n.items.itemMap]), s = O.useCallback(() => {
|
|
63256
63267
|
const E = (C) => {
|
|
63257
|
-
const x = n.items.itemMap[C], S = et(x,
|
|
63268
|
+
const x = n.items.itemMap[C], S = et(x, IY), D = n.items.itemOrderedChildrenIds[C];
|
|
63258
63269
|
return D && (S.children = D.map(E)), S;
|
|
63259
63270
|
};
|
|
63260
63271
|
return n.items.itemOrderedChildrenIds[Da].map(E);
|
|
@@ -63292,7 +63303,7 @@ const SY = ({
|
|
|
63292
63303
|
getItemLabel: t.getItemLabel
|
|
63293
63304
|
});
|
|
63294
63305
|
return Object.values(E.items.itemMetaMap).forEach((x) => {
|
|
63295
|
-
C.itemMetaMap[x.id] ||
|
|
63306
|
+
C.itemMetaMap[x.id] || wY(e, "removeItem", {
|
|
63296
63307
|
id: x.id
|
|
63297
63308
|
});
|
|
63298
63309
|
}), Y({}, E, {
|
|
@@ -63423,11 +63434,11 @@ Dd.models = {
|
|
|
63423
63434
|
getDefaultValue: (e) => e.defaultExpandedItems
|
|
63424
63435
|
}
|
|
63425
63436
|
};
|
|
63426
|
-
const
|
|
63437
|
+
const AY = [];
|
|
63427
63438
|
Dd.getDefaultizedParams = ({
|
|
63428
63439
|
params: e
|
|
63429
63440
|
}) => Y({}, e, {
|
|
63430
|
-
defaultExpandedItems: e.defaultExpandedItems ??
|
|
63441
|
+
defaultExpandedItems: e.defaultExpandedItems ?? AY
|
|
63431
63442
|
});
|
|
63432
63443
|
Dd.params = {
|
|
63433
63444
|
expandedItems: !0,
|
|
@@ -63482,7 +63493,7 @@ const lc = (e) => Array.isArray(e) ? e : e != null ? [e] : [], Bf = (e) => {
|
|
|
63482
63493
|
return;
|
|
63483
63494
|
let C = lc(n.selectedItems.value).slice();
|
|
63484
63495
|
Object.keys(o.current).length > 0 && (C = C.filter((T) => !o.current[T]));
|
|
63485
|
-
const x = Bf(C), S =
|
|
63496
|
+
const x = Bf(C), S = Wq(e, y, E), D = S.filter((T) => !x[T]);
|
|
63486
63497
|
C = C.concat(D), a(b, C), o.current = Bf(S);
|
|
63487
63498
|
};
|
|
63488
63499
|
return {
|
|
@@ -63498,7 +63509,7 @@ const lc = (e) => Array.isArray(e) ? e : e != null ? [e] : [], Bf = (e) => {
|
|
|
63498
63509
|
selectAllNavigableItems: (b) => {
|
|
63499
63510
|
if (t.disableSelection || !t.multiSelect)
|
|
63500
63511
|
return;
|
|
63501
|
-
const y =
|
|
63512
|
+
const y = qq(e);
|
|
63502
63513
|
a(b, y), o.current = Bf(y);
|
|
63503
63514
|
},
|
|
63504
63515
|
expandSelectionRange: (b, y) => {
|
|
@@ -63537,14 +63548,14 @@ Id.models = {
|
|
|
63537
63548
|
getDefaultValue: (e) => e.defaultSelectedItems
|
|
63538
63549
|
}
|
|
63539
63550
|
};
|
|
63540
|
-
const
|
|
63551
|
+
const OY = [];
|
|
63541
63552
|
Id.getDefaultizedParams = ({
|
|
63542
63553
|
params: e
|
|
63543
63554
|
}) => Y({}, e, {
|
|
63544
63555
|
disableSelection: e.disableSelection ?? !1,
|
|
63545
63556
|
multiSelect: e.multiSelect ?? !1,
|
|
63546
63557
|
checkboxSelection: e.checkboxSelection ?? !1,
|
|
63547
|
-
defaultSelectedItems: e.defaultSelectedItems ?? (e.multiSelect ?
|
|
63558
|
+
defaultSelectedItems: e.defaultSelectedItems ?? (e.multiSelect ? OY : null)
|
|
63548
63559
|
});
|
|
63549
63560
|
Id.params = {
|
|
63550
63561
|
disableSelection: !0,
|
|
@@ -63556,7 +63567,7 @@ Id.params = {
|
|
|
63556
63567
|
onItemSelectionToggle: !0
|
|
63557
63568
|
};
|
|
63558
63569
|
const Gb = 1e3;
|
|
63559
|
-
class
|
|
63570
|
+
class PY {
|
|
63560
63571
|
constructor(t = Gb) {
|
|
63561
63572
|
this.timeouts = /* @__PURE__ */ new Map(), this.cleanupTimeout = Gb, this.cleanupTimeout = t;
|
|
63562
63573
|
}
|
|
@@ -63579,7 +63590,7 @@ class OY {
|
|
|
63579
63590
|
}), this.timeouts = void 0);
|
|
63580
63591
|
}
|
|
63581
63592
|
}
|
|
63582
|
-
class
|
|
63593
|
+
class MY {
|
|
63583
63594
|
constructor() {
|
|
63584
63595
|
this.registry = new FinalizationRegistry((t) => {
|
|
63585
63596
|
typeof t == "function" && t();
|
|
@@ -63595,13 +63606,13 @@ class PY {
|
|
|
63595
63606
|
reset() {
|
|
63596
63607
|
}
|
|
63597
63608
|
}
|
|
63598
|
-
class
|
|
63609
|
+
class RY {
|
|
63599
63610
|
}
|
|
63600
|
-
function
|
|
63611
|
+
function NY(e) {
|
|
63601
63612
|
let t = 0;
|
|
63602
63613
|
return function(r, o, i) {
|
|
63603
|
-
e.registry === null && (e.registry = typeof FinalizationRegistry < "u" ? new
|
|
63604
|
-
const [a] = O.useState(new
|
|
63614
|
+
e.registry === null && (e.registry = typeof FinalizationRegistry < "u" ? new MY() : new PY());
|
|
63615
|
+
const [a] = O.useState(new RY()), s = O.useRef(null), l = O.useRef(void 0);
|
|
63605
63616
|
l.current = i;
|
|
63606
63617
|
const u = O.useRef(null);
|
|
63607
63618
|
if (!s.current && l.current) {
|
|
@@ -63632,12 +63643,12 @@ function RY(e) {
|
|
|
63632
63643
|
}, [r, o]);
|
|
63633
63644
|
};
|
|
63634
63645
|
}
|
|
63635
|
-
const
|
|
63646
|
+
const LY = {
|
|
63636
63647
|
registry: null
|
|
63637
|
-
},
|
|
63648
|
+
}, FY = NY(LY), gx = (e = document) => {
|
|
63638
63649
|
const t = e.activeElement;
|
|
63639
63650
|
return t ? t.shadowRoot ? gx(t.shadowRoot) : t : null;
|
|
63640
|
-
},
|
|
63651
|
+
}, _Y = (e, t) => {
|
|
63641
63652
|
let n = lc(t).find((r) => {
|
|
63642
63653
|
if (!e.isItemNavigable(r))
|
|
63643
63654
|
return !1;
|
|
@@ -63653,7 +63664,7 @@ const NY = {
|
|
|
63653
63664
|
models: o,
|
|
63654
63665
|
rootRef: i
|
|
63655
63666
|
}) => {
|
|
63656
|
-
const a =
|
|
63667
|
+
const a = _Y(e, o.selectedItems.value), s = qe((y) => {
|
|
63657
63668
|
const E = typeof y == "function" ? y(n.focusedItemId) : y;
|
|
63658
63669
|
n.focusedItemId !== E && r((C) => Y({}, C, {
|
|
63659
63670
|
focusedItemId: E
|
|
@@ -63675,7 +63686,7 @@ const NY = {
|
|
|
63675
63686
|
}
|
|
63676
63687
|
s(null);
|
|
63677
63688
|
}), m = (y) => y === a;
|
|
63678
|
-
|
|
63689
|
+
FY(e, "removeItem", ({
|
|
63679
63690
|
id: y
|
|
63680
63691
|
}) => {
|
|
63681
63692
|
n.focusedItemId === y && d(null, a);
|
|
@@ -63704,7 +63715,7 @@ um.getInitialState = () => ({
|
|
|
63704
63715
|
um.params = {
|
|
63705
63716
|
onItemFocus: !0
|
|
63706
63717
|
};
|
|
63707
|
-
function
|
|
63718
|
+
function BY(e) {
|
|
63708
63719
|
return !!e && e.length === 1 && !!e.match(/\S/);
|
|
63709
63720
|
}
|
|
63710
63721
|
const bx = ({
|
|
@@ -63824,7 +63835,7 @@ const bx = ({
|
|
|
63824
63835
|
}
|
|
63825
63836
|
// Type-ahead
|
|
63826
63837
|
// TODO: Support typing multiple characters
|
|
63827
|
-
case (!h && !c.shiftKey &&
|
|
63838
|
+
case (!h && !c.shiftKey && BY(f)): {
|
|
63828
63839
|
const m = a(d, f);
|
|
63829
63840
|
m != null && (e.focusItem(c, m), c.preventDefault());
|
|
63830
63841
|
break;
|
|
@@ -63855,8 +63866,8 @@ const yx = ({
|
|
|
63855
63866
|
}
|
|
63856
63867
|
});
|
|
63857
63868
|
yx.params = {};
|
|
63858
|
-
const
|
|
63859
|
-
function
|
|
63869
|
+
const $Y = [iu, Dd, Id, um, bx, yx, Br], HY = ["ownerState"];
|
|
63870
|
+
function zY({
|
|
63860
63871
|
slots: e,
|
|
63861
63872
|
slotProps: t,
|
|
63862
63873
|
label: n,
|
|
@@ -63864,7 +63875,7 @@ function HY({
|
|
|
63864
63875
|
itemId: o,
|
|
63865
63876
|
itemsToRender: i
|
|
63866
63877
|
}) {
|
|
63867
|
-
const a = e?.item ??
|
|
63878
|
+
const a = e?.item ?? uY, s = kt({
|
|
63868
63879
|
elementType: a,
|
|
63869
63880
|
externalSlotProps: t?.item,
|
|
63870
63881
|
additionalProps: {
|
|
@@ -63876,7 +63887,7 @@ function HY({
|
|
|
63876
63887
|
itemId: o,
|
|
63877
63888
|
label: n
|
|
63878
63889
|
}
|
|
63879
|
-
}), l = et(s,
|
|
63890
|
+
}), l = et(s, HY), u = O.useMemo(() => i ? /* @__PURE__ */ p(Ex, {
|
|
63880
63891
|
itemsToRender: i,
|
|
63881
63892
|
slots: e,
|
|
63882
63893
|
slotProps: t
|
|
@@ -63892,7 +63903,7 @@ function Ex(e) {
|
|
|
63892
63903
|
slotProps: r
|
|
63893
63904
|
} = e;
|
|
63894
63905
|
return /* @__PURE__ */ p(O.Fragment, {
|
|
63895
|
-
children: t.map((o) => /* @__PURE__ */ p(
|
|
63906
|
+
children: t.map((o) => /* @__PURE__ */ p(zY, {
|
|
63896
63907
|
slots: n,
|
|
63897
63908
|
slotProps: r,
|
|
63898
63909
|
label: o.label,
|
|
@@ -63902,14 +63913,14 @@ function Ex(e) {
|
|
|
63902
63913
|
}, o.itemId))
|
|
63903
63914
|
});
|
|
63904
63915
|
}
|
|
63905
|
-
const
|
|
63916
|
+
const UY = nx(), VY = (e) => {
|
|
63906
63917
|
const {
|
|
63907
63918
|
classes: t
|
|
63908
63919
|
} = e;
|
|
63909
63920
|
return Xe({
|
|
63910
63921
|
root: ["root"]
|
|
63911
|
-
},
|
|
63912
|
-
},
|
|
63922
|
+
}, gY, t);
|
|
63923
|
+
}, WY = de("ul", {
|
|
63913
63924
|
name: "MuiRichTreeView",
|
|
63914
63925
|
slot: "Root",
|
|
63915
63926
|
overridesResolver: (e, t) => t.root
|
|
@@ -63919,29 +63930,29 @@ const zY = nx(), UY = (e) => {
|
|
|
63919
63930
|
listStyle: "none",
|
|
63920
63931
|
outline: 0,
|
|
63921
63932
|
position: "relative"
|
|
63922
|
-
}),
|
|
63923
|
-
const r =
|
|
63933
|
+
}), qY = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
63934
|
+
const r = UY({
|
|
63924
63935
|
props: t,
|
|
63925
63936
|
name: "MuiRichTreeView"
|
|
63926
63937
|
}), {
|
|
63927
63938
|
getRootProps: o,
|
|
63928
63939
|
contextValue: i,
|
|
63929
63940
|
instance: a
|
|
63930
|
-
} =
|
|
63931
|
-
plugins:
|
|
63941
|
+
} = kY({
|
|
63942
|
+
plugins: $Y,
|
|
63932
63943
|
rootRef: n,
|
|
63933
63944
|
props: r
|
|
63934
63945
|
}), {
|
|
63935
63946
|
slots: s,
|
|
63936
63947
|
slotProps: l
|
|
63937
|
-
} = r, u =
|
|
63948
|
+
} = r, u = VY(r), c = s?.root ?? WY, d = kt({
|
|
63938
63949
|
elementType: c,
|
|
63939
63950
|
externalSlotProps: l?.root,
|
|
63940
63951
|
className: u.root,
|
|
63941
63952
|
getSlotProps: o,
|
|
63942
63953
|
ownerState: r
|
|
63943
63954
|
});
|
|
63944
|
-
return /* @__PURE__ */ p(
|
|
63955
|
+
return /* @__PURE__ */ p(zq, {
|
|
63945
63956
|
value: i,
|
|
63946
63957
|
children: /* @__PURE__ */ p(c, Y({}, d, {
|
|
63947
63958
|
children: /* @__PURE__ */ p(Ex, {
|
|
@@ -63951,44 +63962,44 @@ const zY = nx(), UY = (e) => {
|
|
|
63951
63962
|
})
|
|
63952
63963
|
}))
|
|
63953
63964
|
});
|
|
63954
|
-
}),
|
|
63965
|
+
}), YY = Et([/* @__PURE__ */ p("path", {
|
|
63955
63966
|
d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
63956
63967
|
}, "0"), /* @__PURE__ */ p("path", {
|
|
63957
63968
|
d: "M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"
|
|
63958
|
-
}, "1")]),
|
|
63969
|
+
}, "1")]), jY = Et(/* @__PURE__ */ p("path", {
|
|
63959
63970
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"
|
|
63960
|
-
})), jY = Et(/* @__PURE__ */ p("path", {
|
|
63961
|
-
d: "M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"
|
|
63962
63971
|
})), KY = Et(/* @__PURE__ */ p("path", {
|
|
63972
|
+
d: "M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"
|
|
63973
|
+
})), GY = Et(/* @__PURE__ */ p("path", {
|
|
63963
63974
|
d: "M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"
|
|
63964
63975
|
}));
|
|
63965
|
-
function
|
|
63976
|
+
function XY({
|
|
63966
63977
|
items: e,
|
|
63967
63978
|
defaultExpandedItems: t,
|
|
63968
63979
|
onClickTreeNode: n
|
|
63969
63980
|
}) {
|
|
63970
63981
|
return /* @__PURE__ */ p(
|
|
63971
|
-
|
|
63982
|
+
qY,
|
|
63972
63983
|
{
|
|
63973
|
-
items:
|
|
63984
|
+
items: tj(e, n),
|
|
63974
63985
|
defaultExpandedItems: t,
|
|
63975
|
-
slots: { item:
|
|
63986
|
+
slots: { item: ej }
|
|
63976
63987
|
}
|
|
63977
63988
|
);
|
|
63978
63989
|
}
|
|
63979
|
-
const
|
|
63980
|
-
function
|
|
63990
|
+
const QY = IS(Nl);
|
|
63991
|
+
function ZY(e) {
|
|
63981
63992
|
const t = DS({
|
|
63982
63993
|
to: {
|
|
63983
63994
|
opacity: e.in ? 1 : 0,
|
|
63984
63995
|
transform: `translate3d(0,${e.in ? 0 : 20}px,0)`
|
|
63985
63996
|
}
|
|
63986
63997
|
});
|
|
63987
|
-
return /* @__PURE__ */ p(
|
|
63998
|
+
return /* @__PURE__ */ p(QY, { style: t, ...e });
|
|
63988
63999
|
}
|
|
63989
|
-
function
|
|
64000
|
+
function JY({ item: e, ...t }) {
|
|
63990
64001
|
const n = /* @__PURE__ */ z(
|
|
63991
|
-
|
|
64002
|
+
hY,
|
|
63992
64003
|
{
|
|
63993
64004
|
...t,
|
|
63994
64005
|
sx: {
|
|
@@ -63997,7 +64008,7 @@ function ZY({ item: e, ...t }) {
|
|
|
63997
64008
|
color: e.error ? "error.main" : "grey.600"
|
|
63998
64009
|
},
|
|
63999
64010
|
children: [
|
|
64000
|
-
e.fileType === "directory" && /* @__PURE__ */ p(zv, {}) || e.fileType === "notebook" && /* @__PURE__ */ p(
|
|
64011
|
+
e.fileType === "directory" && /* @__PURE__ */ p(zv, {}) || e.fileType === "notebook" && /* @__PURE__ */ p(YY, {}) || e.fileType === "model" && /* @__PURE__ */ p(GY, {}) || e.fileType == "database" && /* @__PURE__ */ p(KY, {}) || /* @__PURE__ */ p(jY, {}),
|
|
64001
64012
|
/* @__PURE__ */ p(
|
|
64002
64013
|
ke,
|
|
64003
64014
|
{
|
|
@@ -64012,7 +64023,7 @@ function ZY({ item: e, ...t }) {
|
|
|
64012
64023
|
);
|
|
64013
64024
|
return e.error ? /* @__PURE__ */ p(mn, { title: e.error, placement: "right", children: n }) : n;
|
|
64014
64025
|
}
|
|
64015
|
-
const
|
|
64026
|
+
const ej = O.forwardRef(function(t, n) {
|
|
64016
64027
|
const { id: r, itemId: o, label: i, children: a, disabled: s, ...l } = t, {
|
|
64017
64028
|
getRootProps: u,
|
|
64018
64029
|
getContentProps: c,
|
|
@@ -64021,7 +64032,7 @@ const JY = O.forwardRef(function(t, n) {
|
|
|
64021
64032
|
getGroupTransitionProps: f,
|
|
64022
64033
|
status: m,
|
|
64023
64034
|
publicAPI: b
|
|
64024
|
-
} =
|
|
64035
|
+
} = Kq({
|
|
64025
64036
|
id: r,
|
|
64026
64037
|
itemId: o,
|
|
64027
64038
|
children: a,
|
|
@@ -64029,9 +64040,9 @@ const JY = O.forwardRef(function(t, n) {
|
|
|
64029
64040
|
disabled: s,
|
|
64030
64041
|
rootRef: n
|
|
64031
64042
|
}), y = b.getItem(o);
|
|
64032
|
-
return m.selected = !1, m.focused = !1, /* @__PURE__ */ p(sm, { itemId: o, children: /* @__PURE__ */ z(
|
|
64043
|
+
return m.selected = !1, m.focused = !1, /* @__PURE__ */ p(sm, { itemId: o, children: /* @__PURE__ */ z(fY, { ...u(l), children: [
|
|
64033
64044
|
/* @__PURE__ */ z(
|
|
64034
|
-
|
|
64045
|
+
pY,
|
|
64035
64046
|
{
|
|
64036
64047
|
...c(),
|
|
64037
64048
|
...y.link && {
|
|
@@ -64042,9 +64053,9 @@ const JY = O.forwardRef(function(t, n) {
|
|
|
64042
64053
|
pointerEvents: !y.selectable && "none"
|
|
64043
64054
|
},
|
|
64044
64055
|
children: [
|
|
64045
|
-
/* @__PURE__ */ p(
|
|
64056
|
+
/* @__PURE__ */ p(mY, { ...h(), children: /* @__PURE__ */ p(cY, { status: m }) }),
|
|
64046
64057
|
/* @__PURE__ */ p(
|
|
64047
|
-
|
|
64058
|
+
JY,
|
|
64048
64059
|
{
|
|
64049
64060
|
...d({
|
|
64050
64061
|
item: y
|
|
@@ -64054,10 +64065,10 @@ const JY = O.forwardRef(function(t, n) {
|
|
|
64054
64065
|
]
|
|
64055
64066
|
}
|
|
64056
64067
|
),
|
|
64057
|
-
a && /* @__PURE__ */ p(
|
|
64068
|
+
a && /* @__PURE__ */ p(ZY, { ...f() })
|
|
64058
64069
|
] }) });
|
|
64059
64070
|
});
|
|
64060
|
-
function
|
|
64071
|
+
function tj(e, t) {
|
|
64061
64072
|
const n = /* @__PURE__ */ new Map();
|
|
64062
64073
|
return e.map((r) => {
|
|
64063
64074
|
let o = n;
|
|
@@ -64098,8 +64109,8 @@ function Cx(e, t, n) {
|
|
|
64098
64109
|
}
|
|
64099
64110
|
}), r;
|
|
64100
64111
|
}
|
|
64101
|
-
const
|
|
64102
|
-
function
|
|
64112
|
+
const nj = ["notebooks/", "models/"];
|
|
64113
|
+
function rK({ onClickModelFile: e, resourceUri: t }) {
|
|
64103
64114
|
const {
|
|
64104
64115
|
environmentName: n,
|
|
64105
64116
|
packageName: r,
|
|
@@ -64127,11 +64138,11 @@ function nK({ onClickModelFile: e, resourceUri: t }) {
|
|
|
64127
64138
|
}
|
|
64128
64139
|
),
|
|
64129
64140
|
u && a.data.length > 0 && /* @__PURE__ */ p(
|
|
64130
|
-
|
|
64141
|
+
XY,
|
|
64131
64142
|
{
|
|
64132
64143
|
items: a.data.sort((c, d) => c.path.localeCompare(d.path)),
|
|
64133
64144
|
onClickTreeNode: e,
|
|
64134
|
-
defaultExpandedItems:
|
|
64145
|
+
defaultExpandedItems: nj
|
|
64135
64146
|
}
|
|
64136
64147
|
),
|
|
64137
64148
|
u && a.data.length === 0 && /* @__PURE__ */ p(ke, { variant: "body2", children: "No models found" })
|
|
@@ -64140,7 +64151,7 @@ function nK({ onClickModelFile: e, resourceUri: t }) {
|
|
|
64140
64151
|
)
|
|
64141
64152
|
] }) });
|
|
64142
64153
|
}
|
|
64143
|
-
function
|
|
64154
|
+
function rj(e) {
|
|
64144
64155
|
try {
|
|
64145
64156
|
const { environmentName: t, packageName: n, modelPath: r } = Zt(e);
|
|
64146
64157
|
return !t || !n || !r ? null : { environmentName: t, packageName: n, pagePath: r };
|
|
@@ -64148,10 +64159,16 @@ function nj(e) {
|
|
|
64148
64159
|
return null;
|
|
64149
64160
|
}
|
|
64150
64161
|
}
|
|
64151
|
-
function
|
|
64152
|
-
const { server: t, apiClients: n } = _t(), r =
|
|
64153
|
-
|
|
64154
|
-
|
|
64162
|
+
function oK({ resourceUri: e }) {
|
|
64163
|
+
const { server: t, apiClients: n } = _t(), r = rj(e), o = r?.environmentName ?? "", i = r?.packageName ?? "", a = r?.pagePath ?? "", s = Ft(
|
|
64164
|
+
() => Aq({
|
|
64165
|
+
server: t,
|
|
64166
|
+
environmentName: o,
|
|
64167
|
+
packageName: i,
|
|
64168
|
+
path: a
|
|
64169
|
+
}),
|
|
64170
|
+
[t, o, i, a]
|
|
64171
|
+
), u = an({
|
|
64155
64172
|
queryKey: ["pages", o, i],
|
|
64156
64173
|
queryFn: () => n.pages.listPages(o, i),
|
|
64157
64174
|
enabled: !!r
|
|
@@ -64267,7 +64284,7 @@ function rK({ resourceUri: e }) {
|
|
|
64267
64284
|
] })
|
|
64268
64285
|
] });
|
|
64269
64286
|
}
|
|
64270
|
-
function
|
|
64287
|
+
function oj(e) {
|
|
64271
64288
|
return {
|
|
64272
64289
|
background: e.dashboardRoot,
|
|
64273
64290
|
tableBackground: e.tableBackground,
|
|
@@ -64289,7 +64306,7 @@ function rj(e) {
|
|
|
64289
64306
|
mapColor: e.mapColor
|
|
64290
64307
|
};
|
|
64291
64308
|
}
|
|
64292
|
-
function
|
|
64309
|
+
function ij(e) {
|
|
64293
64310
|
return {
|
|
64294
64311
|
"--malloy-render--font-family": e.font.family,
|
|
64295
64312
|
"--malloy-render--table-font-size": `${e.font.size}px`,
|
|
@@ -64322,7 +64339,7 @@ function oj(e) {
|
|
|
64322
64339
|
"--malloy-render--value-color": e.valueColor
|
|
64323
64340
|
};
|
|
64324
64341
|
}
|
|
64325
|
-
function
|
|
64342
|
+
function aj(e) {
|
|
64326
64343
|
const { foreground: t, axisFaint: n, font: r } = e, o = {
|
|
64327
64344
|
background: e.background,
|
|
64328
64345
|
font: r.family,
|
|
@@ -64347,7 +64364,7 @@ function ij(e) {
|
|
|
64347
64364
|
};
|
|
64348
64365
|
return (i) => o;
|
|
64349
64366
|
}
|
|
64350
|
-
function
|
|
64367
|
+
function sj(e) {
|
|
64351
64368
|
if (!e) return;
|
|
64352
64369
|
const t = e.tag("theme");
|
|
64353
64370
|
if (!t) return;
|
|
@@ -64372,26 +64389,26 @@ function aj(e) {
|
|
|
64372
64389
|
}
|
|
64373
64390
|
return Object.keys(n).length > 0 ? n : void 0;
|
|
64374
64391
|
}
|
|
64375
|
-
const
|
|
64392
|
+
const lj = async (e, t) => {
|
|
64376
64393
|
if (typeof window > "u")
|
|
64377
64394
|
throw new Error("MalloyRenderer can only be used in browser environment");
|
|
64378
64395
|
const { MalloyRenderer: n } = await import("@malloydata/render");
|
|
64379
64396
|
return new n({
|
|
64380
64397
|
onClick: t,
|
|
64381
|
-
vegaConfigOverride:
|
|
64398
|
+
vegaConfigOverride: aj(e),
|
|
64382
64399
|
// Pass the explicit theme so table chrome and dashboard tiles
|
|
64383
64400
|
// pick up the operator's colours directly. Without this the
|
|
64384
64401
|
// renderer's own inline style writes `--malloy-render--*` values
|
|
64385
64402
|
// sourced from its built-in defaults and shadows whatever we set
|
|
64386
64403
|
// on the outer wrapper.
|
|
64387
|
-
theme:
|
|
64404
|
+
theme: oj(e),
|
|
64388
64405
|
onError: (o) => {
|
|
64389
64406
|
console.error("Error rendering visualization:", typeof o, o);
|
|
64390
64407
|
}
|
|
64391
64408
|
}).createViz();
|
|
64392
64409
|
};
|
|
64393
64410
|
typeof window < "u" && import("@malloydata/render");
|
|
64394
|
-
async function
|
|
64411
|
+
async function uj(e) {
|
|
64395
64412
|
if (!e || typeof e != "object") return;
|
|
64396
64413
|
const t = e, n = [
|
|
64397
64414
|
...Array.isArray(t.model_annotations) ? t.model_annotations : [],
|
|
@@ -64407,7 +64424,7 @@ async function lj(e) {
|
|
|
64407
64424
|
}
|
|
64408
64425
|
try {
|
|
64409
64426
|
const { tag: o } = r(n);
|
|
64410
|
-
return
|
|
64427
|
+
return sj(o);
|
|
64411
64428
|
} catch (o) {
|
|
64412
64429
|
console.warn(
|
|
64413
64430
|
"Failed to parse # theme.* annotations; chart will render with the shell theme.",
|
|
@@ -64416,12 +64433,12 @@ async function lj(e) {
|
|
|
64416
64433
|
return;
|
|
64417
64434
|
}
|
|
64418
64435
|
}
|
|
64419
|
-
function
|
|
64420
|
-
const n =
|
|
64436
|
+
function cj(e, t) {
|
|
64437
|
+
const n = ij(t);
|
|
64421
64438
|
for (const [r, o] of Object.entries(n))
|
|
64422
64439
|
e.style.setProperty(r, o);
|
|
64423
64440
|
}
|
|
64424
|
-
const
|
|
64441
|
+
const dj = `
|
|
64425
64442
|
/* dashboard.css hardcodes background: #f7f9fc on .malloy-dashboard
|
|
64426
64443
|
and .dashboard-row-header, which would paint light grey in dark
|
|
64427
64444
|
mode and also bleed an operator-picked palette.background across
|
|
@@ -64494,12 +64511,12 @@ div.malloy-render .malloy-dashboard .dashboard-row-header {
|
|
|
64494
64511
|
color: var(--malloy-render--table-header-color) !important;
|
|
64495
64512
|
}
|
|
64496
64513
|
`, Xb = "publisher-malloy-renderer-overrides";
|
|
64497
|
-
function
|
|
64514
|
+
function fj() {
|
|
64498
64515
|
if (typeof document > "u" || document.getElementById(Xb)) return;
|
|
64499
64516
|
const e = document.createElement("style");
|
|
64500
|
-
e.id = Xb, e.textContent =
|
|
64517
|
+
e.id = Xb, e.textContent = dj, document.head.appendChild(e);
|
|
64501
64518
|
}
|
|
64502
|
-
function
|
|
64519
|
+
function pj({
|
|
64503
64520
|
result: e,
|
|
64504
64521
|
height: t,
|
|
64505
64522
|
onDrill: n,
|
|
@@ -64512,7 +64529,7 @@ function fj({
|
|
|
64512
64529
|
s.current += 1, a.current?.viz.remove(), a.current = null;
|
|
64513
64530
|
}, []), iS(() => {
|
|
64514
64531
|
if (!o.current || !e) return;
|
|
64515
|
-
|
|
64532
|
+
fj();
|
|
64516
64533
|
const d = o.current, h = s.current += 1;
|
|
64517
64534
|
let f = !1;
|
|
64518
64535
|
const m = () => !f && h === s.current;
|
|
@@ -64535,10 +64552,10 @@ function fj({
|
|
|
64535
64552
|
console.error("Error parsing visualization result:", H);
|
|
64536
64553
|
return;
|
|
64537
64554
|
}
|
|
64538
|
-
const T = await
|
|
64555
|
+
const T = await uj(D), R = T ? fS([...u, T], c) : l;
|
|
64539
64556
|
if (!m()) return;
|
|
64540
64557
|
try {
|
|
64541
|
-
y = await
|
|
64558
|
+
y = await lj(R, n);
|
|
64542
64559
|
} catch (H) {
|
|
64543
64560
|
console.error("Failed to create renderer:", H);
|
|
64544
64561
|
return;
|
|
@@ -64548,7 +64565,7 @@ function fj({
|
|
|
64548
64565
|
return;
|
|
64549
64566
|
}
|
|
64550
64567
|
const A = a.current;
|
|
64551
|
-
b = document.createElement("div"), b.style.width = "100%", b.style.height = "100%",
|
|
64568
|
+
b = document.createElement("div"), b.style.width = "100%", b.style.height = "100%", cj(b, R), A && (d.style.position = "relative", b.style.position = "absolute", b.style.inset = "0", b.style.visibility = "hidden"), d.appendChild(b);
|
|
64552
64569
|
const N = b;
|
|
64553
64570
|
E = new MutationObserver(() => {
|
|
64554
64571
|
C && clearTimeout(C), C = setTimeout(() => {
|
|
@@ -64583,7 +64600,7 @@ function fj({
|
|
|
64583
64600
|
}
|
|
64584
64601
|
);
|
|
64585
64602
|
}
|
|
64586
|
-
function
|
|
64603
|
+
function hj(e) {
|
|
64587
64604
|
return typeof window > "u" ? /* @__PURE__ */ p(
|
|
64588
64605
|
Ae,
|
|
64589
64606
|
{
|
|
@@ -64614,13 +64631,13 @@ function pj(e) {
|
|
|
64614
64631
|
children: "Loading visualization..."
|
|
64615
64632
|
}
|
|
64616
64633
|
),
|
|
64617
|
-
children: /* @__PURE__ */ p(
|
|
64634
|
+
children: /* @__PURE__ */ p(pj, { ...e })
|
|
64618
64635
|
}
|
|
64619
64636
|
);
|
|
64620
64637
|
}
|
|
64621
|
-
const
|
|
64638
|
+
const mj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
64622
64639
|
__proto__: null,
|
|
64623
|
-
default:
|
|
64640
|
+
default: hj
|
|
64624
64641
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
64625
64642
|
function vx(e) {
|
|
64626
64643
|
return e.replace(/'/g, "\\'").replace(/\\/g, "\\\\");
|
|
@@ -64628,7 +64645,7 @@ function vx(e) {
|
|
|
64628
64645
|
function fo(e, t = !1) {
|
|
64629
64646
|
return e == null ? "null" : t ? e instanceof Date ? `@${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}` : `@${e}` : typeof e == "string" ? `'${vx(e)}'` : typeof e == "number" ? String(e) : typeof e == "boolean" ? e ? "true" : "false" : String(e);
|
|
64630
64647
|
}
|
|
64631
|
-
function
|
|
64648
|
+
function gj(e) {
|
|
64632
64649
|
const { dimensionName: t, matchType: n, value: r, value2: o } = e, i = `\`${t}\``, a = r instanceof Date;
|
|
64633
64650
|
switch (n) {
|
|
64634
64651
|
case "Equals":
|
|
@@ -64652,14 +64669,14 @@ function mj(e) {
|
|
|
64652
64669
|
return "";
|
|
64653
64670
|
}
|
|
64654
64671
|
}
|
|
64655
|
-
function
|
|
64672
|
+
function bj(e) {
|
|
64656
64673
|
if (e.length === 0)
|
|
64657
64674
|
return "";
|
|
64658
|
-
const t = e.map((n) =>
|
|
64675
|
+
const t = e.map((n) => gj(n)).filter((n) => n.length > 0);
|
|
64659
64676
|
return t.length === 0 ? "" : t.join(" and ");
|
|
64660
64677
|
}
|
|
64661
|
-
function
|
|
64662
|
-
const o =
|
|
64678
|
+
function yj(e, t, n, r = 1e3) {
|
|
64679
|
+
const o = bj(t), a = n && n.length > 0 ? `group_by: ${n.map((s) => `\`${s}\``).join(", ")}` : "select: *";
|
|
64663
64680
|
return o ? `
|
|
64664
64681
|
run: ${e} -> {
|
|
64665
64682
|
where: ${o}
|
|
@@ -64673,7 +64690,7 @@ function bj(e, t, n, r = 1e3) {
|
|
|
64673
64690
|
}
|
|
64674
64691
|
`;
|
|
64675
64692
|
}
|
|
64676
|
-
function
|
|
64693
|
+
function Ej(e) {
|
|
64677
64694
|
const {
|
|
64678
64695
|
environment: t,
|
|
64679
64696
|
package: n,
|
|
@@ -64683,7 +64700,7 @@ function yj(e) {
|
|
|
64683
64700
|
fields: a,
|
|
64684
64701
|
limit: s = 1e3
|
|
64685
64702
|
} = e, [l, u] = Ye(null), c = Ft(
|
|
64686
|
-
() =>
|
|
64703
|
+
() => yj(o, i, a, s),
|
|
64687
64704
|
[o, i, a, s]
|
|
64688
64705
|
), d = Ft(
|
|
64689
64706
|
() => hd({
|
|
@@ -64711,7 +64728,7 @@ function yj(e) {
|
|
|
64711
64728
|
canExecute: h
|
|
64712
64729
|
};
|
|
64713
64730
|
}
|
|
64714
|
-
function
|
|
64731
|
+
function iK(e, t = 5e3) {
|
|
64715
64732
|
const n = e.dimensionSpecs[0]?.source ?? "", r = e.dimensionSpecs[0]?.model ?? "", { filterStates: o, updateFilter: i, clearAllFilters: a, getActiveFilters: s } = Qv({
|
|
64716
64733
|
dimensionSpecs: e.dimensionSpecs
|
|
64717
64734
|
}), l = Ft(
|
|
@@ -64725,7 +64742,7 @@ function oK(e, t = 5e3) {
|
|
|
64725
64742
|
dimensionSpecs: e.dimensionSpecs,
|
|
64726
64743
|
versionId: e.versionId,
|
|
64727
64744
|
activeFilters: l
|
|
64728
|
-
}), b = d && !u, { embeddedQueryResult: y, queryString: E, executeQuery: C, canExecute: x } =
|
|
64745
|
+
}), b = d && !u, { embeddedQueryResult: y, queryString: E, executeQuery: C, canExecute: x } = Ej({
|
|
64729
64746
|
environment: e.environment,
|
|
64730
64747
|
package: e.package,
|
|
64731
64748
|
model: r,
|
|
@@ -64755,7 +64772,7 @@ function oK(e, t = 5e3) {
|
|
|
64755
64772
|
canExecute: x
|
|
64756
64773
|
};
|
|
64757
64774
|
}
|
|
64758
|
-
function
|
|
64775
|
+
function aK({
|
|
64759
64776
|
modelPath: e,
|
|
64760
64777
|
query: t,
|
|
64761
64778
|
sourceName: n,
|
|
@@ -64802,44 +64819,45 @@ function iK({
|
|
|
64802
64819
|
};
|
|
64803
64820
|
}
|
|
64804
64821
|
export {
|
|
64805
|
-
|
|
64806
|
-
|
|
64822
|
+
ai as $,
|
|
64823
|
+
Hj as A,
|
|
64807
64824
|
nK as B,
|
|
64808
64825
|
m9 as C,
|
|
64809
64826
|
_W as D,
|
|
64810
|
-
|
|
64827
|
+
Kj as E,
|
|
64811
64828
|
rK as F,
|
|
64812
|
-
|
|
64813
|
-
|
|
64814
|
-
|
|
64815
|
-
|
|
64816
|
-
|
|
64829
|
+
oK as G,
|
|
64830
|
+
Jj as H,
|
|
64831
|
+
tK as I,
|
|
64832
|
+
Jv as J,
|
|
64833
|
+
Zl as K,
|
|
64817
64834
|
Hn as L,
|
|
64818
|
-
|
|
64835
|
+
jj as M,
|
|
64819
64836
|
wq as N,
|
|
64820
|
-
|
|
64837
|
+
z8 as O,
|
|
64821
64838
|
w9 as P,
|
|
64822
64839
|
xq as Q,
|
|
64823
|
-
|
|
64840
|
+
hj as R,
|
|
64824
64841
|
iC as S,
|
|
64825
|
-
|
|
64826
|
-
|
|
64827
|
-
|
|
64828
|
-
|
|
64829
|
-
|
|
64830
|
-
|
|
64831
|
-
|
|
64832
|
-
|
|
64842
|
+
_j as T,
|
|
64843
|
+
$j as U,
|
|
64844
|
+
nl as V,
|
|
64845
|
+
Bj as W,
|
|
64846
|
+
Qv as X,
|
|
64847
|
+
iK as Y,
|
|
64848
|
+
Ej as Z,
|
|
64849
|
+
Gv as _,
|
|
64833
64850
|
jp as a,
|
|
64834
|
-
|
|
64835
|
-
|
|
64836
|
-
|
|
64851
|
+
lq as a0,
|
|
64852
|
+
mq as a1,
|
|
64853
|
+
hq as a2,
|
|
64837
64854
|
oj as a3,
|
|
64838
64855
|
ij as a4,
|
|
64839
64856
|
aj as a5,
|
|
64840
|
-
|
|
64841
|
-
|
|
64842
|
-
|
|
64857
|
+
sj as a6,
|
|
64858
|
+
Zt as a7,
|
|
64859
|
+
hd as a8,
|
|
64860
|
+
ml as a9,
|
|
64843
64861
|
Gp as b,
|
|
64844
64862
|
dg as c,
|
|
64845
64863
|
X4 as d,
|
|
@@ -64847,22 +64865,22 @@ export {
|
|
|
64847
64865
|
nd as f,
|
|
64848
64866
|
UW as g,
|
|
64849
64867
|
Yl as h,
|
|
64850
|
-
|
|
64851
|
-
|
|
64852
|
-
|
|
64853
|
-
|
|
64854
|
-
|
|
64855
|
-
|
|
64856
|
-
|
|
64857
|
-
|
|
64858
|
-
|
|
64859
|
-
|
|
64868
|
+
Qj as i,
|
|
64869
|
+
Xj as j,
|
|
64870
|
+
Gj as k,
|
|
64871
|
+
Zj as l,
|
|
64872
|
+
zW as m,
|
|
64873
|
+
$W as n,
|
|
64874
|
+
BW as o,
|
|
64875
|
+
Aq as p,
|
|
64876
|
+
H_ as q,
|
|
64877
|
+
eK as r,
|
|
64860
64878
|
Wi as s,
|
|
64861
|
-
|
|
64862
|
-
|
|
64863
|
-
|
|
64879
|
+
Yv as t,
|
|
64880
|
+
aK as u,
|
|
64881
|
+
jv as v,
|
|
64864
64882
|
Fy as w,
|
|
64865
|
-
|
|
64866
|
-
|
|
64883
|
+
P8 as x,
|
|
64884
|
+
qv as y,
|
|
64867
64885
|
sh as z
|
|
64868
64886
|
};
|