@sheetxl/studio-vanilla 0.3.18 → 0.3.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/cjs/{_ziVh-PPWxWmEGfz.cjs → 2FwFu5228wr-ARkA.cjs} +3 -3
- package/browser/cjs/B32tWc1qRv4tY12p.cjs +6 -0
- package/browser/cjs/{DvjIxJUC4K8kmZsN.cjs → BA4eX47IpP00-8so.cjs} +2 -2
- package/browser/cjs/{DRPysX3BgTyOtc_X.cjs → BKPCa_z6dnIQn-0l.cjs} +1 -1
- package/browser/cjs/{D_yi3Bmt7QylbNjX.cjs → BWs24EHW-tVFgT-x.cjs} +2 -2
- package/browser/cjs/{hRorav-Vugk2j14d.cjs → BdvCvAgiry0f4S23.cjs} +1 -1
- package/browser/cjs/{DcKGSA3SMuEvjd87.cjs → CDKv578p0EwvHjZp.cjs} +1 -1
- package/browser/cjs/{DtIlU_avOLio9EiE.cjs → CIo606dkZ8lkuDJ3.cjs} +1 -1
- package/browser/cjs/{DWRHniG382TBBpFz.cjs → CY7-VXmdgBslTVMX.cjs} +3 -3
- package/browser/cjs/{BQDBBqqYeHWRLSmz.cjs → Ce6oHmr7gMYWd8Yd.cjs} +5 -5
- package/browser/cjs/{BYKCnVVe-UC0DLAg.cjs → Cfdd6ktavWDYX9ND.cjs} +1 -1
- package/browser/cjs/{DAGAHrQyWku5BzOx.cjs → Cjh4Y6CzIKElfhND.cjs} +2 -2
- package/browser/cjs/{asqh4V32TzlgSg5e.cjs → Cnk7ISRHexlfGYia.cjs} +1 -1
- package/browser/cjs/{C7S-2ysc4XzmIGIC.cjs → D0TmTI_7aDwkiyE4.cjs} +2 -2
- package/browser/cjs/{M2DWfdK0ctQctT7T.cjs → DJC4cn9wXv_q5aHy.cjs} +2 -2
- package/browser/cjs/{CfnTR1Qy-WVFzRhw.cjs → DPk0an7l4dAKSvt4.cjs} +6 -6
- package/browser/cjs/{S1ymoLlv7Uf-qfRz.cjs → DQu9kotW1g223yHH.cjs} +45 -45
- package/browser/cjs/{BqsLsLOIcCoQLkFG.cjs → Do4JoiMPrmr8e_3I.cjs} +2 -2
- package/browser/cjs/DtwZ1dCv4IJK54Md.cjs +6 -0
- package/browser/cjs/{DWmar9vh-C0GMWUE.cjs → MSGlzfMbdkBj2ODr.cjs} +1 -1
- package/browser/cjs/{Da9leDv0BrMDcAmM.cjs → USAsNV7756AJ-v-3.cjs} +1 -1
- package/browser/cjs/{Cyis9v9OePqed0Dh.cjs → bLAfby6zV0qLxdQi.cjs} +2 -2
- package/browser/cjs/{DqW0_yEVBgywVFtY.cjs → gPTujfwB4RqxIcij.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DU5bkZX7g1nGYiyr.cjs → lObc2MW6JiaOpm-q.cjs} +2 -2
- package/browser/cjs/{DvCk-FEyF55Ifc2r.cjs → mSxg83umiyMZNf9-.cjs} +2 -2
- package/browser/cjs/{fkUUKUigUVeizJCn.cjs → vWIDSfediysRj8eo.cjs} +6 -6
- package/{cdn/assets/DT7M18T3_fx1cPVf.js → browser/esm/4b-cAFWAwXYZkw0D.mjs} +1 -1
- package/browser/esm/{DscLpbq31HrJWVSt.mjs → B8OZHivNmO5OFLTi.mjs} +17 -17
- package/browser/esm/BGvOrkSiilN4Dt_5.mjs +46 -0
- package/browser/esm/{DXfVp9l0_p8tTvaN.mjs → BjXzbYB0kCMhwN3Y.mjs} +2621 -2534
- package/browser/esm/{Dmp9Rj_xUISYWU8A.mjs → BlxEnptsgkGA0_21.mjs} +9 -9
- package/{cdn/assets/Dctd5ghWrESGG3Co.js → browser/esm/Bm440-d54x4naZeO.mjs} +1 -1
- package/{cdn/assets/Bwmetegu2MJ05lq3.js → browser/esm/BnmsWZ7pB-RvN8Ce.mjs} +8 -8
- package/{cdn/assets/B048AhsMgarmATbo.js → browser/esm/BorGhlvsrSc8KIw4.mjs} +9 -9
- package/{cdn/assets/B8PLUmI-u31BZVd6.js → browser/esm/Brg-pw5qowVCqKUF.mjs} +1 -1
- package/browser/esm/{Dao0wUfvplQebarN.mjs → C2UMejLEXH1i7UT_.mjs} +3 -3
- package/{cdn/assets/Cx5_1Ld9VgK4afkO.js → browser/esm/C6ty7TIqMKf0jms4.mjs} +1 -1
- package/browser/esm/{Ds9ulL0El--2XZxz.mjs → CDha50D0Zqdh75RO.mjs} +47 -47
- package/browser/esm/{CEM1UbNtZh6zUcI4.mjs → CHNBfqp5n8JaC7UU.mjs} +3 -3
- package/{cdn/assets/D0Cgu7sUw30-mnqB.js → browser/esm/CkOpEOqipQhoCXbp.mjs} +7 -7
- package/browser/esm/{DyhSx6j-hlOPAYJZ.mjs → CxJ9wqppH10FCE7E.mjs} +2 -2
- package/browser/esm/{yBjDi6dOfUg5E0mg.mjs → D8V8o3E9AIpGCaJ0.mjs} +5 -5
- package/browser/esm/{vsshjgK_uLUMXLx1.mjs → DGbBeyHSDhhZ67G7.mjs} +91 -91
- package/browser/esm/{DmdaLSunj1pIaeEo.mjs → DHtJbuH4VrIp2owl.mjs} +4 -4
- package/browser/esm/{CxpsUomBmsPdQKN7.mjs → DNEd6u6uOJT1ngWx.mjs} +7 -7
- package/browser/esm/{B_lXgGve4BaGb9VP.mjs → DTW0B_xW-HuS3NuK.mjs} +5 -5
- package/browser/esm/{vO-cPppKuuwM-ZbD.mjs → DzowkvQRyggO7Ijl.mjs} +1 -1
- package/browser/esm/{Z1hTdWF7Gnd7lwEi.mjs → FNXLcvV7DgUq6zwL.mjs} +1 -1
- package/{cdn/assets/CMIrbndkU0UVjjQ_.js → browser/esm/SWAv_VgEKg95ORt5.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/Dp2nf7t-XHCeT9z1.js → browser/esm/vYT-yKp90JOPBqDa.mjs} +2 -2
- package/browser/esm/{Bu74cvcXGNxQ6eQO.mjs → vsx7PlJlMQvNPm_L.mjs} +1 -1
- package/browser/esm/{CCGl8RxWO4yKms9p.mjs → zovGkWpLePhgQd_n.mjs} +1 -1
- package/{browser/esm/DT7M18T3_fx1cPVf.mjs → cdn/assets/4b-cAFWAwXYZkw0D.js} +1 -1
- package/cdn/assets/{DpXpV2Nd-U9CeW99.js → 8QCrFIzHmtIoeBJm.js} +4 -4
- package/{browser/esm/5KE3eJeALYas2fJL.mjs → cdn/assets/8xNW6edqjY-klal3.js} +9 -9
- package/cdn/assets/{IXjjn0b7hP-r-rz5.js → BJlG0NMA-JM_rPkc.js} +91 -91
- package/cdn/assets/{BfCDUWippQ188QJ_.js → BNcPMWtsY8_g-EN4.js} +5 -5
- package/cdn/assets/BhwpQU1T51VKYXPZ.js +46 -0
- package/{browser/esm/Dctd5ghWrESGG3Co.mjs → cdn/assets/Bm440-d54x4naZeO.js} +1 -1
- package/{browser/esm/B8PLUmI-u31BZVd6.mjs → cdn/assets/Brg-pw5qowVCqKUF.js} +1 -1
- package/{browser/esm/xCvG1lefZTf09iDX.mjs → cdn/assets/BrkvsmfqGj5-gULd.js} +2 -2
- package/cdn/assets/{JWXHlKikGyP_aFCO.js → BtcEbQwXXgpwi-Wc.js} +17 -17
- package/cdn/assets/{BKj70d8kss8lWQ5j.js → C4-fZEqFmgf4Ryrf.js} +5 -5
- package/{browser/esm/Cx5_1Ld9VgK4afkO.mjs → cdn/assets/C6ty7TIqMKf0jms4.js} +1 -1
- package/cdn/assets/{DXkBcCCoCQhFBFpQ.js → CD48E90J73F2rFJF.js} +3 -3
- package/{browser/esm/BElryNS11jWM5tq7.mjs → cdn/assets/D3-MLKMldcoobrMe.js} +8 -8
- package/cdn/assets/{CXyKsX-Rk4hkAgns.js → DVoDFCX7Bv_zFVVi.js} +4599 -4512
- package/cdn/assets/{DcwFhmc6DauSay_m.js → DkRkxpsLaXOm1dGc.js} +7 -7
- package/cdn/assets/{b5siqWNPQWp_hlIg.js → DoNQnutyjVRliOV0.js} +2 -2
- package/cdn/assets/{DBZHYaXm5oENOlcW.js → DzXbXyuxyjtFLOXt.js} +9 -9
- package/cdn/assets/{vO-cPppKuuwM-ZbD.js → DzowkvQRyggO7Ijl.js} +1 -1
- package/cdn/assets/{Z1hTdWF7Gnd7lwEi.js → FNXLcvV7DgUq6zwL.js} +1 -1
- package/{browser/esm/CMIrbndkU0UVjjQ_.mjs → cdn/assets/SWAv_VgEKg95ORt5.js} +1 -1
- package/cdn/assets/{B5Xa0YYj-Y9Ob5he.js → TXu1jpI8ASN4INNu.js} +47 -47
- package/cdn/assets/{DXZHEN_G41ARU9aP.js → aAVhloO6mFh8WJzi.js} +3 -3
- package/cdn/assets/{Bu74cvcXGNxQ6eQO.js → vsx7PlJlMQvNPm_L.js} +1 -1
- package/{browser/esm/xQa55VzyxKLtju1P.mjs → cdn/assets/yLoKmwpXykv9-Elu.js} +7 -7
- package/cdn/assets/{CCGl8RxWO4yKms9p.js → zovGkWpLePhgQd_n.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/BYQV2q8HPKlf74j3.cjs +0 -6
- package/browser/cjs/ClYi27L-BwfwOane.cjs +0 -6
- package/browser/esm/CATPGvRDTTOuHtl8.mjs +0 -46
- package/cdn/assets/c46EuNJ8AHDaEf22.js +0 -46
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as d, jsxs as k } from "react/jsx-runtime";
|
|
2
2
|
import { memo as E, useMemo as V, useState as p, useCallback as h } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { v as u, b as L, B as S, aO as A, aP as G } from "./BjXzbYB0kCMhwN3Y.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
9
|
*/
|
|
10
|
-
const M = ["Ok", "Cancel"], z = E((
|
|
11
|
-
const { value: a = null, context: t, onOption: c, onValidateOption: P, onDone: m, onUpdate: g, options: x = M, defaultOption: f = x?.[0], cancelOption: N = "Cancel", sx:
|
|
10
|
+
const M = ["Ok", "Cancel"], z = E((v) => {
|
|
11
|
+
const { value: a = null, context: t, onOption: c, onValidateOption: P, onDone: m, onUpdate: g, options: x = M, defaultOption: f = x?.[0], cancelOption: N = "Cancel", sx: C, ...R } = v, y = V(() => t?.getNames().findValidName("Range1"), []), i = V(() => {
|
|
12
12
|
if (!a) return !0;
|
|
13
13
|
}, []), [n, w] = p({ displayText: a?.getName() ?? y, errorText: null }), [l, D] = p({ displayValue: a?.getRanges() ?? t?.selection() ?? null, errorText: null }), [T, O] = p(!1), F = h(async (e) => !n.errorText && !l.errorText, [t]), b = u((e, s, r) => {
|
|
14
14
|
if (!s) {
|
|
@@ -31,7 +31,7 @@ const M = ["Ok", "Cancel"], z = E((C) => {
|
|
|
31
31
|
}, [t, a]), j = h((e) => {
|
|
32
32
|
D({ displayValue: e ?? null, errorText: null });
|
|
33
33
|
}, []);
|
|
34
|
-
return d(L, { title: (i ? "Define" : "Edit") + " Range", options: x, onOption: b, onValidateOption: F, defaultOption: f, cancelOption: N, autoFocusSel: ".autoFocus", sx: { width: "460px", ...
|
|
34
|
+
return d(L, { title: (i ? "Define" : "Edit") + " Range", options: x, onOption: b, onValidateOption: F, defaultOption: f, cancelOption: N, autoFocusSel: ".autoFocus", sx: { width: "460px", ...C }, ...R, children: k(S, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), range: "flex", flexDirection: "column" }, children: [d(A, { formName: "name", defaultInput: y, value: n.displayText, onChangeInput: B, onValidate: I, onFocus: (e) => {
|
|
35
35
|
T || e.target?.select(), O(!0);
|
|
36
36
|
} }), d(G, { formName: "range", value: l.displayValue, onChangeInput: j, resolvedAddress: t.getNames().getRanges.bind(t.getNames()), onFocus: (e) => {
|
|
37
37
|
T || e.target?.select(), O(!0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { b6 as i } from "./
|
|
4
|
+
import { b6 as i } from "./BjXzbYB0kCMhwN3Y.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as z, jsxs as lt } from "react/jsx-runtime";
|
|
2
2
|
import k, { memo as es, useState as pe, useCallback as de, useLayoutEffect as rs, PureComponent as mt, Component as _t, isValidElement as ns } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { M as os, E as as, I as is, B as us, P as Su, c as ss, S as xt } from "./BjXzbYB0kCMhwN3Y.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Workbook as k } from "@sheetxl/sdk";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as H, jsxs as We } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { d as to, g as oo, u as no, s as ro, m as io, aT as Q, n as lo, p as so, aU as ao, aV as co, a as Z, aA as uo, aB as ho, av as wt, J as fo, B as he, T as po, aF as mo, a0 as go, a2 as vo, ay as fe, at as _o, au as So, $ as yo, aW as wo, aX as Co, aY as De, aZ as xo, a_ as Ro, a$ as bo, H as ye, b0 as To, b1 as zo, b2 as K, b3 as Io, b4 as V, b5 as Po } from "./DVoDFCX7Bv_zFVVi.js";
|
|
3
3
|
import * as x from "react";
|
|
4
4
|
import Ct, { useState as pe, useMemo as ko, useEffect as je, cloneElement as Oo } from "react";
|
|
5
|
-
import { f as N } from "./
|
|
5
|
+
import { f as N } from "./BJlG0NMA-JM_rPkc.js";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -2147,7 +2147,7 @@ function an(o) {
|
|
|
2147
2147
|
return v;
|
|
2148
2148
|
}, [n, e]), [s, c] = pe(null);
|
|
2149
2149
|
je(() => {
|
|
2150
|
-
import("./
|
|
2150
|
+
import("./Brg-pw5qowVCqKUF.js").then((u) => {
|
|
2151
2151
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2152
2152
|
});
|
|
2153
2153
|
}, [a]);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { memo as O, useState as r, useRef as M, useReducer as
|
|
3
|
-
import { aL as
|
|
2
|
+
import { memo as O, useState as r, useRef as M, useReducer as A, useMemo as E } from "react";
|
|
3
|
+
import { aL as W, V, aM as k, aN as Q, v as x, aA as q, aB as G, B as n, aO as J, aP as K, ak as f, aQ as U, aR as X, ag as y, ah as b, ai as w, aS as S } from "./DVoDFCX7Bv_zFVVi.js";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
9
|
*/
|
|
10
10
|
const te = O((C) => {
|
|
11
|
-
const { title:
|
|
12
|
-
|
|
13
|
-
const o = T ?? c.context(), t = o.table(), [P, I] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), j =
|
|
14
|
-
|
|
11
|
+
const { title: v, onHide: N, autoFocusSel: R = ".range-input input", context: T, notifier: l = W, command: c, commands: d, ...D } = C, [F, g] = r(!1), [m, p] = r(!1), h = M(null), [Y, B] = A((e) => e + 1, 0), [H, { width: Z }] = V();
|
|
12
|
+
k(c);
|
|
13
|
+
const o = T ?? c.context(), t = o.table(), [P, I] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), j = E(() => t?.getName() ?? "", [t]);
|
|
14
|
+
Q(o.table(), { onAnchorCoordsChange(e) {
|
|
15
15
|
I(o.getNames().getRanges(e.getRange()));
|
|
16
16
|
}, onProtectedChange(e) {
|
|
17
17
|
B();
|
|
@@ -22,7 +22,7 @@ const te = O((C) => {
|
|
|
22
22
|
o?.table().resize(e.at(0));
|
|
23
23
|
}, [o]);
|
|
24
24
|
let u = null;
|
|
25
|
-
return o.table() || (u = a("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: a("div", { children: "No table selected" }) })), a(q, { title:
|
|
25
|
+
return o.table() || (u = a("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: a("div", { children: "No table selected" }) })), a(q, { title: v ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: R, refWindow: h, onHide: N, onFocus: () => g(!0), onBlur: (e) => {
|
|
26
26
|
h?.current?.contains(e.relatedTarget) || g(!1);
|
|
27
27
|
}, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(G, { dividers: !0, ref: H, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [s(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: o.table() ? 1 : 0 }, children: [a(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: s(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a(J, { formName: "name", defaultInput: j, value: t?.getName() ?? "No table", onChangeInput: L, onValidate: (e) => {
|
|
28
28
|
t && t.getName().toLowerCase() === e.toLowerCase() || o?.getNames().validateName(e);
|
|
@@ -50,7 +50,7 @@ const te = O((C) => {
|
|
|
50
50
|
} catch (i) {
|
|
51
51
|
l.showError(i);
|
|
52
52
|
}
|
|
53
|
-
} }), a(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a(X, { table: t, styles: o.styles(), bodyStyle: o.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a(f, { orientation: "horizontal" }), s(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a(y, { variant:
|
|
53
|
+
} }), a(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a(X, { table: t, styles: o.styles(), bodyStyle: o.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a(f, { orientation: "horizontal" }), s(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a(y, { variant: w.Menuitem, command: d.getCommand("convertTableToRange"), commandState: t, icon: b(a(S, {})) }), a(y, { variant: w.Menuitem, commandState: t, command: d.getCommand("deleteTable"), icon: b(a(S, {})) })] })] })] }), u] }) });
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
56
|
te as TableDetailsWindow,
|