@vincisys/eyeson 0.4.13 → 0.4.14
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/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/index.js +480 -459
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -119,48 +119,48 @@ var ne = [
|
|
|
119
119
|
"red-middle"
|
|
120
120
|
], re = 365.2425, B = 6048e5, ie = 864e5, V = 3600 * 24;
|
|
121
121
|
V * 7, V * re / 12 * 3;
|
|
122
|
-
var
|
|
122
|
+
var H = Symbol.for("constructDateFrom");
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
|
|
125
|
-
function
|
|
126
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
125
|
+
function U(e, t) {
|
|
126
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && H in e ? e[H](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
127
127
|
}
|
|
128
128
|
//#endregion
|
|
129
129
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function W(e, t) {
|
|
131
|
+
return U(t || e, e);
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
|
|
135
|
-
function
|
|
136
|
-
let r =
|
|
137
|
-
return isNaN(t) ?
|
|
135
|
+
function G(e, t, n) {
|
|
136
|
+
let r = W(e, n?.in);
|
|
137
|
+
return isNaN(t) ? U(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
|
|
141
|
-
function
|
|
142
|
-
let r =
|
|
143
|
-
if (isNaN(t)) return
|
|
141
|
+
function ae(e, t, n) {
|
|
142
|
+
let r = W(e, n?.in);
|
|
143
|
+
if (isNaN(t)) return U(n?.in || e, NaN);
|
|
144
144
|
if (!t) return r;
|
|
145
|
-
let i = r.getDate(), a =
|
|
145
|
+
let i = r.getDate(), a = U(n?.in || e, r.getTime());
|
|
146
146
|
return a.setMonth(r.getMonth() + t + 1, 0), i >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), i), r);
|
|
147
147
|
}
|
|
148
148
|
//#endregion
|
|
149
149
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
return
|
|
150
|
+
var oe = {};
|
|
151
|
+
function K() {
|
|
152
|
+
return oe;
|
|
153
153
|
}
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
|
|
156
|
-
function
|
|
157
|
-
let n =
|
|
156
|
+
function q(e, t) {
|
|
157
|
+
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;
|
|
158
158
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
|
|
162
|
-
function
|
|
163
|
-
return
|
|
162
|
+
function se(e, t) {
|
|
163
|
+
return q(e, {
|
|
164
164
|
...t,
|
|
165
165
|
weekStartsOn: 1
|
|
166
166
|
});
|
|
@@ -168,91 +168,91 @@ function q(e, t) {
|
|
|
168
168
|
//#endregion
|
|
169
169
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
|
|
170
170
|
function ce(e, t) {
|
|
171
|
-
let n =
|
|
171
|
+
let n = W(e, t?.in), r = n.getFullYear(), i = U(n, 0);
|
|
172
172
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
173
|
-
let a =
|
|
173
|
+
let a = se(i), o = U(n, 0);
|
|
174
174
|
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
175
|
-
let s =
|
|
175
|
+
let s = se(o);
|
|
176
176
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
180
|
-
function
|
|
181
|
-
let t =
|
|
180
|
+
function J(e) {
|
|
181
|
+
let t = W(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
182
182
|
return n.setUTCFullYear(t.getFullYear()), e - +n;
|
|
183
183
|
}
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
|
|
186
|
-
function
|
|
187
|
-
let n =
|
|
186
|
+
function le(e, ...t) {
|
|
187
|
+
let n = U.bind(null, e || t.find((e) => typeof e == "object"));
|
|
188
188
|
return t.map(n);
|
|
189
189
|
}
|
|
190
190
|
//#endregion
|
|
191
191
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
|
|
192
|
-
function
|
|
193
|
-
let n =
|
|
192
|
+
function Y(e, t) {
|
|
193
|
+
let n = W(e, t?.in);
|
|
194
194
|
return n.setHours(0, 0, 0, 0), n;
|
|
195
195
|
}
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
|
|
198
|
-
function
|
|
199
|
-
let [r, i] =
|
|
198
|
+
function ue(e, t, n) {
|
|
199
|
+
let [r, i] = le(n?.in, e, t), a = Y(r), o = Y(i), s = +a - J(a), c = +o - J(o);
|
|
200
200
|
return Math.round((s - c) / ie);
|
|
201
201
|
}
|
|
202
202
|
//#endregion
|
|
203
203
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
|
|
204
|
-
function
|
|
205
|
-
let n = ce(e, t), r =
|
|
206
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
204
|
+
function de(e, t) {
|
|
205
|
+
let n = ce(e, t), r = U(t?.in || e, 0);
|
|
206
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), se(r);
|
|
207
207
|
}
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
|
|
210
|
-
function
|
|
211
|
-
return
|
|
210
|
+
function fe(e) {
|
|
211
|
+
return U(e, Date.now());
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
214
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
|
|
215
|
-
function
|
|
216
|
-
let [r, i] =
|
|
217
|
-
return +
|
|
215
|
+
function pe(e, t, n) {
|
|
216
|
+
let [r, i] = le(n?.in, e, t);
|
|
217
|
+
return +Y(r) == +Y(i);
|
|
218
218
|
}
|
|
219
219
|
//#endregion
|
|
220
220
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|
|
221
|
-
function
|
|
221
|
+
function me(e) {
|
|
222
222
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
223
223
|
}
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
|
|
226
|
-
function
|
|
227
|
-
return !(!
|
|
226
|
+
function he(e) {
|
|
227
|
+
return !(!me(e) && typeof e != "number" || isNaN(+W(e)));
|
|
228
228
|
}
|
|
229
229
|
//#endregion
|
|
230
230
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
|
|
231
|
-
function
|
|
232
|
-
let n =
|
|
231
|
+
function ge(e, t) {
|
|
232
|
+
let n = W(e, t?.in), r = n.getMonth();
|
|
233
233
|
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
234
234
|
}
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
|
|
237
|
-
function
|
|
238
|
-
let n =
|
|
237
|
+
function _e(e, t) {
|
|
238
|
+
let n = W(e, t?.in);
|
|
239
239
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
240
240
|
}
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
|
|
243
|
-
function
|
|
244
|
-
let n =
|
|
243
|
+
function ve(e, t) {
|
|
244
|
+
let n = W(e, t?.in);
|
|
245
245
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
246
246
|
}
|
|
247
247
|
//#endregion
|
|
248
248
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
|
|
249
|
-
function
|
|
250
|
-
let n =
|
|
249
|
+
function ye(e, t) {
|
|
250
|
+
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);
|
|
251
251
|
return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
|
|
252
252
|
}
|
|
253
253
|
//#endregion
|
|
254
254
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
255
|
-
var
|
|
255
|
+
var be = {
|
|
256
256
|
lessThanXSeconds: {
|
|
257
257
|
one: "less than a second",
|
|
258
258
|
other: "less than {{count}} seconds"
|
|
@@ -314,20 +314,20 @@ var xe = {
|
|
|
314
314
|
one: "almost 1 year",
|
|
315
315
|
other: "almost {{count}} years"
|
|
316
316
|
}
|
|
317
|
-
},
|
|
318
|
-
let r, i =
|
|
317
|
+
}, xe = (e, t, n) => {
|
|
318
|
+
let r, i = be[e];
|
|
319
319
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
320
320
|
};
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
323
|
-
function
|
|
323
|
+
function Se(e) {
|
|
324
324
|
return (t = {}) => {
|
|
325
325
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
326
326
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
date:
|
|
329
|
+
var Ce = {
|
|
330
|
+
date: Se({
|
|
331
331
|
formats: {
|
|
332
332
|
full: "EEEE, MMMM do, y",
|
|
333
333
|
long: "MMMM do, y",
|
|
@@ -336,7 +336,7 @@ var we = {
|
|
|
336
336
|
},
|
|
337
337
|
defaultWidth: "full"
|
|
338
338
|
}),
|
|
339
|
-
time:
|
|
339
|
+
time: Se({
|
|
340
340
|
formats: {
|
|
341
341
|
full: "h:mm:ss a zzzz",
|
|
342
342
|
long: "h:mm:ss a z",
|
|
@@ -345,7 +345,7 @@ var we = {
|
|
|
345
345
|
},
|
|
346
346
|
defaultWidth: "full"
|
|
347
347
|
}),
|
|
348
|
-
dateTime:
|
|
348
|
+
dateTime: Se({
|
|
349
349
|
formats: {
|
|
350
350
|
full: "{{date}} 'at' {{time}}",
|
|
351
351
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -354,17 +354,17 @@ var we = {
|
|
|
354
354
|
},
|
|
355
355
|
defaultWidth: "full"
|
|
356
356
|
})
|
|
357
|
-
},
|
|
357
|
+
}, we = {
|
|
358
358
|
lastWeek: "'last' eeee 'at' p",
|
|
359
359
|
yesterday: "'yesterday at' p",
|
|
360
360
|
today: "'today at' p",
|
|
361
361
|
tomorrow: "'tomorrow at' p",
|
|
362
362
|
nextWeek: "eeee 'at' p",
|
|
363
363
|
other: "P"
|
|
364
|
-
},
|
|
364
|
+
}, Te = (e, t, n, r) => we[e];
|
|
365
365
|
//#endregion
|
|
366
366
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
367
|
-
function
|
|
367
|
+
function X(e) {
|
|
368
368
|
return (t, n) => {
|
|
369
369
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
370
370
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -378,7 +378,7 @@ function Y(e) {
|
|
|
378
378
|
return i[a];
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
var
|
|
381
|
+
var Ee = {
|
|
382
382
|
ordinalNumber: (e, t) => {
|
|
383
383
|
let n = Number(e), r = n % 100;
|
|
384
384
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -388,7 +388,7 @@ var De = {
|
|
|
388
388
|
}
|
|
389
389
|
return n + "th";
|
|
390
390
|
},
|
|
391
|
-
era:
|
|
391
|
+
era: X({
|
|
392
392
|
values: {
|
|
393
393
|
narrow: ["B", "A"],
|
|
394
394
|
abbreviated: ["BC", "AD"],
|
|
@@ -396,7 +396,7 @@ var De = {
|
|
|
396
396
|
},
|
|
397
397
|
defaultWidth: "wide"
|
|
398
398
|
}),
|
|
399
|
-
quarter:
|
|
399
|
+
quarter: X({
|
|
400
400
|
values: {
|
|
401
401
|
narrow: [
|
|
402
402
|
"1",
|
|
@@ -420,7 +420,7 @@ var De = {
|
|
|
420
420
|
defaultWidth: "wide",
|
|
421
421
|
argumentCallback: (e) => e - 1
|
|
422
422
|
}),
|
|
423
|
-
month:
|
|
423
|
+
month: X({
|
|
424
424
|
values: {
|
|
425
425
|
narrow: [
|
|
426
426
|
"J",
|
|
@@ -467,7 +467,7 @@ var De = {
|
|
|
467
467
|
},
|
|
468
468
|
defaultWidth: "wide"
|
|
469
469
|
}),
|
|
470
|
-
day:
|
|
470
|
+
day: X({
|
|
471
471
|
values: {
|
|
472
472
|
narrow: [
|
|
473
473
|
"S",
|
|
@@ -508,7 +508,7 @@ var De = {
|
|
|
508
508
|
},
|
|
509
509
|
defaultWidth: "wide"
|
|
510
510
|
}),
|
|
511
|
-
dayPeriod:
|
|
511
|
+
dayPeriod: X({
|
|
512
512
|
values: {
|
|
513
513
|
narrow: {
|
|
514
514
|
am: "a",
|
|
@@ -579,11 +579,11 @@ var De = {
|
|
|
579
579
|
};
|
|
580
580
|
//#endregion
|
|
581
581
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
582
|
-
function
|
|
582
|
+
function Z(e) {
|
|
583
583
|
return (t, n = {}) => {
|
|
584
584
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
585
585
|
if (!a) return null;
|
|
586
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
586
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Oe(s, (e) => e.test(o)) : De(s, (e) => e.test(o)), l;
|
|
587
587
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
588
588
|
let u = t.slice(o.length);
|
|
589
589
|
return {
|
|
@@ -592,15 +592,15 @@ function X(e) {
|
|
|
592
592
|
};
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function De(e, t) {
|
|
596
596
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function Oe(e, t) {
|
|
599
599
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
600
600
|
}
|
|
601
601
|
//#endregion
|
|
602
602
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
603
|
-
function
|
|
603
|
+
function ke(e) {
|
|
604
604
|
return (t, n = {}) => {
|
|
605
605
|
let r = t.match(e.matchPattern);
|
|
606
606
|
if (!r) return null;
|
|
@@ -617,19 +617,19 @@ function Ae(e) {
|
|
|
617
617
|
}
|
|
618
618
|
//#endregion
|
|
619
619
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
|
|
620
|
-
var
|
|
620
|
+
var Ae = {
|
|
621
621
|
code: "en-US",
|
|
622
|
-
formatDistance:
|
|
623
|
-
formatLong:
|
|
624
|
-
formatRelative:
|
|
625
|
-
localize:
|
|
622
|
+
formatDistance: xe,
|
|
623
|
+
formatLong: Ce,
|
|
624
|
+
formatRelative: Te,
|
|
625
|
+
localize: Ee,
|
|
626
626
|
match: {
|
|
627
|
-
ordinalNumber:
|
|
627
|
+
ordinalNumber: ke({
|
|
628
628
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
629
629
|
parsePattern: /\d+/i,
|
|
630
630
|
valueCallback: (e) => parseInt(e, 10)
|
|
631
631
|
}),
|
|
632
|
-
era:
|
|
632
|
+
era: Z({
|
|
633
633
|
matchPatterns: {
|
|
634
634
|
narrow: /^(b|a)/i,
|
|
635
635
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
@@ -639,7 +639,7 @@ var je = {
|
|
|
639
639
|
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
640
640
|
defaultParseWidth: "any"
|
|
641
641
|
}),
|
|
642
|
-
quarter:
|
|
642
|
+
quarter: Z({
|
|
643
643
|
matchPatterns: {
|
|
644
644
|
narrow: /^[1234]/i,
|
|
645
645
|
abbreviated: /^q[1234]/i,
|
|
@@ -655,7 +655,7 @@ var je = {
|
|
|
655
655
|
defaultParseWidth: "any",
|
|
656
656
|
valueCallback: (e) => e + 1
|
|
657
657
|
}),
|
|
658
|
-
month:
|
|
658
|
+
month: Z({
|
|
659
659
|
matchPatterns: {
|
|
660
660
|
narrow: /^[jfmasond]/i,
|
|
661
661
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
@@ -694,7 +694,7 @@ var je = {
|
|
|
694
694
|
},
|
|
695
695
|
defaultParseWidth: "any"
|
|
696
696
|
}),
|
|
697
|
-
day:
|
|
697
|
+
day: Z({
|
|
698
698
|
matchPatterns: {
|
|
699
699
|
narrow: /^[smtwf]/i,
|
|
700
700
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
@@ -724,7 +724,7 @@ var je = {
|
|
|
724
724
|
},
|
|
725
725
|
defaultParseWidth: "any"
|
|
726
726
|
}),
|
|
727
|
-
dayPeriod:
|
|
727
|
+
dayPeriod: Z({
|
|
728
728
|
matchPatterns: {
|
|
729
729
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
730
730
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
@@ -750,56 +750,56 @@ var je = {
|
|
|
750
750
|
};
|
|
751
751
|
//#endregion
|
|
752
752
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
|
|
753
|
-
function
|
|
754
|
-
let n =
|
|
755
|
-
return
|
|
753
|
+
function je(e, t) {
|
|
754
|
+
let n = W(e, t?.in);
|
|
755
|
+
return ue(n, ve(n)) + 1;
|
|
756
756
|
}
|
|
757
757
|
//#endregion
|
|
758
758
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
|
|
759
|
-
function
|
|
760
|
-
let n =
|
|
759
|
+
function Me(e, t) {
|
|
760
|
+
let n = W(e, t?.in), r = se(n) - +de(n);
|
|
761
761
|
return Math.round(r / B) + 1;
|
|
762
762
|
}
|
|
763
763
|
//#endregion
|
|
764
764
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
|
|
765
|
-
function
|
|
766
|
-
let n =
|
|
765
|
+
function Ne(e, t) {
|
|
766
|
+
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);
|
|
767
767
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
768
|
-
let s =
|
|
768
|
+
let s = q(o, t), c = U(t?.in || e, 0);
|
|
769
769
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
770
|
-
let l =
|
|
770
|
+
let l = q(c, t);
|
|
771
771
|
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
772
772
|
}
|
|
773
773
|
//#endregion
|
|
774
774
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
|
|
775
|
-
function
|
|
776
|
-
let n =
|
|
777
|
-
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0),
|
|
775
|
+
function Pe(e, t) {
|
|
776
|
+
let n = K(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Ne(e, t), a = U(t?.in || e, 0);
|
|
777
|
+
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), q(a, t);
|
|
778
778
|
}
|
|
779
779
|
//#endregion
|
|
780
780
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
|
|
781
|
-
function
|
|
782
|
-
let n =
|
|
781
|
+
function Fe(e, t) {
|
|
782
|
+
let n = W(e, t?.in), r = q(n, t) - +Pe(n, t);
|
|
783
783
|
return Math.round(r / B) + 1;
|
|
784
784
|
}
|
|
785
785
|
//#endregion
|
|
786
786
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
|
|
787
|
-
function
|
|
787
|
+
function Q(e, t) {
|
|
788
788
|
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
789
789
|
}
|
|
790
790
|
//#endregion
|
|
791
791
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
|
|
792
|
-
var
|
|
792
|
+
var Ie = {
|
|
793
793
|
y(e, t) {
|
|
794
794
|
let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
795
|
-
return
|
|
795
|
+
return Q(t === "yy" ? r % 100 : r, t.length);
|
|
796
796
|
},
|
|
797
797
|
M(e, t) {
|
|
798
798
|
let n = e.getMonth();
|
|
799
|
-
return t === "M" ? String(n + 1) :
|
|
799
|
+
return t === "M" ? String(n + 1) : Q(n + 1, 2);
|
|
800
800
|
},
|
|
801
801
|
d(e, t) {
|
|
802
|
-
return
|
|
802
|
+
return Q(e.getDate(), t.length);
|
|
803
803
|
},
|
|
804
804
|
a(e, t) {
|
|
805
805
|
let n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
@@ -812,22 +812,22 @@ var Le = {
|
|
|
812
812
|
}
|
|
813
813
|
},
|
|
814
814
|
h(e, t) {
|
|
815
|
-
return
|
|
815
|
+
return Q(e.getHours() % 12 || 12, t.length);
|
|
816
816
|
},
|
|
817
817
|
H(e, t) {
|
|
818
|
-
return
|
|
818
|
+
return Q(e.getHours(), t.length);
|
|
819
819
|
},
|
|
820
820
|
m(e, t) {
|
|
821
|
-
return
|
|
821
|
+
return Q(e.getMinutes(), t.length);
|
|
822
822
|
},
|
|
823
823
|
s(e, t) {
|
|
824
|
-
return
|
|
824
|
+
return Q(e.getSeconds(), t.length);
|
|
825
825
|
},
|
|
826
826
|
S(e, t) {
|
|
827
827
|
let n = t.length, r = e.getMilliseconds();
|
|
828
|
-
return
|
|
828
|
+
return Q(Math.trunc(r * 10 ** (n - 3)), t.length);
|
|
829
829
|
}
|
|
830
|
-
},
|
|
830
|
+
}, Le = {
|
|
831
831
|
am: "am",
|
|
832
832
|
pm: "pm",
|
|
833
833
|
midnight: "midnight",
|
|
@@ -836,7 +836,7 @@ var Le = {
|
|
|
836
836
|
afternoon: "afternoon",
|
|
837
837
|
evening: "evening",
|
|
838
838
|
night: "night"
|
|
839
|
-
},
|
|
839
|
+
}, Re = {
|
|
840
840
|
G: function(e, t, n) {
|
|
841
841
|
let r = +(e.getFullYear() > 0);
|
|
842
842
|
switch (t) {
|
|
@@ -852,23 +852,23 @@ var Le = {
|
|
|
852
852
|
let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
853
853
|
return n.ordinalNumber(r, { unit: "year" });
|
|
854
854
|
}
|
|
855
|
-
return
|
|
855
|
+
return Ie.y(e, t);
|
|
856
856
|
},
|
|
857
857
|
Y: function(e, t, n, r) {
|
|
858
|
-
let i =
|
|
859
|
-
return t === "YY" ?
|
|
858
|
+
let i = Ne(e, r), a = i > 0 ? i : 1 - i;
|
|
859
|
+
return t === "YY" ? Q(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : Q(a, t.length);
|
|
860
860
|
},
|
|
861
861
|
R: function(e, t) {
|
|
862
|
-
return
|
|
862
|
+
return Q(ce(e), t.length);
|
|
863
863
|
},
|
|
864
864
|
u: function(e, t) {
|
|
865
|
-
return
|
|
865
|
+
return Q(e.getFullYear(), t.length);
|
|
866
866
|
},
|
|
867
867
|
Q: function(e, t, n) {
|
|
868
868
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
869
869
|
switch (t) {
|
|
870
870
|
case "Q": return String(r);
|
|
871
|
-
case "QQ": return
|
|
871
|
+
case "QQ": return Q(r, 2);
|
|
872
872
|
case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
873
873
|
case "QQQ": return n.quarter(r, {
|
|
874
874
|
width: "abbreviated",
|
|
@@ -888,7 +888,7 @@ var Le = {
|
|
|
888
888
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
889
889
|
switch (t) {
|
|
890
890
|
case "q": return String(r);
|
|
891
|
-
case "qq": return
|
|
891
|
+
case "qq": return Q(r, 2);
|
|
892
892
|
case "qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
893
893
|
case "qqq": return n.quarter(r, {
|
|
894
894
|
width: "abbreviated",
|
|
@@ -908,7 +908,7 @@ var Le = {
|
|
|
908
908
|
let r = e.getMonth();
|
|
909
909
|
switch (t) {
|
|
910
910
|
case "M":
|
|
911
|
-
case "MM": return
|
|
911
|
+
case "MM": return Ie.M(e, t);
|
|
912
912
|
case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
913
913
|
case "MMM": return n.month(r, {
|
|
914
914
|
width: "abbreviated",
|
|
@@ -928,7 +928,7 @@ var Le = {
|
|
|
928
928
|
let r = e.getMonth();
|
|
929
929
|
switch (t) {
|
|
930
930
|
case "L": return String(r + 1);
|
|
931
|
-
case "LL": return
|
|
931
|
+
case "LL": return Q(r + 1, 2);
|
|
932
932
|
case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
933
933
|
case "LLL": return n.month(r, {
|
|
934
934
|
width: "abbreviated",
|
|
@@ -945,19 +945,19 @@ var Le = {
|
|
|
945
945
|
}
|
|
946
946
|
},
|
|
947
947
|
w: function(e, t, n, r) {
|
|
948
|
-
let i =
|
|
949
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
948
|
+
let i = Fe(e, r);
|
|
949
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : Q(i, t.length);
|
|
950
950
|
},
|
|
951
951
|
I: function(e, t, n) {
|
|
952
|
-
let r =
|
|
953
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
952
|
+
let r = Me(e);
|
|
953
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : Q(r, t.length);
|
|
954
954
|
},
|
|
955
955
|
d: function(e, t, n) {
|
|
956
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
956
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Ie.d(e, t);
|
|
957
957
|
},
|
|
958
958
|
D: function(e, t, n) {
|
|
959
|
-
let r =
|
|
960
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
959
|
+
let r = je(e);
|
|
960
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Q(r, t.length);
|
|
961
961
|
},
|
|
962
962
|
E: function(e, t, n) {
|
|
963
963
|
let r = e.getDay();
|
|
@@ -986,7 +986,7 @@ var Le = {
|
|
|
986
986
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
987
987
|
switch (t) {
|
|
988
988
|
case "e": return String(a);
|
|
989
|
-
case "ee": return
|
|
989
|
+
case "ee": return Q(a, 2);
|
|
990
990
|
case "eo": return n.ordinalNumber(a, { unit: "day" });
|
|
991
991
|
case "eee": return n.day(i, {
|
|
992
992
|
width: "abbreviated",
|
|
@@ -1010,7 +1010,7 @@ var Le = {
|
|
|
1010
1010
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
1011
1011
|
switch (t) {
|
|
1012
1012
|
case "c": return String(a);
|
|
1013
|
-
case "cc": return
|
|
1013
|
+
case "cc": return Q(a, t.length);
|
|
1014
1014
|
case "co": return n.ordinalNumber(a, { unit: "day" });
|
|
1015
1015
|
case "ccc": return n.day(i, {
|
|
1016
1016
|
width: "abbreviated",
|
|
@@ -1034,7 +1034,7 @@ var Le = {
|
|
|
1034
1034
|
let r = e.getDay(), i = r === 0 ? 7 : r;
|
|
1035
1035
|
switch (t) {
|
|
1036
1036
|
case "i": return String(i);
|
|
1037
|
-
case "ii": return
|
|
1037
|
+
case "ii": return Q(i, t.length);
|
|
1038
1038
|
case "io": return n.ordinalNumber(i, { unit: "day" });
|
|
1039
1039
|
case "iii": return n.day(r, {
|
|
1040
1040
|
width: "abbreviated",
|
|
@@ -1078,7 +1078,7 @@ var Le = {
|
|
|
1078
1078
|
},
|
|
1079
1079
|
b: function(e, t, n) {
|
|
1080
1080
|
let r = e.getHours(), i;
|
|
1081
|
-
switch (i = r === 12 ?
|
|
1081
|
+
switch (i = r === 12 ? Le.noon : r === 0 ? Le.midnight : r / 12 >= 1 ? "pm" : "am", t) {
|
|
1082
1082
|
case "b":
|
|
1083
1083
|
case "bb": return n.dayPeriod(i, {
|
|
1084
1084
|
width: "abbreviated",
|
|
@@ -1100,7 +1100,7 @@ var Le = {
|
|
|
1100
1100
|
},
|
|
1101
1101
|
B: function(e, t, n) {
|
|
1102
1102
|
let r = e.getHours(), i;
|
|
1103
|
-
switch (i = r >= 17 ?
|
|
1103
|
+
switch (i = r >= 17 ? Le.evening : r >= 12 ? Le.afternoon : r >= 4 ? Le.morning : Le.night, t) {
|
|
1104
1104
|
case "B":
|
|
1105
1105
|
case "BB":
|
|
1106
1106
|
case "BBB": return n.dayPeriod(i, {
|
|
@@ -1122,45 +1122,45 @@ var Le = {
|
|
|
1122
1122
|
let t = e.getHours() % 12;
|
|
1123
1123
|
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
1124
1124
|
}
|
|
1125
|
-
return
|
|
1125
|
+
return Ie.h(e, t);
|
|
1126
1126
|
},
|
|
1127
1127
|
H: function(e, t, n) {
|
|
1128
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
1128
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Ie.H(e, t);
|
|
1129
1129
|
},
|
|
1130
1130
|
K: function(e, t, n) {
|
|
1131
1131
|
let r = e.getHours() % 12;
|
|
1132
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1132
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : Q(r, t.length);
|
|
1133
1133
|
},
|
|
1134
1134
|
k: function(e, t, n) {
|
|
1135
1135
|
let r = e.getHours();
|
|
1136
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1136
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : Q(r, t.length);
|
|
1137
1137
|
},
|
|
1138
1138
|
m: function(e, t, n) {
|
|
1139
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
1139
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Ie.m(e, t);
|
|
1140
1140
|
},
|
|
1141
1141
|
s: function(e, t, n) {
|
|
1142
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
1142
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Ie.s(e, t);
|
|
1143
1143
|
},
|
|
1144
1144
|
S: function(e, t) {
|
|
1145
|
-
return
|
|
1145
|
+
return Ie.S(e, t);
|
|
1146
1146
|
},
|
|
1147
1147
|
X: function(e, t, n) {
|
|
1148
1148
|
let r = e.getTimezoneOffset();
|
|
1149
1149
|
if (r === 0) return "Z";
|
|
1150
1150
|
switch (t) {
|
|
1151
|
-
case "X": return
|
|
1151
|
+
case "X": return Be(r);
|
|
1152
1152
|
case "XXXX":
|
|
1153
|
-
case "XX": return
|
|
1154
|
-
default: return
|
|
1153
|
+
case "XX": return Ve(r);
|
|
1154
|
+
default: return Ve(r, ":");
|
|
1155
1155
|
}
|
|
1156
1156
|
},
|
|
1157
1157
|
x: function(e, t, n) {
|
|
1158
1158
|
let r = e.getTimezoneOffset();
|
|
1159
1159
|
switch (t) {
|
|
1160
|
-
case "x": return
|
|
1160
|
+
case "x": return Be(r);
|
|
1161
1161
|
case "xxxx":
|
|
1162
|
-
case "xx": return
|
|
1163
|
-
default: return
|
|
1162
|
+
case "xx": return Ve(r);
|
|
1163
|
+
default: return Ve(r, ":");
|
|
1164
1164
|
}
|
|
1165
1165
|
},
|
|
1166
1166
|
O: function(e, t, n) {
|
|
@@ -1168,8 +1168,8 @@ var Le = {
|
|
|
1168
1168
|
switch (t) {
|
|
1169
1169
|
case "O":
|
|
1170
1170
|
case "OO":
|
|
1171
|
-
case "OOO": return "GMT" +
|
|
1172
|
-
default: return "GMT" +
|
|
1171
|
+
case "OOO": return "GMT" + ze(r, ":");
|
|
1172
|
+
default: return "GMT" + Ve(r, ":");
|
|
1173
1173
|
}
|
|
1174
1174
|
},
|
|
1175
1175
|
z: function(e, t, n) {
|
|
@@ -1177,49 +1177,49 @@ var Le = {
|
|
|
1177
1177
|
switch (t) {
|
|
1178
1178
|
case "z":
|
|
1179
1179
|
case "zz":
|
|
1180
|
-
case "zzz": return "GMT" +
|
|
1181
|
-
default: return "GMT" +
|
|
1180
|
+
case "zzz": return "GMT" + ze(r, ":");
|
|
1181
|
+
default: return "GMT" + Ve(r, ":");
|
|
1182
1182
|
}
|
|
1183
1183
|
},
|
|
1184
1184
|
t: function(e, t, n) {
|
|
1185
|
-
return
|
|
1185
|
+
return Q(Math.trunc(e / 1e3), t.length);
|
|
1186
1186
|
},
|
|
1187
1187
|
T: function(e, t, n) {
|
|
1188
|
-
return
|
|
1188
|
+
return Q(+e, t.length);
|
|
1189
1189
|
}
|
|
1190
1190
|
};
|
|
1191
|
-
function
|
|
1191
|
+
function ze(e, t = "") {
|
|
1192
1192
|
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
|
|
1193
|
-
return a === 0 ? n + String(i) : n + String(i) + t +
|
|
1193
|
+
return a === 0 ? n + String(i) : n + String(i) + t + Q(a, 2);
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return e % 60 == 0 ? (e > 0 ? "-" : "+") +
|
|
1195
|
+
function Be(e, t) {
|
|
1196
|
+
return e % 60 == 0 ? (e > 0 ? "-" : "+") + Q(Math.abs(e) / 60, 2) : Ve(e, t);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1199
|
-
let n = e > 0 ? "-" : "+", r = Math.abs(e), i =
|
|
1198
|
+
function Ve(e, t = "") {
|
|
1199
|
+
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Q(Math.trunc(r / 60), 2), a = Q(r % 60, 2);
|
|
1200
1200
|
return n + i + t + a;
|
|
1201
1201
|
}
|
|
1202
1202
|
//#endregion
|
|
1203
1203
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
|
|
1204
|
-
var
|
|
1204
|
+
var He = (e, t) => {
|
|
1205
1205
|
switch (e) {
|
|
1206
1206
|
case "P": return t.date({ width: "short" });
|
|
1207
1207
|
case "PP": return t.date({ width: "medium" });
|
|
1208
1208
|
case "PPP": return t.date({ width: "long" });
|
|
1209
1209
|
default: return t.date({ width: "full" });
|
|
1210
1210
|
}
|
|
1211
|
-
},
|
|
1211
|
+
}, Ue = (e, t) => {
|
|
1212
1212
|
switch (e) {
|
|
1213
1213
|
case "p": return t.time({ width: "short" });
|
|
1214
1214
|
case "pp": return t.time({ width: "medium" });
|
|
1215
1215
|
case "ppp": return t.time({ width: "long" });
|
|
1216
1216
|
default: return t.time({ width: "full" });
|
|
1217
1217
|
}
|
|
1218
|
-
},
|
|
1219
|
-
p:
|
|
1218
|
+
}, We = {
|
|
1219
|
+
p: Ue,
|
|
1220
1220
|
P: (e, t) => {
|
|
1221
1221
|
let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
1222
|
-
if (!i) return
|
|
1222
|
+
if (!i) return He(e, t);
|
|
1223
1223
|
let a;
|
|
1224
1224
|
switch (r) {
|
|
1225
1225
|
case "P":
|
|
@@ -1235,42 +1235,42 @@ var Ue = (e, t) => {
|
|
|
1235
1235
|
a = t.dateTime({ width: "full" });
|
|
1236
1236
|
break;
|
|
1237
1237
|
}
|
|
1238
|
-
return a.replace("{{date}}",
|
|
1238
|
+
return a.replace("{{date}}", He(r, t)).replace("{{time}}", Ue(i, t));
|
|
1239
1239
|
}
|
|
1240
|
-
},
|
|
1240
|
+
}, Ge = /^D+$/, Ke = /^Y+$/, qe = [
|
|
1241
1241
|
"D",
|
|
1242
1242
|
"DD",
|
|
1243
1243
|
"YY",
|
|
1244
1244
|
"YYYY"
|
|
1245
1245
|
];
|
|
1246
|
+
function Je(e) {
|
|
1247
|
+
return Ge.test(e);
|
|
1248
|
+
}
|
|
1246
1249
|
function Ye(e) {
|
|
1247
1250
|
return Ke.test(e);
|
|
1248
1251
|
}
|
|
1249
|
-
function Xe(e) {
|
|
1250
|
-
|
|
1252
|
+
function Xe(e, t, n) {
|
|
1253
|
+
let r = Ze(e, t, n);
|
|
1254
|
+
if (console.warn(r), qe.includes(e)) throw RangeError(r);
|
|
1251
1255
|
}
|
|
1252
1256
|
function Ze(e, t, n) {
|
|
1253
|
-
let r = Qe(e, t, n);
|
|
1254
|
-
if (console.warn(r), Je.includes(e)) throw RangeError(r);
|
|
1255
|
-
}
|
|
1256
|
-
function Qe(e, t, n) {
|
|
1257
1257
|
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
1258
1258
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1259
1259
|
}
|
|
1260
1260
|
//#endregion
|
|
1261
1261
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
|
|
1262
|
-
var
|
|
1263
|
-
function
|
|
1264
|
-
let r =
|
|
1265
|
-
if (!
|
|
1266
|
-
let c = t.match(
|
|
1262
|
+
var Qe = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, $e = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, et = /^'([^]*?)'?$/, tt = /''/g, nt = /[a-zA-Z]/;
|
|
1263
|
+
function $(e, t, n) {
|
|
1264
|
+
let r = K(), i = n?.locale ?? r.locale ?? Ae, 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);
|
|
1265
|
+
if (!he(s)) throw RangeError("Invalid time value");
|
|
1266
|
+
let c = t.match($e).map((e) => {
|
|
1267
1267
|
let t = e[0];
|
|
1268
1268
|
if (t === "p" || t === "P") {
|
|
1269
|
-
let n =
|
|
1269
|
+
let n = We[t];
|
|
1270
1270
|
return n(e, i.formatLong);
|
|
1271
1271
|
}
|
|
1272
1272
|
return e;
|
|
1273
|
-
}).join("").match(
|
|
1273
|
+
}).join("").match(Qe).map((e) => {
|
|
1274
1274
|
if (e === "''") return {
|
|
1275
1275
|
isToken: !1,
|
|
1276
1276
|
value: "'"
|
|
@@ -1278,13 +1278,13 @@ function Q(e, t, n) {
|
|
|
1278
1278
|
let t = e[0];
|
|
1279
1279
|
if (t === "'") return {
|
|
1280
1280
|
isToken: !1,
|
|
1281
|
-
value:
|
|
1281
|
+
value: rt(e)
|
|
1282
1282
|
};
|
|
1283
|
-
if (
|
|
1283
|
+
if (Re[t]) return {
|
|
1284
1284
|
isToken: !0,
|
|
1285
1285
|
value: e
|
|
1286
1286
|
};
|
|
1287
|
-
if (t.match(
|
|
1287
|
+
if (t.match(nt)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
|
|
1288
1288
|
return {
|
|
1289
1289
|
isToken: !1,
|
|
1290
1290
|
value: e
|
|
@@ -1299,72 +1299,72 @@ function Q(e, t, n) {
|
|
|
1299
1299
|
return c.map((r) => {
|
|
1300
1300
|
if (!r.isToken) return r.value;
|
|
1301
1301
|
let a = r.value;
|
|
1302
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
1303
|
-
let o =
|
|
1302
|
+
(!n?.useAdditionalWeekYearTokens && Ye(a) || !n?.useAdditionalDayOfYearTokens && Je(a)) && Xe(a, t, String(e));
|
|
1303
|
+
let o = Re[a[0]];
|
|
1304
1304
|
return o(s, a, i.localize, l);
|
|
1305
1305
|
}).join("");
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1308
|
-
let t = e.match(
|
|
1309
|
-
return t ? t[1].replace(
|
|
1307
|
+
function rt(e) {
|
|
1308
|
+
let t = e.match(et);
|
|
1309
|
+
return t ? t[1].replace(tt, "'") : e;
|
|
1310
1310
|
}
|
|
1311
1311
|
//#endregion
|
|
1312
1312
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getHours.js
|
|
1313
|
-
function
|
|
1314
|
-
return
|
|
1313
|
+
function it(e, t) {
|
|
1314
|
+
return W(e, t?.in).getHours();
|
|
1315
1315
|
}
|
|
1316
1316
|
//#endregion
|
|
1317
1317
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMinutes.js
|
|
1318
|
-
function
|
|
1319
|
-
return
|
|
1318
|
+
function at(e, t) {
|
|
1319
|
+
return W(e, t?.in).getMinutes();
|
|
1320
1320
|
}
|
|
1321
1321
|
//#endregion
|
|
1322
1322
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
|
|
1323
|
-
function
|
|
1324
|
-
return +
|
|
1323
|
+
function ot(e, t) {
|
|
1324
|
+
return +W(e) > +W(t);
|
|
1325
1325
|
}
|
|
1326
1326
|
//#endregion
|
|
1327
1327
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
|
|
1328
|
-
function
|
|
1329
|
-
return +
|
|
1328
|
+
function st(e, t) {
|
|
1329
|
+
return +W(e) < +W(t);
|
|
1330
1330
|
}
|
|
1331
1331
|
//#endregion
|
|
1332
1332
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
|
|
1333
|
-
function
|
|
1334
|
-
let [r, i] =
|
|
1333
|
+
function ct(e, t, n) {
|
|
1334
|
+
let [r, i] = le(n?.in, e, t);
|
|
1335
1335
|
return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
|
|
1336
1336
|
}
|
|
1337
1337
|
//#endregion
|
|
1338
1338
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
|
|
1339
|
-
function
|
|
1340
|
-
return
|
|
1339
|
+
function lt(e, t) {
|
|
1340
|
+
return pe(U(t?.in || e, e), fe(t?.in || e));
|
|
1341
1341
|
}
|
|
1342
1342
|
//#endregion
|
|
1343
1343
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setHours.js
|
|
1344
|
-
function
|
|
1345
|
-
let r =
|
|
1344
|
+
function ut(e, t, n) {
|
|
1345
|
+
let r = W(e, n?.in);
|
|
1346
1346
|
return r.setHours(t), r;
|
|
1347
1347
|
}
|
|
1348
1348
|
//#endregion
|
|
1349
1349
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMinutes.js
|
|
1350
|
-
function
|
|
1351
|
-
let r =
|
|
1350
|
+
function dt(e, t, n) {
|
|
1351
|
+
let r = W(e, n?.in);
|
|
1352
1352
|
return r.setMinutes(t), r;
|
|
1353
1353
|
}
|
|
1354
1354
|
//#endregion
|
|
1355
1355
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setSeconds.js
|
|
1356
|
-
function
|
|
1357
|
-
let r =
|
|
1356
|
+
function ft(e, t, n) {
|
|
1357
|
+
let r = W(e, n?.in);
|
|
1358
1358
|
return r.setSeconds(t), r;
|
|
1359
1359
|
}
|
|
1360
1360
|
//#endregion
|
|
1361
1361
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
|
|
1362
|
-
function
|
|
1363
|
-
return
|
|
1362
|
+
function pt(e, t, n) {
|
|
1363
|
+
return ae(e, -t, n);
|
|
1364
1364
|
}
|
|
1365
1365
|
//#endregion
|
|
1366
1366
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
|
|
1367
|
-
var
|
|
1367
|
+
var mt = {
|
|
1368
1368
|
lessThanXSeconds: {
|
|
1369
1369
|
one: "menos de um segundo",
|
|
1370
1370
|
other: "menos de {{count}} segundos"
|
|
@@ -1426,11 +1426,11 @@ var ht = {
|
|
|
1426
1426
|
one: "quase 1 ano",
|
|
1427
1427
|
other: "quase {{count}} anos"
|
|
1428
1428
|
}
|
|
1429
|
-
},
|
|
1430
|
-
let r, i =
|
|
1429
|
+
}, ht = (e, t, n) => {
|
|
1430
|
+
let r, i = mt[e];
|
|
1431
1431
|
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;
|
|
1432
|
-
},
|
|
1433
|
-
date:
|
|
1432
|
+
}, gt = {
|
|
1433
|
+
date: Se({
|
|
1434
1434
|
formats: {
|
|
1435
1435
|
full: "EEEE, d 'de' MMMM 'de' y",
|
|
1436
1436
|
long: "d 'de' MMMM 'de' y",
|
|
@@ -1439,7 +1439,7 @@ var ht = {
|
|
|
1439
1439
|
},
|
|
1440
1440
|
defaultWidth: "full"
|
|
1441
1441
|
}),
|
|
1442
|
-
time:
|
|
1442
|
+
time: Se({
|
|
1443
1443
|
formats: {
|
|
1444
1444
|
full: "HH:mm:ss zzzz",
|
|
1445
1445
|
long: "HH:mm:ss z",
|
|
@@ -1448,7 +1448,7 @@ var ht = {
|
|
|
1448
1448
|
},
|
|
1449
1449
|
defaultWidth: "full"
|
|
1450
1450
|
}),
|
|
1451
|
-
dateTime:
|
|
1451
|
+
dateTime: Se({
|
|
1452
1452
|
formats: {
|
|
1453
1453
|
full: "{{date}} 'às' {{time}}",
|
|
1454
1454
|
long: "{{date}} 'às' {{time}}",
|
|
@@ -1457,7 +1457,7 @@ var ht = {
|
|
|
1457
1457
|
},
|
|
1458
1458
|
defaultWidth: "full"
|
|
1459
1459
|
})
|
|
1460
|
-
},
|
|
1460
|
+
}, _t = {
|
|
1461
1461
|
lastWeek: (e) => {
|
|
1462
1462
|
let t = e.getDay();
|
|
1463
1463
|
return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
|
|
@@ -1467,12 +1467,12 @@ var ht = {
|
|
|
1467
1467
|
tomorrow: "'amanhã às' p",
|
|
1468
1468
|
nextWeek: "eeee 'às' p",
|
|
1469
1469
|
other: "P"
|
|
1470
|
-
},
|
|
1470
|
+
}, vt = {
|
|
1471
1471
|
code: "pt-BR",
|
|
1472
|
-
formatDistance:
|
|
1473
|
-
formatLong:
|
|
1472
|
+
formatDistance: ht,
|
|
1473
|
+
formatLong: gt,
|
|
1474
1474
|
formatRelative: (e, t, n, r) => {
|
|
1475
|
-
let i =
|
|
1475
|
+
let i = _t[e];
|
|
1476
1476
|
return typeof i == "function" ? i(t) : i;
|
|
1477
1477
|
},
|
|
1478
1478
|
localize: {
|
|
@@ -1480,7 +1480,7 @@ var ht = {
|
|
|
1480
1480
|
let n = Number(e);
|
|
1481
1481
|
return t?.unit === "week" ? n + "ª" : n + "º";
|
|
1482
1482
|
},
|
|
1483
|
-
era:
|
|
1483
|
+
era: X({
|
|
1484
1484
|
values: {
|
|
1485
1485
|
narrow: ["AC", "DC"],
|
|
1486
1486
|
abbreviated: ["AC", "DC"],
|
|
@@ -1488,7 +1488,7 @@ var ht = {
|
|
|
1488
1488
|
},
|
|
1489
1489
|
defaultWidth: "wide"
|
|
1490
1490
|
}),
|
|
1491
|
-
quarter:
|
|
1491
|
+
quarter: X({
|
|
1492
1492
|
values: {
|
|
1493
1493
|
narrow: [
|
|
1494
1494
|
"1",
|
|
@@ -1512,7 +1512,7 @@ var ht = {
|
|
|
1512
1512
|
defaultWidth: "wide",
|
|
1513
1513
|
argumentCallback: (e) => e - 1
|
|
1514
1514
|
}),
|
|
1515
|
-
month:
|
|
1515
|
+
month: X({
|
|
1516
1516
|
values: {
|
|
1517
1517
|
narrow: [
|
|
1518
1518
|
"j",
|
|
@@ -1559,7 +1559,7 @@ var ht = {
|
|
|
1559
1559
|
},
|
|
1560
1560
|
defaultWidth: "wide"
|
|
1561
1561
|
}),
|
|
1562
|
-
day:
|
|
1562
|
+
day: X({
|
|
1563
1563
|
values: {
|
|
1564
1564
|
narrow: [
|
|
1565
1565
|
"D",
|
|
@@ -1600,7 +1600,7 @@ var ht = {
|
|
|
1600
1600
|
},
|
|
1601
1601
|
defaultWidth: "wide"
|
|
1602
1602
|
}),
|
|
1603
|
-
dayPeriod:
|
|
1603
|
+
dayPeriod: X({
|
|
1604
1604
|
values: {
|
|
1605
1605
|
narrow: {
|
|
1606
1606
|
am: "a",
|
|
@@ -1670,12 +1670,12 @@ var ht = {
|
|
|
1670
1670
|
})
|
|
1671
1671
|
},
|
|
1672
1672
|
match: {
|
|
1673
|
-
ordinalNumber:
|
|
1673
|
+
ordinalNumber: ke({
|
|
1674
1674
|
matchPattern: /^(\d+)[ºªo]?/i,
|
|
1675
1675
|
parsePattern: /\d+/i,
|
|
1676
1676
|
valueCallback: (e) => parseInt(e, 10)
|
|
1677
1677
|
}),
|
|
1678
|
-
era:
|
|
1678
|
+
era: Z({
|
|
1679
1679
|
matchPatterns: {
|
|
1680
1680
|
narrow: /^(ac|dc|a|d)/i,
|
|
1681
1681
|
abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
|
|
@@ -1688,7 +1688,7 @@ var ht = {
|
|
|
1688
1688
|
},
|
|
1689
1689
|
defaultParseWidth: "any"
|
|
1690
1690
|
}),
|
|
1691
|
-
quarter:
|
|
1691
|
+
quarter: Z({
|
|
1692
1692
|
matchPatterns: {
|
|
1693
1693
|
narrow: /^[1234]/i,
|
|
1694
1694
|
abbreviated: /^T[1234]/i,
|
|
@@ -1704,7 +1704,7 @@ var ht = {
|
|
|
1704
1704
|
defaultParseWidth: "any",
|
|
1705
1705
|
valueCallback: (e) => e + 1
|
|
1706
1706
|
}),
|
|
1707
|
-
month:
|
|
1707
|
+
month: Z({
|
|
1708
1708
|
matchPatterns: {
|
|
1709
1709
|
narrow: /^[jfmajsond]/i,
|
|
1710
1710
|
abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
|
|
@@ -1743,7 +1743,7 @@ var ht = {
|
|
|
1743
1743
|
},
|
|
1744
1744
|
defaultParseWidth: "any"
|
|
1745
1745
|
}),
|
|
1746
|
-
day:
|
|
1746
|
+
day: Z({
|
|
1747
1747
|
matchPatterns: {
|
|
1748
1748
|
narrow: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
1749
1749
|
short: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
@@ -1782,7 +1782,7 @@ var ht = {
|
|
|
1782
1782
|
},
|
|
1783
1783
|
defaultParseWidth: "any"
|
|
1784
1784
|
}),
|
|
1785
|
-
dayPeriod:
|
|
1785
|
+
dayPeriod: Z({
|
|
1786
1786
|
matchPatterns: {
|
|
1787
1787
|
narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
|
|
1788
1788
|
any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
|
|
@@ -1805,7 +1805,7 @@ var ht = {
|
|
|
1805
1805
|
weekStartsOn: 0,
|
|
1806
1806
|
firstWeekContainsDate: 1
|
|
1807
1807
|
}
|
|
1808
|
-
},
|
|
1808
|
+
}, yt = {
|
|
1809
1809
|
sm: {
|
|
1810
1810
|
classes: "size-[calc(1.75rem*1.188*1.1)] rounded-[min(var(--radius-eds-xs),12px)] [&_svg:not([class*='size-'])]:size-3.5",
|
|
1811
1811
|
iconPx: 14
|
|
@@ -1819,8 +1819,8 @@ var ht = {
|
|
|
1819
1819
|
iconPx: 16
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
|
-
function
|
|
1823
|
-
let u = N(
|
|
1822
|
+
function bt({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", size: o = "md", disabled: s, style: c, ...l }) {
|
|
1823
|
+
let u = N(yt, o, I.size), d = N(F.variant, i, I.variant);
|
|
1824
1824
|
return /* @__PURE__ */ p(e, {
|
|
1825
1825
|
style: {
|
|
1826
1826
|
"--eds-btn-accent": `var(--color-eds-${a})`,
|
|
@@ -1842,7 +1842,7 @@ function xt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
|
|
|
1842
1842
|
}
|
|
1843
1843
|
//#endregion
|
|
1844
1844
|
//#region src/components/Calendar/Calendar.tsx
|
|
1845
|
-
var
|
|
1845
|
+
var xt = [
|
|
1846
1846
|
"Dom",
|
|
1847
1847
|
"Seg",
|
|
1848
1848
|
"Ter",
|
|
@@ -1851,16 +1851,16 @@ var St = [
|
|
|
1851
1851
|
"Sex",
|
|
1852
1852
|
"Sáb"
|
|
1853
1853
|
];
|
|
1854
|
-
function
|
|
1855
|
-
let n =
|
|
1856
|
-
for (let e = n; e <= r; e =
|
|
1854
|
+
function St(e, t) {
|
|
1855
|
+
let n = q(_e(e), { weekStartsOn: t }), r = ye(ge(e), { weekStartsOn: t }), i = [];
|
|
1856
|
+
for (let e = n; e <= r; e = G(e, 1)) i.push(e);
|
|
1857
1857
|
return i;
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1860
|
-
let [h, g] = x(() => t ?? /* @__PURE__ */ new Date()), _ = e !== void 0, v = _ ? e : h, ee = y(() => [...
|
|
1859
|
+
function Ct({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: i = 3, weekStartsOn: s = 0, onDayClick: c, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: f }) {
|
|
1860
|
+
let [h, g] = x(() => t ?? /* @__PURE__ */ new Date()), _ = e !== void 0, v = _ ? e : h, ee = y(() => [...xt.slice(s), ...xt.slice(0, s)], [s]), b = y(() => St(v, s), [v, s]), S = y(() => {
|
|
1861
1861
|
let e = /* @__PURE__ */ new Map();
|
|
1862
1862
|
for (let t of r) {
|
|
1863
|
-
let n =
|
|
1863
|
+
let n = $(t.date, "yyyy-MM-dd"), r = e.get(n);
|
|
1864
1864
|
r ? r.push(t) : e.set(n, [t]);
|
|
1865
1865
|
}
|
|
1866
1866
|
return e;
|
|
@@ -1875,19 +1875,19 @@ function wt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
1875
1875
|
className: "mb-3 flex shrink-0 items-center justify-between",
|
|
1876
1876
|
children: [/* @__PURE__ */ p("span", {
|
|
1877
1877
|
className: "text-base font-medium text-eds-neutral-main capitalize",
|
|
1878
|
-
children:
|
|
1878
|
+
children: $(v, "MMMM yyyy", { locale: vt })
|
|
1879
1879
|
}), /* @__PURE__ */ m("div", {
|
|
1880
1880
|
className: "flex items-center gap-1",
|
|
1881
|
-
children: [/* @__PURE__ */ p(
|
|
1881
|
+
children: [/* @__PURE__ */ p(bt, {
|
|
1882
1882
|
icon: a,
|
|
1883
1883
|
label: "Mês anterior",
|
|
1884
1884
|
size: "sm",
|
|
1885
|
-
onClick: () => C(
|
|
1886
|
-
}), /* @__PURE__ */ p(
|
|
1885
|
+
onClick: () => C(pt(v, 1))
|
|
1886
|
+
}), /* @__PURE__ */ p(bt, {
|
|
1887
1887
|
icon: o,
|
|
1888
1888
|
label: "Próximo mês",
|
|
1889
1889
|
size: "sm",
|
|
1890
|
-
onClick: () => C(
|
|
1890
|
+
onClick: () => C(ae(v, 1))
|
|
1891
1891
|
})]
|
|
1892
1892
|
})]
|
|
1893
1893
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -1901,7 +1901,7 @@ function wt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
1901
1901
|
}), /* @__PURE__ */ p("div", {
|
|
1902
1902
|
className: "grid flex-1 auto-rows-fr grid-cols-7",
|
|
1903
1903
|
children: b.map((e, t) => {
|
|
1904
|
-
let n =
|
|
1904
|
+
let n = ct(e, v), r = lt(e), a = $(e, "yyyy-MM-dd"), o = S.get(a) ?? [], s = o.slice(0, i), d = o.length - s.length, f = n ? $(e, "d") : $(e, "d MMM", { locale: vt });
|
|
1905
1905
|
return /* @__PURE__ */ m("div", {
|
|
1906
1906
|
"data-date": a,
|
|
1907
1907
|
onClick: () => c?.(e),
|
|
@@ -1956,73 +1956,73 @@ function wt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
1956
1956
|
}
|
|
1957
1957
|
//#endregion
|
|
1958
1958
|
//#region src/components/Card/Card.tsx
|
|
1959
|
-
function
|
|
1959
|
+
function wt({ className: e, ...t }) {
|
|
1960
1960
|
return /* @__PURE__ */ p("div", {
|
|
1961
1961
|
"data-eds-component": "Card",
|
|
1962
1962
|
className: M("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
|
|
1963
1963
|
...t
|
|
1964
1964
|
});
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function Tt({ className: e, ...t }) {
|
|
1967
1967
|
return /* @__PURE__ */ p("div", {
|
|
1968
1968
|
"data-slot": "card-header",
|
|
1969
1969
|
className: M("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),
|
|
1970
1970
|
...t
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1973
|
+
function Et({ className: e, ...t }) {
|
|
1974
1974
|
return /* @__PURE__ */ p("h3", {
|
|
1975
1975
|
"data-slot": "card-title",
|
|
1976
1976
|
className: M("text-lg leading-none font-semibold text-eds-neutral-main", e),
|
|
1977
1977
|
...t
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function Dt({ className: e, ...t }) {
|
|
1981
1981
|
return /* @__PURE__ */ p("p", {
|
|
1982
1982
|
"data-slot": "card-description",
|
|
1983
1983
|
className: M("text-sm text-eds-neutral-elements", e),
|
|
1984
1984
|
...t
|
|
1985
1985
|
});
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function Ot({ className: e, ...t }) {
|
|
1988
1988
|
return /* @__PURE__ */ p("div", {
|
|
1989
1989
|
"data-slot": "card-action",
|
|
1990
1990
|
className: M("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
1991
1991
|
...t
|
|
1992
1992
|
});
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function kt({ className: e, ...t }) {
|
|
1995
1995
|
return /* @__PURE__ */ p("div", {
|
|
1996
1996
|
"data-slot": "card-content",
|
|
1997
1997
|
className: M("px-6", e),
|
|
1998
1998
|
...t
|
|
1999
1999
|
});
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function At({ className: e, ...t }) {
|
|
2002
2002
|
return /* @__PURE__ */ p("div", {
|
|
2003
2003
|
"data-slot": "card-footer",
|
|
2004
2004
|
className: M("-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),
|
|
2005
2005
|
...t
|
|
2006
2006
|
});
|
|
2007
2007
|
}
|
|
2008
|
-
|
|
2009
|
-
var
|
|
2010
|
-
Header:
|
|
2011
|
-
Title:
|
|
2012
|
-
Description:
|
|
2013
|
-
Action:
|
|
2014
|
-
Content:
|
|
2015
|
-
Footer:
|
|
2016
|
-
}),
|
|
2008
|
+
Tt.displayName = "Card.Header", Et.displayName = "Card.Title", Dt.displayName = "Card.Description", Ot.displayName = "Card.Action", kt.displayName = "Card.Content", At.displayName = "Card.Footer";
|
|
2009
|
+
var jt = Object.assign(wt, {
|
|
2010
|
+
Header: Tt,
|
|
2011
|
+
Title: Et,
|
|
2012
|
+
Description: Dt,
|
|
2013
|
+
Action: Ot,
|
|
2014
|
+
Content: kt,
|
|
2015
|
+
Footer: At
|
|
2016
|
+
}), Mt = {
|
|
2017
2017
|
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" },
|
|
2018
2018
|
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" },
|
|
2019
2019
|
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" }
|
|
2020
|
-
},
|
|
2020
|
+
}, Nt = {
|
|
2021
2021
|
horizontal: { classes: "min-w-40 items-center" },
|
|
2022
2022
|
vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
|
|
2023
2023
|
};
|
|
2024
|
-
function
|
|
2025
|
-
let a = N(
|
|
2024
|
+
function Pt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
|
|
2025
|
+
let a = N(Mt, n, "default"), o = N(Nt, r, "horizontal");
|
|
2026
2026
|
return /* @__PURE__ */ p("div", {
|
|
2027
2027
|
"data-eds-component": "Attachment",
|
|
2028
2028
|
"data-slot": "attachment",
|
|
@@ -2033,7 +2033,7 @@ function Ft({ className: e, state: t = "done", size: n = "default", orientation:
|
|
|
2033
2033
|
...i
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function Ft({ className: e, variant: t = "icon", ...n }) {
|
|
2037
2037
|
return /* @__PURE__ */ p("div", {
|
|
2038
2038
|
"data-slot": "attachment-media",
|
|
2039
2039
|
"data-variant": t,
|
|
@@ -2041,36 +2041,36 @@ function It({ className: e, variant: t = "icon", ...n }) {
|
|
|
2041
2041
|
...n
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function It({ className: e, ...t }) {
|
|
2045
2045
|
return /* @__PURE__ */ p("div", {
|
|
2046
2046
|
"data-slot": "attachment-content",
|
|
2047
2047
|
className: M("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
|
|
2048
2048
|
...t
|
|
2049
2049
|
});
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function Lt({ className: e, ...t }) {
|
|
2052
2052
|
return /* @__PURE__ */ p("span", {
|
|
2053
2053
|
"data-slot": "attachment-title",
|
|
2054
2054
|
className: M("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),
|
|
2055
2055
|
...t
|
|
2056
2056
|
});
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Rt({ className: e, ...t }) {
|
|
2059
2059
|
return /* @__PURE__ */ p("span", {
|
|
2060
2060
|
"data-slot": "attachment-description",
|
|
2061
2061
|
className: M("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),
|
|
2062
2062
|
...t
|
|
2063
2063
|
});
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function zt({ className: e, ...t }) {
|
|
2066
2066
|
return /* @__PURE__ */ p("div", {
|
|
2067
2067
|
"data-slot": "attachment-actions",
|
|
2068
2068
|
className: M("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),
|
|
2069
2069
|
...t
|
|
2070
2070
|
});
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2073
|
-
return /* @__PURE__ */ p(
|
|
2072
|
+
function Bt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
|
|
2073
|
+
return /* @__PURE__ */ p(bt, {
|
|
2074
2074
|
"data-slot": "attachment-action",
|
|
2075
2075
|
variant: e,
|
|
2076
2076
|
color: t,
|
|
@@ -2079,7 +2079,7 @@ function Vt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", clas
|
|
|
2079
2079
|
...i
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function Vt({ className: e, render: t, type: n, ...r }) {
|
|
2083
2083
|
return C({
|
|
2084
2084
|
defaultTagName: "button",
|
|
2085
2085
|
props: S({
|
|
@@ -2090,7 +2090,7 @@ function Ht({ className: e, render: t, type: n, ...r }) {
|
|
|
2090
2090
|
state: { slot: "attachment-trigger" }
|
|
2091
2091
|
});
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function Ht({ className: e, ...t }) {
|
|
2094
2094
|
return /* @__PURE__ */ p("div", {
|
|
2095
2095
|
"data-eds-component": "AttachmentGroup",
|
|
2096
2096
|
"data-slot": "attachment-group",
|
|
@@ -2098,21 +2098,21 @@ function Ut({ className: e, ...t }) {
|
|
|
2098
2098
|
...t
|
|
2099
2099
|
});
|
|
2100
2100
|
}
|
|
2101
|
-
|
|
2102
|
-
var
|
|
2103
|
-
Media:
|
|
2104
|
-
Content:
|
|
2105
|
-
Title:
|
|
2106
|
-
Description:
|
|
2107
|
-
Actions:
|
|
2108
|
-
Action:
|
|
2109
|
-
Trigger:
|
|
2110
|
-
Group:
|
|
2111
|
-
}),
|
|
2112
|
-
function
|
|
2101
|
+
Ft.displayName = "Attachment.Media", It.displayName = "Attachment.Content", Lt.displayName = "Attachment.Title", Rt.displayName = "Attachment.Description", zt.displayName = "Attachment.Actions", Bt.displayName = "Attachment.Action", Vt.displayName = "Attachment.Trigger", Ht.displayName = "Attachment.Group";
|
|
2102
|
+
var Ut = Object.assign(Pt, {
|
|
2103
|
+
Media: Ft,
|
|
2104
|
+
Content: It,
|
|
2105
|
+
Title: Lt,
|
|
2106
|
+
Description: Rt,
|
|
2107
|
+
Actions: zt,
|
|
2108
|
+
Action: Bt,
|
|
2109
|
+
Trigger: Vt,
|
|
2110
|
+
Group: Ht
|
|
2111
|
+
}), Wt = M("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");
|
|
2112
|
+
function Gt({ className: e, ...t }) {
|
|
2113
2113
|
return /* @__PURE__ */ p(w.Root, {
|
|
2114
2114
|
"data-eds-component": "Checkbox",
|
|
2115
|
-
className: M(
|
|
2115
|
+
className: M(Wt, e),
|
|
2116
2116
|
...t,
|
|
2117
2117
|
children: /* @__PURE__ */ p(w.Indicator, {
|
|
2118
2118
|
keepMounted: !0,
|
|
@@ -2132,17 +2132,17 @@ function Kt({ className: e, ...t }) {
|
|
|
2132
2132
|
})
|
|
2133
2133
|
});
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function Kt({ className: e, label: t, disabled: n, ...r }) {
|
|
2136
2136
|
return t ? /* @__PURE__ */ p(T.Root, {
|
|
2137
2137
|
className: M("inline-flex", e),
|
|
2138
2138
|
children: /* @__PURE__ */ m(T.Label, {
|
|
2139
2139
|
className: M("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"),
|
|
2140
|
-
children: [/* @__PURE__ */ p(
|
|
2140
|
+
children: [/* @__PURE__ */ p(Gt, {
|
|
2141
2141
|
disabled: n,
|
|
2142
2142
|
...r
|
|
2143
2143
|
}), /* @__PURE__ */ p("span", { children: t })]
|
|
2144
2144
|
})
|
|
2145
|
-
}) : /* @__PURE__ */ p(
|
|
2145
|
+
}) : /* @__PURE__ */ p(Gt, {
|
|
2146
2146
|
className: e,
|
|
2147
2147
|
disabled: n,
|
|
2148
2148
|
...r
|
|
@@ -2150,10 +2150,10 @@ function qt({ className: e, label: t, disabled: n, ...r }) {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
//#endregion
|
|
2152
2152
|
//#region src/lib/field-styles.ts
|
|
2153
|
-
function
|
|
2153
|
+
function qt(e, t) {
|
|
2154
2154
|
return e ?? (t === !1 ? "outside" : "floating");
|
|
2155
2155
|
}
|
|
2156
|
-
var
|
|
2156
|
+
var Jt = {
|
|
2157
2157
|
sm: {
|
|
2158
2158
|
control: "h-9 px-3",
|
|
2159
2159
|
trigger: "h-9 px-3",
|
|
@@ -2178,12 +2178,12 @@ var Yt = {
|
|
|
2178
2178
|
icon: "size-8",
|
|
2179
2179
|
paddingX: "px-4"
|
|
2180
2180
|
}
|
|
2181
|
-
},
|
|
2181
|
+
}, Yt = {
|
|
2182
2182
|
overlay: "z-[1300]",
|
|
2183
2183
|
popup: "z-[1400]",
|
|
2184
2184
|
overlayValue: 1300,
|
|
2185
2185
|
popupValue: 1400
|
|
2186
|
-
}, Xt = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", Zt = "flex items-center justify-between gap-3", Qt = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", $t = "text-eds-neutral-disabled", en = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", tn = "data-placeholder:text-eds-neutral-disabled", nn = "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", rn = "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)]", an = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", on = "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", sn = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", cn = `${
|
|
2186
|
+
}, Xt = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", Zt = "flex items-center justify-between gap-3", Qt = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", $t = "text-eds-neutral-disabled", en = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", tn = "data-placeholder:text-eds-neutral-disabled", nn = "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", rn = "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)]", an = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", on = "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", sn = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", cn = `${Yt.popup} outline-none`, ln = { zIndex: Yt.popupValue };
|
|
2187
2187
|
function un(e) {
|
|
2188
2188
|
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`;
|
|
2189
2189
|
}
|
|
@@ -2195,7 +2195,7 @@ var dn = {
|
|
|
2195
2195
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
2196
2196
|
}, fn = "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 = E.Root;
|
|
2197
2197
|
function mn({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: d = "default", size: f = "md", supportingText: h = "", errorMessage: g = "Selecione uma opção válida", emptyMessage: _ = "Nenhum resultado.", readOnly: v = !1, id: y, name: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, renderItem: D, className: O, inputProps: k }) {
|
|
2198
|
-
let te = ee(), A = y ?? te, j = d === "invalid", N = j || !!h, P =
|
|
2198
|
+
let te = ee(), A = y ?? te, j = d === "invalid", N = j || !!h, P = Jt[f], F = qt(t, n), I = F === "floating", L = (e) => w ? w(e) : e.label ?? "", R = (e) => T ? T(e) : e.value ?? L(e), z = (e) => {
|
|
2199
2199
|
C?.(e);
|
|
2200
2200
|
}, ne = w ? (e) => w(e) : void 0, re = T ? (e) => T(e) : void 0;
|
|
2201
2201
|
return /* @__PURE__ */ m("div", {
|
|
@@ -2329,15 +2329,15 @@ var hn = {
|
|
|
2329
2329
|
"S"
|
|
2330
2330
|
];
|
|
2331
2331
|
function _n(e, t) {
|
|
2332
|
-
let n =
|
|
2333
|
-
for (let e = n; e <= r; e =
|
|
2332
|
+
let n = q(_e(e), { weekStartsOn: t }), r = ye(ge(e), { weekStartsOn: t }), i = [];
|
|
2333
|
+
for (let e = n; e <= r; e = G(e, 1)) i.push(e);
|
|
2334
2334
|
return i;
|
|
2335
2335
|
}
|
|
2336
2336
|
function vn(e) {
|
|
2337
2337
|
return e.mode === "range";
|
|
2338
2338
|
}
|
|
2339
2339
|
function yn(e) {
|
|
2340
|
-
let { label: t = "Label", labelVariant: r, floatingLabel: i, disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma data válida", id: g, weekStartsOn: _ = 0, dateFormat: v = "dd/MM/yyyy", className: b } = e, S = vn(e), C = e.placeholder ?? (S ? "Selecione um período" : "Selecione uma data"), w = ee(), T = g ?? w, E = u === "invalid", O = E || f, k =
|
|
2340
|
+
let { label: t = "Label", labelVariant: r, floatingLabel: i, disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma data válida", id: g, weekStartsOn: _ = 0, dateFormat: v = "dd/MM/yyyy", className: b } = e, S = vn(e), C = e.placeholder ?? (S ? "Selecione um período" : "Selecione uma data"), w = ee(), T = g ?? w, E = u === "invalid", O = E || f, k = Jt[d], te = d === "lg" ? "size-5" : "size-4", A = qt(r, i), j = A === "floating", N = vn(e) ? {
|
|
2341
2341
|
from: e.defaultValue?.from ?? null,
|
|
2342
2342
|
to: e.defaultValue?.to ?? null
|
|
2343
2343
|
} : {
|
|
@@ -2349,17 +2349,17 @@ function yn(e) {
|
|
|
2349
2349
|
} : e.value === void 0 ? void 0 : {
|
|
2350
2350
|
from: e.value ?? null,
|
|
2351
2351
|
to: null
|
|
2352
|
-
}, F = P !== void 0, [I, L] = x(N), R = F ? P : I, z = vn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, ne = vn(e) ? e.presets : void 0, [re, B] = x(!1), [ie, V] = x(() => R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()),
|
|
2353
|
-
function
|
|
2352
|
+
}, F = P !== void 0, [I, L] = x(N), R = F ? P : I, z = vn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, ne = vn(e) ? e.presets : void 0, [re, B] = x(!1), [ie, V] = x(() => R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), H = y(() => [...gn.slice(_), ...gn.slice(0, _)], [_]), U = y(() => Array.from({ length: z }, (e, t) => ae(ie, t)), [ie, z]);
|
|
2353
|
+
function W(t) {
|
|
2354
2354
|
s || (t && V(R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), B(t));
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function G(t) {
|
|
2357
2357
|
if (vn(e)) {
|
|
2358
2358
|
let n = R, r;
|
|
2359
2359
|
r = !n.from || n.to ? {
|
|
2360
2360
|
from: t,
|
|
2361
2361
|
to: null
|
|
2362
|
-
} :
|
|
2362
|
+
} : st(t, n.from) ? {
|
|
2363
2363
|
from: t,
|
|
2364
2364
|
to: n.from
|
|
2365
2365
|
} : {
|
|
@@ -2376,7 +2376,7 @@ function yn(e) {
|
|
|
2376
2376
|
to: null
|
|
2377
2377
|
}), e.onValueChange?.(t), B(!1);
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function oe(t) {
|
|
2380
2380
|
let n = {
|
|
2381
2381
|
from: t.from,
|
|
2382
2382
|
to: t.to ?? null
|
|
@@ -2386,10 +2386,10 @@ function yn(e) {
|
|
|
2386
2386
|
to: t.to ?? void 0
|
|
2387
2387
|
}), V(t.from);
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2390
|
-
return !R.from || !R.to || !e.range.to ? !1 :
|
|
2389
|
+
function K(e) {
|
|
2390
|
+
return !R.from || !R.to || !e.range.to ? !1 : pe(R.from, e.range.from) && pe(R.to, e.range.to);
|
|
2391
2391
|
}
|
|
2392
|
-
let
|
|
2392
|
+
let q = R.from ? !S || !R.to ? $(R.from, v) : `${$(R.from, v)} - ${$(R.to, v)}` : C;
|
|
2393
2393
|
return /* @__PURE__ */ m("div", {
|
|
2394
2394
|
className: M(Xt, b),
|
|
2395
2395
|
"data-fluid": l || void 0,
|
|
@@ -2409,7 +2409,7 @@ function yn(e) {
|
|
|
2409
2409
|
}),
|
|
2410
2410
|
/* @__PURE__ */ m(D.Root, {
|
|
2411
2411
|
open: re,
|
|
2412
|
-
onOpenChange:
|
|
2412
|
+
onOpenChange: W,
|
|
2413
2413
|
children: [/* @__PURE__ */ m(D.Trigger, {
|
|
2414
2414
|
id: T,
|
|
2415
2415
|
disabled: s,
|
|
@@ -2433,7 +2433,7 @@ function yn(e) {
|
|
|
2433
2433
|
}),
|
|
2434
2434
|
/* @__PURE__ */ p("span", {
|
|
2435
2435
|
className: M("min-w-0 flex-1 truncate font-inherit", k.text, R.from ? "text-eds-neutral-main" : $t),
|
|
2436
|
-
children:
|
|
2436
|
+
children: q
|
|
2437
2437
|
})
|
|
2438
2438
|
]
|
|
2439
2439
|
}), /* @__PURE__ */ p(D.Portal, { children: /* @__PURE__ */ p(D.Positioner, {
|
|
@@ -2449,37 +2449,37 @@ function yn(e) {
|
|
|
2449
2449
|
className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
|
|
2450
2450
|
children: ne.map((e) => /* @__PURE__ */ p("button", {
|
|
2451
2451
|
type: "button",
|
|
2452
|
-
onClick: () =>
|
|
2453
|
-
className: M("rounded-md px-3 py-1.5 text-left whitespace-nowrap",
|
|
2452
|
+
onClick: () => oe(e.range),
|
|
2453
|
+
className: M("rounded-md px-3 py-1.5 text-left whitespace-nowrap", K(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
|
|
2454
2454
|
children: e.label
|
|
2455
2455
|
}, e.label))
|
|
2456
2456
|
}), /* @__PURE__ */ p("div", {
|
|
2457
2457
|
className: "flex",
|
|
2458
|
-
children:
|
|
2459
|
-
let n = t === 0, r = t ===
|
|
2458
|
+
children: U.map((e, t) => {
|
|
2459
|
+
let n = t === 0, r = t === U.length - 1, i = _n(e, _);
|
|
2460
2460
|
return /* @__PURE__ */ m("div", {
|
|
2461
2461
|
className: M("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
|
|
2462
2462
|
children: [/* @__PURE__ */ m("div", {
|
|
2463
2463
|
className: "flex items-center gap-2.5 p-4",
|
|
2464
2464
|
children: [
|
|
2465
|
-
n ? /* @__PURE__ */ p(
|
|
2465
|
+
n ? /* @__PURE__ */ p(bt, {
|
|
2466
2466
|
icon: a,
|
|
2467
2467
|
label: "Mês anterior",
|
|
2468
2468
|
size: "sm",
|
|
2469
|
-
onClick: () => V((e) =>
|
|
2469
|
+
onClick: () => V((e) => pt(e, 1))
|
|
2470
2470
|
}) : /* @__PURE__ */ p("span", {
|
|
2471
2471
|
className: "size-8 shrink-0",
|
|
2472
2472
|
"aria-hidden": !0
|
|
2473
2473
|
}),
|
|
2474
2474
|
/* @__PURE__ */ p("span", {
|
|
2475
2475
|
className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
|
|
2476
|
-
children:
|
|
2476
|
+
children: $(e, "MMMM yyyy", { locale: vt })
|
|
2477
2477
|
}),
|
|
2478
|
-
r ? /* @__PURE__ */ p(
|
|
2478
|
+
r ? /* @__PURE__ */ p(bt, {
|
|
2479
2479
|
icon: o,
|
|
2480
2480
|
label: "Próximo mês",
|
|
2481
2481
|
size: "sm",
|
|
2482
|
-
onClick: () => V((e) =>
|
|
2482
|
+
onClick: () => V((e) => ae(e, 1))
|
|
2483
2483
|
}) : /* @__PURE__ */ p("span", {
|
|
2484
2484
|
className: "size-8 shrink-0",
|
|
2485
2485
|
"aria-hidden": !0
|
|
@@ -2487,20 +2487,20 @@ function yn(e) {
|
|
|
2487
2487
|
]
|
|
2488
2488
|
}), /* @__PURE__ */ m("div", {
|
|
2489
2489
|
className: "grid grid-cols-7 px-4 pb-4",
|
|
2490
|
-
children: [
|
|
2490
|
+
children: [H.map((e, t) => /* @__PURE__ */ p("span", {
|
|
2491
2491
|
className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
|
|
2492
2492
|
children: e
|
|
2493
2493
|
}, `${e}-${t}`)), i.map((t) => {
|
|
2494
|
-
let n =
|
|
2494
|
+
let n = ct(t, e), r = lt(t), i = S && R.from ? pe(t, R.from) : !1, a = S && R.to ? pe(t, R.to) : !1, o = !!(S && R.from && R.to && !pe(R.from, R.to)), s = o && R.from && R.to ? ot(t, R.from) && st(t, R.to) : !1, c = S ? i || a : R.from ? pe(t, R.from) : !1;
|
|
2495
2495
|
return /* @__PURE__ */ p("div", {
|
|
2496
2496
|
className: M("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"),
|
|
2497
2497
|
children: /* @__PURE__ */ p("button", {
|
|
2498
2498
|
type: "button",
|
|
2499
|
-
onClick: () =>
|
|
2499
|
+
onClick: () => G(t),
|
|
2500
2500
|
"data-selected": c || void 0,
|
|
2501
2501
|
"data-today": r || void 0,
|
|
2502
2502
|
className: M("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"),
|
|
2503
|
-
children:
|
|
2503
|
+
children: $(t, "d")
|
|
2504
2504
|
})
|
|
2505
2505
|
}, t.toISOString());
|
|
2506
2506
|
})]
|
|
@@ -2536,13 +2536,13 @@ var bn = {
|
|
|
2536
2536
|
"S"
|
|
2537
2537
|
];
|
|
2538
2538
|
function Sn(e, t) {
|
|
2539
|
-
let n =
|
|
2540
|
-
for (let e = n; e <= r; e =
|
|
2539
|
+
let n = q(_e(e), { weekStartsOn: t }), r = ye(ge(e), { weekStartsOn: t }), i = [];
|
|
2540
|
+
for (let e = n; e <= r; e = G(e, 1)) i.push(e);
|
|
2541
2541
|
return i;
|
|
2542
2542
|
}
|
|
2543
2543
|
function Cn(e, t) {
|
|
2544
|
-
let n = t ?
|
|
2545
|
-
return
|
|
2544
|
+
let n = t ? it(t) : 0, r = t ? at(t) : 0;
|
|
2545
|
+
return ft(dt(ut(e, n), r), 0);
|
|
2546
2546
|
}
|
|
2547
2547
|
function wn(e, t) {
|
|
2548
2548
|
let n = Math.round(e / t) * t;
|
|
@@ -2555,52 +2555,52 @@ function Tn(e) {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
var En = Array.from({ length: 24 }, (e, t) => t);
|
|
2557
2557
|
function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder: i = "Selecione data e hora", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma data e hora válidas", id: g, weekStartsOn: _ = 0, defaultMonth: S, dateFormat: C = "dd/MM/yyyy HH:mm", minuteStep: w = 5, value: T, defaultValue: E = null, onValueChange: O, className: k }) {
|
|
2558
|
-
let te = ee(), A = g ?? te, j = u === "invalid", N = j || f, P =
|
|
2558
|
+
let te = ee(), A = g ?? te, j = u === "invalid", N = j || f, P = Jt[d], F = d === "lg" ? "size-5" : "size-4", I = qt(n, r), L = I === "floating", R = T !== void 0, [ne, re] = x(E), B = R ? T ?? null : ne, [ie, V] = x(!1), [H, U] = x(() => B ?? S ?? /* @__PURE__ */ new Date()), [W, G] = x(B), oe = b(null), K = b(null), q = y(() => Tn(w), [w]), se = y(() => [...xn.slice(_), ...xn.slice(0, _)], [_]), ce = y(() => Sn(H, _), [H, _]), J = W ? it(W) : 0, le = W ? wn(at(W), w) : 0;
|
|
2559
2559
|
v(() => {
|
|
2560
2560
|
if (!ie) return;
|
|
2561
2561
|
let e = (e, t, n) => {
|
|
2562
2562
|
(e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
|
|
2563
2563
|
};
|
|
2564
2564
|
requestAnimationFrame(() => {
|
|
2565
|
-
e(
|
|
2565
|
+
e(oe.current, "hour", J), e(K.current, "minute", le);
|
|
2566
2566
|
});
|
|
2567
2567
|
}, [
|
|
2568
2568
|
ie,
|
|
2569
|
-
|
|
2570
|
-
|
|
2569
|
+
J,
|
|
2570
|
+
le
|
|
2571
2571
|
]);
|
|
2572
|
-
function
|
|
2572
|
+
function Y(e) {
|
|
2573
2573
|
R || re(e), O?.(e);
|
|
2574
2574
|
}
|
|
2575
|
-
function
|
|
2575
|
+
function ue(e) {
|
|
2576
2576
|
if (!s) {
|
|
2577
2577
|
if (e) {
|
|
2578
|
-
let e = B ?? S ?? /* @__PURE__ */ new Date(), t =
|
|
2579
|
-
|
|
2578
|
+
let e = B ?? S ?? /* @__PURE__ */ new Date(), t = dt(e, wn(at(e), w));
|
|
2579
|
+
G(B ? t : null), U(B ?? S ?? /* @__PURE__ */ new Date());
|
|
2580
2580
|
}
|
|
2581
2581
|
V(e);
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
|
+
function de(e) {
|
|
2585
|
+
let t = Cn(e, W ?? B), n = dt(t, wn(at(t), w));
|
|
2586
|
+
G(n), Y(n);
|
|
2587
|
+
}
|
|
2584
2588
|
function fe(e) {
|
|
2585
|
-
let t =
|
|
2586
|
-
|
|
2589
|
+
let t = W ?? B ?? /* @__PURE__ */ new Date(), n = ft(dt(ut(t, e), wn(at(t), w)), 0);
|
|
2590
|
+
G(n), Y(n);
|
|
2587
2591
|
}
|
|
2588
|
-
function
|
|
2589
|
-
let t =
|
|
2590
|
-
|
|
2592
|
+
function me(e) {
|
|
2593
|
+
let t = ft(dt(W ?? B ?? /* @__PURE__ */ new Date(), e), 0);
|
|
2594
|
+
G(t), Y(t);
|
|
2591
2595
|
}
|
|
2592
|
-
function he(
|
|
2593
|
-
let
|
|
2594
|
-
|
|
2596
|
+
function he() {
|
|
2597
|
+
let e = /* @__PURE__ */ new Date(), t = ft(dt(e, wn(at(e), w)), 0);
|
|
2598
|
+
G(t), U(t), Y(t);
|
|
2595
2599
|
}
|
|
2596
2600
|
function ge() {
|
|
2597
|
-
|
|
2598
|
-
W(t), H(t), J(t);
|
|
2599
|
-
}
|
|
2600
|
-
function _e() {
|
|
2601
|
-
U && J(U), V(!1);
|
|
2601
|
+
W && Y(W), V(!1);
|
|
2602
2602
|
}
|
|
2603
|
-
let
|
|
2603
|
+
let _e = B ? $(B, C) : i;
|
|
2604
2604
|
return /* @__PURE__ */ m("div", {
|
|
2605
2605
|
className: M(Xt, k),
|
|
2606
2606
|
"data-fluid": l || void 0,
|
|
@@ -2620,7 +2620,7 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
|
|
|
2620
2620
|
}),
|
|
2621
2621
|
/* @__PURE__ */ m(D.Root, {
|
|
2622
2622
|
open: ie,
|
|
2623
|
-
onOpenChange:
|
|
2623
|
+
onOpenChange: ue,
|
|
2624
2624
|
children: [/* @__PURE__ */ m(D.Trigger, {
|
|
2625
2625
|
id: A,
|
|
2626
2626
|
disabled: s,
|
|
@@ -2644,7 +2644,7 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
|
|
|
2644
2644
|
}),
|
|
2645
2645
|
/* @__PURE__ */ p("span", {
|
|
2646
2646
|
className: M("min-w-0 flex-1 truncate font-inherit", P.text, B ? "text-eds-neutral-main" : $t),
|
|
2647
|
-
children:
|
|
2647
|
+
children: _e
|
|
2648
2648
|
})
|
|
2649
2649
|
]
|
|
2650
2650
|
}), /* @__PURE__ */ p(D.Portal, { children: /* @__PURE__ */ p(D.Positioner, {
|
|
@@ -2663,39 +2663,39 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
|
|
|
2663
2663
|
children: [/* @__PURE__ */ m("div", {
|
|
2664
2664
|
className: "flex items-center gap-2.5 p-4",
|
|
2665
2665
|
children: [
|
|
2666
|
-
/* @__PURE__ */ p(
|
|
2666
|
+
/* @__PURE__ */ p(bt, {
|
|
2667
2667
|
icon: a,
|
|
2668
2668
|
label: "Mês anterior",
|
|
2669
2669
|
size: "sm",
|
|
2670
|
-
onClick: () =>
|
|
2670
|
+
onClick: () => U((e) => pt(e, 1))
|
|
2671
2671
|
}),
|
|
2672
2672
|
/* @__PURE__ */ p("span", {
|
|
2673
2673
|
className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
|
|
2674
|
-
children:
|
|
2674
|
+
children: $(H, "MMMM yyyy", { locale: vt })
|
|
2675
2675
|
}),
|
|
2676
|
-
/* @__PURE__ */ p(
|
|
2676
|
+
/* @__PURE__ */ p(bt, {
|
|
2677
2677
|
icon: o,
|
|
2678
2678
|
label: "Próximo mês",
|
|
2679
2679
|
size: "sm",
|
|
2680
|
-
onClick: () =>
|
|
2680
|
+
onClick: () => U((e) => ae(e, 1))
|
|
2681
2681
|
})
|
|
2682
2682
|
]
|
|
2683
2683
|
}), /* @__PURE__ */ m("div", {
|
|
2684
2684
|
className: "grid grid-cols-7 px-4 pb-4",
|
|
2685
|
-
children: [
|
|
2685
|
+
children: [se.map((e, t) => /* @__PURE__ */ p("span", {
|
|
2686
2686
|
className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
|
|
2687
2687
|
children: e
|
|
2688
2688
|
}, `${e}-${t}`)), ce.map((e) => {
|
|
2689
|
-
let t =
|
|
2689
|
+
let t = ct(e, H), n = lt(e), r = W ? pe(e, W) : !1;
|
|
2690
2690
|
return /* @__PURE__ */ p("div", {
|
|
2691
2691
|
className: "flex items-center justify-center py-0.5",
|
|
2692
2692
|
children: /* @__PURE__ */ p("button", {
|
|
2693
2693
|
type: "button",
|
|
2694
|
-
onClick: () =>
|
|
2694
|
+
onClick: () => de(e),
|
|
2695
2695
|
"data-selected": r || void 0,
|
|
2696
2696
|
"data-today": n || void 0,
|
|
2697
2697
|
className: M("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"),
|
|
2698
|
-
children:
|
|
2698
|
+
children: $(e, "d")
|
|
2699
2699
|
})
|
|
2700
2700
|
}, e.toISOString());
|
|
2701
2701
|
})]
|
|
@@ -2708,18 +2708,18 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
|
|
|
2708
2708
|
className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
|
|
2709
2709
|
children: "Hora"
|
|
2710
2710
|
}), /* @__PURE__ */ p("div", {
|
|
2711
|
-
ref:
|
|
2711
|
+
ref: oe,
|
|
2712
2712
|
className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
|
|
2713
2713
|
role: "listbox",
|
|
2714
2714
|
"aria-label": "Hora",
|
|
2715
2715
|
children: En.map((e) => {
|
|
2716
|
-
let t =
|
|
2716
|
+
let t = J === e;
|
|
2717
2717
|
return /* @__PURE__ */ p("button", {
|
|
2718
2718
|
type: "button",
|
|
2719
2719
|
role: "option",
|
|
2720
2720
|
"aria-selected": t,
|
|
2721
2721
|
"data-hour": e,
|
|
2722
|
-
onClick: () =>
|
|
2722
|
+
onClick: () => fe(e),
|
|
2723
2723
|
className: M("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"),
|
|
2724
2724
|
children: String(e).padStart(2, "0")
|
|
2725
2725
|
}, e);
|
|
@@ -2731,18 +2731,18 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
|
|
|
2731
2731
|
className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
|
|
2732
2732
|
children: "Min"
|
|
2733
2733
|
}), /* @__PURE__ */ p("div", {
|
|
2734
|
-
ref:
|
|
2734
|
+
ref: K,
|
|
2735
2735
|
className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
|
|
2736
2736
|
role: "listbox",
|
|
2737
2737
|
"aria-label": "Minuto",
|
|
2738
|
-
children:
|
|
2739
|
-
let t =
|
|
2738
|
+
children: q.map((e) => {
|
|
2739
|
+
let t = le === e;
|
|
2740
2740
|
return /* @__PURE__ */ p("button", {
|
|
2741
2741
|
type: "button",
|
|
2742
2742
|
role: "option",
|
|
2743
2743
|
"aria-selected": t,
|
|
2744
2744
|
"data-minute": e,
|
|
2745
|
-
onClick: () =>
|
|
2745
|
+
onClick: () => me(e),
|
|
2746
2746
|
className: M("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"),
|
|
2747
2747
|
children: String(e).padStart(2, "0")
|
|
2748
2748
|
}, e);
|
|
@@ -2756,12 +2756,12 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
|
|
|
2756
2756
|
text: "Agora",
|
|
2757
2757
|
variant: "ghost",
|
|
2758
2758
|
size: "sm",
|
|
2759
|
-
onClick:
|
|
2759
|
+
onClick: he
|
|
2760
2760
|
}), /* @__PURE__ */ p(z, {
|
|
2761
2761
|
text: "Confirmar",
|
|
2762
2762
|
size: "sm",
|
|
2763
|
-
onClick:
|
|
2764
|
-
disabled: !
|
|
2763
|
+
onClick: ge,
|
|
2764
|
+
disabled: !W
|
|
2765
2765
|
})]
|
|
2766
2766
|
})]
|
|
2767
2767
|
})
|
|
@@ -2800,17 +2800,17 @@ function jn() {
|
|
|
2800
2800
|
return _(An);
|
|
2801
2801
|
}
|
|
2802
2802
|
function Mn({ size: e = kn.size } = {}) {
|
|
2803
|
-
return M(`fixed top-1/2 left-1/2 ${
|
|
2803
|
+
return M(`fixed top-1/2 left-1/2 ${Yt.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`, N(On.size, e, kn.size).classes);
|
|
2804
2804
|
}
|
|
2805
2805
|
function Nn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
|
|
2806
2806
|
let i = jn(), a = i === "alertdialog" ? k.Portal : O.Portal, o = i === "alertdialog" ? k.Backdrop : O.Backdrop, s = i === "alertdialog" ? k.Popup : O.Popup, c = i === "alertdialog" ? k.Close : O.Close;
|
|
2807
2807
|
return /* @__PURE__ */ m(a, { children: [/* @__PURE__ */ p(o, {
|
|
2808
|
-
className: M("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
|
|
2809
|
-
style: { zIndex:
|
|
2808
|
+
className: M("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", Yt.overlay),
|
|
2809
|
+
style: { zIndex: Yt.overlayValue }
|
|
2810
2810
|
}), /* @__PURE__ */ m(s, {
|
|
2811
2811
|
"data-eds-component": "Dialog",
|
|
2812
2812
|
className: M(Mn({ size: n }), e),
|
|
2813
|
-
style: { zIndex:
|
|
2813
|
+
style: { zIndex: Yt.overlayValue },
|
|
2814
2814
|
children: [t, r ? /* @__PURE__ */ p(c, {
|
|
2815
2815
|
"data-eds-component": "Dialog",
|
|
2816
2816
|
"aria-label": "Fechar",
|
|
@@ -2904,11 +2904,11 @@ function Hn({ size: e = "xl" } = {}) {
|
|
|
2904
2904
|
function Un({ className: e, children: t, size: n = "xl" }) {
|
|
2905
2905
|
let r = jn(), i = r === "alertdialog" ? k.Portal : O.Portal, a = r === "alertdialog" ? k.Backdrop : O.Backdrop, o = r === "alertdialog" ? k.Popup : O.Popup;
|
|
2906
2906
|
return /* @__PURE__ */ m(i, { children: [/* @__PURE__ */ p(a, {
|
|
2907
|
-
className: M("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
|
|
2908
|
-
style: { zIndex:
|
|
2907
|
+
className: M("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", Yt.overlay),
|
|
2908
|
+
style: { zIndex: Yt.overlayValue }
|
|
2909
2909
|
}), /* @__PURE__ */ p("div", {
|
|
2910
|
-
className: M("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8",
|
|
2911
|
-
style: { zIndex:
|
|
2910
|
+
className: M("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", Yt.overlay),
|
|
2911
|
+
style: { zIndex: Yt.overlayValue },
|
|
2912
2912
|
children: /* @__PURE__ */ p(o, {
|
|
2913
2913
|
"data-eds-component": "FormDialog",
|
|
2914
2914
|
className: M("pointer-events-auto", Hn({ size: n }), e),
|
|
@@ -3049,14 +3049,30 @@ var $n = /\D/g, er = function(e) {
|
|
|
3049
3049
|
return ir(e) ? rr(e) : nr(e);
|
|
3050
3050
|
}, or = function(e) {
|
|
3051
3051
|
return er(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");
|
|
3052
|
-
}
|
|
3052
|
+
};
|
|
3053
|
+
//#endregion
|
|
3054
|
+
//#region src/components/Input/Input.tsx
|
|
3055
|
+
function sr(e) {
|
|
3056
|
+
if (!e) return "";
|
|
3057
|
+
let t = e.trimStart().startsWith("-"), n = e.replace(/\./g, ",").replace(/[^\d,]/g, "");
|
|
3058
|
+
if (!n) return t ? "-" : "";
|
|
3059
|
+
let r = n.indexOf(",");
|
|
3060
|
+
if (r === -1) return `${t ? "-" : ""}${n}`;
|
|
3061
|
+
let i = n.slice(0, r), a = n.slice(r + 1).replace(/,/g, "");
|
|
3062
|
+
return `${t ? "-" : ""}${i},${a}`;
|
|
3063
|
+
}
|
|
3064
|
+
var cr = {
|
|
3053
3065
|
default: "",
|
|
3054
3066
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3055
3067
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
|
|
3056
3068
|
loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
|
|
3057
3069
|
};
|
|
3058
|
-
function
|
|
3059
|
-
let ne = ee(), re = j ?? ne,
|
|
3070
|
+
function lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: l = "Digite algo...", errorMessage: u = "Campo obrigatório", fluid: d = !1, format: f, tooltip: h = null, linkText: g = null, linkUrl: _ = null, supportLink: v = null, supportLinkUrl: y = null, supportingText: b = "", lazy: S = !1, labelVariant: C, floatingLabel: w, disableAutocomplete: T = !1, isLoading: E = !1, loadingIconPosition: D = "end", icon: O, defaultValue: k, value: A, id: j, name: N, onBlur: P, onFocus: F, onKeyDown: I, onClick: L, onChange: R, ...z }) {
|
|
3071
|
+
let ne = ee(), re = j ?? ne, B = a === "number", [ie, V] = x(() => {
|
|
3072
|
+
let e = k?.toString() ?? "";
|
|
3073
|
+
return B ? sr(e) : e;
|
|
3074
|
+
}), H = A !== void 0, U = (H ? A : ie)?.toString() ?? "", W = B ? sr(U) : U, G = v ?? g, ae = y ?? _, oe = qt(C, w), K = oe === "floating", q = (e) => {
|
|
3075
|
+
if (B) return sr(e);
|
|
3060
3076
|
switch (f) {
|
|
3061
3077
|
case "cep": return tr(e);
|
|
3062
3078
|
case "cpf": return rr(e);
|
|
@@ -3065,10 +3081,10 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3065
3081
|
case "phone": return or(e);
|
|
3066
3082
|
default: return e;
|
|
3067
3083
|
}
|
|
3068
|
-
},
|
|
3069
|
-
let n =
|
|
3070
|
-
|
|
3071
|
-
},
|
|
3084
|
+
}, se = (e, t) => {
|
|
3085
|
+
let n = q(e);
|
|
3086
|
+
H || V(n), R?.(n, t);
|
|
3087
|
+
}, ce = r === "invalid", J = n || E, le = Jt[i], Y = E ? /* @__PURE__ */ p("span", {
|
|
3072
3088
|
className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
|
|
3073
3089
|
"data-position": D,
|
|
3074
3090
|
"aria-hidden": !0,
|
|
@@ -3081,14 +3097,14 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3081
3097
|
className: M(Xt, e),
|
|
3082
3098
|
"data-fluid": d || void 0,
|
|
3083
3099
|
"data-eds-component": "Input",
|
|
3084
|
-
"data-label-variant":
|
|
3100
|
+
"data-label-variant": oe,
|
|
3085
3101
|
children: [
|
|
3086
3102
|
/* @__PURE__ */ m("div", {
|
|
3087
3103
|
className: Zt,
|
|
3088
3104
|
children: [/* @__PURE__ */ m("div", {
|
|
3089
3105
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
3090
3106
|
children: [/* @__PURE__ */ m("label", {
|
|
3091
|
-
className: M(Qt,
|
|
3107
|
+
className: M(Qt, K && "sr-only", !K && "font-medium"),
|
|
3092
3108
|
htmlFor: re,
|
|
3093
3109
|
children: [/* @__PURE__ */ p("span", { children: t }), o && /* @__PURE__ */ p("span", {
|
|
3094
3110
|
className: "text-eds-red-main",
|
|
@@ -3099,32 +3115,32 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3099
3115
|
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",
|
|
3100
3116
|
"aria-label": h,
|
|
3101
3117
|
title: h,
|
|
3102
|
-
disabled:
|
|
3118
|
+
disabled: J,
|
|
3103
3119
|
children: /* @__PURE__ */ p(s, {
|
|
3104
3120
|
size: 16,
|
|
3105
3121
|
"aria-hidden": !0
|
|
3106
3122
|
})
|
|
3107
3123
|
})]
|
|
3108
|
-
}),
|
|
3124
|
+
}), G && ae && /* @__PURE__ */ p("a", {
|
|
3109
3125
|
className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
|
|
3110
|
-
href:
|
|
3111
|
-
"aria-disabled":
|
|
3112
|
-
tabIndex:
|
|
3126
|
+
href: ae,
|
|
3127
|
+
"aria-disabled": J || void 0,
|
|
3128
|
+
tabIndex: J ? -1 : 0,
|
|
3113
3129
|
onClick: (e) => {
|
|
3114
|
-
|
|
3130
|
+
J && e.preventDefault();
|
|
3115
3131
|
},
|
|
3116
|
-
children:
|
|
3132
|
+
children: G
|
|
3117
3133
|
})]
|
|
3118
3134
|
}),
|
|
3119
3135
|
/* @__PURE__ */ m("div", {
|
|
3120
|
-
className: M("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", le.control,
|
|
3121
|
-
"data-disabled":
|
|
3136
|
+
className: M("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", le.control, cr[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"),
|
|
3137
|
+
"data-disabled": J || void 0,
|
|
3122
3138
|
"data-state": r,
|
|
3123
3139
|
"data-size": i,
|
|
3124
|
-
"data-floating":
|
|
3125
|
-
"data-has-value":
|
|
3140
|
+
"data-floating": K || void 0,
|
|
3141
|
+
"data-has-value": W ? !0 : void 0,
|
|
3126
3142
|
children: [
|
|
3127
|
-
|
|
3143
|
+
K && /* @__PURE__ */ m("span", {
|
|
3128
3144
|
className: un(le.left),
|
|
3129
3145
|
children: [/* @__PURE__ */ p("span", { children: t }), o && /* @__PURE__ */ p("span", {
|
|
3130
3146
|
className: "text-eds-red-main",
|
|
@@ -3137,58 +3153,63 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3137
3153
|
size: 16,
|
|
3138
3154
|
"aria-hidden": !0
|
|
3139
3155
|
}),
|
|
3140
|
-
D === "start" &&
|
|
3156
|
+
D === "start" && Y,
|
|
3141
3157
|
/* @__PURE__ */ p(te, {
|
|
3142
3158
|
...z,
|
|
3143
3159
|
id: re,
|
|
3144
3160
|
name: N,
|
|
3145
3161
|
className: M("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", en, le.text),
|
|
3146
|
-
disabled:
|
|
3147
|
-
type:
|
|
3148
|
-
inputMode:
|
|
3162
|
+
disabled: J,
|
|
3163
|
+
type: B ? "text" : a,
|
|
3164
|
+
inputMode: B ? z.inputMode ?? "decimal" : z.inputMode,
|
|
3165
|
+
lang: B ? z.lang ?? "pt-BR" : z.lang,
|
|
3149
3166
|
required: o,
|
|
3150
3167
|
placeholder: l,
|
|
3151
3168
|
autoComplete: T ? "off" : z.autoComplete,
|
|
3152
|
-
"aria-invalid":
|
|
3153
|
-
"aria-describedby":
|
|
3169
|
+
"aria-invalid": ce || void 0,
|
|
3170
|
+
"aria-describedby": ce ? `${re}-desc` : void 0,
|
|
3154
3171
|
"aria-busy": E || void 0,
|
|
3155
|
-
value:
|
|
3156
|
-
defaultValue:
|
|
3172
|
+
value: H || B ? W : void 0,
|
|
3173
|
+
defaultValue: !H && !B ? k : void 0,
|
|
3157
3174
|
onClick: L,
|
|
3158
3175
|
onKeyDown: I,
|
|
3159
3176
|
onFocus: F,
|
|
3160
3177
|
onBlur: (e) => {
|
|
3161
|
-
P?.(e), S &&
|
|
3178
|
+
P?.(e), S && se(e.currentTarget.value, e);
|
|
3162
3179
|
},
|
|
3163
3180
|
onChange: (e) => {
|
|
3164
|
-
|
|
3181
|
+
if (S) {
|
|
3182
|
+
B && !H && V(q(e.currentTarget.value));
|
|
3183
|
+
return;
|
|
3184
|
+
}
|
|
3185
|
+
se(e.currentTarget.value, e);
|
|
3165
3186
|
}
|
|
3166
3187
|
}),
|
|
3167
|
-
D === "end" &&
|
|
3188
|
+
D === "end" && Y
|
|
3168
3189
|
]
|
|
3169
3190
|
}),
|
|
3170
|
-
(
|
|
3191
|
+
(ce || b) && /* @__PURE__ */ p("div", {
|
|
3171
3192
|
id: `${re}-desc`,
|
|
3172
3193
|
className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
|
|
3173
|
-
"data-state":
|
|
3174
|
-
children:
|
|
3194
|
+
"data-state": ce ? "invalid" : r,
|
|
3195
|
+
children: ce ? u : b
|
|
3175
3196
|
})
|
|
3176
3197
|
]
|
|
3177
3198
|
});
|
|
3178
3199
|
}
|
|
3179
3200
|
//#endregion
|
|
3180
3201
|
//#region src/components/Textarea/Textarea.tsx
|
|
3181
|
-
var
|
|
3202
|
+
var ur = {
|
|
3182
3203
|
default: "",
|
|
3183
3204
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3184
3205
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3185
|
-
},
|
|
3206
|
+
}, dr = {
|
|
3186
3207
|
sm: "min-h-20",
|
|
3187
3208
|
md: "min-h-24",
|
|
3188
3209
|
lg: "min-h-32"
|
|
3189
3210
|
};
|
|
3190
|
-
function
|
|
3191
|
-
let te = ee(), A = S ?? te, [j, N] = x(() => y?.toString() ?? ""), P = b !== void 0, F = (P ? b : j)?.toString() ?? "", I =
|
|
3211
|
+
function fr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, tooltip: u = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: h = "", labelVariant: g, floatingLabel: _, rows: v = 4, defaultValue: y, value: b, id: S, name: C, onBlur: w, onFocus: T, onKeyDown: E, onClick: D, onChange: O, ...k }) {
|
|
3212
|
+
let te = ee(), A = S ?? te, [j, N] = x(() => y?.toString() ?? ""), P = b !== void 0, F = (P ? b : j)?.toString() ?? "", I = qt(g, _), L = I === "floating", R = r === "invalid", z = Jt[i];
|
|
3192
3213
|
return /* @__PURE__ */ m("div", {
|
|
3193
3214
|
className: M(Xt, e),
|
|
3194
3215
|
"data-fluid": l || void 0,
|
|
@@ -3229,7 +3250,7 @@ function dr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3229
3250
|
})]
|
|
3230
3251
|
}),
|
|
3231
3252
|
/* @__PURE__ */ m("div", {
|
|
3232
|
-
className: M("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", z.paddingX, "py-2.5",
|
|
3253
|
+
className: M("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", z.paddingX, "py-2.5", dr[i], ur[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"),
|
|
3233
3254
|
"data-disabled": n || void 0,
|
|
3234
3255
|
"data-state": r,
|
|
3235
3256
|
"data-size": i,
|
|
@@ -3275,13 +3296,13 @@ function dr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3275
3296
|
}
|
|
3276
3297
|
//#endregion
|
|
3277
3298
|
//#region src/components/Select/Select.tsx
|
|
3278
|
-
var
|
|
3299
|
+
var pr = {
|
|
3279
3300
|
default: "",
|
|
3280
3301
|
valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3281
3302
|
invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3282
3303
|
};
|
|
3283
|
-
function
|
|
3284
|
-
let C = ee(), w = g ?? C, T = u === "invalid", E = T || f, D =
|
|
3304
|
+
function mr({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma opção válida", id: g, name: _, value: v = void 0, defaultValue: y = void 0, onValueChange: b = void 0, renderItem: x = void 0, className: S }) {
|
|
3305
|
+
let C = ee(), w = g ?? C, T = u === "invalid", E = T || f, D = Jt[d], O = qt(t, n), k = O === "floating";
|
|
3285
3306
|
return /* @__PURE__ */ m("div", {
|
|
3286
3307
|
className: M(Xt, S),
|
|
3287
3308
|
"data-fluid": l || void 0,
|
|
@@ -3308,7 +3329,7 @@ function pr({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, p
|
|
|
3308
3329
|
defaultValue: y,
|
|
3309
3330
|
value: v,
|
|
3310
3331
|
children: [/* @__PURE__ */ m(A.Trigger, {
|
|
3311
|
-
className: M("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", D.trigger,
|
|
3332
|
+
className: M("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", D.trigger, pr[u], "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"),
|
|
3312
3333
|
"data-state": u,
|
|
3313
3334
|
"data-size": d,
|
|
3314
3335
|
"data-disabled": s || void 0,
|
|
@@ -3373,7 +3394,7 @@ function pr({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, p
|
|
|
3373
3394
|
}
|
|
3374
3395
|
//#endregion
|
|
3375
3396
|
//#region src/components/Text/Text.tsx
|
|
3376
|
-
var
|
|
3397
|
+
var hr = {
|
|
3377
3398
|
variant: {
|
|
3378
3399
|
heading1: {
|
|
3379
3400
|
classes: "text-3xl font-semibold",
|
|
@@ -3430,20 +3451,20 @@ var mr = {
|
|
|
3430
3451
|
description: "Large text"
|
|
3431
3452
|
}
|
|
3432
3453
|
}
|
|
3433
|
-
},
|
|
3454
|
+
}, gr = {
|
|
3434
3455
|
variant: "body",
|
|
3435
3456
|
size: "md"
|
|
3436
|
-
},
|
|
3457
|
+
}, _r = /* @__PURE__ */ new Set([
|
|
3437
3458
|
"heading1",
|
|
3438
3459
|
"heading2",
|
|
3439
3460
|
"heading3"
|
|
3440
|
-
]),
|
|
3441
|
-
function
|
|
3442
|
-
let l =
|
|
3461
|
+
]), vr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
|
|
3462
|
+
function yr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
|
|
3463
|
+
let l = vr.has(e), u = _r.has(e), d = y(() => o || (l || u ? "span" : "p"), [
|
|
3443
3464
|
o,
|
|
3444
3465
|
l,
|
|
3445
3466
|
u
|
|
3446
|
-
]), f = N(
|
|
3467
|
+
]), f = N(hr.variant, e, gr.variant), m = N(hr.size, n ?? "md", gr.size);
|
|
3447
3468
|
return /* @__PURE__ */ p(d, {
|
|
3448
3469
|
ref: c,
|
|
3449
3470
|
"data-eds-component": "Text",
|
|
@@ -3452,7 +3473,7 @@ function vr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !
|
|
|
3452
3473
|
children: i
|
|
3453
3474
|
});
|
|
3454
3475
|
}
|
|
3455
|
-
var
|
|
3476
|
+
var br = g(yr), xr = {
|
|
3456
3477
|
layout: {
|
|
3457
3478
|
auto: {
|
|
3458
3479
|
classes: "",
|
|
@@ -3483,14 +3504,14 @@ var yr = g(vr), br = {
|
|
|
3483
3504
|
description: "Pin column to the right edge of the scroll container"
|
|
3484
3505
|
}
|
|
3485
3506
|
}
|
|
3486
|
-
},
|
|
3487
|
-
let n = N(
|
|
3507
|
+
}, Sr = (e, t) => {
|
|
3508
|
+
let n = N(xr.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";
|
|
3488
3509
|
return t === "cell" ? M(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") : M(n, r, "bg-white group-data-[compact]/header:bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background");
|
|
3489
|
-
},
|
|
3510
|
+
}, Cr = {
|
|
3490
3511
|
layout: "auto",
|
|
3491
3512
|
variant: "default"
|
|
3492
|
-
},
|
|
3493
|
-
let a = M("isolate w-full", N(
|
|
3513
|
+
}, wr = g(({ layout: e = "auto", className: t, containerClassName: n, ...r }, i) => {
|
|
3514
|
+
let a = M("isolate w-full", N(xr.layout, e, Cr.layout).classes, "[&_td]:border-b [&_td]:border-eds-neutral-disabled [&_tr:last-child_td]:border-b-0", "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", "[&_th]:bg-white", "text-base text-left text-eds-neutral-main", t);
|
|
3494
3515
|
return /* @__PURE__ */ p("div", {
|
|
3495
3516
|
className: M("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", n),
|
|
3496
3517
|
children: /* @__PURE__ */ p("table", {
|
|
@@ -3500,7 +3521,7 @@ var yr = g(vr), br = {
|
|
|
3500
3521
|
className: a
|
|
3501
3522
|
})
|
|
3502
3523
|
});
|
|
3503
|
-
}),
|
|
3524
|
+
}), Tr = g(({ variant: e = "default", sticky: t, ...n }, r) => {
|
|
3504
3525
|
let i = e === "compact", a = M("group/header", i && "[&_th]:bg-eds-neutral-background [&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
|
|
3505
3526
|
return /* @__PURE__ */ p("thead", {
|
|
3506
3527
|
ref: r,
|
|
@@ -3508,45 +3529,45 @@ var yr = g(vr), br = {
|
|
|
3508
3529
|
className: a,
|
|
3509
3530
|
...i && { "data-compact": "" }
|
|
3510
3531
|
});
|
|
3511
|
-
}),
|
|
3512
|
-
let r = M("group relative", e &&
|
|
3532
|
+
}), Er = g(({ sticky: e, ...t }, n) => {
|
|
3533
|
+
let r = M("group relative", e && Sr(e, "head"), t.className);
|
|
3513
3534
|
return /* @__PURE__ */ p("th", {
|
|
3514
3535
|
ref: n,
|
|
3515
3536
|
...t,
|
|
3516
3537
|
className: r
|
|
3517
3538
|
});
|
|
3518
|
-
}),
|
|
3519
|
-
let r = M(N(
|
|
3539
|
+
}), Dr = g(({ variant: e = Cr.variant, ...t }, n) => {
|
|
3540
|
+
let r = M(N(xr.variant, e, Cr.variant).classes, t.className);
|
|
3520
3541
|
return /* @__PURE__ */ p("tr", {
|
|
3521
3542
|
ref: n,
|
|
3522
3543
|
...t,
|
|
3523
3544
|
className: r
|
|
3524
3545
|
});
|
|
3525
|
-
}),
|
|
3546
|
+
}), Or = g((e, t) => /* @__PURE__ */ p("tbody", {
|
|
3526
3547
|
ref: t,
|
|
3527
3548
|
...e
|
|
3528
|
-
})),
|
|
3529
|
-
let r = M(e &&
|
|
3549
|
+
})), kr = g(({ sticky: e, ...t }, n) => {
|
|
3550
|
+
let r = M(e && Sr(e, "cell"), t.className);
|
|
3530
3551
|
return /* @__PURE__ */ p("td", {
|
|
3531
3552
|
ref: n,
|
|
3532
3553
|
...t,
|
|
3533
3554
|
className: r
|
|
3534
3555
|
});
|
|
3535
|
-
}),
|
|
3556
|
+
}), Ar = g((e, t) => /* @__PURE__ */ p("tfoot", {
|
|
3536
3557
|
ref: t,
|
|
3537
3558
|
...e
|
|
3538
|
-
})),
|
|
3559
|
+
})), jr = g((e, t) => /* @__PURE__ */ p("button", {
|
|
3539
3560
|
ref: t,
|
|
3540
3561
|
...e,
|
|
3541
3562
|
type: "button",
|
|
3542
3563
|
"aria-label": "Redimensionar coluna",
|
|
3543
3564
|
className: M("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),
|
|
3544
3565
|
children: /* @__PURE__ */ p("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
|
|
3545
|
-
})),
|
|
3566
|
+
})), Mr = g(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ p(kr, {
|
|
3546
3567
|
ref: o,
|
|
3547
3568
|
...a,
|
|
3548
3569
|
className: M("w-10 leading-none", a.className),
|
|
3549
|
-
children: /* @__PURE__ */ p(
|
|
3570
|
+
children: /* @__PURE__ */ p(Kt, {
|
|
3550
3571
|
checked: e,
|
|
3551
3572
|
indeterminate: t,
|
|
3552
3573
|
onCheckedChange: n,
|
|
@@ -3554,11 +3575,11 @@ var yr = g(vr), br = {
|
|
|
3554
3575
|
disabled: i,
|
|
3555
3576
|
className: "relative before:absolute before:-inset-3 before:content-['']"
|
|
3556
3577
|
})
|
|
3557
|
-
})),
|
|
3578
|
+
})), Nr = g(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ p(Er, {
|
|
3558
3579
|
ref: o,
|
|
3559
3580
|
...a,
|
|
3560
3581
|
className: M("w-10 leading-none", a.className),
|
|
3561
|
-
children: /* @__PURE__ */ p(
|
|
3582
|
+
children: /* @__PURE__ */ p(Kt, {
|
|
3562
3583
|
checked: e,
|
|
3563
3584
|
indeterminate: t,
|
|
3564
3585
|
onCheckedChange: n,
|
|
@@ -3567,23 +3588,23 @@ var yr = g(vr), br = {
|
|
|
3567
3588
|
className: "relative before:absolute before:-inset-3 before:content-['']"
|
|
3568
3589
|
})
|
|
3569
3590
|
}));
|
|
3570
|
-
|
|
3571
|
-
var
|
|
3572
|
-
Header:
|
|
3573
|
-
Head:
|
|
3574
|
-
Row:
|
|
3575
|
-
Body:
|
|
3576
|
-
Cell:
|
|
3577
|
-
CheckCell:
|
|
3578
|
-
CheckHead:
|
|
3579
|
-
Footer:
|
|
3580
|
-
ResizeHandle:
|
|
3581
|
-
}),
|
|
3591
|
+
wr.displayName = "Table", Or.displayName = "Table.Body", Er.displayName = "Table.Head", Dr.displayName = "Table.Row", kr.displayName = "Table.Cell", Ar.displayName = "Table.Footer", Tr.displayName = "Table.Header", jr.displayName = "Table.ResizeHandle", Mr.displayName = "Table.CheckCell", Nr.displayName = "Table.CheckHead";
|
|
3592
|
+
var Pr = Object.assign(wr, {
|
|
3593
|
+
Header: Tr,
|
|
3594
|
+
Head: Er,
|
|
3595
|
+
Row: Dr,
|
|
3596
|
+
Body: Or,
|
|
3597
|
+
Cell: kr,
|
|
3598
|
+
CheckCell: Mr,
|
|
3599
|
+
CheckHead: Nr,
|
|
3600
|
+
Footer: Ar,
|
|
3601
|
+
ResizeHandle: jr
|
|
3602
|
+
}), Fr = {
|
|
3582
3603
|
variant: "segmented",
|
|
3583
3604
|
size: "md"
|
|
3584
3605
|
};
|
|
3585
|
-
function
|
|
3586
|
-
let u = e ?? [], d = c === "segmented", f = c === "underline", h = l === "sm", { ref: g, isOverflowing: _ } =
|
|
3606
|
+
function Ir({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = Fr.variant, size: l = Fr.size }) {
|
|
3607
|
+
let u = e ?? [], d = c === "segmented", f = c === "underline", h = l === "sm", { ref: g, isOverflowing: _ } = Rr(d), v = Lr(g, _);
|
|
3587
3608
|
if (u.length === 0) return null;
|
|
3588
3609
|
let ee = u[0]?.value, y = t !== void 0, b = {
|
|
3589
3610
|
value: y ? t : void 0,
|
|
@@ -3621,7 +3642,7 @@ function Fr({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
|
|
|
3621
3642
|
})]
|
|
3622
3643
|
});
|
|
3623
3644
|
}
|
|
3624
|
-
function
|
|
3645
|
+
function Lr(e, t) {
|
|
3625
3646
|
let n = b(null), r = b(!1);
|
|
3626
3647
|
return () => ({
|
|
3627
3648
|
onPointerDownCapture: (i) => {
|
|
@@ -3658,7 +3679,7 @@ function Ir(e, t) {
|
|
|
3658
3679
|
}
|
|
3659
3680
|
});
|
|
3660
3681
|
}
|
|
3661
|
-
function
|
|
3682
|
+
function Rr(e) {
|
|
3662
3683
|
let t = b(null), [n, r] = x(!1);
|
|
3663
3684
|
return v(() => {
|
|
3664
3685
|
if (!e) return;
|
|
@@ -3672,4 +3693,4 @@ function Lr(e) {
|
|
|
3672
3693
|
};
|
|
3673
3694
|
}
|
|
3674
3695
|
//#endregion
|
|
3675
|
-
export {
|
|
3696
|
+
export { Ut as Attachment, Bt as AttachmentAction, zt as AttachmentActions, It as AttachmentContent, Rt as AttachmentDescription, Ht as AttachmentGroup, Ft as AttachmentMedia, Lt as AttachmentTitle, Vt as AttachmentTrigger, z as Button, ne as COLORS, Ct as Calendar, jt as Card, Kt as Checkbox, mn as Combobox, yn as DatePicker, Dn as DateTimePicker, Vn as Dialog, Qn as Empty, Yn as FormDialog, bt as IconButton, lr as Input, mr as Select, Pr as Table, Ir as Tabs, br as Text, fr as Textarea };
|