@vincisys/eyeson 0.12.0 → 0.13.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/dist/components/DateTimePicker/DateTimeField.d.ts +20 -0
- package/dist/components/DateTimePicker/DateTimeField.d.ts.map +1 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/index.js +1215 -939
- package/dist/styles/eyes-standalone.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,30 +5,30 @@ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
|
5
5
|
import * as y from "react";
|
|
6
6
|
import { createContext as b, forwardRef as x, useContext as S, useEffect as C, useId as ee, useMemo as w, useRef as T, useState as E } from "react";
|
|
7
7
|
import { Tooltip as D } from "@base-ui/react/tooltip";
|
|
8
|
-
import { mergeProps as
|
|
9
|
-
import { useRender as
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
import { Field as
|
|
12
|
-
import { Combobox as
|
|
13
|
-
import { Popover as
|
|
14
|
-
import { Dialog as
|
|
15
|
-
import { AlertDialog as
|
|
16
|
-
import { Input as
|
|
17
|
-
import { Select as
|
|
18
|
-
import { Tabs as
|
|
8
|
+
import { mergeProps as O } from "@base-ui/react/merge-props";
|
|
9
|
+
import { useRender as te } from "@base-ui/react/use-render";
|
|
10
|
+
import { Checkbox as k } from "@base-ui/react/checkbox";
|
|
11
|
+
import { Field as ne } from "@base-ui/react/field";
|
|
12
|
+
import { Combobox as A } from "@base-ui/react/combobox";
|
|
13
|
+
import { Popover as j } from "@base-ui/react/popover";
|
|
14
|
+
import { Dialog as M } from "@base-ui/react/dialog";
|
|
15
|
+
import { AlertDialog as N } from "@base-ui/react/alert-dialog";
|
|
16
|
+
import { Input as P } from "@base-ui/react/input";
|
|
17
|
+
import { Select as F } from "@base-ui/react/select";
|
|
18
|
+
import { Tabs as I } from "@base-ui/react/tabs";
|
|
19
19
|
//#region src/lib/utils.ts
|
|
20
|
-
function
|
|
20
|
+
function L(...t) {
|
|
21
21
|
return e(t);
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/utils/resolve-variant.ts
|
|
25
|
-
function
|
|
25
|
+
function R(e, t, n) {
|
|
26
26
|
let r = e[t];
|
|
27
27
|
return r === void 0 ? e[n] : r;
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/components/Button/Button.tsx
|
|
31
|
-
var
|
|
31
|
+
var re = /* @__PURE__ */ new Set([
|
|
32
32
|
"blue-background",
|
|
33
33
|
"green-background",
|
|
34
34
|
"green-main",
|
|
@@ -40,7 +40,7 @@ var ie = /* @__PURE__ */ new Set([
|
|
|
40
40
|
"red-background",
|
|
41
41
|
"red-dark",
|
|
42
42
|
"red-middle"
|
|
43
|
-
]),
|
|
43
|
+
]), z = {
|
|
44
44
|
size: {
|
|
45
45
|
sm: { classes: "h-[calc(1.75rem*1.188*1.1)] gap-1 rounded-[min(var(--radius-eds-xs),12px)] px-[calc(0.625rem*1.188*1.15)] text-[0.8rem] has-data-[icon=inline-end]:pr-[calc(0.375rem*1.188*1.15)] has-data-[icon=inline-start]:pl-[calc(0.375rem*1.188*1.15)] [&_svg:not([class*='size-'])]:size-3.5 [&_.eds-btn-icon-wrap]:size-3.5" },
|
|
46
46
|
md: { classes: "h-[calc(2rem*1.188*1.1)] gap-1.5 px-[calc(0.625rem*1.188*1.15)] has-data-[icon=inline-end]:pr-[calc(0.5rem*1.188*1.15)] has-data-[icon=inline-start]:pl-[calc(0.5rem*1.188*1.15)] [&_.eds-btn-icon-wrap]:size-4" },
|
|
@@ -52,22 +52,22 @@ var ie = /* @__PURE__ */ new Set([
|
|
|
52
52
|
ghost: { classes: "border-transparent bg-transparent text-[var(--eds-btn-accent)] hover:bg-[color-mix(in_srgb,var(--eds-btn-accent)_10%,transparent)] hover:text-[color-mix(in_srgb,var(--eds-btn-accent)_88%,black)] data-disabled:not-data-loading:text-eds-neutral-disabled data-loading:data-disabled:text-[var(--eds-btn-accent)]" },
|
|
53
53
|
link: { classes: "h-auto border-transparent bg-transparent px-0 text-[var(--eds-btn-accent)] underline-offset-4 hover:underline data-disabled:not-data-loading:text-eds-neutral-disabled data-loading:data-disabled:text-[var(--eds-btn-accent)]" }
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, B = {
|
|
56
56
|
size: "md",
|
|
57
57
|
variant: "solid"
|
|
58
|
-
},
|
|
58
|
+
}, ie = {
|
|
59
59
|
sm: 14,
|
|
60
60
|
md: 16,
|
|
61
61
|
lg: 16
|
|
62
62
|
};
|
|
63
|
-
function V({ variant: e =
|
|
64
|
-
let r =
|
|
65
|
-
return
|
|
63
|
+
function V({ variant: e = B.variant, size: t = B.size, fluid: n = !1 }) {
|
|
64
|
+
let r = R(z.size, t, B.size), i = R(z.variant, e, B.variant);
|
|
65
|
+
return L("eds-btn group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:not-data-loading:opacity-50 data-loading:data-disabled:cursor-wait data-loading:data-disabled:opacity-100", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r.classes, i.classes, n && "w-full");
|
|
66
66
|
}
|
|
67
67
|
function ae({ text: e = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: c = !1, isLoading: l = !1, disabled: u, style: d, ...p }) {
|
|
68
|
-
let m =
|
|
68
|
+
let m = ie[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
|
|
69
69
|
"--eds-btn-accent": `var(--color-eds-${o})`,
|
|
70
|
-
...
|
|
70
|
+
...re.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
|
|
71
71
|
...d
|
|
72
72
|
}, S = y ? /* @__PURE__ */ _("span", {
|
|
73
73
|
className: "eds-btn-icon-wrap flex shrink-0 items-center justify-center",
|
|
@@ -82,7 +82,7 @@ function ae({ text: e = "Button", className: n, icon: r, iconPosition: i = "star
|
|
|
82
82
|
})
|
|
83
83
|
}) : null;
|
|
84
84
|
return /* @__PURE__ */ _(t, {
|
|
85
|
-
className:
|
|
85
|
+
className: L(V({
|
|
86
86
|
variant: a,
|
|
87
87
|
size: s,
|
|
88
88
|
fluid: c
|
|
@@ -108,19 +108,19 @@ var oe = {
|
|
|
108
108
|
soft: { classes: "border-transparent bg-[color-mix(in_srgb,var(--eds-badge-accent)_16%,white)] text-[var(--eds-badge-accent)]" },
|
|
109
109
|
outline: { classes: "border-[var(--eds-badge-accent)] bg-transparent text-[var(--eds-badge-accent)]" }
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, se = {
|
|
112
112
|
size: "md",
|
|
113
113
|
variant: "soft"
|
|
114
114
|
};
|
|
115
|
-
function
|
|
116
|
-
let l =
|
|
115
|
+
function H({ className: e, variant: t = se.variant, color: n = "blue-main", size: r = se.size, icon: i, dot: a = !1, style: o, children: s, ...c }) {
|
|
116
|
+
let l = R(oe.size, r, se.size), u = R(oe.variant, t, se.variant), d = {
|
|
117
117
|
"--eds-badge-accent": `var(--color-eds-${n})`,
|
|
118
|
-
...t === "solid" &&
|
|
118
|
+
...t === "solid" && re.has(n) ? { "--eds-badge-solid-fg": "#fff" } : {},
|
|
119
119
|
...o
|
|
120
120
|
};
|
|
121
121
|
return /* @__PURE__ */ v("span", {
|
|
122
122
|
"data-eds-component": "Badge",
|
|
123
|
-
className:
|
|
123
|
+
className: L("inline-flex w-fit shrink-0 items-center justify-center rounded-full border font-medium whitespace-nowrap", "[&_svg]:pointer-events-none [&_svg]:shrink-0", l.classes, u.classes, e),
|
|
124
124
|
style: d,
|
|
125
125
|
...c,
|
|
126
126
|
children: [
|
|
@@ -135,7 +135,7 @@ function se({ className: e, variant: t = H.variant, color: n = "blue-main", size
|
|
|
135
135
|
}
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region src/constants/colors.ts
|
|
138
|
-
var
|
|
138
|
+
var ce = [
|
|
139
139
|
"blue-background",
|
|
140
140
|
"blue-dark",
|
|
141
141
|
"blue-main",
|
|
@@ -156,50 +156,50 @@ var U = [
|
|
|
156
156
|
"red-dark",
|
|
157
157
|
"red-main",
|
|
158
158
|
"red-middle"
|
|
159
|
-
],
|
|
160
|
-
|
|
161
|
-
var
|
|
159
|
+
], le = 365.2425, ue = 6048e5, de = 864e5, fe = 3600 * 24;
|
|
160
|
+
fe * 7, fe * le / 12 * 3;
|
|
161
|
+
var pe = Symbol.for("constructDateFrom");
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
|
|
164
|
-
function
|
|
165
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
164
|
+
function U(e, t) {
|
|
165
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && pe in e ? e[pe](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
166
166
|
}
|
|
167
167
|
//#endregion
|
|
168
168
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
|
|
169
|
-
function
|
|
170
|
-
return
|
|
169
|
+
function W(e, t) {
|
|
170
|
+
return U(t || e, e);
|
|
171
171
|
}
|
|
172
172
|
//#endregion
|
|
173
173
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
|
|
174
|
-
function
|
|
175
|
-
let r =
|
|
176
|
-
return isNaN(t) ?
|
|
174
|
+
function me(e, t, n) {
|
|
175
|
+
let r = W(e, n?.in);
|
|
176
|
+
return isNaN(t) ? U(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
|
|
180
|
-
function
|
|
181
|
-
let r =
|
|
182
|
-
if (isNaN(t)) return
|
|
180
|
+
function he(e, t, n) {
|
|
181
|
+
let r = W(e, n?.in);
|
|
182
|
+
if (isNaN(t)) return U(n?.in || e, NaN);
|
|
183
183
|
if (!t) return r;
|
|
184
|
-
let i = r.getDate(), a =
|
|
184
|
+
let i = r.getDate(), a = U(n?.in || e, r.getTime());
|
|
185
185
|
return a.setMonth(r.getMonth() + t + 1, 0), i >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), i), r);
|
|
186
186
|
}
|
|
187
187
|
//#endregion
|
|
188
188
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
|
|
189
|
-
var
|
|
190
|
-
function
|
|
191
|
-
return
|
|
189
|
+
var G = {};
|
|
190
|
+
function K() {
|
|
191
|
+
return G;
|
|
192
192
|
}
|
|
193
193
|
//#endregion
|
|
194
194
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
|
|
195
|
-
function
|
|
196
|
-
let n =
|
|
195
|
+
function q(e, t) {
|
|
196
|
+
let n = K(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
197
197
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
198
198
|
}
|
|
199
199
|
//#endregion
|
|
200
200
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
|
|
201
201
|
function ge(e, t) {
|
|
202
|
-
return
|
|
202
|
+
return q(e, {
|
|
203
203
|
...t,
|
|
204
204
|
weekStartsOn: 1
|
|
205
205
|
});
|
|
@@ -207,9 +207,9 @@ function ge(e, t) {
|
|
|
207
207
|
//#endregion
|
|
208
208
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
|
|
209
209
|
function _e(e, t) {
|
|
210
|
-
let n =
|
|
210
|
+
let n = W(e, t?.in), r = n.getFullYear(), i = U(n, 0);
|
|
211
211
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
212
|
-
let a = ge(i), o =
|
|
212
|
+
let a = ge(i), o = U(n, 0);
|
|
213
213
|
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
214
214
|
let s = ge(o);
|
|
215
215
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
@@ -217,37 +217,37 @@ function _e(e, t) {
|
|
|
217
217
|
//#endregion
|
|
218
218
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
219
219
|
function ve(e) {
|
|
220
|
-
let t =
|
|
220
|
+
let t = W(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
221
221
|
return n.setUTCFullYear(t.getFullYear()), e - +n;
|
|
222
222
|
}
|
|
223
223
|
//#endregion
|
|
224
224
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
|
|
225
225
|
function ye(e, ...t) {
|
|
226
|
-
let n =
|
|
226
|
+
let n = U.bind(null, e || t.find((e) => typeof e == "object"));
|
|
227
227
|
return t.map(n);
|
|
228
228
|
}
|
|
229
229
|
//#endregion
|
|
230
230
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
|
|
231
231
|
function be(e, t) {
|
|
232
|
-
let n =
|
|
232
|
+
let n = W(e, t?.in);
|
|
233
233
|
return n.setHours(0, 0, 0, 0), n;
|
|
234
234
|
}
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
|
|
237
237
|
function xe(e, t, n) {
|
|
238
238
|
let [r, i] = ye(n?.in, e, t), a = be(r), o = be(i), s = +a - ve(a), c = +o - ve(o);
|
|
239
|
-
return Math.round((s - c) /
|
|
239
|
+
return Math.round((s - c) / de);
|
|
240
240
|
}
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
|
|
243
243
|
function Se(e, t) {
|
|
244
|
-
let n = _e(e, t), r =
|
|
244
|
+
let n = _e(e, t), r = U(t?.in || e, 0);
|
|
245
245
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), ge(r);
|
|
246
246
|
}
|
|
247
247
|
//#endregion
|
|
248
248
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
|
|
249
249
|
function Ce(e) {
|
|
250
|
-
return
|
|
250
|
+
return U(e, Date.now());
|
|
251
251
|
}
|
|
252
252
|
//#endregion
|
|
253
253
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
|
|
@@ -263,30 +263,30 @@ function Te(e) {
|
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
|
|
265
265
|
function Ee(e) {
|
|
266
|
-
return !(!Te(e) && typeof e != "number" || isNaN(+
|
|
266
|
+
return !(!Te(e) && typeof e != "number" || isNaN(+W(e)));
|
|
267
267
|
}
|
|
268
268
|
//#endregion
|
|
269
269
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
|
|
270
270
|
function De(e, t) {
|
|
271
|
-
let n =
|
|
271
|
+
let n = W(e, t?.in), r = n.getMonth();
|
|
272
272
|
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
273
273
|
}
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
|
|
276
276
|
function Oe(e, t) {
|
|
277
|
-
let n =
|
|
277
|
+
let n = W(e, t?.in);
|
|
278
278
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
279
279
|
}
|
|
280
280
|
//#endregion
|
|
281
281
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
|
|
282
282
|
function ke(e, t) {
|
|
283
|
-
let n =
|
|
283
|
+
let n = W(e, t?.in);
|
|
284
284
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
285
285
|
}
|
|
286
286
|
//#endregion
|
|
287
287
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
|
|
288
288
|
function Ae(e, t) {
|
|
289
|
-
let n =
|
|
289
|
+
let n = K(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
|
|
290
290
|
return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
|
|
291
291
|
}
|
|
292
292
|
//#endregion
|
|
@@ -790,36 +790,36 @@ var Ue = {
|
|
|
790
790
|
//#endregion
|
|
791
791
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
|
|
792
792
|
function We(e, t) {
|
|
793
|
-
let n =
|
|
793
|
+
let n = W(e, t?.in);
|
|
794
794
|
return xe(n, ke(n)) + 1;
|
|
795
795
|
}
|
|
796
796
|
//#endregion
|
|
797
797
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
|
|
798
798
|
function Ge(e, t) {
|
|
799
|
-
let n =
|
|
800
|
-
return Math.round(r /
|
|
799
|
+
let n = W(e, t?.in), r = ge(n) - +Se(n);
|
|
800
|
+
return Math.round(r / ue) + 1;
|
|
801
801
|
}
|
|
802
802
|
//#endregion
|
|
803
803
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
|
|
804
804
|
function Ke(e, t) {
|
|
805
|
-
let n =
|
|
805
|
+
let n = W(e, t?.in), r = n.getFullYear(), i = K(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = U(t?.in || e, 0);
|
|
806
806
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
807
|
-
let s =
|
|
807
|
+
let s = q(o, t), c = U(t?.in || e, 0);
|
|
808
808
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
809
|
-
let l =
|
|
809
|
+
let l = q(c, t);
|
|
810
810
|
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
811
811
|
}
|
|
812
812
|
//#endregion
|
|
813
813
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
|
|
814
814
|
function qe(e, t) {
|
|
815
|
-
let n =
|
|
816
|
-
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0),
|
|
815
|
+
let n = K(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Ke(e, t), a = U(t?.in || e, 0);
|
|
816
|
+
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), q(a, t);
|
|
817
817
|
}
|
|
818
818
|
//#endregion
|
|
819
819
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
|
|
820
820
|
function Je(e, t) {
|
|
821
|
-
let n =
|
|
822
|
-
return Math.round(r /
|
|
821
|
+
let n = W(e, t?.in), r = q(n, t) - +qe(n, t);
|
|
822
|
+
return Math.round(r / ue) + 1;
|
|
823
823
|
}
|
|
824
824
|
//#endregion
|
|
825
825
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
|
|
@@ -1299,8 +1299,8 @@ function ut(e, t, n) {
|
|
|
1299
1299
|
//#endregion
|
|
1300
1300
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
|
|
1301
1301
|
var dt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ft = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, pt = /^'([^]*?)'?$/, mt = /''/g, ht = /[a-zA-Z]/;
|
|
1302
|
-
function
|
|
1303
|
-
let r =
|
|
1302
|
+
function gt(e, t, n) {
|
|
1303
|
+
let r = K(), i = n?.locale ?? r.locale ?? Ue, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = W(e, n?.in);
|
|
1304
1304
|
if (!Ee(s)) throw RangeError("Invalid time value");
|
|
1305
1305
|
let c = t.match(ft).map((e) => {
|
|
1306
1306
|
let t = e[0];
|
|
@@ -1317,7 +1317,7 @@ function Y(e, t, n) {
|
|
|
1317
1317
|
let t = e[0];
|
|
1318
1318
|
if (t === "'") return {
|
|
1319
1319
|
isToken: !1,
|
|
1320
|
-
value:
|
|
1320
|
+
value: _t(e)
|
|
1321
1321
|
};
|
|
1322
1322
|
if (Ze[t]) return {
|
|
1323
1323
|
isToken: !0,
|
|
@@ -1343,67 +1343,108 @@ function Y(e, t, n) {
|
|
|
1343
1343
|
return o(s, a, i.localize, l);
|
|
1344
1344
|
}).join("");
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function _t(e) {
|
|
1347
1347
|
let t = e.match(pt);
|
|
1348
1348
|
return t ? t[1].replace(mt, "'") : e;
|
|
1349
1349
|
}
|
|
1350
1350
|
//#endregion
|
|
1351
|
+
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDate.js
|
|
1352
|
+
function vt(e, t) {
|
|
1353
|
+
return W(e, t?.in).getDate();
|
|
1354
|
+
}
|
|
1355
|
+
//#endregion
|
|
1356
|
+
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDaysInMonth.js
|
|
1357
|
+
function yt(e, t) {
|
|
1358
|
+
let n = W(e, t?.in), r = n.getFullYear(), i = n.getMonth(), a = U(n, 0);
|
|
1359
|
+
return a.setFullYear(r, i + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
|
|
1360
|
+
}
|
|
1361
|
+
//#endregion
|
|
1351
1362
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getHours.js
|
|
1352
|
-
function
|
|
1353
|
-
return
|
|
1363
|
+
function bt(e, t) {
|
|
1364
|
+
return W(e, t?.in).getHours();
|
|
1354
1365
|
}
|
|
1355
1366
|
//#endregion
|
|
1356
1367
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMinutes.js
|
|
1357
|
-
function
|
|
1358
|
-
return
|
|
1368
|
+
function xt(e, t) {
|
|
1369
|
+
return W(e, t?.in).getMinutes();
|
|
1370
|
+
}
|
|
1371
|
+
//#endregion
|
|
1372
|
+
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMonth.js
|
|
1373
|
+
function St(e, t) {
|
|
1374
|
+
return W(e, t?.in).getMonth();
|
|
1375
|
+
}
|
|
1376
|
+
//#endregion
|
|
1377
|
+
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getYear.js
|
|
1378
|
+
function Ct(e, t) {
|
|
1379
|
+
return W(e, t?.in).getFullYear();
|
|
1359
1380
|
}
|
|
1360
1381
|
//#endregion
|
|
1361
1382
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
|
|
1362
|
-
function
|
|
1363
|
-
return +
|
|
1383
|
+
function wt(e, t) {
|
|
1384
|
+
return +W(e) > +W(t);
|
|
1364
1385
|
}
|
|
1365
1386
|
//#endregion
|
|
1366
1387
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
|
|
1367
|
-
function
|
|
1368
|
-
return +
|
|
1388
|
+
function Tt(e, t) {
|
|
1389
|
+
return +W(e) < +W(t);
|
|
1369
1390
|
}
|
|
1370
1391
|
//#endregion
|
|
1371
1392
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
|
|
1372
|
-
function
|
|
1393
|
+
function Et(e, t, n) {
|
|
1373
1394
|
let [r, i] = ye(n?.in, e, t);
|
|
1374
1395
|
return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
|
|
1375
1396
|
}
|
|
1376
1397
|
//#endregion
|
|
1377
1398
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
|
|
1378
|
-
function
|
|
1379
|
-
return we(
|
|
1399
|
+
function Dt(e, t) {
|
|
1400
|
+
return we(U(t?.in || e, e), Ce(t?.in || e));
|
|
1401
|
+
}
|
|
1402
|
+
//#endregion
|
|
1403
|
+
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMonth.js
|
|
1404
|
+
function Ot(e, t, n) {
|
|
1405
|
+
let r = W(e, n?.in), i = r.getFullYear(), a = r.getDate(), o = U(n?.in || e, 0);
|
|
1406
|
+
o.setFullYear(i, t, 15), o.setHours(0, 0, 0, 0);
|
|
1407
|
+
let s = yt(o);
|
|
1408
|
+
return r.setMonth(t, Math.min(a, s)), r;
|
|
1409
|
+
}
|
|
1410
|
+
//#endregion
|
|
1411
|
+
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setDate.js
|
|
1412
|
+
function kt(e, t, n) {
|
|
1413
|
+
let r = W(e, n?.in);
|
|
1414
|
+
return r.setDate(t), r;
|
|
1380
1415
|
}
|
|
1381
1416
|
//#endregion
|
|
1382
1417
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setHours.js
|
|
1383
|
-
function
|
|
1384
|
-
let r =
|
|
1418
|
+
function At(e, t, n) {
|
|
1419
|
+
let r = W(e, n?.in);
|
|
1385
1420
|
return r.setHours(t), r;
|
|
1386
1421
|
}
|
|
1387
1422
|
//#endregion
|
|
1388
1423
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMinutes.js
|
|
1389
|
-
function
|
|
1390
|
-
let r =
|
|
1424
|
+
function jt(e, t, n) {
|
|
1425
|
+
let r = W(e, n?.in);
|
|
1391
1426
|
return r.setMinutes(t), r;
|
|
1392
1427
|
}
|
|
1393
1428
|
//#endregion
|
|
1394
1429
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setSeconds.js
|
|
1395
|
-
function
|
|
1396
|
-
let r =
|
|
1430
|
+
function Mt(e, t, n) {
|
|
1431
|
+
let r = W(e, n?.in);
|
|
1397
1432
|
return r.setSeconds(t), r;
|
|
1398
1433
|
}
|
|
1399
1434
|
//#endregion
|
|
1435
|
+
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setYear.js
|
|
1436
|
+
function Nt(e, t, n) {
|
|
1437
|
+
let r = W(e, n?.in);
|
|
1438
|
+
return isNaN(+r) ? U(n?.in || e, NaN) : (r.setFullYear(t), r);
|
|
1439
|
+
}
|
|
1440
|
+
//#endregion
|
|
1400
1441
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
|
|
1401
|
-
function
|
|
1402
|
-
return
|
|
1442
|
+
function Pt(e, t, n) {
|
|
1443
|
+
return he(e, -t, n);
|
|
1403
1444
|
}
|
|
1404
1445
|
//#endregion
|
|
1405
1446
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
|
|
1406
|
-
var
|
|
1447
|
+
var Ft = {
|
|
1407
1448
|
lessThanXSeconds: {
|
|
1408
1449
|
one: "menos de um segundo",
|
|
1409
1450
|
other: "menos de {{count}} segundos"
|
|
@@ -1465,10 +1506,10 @@ var Dt = {
|
|
|
1465
1506
|
one: "quase 1 ano",
|
|
1466
1507
|
other: "quase {{count}} anos"
|
|
1467
1508
|
}
|
|
1468
|
-
},
|
|
1469
|
-
let r, i =
|
|
1509
|
+
}, It = (e, t, n) => {
|
|
1510
|
+
let r, i = Ft[e];
|
|
1470
1511
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", String(t)), n?.addSuffix ? n.comparison && n.comparison > 0 ? "em " + r : "há " + r : r;
|
|
1471
|
-
},
|
|
1512
|
+
}, Lt = {
|
|
1472
1513
|
date: Ne({
|
|
1473
1514
|
formats: {
|
|
1474
1515
|
full: "EEEE, d 'de' MMMM 'de' y",
|
|
@@ -1496,7 +1537,7 @@ var Dt = {
|
|
|
1496
1537
|
},
|
|
1497
1538
|
defaultWidth: "full"
|
|
1498
1539
|
})
|
|
1499
|
-
},
|
|
1540
|
+
}, Rt = {
|
|
1500
1541
|
lastWeek: (e) => {
|
|
1501
1542
|
let t = e.getDay();
|
|
1502
1543
|
return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
|
|
@@ -1506,12 +1547,12 @@ var Dt = {
|
|
|
1506
1547
|
tomorrow: "'amanhã às' p",
|
|
1507
1548
|
nextWeek: "eeee 'às' p",
|
|
1508
1549
|
other: "P"
|
|
1509
|
-
},
|
|
1550
|
+
}, zt = {
|
|
1510
1551
|
code: "pt-BR",
|
|
1511
|
-
formatDistance:
|
|
1512
|
-
formatLong:
|
|
1552
|
+
formatDistance: It,
|
|
1553
|
+
formatLong: Lt,
|
|
1513
1554
|
formatRelative: (e, t, n, r) => {
|
|
1514
|
-
let i =
|
|
1555
|
+
let i = Rt[e];
|
|
1515
1556
|
return typeof i == "function" ? i(t) : i;
|
|
1516
1557
|
},
|
|
1517
1558
|
localize: {
|
|
@@ -1844,7 +1885,7 @@ var Dt = {
|
|
|
1844
1885
|
weekStartsOn: 0,
|
|
1845
1886
|
firstWeekContainsDate: 1
|
|
1846
1887
|
}
|
|
1847
|
-
},
|
|
1888
|
+
}, Bt = {
|
|
1848
1889
|
sm: {
|
|
1849
1890
|
classes: "size-[calc(1.75rem*1.188*1.1)] rounded-[min(var(--radius-eds-xs),12px)] [&_svg:not([class*='size-'])]:size-3.5",
|
|
1850
1891
|
iconPx: 14
|
|
@@ -1858,11 +1899,11 @@ var Dt = {
|
|
|
1858
1899
|
iconPx: 16
|
|
1859
1900
|
}
|
|
1860
1901
|
};
|
|
1861
|
-
function
|
|
1862
|
-
let f = ee(), p =
|
|
1902
|
+
function Vt({ icon: e, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", hoverColor: o, size: s = "md", disabled: c, style: l, tooltip: u, ...d }) {
|
|
1903
|
+
let f = ee(), p = R(Bt, s, B.size), m = R(z.variant, i, B.variant), h = /* @__PURE__ */ _(t, {
|
|
1863
1904
|
style: {
|
|
1864
1905
|
"--eds-btn-base-accent": `var(--color-eds-${a})`,
|
|
1865
|
-
...
|
|
1906
|
+
...re.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
|
|
1866
1907
|
...o ? { "--eds-btn-hover-accent": `var(--color-eds-${o})` } : {},
|
|
1867
1908
|
...l
|
|
1868
1909
|
},
|
|
@@ -1873,7 +1914,7 @@ function Nt({ icon: e, label: n, className: r, variant: i = "ghost", color: a =
|
|
|
1873
1914
|
"aria-describedby": u ? f : void 0,
|
|
1874
1915
|
title: u ? void 0 : n,
|
|
1875
1916
|
"data-eds-component": "IconButton",
|
|
1876
|
-
className:
|
|
1917
|
+
className: L("group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "[--eds-btn-accent:var(--eds-btn-base-accent)]", o && "hover:[--eds-btn-accent:var(--eds-btn-hover-accent)] focus-visible:[--eds-btn-accent:var(--eds-btn-hover-accent)]", o && i === "outline" && "hover:border-[color-mix(in_srgb,var(--eds-btn-accent)_90%,black)]", p.classes, m.classes, r),
|
|
1877
1918
|
children: /* @__PURE__ */ _(e, {
|
|
1878
1919
|
size: p.iconPx,
|
|
1879
1920
|
"aria-hidden": !0
|
|
@@ -1895,7 +1936,7 @@ function Nt({ icon: e, label: n, className: r, variant: i = "ghost", color: a =
|
|
|
1895
1936
|
}
|
|
1896
1937
|
//#endregion
|
|
1897
1938
|
//#region src/components/Calendar/Calendar.tsx
|
|
1898
|
-
var
|
|
1939
|
+
var Ht = [
|
|
1899
1940
|
"Dom",
|
|
1900
1941
|
"Seg",
|
|
1901
1942
|
"Ter",
|
|
@@ -1904,16 +1945,16 @@ var Pt = [
|
|
|
1904
1945
|
"Sex",
|
|
1905
1946
|
"Sáb"
|
|
1906
1947
|
];
|
|
1907
|
-
function
|
|
1908
|
-
let n =
|
|
1909
|
-
for (let e = n; e <= r; e =
|
|
1948
|
+
function Ut(e, t) {
|
|
1949
|
+
let n = q(Oe(e), { weekStartsOn: t }), r = Ae(De(e), { weekStartsOn: t }), i = [];
|
|
1950
|
+
for (let e = n; e <= r; e = me(e, 1)) i.push(e);
|
|
1910
1951
|
return i;
|
|
1911
1952
|
}
|
|
1912
|
-
function
|
|
1913
|
-
let [p, m] = E(() => t ?? /* @__PURE__ */ new Date()), h = e !== void 0, g = h ? e : p, y = w(() => [...
|
|
1953
|
+
function Wt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: i = 3, weekStartsOn: a = 0, onDayClick: o, onEventClick: s, renderEvent: u, showNavigation: d = !0, className: f }) {
|
|
1954
|
+
let [p, m] = E(() => t ?? /* @__PURE__ */ new Date()), h = e !== void 0, g = h ? e : p, y = w(() => [...Ht.slice(a), ...Ht.slice(0, a)], [a]), b = w(() => Ut(g, a), [g, a]), x = w(() => {
|
|
1914
1955
|
let e = /* @__PURE__ */ new Map();
|
|
1915
1956
|
for (let t of r) {
|
|
1916
|
-
let n =
|
|
1957
|
+
let n = gt(t.date, "yyyy-MM-dd"), r = e.get(n);
|
|
1917
1958
|
r ? r.push(t) : e.set(n, [t]);
|
|
1918
1959
|
}
|
|
1919
1960
|
return e;
|
|
@@ -1922,25 +1963,25 @@ function It({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
1922
1963
|
h || m(e), n?.(e);
|
|
1923
1964
|
}
|
|
1924
1965
|
return /* @__PURE__ */ v("div", {
|
|
1925
|
-
className:
|
|
1966
|
+
className: L("flex h-full w-full flex-col", f),
|
|
1926
1967
|
"data-eds-component": "Calendar",
|
|
1927
1968
|
children: [d && /* @__PURE__ */ v("div", {
|
|
1928
1969
|
className: "mb-3 flex shrink-0 items-center justify-between",
|
|
1929
1970
|
children: [/* @__PURE__ */ _("span", {
|
|
1930
1971
|
className: "text-base font-medium text-eds-neutral-main capitalize",
|
|
1931
|
-
children:
|
|
1972
|
+
children: gt(g, "MMMM yyyy", { locale: zt })
|
|
1932
1973
|
}), /* @__PURE__ */ v("div", {
|
|
1933
1974
|
className: "flex items-center gap-1",
|
|
1934
|
-
children: [/* @__PURE__ */ _(
|
|
1975
|
+
children: [/* @__PURE__ */ _(Vt, {
|
|
1935
1976
|
icon: c,
|
|
1936
1977
|
label: "Mês anterior",
|
|
1937
1978
|
size: "sm",
|
|
1938
|
-
onClick: () => S(
|
|
1939
|
-
}), /* @__PURE__ */ _(
|
|
1979
|
+
onClick: () => S(Pt(g, 1))
|
|
1980
|
+
}), /* @__PURE__ */ _(Vt, {
|
|
1940
1981
|
icon: l,
|
|
1941
1982
|
label: "Próximo mês",
|
|
1942
1983
|
size: "sm",
|
|
1943
|
-
onClick: () => S(
|
|
1984
|
+
onClick: () => S(he(g, 1))
|
|
1944
1985
|
})]
|
|
1945
1986
|
})]
|
|
1946
1987
|
}), /* @__PURE__ */ v("div", {
|
|
@@ -1948,22 +1989,22 @@ function It({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
1948
1989
|
children: [/* @__PURE__ */ _("div", {
|
|
1949
1990
|
className: "grid shrink-0 grid-cols-7",
|
|
1950
1991
|
children: y.map((e, t) => /* @__PURE__ */ _("div", {
|
|
1951
|
-
className:
|
|
1992
|
+
className: L("border-t border-r border-b border-eds-neutral-disabled py-1.5 text-center text-base text-eds-neutral-main", t === 0 && "border-l"),
|
|
1952
1993
|
children: e
|
|
1953
1994
|
}, e))
|
|
1954
1995
|
}), /* @__PURE__ */ _("div", {
|
|
1955
1996
|
className: "grid flex-1 auto-rows-fr grid-cols-7",
|
|
1956
1997
|
children: b.map((e, t) => {
|
|
1957
|
-
let n =
|
|
1998
|
+
let n = Et(e, g), r = Dt(e), a = gt(e, "yyyy-MM-dd"), c = x.get(a) ?? [], l = c.slice(0, i), d = c.length - l.length, f = n ? gt(e, "d") : gt(e, "d MMM", { locale: zt });
|
|
1958
1999
|
return /* @__PURE__ */ v("div", {
|
|
1959
2000
|
"data-date": a,
|
|
1960
2001
|
onClick: () => o?.(e),
|
|
1961
|
-
className:
|
|
2002
|
+
className: L("flex flex-col gap-1 border-r border-b border-eds-neutral-disabled px-1.5 pt-1.5", t % 7 == 0 && "border-l", o && "cursor-pointer", n ? "bg-white" : "bg-eds-neutral-background"),
|
|
1962
2003
|
children: [(() => {
|
|
1963
2004
|
let e = {
|
|
1964
2005
|
"aria-current": r ? "date" : void 0,
|
|
1965
2006
|
"data-today": r || void 0,
|
|
1966
|
-
className:
|
|
2007
|
+
className: L("shrink-0 self-center rounded-full text-sm", r ? "flex size-7 items-center justify-center bg-eds-blue-main text-white" : "px-1 py-0.5 text-eds-neutral-main")
|
|
1967
2008
|
};
|
|
1968
2009
|
return o ? /* @__PURE__ */ _("button", {
|
|
1969
2010
|
type: "button",
|
|
@@ -2009,165 +2050,165 @@ function It({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
2009
2050
|
}
|
|
2010
2051
|
//#endregion
|
|
2011
2052
|
//#region src/components/Card/Card.tsx
|
|
2012
|
-
function
|
|
2053
|
+
function Gt({ className: e, ...t }) {
|
|
2013
2054
|
return /* @__PURE__ */ _("div", {
|
|
2014
2055
|
"data-eds-component": "Card",
|
|
2015
|
-
className:
|
|
2056
|
+
className: L("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
|
|
2016
2057
|
...t
|
|
2017
2058
|
});
|
|
2018
2059
|
}
|
|
2019
|
-
function
|
|
2060
|
+
function Kt({ className: e, ...t }) {
|
|
2020
2061
|
return /* @__PURE__ */ _("div", {
|
|
2021
2062
|
"data-slot": "card-header",
|
|
2022
|
-
className:
|
|
2063
|
+
className: L("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]", e),
|
|
2023
2064
|
...t
|
|
2024
2065
|
});
|
|
2025
2066
|
}
|
|
2026
|
-
function
|
|
2067
|
+
function qt({ className: e, ...t }) {
|
|
2027
2068
|
return /* @__PURE__ */ _("h3", {
|
|
2028
2069
|
"data-slot": "card-title",
|
|
2029
|
-
className:
|
|
2070
|
+
className: L("text-lg leading-none font-semibold text-eds-neutral-main", e),
|
|
2030
2071
|
...t
|
|
2031
2072
|
});
|
|
2032
2073
|
}
|
|
2033
|
-
function
|
|
2074
|
+
function Jt({ className: e, ...t }) {
|
|
2034
2075
|
return /* @__PURE__ */ _("p", {
|
|
2035
2076
|
"data-slot": "card-description",
|
|
2036
|
-
className:
|
|
2077
|
+
className: L("text-sm text-eds-neutral-elements", e),
|
|
2037
2078
|
...t
|
|
2038
2079
|
});
|
|
2039
2080
|
}
|
|
2040
|
-
function
|
|
2081
|
+
function Yt({ className: e, ...t }) {
|
|
2041
2082
|
return /* @__PURE__ */ _("div", {
|
|
2042
2083
|
"data-slot": "card-action",
|
|
2043
|
-
className:
|
|
2084
|
+
className: L("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
2044
2085
|
...t
|
|
2045
2086
|
});
|
|
2046
2087
|
}
|
|
2047
|
-
function
|
|
2088
|
+
function Xt({ className: e, ...t }) {
|
|
2048
2089
|
return /* @__PURE__ */ _("div", {
|
|
2049
2090
|
"data-slot": "card-content",
|
|
2050
|
-
className:
|
|
2091
|
+
className: L("px-6", e),
|
|
2051
2092
|
...t
|
|
2052
2093
|
});
|
|
2053
2094
|
}
|
|
2054
|
-
function
|
|
2095
|
+
function Zt({ className: e, ...t }) {
|
|
2055
2096
|
return /* @__PURE__ */ _("div", {
|
|
2056
2097
|
"data-slot": "card-footer",
|
|
2057
|
-
className:
|
|
2098
|
+
className: L("-mb-6 -mt-6 flex flex-col-reverse gap-2 rounded-b-eds-sm border-t border-eds-outline-border bg-eds-neutral-background px-6 py-4 sm:flex-row sm:justify-end", e),
|
|
2058
2099
|
...t
|
|
2059
2100
|
});
|
|
2060
2101
|
}
|
|
2061
|
-
|
|
2062
|
-
var
|
|
2063
|
-
Header:
|
|
2064
|
-
Title:
|
|
2065
|
-
Description:
|
|
2066
|
-
Action:
|
|
2067
|
-
Content:
|
|
2068
|
-
Footer:
|
|
2069
|
-
}),
|
|
2102
|
+
Kt.displayName = "Card.Header", qt.displayName = "Card.Title", Jt.displayName = "Card.Description", Yt.displayName = "Card.Action", Xt.displayName = "Card.Content", Zt.displayName = "Card.Footer";
|
|
2103
|
+
var Qt = Object.assign(Gt, {
|
|
2104
|
+
Header: Kt,
|
|
2105
|
+
Title: qt,
|
|
2106
|
+
Description: Jt,
|
|
2107
|
+
Action: Yt,
|
|
2108
|
+
Content: Xt,
|
|
2109
|
+
Footer: Zt
|
|
2110
|
+
}), $t = {
|
|
2070
2111
|
default: { classes: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2" },
|
|
2071
2112
|
sm: { classes: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5" },
|
|
2072
2113
|
xs: { classes: "gap-1.5 rounded-eds-lil text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1" }
|
|
2073
|
-
},
|
|
2114
|
+
}, en = {
|
|
2074
2115
|
horizontal: { classes: "min-w-40 items-center" },
|
|
2075
2116
|
vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
|
|
2076
2117
|
};
|
|
2077
|
-
function
|
|
2078
|
-
let a =
|
|
2118
|
+
function tn({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
|
|
2119
|
+
let a = R($t, n, "default"), o = R(en, r, "horizontal");
|
|
2079
2120
|
return /* @__PURE__ */ _("div", {
|
|
2080
2121
|
"data-eds-component": "Attachment",
|
|
2081
2122
|
"data-slot": "attachment",
|
|
2082
2123
|
"data-state": t,
|
|
2083
2124
|
"data-size": n,
|
|
2084
2125
|
"data-orientation": r,
|
|
2085
|
-
className:
|
|
2126
|
+
className: L("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-eds-xs border border-eds-outline-border bg-white text-eds-neutral-main transition-colors", "focus-within:ring-1 focus-within:ring-eds-blue-main/40", "has-[>a,>button]:hover:bg-eds-blue-background/25", "data-[state=idle]:border-dashed data-[state=idle]:border-eds-blue-middle/55", "data-[state=error]:border-eds-red-main/35 data-[state=error]:bg-eds-red-background/20", "data-[state=uploading]:border-eds-blue-middle/45 data-[state=processing]:border-eds-blue-middle/45", a.classes, o.classes, e),
|
|
2086
2127
|
...i
|
|
2087
2128
|
});
|
|
2088
2129
|
}
|
|
2089
|
-
function
|
|
2130
|
+
function nn({ className: e, variant: t = "icon", ...n }) {
|
|
2090
2131
|
return /* @__PURE__ */ _("div", {
|
|
2091
2132
|
"data-slot": "attachment-media",
|
|
2092
2133
|
"data-variant": t,
|
|
2093
|
-
className:
|
|
2134
|
+
className: L("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-eds-lil bg-eds-blue-background/45 text-eds-blue-main", "group-data-[orientation=vertical]/attachment:w-full", "group-data-[size=sm]/attachment:w-8", "group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md", "group-data-[state=error]/attachment:bg-eds-red-background/55 group-data-[state=error]/attachment:text-eds-red-dark", "group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:!size-6", "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", "group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6", "group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", t === "image" && "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 [&_img]:aspect-square [&_img]:size-full [&_img]:object-cover", e),
|
|
2094
2135
|
...n
|
|
2095
2136
|
});
|
|
2096
2137
|
}
|
|
2097
|
-
function
|
|
2138
|
+
function rn({ className: e, ...t }) {
|
|
2098
2139
|
return /* @__PURE__ */ _("div", {
|
|
2099
2140
|
"data-slot": "attachment-content",
|
|
2100
|
-
className:
|
|
2141
|
+
className: L("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
|
|
2101
2142
|
...t
|
|
2102
2143
|
});
|
|
2103
2144
|
}
|
|
2104
|
-
function
|
|
2145
|
+
function an({ className: e, ...t }) {
|
|
2105
2146
|
return /* @__PURE__ */ _("span", {
|
|
2106
2147
|
"data-slot": "attachment-title",
|
|
2107
|
-
className:
|
|
2148
|
+
className: L("block max-w-full min-w-0 truncate font-medium text-eds-neutral-main", "group-data-[state=uploading]/attachment:animate-eds-shimmer group-data-[state=processing]/attachment:animate-eds-shimmer", "group-data-[state=uploading]/attachment:text-eds-blue-main group-data-[state=processing]/attachment:text-eds-blue-main", e),
|
|
2108
2149
|
...t
|
|
2109
2150
|
});
|
|
2110
2151
|
}
|
|
2111
|
-
function
|
|
2152
|
+
function on({ className: e, ...t }) {
|
|
2112
2153
|
return /* @__PURE__ */ _("span", {
|
|
2113
2154
|
"data-slot": "attachment-description",
|
|
2114
|
-
className:
|
|
2155
|
+
className: L("mt-0.5 block max-w-full min-w-0 truncate text-xs text-eds-neutral-elements", "group-data-[state=error]/attachment:text-eds-red-main/85", "group-data-[state=uploading]/attachment:text-eds-blue-middle group-data-[state=processing]/attachment:text-eds-blue-middle", e),
|
|
2115
2156
|
...t
|
|
2116
2157
|
});
|
|
2117
2158
|
}
|
|
2118
|
-
function
|
|
2159
|
+
function sn({ className: e, ...t }) {
|
|
2119
2160
|
return /* @__PURE__ */ _("div", {
|
|
2120
2161
|
"data-slot": "attachment-actions",
|
|
2121
|
-
className:
|
|
2162
|
+
className: L("relative z-20 flex shrink-0 items-center", "group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", e),
|
|
2122
2163
|
...t
|
|
2123
2164
|
});
|
|
2124
2165
|
}
|
|
2125
|
-
function
|
|
2126
|
-
return /* @__PURE__ */ _(
|
|
2166
|
+
function cn({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
|
|
2167
|
+
return /* @__PURE__ */ _(Vt, {
|
|
2127
2168
|
"data-slot": "attachment-action",
|
|
2128
2169
|
variant: e,
|
|
2129
2170
|
color: t,
|
|
2130
2171
|
size: n,
|
|
2131
|
-
className:
|
|
2172
|
+
className: L("relative z-20", r),
|
|
2132
2173
|
...i
|
|
2133
2174
|
});
|
|
2134
2175
|
}
|
|
2135
|
-
function
|
|
2136
|
-
return
|
|
2176
|
+
function ln({ className: e, render: t, type: n, ...r }) {
|
|
2177
|
+
return te({
|
|
2137
2178
|
defaultTagName: "button",
|
|
2138
|
-
props:
|
|
2179
|
+
props: O({
|
|
2139
2180
|
type: t ? n : n ?? "button",
|
|
2140
|
-
className:
|
|
2181
|
+
className: L("absolute inset-0 z-10 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main/45", e)
|
|
2141
2182
|
}, r),
|
|
2142
2183
|
render: t,
|
|
2143
2184
|
state: { slot: "attachment-trigger" }
|
|
2144
2185
|
});
|
|
2145
2186
|
}
|
|
2146
|
-
function
|
|
2187
|
+
function un({ className: e, ...t }) {
|
|
2147
2188
|
return /* @__PURE__ */ _("div", {
|
|
2148
2189
|
"data-eds-component": "AttachmentGroup",
|
|
2149
2190
|
"data-slot": "attachment-group",
|
|
2150
|
-
className:
|
|
2191
|
+
className: L("flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "*:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", e),
|
|
2151
2192
|
...t
|
|
2152
2193
|
});
|
|
2153
2194
|
}
|
|
2154
|
-
|
|
2155
|
-
var
|
|
2156
|
-
Media:
|
|
2157
|
-
Content:
|
|
2158
|
-
Title:
|
|
2159
|
-
Description:
|
|
2160
|
-
Actions:
|
|
2161
|
-
Action:
|
|
2162
|
-
Trigger:
|
|
2163
|
-
Group:
|
|
2164
|
-
}),
|
|
2165
|
-
function
|
|
2166
|
-
return /* @__PURE__ */ _(
|
|
2195
|
+
nn.displayName = "Attachment.Media", rn.displayName = "Attachment.Content", an.displayName = "Attachment.Title", on.displayName = "Attachment.Description", sn.displayName = "Attachment.Actions", cn.displayName = "Attachment.Action", ln.displayName = "Attachment.Trigger", un.displayName = "Attachment.Group";
|
|
2196
|
+
var dn = Object.assign(tn, {
|
|
2197
|
+
Media: nn,
|
|
2198
|
+
Content: rn,
|
|
2199
|
+
Title: an,
|
|
2200
|
+
Description: on,
|
|
2201
|
+
Actions: sn,
|
|
2202
|
+
Action: cn,
|
|
2203
|
+
Trigger: ln,
|
|
2204
|
+
Group: un
|
|
2205
|
+
}), fn = L("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
|
|
2206
|
+
function pn({ className: e, ...t }) {
|
|
2207
|
+
return /* @__PURE__ */ _(k.Root, {
|
|
2167
2208
|
"data-eds-component": "Checkbox",
|
|
2168
|
-
className:
|
|
2209
|
+
className: L(fn, e),
|
|
2169
2210
|
...t,
|
|
2170
|
-
children: /* @__PURE__ */ _(
|
|
2211
|
+
children: /* @__PURE__ */ _(k.Indicator, {
|
|
2171
2212
|
keepMounted: !0,
|
|
2172
2213
|
className: "flex items-center justify-center text-white data-unchecked:invisible",
|
|
2173
2214
|
render: (e, t) => /* @__PURE__ */ _("span", {
|
|
@@ -2185,17 +2226,17 @@ function an({ className: e, ...t }) {
|
|
|
2185
2226
|
})
|
|
2186
2227
|
});
|
|
2187
2228
|
}
|
|
2188
|
-
function
|
|
2189
|
-
return t ? /* @__PURE__ */ _(
|
|
2190
|
-
className:
|
|
2191
|
-
children: /* @__PURE__ */ v(
|
|
2192
|
-
className:
|
|
2193
|
-
children: [/* @__PURE__ */ _(
|
|
2229
|
+
function mn({ className: e, label: t, disabled: n, ...r }) {
|
|
2230
|
+
return t ? /* @__PURE__ */ _(ne.Root, {
|
|
2231
|
+
className: L("inline-flex", e),
|
|
2232
|
+
children: /* @__PURE__ */ v(ne.Label, {
|
|
2233
|
+
className: L("inline-flex min-h-7 cursor-pointer items-center gap-[9px] rounded-md pl-2 text-base leading-6 text-eds-default", n && "cursor-not-allowed opacity-70"),
|
|
2234
|
+
children: [/* @__PURE__ */ _(pn, {
|
|
2194
2235
|
disabled: n,
|
|
2195
2236
|
...r
|
|
2196
2237
|
}), /* @__PURE__ */ _("span", { children: t })]
|
|
2197
2238
|
})
|
|
2198
|
-
}) : /* @__PURE__ */ _(
|
|
2239
|
+
}) : /* @__PURE__ */ _(pn, {
|
|
2199
2240
|
className: e,
|
|
2200
2241
|
disabled: n,
|
|
2201
2242
|
...r
|
|
@@ -2203,10 +2244,10 @@ function on({ className: e, label: t, disabled: n, ...r }) {
|
|
|
2203
2244
|
}
|
|
2204
2245
|
//#endregion
|
|
2205
2246
|
//#region src/lib/field-styles.ts
|
|
2206
|
-
function
|
|
2247
|
+
function hn(e) {
|
|
2207
2248
|
return e ?? "floating";
|
|
2208
2249
|
}
|
|
2209
|
-
var
|
|
2250
|
+
var gn = {
|
|
2210
2251
|
sm: {
|
|
2211
2252
|
control: "h-9 px-3",
|
|
2212
2253
|
trigger: "h-9 px-3",
|
|
@@ -2234,29 +2275,29 @@ var cn = {
|
|
|
2234
2275
|
icon: "size-8",
|
|
2235
2276
|
paddingX: "px-4"
|
|
2236
2277
|
}
|
|
2237
|
-
},
|
|
2278
|
+
}, _n = {
|
|
2238
2279
|
overlay: "z-[1300]",
|
|
2239
2280
|
popup: "z-[1400]",
|
|
2240
2281
|
overlayValue: 1300,
|
|
2241
2282
|
popupValue: 1400
|
|
2242
|
-
},
|
|
2243
|
-
function
|
|
2283
|
+
}, vn = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", yn = "flex items-center justify-between gap-3", bn = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", xn = "text-eds-neutral-disabled", Sn = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", Cn = "data-placeholder:text-eds-neutral-disabled", wn = "group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70", Tn = "box-border min-w-(--anchor-width) max-h-[280px] overflow-visible rounded-eds-xs border border-eds-outline-border bg-white py-1 shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)]", En = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", Dn = "box-border flex w-full cursor-pointer items-center gap-2 rounded-md px-2.5 py-2 text-left text-sm text-eds-neutral-main data-highlighted:bg-eds-neutral-elements/10 data-disabled:cursor-not-allowed data-disabled:opacity-50", On = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", kn = `${_n.popup} outline-none`, An = { zIndex: _n.popupValue };
|
|
2284
|
+
function jn(e) {
|
|
2244
2285
|
return `pointer-events-none absolute top-0 z-1 -translate-y-1/2 bg-transparent px-0 pr-1 text-sm text-eds-neutral-elements ${e} before:absolute before:inset-x-0 before:top-1/2 before:-z-10 before:h-0.5 before:-translate-y-1/2 before:bg-white before:content-[''] group-data-disabled:before:bg-eds-neutral-background`;
|
|
2245
2286
|
}
|
|
2246
2287
|
//#endregion
|
|
2247
2288
|
//#region src/components/ComboBox/Combobox.tsx
|
|
2248
|
-
var
|
|
2289
|
+
var Mn = {
|
|
2249
2290
|
default: "",
|
|
2250
2291
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
2251
2292
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
2252
|
-
},
|
|
2253
|
-
function
|
|
2254
|
-
let
|
|
2293
|
+
}, Nn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md text-eds-neutral-elements hover:not-data-disabled:bg-eds-neutral-elements/8 hover:not-data-disabled:text-eds-neutral-main focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", Pn = "inline-flex h-6 max-w-full items-center gap-1 rounded-eds-lil bg-eds-blue-background/45 py-0 pr-1 pl-2 text-xs text-eds-blue-main", Fn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded p-1 text-eds-blue-main hover:not-data-disabled:bg-eds-blue-main/15 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", In = A.Root;
|
|
2294
|
+
function Ln({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: a = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: m = !1, id: g, name: y, multiple: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, getRemoveItemLabel: E, renderItem: D, renderChip: O, className: te, inputProps: k }) {
|
|
2295
|
+
let ne = ee(), j = g ?? ne, M = l === "invalid", N = M || !!d, P = gn[u], F = hn(t), I = F === "floating", R = (e) => w ? w(e) : e.label ?? "", re = (e) => T ? T(e) : e.value ?? R(e), z = (e) => {
|
|
2255
2296
|
C?.(e);
|
|
2256
|
-
},
|
|
2297
|
+
}, B = w ? (e) => w(e) : void 0, ie = T ? (e) => T(e) : void 0, V = /* @__PURE__ */ v("div", {
|
|
2257
2298
|
className: "inline-flex shrink-0 items-center",
|
|
2258
|
-
children: [/* @__PURE__ */ _(
|
|
2259
|
-
className:
|
|
2299
|
+
children: [/* @__PURE__ */ _(A.Clear, {
|
|
2300
|
+
className: L(Nn, P.icon),
|
|
2260
2301
|
"aria-label": "Limpar seleção",
|
|
2261
2302
|
"data-disabled": i || void 0,
|
|
2262
2303
|
children: /* @__PURE__ */ _(h, {
|
|
@@ -2264,8 +2305,8 @@ function kn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2264
2305
|
strokeWidth: 2,
|
|
2265
2306
|
"aria-hidden": !0
|
|
2266
2307
|
})
|
|
2267
|
-
}), /* @__PURE__ */ _(
|
|
2268
|
-
className:
|
|
2308
|
+
}), /* @__PURE__ */ _(A.Trigger, {
|
|
2309
|
+
className: L(Nn, P.icon),
|
|
2269
2310
|
"aria-label": "Abrir lista",
|
|
2270
2311
|
"data-disabled": i || void 0,
|
|
2271
2312
|
children: /* @__PURE__ */ _(s, {
|
|
@@ -2274,8 +2315,8 @@ function kn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2274
2315
|
"aria-hidden": !0
|
|
2275
2316
|
})
|
|
2276
2317
|
})]
|
|
2277
|
-
}), ae =
|
|
2278
|
-
className:
|
|
2318
|
+
}), ae = I ? /* @__PURE__ */ v("span", {
|
|
2319
|
+
className: jn(P.left),
|
|
2279
2320
|
children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
|
|
2280
2321
|
className: "text-eds-red-main",
|
|
2281
2322
|
"aria-hidden": "true",
|
|
@@ -2283,108 +2324,108 @@ function kn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2283
2324
|
})]
|
|
2284
2325
|
}) : null;
|
|
2285
2326
|
return /* @__PURE__ */ v("div", {
|
|
2286
|
-
className:
|
|
2327
|
+
className: L(vn, te),
|
|
2287
2328
|
"data-fluid": c || void 0,
|
|
2288
2329
|
"data-eds-component": "Combobox",
|
|
2289
|
-
"data-label-variant":
|
|
2330
|
+
"data-label-variant": F,
|
|
2290
2331
|
children: [
|
|
2291
2332
|
/* @__PURE__ */ _("div", {
|
|
2292
|
-
className:
|
|
2333
|
+
className: yn,
|
|
2293
2334
|
children: /* @__PURE__ */ v("label", {
|
|
2294
|
-
className:
|
|
2295
|
-
htmlFor:
|
|
2335
|
+
className: L(bn, I && "sr-only", !I && "font-medium"),
|
|
2336
|
+
htmlFor: j,
|
|
2296
2337
|
children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
|
|
2297
2338
|
className: "text-eds-red-main",
|
|
2298
2339
|
children: "*"
|
|
2299
2340
|
})]
|
|
2300
2341
|
})
|
|
2301
2342
|
}),
|
|
2302
|
-
/* @__PURE__ */ v(
|
|
2343
|
+
/* @__PURE__ */ v(In, {
|
|
2303
2344
|
items: n,
|
|
2304
2345
|
name: y,
|
|
2305
2346
|
multiple: b,
|
|
2306
2347
|
disabled: i,
|
|
2307
2348
|
required: a,
|
|
2308
|
-
onValueChange: C ?
|
|
2349
|
+
onValueChange: C ? z : void 0,
|
|
2309
2350
|
...x === void 0 ? S === void 0 ? {} : { defaultValue: S } : { value: x },
|
|
2310
|
-
itemToStringLabel:
|
|
2311
|
-
itemToStringValue:
|
|
2312
|
-
children: [b ? /* @__PURE__ */ v(
|
|
2313
|
-
className:
|
|
2351
|
+
itemToStringLabel: B,
|
|
2352
|
+
itemToStringValue: ie,
|
|
2353
|
+
children: [b ? /* @__PURE__ */ v(A.Chips, {
|
|
2354
|
+
className: L(wn, "h-auto flex-wrap content-start gap-1.5", P.triggerMultiple, Mn[l]),
|
|
2314
2355
|
"data-state": l,
|
|
2315
2356
|
"data-size": u,
|
|
2316
2357
|
"data-disabled": i || void 0,
|
|
2317
|
-
"data-floating":
|
|
2358
|
+
"data-floating": I || void 0,
|
|
2318
2359
|
children: [
|
|
2319
2360
|
ae,
|
|
2320
|
-
/* @__PURE__ */ _(
|
|
2321
|
-
className:
|
|
2361
|
+
/* @__PURE__ */ _(A.Value, { children: (e) => e.map((e) => /* @__PURE__ */ v(A.Chip, {
|
|
2362
|
+
className: Pn,
|
|
2322
2363
|
children: [/* @__PURE__ */ _("span", {
|
|
2323
2364
|
className: "truncate",
|
|
2324
|
-
children:
|
|
2325
|
-
}), /* @__PURE__ */ _(
|
|
2326
|
-
className:
|
|
2327
|
-
"aria-label": E ? E(e) : `Remover ${
|
|
2365
|
+
children: O ? O(e) : R(e)
|
|
2366
|
+
}), /* @__PURE__ */ _(A.ChipRemove, {
|
|
2367
|
+
className: Fn,
|
|
2368
|
+
"aria-label": E ? E(e) : `Remover ${R(e)}`,
|
|
2328
2369
|
children: /* @__PURE__ */ _(h, {
|
|
2329
2370
|
size: 10,
|
|
2330
2371
|
strokeWidth: 2.5,
|
|
2331
2372
|
"aria-hidden": !0
|
|
2332
2373
|
})
|
|
2333
2374
|
})]
|
|
2334
|
-
},
|
|
2375
|
+
}, re(e))) }),
|
|
2335
2376
|
/* @__PURE__ */ v("div", {
|
|
2336
2377
|
className: "flex min-w-[120px] flex-1 items-center gap-1",
|
|
2337
|
-
children: [/* @__PURE__ */ _(
|
|
2338
|
-
...
|
|
2339
|
-
id:
|
|
2340
|
-
className:
|
|
2378
|
+
children: [/* @__PURE__ */ _(A.Input, {
|
|
2379
|
+
...k,
|
|
2380
|
+
id: j,
|
|
2381
|
+
className: L("min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", Sn, P.text),
|
|
2341
2382
|
placeholder: r,
|
|
2342
2383
|
disabled: i,
|
|
2343
2384
|
readOnly: m,
|
|
2344
2385
|
required: a,
|
|
2345
|
-
"aria-invalid":
|
|
2346
|
-
"aria-describedby":
|
|
2386
|
+
"aria-invalid": M || void 0,
|
|
2387
|
+
"aria-describedby": N ? `${j}-desc` : void 0
|
|
2347
2388
|
}), V]
|
|
2348
2389
|
})
|
|
2349
2390
|
]
|
|
2350
|
-
}) : /* @__PURE__ */ v(
|
|
2351
|
-
className:
|
|
2391
|
+
}) : /* @__PURE__ */ v(A.InputGroup, {
|
|
2392
|
+
className: L(wn, "box-border py-0", P.trigger, Mn[l]),
|
|
2352
2393
|
"data-state": l,
|
|
2353
2394
|
"data-size": u,
|
|
2354
2395
|
"data-disabled": i || void 0,
|
|
2355
|
-
"data-floating":
|
|
2396
|
+
"data-floating": I || void 0,
|
|
2356
2397
|
children: [
|
|
2357
2398
|
ae,
|
|
2358
|
-
/* @__PURE__ */ _(
|
|
2359
|
-
...
|
|
2360
|
-
id:
|
|
2361
|
-
className:
|
|
2399
|
+
/* @__PURE__ */ _(A.Input, {
|
|
2400
|
+
...k,
|
|
2401
|
+
id: j,
|
|
2402
|
+
className: L("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", Sn, P.text),
|
|
2362
2403
|
placeholder: r,
|
|
2363
2404
|
disabled: i,
|
|
2364
2405
|
readOnly: m,
|
|
2365
2406
|
required: a,
|
|
2366
|
-
"aria-invalid":
|
|
2367
|
-
"aria-describedby":
|
|
2407
|
+
"aria-invalid": M || void 0,
|
|
2408
|
+
"aria-describedby": N ? `${j}-desc` : void 0
|
|
2368
2409
|
}),
|
|
2369
2410
|
V
|
|
2370
2411
|
]
|
|
2371
|
-
}), /* @__PURE__ */ _(
|
|
2372
|
-
className:
|
|
2373
|
-
style:
|
|
2412
|
+
}), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
|
|
2413
|
+
className: kn,
|
|
2414
|
+
style: An,
|
|
2374
2415
|
positionMethod: "fixed",
|
|
2375
2416
|
sideOffset: 4,
|
|
2376
|
-
children: /* @__PURE__ */ v(
|
|
2377
|
-
className:
|
|
2378
|
-
children: [/* @__PURE__ */ _(
|
|
2417
|
+
children: /* @__PURE__ */ v(A.Popup, {
|
|
2418
|
+
className: Tn,
|
|
2419
|
+
children: [/* @__PURE__ */ _(A.Empty, { children: /* @__PURE__ */ _("div", {
|
|
2379
2420
|
className: "px-3 py-2.5 text-sm text-eds-neutral-elements",
|
|
2380
2421
|
children: p
|
|
2381
|
-
}) }), /* @__PURE__ */ _(
|
|
2382
|
-
className:
|
|
2383
|
-
children: (e) => /* @__PURE__ */ v(
|
|
2422
|
+
}) }), /* @__PURE__ */ _(A.List, {
|
|
2423
|
+
className: En,
|
|
2424
|
+
children: (e) => /* @__PURE__ */ v(A.Item, {
|
|
2384
2425
|
value: e,
|
|
2385
|
-
className:
|
|
2386
|
-
children: [/* @__PURE__ */ _(
|
|
2387
|
-
className:
|
|
2426
|
+
className: Dn,
|
|
2427
|
+
children: [/* @__PURE__ */ _(A.ItemIndicator, {
|
|
2428
|
+
className: On,
|
|
2388
2429
|
children: /* @__PURE__ */ _(o, {
|
|
2389
2430
|
size: 14,
|
|
2390
2431
|
strokeWidth: 2.5,
|
|
@@ -2392,29 +2433,29 @@ function kn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2392
2433
|
})
|
|
2393
2434
|
}), D ? D(e) : /* @__PURE__ */ _("span", {
|
|
2394
2435
|
className: "block min-w-0 flex-1 text-left",
|
|
2395
|
-
children:
|
|
2436
|
+
children: R(e)
|
|
2396
2437
|
})]
|
|
2397
|
-
},
|
|
2438
|
+
}, re(e))
|
|
2398
2439
|
})]
|
|
2399
2440
|
})
|
|
2400
2441
|
}) })]
|
|
2401
2442
|
}),
|
|
2402
|
-
|
|
2403
|
-
id: `${
|
|
2443
|
+
N && /* @__PURE__ */ _("div", {
|
|
2444
|
+
id: `${j}-desc`,
|
|
2404
2445
|
className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
|
|
2405
|
-
"data-state":
|
|
2406
|
-
children:
|
|
2446
|
+
"data-state": M ? "invalid" : void 0,
|
|
2447
|
+
children: M ? f : d
|
|
2407
2448
|
})
|
|
2408
2449
|
]
|
|
2409
2450
|
});
|
|
2410
2451
|
}
|
|
2411
2452
|
//#endregion
|
|
2412
2453
|
//#region src/components/DatePicker/DatePicker.tsx
|
|
2413
|
-
var
|
|
2454
|
+
var Rn = {
|
|
2414
2455
|
default: "",
|
|
2415
2456
|
valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
2416
2457
|
invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
2417
|
-
},
|
|
2458
|
+
}, zn = [
|
|
2418
2459
|
"D",
|
|
2419
2460
|
"S",
|
|
2420
2461
|
"T",
|
|
@@ -2423,78 +2464,78 @@ var An = {
|
|
|
2423
2464
|
"S",
|
|
2424
2465
|
"S"
|
|
2425
2466
|
];
|
|
2426
|
-
function
|
|
2427
|
-
let n =
|
|
2428
|
-
for (let e = n; e <= r; e =
|
|
2467
|
+
function Bn(e, t) {
|
|
2468
|
+
let n = q(Oe(e), { weekStartsOn: t }), r = Ae(De(e), { weekStartsOn: t }), i = [];
|
|
2469
|
+
for (let e = n; e <= r; e = me(e, 1)) i.push(e);
|
|
2429
2470
|
return i;
|
|
2430
2471
|
}
|
|
2431
|
-
function
|
|
2472
|
+
function Vn(e) {
|
|
2432
2473
|
return e.mode === "range";
|
|
2433
2474
|
}
|
|
2434
|
-
function
|
|
2435
|
-
let { label: t = "Label", labelVariant: n, disabled: r = !1, required: i = !1, fluid: o = !1, state: s = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y =
|
|
2475
|
+
function Hn(e) {
|
|
2476
|
+
let { label: t = "Label", labelVariant: n, disabled: r = !1, required: i = !1, fluid: o = !1, state: s = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y = Vn(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), x = ee(), S = p ?? x, C = s === "invalid", T = C || d, D = gn[u], O = u === "lg" ? "size-5" : "size-4", te = hn(n), k = te === "floating", ne = Vn(e) ? {
|
|
2436
2477
|
from: e.defaultValue?.from ?? null,
|
|
2437
2478
|
to: e.defaultValue?.to ?? null
|
|
2438
2479
|
} : {
|
|
2439
2480
|
from: e.defaultValue ?? null,
|
|
2440
2481
|
to: null
|
|
2441
|
-
},
|
|
2482
|
+
}, A = Vn(e) ? e.value === void 0 ? void 0 : {
|
|
2442
2483
|
from: e.value?.from ?? null,
|
|
2443
2484
|
to: e.value?.to ?? null
|
|
2444
2485
|
} : e.value === void 0 ? void 0 : {
|
|
2445
2486
|
from: e.value ?? null,
|
|
2446
2487
|
to: null
|
|
2447
|
-
},
|
|
2488
|
+
}, M = A !== void 0, [N, P] = E(ne), F = M ? A : N, I = Vn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, R = Vn(e) ? e.presets : void 0, [re, z] = E(!1), [B, ie] = E(() => F.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), V = w(() => [...zn.slice(m), ...zn.slice(0, m)], [m]), ae = w(() => Array.from({ length: I }, (e, t) => he(B, t)), [B, I]);
|
|
2448
2489
|
function oe(t) {
|
|
2449
|
-
r || (t &&
|
|
2490
|
+
r || (t && ie(F.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), z(t));
|
|
2450
2491
|
}
|
|
2451
|
-
function
|
|
2452
|
-
if (
|
|
2453
|
-
let n =
|
|
2492
|
+
function se(t) {
|
|
2493
|
+
if (Vn(e)) {
|
|
2494
|
+
let n = F, r;
|
|
2454
2495
|
r = !n.from || n.to ? {
|
|
2455
2496
|
from: t,
|
|
2456
2497
|
to: null
|
|
2457
|
-
} :
|
|
2498
|
+
} : Tt(t, n.from) ? {
|
|
2458
2499
|
from: t,
|
|
2459
2500
|
to: n.from
|
|
2460
2501
|
} : {
|
|
2461
2502
|
from: n.from,
|
|
2462
2503
|
to: t
|
|
2463
|
-
},
|
|
2504
|
+
}, M || P(r), r.from && e.onValueChange?.({
|
|
2464
2505
|
from: r.from,
|
|
2465
2506
|
to: r.to ?? void 0
|
|
2466
|
-
}), r.from && r.to &&
|
|
2507
|
+
}), r.from && r.to && z(!1);
|
|
2467
2508
|
return;
|
|
2468
2509
|
}
|
|
2469
|
-
|
|
2510
|
+
M || P({
|
|
2470
2511
|
from: t,
|
|
2471
2512
|
to: null
|
|
2472
|
-
}), e.onValueChange?.(t),
|
|
2513
|
+
}), e.onValueChange?.(t), z(!1);
|
|
2473
2514
|
}
|
|
2474
|
-
function
|
|
2515
|
+
function H(t) {
|
|
2475
2516
|
let n = {
|
|
2476
2517
|
from: t.from,
|
|
2477
2518
|
to: t.to ?? null
|
|
2478
2519
|
};
|
|
2479
|
-
|
|
2520
|
+
M || P(n), Vn(e) && e.onValueChange?.({
|
|
2480
2521
|
from: t.from,
|
|
2481
2522
|
to: t.to ?? void 0
|
|
2482
|
-
}),
|
|
2523
|
+
}), ie(t.from);
|
|
2483
2524
|
}
|
|
2484
|
-
function
|
|
2485
|
-
return !
|
|
2525
|
+
function ce(e) {
|
|
2526
|
+
return !F.from || !F.to || !e.range.to ? !1 : we(F.from, e.range.from) && we(F.to, e.range.to);
|
|
2486
2527
|
}
|
|
2487
|
-
let
|
|
2528
|
+
let le = F.from ? !y || !F.to ? gt(F.from, h) : `${gt(F.from, h)} - ${gt(F.to, h)}` : b;
|
|
2488
2529
|
return /* @__PURE__ */ v("div", {
|
|
2489
|
-
className:
|
|
2530
|
+
className: L(vn, g),
|
|
2490
2531
|
"data-fluid": o || void 0,
|
|
2491
2532
|
"data-eds-component": "DatePicker",
|
|
2492
|
-
"data-label-variant":
|
|
2533
|
+
"data-label-variant": te,
|
|
2493
2534
|
children: [
|
|
2494
2535
|
/* @__PURE__ */ _("div", {
|
|
2495
|
-
className:
|
|
2536
|
+
className: yn,
|
|
2496
2537
|
children: /* @__PURE__ */ v("label", {
|
|
2497
|
-
className:
|
|
2538
|
+
className: L(bn, k && "sr-only", !k && "font-medium"),
|
|
2498
2539
|
htmlFor: S,
|
|
2499
2540
|
children: [/* @__PURE__ */ _("span", { children: t }), i && /* @__PURE__ */ _("span", {
|
|
2500
2541
|
className: "text-eds-red-main",
|
|
@@ -2502,20 +2543,20 @@ function Pn(e) {
|
|
|
2502
2543
|
})]
|
|
2503
2544
|
})
|
|
2504
2545
|
}),
|
|
2505
|
-
/* @__PURE__ */ v(
|
|
2506
|
-
open:
|
|
2546
|
+
/* @__PURE__ */ v(j.Root, {
|
|
2547
|
+
open: re,
|
|
2507
2548
|
onOpenChange: oe,
|
|
2508
|
-
children: [/* @__PURE__ */ v(
|
|
2549
|
+
children: [/* @__PURE__ */ v(j.Trigger, {
|
|
2509
2550
|
id: S,
|
|
2510
2551
|
disabled: r,
|
|
2511
|
-
className:
|
|
2552
|
+
className: L("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger, Rn[s], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
2512
2553
|
"data-state": s,
|
|
2513
2554
|
"data-size": u,
|
|
2514
2555
|
"data-disabled": r || void 0,
|
|
2515
2556
|
"aria-describedby": T ? `${S}-desc` : void 0,
|
|
2516
2557
|
children: [
|
|
2517
|
-
|
|
2518
|
-
className:
|
|
2558
|
+
k && /* @__PURE__ */ v("span", {
|
|
2559
|
+
className: jn(D.left),
|
|
2519
2560
|
children: [/* @__PURE__ */ _("span", { children: t }), i && /* @__PURE__ */ _("span", {
|
|
2520
2561
|
className: "text-eds-red-main",
|
|
2521
2562
|
"aria-hidden": "true",
|
|
@@ -2523,58 +2564,58 @@ function Pn(e) {
|
|
|
2523
2564
|
})]
|
|
2524
2565
|
}),
|
|
2525
2566
|
/* @__PURE__ */ _(a, {
|
|
2526
|
-
className:
|
|
2567
|
+
className: L("shrink-0 text-eds-neutral-elements", O),
|
|
2527
2568
|
"aria-hidden": !0
|
|
2528
2569
|
}),
|
|
2529
2570
|
/* @__PURE__ */ _("span", {
|
|
2530
|
-
className:
|
|
2531
|
-
children:
|
|
2571
|
+
className: L("min-w-0 flex-1 truncate font-inherit", D.text, F.from ? "text-eds-neutral-main" : xn),
|
|
2572
|
+
children: le
|
|
2532
2573
|
})
|
|
2533
2574
|
]
|
|
2534
|
-
}), /* @__PURE__ */ _(
|
|
2535
|
-
className:
|
|
2536
|
-
style:
|
|
2575
|
+
}), /* @__PURE__ */ _(j.Portal, { children: /* @__PURE__ */ _(j.Positioner, {
|
|
2576
|
+
className: kn,
|
|
2577
|
+
style: An,
|
|
2537
2578
|
positionMethod: "fixed",
|
|
2538
2579
|
sideOffset: 4,
|
|
2539
2580
|
align: "start",
|
|
2540
|
-
children: /* @__PURE__ */ v(
|
|
2581
|
+
children: /* @__PURE__ */ v(j.Popup, {
|
|
2541
2582
|
"data-eds-component": "DatePicker",
|
|
2542
2583
|
className: "flex overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)] transition-all data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
|
|
2543
|
-
children: [
|
|
2584
|
+
children: [R && R.length > 0 && /* @__PURE__ */ _("div", {
|
|
2544
2585
|
className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
|
|
2545
|
-
children:
|
|
2586
|
+
children: R.map((e) => /* @__PURE__ */ _("button", {
|
|
2546
2587
|
type: "button",
|
|
2547
|
-
onClick: () =>
|
|
2548
|
-
className:
|
|
2588
|
+
onClick: () => H(e.range),
|
|
2589
|
+
className: L("rounded-md px-3 py-1.5 text-left whitespace-nowrap", ce(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
|
|
2549
2590
|
children: e.label
|
|
2550
2591
|
}, e.label))
|
|
2551
2592
|
}), /* @__PURE__ */ _("div", {
|
|
2552
2593
|
className: "flex",
|
|
2553
2594
|
children: ae.map((e, t) => {
|
|
2554
|
-
let n = t === 0, r = t === ae.length - 1, i =
|
|
2595
|
+
let n = t === 0, r = t === ae.length - 1, i = Bn(e, m);
|
|
2555
2596
|
return /* @__PURE__ */ v("div", {
|
|
2556
|
-
className:
|
|
2597
|
+
className: L("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
|
|
2557
2598
|
children: [/* @__PURE__ */ v("div", {
|
|
2558
2599
|
className: "flex items-center gap-2.5 p-4",
|
|
2559
2600
|
children: [
|
|
2560
|
-
n ? /* @__PURE__ */ _(
|
|
2601
|
+
n ? /* @__PURE__ */ _(Vt, {
|
|
2561
2602
|
icon: c,
|
|
2562
2603
|
label: "Mês anterior",
|
|
2563
2604
|
size: "sm",
|
|
2564
|
-
onClick: () =>
|
|
2605
|
+
onClick: () => ie((e) => Pt(e, 1))
|
|
2565
2606
|
}) : /* @__PURE__ */ _("span", {
|
|
2566
2607
|
className: "size-8 shrink-0",
|
|
2567
2608
|
"aria-hidden": !0
|
|
2568
2609
|
}),
|
|
2569
2610
|
/* @__PURE__ */ _("span", {
|
|
2570
2611
|
className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
|
|
2571
|
-
children:
|
|
2612
|
+
children: gt(e, "MMMM yyyy", { locale: zt })
|
|
2572
2613
|
}),
|
|
2573
|
-
r ? /* @__PURE__ */ _(
|
|
2614
|
+
r ? /* @__PURE__ */ _(Vt, {
|
|
2574
2615
|
icon: l,
|
|
2575
2616
|
label: "Próximo mês",
|
|
2576
2617
|
size: "sm",
|
|
2577
|
-
onClick: () =>
|
|
2618
|
+
onClick: () => ie((e) => he(e, 1))
|
|
2578
2619
|
}) : /* @__PURE__ */ _("span", {
|
|
2579
2620
|
className: "size-8 shrink-0",
|
|
2580
2621
|
"aria-hidden": !0
|
|
@@ -2586,16 +2627,16 @@ function Pn(e) {
|
|
|
2586
2627
|
className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
|
|
2587
2628
|
children: e
|
|
2588
2629
|
}, `${e}-${t}`)), i.map((t) => {
|
|
2589
|
-
let n =
|
|
2630
|
+
let n = Et(t, e), r = Dt(t), i = y && F.from ? we(t, F.from) : !1, a = y && F.to ? we(t, F.to) : !1, o = !!(y && F.from && F.to && !we(F.from, F.to)), s = o && F.from && F.to ? wt(t, F.from) && Tt(t, F.to) : !1, c = y ? i || a : F.from ? we(t, F.from) : !1;
|
|
2590
2631
|
return /* @__PURE__ */ _("div", {
|
|
2591
|
-
className:
|
|
2632
|
+
className: L("flex items-center justify-center py-0.5", o && (s || i || a) && "bg-eds-blue-main/10", o && i && "rounded-l-full", o && a && "rounded-r-full"),
|
|
2592
2633
|
children: /* @__PURE__ */ _("button", {
|
|
2593
2634
|
type: "button",
|
|
2594
|
-
onClick: () =>
|
|
2635
|
+
onClick: () => se(t),
|
|
2595
2636
|
"data-selected": c || void 0,
|
|
2596
2637
|
"data-today": r || void 0,
|
|
2597
|
-
className:
|
|
2598
|
-
children:
|
|
2638
|
+
className: L("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", c ? "bg-eds-blue-main text-white" : n ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !c && r && "ring-1 ring-inset ring-eds-blue-main"),
|
|
2639
|
+
children: gt(t, "d")
|
|
2599
2640
|
})
|
|
2600
2641
|
}, t.toISOString());
|
|
2601
2642
|
})]
|
|
@@ -2617,44 +2658,44 @@ function Pn(e) {
|
|
|
2617
2658
|
}
|
|
2618
2659
|
//#endregion
|
|
2619
2660
|
//#region src/components/DateTimePicker/AnalogClock.tsx
|
|
2620
|
-
var
|
|
2621
|
-
function
|
|
2622
|
-
let n = Math.atan2(t -
|
|
2661
|
+
var Un = 220, Wn = Un / 2, Gn = 92, Kn = 64, qn = 30;
|
|
2662
|
+
function Jn(e, t) {
|
|
2663
|
+
let n = Math.atan2(t - Wn, e - Wn) + Math.PI / 2;
|
|
2623
2664
|
return n < 0 ? n + Math.PI * 2 : n;
|
|
2624
2665
|
}
|
|
2625
|
-
function
|
|
2626
|
-
let n =
|
|
2627
|
-
return Math.hypot(e -
|
|
2666
|
+
function Yn(e, t) {
|
|
2667
|
+
let n = Jn(e, t), r = Math.round(n / (Math.PI * 2) * 12) % 12, i = r === 0 ? 12 : r;
|
|
2668
|
+
return Math.hypot(e - Wn, t - Wn) < 156 / 2 ? i === 12 ? 0 : i + 12 : i;
|
|
2628
2669
|
}
|
|
2629
|
-
function
|
|
2630
|
-
let r = n > 0 ? n : 1, i =
|
|
2670
|
+
function Xn(e, t, n) {
|
|
2671
|
+
let r = n > 0 ? n : 1, i = Jn(e, t) / (Math.PI * 2) * 60, a = Math.round(i / r) * r;
|
|
2631
2672
|
return a >= 60 ? 0 : a;
|
|
2632
2673
|
}
|
|
2633
|
-
function
|
|
2674
|
+
function Zn(e, t) {
|
|
2634
2675
|
let n = e / 12 * Math.PI * 2 - Math.PI / 2;
|
|
2635
2676
|
return {
|
|
2636
2677
|
x: Math.round(Math.cos(n) * t),
|
|
2637
2678
|
y: Math.round(Math.sin(n) * t)
|
|
2638
2679
|
};
|
|
2639
2680
|
}
|
|
2640
|
-
function
|
|
2681
|
+
function Qn(e, t) {
|
|
2641
2682
|
return e === "hours" ? t % 12 : t / 5;
|
|
2642
2683
|
}
|
|
2643
|
-
function
|
|
2684
|
+
function $n(e, t) {
|
|
2644
2685
|
let n = e === "hours" && (t === 0 || t > 12);
|
|
2645
|
-
return
|
|
2686
|
+
return Zn(Qn(e, t), n ? Kn : Gn);
|
|
2646
2687
|
}
|
|
2647
|
-
function
|
|
2688
|
+
function er(e, t) {
|
|
2648
2689
|
return (e === "hours" ? t % 12 / 12 * Math.PI * 2 - Math.PI / 2 : t / 60 * Math.PI * 2 - Math.PI / 2) - Math.PI / 2;
|
|
2649
2690
|
}
|
|
2650
|
-
var
|
|
2651
|
-
function
|
|
2691
|
+
var tr = Array.from({ length: 24 }, (e, t) => t), nr = Array.from({ length: 12 }, (e, t) => t * 5);
|
|
2692
|
+
function rr({ mode: e, value: t, minuteStep: n, onSelect: r }) {
|
|
2652
2693
|
let i = T(null), a = T(!1);
|
|
2653
2694
|
function o(r, a) {
|
|
2654
2695
|
let o = i.current?.getBoundingClientRect();
|
|
2655
2696
|
if (!o) return t;
|
|
2656
2697
|
let s = r - o.left, c = a - o.top;
|
|
2657
|
-
return e === "hours" ?
|
|
2698
|
+
return e === "hours" ? Yn(s, c) : Xn(s, c, n);
|
|
2658
2699
|
}
|
|
2659
2700
|
function s(e) {
|
|
2660
2701
|
e.button > 0 || (a.current = !0, e.currentTarget.setPointerCapture(e.pointerId), r(o(e.clientX, e.clientY), !1));
|
|
@@ -2692,12 +2733,12 @@ function Yn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
|
|
|
2692
2733
|
default: break;
|
|
2693
2734
|
}
|
|
2694
2735
|
}
|
|
2695
|
-
let f = e === "hours" ?
|
|
2736
|
+
let f = e === "hours" ? tr : nr;
|
|
2696
2737
|
return /* @__PURE__ */ v("div", {
|
|
2697
2738
|
className: "relative shrink-0 select-none rounded-full bg-eds-neutral-background",
|
|
2698
2739
|
style: {
|
|
2699
|
-
width:
|
|
2700
|
-
height:
|
|
2740
|
+
width: Un,
|
|
2741
|
+
height: Un
|
|
2701
2742
|
},
|
|
2702
2743
|
children: [
|
|
2703
2744
|
/* @__PURE__ */ _("div", {
|
|
@@ -2720,32 +2761,32 @@ function Yn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
|
|
|
2720
2761
|
className: "pointer-events-none absolute bg-eds-blue-main",
|
|
2721
2762
|
style: {
|
|
2722
2763
|
width: 2,
|
|
2723
|
-
height: e === "hours" && (t === 0 || t > 12) ?
|
|
2724
|
-
left:
|
|
2725
|
-
top:
|
|
2764
|
+
height: e === "hours" && (t === 0 || t > 12) ? Kn : Gn,
|
|
2765
|
+
left: Wn,
|
|
2766
|
+
top: Wn,
|
|
2726
2767
|
transformOrigin: "top",
|
|
2727
|
-
transform: `rotate(${
|
|
2768
|
+
transform: `rotate(${er(e, t)}rad)`
|
|
2728
2769
|
}
|
|
2729
2770
|
}),
|
|
2730
2771
|
/* @__PURE__ */ _("div", {
|
|
2731
2772
|
className: "pointer-events-none absolute size-1.5 rounded-full bg-eds-blue-main",
|
|
2732
2773
|
style: {
|
|
2733
|
-
left:
|
|
2734
|
-
top:
|
|
2774
|
+
left: Wn - 3,
|
|
2775
|
+
top: Wn - 3
|
|
2735
2776
|
}
|
|
2736
2777
|
}),
|
|
2737
2778
|
f.map((n) => {
|
|
2738
|
-
let r = e === "hours" && (n === 0 || n > 12), { x: i, y: a } =
|
|
2779
|
+
let r = e === "hours" && (n === 0 || n > 12), { x: i, y: a } = $n(e, n), o = t === n, s = e === "hours" ? n === 0 ? "00" : String(n) : String(n).padStart(2, "0");
|
|
2739
2780
|
return /* @__PURE__ */ _("button", {
|
|
2740
2781
|
type: "button",
|
|
2741
2782
|
tabIndex: -1,
|
|
2742
2783
|
"aria-hidden": "true",
|
|
2743
|
-
className:
|
|
2784
|
+
className: L("pointer-events-none absolute flex items-center justify-center rounded-full text-sm tabular-nums", o ? "bg-eds-blue-main text-white" : "text-eds-neutral-main", r && !o && "text-xs text-eds-neutral-elements"),
|
|
2744
2785
|
style: {
|
|
2745
|
-
width:
|
|
2746
|
-
height:
|
|
2747
|
-
left:
|
|
2748
|
-
top:
|
|
2786
|
+
width: qn,
|
|
2787
|
+
height: qn,
|
|
2788
|
+
left: Wn + i - qn / 2,
|
|
2789
|
+
top: Wn + a - qn / 2
|
|
2749
2790
|
},
|
|
2750
2791
|
children: s
|
|
2751
2792
|
}, n);
|
|
@@ -2754,12 +2795,232 @@ function Yn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
|
|
|
2754
2795
|
});
|
|
2755
2796
|
}
|
|
2756
2797
|
//#endregion
|
|
2798
|
+
//#region src/components/DateTimePicker/DateTimeField.tsx
|
|
2799
|
+
var ir = {
|
|
2800
|
+
day: {
|
|
2801
|
+
label: "Dia",
|
|
2802
|
+
length: 2,
|
|
2803
|
+
min: 1,
|
|
2804
|
+
max: 31,
|
|
2805
|
+
placeholder: "dd"
|
|
2806
|
+
},
|
|
2807
|
+
month: {
|
|
2808
|
+
label: "Mês",
|
|
2809
|
+
length: 2,
|
|
2810
|
+
min: 1,
|
|
2811
|
+
max: 12,
|
|
2812
|
+
placeholder: "mm"
|
|
2813
|
+
},
|
|
2814
|
+
year: {
|
|
2815
|
+
label: "Ano",
|
|
2816
|
+
length: 4,
|
|
2817
|
+
min: 0,
|
|
2818
|
+
max: 9999,
|
|
2819
|
+
placeholder: "aaaa"
|
|
2820
|
+
},
|
|
2821
|
+
hour: {
|
|
2822
|
+
label: "Hora",
|
|
2823
|
+
length: 2,
|
|
2824
|
+
min: 0,
|
|
2825
|
+
max: 23,
|
|
2826
|
+
placeholder: "hh"
|
|
2827
|
+
},
|
|
2828
|
+
minute: {
|
|
2829
|
+
label: "Minuto",
|
|
2830
|
+
length: 2,
|
|
2831
|
+
min: 0,
|
|
2832
|
+
max: 59,
|
|
2833
|
+
placeholder: "mm"
|
|
2834
|
+
}
|
|
2835
|
+
}, ar = {
|
|
2836
|
+
dd: "day",
|
|
2837
|
+
MM: "month",
|
|
2838
|
+
yyyy: "year",
|
|
2839
|
+
HH: "hour",
|
|
2840
|
+
mm: "minute"
|
|
2841
|
+
};
|
|
2842
|
+
function or(e) {
|
|
2843
|
+
let t = /'[^']*'|([a-zA-Z])\1*/g, n = [], r = 0, i;
|
|
2844
|
+
for (; i = t.exec(e);) {
|
|
2845
|
+
i.index > r && n.push({
|
|
2846
|
+
kind: "literal",
|
|
2847
|
+
text: e.slice(r, i.index),
|
|
2848
|
+
key: `literal-${r}`
|
|
2849
|
+
});
|
|
2850
|
+
let t = i[0], a = t.startsWith("'") && t.endsWith("'") && t.length > 1, o = a ? t.slice(1, -1) || "'" : t, s = a ? void 0 : ar[o];
|
|
2851
|
+
n.push(s ? {
|
|
2852
|
+
kind: "segment",
|
|
2853
|
+
type: s,
|
|
2854
|
+
key: `segment-${i.index}`
|
|
2855
|
+
} : {
|
|
2856
|
+
kind: "literal",
|
|
2857
|
+
text: o,
|
|
2858
|
+
key: `literal-${i.index}`
|
|
2859
|
+
}), r = i.index + t.length;
|
|
2860
|
+
}
|
|
2861
|
+
return r < e.length && n.push({
|
|
2862
|
+
kind: "literal",
|
|
2863
|
+
text: e.slice(r),
|
|
2864
|
+
key: `literal-${r}`
|
|
2865
|
+
}), n;
|
|
2866
|
+
}
|
|
2867
|
+
function sr(e) {
|
|
2868
|
+
return e ? {
|
|
2869
|
+
day: vt(e),
|
|
2870
|
+
month: St(e) + 1,
|
|
2871
|
+
year: Ct(e),
|
|
2872
|
+
hour: bt(e),
|
|
2873
|
+
minute: xt(e)
|
|
2874
|
+
} : {
|
|
2875
|
+
day: null,
|
|
2876
|
+
month: null,
|
|
2877
|
+
year: null,
|
|
2878
|
+
hour: null,
|
|
2879
|
+
minute: null
|
|
2880
|
+
};
|
|
2881
|
+
}
|
|
2882
|
+
function cr(e, t) {
|
|
2883
|
+
let n = e;
|
|
2884
|
+
return t.year !== null && (n = Nt(n, t.year)), t.month !== null && (n = Ot(n, t.month - 1)), t.day !== null && (n = kt(n, t.day)), t.hour !== null && (n = At(n, t.hour)), t.minute !== null && (n = jt(n, t.minute)), n;
|
|
2885
|
+
}
|
|
2886
|
+
function lr(e) {
|
|
2887
|
+
let t = /* @__PURE__ */ new Date();
|
|
2888
|
+
switch (e) {
|
|
2889
|
+
case "day": return vt(t);
|
|
2890
|
+
case "month": return St(t) + 1;
|
|
2891
|
+
case "year": return Ct(t);
|
|
2892
|
+
case "hour": return bt(t);
|
|
2893
|
+
case "minute": return xt(t);
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
function ur({ id: e, value: t, dateFormat: n, disabled: r = !1, ariaDescribedBy: i, ariaLabelledBy: a, groupLabel: o, onCommit: s, className: c }) {
|
|
2897
|
+
let l = w(() => or(n), [n]), u = w(() => l.filter((e) => e.kind === "segment").map((e) => e.type), [l]), [d, f] = E(() => sr(t)), [p, m] = E(t);
|
|
2898
|
+
t !== p && (m(t), f(sr(t)));
|
|
2899
|
+
let [h, g] = E(null), [v, y] = E(""), b = T(null);
|
|
2900
|
+
function x(e) {
|
|
2901
|
+
b.current?.querySelector(`[data-segment="${e}"]`)?.focus();
|
|
2902
|
+
}
|
|
2903
|
+
function S(e, t) {
|
|
2904
|
+
let n = u.indexOf(e) + t;
|
|
2905
|
+
n < 0 || n >= u.length || x(u[n]);
|
|
2906
|
+
}
|
|
2907
|
+
function C(e, t) {
|
|
2908
|
+
let n = cr(e, t);
|
|
2909
|
+
return (t.day === null || vt(n) === t.day) && (t.month === null || St(n) + 1 === t.month) && (t.year === null || Ct(n) === t.year);
|
|
2910
|
+
}
|
|
2911
|
+
function ee(e) {
|
|
2912
|
+
if (!u.every((t) => e[t] !== null)) return;
|
|
2913
|
+
let n = t ?? /* @__PURE__ */ new Date();
|
|
2914
|
+
C(n, e) && s(cr(n, e));
|
|
2915
|
+
}
|
|
2916
|
+
function D(e, t, n = {}) {
|
|
2917
|
+
let r = {
|
|
2918
|
+
...d,
|
|
2919
|
+
[e]: t
|
|
2920
|
+
};
|
|
2921
|
+
f(r), n.commit !== !1 && ee(r), n.advance && S(e, 1);
|
|
2922
|
+
}
|
|
2923
|
+
function O(e, t) {
|
|
2924
|
+
let n = ir[e], r = v + t;
|
|
2925
|
+
(r.length > n.length || Number(r) > n.max) && (r = t);
|
|
2926
|
+
let i = Number(r), a = r.length === n.length, o = i * 10 > n.max, s = a || o;
|
|
2927
|
+
y(s ? "" : r), D(e, i, {
|
|
2928
|
+
advance: s,
|
|
2929
|
+
commit: s
|
|
2930
|
+
});
|
|
2931
|
+
}
|
|
2932
|
+
function te(e, t) {
|
|
2933
|
+
let n = ir[e], r = (d[e] ?? lr(e)) + t;
|
|
2934
|
+
r > n.max && (r = n.min), r < n.min && (r = n.max), y(""), D(e, r);
|
|
2935
|
+
}
|
|
2936
|
+
function k(e) {
|
|
2937
|
+
if (v) {
|
|
2938
|
+
let t = v.slice(0, -1);
|
|
2939
|
+
y(t), D(e, t ? Number(t) : null);
|
|
2940
|
+
return;
|
|
2941
|
+
}
|
|
2942
|
+
if (d[e] !== null) {
|
|
2943
|
+
D(e, null);
|
|
2944
|
+
return;
|
|
2945
|
+
}
|
|
2946
|
+
S(e, -1);
|
|
2947
|
+
}
|
|
2948
|
+
function ne(e, t) {
|
|
2949
|
+
if (!r) {
|
|
2950
|
+
if (t.key >= "0" && t.key <= "9") {
|
|
2951
|
+
t.preventDefault(), O(e, t.key);
|
|
2952
|
+
return;
|
|
2953
|
+
}
|
|
2954
|
+
switch (t.key) {
|
|
2955
|
+
case "ArrowUp":
|
|
2956
|
+
t.preventDefault(), te(e, 1);
|
|
2957
|
+
break;
|
|
2958
|
+
case "ArrowDown":
|
|
2959
|
+
t.preventDefault(), te(e, -1);
|
|
2960
|
+
break;
|
|
2961
|
+
case "ArrowLeft":
|
|
2962
|
+
t.preventDefault(), S(e, -1);
|
|
2963
|
+
break;
|
|
2964
|
+
case "ArrowRight":
|
|
2965
|
+
t.preventDefault(), S(e, 1);
|
|
2966
|
+
break;
|
|
2967
|
+
case "Backspace":
|
|
2968
|
+
case "Delete":
|
|
2969
|
+
t.preventDefault(), k(e);
|
|
2970
|
+
break;
|
|
2971
|
+
default: break;
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
function A(e) {
|
|
2976
|
+
y(""), g(e);
|
|
2977
|
+
}
|
|
2978
|
+
function j(e) {
|
|
2979
|
+
y(""), g((t) => t === e ? null : t);
|
|
2980
|
+
}
|
|
2981
|
+
let M = u[0];
|
|
2982
|
+
return /* @__PURE__ */ _("span", {
|
|
2983
|
+
ref: b,
|
|
2984
|
+
role: "group",
|
|
2985
|
+
"aria-labelledby": a,
|
|
2986
|
+
"aria-label": a ? void 0 : o,
|
|
2987
|
+
className: L("inline-flex min-w-0 flex-1 items-center", c),
|
|
2988
|
+
"data-eds-component": "DateTimeField",
|
|
2989
|
+
children: l.map((t) => {
|
|
2990
|
+
if (t.kind === "literal") return /* @__PURE__ */ _("span", {
|
|
2991
|
+
"aria-hidden": "true",
|
|
2992
|
+
className: "select-none whitespace-pre text-eds-neutral-elements",
|
|
2993
|
+
children: t.text
|
|
2994
|
+
}, t.key);
|
|
2995
|
+
let n = ir[t.type], a = d[t.type], o = h === t.type && v ? v : a === null ? null : String(a).padStart(n.length, "0");
|
|
2996
|
+
return /* @__PURE__ */ _("span", {
|
|
2997
|
+
id: t.type === M ? e : void 0,
|
|
2998
|
+
role: "spinbutton",
|
|
2999
|
+
tabIndex: r ? -1 : 0,
|
|
3000
|
+
"aria-label": n.label,
|
|
3001
|
+
"aria-describedby": i,
|
|
3002
|
+
"aria-valuemin": n.min,
|
|
3003
|
+
"aria-valuemax": n.max,
|
|
3004
|
+
"aria-valuenow": a ?? void 0,
|
|
3005
|
+
"aria-valuetext": o ?? "Vazio",
|
|
3006
|
+
"aria-disabled": r || void 0,
|
|
3007
|
+
"data-segment": t.type,
|
|
3008
|
+
onKeyDown: (e) => ne(t.type, e),
|
|
3009
|
+
onFocus: () => A(t.type),
|
|
3010
|
+
onBlur: () => j(t.type),
|
|
3011
|
+
className: L("rounded-sm px-0.5 text-center tabular-nums outline-none", o ? "text-eds-neutral-main" : "text-eds-neutral-disabled", h === t.type && "bg-eds-blue-main/15 text-eds-neutral-main", r && "cursor-not-allowed"),
|
|
3012
|
+
children: o ?? n.placeholder
|
|
3013
|
+
}, t.key);
|
|
3014
|
+
})
|
|
3015
|
+
});
|
|
3016
|
+
}
|
|
3017
|
+
//#endregion
|
|
2757
3018
|
//#region src/components/DateTimePicker/DateTimePicker.tsx
|
|
2758
|
-
var
|
|
3019
|
+
var dr = {
|
|
2759
3020
|
default: "",
|
|
2760
|
-
valid: "not-focus-
|
|
2761
|
-
invalid: "not-focus-
|
|
2762
|
-
},
|
|
3021
|
+
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3022
|
+
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3023
|
+
}, fr = [
|
|
2763
3024
|
"D",
|
|
2764
3025
|
"S",
|
|
2765
3026
|
"T",
|
|
@@ -2768,125 +3029,140 @@ var Xn = {
|
|
|
2768
3029
|
"S",
|
|
2769
3030
|
"S"
|
|
2770
3031
|
];
|
|
2771
|
-
function
|
|
2772
|
-
let n =
|
|
2773
|
-
for (let e = n; e <= r; e =
|
|
3032
|
+
function pr(e, t) {
|
|
3033
|
+
let n = q(Oe(e), { weekStartsOn: t }), r = Ae(De(e), { weekStartsOn: t }), i = [];
|
|
3034
|
+
for (let e = n; e <= r; e = me(e, 1)) i.push(e);
|
|
2774
3035
|
return i;
|
|
2775
3036
|
}
|
|
2776
|
-
function
|
|
2777
|
-
let n = t ?
|
|
2778
|
-
return
|
|
3037
|
+
function mr(e, t) {
|
|
3038
|
+
let n = t ? bt(t) : 0, r = t ? xt(t) : 0;
|
|
3039
|
+
return Mt(jt(At(e, n), r), 0);
|
|
2779
3040
|
}
|
|
2780
|
-
function
|
|
3041
|
+
function hr(e, t) {
|
|
2781
3042
|
let n = Math.round(e / t) * t;
|
|
2782
3043
|
return Math.min(59, Math.max(0, n >= 60 ? 60 - t : n));
|
|
2783
3044
|
}
|
|
2784
|
-
function
|
|
3045
|
+
function gr(e) {
|
|
2785
3046
|
let t = Math.max(1, Math.min(30, Math.floor(e))), n = [];
|
|
2786
3047
|
for (let e = 0; e < 60; e += t) n.push(e);
|
|
2787
3048
|
return n;
|
|
2788
3049
|
}
|
|
2789
|
-
var
|
|
2790
|
-
function
|
|
2791
|
-
let
|
|
3050
|
+
var _r = Array.from({ length: 24 }, (e, t) => t);
|
|
3051
|
+
function vr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: r = !1, required: a = !1, fluid: o = !1, state: s = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, timeVariant: b = "clock", value: x, defaultValue: S = null, onValueChange: D, className: O }) {
|
|
3052
|
+
let te = ee(), k = p ?? te, ne = `${k}-label`, A = s === "invalid", M = A || d, N = gn[u], P = u === "lg" ? "size-6" : "size-5", F = hn(t), I = F === "floating", R = x !== void 0, [re, z] = E(S), B = R ? x ?? null : re, [ie, V] = E(!1), [oe, se] = E(() => B ?? h ?? /* @__PURE__ */ new Date()), [H, ce] = E(B), [le, ue] = E("hours"), de = T(null), fe = T(null), pe = w(() => gr(y), [y]), U = w(() => Math.max(1, Math.min(30, Math.floor(y))), [y]), W = w(() => [...fr.slice(m), ...fr.slice(0, m)], [m]), me = w(() => pr(oe, m), [oe, m]), G = H ? bt(H) : 0, K = H ? hr(xt(H), y) : 0;
|
|
2792
3053
|
C(() => {
|
|
2793
|
-
if (!
|
|
3054
|
+
if (!ie) return;
|
|
2794
3055
|
let e = (e, t, n) => {
|
|
2795
3056
|
(e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
|
|
2796
3057
|
};
|
|
2797
3058
|
requestAnimationFrame(() => {
|
|
2798
|
-
e(
|
|
3059
|
+
e(de.current, "hour", G), e(fe.current, "minute", K);
|
|
2799
3060
|
});
|
|
2800
3061
|
}, [
|
|
2801
|
-
|
|
2802
|
-
|
|
3062
|
+
ie,
|
|
3063
|
+
G,
|
|
2803
3064
|
K
|
|
2804
3065
|
]);
|
|
2805
3066
|
function q(e) {
|
|
2806
|
-
|
|
3067
|
+
R || z(e), D?.(e);
|
|
2807
3068
|
}
|
|
2808
|
-
function
|
|
3069
|
+
function ge(e) {
|
|
2809
3070
|
if (!r) {
|
|
2810
3071
|
if (e) {
|
|
2811
|
-
let e =
|
|
2812
|
-
|
|
3072
|
+
let e = B ?? h ?? /* @__PURE__ */ new Date(), t = jt(e, hr(xt(e), y));
|
|
3073
|
+
ce(B ? t : null), se(B ?? h ?? /* @__PURE__ */ new Date()), ue("hours");
|
|
2813
3074
|
}
|
|
2814
|
-
|
|
3075
|
+
V(e);
|
|
2815
3076
|
}
|
|
2816
3077
|
}
|
|
2817
|
-
function
|
|
2818
|
-
let t =
|
|
2819
|
-
|
|
2820
|
-
}
|
|
2821
|
-
function _e(e, t = !0) {
|
|
2822
|
-
let n = H ?? R ?? /* @__PURE__ */ new Date(), r = Tt(wt(Ct(n, e), er(vt(n), y)), 0);
|
|
2823
|
-
se(r), t && (q(r), b === "clock" && ce("minutes"));
|
|
3078
|
+
function _e(e) {
|
|
3079
|
+
let t = mr(e, H ?? B), n = jt(t, hr(xt(t), y));
|
|
3080
|
+
ce(n), q(n);
|
|
2824
3081
|
}
|
|
2825
3082
|
function ve(e, t = !0) {
|
|
2826
|
-
let n =
|
|
2827
|
-
|
|
3083
|
+
let n = H ?? B ?? /* @__PURE__ */ new Date(), r = Mt(jt(At(n, e), hr(xt(n), y)), 0);
|
|
3084
|
+
ce(r), t && (q(r), b === "clock" && ue("minutes"));
|
|
2828
3085
|
}
|
|
2829
|
-
function ye() {
|
|
2830
|
-
let
|
|
2831
|
-
|
|
3086
|
+
function ye(e, t = !0) {
|
|
3087
|
+
let n = Mt(jt(H ?? B ?? /* @__PURE__ */ new Date(), e), 0);
|
|
3088
|
+
ce(n), t && (q(n), V(!1));
|
|
2832
3089
|
}
|
|
2833
3090
|
function be() {
|
|
2834
|
-
|
|
3091
|
+
let e = /* @__PURE__ */ new Date(), t = Mt(jt(e, hr(xt(e), y)), 0);
|
|
3092
|
+
ce(t), se(t), q(t);
|
|
3093
|
+
}
|
|
3094
|
+
function xe() {
|
|
3095
|
+
H && q(H), V(!1);
|
|
3096
|
+
}
|
|
3097
|
+
function Se(e) {
|
|
3098
|
+
let t = Mt(e, 0);
|
|
3099
|
+
ce(t), se(t), q(t);
|
|
2835
3100
|
}
|
|
2836
|
-
let xe = R ? Y(R, g) : n;
|
|
2837
3101
|
return /* @__PURE__ */ v("div", {
|
|
2838
|
-
className:
|
|
3102
|
+
className: L(vn, O),
|
|
3103
|
+
style: o ? void 0 : { width: 264 },
|
|
2839
3104
|
"data-fluid": o || void 0,
|
|
2840
3105
|
"data-eds-component": "DateTimePicker",
|
|
2841
|
-
"data-label-variant":
|
|
3106
|
+
"data-label-variant": F,
|
|
2842
3107
|
children: [
|
|
2843
3108
|
/* @__PURE__ */ _("div", {
|
|
2844
|
-
className:
|
|
3109
|
+
className: yn,
|
|
2845
3110
|
children: /* @__PURE__ */ v("label", {
|
|
2846
|
-
|
|
2847
|
-
|
|
3111
|
+
id: ne,
|
|
3112
|
+
className: L(bn, I && "sr-only", !I && "font-medium"),
|
|
3113
|
+
htmlFor: k,
|
|
2848
3114
|
children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
|
|
2849
3115
|
className: "text-eds-red-main",
|
|
2850
3116
|
children: "*"
|
|
2851
3117
|
})]
|
|
2852
3118
|
})
|
|
2853
3119
|
}),
|
|
2854
|
-
/* @__PURE__ */ v(
|
|
2855
|
-
open:
|
|
2856
|
-
onOpenChange:
|
|
2857
|
-
children: [/* @__PURE__ */ v(
|
|
2858
|
-
|
|
2859
|
-
disabled: r,
|
|
2860
|
-
className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", j.trigger, Xn[s], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3120
|
+
/* @__PURE__ */ v(j.Root, {
|
|
3121
|
+
open: ie,
|
|
3122
|
+
onOpenChange: ge,
|
|
3123
|
+
children: [/* @__PURE__ */ v("div", {
|
|
3124
|
+
className: L("group relative box-border inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", N.trigger, dr[s], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
2861
3125
|
"data-state": s,
|
|
2862
3126
|
"data-size": u,
|
|
2863
3127
|
"data-disabled": r || void 0,
|
|
2864
|
-
"aria-describedby": k ? `${O}-desc` : void 0,
|
|
2865
3128
|
children: [
|
|
2866
|
-
|
|
2867
|
-
className:
|
|
3129
|
+
I && /* @__PURE__ */ v("span", {
|
|
3130
|
+
className: jn(N.left),
|
|
2868
3131
|
children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
|
|
2869
3132
|
className: "text-eds-red-main",
|
|
2870
3133
|
"aria-hidden": "true",
|
|
2871
3134
|
children: "*"
|
|
2872
3135
|
})]
|
|
2873
3136
|
}),
|
|
2874
|
-
/* @__PURE__ */ _(
|
|
2875
|
-
|
|
2876
|
-
|
|
3137
|
+
/* @__PURE__ */ _(ur, {
|
|
3138
|
+
id: k,
|
|
3139
|
+
value: B,
|
|
3140
|
+
dateFormat: g,
|
|
3141
|
+
disabled: r,
|
|
3142
|
+
onCommit: Se,
|
|
3143
|
+
ariaLabelledBy: ne,
|
|
3144
|
+
groupLabel: n,
|
|
3145
|
+
ariaDescribedBy: M ? `${k}-desc` : void 0,
|
|
3146
|
+
className: N.text
|
|
2877
3147
|
}),
|
|
2878
|
-
/* @__PURE__ */ _(
|
|
2879
|
-
|
|
2880
|
-
|
|
3148
|
+
/* @__PURE__ */ _(j.Trigger, {
|
|
3149
|
+
type: "button",
|
|
3150
|
+
disabled: r,
|
|
3151
|
+
"aria-label": "Abrir calendário",
|
|
3152
|
+
className: L("flex shrink-0 cursor-pointer items-center justify-center rounded-md text-eds-neutral-elements outline-none", "hover:text-eds-blue-main focus-visible:text-eds-blue-main", "data-disabled:cursor-not-allowed"),
|
|
3153
|
+
children: /* @__PURE__ */ _(i, {
|
|
3154
|
+
className: P,
|
|
3155
|
+
"aria-hidden": !0
|
|
3156
|
+
})
|
|
2881
3157
|
})
|
|
2882
3158
|
]
|
|
2883
|
-
}), /* @__PURE__ */ _(
|
|
2884
|
-
className:
|
|
2885
|
-
style:
|
|
3159
|
+
}), /* @__PURE__ */ _(j.Portal, { children: /* @__PURE__ */ _(j.Positioner, {
|
|
3160
|
+
className: kn,
|
|
3161
|
+
style: An,
|
|
2886
3162
|
positionMethod: "fixed",
|
|
2887
3163
|
sideOffset: 4,
|
|
2888
3164
|
align: "start",
|
|
2889
|
-
children: /* @__PURE__ */ v(
|
|
3165
|
+
children: /* @__PURE__ */ v(j.Popup, {
|
|
2890
3166
|
"data-eds-component": "DateTimePicker",
|
|
2891
3167
|
className: "flex flex-col overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)] transition-all data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
|
|
2892
3168
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -2896,21 +3172,21 @@ function rr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2896
3172
|
children: [/* @__PURE__ */ v("div", {
|
|
2897
3173
|
className: "flex items-center gap-2.5 p-4",
|
|
2898
3174
|
children: [
|
|
2899
|
-
/* @__PURE__ */ _(
|
|
3175
|
+
/* @__PURE__ */ _(Vt, {
|
|
2900
3176
|
icon: c,
|
|
2901
3177
|
label: "Mês anterior",
|
|
2902
3178
|
size: "sm",
|
|
2903
|
-
onClick: () =>
|
|
3179
|
+
onClick: () => se((e) => Pt(e, 1))
|
|
2904
3180
|
}),
|
|
2905
3181
|
/* @__PURE__ */ _("span", {
|
|
2906
3182
|
className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
|
|
2907
|
-
children:
|
|
3183
|
+
children: gt(oe, "MMMM yyyy", { locale: zt })
|
|
2908
3184
|
}),
|
|
2909
|
-
/* @__PURE__ */ _(
|
|
3185
|
+
/* @__PURE__ */ _(Vt, {
|
|
2910
3186
|
icon: l,
|
|
2911
3187
|
label: "Próximo mês",
|
|
2912
3188
|
size: "sm",
|
|
2913
|
-
onClick: () =>
|
|
3189
|
+
onClick: () => se((e) => he(e, 1))
|
|
2914
3190
|
})
|
|
2915
3191
|
]
|
|
2916
3192
|
}), /* @__PURE__ */ v("div", {
|
|
@@ -2918,17 +3194,17 @@ function rr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2918
3194
|
children: [W.map((e, t) => /* @__PURE__ */ _("span", {
|
|
2919
3195
|
className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
|
|
2920
3196
|
children: e
|
|
2921
|
-
}, `${e}-${t}`)),
|
|
2922
|
-
let t =
|
|
3197
|
+
}, `${e}-${t}`)), me.map((e) => {
|
|
3198
|
+
let t = Et(e, oe), n = Dt(e), r = H ? we(e, H) : !1;
|
|
2923
3199
|
return /* @__PURE__ */ _("div", {
|
|
2924
3200
|
className: "flex items-center justify-center py-0.5",
|
|
2925
3201
|
children: /* @__PURE__ */ _("button", {
|
|
2926
3202
|
type: "button",
|
|
2927
|
-
onClick: () =>
|
|
3203
|
+
onClick: () => _e(e),
|
|
2928
3204
|
"data-selected": r || void 0,
|
|
2929
3205
|
"data-today": n || void 0,
|
|
2930
|
-
className:
|
|
2931
|
-
children:
|
|
3206
|
+
className: L("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", r ? "bg-eds-blue-main text-white" : t ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !r && n && "ring-1 ring-inset ring-eds-blue-main"),
|
|
3207
|
+
children: gt(e, "d")
|
|
2932
3208
|
})
|
|
2933
3209
|
}, e.toISOString());
|
|
2934
3210
|
})]
|
|
@@ -2941,10 +3217,10 @@ function rr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2941
3217
|
/* @__PURE__ */ _("button", {
|
|
2942
3218
|
type: "button",
|
|
2943
3219
|
"aria-label": "Selecionar hora",
|
|
2944
|
-
"aria-pressed":
|
|
2945
|
-
onClick: () =>
|
|
2946
|
-
className:
|
|
2947
|
-
children: String(
|
|
3220
|
+
"aria-pressed": le === "hours",
|
|
3221
|
+
onClick: () => ue("hours"),
|
|
3222
|
+
className: L("rounded-full px-3 py-1 text-sm font-medium tabular-nums", le === "hours" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
|
|
3223
|
+
children: String(G).padStart(2, "0")
|
|
2948
3224
|
}),
|
|
2949
3225
|
/* @__PURE__ */ _("span", {
|
|
2950
3226
|
className: "text-sm text-eds-neutral-elements",
|
|
@@ -2953,17 +3229,17 @@ function rr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2953
3229
|
/* @__PURE__ */ _("button", {
|
|
2954
3230
|
type: "button",
|
|
2955
3231
|
"aria-label": "Selecionar minuto",
|
|
2956
|
-
"aria-pressed":
|
|
2957
|
-
onClick: () =>
|
|
2958
|
-
className:
|
|
3232
|
+
"aria-pressed": le === "minutes",
|
|
3233
|
+
onClick: () => ue("minutes"),
|
|
3234
|
+
className: L("rounded-full px-3 py-1 text-sm font-medium tabular-nums", le === "minutes" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
|
|
2959
3235
|
children: String(K).padStart(2, "0")
|
|
2960
3236
|
})
|
|
2961
3237
|
]
|
|
2962
|
-
}), /* @__PURE__ */ _(
|
|
2963
|
-
mode:
|
|
2964
|
-
value:
|
|
2965
|
-
minuteStep:
|
|
2966
|
-
onSelect: (e, t) =>
|
|
3238
|
+
}), /* @__PURE__ */ _(rr, {
|
|
3239
|
+
mode: le,
|
|
3240
|
+
value: le === "hours" ? G : K,
|
|
3241
|
+
minuteStep: U,
|
|
3242
|
+
onSelect: (e, t) => le === "hours" ? ve(e, t) : ye(e, t)
|
|
2967
3243
|
})]
|
|
2968
3244
|
}) : /* @__PURE__ */ v("div", {
|
|
2969
3245
|
className: "flex w-[148px] shrink-0 border-l border-eds-outline-border",
|
|
@@ -2973,19 +3249,19 @@ function rr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2973
3249
|
className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
|
|
2974
3250
|
children: "Hora"
|
|
2975
3251
|
}), /* @__PURE__ */ _("div", {
|
|
2976
|
-
ref:
|
|
3252
|
+
ref: de,
|
|
2977
3253
|
className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
|
|
2978
3254
|
role: "listbox",
|
|
2979
3255
|
"aria-label": "Hora",
|
|
2980
|
-
children:
|
|
2981
|
-
let t =
|
|
3256
|
+
children: _r.map((e) => {
|
|
3257
|
+
let t = G === e;
|
|
2982
3258
|
return /* @__PURE__ */ _("button", {
|
|
2983
3259
|
type: "button",
|
|
2984
3260
|
role: "option",
|
|
2985
3261
|
"aria-selected": t,
|
|
2986
3262
|
"data-hour": e,
|
|
2987
|
-
onClick: () =>
|
|
2988
|
-
className:
|
|
3263
|
+
onClick: () => ve(e),
|
|
3264
|
+
className: L("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
|
|
2989
3265
|
children: String(e).padStart(2, "0")
|
|
2990
3266
|
}, e);
|
|
2991
3267
|
})
|
|
@@ -2996,19 +3272,19 @@ function rr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2996
3272
|
className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
|
|
2997
3273
|
children: "Min"
|
|
2998
3274
|
}), /* @__PURE__ */ _("div", {
|
|
2999
|
-
ref:
|
|
3275
|
+
ref: fe,
|
|
3000
3276
|
className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
|
|
3001
3277
|
role: "listbox",
|
|
3002
3278
|
"aria-label": "Minuto",
|
|
3003
|
-
children:
|
|
3279
|
+
children: pe.map((e) => {
|
|
3004
3280
|
let t = K === e;
|
|
3005
3281
|
return /* @__PURE__ */ _("button", {
|
|
3006
3282
|
type: "button",
|
|
3007
3283
|
role: "option",
|
|
3008
3284
|
"aria-selected": t,
|
|
3009
3285
|
"data-minute": e,
|
|
3010
|
-
onClick: () =>
|
|
3011
|
-
className:
|
|
3286
|
+
onClick: () => ye(e),
|
|
3287
|
+
className: L("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
|
|
3012
3288
|
children: String(e).padStart(2, "0")
|
|
3013
3289
|
}, e);
|
|
3014
3290
|
})
|
|
@@ -3021,29 +3297,29 @@ function rr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
3021
3297
|
text: "Agora",
|
|
3022
3298
|
variant: "ghost",
|
|
3023
3299
|
size: "sm",
|
|
3024
|
-
onClick:
|
|
3300
|
+
onClick: be
|
|
3025
3301
|
}), /* @__PURE__ */ _(ae, {
|
|
3026
3302
|
text: "Confirmar",
|
|
3027
3303
|
size: "sm",
|
|
3028
|
-
onClick:
|
|
3304
|
+
onClick: xe,
|
|
3029
3305
|
disabled: !H
|
|
3030
3306
|
})]
|
|
3031
3307
|
})]
|
|
3032
3308
|
})
|
|
3033
3309
|
}) })]
|
|
3034
3310
|
}),
|
|
3035
|
-
|
|
3036
|
-
id: `${
|
|
3311
|
+
M && /* @__PURE__ */ _("div", {
|
|
3312
|
+
id: `${k}-desc`,
|
|
3037
3313
|
className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
|
|
3038
|
-
"data-state":
|
|
3039
|
-
children:
|
|
3314
|
+
"data-state": A ? "invalid" : s,
|
|
3315
|
+
children: A ? f : d
|
|
3040
3316
|
})
|
|
3041
3317
|
]
|
|
3042
3318
|
});
|
|
3043
3319
|
}
|
|
3044
3320
|
//#endregion
|
|
3045
3321
|
//#region src/components/Dialog/Dialog.tsx
|
|
3046
|
-
var
|
|
3322
|
+
var yr = { size: {
|
|
3047
3323
|
sm: {
|
|
3048
3324
|
classes: "sm:max-w-xs",
|
|
3049
3325
|
description: "Small dialog for simple confirmations (288px)"
|
|
@@ -3060,22 +3336,22 @@ var ir = { size: {
|
|
|
3060
3336
|
classes: "sm:max-w-3xl",
|
|
3061
3337
|
description: "Extra large dialog for detailed views (768px)"
|
|
3062
3338
|
}
|
|
3063
|
-
} },
|
|
3064
|
-
function
|
|
3065
|
-
return S(
|
|
3339
|
+
} }, br = { size: "md" }, xr = b("dialog");
|
|
3340
|
+
function Sr() {
|
|
3341
|
+
return S(xr);
|
|
3066
3342
|
}
|
|
3067
|
-
function
|
|
3068
|
-
return
|
|
3343
|
+
function Cr({ size: e = br.size } = {}) {
|
|
3344
|
+
return L(`fixed top-1/2 left-1/2 ${_n.overlay} grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, R(yr.size, e, br.size).classes);
|
|
3069
3345
|
}
|
|
3070
|
-
function
|
|
3071
|
-
let i =
|
|
3346
|
+
function wr({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
|
|
3347
|
+
let i = Sr(), a = i === "alertdialog" ? N.Portal : M.Portal, o = i === "alertdialog" ? N.Backdrop : M.Backdrop, s = i === "alertdialog" ? N.Popup : M.Popup, c = i === "alertdialog" ? N.Close : M.Close;
|
|
3072
3348
|
return /* @__PURE__ */ v(a, { children: [/* @__PURE__ */ _(o, {
|
|
3073
|
-
className:
|
|
3074
|
-
style: { zIndex:
|
|
3349
|
+
className: L("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", _n.overlay),
|
|
3350
|
+
style: { zIndex: _n.overlayValue }
|
|
3075
3351
|
}), /* @__PURE__ */ v(s, {
|
|
3076
3352
|
"data-eds-component": "Dialog",
|
|
3077
|
-
className:
|
|
3078
|
-
style: { zIndex:
|
|
3353
|
+
className: L(Cr({ size: n }), e),
|
|
3354
|
+
style: { zIndex: _n.overlayValue },
|
|
3079
3355
|
children: [t, r ? /* @__PURE__ */ _(c, {
|
|
3080
3356
|
"data-eds-component": "Dialog",
|
|
3081
3357
|
"aria-label": "Fechar",
|
|
@@ -3087,105 +3363,105 @@ function lr({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
|
|
|
3087
3363
|
}) : null]
|
|
3088
3364
|
})] });
|
|
3089
3365
|
}
|
|
3090
|
-
function
|
|
3366
|
+
function Tr(e) {
|
|
3091
3367
|
if (e.role === "alertdialog") {
|
|
3092
3368
|
let { children: t, role: n, ...r } = e;
|
|
3093
|
-
return /* @__PURE__ */ _(
|
|
3369
|
+
return /* @__PURE__ */ _(xr.Provider, {
|
|
3094
3370
|
value: n,
|
|
3095
|
-
children: /* @__PURE__ */ _(
|
|
3371
|
+
children: /* @__PURE__ */ _(N.Root, {
|
|
3096
3372
|
...r,
|
|
3097
3373
|
children: t
|
|
3098
3374
|
})
|
|
3099
3375
|
});
|
|
3100
3376
|
}
|
|
3101
3377
|
let { children: t, role: n = "dialog", ...r } = e;
|
|
3102
|
-
return /* @__PURE__ */ _(
|
|
3378
|
+
return /* @__PURE__ */ _(xr.Provider, {
|
|
3103
3379
|
value: n,
|
|
3104
|
-
children: /* @__PURE__ */ _(
|
|
3380
|
+
children: /* @__PURE__ */ _(M.Root, {
|
|
3105
3381
|
...r,
|
|
3106
3382
|
children: t
|
|
3107
3383
|
})
|
|
3108
3384
|
});
|
|
3109
3385
|
}
|
|
3110
|
-
function
|
|
3111
|
-
return
|
|
3386
|
+
function Er({ children: e, ...t }) {
|
|
3387
|
+
return Sr() === "alertdialog" ? /* @__PURE__ */ _(N.Trigger, {
|
|
3112
3388
|
"data-eds-component": "Dialog",
|
|
3113
3389
|
...t,
|
|
3114
3390
|
children: e
|
|
3115
|
-
}) : /* @__PURE__ */ _(
|
|
3391
|
+
}) : /* @__PURE__ */ _(M.Trigger, {
|
|
3116
3392
|
"data-eds-component": "Dialog",
|
|
3117
3393
|
...t,
|
|
3118
3394
|
children: e
|
|
3119
3395
|
});
|
|
3120
3396
|
}
|
|
3121
|
-
function
|
|
3397
|
+
function Dr({ className: e, ...t }) {
|
|
3122
3398
|
return /* @__PURE__ */ _("div", {
|
|
3123
3399
|
"data-slot": "dialog-header",
|
|
3124
|
-
className:
|
|
3400
|
+
className: L("flex flex-col gap-2", e),
|
|
3125
3401
|
...t
|
|
3126
3402
|
});
|
|
3127
3403
|
}
|
|
3128
|
-
function
|
|
3404
|
+
function Or({ className: e, ...t }) {
|
|
3129
3405
|
return /* @__PURE__ */ _("div", {
|
|
3130
3406
|
"data-slot": "dialog-footer",
|
|
3131
|
-
className:
|
|
3407
|
+
className: L("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-eds-outline-border bg-eds-neutral-background p-4 sm:flex-row sm:justify-end", e),
|
|
3132
3408
|
...t
|
|
3133
3409
|
});
|
|
3134
3410
|
}
|
|
3135
|
-
function
|
|
3136
|
-
return /* @__PURE__ */ _(
|
|
3137
|
-
className:
|
|
3411
|
+
function kr({ className: e, ...t }) {
|
|
3412
|
+
return /* @__PURE__ */ _(Sr() === "alertdialog" ? N.Title : M.Title, {
|
|
3413
|
+
className: L("text-base leading-none font-medium text-eds-neutral-main", e),
|
|
3138
3414
|
...t
|
|
3139
3415
|
});
|
|
3140
3416
|
}
|
|
3141
|
-
function
|
|
3142
|
-
return /* @__PURE__ */ _(
|
|
3143
|
-
className:
|
|
3417
|
+
function Ar({ className: e, ...t }) {
|
|
3418
|
+
return /* @__PURE__ */ _(Sr() === "alertdialog" ? N.Description : M.Description, {
|
|
3419
|
+
className: L("text-sm text-eds-neutral-elements", e),
|
|
3144
3420
|
...t
|
|
3145
3421
|
});
|
|
3146
3422
|
}
|
|
3147
|
-
function
|
|
3148
|
-
return /* @__PURE__ */ _(
|
|
3423
|
+
function jr({ children: e, ...t }) {
|
|
3424
|
+
return /* @__PURE__ */ _(Sr() === "alertdialog" ? N.Close : M.Close, {
|
|
3149
3425
|
"data-eds-component": "Dialog",
|
|
3150
3426
|
...t,
|
|
3151
3427
|
children: e
|
|
3152
3428
|
});
|
|
3153
3429
|
}
|
|
3154
|
-
|
|
3155
|
-
var
|
|
3156
|
-
Root:
|
|
3157
|
-
Trigger:
|
|
3158
|
-
Header:
|
|
3159
|
-
Footer:
|
|
3160
|
-
Title:
|
|
3161
|
-
Description:
|
|
3162
|
-
Close:
|
|
3430
|
+
Tr.displayName = "Dialog.Root", Er.displayName = "Dialog.Trigger", Dr.displayName = "Dialog.Header", Or.displayName = "Dialog.Footer", kr.displayName = "Dialog.Title", Ar.displayName = "Dialog.Description", jr.displayName = "Dialog.Close";
|
|
3431
|
+
var Mr = Object.assign(wr, {
|
|
3432
|
+
Root: Tr,
|
|
3433
|
+
Trigger: Er,
|
|
3434
|
+
Header: Dr,
|
|
3435
|
+
Footer: Or,
|
|
3436
|
+
Title: kr,
|
|
3437
|
+
Description: Ar,
|
|
3438
|
+
Close: jr
|
|
3163
3439
|
});
|
|
3164
3440
|
//#endregion
|
|
3165
3441
|
//#region src/components/FormDialog/FormDialog.tsx
|
|
3166
|
-
function
|
|
3167
|
-
return
|
|
3442
|
+
function Nr({ size: e = "xl" } = {}) {
|
|
3443
|
+
return L("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", R(yr.size, e, br.size).classes);
|
|
3168
3444
|
}
|
|
3169
|
-
function
|
|
3170
|
-
let r =
|
|
3445
|
+
function Pr({ className: e, children: t, size: n = "xl" }) {
|
|
3446
|
+
let r = Sr(), i = r === "alertdialog" ? N.Portal : M.Portal, a = r === "alertdialog" ? N.Backdrop : M.Backdrop, o = r === "alertdialog" ? N.Popup : M.Popup;
|
|
3171
3447
|
return /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _(a, {
|
|
3172
|
-
className:
|
|
3173
|
-
style: { zIndex:
|
|
3448
|
+
className: L("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", _n.overlay),
|
|
3449
|
+
style: { zIndex: _n.overlayValue }
|
|
3174
3450
|
}), /* @__PURE__ */ _("div", {
|
|
3175
|
-
className:
|
|
3176
|
-
style: { zIndex:
|
|
3451
|
+
className: L("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", _n.overlay),
|
|
3452
|
+
style: { zIndex: _n.overlayValue },
|
|
3177
3453
|
children: /* @__PURE__ */ _(o, {
|
|
3178
3454
|
"data-eds-component": "FormDialog",
|
|
3179
|
-
className:
|
|
3455
|
+
className: L("pointer-events-auto", Nr({ size: n }), e),
|
|
3180
3456
|
children: t
|
|
3181
3457
|
})
|
|
3182
3458
|
})] });
|
|
3183
3459
|
}
|
|
3184
|
-
function
|
|
3185
|
-
let s =
|
|
3460
|
+
function Fr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
|
|
3461
|
+
let s = Sr(), c = s === "alertdialog" ? N.Close : M.Close, l = s === "alertdialog" ? N.Title : M.Title, u = s === "alertdialog" ? N.Description : M.Description, d = n != null || r != null || t;
|
|
3186
3462
|
return /* @__PURE__ */ v("div", {
|
|
3187
3463
|
"data-slot": "form-dialog-header",
|
|
3188
|
-
className:
|
|
3464
|
+
className: L("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border bg-white px-5 py-4", i && "pr-12", e),
|
|
3189
3465
|
...o,
|
|
3190
3466
|
children: [
|
|
3191
3467
|
t ? /* @__PURE__ */ _("span", {
|
|
@@ -3226,43 +3502,43 @@ function br({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
|
|
|
3226
3502
|
]
|
|
3227
3503
|
});
|
|
3228
3504
|
}
|
|
3229
|
-
function
|
|
3505
|
+
function Ir({ className: e, ...t }) {
|
|
3230
3506
|
return /* @__PURE__ */ _("div", {
|
|
3231
3507
|
"data-slot": "form-dialog-body",
|
|
3232
|
-
className:
|
|
3508
|
+
className: L("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
|
|
3233
3509
|
...t
|
|
3234
3510
|
});
|
|
3235
3511
|
}
|
|
3236
|
-
function
|
|
3512
|
+
function Lr({ className: e, ...t }) {
|
|
3237
3513
|
return /* @__PURE__ */ _("div", {
|
|
3238
3514
|
"data-slot": "form-dialog-footer",
|
|
3239
|
-
className:
|
|
3515
|
+
className: L("flex shrink-0 flex-col-reverse gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-5 py-4 sm:flex-row sm:justify-end", e),
|
|
3240
3516
|
...t
|
|
3241
3517
|
});
|
|
3242
3518
|
}
|
|
3243
|
-
function
|
|
3244
|
-
return /* @__PURE__ */ _(
|
|
3245
|
-
className:
|
|
3519
|
+
function Rr({ className: e, ...t }) {
|
|
3520
|
+
return /* @__PURE__ */ _(Sr() === "alertdialog" ? N.Title : M.Title, {
|
|
3521
|
+
className: L("text-lg leading-tight font-semibold text-eds-blue-dark", e),
|
|
3246
3522
|
...t
|
|
3247
3523
|
});
|
|
3248
3524
|
}
|
|
3249
|
-
function
|
|
3250
|
-
return /* @__PURE__ */ _(
|
|
3251
|
-
className:
|
|
3525
|
+
function zr({ className: e, ...t }) {
|
|
3526
|
+
return /* @__PURE__ */ _(Sr() === "alertdialog" ? N.Description : M.Description, {
|
|
3527
|
+
className: L("text-sm leading-snug text-eds-neutral-elements", e),
|
|
3252
3528
|
...t
|
|
3253
3529
|
});
|
|
3254
3530
|
}
|
|
3255
|
-
|
|
3256
|
-
var
|
|
3257
|
-
Root:
|
|
3258
|
-
Trigger:
|
|
3259
|
-
Close:
|
|
3260
|
-
Header:
|
|
3261
|
-
Body:
|
|
3262
|
-
Footer:
|
|
3263
|
-
Title:
|
|
3264
|
-
Description:
|
|
3265
|
-
}),
|
|
3531
|
+
Fr.displayName = "FormDialog.Header", Ir.displayName = "FormDialog.Body", Lr.displayName = "FormDialog.Footer", Rr.displayName = "FormDialog.Title", zr.displayName = "FormDialog.Description";
|
|
3532
|
+
var Br = Object.assign(Pr, {
|
|
3533
|
+
Root: Tr,
|
|
3534
|
+
Trigger: Er,
|
|
3535
|
+
Close: jr,
|
|
3536
|
+
Header: Fr,
|
|
3537
|
+
Body: Ir,
|
|
3538
|
+
Footer: Lr,
|
|
3539
|
+
Title: Rr,
|
|
3540
|
+
Description: zr
|
|
3541
|
+
}), Vr = { size: {
|
|
3266
3542
|
sm: {
|
|
3267
3543
|
classes: "px-6 py-8 gap-3",
|
|
3268
3544
|
description: "Compact empty state for smaller containers"
|
|
@@ -3275,11 +3551,11 @@ var Tr = Object.assign(yr, {
|
|
|
3275
3551
|
classes: "px-12 py-20 gap-6",
|
|
3276
3552
|
description: "Large empty state for prominent placement"
|
|
3277
3553
|
}
|
|
3278
|
-
} },
|
|
3279
|
-
function
|
|
3554
|
+
} }, Hr = { size: "md" };
|
|
3555
|
+
function Ur({ icon: e, title: t, description: n, action: r, size: i = Hr.size, titleLevel: a = "h2", className: o }) {
|
|
3280
3556
|
return /* @__PURE__ */ v("div", {
|
|
3281
3557
|
"data-eds-component": "Empty",
|
|
3282
|
-
className:
|
|
3558
|
+
className: L("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", R(Vr.size, i, Hr.size).classes, o),
|
|
3283
3559
|
children: [
|
|
3284
3560
|
e && /* @__PURE__ */ _("div", {
|
|
3285
3561
|
className: "text-eds-neutral-elements",
|
|
@@ -3300,24 +3576,24 @@ function Or({ icon: e, title: t, description: n, action: r, size: i = Dr.size, t
|
|
|
3300
3576
|
}
|
|
3301
3577
|
//#endregion
|
|
3302
3578
|
//#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
|
|
3303
|
-
var
|
|
3304
|
-
return e.replace(
|
|
3305
|
-
},
|
|
3306
|
-
return
|
|
3307
|
-
},
|
|
3308
|
-
return
|
|
3309
|
-
},
|
|
3310
|
-
return
|
|
3311
|
-
},
|
|
3579
|
+
var Wr = /\D/g, Gr = function(e) {
|
|
3580
|
+
return e.replace(Wr, "");
|
|
3581
|
+
}, Kr = function(e) {
|
|
3582
|
+
return Gr(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
|
|
3583
|
+
}, qr = function(e) {
|
|
3584
|
+
return Gr(e).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d{1,2})$/, "$1-$2");
|
|
3585
|
+
}, Jr = function(e) {
|
|
3586
|
+
return Gr(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
|
|
3587
|
+
}, Yr = function(e) {
|
|
3312
3588
|
return (e.match(/\d/g)?.length ?? 0) <= 11;
|
|
3313
|
-
},
|
|
3314
|
-
return
|
|
3315
|
-
},
|
|
3316
|
-
return
|
|
3589
|
+
}, Xr = function(e) {
|
|
3590
|
+
return Yr(e) ? Jr(e) : qr(e);
|
|
3591
|
+
}, Zr = function(e) {
|
|
3592
|
+
return Gr(e).replace(/(\d{1,2})/, "($1").replace(/(\(\d{2})(\d{1,4})/, "$1) $2").replace(/( \d{4})(\d{1,4})/, "$1-$2").replace(/( \d{4})(?:-)(\d{1})(\d{4})/, "$1$2-$3");
|
|
3317
3593
|
};
|
|
3318
3594
|
//#endregion
|
|
3319
3595
|
//#region src/components/Input/Input.tsx
|
|
3320
|
-
function
|
|
3596
|
+
function Qr(e) {
|
|
3321
3597
|
if (!e) return "";
|
|
3322
3598
|
let t = e.trimStart().startsWith("-"), n = e.replace(/\./g, ",").replace(/[^\d,]/g, "");
|
|
3323
3599
|
if (!n) return t ? "-" : "";
|
|
@@ -3326,30 +3602,30 @@ function Lr(e) {
|
|
|
3326
3602
|
let i = n.slice(0, r), a = n.slice(r + 1).replace(/,/g, "");
|
|
3327
3603
|
return `${t ? "-" : ""}${i},${a}`;
|
|
3328
3604
|
}
|
|
3329
|
-
var
|
|
3605
|
+
var $r = {
|
|
3330
3606
|
default: "",
|
|
3331
3607
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3332
3608
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
|
|
3333
3609
|
loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
|
|
3334
3610
|
};
|
|
3335
|
-
function
|
|
3336
|
-
let
|
|
3337
|
-
let e =
|
|
3338
|
-
return V ?
|
|
3339
|
-
}),
|
|
3340
|
-
if (V) return
|
|
3611
|
+
function ei({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: u, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: O = !1, showContentText: te = "Mostrar", hideContentText: k = "Ocultar", defaultValue: ne, value: A, id: j, name: M, onBlur: N, onFocus: F, onKeyDown: I, onClick: R, onChange: re, ...z }) {
|
|
3612
|
+
let B = ee(), ie = j ?? B, V = a === "number", [ae, oe] = E(!1), [se, H] = E(() => {
|
|
3613
|
+
let e = ne?.toString() ?? "";
|
|
3614
|
+
return V ? Qr(e) : e;
|
|
3615
|
+
}), ce = A !== void 0, le = (ce ? A : se)?.toString() ?? "", ue = V ? Qr(le) : le, de = g ?? m, fe = y ?? h, pe = hn(S), U = pe === "floating", W = (e) => {
|
|
3616
|
+
if (V) return Qr(e);
|
|
3341
3617
|
switch (u) {
|
|
3342
|
-
case "cep": return
|
|
3343
|
-
case "cpf": return
|
|
3344
|
-
case "cnpj": return
|
|
3345
|
-
case "cpfOrCnpj": return
|
|
3346
|
-
case "phone": return
|
|
3618
|
+
case "cep": return Kr(e);
|
|
3619
|
+
case "cpf": return Jr(e);
|
|
3620
|
+
case "cnpj": return qr(e);
|
|
3621
|
+
case "cpfOrCnpj": return Xr(e);
|
|
3622
|
+
case "phone": return Zr(e);
|
|
3347
3623
|
default: return e;
|
|
3348
3624
|
}
|
|
3349
|
-
},
|
|
3350
|
-
let n =
|
|
3351
|
-
|
|
3352
|
-
},
|
|
3625
|
+
}, me = (e, t) => {
|
|
3626
|
+
let n = W(e);
|
|
3627
|
+
ce || H(n), re?.(n, t);
|
|
3628
|
+
}, he = r === "invalid", G = n || w, K = gn[i], q = w ? /* @__PURE__ */ _("span", {
|
|
3353
3629
|
className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
|
|
3354
3630
|
"data-position": T,
|
|
3355
3631
|
"aria-hidden": !0,
|
|
@@ -3359,18 +3635,18 @@ function zr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3359
3635
|
})
|
|
3360
3636
|
}) : null;
|
|
3361
3637
|
return /* @__PURE__ */ v("div", {
|
|
3362
|
-
className:
|
|
3638
|
+
className: L(vn, e),
|
|
3363
3639
|
"data-fluid": l || void 0,
|
|
3364
3640
|
"data-eds-component": "Input",
|
|
3365
|
-
"data-label-variant":
|
|
3641
|
+
"data-label-variant": pe,
|
|
3366
3642
|
children: [
|
|
3367
3643
|
/* @__PURE__ */ v("div", {
|
|
3368
|
-
className:
|
|
3644
|
+
className: yn,
|
|
3369
3645
|
children: [/* @__PURE__ */ v("div", {
|
|
3370
3646
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
3371
3647
|
children: [/* @__PURE__ */ v("label", {
|
|
3372
|
-
className:
|
|
3373
|
-
htmlFor:
|
|
3648
|
+
className: L(bn, U && "sr-only", !U && "font-medium"),
|
|
3649
|
+
htmlFor: ie,
|
|
3374
3650
|
children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
|
|
3375
3651
|
className: "text-eds-red-main",
|
|
3376
3652
|
children: "*"
|
|
@@ -3380,33 +3656,33 @@ function zr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3380
3656
|
className: "inline-flex size-7 cursor-help items-center justify-center rounded-md text-eds-neutral-elements focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
|
|
3381
3657
|
"aria-label": p,
|
|
3382
3658
|
title: p,
|
|
3383
|
-
disabled:
|
|
3659
|
+
disabled: G,
|
|
3384
3660
|
children: /* @__PURE__ */ _(d, {
|
|
3385
3661
|
size: 16,
|
|
3386
3662
|
"aria-hidden": !0
|
|
3387
3663
|
})
|
|
3388
3664
|
})]
|
|
3389
|
-
}),
|
|
3665
|
+
}), de && fe && /* @__PURE__ */ _("a", {
|
|
3390
3666
|
className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
|
|
3391
|
-
href:
|
|
3392
|
-
"aria-disabled":
|
|
3393
|
-
tabIndex:
|
|
3667
|
+
href: fe,
|
|
3668
|
+
"aria-disabled": G || void 0,
|
|
3669
|
+
tabIndex: G ? -1 : 0,
|
|
3394
3670
|
onClick: (e) => {
|
|
3395
|
-
|
|
3671
|
+
G && e.preventDefault();
|
|
3396
3672
|
},
|
|
3397
|
-
children:
|
|
3673
|
+
children: de
|
|
3398
3674
|
})]
|
|
3399
3675
|
}),
|
|
3400
3676
|
/* @__PURE__ */ v("div", {
|
|
3401
|
-
className:
|
|
3402
|
-
"data-disabled":
|
|
3677
|
+
className: L("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", K.control, $r[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3678
|
+
"data-disabled": G || void 0,
|
|
3403
3679
|
"data-state": r,
|
|
3404
3680
|
"data-size": i,
|
|
3405
|
-
"data-floating":
|
|
3406
|
-
"data-has-value":
|
|
3681
|
+
"data-floating": U || void 0,
|
|
3682
|
+
"data-has-value": ue ? !0 : void 0,
|
|
3407
3683
|
children: [
|
|
3408
|
-
|
|
3409
|
-
className:
|
|
3684
|
+
U && /* @__PURE__ */ v("span", {
|
|
3685
|
+
className: jn(K.left),
|
|
3410
3686
|
children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
|
|
3411
3687
|
className: "text-eds-red-main",
|
|
3412
3688
|
"aria-hidden": "true",
|
|
@@ -3418,83 +3694,83 @@ function zr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3418
3694
|
size: 16,
|
|
3419
3695
|
"aria-hidden": !0
|
|
3420
3696
|
}),
|
|
3421
|
-
T === "start" &&
|
|
3422
|
-
/* @__PURE__ */ _(
|
|
3423
|
-
...
|
|
3424
|
-
id:
|
|
3425
|
-
name:
|
|
3426
|
-
className:
|
|
3427
|
-
disabled:
|
|
3428
|
-
type: V ? "text" :
|
|
3429
|
-
inputMode: V ?
|
|
3430
|
-
lang: V ?
|
|
3697
|
+
T === "start" && q,
|
|
3698
|
+
/* @__PURE__ */ _(P, {
|
|
3699
|
+
...z,
|
|
3700
|
+
id: ie,
|
|
3701
|
+
name: M,
|
|
3702
|
+
className: L("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", Sn, K.text),
|
|
3703
|
+
disabled: G,
|
|
3704
|
+
type: V ? "text" : O ? ae ? "text" : "password" : a,
|
|
3705
|
+
inputMode: V ? z.inputMode ?? "decimal" : z.inputMode,
|
|
3706
|
+
lang: V ? z.lang ?? "pt-BR" : z.lang,
|
|
3431
3707
|
required: o,
|
|
3432
3708
|
placeholder: s,
|
|
3433
|
-
autoComplete: C ? "off" :
|
|
3434
|
-
"aria-invalid":
|
|
3435
|
-
"aria-describedby":
|
|
3709
|
+
autoComplete: C ? "off" : z.autoComplete,
|
|
3710
|
+
"aria-invalid": he || void 0,
|
|
3711
|
+
"aria-describedby": he ? `${ie}-desc` : void 0,
|
|
3436
3712
|
"aria-busy": w || void 0,
|
|
3437
|
-
value:
|
|
3438
|
-
defaultValue: !
|
|
3439
|
-
onClick:
|
|
3440
|
-
onKeyDown:
|
|
3441
|
-
onFocus:
|
|
3713
|
+
value: ce || V ? ue : void 0,
|
|
3714
|
+
defaultValue: !ce && !V ? ne : void 0,
|
|
3715
|
+
onClick: R,
|
|
3716
|
+
onKeyDown: I,
|
|
3717
|
+
onFocus: F,
|
|
3442
3718
|
onBlur: (e) => {
|
|
3443
|
-
|
|
3719
|
+
N?.(e), x && me(e.currentTarget.value, e);
|
|
3444
3720
|
},
|
|
3445
3721
|
onChange: (e) => {
|
|
3446
3722
|
if (x) {
|
|
3447
|
-
V && !
|
|
3723
|
+
V && !ce && H(W(e.currentTarget.value));
|
|
3448
3724
|
return;
|
|
3449
3725
|
}
|
|
3450
|
-
|
|
3726
|
+
me(e.currentTarget.value, e);
|
|
3451
3727
|
}
|
|
3452
3728
|
}),
|
|
3453
|
-
|
|
3729
|
+
O && !w && /* @__PURE__ */ _("button", {
|
|
3454
3730
|
type: "button",
|
|
3455
3731
|
className: "shrink-0 text-sm font-medium text-eds-blue-main hover:underline",
|
|
3456
|
-
disabled:
|
|
3732
|
+
disabled: G,
|
|
3457
3733
|
onClick: () => oe((e) => !e),
|
|
3458
|
-
children: ae ?
|
|
3734
|
+
children: ae ? k : te
|
|
3459
3735
|
}),
|
|
3460
|
-
T === "end" &&
|
|
3736
|
+
T === "end" && q
|
|
3461
3737
|
]
|
|
3462
3738
|
}),
|
|
3463
|
-
(
|
|
3464
|
-
id: `${
|
|
3739
|
+
(he || b) && /* @__PURE__ */ _("div", {
|
|
3740
|
+
id: `${ie}-desc`,
|
|
3465
3741
|
className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
|
|
3466
|
-
"data-state":
|
|
3467
|
-
children:
|
|
3742
|
+
"data-state": he ? "invalid" : r,
|
|
3743
|
+
children: he ? c : b
|
|
3468
3744
|
})
|
|
3469
3745
|
]
|
|
3470
3746
|
});
|
|
3471
3747
|
}
|
|
3472
3748
|
//#endregion
|
|
3473
3749
|
//#region src/components/Textarea/Textarea.tsx
|
|
3474
|
-
var
|
|
3750
|
+
var ti = {
|
|
3475
3751
|
default: "",
|
|
3476
3752
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3477
3753
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3478
|
-
},
|
|
3754
|
+
}, ni = {
|
|
3479
3755
|
sm: "min-h-20",
|
|
3480
3756
|
md: "min-h-24",
|
|
3481
3757
|
lg: "min-h-32"
|
|
3482
3758
|
};
|
|
3483
|
-
function
|
|
3484
|
-
let
|
|
3759
|
+
function ri({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: u = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: m, rows: h = 4, defaultValue: g, value: y, id: b, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: D, ...O }) {
|
|
3760
|
+
let te = ee(), k = b ?? te, [ne, A] = E(() => g?.toString() ?? ""), j = y !== void 0, M = (j ? y : ne)?.toString() ?? "", N = hn(m), P = N === "floating", F = r === "invalid", I = gn[i];
|
|
3485
3761
|
return /* @__PURE__ */ v("div", {
|
|
3486
|
-
className:
|
|
3762
|
+
className: L(vn, e),
|
|
3487
3763
|
"data-fluid": c || void 0,
|
|
3488
3764
|
"data-eds-component": "Textarea",
|
|
3489
|
-
"data-label-variant":
|
|
3765
|
+
"data-label-variant": N,
|
|
3490
3766
|
children: [
|
|
3491
3767
|
/* @__PURE__ */ v("div", {
|
|
3492
|
-
className:
|
|
3768
|
+
className: yn,
|
|
3493
3769
|
children: [/* @__PURE__ */ v("div", {
|
|
3494
3770
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
3495
3771
|
children: [/* @__PURE__ */ v("label", {
|
|
3496
|
-
className:
|
|
3497
|
-
htmlFor:
|
|
3772
|
+
className: L(bn, P && "sr-only", !P && "font-medium"),
|
|
3773
|
+
htmlFor: k,
|
|
3498
3774
|
children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
|
|
3499
3775
|
className: "text-eds-red-main",
|
|
3500
3776
|
children: "*"
|
|
@@ -3522,69 +3798,69 @@ function Hr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3522
3798
|
})]
|
|
3523
3799
|
}),
|
|
3524
3800
|
/* @__PURE__ */ v("div", {
|
|
3525
|
-
className:
|
|
3801
|
+
className: L("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", I.paddingX, "py-2.5", ni[i], ti[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3526
3802
|
"data-disabled": n || void 0,
|
|
3527
3803
|
"data-state": r,
|
|
3528
3804
|
"data-size": i,
|
|
3529
|
-
"data-floating":
|
|
3530
|
-
"data-has-value":
|
|
3531
|
-
children: [
|
|
3532
|
-
className:
|
|
3805
|
+
"data-floating": P || void 0,
|
|
3806
|
+
"data-has-value": M ? !0 : void 0,
|
|
3807
|
+
children: [P && /* @__PURE__ */ v("span", {
|
|
3808
|
+
className: jn(I.left),
|
|
3533
3809
|
children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
|
|
3534
3810
|
className: "text-eds-red-main",
|
|
3535
3811
|
"aria-hidden": "true",
|
|
3536
3812
|
children: "*"
|
|
3537
3813
|
})]
|
|
3538
3814
|
}), /* @__PURE__ */ _("textarea", {
|
|
3539
|
-
...
|
|
3540
|
-
id:
|
|
3815
|
+
...O,
|
|
3816
|
+
id: k,
|
|
3541
3817
|
name: x,
|
|
3542
3818
|
rows: h,
|
|
3543
|
-
className:
|
|
3819
|
+
className: L("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none", Sn, I.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
|
|
3544
3820
|
disabled: n,
|
|
3545
3821
|
required: a,
|
|
3546
3822
|
placeholder: o,
|
|
3547
|
-
"aria-invalid":
|
|
3548
|
-
"aria-describedby":
|
|
3549
|
-
value:
|
|
3550
|
-
defaultValue:
|
|
3823
|
+
"aria-invalid": F || void 0,
|
|
3824
|
+
"aria-describedby": F ? `${k}-desc` : void 0,
|
|
3825
|
+
value: j ? y : void 0,
|
|
3826
|
+
defaultValue: j ? void 0 : g,
|
|
3551
3827
|
onClick: T,
|
|
3552
3828
|
onKeyDown: w,
|
|
3553
3829
|
onFocus: C,
|
|
3554
3830
|
onBlur: S,
|
|
3555
3831
|
onChange: (e) => {
|
|
3556
|
-
|
|
3832
|
+
j || A(e.target.value), D?.(e.target.value, e);
|
|
3557
3833
|
}
|
|
3558
3834
|
})]
|
|
3559
3835
|
}),
|
|
3560
|
-
(
|
|
3561
|
-
id: `${
|
|
3836
|
+
(F || p) && /* @__PURE__ */ _("div", {
|
|
3837
|
+
id: `${k}-desc`,
|
|
3562
3838
|
className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
|
|
3563
|
-
"data-state":
|
|
3564
|
-
children:
|
|
3839
|
+
"data-state": F ? "invalid" : r,
|
|
3840
|
+
children: F ? s : p
|
|
3565
3841
|
})
|
|
3566
3842
|
]
|
|
3567
3843
|
});
|
|
3568
3844
|
}
|
|
3569
3845
|
//#endregion
|
|
3570
3846
|
//#region src/components/Select/Select.tsx
|
|
3571
|
-
var
|
|
3847
|
+
var ii = {
|
|
3572
3848
|
default: "",
|
|
3573
3849
|
valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3574
3850
|
invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3575
3851
|
};
|
|
3576
|
-
function
|
|
3577
|
-
let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E =
|
|
3852
|
+
function ai({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: a = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
|
|
3853
|
+
let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = gn[u], D = hn(t), O = D === "floating";
|
|
3578
3854
|
return /* @__PURE__ */ v("div", {
|
|
3579
|
-
className:
|
|
3855
|
+
className: L(vn, x),
|
|
3580
3856
|
"data-fluid": c || void 0,
|
|
3581
3857
|
"data-eds-component": "Select",
|
|
3582
3858
|
"data-label-variant": D,
|
|
3583
3859
|
children: [
|
|
3584
3860
|
/* @__PURE__ */ _("div", {
|
|
3585
|
-
className:
|
|
3861
|
+
className: yn,
|
|
3586
3862
|
children: /* @__PURE__ */ v("label", {
|
|
3587
|
-
className:
|
|
3863
|
+
className: L(bn, O && "sr-only", !O && "font-medium"),
|
|
3588
3864
|
htmlFor: C,
|
|
3589
3865
|
children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
|
|
3590
3866
|
className: "text-eds-red-main",
|
|
@@ -3592,7 +3868,7 @@ function Wr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3592
3868
|
})]
|
|
3593
3869
|
})
|
|
3594
3870
|
}),
|
|
3595
|
-
/* @__PURE__ */ v(
|
|
3871
|
+
/* @__PURE__ */ v(F.Root, {
|
|
3596
3872
|
id: C,
|
|
3597
3873
|
name: m,
|
|
3598
3874
|
disabled: i,
|
|
@@ -3600,27 +3876,27 @@ function Wr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3600
3876
|
onValueChange: y,
|
|
3601
3877
|
defaultValue: g,
|
|
3602
3878
|
value: h,
|
|
3603
|
-
children: [/* @__PURE__ */ v(
|
|
3604
|
-
className:
|
|
3879
|
+
children: [/* @__PURE__ */ v(F.Trigger, {
|
|
3880
|
+
className: L("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, ii[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3605
3881
|
"data-state": l,
|
|
3606
3882
|
"data-size": u,
|
|
3607
3883
|
"data-disabled": i || void 0,
|
|
3608
3884
|
"aria-describedby": T ? `${C}-desc` : void 0,
|
|
3609
3885
|
children: [
|
|
3610
|
-
|
|
3611
|
-
className:
|
|
3886
|
+
O && /* @__PURE__ */ v("span", {
|
|
3887
|
+
className: jn(E.left),
|
|
3612
3888
|
children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
|
|
3613
3889
|
className: "text-eds-red-main",
|
|
3614
3890
|
"aria-hidden": "true",
|
|
3615
3891
|
children: "*"
|
|
3616
3892
|
})]
|
|
3617
3893
|
}),
|
|
3618
|
-
/* @__PURE__ */ _(
|
|
3619
|
-
className:
|
|
3894
|
+
/* @__PURE__ */ _(F.Value, {
|
|
3895
|
+
className: L("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", Cn, E.text),
|
|
3620
3896
|
placeholder: r
|
|
3621
3897
|
}),
|
|
3622
|
-
/* @__PURE__ */ _(
|
|
3623
|
-
className:
|
|
3898
|
+
/* @__PURE__ */ _(F.Icon, {
|
|
3899
|
+
className: L("inline-flex shrink-0 items-center justify-center rounded-md text-eds-neutral-elements", E.icon),
|
|
3624
3900
|
"aria-hidden": !0,
|
|
3625
3901
|
children: /* @__PURE__ */ _(s, {
|
|
3626
3902
|
className: "size-4 shrink-0",
|
|
@@ -3628,25 +3904,25 @@ function Wr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3628
3904
|
})
|
|
3629
3905
|
})
|
|
3630
3906
|
]
|
|
3631
|
-
}), /* @__PURE__ */ _(
|
|
3632
|
-
className:
|
|
3633
|
-
style:
|
|
3907
|
+
}), /* @__PURE__ */ _(F.Portal, { children: /* @__PURE__ */ _(F.Positioner, {
|
|
3908
|
+
className: kn,
|
|
3909
|
+
style: An,
|
|
3634
3910
|
positionMethod: "fixed",
|
|
3635
3911
|
sideOffset: 4,
|
|
3636
|
-
children: /* @__PURE__ */ _(
|
|
3637
|
-
className:
|
|
3638
|
-
children: /* @__PURE__ */ _(
|
|
3639
|
-
className:
|
|
3640
|
-
children: n.map((e) => /* @__PURE__ */ v(
|
|
3912
|
+
children: /* @__PURE__ */ _(F.Popup, {
|
|
3913
|
+
className: Tn,
|
|
3914
|
+
children: /* @__PURE__ */ _(F.List, {
|
|
3915
|
+
className: En,
|
|
3916
|
+
children: n.map((e) => /* @__PURE__ */ v(F.Item, {
|
|
3641
3917
|
value: e,
|
|
3642
|
-
className:
|
|
3643
|
-
children: [/* @__PURE__ */ _(
|
|
3644
|
-
className:
|
|
3918
|
+
className: Dn,
|
|
3919
|
+
children: [/* @__PURE__ */ _(F.ItemIndicator, {
|
|
3920
|
+
className: On,
|
|
3645
3921
|
children: /* @__PURE__ */ _(o, {
|
|
3646
3922
|
size: 14,
|
|
3647
3923
|
"aria-hidden": !0
|
|
3648
3924
|
})
|
|
3649
|
-
}), /* @__PURE__ */ _(
|
|
3925
|
+
}), /* @__PURE__ */ _(F.ItemText, {
|
|
3650
3926
|
className: "block min-w-0 flex-1 text-left",
|
|
3651
3927
|
children: b ? b(e) : e.label
|
|
3652
3928
|
})]
|
|
@@ -3666,7 +3942,7 @@ function Wr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3666
3942
|
}
|
|
3667
3943
|
//#endregion
|
|
3668
3944
|
//#region src/components/Text/Text.tsx
|
|
3669
|
-
var
|
|
3945
|
+
var oi = {
|
|
3670
3946
|
variant: {
|
|
3671
3947
|
heading1: {
|
|
3672
3948
|
classes: "text-3xl font-semibold",
|
|
@@ -3723,29 +3999,29 @@ var Gr = {
|
|
|
3723
3999
|
description: "Large text"
|
|
3724
4000
|
}
|
|
3725
4001
|
}
|
|
3726
|
-
},
|
|
4002
|
+
}, si = {
|
|
3727
4003
|
variant: "body",
|
|
3728
4004
|
size: "md"
|
|
3729
|
-
},
|
|
4005
|
+
}, ci = /* @__PURE__ */ new Set([
|
|
3730
4006
|
"heading1",
|
|
3731
4007
|
"heading2",
|
|
3732
4008
|
"heading3"
|
|
3733
|
-
]),
|
|
3734
|
-
function
|
|
3735
|
-
let l =
|
|
4009
|
+
]), li = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
|
|
4010
|
+
function ui({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
|
|
4011
|
+
let l = li.has(e), u = ci.has(e), d = w(() => o || (l || u ? "span" : "p"), [
|
|
3736
4012
|
o,
|
|
3737
4013
|
l,
|
|
3738
4014
|
u
|
|
3739
|
-
]), f =
|
|
4015
|
+
]), f = R(oi.variant, e, si.variant), p = R(oi.size, n ?? "md", si.size);
|
|
3740
4016
|
return /* @__PURE__ */ _(d, {
|
|
3741
4017
|
ref: c,
|
|
3742
4018
|
"data-eds-component": "Text",
|
|
3743
|
-
className:
|
|
4019
|
+
className: L(f.classes, !u && p.classes, !u && t && "font-medium", r && "min-w-0 truncate", a),
|
|
3744
4020
|
...s,
|
|
3745
4021
|
children: i
|
|
3746
4022
|
});
|
|
3747
4023
|
}
|
|
3748
|
-
var
|
|
4024
|
+
var di = x(ui), fi = {
|
|
3749
4025
|
layout: {
|
|
3750
4026
|
auto: {
|
|
3751
4027
|
classes: "",
|
|
@@ -3794,17 +4070,17 @@ var Xr = x(Yr), Zr = {
|
|
|
3794
4070
|
description: "Pin column to the right edge of the scroll container"
|
|
3795
4071
|
}
|
|
3796
4072
|
}
|
|
3797
|
-
},
|
|
3798
|
-
let n =
|
|
3799
|
-
return t === "cell" ?
|
|
3800
|
-
},
|
|
4073
|
+
}, pi = (e, t) => {
|
|
4074
|
+
let n = R(fi.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
|
|
4075
|
+
return t === "cell" ? L(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : L(n, r, "bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-eds-neutral-background");
|
|
4076
|
+
}, mi = {
|
|
3801
4077
|
layout: "auto",
|
|
3802
4078
|
variant: "default",
|
|
3803
4079
|
dividers: "row"
|
|
3804
|
-
},
|
|
3805
|
-
let o =
|
|
4080
|
+
}, hi = x(({ layout: e = "auto", dividers: t = mi.dividers, className: n, containerClassName: r, ...i }, a) => {
|
|
4081
|
+
let o = L("isolate w-full", R(fi.layout, e, mi.layout).classes, R(fi.dividers, t, mi.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
|
|
3806
4082
|
return /* @__PURE__ */ _("div", {
|
|
3807
|
-
className:
|
|
4083
|
+
className: L("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
|
|
3808
4084
|
children: /* @__PURE__ */ _("table", {
|
|
3809
4085
|
ref: a,
|
|
3810
4086
|
"data-eds-component": "Table",
|
|
@@ -3812,53 +4088,53 @@ var Xr = x(Yr), Zr = {
|
|
|
3812
4088
|
className: o
|
|
3813
4089
|
})
|
|
3814
4090
|
});
|
|
3815
|
-
}),
|
|
3816
|
-
let i = e === "compact", a =
|
|
4091
|
+
}), gi = x(({ variant: e = "default", sticky: t, ...n }, r) => {
|
|
4092
|
+
let i = e === "compact", a = L("group/header", i && "[&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
|
|
3817
4093
|
return /* @__PURE__ */ _("thead", {
|
|
3818
4094
|
ref: r,
|
|
3819
4095
|
...n,
|
|
3820
4096
|
className: a,
|
|
3821
4097
|
...i && { "data-compact": "" }
|
|
3822
4098
|
});
|
|
3823
|
-
}),
|
|
3824
|
-
let r =
|
|
4099
|
+
}), _i = x(({ sticky: e, ...t }, n) => {
|
|
4100
|
+
let r = L("group relative", e && pi(e, "head"), t.className);
|
|
3825
4101
|
return /* @__PURE__ */ _("th", {
|
|
3826
4102
|
ref: n,
|
|
3827
4103
|
...t,
|
|
3828
4104
|
className: r
|
|
3829
4105
|
});
|
|
3830
|
-
}),
|
|
3831
|
-
let r =
|
|
4106
|
+
}), vi = x(({ variant: e = mi.variant, ...t }, n) => {
|
|
4107
|
+
let r = L(R(fi.variant, e, mi.variant).classes, t.className);
|
|
3832
4108
|
return /* @__PURE__ */ _("tr", {
|
|
3833
4109
|
ref: n,
|
|
3834
4110
|
...t,
|
|
3835
4111
|
className: r
|
|
3836
4112
|
});
|
|
3837
|
-
}),
|
|
4113
|
+
}), yi = x((e, t) => /* @__PURE__ */ _("tbody", {
|
|
3838
4114
|
ref: t,
|
|
3839
4115
|
...e
|
|
3840
|
-
})),
|
|
3841
|
-
let r =
|
|
4116
|
+
})), bi = x(({ sticky: e, ...t }, n) => {
|
|
4117
|
+
let r = L(e && pi(e, "cell"), t.className);
|
|
3842
4118
|
return /* @__PURE__ */ _("td", {
|
|
3843
4119
|
ref: n,
|
|
3844
4120
|
...t,
|
|
3845
4121
|
className: r
|
|
3846
4122
|
});
|
|
3847
|
-
}),
|
|
4123
|
+
}), xi = x((e, t) => /* @__PURE__ */ _("tfoot", {
|
|
3848
4124
|
ref: t,
|
|
3849
4125
|
...e
|
|
3850
|
-
})),
|
|
4126
|
+
})), Si = x((e, t) => /* @__PURE__ */ _("button", {
|
|
3851
4127
|
ref: t,
|
|
3852
4128
|
...e,
|
|
3853
4129
|
type: "button",
|
|
3854
4130
|
"aria-label": "Redimensionar coluna",
|
|
3855
|
-
className:
|
|
4131
|
+
className: L("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
|
|
3856
4132
|
children: /* @__PURE__ */ _("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
|
|
3857
|
-
})),
|
|
4133
|
+
})), Ci = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(bi, {
|
|
3858
4134
|
ref: o,
|
|
3859
4135
|
...a,
|
|
3860
|
-
className:
|
|
3861
|
-
children: /* @__PURE__ */ _(
|
|
4136
|
+
className: L("w-10 leading-none", a.className),
|
|
4137
|
+
children: /* @__PURE__ */ _(mn, {
|
|
3862
4138
|
checked: e,
|
|
3863
4139
|
indeterminate: t,
|
|
3864
4140
|
onCheckedChange: n,
|
|
@@ -3866,11 +4142,11 @@ var Xr = x(Yr), Zr = {
|
|
|
3866
4142
|
disabled: i,
|
|
3867
4143
|
className: "relative before:absolute before:-inset-3 before:content-['']"
|
|
3868
4144
|
})
|
|
3869
|
-
})),
|
|
4145
|
+
})), wi = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(_i, {
|
|
3870
4146
|
ref: o,
|
|
3871
4147
|
...a,
|
|
3872
|
-
className:
|
|
3873
|
-
children: /* @__PURE__ */ _(
|
|
4148
|
+
className: L("w-10 leading-none", a.className),
|
|
4149
|
+
children: /* @__PURE__ */ _(mn, {
|
|
3874
4150
|
checked: e,
|
|
3875
4151
|
indeterminate: t,
|
|
3876
4152
|
onCheckedChange: n,
|
|
@@ -3879,38 +4155,38 @@ var Xr = x(Yr), Zr = {
|
|
|
3879
4155
|
className: "relative before:absolute before:-inset-3 before:content-['']"
|
|
3880
4156
|
})
|
|
3881
4157
|
}));
|
|
3882
|
-
|
|
3883
|
-
var
|
|
3884
|
-
Header:
|
|
3885
|
-
Head:
|
|
3886
|
-
Row:
|
|
3887
|
-
Body:
|
|
3888
|
-
Cell:
|
|
3889
|
-
CheckCell:
|
|
3890
|
-
CheckHead:
|
|
3891
|
-
Footer:
|
|
3892
|
-
ResizeHandle:
|
|
4158
|
+
hi.displayName = "Table", yi.displayName = "Table.Body", _i.displayName = "Table.Head", vi.displayName = "Table.Row", bi.displayName = "Table.Cell", xi.displayName = "Table.Footer", gi.displayName = "Table.Header", Si.displayName = "Table.ResizeHandle", Ci.displayName = "Table.CheckCell", wi.displayName = "Table.CheckHead";
|
|
4159
|
+
var Y = Object.assign(hi, {
|
|
4160
|
+
Header: gi,
|
|
4161
|
+
Head: _i,
|
|
4162
|
+
Row: vi,
|
|
4163
|
+
Body: yi,
|
|
4164
|
+
Cell: bi,
|
|
4165
|
+
CheckCell: Ci,
|
|
4166
|
+
CheckHead: wi,
|
|
4167
|
+
Footer: xi,
|
|
4168
|
+
ResizeHandle: Si
|
|
3893
4169
|
});
|
|
3894
4170
|
//#endregion
|
|
3895
4171
|
//#region ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
|
|
3896
|
-
function
|
|
4172
|
+
function Ti(e, t) {
|
|
3897
4173
|
return typeof e == "function" ? e(t) : e;
|
|
3898
4174
|
}
|
|
3899
|
-
function
|
|
4175
|
+
function X(e, t) {
|
|
3900
4176
|
return (n) => {
|
|
3901
4177
|
t.setState((t) => ({
|
|
3902
4178
|
...t,
|
|
3903
|
-
[e]:
|
|
4179
|
+
[e]: Ti(n, t[e])
|
|
3904
4180
|
}));
|
|
3905
4181
|
};
|
|
3906
4182
|
}
|
|
3907
|
-
function
|
|
4183
|
+
function Ei(e) {
|
|
3908
4184
|
return e instanceof Function;
|
|
3909
4185
|
}
|
|
3910
|
-
function
|
|
4186
|
+
function Di(e) {
|
|
3911
4187
|
return Array.isArray(e) && e.every((e) => typeof e == "number");
|
|
3912
4188
|
}
|
|
3913
|
-
function
|
|
4189
|
+
function Oi(e, t) {
|
|
3914
4190
|
let n = [], r = (e) => {
|
|
3915
4191
|
e.forEach((e) => {
|
|
3916
4192
|
n.push(e);
|
|
@@ -3949,7 +4225,7 @@ function Q(e, t, n, r) {
|
|
|
3949
4225
|
onChange: r
|
|
3950
4226
|
};
|
|
3951
4227
|
}
|
|
3952
|
-
function
|
|
4228
|
+
function ki(e, t, n, r) {
|
|
3953
4229
|
let i = {
|
|
3954
4230
|
id: `${t.id}_${n.id}`,
|
|
3955
4231
|
row: t,
|
|
@@ -3974,7 +4250,7 @@ function hi(e, t, n, r) {
|
|
|
3974
4250
|
r.createCell == null || r.createCell(i, n, t, e);
|
|
3975
4251
|
}, {}), i;
|
|
3976
4252
|
}
|
|
3977
|
-
function
|
|
4253
|
+
function Ai(e, t, n, r) {
|
|
3978
4254
|
let i = {
|
|
3979
4255
|
...e._getDefaultColumnDef(),
|
|
3980
4256
|
...t
|
|
@@ -4001,7 +4277,7 @@ function gi(e, t, n, r) {
|
|
|
4001
4277
|
return c;
|
|
4002
4278
|
}
|
|
4003
4279
|
var $ = "debugHeaders";
|
|
4004
|
-
function
|
|
4280
|
+
function ji(e, t, n) {
|
|
4005
4281
|
let r = {
|
|
4006
4282
|
id: n.id ?? t.id,
|
|
4007
4283
|
column: t,
|
|
@@ -4029,7 +4305,7 @@ function _i(e, t, n) {
|
|
|
4029
4305
|
t.createHeader == null || t.createHeader(r, e);
|
|
4030
4306
|
}), r;
|
|
4031
4307
|
}
|
|
4032
|
-
var
|
|
4308
|
+
var Mi = { createTable: (e) => {
|
|
4033
4309
|
e.getHeaderGroups = Z(() => [
|
|
4034
4310
|
e.getAllColumns(),
|
|
4035
4311
|
e.getVisibleLeafColumns(),
|
|
@@ -4037,7 +4313,7 @@ var vi = { createTable: (e) => {
|
|
|
4037
4313
|
e.getState().columnPinning.right
|
|
4038
4314
|
], (t, n, r, i) => {
|
|
4039
4315
|
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
|
|
4040
|
-
return
|
|
4316
|
+
return Ni(t, [
|
|
4041
4317
|
...a,
|
|
4042
4318
|
...s,
|
|
4043
4319
|
...o
|
|
@@ -4047,15 +4323,15 @@ var vi = { createTable: (e) => {
|
|
|
4047
4323
|
e.getVisibleLeafColumns(),
|
|
4048
4324
|
e.getState().columnPinning.left,
|
|
4049
4325
|
e.getState().columnPinning.right
|
|
4050
|
-
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))),
|
|
4326
|
+
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), Ni(t, n, e, "center")), Q(e.options, $, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
|
|
4051
4327
|
e.getAllColumns(),
|
|
4052
4328
|
e.getVisibleLeafColumns(),
|
|
4053
4329
|
e.getState().columnPinning.left
|
|
4054
|
-
], (t, n, r) =>
|
|
4330
|
+
], (t, n, r) => Ni(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, $, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
|
|
4055
4331
|
e.getAllColumns(),
|
|
4056
4332
|
e.getVisibleLeafColumns(),
|
|
4057
4333
|
e.getState().columnPinning.right
|
|
4058
|
-
], (t, n, r) =>
|
|
4334
|
+
], (t, n, r) => Ni(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), Q(e.options, $, "getRightHeaderGroups")), e.getFooterGroups = Z(() => [e.getHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getFooterGroups")), e.getLeftFooterGroups = Z(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getLeftFooterGroups")), e.getCenterFooterGroups = Z(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getCenterFooterGroups")), e.getRightFooterGroups = Z(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getRightFooterGroups")), e.getFlatHeaders = Z(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getFlatHeaders")), e.getLeftFlatHeaders = Z(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Z(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getCenterFlatHeaders")), e.getRightFlatHeaders = Z(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getRightFlatHeaders")), e.getCenterLeafHeaders = Z(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
|
|
4059
4335
|
var t;
|
|
4060
4336
|
return !((t = e.subHeaders) != null && t.length);
|
|
4061
4337
|
}), Q(e.options, $, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Z(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
|
|
@@ -4074,7 +4350,7 @@ var vi = { createTable: (e) => {
|
|
|
4074
4350
|
...n[0]?.headers ?? []
|
|
4075
4351
|
].map((e) => e.getLeafHeaders()).flat(), Q(e.options, $, "getLeafHeaders"));
|
|
4076
4352
|
} };
|
|
4077
|
-
function
|
|
4353
|
+
function Ni(e, t, n, r) {
|
|
4078
4354
|
let i = 0, a = function(e, t) {
|
|
4079
4355
|
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
|
|
4080
4356
|
var n;
|
|
@@ -4092,7 +4368,7 @@ function yi(e, t, n, r) {
|
|
|
4092
4368
|
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
|
|
4093
4369
|
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
|
|
4094
4370
|
else {
|
|
4095
|
-
let i =
|
|
4371
|
+
let i = ji(n, c, {
|
|
4096
4372
|
id: [
|
|
4097
4373
|
r,
|
|
4098
4374
|
t,
|
|
@@ -4109,7 +4385,7 @@ function yi(e, t, n, r) {
|
|
|
4109
4385
|
i.headers.push(e), e.headerGroup = i;
|
|
4110
4386
|
}), o.push(i), t > 0 && s(a, t - 1);
|
|
4111
4387
|
};
|
|
4112
|
-
s(t.map((e, t) =>
|
|
4388
|
+
s(t.map((e, t) => ji(n, e, {
|
|
4113
4389
|
depth: i,
|
|
4114
4390
|
index: t
|
|
4115
4391
|
})), i - 1), o.reverse();
|
|
@@ -4127,7 +4403,7 @@ function yi(e, t, n, r) {
|
|
|
4127
4403
|
});
|
|
4128
4404
|
return c(o[0]?.headers ?? []), o;
|
|
4129
4405
|
}
|
|
4130
|
-
var
|
|
4406
|
+
var Pi = (e, t, n, r, i, a, o) => {
|
|
4131
4407
|
let s = {
|
|
4132
4408
|
id: t,
|
|
4133
4409
|
index: r,
|
|
@@ -4148,7 +4424,7 @@ var bi = (e, t, n, r, i, a, o) => {
|
|
|
4148
4424
|
},
|
|
4149
4425
|
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
|
|
4150
4426
|
subRows: a ?? [],
|
|
4151
|
-
getLeafRows: () =>
|
|
4427
|
+
getLeafRows: () => Oi(s.subRows, (e) => e.subRows),
|
|
4152
4428
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
4153
4429
|
getParentRows: () => {
|
|
4154
4430
|
let e = [], t = s;
|
|
@@ -4159,7 +4435,7 @@ var bi = (e, t, n, r, i, a, o) => {
|
|
|
4159
4435
|
}
|
|
4160
4436
|
return e.reverse();
|
|
4161
4437
|
},
|
|
4162
|
-
getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) =>
|
|
4438
|
+
getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => ki(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
|
|
4163
4439
|
_getAllCellsByColumnId: Z(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), Q(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
4164
4440
|
};
|
|
4165
4441
|
for (let t = 0; t < e._features.length; t++) {
|
|
@@ -4167,87 +4443,87 @@ var bi = (e, t, n, r, i, a, o) => {
|
|
|
4167
4443
|
n == null || n.createRow == null || n.createRow(s, e);
|
|
4168
4444
|
}
|
|
4169
4445
|
return s;
|
|
4170
|
-
},
|
|
4446
|
+
}, Fi = { createColumn: (e, t) => {
|
|
4171
4447
|
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
|
|
4172
4448
|
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
|
|
4173
4449
|
};
|
|
4174
|
-
} },
|
|
4450
|
+
} }, Ii = (e, t, n) => {
|
|
4175
4451
|
var r, i;
|
|
4176
4452
|
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
|
|
4177
4453
|
return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
|
|
4178
4454
|
};
|
|
4179
|
-
|
|
4180
|
-
var
|
|
4455
|
+
Ii.autoRemove = (e) => Ki(e);
|
|
4456
|
+
var Li = (e, t, n) => {
|
|
4181
4457
|
var r;
|
|
4182
4458
|
return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
|
|
4183
4459
|
};
|
|
4184
|
-
|
|
4185
|
-
var
|
|
4460
|
+
Li.autoRemove = (e) => Ki(e);
|
|
4461
|
+
var Ri = (e, t, n) => {
|
|
4186
4462
|
var r;
|
|
4187
4463
|
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
|
|
4188
4464
|
};
|
|
4189
|
-
|
|
4190
|
-
var
|
|
4191
|
-
|
|
4192
|
-
var
|
|
4465
|
+
Ri.autoRemove = (e) => Ki(e);
|
|
4466
|
+
var zi = (e, t, n) => e.getValue(t)?.includes(n);
|
|
4467
|
+
zi.autoRemove = (e) => Ki(e);
|
|
4468
|
+
var Bi = (e, t, n) => !n.some((n) => {
|
|
4193
4469
|
var r;
|
|
4194
4470
|
return !((r = e.getValue(t)) != null && r.includes(n));
|
|
4195
4471
|
});
|
|
4196
|
-
|
|
4197
|
-
var
|
|
4198
|
-
|
|
4199
|
-
var
|
|
4200
|
-
|
|
4201
|
-
var
|
|
4202
|
-
|
|
4203
|
-
var
|
|
4472
|
+
Bi.autoRemove = (e) => Ki(e) || !(e != null && e.length);
|
|
4473
|
+
var Vi = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
|
|
4474
|
+
Vi.autoRemove = (e) => Ki(e) || !(e != null && e.length);
|
|
4475
|
+
var Hi = (e, t, n) => e.getValue(t) === n;
|
|
4476
|
+
Hi.autoRemove = (e) => Ki(e);
|
|
4477
|
+
var Ui = (e, t, n) => e.getValue(t) == n;
|
|
4478
|
+
Ui.autoRemove = (e) => Ki(e);
|
|
4479
|
+
var Wi = (e, t, n) => {
|
|
4204
4480
|
let [r, i] = n, a = e.getValue(t);
|
|
4205
4481
|
return a >= r && a <= i;
|
|
4206
4482
|
};
|
|
4207
|
-
|
|
4483
|
+
Wi.resolveFilterValue = (e) => {
|
|
4208
4484
|
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
|
|
4209
4485
|
if (a > o) {
|
|
4210
4486
|
let e = a;
|
|
4211
4487
|
a = o, o = e;
|
|
4212
4488
|
}
|
|
4213
4489
|
return [a, o];
|
|
4214
|
-
},
|
|
4215
|
-
var
|
|
4216
|
-
includesString:
|
|
4217
|
-
includesStringSensitive:
|
|
4218
|
-
equalsString:
|
|
4219
|
-
arrIncludes:
|
|
4220
|
-
arrIncludesAll:
|
|
4221
|
-
arrIncludesSome:
|
|
4222
|
-
equals:
|
|
4223
|
-
weakEquals:
|
|
4224
|
-
inNumberRange:
|
|
4490
|
+
}, Wi.autoRemove = (e) => Ki(e) || Ki(e[0]) && Ki(e[1]);
|
|
4491
|
+
var Gi = {
|
|
4492
|
+
includesString: Ii,
|
|
4493
|
+
includesStringSensitive: Li,
|
|
4494
|
+
equalsString: Ri,
|
|
4495
|
+
arrIncludes: zi,
|
|
4496
|
+
arrIncludesAll: Bi,
|
|
4497
|
+
arrIncludesSome: Vi,
|
|
4498
|
+
equals: Hi,
|
|
4499
|
+
weakEquals: Ui,
|
|
4500
|
+
inNumberRange: Wi
|
|
4225
4501
|
};
|
|
4226
|
-
function
|
|
4502
|
+
function Ki(e) {
|
|
4227
4503
|
return e == null || e === "";
|
|
4228
4504
|
}
|
|
4229
|
-
var
|
|
4505
|
+
var qi = {
|
|
4230
4506
|
getDefaultColumnDef: () => ({ filterFn: "auto" }),
|
|
4231
4507
|
getInitialState: (e) => ({
|
|
4232
4508
|
columnFilters: [],
|
|
4233
4509
|
...e
|
|
4234
4510
|
}),
|
|
4235
4511
|
getDefaultOptions: (e) => ({
|
|
4236
|
-
onColumnFiltersChange:
|
|
4512
|
+
onColumnFiltersChange: X("columnFilters", e),
|
|
4237
4513
|
filterFromLeafRows: !1,
|
|
4238
4514
|
maxLeafRowFilterDepth: 100
|
|
4239
4515
|
}),
|
|
4240
4516
|
createColumn: (e, t) => {
|
|
4241
4517
|
e.getAutoFilterFn = () => {
|
|
4242
4518
|
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
4243
|
-
return typeof n == "string" ?
|
|
4244
|
-
}, e.getFilterFn = () =>
|
|
4519
|
+
return typeof n == "string" ? Gi.includesString : typeof n == "number" ? Gi.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? Gi.equals : Array.isArray(n) ? Gi.arrIncludes : Gi.weakEquals;
|
|
4520
|
+
}, e.getFilterFn = () => Ei(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? Gi[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
|
|
4245
4521
|
var n;
|
|
4246
4522
|
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
|
|
4247
4523
|
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
|
|
4248
4524
|
t.setColumnFilters((t) => {
|
|
4249
|
-
let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a =
|
|
4250
|
-
if (
|
|
4525
|
+
let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = Ti(n, i ? i.value : void 0);
|
|
4526
|
+
if (Ji(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
|
|
4251
4527
|
let o = {
|
|
4252
4528
|
id: e.id,
|
|
4253
4529
|
value: a
|
|
@@ -4262,19 +4538,19 @@ var Ni = {
|
|
|
4262
4538
|
createTable: (e) => {
|
|
4263
4539
|
e.setColumnFilters = (t) => {
|
|
4264
4540
|
let n = e.getAllLeafColumns();
|
|
4265
|
-
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) =>
|
|
4541
|
+
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => Ti(t, e)?.filter((e) => {
|
|
4266
4542
|
let t = n.find((t) => t.id === e.id);
|
|
4267
|
-
return !(t &&
|
|
4543
|
+
return !(t && Ji(t.getFilterFn(), e.value, t));
|
|
4268
4544
|
}));
|
|
4269
4545
|
}, e.resetColumnFilters = (t) => {
|
|
4270
4546
|
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
|
|
4271
4547
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
4272
4548
|
}
|
|
4273
4549
|
};
|
|
4274
|
-
function
|
|
4550
|
+
function Ji(e, t, n) {
|
|
4275
4551
|
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
|
|
4276
4552
|
}
|
|
4277
|
-
var
|
|
4553
|
+
var Yi = {
|
|
4278
4554
|
sum: (e, t, n) => n.reduce((t, n) => {
|
|
4279
4555
|
let r = n.getValue(e);
|
|
4280
4556
|
return t + (typeof r == "number" ? r : 0);
|
|
@@ -4310,7 +4586,7 @@ var Fi = {
|
|
|
4310
4586
|
median: (e, t) => {
|
|
4311
4587
|
if (!t.length) return;
|
|
4312
4588
|
let n = t.map((t) => t.getValue(e));
|
|
4313
|
-
if (!
|
|
4589
|
+
if (!Di(n)) return;
|
|
4314
4590
|
if (n.length === 1) return n[0];
|
|
4315
4591
|
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
|
|
4316
4592
|
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
|
|
@@ -4318,7 +4594,7 @@ var Fi = {
|
|
|
4318
4594
|
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
|
|
4319
4595
|
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
|
|
4320
4596
|
count: (e, t) => t.length
|
|
4321
|
-
},
|
|
4597
|
+
}, Xi = {
|
|
4322
4598
|
getDefaultColumnDef: () => ({
|
|
4323
4599
|
aggregatedCell: (e) => {
|
|
4324
4600
|
var t;
|
|
@@ -4331,7 +4607,7 @@ var Fi = {
|
|
|
4331
4607
|
...e
|
|
4332
4608
|
}),
|
|
4333
4609
|
getDefaultOptions: (e) => ({
|
|
4334
|
-
onGroupingChange:
|
|
4610
|
+
onGroupingChange: X("grouping", e),
|
|
4335
4611
|
groupedColumnMode: "reorder"
|
|
4336
4612
|
}),
|
|
4337
4613
|
createColumn: (e, t) => {
|
|
@@ -4344,11 +4620,11 @@ var Fi = {
|
|
|
4344
4620
|
};
|
|
4345
4621
|
}, e.getAutoAggregationFn = () => {
|
|
4346
4622
|
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
4347
|
-
if (typeof n == "number") return
|
|
4348
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return
|
|
4623
|
+
if (typeof n == "number") return Yi.sum;
|
|
4624
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return Yi.extent;
|
|
4349
4625
|
}, e.getAggregationFn = () => {
|
|
4350
4626
|
if (!e) throw Error();
|
|
4351
|
-
return
|
|
4627
|
+
return Ei(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? Yi[e.columnDef.aggregationFn];
|
|
4352
4628
|
};
|
|
4353
4629
|
},
|
|
4354
4630
|
createTable: (e) => {
|
|
@@ -4370,20 +4646,20 @@ var Fi = {
|
|
|
4370
4646
|
};
|
|
4371
4647
|
}
|
|
4372
4648
|
};
|
|
4373
|
-
function
|
|
4649
|
+
function Zi(e, t, n) {
|
|
4374
4650
|
if (!(t != null && t.length) || !n) return e;
|
|
4375
4651
|
let r = e.filter((e) => !t.includes(e.id));
|
|
4376
4652
|
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
|
|
4377
4653
|
}
|
|
4378
|
-
var
|
|
4654
|
+
var Qi = {
|
|
4379
4655
|
getInitialState: (e) => ({
|
|
4380
4656
|
columnOrder: [],
|
|
4381
4657
|
...e
|
|
4382
4658
|
}),
|
|
4383
|
-
getDefaultOptions: (e) => ({ onColumnOrderChange:
|
|
4659
|
+
getDefaultOptions: (e) => ({ onColumnOrderChange: X("columnOrder", e) }),
|
|
4384
4660
|
createColumn: (e, t) => {
|
|
4385
|
-
e.getIndex = Z((e) => [
|
|
4386
|
-
let r =
|
|
4661
|
+
e.getIndex = Z((e) => [la(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => la(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
|
|
4662
|
+
let r = la(t, n);
|
|
4387
4663
|
return r[r.length - 1]?.id === e.id;
|
|
4388
4664
|
};
|
|
4389
4665
|
},
|
|
@@ -4405,18 +4681,18 @@ var Ri = {
|
|
|
4405
4681
|
}
|
|
4406
4682
|
i = [...i, ...n];
|
|
4407
4683
|
}
|
|
4408
|
-
return
|
|
4684
|
+
return Zi(i, t, n);
|
|
4409
4685
|
}, Q(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4410
4686
|
}
|
|
4411
|
-
},
|
|
4687
|
+
}, $i = () => ({
|
|
4412
4688
|
left: [],
|
|
4413
4689
|
right: []
|
|
4414
|
-
}),
|
|
4690
|
+
}), ea = {
|
|
4415
4691
|
getInitialState: (e) => ({
|
|
4416
|
-
columnPinning:
|
|
4692
|
+
columnPinning: $i(),
|
|
4417
4693
|
...e
|
|
4418
4694
|
}),
|
|
4419
|
-
getDefaultOptions: (e) => ({ onColumnPinningChange:
|
|
4695
|
+
getDefaultOptions: (e) => ({ onColumnPinningChange: X("columnPinning", e) }),
|
|
4420
4696
|
createColumn: (e, t) => {
|
|
4421
4697
|
e.pin = (n) => {
|
|
4422
4698
|
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
|
|
@@ -4456,7 +4732,7 @@ var Ri = {
|
|
|
4456
4732
|
})), Q(t.options, "debugRows", "getRightVisibleCells"));
|
|
4457
4733
|
},
|
|
4458
4734
|
createTable: (e) => {
|
|
4459
|
-
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ?
|
|
4735
|
+
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? $i() : e.initialState?.columnPinning ?? $i()), e.getIsSomeColumnsPinned = (t) => {
|
|
4460
4736
|
let n = e.getState().columnPinning;
|
|
4461
4737
|
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
|
|
4462
4738
|
}, e.getLeftLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Z(() => [
|
|
@@ -4469,44 +4745,44 @@ var Ri = {
|
|
|
4469
4745
|
}, Q(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
4470
4746
|
}
|
|
4471
4747
|
};
|
|
4472
|
-
function
|
|
4748
|
+
function ta(e) {
|
|
4473
4749
|
return e || (typeof document < "u" ? document : null);
|
|
4474
4750
|
}
|
|
4475
|
-
var
|
|
4751
|
+
var na = {
|
|
4476
4752
|
size: 150,
|
|
4477
4753
|
minSize: 20,
|
|
4478
4754
|
maxSize: 2 ** 53 - 1
|
|
4479
|
-
},
|
|
4755
|
+
}, ra = () => ({
|
|
4480
4756
|
startOffset: null,
|
|
4481
4757
|
startSize: null,
|
|
4482
4758
|
deltaOffset: null,
|
|
4483
4759
|
deltaPercentage: null,
|
|
4484
4760
|
isResizingColumn: !1,
|
|
4485
4761
|
columnSizingStart: []
|
|
4486
|
-
}),
|
|
4487
|
-
getDefaultColumnDef: () =>
|
|
4762
|
+
}), ia = {
|
|
4763
|
+
getDefaultColumnDef: () => na,
|
|
4488
4764
|
getInitialState: (e) => ({
|
|
4489
4765
|
columnSizing: {},
|
|
4490
|
-
columnSizingInfo:
|
|
4766
|
+
columnSizingInfo: ra(),
|
|
4491
4767
|
...e
|
|
4492
4768
|
}),
|
|
4493
4769
|
getDefaultOptions: (e) => ({
|
|
4494
4770
|
columnResizeMode: "onEnd",
|
|
4495
4771
|
columnResizeDirection: "ltr",
|
|
4496
|
-
onColumnSizingChange:
|
|
4497
|
-
onColumnSizingInfoChange:
|
|
4772
|
+
onColumnSizingChange: X("columnSizing", e),
|
|
4773
|
+
onColumnSizingInfoChange: X("columnSizingInfo", e)
|
|
4498
4774
|
}),
|
|
4499
4775
|
createColumn: (e, t) => {
|
|
4500
4776
|
e.getSize = () => {
|
|
4501
4777
|
let n = t.getState().columnSizing[e.id];
|
|
4502
|
-
return Math.min(Math.max(e.columnDef.minSize ??
|
|
4778
|
+
return Math.min(Math.max(e.columnDef.minSize ?? na.minSize, n ?? e.columnDef.size ?? na.size), e.columnDef.maxSize ?? na.maxSize);
|
|
4503
4779
|
}, e.getStart = Z((e) => [
|
|
4504
4780
|
e,
|
|
4505
|
-
|
|
4781
|
+
la(t, e),
|
|
4506
4782
|
t.getState().columnSizing
|
|
4507
4783
|
], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getStart")), e.getAfter = Z((e) => [
|
|
4508
4784
|
e,
|
|
4509
|
-
|
|
4785
|
+
la(t, e),
|
|
4510
4786
|
t.getState().columnSizing
|
|
4511
4787
|
], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
4512
4788
|
t.setColumnSizing((t) => {
|
|
@@ -4530,8 +4806,8 @@ var Hi = {
|
|
|
4530
4806
|
}, e.getResizeHandler = (n) => {
|
|
4531
4807
|
let r = t.getColumn(e.column.id), i = r?.getCanResize();
|
|
4532
4808
|
return (a) => {
|
|
4533
|
-
if (!r || !i || (a.persist == null || a.persist(),
|
|
4534
|
-
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c =
|
|
4809
|
+
if (!r || !i || (a.persist == null || a.persist(), sa(a) && a.touches && a.touches.length > 1)) return;
|
|
4810
|
+
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = sa(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
|
|
4535
4811
|
typeof n == "number" && (t.setColumnSizingInfo((e) => {
|
|
4536
4812
|
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
|
|
4537
4813
|
return e.columnSizingStart.forEach((e) => {
|
|
@@ -4556,7 +4832,7 @@ var Hi = {
|
|
|
4556
4832
|
deltaPercentage: null,
|
|
4557
4833
|
columnSizingStart: []
|
|
4558
4834
|
}));
|
|
4559
|
-
}, p =
|
|
4835
|
+
}, p = ta(n), m = {
|
|
4560
4836
|
moveHandler: (e) => d(e.clientX),
|
|
4561
4837
|
upHandler: (e) => {
|
|
4562
4838
|
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
|
|
@@ -4566,8 +4842,8 @@ var Hi = {
|
|
|
4566
4842
|
upHandler: (e) => {
|
|
4567
4843
|
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
|
|
4568
4844
|
}
|
|
4569
|
-
}, g =
|
|
4570
|
-
|
|
4845
|
+
}, g = oa() ? { passive: !1 } : !1;
|
|
4846
|
+
sa(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
|
|
4571
4847
|
...e,
|
|
4572
4848
|
startOffset: c,
|
|
4573
4849
|
startSize: o,
|
|
@@ -4583,12 +4859,12 @@ var Hi = {
|
|
|
4583
4859
|
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
|
|
4584
4860
|
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
|
|
4585
4861
|
}, e.resetHeaderSizeInfo = (t) => {
|
|
4586
|
-
e.setColumnSizingInfo(t ?
|
|
4862
|
+
e.setColumnSizingInfo(t ? ra() : e.initialState.columnSizingInfo ?? ra());
|
|
4587
4863
|
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
|
|
4588
4864
|
}
|
|
4589
|
-
},
|
|
4590
|
-
function
|
|
4591
|
-
if (typeof
|
|
4865
|
+
}, aa = null;
|
|
4866
|
+
function oa() {
|
|
4867
|
+
if (typeof aa == "boolean") return aa;
|
|
4592
4868
|
let e = !1;
|
|
4593
4869
|
try {
|
|
4594
4870
|
let t = { get passive() {
|
|
@@ -4598,17 +4874,17 @@ function Ki() {
|
|
|
4598
4874
|
} catch {
|
|
4599
4875
|
e = !1;
|
|
4600
4876
|
}
|
|
4601
|
-
return
|
|
4877
|
+
return aa = e, aa;
|
|
4602
4878
|
}
|
|
4603
|
-
function
|
|
4879
|
+
function sa(e) {
|
|
4604
4880
|
return e.type === "touchstart";
|
|
4605
4881
|
}
|
|
4606
|
-
var
|
|
4882
|
+
var ca = {
|
|
4607
4883
|
getInitialState: (e) => ({
|
|
4608
4884
|
columnVisibility: {},
|
|
4609
4885
|
...e
|
|
4610
4886
|
}),
|
|
4611
|
-
getDefaultOptions: (e) => ({ onColumnVisibilityChange:
|
|
4887
|
+
getDefaultOptions: (e) => ({ onColumnVisibilityChange: X("columnVisibility", e) }),
|
|
4612
4888
|
createColumn: (e, t) => {
|
|
4613
4889
|
e.toggleVisibility = (n) => {
|
|
4614
4890
|
e.getCanHide() && t.setColumnVisibility((t) => ({
|
|
@@ -4647,20 +4923,20 @@ var Ji = {
|
|
|
4647
4923
|
};
|
|
4648
4924
|
}
|
|
4649
4925
|
};
|
|
4650
|
-
function
|
|
4926
|
+
function la(e, t) {
|
|
4651
4927
|
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
4652
4928
|
}
|
|
4653
|
-
var
|
|
4929
|
+
var ua = { createTable: (e) => {
|
|
4654
4930
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
4655
4931
|
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
|
|
4656
4932
|
};
|
|
4657
|
-
} },
|
|
4933
|
+
} }, da = {
|
|
4658
4934
|
getInitialState: (e) => ({
|
|
4659
4935
|
globalFilter: void 0,
|
|
4660
4936
|
...e
|
|
4661
4937
|
}),
|
|
4662
4938
|
getDefaultOptions: (e) => ({
|
|
4663
|
-
onGlobalFilterChange:
|
|
4939
|
+
onGlobalFilterChange: X("globalFilter", e),
|
|
4664
4940
|
globalFilterFn: "auto",
|
|
4665
4941
|
getColumnCanGlobalFilter: (t) => {
|
|
4666
4942
|
var n;
|
|
@@ -4672,22 +4948,22 @@ var Xi = { createTable: (e) => {
|
|
|
4672
4948
|
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
|
|
4673
4949
|
},
|
|
4674
4950
|
createTable: (e) => {
|
|
4675
|
-
e.getGlobalAutoFilterFn = () =>
|
|
4951
|
+
e.getGlobalAutoFilterFn = () => Gi.includesString, e.getGlobalFilterFn = () => {
|
|
4676
4952
|
let { globalFilterFn: t } = e.options;
|
|
4677
|
-
return
|
|
4953
|
+
return Ei(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? Gi[t];
|
|
4678
4954
|
}, e.setGlobalFilter = (t) => {
|
|
4679
4955
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
|
|
4680
4956
|
}, e.resetGlobalFilter = (t) => {
|
|
4681
4957
|
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
|
|
4682
4958
|
};
|
|
4683
4959
|
}
|
|
4684
|
-
},
|
|
4960
|
+
}, fa = {
|
|
4685
4961
|
getInitialState: (e) => ({
|
|
4686
4962
|
expanded: {},
|
|
4687
4963
|
...e
|
|
4688
4964
|
}),
|
|
4689
4965
|
getDefaultOptions: (e) => ({
|
|
4690
|
-
onExpandedChange:
|
|
4966
|
+
onExpandedChange: X("expanded", e),
|
|
4691
4967
|
paginateExpandedRows: !0
|
|
4692
4968
|
}),
|
|
4693
4969
|
createTable: (e) => {
|
|
@@ -4758,18 +5034,18 @@ var Xi = { createTable: (e) => {
|
|
|
4758
5034
|
};
|
|
4759
5035
|
};
|
|
4760
5036
|
}
|
|
4761
|
-
},
|
|
4762
|
-
pageIndex:
|
|
4763
|
-
pageSize:
|
|
4764
|
-
}),
|
|
5037
|
+
}, pa = 0, ma = 10, ha = () => ({
|
|
5038
|
+
pageIndex: pa,
|
|
5039
|
+
pageSize: ma
|
|
5040
|
+
}), ga = {
|
|
4765
5041
|
getInitialState: (e) => ({
|
|
4766
5042
|
...e,
|
|
4767
5043
|
pagination: {
|
|
4768
|
-
...
|
|
5044
|
+
...ha(),
|
|
4769
5045
|
...e?.pagination
|
|
4770
5046
|
}
|
|
4771
5047
|
}),
|
|
4772
|
-
getDefaultOptions: (e) => ({ onPaginationChange:
|
|
5048
|
+
getDefaultOptions: (e) => ({ onPaginationChange: X("pagination", e) }),
|
|
4773
5049
|
createTable: (e) => {
|
|
4774
5050
|
let t = !1, n = !1;
|
|
4775
5051
|
e._autoResetPageIndex = () => {
|
|
@@ -4785,11 +5061,11 @@ var Xi = { createTable: (e) => {
|
|
|
4785
5061
|
e.resetPageIndex(), n = !1;
|
|
4786
5062
|
});
|
|
4787
5063
|
}
|
|
4788
|
-
}, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) =>
|
|
4789
|
-
e.setPagination(t ?
|
|
5064
|
+
}, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => Ti(t, e)), e.resetPagination = (t) => {
|
|
5065
|
+
e.setPagination(t ? ha() : e.initialState.pagination ?? ha());
|
|
4790
5066
|
}, e.setPageIndex = (t) => {
|
|
4791
5067
|
e.setPagination((n) => {
|
|
4792
|
-
let r =
|
|
5068
|
+
let r = Ti(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
|
|
4793
5069
|
return r = Math.max(0, Math.min(r, i)), {
|
|
4794
5070
|
...n,
|
|
4795
5071
|
pageIndex: r
|
|
@@ -4797,13 +5073,13 @@ var Xi = { createTable: (e) => {
|
|
|
4797
5073
|
});
|
|
4798
5074
|
}, e.resetPageIndex = (t) => {
|
|
4799
5075
|
var n;
|
|
4800
|
-
e.setPageIndex(t ?
|
|
5076
|
+
e.setPageIndex(t ? pa : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? pa);
|
|
4801
5077
|
}, e.resetPageSize = (t) => {
|
|
4802
5078
|
var n;
|
|
4803
|
-
e.setPageSize(t ?
|
|
5079
|
+
e.setPageSize(t ? ma : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? ma);
|
|
4804
5080
|
}, e.setPageSize = (t) => {
|
|
4805
5081
|
e.setPagination((e) => {
|
|
4806
|
-
let n = Math.max(1,
|
|
5082
|
+
let n = Math.max(1, Ti(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
|
|
4807
5083
|
return {
|
|
4808
5084
|
...e,
|
|
4809
5085
|
pageIndex: i,
|
|
@@ -4811,7 +5087,7 @@ var Xi = { createTable: (e) => {
|
|
|
4811
5087
|
};
|
|
4812
5088
|
});
|
|
4813
5089
|
}, e.setPageCount = (t) => e.setPagination((n) => {
|
|
4814
|
-
let r =
|
|
5090
|
+
let r = Ti(t, e.options.pageCount ?? -1);
|
|
4815
5091
|
return typeof r == "number" && (r = Math.max(-1, r)), {
|
|
4816
5092
|
...n,
|
|
4817
5093
|
pageCount: r
|
|
@@ -4824,15 +5100,15 @@ var Xi = { createTable: (e) => {
|
|
|
4824
5100
|
return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
|
|
4825
5101
|
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
|
|
4826
5102
|
}
|
|
4827
|
-
},
|
|
5103
|
+
}, _a = () => ({
|
|
4828
5104
|
top: [],
|
|
4829
5105
|
bottom: []
|
|
4830
|
-
}),
|
|
5106
|
+
}), va = {
|
|
4831
5107
|
getInitialState: (e) => ({
|
|
4832
|
-
rowPinning:
|
|
5108
|
+
rowPinning: _a(),
|
|
4833
5109
|
...e
|
|
4834
5110
|
}),
|
|
4835
|
-
getDefaultOptions: (e) => ({ onRowPinningChange:
|
|
5111
|
+
getDefaultOptions: (e) => ({ onRowPinningChange: X("rowPinning", e) }),
|
|
4836
5112
|
createRow: (e, t) => {
|
|
4837
5113
|
e.pin = (n, r, i) => {
|
|
4838
5114
|
let a = r ? e.getLeafRows().map((e) => {
|
|
@@ -4871,7 +5147,7 @@ var Xi = { createTable: (e) => {
|
|
|
4871
5147
|
};
|
|
4872
5148
|
},
|
|
4873
5149
|
createTable: (e) => {
|
|
4874
|
-
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ?
|
|
5150
|
+
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? _a() : e.initialState?.rowPinning ?? _a()), e.getIsSomeRowsPinned = (t) => {
|
|
4875
5151
|
let n = e.getState().rowPinning;
|
|
4876
5152
|
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
|
|
4877
5153
|
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
|
|
@@ -4889,13 +5165,13 @@ var Xi = { createTable: (e) => {
|
|
|
4889
5165
|
return e.filter((e) => !r.has(e.id));
|
|
4890
5166
|
}, Q(e.options, "debugRows", "getCenterRows"));
|
|
4891
5167
|
}
|
|
4892
|
-
},
|
|
5168
|
+
}, ya = {
|
|
4893
5169
|
getInitialState: (e) => ({
|
|
4894
5170
|
rowSelection: {},
|
|
4895
5171
|
...e
|
|
4896
5172
|
}),
|
|
4897
5173
|
getDefaultOptions: (e) => ({
|
|
4898
|
-
onRowSelectionChange:
|
|
5174
|
+
onRowSelectionChange: X("rowSelection", e),
|
|
4899
5175
|
enableRowSelection: !0,
|
|
4900
5176
|
enableMultiRowSelection: !0,
|
|
4901
5177
|
enableSubRowSelection: !0
|
|
@@ -4914,17 +5190,17 @@ var Xi = { createTable: (e) => {
|
|
|
4914
5190
|
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
|
|
4915
5191
|
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
|
|
4916
5192
|
return e.getRowModel().rows.forEach((t) => {
|
|
4917
|
-
|
|
5193
|
+
ba(i, t.id, r, !0, e);
|
|
4918
5194
|
}), i;
|
|
4919
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ?
|
|
5195
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? xa(e, n) : {
|
|
4920
5196
|
rows: [],
|
|
4921
5197
|
flatRows: [],
|
|
4922
5198
|
rowsById: {}
|
|
4923
|
-
}, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ?
|
|
5199
|
+
}, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? xa(e, n) : {
|
|
4924
5200
|
rows: [],
|
|
4925
5201
|
flatRows: [],
|
|
4926
5202
|
rowsById: {}
|
|
4927
|
-
}, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ?
|
|
5203
|
+
}, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? xa(e, n) : {
|
|
4928
5204
|
rows: [],
|
|
4929
5205
|
flatRows: [],
|
|
4930
5206
|
rowsById: {}
|
|
@@ -4952,17 +5228,17 @@ var Xi = { createTable: (e) => {
|
|
|
4952
5228
|
t.setRowSelection((a) => {
|
|
4953
5229
|
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
|
|
4954
5230
|
let o = { ...a };
|
|
4955
|
-
return
|
|
5231
|
+
return ba(o, e.id, n, r?.selectChildren ?? !0, t), o;
|
|
4956
5232
|
});
|
|
4957
5233
|
}, e.getIsSelected = () => {
|
|
4958
5234
|
let { rowSelection: n } = t.getState();
|
|
4959
|
-
return
|
|
5235
|
+
return Sa(e, n);
|
|
4960
5236
|
}, e.getIsSomeSelected = () => {
|
|
4961
5237
|
let { rowSelection: n } = t.getState();
|
|
4962
|
-
return
|
|
5238
|
+
return Ca(e, n) === "some";
|
|
4963
5239
|
}, e.getIsAllSubRowsSelected = () => {
|
|
4964
5240
|
let { rowSelection: n } = t.getState();
|
|
4965
|
-
return
|
|
5241
|
+
return Ca(e, n) === "all";
|
|
4966
5242
|
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
|
|
4967
5243
|
let t = e.getCanSelect();
|
|
4968
5244
|
return (n) => {
|
|
@@ -4970,16 +5246,16 @@ var Xi = { createTable: (e) => {
|
|
|
4970
5246
|
};
|
|
4971
5247
|
};
|
|
4972
5248
|
}
|
|
4973
|
-
},
|
|
5249
|
+
}, ba = (e, t, n, r, i) => {
|
|
4974
5250
|
var a;
|
|
4975
5251
|
let o = i.getRow(t, !0);
|
|
4976
|
-
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) =>
|
|
5252
|
+
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => ba(e, t.id, n, r, i));
|
|
4977
5253
|
};
|
|
4978
|
-
function
|
|
5254
|
+
function xa(e, t) {
|
|
4979
5255
|
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
|
|
4980
5256
|
return e.map((e) => {
|
|
4981
5257
|
var t;
|
|
4982
|
-
let o =
|
|
5258
|
+
let o = Sa(e, n);
|
|
4983
5259
|
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
|
|
4984
5260
|
...e,
|
|
4985
5261
|
subRows: a(e.subRows)
|
|
@@ -4992,32 +5268,32 @@ function sa(e, t) {
|
|
|
4992
5268
|
rowsById: i
|
|
4993
5269
|
};
|
|
4994
5270
|
}
|
|
4995
|
-
function
|
|
5271
|
+
function Sa(e, t) {
|
|
4996
5272
|
return t[e.id] ?? !1;
|
|
4997
5273
|
}
|
|
4998
|
-
function
|
|
5274
|
+
function Ca(e, t, n) {
|
|
4999
5275
|
var r;
|
|
5000
5276
|
if (!((r = e.subRows) != null && r.length)) return !1;
|
|
5001
5277
|
let i = !0, a = !1;
|
|
5002
5278
|
return e.subRows.forEach((e) => {
|
|
5003
|
-
if (!(a && !i) && (e.getCanSelect() && (
|
|
5004
|
-
let n =
|
|
5279
|
+
if (!(a && !i) && (e.getCanSelect() && (Sa(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
|
|
5280
|
+
let n = Ca(e, t);
|
|
5005
5281
|
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
|
|
5006
5282
|
}
|
|
5007
5283
|
}), i ? "all" : a ? "some" : !1;
|
|
5008
5284
|
}
|
|
5009
|
-
var
|
|
5285
|
+
var wa = /([0-9]+)/gm, Ta = (e, t, n) => Na(Ma(e.getValue(n)).toLowerCase(), Ma(t.getValue(n)).toLowerCase()), Ea = (e, t, n) => Na(Ma(e.getValue(n)), Ma(t.getValue(n))), Da = (e, t, n) => ja(Ma(e.getValue(n)).toLowerCase(), Ma(t.getValue(n)).toLowerCase()), Oa = (e, t, n) => ja(Ma(e.getValue(n)), Ma(t.getValue(n))), ka = (e, t, n) => {
|
|
5010
5286
|
let r = e.getValue(n), i = t.getValue(n);
|
|
5011
5287
|
return r > i ? 1 : r < i ? -1 : 0;
|
|
5012
|
-
},
|
|
5013
|
-
function
|
|
5288
|
+
}, Aa = (e, t, n) => ja(e.getValue(n), t.getValue(n));
|
|
5289
|
+
function ja(e, t) {
|
|
5014
5290
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
5015
5291
|
}
|
|
5016
|
-
function
|
|
5292
|
+
function Ma(e) {
|
|
5017
5293
|
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5018
5294
|
}
|
|
5019
|
-
function
|
|
5020
|
-
let n = e.split(
|
|
5295
|
+
function Na(e, t) {
|
|
5296
|
+
let n = e.split(wa).filter(Boolean), r = t.split(wa).filter(Boolean);
|
|
5021
5297
|
for (; n.length && r.length;) {
|
|
5022
5298
|
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
|
|
5023
5299
|
if (isNaN(o[0])) {
|
|
@@ -5031,22 +5307,22 @@ function ya(e, t) {
|
|
|
5031
5307
|
}
|
|
5032
5308
|
return n.length - r.length;
|
|
5033
5309
|
}
|
|
5034
|
-
var
|
|
5035
|
-
alphanumeric:
|
|
5036
|
-
alphanumericCaseSensitive:
|
|
5037
|
-
text:
|
|
5038
|
-
textCaseSensitive:
|
|
5039
|
-
datetime:
|
|
5040
|
-
basic:
|
|
5041
|
-
},
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5310
|
+
var Pa = {
|
|
5311
|
+
alphanumeric: Ta,
|
|
5312
|
+
alphanumericCaseSensitive: Ea,
|
|
5313
|
+
text: Da,
|
|
5314
|
+
textCaseSensitive: Oa,
|
|
5315
|
+
datetime: ka,
|
|
5316
|
+
basic: Aa
|
|
5317
|
+
}, Fa = [
|
|
5318
|
+
Mi,
|
|
5319
|
+
ca,
|
|
5320
|
+
Qi,
|
|
5321
|
+
ea,
|
|
5322
|
+
Fi,
|
|
5323
|
+
qi,
|
|
5324
|
+
ua,
|
|
5325
|
+
da,
|
|
5050
5326
|
{
|
|
5051
5327
|
getInitialState: (e) => ({
|
|
5052
5328
|
sorting: [],
|
|
@@ -5057,7 +5333,7 @@ var ba = {
|
|
|
5057
5333
|
sortUndefined: 1
|
|
5058
5334
|
}),
|
|
5059
5335
|
getDefaultOptions: (e) => ({
|
|
5060
|
-
onSortingChange:
|
|
5336
|
+
onSortingChange: X("sorting", e),
|
|
5061
5337
|
isMultiSortEvent: (e) => e.shiftKey
|
|
5062
5338
|
}),
|
|
5063
5339
|
createColumn: (e, t) => {
|
|
@@ -5065,13 +5341,13 @@ var ba = {
|
|
|
5065
5341
|
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
|
|
5066
5342
|
for (let t of n) {
|
|
5067
5343
|
let n = t?.getValue(e.id);
|
|
5068
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return
|
|
5069
|
-
if (typeof n == "string" && (r = !0, n.split(
|
|
5344
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return Pa.datetime;
|
|
5345
|
+
if (typeof n == "string" && (r = !0, n.split(wa).length > 1)) return Pa.alphanumeric;
|
|
5070
5346
|
}
|
|
5071
|
-
return r ?
|
|
5347
|
+
return r ? Pa.text : Pa.basic;
|
|
5072
5348
|
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
|
|
5073
5349
|
if (!e) throw Error();
|
|
5074
|
-
return
|
|
5350
|
+
return Ei(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? Pa[e.columnDef.sortingFn];
|
|
5075
5351
|
}, e.toggleSorting = (n, r) => {
|
|
5076
5352
|
let i = e.getNextSortingOrder(), a = n != null;
|
|
5077
5353
|
t.setSorting((o) => {
|
|
@@ -5108,16 +5384,16 @@ var ba = {
|
|
|
5108
5384
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
5109
5385
|
}
|
|
5110
5386
|
},
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5387
|
+
Xi,
|
|
5388
|
+
fa,
|
|
5389
|
+
ga,
|
|
5390
|
+
va,
|
|
5391
|
+
ya,
|
|
5392
|
+
ia
|
|
5117
5393
|
];
|
|
5118
|
-
function
|
|
5394
|
+
function Ia(e) {
|
|
5119
5395
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
5120
|
-
let t = [...
|
|
5396
|
+
let t = [...Fa, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
|
|
5121
5397
|
...r,
|
|
5122
5398
|
...e
|
|
5123
5399
|
}, a = { ...e.initialState ?? {} };
|
|
@@ -5143,7 +5419,7 @@ function Sa(e) {
|
|
|
5143
5419
|
n.setState(n.initialState);
|
|
5144
5420
|
},
|
|
5145
5421
|
setOptions: (e) => {
|
|
5146
|
-
let t =
|
|
5422
|
+
let t = Ti(e, n.options);
|
|
5147
5423
|
n.options = i(t);
|
|
5148
5424
|
},
|
|
5149
5425
|
getState: () => n.options.state,
|
|
@@ -5174,7 +5450,7 @@ function Sa(e) {
|
|
|
5174
5450
|
getAllColumns: Z(() => [n._getColumnDefs()], (e) => {
|
|
5175
5451
|
let t = function(e, r, i) {
|
|
5176
5452
|
return i === void 0 && (i = 0), e.map((e) => {
|
|
5177
|
-
let a =
|
|
5453
|
+
let a = Ai(n, e, i, r), o = e;
|
|
5178
5454
|
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
|
|
5179
5455
|
});
|
|
5180
5456
|
};
|
|
@@ -5195,7 +5471,7 @@ function Sa(e) {
|
|
|
5195
5471
|
}
|
|
5196
5472
|
return n;
|
|
5197
5473
|
}
|
|
5198
|
-
function
|
|
5474
|
+
function La() {
|
|
5199
5475
|
return (e) => Z(() => [e.options.data], (t) => {
|
|
5200
5476
|
let n = {
|
|
5201
5477
|
rows: [],
|
|
@@ -5205,7 +5481,7 @@ function Ca() {
|
|
|
5205
5481
|
i === void 0 && (i = 0);
|
|
5206
5482
|
let o = [];
|
|
5207
5483
|
for (let c = 0; c < t.length; c++) {
|
|
5208
|
-
let l =
|
|
5484
|
+
let l = Pi(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
|
|
5209
5485
|
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
|
|
5210
5486
|
var s;
|
|
5211
5487
|
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
|
|
@@ -5218,28 +5494,28 @@ function Ca() {
|
|
|
5218
5494
|
}
|
|
5219
5495
|
//#endregion
|
|
5220
5496
|
//#region ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
5221
|
-
function
|
|
5222
|
-
return e ?
|
|
5497
|
+
function Ra(e, t) {
|
|
5498
|
+
return e ? za(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
|
|
5223
5499
|
}
|
|
5224
|
-
function
|
|
5225
|
-
return
|
|
5500
|
+
function za(e) {
|
|
5501
|
+
return Ba(e) || typeof e == "function" || Va(e);
|
|
5226
5502
|
}
|
|
5227
|
-
function
|
|
5503
|
+
function Ba(e) {
|
|
5228
5504
|
return typeof e == "function" && (() => {
|
|
5229
5505
|
let t = Object.getPrototypeOf(e);
|
|
5230
5506
|
return t.prototype && t.prototype.isReactComponent;
|
|
5231
5507
|
})();
|
|
5232
5508
|
}
|
|
5233
|
-
function
|
|
5509
|
+
function Va(e) {
|
|
5234
5510
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
5235
5511
|
}
|
|
5236
|
-
function
|
|
5512
|
+
function Ha(e) {
|
|
5237
5513
|
let t = {
|
|
5238
5514
|
state: {},
|
|
5239
5515
|
onStateChange: () => {},
|
|
5240
5516
|
renderFallbackValue: null,
|
|
5241
5517
|
...e
|
|
5242
|
-
}, [n] = y.useState(() => ({ current:
|
|
5518
|
+
}, [n] = y.useState(() => ({ current: Ia(t) })), [r, i] = y.useState(() => n.current.initialState);
|
|
5243
5519
|
return n.current.setOptions((t) => ({
|
|
5244
5520
|
...t,
|
|
5245
5521
|
...e,
|
|
@@ -5254,13 +5530,13 @@ function Oa(e) {
|
|
|
5254
5530
|
}
|
|
5255
5531
|
//#endregion
|
|
5256
5532
|
//#region src/components/DataTable/DataTable.tsx
|
|
5257
|
-
var
|
|
5533
|
+
var Ua = [
|
|
5258
5534
|
10,
|
|
5259
5535
|
25,
|
|
5260
5536
|
50,
|
|
5261
5537
|
100
|
|
5262
5538
|
];
|
|
5263
|
-
function
|
|
5539
|
+
function Wa({ direction: e }) {
|
|
5264
5540
|
return e === "asc" ? /* @__PURE__ */ _(r, {
|
|
5265
5541
|
className: "size-3.5",
|
|
5266
5542
|
"aria-hidden": !0
|
|
@@ -5272,7 +5548,7 @@ function Aa({ direction: e }) {
|
|
|
5272
5548
|
"aria-hidden": !0
|
|
5273
5549
|
});
|
|
5274
5550
|
}
|
|
5275
|
-
function
|
|
5551
|
+
function Ga({ value: e, onChange: t, options: n = Ua, label: r = "Itens por página" }) {
|
|
5276
5552
|
let i = n.map((e) => ({
|
|
5277
5553
|
value: String(e),
|
|
5278
5554
|
label: String(e)
|
|
@@ -5282,7 +5558,7 @@ function ja({ value: e, onChange: t, options: n = ka, label: r = "Itens por pág
|
|
|
5282
5558
|
children: [/* @__PURE__ */ _("span", {
|
|
5283
5559
|
className: "shrink-0 text-sm text-eds-neutral-elements",
|
|
5284
5560
|
children: r
|
|
5285
|
-
}), /* @__PURE__ */ _(
|
|
5561
|
+
}), /* @__PURE__ */ _(ai, {
|
|
5286
5562
|
label: r,
|
|
5287
5563
|
size: "sm",
|
|
5288
5564
|
items: i,
|
|
@@ -5294,31 +5570,31 @@ function ja({ value: e, onChange: t, options: n = ka, label: r = "Itens por pág
|
|
|
5294
5570
|
})]
|
|
5295
5571
|
});
|
|
5296
5572
|
}
|
|
5297
|
-
function
|
|
5298
|
-
return /* @__PURE__ */ v(
|
|
5573
|
+
function Ka({ columns: e, rows: t = 5, dividers: n, containerClassName: r }) {
|
|
5574
|
+
return /* @__PURE__ */ v(Y, {
|
|
5299
5575
|
dividers: n,
|
|
5300
5576
|
containerClassName: r,
|
|
5301
|
-
children: [/* @__PURE__ */ _(
|
|
5577
|
+
children: [/* @__PURE__ */ _(Y.Header, { children: /* @__PURE__ */ _(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ _(Y.Head, { children: typeof e.header == "string" ? e.header : null }, e.id ?? t)) }) }), /* @__PURE__ */ _(Y.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ _(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ _(Y.Cell, { children: /* @__PURE__ */ _("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" }) }, t)) }, n)) })]
|
|
5302
5578
|
});
|
|
5303
5579
|
}
|
|
5304
|
-
function
|
|
5305
|
-
let C = u !== void 0 && !!d, ee = S ? "!rounded-none !border-0 !bg-transparent" : void 0, w =
|
|
5580
|
+
function qa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, pageSize: o, search: s, sorting: u, onSortingChange: d, emptyStateTitle: p = "Nenhum resultado encontrado", emptyStateDescription: h, meta: g, "aria-label": y, className: b, dividers: x, card: S = !0 }) {
|
|
5581
|
+
let C = u !== void 0 && !!d, ee = S ? "!rounded-none !border-0 !bg-transparent" : void 0, w = Ha({
|
|
5306
5582
|
data: t,
|
|
5307
5583
|
columns: e,
|
|
5308
|
-
getCoreRowModel:
|
|
5584
|
+
getCoreRowModel: La(),
|
|
5309
5585
|
meta: g,
|
|
5310
5586
|
state: C ? { sorting: u } : void 0,
|
|
5311
5587
|
onSortingChange: d,
|
|
5312
5588
|
manualSorting: !0,
|
|
5313
5589
|
enableSorting: C
|
|
5314
|
-
}), T = w.getRowModel().rows, E = i ? Math.max(1, Math.ceil(i.total / Math.max(1, i.limit))) : 1, D = !!i && !!a && E > 1,
|
|
5590
|
+
}), T = w.getRowModel().rows, E = i ? Math.max(1, Math.ceil(i.total / Math.max(1, i.limit))) : 1, D = !!i && !!a && E > 1, O = !!o && !!i, te = D || O;
|
|
5315
5591
|
return /* @__PURE__ */ v("div", {
|
|
5316
5592
|
"data-eds-component": "DataTable",
|
|
5317
|
-
className:
|
|
5593
|
+
className: L("flex w-full flex-col", S ? "overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white" : "gap-4", b),
|
|
5318
5594
|
children: [
|
|
5319
5595
|
s && /* @__PURE__ */ _("div", {
|
|
5320
|
-
className:
|
|
5321
|
-
children: /* @__PURE__ */ _(
|
|
5596
|
+
className: L("flex justify-end", S && "border-b border-eds-outline-border px-4 py-3"),
|
|
5597
|
+
children: /* @__PURE__ */ _(ei, {
|
|
5322
5598
|
label: "Buscar",
|
|
5323
5599
|
labelVariant: "floating",
|
|
5324
5600
|
className: "w-full max-w-sm",
|
|
@@ -5330,7 +5606,7 @@ function Na({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5330
5606
|
})
|
|
5331
5607
|
}),
|
|
5332
5608
|
n && /* @__PURE__ */ v("div", {
|
|
5333
|
-
className:
|
|
5609
|
+
className: L("flex items-center justify-center gap-2 py-2 text-eds-neutral-elements text-sm", S && "border-b border-eds-outline-border"),
|
|
5334
5610
|
role: "status",
|
|
5335
5611
|
"aria-label": "Carregando",
|
|
5336
5612
|
children: [/* @__PURE__ */ _(f, {
|
|
@@ -5338,45 +5614,45 @@ function Na({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5338
5614
|
"aria-hidden": !0
|
|
5339
5615
|
}), "Carregando..."]
|
|
5340
5616
|
}),
|
|
5341
|
-
n ? /* @__PURE__ */ _(
|
|
5617
|
+
n ? /* @__PURE__ */ _(Ka, {
|
|
5342
5618
|
columns: e,
|
|
5343
5619
|
dividers: x,
|
|
5344
5620
|
containerClassName: ee
|
|
5345
5621
|
}) : r ? /* @__PURE__ */ _("div", {
|
|
5346
5622
|
className: S ? "p-6" : void 0,
|
|
5347
|
-
children: /* @__PURE__ */ _(
|
|
5623
|
+
children: /* @__PURE__ */ _(Ur, {
|
|
5348
5624
|
title: p,
|
|
5349
5625
|
description: h ?? "Houve um erro ao buscar os dados. Tente novamente."
|
|
5350
5626
|
})
|
|
5351
5627
|
}) : T.length === 0 ? /* @__PURE__ */ _("div", {
|
|
5352
5628
|
className: S ? "p-6" : void 0,
|
|
5353
|
-
children: /* @__PURE__ */ _(
|
|
5629
|
+
children: /* @__PURE__ */ _(Ur, {
|
|
5354
5630
|
title: p,
|
|
5355
5631
|
description: h
|
|
5356
5632
|
})
|
|
5357
|
-
}) : /* @__PURE__ */ v(
|
|
5633
|
+
}) : /* @__PURE__ */ v(Y, {
|
|
5358
5634
|
"aria-label": y,
|
|
5359
5635
|
dividers: x,
|
|
5360
5636
|
containerClassName: ee,
|
|
5361
|
-
children: [/* @__PURE__ */ _(
|
|
5637
|
+
children: [/* @__PURE__ */ _(Y.Header, { children: w.getHeaderGroups().map((e) => /* @__PURE__ */ _(Y.Row, { children: e.headers.map((e) => {
|
|
5362
5638
|
let t = e.column.getIsSorted();
|
|
5363
|
-
return /* @__PURE__ */ _(
|
|
5639
|
+
return /* @__PURE__ */ _(Y.Head, {
|
|
5364
5640
|
"aria-sort": e.column.getCanSort() ? t === "asc" ? "ascending" : t === "desc" ? "descending" : "none" : void 0,
|
|
5365
5641
|
children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ v("button", {
|
|
5366
5642
|
type: "button",
|
|
5367
5643
|
className: "flex select-none items-center gap-1 font-semibold",
|
|
5368
5644
|
onClick: e.column.getToggleSortingHandler(),
|
|
5369
|
-
children: [
|
|
5370
|
-
}) :
|
|
5645
|
+
children: [Ra(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ _(Wa, { direction: t })]
|
|
5646
|
+
}) : Ra(e.column.columnDef.header, e.getContext())
|
|
5371
5647
|
}, e.id);
|
|
5372
|
-
}) }, e.id)) }), /* @__PURE__ */ _(
|
|
5648
|
+
}) }, e.id)) }), /* @__PURE__ */ _(Y.Body, { children: T.map((e) => /* @__PURE__ */ _(Y.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(Y.Cell, { children: Ra(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
|
|
5373
5649
|
}),
|
|
5374
|
-
|
|
5375
|
-
className:
|
|
5650
|
+
te && /* @__PURE__ */ v("div", {
|
|
5651
|
+
className: L("flex items-center justify-between gap-4", S ? "border-t border-eds-outline-border px-4 py-3" : "rounded-eds-xs bg-white px-3 py-2"),
|
|
5376
5652
|
children: [
|
|
5377
5653
|
/* @__PURE__ */ _("div", {
|
|
5378
5654
|
className: "flex flex-1 items-center",
|
|
5379
|
-
children:
|
|
5655
|
+
children: O && o && i && /* @__PURE__ */ _(Ga, {
|
|
5380
5656
|
...o,
|
|
5381
5657
|
value: i.limit
|
|
5382
5658
|
})
|
|
@@ -5384,7 +5660,7 @@ function Na({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5384
5660
|
D && i && /* @__PURE__ */ v("div", {
|
|
5385
5661
|
className: "flex items-center gap-2",
|
|
5386
5662
|
children: [
|
|
5387
|
-
/* @__PURE__ */ _(
|
|
5663
|
+
/* @__PURE__ */ _(Vt, {
|
|
5388
5664
|
type: "button",
|
|
5389
5665
|
variant: "outline",
|
|
5390
5666
|
size: "sm",
|
|
@@ -5401,7 +5677,7 @@ function Na({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5401
5677
|
E
|
|
5402
5678
|
]
|
|
5403
5679
|
}),
|
|
5404
|
-
/* @__PURE__ */ _(
|
|
5680
|
+
/* @__PURE__ */ _(Vt, {
|
|
5405
5681
|
type: "button",
|
|
5406
5682
|
variant: "outline",
|
|
5407
5683
|
size: "sm",
|
|
@@ -5420,31 +5696,31 @@ function Na({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5420
5696
|
}
|
|
5421
5697
|
//#endregion
|
|
5422
5698
|
//#region src/components/Tabs/Tabs.tsx
|
|
5423
|
-
var
|
|
5699
|
+
var Ja = {
|
|
5424
5700
|
variant: "segmented",
|
|
5425
5701
|
size: "md"
|
|
5426
5702
|
};
|
|
5427
|
-
function
|
|
5428
|
-
let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } =
|
|
5703
|
+
function Ya({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = Ja.variant, size: l = Ja.size }) {
|
|
5704
|
+
let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = Za(d), g = Xa(m, h);
|
|
5429
5705
|
if (u.length === 0) return null;
|
|
5430
5706
|
let y = u[0]?.value, b = t !== void 0, x = {
|
|
5431
5707
|
value: b ? t : void 0,
|
|
5432
5708
|
defaultValue: b ? void 0 : n ?? y
|
|
5433
5709
|
};
|
|
5434
|
-
return /* @__PURE__ */ v(
|
|
5710
|
+
return /* @__PURE__ */ v(I.Root, {
|
|
5435
5711
|
...x,
|
|
5436
5712
|
"data-eds-component": "Tabs",
|
|
5437
|
-
className:
|
|
5713
|
+
className: L("relative isolate min-w-0 font-medium", d && (p ? "rounded-md" : "rounded-lg") + " ring ring-eds-outline-border", a),
|
|
5438
5714
|
onValueChange: (e) => {
|
|
5439
5715
|
r?.(String(e));
|
|
5440
5716
|
},
|
|
5441
|
-
children: [d && /* @__PURE__ */ _("div", { className:
|
|
5717
|
+
children: [d && /* @__PURE__ */ _("div", { className: L("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-eds-neutral-background", p ? "h-6.5" : "h-9") }), /* @__PURE__ */ v(I.List, {
|
|
5442
5718
|
ref: m,
|
|
5443
5719
|
activateOnFocus: i,
|
|
5444
5720
|
"data-overflowing": h ? "" : void 0,
|
|
5445
5721
|
...g(),
|
|
5446
|
-
className:
|
|
5447
|
-
children: [u.map((e) => /* @__PURE__ */ _(
|
|
5722
|
+
className: L("relative flex min-w-0 shrink items-stretch", d && "overflow-x-auto rounded-lg bg-eds-neutral-background px-0.5 [--scroll-fade-width:3rem] scroll-px-(--scroll-fade-width)", d && h && "[mask-image:linear-gradient(to_right,transparent,black_var(--scroll-fade-width),black_calc(100%-var(--scroll-fade-width)),transparent)]", d && (p ? "h-6.5 rounded-md" : "h-9"), h && "cursor-grab active:cursor-grabbing", f && "gap-4 border-b border-eds-outline-border pb-2", f && (p ? "h-6.5" : "h-7.5"), o),
|
|
5723
|
+
children: [u.map((e) => /* @__PURE__ */ _(I.Tab, {
|
|
5448
5724
|
value: e.value,
|
|
5449
5725
|
render: e.render,
|
|
5450
5726
|
onClick: (e) => {
|
|
@@ -5454,16 +5730,16 @@ function Fa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
|
|
|
5454
5730
|
inline: "nearest"
|
|
5455
5731
|
});
|
|
5456
5732
|
},
|
|
5457
|
-
className:
|
|
5733
|
+
className: L("relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", h ? "cursor-grab active:cursor-grabbing" : "cursor-pointer", p ? "text-xs" : "text-base", d && "my-0.5 text-eds-neutral-elements hover:text-eds-neutral-main aria-selected:text-eds-neutral-main focus-visible:ring-inset", d && (p ? "px-2 rounded-sm" : "px-2.5 rounded-md"), f && "text-eds-neutral-elements hover:bg-eds-neutral-elements/10 hover:text-eds-neutral-main aria-selected:hover:bg-eds-neutral-elements/10 aria-selected:font-medium aria-selected:text-eds-neutral-main", f && (p ? "px-1.5 py-2.5" : "px-2 py-3"), e.className),
|
|
5458
5734
|
children: e.label
|
|
5459
|
-
}, e.value)), /* @__PURE__ */ _(
|
|
5735
|
+
}, e.value)), /* @__PURE__ */ _(I.Indicator, { render: (e) => /* @__PURE__ */ _("div", {
|
|
5460
5736
|
...e,
|
|
5461
|
-
className:
|
|
5737
|
+
className: L("absolute z-1 left-0", "w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200", "data-[rendered=false]:scale-90 data-[rendered=false]:opacity-0", d && L("top-(--active-tab-top) h-(--active-tab-height) bg-white shadow-sm ring ring-eds-outline-border", p ? "rounded" : "rounded-md"), f && "bottom-0 h-0.5 bg-eds-blue-main", s)
|
|
5462
5738
|
}) })]
|
|
5463
5739
|
})]
|
|
5464
5740
|
});
|
|
5465
5741
|
}
|
|
5466
|
-
function
|
|
5742
|
+
function Xa(e, t) {
|
|
5467
5743
|
let n = T(null), r = T(!1);
|
|
5468
5744
|
return () => ({
|
|
5469
5745
|
onPointerDownCapture: (i) => {
|
|
@@ -5500,7 +5776,7 @@ function Ia(e, t) {
|
|
|
5500
5776
|
}
|
|
5501
5777
|
});
|
|
5502
5778
|
}
|
|
5503
|
-
function
|
|
5779
|
+
function Za(e) {
|
|
5504
5780
|
let t = T(null), [n, r] = E(!1);
|
|
5505
5781
|
return C(() => {
|
|
5506
5782
|
if (!e) return;
|
|
@@ -5514,4 +5790,4 @@ function La(e) {
|
|
|
5514
5790
|
};
|
|
5515
5791
|
}
|
|
5516
5792
|
//#endregion
|
|
5517
|
-
export {
|
|
5793
|
+
export { dn as Attachment, cn as AttachmentAction, sn as AttachmentActions, rn as AttachmentContent, on as AttachmentDescription, un as AttachmentGroup, nn as AttachmentMedia, an as AttachmentTitle, ln as AttachmentTrigger, H as Badge, ae as Button, ce as COLORS, Wt as Calendar, Qt as Card, mn as Checkbox, Ln as Combobox, qa as DataTable, Hn as DatePicker, vr as DateTimePicker, Mr as Dialog, Ur as Empty, Br as FormDialog, Vt as IconButton, ei as Input, ai as Select, Y as Table, Ya as Tabs, di as Text, ri as Textarea };
|