@sheetxl/studio-mui 0.8.0-beta.18 → 0.8.0-beta.19
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/browser/esm/{D2ujgcJO_g-Wz6tL.mjs → 3pGM81cqNJ8DDWp_.mjs} +2 -2
- package/browser/esm/{C7BnTVpLGgX_kcmJ.mjs → 8nIjNjh3EYKTlgnw.mjs} +8 -8
- package/browser/esm/{BJcmwuzslRchDgSF.mjs → B0NC2aGu9jgdelTz.mjs} +2 -2
- package/browser/esm/{C7X9krI43CU4eg6-.mjs → B2nWe09MDoBLwo_k.mjs} +1 -1
- package/browser/esm/{DDv_r6PgL9U5-R5y.mjs → B45dW1aZ8s9mufl_.mjs} +2 -2
- package/browser/esm/{1i2GOCzP_uwuwLU5.mjs → B83kgckQsC0aY0NE.mjs} +5 -5
- package/browser/esm/{oBc8AkyrAEssabOC.mjs → B95vnhVq0KnbcA_Y.mjs} +1 -1
- package/browser/esm/{8bZUXEWSZi9k_S1E.mjs → BBbQjMATTPG16Lr9.mjs} +1 -1
- package/browser/esm/{fC6MZtheeHoJmQaQ.mjs → BC0b8N0c-Yenu46_.mjs} +5 -5
- package/browser/esm/{B2a4wwMYmYAKCzxQ.mjs → BCJ3o3M62lsBKbae.mjs} +1 -1
- package/browser/esm/{D5UYA-ocaqXccOz9.mjs → BJY1GNwcHIjXI6Dy.mjs} +1 -1
- package/browser/esm/{D_pfOujnkunwUDXo.mjs → BLZvY9XJL32hg1F-.mjs} +1 -1
- package/browser/esm/{CihxkgnUf8nPi34_.mjs → BMfZqSxbgNWsKjqY.mjs} +2 -2
- package/browser/esm/{DbOR86fbiNhrRKf7.mjs → BQjxD6zW8juryZHL.mjs} +2 -2
- package/browser/esm/{BZR-NXwIGzPYWmXd.mjs → BRfhOI9RpekZBcrO.mjs} +6 -6
- package/browser/esm/{yH10EsR9eo9Zthsc.mjs → BSmY1OUM8_F-moJ0.mjs} +4 -4
- package/browser/esm/{iQrP_vhW_sp4s71r.mjs → BUr5VGHQCYpQeran.mjs} +5 -5
- package/browser/esm/{BBxxJZF2EJ8Ir8C8.mjs → B_Vk87a5g9DxCz2O.mjs} +5 -5
- package/browser/esm/{BoH6LxJaD65sFjEK.mjs → Bece9zSczcJRj6iF.mjs} +2 -2
- package/browser/esm/{B3Nt_WBc1l3GCBgv.mjs → BgxFFejwP2YXqYGy.mjs} +2 -2
- package/browser/esm/{B6vJepS5vmDS-6yI.mjs → BhHlzIhnBJqfHSKP.mjs} +1649 -1554
- package/browser/esm/{C6uAkVUP0yIq5row.mjs → Bik5wGC75z2BvotX.mjs} +3 -3
- package/browser/esm/{Bzmdnbpbcxg0R51k.mjs → BjdZOM-UvDoJaYFo.mjs} +2 -2
- package/browser/esm/{BSCHqmWtrxi7hodH.mjs → Bkw1PteOYKjHz41s.mjs} +3 -3
- package/browser/esm/{BDrrR6bEk1vxHbzj.mjs → BlE9-hSf71ZoAM0M.mjs} +1 -1
- package/browser/esm/{YJgzYYp1xMzxkAHE.mjs → BsBeOKW7EhSZ9E5v.mjs} +4 -4
- package/browser/esm/{DhlfJNOvN7zFLViZ.mjs → Bscb3ZfordY8Cyzo.mjs} +2 -2
- package/browser/esm/{DLal4rukkujtOXW1.mjs → C8FnFcYHBHv7mRsK.mjs} +3 -3
- package/browser/esm/{Djn6orQ4oXLrHTGI.mjs → C8sDMsI-mfPVArSI.mjs} +2 -2
- package/browser/esm/{C7TqRPMpJZbA_OOn.mjs → CDuVmLEi65HzZ-mo.mjs} +2 -2
- package/browser/esm/{CH8ePenim5VvX--K.mjs → CEjud4n-8EggO2Im.mjs} +1 -1
- package/browser/esm/{CB5nX8EbOct6degp.mjs → CLVbEJee8eD3qMJR.mjs} +8 -8
- package/browser/esm/{D9f2rU9s6eWjt1U6.mjs → CMEIC_DYikQRzC9L.mjs} +256 -255
- package/browser/esm/{DqzQr8LRt193aj1o.mjs → CUi2AR-pqVbpTLq4.mjs} +1 -1
- package/browser/esm/{C8nsVSKrp_GHhYr3.mjs → CdFz-uXCDYgv_iOM.mjs} +1 -1
- package/browser/esm/{CDQnDyN5NoiSHowu.mjs → Cmm97cKH5IugcalW.mjs} +1 -1
- package/browser/esm/{BFlxgpwpozp1m6o7.mjs → Cp6H28QXgHRfTJ_n.mjs} +4 -4
- package/browser/esm/{D6S-Dg65OHGNEHcb.mjs → CtJpnIXloxW2qFGC.mjs} +4 -4
- package/browser/esm/{CQMlZxOt24bgmvvv.mjs → CzGACZ7X-3Z7pXxH.mjs} +2 -2
- package/browser/esm/D1EKHirhjR-MmeXo.mjs +8 -0
- package/browser/esm/{CuDRQ-pNBc-ktVy_.mjs → D3mfQHjRbA8iPLtv.mjs} +2 -2
- package/browser/esm/{BPzHePn2CiBErUXC.mjs → D4LGe9Sxrf-egOPN.mjs} +1 -1
- package/browser/esm/{CTvpV8rf9fcWohYU.mjs → D5fCoDA2NoOFViRy.mjs} +4 -4
- package/browser/esm/{C3HntWkKAjnyC3CV.mjs → D9ObD_aKgMWUPN0P.mjs} +4 -4
- package/browser/esm/{Cjy-cHM-DR-Gqk-n.mjs → DApXGOAXNdSZdYbT.mjs} +2 -2
- package/browser/esm/{DG_arYvuGh2bHE-N.mjs → DIC6M937GziE0_9l.mjs} +2 -2
- package/browser/esm/{BHlHoZ7Bg-knm5oa.mjs → DJTesgYNvoQv2Obl.mjs} +4 -4
- package/browser/esm/{lip_SyDs4iBRTs_8.mjs → DM9uGmTSDdyoRyRM.mjs} +3 -3
- package/browser/esm/{ZHTi6N8OUU6QO1QU.mjs → DMWgj1E1kYrTdAnf.mjs} +3 -3
- package/browser/esm/{By3lLqidoNB3DjVD.mjs → DeJenn9MUICppyMl.mjs} +2 -2
- package/browser/esm/{BmLvGcUzmP-znGgq.mjs → DhXTTl8_kMjearig.mjs} +1 -1
- package/browser/esm/Dp2cNfLOjOTs8V8x.mjs +267 -0
- package/browser/esm/{06WRKaJNHc_txDxr.mjs → Dvjjsols1lZ1qITL.mjs} +1 -1
- package/browser/esm/{fYmulvJHp8Wp0wmY.mjs → M-Rp0gM6kZb12Kim.mjs} +1 -1
- package/browser/esm/index.mjs +1074 -299
- package/browser/esm/{DYji4vVp9fnHsk9m.mjs → mBFrzCJis1-EVKL7.mjs} +1 -1
- package/browser/esm/{DXlf0PkvZgV_b6uG.mjs → p4Q_TpZ_s60_L7Ux.mjs} +1 -1
- package/browser/esm/{Cz5qKECCbacDmibP.mjs → s1DZ7iQHOb3R9G7m.mjs} +2 -2
- package/browser/esm/{CM6VmN79n4MRjipP.mjs → v2EnJ1fOZEXqAVlO.mjs} +2 -2
- package/browser/esm/{C2NKwzWjiJFJGukV.mjs → z7Sn4ncaTwiv23Fv.mjs} +4 -4
- package/node/esm/{DSmg7M3yRDDZkUBB.mjs → 9pdLzab-4aEax8pG.mjs} +3 -3
- package/node/esm/{DGv981h_d8G1Z3Zs.mjs → B16pFUEecGy6x7Sf.mjs} +2 -2
- package/node/esm/{DyRNwCwOwz60vRGA.mjs → B47JoJYzEtS6ivoC.mjs} +1 -1
- package/node/esm/{By_evGE-PBrgdKI6.mjs → B90Z94PB2O0Upt5h.mjs} +1 -1
- package/node/esm/{fX-2Y2Fd273TLPO2.mjs → BB5L5Y9qCXXDTqg-.mjs} +1 -1
- package/node/esm/{CpQlurB0oZqjuhgj.mjs → BUzCcr3jpBtj-9vH.mjs} +13 -13
- package/node/esm/{reyCfp4xOOgMNc9U.mjs → BdiSsEIgA0Pvd6bN.mjs} +1 -1
- package/node/esm/{Da-N8ynNfqk6THYD.mjs → BjEZxA3zF89uf47R.mjs} +188 -188
- package/node/esm/{Cs1GzAp4rTyQafpi.mjs → BjwbCQEJ3tllXtIc.mjs} +134 -130
- package/node/esm/{CLEK4zGd0mIKhiKV.mjs → Bkeg-KR5CHgIgCHZ.mjs} +1 -1
- package/node/esm/{oE4HsQTQ_4VVSUwb.mjs → BpJ0H2dpKtg21Mtw.mjs} +3 -3
- package/node/esm/{C7fI-BqM4p4WJS0l.mjs → BulNRuKygH0oLixF.mjs} +1 -1
- package/node/esm/{CFjes3wFNTOeB90c.mjs → CASMs7A6E_qrcIMk.mjs} +1 -1
- package/node/esm/{CBQ1hoazyQvlpJyI.mjs → CDbGB8TtNQhkBXqI.mjs} +1 -1
- package/node/esm/{DVc_bJM9diK0winM.mjs → CF7peiUJfmOOPRFn.mjs} +1 -1
- package/node/esm/{B9duSJ-i0VqTO5_t.mjs → CGZ_p4-_DZzlvhMG.mjs} +2 -2
- package/node/esm/{t1e3-saAZc_bj152.mjs → CHaPiJTvsCR2Z3sC.mjs} +4 -4
- package/node/esm/{DVgkD5LxGRgOyKQ6.mjs → CIAX0QoWY_xslYfv.mjs} +2 -2
- package/node/esm/{JOrOb7X9oZ8Xv7Gx.mjs → CPHJFMyFxjErRLvR.mjs} +2 -2
- package/node/esm/{Bi6LOMeX3-44pU1z.mjs → CY-1AXXWawiEXRDw.mjs} +3 -3
- package/node/esm/{FutOJu4AGdDHpujk.mjs → CYP_F_suVtfwdtBl.mjs} +2 -2
- package/node/esm/{2J7fdwNic7JOS8e6.mjs → ClDMRc2s0BBAKhHL.mjs} +5 -5
- package/node/esm/{DZYhnjts845P5iUY.mjs → D7-QWEykZGrgV_xs.mjs} +2 -2
- package/node/esm/{Djcn2kxMw3dUSbB7.mjs → D9Wle8u7Cs7tigPT.mjs} +4 -4
- package/node/esm/{D4g9aG5XNbSgg-3C.mjs → DCDqfmTkvT0D2Z5h.mjs} +2 -2
- package/node/esm/{CUtSgTUW09Qh72ST.mjs → DGzJYFzo02DBhqYC.mjs} +2 -2
- package/node/esm/DN7uFaCytRrXMJpu.mjs +267 -0
- package/node/esm/{DefzzmrMXN21wmmy.mjs → DSAtnDj1sXUS0LYj.mjs} +1 -1
- package/node/esm/{CIjBJgRnP7WbRBnA.mjs → DV5zGC0IZiv_lqwa.mjs} +1 -1
- package/node/esm/{CqYMLDeBPC2rGTWV.mjs → DhKvwk063hs0qEKD.mjs} +1 -1
- package/node/esm/{DiAOxoMTibKoi4gs.mjs → DiCErpAUUdV9xdwZ.mjs} +1 -1
- package/node/esm/{rLsP_BPGB2QEWTs8.mjs → Dp-aLdsFlu4Aw1Li.mjs} +4 -4
- package/node/esm/{5ifD6QRZEd3huWYb.mjs → DqZ4g3pHAK7bKVvG.mjs} +1 -1
- package/node/esm/{B4sLVPEb397EGucl.mjs → DssxcB0PnN-PgzzK.mjs} +1 -1
- package/node/esm/{CNZKUMbD_hGSw6do.mjs → DzwUDrXp4uuQ6bv0.mjs} +2 -2
- package/node/esm/{CUPV64pU0m9AaOfx.mjs → _gNQ05R589In7vSm.mjs} +3 -3
- package/node/esm/{NoB9LePsgjsq24TO.mjs → e_kM3nD2aaiphEoS.mjs} +2 -2
- package/node/esm/{DIqIt8CBVGmlUOmQ.mjs → i0R7voLYNUjkbop2.mjs} +1 -1
- package/node/esm/index.mjs +4586 -3716
- package/node/esm/{HLmlUPOPJh0q9Uym.mjs → viu5OtK-dXOIQdlG.mjs} +1 -1
- package/package.json +9 -9
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/groups.cmd.json +12 -0
- package/resources/locales/de/ui.msg.json +44 -0
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +12 -0
- package/resources/locales/en/ui.msg.json +44 -0
- package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
- package/types/src/anomalies/AnomaliesCommands.d.ts +8 -0
- package/types/src/anomalies/AnomaliesMessages.d.ts +30 -0
- package/types/src/anomalies/AnomaliesPlugin.d.ts +9 -2
- package/types/src/anomalies/_source.d.ts +7 -0
- package/types/src/chart/ChartPlugin.d.ts +1 -1
- package/types/src/comments/CommentsPlugin.d.ts +1 -1
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +1 -1
- package/types/src/dataValidation/DataValidationPlugin.d.ts +1 -1
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
- package/types/src/format/FormatPlugin.d.ts +1 -6
- package/types/src/index.d.ts +1 -0
- package/types/src/named/NamedPlugin.d.ts +1 -1
- package/types/src/picture/PicturePlugin.d.ts +1 -1
- package/types/src/pivot/PivotPlugin.d.ts +1 -1
- package/types/src/presence/PresenceOverlay.d.ts +14 -0
- package/types/src/presence/PresencePlugin.d.ts +31 -0
- package/types/src/presence/PresenceStrip.d.ts +22 -0
- package/types/src/presence/PresenceTaskPane.d.ts +13 -0
- package/types/src/presence/Timeline.d.ts +29 -0
- package/types/src/presence/index.d.ts +5 -0
- package/types/src/protection/ProtectionPlugin.d.ts +1 -1
- package/types/src/shape/ShapePlugin.d.ts +1 -1
- package/types/src/slicer/SlicerPlugin.d.ts +1 -1
- package/types/src/table/TablePlugin.d.ts +1 -1
- package/browser/esm/UZFY5qdFE4QR1Agm.mjs +0 -212
- package/node/esm/DmjwVOK5INfbJZkW.mjs +0 -212
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.18
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: MIT
|
|
6
|
-
*/
|
|
7
|
-
import { ICellRange as e } from "@sheetxl/sdk";
|
|
8
|
-
import { addRangeAnnotations as t, clearRangeAnnotations as n, useModelListener as r } from "@sheetxl/react";
|
|
9
|
-
import { DynamicIcon as i } from "@sheetxl/utils-react";
|
|
10
|
-
import { memo as a, useEffect as o, useState as s } from "react";
|
|
11
|
-
import { SimpleTooltip as c } from "@sheetxl/utils-mui";
|
|
12
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
13
|
-
import { Box as d, Button as f, Chip as p, IconButton as m, Typography as h } from "@mui/material";
|
|
14
|
-
var g = "anomalies", _ = {
|
|
15
|
-
formula: "Inconsistent formula",
|
|
16
|
-
formulaRange: "Omits adjacent cells",
|
|
17
|
-
numberStoredAsText: "Number stored as text",
|
|
18
|
-
emptyCellReference: "Refers to an empty cell",
|
|
19
|
-
unlockedFormula: "Unlocked formula",
|
|
20
|
-
hardcodeInRun: "Typed value in a run of formulas",
|
|
21
|
-
styleBreak: "Format break"
|
|
22
|
-
}, v = (e, t) => `'${e.getName().replace(/'/g, "''")}'!${t}`, y = (e) => {
|
|
23
|
-
let t = e.evidence, n = [];
|
|
24
|
-
return t.axis !== void 0 && n.push(t.axis === "row" ? "run left and right" : "run above and below"), t.expected !== void 0 && n.push(`run has ${t.expected}`), t.actual !== void 0 && n.push(`here ${t.actual}`), t.reference !== void 0 && n.push(`reads ${t.reference}`), t.omitted !== void 0 && n.push(`stops before ${t.omitted}`), Number(t.thickness) > 1 && n.push(`${t.thickness} thick`), Number(t.flanks) === 1 && n.push("one cell each side"), n.join(" · ");
|
|
25
|
-
}, b = a((a) => {
|
|
26
|
-
let { model: b, args: x, entryKey: S, frame: C, ref: w, ...T } = a, [E, D] = s(() => b?.getSelectedWorksheet() ?? null);
|
|
27
|
-
r(b, { onSheetsChange() {
|
|
28
|
-
D(b?.getSelectedWorksheet() ?? null);
|
|
29
|
-
} });
|
|
30
|
-
let [O, k] = s(null), [A, j] = s(() => /* @__PURE__ */ new Set()), [M, N] = s(0), [P, F] = s(E);
|
|
31
|
-
P !== E && (F(E), k(null), j(/* @__PURE__ */ new Set()));
|
|
32
|
-
let I = () => {
|
|
33
|
-
b && n(b, {
|
|
34
|
-
intent: "working",
|
|
35
|
-
source: g
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
if (o(() => I, [b]), !b || !E) return null;
|
|
39
|
-
let L = O?.filter((e) => !A.has(e.key)) ?? [], R = L.reduce((e, t) => e + t.rows * t.cols, 0);
|
|
40
|
-
return u(d, {
|
|
41
|
-
ref: w,
|
|
42
|
-
...T,
|
|
43
|
-
className: "sxl-anomalies-pane",
|
|
44
|
-
sx: {
|
|
45
|
-
display: "flex",
|
|
46
|
-
flexDirection: "column",
|
|
47
|
-
width: "100%",
|
|
48
|
-
minWidth: 0,
|
|
49
|
-
flex: "1 1 auto",
|
|
50
|
-
height: "100%",
|
|
51
|
-
minHeight: 0,
|
|
52
|
-
overflowX: "hidden"
|
|
53
|
-
},
|
|
54
|
-
children: [u(d, {
|
|
55
|
-
sx: {
|
|
56
|
-
display: "flex",
|
|
57
|
-
alignItems: "center",
|
|
58
|
-
gap: 1,
|
|
59
|
-
flex: "0 0 auto",
|
|
60
|
-
px: 1.5,
|
|
61
|
-
py: 1,
|
|
62
|
-
borderBottom: 1,
|
|
63
|
-
borderColor: "divider"
|
|
64
|
-
},
|
|
65
|
-
children: [l(f, {
|
|
66
|
-
variant: "contained",
|
|
67
|
-
size: "small",
|
|
68
|
-
sx: { textTransform: "none" },
|
|
69
|
-
onClick: () => {
|
|
70
|
-
I();
|
|
71
|
-
let t = performance.now();
|
|
72
|
-
k(((t) => {
|
|
73
|
-
let n = t.getUsedRange();
|
|
74
|
-
return n ? [...n.getRegions(e.Feature.Anomalies)].map((e) => {
|
|
75
|
-
let t = e.getCoords();
|
|
76
|
-
return {
|
|
77
|
-
key: `${t.rowStart},${t.colStart},${t.rowEnd},${t.colEnd}`,
|
|
78
|
-
coords: t,
|
|
79
|
-
address: e.getAddress(),
|
|
80
|
-
rows: e.getRowCount(),
|
|
81
|
-
cols: e.getColumnCount(),
|
|
82
|
-
anomalies: e.getCell().getAnomalies()
|
|
83
|
-
};
|
|
84
|
-
}) : [];
|
|
85
|
-
})(E)), N(Math.round(performance.now() - t)), j(/* @__PURE__ */ new Set());
|
|
86
|
-
},
|
|
87
|
-
children: "Analyze"
|
|
88
|
-
}), l(h, {
|
|
89
|
-
variant: "body2",
|
|
90
|
-
sx: {
|
|
91
|
-
color: "text.secondary",
|
|
92
|
-
minWidth: 0,
|
|
93
|
-
overflow: "hidden",
|
|
94
|
-
textOverflow: "ellipsis",
|
|
95
|
-
whiteSpace: "nowrap"
|
|
96
|
-
},
|
|
97
|
-
children: O === null ? E.getName() : `${E.getName()} · ${L.length} regions · ${R} cells · ${M} ms`
|
|
98
|
-
})]
|
|
99
|
-
}), u(d, {
|
|
100
|
-
className: "sxl-anomalies-list",
|
|
101
|
-
sx: {
|
|
102
|
-
flex: "1 1 auto",
|
|
103
|
-
minHeight: 0,
|
|
104
|
-
overflowY: "auto",
|
|
105
|
-
display: "flex",
|
|
106
|
-
flexDirection: "column",
|
|
107
|
-
gap: 1,
|
|
108
|
-
p: 1.5
|
|
109
|
-
},
|
|
110
|
-
onMouseLeave: I,
|
|
111
|
-
children: [O === null ? l(h, {
|
|
112
|
-
variant: "body2",
|
|
113
|
-
sx: { color: "text.secondary" },
|
|
114
|
-
children: "Analyze lists where this sheet breaks its own patterns."
|
|
115
|
-
}) : L.length === 0 ? l(h, {
|
|
116
|
-
variant: "body2",
|
|
117
|
-
sx: { color: "text.secondary" },
|
|
118
|
-
children: "Nothing breaks a pattern here."
|
|
119
|
-
}) : null, L.map((e) => u(d, {
|
|
120
|
-
className: "sxl-anomalies-card",
|
|
121
|
-
onMouseEnter: () => ((e) => {
|
|
122
|
-
t(b, "working", [{ range: v(E, e.address) }], { source: g });
|
|
123
|
-
})(e),
|
|
124
|
-
onClick: () => {
|
|
125
|
-
E.getRange(e.coords).select();
|
|
126
|
-
},
|
|
127
|
-
sx: {
|
|
128
|
-
display: "flex",
|
|
129
|
-
flexDirection: "column",
|
|
130
|
-
gap: .5,
|
|
131
|
-
flex: "0 0 auto",
|
|
132
|
-
border: 1,
|
|
133
|
-
borderColor: "divider",
|
|
134
|
-
borderRadius: 1,
|
|
135
|
-
px: 1.25,
|
|
136
|
-
py: 1,
|
|
137
|
-
cursor: "pointer",
|
|
138
|
-
"&:hover": { borderColor: "primary.main" }
|
|
139
|
-
},
|
|
140
|
-
children: [u(d, {
|
|
141
|
-
sx: {
|
|
142
|
-
display: "flex",
|
|
143
|
-
alignItems: "center",
|
|
144
|
-
gap: 1
|
|
145
|
-
},
|
|
146
|
-
children: [
|
|
147
|
-
l(h, {
|
|
148
|
-
variant: "body2",
|
|
149
|
-
sx: { fontWeight: 600 },
|
|
150
|
-
children: e.address
|
|
151
|
-
}),
|
|
152
|
-
l(h, {
|
|
153
|
-
variant: "caption",
|
|
154
|
-
sx: { color: "text.secondary" },
|
|
155
|
-
children: `${e.rows}×${e.cols} · rank ${e.anomalies[0]?.rank ?? 0}`
|
|
156
|
-
}),
|
|
157
|
-
l(d, { sx: { flex: "1 1 auto" } }),
|
|
158
|
-
l(c, {
|
|
159
|
-
disableInteractive: !0,
|
|
160
|
-
title: "Dismiss",
|
|
161
|
-
children: l(m, {
|
|
162
|
-
size: "small",
|
|
163
|
-
"aria-label": "Dismiss",
|
|
164
|
-
onClick: (t) => {
|
|
165
|
-
t.stopPropagation(), I(), j((t) => new Set(t).add(e.key));
|
|
166
|
-
},
|
|
167
|
-
children: l(i, { iconKey: "Close" })
|
|
168
|
-
})
|
|
169
|
-
})
|
|
170
|
-
]
|
|
171
|
-
}), e.anomalies.map((e, t) => {
|
|
172
|
-
let n = e.evidence.corroborated, r = e.evidence.layer;
|
|
173
|
-
return u(d, {
|
|
174
|
-
sx: {
|
|
175
|
-
display: "flex",
|
|
176
|
-
flexDirection: "column",
|
|
177
|
-
gap: .25
|
|
178
|
-
},
|
|
179
|
-
children: [
|
|
180
|
-
l(h, {
|
|
181
|
-
variant: "body2",
|
|
182
|
-
children: `${_[e.check] ?? e.check}${r ? ` · ${r}` : ""}`
|
|
183
|
-
}),
|
|
184
|
-
l(h, {
|
|
185
|
-
variant: "caption",
|
|
186
|
-
sx: {
|
|
187
|
-
color: "text.secondary",
|
|
188
|
-
overflowWrap: "anywhere"
|
|
189
|
-
},
|
|
190
|
-
children: y(e)
|
|
191
|
-
}),
|
|
192
|
-
Array.isArray(n) && n.length > 0 ? l(d, {
|
|
193
|
-
sx: {
|
|
194
|
-
display: "flex",
|
|
195
|
-
flexWrap: "wrap",
|
|
196
|
-
gap: .5
|
|
197
|
-
},
|
|
198
|
-
children: n.map((e) => l(p, {
|
|
199
|
-
size: "small",
|
|
200
|
-
variant: "outlined",
|
|
201
|
-
label: e
|
|
202
|
-
}, e))
|
|
203
|
-
}) : null
|
|
204
|
-
]
|
|
205
|
-
}, t);
|
|
206
|
-
})]
|
|
207
|
-
}, e.key))]
|
|
208
|
-
})]
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
b.displayName = "AnomaliesTaskPane";
|
|
212
|
-
export { b as AnomaliesTaskPane, b as default };
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.18
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: MIT
|
|
6
|
-
*/
|
|
7
|
-
import { ICellRange as e } from "@sheetxl/sdk";
|
|
8
|
-
import { addRangeAnnotations as r, clearRangeAnnotations as o, useModelListener as a } from "@sheetxl/react";
|
|
9
|
-
import { DynamicIcon as n } from "@sheetxl/utils-react";
|
|
10
|
-
import { memo as t, useEffect as l, useState as s } from "react";
|
|
11
|
-
import { SimpleTooltip as i } from "@sheetxl/utils-mui";
|
|
12
|
-
import { jsx as c, jsxs as d } from "react/jsx-runtime";
|
|
13
|
-
import { Box as m, Button as u, Chip as h, IconButton as p, Typography as x } from "@mui/material";
|
|
14
|
-
var f = "anomalies", g = {
|
|
15
|
-
formula: "Inconsistent formula",
|
|
16
|
-
formulaRange: "Omits adjacent cells",
|
|
17
|
-
numberStoredAsText: "Number stored as text",
|
|
18
|
-
emptyCellReference: "Refers to an empty cell",
|
|
19
|
-
unlockedFormula: "Unlocked formula",
|
|
20
|
-
hardcodeInRun: "Typed value in a run of formulas",
|
|
21
|
-
styleBreak: "Format break"
|
|
22
|
-
}, y = (e, r) => `'${e.getName().replace(/'/g, "''")}'!${r}`, v = (e) => {
|
|
23
|
-
const r = e.evidence, o = [];
|
|
24
|
-
return void 0 !== r.axis && o.push("row" === r.axis ? "run left and right" : "run above and below"), void 0 !== r.expected && o.push(`run has ${r.expected}`), void 0 !== r.actual && o.push(`here ${r.actual}`), void 0 !== r.reference && o.push(`reads ${r.reference}`), void 0 !== r.omitted && o.push(`stops before ${r.omitted}`), Number(r.thickness) > 1 && o.push(`${r.thickness} thick`), 1 === Number(r.flanks) && o.push("one cell each side"), o.join(" · ");
|
|
25
|
-
}, w = t((t) => {
|
|
26
|
-
const { model: w, args: k, entryKey: b, frame: $, ref: C, ...N } = t, [S, A] = s(() => w?.getSelectedWorksheet() ?? null);
|
|
27
|
-
a(w, { onSheetsChange() {
|
|
28
|
-
A(w?.getSelectedWorksheet() ?? null);
|
|
29
|
-
} });
|
|
30
|
-
const [R, W] = s(null), [D, z] = s(() => /* @__PURE__ */ new Set()), [I, T] = s(0), [j, E] = s(S);
|
|
31
|
-
j !== S && (E(S), W(null), z(/* @__PURE__ */ new Set()));
|
|
32
|
-
const F = () => {
|
|
33
|
-
w && o(w, {
|
|
34
|
-
intent: "working",
|
|
35
|
-
source: f
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
if (l(() => F, [w]), !w || !S) return null;
|
|
39
|
-
const M = R?.filter((e) => !D.has(e.key)) ?? [], B = M.reduce((e, r) => e + r.rows * r.cols, 0);
|
|
40
|
-
return d(m, {
|
|
41
|
-
ref: C,
|
|
42
|
-
...N,
|
|
43
|
-
className: "sxl-anomalies-pane",
|
|
44
|
-
sx: {
|
|
45
|
-
display: "flex",
|
|
46
|
-
flexDirection: "column",
|
|
47
|
-
width: "100%",
|
|
48
|
-
minWidth: 0,
|
|
49
|
-
flex: "1 1 auto",
|
|
50
|
-
height: "100%",
|
|
51
|
-
minHeight: 0,
|
|
52
|
-
overflowX: "hidden"
|
|
53
|
-
},
|
|
54
|
-
children: [d(m, {
|
|
55
|
-
sx: {
|
|
56
|
-
display: "flex",
|
|
57
|
-
alignItems: "center",
|
|
58
|
-
gap: 1,
|
|
59
|
-
flex: "0 0 auto",
|
|
60
|
-
px: 1.5,
|
|
61
|
-
py: 1,
|
|
62
|
-
borderBottom: 1,
|
|
63
|
-
borderColor: "divider"
|
|
64
|
-
},
|
|
65
|
-
children: [c(u, {
|
|
66
|
-
variant: "contained",
|
|
67
|
-
size: "small",
|
|
68
|
-
sx: { textTransform: "none" },
|
|
69
|
-
onClick: () => {
|
|
70
|
-
F();
|
|
71
|
-
const r = performance.now();
|
|
72
|
-
W(((r) => {
|
|
73
|
-
const o = r.getUsedRange();
|
|
74
|
-
return o ? [...o.getRegions(e.Feature.Anomalies)].map((e) => {
|
|
75
|
-
const r = e.getCoords();
|
|
76
|
-
return {
|
|
77
|
-
key: `${r.rowStart},${r.colStart},${r.rowEnd},${r.colEnd}`,
|
|
78
|
-
coords: r,
|
|
79
|
-
address: e.getAddress(),
|
|
80
|
-
rows: e.getRowCount(),
|
|
81
|
-
cols: e.getColumnCount(),
|
|
82
|
-
anomalies: e.getCell().getAnomalies()
|
|
83
|
-
};
|
|
84
|
-
}) : [];
|
|
85
|
-
})(S)), T(Math.round(performance.now() - r)), z(/* @__PURE__ */ new Set());
|
|
86
|
-
},
|
|
87
|
-
children: "Analyze"
|
|
88
|
-
}), c(x, {
|
|
89
|
-
variant: "body2",
|
|
90
|
-
sx: {
|
|
91
|
-
color: "text.secondary",
|
|
92
|
-
minWidth: 0,
|
|
93
|
-
overflow: "hidden",
|
|
94
|
-
textOverflow: "ellipsis",
|
|
95
|
-
whiteSpace: "nowrap"
|
|
96
|
-
},
|
|
97
|
-
children: null === R ? S.getName() : `${S.getName()} · ${M.length} regions · ${B} cells · ${I} ms`
|
|
98
|
-
})]
|
|
99
|
-
}), d(m, {
|
|
100
|
-
className: "sxl-anomalies-list",
|
|
101
|
-
sx: {
|
|
102
|
-
flex: "1 1 auto",
|
|
103
|
-
minHeight: 0,
|
|
104
|
-
overflowY: "auto",
|
|
105
|
-
display: "flex",
|
|
106
|
-
flexDirection: "column",
|
|
107
|
-
gap: 1,
|
|
108
|
-
p: 1.5
|
|
109
|
-
},
|
|
110
|
-
onMouseLeave: F,
|
|
111
|
-
children: [null === R ? c(x, {
|
|
112
|
-
variant: "body2",
|
|
113
|
-
sx: { color: "text.secondary" },
|
|
114
|
-
children: "Analyze lists where this sheet breaks its own patterns."
|
|
115
|
-
}) : 0 === M.length ? c(x, {
|
|
116
|
-
variant: "body2",
|
|
117
|
-
sx: { color: "text.secondary" },
|
|
118
|
-
children: "Nothing breaks a pattern here."
|
|
119
|
-
}) : null, M.map((e) => d(m, {
|
|
120
|
-
className: "sxl-anomalies-card",
|
|
121
|
-
onMouseEnter: () => ((e) => {
|
|
122
|
-
r(w, "working", [{ range: y(S, e.address) }], { source: f });
|
|
123
|
-
})(e),
|
|
124
|
-
onClick: () => {
|
|
125
|
-
S.getRange(e.coords).select();
|
|
126
|
-
},
|
|
127
|
-
sx: {
|
|
128
|
-
display: "flex",
|
|
129
|
-
flexDirection: "column",
|
|
130
|
-
gap: .5,
|
|
131
|
-
flex: "0 0 auto",
|
|
132
|
-
border: 1,
|
|
133
|
-
borderColor: "divider",
|
|
134
|
-
borderRadius: 1,
|
|
135
|
-
px: 1.25,
|
|
136
|
-
py: 1,
|
|
137
|
-
cursor: "pointer",
|
|
138
|
-
"&:hover": { borderColor: "primary.main" }
|
|
139
|
-
},
|
|
140
|
-
children: [d(m, {
|
|
141
|
-
sx: {
|
|
142
|
-
display: "flex",
|
|
143
|
-
alignItems: "center",
|
|
144
|
-
gap: 1
|
|
145
|
-
},
|
|
146
|
-
children: [
|
|
147
|
-
c(x, {
|
|
148
|
-
variant: "body2",
|
|
149
|
-
sx: { fontWeight: 600 },
|
|
150
|
-
children: e.address
|
|
151
|
-
}),
|
|
152
|
-
c(x, {
|
|
153
|
-
variant: "caption",
|
|
154
|
-
sx: { color: "text.secondary" },
|
|
155
|
-
children: `${e.rows}×${e.cols} · rank ${e.anomalies[0]?.rank ?? 0}`
|
|
156
|
-
}),
|
|
157
|
-
c(m, { sx: { flex: "1 1 auto" } }),
|
|
158
|
-
c(i, {
|
|
159
|
-
disableInteractive: !0,
|
|
160
|
-
title: "Dismiss",
|
|
161
|
-
children: c(p, {
|
|
162
|
-
size: "small",
|
|
163
|
-
"aria-label": "Dismiss",
|
|
164
|
-
onClick: (r) => {
|
|
165
|
-
r.stopPropagation(), F(), z((r) => new Set(r).add(e.key));
|
|
166
|
-
},
|
|
167
|
-
children: c(n, { iconKey: "Close" })
|
|
168
|
-
})
|
|
169
|
-
})
|
|
170
|
-
]
|
|
171
|
-
}), e.anomalies.map((e, r) => {
|
|
172
|
-
const o = e.evidence.corroborated, a = e.evidence.layer;
|
|
173
|
-
return d(m, {
|
|
174
|
-
sx: {
|
|
175
|
-
display: "flex",
|
|
176
|
-
flexDirection: "column",
|
|
177
|
-
gap: .25
|
|
178
|
-
},
|
|
179
|
-
children: [
|
|
180
|
-
c(x, {
|
|
181
|
-
variant: "body2",
|
|
182
|
-
children: `${g[e.check] ?? e.check}${a ? ` · ${a}` : ""}`
|
|
183
|
-
}),
|
|
184
|
-
c(x, {
|
|
185
|
-
variant: "caption",
|
|
186
|
-
sx: {
|
|
187
|
-
color: "text.secondary",
|
|
188
|
-
overflowWrap: "anywhere"
|
|
189
|
-
},
|
|
190
|
-
children: v(e)
|
|
191
|
-
}),
|
|
192
|
-
Array.isArray(o) && o.length > 0 ? c(m, {
|
|
193
|
-
sx: {
|
|
194
|
-
display: "flex",
|
|
195
|
-
flexWrap: "wrap",
|
|
196
|
-
gap: .5
|
|
197
|
-
},
|
|
198
|
-
children: o.map((e) => c(h, {
|
|
199
|
-
size: "small",
|
|
200
|
-
variant: "outlined",
|
|
201
|
-
label: e
|
|
202
|
-
}, e))
|
|
203
|
-
}) : null
|
|
204
|
-
]
|
|
205
|
-
}, r);
|
|
206
|
-
})]
|
|
207
|
-
}, e.key))]
|
|
208
|
-
})]
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
w.displayName = "AnomaliesTaskPane";
|
|
212
|
-
export { w as AnomaliesTaskPane, w as default };
|