@sheetxl/utils-react 0.7.28-beta.3 → 0.8.0-beta.1
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/{C7jPCqFJNiWyD2pr.cjs → D02anPwyfYZxlZmG.cjs} +1 -1
- package/browser/cjs/Dc-AA0ooFLVdAhbT.cjs +1 -0
- package/browser/cjs/index.cjs +3 -3
- package/browser/esm/{BOoFhBj8lNp7Wra1.mjs → BIb3Fag4wDs4Gro1.mjs} +2 -2
- package/browser/esm/{3fJ7QktBGr0hkpU4.mjs → BT6JG-bEtM8ou0Xr.mjs} +10 -2
- package/browser/esm/{ijW54gm_zyg2jpay.mjs → CKvLZo8keTi4hdRr.mjs} +1 -1
- package/browser/esm/index.mjs +109 -104
- package/node/esm/{DkoDeP9wgOMJOuXu.mjs → CdJ0O_khlsS4DqVj.mjs} +9 -1
- package/node/esm/{KUPF-PaJLBXSCR-4.mjs → TlOKuBGsozMYzzBC.mjs} +1 -1
- package/node/esm/index.mjs +44 -39
- package/package.json +2 -2
- package/types/src/float/FloatPopper.d.ts +4 -0
- package/browser/cjs/CyWMySHsu-RvsIGs.cjs +0 -1
package/browser/esm/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--icon-size-sm:calc(var(--icon-size,1rem) * .875);--icon-size-md:var(--icon-size,1rem);--icon-size-lg:calc(var(--icon-size,1rem) * 1.25);--icon-size-xl:calc(var(--icon-size,1rem) * 1.5)}._Icon_16f7r_10{font-size:var(--icon-size,var(--icon-size-md));min-width:var(--icon-size,var(--icon-size-md));min-height:var(--icon-size,var(--icon-size-md));--icon-stroke-em:.085em;--icon-color:currentColor;--icon-secondary-color:color-mix(in oklab, currentColor 65%, transparent);--icon-tertiary-color:color-mix(in oklab, currentColor 40%, transparent);--icon-line-color:currentColor;--icon-main-opacity:1;--icon-secondary-opacity:.45;--icon-tertiary-opacity:.25;--icon-line-opacity:1;--icon-filter:none;filter:var(--icon-filter);vertical-align:middle;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}._Icon_16f7r_10 .sm{--icon-size:var(--icon-size-sm)}._Icon_16f7r_10 .md{--icon-size:var(--icon-size-md)}._Icon_16f7r_10 .lg{--icon-size:var(--icon-size-lg)}._Icon_16f7r_10 .xl{--icon-size:var(--icon-size-xl)}._Icon_16f7r_10>svg{width:var(--icon-size);height:var(--icon-size)}._Icon_16f7r_10>img{aspect-ratio:1;line-height:1;display:block}._Icon_16f7r_10 .fill,._Icon_16f7r_10 .line{--layer-color:var(--icon-color);--layer-opacity:var(--icon-main-opacity)}._Icon_16f7r_10 .tertiary{--layer-color:var(--icon-tertiary-color)}._Icon_16f7r_10 .primary{--layer-color:var(--icon-primary,var(--sxl-color-primary,#595b5e))}._Icon_16f7r_10 .accent{--layer-color:var(--icon-accent,var(--sxl-color-accent,#9c27b0))}._Icon_16f7r_10 .accent.tint{--layer-color:color-mix(in srgb, var(--icon-accent,var(--sxl-color-accent,#9c27b0)) 80%, white)}._Icon_16f7r_10 .success{--layer-color:var(--icon-success,var(--sxl-color-success,#22c55e))}._Icon_16f7r_10 .success.tint{--layer-color:color-mix(in srgb, var(--icon-success,var(--sxl-color-success,#22c55e)) 80%, white)}._Icon_16f7r_10 .info{--layer-color:var(--icon-info,var(--sxl-color-info,#3b82f6))}._Icon_16f7r_10 .warning{--layer-color:var(--icon-warning,var(--sxl-color-warning,#f59e0b))}._Icon_16f7r_10 .error{--layer-color:var(--icon-error,var(--sxl-color-error,#ef4444))}._Icon_16f7r_10 .error.tint{--layer-color:color-mix(in srgb, var(--icon-error,var(--sxl-color-error,#ef4444)) 80%, white)}._Icon_16f7r_10 .grey{--layer-color:var(--sxl-color-neutral,#ccc)}._Icon_16f7r_10 .shadow{--layer-color:var(--sxl-color-shadow,#ccc)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]){fill:var(--layer-color);stroke:none}._Icon_16f7r_10 .line:not(.fixed):not([stroke]){fill:none;stroke:var(--layer-color,var(--icon-line-color));stroke-width:var(--icon-stroke-em);vector-effect:non-scaling-stroke;pointer-events:none;stroke-linecap:var(--icon-linecap,round);stroke-linejoin:var(--icon-linejoin,round);stroke-miterlimit:var(--icon-miter,4)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]):not([opacity]){opacity:var(--layer-opacity)}._Icon_16f7r_10 .line:not(.fixed):not([stroke]):not([opacity]){opacity:var(--layer-opacity,var(--icon-line-opacity))}._Icon_16f7r_10 .fill.outlined:not(.fixed):not([fill]){stroke:var(--icon-outline,color-mix(in srgb, var(--layer-color) 62%, black));stroke-width:var(--icon-outline-width,1.25);stroke-linejoin:round;paint-order:stroke fill}._Icon_16f7r_10 .fill.rimmed:not(.fixed):not([fill]){--icon-outline:var(--icon-rim,light-dark(#3c3c3c,#101010));--icon-outline-width:2}._Icon_16f7r_10 .knockout{--layer-color:var(--icon-knockout,#fff)}._Icon_16f7r_10 .line.heavy:not(.fixed):not([stroke]){stroke-width:var(--icon-stroke-heavy-em,.155em)}._Icon_16f7r_10 .invert-dark{filter:var(--sxl-image-filter,none)}._Icon_16f7r_10 .muted{opacity:calc(var(--layer-opacity,1) * .6)}@keyframes _sxl-walk_16f7r_1{to{stroke-dashoffset:0}}.icon.walking .walkable.line{stroke-dasharray:var(--walk-dash-length,5px) var(--walk-dash-gap,2px);stroke-dashoffset:calc(var(--walk-dash-length,5px) + var(--walk-dash-gap,2px));animation:_sxl-walk_16f7r_1 var(--walk-duration,.96s) linear infinite;will-change:stroke-dashoffset}._portal-root_105xh_14{pointer-events:none;z-index:1200;width:100%;height:100%;position:absolute;inset:0}._portal-root_105xh_14>*{pointer-events:auto}._fullscreen_105xh_31{z-index:1200}._float-popper_csci8_1{max-width:100%;max-height:100%;display:flex}._float-popper-grow_csci8_7{opacity:0;will-change:transform, opacity;transition:transform .18s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.75)}._float-popper-grow_csci8_7._entered_csci8_15{opacity:1;transform:scale(1)}._float-popup_juap7_1{flex-direction:column;display:flex}._float-panel_1f1r8_1{box-sizing:border-box;background:var(--sxl-color-base-100,#fff);color:var(--sxl-color-base-content,#000000de);border:1px solid var(--sxl-color-elevated-border,transparent);border-radius:4px;outline:none;display:flex;overflow:auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}._float-tooltip_1l6qz_1{box-sizing:border-box;max-width:300px;color:var(--sxl-color-base-100,#fff);background-color:color-mix(in srgb, var(--sxl-color-base-content,#464646) 92%, transparent);pointer-events:none;word-wrap:break-word;border-radius:4px;padding:2px 6px;font-size:.6875rem;font-weight:500;line-height:1.4}:root{--scrollbar-track-color:#0000000f;--scrollbar-thumb-color:#00000059;--scrollbar-button-color:var(--scrollbar-thumb-color);--scrollbar-active-color:#0000008c;--scrollbar-corner-color:transparent;--scrollbar-border-color:transparent;& .has-touch-thumb,& .has-touch-thumb *{--scrollbar-size:0px;--scrollbar-border-width:0px;--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size)}--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size);--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar_14aps_24{& ::-webkit-scrollbar-button{background:0 0}border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;flex:100%;align-items:center;display:flex;overflow:hidden;& ._track_14aps_35{background:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;touch-action:none;box-sizing:border-box;flex:100%;position:relative;overflow:hidden}& ._thumb_14aps_47{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-border-radius);touch-action:none;transition:background .12s}& ._thumb_14aps_47:hover{background:var(--scrollbar-active-color)}&.vertical{min-width:var(--scrollbar-width,0px);max-width:var(--scrollbar-width,100%);flex-direction:column;& ._thumb_14aps_47{min-height:var(--scrollbar-min-thumb-size)}& ._track_14aps_35{width:100%}}&.horizontal{min-height:var(--scrollbar-height,0px);max-height:var(--scrollbar-height,100%);flex-direction:row;& ._thumb_14aps_47{min-width:var(--scrollbar-min-thumb-size)}& ._track_14aps_35{height:100%}}&.dragging{& ._thumb_14aps_47{background:var(--scrollbar-active-color)}}&.has-touch-thumb{visibility:hidden}& ._scrollbar-button_14aps_96{background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;&>*{fill:var(--scrollbar-button-color);transition:fill .12s}&:hover:not([disabled])>*{fill:var(--scrollbar-active-color)}&[disabled]>*{fill:var(--scrollbar-button-color);opacity:.5}&.vertical{width:var(--scrollbar-width)}&.horizontal{height:var(--scrollbar-height)}}}._touch-thumb_14aps_131{cursor:grab;pointer-events:all;will-change:opacity;opacity:.7;border-radius:9999px;transition-property:opacity;position:absolute;&:hover,&.dragging{opacity:1}}._scrollpane_zdrii_2{min-width:min-content;min-height:min-content;display:flex;position:relative}._scrollpane-content_zdrii_20{box-sizing:border-box;flex:100%;grid-template-rows:1fr auto;grid-template-columns:1fr auto;width:100%;min-width:0;min-height:0;display:grid;position:relative}._scrollpane-content-cell_zdrii_33{grid-area:1/1/2/2;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}._vertical-container_zdrii_42{grid-area:1/2/2/3;min-height:0;display:flex}._horizontal-container_zdrii_50{grid-area:2/1/3/2;min-width:0;display:flex;overflow:hidden}._corner-container_zdrii_59{grid-area:2/2/3/3;display:flex}._touch-thumb-overlay_zdrii_68{pointer-events:none;grid-area:1/1/2/2;min-width:0;min-height:0;position:relative}._scrollbar-themed_nj3vu_7{--scrollbar-track-color:color-mix(in srgb, var(--sxl-color-base-content) 4%, transparent);--scrollbar-thumb-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-button-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-active-color:var(--sxl-color-primary);--scrollbar-corner-color:var(--sxl-color-base-100);--scrollbar-border-color:color-mix(in srgb, var(--sxl-color-base-content) 5%, transparent);--scrollbar-width:13px;--scrollbar-height:13px;--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar-themed_nj3vu_7::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-button{display:none}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32{fill:var(--scrollbar-thumb-color);transition:fill opacity .26s ease;width:var(--scrollbar-width);height:var(--scrollbar-height);background-color:#0000}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:hover:not([disabled]){fill:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:disabled{opacity:.8}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70{scrollbar-color:var(--scrollbar-thumb-color) transparent}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70:hover:not([disabled]){scrollbar-color:var(--scrollbar-active-color) transparent}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.
|
|
3
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.1
|
|
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 { i as e, n as t, r as n, t as r } from "./
|
|
8
|
+
import { i as e, n as t, r as n, t as r } from "./BIb3Fag4wDs4Gro1.mjs";
|
|
9
9
|
import { CommonUtils as i, DefaultLanguagePackService as a, DefaultNotifier as o, ExpectedError as s, InternalClipboard as c, Notifier as l, TimerUtils as u, fetchLocaleResourceAll as d, formatMessage as f, loadPackageLocales as p, mergeMessageFiles as m, resolveLocaleChain as h } from "@sheetxl/utils";
|
|
10
10
|
import * as g from "react";
|
|
11
11
|
import _, { Component as v, cloneElement as y, createContext as b, createElement as x, forwardRef as S, isValidElement as C, memo as w, useCallback as T, useContext as E, useEffect as D, useId as O, useImperativeHandle as k, useLayoutEffect as A, useMemo as j, useReducer as M, useRef as N, useState as P, useSyncExternalStore as F, version as I } from "react";
|
|
12
|
-
import { Fragment as L, jsx as R, jsxs as
|
|
13
|
-
import { createRoot as
|
|
14
|
-
import * as
|
|
15
|
-
import
|
|
16
|
-
var H = Object.create, U = Object.defineProperty, W = Object.getOwnPropertyDescriptor, re = Object.getOwnPropertyNames, G = Object.getPrototypeOf,
|
|
12
|
+
import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
13
|
+
import { createRoot as ee } from "react-dom/client";
|
|
14
|
+
import * as B from "react-dom";
|
|
15
|
+
import te, { createPortal as ne, unstable_batchedUpdates as V } from "react-dom";
|
|
16
|
+
var H = Object.create, U = Object.defineProperty, W = Object.getOwnPropertyDescriptor, re = Object.getOwnPropertyNames, G = Object.getPrototypeOf, ie = Object.prototype.hasOwnProperty, K = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ae = (e, t) => {
|
|
17
17
|
let n = {};
|
|
18
18
|
for (var r in e) U(n, r, {
|
|
19
19
|
get: e[r],
|
|
@@ -21,7 +21,7 @@ var H = Object.create, U = Object.defineProperty, W = Object.getOwnPropertyDescr
|
|
|
21
21
|
});
|
|
22
22
|
return t || U(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
23
23
|
}, oe = (e, t, n) => (n = e == null ? {} : H(G(e)), ((e, t, n, r) => {
|
|
24
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i, a = re(t), o = 0, s = a.length; o < s; o++) i = a[o],
|
|
24
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i, a = re(t), o = 0, s = a.length; o < s; o++) i = a[o], ie.call(e, i) || i === n || U(e, i, {
|
|
25
25
|
get: ((e) => t[e]).bind(null, i),
|
|
26
26
|
enumerable: !(r = W(t, i)) || r.enumerable
|
|
27
27
|
});
|
|
@@ -1231,7 +1231,7 @@ function It({ spec: e, scope: t, use: n, order: r, elementRef: i, region: a, sco
|
|
|
1231
1231
|
let v = j(() => f ? f.getRegistry()?.getDynamic(f.name) ?? [] : [], [f]);
|
|
1232
1232
|
return R(Nt.Provider, {
|
|
1233
1233
|
value: p,
|
|
1234
|
-
children:
|
|
1234
|
+
children: z(kt.Provider, {
|
|
1235
1235
|
value: f ? null : l,
|
|
1236
1236
|
children: [f && v.map((e, t) => R(e, {
|
|
1237
1237
|
scope: f,
|
|
@@ -1668,7 +1668,7 @@ var xn = w(S((e, t) => {
|
|
|
1668
1668
|
...C(i) ? i.props?.style : void 0,
|
|
1669
1669
|
clipPath: `path('${S}')`
|
|
1670
1670
|
} }), [S, i]);
|
|
1671
|
-
return
|
|
1671
|
+
return z("div", {
|
|
1672
1672
|
className: n,
|
|
1673
1673
|
style: {
|
|
1674
1674
|
display: "flex",
|
|
@@ -1975,7 +1975,7 @@ var Gn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
|
|
|
1975
1975
|
return Zn.push({
|
|
1976
1976
|
hook: e,
|
|
1977
1977
|
key: t
|
|
1978
|
-
}), Qn.length === 0 && !1 === Xn && (Yn = !0, n = er, qn.document && qn.document.createElement ?
|
|
1978
|
+
}), Qn.length === 0 && !1 === Xn && (Yn = !0, n = er, qn.document && qn.document.createElement ? ee(qn.document.createElement("div")).render(R(n, { automaticContainerInternalUseOnly: !0 })) : Kn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")), $n(), () => {
|
|
1979
1979
|
Zn.splice(Zn.findIndex((e) => e.key === t), 1), $n();
|
|
1980
1980
|
};
|
|
1981
1981
|
}, nr = null;
|
|
@@ -2438,7 +2438,7 @@ var Yr = b(null), Xr = () => E(Yr), Zr = (e) => {
|
|
|
2438
2438
|
let e = _.Children.only(l);
|
|
2439
2439
|
s && (x.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), S = _.cloneElement(e, x);
|
|
2440
2440
|
}
|
|
2441
|
-
return
|
|
2441
|
+
return z(Yr.Provider, {
|
|
2442
2442
|
value: y,
|
|
2443
2443
|
children: [b, S]
|
|
2444
2444
|
});
|
|
@@ -3267,7 +3267,7 @@ var wa = (e, t) => {
|
|
|
3267
3267
|
}, Ea = "_float-popper_csci8_1", Da = "_float-popper-grow_csci8_7", Oa = "_entered_csci8_15", ka = [0, 2], Aa = w(S((e, t) => {
|
|
3268
3268
|
let { open: n, children: r, label: a, offsets: o = ka, anchorEl: s, anchorPosition: c, placement: l = "bottom-start", resizeOnOverflow: u = !0, followAnchor: d = !1, style: f, className: p, onMount: m, onOpening: h, onOpen: _, onClosing: v, onClose: y, ...b } = e;
|
|
3269
3269
|
if (Array.isArray(r)) throw Error("children can not be an array");
|
|
3270
|
-
let x = J(m ?? (() => {}), [m]), S = J(h ?? (() => {}), [h]), C = J(_ ?? (() => {}), [_]), w = J(v ?? (() => {}), [v]), E = J(y ?? (() => {}), [y]), [O, A] = P(!1), [M, F] = P(!1), [I, L] = P(!1), [
|
|
3270
|
+
let x = J(m ?? (() => {}), [m]), S = J(h ?? (() => {}), [h]), C = J(_ ?? (() => {}), [_]), w = J(v ?? (() => {}), [v]), E = J(y ?? (() => {}), [y]), [O, A] = P(!1), [M, F] = P(!1), [I, L] = P(!1), [z, ee] = P(), [te, V] = P(), H = N(null), U = N(null), { getPortalContainer: W } = Hn(), re = ri(), G = Xr(), ie = j(() => {
|
|
3271
3271
|
let e = re?.themeScope;
|
|
3272
3272
|
return G?.scopeClass || G?.mode ? {
|
|
3273
3273
|
classes: G?.scopeClass ? [...e?.classes ?? [], G.scopeClass] : e?.classes,
|
|
@@ -3278,7 +3278,7 @@ var wa = (e, t) => {
|
|
|
3278
3278
|
re?.themeScope,
|
|
3279
3279
|
G?.scopeClass,
|
|
3280
3280
|
G?.mode
|
|
3281
|
-
]),
|
|
3281
|
+
]), K = j(() => {
|
|
3282
3282
|
let e = [wa({
|
|
3283
3283
|
mainAxis: o[1] ?? 0,
|
|
3284
3284
|
crossAxis: o[0] ?? 0
|
|
@@ -3294,7 +3294,7 @@ var wa = (e, t) => {
|
|
|
3294
3294
|
rootBoundary: "document",
|
|
3295
3295
|
apply({ availableHeight: e, availableWidth: t }) {
|
|
3296
3296
|
let n = Math.max(0, Math.round(e - 10));
|
|
3297
|
-
|
|
3297
|
+
ee((e) => e === n ? e : n);
|
|
3298
3298
|
let r = Math.max(0, Math.round(t - 10));
|
|
3299
3299
|
V((e) => e === r ? e : r);
|
|
3300
3300
|
}
|
|
@@ -3310,7 +3310,10 @@ var wa = (e, t) => {
|
|
|
3310
3310
|
get contextElement() {
|
|
3311
3311
|
if (c) return;
|
|
3312
3312
|
let t = e();
|
|
3313
|
-
|
|
3313
|
+
if (!t) return;
|
|
3314
|
+
if (t.nodeType === 1) return t;
|
|
3315
|
+
let n = t.contextElement;
|
|
3316
|
+
return n && n.nodeType === 1 ? n : void 0;
|
|
3314
3317
|
}
|
|
3315
3318
|
};
|
|
3316
3319
|
}, [c, s]), { refs: oe, floatingStyles: se, isPositioned: ce, placement: le, update: ue } = function(e) {
|
|
@@ -3340,7 +3343,7 @@ var wa = (e, t) => {
|
|
|
3340
3343
|
...e,
|
|
3341
3344
|
isPositioned: !1 !== k.current
|
|
3342
3345
|
};
|
|
3343
|
-
j.current && !ba(T.current, t) && (T.current = t,
|
|
3346
|
+
j.current && !ba(T.current, t) && (T.current = t, B.flushSync(() => {
|
|
3344
3347
|
d(t);
|
|
3345
3348
|
}));
|
|
3346
3349
|
});
|
|
@@ -3419,7 +3422,7 @@ var wa = (e, t) => {
|
|
|
3419
3422
|
]);
|
|
3420
3423
|
}({
|
|
3421
3424
|
placement: l,
|
|
3422
|
-
middleware:
|
|
3425
|
+
middleware: K,
|
|
3423
3426
|
whileElementsMounted: j(() => d ? (e, t, n) => ma(e, t, n, { animationFrame: !0 }) : ma, [d]),
|
|
3424
3427
|
elements: { reference: ae }
|
|
3425
3428
|
}), de = T((e) => {
|
|
@@ -3454,20 +3457,20 @@ var wa = (e, t) => {
|
|
|
3454
3457
|
e.target === e.currentTarget && n && I && C?.();
|
|
3455
3458
|
}, [n, I]);
|
|
3456
3459
|
if (!O) return null;
|
|
3457
|
-
let pe = (le ?? l).startsWith("bottom") ? "left top" : "center bottom", { className: q, attrs: me } = ii(
|
|
3460
|
+
let pe = (le ?? l).startsWith("bottom") ? "left top" : "center bottom", { className: q, attrs: me } = ii(ie);
|
|
3458
3461
|
if (!q && !me["data-sxl-theme-mode"] && !me["data-sxl-theme-surface"]) {
|
|
3459
3462
|
let e = typeof s == "function" ? s() : s, t = e instanceof HTMLElement ? e : null, n = t?.closest(`[${Hr}]`)?.getAttribute(Hr), r = t?.closest(`[${Ur}]`)?.getAttribute(Ur);
|
|
3460
3463
|
n && (me[Hr] = n), r && (me[Ur] = r);
|
|
3461
3464
|
}
|
|
3462
|
-
return
|
|
3465
|
+
return ne(R("div", {
|
|
3463
3466
|
ref: de,
|
|
3464
3467
|
className: Y(Ea, p, q),
|
|
3465
3468
|
role: void 0,
|
|
3466
3469
|
...me,
|
|
3467
3470
|
style: {
|
|
3468
3471
|
...se,
|
|
3469
|
-
maxHeight: u ?
|
|
3470
|
-
maxWidth: u ?
|
|
3472
|
+
maxHeight: u ? z : void 0,
|
|
3473
|
+
maxWidth: u ? te : void 0,
|
|
3471
3474
|
zIndex: n ? 1300 : 1299,
|
|
3472
3475
|
pointerEvents: O && n ? void 0 : "none",
|
|
3473
3476
|
...f
|
|
@@ -3592,8 +3595,8 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3592
3595
|
let A = (e) => {
|
|
3593
3596
|
let t = w.floatByParents.get(e), n = null;
|
|
3594
3597
|
return t && (n = w.statesByMovables.get(t)?.close(0) ?? null), n;
|
|
3595
|
-
}, F = () => A(K.key), [I, L] = P(),
|
|
3596
|
-
if (!_) return
|
|
3598
|
+
}, F = () => A(K.key), [I, L] = P(), z = () => {
|
|
3599
|
+
if (!_) return V(), null;
|
|
3597
3600
|
let e = new Promise((e, t) => {
|
|
3598
3601
|
L((n) => ({
|
|
3599
3602
|
resolve: e,
|
|
@@ -3609,22 +3612,24 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3609
3612
|
x,
|
|
3610
3613
|
I
|
|
3611
3614
|
]);
|
|
3612
|
-
let
|
|
3615
|
+
let ee = T(() => {
|
|
3613
3616
|
let e = C;
|
|
3614
3617
|
for (; e.parent;) e = e.parent;
|
|
3615
3618
|
return A(e.key);
|
|
3616
|
-
}, []),
|
|
3617
|
-
if (_) return void
|
|
3619
|
+
}, []), B = N(null), te = () => {
|
|
3620
|
+
if (_) return void V();
|
|
3618
3621
|
C && w.statesByMovables.get(C.key)?.open(0);
|
|
3619
3622
|
let e = w.floatByParents.get(C.key);
|
|
3620
|
-
e && e !== E && w.statesByMovables.get(e)?.close(0)
|
|
3623
|
+
e && e !== E && w.statesByMovables.get(e)?.close(0);
|
|
3624
|
+
let t = document.activeElement;
|
|
3625
|
+
t && t !== document.body && typeof t.focus == "function" && (B.current = t), requestAnimationFrame(() => {
|
|
3621
3626
|
w.floatByParents.set(C.key, K.key), v(!0);
|
|
3622
3627
|
});
|
|
3623
|
-
}, [ne,
|
|
3624
|
-
closeFloat:
|
|
3625
|
-
closeFloatAll:
|
|
3628
|
+
}, [ne, V] = M((e) => e + 1, 0), H = T((e) => h === null ? null : h({
|
|
3629
|
+
closeFloat: re,
|
|
3630
|
+
closeFloatAll: ie,
|
|
3626
3631
|
...e
|
|
3627
|
-
}), [h]),
|
|
3632
|
+
}), [h]), U = h === null, W = J((e = 120) => w.debounce(e, te, /* @__PURE__ */ new Set([K]), !1)(), [te]), re = J((e = 60) => w.debounce(e, z, w.descendants(K), !0)(), [z]), G = J((e = 360) => w.debounce(e, F, w.descendants(w.getChildRef(K)), !0)(), [F]), ie = J(ee, [ee]), K = j(() => ({
|
|
3628
3633
|
key: E,
|
|
3629
3634
|
isRoot: !1,
|
|
3630
3635
|
label: i,
|
|
@@ -3635,10 +3640,10 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3635
3640
|
onChildHidden: () => {
|
|
3636
3641
|
S(!1);
|
|
3637
3642
|
},
|
|
3638
|
-
open:
|
|
3639
|
-
close:
|
|
3640
|
-
closeChild:
|
|
3641
|
-
closeAll:
|
|
3643
|
+
open: W,
|
|
3644
|
+
close: re,
|
|
3645
|
+
closeChild: G,
|
|
3646
|
+
closeAll: ie,
|
|
3642
3647
|
getRoot: () => w,
|
|
3643
3648
|
floatElement: () => O.current,
|
|
3644
3649
|
anchorElement: () => k.current
|
|
@@ -3646,20 +3651,20 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3646
3651
|
D(() => {
|
|
3647
3652
|
w.statesByMovables.set(E, K);
|
|
3648
3653
|
}, [K]), D(() => () => {
|
|
3649
|
-
w.statesByMovables.delete(E),
|
|
3654
|
+
w.statesByMovables.delete(E), re(0);
|
|
3650
3655
|
}, []), D(() => {
|
|
3651
|
-
_ && !
|
|
3652
|
-
}, [_,
|
|
3653
|
-
let
|
|
3654
|
-
e.which === ce.Escape && (e.preventDefault(), e.stopPropagation(),
|
|
3655
|
-
}, []),
|
|
3656
|
-
let e =
|
|
3656
|
+
_ && !U && (b(!0), C.onChildVisible());
|
|
3657
|
+
}, [_, U]);
|
|
3658
|
+
let ae = T((e) => {
|
|
3659
|
+
e.which === ce.Escape && (e.preventDefault(), e.stopPropagation(), re(0));
|
|
3660
|
+
}, []), oe = T(() => {
|
|
3661
|
+
let e = B.current, t = O.current;
|
|
3657
3662
|
e && t && (requestAnimationFrame(() => {
|
|
3658
3663
|
(t.contains(document.activeElement) || document.activeElement === document.body) && e.focus();
|
|
3659
|
-
}),
|
|
3664
|
+
}), B.current = null), f?.();
|
|
3660
3665
|
}, []), se = T((e) => {
|
|
3661
|
-
if (O.current = e, e.addEventListener("
|
|
3662
|
-
|
|
3666
|
+
if (O.current = e, e.addEventListener("focusin", (e) => {
|
|
3667
|
+
B.current ||= e.relatedTarget;
|
|
3663
3668
|
}, {
|
|
3664
3669
|
once: !0,
|
|
3665
3670
|
passive: !0
|
|
@@ -3670,7 +3675,7 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3670
3675
|
});
|
|
3671
3676
|
}, [n]), [le, ue] = P();
|
|
3672
3677
|
D(() => {
|
|
3673
|
-
|
|
3678
|
+
U && (_ ? d?.() : !1 === _ && f?.()), ue(y ? R(Xt, {
|
|
3674
3679
|
value: K,
|
|
3675
3680
|
children: m({
|
|
3676
3681
|
...p?.propsFloatPanel,
|
|
@@ -3687,22 +3692,22 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3687
3692
|
},
|
|
3688
3693
|
onMount: se,
|
|
3689
3694
|
propsPopper: {
|
|
3690
|
-
onKeyDown:
|
|
3695
|
+
onKeyDown: ae,
|
|
3691
3696
|
onMouseEnter: (e) => {
|
|
3692
3697
|
_ && w.lastDebounced?.isClose && w.lastDebounced.setReferences.has(K) && (w.lastDebounced.fn.clear(), w.lastDebounced = null, K.closeChild());
|
|
3693
3698
|
},
|
|
3694
3699
|
...c
|
|
3695
3700
|
},
|
|
3696
|
-
createPopupPanel:
|
|
3701
|
+
createPopupPanel: H
|
|
3697
3702
|
})
|
|
3698
3703
|
}) : null);
|
|
3699
3704
|
}, [
|
|
3700
3705
|
y,
|
|
3701
3706
|
_,
|
|
3702
3707
|
i,
|
|
3703
|
-
|
|
3708
|
+
U,
|
|
3704
3709
|
c,
|
|
3705
|
-
|
|
3710
|
+
H,
|
|
3706
3711
|
m,
|
|
3707
3712
|
p?.propsFloatPanel,
|
|
3708
3713
|
ne
|
|
@@ -3713,8 +3718,8 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3713
3718
|
w.floatByParents.forEach((n) => {
|
|
3714
3719
|
let r = w.statesByMovables.get(n);
|
|
3715
3720
|
t || r && (r.floatElement()?.contains?.(e.target) && (t = !0), r.anchorElement()?.contains?.(e.target) && (t = !0));
|
|
3716
|
-
}), t || typeof r == "function" && r(e.target) ||
|
|
3717
|
-
}, [
|
|
3721
|
+
}), t || typeof r == "function" && r(e.target) || ee();
|
|
3722
|
+
}, [ee, r]);
|
|
3718
3723
|
return D(() => {
|
|
3719
3724
|
if (!_ || !C.isRoot || !0 === r) return;
|
|
3720
3725
|
let e = (e) => {
|
|
@@ -3785,7 +3790,7 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3785
3790
|
D(() => {
|
|
3786
3791
|
A(Ga(o, a === null));
|
|
3787
3792
|
}, [o, a]);
|
|
3788
|
-
let [M, { width: F, height: I }] = un(), [L, { width:
|
|
3793
|
+
let [M, { width: F, height: I }] = un(), [L, { width: ee, height: B }] = un(), te = i === "row" ? ee : B, ne = i === "row" ? F : I, V = j(() => ((e, t, n, r) => {
|
|
3789
3794
|
let i = [null, null], a = [null, null];
|
|
3790
3795
|
if (e ||= {
|
|
3791
3796
|
percent: r.fixedPaneOffset === null ? 50 : null,
|
|
@@ -3809,13 +3814,13 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3809
3814
|
maxBefore: `${i[0]}px`,
|
|
3810
3815
|
maxAfter: `${i[1]}px`
|
|
3811
3816
|
};
|
|
3812
|
-
})(k,
|
|
3817
|
+
})(k, ne, te, E), [
|
|
3813
3818
|
E,
|
|
3814
3819
|
k,
|
|
3815
|
-
B,
|
|
3816
3820
|
ne,
|
|
3821
|
+
te,
|
|
3817
3822
|
i
|
|
3818
|
-
]), [H, U] = P(!1), W = J(g ?? (() => {}), [g]), re = J(_ ?? (() => {}), [_]), G = J(v ?? (() => {}), [v]),
|
|
3823
|
+
]), [H, U] = P(!1), W = J(g ?? (() => {}), [g]), re = J(_ ?? (() => {}), [_]), G = J(v ?? (() => {}), [v]), ie = N(null), K = N(null), ae = N(null), { style: oe, className: se, ...ce } = b, le = {
|
|
3819
3824
|
minWidth: 0,
|
|
3820
3825
|
minHeight: 0,
|
|
3821
3826
|
maxWidth: "100%",
|
|
@@ -3838,7 +3843,7 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3838
3843
|
}, [a]), xe = J((e) => {
|
|
3839
3844
|
if (h || !H) return;
|
|
3840
3845
|
let t = we.current?.getBoundingClientRect(), n = 0;
|
|
3841
|
-
n = i === "row" ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(
|
|
3846
|
+
n = i === "row" ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(ne, n)), E.fixedPaneOffset === 1 && (n = ne - n), o && k?.pixels === n || A({
|
|
3842
3847
|
pixels: n,
|
|
3843
3848
|
percent: null
|
|
3844
3849
|
}), re?.(n), e.stopPropagation(), e.preventDefault();
|
|
@@ -3848,13 +3853,13 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3848
3853
|
h,
|
|
3849
3854
|
H,
|
|
3850
3855
|
k,
|
|
3851
|
-
|
|
3856
|
+
ne
|
|
3852
3857
|
]), Se = J((e) => {
|
|
3853
3858
|
if (document.removeEventListener("pointermove", xe), document.removeEventListener("touchmove", xe), document.removeEventListener("pointerup", Se), H && (U(!1), k)) {
|
|
3854
3859
|
if (G(k.pixels ?? 0), !Ga(o, a === null) || k.pixels !== o) {
|
|
3855
3860
|
let e = k.pixels ?? 0, t = {
|
|
3856
3861
|
pixels: e,
|
|
3857
|
-
percent: k.percent ?? e /
|
|
3862
|
+
percent: k.percent ?? e / ne * 100
|
|
3858
3863
|
};
|
|
3859
3864
|
O(t);
|
|
3860
3865
|
}
|
|
@@ -3865,7 +3870,7 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3865
3870
|
H,
|
|
3866
3871
|
o,
|
|
3867
3872
|
a,
|
|
3868
|
-
|
|
3873
|
+
ne
|
|
3869
3874
|
]), Ce = J((e) => {
|
|
3870
3875
|
ve?.(e), e.defaultPrevented || h || H || (U(!0), W(), document.addEventListener("pointermove", xe, { passive: !1 }), document.addEventListener("touchmove", xe, { passive: !1 }), document.addEventListener("pointerup", Se, { passive: !1 }));
|
|
3871
3876
|
}, [ve]), we = wr(t, () => ({
|
|
@@ -3873,7 +3878,7 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3873
3878
|
isSplitPane: () => !0
|
|
3874
3879
|
}), []), Te = j(() => T ? w?.({
|
|
3875
3880
|
key: "resizer",
|
|
3876
|
-
ref: vn([L,
|
|
3881
|
+
ref: vn([L, K]),
|
|
3877
3882
|
className: Y("resizer", ge),
|
|
3878
3883
|
onPointerDownCapture: Ce,
|
|
3879
3884
|
style: {
|
|
@@ -3905,7 +3910,7 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3905
3910
|
[`max${Ee}`]: r ? V?.maxBefore : "100%"
|
|
3906
3911
|
};
|
|
3907
3912
|
return R("div", {
|
|
3908
|
-
ref:
|
|
3913
|
+
ref: ie,
|
|
3909
3914
|
className: Y("before", se, ue),
|
|
3910
3915
|
style: e,
|
|
3911
3916
|
...ce,
|
|
@@ -3942,7 +3947,7 @@ var La = (e) => R(Pa, { ...e }), Ra = (e) => {
|
|
|
3942
3947
|
E,
|
|
3943
3948
|
V
|
|
3944
3949
|
]);
|
|
3945
|
-
return
|
|
3950
|
+
return z("div", {
|
|
3946
3951
|
ref: vn([M, we]),
|
|
3947
3952
|
className: Y("splitPane", i === "row" ? "vertical" : "horizontal", { dragging: H }, p),
|
|
3948
3953
|
style: he,
|
|
@@ -4320,17 +4325,17 @@ var to = {
|
|
|
4320
4325
|
let e = O.current;
|
|
4321
4326
|
e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, x?.(w(!1)));
|
|
4322
4327
|
}, []), !v?.portalTarget) return null;
|
|
4323
|
-
let I = 1.8 * o, L = _ ? o : I,
|
|
4328
|
+
let I = 1.8 * o, L = _ ? o : I, z = _ ? I : o, ee = _ ? v.viewportHeight : v.viewportWidth, B = _ ? v.height : v.width, te = Math.max(0, B - ee), V = _ ? v.reserveVertical : v.reserveHorizontal, H = V > 0 ? -2 : 4, U = Math.max(0, ee - V - I - 4 - H);
|
|
4324
4329
|
O.current.travel = U;
|
|
4325
|
-
let W =
|
|
4326
|
-
return _ ? (re = v.width - v.crossInset - L / 2, G = W -
|
|
4330
|
+
let W = te + 4 + I / 2 + Mo(u) * U, re, G;
|
|
4331
|
+
return _ ? (re = v.width - v.crossInset - L / 2, G = W - z / 2) : (G = v.height - v.crossInset - z / 2, re = W - L / 2), ne(R("div", {
|
|
4327
4332
|
className: Y("touch-thumb", so, c, { dragging: T }),
|
|
4328
4333
|
ref: C,
|
|
4329
4334
|
style: {
|
|
4330
4335
|
left: re,
|
|
4331
4336
|
top: G,
|
|
4332
4337
|
width: L,
|
|
4333
|
-
height:
|
|
4338
|
+
height: z,
|
|
4334
4339
|
zIndex: 20,
|
|
4335
4340
|
borderWidth: `${a}px`,
|
|
4336
4341
|
boxShadow: T ? `${r} 0px 0px 0px 1.5px` : void 0,
|
|
@@ -4357,7 +4362,7 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4357
4362
|
offset: 0,
|
|
4358
4363
|
length: 0,
|
|
4359
4364
|
disabled: !1
|
|
4360
|
-
}), A = N(-1), M = s === Z.Vertical, [F, { width: I, height:
|
|
4365
|
+
}), A = N(-1), M = s === Z.Vertical, [F, { width: I, height: ee }] = un(), B = M ? ee : I, te = N(null), ne = j(() => vn([F, te]), [F]), V = J((e, t, n) => {
|
|
4361
4366
|
if (t === 0 || n === 0) {
|
|
4362
4367
|
let e = {
|
|
4363
4368
|
offset: 0,
|
|
@@ -4368,27 +4373,27 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4368
4373
|
}
|
|
4369
4374
|
if (t >= n) return {
|
|
4370
4375
|
offset: 0,
|
|
4371
|
-
length:
|
|
4376
|
+
length: B,
|
|
4372
4377
|
disabled: !0
|
|
4373
4378
|
};
|
|
4374
|
-
let r = n /
|
|
4379
|
+
let r = n / B, i = t / r, a = Math.min(Math.max(m, i), Math.min(B, h ?? 2 ** 53 - 1)), o = e / r;
|
|
4375
4380
|
return {
|
|
4376
|
-
offset: Math.min(Math.max(0, o),
|
|
4381
|
+
offset: Math.min(Math.max(0, o), B - a),
|
|
4377
4382
|
length: a,
|
|
4378
4383
|
disabled: !1
|
|
4379
4384
|
};
|
|
4380
4385
|
}, [
|
|
4381
|
-
|
|
4386
|
+
B,
|
|
4382
4387
|
m,
|
|
4383
4388
|
h
|
|
4384
4389
|
]), H = J((e) => {
|
|
4385
|
-
let t = r /
|
|
4390
|
+
let t = r / B, n = Math.round(e * t);
|
|
4386
4391
|
k(V(n, i, r)), c?.(n, i, r), A.current = e;
|
|
4387
4392
|
}, [
|
|
4388
4393
|
c,
|
|
4389
4394
|
i,
|
|
4390
4395
|
r,
|
|
4391
|
-
|
|
4396
|
+
B,
|
|
4392
4397
|
O
|
|
4393
4398
|
]), U = J((e) => {
|
|
4394
4399
|
k(V(e, i, r)), c?.(e, i, r), A.current = e;
|
|
@@ -4398,14 +4403,14 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4398
4403
|
r
|
|
4399
4404
|
]);
|
|
4400
4405
|
D(() => {
|
|
4401
|
-
A.current !== n &&
|
|
4406
|
+
A.current !== n && B !== 0 && (A.current = -1, k(V(n, i, r)));
|
|
4402
4407
|
}, [n]), D(() => {
|
|
4403
|
-
|
|
4408
|
+
B !== 0 && k(V(n, i, r));
|
|
4404
4409
|
}, [
|
|
4405
4410
|
i,
|
|
4406
4411
|
r,
|
|
4407
4412
|
M,
|
|
4408
|
-
|
|
4413
|
+
B
|
|
4409
4414
|
]);
|
|
4410
4415
|
let W = Math.max(0, r - i), re = wr(t, () => ({ isScrollbar: () => !0 }), []), G = J((e) => {
|
|
4411
4416
|
let t = Math.max(1, Math.floor(.9 * i)), r = e > 0 ? Math.min(W, n + t) : Math.max(0, n - t);
|
|
@@ -4414,9 +4419,9 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4414
4419
|
i,
|
|
4415
4420
|
n,
|
|
4416
4421
|
W
|
|
4417
|
-
]),
|
|
4422
|
+
]), ie = yo({
|
|
4418
4423
|
vertical: M,
|
|
4419
|
-
getTrackRect: () =>
|
|
4424
|
+
getTrackRect: () => te.current?.getBoundingClientRect() ?? null,
|
|
4420
4425
|
getThumb: () => O.disabled ? null : {
|
|
4421
4426
|
offset: O.offset,
|
|
4422
4427
|
length: O.length
|
|
@@ -4442,7 +4447,7 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4442
4447
|
b,
|
|
4443
4448
|
x
|
|
4444
4449
|
])
|
|
4445
|
-
}),
|
|
4450
|
+
}), K = ie.dragMode === "thumb", ae = J((e) => {
|
|
4446
4451
|
let t = Math.max(1, Math.floor(.9 * i));
|
|
4447
4452
|
M ? (e.key === "ArrowDown" && H(Math.min(W, n + 1)), e.key === "ArrowUp" && H(Math.max(0, n - 1)), e.key === "PageDown" && H(Math.min(W, n + t)), e.key === "PageUp" && H(Math.max(0, n - t)), e.key === "Home" && H(0), e.key === "End" && H(W)) : (e.key === "ArrowRight" && H(Math.min(W, n + 1)), e.key === "ArrowLeft" && H(Math.max(0, n - 1)), e.key === "PageDown" && H(Math.min(W, n + t)), e.key === "PageUp" && H(Math.max(0, n - t)), e.key === "Home" && H(0), e.key === "End" && H(W));
|
|
4448
4453
|
}, [
|
|
@@ -4476,8 +4481,8 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4476
4481
|
onMouseDown: S
|
|
4477
4482
|
});
|
|
4478
4483
|
if (!w || e) return t;
|
|
4479
|
-
let r = Math.max(0,
|
|
4480
|
-
return
|
|
4484
|
+
let r = Math.max(0, B - O.length);
|
|
4485
|
+
return z(L, { children: [t, R(No, {
|
|
4481
4486
|
...v,
|
|
4482
4487
|
orientation: M ? Z.Vertical : Z.Horizontal,
|
|
4483
4488
|
fraction: r > 0 ? O.offset / r : 0,
|
|
@@ -4495,7 +4500,7 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4495
4500
|
S,
|
|
4496
4501
|
v,
|
|
4497
4502
|
y,
|
|
4498
|
-
|
|
4503
|
+
B,
|
|
4499
4504
|
b,
|
|
4500
4505
|
x
|
|
4501
4506
|
]), [ce, le] = P(null), ue = J(() => {
|
|
@@ -4556,10 +4561,10 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4556
4561
|
W,
|
|
4557
4562
|
ce
|
|
4558
4563
|
]), _e = M ? "vertical" : "horizontal";
|
|
4559
|
-
return
|
|
4564
|
+
return z("div", {
|
|
4560
4565
|
ref: vn([re, t]),
|
|
4561
4566
|
className: Y(o, ro, _e, {
|
|
4562
|
-
dragging:
|
|
4567
|
+
dragging: K,
|
|
4563
4568
|
"has-touch-thumb": w
|
|
4564
4569
|
}),
|
|
4565
4570
|
style: a,
|
|
@@ -4567,7 +4572,7 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4567
4572
|
children: [
|
|
4568
4573
|
he,
|
|
4569
4574
|
R("div", {
|
|
4570
|
-
ref:
|
|
4575
|
+
ref: ne,
|
|
4571
4576
|
role: "scrollbar",
|
|
4572
4577
|
"aria-orientation": _e,
|
|
4573
4578
|
"aria-valuemin": 0,
|
|
@@ -4576,9 +4581,9 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4576
4581
|
tabIndex: 0,
|
|
4577
4582
|
className: Y(io, "track", _e),
|
|
4578
4583
|
onMouseDown: S,
|
|
4579
|
-
onPointerDown:
|
|
4580
|
-
onPointerMove:
|
|
4581
|
-
onPointerUp:
|
|
4584
|
+
onPointerDown: ie.onPointerDown,
|
|
4585
|
+
onPointerMove: ie.onPointerMove,
|
|
4586
|
+
onPointerUp: ie.onPointerUp,
|
|
4582
4587
|
onKeyDown: ae,
|
|
4583
4588
|
children: se
|
|
4584
4589
|
}),
|
|
@@ -4904,9 +4909,9 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4904
4909
|
_?.totalHeight,
|
|
4905
4910
|
p
|
|
4906
4911
|
]);
|
|
4907
|
-
let k = dt().supportsTouchEvents, [A, M] = P(null), [F, { width: I, height: L }] = un(),
|
|
4912
|
+
let k = dt().supportsTouchEvents, [A, M] = P(null), [F, { width: I, height: L }] = un(), ee = T((e) => {
|
|
4908
4913
|
M(e), F(e);
|
|
4909
|
-
}, [F]),
|
|
4914
|
+
}, [F]), B = j(() => {
|
|
4910
4915
|
if (!A) return null;
|
|
4911
4916
|
let e = Do(), t = Math.min(I, _?.width ?? I), n = Math.min(L, _?.height ?? L);
|
|
4912
4917
|
return {
|
|
@@ -4927,7 +4932,7 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4927
4932
|
_?.height,
|
|
4928
4933
|
h,
|
|
4929
4934
|
g
|
|
4930
|
-
]),
|
|
4935
|
+
]), te = j(() => {
|
|
4931
4936
|
if (!g) return null;
|
|
4932
4937
|
let e = u({
|
|
4933
4938
|
orientation: Z.Vertical,
|
|
@@ -4947,7 +4952,7 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4947
4952
|
_?.top,
|
|
4948
4953
|
_?.height,
|
|
4949
4954
|
_?.totalHeight
|
|
4950
|
-
]),
|
|
4955
|
+
]), ne = j(() => {
|
|
4951
4956
|
if (!h) return null;
|
|
4952
4957
|
let e = l({
|
|
4953
4958
|
orientation: Z.Horizontal,
|
|
@@ -4981,19 +4986,19 @@ var Po = 24, Fo = w(S((e, t) => {
|
|
|
4981
4986
|
...m,
|
|
4982
4987
|
ref: y,
|
|
4983
4988
|
children: R(ko, {
|
|
4984
|
-
value:
|
|
4985
|
-
children:
|
|
4989
|
+
value: B,
|
|
4990
|
+
children: z("div", {
|
|
4986
4991
|
className: Y("scrollpane-content", Yo),
|
|
4987
4992
|
children: [
|
|
4988
4993
|
R("div", {
|
|
4989
4994
|
className: Y("scrollpane-content-cell", Xo),
|
|
4990
4995
|
children: n
|
|
4991
4996
|
}),
|
|
4992
|
-
g ?
|
|
4993
|
-
h ?
|
|
4997
|
+
g ? te : null,
|
|
4998
|
+
h ? ne : null,
|
|
4994
4999
|
V,
|
|
4995
5000
|
k ? R("div", {
|
|
4996
|
-
ref:
|
|
5001
|
+
ref: ee,
|
|
4997
5002
|
className: Y("touch-thumb-overlay", es)
|
|
4998
5003
|
}) : null
|
|
4999
5004
|
]
|
|
@@ -5425,9 +5430,9 @@ var ys = "_scrollbar-themed_nj3vu_7", bs = (e) => ({
|
|
|
5425
5430
|
"--scrollbar-border-radius": "9999px",
|
|
5426
5431
|
"--scrollbar-border-width": "2px",
|
|
5427
5432
|
"--scrollbar-min-thumb-size": "24px"
|
|
5428
|
-
}), xs =
|
|
5433
|
+
}), xs = K((e, t) => {
|
|
5429
5434
|
t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
5430
|
-
}), Ss =
|
|
5435
|
+
}), Ss = K((e, t) => {
|
|
5431
5436
|
var n = xs();
|
|
5432
5437
|
function r() {}
|
|
5433
5438
|
function i() {}
|
|
@@ -5467,7 +5472,7 @@ var ys = "_scrollbar-themed_nj3vu_7", bs = (e) => ({
|
|
|
5467
5472
|
};
|
|
5468
5473
|
return a.PropTypes = a, a;
|
|
5469
5474
|
};
|
|
5470
|
-
}), Q = oe(
|
|
5475
|
+
}), Q = oe(K((e, t) => {
|
|
5471
5476
|
t.exports = Ss()();
|
|
5472
5477
|
})(), 1);
|
|
5473
5478
|
function Cs(e, t) {
|
|
@@ -5730,7 +5735,7 @@ var Xs = {
|
|
|
5730
5735
|
}
|
|
5731
5736
|
findDOMNode() {
|
|
5732
5737
|
if (this.props?.nodeRef) return this.props.nodeRef.current;
|
|
5733
|
-
let e =
|
|
5738
|
+
let e = te;
|
|
5734
5739
|
return typeof e.findDOMNode == "function" ? e.findDOMNode(this) : null;
|
|
5735
5740
|
}
|
|
5736
5741
|
render() {
|
|
@@ -5862,7 +5867,7 @@ var ec = class extends g.Component {
|
|
|
5862
5867
|
}
|
|
5863
5868
|
findDOMNode() {
|
|
5864
5869
|
if (this.props?.nodeRef) return this.props.nodeRef.current;
|
|
5865
|
-
let e =
|
|
5870
|
+
let e = te;
|
|
5866
5871
|
return typeof e.findDOMNode == "function" ? e.findDOMNode(this) : null;
|
|
5867
5872
|
}
|
|
5868
5873
|
render() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.
|
|
2
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.1
|
|
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.
|
|
@@ -177,6 +177,14 @@ var a = {
|
|
|
177
177
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z",
|
|
178
178
|
className: "fill"
|
|
179
179
|
}] },
|
|
180
|
+
CircularReference: { svg: [{
|
|
181
|
+
d: "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z",
|
|
182
|
+
className: "fill"
|
|
183
|
+
}] },
|
|
184
|
+
CircularReferenceIndicator: { svg: [{
|
|
185
|
+
d: "M 10,6 V 9 L 14,5 10,1 v 3 c -4.42,0 -8,3.58 -8,8 0,1.57 0.46,3.03 1.24,4.26 L 4.7,14.8 C 4.25,13.97 4,13.01 4,12 4,8.69 6.69,6 10,6 Z M 16.76,7.74 15.3,9.2 c 0.44,0.84 0.7,1.79 0.7,2.8 0,3.31 -2.69,6 -6,6 v -3 l -4,4 4,4 v -3 c 4.42,0 8,-3.58 8,-8 0,-1.57 -0.46,-3.03 -1.24,-4.26 z",
|
|
186
|
+
className: "fill"
|
|
187
|
+
}] },
|
|
180
188
|
CellsFormat: { svg: [{
|
|
181
189
|
d: "M 10.115234 1 C 8.9554924 1 8 1.986624 8 3.1835938 L 8 7.8847656 L 3.1835938 7.8847656 C 1.9866241 7.8847656 1 8.8528347 1 10.027344 L 1 14.857422 C 1 16.03193 1.9866241 17 3.1835938 17 L 8 17 L 8 20.816406 C 8 21.326526 8.1760827 21.796286 8.4648438 22.169922 C 8.534031 22.08394 8.6075304 22.000344 8.6894531 21.921875 C 9.0890962 21.538626 9.3048709 21.049089 9.421875 20.560547 L 9.421875 17 L 10.939453 17 C 11.125184 16.807258 11.326127 16.627621 11.541016 16.464844 C 12.114144 16.0284 12.765117 15.724334 13.451172 15.560547 L 9.421875 15.560547 L 9.421875 9.3242188 L 15.578125 9.3242188 L 15.578125 14.804688 C 16.030703 14.335314 16.502591 13.859465 17 13.384766 L 17 9.3242188 L 20.816406 9.3242188 C 21.102602 9.3242188 21.33481 9.4736946 21.451172 9.6992188 C 21.887183 9.4273643 22.326886 9.1994156 22.746094 9.0410156 C 22.379858 8.3577385 21.651022 7.8847656 20.816406 7.8847656 L 17 7.8847656 L 17 3.1835938 C 17 1.986624 16.044505 1 14.884766 1 L 10.115234 1 z M 10.115234 2.4667969 L 14.884766 2.4667969 C 15.281829 2.4667969 15.578125 2.7737848 15.578125 3.1835938 L 15.578125 7.8847656 L 9.421875 7.8847656 L 9.421875 3.1835938 C 9.421875 2.7737848 9.7181719 2.4667969 10.115234 2.4667969 z M 3.1835938 9.3242188 L 8 9.3242188 L 8 15.560547 L 3.1835938 15.560547 C 2.773784 15.560547 2.4667969 15.25954 2.4667969 14.857422 L 2.4667969 10.027344 C 2.4667969 9.6252246 2.773784 9.3242188 3.1835938 9.3242188 z ",
|
|
182
190
|
className: "fill"
|