@sheetxl/studio-mui 0.8.0-beta.17 → 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/{CaI0Mfu6ECDIzCpr.mjs → 3pGM81cqNJ8DDWp_.mjs} +2 -2
- package/browser/esm/{DwiKIdqmaBk2pTBp.mjs → 8nIjNjh3EYKTlgnw.mjs} +8 -8
- package/browser/esm/B0NC2aGu9jgdelTz.mjs +14 -0
- package/browser/esm/{fSCwNKAcSc0mr2Ec.mjs → B2nWe09MDoBLwo_k.mjs} +1 -1
- package/browser/esm/{sjJ2Yb_cf_KL--Cl.mjs → B45dW1aZ8s9mufl_.mjs} +2 -2
- package/browser/esm/{BTb_Djaoxz3G27t-.mjs → B83kgckQsC0aY0NE.mjs} +5 -5
- package/browser/esm/{D9ija-5d57x-qUQv.mjs → B95vnhVq0KnbcA_Y.mjs} +1 -1
- package/browser/esm/{ChORBNItvZW0e8Nb.mjs → BBbQjMATTPG16Lr9.mjs} +1 -1
- package/browser/esm/{mP32LfcEodsaGDPi.mjs → BC0b8N0c-Yenu46_.mjs} +5 -5
- package/browser/esm/{BkABsPS9qbyYS2i7.mjs → BCJ3o3M62lsBKbae.mjs} +1 -1
- package/browser/esm/{Cb3HSSD7snyRPNh8.mjs → BJY1GNwcHIjXI6Dy.mjs} +1 -1
- package/browser/esm/{BnLdmQ91UIGs0zyR.mjs → BLZvY9XJL32hg1F-.mjs} +1 -1
- package/browser/esm/{Dx0ymWD1uI_Q63eZ.mjs → BMfZqSxbgNWsKjqY.mjs} +2 -2
- package/browser/esm/{C8kveDS4xm6D2Aaq.mjs → BQjxD6zW8juryZHL.mjs} +2 -2
- package/browser/esm/{BFN88LECqMerqLYN.mjs → BRfhOI9RpekZBcrO.mjs} +6 -6
- package/browser/esm/{g_bvg4HpyaF6f_JY.mjs → BSmY1OUM8_F-moJ0.mjs} +4 -4
- package/browser/esm/{BGNhe08mdWf8dIuk.mjs → BUr5VGHQCYpQeran.mjs} +5 -5
- package/browser/esm/{CvzzESAZRMWQ4cGq.mjs → B_Vk87a5g9DxCz2O.mjs} +5 -5
- package/browser/esm/{CMIM0wPs_KvfwLEl.mjs → Bece9zSczcJRj6iF.mjs} +2 -2
- package/browser/esm/{JqMZ95e5lhq09vm6.mjs → BgxFFejwP2YXqYGy.mjs} +2 -2
- package/browser/esm/{B2LvYLt27hzoarA9.mjs → BhHlzIhnBJqfHSKP.mjs} +2361 -2110
- package/browser/esm/{CmMD76_yBG4xmsEr.mjs → Bik5wGC75z2BvotX.mjs} +3 -3
- package/browser/esm/{DK39s_Fn9M22RfJm.mjs → BjdZOM-UvDoJaYFo.mjs} +2 -2
- package/browser/esm/{DmBu6kgMNT26tmsZ.mjs → Bkw1PteOYKjHz41s.mjs} +3 -3
- package/browser/esm/{DxFw-07oIjr7GRb3.mjs → BlE9-hSf71ZoAM0M.mjs} +1 -1
- package/browser/esm/{DGkQsCJP29nZteu8.mjs → BsBeOKW7EhSZ9E5v.mjs} +4 -4
- package/browser/esm/{DrtEkQTJM7oPvC9v.mjs → Bscb3ZfordY8Cyzo.mjs} +2 -2
- package/browser/esm/{_PlChb18jQMPAKJX.mjs → C8FnFcYHBHv7mRsK.mjs} +36 -36
- package/browser/esm/{GqSAEzE_2tOJlvNG.mjs → C8sDMsI-mfPVArSI.mjs} +2 -2
- package/browser/esm/{Bh1YkrKuSZs-xdlw.mjs → CDuVmLEi65HzZ-mo.mjs} +2 -2
- package/browser/esm/{BXhWCOPioL48V_9k.mjs → CEjud4n-8EggO2Im.mjs} +1 -1
- package/browser/esm/{LaC0D0C9yJ8y_l6X.mjs → CLVbEJee8eD3qMJR.mjs} +8 -8
- package/browser/esm/{BBGsto_-YGhTouc9.mjs → CMEIC_DYikQRzC9L.mjs} +602 -601
- package/browser/esm/{BNfIFd07bhGqs-U9.mjs → CUi2AR-pqVbpTLq4.mjs} +1 -1
- package/browser/esm/{BxHaU8-LCw4IHrDn.mjs → CdFz-uXCDYgv_iOM.mjs} +1 -1
- package/browser/esm/{C2ZbV5cXpGPYeqM1.mjs → Cmm97cKH5IugcalW.mjs} +1 -1
- package/browser/esm/{BoXCzcrUFER3B585.mjs → Cp6H28QXgHRfTJ_n.mjs} +4 -4
- package/browser/esm/{DL0r5MrPx8CkL_r_.mjs → CtJpnIXloxW2qFGC.mjs} +4 -4
- package/browser/esm/{D1_8p15KJ7DSZEis.mjs → CzGACZ7X-3Z7pXxH.mjs} +2 -2
- package/browser/esm/D1EKHirhjR-MmeXo.mjs +8 -0
- package/browser/esm/{Cvbms6f8QMP1ubyI.mjs → D3mfQHjRbA8iPLtv.mjs} +2 -2
- package/browser/esm/{D2Kz08pq5zPz2n3y.mjs → D4LGe9Sxrf-egOPN.mjs} +1 -1
- package/browser/esm/{DQjJFUPHg_aU2BDi.mjs → D5fCoDA2NoOFViRy.mjs} +4 -4
- package/browser/esm/{CP-c6sUINCv0Nf4P.mjs → D9ObD_aKgMWUPN0P.mjs} +4 -4
- package/browser/esm/{D078ssKRI39FdHNq.mjs → DApXGOAXNdSZdYbT.mjs} +2 -2
- package/browser/esm/{0FLmtunmoRFjO-dk.mjs → DIC6M937GziE0_9l.mjs} +2 -2
- package/browser/esm/{cNsbq0TIia7SdBHP.mjs → DJTesgYNvoQv2Obl.mjs} +4 -4
- package/browser/esm/{W5Rvml-3G4XekwoR.mjs → DM9uGmTSDdyoRyRM.mjs} +3 -3
- package/browser/esm/{BnMZSJdWZzdK-AXs.mjs → DMWgj1E1kYrTdAnf.mjs} +3 -3
- package/browser/esm/{BEIcp6BzAg3H6JBB.mjs → DeJenn9MUICppyMl.mjs} +2 -2
- package/browser/esm/{NQzIcNkm0QxNuzx9.mjs → DhXTTl8_kMjearig.mjs} +1 -1
- package/browser/esm/Dp2cNfLOjOTs8V8x.mjs +267 -0
- package/browser/esm/{D4FRExfK7RsdS08S.mjs → Dvjjsols1lZ1qITL.mjs} +1 -1
- package/browser/esm/{CHm8-sLarqD1--If.mjs → M-Rp0gM6kZb12Kim.mjs} +1 -1
- package/browser/esm/index.mjs +1075 -299
- package/browser/esm/{DcUtMgA17fh_UJlQ.mjs → mBFrzCJis1-EVKL7.mjs} +1 -1
- package/browser/esm/{CuysyoZ-rmDHwaJJ.mjs → p4Q_TpZ_s60_L7Ux.mjs} +1 -1
- package/browser/esm/{Cf855AHLcB7WuFr3.mjs → s1DZ7iQHOb3R9G7m.mjs} +2 -2
- package/browser/esm/v2EnJ1fOZEXqAVlO.mjs +94 -0
- package/browser/esm/{Dd6iR6EeV81idc-J.mjs → z7Sn4ncaTwiv23Fv.mjs} +4 -4
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{sHdUrEwlYxyLkkL6.mjs → 9pdLzab-4aEax8pG.mjs} +3 -3
- package/node/esm/{Bp6WSG8tmXefxSlk.mjs → B16pFUEecGy6x7Sf.mjs} +2 -2
- package/node/esm/{CCy_wcDWd9xbQnyM.mjs → B47JoJYzEtS6ivoC.mjs} +1 -1
- package/node/esm/{Jp--thwzf0FSnHTH.mjs → B90Z94PB2O0Upt5h.mjs} +1 -1
- package/node/esm/{CD-S0_rfDY5u82_A.mjs → BB5L5Y9qCXXDTqg-.mjs} +1 -1
- package/node/esm/{D1XvISMVj1HimOTS.mjs → BUzCcr3jpBtj-9vH.mjs} +13 -13
- package/node/esm/{BzLnWJ1JhLnookTH.mjs → BdiSsEIgA0Pvd6bN.mjs} +1 -1
- package/node/esm/{lhMHEjzlz63h_qU0.mjs → BjEZxA3zF89uf47R.mjs} +188 -188
- package/node/esm/{DMfK0wa8UHeJyxii.mjs → BjwbCQEJ3tllXtIc.mjs} +340 -335
- package/node/esm/{CA2iwgwOkAwRJU9j.mjs → Bkeg-KR5CHgIgCHZ.mjs} +1 -1
- package/node/esm/{DJuEU0TbZXyTnThP.mjs → BpJ0H2dpKtg21Mtw.mjs} +3 -3
- package/node/esm/{r8bpi-MSpulvmozZ.mjs → BulNRuKygH0oLixF.mjs} +1 -1
- package/node/esm/{CQd5k9d0BWpU8yCQ.mjs → CASMs7A6E_qrcIMk.mjs} +1 -1
- package/node/esm/{D2ZUCui3Xosjj66H.mjs → CDbGB8TtNQhkBXqI.mjs} +1 -1
- package/node/esm/{Cb0TicO5Utg9e5Qy.mjs → CF7peiUJfmOOPRFn.mjs} +1 -1
- package/node/esm/{BINV_bzMi8YLqzor.mjs → CGZ_p4-_DZzlvhMG.mjs} +2 -2
- package/node/esm/{BWl0RjNZfoJvRX_2.mjs → CHaPiJTvsCR2Z3sC.mjs} +4 -4
- package/node/esm/{D71TbUFABfTixyiQ.mjs → CIAX0QoWY_xslYfv.mjs} +9 -9
- package/node/esm/{BrHbeFtSmaPq19cu.mjs → CPHJFMyFxjErRLvR.mjs} +2 -2
- package/node/esm/{akKdwInE4KLNjHQu.mjs → CY-1AXXWawiEXRDw.mjs} +3 -3
- package/node/esm/{DYRV7b1ZSbxrjcuA.mjs → CYP_F_suVtfwdtBl.mjs} +2 -2
- package/node/esm/{D9jTg0iWTubkisDB.mjs → ClDMRc2s0BBAKhHL.mjs} +5 -5
- package/node/esm/{Dm-skjfQUaumyQPp.mjs → D7-QWEykZGrgV_xs.mjs} +18 -18
- package/node/esm/{BySbwlaepgugcINA.mjs → D9Wle8u7Cs7tigPT.mjs} +4 -4
- package/node/esm/{DHiJ5D_q7YVsClMf.mjs → DCDqfmTkvT0D2Z5h.mjs} +2 -2
- package/node/esm/DGzJYFzo02DBhqYC.mjs +14 -0
- package/node/esm/DN7uFaCytRrXMJpu.mjs +267 -0
- package/node/esm/{D7__y1LhVOR38yxz.mjs → DSAtnDj1sXUS0LYj.mjs} +1 -1
- package/node/esm/{5Kkr-d9gc7GsfmI5.mjs → DV5zGC0IZiv_lqwa.mjs} +1 -1
- package/node/esm/{BiVdQ27eA1Rs9liu.mjs → DhKvwk063hs0qEKD.mjs} +1 -1
- package/node/esm/{ClwmPxZc7Uh4nRcr.mjs → DiCErpAUUdV9xdwZ.mjs} +1 -1
- package/node/esm/{DvN4Z2Hx4Es0sdaK.mjs → Dp-aLdsFlu4Aw1Li.mjs} +4 -4
- package/node/esm/{B6YmbuWU-fHrjOnB.mjs → DqZ4g3pHAK7bKVvG.mjs} +1 -1
- package/node/esm/DssxcB0PnN-PgzzK.mjs +94 -0
- package/node/esm/{axzlGUKK8euccdja.mjs → DzwUDrXp4uuQ6bv0.mjs} +2 -2
- package/node/esm/{C-Y0ELSBNT5h6V0l.mjs → _gNQ05R589In7vSm.mjs} +3 -3
- package/node/esm/{BGWb71anMM4S4UTg.mjs → e_kM3nD2aaiphEoS.mjs} +22 -22
- package/node/esm/{a69xG_vSg2OC9_22.mjs → i0R7voLYNUjkbop2.mjs} +1 -1
- package/node/esm/index.mjs +4827 -3799
- package/node/esm/{DN2KKVrC1ye0mldi.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 +29 -0
- package/resources/locales/de/ui.msg.json +48 -0
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +29 -0
- package/resources/locales/en/ui.msg.json +48 -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/command/ColorCommandButton.d.ts +5 -0
- 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/dialog/SparklineEditDialog.d.ts +10 -0
- package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
- package/types/src/format/FormatPlugin.d.ts +1 -6
- package/types/src/formulaBar/IFormulaBar.d.ts +17 -1
- package/types/src/formulaBar/MobileFormulaBar.d.ts +11 -2
- 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/studio/StudioProps.d.ts +16 -9
- package/types/src/studio/useStudioApp.d.ts +6 -0
- package/types/src/table/TablePlugin.d.ts +1 -1
- package/browser/esm/Dd8j9U2Vlvrue2LA.mjs +0 -212
- package/node/esm/CyxhIZwqwx_Kt70P.mjs +0 -212
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { PresenceStore, PresenceHost } from '@sheetxl/react';
|
|
3
|
+
/** What {@link PresencePlugin} hands the host to mount. */
|
|
4
|
+
export interface PresencePluginInstance {
|
|
5
|
+
/** The session's state. Bind the live workbook with `store.bind(workbook)` once it loads. */
|
|
6
|
+
store: PresenceStore;
|
|
7
|
+
/** For Studio's `topRight` slot. */
|
|
8
|
+
strip: ReactElement;
|
|
9
|
+
/** Rendered alongside Studio: Esc clearing the agent's working cursor. */
|
|
10
|
+
overlay: ReactElement;
|
|
11
|
+
/** Removes everything the plugin registered and stops the store. */
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Presence: an agent working in the view. Its findings on the grid, the strip, and the `agent` task
|
|
16
|
+
* pane, fed by one {@link PresenceHost}.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Registers the task pane, the commands (`showAgentPane`, `clearAgentFindings` on the `workbook`
|
|
20
|
+
* scope), their icons and chrome, and the findings layer: a `RangeAnnotationLayer` on every sheet,
|
|
21
|
+
* drawing only the bound session's annotations. Returns the store and what the host mounts:
|
|
22
|
+
*
|
|
23
|
+
* ```tsx
|
|
24
|
+
* const presence = PresencePlugin(host);
|
|
25
|
+
* presence.store.bind(workbook);
|
|
26
|
+
* <Studio topRight={presence.strip} />
|
|
27
|
+
* {presence.overlay}
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function PresencePlugin(host: PresenceHost): PresencePluginInstance;
|
|
31
|
+
//# sourceMappingURL=PresencePlugin.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PresenceStore } from '@sheetxl/react';
|
|
3
|
+
export interface PresenceStripProps {
|
|
4
|
+
store: PresenceStore;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The agent control for Studio's `topRight` slot. One control, three states:
|
|
8
|
+
*
|
|
9
|
+
* 1. **Quiet** — the agent button only (it pulses on each tool call).
|
|
10
|
+
* 2. **Badge** — the findings' count and, separately, a warning mark when a prompt is waiting on the
|
|
11
|
+
* user. A prompt never adds to the count, and it does not hide the findings: the prompt sits on
|
|
12
|
+
* top, it is not modal. While the agent has its `working` cursor up, the pill's border breathes
|
|
13
|
+
* in the cursor's color and a mark (its label in the tooltip; click to go there) sits in it — the
|
|
14
|
+
* cursor's only chip: on the grid it is a box alone, and it is never counted.
|
|
15
|
+
* 3. **Expanded** — `x / n`, previous, next, dismiss; slides out to the left. Hovering the badge
|
|
16
|
+
* expands it while the pointer stays; the pin (or clicking the badge) keeps it open.
|
|
17
|
+
*
|
|
18
|
+
* The agent button at the end is there in every state: its quick action toggles the agent pane,
|
|
19
|
+
* and its menu is the home for the other agent commands.
|
|
20
|
+
*/
|
|
21
|
+
export declare const PresenceStrip: React.FC<PresenceStripProps>;
|
|
22
|
+
//# sourceMappingURL=PresenceStrip.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PresenceStore, TaskPaneProps } from '@sheetxl/react';
|
|
3
|
+
export interface PresenceTaskPaneProps extends TaskPaneProps {
|
|
4
|
+
store: PresenceStore;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* **Agent** — two tabs. *Review*: what the agent pointed at for the user (live findings, as cards).
|
|
8
|
+
* *History*: one log of every finding raised and every change made, searchable — anything that has
|
|
9
|
+
* happened is a record, shown as a timeline rather than a card. Under both, the agent's status: what
|
|
10
|
+
* it is waiting on and what it is working on.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PresenceTaskPane: React.MemoExoticComponent<(props: PresenceTaskPaneProps) => React.JSX.Element>;
|
|
13
|
+
//# sourceMappingURL=PresenceTaskPane.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A record of what happened, as a timeline: flat rows on a rail, one dot per entry. Deliberately not
|
|
4
|
+
* cards — a card reads as an object to manage, and a record is settled.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Timeline: React.FC<{
|
|
7
|
+
className?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export interface TimelineEntryProps {
|
|
11
|
+
/** The entry's dot — who or what it was (an intent's color, the agent's). */
|
|
12
|
+
dotColor: string;
|
|
13
|
+
primary: React.ReactNode;
|
|
14
|
+
/** The quiet line under it: when, or where. */
|
|
15
|
+
secondary?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Shown at the row's top right while it is hovered or focused — the row tints, so the action reads
|
|
18
|
+
* as the row's. Each should stop its click from reaching the row.
|
|
19
|
+
*/
|
|
20
|
+
actions?: React.ReactNode;
|
|
21
|
+
/** What clicking the row does. Ignored when there are {@link details}: the click discloses them. */
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
/** Disclosed in place under the row. */
|
|
24
|
+
details?: React.ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
/** One {@link Timeline} entry: a row with its dot on the rail, actions on hover, details on click. */
|
|
28
|
+
export declare const TimelineEntry: React.FC<TimelineEntryProps>;
|
|
29
|
+
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* on Ranges. Nothing in the product references it any more; `manageProtectedRange` (the
|
|
8
8
|
* Data ribbon and the context menu) opens `manageProtection` with the tab as its argument.
|
|
9
9
|
*/
|
|
10
|
-
export declare const ProtectionPlugin: () => void;
|
|
10
|
+
export declare const ProtectionPlugin: () => (() => void);
|
|
11
11
|
//# sourceMappingURL=ProtectionPlugin.d.ts.map
|
|
@@ -4,5 +4,5 @@ export declare const ClosedShapeCategories: readonly string[];
|
|
|
4
4
|
* The studio's additions to shapes: widgets react has no MUI for, added through the shape kind's
|
|
5
5
|
* contribution points as any host's would be.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ShapePlugin: () => void;
|
|
7
|
+
export declare const ShapePlugin: () => (() => void);
|
|
8
8
|
//# sourceMappingURL=ShapePlugin.d.ts.map
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* The studio's additions to slicers, added through the slicer kind's contribution points as any
|
|
3
3
|
* host's would be.
|
|
4
4
|
*/
|
|
5
|
-
export declare const SlicerPlugin: () => void;
|
|
5
|
+
export declare const SlicerPlugin: () => (() => void);
|
|
6
6
|
//# sourceMappingURL=SlicerPlugin.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
|
|
2
|
-
import { ErrorPanelProps, LoadingPanelProps, RenderSlotFn } from '@sheetxl/utils-react';
|
|
2
|
+
import { ErrorPanelProps, LoadingPanelProps, RenderSlotFn, VirtualKeyboardMode } from '@sheetxl/utils-react';
|
|
3
3
|
import { SxProps } from '@mui/system';
|
|
4
4
|
import { Theme, ThemeOptions, PaperProps } from '@mui/material';
|
|
5
5
|
import { TaskPaneAreaProps, IWorkbookElement, WorkbookElementProps, WorkbookLoadEvent, SheetEditable } from '@sheetxl/react';
|
|
@@ -151,18 +151,25 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
151
151
|
*/
|
|
152
152
|
formulaBarPlacement?: FormulaBarPlacement | 'auto';
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
155
|
-
* so the bar stays above the virtual keyboard.
|
|
154
|
+
* How the studio makes room for the virtual keyboard while the formula bar is at the bottom.
|
|
156
155
|
*
|
|
157
|
-
*
|
|
156
|
+
* - `'float'`: the studio stays as it is and never scrolls the page; the bar's field rides the top
|
|
157
|
+
* of the keyboard, while the bar in the studio stays in place. For a studio that is part of a
|
|
158
|
+
* page.
|
|
159
|
+
* - `'resize'`: the studio shrinks to the part of the screen the keyboard leaves, so the grid, its
|
|
160
|
+
* scrollbars and the bar all stay in view above the keyboard. For a studio that is the page (what
|
|
161
|
+
* {@link @sheetxl/studio-mui!useStudioApp} sets up); in a page that scrolls it would fight the page.
|
|
162
|
+
* - `'none'`: nothing; for a host that manages the keyboard itself.
|
|
163
|
+
*
|
|
164
|
+
* @defaultValue `'float'`
|
|
158
165
|
*
|
|
159
166
|
* @remarks
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
167
|
+
* Ignored while the bar is at the top. The studio wires the two halves `@sheetxl/utils-react` offers
|
|
168
|
+
* any host: `KeyboardAccessory` (what the formula bar's field rides the keyboard in) and
|
|
169
|
+
* `useKeyboardResize` (the room a host that is the page gives up). A host without the studio's chrome
|
|
170
|
+
* makes the same choice with the same parts.
|
|
164
171
|
*/
|
|
165
|
-
|
|
172
|
+
virtualKeyboard?: VirtualKeyboardMode;
|
|
166
173
|
/**
|
|
167
174
|
* The shared cell editor. Supply a stable {@link SheetEditable} to drive the grid and
|
|
168
175
|
* formula bar through one instance (free two-way sync); omit to let the studio auto-create one.
|
|
@@ -31,6 +31,12 @@ export interface StudioAppOptions extends WindowChromeOptions, Omit<StudioProps,
|
|
|
31
31
|
* @defaultValue the latest published `@sheetxl/templates-workbook`
|
|
32
32
|
*/
|
|
33
33
|
templatePath?: string;
|
|
34
|
+
/**
|
|
35
|
+
* How the studio makes room for the virtual keyboard. See {@link StudioProps.virtualKeyboard}.
|
|
36
|
+
* @defaultValue `'resize'`: the app owns the window, so the studio shrinks to the part of the screen
|
|
37
|
+
* the keyboard leaves
|
|
38
|
+
*/
|
|
39
|
+
virtualKeyboard?: StudioProps['virtualKeyboard'];
|
|
34
40
|
/**
|
|
35
41
|
* The app's own `onWorkbookLoad` handler, run after the startup dialog. (The hook also chains your
|
|
36
42
|
* `onWorkbookChange` / `onDirtyChange`, which it needs for the window chrome.)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TablePlugin: () => void;
|
|
1
|
+
export declare const TablePlugin: () => (() => void);
|
|
2
2
|
//# sourceMappingURL=TablePlugin.d.ts.map
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.17
|
|
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.17
|
|
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 };
|