@sheetxl/studio-vanilla 0.3.17 → 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/{Bc3a9_6Ve1YHGowK.cjs → 2FwFu5228wr-ARkA.cjs} +3 -3
- package/browser/cjs/B32tWc1qRv4tY12p.cjs +6 -0
- package/browser/cjs/{BnVtO_MwV8I3mDul.cjs → BA4eX47IpP00-8so.cjs} +2 -2
- package/browser/cjs/{DLSKs1QVKEKXE0w6.cjs → BKPCa_z6dnIQn-0l.cjs} +1 -1
- package/browser/cjs/{DKAdHUu3UvatZtg2.cjs → BWs24EHW-tVFgT-x.cjs} +2 -2
- package/browser/cjs/{tyAHtYASyFxcUsnd.cjs → BdvCvAgiry0f4S23.cjs} +1 -1
- package/browser/cjs/{DvL9Sc8iPPufipGY.cjs → CDKv578p0EwvHjZp.cjs} +1 -1
- package/browser/cjs/{C6fuW2cVa9dQZ4Je.cjs → CIo606dkZ8lkuDJ3.cjs} +1 -1
- package/browser/cjs/{DC6xjrFPr2HOnpEZ.cjs → CY7-VXmdgBslTVMX.cjs} +3 -3
- package/browser/cjs/{CTOC9ZTrMjZHrqbQ.cjs → Ce6oHmr7gMYWd8Yd.cjs} +5 -5
- package/browser/cjs/{Br7LE-apfiyLpwKT.cjs → Cfdd6ktavWDYX9ND.cjs} +1 -1
- package/browser/cjs/{BGcNUqTfmjyHIbaI.cjs → Cjh4Y6CzIKElfhND.cjs} +2 -2
- package/browser/cjs/{Bb-lqHwGFvmeBzPZ.cjs → Cnk7ISRHexlfGYia.cjs} +1 -1
- package/browser/cjs/{BserbrusW-zB2hKv.cjs → D0TmTI_7aDwkiyE4.cjs} +2 -2
- package/browser/cjs/{DxbPSb3PKSwud1HY.cjs → DJC4cn9wXv_q5aHy.cjs} +2 -2
- package/browser/cjs/{B0W8Ro2JrQ96SBYz.cjs → DPk0an7l4dAKSvt4.cjs} +6 -6
- package/browser/cjs/{cyLp79UpmhtbS2yS.cjs → DQu9kotW1g223yHH.cjs} +45 -45
- package/browser/cjs/{DzNRMZunrlSGwLSb.cjs → Do4JoiMPrmr8e_3I.cjs} +2 -2
- package/browser/cjs/DtwZ1dCv4IJK54Md.cjs +6 -0
- package/browser/cjs/{BnQxin2UUpaly5NP.cjs → MSGlzfMbdkBj2ODr.cjs} +1 -1
- package/browser/cjs/{CmpPGljzpUKgOIxx.cjs → USAsNV7756AJ-v-3.cjs} +1 -1
- package/browser/cjs/{CG4QG81y7pyNQwcS.cjs → bLAfby6zV0qLxdQi.cjs} +2 -2
- package/browser/cjs/{DSPikvyWE4g-uDuD.cjs → gPTujfwB4RqxIcij.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{B_3Ajb0Oax8flgwH.cjs → lObc2MW6JiaOpm-q.cjs} +2 -2
- package/browser/cjs/{TghIPPRKOuPkkaj_.cjs → mSxg83umiyMZNf9-.cjs} +2 -2
- package/browser/cjs/{CKZhKYw44E-Ni1nu.cjs → vWIDSfediysRj8eo.cjs} +6 -6
- package/{cdn/assets/CZUKS6s-vZgN9aos.js → browser/esm/4b-cAFWAwXYZkw0D.mjs} +1 -1
- package/browser/esm/{B8rvcrFdHFZY1Sz4.mjs → B8OZHivNmO5OFLTi.mjs} +17 -17
- package/browser/esm/BGvOrkSiilN4Dt_5.mjs +46 -0
- package/browser/esm/{BL2AZ33IU3F9bUt7.mjs → BjXzbYB0kCMhwN3Y.mjs} +2621 -2534
- package/browser/esm/{BH8SzwM3UkwJ3Eap.mjs → BlxEnptsgkGA0_21.mjs} +9 -9
- package/browser/esm/{BPrdUtlmJCtc3q1E.mjs → Bm440-d54x4naZeO.mjs} +1 -1
- package/{cdn/assets/CKDR83IC6nVl5Ejn.js → browser/esm/BnmsWZ7pB-RvN8Ce.mjs} +8 -8
- package/{cdn/assets/B1YbVSzaF3q-DvkR.js → browser/esm/BorGhlvsrSc8KIw4.mjs} +9 -9
- package/{cdn/assets/CXH_df_BJWGouWGx.js → browser/esm/Brg-pw5qowVCqKUF.mjs} +1 -1
- package/browser/esm/{Bzij_asTK4-12wX9.mjs → C2UMejLEXH1i7UT_.mjs} +3 -3
- package/browser/esm/{JNJMM7jPjOx60cf7.mjs → C6ty7TIqMKf0jms4.mjs} +1 -1
- package/browser/esm/{BMUhikJUsjFxek33.mjs → CDha50D0Zqdh75RO.mjs} +47 -47
- package/browser/esm/{D4Vwg7DdbgL5-gzc.mjs → CHNBfqp5n8JaC7UU.mjs} +3 -3
- package/{cdn/assets/BxSEIQhicQfdXtJF.js → browser/esm/CkOpEOqipQhoCXbp.mjs} +7 -7
- package/browser/esm/{CMBCkSY-ay1nfbs_.mjs → CxJ9wqppH10FCE7E.mjs} +2 -2
- package/browser/esm/{C3DBhxZlYozBEVla.mjs → D8V8o3E9AIpGCaJ0.mjs} +5 -5
- package/browser/esm/{CBWY-rnGz5x3lEXM.mjs → DGbBeyHSDhhZ67G7.mjs} +91 -91
- package/browser/esm/{u3fz83lT2CnMmRBA.mjs → DHtJbuH4VrIp2owl.mjs} +4 -4
- package/browser/esm/{C8xqJMf37wA-WPT0.mjs → DNEd6u6uOJT1ngWx.mjs} +7 -7
- package/browser/esm/{YdKPg8NGmPUPJuwl.mjs → DTW0B_xW-HuS3NuK.mjs} +5 -5
- package/browser/esm/{_Rc93Vlm8MW1zcHZ.mjs → DzowkvQRyggO7Ijl.mjs} +1 -1
- package/browser/esm/{CfoeArGH9Iu0fzXt.mjs → FNXLcvV7DgUq6zwL.mjs} +1 -1
- package/{cdn/assets/XBRwKmVZSI2nKxkp.js → browser/esm/SWAv_VgEKg95ORt5.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CKipCLj2Z39o67b7.mjs → vYT-yKp90JOPBqDa.mjs} +2 -2
- package/{cdn/assets/CNjDb--pc3V19tGB.js → browser/esm/vsx7PlJlMQvNPm_L.mjs} +1 -1
- package/browser/esm/{BTLRhd22C-Nd_eBp.mjs → zovGkWpLePhgQd_n.mjs} +1 -1
- package/{browser/esm/CZUKS6s-vZgN9aos.mjs → cdn/assets/4b-cAFWAwXYZkw0D.js} +1 -1
- package/cdn/assets/{l9P-OMHe7Eutt2ON.js → 8QCrFIzHmtIoeBJm.js} +4 -4
- package/{browser/esm/BlH7pxV8dydnI68w.mjs → cdn/assets/8xNW6edqjY-klal3.js} +9 -9
- package/cdn/assets/{k3_rVDX-B8ArpvvF.js → BJlG0NMA-JM_rPkc.js} +91 -91
- package/cdn/assets/{B4xbV8b1vgkFuf8S.js → BNcPMWtsY8_g-EN4.js} +5 -5
- package/cdn/assets/BhwpQU1T51VKYXPZ.js +46 -0
- package/cdn/assets/{BPrdUtlmJCtc3q1E.js → Bm440-d54x4naZeO.js} +1 -1
- package/{browser/esm/CXH_df_BJWGouWGx.mjs → cdn/assets/Brg-pw5qowVCqKUF.js} +1 -1
- package/cdn/assets/{5Ol3UAykJGv4enb7.js → BrkvsmfqGj5-gULd.js} +2 -2
- package/cdn/assets/{OH4OLMUwFOvLynOc.js → BtcEbQwXXgpwi-Wc.js} +17 -17
- package/cdn/assets/{B0iEzLbaCkkrdj7y.js → C4-fZEqFmgf4Ryrf.js} +5 -5
- package/cdn/assets/{JNJMM7jPjOx60cf7.js → C6ty7TIqMKf0jms4.js} +1 -1
- package/cdn/assets/{C-FnVtey6FtIMdLg.js → CD48E90J73F2rFJF.js} +3 -3
- package/{browser/esm/BKcHYlDCeQadoUAd.mjs → cdn/assets/D3-MLKMldcoobrMe.js} +8 -8
- package/cdn/assets/{C40I-vetBKD2pUv3.js → DVoDFCX7Bv_zFVVi.js} +4599 -4512
- package/cdn/assets/{I7By3WBOaNjGDp5W.js → DkRkxpsLaXOm1dGc.js} +7 -7
- package/cdn/assets/{DB7EL7vNAfpdzGYu.js → DoNQnutyjVRliOV0.js} +2 -2
- package/cdn/assets/{CliYamYDN65pX6vp.js → DzXbXyuxyjtFLOXt.js} +9 -9
- package/cdn/assets/{_Rc93Vlm8MW1zcHZ.js → DzowkvQRyggO7Ijl.js} +1 -1
- package/cdn/assets/{CfoeArGH9Iu0fzXt.js → FNXLcvV7DgUq6zwL.js} +1 -1
- package/{browser/esm/XBRwKmVZSI2nKxkp.mjs → cdn/assets/SWAv_VgEKg95ORt5.js} +1 -1
- package/cdn/assets/{BIq8iXWFphwulDEI.js → TXu1jpI8ASN4INNu.js} +47 -47
- package/cdn/assets/{Dbhi34qDFM0nygPU.js → aAVhloO6mFh8WJzi.js} +3 -3
- package/{browser/esm/CNjDb--pc3V19tGB.mjs → cdn/assets/vsx7PlJlMQvNPm_L.js} +1 -1
- package/{browser/esm/C_5TG94caiLqXYi9.mjs → cdn/assets/yLoKmwpXykv9-Elu.js} +7 -7
- package/cdn/assets/{BTLRhd22C-Nd_eBp.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/DdImTaClMFBNUqjw.cjs +0 -6
- package/browser/cjs/Q-FApIecuUKlV75X.cjs +0 -6
- package/browser/esm/Bynz8AXGVCdHXnWS.mjs +0 -46
- package/cdn/assets/CVrbSur8obLaWUEL.js +0 -46
|
@@ -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,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 "./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.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { memo as oe, useRef as C, useState as b, useEffect as L, useLayoutEffect as pe, useMemo as de } from "react";
|
|
3
3
|
import { ICell as c, IRange as R } from "@sheetxl/sdk";
|
|
4
|
-
import { t as D,
|
|
5
|
-
import { C as ee } from "./
|
|
4
|
+
import { t as D, v as H, av as ue, V as fe, aA as ge, aB as me, B as O, aC as m, ah as x, aD as xe, a8 as y, aE as he, T as _, a as k, aF as Oe, aG as Ce, aH as ye, aI as be, ay as w, aJ as ve, aK as Te, ak as Re, az as ke, F as we, aw as Ee, ax as Fe } from "./DVoDFCX7Bv_zFVVi.js";
|
|
5
|
+
import { C as ee } 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.
|
|
@@ -27,23 +27,23 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
27
27
|
if (h[d] === E) return d;
|
|
28
28
|
}
|
|
29
29
|
}, ze = oe((E) => {
|
|
30
|
-
const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null),
|
|
30
|
+
const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null), $ = C(null), W = C(null), j = C(null), N = C(null), G = (e, t) => {
|
|
31
31
|
t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
|
|
32
|
-
}, [J, I] = b(!1), [
|
|
32
|
+
}, [J, I] = b(!1), [V, le] = b(!1), [f, B] = b(h), [U, M] = b(!1), [X, q] = b(!1), [o, l] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: te.Sheet }), F = H(async (e, t, n, S) => {
|
|
33
33
|
if (!T) return;
|
|
34
34
|
const g = { ...o };
|
|
35
35
|
g.replaceOptions = { ...g.replaceOptions }, g.findOptions = { ...g.findOptions }, g.replaceOptions.maxCount = n ? void 0 : 1, g.replace = t, t && o.findOptions.fields?.[0] === c.Content.Values && (g.findOptions.fields = [c.Content.Formulas]), g.findOptions.reverse = !e;
|
|
36
36
|
const ce = await T({ autoFocus: S, ...g });
|
|
37
|
-
|
|
37
|
+
M(ce === 0);
|
|
38
38
|
}, [o, T]);
|
|
39
39
|
L(() => {
|
|
40
|
-
|
|
41
|
-
}, [o,
|
|
40
|
+
M(!1);
|
|
41
|
+
}, [o, V, f]);
|
|
42
42
|
const Q = H((e, t) => {
|
|
43
43
|
if (e.keyCode === ue.Enter) {
|
|
44
44
|
if (!o.findText) return;
|
|
45
45
|
let n = !0, S = !1;
|
|
46
|
-
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), G(e, S ? N.current : j.current)) : G(e, n ?
|
|
46
|
+
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), G(e, S ? N.current : j.current)) : G(e, n ? W.current : $.current), F(n, t, S, !1);
|
|
47
47
|
}
|
|
48
48
|
}, [o]), Y = C(null);
|
|
49
49
|
pe(() => {
|
|
@@ -51,7 +51,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
51
51
|
const t = { ...e };
|
|
52
52
|
t.findText = r && r.length > 0 ? r : e.findText ?? "", I(!0), a !== void 0 && (t.replaceText = a), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), v && (t.replaceOptions = { ...t.replaceOptions, ...v }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
|
|
53
53
|
const n = !(!v && a === void 0);
|
|
54
|
-
return n &&
|
|
54
|
+
return n && B(n), t;
|
|
55
55
|
}), X || Y.current?.focus();
|
|
56
56
|
}, [r, a, d, v]), L(() => {
|
|
57
57
|
f ? (o.findOptions.fields[0], c.Content.Values) : I(!0);
|
|
@@ -62,9 +62,9 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
62
62
|
}, [J, o]);
|
|
63
63
|
const [re, { width: Z }] = fe();
|
|
64
64
|
return i(ge, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: Y, onHide: K, onFocus: () => q(!0), onBlur: () => {
|
|
65
|
-
q(!1),
|
|
65
|
+
q(!1), M(!1);
|
|
66
66
|
}, PaperProps: { elevation: X ? 3 : 1 }, ...P, children: p(me, { dividers: !0, ref: re, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
|
|
67
|
-
if (e.key === "h" && e.ctrlKey)
|
|
67
|
+
if (e.key === "h" && e.ctrlKey) B(!0), s.current?.contains(document.activeElement) && u.current?.focus();
|
|
68
68
|
else if (e.key === "f" && e.ctrlKey) s.current?.focus();
|
|
69
69
|
else if (e.key === "c" && e.altKey) l((t) => {
|
|
70
70
|
const n = { ...t };
|
|
@@ -82,10 +82,10 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
e.preventDefault();
|
|
85
|
-
}, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected:
|
|
85
|
+
}, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected: V, onSelectToggle: (e) => {
|
|
86
86
|
le(e);
|
|
87
87
|
}, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(xe, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
|
|
88
|
-
|
|
88
|
+
B(e);
|
|
89
89
|
}, preventFocus: !0, label: "Toggle Replace", icon: x(i(he, {})), shortcut: { key: f ? "F" : "H", modifiers: [y.Ctrl] } })] }), p(O, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [i(_, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Z > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, inputProps: { draggable: !1, ref: s, className: "input", autoFocus: !0, spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } }, endAdornment: i(Oe, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: p(O, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [i(m, { selected: o.findOptions.matchCase, onSelectToggle: (e) => {
|
|
90
90
|
l((t) => {
|
|
91
91
|
const n = { ...t };
|
|
@@ -110,9 +110,9 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
110
110
|
e.stopPropagation();
|
|
111
111
|
} }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
|
|
112
112
|
F(!1, !1);
|
|
113
|
-
}, touchRippleRef:
|
|
113
|
+
}, touchRippleRef: $, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Se, {}) : i(De, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
|
|
114
114
|
F(!0, !1);
|
|
115
|
-
}, touchRippleRef:
|
|
115
|
+
}, touchRippleRef: W, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Le, {}) : i(Ie, {})), disabled: !o.findText })] }), i(ee, { in: f, timeout: ne, onExit: () => {
|
|
116
116
|
s.current?.focus();
|
|
117
117
|
}, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(_, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, inputProps: { ref: u, className: "input", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1) }, value: o.replaceText ?? "", onChange: (e) => {
|
|
118
118
|
l((t) => {
|
|
@@ -125,7 +125,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
125
125
|
F(!0, !0);
|
|
126
126
|
}, touchRippleRef: j, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(ve, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
|
|
127
127
|
F(!0, !0, !0);
|
|
128
|
-
}, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Te, {})), disabled: !o.findText })] }) })] })] }), i(ee, { in:
|
|
128
|
+
}, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Te, {})), disabled: !o.findText })] }) })] })] }), i(ee, { in: V, timeout: ne, onExit: () => {
|
|
129
129
|
s.current?.focus();
|
|
130
130
|
}, children: p(O, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [i(Re, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(O, { sx: { display: "flex", flexDirection: Z >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i(z, { label: "Within", value: o.scope, options: te, onSelect: (e) => {
|
|
131
131
|
l((t) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C } from "react";
|
|
3
3
|
import { Sort as a, IRange as r } from "@sheetxl/sdk";
|
|
4
|
-
import {
|
|
4
|
+
import { v as O, b as S, B as b, at as s, au as l } from "./DVoDFCX7Bv_zFVVi.js";
|
|
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.
|
|
10
10
|
*/
|
|
11
|
-
const D = ({ range: p, options: c, cell: u, onDone: d, ...
|
|
12
|
-
const [t, o] = C(c ?? a.DefaultRangeOptions),
|
|
11
|
+
const D = ({ range: p, options: c, cell: u, onDone: d, ...v }) => {
|
|
12
|
+
const [t, o] = C(c ?? a.DefaultRangeOptions), h = O((e) => {
|
|
13
13
|
let i = null;
|
|
14
14
|
e === "Sort" && (i = { ...c, options: t }), d?.(i);
|
|
15
15
|
}, [t, d, c]);
|
|
16
|
-
return n(S, { title: "Sort", options: ["Sort", "Cancel"], onDone:
|
|
16
|
+
return n(S, { title: "Sort", options: ["Sort", "Cancel"], onDone: h, ...v, children: m(b, { sx: { display: "flex", flexDirection: "column" }, children: [n(s, { control: n(l, { checked: !t.reverse, onChange: () => o((e) => ({ ...e, reverse: !e.reverse })) }), label: "Is Ascending", labelPlacement: "end" }), n(s, { control: n(l, { checked: t.hasHeader, onChange: () => o((e) => ({ ...e, hasHeader: !e.hasHeader })) }), label: "Has Header", labelPlacement: "end" }), n(s, { control: n(l, { checked: t.collatorOptions?.sensitivity === a.CaseSensitiveOptions.sensitivity, onChange: () => o((e) => ({ ...e, collatorOptions: t.collatorOptions?.sensitivity === a.CaseSensitiveOptions.sensitivity ? a.CaseInsensitiveOptions : a.CaseSensitiveOptions })) }), label: "Case Sensitive", labelPlacement: "end" }), n(s, { control: n(l, { checked: t.orientation === r.Orientation.Row, onChange: () => o((e) => {
|
|
17
17
|
const i = e.orientation === r.Orientation.Row ? r.Orientation.Column : r.Orientation.Row;
|
|
18
18
|
return { ...p.getDefaultSortCriteria(i, u).options, includeHidden: e.includeHidden, reverse: e.reverse, orientation: i };
|
|
19
19
|
}) }), label: "Row Sort", labelPlacement: "end" }), n(s, { control: n(l, { checked: t.includeHidden, onChange: () => o((e) => ({ ...e, includeHidden: !e.includeHidden })) }), label: "Include Hidden", labelPlacement: "end" })] }) });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Je from "react";
|
|
2
2
|
import { createElement as $r, forwardRef as Ya, useRef as Xa, useImperativeHandle as Wa, useEffect as Ha } from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
4
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./
|
|
1
|
+
import { J as Y } from "./DVoDFCX7Bv_zFVVi.js";
|
|
2
|
+
import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./TXu1jpI8ASN4INNu.js";
|
|
3
3
|
import { IFont as k, IAutoFilter as T, Sort as G, IRange as et, AddressUtils as W, IFill as C, IStyle as rt, ITextFrame as P, FormulaError as st, IBorder as V } from "@sheetxl/sdk";
|
|
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,18 +1,18 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as o, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { memo as T, useState as i, useCallback as k } from "react";
|
|
3
|
+
import { v, b as w, B as j, aP as y, at as B, au as F } 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
|
-
const H = ["Ok", "Cancel"], A =
|
|
11
|
-
const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: m, ...b } = u, [h, x] = i(!1), [n, O] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C =
|
|
10
|
+
const H = ["Ok", "Cancel"], A = T((u) => {
|
|
11
|
+
const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: m, ...b } = u, [h, x] = i(!1), [n, O] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C = v((a) => {
|
|
12
12
|
const g = { ...e, hasHeader: n, ranges: l };
|
|
13
13
|
c?.(a, a === s, a === t), r?.({ option: a, tableOptions: g });
|
|
14
|
-
}, [r, c, t, s, n, l, e]),
|
|
15
|
-
return o(
|
|
14
|
+
}, [r, c, t, s, n, l, e]), D = k(async (a, g) => null, []);
|
|
15
|
+
return o(w, { title: "Insert Table", options: d, onDone: C, onValidateOption: D, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...b, children: N(j, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(y, { formName: "range", value: l, onChangeInput: (a) => f(a), resolvedAddress: p.getNames().getRanges.bind(p.getNames()), onFocus: (a) => {
|
|
16
16
|
h || a.target?.select(), x(!0);
|
|
17
17
|
} }), o(B, { control: o(F, { checked: n, onChange: () => O(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
|
|
18
18
|
});
|