@wrdagency/blockout 1.0.5 → 1.0.7
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/dist/2NBKRL7C-CzwWfv1x.js +76 -0
- package/dist/2RSXSRCN-rMUAytae.js +61 -0
- package/dist/{4CMBR7SL-xNGezbCB.js → 4CMBR7SL-ChJnawVl.js} +132 -126
- package/dist/{5JTVDSTH-CIreO5bC.js → 5JTVDSTH-DcfjjEya.js} +4 -4
- package/dist/{5VQZOHHZ-CNzYHc1X.js → 5VQZOHHZ-BN-teS5E.js} +1 -1
- package/dist/{6VRAQV3D-BoLhl3hf.js → 6VRAQV3D-DK_p41oq.js} +6 -6
- package/dist/A3WPL2ZJ-CpUtG5Sk.js +12 -0
- package/dist/{BM6PGYQY-Bhr7peim.js → BM6PGYQY-CkMwDqt0.js} +2 -2
- package/dist/Check.es-CMkTf2It.js +38 -0
- package/dist/{DG5U6ZEL-C7eLVyh-.js → DG5U6ZEL-GfwW2sqh.js} +3 -3
- package/dist/EM5CXX6A-C74NAQPE.js +13 -0
- package/dist/{F5MUBM3I-_HauDyEF.js → F5MUBM3I-BbDMTUwx.js} +24 -24
- package/dist/{G7GW6PWC-Crp1Jn-8.js → G7GW6PWC-A0eDeXMt.js} +100 -96
- package/dist/IWEFDH56-CvOsIcbb.js +19 -0
- package/dist/{J2LQO3EC-CcHJqN0I.js → J2LQO3EC-DYtZQQv6.js} +4 -3
- package/dist/{KFH4SEIX-D-fCkpQv.js → KFH4SEIX-BFT9WmYk.js} +3 -3
- package/dist/{LMDWO4NN-DdLnHzru.js → LMDWO4NN-CIZvvtic.js} +233 -203
- package/dist/MAXQOH4L-DBaf8WKp.js +564 -0
- package/dist/MR26YJYP-DacZIkgJ.js +287 -0
- package/dist/MTZPJQMC-DPwZ6caC.js +13 -0
- package/dist/{O2PQ2652-THp22K4G.js → O2PQ2652-D2GSkoLq.js} +6 -6
- package/dist/P7GR5CS5-5PtDURPc.js +24 -0
- package/dist/{PFRGBC2K-DUhGSIey.js → PFRGBC2K-B9ko--FF.js} +34 -33
- package/dist/Plus.es-DJ5SuqNv.js +38 -0
- package/dist/RS7LB2H4-BvDKQaCt.js +18 -0
- package/dist/RZ4GPYOB-COPqjbOz.js +37 -0
- package/dist/{S43UC3DV-erT1ucAd.js → S43UC3DV-CiBKpqp8.js} +3 -3
- package/dist/{T7VMP3TM-C-Aesx9K.js → T7VMP3TM-C0xl-w4G.js} +21 -21
- package/dist/TP7N7UIH-Dc0CLLi8.js +33 -0
- package/dist/{UQQRIHDV-DIXH69U3.js → UQQRIHDV-BBkcyl82.js} +17 -17
- package/dist/UYGDZTLQ-9uAEICxv.js +13 -0
- package/dist/VIIRIBF3-uvnIyICw.js +31 -0
- package/dist/WMYDSCNQ-D4CU76mX.js +61 -0
- package/dist/{WYCIER3C-S-jsj0wy.js → WYCIER3C-CaoIoaX7.js} +4 -4
- package/dist/{YV4JVR4I-BXEaRiAN.js → YV4JVR4I-w1-dnslS.js} +47 -47
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/style16.css +1 -1
- package/dist/assets/style17.css +1 -1
- package/dist/assets/style18.css +1 -1
- package/dist/assets/style19.css +1 -1
- package/dist/assets/style20.css +1 -1
- package/dist/assets/style21.css +1 -1
- package/dist/assets/style22.css +1 -1
- package/dist/assets/style23.css +1 -1
- package/dist/assets/style24.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/assets/style26.css +1 -1
- package/dist/assets/style27.css +1 -0
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/button/row.js +4 -4
- package/dist/components/controls/base-popover-control/index.js +4 -4
- package/dist/components/controls/card-number-control/index.js +1 -1
- package/dist/components/controls/date-control/index.js +1 -1
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.js +12 -10
- package/dist/components/controls/list-control/item.js +34 -67
- package/dist/components/controls/list-control/list.js +1 -1
- package/dist/components/controls/recurrence-control/index.js +19 -18
- package/dist/components/controls/select-control/control.js +26 -37
- package/dist/components/controls/select-control/select.js +62 -1129
- package/dist/components/controls/tag-control/ariakit-experimental.d.ts +7 -0
- package/dist/components/controls/tag-control/ariakit-experimental.js +2308 -0
- package/dist/components/controls/tag-control/index.d.ts +10 -0
- package/dist/components/controls/tag-control/index.js +137 -0
- package/dist/components/controls/tag-control/props.d.ts +20 -0
- package/dist/components/controls/tag-control/props.js +57 -0
- package/dist/components/controls/text-control/index.js +1 -1
- package/dist/components/data-view/data/apply.js +15 -15
- package/dist/components/data-view/data/filter.js +14 -12
- package/dist/components/data-view/index.js +1 -1
- package/dist/components/data-view/layouts/grid/empty.js +1 -1
- package/dist/components/data-view/layouts/grid/group.js +9 -7
- package/dist/components/data-view/layouts/grid/item.js +9 -7
- package/dist/components/data-view/layouts/grid/root.js +1 -1
- package/dist/components/data-view/layouts/kanban/empty.js +1 -1
- package/dist/components/data-view/layouts/kanban/group.js +9 -7
- package/dist/components/data-view/layouts/kanban/item.js +9 -7
- package/dist/components/data-view/layouts/kanban/root.js +1 -1
- package/dist/components/data-view/layouts/list/empty.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +9 -7
- package/dist/components/data-view/layouts/list/item.js +9 -7
- package/dist/components/data-view/layouts/list/root.js +1 -1
- package/dist/components/data-view/layouts/table/empty.js +9 -7
- package/dist/components/data-view/layouts/table/group.js +10 -8
- package/dist/components/data-view/layouts/table/item.js +10 -8
- package/dist/components/data-view/layouts/table/root.js +9 -7
- package/dist/components/data-view/parts/body/index.js +11 -9
- package/dist/components/data-view/parts/controls/index.js +9 -7
- package/dist/components/data-view/parts/controls/search.js +9 -7
- package/dist/components/data-view/parts/filters/editor.js +8 -6
- package/dist/components/data-view/parts/filters/index.js +1 -1
- package/dist/components/data-view/parts/filters/list.js +39 -73
- package/dist/components/data-view/parts/footer/actions.js +9 -7
- package/dist/components/data-view/parts/footer/index.js +9 -7
- package/dist/components/data-view/parts/footer/selection.js +9 -7
- package/dist/components/data-view/parts/view-control/index.js +23 -21
- package/dist/components/data-view/root.js +9 -7
- package/dist/components/data-view/slots/group/checkbox.js +9 -7
- package/dist/components/data-view/slots/group/context.js +1 -1
- package/dist/components/data-view/slots/group/icon.js +1 -1
- package/dist/components/data-view/slots/group/index.js +1 -1
- package/dist/components/data-view/slots/group/label.js +1 -1
- package/dist/components/data-view/slots/index.js +3 -3
- package/dist/components/data-view/slots/item/actions.js +1 -1
- package/dist/components/data-view/slots/item/checkbox.js +9 -7
- package/dist/components/data-view/slots/item/depth.js +3 -3
- package/dist/components/data-view/slots/item/description.js +1 -1
- package/dist/components/data-view/slots/item/index.js +2 -2
- package/dist/components/data-view/slots/item/properties.js +2 -2
- package/dist/components/data-view/slots/item/relations.js +3 -3
- package/dist/components/data-view/slots/item/tags.js +1 -1
- package/dist/components/data-view/slots/item/thumbnail.js +1 -1
- package/dist/components/data-view/slots/item/title.js +1 -1
- package/dist/components/data-view/slots/item/util.js +2 -2
- package/dist/components/data-view/slots/property/field/editable.js +8 -6
- package/dist/components/data-view/slots/property/field/index.js +2 -2
- package/dist/components/data-view/slots/property/field/static.js +1 -1
- package/dist/components/data-view/slots/property/index.js +1 -1
- package/dist/components/data-view/slots/property/label.js +1 -1
- package/dist/components/data-view/slots/root/checkbox.js +8 -6
- package/dist/components/data-view/slots/root/index.js +1 -1
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +29 -80
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/index.js +41 -39
- package/dist/components/menu/index.js +14 -13
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +4 -16
- package/dist/components/menu/items/submenu.js +4 -3
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/tabs/list.js +8 -36
- package/dist/components/tabs/panel.js +13 -126
- package/dist/components/tabs/root.js +14 -166
- package/dist/components/tabs/tab.js +5 -79
- package/dist/components/toolbar/divider.js +7 -19
- package/dist/components/toolbar/index.js +10 -24
- package/dist/components/toolbar/root.js +5 -67
- package/dist/components/window/index.js +2 -2
- package/dist/{composite-provider-R5SnRc_G.js → composite-provider-B-M1AaRb.js} +2 -2
- package/dist/disclosure-provider-DW9RmAuE.js +61 -0
- package/dist/{filter-C-ZkRgt_.js → filter-GoxwLwkT.js} +14 -12
- package/dist/{index-DI0cEpya.js → index-C_xrLeQq.js} +20 -18
- package/dist/{index-BW-2OhmK.js → index-DJ2XZnew.js} +7 -5
- package/dist/{index-Bj4Ga50P.js → index-DpV0obFX.js} +6 -4
- package/dist/index.js +87 -85
- package/dist/item-CYpF0or4.js +58 -0
- package/dist/{style-tA0yiKCL.js → match-sorter.esm-MNVE8H_6.js} +1 -1
- package/dist/menu-button-D0chRxS0.js +416 -0
- package/dist/menu-separator-Cy38O3cZ.js +16 -0
- package/dist/{picker-BkmBjgWA.js → picker-BAQPD-c9.js} +4 -4
- package/dist/popover-provider-DZV1nb7Q.js +10 -0
- package/dist/primitives/popover/index.js +2 -2
- package/dist/primitives/popover/root.js +12 -3
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +3 -3
- package/dist/primitives/tooltip/index.js +10 -173
- package/dist/select-popover-DYAZyLp4.js +542 -0
- package/dist/select-value-CeoMyvpZ.js +15 -0
- package/dist/{sortable.esm-De3H-_AA.js → sortable.esm-BuV7eW2H.js} +4 -4
- package/dist/{style-C7eFpUVU.js → style-CWAa57kN.js} +1 -1
- package/dist/tab-DjNG1rEI.js +79 -0
- package/dist/tab-list-DtMnUjoy.js +33 -0
- package/dist/tab-panel-DdkeLgKE.js +118 -0
- package/dist/tab-provider-BMkHrtIK.js +158 -0
- package/dist/tag-remove-BVa8oSsq.js +533 -0
- package/dist/toolbar-B7_t1rYu.js +68 -0
- package/dist/toolbar-separator-DBoO5XdF.js +16 -0
- package/dist/tooltip-anchor-CxZWazuo.js +173 -0
- package/package.json +1 -1
- package/dist/2NBKRL7C-Cug3TzgR.js +0 -85
- package/dist/2RSXSRCN-Bc3g-z-i.js +0 -61
- package/dist/A3WPL2ZJ-D0Eh1dEB.js +0 -11
- package/dist/EM5CXX6A-DKxCXPnz.js +0 -14
- package/dist/MR26YJYP-yD1_RvCA.js +0 -283
- package/dist/MTZPJQMC-RLG1q394.js +0 -12
- package/dist/P7GR5CS5-Dub2zqTX.js +0 -22
- package/dist/RS7LB2H4-C0kmTjy8.js +0 -15
- package/dist/RZ4GPYOB-c8s_KHUk.js +0 -37
- package/dist/TP7N7UIH-mdk33dnV.js +0 -34
- package/dist/UYGDZTLQ-fOwUiOjI.js +0 -12
- package/dist/VIIRIBF3-DylpToFV.js +0 -18
- package/dist/WMYDSCNQ-D43V-JUe.js +0 -62
- package/dist/item-C5GtZF5t.js +0 -470
- package/dist/root-C7IYlG1s.js +0 -20
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { u as A, T as K } from "./UYGDZTLQ-9uAEICxv.js";
|
|
2
|
+
import { u as N } from "./KFH4SEIX-BFT9WmYk.js";
|
|
3
|
+
import { u as O } from "./WYCIER3C-CaoIoaX7.js";
|
|
4
|
+
import { u as j } from "./RZ4GPYOB-COPqjbOz.js";
|
|
5
|
+
import { g as V, u as q } from "./PFRGBC2K-B9ko--FF.js";
|
|
6
|
+
import { a as P } from "./YV4JVR4I-w1-dnslS.js";
|
|
7
|
+
import { f as F, c as W, a as z, _ as B, i as G, q as J, e as y, m as T, o as i, l as Q, n as U } from "./LMDWO4NN-CIZvvtic.js";
|
|
8
|
+
import { useRef as h, useEffect as w, useState as X, useCallback as Y } from "react";
|
|
9
|
+
import { jsx as Z } from "react/jsx-runtime";
|
|
10
|
+
var $ = "div", ee = W(
|
|
11
|
+
function(f) {
|
|
12
|
+
var c = f, {
|
|
13
|
+
store: t,
|
|
14
|
+
unmountOnHide: S,
|
|
15
|
+
tabId: m,
|
|
16
|
+
getItem: p,
|
|
17
|
+
scrollRestoration: b,
|
|
18
|
+
scrollElement: a
|
|
19
|
+
} = c, r = B(c, [
|
|
20
|
+
"store",
|
|
21
|
+
"unmountOnHide",
|
|
22
|
+
"tabId",
|
|
23
|
+
"getItem",
|
|
24
|
+
"scrollRestoration",
|
|
25
|
+
"scrollElement"
|
|
26
|
+
]);
|
|
27
|
+
const C = A();
|
|
28
|
+
t = t || C, G(
|
|
29
|
+
t,
|
|
30
|
+
process.env.NODE_ENV !== "production" && "TabPanel must receive a `store` prop or be wrapped in a TabProvider component."
|
|
31
|
+
);
|
|
32
|
+
const v = h(null), d = J(r.id), s = P(
|
|
33
|
+
t.panels,
|
|
34
|
+
() => {
|
|
35
|
+
var e;
|
|
36
|
+
return m || ((e = t == null ? void 0 : t.panels.item(d)) == null ? void 0 : e.tabId);
|
|
37
|
+
}
|
|
38
|
+
), D = P(
|
|
39
|
+
t,
|
|
40
|
+
(e) => !!s && e.selectedId === s
|
|
41
|
+
), g = O({ open: D }), I = P(g, "mounted"), E = h(
|
|
42
|
+
/* @__PURE__ */ new Map()
|
|
43
|
+
), _ = y(() => {
|
|
44
|
+
const e = v.current;
|
|
45
|
+
return e ? a ? typeof a == "function" ? a(e) : "current" in a ? a.current : a : e : null;
|
|
46
|
+
});
|
|
47
|
+
w(() => {
|
|
48
|
+
var e, n;
|
|
49
|
+
if (!b || !I) return;
|
|
50
|
+
const o = _();
|
|
51
|
+
if (!o) return;
|
|
52
|
+
if (b === "reset") {
|
|
53
|
+
o.scroll(0, 0);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (!s) return;
|
|
57
|
+
const l = E.current.get(s);
|
|
58
|
+
o.scroll((e = l == null ? void 0 : l.x) != null ? e : 0, (n = l == null ? void 0 : l.y) != null ? n : 0);
|
|
59
|
+
const u = () => {
|
|
60
|
+
E.current.set(s, {
|
|
61
|
+
x: o.scrollLeft,
|
|
62
|
+
y: o.scrollTop
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
return o.addEventListener("scroll", u), () => {
|
|
66
|
+
o.removeEventListener("scroll", u);
|
|
67
|
+
};
|
|
68
|
+
}, [b, I, s, _, t]);
|
|
69
|
+
const [k, H] = X(!1);
|
|
70
|
+
w(() => {
|
|
71
|
+
const e = v.current;
|
|
72
|
+
if (!e) return;
|
|
73
|
+
const n = V(e);
|
|
74
|
+
H(!!n.length);
|
|
75
|
+
}, []);
|
|
76
|
+
const L = Y(
|
|
77
|
+
(e) => {
|
|
78
|
+
const n = T(i({}, e), { id: d || e.id, tabId: m });
|
|
79
|
+
return p ? p(n) : n;
|
|
80
|
+
},
|
|
81
|
+
[d, m, p]
|
|
82
|
+
), x = r.onKeyDown, M = y((e) => {
|
|
83
|
+
if (x == null || x(e), e.defaultPrevented || !(t != null && t.composite)) return;
|
|
84
|
+
const o = {
|
|
85
|
+
ArrowLeft: t.previous,
|
|
86
|
+
ArrowRight: t.next,
|
|
87
|
+
Home: t.first,
|
|
88
|
+
End: t.last
|
|
89
|
+
}[e.key];
|
|
90
|
+
if (!o) return;
|
|
91
|
+
const { selectedId: l } = t.getState(), u = o({ activeId: l });
|
|
92
|
+
u && (e.preventDefault(), t.move(u));
|
|
93
|
+
});
|
|
94
|
+
return r = Q(
|
|
95
|
+
r,
|
|
96
|
+
(e) => /* @__PURE__ */ Z(K, { value: t, children: e }),
|
|
97
|
+
[t]
|
|
98
|
+
), r = T(i({
|
|
99
|
+
id: d,
|
|
100
|
+
role: "tabpanel",
|
|
101
|
+
"aria-labelledby": s || void 0
|
|
102
|
+
}, r), {
|
|
103
|
+
children: S && !I ? null : r.children,
|
|
104
|
+
ref: U(v, r.ref),
|
|
105
|
+
onKeyDown: M
|
|
106
|
+
}), r = q(i({
|
|
107
|
+
// If the tab panel is rendered as part of another composite widget such
|
|
108
|
+
// as combobox, it should not be focusable.
|
|
109
|
+
focusable: !t.composite && !k
|
|
110
|
+
}, r)), r = N(i({ store: g }, r)), r = j(T(i({ store: t.panels }, r), { getItem: L })), r;
|
|
111
|
+
}
|
|
112
|
+
), ce = F(function(f) {
|
|
113
|
+
const c = ee(f);
|
|
114
|
+
return z($, c);
|
|
115
|
+
});
|
|
116
|
+
export {
|
|
117
|
+
ce as T
|
|
118
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { u as F } from "./DG5U6ZEL-GfwW2sqh.js";
|
|
2
|
+
import { c as U, a as W, b as $ } from "./4CMBR7SL-ChJnawVl.js";
|
|
3
|
+
import { u as k } from "./S43UC3DV-CiBKpqp8.js";
|
|
4
|
+
import { m as z, o as E, c as A, s as f, e as l, g as K, b as V, d as O } from "./YV4JVR4I-w1-dnslS.js";
|
|
5
|
+
import { S as R, T as p, V as I, U as S, a1 as T, m as y, o as B, W as M } from "./LMDWO4NN-CIZvvtic.js";
|
|
6
|
+
import { useMemo as q } from "react";
|
|
7
|
+
import { b as w } from "./UYGDZTLQ-9uAEICxv.js";
|
|
8
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
9
|
+
function G(e = {}) {
|
|
10
|
+
var c = e, {
|
|
11
|
+
composite: s,
|
|
12
|
+
combobox: r
|
|
13
|
+
} = c, n = R(c, [
|
|
14
|
+
"composite",
|
|
15
|
+
"combobox"
|
|
16
|
+
]);
|
|
17
|
+
const P = [
|
|
18
|
+
"items",
|
|
19
|
+
"renderedItems",
|
|
20
|
+
"moves",
|
|
21
|
+
"orientation",
|
|
22
|
+
"virtualFocus",
|
|
23
|
+
"includesBaseElement",
|
|
24
|
+
"baseElement",
|
|
25
|
+
"focusLoop",
|
|
26
|
+
"focusShift",
|
|
27
|
+
"focusWrap"
|
|
28
|
+
], v = z(
|
|
29
|
+
n.store,
|
|
30
|
+
E(s, P),
|
|
31
|
+
E(r, P)
|
|
32
|
+
), a = v == null ? void 0 : v.getState(), b = U(p(S({}, n), {
|
|
33
|
+
store: v,
|
|
34
|
+
// We need to explicitly set the default value of `includesBaseElement` to
|
|
35
|
+
// `false` since we don't want the composite store to default it to `true`
|
|
36
|
+
// when the activeId state is null, which could be the case when rendering
|
|
37
|
+
// combobox with tab.
|
|
38
|
+
includesBaseElement: I(
|
|
39
|
+
n.includesBaseElement,
|
|
40
|
+
a == null ? void 0 : a.includesBaseElement,
|
|
41
|
+
!1
|
|
42
|
+
),
|
|
43
|
+
orientation: I(
|
|
44
|
+
n.orientation,
|
|
45
|
+
a == null ? void 0 : a.orientation,
|
|
46
|
+
"horizontal"
|
|
47
|
+
),
|
|
48
|
+
focusLoop: I(n.focusLoop, a == null ? void 0 : a.focusLoop, !0)
|
|
49
|
+
})), x = W(), L = p(S({}, b.getState()), {
|
|
50
|
+
selectedId: I(
|
|
51
|
+
n.selectedId,
|
|
52
|
+
a == null ? void 0 : a.selectedId,
|
|
53
|
+
n.defaultSelectedId
|
|
54
|
+
),
|
|
55
|
+
selectOnMove: I(
|
|
56
|
+
n.selectOnMove,
|
|
57
|
+
a == null ? void 0 : a.selectOnMove,
|
|
58
|
+
!0
|
|
59
|
+
)
|
|
60
|
+
}), t = A(L, b, v);
|
|
61
|
+
f(
|
|
62
|
+
t,
|
|
63
|
+
() => l(t, ["moves"], () => {
|
|
64
|
+
const { activeId: o, selectOnMove: d } = t.getState();
|
|
65
|
+
if (!d || !o) return;
|
|
66
|
+
const i = b.item(o);
|
|
67
|
+
i && (i.dimmed || i.disabled || t.setState("selectedId", i.id));
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
let h = !0;
|
|
71
|
+
f(
|
|
72
|
+
t,
|
|
73
|
+
() => K(t, ["selectedId"], (o, d) => {
|
|
74
|
+
if (!h) {
|
|
75
|
+
h = !0;
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
s && o.selectedId === d.selectedId || t.setState("activeId", o.selectedId);
|
|
79
|
+
})
|
|
80
|
+
), f(
|
|
81
|
+
t,
|
|
82
|
+
() => l(t, ["selectedId", "renderedItems"], (o) => {
|
|
83
|
+
if (o.selectedId !== void 0) return;
|
|
84
|
+
const { activeId: d, renderedItems: i } = t.getState(), m = b.item(d);
|
|
85
|
+
if (m && !m.disabled && !m.dimmed)
|
|
86
|
+
t.setState("selectedId", m.id);
|
|
87
|
+
else {
|
|
88
|
+
const _ = i.find(
|
|
89
|
+
(u) => !u.disabled && !u.dimmed
|
|
90
|
+
);
|
|
91
|
+
t.setState("selectedId", _ == null ? void 0 : _.id);
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
), f(
|
|
95
|
+
t,
|
|
96
|
+
() => l(t, ["renderedItems"], (o) => {
|
|
97
|
+
const d = o.renderedItems;
|
|
98
|
+
if (d.length)
|
|
99
|
+
return l(x, ["renderedItems"], (i) => {
|
|
100
|
+
const m = i.renderedItems;
|
|
101
|
+
m.some((u) => !u.tabId) && m.forEach((u, j) => {
|
|
102
|
+
if (u.tabId) return;
|
|
103
|
+
const C = d[j];
|
|
104
|
+
C && x.renderItem(p(S({}, u), { tabId: C.id }));
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
})
|
|
108
|
+
);
|
|
109
|
+
let g = null;
|
|
110
|
+
return f(t, () => {
|
|
111
|
+
const o = () => {
|
|
112
|
+
g = t.getState().selectedId;
|
|
113
|
+
}, d = () => {
|
|
114
|
+
h = !1, t.setState("selectedId", g);
|
|
115
|
+
};
|
|
116
|
+
if (s && "setSelectElement" in s)
|
|
117
|
+
return T(
|
|
118
|
+
l(s, ["value"], o),
|
|
119
|
+
l(s, ["mounted"], d)
|
|
120
|
+
);
|
|
121
|
+
if (r)
|
|
122
|
+
return T(
|
|
123
|
+
l(r, ["selectedValue"], o),
|
|
124
|
+
l(r, ["mounted"], d)
|
|
125
|
+
);
|
|
126
|
+
}), p(S(S({}, b), t), {
|
|
127
|
+
panels: x,
|
|
128
|
+
setSelectedId: (o) => t.setState("selectedId", o),
|
|
129
|
+
select: (o) => {
|
|
130
|
+
t.setState("selectedId", o), b.move(o);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function H(e, c, s) {
|
|
135
|
+
M(c, [s.composite, s.combobox]), e = $(e, c, s), O(e, s, "selectedId", "setSelectedId"), O(e, s, "selectOnMove");
|
|
136
|
+
const [r, n] = V(() => e.panels, {});
|
|
137
|
+
return M(n, [e, n]), Object.assign(
|
|
138
|
+
q(() => y(B({}, e), { panels: r }), [e, r]),
|
|
139
|
+
{ composite: s.composite, combobox: s.combobox }
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
function J(e = {}) {
|
|
143
|
+
const c = k(), s = F() || c;
|
|
144
|
+
e = y(B({}, e), {
|
|
145
|
+
composite: e.composite !== void 0 ? e.composite : s,
|
|
146
|
+
combobox: e.combobox !== void 0 ? e.combobox : c
|
|
147
|
+
});
|
|
148
|
+
const [r, n] = V(G, e);
|
|
149
|
+
return H(r, n, e);
|
|
150
|
+
}
|
|
151
|
+
function se(e = {}) {
|
|
152
|
+
const c = J(e);
|
|
153
|
+
return /* @__PURE__ */ D(w, { value: c, children: e.children });
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
se as T,
|
|
157
|
+
J as u
|
|
158
|
+
};
|