@wrdagency/blockout 1.0.0 → 1.0.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/dist/{2NBKRL7C-DHf-2xkD.js → 2NBKRL7C-Cug3TzgR.js} +19 -19
- package/dist/{2RSXSRCN-bkYY_QT6.js → 2RSXSRCN-Bc3g-z-i.js} +19 -19
- package/dist/{4CMBR7SL-BkCeHgv2.js → 4CMBR7SL-xNGezbCB.js} +2 -2
- package/dist/{5JTVDSTH-BiHTUReD.js → 5JTVDSTH-CIreO5bC.js} +15 -15
- package/dist/{5VQZOHHZ-BpLDJOFs.js → 5VQZOHHZ-CNzYHc1X.js} +1 -1
- package/dist/{6VRAQV3D-DIdyGLyW.js → 6VRAQV3D-BoLhl3hf.js} +22 -22
- package/dist/{A3WPL2ZJ-SF-cbtmp.js → A3WPL2ZJ-D0Eh1dEB.js} +2 -2
- package/dist/{BM6PGYQY-D4-MwCVB.js → BM6PGYQY-Bhr7peim.js} +2 -2
- package/dist/{DG5U6ZEL-u5QgMA8f.js → DG5U6ZEL-C7eLVyh-.js} +3 -3
- package/dist/{EM5CXX6A-iTR0FDQv.js → EM5CXX6A-DKxCXPnz.js} +2 -2
- package/dist/{F5MUBM3I-Cv5aLv5o.js → F5MUBM3I-_HauDyEF.js} +21 -21
- package/dist/{G7GW6PWC-FbNigUHQ.js → G7GW6PWC-Crp1Jn-8.js} +56 -56
- package/dist/{J2LQO3EC-DIOM09Y6.js → J2LQO3EC-CcHJqN0I.js} +6 -6
- package/dist/{KFH4SEIX-BuapSU1b.js → KFH4SEIX-D-fCkpQv.js} +19 -19
- package/dist/{LMDWO4NN-DyBcLLfK.js → LMDWO4NN-DdLnHzru.js} +22 -22
- package/dist/{MR26YJYP-BdwVX8xi.js → MR26YJYP-yD1_RvCA.js} +23 -23
- package/dist/{MTZPJQMC-DMklE0XE.js → MTZPJQMC-RLG1q394.js} +2 -2
- package/dist/{O2PQ2652-CRn371N3.js → O2PQ2652-THp22K4G.js} +3 -3
- package/dist/{P7GR5CS5-Btbh4-Mw.js → P7GR5CS5-Dub2zqTX.js} +4 -6
- package/dist/{PFRGBC2K-DobANx7W.js → PFRGBC2K-DUhGSIey.js} +65 -65
- package/dist/{RS7LB2H4-lmOMNc4h.js → RS7LB2H4-C0kmTjy8.js} +1 -1
- package/dist/RZ4GPYOB-c8s_KHUk.js +37 -0
- package/dist/{S43UC3DV-C5JWPIhF.js → S43UC3DV-erT1ucAd.js} +3 -3
- package/dist/{T7VMP3TM-DRNGQJpZ.js → T7VMP3TM-C-Aesx9K.js} +11 -11
- package/dist/TP7N7UIH-mdk33dnV.js +34 -0
- package/dist/{UQQRIHDV-eF2M9Cz2.js → UQQRIHDV-DIXH69U3.js} +13 -13
- package/dist/{UYGDZTLQ-DRLNvYE6.js → UYGDZTLQ-fOwUiOjI.js} +2 -2
- package/dist/{VIIRIBF3-DX-Wjw1-.js → VIIRIBF3-DylpToFV.js} +3 -3
- package/dist/{WMYDSCNQ-YGSwAHQE.js → WMYDSCNQ-D43V-JUe.js} +16 -16
- package/dist/{WYCIER3C-DndYR0iO.js → WYCIER3C-S-jsj0wy.js} +2 -2
- package/dist/{YV4JVR4I-DOlaib2E.js → YV4JVR4I-BXEaRiAN.js} +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/button/index.js +7 -5
- package/dist/components/button/row.d.ts +7 -0
- package/dist/components/button/row.js +14 -0
- package/dist/components/controls/base-popover-control/index.js +3 -3
- package/dist/components/controls/date-control/index.js +1 -1
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/select-control/control.js +2 -2
- package/dist/components/controls/select-control/select.js +78 -78
- package/dist/components/data-view/data/normalize.js +0 -4
- package/dist/components/data-view/types/fields.d.ts +0 -5
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +30 -30
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +5 -5
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/shell/index.js +8 -4
- package/dist/components/shell/navigation.d.ts +6 -0
- package/dist/components/shell/navigation.js +6 -0
- package/dist/components/shell/root.d.ts +3 -2
- package/dist/components/shell/root.js +19 -6
- package/dist/components/shell/sidebar.d.ts +6 -0
- package/dist/components/shell/sidebar.js +6 -0
- package/dist/components/tabs/list.js +6 -6
- package/dist/components/tabs/panel.js +35 -35
- package/dist/components/tabs/root.js +12 -12
- package/dist/components/tabs/tab.js +15 -15
- package/dist/components/toolbar/divider.js +5 -5
- package/dist/components/toolbar/index.js +3 -3
- package/dist/components/toolbar/root.js +8 -8
- package/dist/components/window/index.js +1 -1
- package/dist/{composite-provider-cs4korvf.js → composite-provider-R5SnRc_G.js} +2 -2
- package/dist/{item-B72AQ4I4.js → item-C5GtZF5t.js} +33 -33
- package/dist/{picker-D0DleQso.js → picker-HwuTWxQw.js} +4 -4
- package/dist/primitives/popover/index.js +1 -1
- package/dist/primitives/popover/root.js +1 -1
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +3 -3
- package/dist/primitives/tooltip/index.js +15 -15
- package/dist/{root-j6NM_Xfo.js → root-C7IYlG1s.js} +2 -2
- package/dist/utils/url.js +7 -3
- package/package.json +1 -1
- package/dist/RZ4GPYOB-1GOhO1-l.js +0 -37
- package/dist/TP7N7UIH-DlW_S-4B.js +0 -34
- package/dist/components/button/index.d.ts +0 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { cn as t } from "../../utils/css.js";
|
|
3
3
|
import { e as i } from "../../CaretRight.es-vnr78BGI.js";
|
|
4
|
-
import { C as p } from "../../composite-provider-
|
|
5
|
-
import { C as c } from "../../5JTVDSTH-
|
|
6
|
-
import { C as l } from "../../J2LQO3EC-
|
|
7
|
-
import { C as d } from "../../6VRAQV3D-
|
|
8
|
-
import { C as b } from "../../TP7N7UIH-
|
|
4
|
+
import { C as p } from "../../composite-provider-R5SnRc_G.js";
|
|
5
|
+
import { C as c } from "../../5JTVDSTH-CIreO5bC.js";
|
|
6
|
+
import { C as l } from "../../J2LQO3EC-CcHJqN0I.js";
|
|
7
|
+
import { C as d } from "../../6VRAQV3D-BoLhl3hf.js";
|
|
8
|
+
import { C as b } from "../../TP7N7UIH-mdk33dnV.js";
|
|
9
9
|
import '../../assets/index4.css';const v = ({
|
|
10
10
|
crumbs: o,
|
|
11
11
|
separator: m = /* @__PURE__ */ r(i, {}),
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { IconButton as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Button as o } from "./button.js";
|
|
2
|
+
import { IconButton as t } from "./icon.js";
|
|
3
|
+
import { Row as n } from "./row.js";
|
|
4
|
+
const i = Object.assign(o, {
|
|
5
|
+
Icon: t,
|
|
6
|
+
Row: n
|
|
5
7
|
});
|
|
6
8
|
export {
|
|
7
|
-
|
|
9
|
+
i as Button
|
|
8
10
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as e } from "../../utils/css.js";
|
|
3
|
+
import { Children as i } from "react";
|
|
4
|
+
import { C as p } from "../../composite-provider-R5SnRc_G.js";
|
|
5
|
+
import { C as n } from "../../5JTVDSTH-CIreO5bC.js";
|
|
6
|
+
import { C as s } from "../../J2LQO3EC-CcHJqN0I.js";
|
|
7
|
+
import { C as a } from "../../6VRAQV3D-BoLhl3hf.js";
|
|
8
|
+
const u = ({ className: m, children: t }) => /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(n, { className: e("component-button-row", m), children: /* @__PURE__ */ o(s, { className: "component-button-row__row", children: i.map(
|
|
9
|
+
t,
|
|
10
|
+
(r) => r && /* @__PURE__ */ o(a, { render: r })
|
|
11
|
+
) }) }) });
|
|
12
|
+
export {
|
|
13
|
+
u as Row
|
|
14
|
+
};
|
|
@@ -16,9 +16,9 @@ import { e as v } from "../../../CaretDown.es-eyr5AnCc.js";
|
|
|
16
16
|
import { BaseControl as f } from "../base-control/index.js";
|
|
17
17
|
import { useBaseControlProps as P } from "../base-control/props.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { P as u } from "../../../root-
|
|
20
|
-
import { P as _ } from "../../../WMYDSCNQ-
|
|
21
|
-
import { P as h } from "../../../G7GW6PWC-
|
|
19
|
+
import { P as u } from "../../../root-C7IYlG1s.js";
|
|
20
|
+
import { P as _ } from "../../../WMYDSCNQ-D43V-JUe.js";
|
|
21
|
+
import { P as h } from "../../../G7GW6PWC-Crp1Jn-8.js";
|
|
22
22
|
const G = (t) => {
|
|
23
23
|
const { baseProps: s, controlProps: r } = P(t, {
|
|
24
24
|
className: "component-base-popover-control"
|
|
@@ -20,7 +20,7 @@ import { w as x } from "../../../SSRBase.es-BUXS72ra.js";
|
|
|
20
20
|
import { BaseControl as T } from "../base-control/index.js";
|
|
21
21
|
import { useBaseControlProps as z } from "../base-control/props.js";
|
|
22
22
|
import { DateComponentInput as R } from "./component.js";
|
|
23
|
-
import { f as m, D as S } from "../../../picker-
|
|
23
|
+
import { f as m, D as S } from "../../../picker-HwuTWxQw.js";
|
|
24
24
|
/* empty css */
|
|
25
25
|
import { getDefaultFormat as W } from "./types.js";
|
|
26
26
|
import { safeParseDate as M } from "./util.js";
|
|
@@ -8,11 +8,11 @@ import "../../../CaretRight.es-vnr78BGI.js";
|
|
|
8
8
|
import "react";
|
|
9
9
|
import '../../../assets/style10.css';/* empty css */
|
|
10
10
|
import "../../../protectedTokens-DdjZoCxO.js";
|
|
11
|
-
import { D as d } from "../../../picker-
|
|
12
|
-
import "../../../composite-provider-
|
|
13
|
-
import "../../../5JTVDSTH-
|
|
14
|
-
import "../../../J2LQO3EC-
|
|
15
|
-
import "../../../6VRAQV3D-
|
|
11
|
+
import { D as d } from "../../../picker-HwuTWxQw.js";
|
|
12
|
+
import "../../../composite-provider-R5SnRc_G.js";
|
|
13
|
+
import "../../../5JTVDSTH-CIreO5bC.js";
|
|
14
|
+
import "../../../J2LQO3EC-CcHJqN0I.js";
|
|
15
|
+
import "../../../6VRAQV3D-BoLhl3hf.js";
|
|
16
16
|
export {
|
|
17
17
|
d as DatePicker
|
|
18
18
|
};
|
|
@@ -9,8 +9,8 @@ import { Affix as u } from "../base-control/affix.js";
|
|
|
9
9
|
import { useBaseControlProps as P } from "../base-control/props.js";
|
|
10
10
|
import { Select as g } from "./select.js";
|
|
11
11
|
import "../../../style-Bp4uISf6.js";
|
|
12
|
-
import { u as w } from "../../../DG5U6ZEL-
|
|
13
|
-
import { a as I } from "../../../YV4JVR4I-
|
|
12
|
+
import { u as w } from "../../../DG5U6ZEL-C7eLVyh-.js";
|
|
13
|
+
import { a as I } from "../../../YV4JVR4I-BXEaRiAN.js";
|
|
14
14
|
function B({
|
|
15
15
|
store: e,
|
|
16
16
|
fallback: t,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as V, jsxs as re, Fragment as Te } from "react/jsx-runtime";
|
|
2
2
|
import { cn as Dt } from "../../../utils/css.js";
|
|
3
3
|
import '../../../assets/styles.css';import '../../../assets/style6.css';import '../../../assets/style5.css';import '../../../assets/style4.css';import '../../../assets/style3.css';import '../../../assets/style2.css';import '../../../assets/style.css';import '../../../assets/style9.css';/* empty css */
|
|
4
|
-
import { useMemo as Se, useState as ie, useRef as ne, useEffect as le, useCallback as $e, useContext as
|
|
4
|
+
import { useMemo as Se, useState as ie, useRef as ne, useEffect as le, useCallback as $e, useContext as we, createContext as Ve, startTransition as Lt } from "react";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import "../../../primitives/popover/index.js";
|
|
@@ -15,23 +15,23 @@ import "../../../primitives/symbol/index.js";
|
|
|
15
15
|
import { normalizeOption as Nt } from "../../../types/options.js";
|
|
16
16
|
import { s as Tt } from "../../../MagnifyingGlass.es-CLstwG_v.js";
|
|
17
17
|
import { m as Mt } from "../../../style-Bp4uISf6.js";
|
|
18
|
-
import { e as Rt, C as Ft } from "../../../P7GR5CS5-
|
|
19
|
-
import { c as Z, _ as ee, i as ce,
|
|
20
|
-
import { c as Xe, a as Ye } from "../../../O2PQ2652-
|
|
21
|
-
import { c as Ze, d as et, b as tt } from "../../../4CMBR7SL-
|
|
22
|
-
import { m as ot, o as oo, t as nt, c as rt, s as Q, e as J, g as lt, b as st, d as ve, u as it, p as no } from "../../../YV4JVR4I-
|
|
23
|
-
import { a as at, C as ro, b as ut, c as lo, d as so, e as ct, u as io, f as ao } from "../../../S43UC3DV-
|
|
18
|
+
import { e as Rt, C as Ft } from "../../../P7GR5CS5-Dub2zqTX.js";
|
|
19
|
+
import { c as Z, _ as ee, i as ce, m as R, o as C, r as Ue, f as te, a as oe, P as je, Q as se, S as D, R as j, T as Ie, j as T, e as G, G as qe, l as pe, n as Ce, a0 as We, s as ze, q as xe, t as Bt, U as Ge, V as Qe, W as Ht, h as $t, u as Ut, ab as Je, I as jt, a1 as qt, x as Wt, ac as zt, ad as Gt, ae as Qt, y as Me, af as Oe, aa as Jt, B as Xt, b as Pe, a4 as Yt, $ as Zt, K as eo, k as to } from "../../../LMDWO4NN-DdLnHzru.js";
|
|
20
|
+
import { c as Xe, a as Ye } from "../../../O2PQ2652-THp22K4G.js";
|
|
21
|
+
import { c as Ze, d as et, b as tt } from "../../../4CMBR7SL-xNGezbCB.js";
|
|
22
|
+
import { m as ot, o as oo, t as nt, c as rt, s as Q, e as J, g as lt, b as st, d as ve, u as it, p as no } from "../../../YV4JVR4I-BXEaRiAN.js";
|
|
23
|
+
import { a as at, C as ro, b as ut, c as lo, d as so, e as ct, u as io, f as ao } from "../../../S43UC3DV-erT1ucAd.js";
|
|
24
24
|
import { t as dt } from "../../../7PRQYBBV-91wrWGjk.js";
|
|
25
|
-
import { u as mt, a as _e, S as ft, b as uo, c as co, d as mo, e as Re } from "../../../DG5U6ZEL-
|
|
26
|
-
import { u as fo } from "../../../MTZPJQMC-
|
|
27
|
-
import { u as vt } from "../../../T7VMP3TM-
|
|
28
|
-
import { u as vo, a as po } from "../../../WMYDSCNQ-
|
|
29
|
-
import { i as pt } from "../../../KFH4SEIX-
|
|
30
|
-
import { u as bt } from "../../../5JTVDSTH-
|
|
31
|
-
import { c as bo, u as So } from "../../../G7GW6PWC-
|
|
32
|
-
import { h as Ee } from "../../../PFRGBC2K-
|
|
33
|
-
import { u as St } from "../../../UQQRIHDV-
|
|
34
|
-
import { u as ht } from "../../../6VRAQV3D-
|
|
25
|
+
import { u as mt, a as _e, S as ft, b as uo, c as co, d as mo, e as Re } from "../../../DG5U6ZEL-C7eLVyh-.js";
|
|
26
|
+
import { u as fo } from "../../../MTZPJQMC-RLG1q394.js";
|
|
27
|
+
import { u as vt } from "../../../T7VMP3TM-C-Aesx9K.js";
|
|
28
|
+
import { u as vo, a as po } from "../../../WMYDSCNQ-D43V-JUe.js";
|
|
29
|
+
import { i as pt } from "../../../KFH4SEIX-D-fCkpQv.js";
|
|
30
|
+
import { u as bt } from "../../../5JTVDSTH-CIreO5bC.js";
|
|
31
|
+
import { c as bo, u as So } from "../../../G7GW6PWC-Crp1Jn-8.js";
|
|
32
|
+
import { h as Ee } from "../../../PFRGBC2K-DUhGSIey.js";
|
|
33
|
+
import { u as St } from "../../../UQQRIHDV-DIXH69U3.js";
|
|
34
|
+
import { u as ht } from "../../../6VRAQV3D-BoLhl3hf.js";
|
|
35
35
|
var ho = "span", go = {
|
|
36
36
|
top: "4,10 8,6 12,10",
|
|
37
37
|
right: "6,4 10,8 6,12",
|
|
@@ -123,14 +123,14 @@ function Co(t = {}) {
|
|
|
123
123
|
i.orientation,
|
|
124
124
|
"vertical"
|
|
125
125
|
)
|
|
126
|
-
})),
|
|
126
|
+
})), w = Xe(se(j({}, e), {
|
|
127
127
|
store: r,
|
|
128
128
|
placement: D(
|
|
129
129
|
e.placement,
|
|
130
130
|
i.placement,
|
|
131
131
|
"bottom-start"
|
|
132
132
|
)
|
|
133
|
-
})), I = new String(""), v = se(j(j({}, a.getState()),
|
|
133
|
+
})), I = new String(""), v = se(j(j({}, a.getState()), w.getState()), {
|
|
134
134
|
value: D(
|
|
135
135
|
e.value,
|
|
136
136
|
i.value,
|
|
@@ -145,13 +145,13 @@ function Co(t = {}) {
|
|
|
145
145
|
labelElement: D(i.labelElement, null),
|
|
146
146
|
selectElement: D(i.selectElement, null),
|
|
147
147
|
listElement: D(i.listElement, null)
|
|
148
|
-
}), u = rt(v, a,
|
|
148
|
+
}), u = rt(v, a, w, r);
|
|
149
149
|
return Q(
|
|
150
150
|
u,
|
|
151
151
|
() => J(u, ["value", "items"], (s) => {
|
|
152
152
|
if (s.value !== I || !s.items.length) return;
|
|
153
153
|
const b = s.items.find(
|
|
154
|
-
(
|
|
154
|
+
(O) => !O.disabled && O.value != null
|
|
155
155
|
);
|
|
156
156
|
(b == null ? void 0 : b.value) != null && u.setState("value", b.value);
|
|
157
157
|
})
|
|
@@ -164,22 +164,22 @@ function Co(t = {}) {
|
|
|
164
164
|
u,
|
|
165
165
|
() => J(u, ["mounted", "items", "value"], (s) => {
|
|
166
166
|
if (n || s.mounted) return;
|
|
167
|
-
const b = dt(s.value),
|
|
168
|
-
if (
|
|
167
|
+
const b = dt(s.value), O = b[b.length - 1];
|
|
168
|
+
if (O == null) return;
|
|
169
169
|
const c = s.items.find(
|
|
170
|
-
(p) => !p.disabled && p.value ===
|
|
170
|
+
(p) => !p.disabled && p.value === O
|
|
171
171
|
);
|
|
172
172
|
c && u.setState("activeId", c.id);
|
|
173
173
|
})
|
|
174
174
|
), Q(
|
|
175
175
|
u,
|
|
176
176
|
() => lt(u, ["setValueOnMove", "moves"], (s) => {
|
|
177
|
-
const { mounted: b, value:
|
|
178
|
-
if (!s.setValueOnMove && b || Array.isArray(
|
|
177
|
+
const { mounted: b, value: O, activeId: c } = u.getState();
|
|
178
|
+
if (!s.setValueOnMove && b || Array.isArray(O) || !s.moves || !c) return;
|
|
179
179
|
const p = a.item(c);
|
|
180
180
|
!p || p.disabled || p.value == null || u.setState("value", p.value);
|
|
181
181
|
})
|
|
182
|
-
), se(j(j(j({}, a),
|
|
182
|
+
), se(j(j(j({}, a), w), u), {
|
|
183
183
|
combobox: n,
|
|
184
184
|
setValue: (s) => u.setState("value", s),
|
|
185
185
|
setLabelElement: (s) => u.setState("labelElement", s),
|
|
@@ -203,12 +203,12 @@ function yo(t, o, n) {
|
|
|
203
203
|
{ combobox: n.combobox }
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Oo(t = {}) {
|
|
207
207
|
t = xo(t);
|
|
208
208
|
const [o, n] = st(Co, t);
|
|
209
209
|
return yo(o, n, t);
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var wo = "span", Po = Z(
|
|
212
212
|
function(o) {
|
|
213
213
|
var n = o, { store: e } = n, r = ee(n, ["store"]);
|
|
214
214
|
const i = mt();
|
|
@@ -216,7 +216,7 @@ var Oo = "span", Po = Z(
|
|
|
216
216
|
}
|
|
217
217
|
), Eo = te(function(o) {
|
|
218
218
|
const n = Po(o);
|
|
219
|
-
return oe(
|
|
219
|
+
return oe(wo, n);
|
|
220
220
|
}), Vo = "button";
|
|
221
221
|
function Io(t) {
|
|
222
222
|
return Array.from(t.selectedOptions).map((o) => o.value);
|
|
@@ -241,7 +241,7 @@ var _o = Z(function(o) {
|
|
|
241
241
|
name: r,
|
|
242
242
|
form: i,
|
|
243
243
|
required: a,
|
|
244
|
-
showOnKeyDown:
|
|
244
|
+
showOnKeyDown: w = !0,
|
|
245
245
|
moveOnKeyDown: I = !0,
|
|
246
246
|
toggleOnPress: v = !0,
|
|
247
247
|
toggleOnClick: u = v
|
|
@@ -260,9 +260,9 @@ var _o = Z(function(o) {
|
|
|
260
260
|
e,
|
|
261
261
|
process.env.NODE_ENV !== "production" && "Select must receive a `store` prop or be wrapped in a SelectProvider component."
|
|
262
262
|
);
|
|
263
|
-
const
|
|
263
|
+
const O = s.onKeyDown, c = T(w), p = T(I), P = e.useState("placement").split("-")[0], h = e.useState("value"), M = Array.isArray(h), x = G((f) => {
|
|
264
264
|
var S;
|
|
265
|
-
if (
|
|
265
|
+
if (O == null || O(f), f.defaultPrevented || !e) return;
|
|
266
266
|
const { orientation: q, items: W, activeId: X } = e.getState(), de = q !== "horizontal", ae = q !== "vertical", k = !!((S = W.find((he) => !he.disabled && he.value != null)) != null && S.rowId), fe = {
|
|
267
267
|
ArrowUp: (k || de) && ge(e, e.up),
|
|
268
268
|
ArrowRight: (k || ae) && ge(e, e.next),
|
|
@@ -373,7 +373,7 @@ var _o = Z(function(o) {
|
|
|
373
373
|
return oe(Vo, n);
|
|
374
374
|
});
|
|
375
375
|
function ko(t = {}) {
|
|
376
|
-
const o =
|
|
376
|
+
const o = Oo(t);
|
|
377
377
|
return /* @__PURE__ */ V(uo, { value: o, children: t.children });
|
|
378
378
|
}
|
|
379
379
|
var Do = "div";
|
|
@@ -388,7 +388,7 @@ var Ko = Z(
|
|
|
388
388
|
value: r,
|
|
389
389
|
getItem: i,
|
|
390
390
|
hideOnClick: a,
|
|
391
|
-
setValueOnClick:
|
|
391
|
+
setValueOnClick: w = r != null,
|
|
392
392
|
preventScrollOnKeyDown: I = !0,
|
|
393
393
|
focusOnHover: v = !0
|
|
394
394
|
} = n, u = ee(n, [
|
|
@@ -405,7 +405,7 @@ var Ko = Z(
|
|
|
405
405
|
e,
|
|
406
406
|
process.env.NODE_ENV !== "production" && "SelectItem must be wrapped in a SelectList or SelectPopover component."
|
|
407
407
|
);
|
|
408
|
-
const
|
|
408
|
+
const O = xe(u.id), c = Bt(u), { listElement: p, multiSelectable: L, selected: P, autoFocus: h } = it(e, {
|
|
409
409
|
listElement: "listElement",
|
|
410
410
|
multiSelectable(d) {
|
|
411
411
|
return Array.isArray(d.value);
|
|
@@ -414,7 +414,7 @@ var Ko = Z(
|
|
|
414
414
|
return Lo(d.value, r);
|
|
415
415
|
},
|
|
416
416
|
autoFocus(d) {
|
|
417
|
-
return r == null || d.value == null || d.activeId !==
|
|
417
|
+
return r == null || d.value == null || d.activeId !== O && (e != null && e.item(d.activeId)) ? !1 : Array.isArray(d.value) ? d.value[d.value.length - 1] === r : d.value === r;
|
|
418
418
|
}
|
|
419
419
|
}), M = $e(
|
|
420
420
|
(d) => {
|
|
@@ -427,7 +427,7 @@ var Ko = Z(
|
|
|
427
427
|
[c, r, i]
|
|
428
428
|
);
|
|
429
429
|
a = a ?? (r != null && !L);
|
|
430
|
-
const x = u.onClick, U = T(
|
|
430
|
+
const x = u.onClick, U = T(w), A = T(a), E = G((d) => {
|
|
431
431
|
x == null || x(d), !d.defaultPrevented && (Ge(d) || Qe(d) || (U(d) && r != null && (e == null || e.setValue((g) => Array.isArray(g) ? g.includes(r) ? g.filter((H) => H !== r) : [...g, r] : r)), A(d) && (e == null || e.hide())));
|
|
432
432
|
});
|
|
433
433
|
u = pe(
|
|
@@ -435,7 +435,7 @@ var Ko = Z(
|
|
|
435
435
|
(d) => /* @__PURE__ */ V(mo.Provider, { value: P ?? !1, children: d }),
|
|
436
436
|
[P]
|
|
437
437
|
), u = R(C({
|
|
438
|
-
id:
|
|
438
|
+
id: O,
|
|
439
439
|
role: Ht(p),
|
|
440
440
|
"aria-selected": P,
|
|
441
441
|
children: r
|
|
@@ -473,7 +473,7 @@ var Ko = Z(
|
|
|
473
473
|
resetOnEscape: r = !0,
|
|
474
474
|
hideOnEnter: i = !0,
|
|
475
475
|
focusOnMove: a = !0,
|
|
476
|
-
composite:
|
|
476
|
+
composite: w,
|
|
477
477
|
alwaysVisible: I
|
|
478
478
|
} = n, v = ee(n, [
|
|
479
479
|
"store",
|
|
@@ -488,16 +488,16 @@ var Ko = Z(
|
|
|
488
488
|
e,
|
|
489
489
|
process.env.NODE_ENV !== "production" && "SelectList must receive a `store` prop or be wrapped in a SelectProvider component."
|
|
490
490
|
);
|
|
491
|
-
const s = xe(v.id), b = e.useState("value"),
|
|
491
|
+
const s = xe(v.id), b = e.useState("value"), O = Array.isArray(b), [c, p] = ie(b), L = e.useState("mounted");
|
|
492
492
|
le(() => {
|
|
493
493
|
L || p(b);
|
|
494
|
-
}, [L, b]), r = r && !
|
|
494
|
+
}, [L, b]), r = r && !O;
|
|
495
495
|
const P = v.onKeyDown, h = T(r), M = T(i), x = G((k) => {
|
|
496
496
|
P == null || P(k), !k.defaultPrevented && (k.key === "Escape" && h(k) && (e == null || e.setValue(c)), (k.key === " " || k.key === "Enter") && $t(k) && M(k) && (k.preventDefault(), e == null || e.hide()));
|
|
497
|
-
}), U =
|
|
497
|
+
}), U = we(Re), A = ie(), [E, B] = U || A, d = Se(
|
|
498
498
|
() => [E, B],
|
|
499
499
|
[E]
|
|
500
|
-
), [g, H] = ie(null), $ =
|
|
500
|
+
), [g, H] = ie(null), $ = we(Fe);
|
|
501
501
|
le(() => {
|
|
502
502
|
if ($)
|
|
503
503
|
return $(e), () => $(null);
|
|
@@ -507,11 +507,11 @@ var Ko = Z(
|
|
|
507
507
|
[e, d]
|
|
508
508
|
);
|
|
509
509
|
const m = !!e.combobox;
|
|
510
|
-
|
|
510
|
+
w = w ?? (!m && g !== e);
|
|
511
511
|
const [_, f] = Ut(
|
|
512
|
-
|
|
513
|
-
), S = Je(_, "role", v.role), W = (
|
|
514
|
-
|
|
512
|
+
w ? e.setListElement : null
|
|
513
|
+
), S = Je(_, "role", v.role), W = (w || (S === "listbox" || S === "menu" || S === "tree" || S === "grid")) && O || void 0, X = pt(L, v.hidden, I), de = X ? R(C({}, v.style), { display: "none" }) : v.style;
|
|
514
|
+
w && (v = C({
|
|
515
515
|
role: "listbox",
|
|
516
516
|
"aria-multiselectable": W
|
|
517
517
|
}, v));
|
|
@@ -529,7 +529,7 @@ var Ko = Z(
|
|
|
529
529
|
ref: Ce(f, v.ref),
|
|
530
530
|
style: de,
|
|
531
531
|
onKeyDown: x
|
|
532
|
-
}), v = bt(R(C({ store: e }, v), { composite:
|
|
532
|
+
}), v = bt(R(C({ store: e }, v), { composite: w })), v = vt(C({ store: e, typeahead: !m }, v)), v;
|
|
533
533
|
}
|
|
534
534
|
), Mo = te(function(o) {
|
|
535
535
|
const n = Ct(o);
|
|
@@ -563,13 +563,13 @@ function jo(t = {}) {
|
|
|
563
563
|
]);
|
|
564
564
|
const r = ot(e.store, no(n, ["value", "rtl"]));
|
|
565
565
|
nt(e, r);
|
|
566
|
-
const i = n == null ? void 0 : n.getState(), a = r == null ? void 0 : r.getState(),
|
|
566
|
+
const i = n == null ? void 0 : n.getState(), a = r == null ? void 0 : r.getState(), w = D(
|
|
567
567
|
e.activeId,
|
|
568
568
|
a == null ? void 0 : a.activeId,
|
|
569
569
|
e.defaultActiveId,
|
|
570
570
|
null
|
|
571
571
|
), I = Ze(se(j({}, e), {
|
|
572
|
-
activeId:
|
|
572
|
+
activeId: w,
|
|
573
573
|
includesBaseElement: D(
|
|
574
574
|
e.includesBaseElement,
|
|
575
575
|
a == null ? void 0 : a.includesBaseElement,
|
|
@@ -604,7 +604,7 @@ function jo(t = {}) {
|
|
|
604
604
|
i == null ? void 0 : i.values,
|
|
605
605
|
e.defaultSelectedValue,
|
|
606
606
|
""
|
|
607
|
-
), b = Array.isArray(s),
|
|
607
|
+
), b = Array.isArray(s), O = se(j(j({}, I.getState()), v.getState()), {
|
|
608
608
|
value: u,
|
|
609
609
|
selectedValue: s,
|
|
610
610
|
resetValueOnSelect: D(
|
|
@@ -618,7 +618,7 @@ function jo(t = {}) {
|
|
|
618
618
|
b && !n
|
|
619
619
|
),
|
|
620
620
|
activeValue: a == null ? void 0 : a.activeValue
|
|
621
|
-
}), c = rt(
|
|
621
|
+
}), c = rt(O, I, v, r);
|
|
622
622
|
return Uo && Q(
|
|
623
623
|
c,
|
|
624
624
|
() => J(c, ["virtualFocus"], () => {
|
|
@@ -642,7 +642,7 @@ function jo(t = {}) {
|
|
|
642
642
|
), Q(
|
|
643
643
|
c,
|
|
644
644
|
() => J(c, ["open"], (p) => {
|
|
645
|
-
p.open || (c.setState("activeId",
|
|
645
|
+
p.open || (c.setState("activeId", w), c.setState("moves", 0));
|
|
646
646
|
})
|
|
647
647
|
), Q(
|
|
648
648
|
c,
|
|
@@ -659,7 +659,7 @@ function jo(t = {}) {
|
|
|
659
659
|
), se(j(j(j({}, v), I), c), {
|
|
660
660
|
tag: n,
|
|
661
661
|
setValue: (p) => c.setState("value", p),
|
|
662
|
-
resetValue: () => c.setState("value",
|
|
662
|
+
resetValue: () => c.setState("value", O.value),
|
|
663
663
|
setSelectedValue: (p) => c.setState("selectedValue", p)
|
|
664
664
|
});
|
|
665
665
|
}
|
|
@@ -713,13 +713,13 @@ var Yo = Z(
|
|
|
713
713
|
focusable: r = !0,
|
|
714
714
|
autoSelect: i = !1,
|
|
715
715
|
getAutoSelectId: a,
|
|
716
|
-
setValueOnChange:
|
|
716
|
+
setValueOnChange: w,
|
|
717
717
|
showMinLength: I = 0,
|
|
718
718
|
showOnChange: v,
|
|
719
719
|
showOnMouseDown: u,
|
|
720
720
|
showOnClick: s = u,
|
|
721
721
|
showOnKeyDown: b,
|
|
722
|
-
showOnKeyPress:
|
|
722
|
+
showOnKeyPress: O = b,
|
|
723
723
|
blurActiveItemOnClick: c,
|
|
724
724
|
setValueOnClick: p = !0,
|
|
725
725
|
moveOnKeyPress: L = !0,
|
|
@@ -793,10 +793,10 @@ var Yo = Z(
|
|
|
793
793
|
const K = x.current;
|
|
794
794
|
if (!K) return;
|
|
795
795
|
const { start: N, end: z } = Me(K), Y = m.length, F = f.length;
|
|
796
|
-
|
|
796
|
+
Oe(K, Y, F), y = () => {
|
|
797
797
|
if (!Ee(K)) return;
|
|
798
798
|
const { start: ue, end: kt } = Me(K);
|
|
799
|
-
ue === Y && kt === F &&
|
|
799
|
+
ue === Y && kt === F && Oe(K, N, z);
|
|
800
800
|
};
|
|
801
801
|
}), () => y();
|
|
802
802
|
}, [
|
|
@@ -876,7 +876,7 @@ var Yo = Z(
|
|
|
876
876
|
const fe = (l) => l.currentTarget.value.length >= I, be = h.onChange, Ae = T(v ?? fe), ke = T(
|
|
877
877
|
// If the combobox is combined with tags, the value will be set by the tag
|
|
878
878
|
// input component.
|
|
879
|
-
|
|
879
|
+
w ?? !e.tag
|
|
880
880
|
), De = G((l) => {
|
|
881
881
|
if (be == null || be(l), l.defaultPrevented || !e) return;
|
|
882
882
|
const y = l.currentTarget, { value: K, selectionStart: N, selectionEnd: z } = y, Y = l.nativeEvent;
|
|
@@ -887,7 +887,7 @@ var Yo = Z(
|
|
|
887
887
|
if (ke(l)) {
|
|
888
888
|
const F = K === e.getState().value;
|
|
889
889
|
e.setValue(K), queueMicrotask(() => {
|
|
890
|
-
|
|
890
|
+
Oe(y, N, z);
|
|
891
891
|
}), g && d && F && A();
|
|
892
892
|
}
|
|
893
893
|
Ae(l) && e.show(), (!d || !E.current) && e.setActiveId(null);
|
|
@@ -895,9 +895,9 @@ var Yo = Z(
|
|
|
895
895
|
E.current = !0, B.current = !1, ye == null || ye(l), !l.defaultPrevented && d && A();
|
|
896
896
|
}), Le = h.onMouseDown, xt = T(
|
|
897
897
|
c ?? (() => !!(e != null && e.getState().includesBaseElement))
|
|
898
|
-
), yt = T(p),
|
|
899
|
-
Le == null || Le(l), !l.defaultPrevented && (l.button || l.ctrlKey || e && (xt(l) && e.setActiveId(null), yt(l) && e.setValue(X),
|
|
900
|
-
}), Ke = h.onKeyDown, Pt = T(
|
|
898
|
+
), yt = T(p), Ot = T(s ?? fe), wt = G((l) => {
|
|
899
|
+
Le == null || Le(l), !l.defaultPrevented && (l.button || l.ctrlKey || e && (xt(l) && e.setActiveId(null), yt(l) && e.setValue(X), Ot(l) && qe(l.currentTarget, "mouseup", e.show)));
|
|
900
|
+
}), Ke = h.onKeyDown, Pt = T(O ?? fe), Et = G((l) => {
|
|
901
901
|
if (Ke == null || Ke(l), l.repeat || (E.current = !1), l.defaultPrevented || l.ctrlKey || l.altKey || l.shiftKey || l.metaKey || !e) return;
|
|
902
902
|
const { open: y } = e.getState();
|
|
903
903
|
y || (l.key === "ArrowUp" || l.key === "ArrowDown") && Pt(l) && (l.preventDefault(), e.show());
|
|
@@ -917,7 +917,7 @@ var Yo = Z(
|
|
|
917
917
|
ref: Ce(x, h.ref),
|
|
918
918
|
onChange: De,
|
|
919
919
|
onCompositionEnd: he,
|
|
920
|
-
onMouseDown:
|
|
920
|
+
onMouseDown: wt,
|
|
921
921
|
onKeyDown: Et,
|
|
922
922
|
onBlur: Vt
|
|
923
923
|
}), h = bt(R(C({
|
|
@@ -957,7 +957,7 @@ var rn = Z(
|
|
|
957
957
|
value: r,
|
|
958
958
|
hideOnClick: i,
|
|
959
959
|
setValueOnClick: a,
|
|
960
|
-
selectValueOnClick:
|
|
960
|
+
selectValueOnClick: w = !0,
|
|
961
961
|
resetValueOnSelect: I,
|
|
962
962
|
focusOnHover: v = !1,
|
|
963
963
|
moveOnKeyPress: u = !0,
|
|
@@ -972,7 +972,7 @@ var rn = Z(
|
|
|
972
972
|
"focusOnHover",
|
|
973
973
|
"moveOnKeyPress",
|
|
974
974
|
"getItem"
|
|
975
|
-
]),
|
|
975
|
+
]), O;
|
|
976
976
|
const c = ut();
|
|
977
977
|
e = e || c, ce(
|
|
978
978
|
e,
|
|
@@ -994,8 +994,8 @@ var rn = Z(
|
|
|
994
994
|
[r, s]
|
|
995
995
|
);
|
|
996
996
|
a = a ?? !L, i = i ?? (r != null && !L);
|
|
997
|
-
const M = b.onClick, x = T(a), U = T(
|
|
998
|
-
(
|
|
997
|
+
const M = b.onClick, x = T(a), U = T(w), A = T(
|
|
998
|
+
(O = I ?? p) != null ? O : L
|
|
999
999
|
), E = T(i), B = G((m) => {
|
|
1000
1000
|
M == null || M(m), !m.defaultPrevented && (Ge(m) || Qe(m) || (r != null && (U(m) && (A(m) && (e == null || e.resetValue()), e == null || e.setSelectedValue((_) => Array.isArray(_) ? _.includes(r) ? _.filter((f) => f !== r) : [..._, r] : r)), x(m) && (e == null || e.setValue(r))), E(m) && (e == null || e.hide())));
|
|
1001
1001
|
}), d = b.onKeyDown, g = G((m) => {
|
|
@@ -1011,7 +1011,7 @@ var rn = Z(
|
|
|
1011
1011
|
(m) => /* @__PURE__ */ V(lo.Provider, { value: r, children: /* @__PURE__ */ V(so.Provider, { value: P ?? !1, children: m }) }),
|
|
1012
1012
|
[r, P]
|
|
1013
1013
|
);
|
|
1014
|
-
const H =
|
|
1014
|
+
const H = we(ct);
|
|
1015
1015
|
b = R(C({
|
|
1016
1016
|
role: nn(H),
|
|
1017
1017
|
children: r
|
|
@@ -1042,14 +1042,14 @@ var rn = Z(
|
|
|
1042
1042
|
), sn = "div", an = Z(
|
|
1043
1043
|
function(o) {
|
|
1044
1044
|
var n = o, { store: e, alwaysVisible: r } = n, i = ee(n, ["store", "alwaysVisible"]);
|
|
1045
|
-
const a = ut(!0),
|
|
1046
|
-
e = e ||
|
|
1045
|
+
const a = ut(!0), w = io();
|
|
1046
|
+
e = e || w;
|
|
1047
1047
|
const I = !!e && e === a;
|
|
1048
1048
|
ce(
|
|
1049
1049
|
e,
|
|
1050
1050
|
process.env.NODE_ENV !== "production" && "ComboboxList must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
1051
1051
|
);
|
|
1052
|
-
const v = ne(null), u = xe(i.id), s = e.useState("mounted"), b = pt(s, i.hidden, r),
|
|
1052
|
+
const v = ne(null), u = xe(i.id), s = e.useState("mounted"), b = pt(s, i.hidden, r), O = b ? R(C({}, i.style), { display: "none" }) : i.style, c = e.useState(
|
|
1053
1053
|
(A) => Array.isArray(A.selectedValue)
|
|
1054
1054
|
), p = Je(v, "role", i.role), P = (p === "listbox" || p === "tree" || p === "grid") && c || void 0, [h, M] = ie(!1), x = e.useState("contentElement");
|
|
1055
1055
|
Pe(() => {
|
|
@@ -1078,7 +1078,7 @@ var rn = Z(
|
|
|
1078
1078
|
hidden: b
|
|
1079
1079
|
}, i), {
|
|
1080
1080
|
ref: Ce(U, v, i.ref),
|
|
1081
|
-
style:
|
|
1081
|
+
style: O
|
|
1082
1082
|
}), Ue(i);
|
|
1083
1083
|
}
|
|
1084
1084
|
), un = te(function(o) {
|
|
@@ -1093,11 +1093,11 @@ const jn = ({
|
|
|
1093
1093
|
placeholder: r = "Choose an option...",
|
|
1094
1094
|
prefix: i,
|
|
1095
1095
|
suffix: a,
|
|
1096
|
-
children:
|
|
1096
|
+
children: w,
|
|
1097
1097
|
withIcon: I,
|
|
1098
1098
|
...v
|
|
1099
1099
|
}) => {
|
|
1100
|
-
const [u, s] = ie(!1), [b,
|
|
1100
|
+
const [u, s] = ie(!1), [b, O] = ie(""), c = (n || []).map(Nt), p = Se(() => Mt(c, b, {
|
|
1101
1101
|
baseSort: (x, U) => x.index < U.index ? -1 : 1,
|
|
1102
1102
|
keys: ["label", "description"]
|
|
1103
1103
|
}), [b]), L = e ? un : Mo, M = !!!c.find((x) => x.value === t);
|
|
@@ -1109,7 +1109,7 @@ const jn = ({
|
|
|
1109
1109
|
setOpen: s,
|
|
1110
1110
|
setValue: (x) => {
|
|
1111
1111
|
Lt(() => {
|
|
1112
|
-
|
|
1112
|
+
O(x);
|
|
1113
1113
|
});
|
|
1114
1114
|
},
|
|
1115
1115
|
children: /* @__PURE__ */ re(
|
|
@@ -1128,7 +1128,7 @@ const jn = ({
|
|
|
1128
1128
|
M && "component-select__input--placeholder"
|
|
1129
1129
|
),
|
|
1130
1130
|
...v,
|
|
1131
|
-
children:
|
|
1131
|
+
children: w
|
|
1132
1132
|
}
|
|
1133
1133
|
),
|
|
1134
1134
|
u && /* @__PURE__ */ V(
|
|
@@ -18,9 +18,6 @@ export type DisplayConfiguration<TItem extends object = object, TType extends an
|
|
|
18
18
|
field: Field<TItem>;
|
|
19
19
|
}) => ReactNode;
|
|
20
20
|
};
|
|
21
|
-
export type OrderingConfiguration = {
|
|
22
|
-
hideable: boolean;
|
|
23
|
-
};
|
|
24
21
|
export type EditingConfiguration<TItem extends object = object, TType extends any = any> = {
|
|
25
22
|
editable: boolean;
|
|
26
23
|
editFn: (value: TType, id: TItem, field: string) => void;
|
|
@@ -43,7 +40,6 @@ export type Field<TItem extends object = object, TType extends any = any> = {
|
|
|
43
40
|
elements: Option[];
|
|
44
41
|
display: DisplayConfiguration<TItem, TType>;
|
|
45
42
|
editing: EditingConfiguration<TItem, TType>;
|
|
46
|
-
ordering: OrderingConfiguration;
|
|
47
43
|
sorting: SortingConfiguration<TType>;
|
|
48
44
|
filtering: FilteringConfiguration;
|
|
49
45
|
};
|
|
@@ -53,7 +49,6 @@ export type PartialField<TItem extends object = object, TType extends any = any>
|
|
|
53
49
|
elements?: Optionable[];
|
|
54
50
|
display?: Partial<DisplayConfiguration<TItem, TType>>;
|
|
55
51
|
editing?: Partial<EditingConfiguration<TItem>>;
|
|
56
|
-
ordering?: Partial<OrderingConfiguration>;
|
|
57
52
|
sorting?: Partial<SortingConfiguration<TType>>;
|
|
58
53
|
filtering?: Partial<FilteringConfiguration>;
|
|
59
54
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn as l } from "../../utils/css.js";
|
|
3
3
|
import { extension as c, filename as _ } from "../../utils/string.js";
|
|
4
4
|
import { Icon as a } from "./icon.js";
|
|
5
|
-
import { C as r } from "../../6VRAQV3D-
|
|
5
|
+
import { C as r } from "../../6VRAQV3D-BoLhl3hf.js";
|
|
6
6
|
const N = ({ name: e, href: s }) => {
|
|
7
7
|
const i = c(e), m = _(e), t = s ? "a" : "span";
|
|
8
8
|
return /* @__PURE__ */ n(
|