@gravitee/graphene-core 3.48.0 → 3.49.0
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/USAGE_GUIDE.md +11 -0
- package/dist/composed/DatePicker/DatePicker.d.ts +6 -1
- package/dist/composed/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateRangePicker.d.ts +6 -1
- package/dist/composed/DatePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateTimePicker.d.ts +7 -1
- package/dist/composed/DatePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateTimeRangePicker.d.ts +8 -1
- package/dist/composed/DatePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/index.js +226 -211
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9918,19 +9918,19 @@ function xC(e) {
|
|
|
9918
9918
|
}
|
|
9919
9919
|
//#endregion
|
|
9920
9920
|
//#region src/lib/test-ids.ts
|
|
9921
|
-
function
|
|
9921
|
+
function J(e, t) {
|
|
9922
9922
|
return e ? `${e}-${t}` : void 0;
|
|
9923
9923
|
}
|
|
9924
9924
|
//#endregion
|
|
9925
9925
|
//#region src/base/Calendar/Calendar.tsx
|
|
9926
|
-
var
|
|
9927
|
-
function
|
|
9928
|
-
let t = V.useContext(
|
|
9929
|
-
return e ?
|
|
9926
|
+
var SC = V.createContext(void 0), CC = V.createContext(void 0);
|
|
9927
|
+
function wC(e) {
|
|
9928
|
+
let t = V.useContext(SC);
|
|
9929
|
+
return e ? J(t, e) : void 0;
|
|
9930
9930
|
}
|
|
9931
|
-
function
|
|
9931
|
+
function TC({ className: e, classNames: n, showOutsideDays: r = !0, captionLayout: i = "label", buttonVariant: a = "ghost", locale: o, formatters: s, components: c, ...l }) {
|
|
9932
9932
|
let u = iS(), d = l["data-testid"];
|
|
9933
|
-
return /* @__PURE__ */ U(
|
|
9933
|
+
return /* @__PURE__ */ U(SC, {
|
|
9934
9934
|
value: d,
|
|
9935
9935
|
children: /* @__PURE__ */ U(xC, {
|
|
9936
9936
|
showOutsideDays: r,
|
|
@@ -9981,12 +9981,12 @@ function EC({ className: e, classNames: n, showOutsideDays: r = !0, captionLayou
|
|
|
9981
9981
|
className: t("size-4", e),
|
|
9982
9982
|
...r
|
|
9983
9983
|
}),
|
|
9984
|
-
DayButton:
|
|
9985
|
-
PreviousMonthButton:
|
|
9986
|
-
NextMonthButton:
|
|
9987
|
-
MonthCaption:
|
|
9988
|
-
MonthsDropdown:
|
|
9989
|
-
YearsDropdown:
|
|
9984
|
+
DayButton: EC,
|
|
9985
|
+
PreviousMonthButton: DC,
|
|
9986
|
+
NextMonthButton: OC,
|
|
9987
|
+
MonthCaption: kC,
|
|
9988
|
+
MonthsDropdown: AC,
|
|
9989
|
+
YearsDropdown: jC,
|
|
9990
9990
|
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ U("td", {
|
|
9991
9991
|
...t,
|
|
9992
9992
|
children: /* @__PURE__ */ U("div", {
|
|
@@ -10000,46 +10000,46 @@ function EC({ className: e, classNames: n, showOutsideDays: r = !0, captionLayou
|
|
|
10000
10000
|
})
|
|
10001
10001
|
});
|
|
10002
10002
|
}
|
|
10003
|
-
function
|
|
10004
|
-
let { day: t } = e, { months: n } = Ax(), r =
|
|
10005
|
-
return /* @__PURE__ */ U(
|
|
10003
|
+
function EC(e) {
|
|
10004
|
+
let { day: t } = e, { months: n } = Ax(), r = wC(t.outside && n.some((e) => e.weeks.some((e) => e.days.some((e) => !e.outside && e.isoDate === t.isoDate))) ? void 0 : `day-${t.isoDate}`);
|
|
10005
|
+
return /* @__PURE__ */ U(MC, {
|
|
10006
10006
|
...e,
|
|
10007
10007
|
"data-testid": r
|
|
10008
10008
|
});
|
|
10009
10009
|
}
|
|
10010
|
-
function
|
|
10010
|
+
function DC(e) {
|
|
10011
10011
|
return /* @__PURE__ */ U(Fx, {
|
|
10012
10012
|
...e,
|
|
10013
|
-
"data-testid":
|
|
10013
|
+
"data-testid": wC("previous")
|
|
10014
10014
|
});
|
|
10015
10015
|
}
|
|
10016
|
-
function
|
|
10016
|
+
function OC(e) {
|
|
10017
10017
|
return /* @__PURE__ */ U(Nx, {
|
|
10018
10018
|
...e,
|
|
10019
|
-
"data-testid":
|
|
10019
|
+
"data-testid": wC("next")
|
|
10020
10020
|
});
|
|
10021
10021
|
}
|
|
10022
|
-
function
|
|
10023
|
-
return /* @__PURE__ */ U(
|
|
10022
|
+
function kC(e) {
|
|
10023
|
+
return /* @__PURE__ */ U(CC, {
|
|
10024
10024
|
value: e.displayIndex,
|
|
10025
10025
|
children: /* @__PURE__ */ U(Ex, { ...e })
|
|
10026
10026
|
});
|
|
10027
10027
|
}
|
|
10028
|
-
function
|
|
10029
|
-
let t = V.useContext(
|
|
10028
|
+
function AC(e) {
|
|
10029
|
+
let t = V.useContext(CC);
|
|
10030
10030
|
return /* @__PURE__ */ U(jx, {
|
|
10031
10031
|
...e,
|
|
10032
|
-
"data-testid":
|
|
10032
|
+
"data-testid": wC(t === void 0 ? void 0 : `month-${t}`)
|
|
10033
10033
|
});
|
|
10034
10034
|
}
|
|
10035
|
-
function
|
|
10036
|
-
let t = V.useContext(
|
|
10035
|
+
function jC(e) {
|
|
10036
|
+
let t = V.useContext(CC);
|
|
10037
10037
|
return /* @__PURE__ */ U(Wx, {
|
|
10038
10038
|
...e,
|
|
10039
|
-
"data-testid":
|
|
10039
|
+
"data-testid": wC(t === void 0 ? void 0 : `year-${t}`)
|
|
10040
10040
|
});
|
|
10041
10041
|
}
|
|
10042
|
-
function
|
|
10042
|
+
function MC({ className: e, modifiers: n, ...r }) {
|
|
10043
10043
|
let i = iS(), a = V.useRef(null);
|
|
10044
10044
|
return V.useEffect(() => {
|
|
10045
10045
|
n.focused && a.current?.focus();
|
|
@@ -10057,7 +10057,7 @@ function NC({ className: e, modifiers: n, ...r }) {
|
|
|
10057
10057
|
}
|
|
10058
10058
|
//#endregion
|
|
10059
10059
|
//#region src/base/Card/Card.tsx
|
|
10060
|
-
function
|
|
10060
|
+
function NC({ className: e, size: n = "default", ...r }) {
|
|
10061
10061
|
return /* @__PURE__ */ U("div", {
|
|
10062
10062
|
"data-slot": "card",
|
|
10063
10063
|
"data-size": n,
|
|
@@ -10065,42 +10065,42 @@ function PC({ className: e, size: n = "default", ...r }) {
|
|
|
10065
10065
|
...r
|
|
10066
10066
|
});
|
|
10067
10067
|
}
|
|
10068
|
-
function
|
|
10068
|
+
function PC({ className: e, ...n }) {
|
|
10069
10069
|
return /* @__PURE__ */ U("div", {
|
|
10070
10070
|
"data-slot": "card-header",
|
|
10071
10071
|
className: t("@container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3", e),
|
|
10072
10072
|
...n
|
|
10073
10073
|
});
|
|
10074
10074
|
}
|
|
10075
|
-
function
|
|
10075
|
+
function FC({ className: e, ...n }) {
|
|
10076
10076
|
return /* @__PURE__ */ U("div", {
|
|
10077
10077
|
"data-slot": "card-title",
|
|
10078
10078
|
className: t("text-base/snug font-medium group-data-[size=sm]/card:text-sm", e),
|
|
10079
10079
|
...n
|
|
10080
10080
|
});
|
|
10081
10081
|
}
|
|
10082
|
-
function
|
|
10082
|
+
function IC({ className: e, ...n }) {
|
|
10083
10083
|
return /* @__PURE__ */ U("div", {
|
|
10084
10084
|
"data-slot": "card-description",
|
|
10085
10085
|
className: t("text-sm text-muted-foreground", e),
|
|
10086
10086
|
...n
|
|
10087
10087
|
});
|
|
10088
10088
|
}
|
|
10089
|
-
function
|
|
10089
|
+
function LC({ className: e, ...n }) {
|
|
10090
10090
|
return /* @__PURE__ */ U("div", {
|
|
10091
10091
|
"data-slot": "card-action",
|
|
10092
10092
|
className: t("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
10093
10093
|
...n
|
|
10094
10094
|
});
|
|
10095
10095
|
}
|
|
10096
|
-
function
|
|
10096
|
+
function RC({ className: e, ...n }) {
|
|
10097
10097
|
return /* @__PURE__ */ U("div", {
|
|
10098
10098
|
"data-slot": "card-content",
|
|
10099
10099
|
className: t("px-4 group-data-[size=sm]/card:px-3", e),
|
|
10100
10100
|
...n
|
|
10101
10101
|
});
|
|
10102
10102
|
}
|
|
10103
|
-
function
|
|
10103
|
+
function zC({ className: e, ...n }) {
|
|
10104
10104
|
return /* @__PURE__ */ U("div", {
|
|
10105
10105
|
"data-slot": "card-footer",
|
|
10106
10106
|
className: t("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3", e),
|
|
@@ -10109,7 +10109,7 @@ function BC({ className: e, ...n }) {
|
|
|
10109
10109
|
}
|
|
10110
10110
|
//#endregion
|
|
10111
10111
|
//#region src/base/Checkbox/Checkbox.tsx
|
|
10112
|
-
function
|
|
10112
|
+
function BC({ className: e, ...n }) {
|
|
10113
10113
|
return /* @__PURE__ */ U(ha, {
|
|
10114
10114
|
"data-slot": "checkbox",
|
|
10115
10115
|
className: t("peer size-4 shrink-0 rounded-md border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground aria-invalid:data-checked:border-destructive aria-invalid:data-checked:bg-destructive aria-invalid:data-checked:text-destructive-foreground dark:data-checked:bg-primary dark:aria-invalid:data-checked:bg-destructive", e),
|
|
@@ -10126,19 +10126,19 @@ function VC({ className: e, ...n }) {
|
|
|
10126
10126
|
}
|
|
10127
10127
|
//#endregion
|
|
10128
10128
|
//#region src/base/Collapsible/Collapsible.tsx
|
|
10129
|
-
function
|
|
10129
|
+
function VC({ ...e }) {
|
|
10130
10130
|
return /* @__PURE__ */ U(tn, {
|
|
10131
10131
|
"data-slot": "collapsible",
|
|
10132
10132
|
...e
|
|
10133
10133
|
});
|
|
10134
10134
|
}
|
|
10135
|
-
function
|
|
10135
|
+
function HC({ ...e }) {
|
|
10136
10136
|
return /* @__PURE__ */ U(Xt, {
|
|
10137
10137
|
"data-slot": "collapsible-trigger",
|
|
10138
10138
|
...e
|
|
10139
10139
|
});
|
|
10140
10140
|
}
|
|
10141
|
-
function
|
|
10141
|
+
function UC({ ...e }) {
|
|
10142
10142
|
return /* @__PURE__ */ U(Qt, {
|
|
10143
10143
|
"data-slot": "collapsible-content",
|
|
10144
10144
|
...e
|
|
@@ -10146,21 +10146,21 @@ function WC({ ...e }) {
|
|
|
10146
10146
|
}
|
|
10147
10147
|
//#endregion
|
|
10148
10148
|
//#region ../../node_modules/@base-ui/utils/esm/error.js
|
|
10149
|
-
var
|
|
10150
|
-
process.env.NODE_ENV !== "production" && (
|
|
10151
|
-
function
|
|
10149
|
+
var WC;
|
|
10150
|
+
process.env.NODE_ENV !== "production" && (WC = /* @__PURE__ */ new Set());
|
|
10151
|
+
function GC(...e) {
|
|
10152
10152
|
if (process.env.NODE_ENV !== "production") {
|
|
10153
10153
|
let t = e.join(" ");
|
|
10154
|
-
|
|
10154
|
+
WC.has(t) || (WC.add(t), console.error(`Base UI: ${t}`));
|
|
10155
10155
|
}
|
|
10156
10156
|
}
|
|
10157
10157
|
//#endregion
|
|
10158
10158
|
//#region ../../node_modules/@base-ui/utils/esm/useControlled.js
|
|
10159
|
-
function
|
|
10159
|
+
function KC({ controlled: e, default: t, name: n, state: r = "value" }) {
|
|
10160
10160
|
let { current: i } = V.useRef(e !== void 0), [a, o] = V.useState(t), s = i ? e : a;
|
|
10161
10161
|
if (process.env.NODE_ENV !== "production") {
|
|
10162
10162
|
V.useEffect(() => {
|
|
10163
|
-
i !== (e !== void 0) &&
|
|
10163
|
+
i !== (e !== void 0) && GC([
|
|
10164
10164
|
`A component is changing the ${i ? "" : "un"}controlled ${r} state of ${n} to be ${i ? "un" : ""}controlled.`,
|
|
10165
10165
|
"Elements should not switch from uncontrolled to controlled (or vice versa).",
|
|
10166
10166
|
`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,
|
|
@@ -10174,14 +10174,14 @@ function qC({ controlled: e, default: t, name: n, state: r = "value" }) {
|
|
|
10174
10174
|
]);
|
|
10175
10175
|
let { current: a } = V.useRef(t);
|
|
10176
10176
|
V.useEffect(() => {
|
|
10177
|
-
!i &&
|
|
10177
|
+
!i && qC(a) !== qC(t) && GC([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"));
|
|
10178
10178
|
}, [t]);
|
|
10179
10179
|
}
|
|
10180
10180
|
return [s, V.useCallback((e) => {
|
|
10181
10181
|
i || o(e);
|
|
10182
10182
|
}, [])];
|
|
10183
10183
|
}
|
|
10184
|
-
function
|
|
10184
|
+
function qC(e) {
|
|
10185
10185
|
let t = 0, n = /* @__PURE__ */ new WeakMap();
|
|
10186
10186
|
try {
|
|
10187
10187
|
return JSON.stringify(e, function(e, r) {
|
|
@@ -10201,17 +10201,17 @@ function JC(e) {
|
|
|
10201
10201
|
}
|
|
10202
10202
|
//#endregion
|
|
10203
10203
|
//#region ../../node_modules/@base-ui/utils/esm/useRefWithInit.js
|
|
10204
|
-
var
|
|
10205
|
-
function
|
|
10206
|
-
let n = V.useRef(
|
|
10207
|
-
return n.current ===
|
|
10204
|
+
var JC = {};
|
|
10205
|
+
function YC(e, t) {
|
|
10206
|
+
let n = V.useRef(JC);
|
|
10207
|
+
return n.current === JC && (n.current = e(t)), n;
|
|
10208
10208
|
}
|
|
10209
10209
|
//#endregion
|
|
10210
10210
|
//#region ../../node_modules/@base-ui/utils/esm/useStableCallback.js
|
|
10211
|
-
var
|
|
10212
|
-
function
|
|
10213
|
-
let t =
|
|
10214
|
-
return t.next = e,
|
|
10211
|
+
var XC = V[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], ZC = XC && XC !== V.useLayoutEffect ? XC : (e) => e();
|
|
10212
|
+
function QC(e) {
|
|
10213
|
+
let t = YC($C).current;
|
|
10214
|
+
return t.next = e, ZC(t.effect), t.trampoline;
|
|
10215
10215
|
}
|
|
10216
10216
|
function $C() {
|
|
10217
10217
|
let e = {
|
|
@@ -10251,9 +10251,9 @@ function iw() {
|
|
|
10251
10251
|
//#endregion
|
|
10252
10252
|
//#region ../../node_modules/@base-ui/react/esm/internals/composite/list/CompositeList.js
|
|
10253
10253
|
function aw(e) {
|
|
10254
|
-
let { children: t, elementsRef: n, labelsRef: r, onMapChange: i } = e, a =
|
|
10254
|
+
let { children: t, elementsRef: n, labelsRef: r, onMapChange: i } = e, a = QC(i), o = V.useRef(0), s = YC(sw).current, c = YC(ow).current, [l, u] = V.useState(0), d = V.useRef(l), f = QC((e, t) => {
|
|
10255
10255
|
c.set(e, t ?? null), d.current += 1, u(d.current);
|
|
10256
|
-
}), p =
|
|
10256
|
+
}), p = QC((e) => {
|
|
10257
10257
|
c.delete(e), d.current += 1, u(d.current);
|
|
10258
10258
|
}), m = V.useMemo(() => {
|
|
10259
10259
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -10291,7 +10291,7 @@ function aw(e) {
|
|
|
10291
10291
|
}, [n]), Y(() => () => {
|
|
10292
10292
|
r && (r.current = []);
|
|
10293
10293
|
}, [r]);
|
|
10294
|
-
let h =
|
|
10294
|
+
let h = QC((e) => (s.add(e), () => {
|
|
10295
10295
|
s.delete(e);
|
|
10296
10296
|
}));
|
|
10297
10297
|
Y(() => {
|
|
@@ -10346,7 +10346,7 @@ var fw = dw("https://base-ui.com/production-error", "Base UI");
|
|
|
10346
10346
|
//#endregion
|
|
10347
10347
|
//#region ../../node_modules/@base-ui/utils/esm/useMergedRefs.js
|
|
10348
10348
|
function pw(e, t, n, r) {
|
|
10349
|
-
let i =
|
|
10349
|
+
let i = YC(hw).current;
|
|
10350
10350
|
return gw(i, e, t, n, r) && vw(i, [
|
|
10351
10351
|
e,
|
|
10352
10352
|
t,
|
|
@@ -10355,7 +10355,7 @@ function pw(e, t, n, r) {
|
|
|
10355
10355
|
]), i.callback;
|
|
10356
10356
|
}
|
|
10357
10357
|
function mw(e) {
|
|
10358
|
-
let t =
|
|
10358
|
+
let t = YC(hw).current;
|
|
10359
10359
|
return _w(t, e) && vw(t, e), t.callback;
|
|
10360
10360
|
}
|
|
10361
10361
|
function hw() {
|
|
@@ -10705,7 +10705,7 @@ var ST = null, CT = globalThis.requestAnimationFrame, wT = new class {
|
|
|
10705
10705
|
disposeEffect = () => this.cancel;
|
|
10706
10706
|
};
|
|
10707
10707
|
function ET() {
|
|
10708
|
-
let e =
|
|
10708
|
+
let e = YC(TT.create).current;
|
|
10709
10709
|
return xT(e.disposeEffect), e;
|
|
10710
10710
|
}
|
|
10711
10711
|
//#endregion
|
|
@@ -10724,7 +10724,7 @@ var OT = /*#__PURE__*/ function(e) {
|
|
|
10724
10724
|
//#region ../../node_modules/@base-ui/react/esm/internals/useAnimationsFinished.js
|
|
10725
10725
|
function MT(e, t = !1, n = !0) {
|
|
10726
10726
|
let r = ET();
|
|
10727
|
-
return
|
|
10727
|
+
return QC((i, a = null) => {
|
|
10728
10728
|
r.cancel();
|
|
10729
10729
|
let o = DT(e);
|
|
10730
10730
|
if (o == null) return;
|
|
@@ -10901,7 +10901,7 @@ function zT(e = {}) {
|
|
|
10901
10901
|
process.env.NODE_ENV !== "production" && V.useEffect(() => {
|
|
10902
10902
|
if (!o.current) return;
|
|
10903
10903
|
let e = BT(o.current);
|
|
10904
|
-
i ? e ||
|
|
10904
|
+
i ? e || GC(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${mT.captureOwnerStack?.() || ""}`) : e && GC(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${mT.captureOwnerStack?.() || ""}`);
|
|
10905
10905
|
}, [i]);
|
|
10906
10906
|
let u = V.useCallback(() => {
|
|
10907
10907
|
let e = o.current;
|
|
@@ -10959,7 +10959,7 @@ function zT(e = {}) {
|
|
|
10959
10959
|
c,
|
|
10960
10960
|
i
|
|
10961
10961
|
]),
|
|
10962
|
-
buttonRef:
|
|
10962
|
+
buttonRef: QC((e) => {
|
|
10963
10963
|
o.current = e, u();
|
|
10964
10964
|
})
|
|
10965
10965
|
};
|
|
@@ -11382,7 +11382,7 @@ function aD(e, t, n, r) {
|
|
|
11382
11382
|
//#endregion
|
|
11383
11383
|
//#region ../../node_modules/@base-ui/react/esm/internals/useOpenChangeComplete.js
|
|
11384
11384
|
function oD(e) {
|
|
11385
|
-
let { enabled: t = !0, open: n, ref: r, onComplete: i } = e, a =
|
|
11385
|
+
let { enabled: t = !0, open: n, ref: r, onComplete: i } = e, a = QC(i), o = MT(r, n, !1);
|
|
11386
11386
|
V.useEffect(() => {
|
|
11387
11387
|
if (!t) return;
|
|
11388
11388
|
let e = new AbortController();
|
|
@@ -11423,7 +11423,7 @@ var cD = 0, lD = class e {
|
|
|
11423
11423
|
disposeEffect = () => this.clear;
|
|
11424
11424
|
};
|
|
11425
11425
|
function uD() {
|
|
11426
|
-
let e =
|
|
11426
|
+
let e = YC(lD.create).current;
|
|
11427
11427
|
return xT(e.disposeEffect), e;
|
|
11428
11428
|
}
|
|
11429
11429
|
//#endregion
|
|
@@ -11546,7 +11546,7 @@ function bD(...e) {
|
|
|
11546
11546
|
//#endregion
|
|
11547
11547
|
//#region ../../node_modules/@base-ui/utils/esm/useValueAsRef.js
|
|
11548
11548
|
function xD(e) {
|
|
11549
|
-
let t =
|
|
11549
|
+
let t = YC(SD, e).current;
|
|
11550
11550
|
return t.next = e, Y(t.effect), t;
|
|
11551
11551
|
}
|
|
11552
11552
|
function SD(e) {
|
|
@@ -11690,7 +11690,7 @@ var HD = { style: { transition: "none" } }, UD = { fallbackAxisSide: "none" }, W
|
|
|
11690
11690
|
process.env.NODE_ENV !== "production" && (GD.displayName = "PortalContext");
|
|
11691
11691
|
var KD = () => V.useContext(GD), qD = DD("portal");
|
|
11692
11692
|
function JD(e = {}) {
|
|
11693
|
-
let { ref: t, container: n, componentProps: r = Tw, elementProps: i } = e, a = vT(), o = KD()?.portalNode, [s, c] = V.useState(null), [l, u] = V.useState(null), d =
|
|
11693
|
+
let { ref: t, container: n, componentProps: r = Tw, elementProps: i } = e, a = vT(), o = KD()?.portalNode, [s, c] = V.useState(null), [l, u] = V.useState(null), d = QC((e) => {
|
|
11694
11694
|
e !== null && u(e);
|
|
11695
11695
|
}), f = V.useRef(null);
|
|
11696
11696
|
Y(() => {
|
|
@@ -11826,7 +11826,7 @@ function cO(e, t) {
|
|
|
11826
11826
|
t.current.includes("floating") || n.length === 0 ? r !== "0" && e.setAttribute("tabindex", "0") : (r !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
11827
11827
|
}
|
|
11828
11828
|
function lO(e) {
|
|
11829
|
-
let { context: t, children: n, disabled: r = !1, initialFocus: i = !0, returnFocus: a = !0, restoreFocus: o = !1, modal: s = !0, closeOnFocusOut: c = !0, openInteractionType: l = "", nextFocusableElement: u, previousFocusableElement: d, beforeContentFocusGuardRef: f, externalTree: p, getInsideElements: m } = e, h = "rootStore" in t ? t.rootStore : t, g = h.useState("open"), _ = h.useState("domReferenceElement"), v = h.useState("floatingElement"), { events: y, dataRef: b } = h.context, x =
|
|
11829
|
+
let { context: t, children: n, disabled: r = !1, initialFocus: i = !0, returnFocus: a = !0, restoreFocus: o = !1, modal: s = !0, closeOnFocusOut: c = !0, openInteractionType: l = "", nextFocusableElement: u, previousFocusableElement: d, beforeContentFocusGuardRef: f, externalTree: p, getInsideElements: m } = e, h = "rootStore" in t ? t.rootStore : t, g = h.useState("open"), _ = h.useState("domReferenceElement"), v = h.useState("floatingElement"), { events: y, dataRef: b } = h.context, x = QC(() => b.current.floatingContext?.nodeId), S = i === !1, C = mE(_) && S, w = V.useRef(["content"]), T = xD(i), E = xD(a), D = xD(l), O = eO(p), k = KD(), A = V.useRef(!1), j = V.useRef(!1), M = V.useRef(!1), N = V.useRef(null), P = V.useRef(""), F = V.useRef(""), I = V.useRef(null), L = V.useRef(null), ee = pw(I, f, k?.beforeInsideRef), te = pw(L, k?.afterInsideRef), R = uD(), ne = uD(), re = ET(), ie = k != null, z = hE(v), ae = QC((e = z) => e ? QE(e) : []), oe = QC(() => m?.().filter((e) => e != null) ?? []);
|
|
11830
11830
|
V.useEffect(() => {
|
|
11831
11831
|
if (r || !s) return;
|
|
11832
11832
|
function e(e) {
|
|
@@ -12155,9 +12155,9 @@ function pO(e) {
|
|
|
12155
12155
|
};
|
|
12156
12156
|
}
|
|
12157
12157
|
function mO(e, t = {}) {
|
|
12158
|
-
let n = "rootStore" in e ? e.rootStore : e, r = n.useState("open"), i = n.useState("floatingElement"), { dataRef: a } = n.context, { enabled: o = !0, escapeKey: s = !0, outsidePress: c = !0, outsidePressEvent: l = "sloppy", referencePress: u = fO, referencePressEvent: d = "sloppy", bubbles: f, externalTree: p } = t, m = eO(p), h =
|
|
12158
|
+
let n = "rootStore" in e ? e.rootStore : e, r = n.useState("open"), i = n.useState("floatingElement"), { dataRef: a } = n.context, { enabled: o = !0, escapeKey: s = !0, outsidePress: c = !0, outsidePressEvent: l = "sloppy", referencePress: u = fO, referencePressEvent: d = "sloppy", bubbles: f, externalTree: p } = t, m = eO(p), h = QC(typeof c == "function" ? c : () => !1), g = typeof c == "function" ? h : c, _ = g !== !1, v = QC(() => l), y = V.useRef(!1), b = V.useRef(!1), x = V.useRef(!1), { escapeKey: S, outsidePress: C } = pO(f), w = V.useRef(null), T = uD(), E = uD(), D = QC(() => {
|
|
12159
12159
|
E.clear(), a.current.insideReactTree = !1;
|
|
12160
|
-
}), O = V.useRef(!1), k = V.useRef(""), A =
|
|
12160
|
+
}), O = V.useRef(!1), k = V.useRef(""), A = QC(u), j = QC((e) => {
|
|
12161
12161
|
if (!r || !o || !s || e.key !== "Escape" || O.current) return;
|
|
12162
12162
|
let t = a.current.floatingContext?.nodeId, i = m ? gE(m.nodesRef.current, t) : [];
|
|
12163
12163
|
if (!S && i.length > 0) {
|
|
@@ -12168,7 +12168,7 @@ function mO(e, t = {}) {
|
|
|
12168
12168
|
}
|
|
12169
12169
|
let c = fT(uT, yE(e) ? e.nativeEvent : e);
|
|
12170
12170
|
n.setOpen(!1, c), !S && !c.isPropagationAllowed && e.stopPropagation();
|
|
12171
|
-
}), M =
|
|
12171
|
+
}), M = QC(() => {
|
|
12172
12172
|
a.current.insideReactTree = !0, E.start(0, D);
|
|
12173
12173
|
});
|
|
12174
12174
|
V.useEffect(() => {
|
|
@@ -12338,11 +12338,11 @@ function mO(e, t = {}) {
|
|
|
12338
12338
|
n,
|
|
12339
12339
|
d,
|
|
12340
12340
|
A
|
|
12341
|
-
]), P =
|
|
12341
|
+
]), P = QC((e) => {
|
|
12342
12342
|
if (!r || !o || e.button !== 0) return;
|
|
12343
12343
|
let t = lE(e.nativeEvent);
|
|
12344
12344
|
cE(n.select("floatingElement"), t) && (y.current || (y.current = !0, b.current = !1));
|
|
12345
|
-
}), F =
|
|
12345
|
+
}), F = QC((e) => {
|
|
12346
12346
|
!r || !o || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && y.current && (b.current = !0);
|
|
12347
12347
|
}), I = V.useMemo(() => ({
|
|
12348
12348
|
onKeyDown: j,
|
|
@@ -12592,7 +12592,7 @@ var TO = class {
|
|
|
12592
12592
|
}
|
|
12593
12593
|
useContextCallback(e, t) {
|
|
12594
12594
|
V.useDebugValue(e);
|
|
12595
|
-
let n =
|
|
12595
|
+
let n = QC(t ?? Cw);
|
|
12596
12596
|
this.context[e] = n;
|
|
12597
12597
|
}
|
|
12598
12598
|
useStateSetter(e) {
|
|
@@ -12696,7 +12696,7 @@ function AO(e) {
|
|
|
12696
12696
|
let e = r.reference;
|
|
12697
12697
|
e && !vo(e) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
|
|
12698
12698
|
}
|
|
12699
|
-
let o =
|
|
12699
|
+
let o = YC(() => new OO({
|
|
12700
12700
|
open: t,
|
|
12701
12701
|
transitionStatus: void 0,
|
|
12702
12702
|
onOpenChange: n,
|
|
@@ -12866,9 +12866,9 @@ function VO(e, t) {
|
|
|
12866
12866
|
Y(() => {
|
|
12867
12867
|
o.current.orientation = x;
|
|
12868
12868
|
}, [o, x]);
|
|
12869
|
-
let A = mE(a), j = V.useRef(_), M = V.useRef(d ?? -1), N = V.useRef(null), P = V.useRef(!0), F =
|
|
12869
|
+
let A = mE(a), j = V.useRef(_), M = V.useRef(d ?? -1), N = V.useRef(null), P = V.useRef(!0), F = QC((e) => {
|
|
12870
12870
|
l(M.current === -1 ? null : M.current, e);
|
|
12871
|
-
}), I = V.useRef(F), L = V.useRef(!!i), ee = V.useRef(r), te = V.useRef(!1), R = V.useRef(!1), ne = V.useRef(null), re = xD(b), ie = xD(r), z = xD(d), ae = xD(T), oe =
|
|
12871
|
+
}), I = V.useRef(F), L = V.useRef(!!i), ee = V.useRef(r), te = V.useRef(!1), R = V.useRef(!1), ne = V.useRef(null), re = xD(b), ie = xD(r), z = xD(d), ae = xD(T), oe = QC(() => {
|
|
12872
12872
|
function e(e) {
|
|
12873
12873
|
g ? k?.events.emit("virtualfocus", e) : ne.current = kD(e, {
|
|
12874
12874
|
sync: te.current,
|
|
@@ -12936,7 +12936,7 @@ function VO(e, t) {
|
|
|
12936
12936
|
}), Y(() => {
|
|
12937
12937
|
r || (N.current = null, j.current = _);
|
|
12938
12938
|
}, [r, _]);
|
|
12939
|
-
let se = c != null, B =
|
|
12939
|
+
let se = c != null, B = QC((e) => {
|
|
12940
12940
|
if (!ie.current) return;
|
|
12941
12941
|
let t = s.current.indexOf(e.currentTarget);
|
|
12942
12942
|
t !== -1 && (M.current !== t || c !== t) && (M.current = t, F(e));
|
|
@@ -12970,7 +12970,7 @@ function VO(e, t) {
|
|
|
12970
12970
|
O,
|
|
12971
12971
|
k,
|
|
12972
12972
|
S
|
|
12973
|
-
]), ue =
|
|
12973
|
+
]), ue = QC((e) => {
|
|
12974
12974
|
if (P.current = !1, te.current = !0, e.which === 229 || !ie.current && e.currentTarget === D.current) return;
|
|
12975
12975
|
if (m && BO(e.key, x, h, C)) {
|
|
12976
12976
|
LO(e.key, le()) || vE(e), n.setOpen(!1, fT(dT, e.nativeEvent)), yo(a) && (g ? k?.events.emit("virtualfocus", a) : a.focus());
|
|
@@ -13128,9 +13128,9 @@ function HO(e, t) {
|
|
|
13128
13128
|
f,
|
|
13129
13129
|
s
|
|
13130
13130
|
]);
|
|
13131
|
-
let _ =
|
|
13131
|
+
let _ = QC((e) => {
|
|
13132
13132
|
e ? r.current.typing || (r.current.typing = e, l?.(e)) : r.current.typing && (r.current.typing = e, l?.(e));
|
|
13133
|
-
}), v =
|
|
13133
|
+
}), v = QC((e) => {
|
|
13134
13134
|
function t(e) {
|
|
13135
13135
|
let t = o?.current[e];
|
|
13136
13136
|
return !t || FE(t);
|
|
@@ -13153,7 +13153,7 @@ function HO(e, t) {
|
|
|
13153
13153
|
});
|
|
13154
13154
|
let u = ((l ? f ?? s ?? -1 : h.current) ?? 0) + 1, v = n(r, m.current, u);
|
|
13155
13155
|
v === -1 ? e.key !== " " && (m.current = "", _(!1)) : (c?.(v), g.current = v);
|
|
13156
|
-
}), y =
|
|
13156
|
+
}), y = QC((e) => {
|
|
13157
13157
|
let t = e.relatedTarget, r = n.select("domReferenceElement"), i = n.select("floatingElement"), a = cE(r, t), o = cE(i, t);
|
|
13158
13158
|
a || o || (p.clear(), m.current = "", h.current = g.current, _(!1));
|
|
13159
13159
|
}), b = V.useMemo(() => ({
|
|
@@ -13192,7 +13192,7 @@ function UO(e) {
|
|
|
13192
13192
|
//#endregion
|
|
13193
13193
|
//#region ../../node_modules/@base-ui/react/esm/internals/useValueChanged.js
|
|
13194
13194
|
function WO(e, t) {
|
|
13195
|
-
let n = V.useRef(e), r =
|
|
13195
|
+
let n = V.useRef(e), r = QC(t);
|
|
13196
13196
|
Y(() => {
|
|
13197
13197
|
n.current !== e && r(n.current);
|
|
13198
13198
|
}, [e, r]), Y(() => {
|
|
@@ -13202,7 +13202,7 @@ function WO(e, t) {
|
|
|
13202
13202
|
//#endregion
|
|
13203
13203
|
//#region ../../node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js
|
|
13204
13204
|
function GO(e) {
|
|
13205
|
-
let [t, n] = V.useState(null), r =
|
|
13205
|
+
let [t, n] = V.useState(null), r = QC((t, r) => {
|
|
13206
13206
|
e || n(r || (qT ? "touch" : ""));
|
|
13207
13207
|
});
|
|
13208
13208
|
WO(e, (t) => {
|
|
@@ -13545,7 +13545,7 @@ function Fk() {
|
|
|
13545
13545
|
//#endregion
|
|
13546
13546
|
//#region ../../node_modules/@base-ui/react/esm/internals/labelable-provider/useLabelableId.js
|
|
13547
13547
|
function Ik(e = {}) {
|
|
13548
|
-
let { id: t, implicit: n = !1, controlRef: r } = e, { controlId: i, registerControlId: a } = Fk(), o = yT(t), s = n ? i : void 0, c =
|
|
13548
|
+
let { id: t, implicit: n = !1, controlRef: r } = e, { controlId: i, registerControlId: a } = Fk(), o = yT(t), s = n ? i : void 0, c = YC(() => Symbol("labelable-control")), l = V.useRef(!1), u = V.useRef(t != null), d = QC(() => {
|
|
13549
13549
|
!l.current || a === Cw || (l.current = !1, a(c.current, void 0));
|
|
13550
13550
|
});
|
|
13551
13551
|
return Y(() => {
|
|
@@ -13638,7 +13638,7 @@ var Hk = Bk, Uk = Symbol("none"), Wk = {
|
|
|
13638
13638
|
function Gk(e) {
|
|
13639
13639
|
let { id: t, onOpenChangeComplete: n, defaultSelectedValue: r = null, selectedValue: i, onSelectedValueChange: a, defaultInputValue: o, inputValue: s, open: c, defaultOpen: l = !1, selectionMode: u = "none", onItemHighlighted: d, name: f, form: p, disabled: m = !1, readOnly: h = !1, required: g = !1, inputRef: _, grid: v = !1, items: y, filteredItems: b, filter: x, openOnInputClick: S = !0, autoHighlight: C = !1, keepHighlight: w = !1, highlightItemOnHover: T = !0, loopFocus: E = !0, itemToStringLabel: D, itemToStringValue: O, isItemEqualToValue: k = fk, virtualized: A = !1, inline: j = !1, fillInputOnItemPress: M = !0, modal: N = !1, limit: P = -1, autoComplete: F = "list", formAutoComplete: I, locale: L, submitOnItemClick: ee = !1 } = e, { clearErrors: te } = Nk(), { setDirty: R, validityData: ne, shouldValidateOnChange: re, setFilled: ie, name: z, disabled: ae, setTouched: oe, setFocused: se, validationMode: B, validation: ce } = Ak(), le = Ik({ id: t }), ue = Hk({ locale: L }), [de, fe] = V.useState(!1), [pe, me] = V.useState(null), he = V.useRef([]), ge = V.useRef([]), _e = V.useRef(null), ve = V.useRef(null), ye = V.useRef(null), be = V.useRef(null), xe = V.useRef(null), Se = V.useRef(!0), Ce = V.useRef(!1), we = V.useRef(null), Te = V.useRef(null), Ee = V.useRef(null), De = V.useRef(Wk), Oe = V.useRef(null), ke = V.useRef([]), Ae = V.useRef([]), je = ae || m, Me = z ?? f, Ne = u === "multiple", H = u === "single", Pe = s !== void 0 || o !== void 0, Fe = y !== void 0, Ie = b !== void 0, Le;
|
|
13640
13640
|
Le = C === "always" ? "always" : C ? "input-change" : !1;
|
|
13641
|
-
let [Re, ze] =
|
|
13641
|
+
let [Re, ze] = KC({
|
|
13642
13642
|
controlled: i,
|
|
13643
13643
|
default: Ne ? r ?? ww : r,
|
|
13644
13644
|
name: "Combobox",
|
|
@@ -13650,12 +13650,12 @@ function Gk(e) {
|
|
|
13650
13650
|
de,
|
|
13651
13651
|
ue,
|
|
13652
13652
|
D
|
|
13653
|
-
]), Ve =
|
|
13653
|
+
]), Ve = YC(() => Pe ? o ?? "" : H ? bk(Re, D) : "").current, [He, Ue] = KC({
|
|
13654
13654
|
controlled: s,
|
|
13655
13655
|
default: Ve,
|
|
13656
13656
|
name: "Combobox",
|
|
13657
13657
|
state: "inputValue"
|
|
13658
|
-
}), [We, Ge] =
|
|
13658
|
+
}), [We, Ge] = KC({
|
|
13659
13659
|
controlled: c,
|
|
13660
13660
|
default: l,
|
|
13661
13661
|
name: "Combobox",
|
|
@@ -13697,7 +13697,7 @@ function Gk(e) {
|
|
|
13697
13697
|
Be,
|
|
13698
13698
|
D,
|
|
13699
13699
|
Qe
|
|
13700
|
-
]), et = V.useMemo(() => Ke ? $e.flatMap((e) => e.items) : $e, [$e, Ke]), tt =
|
|
13700
|
+
]), et = V.useMemo(() => Ke ? $e.flatMap((e) => e.items) : $e, [$e, Ke]), tt = YC(() => new TO({
|
|
13701
13701
|
id: le,
|
|
13702
13702
|
labelId: void 0,
|
|
13703
13703
|
selectedValue: Re,
|
|
@@ -13766,19 +13766,19 @@ function Gk(e) {
|
|
|
13766
13766
|
O,
|
|
13767
13767
|
u,
|
|
13768
13768
|
Re
|
|
13769
|
-
]), it =
|
|
13769
|
+
]), it = QC(d), at = QC(n), ot = X(tt, Z.activeIndex), st = X(tt, Z.selectedIndex), ct = X(tt, Z.positionerElement), lt = X(tt, Z.listElement), ut = X(tt, Z.triggerElement), dt = X(tt, Z.inputElement), ft = X(tt, Z.inputGroupElement), pt = X(tt, Z.inline), G = X(tt, Z.inputInsidePopup), mt = xD(ut), { mounted: ht, setMounted: gt, transitionStatus: _t } = NT(We), { openMethod: vt, triggerProps: yt } = GO(We), bt = QC(() => rt);
|
|
13770
13770
|
jk(G ? mt : ve, {
|
|
13771
13771
|
id: le,
|
|
13772
13772
|
value: nt,
|
|
13773
13773
|
getValue: bt
|
|
13774
13774
|
});
|
|
13775
|
-
let xt =
|
|
13775
|
+
let xt = QC(() => {
|
|
13776
13776
|
y ? ge.current = et.map((e) => bk(e, D)) : tt.set("forceMounted", !0);
|
|
13777
13777
|
}), St = V.useRef(Re);
|
|
13778
13778
|
Y(() => {
|
|
13779
13779
|
Re !== St.current && xt();
|
|
13780
13780
|
}, [xt, Re]);
|
|
13781
|
-
let Ct =
|
|
13781
|
+
let Ct = QC((e) => {
|
|
13782
13782
|
tt.update(e);
|
|
13783
13783
|
let t = e.type || "none";
|
|
13784
13784
|
if (e.activeIndex !== void 0) if (e.activeIndex === null) De.current !== Wk && (De.current = Wk, it(void 0, pT(t, void 0, { index: -1 })));
|
|
@@ -13789,7 +13789,7 @@ function Gk(e) {
|
|
|
13789
13789
|
index: e.activeIndex
|
|
13790
13790
|
}, it(n, pT(t, void 0, { index: e.activeIndex }));
|
|
13791
13791
|
}
|
|
13792
|
-
}), wt =
|
|
13792
|
+
}), wt = QC((t, n) => {
|
|
13793
13793
|
if (Ce.current = n.reason === sT, e.onInputValueChange?.(t, n), !n.isCanceled) {
|
|
13794
13794
|
if (n.reason === "input-change") {
|
|
13795
13795
|
let e = n.event, r = e.inputType;
|
|
@@ -13800,14 +13800,14 @@ function Gk(e) {
|
|
|
13800
13800
|
}
|
|
13801
13801
|
Ue(t);
|
|
13802
13802
|
}
|
|
13803
|
-
}), Tt =
|
|
13803
|
+
}), Tt = QC((t, n) => {
|
|
13804
13804
|
if (We !== t && (n.reason === "escape-key" && Fe && et.length === 0 && !tt.state.emptyRef.current && n.allowPropagation(), e.onOpenChange?.(t, n), !n.isCanceled && (!t && de && (H ? (pt || me(qe), qe === "" && fe(!1)) : Ne && (pt || G ? Ct({ activeIndex: null }) : me(qe), wt("", fT(sT, n.event)))), Ge(t), !t && G && (n.reason === "focus-out" || n.reason === "outside-press") && (oe(!0), se(!1), B === "onBlur")))) {
|
|
13805
13805
|
let e = u === "none" ? He : Re;
|
|
13806
13806
|
ce.commit(e);
|
|
13807
13807
|
}
|
|
13808
|
-
}), Et =
|
|
13808
|
+
}), Et = QC((e, t) => {
|
|
13809
13809
|
a?.(e, t), !t.isCanceled && (ze(e), (u === "none" && _e.current && M || H && !tt.state.inputInsidePopup) && wt(bk(e, D), fT(t.reason, t.event)), H && e != null && t.reason !== "input-change" && de && !pt && me(qe));
|
|
13810
|
-
}), Dt =
|
|
13810
|
+
}), Dt = QC((e, t) => {
|
|
13811
13811
|
let n = t;
|
|
13812
13812
|
if (n === void 0) {
|
|
13813
13813
|
if (ot === null) return;
|
|
@@ -13825,11 +13825,11 @@ function Gk(e) {
|
|
|
13825
13825
|
if (Et(mk(e, n, tt.state.isItemEqualToValue) ? gk(e, n, tt.state.isItemEqualToValue) : [...e, n], a), !(ve.current && ve.current.value.trim() !== "")) return;
|
|
13826
13826
|
tt.state.inputInsidePopup ? wt("", fT(sT, a.event)) : Tt(!1, a);
|
|
13827
13827
|
} else Et(n, a), Tt(!1, a);
|
|
13828
|
-
}), Ot =
|
|
13828
|
+
}), Ot = QC(() => {
|
|
13829
13829
|
if (!tt.state.submitOnItemClick) return;
|
|
13830
13830
|
let e = ce.inputRef.current?.form ?? tt.state.inputElement?.form;
|
|
13831
13831
|
e && typeof e.requestSubmit == "function" && e.requestSubmit();
|
|
13832
|
-
}), kt =
|
|
13832
|
+
}), kt = QC(() => {
|
|
13833
13833
|
if (gt(!1), at?.(!1), fe(!1), me(null), Ct(u === "none" ? {
|
|
13834
13834
|
activeIndex: null,
|
|
13835
13835
|
selectedIndex: null
|
|
@@ -14237,7 +14237,7 @@ var Yk = 2, Xk = /*#__PURE__*/ V.forwardRef(function(e, t) {
|
|
|
14237
14237
|
ref: [
|
|
14238
14238
|
t,
|
|
14239
14239
|
ce,
|
|
14240
|
-
|
|
14240
|
+
QC((e) => {
|
|
14241
14241
|
g.set("triggerElement", e);
|
|
14242
14242
|
})
|
|
14243
14243
|
],
|
|
@@ -14311,7 +14311,7 @@ var tA = /*#__PURE__*/ V.forwardRef(function(e, t) {
|
|
|
14311
14311
|
let n = ck(), { buttonRef: r, getButtonProps: i } = zT({ native: !1 });
|
|
14312
14312
|
return /*#__PURE__*/ U("span", {
|
|
14313
14313
|
ref: pw(t, r),
|
|
14314
|
-
...i({ onClick:
|
|
14314
|
+
...i({ onClick: QC((e) => {
|
|
14315
14315
|
n.state.setOpen(!1, fT(rT, e.nativeEvent, e.currentTarget));
|
|
14316
14316
|
}) }),
|
|
14317
14317
|
"aria-label": "Dismiss",
|
|
@@ -14323,7 +14323,7 @@ process.env.NODE_ENV !== "production" && (tA.displayName = "ComboboxInternalDism
|
|
|
14323
14323
|
//#endregion
|
|
14324
14324
|
//#region ../../node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js
|
|
14325
14325
|
var nA = /*#__PURE__*/ V.forwardRef(function(e, t) {
|
|
14326
|
-
let { render: n, className: r, disabled: i = !1, id: a, style: o, ...s } = e, { state: c, disabled: l, setTouched: u, setFocused: d, validationMode: f, validation: p } = Ak(), { labelId: m } = Fk(), h = Qk(), g = !!eA(!0), _ = ck(), { filteredItems: v } = uk(), y = dk(), b = uw(), x = X(_, Z.required), S = X(_, Z.disabled), C = X(_, Z.readOnly), w = X(_, Z.name), T = X(_, Z.form), E = X(_, Z.selectionMode), D = X(_, Z.autoHighlight), O = X(_, Z.inputProps), k = X(_, Z.triggerProps), A = X(_, Z.open), j = X(_, Z.mounted), M = X(_, Z.selectedValue), N = X(_, Z.popupSide), P = X(_, Z.positionerElement), F = X(_, Z.id), I = X(_, Z.inline), L = X(_, Z.modal), ee = !!D, te = j && P ? N : null, R = l || S || i, ne = v.length === 0, re = g || I, ie = !re || L, z = yT(a ?? (re ? void 0 : F)), ae = Jk(m, void 0), oe = g ? Ek : c, [se, B] = V.useState(null), ce = V.useRef(!1), le = V.useRef(null), ue = V.useRef(!1), de =
|
|
14326
|
+
let { render: n, className: r, disabled: i = !1, id: a, style: o, ...s } = e, { state: c, disabled: l, setTouched: u, setFocused: d, validationMode: f, validation: p } = Ak(), { labelId: m } = Fk(), h = Qk(), g = !!eA(!0), _ = ck(), { filteredItems: v } = uk(), y = dk(), b = uw(), x = X(_, Z.required), S = X(_, Z.disabled), C = X(_, Z.readOnly), w = X(_, Z.name), T = X(_, Z.form), E = X(_, Z.selectionMode), D = X(_, Z.autoHighlight), O = X(_, Z.inputProps), k = X(_, Z.triggerProps), A = X(_, Z.open), j = X(_, Z.mounted), M = X(_, Z.selectedValue), N = X(_, Z.popupSide), P = X(_, Z.positionerElement), F = X(_, Z.id), I = X(_, Z.inline), L = X(_, Z.modal), ee = !!D, te = j && P ? N : null, R = l || S || i, ne = v.length === 0, re = g || I, ie = !re || L, z = yT(a ?? (re ? void 0 : F)), ae = Jk(m, void 0), oe = g ? Ek : c, [se, B] = V.useState(null), ce = V.useRef(!1), le = V.useRef(null), ue = V.useRef(!1), de = QC((e) => {
|
|
14327
14327
|
let t = g || _.state.inline;
|
|
14328
14328
|
t && !_.state.hasInputValue && _.state.setInputValue("", fT($w)), _.update({
|
|
14329
14329
|
inputElement: e,
|
|
@@ -14581,9 +14581,9 @@ function lA(e) {
|
|
|
14581
14581
|
//#region ../../node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js
|
|
14582
14582
|
var uA = /*#__PURE__*/ V.forwardRef(function(e, t) {
|
|
14583
14583
|
var n;
|
|
14584
|
-
let { render: r, className: i, style: a, children: o, ...s } = e, c = ck(), l = lk(), u = !!eA(!0), { filteredItems: d, hasItems: f } = uk(), p = X(c, Z.selectionMode), m = X(c, Z.grid), h = X(c, Z.popupProps), g = X(c, Z.virtualized), _ = p === "multiple", v = d.length === 0, y =
|
|
14584
|
+
let { render: r, className: i, style: a, children: o, ...s } = e, c = ck(), l = lk(), u = !!eA(!0), { filteredItems: d, hasItems: f } = uk(), p = X(c, Z.selectionMode), m = X(c, Z.grid), h = X(c, Z.popupProps), g = X(c, Z.virtualized), _ = p === "multiple", v = d.length === 0, y = QC((e) => {
|
|
14585
14585
|
c.set("positionerElement", e);
|
|
14586
|
-
}), b =
|
|
14586
|
+
}), b = QC((e) => {
|
|
14587
14587
|
c.set("listElement", e);
|
|
14588
14588
|
}), x = V.useMemo(() => typeof o == "function" ? n ||= /*#__PURE__*/ U(lA, { children: o }) : o, [o]), S = { empty: v }, C = l.useState("floatingId"), w = Ww("div", e, {
|
|
14589
14589
|
state: S,
|
|
@@ -14741,7 +14741,7 @@ function SA(e, t, n) {
|
|
|
14741
14741
|
function CA(e) {
|
|
14742
14742
|
let { anchor: t, positionMethod: n = "absolute", side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, collisionBoundary: s, collisionPadding: c = 5, sticky: l = !1, arrowPadding: u = 5, disableAnchorTracking: d = !1, keepMounted: f = !1, floatingRootContext: p, mounted: m, collisionAvoidance: h, shiftCrossAxis: g = !1, nodeId: _, adaptiveOrigin: v, lazyFlip: y = !1, externalTree: b } = e, [x, S] = V.useState(null);
|
|
14743
14743
|
!m && x !== null && S(null);
|
|
14744
|
-
let C = h.side || "flip", w = h.align || "flip", T = h.fallbackAxisSide || "end", E = typeof t == "function" ? t : void 0, D =
|
|
14744
|
+
let C = h.side || "flip", w = h.align || "flip", T = h.fallbackAxisSide || "end", E = typeof t == "function" ? t : void 0, D = QC(E), O = E ? D : t, k = xD(t), A = xD(m), j = uw() === "rtl", M = x || {
|
|
14745
14745
|
top: "top",
|
|
14746
14746
|
right: "right",
|
|
14747
14747
|
bottom: "bottom",
|
|
@@ -15021,7 +15021,7 @@ var kA = /*#__PURE__*/ V.forwardRef(function(e, t) {
|
|
|
15021
15021
|
Y(() => {
|
|
15022
15022
|
v.set("popupSide", N.side);
|
|
15023
15023
|
}, [v, N.side]);
|
|
15024
|
-
let F =
|
|
15024
|
+
let F = QC((e) => {
|
|
15025
15025
|
v.set("positionerElement", e);
|
|
15026
15026
|
}), I = EA(e, P, {
|
|
15027
15027
|
styles: N.positionerStyles,
|
|
@@ -15622,10 +15622,10 @@ function dj({ className: e, children: n, disabled: r = !1, showTrigger: i = !0,
|
|
|
15622
15622
|
"data-slot": "input-group-button",
|
|
15623
15623
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
15624
15624
|
disabled: r,
|
|
15625
|
-
children: /* @__PURE__ */ U(lj, { "data-testid":
|
|
15625
|
+
children: /* @__PURE__ */ U(lj, { "data-testid": J(s, "trigger") })
|
|
15626
15626
|
}), a && /* @__PURE__ */ U(uj, {
|
|
15627
15627
|
disabled: r,
|
|
15628
|
-
"data-testid":
|
|
15628
|
+
"data-testid": J(s, "clear")
|
|
15629
15629
|
})]
|
|
15630
15630
|
}),
|
|
15631
15631
|
n
|
|
@@ -15727,7 +15727,7 @@ function xj({ className: e, children: n, showRemove: r = !0, removeAriaLabel: i
|
|
|
15727
15727
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
15728
15728
|
"data-slot": "combobox-chip-remove",
|
|
15729
15729
|
"aria-label": i,
|
|
15730
|
-
"data-testid":
|
|
15730
|
+
"data-testid": J(o, "remove"),
|
|
15731
15731
|
children: /* @__PURE__ */ U(ue, {
|
|
15732
15732
|
"aria-hidden": "true",
|
|
15733
15733
|
className: "pointer-events-none"
|
|
@@ -17418,7 +17418,7 @@ function AF({ className: e, children: n, showCloseButton: r = !0, ...i }) {
|
|
|
17418
17418
|
variant: "ghost",
|
|
17419
17419
|
className: "absolute top-2 right-2",
|
|
17420
17420
|
size: "icon-sm",
|
|
17421
|
-
"data-testid":
|
|
17421
|
+
"data-testid": J(a, "close"),
|
|
17422
17422
|
children: [/* @__PURE__ */ U(ue, { "aria-hidden": "true" }), /* @__PURE__ */ U("span", {
|
|
17423
17423
|
className: "sr-only",
|
|
17424
17424
|
children: "Close"
|
|
@@ -17444,7 +17444,7 @@ function MF({ className: e, showCloseButton: n = !1, children: r, ...i }) {
|
|
|
17444
17444
|
asChild: !0,
|
|
17445
17445
|
children: /* @__PURE__ */ U(ay, {
|
|
17446
17446
|
variant: "outline",
|
|
17447
|
-
"data-testid":
|
|
17447
|
+
"data-testid": J(a, "close"),
|
|
17448
17448
|
children: "Close"
|
|
17449
17449
|
})
|
|
17450
17450
|
}), r]
|
|
@@ -21414,7 +21414,7 @@ function Fz({ accept: e, className: n, describedById: r, disabled: i, hint: a, i
|
|
|
21414
21414
|
...T ? { "aria-labelledby": x } : { "aria-label": "Choose file to upload" },
|
|
21415
21415
|
"aria-describedby": E,
|
|
21416
21416
|
"aria-invalid": s || y ? !0 : void 0,
|
|
21417
|
-
"data-testid":
|
|
21417
|
+
"data-testid": J(D, "input")
|
|
21418
21418
|
}) }),
|
|
21419
21419
|
/* @__PURE__ */ U("div", {
|
|
21420
21420
|
"aria-hidden": "true",
|
|
@@ -21438,7 +21438,7 @@ function Fz({ accept: e, className: n, describedById: r, disabled: i, hint: a, i
|
|
|
21438
21438
|
"aria-describedby": E,
|
|
21439
21439
|
"aria-invalid": s || y ? !0 : void 0,
|
|
21440
21440
|
"data-slot": "file-upload-trigger",
|
|
21441
|
-
"data-testid":
|
|
21441
|
+
"data-testid": J(D, "trigger"),
|
|
21442
21442
|
onClick: (e) => {
|
|
21443
21443
|
e.stopPropagation(), b();
|
|
21444
21444
|
},
|
|
@@ -23590,7 +23590,7 @@ function zH({ className: e, children: n, side: r = "right", showCloseButton: i =
|
|
|
23590
23590
|
variant: "ghost",
|
|
23591
23591
|
className: "absolute top-3 right-3",
|
|
23592
23592
|
size: "icon-sm",
|
|
23593
|
-
"data-testid":
|
|
23593
|
+
"data-testid": J(s, "close"),
|
|
23594
23594
|
children: [/* @__PURE__ */ U(ue, { "aria-hidden": "true" }), /* @__PURE__ */ U("span", {
|
|
23595
23595
|
className: "sr-only",
|
|
23596
23596
|
children: "Close"
|
|
@@ -27070,13 +27070,13 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27070
27070
|
children: [/* @__PURE__ */ U(DH, {
|
|
27071
27071
|
className: "h-7 w-16",
|
|
27072
27072
|
"aria-label": "Items per page",
|
|
27073
|
-
"data-testid":
|
|
27073
|
+
"data-testid": J(s, "page-size"),
|
|
27074
27074
|
children: /* @__PURE__ */ U(EH, {})
|
|
27075
27075
|
}), /* @__PURE__ */ U(OH, {
|
|
27076
|
-
"data-testid":
|
|
27076
|
+
"data-testid": J(s, "page-size-content"),
|
|
27077
27077
|
children: r.map((e) => /* @__PURE__ */ U(AH, {
|
|
27078
27078
|
value: String(e),
|
|
27079
|
-
"data-testid":
|
|
27079
|
+
"data-testid": J(s, `page-size-option-${e}`),
|
|
27080
27080
|
children: e
|
|
27081
27081
|
}, e))
|
|
27082
27082
|
})]
|
|
@@ -27084,7 +27084,7 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27084
27084
|
}),
|
|
27085
27085
|
/* @__PURE__ */ W("span", {
|
|
27086
27086
|
className: "text-xs text-muted-foreground tabular-nums",
|
|
27087
|
-
"data-testid":
|
|
27087
|
+
"data-testid": J(s, "range"),
|
|
27088
27088
|
children: [
|
|
27089
27089
|
n > 0 ? `${l}-${u}` : "0",
|
|
27090
27090
|
" of ",
|
|
@@ -27099,7 +27099,7 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27099
27099
|
disabled: e <= 1,
|
|
27100
27100
|
onClick: () => i(e - 1),
|
|
27101
27101
|
"aria-label": "Previous page",
|
|
27102
|
-
"data-testid":
|
|
27102
|
+
"data-testid": J(s, "previous"),
|
|
27103
27103
|
children: /* @__PURE__ */ U(we, { className: "size-4" })
|
|
27104
27104
|
}), /* @__PURE__ */ U(ay, {
|
|
27105
27105
|
variant: "ghost",
|
|
@@ -27107,7 +27107,7 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27107
27107
|
disabled: e >= c,
|
|
27108
27108
|
onClick: () => i(e + 1),
|
|
27109
27109
|
"aria-label": "Next page",
|
|
27110
|
-
"data-testid":
|
|
27110
|
+
"data-testid": J(s, "next"),
|
|
27111
27111
|
children: /* @__PURE__ */ U(re, { className: "size-4" })
|
|
27112
27112
|
})]
|
|
27113
27113
|
})
|
|
@@ -27210,7 +27210,7 @@ function VK({ columns: e, placeholder: t, "data-testid": n }) {
|
|
|
27210
27210
|
align: "end",
|
|
27211
27211
|
"aria-label": "Toggle columns",
|
|
27212
27212
|
className: "w-72 p-0",
|
|
27213
|
-
"data-testid":
|
|
27213
|
+
"data-testid": J(n, "content"),
|
|
27214
27214
|
children: /* @__PURE__ */ W(FF, {
|
|
27215
27215
|
label: "Search columns",
|
|
27216
27216
|
filter: BK,
|
|
@@ -27223,14 +27223,14 @@ function VK({ columns: e, placeholder: t, "data-testid": n }) {
|
|
|
27223
27223
|
value: r,
|
|
27224
27224
|
onValueChange: i,
|
|
27225
27225
|
className: "pr-8",
|
|
27226
|
-
"data-testid":
|
|
27226
|
+
"data-testid": J(n, "search")
|
|
27227
27227
|
}), r !== "" && /* @__PURE__ */ U(ay, {
|
|
27228
27228
|
type: "button",
|
|
27229
27229
|
variant: "ghost",
|
|
27230
27230
|
size: "icon-xs",
|
|
27231
27231
|
"aria-label": "Clear search",
|
|
27232
27232
|
className: "absolute top-2 right-2",
|
|
27233
|
-
"data-testid":
|
|
27233
|
+
"data-testid": J(n, "clear"),
|
|
27234
27234
|
onClick: o,
|
|
27235
27235
|
onKeyDown: (e) => {
|
|
27236
27236
|
e.key === "Enter" && e.stopPropagation();
|
|
@@ -27244,7 +27244,7 @@ function VK({ columns: e, placeholder: t, "data-testid": n }) {
|
|
|
27244
27244
|
children: t.map((e) => /* @__PURE__ */ U(RK, {
|
|
27245
27245
|
column: e,
|
|
27246
27246
|
onToggle: s,
|
|
27247
|
-
"data-testid":
|
|
27247
|
+
"data-testid": J(n, `column-${e.id}`)
|
|
27248
27248
|
}, e.id))
|
|
27249
27249
|
}, LK(e)))]
|
|
27250
27250
|
})]
|
|
@@ -27266,7 +27266,7 @@ function HK({ table: e, searchable: t = !1, searchPlaceholder: n = "Search colum
|
|
|
27266
27266
|
}), /* @__PURE__ */ W(CL, {
|
|
27267
27267
|
align: "end",
|
|
27268
27268
|
className: "w-48",
|
|
27269
|
-
"data-testid":
|
|
27269
|
+
"data-testid": J(r, "content"),
|
|
27270
27270
|
children: [
|
|
27271
27271
|
/* @__PURE__ */ U(kL, { children: "Toggle columns" }),
|
|
27272
27272
|
/* @__PURE__ */ U(AL, {}),
|
|
@@ -27275,7 +27275,7 @@ function HK({ table: e, searchable: t = !1, searchPlaceholder: n = "Search colum
|
|
|
27275
27275
|
checked: e.getIsVisible(),
|
|
27276
27276
|
onCheckedChange: (t) => e.toggleVisibility(!!t),
|
|
27277
27277
|
className: "text-sm",
|
|
27278
|
-
"data-testid":
|
|
27278
|
+
"data-testid": J(r, `column-${e.id}`),
|
|
27279
27279
|
children: /* @__PURE__ */ U(NK, {
|
|
27280
27280
|
label: FK(e),
|
|
27281
27281
|
description: e.columnDef.meta?.description
|
|
@@ -27339,17 +27339,17 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27339
27339
|
}, [n]);
|
|
27340
27340
|
let L = qe(() => r === "multi" ? [{
|
|
27341
27341
|
id: "_select",
|
|
27342
|
-
header: ({ table: e }) => /* @__PURE__ */ U(
|
|
27342
|
+
header: ({ table: e }) => /* @__PURE__ */ U(BC, {
|
|
27343
27343
|
checked: e.getIsAllPageRowsSelected() || e.getIsSomePageRowsSelected() && "indeterminate",
|
|
27344
27344
|
onCheckedChange: (t) => e.toggleAllPageRowsSelected(!!t),
|
|
27345
27345
|
"aria-label": "Select all",
|
|
27346
|
-
"data-testid":
|
|
27346
|
+
"data-testid": J(C, "select-all")
|
|
27347
27347
|
}),
|
|
27348
|
-
cell: ({ row: e }) => /* @__PURE__ */ U(
|
|
27348
|
+
cell: ({ row: e }) => /* @__PURE__ */ U(BC, {
|
|
27349
27349
|
checked: e.getIsSelected(),
|
|
27350
27350
|
onCheckedChange: (t) => e.toggleSelected(!!t),
|
|
27351
27351
|
"aria-label": "Select row",
|
|
27352
|
-
"data-testid":
|
|
27352
|
+
"data-testid": J(C, `row-${e.id}-select`)
|
|
27353
27353
|
}),
|
|
27354
27354
|
enableSorting: !1,
|
|
27355
27355
|
enableHiding: !1
|
|
@@ -27398,7 +27398,7 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27398
27398
|
}), /* @__PURE__ */ U("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
|
|
27399
27399
|
}, `skeleton-${t}-${n}`))
|
|
27400
27400
|
}, `skeleton-${t}`)) : !ne.length && p ? null : ne.length ? ne.map((e) => /* @__PURE__ */ U(gW, {
|
|
27401
|
-
"data-testid":
|
|
27401
|
+
"data-testid": J(C, `row-${e.id}`),
|
|
27402
27402
|
"data-state": e.getIsSelected() ? "selected" : void 0,
|
|
27403
27403
|
className: j ? "pointer-events-none border-transparent hover:bg-transparent" : void 0,
|
|
27404
27404
|
children: e.getVisibleCells().map((e) => /* @__PURE__ */ W(vW, {
|
|
@@ -27410,7 +27410,7 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27410
27410
|
}, e.id))
|
|
27411
27411
|
}, e.id)) : /* @__PURE__ */ U(gW, {
|
|
27412
27412
|
className: "hover:bg-transparent",
|
|
27413
|
-
"data-testid":
|
|
27413
|
+
"data-testid": J(C, "empty"),
|
|
27414
27414
|
children: /* @__PURE__ */ U(vW, {
|
|
27415
27415
|
colSpan: re,
|
|
27416
27416
|
className: t("h-24 text-center", typeof c == "string" && "text-muted-foreground"),
|
|
@@ -27422,7 +27422,7 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27422
27422
|
width: ee.getTotalSize(),
|
|
27423
27423
|
minWidth: "100%",
|
|
27424
27424
|
tableLayout: "fixed"
|
|
27425
|
-
} : void 0, ae = (e) => e.isPlaceholder ? void 0 :
|
|
27425
|
+
} : void 0, ae = (e) => e.isPlaceholder ? void 0 : J(C, `header-${e.column.id}`), oe = /* @__PURE__ */ W(fW, {
|
|
27426
27426
|
style: z,
|
|
27427
27427
|
children: [/* @__PURE__ */ U(pW, { children: ee.getHeaderGroups().map((e) => /* @__PURE__ */ U(gW, { children: e.headers.map((e) => /* @__PURE__ */ W(_W, {
|
|
27428
27428
|
"data-testid": ae(e),
|
|
@@ -27432,7 +27432,7 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27432
27432
|
children: [e.isPlaceholder ? null : EK(e.column.columnDef.header, e.getContext()), d && !e.isPlaceholder && e.column.getCanResize() && /* @__PURE__ */ U(qK, {
|
|
27433
27433
|
header: e,
|
|
27434
27434
|
table: ee,
|
|
27435
|
-
"data-testid":
|
|
27435
|
+
"data-testid": J(ae(e), "resize")
|
|
27436
27436
|
})]
|
|
27437
27437
|
}, e.id)) }, e.id)) }), /* @__PURE__ */ U(mW, { children: ie() })]
|
|
27438
27438
|
});
|
|
@@ -27452,11 +27452,11 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27452
27452
|
children: [l && /* @__PURE__ */ U(HK, {
|
|
27453
27453
|
table: ee,
|
|
27454
27454
|
...u,
|
|
27455
|
-
"data-testid":
|
|
27455
|
+
"data-testid": J(C, "view")
|
|
27456
27456
|
}), a && /* @__PURE__ */ U("div", {
|
|
27457
27457
|
className: t("flex items-center gap-2", te === 0 && "opacity-50"),
|
|
27458
27458
|
"aria-disabled": te === 0,
|
|
27459
|
-
"data-testid":
|
|
27459
|
+
"data-testid": J(C, "bulk-actions"),
|
|
27460
27460
|
...te === 0 ? { inert: !0 } : {},
|
|
27461
27461
|
children: a
|
|
27462
27462
|
})]
|
|
@@ -27466,7 +27466,7 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27466
27466
|
className: t("overflow-hidden rounded-lg border", !f && "**:data-[slot=table-container]:overflow-x-auto", f && "**:data-[slot=table-container]:!overflow-visible"),
|
|
27467
27467
|
"aria-busy": j,
|
|
27468
27468
|
"aria-live": j ? "polite" : void 0,
|
|
27469
|
-
"data-testid":
|
|
27469
|
+
"data-testid": J(C, "table"),
|
|
27470
27470
|
children: /* @__PURE__ */ U(MK, {
|
|
27471
27471
|
value: C,
|
|
27472
27472
|
children: f ? /* @__PURE__ */ W(SH, {
|
|
@@ -27483,7 +27483,7 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27483
27483
|
onPageChange: y.onPageChange,
|
|
27484
27484
|
onPageSizeChange: y.onPageSizeChange,
|
|
27485
27485
|
pageSizeOptions: y.pageSizeOptions,
|
|
27486
|
-
"data-testid":
|
|
27486
|
+
"data-testid": J(C, "pagination")
|
|
27487
27487
|
})
|
|
27488
27488
|
]
|
|
27489
27489
|
});
|
|
@@ -27491,7 +27491,7 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27491
27491
|
//#endregion
|
|
27492
27492
|
//#region src/composed/DataTable/DataTableColumnHeader.tsx
|
|
27493
27493
|
function YK({ column: e, title: n, className: r, "data-testid": i, ...a }) {
|
|
27494
|
-
let o = Ve(MK), s = i ??
|
|
27494
|
+
let o = Ve(MK), s = i ?? J(o, `header-${e.id}`);
|
|
27495
27495
|
if (!e.getCanSort()) return /* @__PURE__ */ U("div", {
|
|
27496
27496
|
className: r,
|
|
27497
27497
|
"data-testid": i,
|
|
@@ -27508,7 +27508,7 @@ function YK({ column: e, title: n, className: r, "data-testid": i, ...a }) {
|
|
|
27508
27508
|
size: "xs",
|
|
27509
27509
|
className: "-ml-2 text-sm",
|
|
27510
27510
|
onClick: () => e.toggleSorting(c === "asc"),
|
|
27511
|
-
"data-testid":
|
|
27511
|
+
"data-testid": J(s, "sort"),
|
|
27512
27512
|
children: [n, U(c === "asc" ? Oe : c === "desc" ? ve : be, { className: "size-3.5" })]
|
|
27513
27513
|
})
|
|
27514
27514
|
});
|
|
@@ -27646,7 +27646,7 @@ function oq({ value: e, maxLength: n = 24, "data-testid": r }) {
|
|
|
27646
27646
|
className: t("size-5 opacity-0 transition-opacity group-hover/copy:opacity-100", i && "opacity-100"),
|
|
27647
27647
|
onClick: s,
|
|
27648
27648
|
"aria-label": i ? "Copied" : "Copy to clipboard",
|
|
27649
|
-
"data-testid":
|
|
27649
|
+
"data-testid": J(r, "copy"),
|
|
27650
27650
|
children: U(i ? z : B, { className: "size-3" })
|
|
27651
27651
|
})]
|
|
27652
27652
|
});
|
|
@@ -28884,11 +28884,11 @@ function gJ(e) {
|
|
|
28884
28884
|
}
|
|
28885
28885
|
//#endregion
|
|
28886
28886
|
//#region src/composed/DatePicker/DatePicker.tsx
|
|
28887
|
-
function _J({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disabled: a = !1, dateFormat: o = "PPP", locale: s, className: c, "aria-label": l }) {
|
|
28888
|
-
let [
|
|
28887
|
+
function _J({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disabled: a = !1, dateFormat: o = "PPP", locale: s, className: c, "aria-label": l, "data-testid": u }) {
|
|
28888
|
+
let [d, f] = Xe(!1);
|
|
28889
28889
|
return /* @__PURE__ */ W(fB, {
|
|
28890
|
-
open:
|
|
28891
|
-
onOpenChange:
|
|
28890
|
+
open: d,
|
|
28891
|
+
onOpenChange: f,
|
|
28892
28892
|
children: [/* @__PURE__ */ U(pB, {
|
|
28893
28893
|
asChild: !0,
|
|
28894
28894
|
children: /* @__PURE__ */ W(ay, {
|
|
@@ -28897,31 +28897,34 @@ function _J({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28897
28897
|
id: e,
|
|
28898
28898
|
disabled: a,
|
|
28899
28899
|
"aria-haspopup": "dialog",
|
|
28900
|
-
"aria-expanded":
|
|
28900
|
+
"aria-expanded": d,
|
|
28901
28901
|
"aria-label": l,
|
|
28902
|
+
"data-testid": u,
|
|
28902
28903
|
className: t("w-full min-w-[9rem] justify-between font-normal", !n && "text-muted-foreground", c),
|
|
28903
28904
|
children: [n ? hJ(n, o) : /* @__PURE__ */ U("span", { children: i }), /* @__PURE__ */ U(he, { "aria-hidden": "true" })]
|
|
28904
28905
|
})
|
|
28905
28906
|
}), /* @__PURE__ */ U(mB, {
|
|
28906
28907
|
className: "w-auto p-0",
|
|
28907
28908
|
align: "start",
|
|
28908
|
-
|
|
28909
|
+
"data-testid": J(u, "content"),
|
|
28910
|
+
children: /* @__PURE__ */ U(TC, {
|
|
28909
28911
|
mode: "single",
|
|
28910
28912
|
selected: n,
|
|
28911
28913
|
onSelect: r,
|
|
28912
28914
|
defaultMonth: n,
|
|
28913
|
-
locale: s
|
|
28915
|
+
locale: s,
|
|
28916
|
+
"data-testid": J(u, "calendar")
|
|
28914
28917
|
})
|
|
28915
28918
|
})]
|
|
28916
28919
|
});
|
|
28917
28920
|
}
|
|
28918
28921
|
//#endregion
|
|
28919
28922
|
//#region src/composed/DatePicker/DateRangePicker.tsx
|
|
28920
|
-
function vJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disabled: a = !1, dateFormat: o = "LLL dd, y", locale: s, numberOfMonths: c = 2, className: l, "aria-label": u }) {
|
|
28921
|
-
let [
|
|
28923
|
+
function vJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disabled: a = !1, dateFormat: o = "LLL dd, y", locale: s, numberOfMonths: c = 2, className: l, "aria-label": u, "data-testid": d }) {
|
|
28924
|
+
let [f, p] = Xe(!1);
|
|
28922
28925
|
return /* @__PURE__ */ W(fB, {
|
|
28923
|
-
open:
|
|
28924
|
-
onOpenChange:
|
|
28926
|
+
open: f,
|
|
28927
|
+
onOpenChange: p,
|
|
28925
28928
|
children: [/* @__PURE__ */ U(pB, {
|
|
28926
28929
|
asChild: !0,
|
|
28927
28930
|
children: /* @__PURE__ */ W(ay, {
|
|
@@ -28930,8 +28933,9 @@ function vJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28930
28933
|
id: e,
|
|
28931
28934
|
disabled: a,
|
|
28932
28935
|
"aria-haspopup": "dialog",
|
|
28933
|
-
"aria-expanded":
|
|
28936
|
+
"aria-expanded": f,
|
|
28934
28937
|
"aria-label": u,
|
|
28938
|
+
"data-testid": d,
|
|
28935
28939
|
className: t("w-full min-w-[15rem] justify-between font-normal", !(n?.from || n?.to) && "text-muted-foreground", l),
|
|
28936
28940
|
children: [n?.from || n?.to ? n.from ? n.to ? /* @__PURE__ */ W($e, { children: [
|
|
28937
28941
|
hJ(n.from, o),
|
|
@@ -28942,13 +28946,15 @@ function vJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28942
28946
|
}), /* @__PURE__ */ U(mB, {
|
|
28943
28947
|
className: "w-auto p-0",
|
|
28944
28948
|
align: "start",
|
|
28945
|
-
|
|
28949
|
+
"data-testid": J(d, "content"),
|
|
28950
|
+
children: /* @__PURE__ */ U(TC, {
|
|
28946
28951
|
mode: "range",
|
|
28947
28952
|
defaultMonth: n?.from,
|
|
28948
28953
|
selected: n,
|
|
28949
28954
|
onSelect: r,
|
|
28950
28955
|
numberOfMonths: c,
|
|
28951
|
-
locale: s
|
|
28956
|
+
locale: s,
|
|
28957
|
+
"data-testid": J(d, "calendar")
|
|
28952
28958
|
})
|
|
28953
28959
|
})]
|
|
28954
28960
|
});
|
|
@@ -28966,31 +28972,32 @@ function bJ(e, t) {
|
|
|
28966
28972
|
}
|
|
28967
28973
|
//#endregion
|
|
28968
28974
|
//#region src/composed/DatePicker/DateTimePicker.tsx
|
|
28969
|
-
function xJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and time", disabled: a = !1, dateTimeFormat: o = "PP '@' HH:mm:ss", locale: s, className: c, side: l = "bottom", align: u = "start", "aria-label": d }) {
|
|
28970
|
-
let
|
|
28971
|
-
function
|
|
28975
|
+
function xJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and time", disabled: a = !1, dateTimeFormat: o = "PP '@' HH:mm:ss", locale: s, className: c, side: l = "bottom", align: u = "start", "aria-label": d, "data-testid": f }) {
|
|
28976
|
+
let p = (/* @__PURE__ */ new Date()).getFullYear(), m = new Date(p - 10, 0), h = new Date(p + 10, 11), _ = We(), v = e ?? _, [y, b] = Xe(!1);
|
|
28977
|
+
function x(e) {
|
|
28972
28978
|
if (!e) {
|
|
28973
28979
|
r?.(void 0);
|
|
28974
28980
|
return;
|
|
28975
28981
|
}
|
|
28976
28982
|
r?.(bJ(e, n ? yJ(n) : "00:00:00"));
|
|
28977
28983
|
}
|
|
28978
|
-
function
|
|
28984
|
+
function S(e) {
|
|
28979
28985
|
r?.(bJ(n ?? /* @__PURE__ */ new Date(), e));
|
|
28980
28986
|
}
|
|
28981
28987
|
return /* @__PURE__ */ W(fB, {
|
|
28982
|
-
open:
|
|
28983
|
-
onOpenChange:
|
|
28988
|
+
open: y,
|
|
28989
|
+
onOpenChange: b,
|
|
28984
28990
|
children: [/* @__PURE__ */ U(pB, {
|
|
28985
28991
|
asChild: !0,
|
|
28986
28992
|
children: /* @__PURE__ */ W(ay, {
|
|
28987
28993
|
"data-slot": "date-time-picker",
|
|
28988
|
-
id:
|
|
28994
|
+
id: v,
|
|
28989
28995
|
variant: "outline",
|
|
28990
28996
|
disabled: a,
|
|
28991
28997
|
"aria-haspopup": "dialog",
|
|
28992
|
-
"aria-expanded":
|
|
28998
|
+
"aria-expanded": y,
|
|
28993
28999
|
"aria-label": d,
|
|
29000
|
+
"data-testid": f,
|
|
28994
29001
|
className: t("w-full min-w-[13rem] justify-between font-normal", !n && "text-muted-foreground", c),
|
|
28995
29002
|
children: [n ? hJ(n, o) : i, /* @__PURE__ */ U(he, { "aria-hidden": "true" })]
|
|
28996
29003
|
})
|
|
@@ -28998,30 +29005,33 @@ function xJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
28998
29005
|
className: "w-auto overflow-hidden p-0",
|
|
28999
29006
|
side: l,
|
|
29000
29007
|
align: u,
|
|
29008
|
+
"data-testid": J(f, "content"),
|
|
29001
29009
|
children: [
|
|
29002
|
-
/* @__PURE__ */ U(
|
|
29010
|
+
/* @__PURE__ */ U(TC, {
|
|
29003
29011
|
mode: "single",
|
|
29004
29012
|
selected: n,
|
|
29005
29013
|
captionLayout: "dropdown",
|
|
29006
29014
|
defaultMonth: n,
|
|
29007
|
-
startMonth:
|
|
29008
|
-
endMonth:
|
|
29015
|
+
startMonth: m,
|
|
29016
|
+
endMonth: h,
|
|
29009
29017
|
locale: s,
|
|
29010
|
-
onSelect:
|
|
29018
|
+
onSelect: x,
|
|
29019
|
+
"data-testid": J(f, "calendar")
|
|
29011
29020
|
}),
|
|
29012
29021
|
/* @__PURE__ */ U(g, {}),
|
|
29013
29022
|
/* @__PURE__ */ W("div", {
|
|
29014
29023
|
className: "flex items-center gap-2 p-3",
|
|
29015
29024
|
children: [/* @__PURE__ */ U(R, {
|
|
29016
|
-
htmlFor: `${
|
|
29025
|
+
htmlFor: `${v}-time`,
|
|
29017
29026
|
children: "Time"
|
|
29018
29027
|
}), /* @__PURE__ */ U(QA, {
|
|
29019
|
-
id: `${
|
|
29028
|
+
id: `${v}-time`,
|
|
29020
29029
|
type: "time",
|
|
29021
29030
|
step: "1",
|
|
29022
29031
|
value: yJ(n),
|
|
29023
29032
|
disabled: a,
|
|
29024
|
-
onChange: (e) =>
|
|
29033
|
+
onChange: (e) => S(e.target.value),
|
|
29034
|
+
"data-testid": J(f, "time"),
|
|
29025
29035
|
className: "ml-auto w-32 appearance-none bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
|
|
29026
29036
|
})]
|
|
29027
29037
|
})
|
|
@@ -29032,67 +29042,70 @@ function xJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29032
29042
|
//#endregion
|
|
29033
29043
|
//#region src/composed/DatePicker/DateTimeRangePicker.tsx
|
|
29034
29044
|
var SJ = "00:00:00", CJ = "23:59:59";
|
|
29035
|
-
function wJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and time range", disabled: a = !1, fromLabel: o = "From", toLabel: s = "To", dateTimeFormat: c = "PP '@' HH:mm", locale: l, className: u, side: d = "bottom", align: f = "start", numberOfMonths: p = 2, "aria-label": m }) {
|
|
29036
|
-
let
|
|
29037
|
-
function
|
|
29045
|
+
function wJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and time range", disabled: a = !1, fromLabel: o = "From", toLabel: s = "To", dateTimeFormat: c = "PP '@' HH:mm", locale: l, className: u, side: d = "bottom", align: f = "start", numberOfMonths: p = 2, "aria-label": m, "data-testid": h }) {
|
|
29046
|
+
let _ = (/* @__PURE__ */ new Date()).getFullYear(), v = new Date(_ - 10, 0), y = new Date(_ + 10, 11), b = We(), x = e ?? b, [S, C] = Xe(!1), w = yJ(n?.from, SJ), T = yJ(n?.to, CJ);
|
|
29047
|
+
function E(e) {
|
|
29038
29048
|
if (!e) {
|
|
29039
29049
|
r?.(void 0);
|
|
29040
29050
|
return;
|
|
29041
29051
|
}
|
|
29042
|
-
let t = e.from ? bJ(e.from,
|
|
29052
|
+
let t = e.from ? bJ(e.from, w) : void 0, n = e.to ? bJ(e.to, T) : void 0;
|
|
29043
29053
|
r?.({
|
|
29044
29054
|
from: t,
|
|
29045
29055
|
to: n
|
|
29046
29056
|
});
|
|
29047
29057
|
}
|
|
29048
|
-
function
|
|
29058
|
+
function D(e) {
|
|
29049
29059
|
let t = n?.from ?? /* @__PURE__ */ new Date();
|
|
29050
29060
|
r?.({
|
|
29051
29061
|
from: bJ(t, e),
|
|
29052
29062
|
to: n?.to
|
|
29053
29063
|
});
|
|
29054
29064
|
}
|
|
29055
|
-
function
|
|
29065
|
+
function O(e) {
|
|
29056
29066
|
let t = n?.to ?? n?.from ?? /* @__PURE__ */ new Date();
|
|
29057
29067
|
r?.({
|
|
29058
29068
|
from: n?.from,
|
|
29059
29069
|
to: bJ(t, e)
|
|
29060
29070
|
});
|
|
29061
29071
|
}
|
|
29062
|
-
function
|
|
29072
|
+
function k() {
|
|
29063
29073
|
return !n?.from && !n?.to ? i : n?.from && n?.to ? `${hJ(n.from, c)} → ${hJ(n.to, c)}` : n?.from ? `${hJ(n.from, c)} → …` : n?.to ? `… → ${hJ(n.to, c)}` : i;
|
|
29064
29074
|
}
|
|
29065
29075
|
return /* @__PURE__ */ W(fB, {
|
|
29066
|
-
open:
|
|
29067
|
-
onOpenChange:
|
|
29076
|
+
open: S,
|
|
29077
|
+
onOpenChange: C,
|
|
29068
29078
|
children: [/* @__PURE__ */ U(pB, {
|
|
29069
29079
|
asChild: !0,
|
|
29070
29080
|
children: /* @__PURE__ */ W(ay, {
|
|
29071
29081
|
"data-slot": "date-time-range-picker",
|
|
29072
|
-
id:
|
|
29082
|
+
id: x,
|
|
29073
29083
|
variant: "outline",
|
|
29074
29084
|
disabled: a,
|
|
29075
29085
|
"aria-haspopup": "dialog",
|
|
29076
|
-
"aria-expanded":
|
|
29086
|
+
"aria-expanded": S,
|
|
29077
29087
|
"aria-label": m,
|
|
29088
|
+
"data-testid": h,
|
|
29078
29089
|
className: t("w-full min-w-[22rem] justify-between font-normal", !(n?.from || n?.to) && "text-muted-foreground", u),
|
|
29079
|
-
children: [
|
|
29090
|
+
children: [k(), /* @__PURE__ */ U(he, { "aria-hidden": "true" })]
|
|
29080
29091
|
})
|
|
29081
29092
|
}), /* @__PURE__ */ W(mB, {
|
|
29082
29093
|
className: "w-auto overflow-hidden p-0",
|
|
29083
29094
|
side: d,
|
|
29084
29095
|
align: f,
|
|
29096
|
+
"data-testid": J(h, "content"),
|
|
29085
29097
|
children: [
|
|
29086
|
-
/* @__PURE__ */ U(
|
|
29098
|
+
/* @__PURE__ */ U(TC, {
|
|
29087
29099
|
mode: "range",
|
|
29088
29100
|
selected: n,
|
|
29089
29101
|
captionLayout: "dropdown",
|
|
29090
29102
|
defaultMonth: n?.from,
|
|
29091
|
-
startMonth:
|
|
29092
|
-
endMonth:
|
|
29103
|
+
startMonth: v,
|
|
29104
|
+
endMonth: y,
|
|
29093
29105
|
numberOfMonths: p,
|
|
29094
29106
|
locale: l,
|
|
29095
|
-
onSelect:
|
|
29107
|
+
onSelect: E,
|
|
29108
|
+
"data-testid": J(h, "calendar")
|
|
29096
29109
|
}),
|
|
29097
29110
|
/* @__PURE__ */ U(g, {}),
|
|
29098
29111
|
/* @__PURE__ */ W("div", {
|
|
@@ -29100,29 +29113,31 @@ function wJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29100
29113
|
children: [/* @__PURE__ */ W("div", {
|
|
29101
29114
|
className: "flex items-center gap-2",
|
|
29102
29115
|
children: [/* @__PURE__ */ U(R, {
|
|
29103
|
-
htmlFor: `${
|
|
29116
|
+
htmlFor: `${x}-from-time`,
|
|
29104
29117
|
children: o
|
|
29105
29118
|
}), /* @__PURE__ */ U(QA, {
|
|
29106
|
-
id: `${
|
|
29119
|
+
id: `${x}-from-time`,
|
|
29107
29120
|
type: "time",
|
|
29108
29121
|
step: "1",
|
|
29109
|
-
value:
|
|
29122
|
+
value: w,
|
|
29110
29123
|
disabled: a,
|
|
29111
|
-
onChange: (e) =>
|
|
29124
|
+
onChange: (e) => D(e.target.value),
|
|
29125
|
+
"data-testid": J(h, "from-time"),
|
|
29112
29126
|
className: "ml-auto w-32 appearance-none bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
|
|
29113
29127
|
})]
|
|
29114
29128
|
}), /* @__PURE__ */ W("div", {
|
|
29115
29129
|
className: "flex items-center gap-2",
|
|
29116
29130
|
children: [/* @__PURE__ */ U(R, {
|
|
29117
|
-
htmlFor: `${
|
|
29131
|
+
htmlFor: `${x}-to-time`,
|
|
29118
29132
|
children: s
|
|
29119
29133
|
}), /* @__PURE__ */ U(QA, {
|
|
29120
|
-
id: `${
|
|
29134
|
+
id: `${x}-to-time`,
|
|
29121
29135
|
type: "time",
|
|
29122
29136
|
step: "1",
|
|
29123
|
-
value:
|
|
29137
|
+
value: T,
|
|
29124
29138
|
disabled: a,
|
|
29125
|
-
onChange: (e) =>
|
|
29139
|
+
onChange: (e) => O(e.target.value),
|
|
29140
|
+
"data-testid": J(h, "to-time"),
|
|
29126
29141
|
className: "ml-auto w-32 appearance-none bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
|
|
29127
29142
|
})]
|
|
29128
29143
|
})]
|
|
@@ -29211,7 +29226,7 @@ function DJ({ title: e, options: t, selected: n, onChange: r, "data-testid": i }
|
|
|
29211
29226
|
n.length > 0 && /* @__PURE__ */ U(Xv, {
|
|
29212
29227
|
variant: "secondary",
|
|
29213
29228
|
className: "ml-1 rounded-full px-1.5 text-xs",
|
|
29214
|
-
"data-testid":
|
|
29229
|
+
"data-testid": J(i, "count"),
|
|
29215
29230
|
children: n.length
|
|
29216
29231
|
})
|
|
29217
29232
|
]
|
|
@@ -29219,26 +29234,26 @@ function DJ({ title: e, options: t, selected: n, onChange: r, "data-testid": i }
|
|
|
29219
29234
|
}), /* @__PURE__ */ U(mB, {
|
|
29220
29235
|
className: "w-48 p-0",
|
|
29221
29236
|
align: "start",
|
|
29222
|
-
"data-testid":
|
|
29237
|
+
"data-testid": J(i, "content"),
|
|
29223
29238
|
children: /* @__PURE__ */ W(FF, {
|
|
29224
29239
|
className: "border-none bg-transparent p-0 shadow-none",
|
|
29225
29240
|
children: [/* @__PURE__ */ U(LF, {
|
|
29226
29241
|
placeholder: `Filter ${e.toLowerCase()}...`,
|
|
29227
|
-
"data-testid":
|
|
29242
|
+
"data-testid": J(i, "search")
|
|
29228
29243
|
}), /* @__PURE__ */ W(RF, { children: [/* @__PURE__ */ U(zF, { children: "No results." }), /* @__PURE__ */ U(BF, { children: t.map((e) => {
|
|
29229
|
-
let t = a.has(e.value), n =
|
|
29244
|
+
let t = a.has(e.value), n = J(i, `option-${e.value}`);
|
|
29230
29245
|
return /* @__PURE__ */ W(HF, {
|
|
29231
29246
|
"data-testid": n,
|
|
29232
29247
|
onSelect: () => {
|
|
29233
29248
|
let n = new Set(a);
|
|
29234
29249
|
t ? n.delete(e.value) : n.add(e.value), r(Array.from(n));
|
|
29235
29250
|
},
|
|
29236
|
-
children: [/* @__PURE__ */ U(
|
|
29251
|
+
children: [/* @__PURE__ */ U(BC, {
|
|
29237
29252
|
checked: t,
|
|
29238
29253
|
className: "pointer-events-none",
|
|
29239
29254
|
tabIndex: -1,
|
|
29240
29255
|
"aria-label": e.label,
|
|
29241
|
-
"data-testid":
|
|
29256
|
+
"data-testid": J(n, "select")
|
|
29242
29257
|
}), e.label]
|
|
29243
29258
|
}, e.value);
|
|
29244
29259
|
}) })] })]
|
|
@@ -29304,13 +29319,13 @@ function jJ({ className: e, item: n, onRemove: r, ...i }) {
|
|
|
29304
29319
|
c ? /* @__PURE__ */ U(yB, {
|
|
29305
29320
|
value: n.progress,
|
|
29306
29321
|
"aria-label": `Upload progress: ${n.file.name}`,
|
|
29307
|
-
"data-testid":
|
|
29322
|
+
"data-testid": J(o, "progress"),
|
|
29308
29323
|
className: t("h-0.5", s === "success" && "**:data-[slot=progress-indicator]:bg-success")
|
|
29309
29324
|
}) : null,
|
|
29310
29325
|
n.error ? /* @__PURE__ */ U("p", {
|
|
29311
29326
|
id: a,
|
|
29312
29327
|
className: "text-xs text-destructive",
|
|
29313
|
-
"data-testid":
|
|
29328
|
+
"data-testid": J(o, "error"),
|
|
29314
29329
|
children: n.error
|
|
29315
29330
|
}) : null
|
|
29316
29331
|
]
|
|
@@ -29320,7 +29335,7 @@ function jJ({ className: e, item: n, onRemove: r, ...i }) {
|
|
|
29320
29335
|
size: "icon",
|
|
29321
29336
|
onClick: () => r(n.id),
|
|
29322
29337
|
"aria-label": `Remove ${n.file.name}`,
|
|
29323
|
-
"data-testid":
|
|
29338
|
+
"data-testid": J(o, "remove"),
|
|
29324
29339
|
className: "text-muted-foreground",
|
|
29325
29340
|
children: /* @__PURE__ */ U(ue, {})
|
|
29326
29341
|
}) }) : null
|
|
@@ -29350,7 +29365,7 @@ function MJ({ className: e, "data-testid": n, errors: r, invalid: i, items: a, o
|
|
|
29350
29365
|
children: [
|
|
29351
29366
|
/* @__PURE__ */ U(Fz, {
|
|
29352
29367
|
...l,
|
|
29353
|
-
"data-testid":
|
|
29368
|
+
"data-testid": J(n, "dropzone"),
|
|
29354
29369
|
invalid: i || m,
|
|
29355
29370
|
describedById: m ? d : void 0,
|
|
29356
29371
|
onFilesAccepted: h,
|
|
@@ -29359,7 +29374,7 @@ function MJ({ className: e, "data-testid": n, errors: r, invalid: i, items: a, o
|
|
|
29359
29374
|
m ? /* @__PURE__ */ U(_, {
|
|
29360
29375
|
id: d,
|
|
29361
29376
|
errors: r.map((e) => ({ message: e })),
|
|
29362
|
-
"data-testid":
|
|
29377
|
+
"data-testid": J(n, "error")
|
|
29363
29378
|
}) : null,
|
|
29364
29379
|
a.length > 0 ? /* @__PURE__ */ U("ul", {
|
|
29365
29380
|
className: "flex flex-col gap-2",
|
|
@@ -29367,7 +29382,7 @@ function MJ({ className: e, "data-testid": n, errors: r, invalid: i, items: a, o
|
|
|
29367
29382
|
item: e,
|
|
29368
29383
|
onRemove: v,
|
|
29369
29384
|
"data-file-upload-item-id": e.id,
|
|
29370
|
-
"data-testid":
|
|
29385
|
+
"data-testid": J(n, `item-${e.id}`)
|
|
29371
29386
|
}) }, e.id))
|
|
29372
29387
|
}) : null,
|
|
29373
29388
|
/* @__PURE__ */ U("div", {
|
|
@@ -30014,13 +30029,13 @@ function PY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
30014
30029
|
className: "min-w-0 flex-1",
|
|
30015
30030
|
children: E
|
|
30016
30031
|
}), D]
|
|
30017
|
-
}) : /* @__PURE__ */ W(
|
|
30032
|
+
}) : /* @__PURE__ */ W(VC, {
|
|
30018
30033
|
open: b,
|
|
30019
30034
|
onOpenChange: x,
|
|
30020
30035
|
className: "border-b border-border last:border-b-0",
|
|
30021
30036
|
children: [/* @__PURE__ */ W("div", {
|
|
30022
30037
|
className: "group/array-item-row flex items-center gap-1 transition-colors hover:bg-muted/40",
|
|
30023
|
-
children: [/* @__PURE__ */ U(
|
|
30038
|
+
children: [/* @__PURE__ */ U(HC, {
|
|
30024
30039
|
asChild: !0,
|
|
30025
30040
|
children: /* @__PURE__ */ W("button", {
|
|
30026
30041
|
type: "button",
|
|
@@ -30063,7 +30078,7 @@ function PY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
30063
30078
|
]
|
|
30064
30079
|
})
|
|
30065
30080
|
}), D]
|
|
30066
|
-
}), /* @__PURE__ */ U(
|
|
30081
|
+
}), /* @__PURE__ */ U(UC, {
|
|
30067
30082
|
forceMount: !0,
|
|
30068
30083
|
hidden: !b,
|
|
30069
30084
|
children: /* @__PURE__ */ U("div", {
|
|
@@ -36159,4 +36174,4 @@ function LQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
36159
36174
|
}
|
|
36160
36175
|
LQ.displayName = "TopNavUser";
|
|
36161
36176
|
//#endregion
|
|
36162
|
-
export { zv as Accordion, Hv as AccordionContent, Bv as AccordionItem, Vv as AccordionTrigger, o as Alert, a as AlertAction, f as AlertDescription, D as AlertTitle, IW as AppContextBar, KW as AppLayout, YW as AppSidebar, NW as AppSwitcher, Uv as Avatar, Kv as AvatarBadge, Gv as AvatarFallback, qv as AvatarGroup, Jv as AvatarGroupCount, Wv as AvatarImage, Xv as Badge, iq as BadgeCell, Zv as Breadcrumb, ry as BreadcrumbEllipsis, $v as BreadcrumbItem, ey as BreadcrumbLink, Qv as BreadcrumbList, ty as BreadcrumbPage, ny as BreadcrumbSeparator, ay as Button, sy as ButtonGroup, ly as ButtonGroupSeparator, cy as ButtonGroupText,
|
|
36177
|
+
export { zv as Accordion, Hv as AccordionContent, Bv as AccordionItem, Vv as AccordionTrigger, o as Alert, a as AlertAction, f as AlertDescription, D as AlertTitle, IW as AppContextBar, KW as AppLayout, YW as AppSidebar, NW as AppSwitcher, Uv as Avatar, Kv as AvatarBadge, Gv as AvatarFallback, qv as AvatarGroup, Jv as AvatarGroupCount, Wv as AvatarImage, Xv as Badge, iq as BadgeCell, Zv as Breadcrumb, ry as BreadcrumbEllipsis, $v as BreadcrumbItem, ey as BreadcrumbLink, Qv as BreadcrumbList, ty as BreadcrumbPage, ny as BreadcrumbSeparator, ay as Button, sy as ButtonGroup, ly as ButtonGroupSeparator, cy as ButtonGroupText, TC as Calendar, MC as CalendarDayButton, NC as Card, LC as CardAction, RC as CardContent, IC as CardDescription, zC as CardFooter, PC as CardHeader, FC as CardTitle, BC as Checkbox, VC as Collapsible, UC as CollapsibleContent, HC as CollapsibleTrigger, sj as Combobox, xj as ComboboxChip, bj as ComboboxChips, Sj as ComboboxChipsInput, _j as ComboboxCollection, fj as ComboboxContent, vj as ComboboxEmpty, hj as ComboboxGroup, dj as ComboboxInput, mj as ComboboxItem, gj as ComboboxLabel, pj as ComboboxList, yj as ComboboxSeparator, lj as ComboboxTrigger, cj as ComboboxValue, FF as Command, IF as CommandDialog, zF as CommandEmpty, BF as CommandGroup, LF as CommandInput, HF as CommandItem, RF as CommandList, VF as CommandSeparator, UF as CommandShortcut, rG as ContentHeader, WF as ContextMenu, eI as ContextMenuCheckboxItem, XF as ContextMenuContent, KF as ContextMenuGroup, ZF as ContextMenuItem, nI as ContextMenuLabel, qF as ContextMenuPortal, YF as ContextMenuRadioGroup, tI as ContextMenuRadioItem, rI as ContextMenuSeparator, iI as ContextMenuShortcut, JF as ContextMenuSub, $F as ContextMenuSubContent, QF as ContextMenuSubTrigger, GF as ContextMenuTrigger, ZW as ContextSidebar, QW as ContextToggleButton, oq as CopyableCell, iG as CopyableText, OQ as DEFAULT_SLOTS, JK as DataTable, YK as DataTableColumnHeader, cq as DataTableEmptyState, jK as DataTablePagination, HK as DataTableViewOptions, rq as DateCell, _J as DatePicker, vJ as DateRangePicker, xJ as DateTimePicker, wJ as DateTimeRangePicker, TF as Dialog, OF as DialogClose, AF as DialogContent, PF as DialogDescription, MF as DialogFooter, jF as DialogHeader, kF as DialogOverlay, DF as DialogPortal, NF as DialogTitle, EF as DialogTrigger, uL as Drawer, pL as DrawerClose, hL as DrawerContent, yL as DrawerDescription, _L as DrawerFooter, gL as DrawerHeader, mL as DrawerOverlay, fL as DrawerPortal, vL as DrawerTitle, dL as DrawerTrigger, bL as DropdownMenu, EL as DropdownMenuCheckboxItem, CL as DropdownMenuContent, wL as DropdownMenuGroup, TL as DropdownMenuItem, kL as DropdownMenuLabel, xL as DropdownMenuPortal, DL as DropdownMenuRadioGroup, OL as DropdownMenuRadioItem, AL as DropdownMenuSeparator, jL as DropdownMenuShortcut, ML as DropdownMenuSub, PL as DropdownMenuSubContent, NL as DropdownMenuSubTrigger, SL as DropdownMenuTrigger, EJ as ElCheatSheetTrigger, FL as Empty, VL as EmptyContent, BL as EmptyDescription, IL as EmptyHeader, RL as EmptyMedia, zL as EmptyTitle, DJ as FacetedFilter, k as Field, w as FieldContent, C as FieldDescription, _ as FieldError, L as FieldGroup, R as FieldLabel, y as FieldLegend, te as FieldSeparator, h as FieldSet, i as FieldTitle, MJ as FileUpload, Fz as FileUploadInput, jJ as FileUploadItem, Iz as HoverCard, Rz as HoverCardContent, Vz as HoverCardDescription, zz as HoverCardHeader, Bz as HoverCardTitle, Lz as HoverCardTrigger, QA as Input, $A as InputGroup, tj as InputGroupAddon, rj as InputGroupButton, aj as InputGroupInput, ij as InputGroupText, oj as InputGroupTextarea, Gz as Item, Zz as ItemActions, Jz as ItemContent, Xz as ItemDescription, $z as ItemFooter, Hz as ItemGroup, Qz as ItemHeader, qz as ItemMedia, Uz as ItemSeparator, Yz as ItemTitle, SX as JsonSchemaForm, eB as Kbd, tB as KbdGroup, ee as Label, AQ as LayoutSlotsProvider, iB as Logo, aq as MonoCell, NQ as PageFocused, PQ as PageHeader, aB as Pagination, oB as PaginationContent, dB as PaginationEllipsis, sB as PaginationItem, cB as PaginationLink, uB as PaginationNext, lB as PaginationPrevious, uX as PasswordInput, fB as Popover, hB as PopoverAnchor, mB as PopoverContent, vB as PopoverDescription, gB as PopoverHeader, _B as PopoverTitle, pB as PopoverTrigger, yt as PortalContainerProvider, yB as Progress, xB as Prose, SB as RadioGroup, CB as RadioGroupItem, xH as ResizableHandle, bH as ResizablePanel, yH as ResizablePanelGroup, SH as ScrollArea, CH as ScrollBar, FQ as SearchField, wH as Select, OH as SelectContent, TH as SelectGroup, AH as SelectItem, kH as SelectLabel, NH as SelectScrollDownButton, MH as SelectScrollUpButton, jH as SelectSeparator, DH as SelectTrigger, EH as SelectValue, PW as SelectorDropdown, FW as SelectorTriggerButton, g as Separator, PH as Sheet, IH as SheetClose, zH as SheetContent, UH as SheetDescription, VH as SheetFooter, BH as SheetHeader, HH as SheetTitle, FH as SheetTrigger, cU as Sidebar, gU as SidebarContent, mU as SidebarFooter, _U as SidebarGroup, yU as SidebarGroupAction, bU as SidebarGroupContent, vU as SidebarGroupLabel, pU as SidebarHeader, fU as SidebarInput, dU as SidebarInset, xU as SidebarMenu, TU as SidebarMenuAction, EU as SidebarMenuBadge, wU as SidebarMenuButton, SU as SidebarMenuItem, DU as SidebarMenuSkeleton, OU as SidebarMenuSub, AU as SidebarMenuSubButton, kU as SidebarMenuSubItem, WW as SidebarModeControl, HW as SidebarModeProvider, XW as SidebarNavigation, sU as SidebarProvider, uU as SidebarRail, hU as SidebarSeparator, lU as SidebarTrigger, eG as SidebarUpgradeFooter, n as Skeleton, uW as Spinner, dW as Switch, fW as Table, mW as TableBody, yW as TableCaption, vW as TableCell, hW as TableFooter, _W as TableHead, pW as TableHeader, gW as TableRow, bW as Tabs, wW as TabsContent, SW as TabsList, CW as TabsTrigger, e as Textarea, Ne as ThemeProvider, lW as Toaster, EW as Toggle, OW as ToggleGroup, kW as ToggleGroupItem, GH as Tooltip, qH as TooltipContent, WH as TooltipProvider, KH as TooltipTrigger, LQ as TopNavUser, sq as TruncatedCell, r as alertVariants, Yv as badgeVariants, aG as buildLinearBreadcrumbs, oy as buttonGroupVariants, iy as buttonVariants, t as cn, CX as composeResolvers, yY as extractDefaults, pQ as jsonSchemaResolver, rB as logoVariants, CQ as pruneHiddenValues, xW as tabsListVariants, qU as toast, TW as toggleVariants, Cj as useComboboxAnchor, xt as useDebouncedValue, MQ as useLayoutConfig, jQ as useLayoutSlots, bt as usePortalContainer, oU as useSidebar, zW as useSidebarMode, Me as useTheme };
|