@sheetxl/utils-mui 0.8.0-beta.12 → 0.8.0-beta.14

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.
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.12
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.14
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { t as e, y as t } from "./DWxAqsopmTKYk46G.mjs";
7
+ import { t as e, y as t } from "./CWyRwqzC8PZhasZA.mjs";
8
8
  import { Box as n, FormControl as r, TextField as i } from "@mui/material";
9
9
  import { jsx as a } from "react/jsx-runtime";
10
10
  import { forwardRef as o, memo as s, useState as c } from "react";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.12
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.14
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{border-radius:50%;position:absolute}._traverse-ellipsis_14l1h_1 div:first-child{animation:.6s infinite _traverse-ellipsis1_14l1h_1;left:0}._traverse-ellipsis_14l1h_1 div:nth-child(2){animation:.6s infinite _traverse-ellipsis2_14l1h_1;left:0}._traverse-ellipsis_14l1h_1 div:nth-child(3){animation:.6s infinite _traverse-ellipsis2_14l1h_1;left:24px}._traverse-ellipsis_14l1h_1 div:nth-child(4){animation:.6s infinite _traverse-ellipsis3_14l1h_1;left:48px}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  /**
3
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.12
3
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.14
4
4
  *
5
5
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
7
  */
8
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./DWxAqsopmTKYk46G.mjs";
8
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./CWyRwqzC8PZhasZA.mjs";
9
9
  import { Box as y, Button as b, Divider as x, IconButton as S, Input as C, LinearProgress as w, ListItemButton as T, ListItemIcon as E, Paper as D, Toolbar as O, Typography as k, useTheme as ee } from "@mui/material";
10
10
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
11
11
  import N, { Children as P, Fragment as F, Suspense as I, cloneElement as te, createContext as L, forwardRef as R, isValidElement as ne, memo as z, useCallback as B, useContext as re, useEffect as V, useLayoutEffect as ie, useMemo as H, useReducer as ae, useRef as U, useState as W } from "react";
@@ -2272,7 +2272,7 @@ var Kt = (e) => {
2272
2272
  }
2273
2273
  });
2274
2274
  });
2275
- }, qt = Wt(se("utils-mui:inputDialog", () => import("./u1uhi8u00MqBLY6C.mjs")).load), Jt = (e) => {
2275
+ }, qt = Wt(se("utils-mui:inputDialog", () => import("./CGg1EELxvcDzhjrf.mjs")).load), Jt = (e) => {
2276
2276
  let { showModal: t } = Vt();
2277
2277
  return (n) => {
2278
2278
  let { defaultOption: r = n.options?.[0], cancelOption: i = "Cancel", ...a } = n;
@@ -2618,13 +2618,19 @@ var an = z(R((e, t) => {
2618
2618
  n,
2619
2619
  m
2620
2620
  ]), v = n, y = a ?? g?.defaultKey, b = o ?? g?.getIcon?.(v), x = s ?? g?.getLabel?.(v), S = c ?? g?.showLabel, C = l ?? g?.getDescription?.(v), w = H(() => {
2621
- let e = [], t = _ ?? [];
2622
- for (let n = 0; n < t.length; n++) {
2623
- let r = t[n];
2624
- r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2625
- }
2626
- return e;
2627
- }, [_]), T = ge(y ? [y, ...w] : w), E = H(() => {
2621
+ let e = [], t = /* @__PURE__ */ new Set(), n = (r) => {
2622
+ for (let i = 0; i < r.length; i++) {
2623
+ let a = r[i];
2624
+ if (!a || a === "-") continue;
2625
+ let o = typeof a == "string" ? a : a.key;
2626
+ if (!o || t.has(o)) continue;
2627
+ t.add(o);
2628
+ let s = Array.isArray(m.get(o)?.members) ? m.resolveMembers(o) : null;
2629
+ s ? n(s) : e.push(o);
2630
+ }
2631
+ };
2632
+ return n(_ ?? []), e;
2633
+ }, [_, m]), T = ge(y ? [y, ...w] : w), E = H(() => {
2628
2634
  for (let e = 0; e < T.length; e++) {
2629
2635
  let t = T[e];
2630
2636
  if (t && !t.disabled()) return !1;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.12
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.14
3
3
  *
4
4
  * (C) 2026-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/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.12
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.14
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -2982,7 +2982,7 @@ var cr = {
2982
2982
  }
2983
2983
  });
2984
2984
  });
2985
- }, vr = lr(U("utils-mui:inputDialog", () => import("./CYuCEbb0exvLvO8J.mjs")).load), wr = (e) => {
2985
+ }, vr = lr(U("utils-mui:inputDialog", () => import("./D0hB5wc-x57eSUUc.mjs")).load), wr = (e) => {
2986
2986
  const { showModal: t } = Re();
2987
2987
  return (r) => {
2988
2988
  const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
@@ -3333,13 +3333,20 @@ var $r = z(I((e, t) => {
3333
3333
  r,
3334
3334
  h
3335
3335
  ]), b = r, y = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(b), w = l ?? g?.getLabel?.(b), k = s ?? g?.showLabel, C = c ?? g?.getDescription?.(b), S = A(() => {
3336
- const e = [], t = x ?? [];
3337
- for (let r = 0; r < t.length; r++) {
3338
- const o = t[r];
3339
- o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
3340
- }
3341
- return e;
3342
- }, [x]), P = he(y ? [y, ...S] : S), T = A(() => {
3336
+ const e = [], t = /* @__PURE__ */ new Set(), r = (o) => {
3337
+ for (let n = 0; n < o.length; n++) {
3338
+ const i = o[n];
3339
+ if (!i || "-" === i) continue;
3340
+ const a = "string" == typeof i ? i : i.key;
3341
+ if (!a) continue;
3342
+ if (t.has(a)) continue;
3343
+ t.add(a);
3344
+ const l = Array.isArray(h.get(a)?.members) ? h.resolveMembers(a) : null;
3345
+ l ? r(l) : e.push(a);
3346
+ }
3347
+ };
3348
+ return r(x ?? []), e;
3349
+ }, [x, h]), P = he(y ? [y, ...S] : S), T = A(() => {
3343
3350
  for (let e = 0; e < P.length; e++) {
3344
3351
  const t = P[e];
3345
3352
  if (t && !t.disabled()) return !1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/utils-mui",
3
3
  "description": "Utilities MUI - Utilities for MUI Components needed for all SheetXL components.",
4
- "version": "0.8.0-beta.12",
4
+ "version": "0.8.0-beta.14",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -43,8 +43,8 @@
43
43
  "ui"
44
44
  ],
45
45
  "dependencies": {
46
- "@sheetxl/utils": "^0.8.0-beta.12",
47
- "@sheetxl/utils-react": "^0.8.0-beta.12",
46
+ "@sheetxl/utils": "^0.8.0-beta.14",
47
+ "@sheetxl/utils-react": "^0.8.0-beta.14",
48
48
  "clsx": "^2.1.1",
49
49
  "detect-it": "^4.0.1",
50
50
  "mui-modal-provider": "2.4.6",