@scbt-ecom/ui 0.63.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks.js +2 -2
- package/dist/{index-9RerNC5J.js → index-B00qeS0W.js} +6119 -6117
- package/dist/index-B00qeS0W.js.map +1 -0
- package/dist/shared/hooks/useControlledForm.d.ts +1 -1
- package/dist/shared/ui/modal/ui/IframeModalContent.d.ts +4 -3
- package/dist/ui.js +144 -151
- package/dist/ui.js.map +1 -1
- package/dist/useDebounce-i1sdXecI.js +1196 -0
- package/dist/useDebounce-i1sdXecI.js.map +1 -0
- package/dist/{useFieldsProgress-BXzIWmGP.js → useFieldsProgress-C3nmU8Vi.js} +2 -2
- package/dist/{useFieldsProgress-BXzIWmGP.js.map → useFieldsProgress-C3nmU8Vi.js.map} +1 -1
- package/dist/widget.js +268 -242
- package/dist/widget.js.map +1 -1
- package/dist/widgets/seoHeader/ui/desktop/tab/Tab.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-9RerNC5J.js.map +0 -1
- package/dist/useDebounce-QgEEiWs9.js +0 -1190
- package/dist/useDebounce-QgEEiWs9.js.map +0 -1
package/dist/ui.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as p, c as tt, R as nt, B as D, u as ot, a as rt, b as it, d as lt, P as U, e as
|
|
2
|
-
import { n as io, C as lo, t as uo, s as so, o as ao, K as go, L as co, N as fo, l as po, p as mo, q as ho, U as So, r as
|
|
1
|
+
import { j as p, c as tt, R as nt, B as D, u as ot, a as rt, b as it, d as lt, P as U, e as ye, f as ut, I as st, g as X, h as at, A as gt, H as dt, i as N, k as ct, m as Ce, D as ft, V as pt, O as mt } from "./index-B00qeS0W.js";
|
|
2
|
+
import { n as io, C as lo, t as uo, s as so, o as ao, K as go, L as co, N as fo, l as po, p as mo, q as ho, U as So, r as wo, v as Co } from "./index-B00qeS0W.js";
|
|
3
3
|
import * as E from "react";
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { c as
|
|
4
|
+
import { forwardRef as V, useState as ne, useEffect as $e, useRef as ht, isValidElement as k, cloneElement as Ve, Children as G } from "react";
|
|
5
|
+
import { c as C, T as Re } from "./typeGuards-Bhdr9KYW.js";
|
|
6
6
|
import { D as vo, d as xo, f as _o, b as Fo, a as yo } from "./utils-DaXd4sci.js";
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { a as Me } from "./useDebounce-
|
|
7
|
+
import { createPortal as ve } from "react-dom";
|
|
8
|
+
import { a as Me } from "./useDebounce-i1sdXecI.js";
|
|
9
9
|
import { m as St } from "./mergeRefs-qDToYXtM.js";
|
|
10
|
-
const
|
|
10
|
+
const wt = tt(
|
|
11
11
|
"group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
@@ -27,19 +27,19 @@ const Ct = tt(
|
|
|
27
27
|
size: "lg"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
), Un =
|
|
31
|
-
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, l) => /* @__PURE__ */ p.jsx("button", { ref: l, type: r, className:
|
|
32
|
-
), Kn = ({ className: e }) => /* @__PURE__ */ p.jsx("div", { className:
|
|
30
|
+
), Un = V(
|
|
31
|
+
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, l) => /* @__PURE__ */ p.jsx("button", { ref: l, type: r, className: C(wt({ intent: o, size: e }), n == null ? void 0 : n.button), ...i, children: /* @__PURE__ */ p.jsx("span", { className: C(n == null ? void 0 : n.icon), children: t }) })
|
|
32
|
+
), Kn = ({ className: e }) => /* @__PURE__ */ p.jsx("div", { className: C("skeleton-apply h-full w-full", e) }), Xn = ({ isVisible: e, classes: o, children: t, buttonProps: n }) => /* @__PURE__ */ p.jsxs(
|
|
33
33
|
nt,
|
|
34
34
|
{
|
|
35
|
-
className:
|
|
35
|
+
className: C(
|
|
36
36
|
"fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
|
|
37
37
|
{ "translate-y-[100%]": !e },
|
|
38
38
|
o == null ? void 0 : o.root
|
|
39
39
|
),
|
|
40
40
|
children: [
|
|
41
41
|
t,
|
|
42
|
-
/* @__PURE__ */ p.jsx(D, { size: "lg", className:
|
|
42
|
+
/* @__PURE__ */ p.jsx(D, { size: "lg", className: C("m-auto w-full", o == null ? void 0 : o.button), ...n, children: "Оформить заявку" })
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
45
|
), Wn = {
|
|
@@ -172,9 +172,9 @@ const Ct = tt(
|
|
|
172
172
|
"status/iconUser"
|
|
173
173
|
]
|
|
174
174
|
};
|
|
175
|
-
var ge = "Tabs", [
|
|
176
|
-
|
|
177
|
-
]), Ie =
|
|
175
|
+
var ge = "Tabs", [Ct, Yn] = it(ge, [
|
|
176
|
+
ye
|
|
177
|
+
]), Ie = ye(), [Rt, de] = Ct(ge), Pe = E.forwardRef(
|
|
178
178
|
(e, o) => {
|
|
179
179
|
const {
|
|
180
180
|
__scopeTabs: t,
|
|
@@ -313,8 +313,8 @@ function Ge(e, o) {
|
|
|
313
313
|
function je(e, o) {
|
|
314
314
|
return `${e}-content-${o}`;
|
|
315
315
|
}
|
|
316
|
-
var vt = Pe, xt = De, _t = be,
|
|
317
|
-
const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { className:
|
|
316
|
+
var vt = Pe, xt = De, _t = be, xe = He;
|
|
317
|
+
const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { className: C("flex flex-col gap-4", e == null ? void 0 : e.contentsWrapper), children: o == null ? void 0 : o.map(({ id: t, body: n, accordion: r }) => r && (r != null && r.title) ? /* @__PURE__ */ p.jsx(xe, { value: t, className: C("py-8", e == null ? void 0 : e.content), children: /* @__PURE__ */ p.jsx(gt, { label: r == null ? void 0 : r.title, children: n }) }, t) : /* @__PURE__ */ p.jsx(xe, { value: t, className: C("py-8", e == null ? void 0 : e.content), children: n }, t)) }), Zn = ({ renderContent: e, defaultActiveTabId: o = "1", value: t, onChangeTab: n, classes: r }) => {
|
|
318
318
|
var i;
|
|
319
319
|
return /* @__PURE__ */ p.jsxs(
|
|
320
320
|
vt,
|
|
@@ -322,13 +322,13 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
|
|
|
322
322
|
value: t,
|
|
323
323
|
onValueChange: n,
|
|
324
324
|
defaultValue: o,
|
|
325
|
-
className:
|
|
325
|
+
className: C("flex flex-col", r == null ? void 0 : r.root),
|
|
326
326
|
children: [
|
|
327
|
-
/* @__PURE__ */ p.jsx(xt, { className:
|
|
327
|
+
/* @__PURE__ */ p.jsx(xt, { className: C("flex items-center gap-4", r == null ? void 0 : r.list), children: (i = e == null ? void 0 : e.triggers) == null ? void 0 : i.map(({ id: l, label: u }) => /* @__PURE__ */ p.jsx(
|
|
328
328
|
_t,
|
|
329
329
|
{
|
|
330
330
|
value: l,
|
|
331
|
-
className:
|
|
331
|
+
className: C(
|
|
332
332
|
'desk-body-regular-l cursor-pointer rounded-sm bg-color-blue-grey-100 px-4 py-2 text-color-secondary outline outline-2 outline-offset-2 outline-transparent transition-colors hover:bg-color-blue-grey-200 hover:text-color-secondary data-[state="active"]:!bg-color-primary-default data-[state="active"]:!text-color-white',
|
|
333
333
|
r == null ? void 0 : r.trigger
|
|
334
334
|
),
|
|
@@ -350,33 +350,26 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
|
|
|
350
350
|
animate: { opacity: 1, scale: 1 },
|
|
351
351
|
exit: { opacity: 0, scale: 0 },
|
|
352
352
|
transition: { duration: 0.3, ease: "easeInOut" }
|
|
353
|
-
}, Vt = (
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
{ signal: u.signal }
|
|
368
|
-
), () => {
|
|
369
|
-
u.abort();
|
|
370
|
-
};
|
|
371
|
-
}, []), /* @__PURE__ */ p.jsx("iframe", { ...t, ref: n, className: w("w-full", o), children: r && ((l = n.current) == null ? void 0 : l.contentDocument) && Ve(e, n.current.contentDocument.body) });
|
|
372
|
-
}, Mt = ({ title: e, closeModal: o, classes: t }) => /* @__PURE__ */ p.jsxs("div", { className: w("flex items-start justify-between gap-4", t == null ? void 0 : t.header), children: [
|
|
373
|
-
e && /* @__PURE__ */ p.jsx(dt, { as: "h3", className: w("flex-1 text-color-dark", t == null ? void 0 : t.title), children: e }),
|
|
353
|
+
}, Vt = V(
|
|
354
|
+
({ children: e, className: o, ...t }, n) => {
|
|
355
|
+
const [r, i] = ne(null);
|
|
356
|
+
return $e(() => {
|
|
357
|
+
var u;
|
|
358
|
+
const l = n && "current" in n ? n.current : null;
|
|
359
|
+
!l || !l.contentDocument || ((u = l.contentDocument) == null ? void 0 : u.readyState) === "complete" && (document.querySelectorAll('head > link[rel="stylesheet"], head > style').forEach((s) => {
|
|
360
|
+
var g;
|
|
361
|
+
(g = l.contentDocument) == null || g.head.appendChild(s.cloneNode(!0));
|
|
362
|
+
}), i(l.contentDocument.body));
|
|
363
|
+
}, []), /* @__PURE__ */ p.jsx("iframe", { id: "modal-preview", ...t, ref: n, className: C("h-[60vh] w-[60vw]", o), children: r && e(r) });
|
|
364
|
+
}
|
|
365
|
+
), Mt = ({ title: e, closeModal: o, classes: t }) => /* @__PURE__ */ p.jsxs("div", { className: C("flex items-start justify-between gap-4", t == null ? void 0 : t.header), children: [
|
|
366
|
+
e && /* @__PURE__ */ p.jsx(dt, { as: "h3", className: C("flex-1 text-color-dark", t == null ? void 0 : t.title), children: e }),
|
|
374
367
|
/* @__PURE__ */ p.jsx(
|
|
375
368
|
N,
|
|
376
369
|
{
|
|
377
370
|
onClick: o,
|
|
378
371
|
name: "general/close",
|
|
379
|
-
className:
|
|
372
|
+
className: C("size-8 cursor-pointer text-icon-dark-hover", t == null ? void 0 : t.icon)
|
|
380
373
|
}
|
|
381
374
|
)
|
|
382
375
|
] }), Jn = ({
|
|
@@ -390,12 +383,12 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
|
|
|
390
383
|
iframe: u
|
|
391
384
|
}) => {
|
|
392
385
|
t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "visible";
|
|
393
|
-
const g =
|
|
394
|
-
|
|
386
|
+
const g = ht(null), d = /* @__PURE__ */ p.jsx(ct, { children: t && /* @__PURE__ */ p.jsx(
|
|
387
|
+
Ce.div,
|
|
395
388
|
{
|
|
396
389
|
tabIndex: -1,
|
|
397
390
|
onClick: i,
|
|
398
|
-
className:
|
|
391
|
+
className: C(
|
|
399
392
|
"fixed inset-0 flex h-screen w-screen items-center justify-center bg-color-overlay",
|
|
400
393
|
{ "z-1000": !n },
|
|
401
394
|
l == null ? void 0 : l.overlay
|
|
@@ -406,10 +399,10 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
|
|
|
406
399
|
"data-test-id": "modal-overlay",
|
|
407
400
|
...yt,
|
|
408
401
|
children: /* @__PURE__ */ p.jsxs(
|
|
409
|
-
|
|
402
|
+
Ce.div,
|
|
410
403
|
{
|
|
411
404
|
onClick: (f) => f.stopPropagation(),
|
|
412
|
-
className:
|
|
405
|
+
className: C(
|
|
413
406
|
"w-full max-w-[600px] rounded-md bg-color-white px-4 py-6 shadow-sm desktop:px-6 desktop:py-8",
|
|
414
407
|
l == null ? void 0 : l.modal
|
|
415
408
|
),
|
|
@@ -417,28 +410,28 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
|
|
|
417
410
|
...$t,
|
|
418
411
|
children: [
|
|
419
412
|
/* @__PURE__ */ p.jsx(Mt, { title: e, closeModal: i, classes: l == null ? void 0 : l.modalHeader }),
|
|
420
|
-
/* @__PURE__ */ p.jsx(g, { className:
|
|
413
|
+
u ? /* @__PURE__ */ p.jsx(Vt, { ref: g, className: C("mt-4", l == null ? void 0 : l.content), children: (f) => ve(o, f) }) : /* @__PURE__ */ p.jsx("div", { className: C("mt-4", l == null ? void 0 : l.content), children: o })
|
|
421
414
|
]
|
|
422
415
|
}
|
|
423
416
|
)
|
|
424
417
|
}
|
|
425
418
|
) });
|
|
426
|
-
return /* @__PURE__ */ p.jsx(p.Fragment, { children: n ?
|
|
427
|
-
}, Ne =
|
|
419
|
+
return /* @__PURE__ */ p.jsx(p.Fragment, { children: n ? ve(d, r) : d });
|
|
420
|
+
}, Ne = V((e, o) => /* @__PURE__ */ p.jsx("table", { ref: o, ...e }));
|
|
428
421
|
Ne.displayName = "Table";
|
|
429
|
-
const ze =
|
|
422
|
+
const ze = V((e, o) => /* @__PURE__ */ p.jsx("thead", { ref: o, ...e }));
|
|
430
423
|
ze.displayName = "TableHeader";
|
|
431
|
-
const Te =
|
|
424
|
+
const Te = V((e, o) => /* @__PURE__ */ p.jsx("tbody", { ref: o, ...e }));
|
|
432
425
|
Te.displayName = "TableBody";
|
|
433
|
-
const It =
|
|
426
|
+
const It = V((e, o) => /* @__PURE__ */ p.jsx("tfoot", { ref: o, ...e }));
|
|
434
427
|
It.displayName = "TableFooter";
|
|
435
|
-
const B =
|
|
428
|
+
const B = V((e, o) => /* @__PURE__ */ p.jsx("tr", { ref: o, ...e }));
|
|
436
429
|
B.displayName = "TableRow";
|
|
437
|
-
const Oe =
|
|
430
|
+
const Oe = V((e, o) => /* @__PURE__ */ p.jsx("th", { ref: o, ...e }));
|
|
438
431
|
Oe.displayName = "TableHead";
|
|
439
|
-
const oe =
|
|
432
|
+
const oe = V((e, o) => /* @__PURE__ */ p.jsx("td", { ref: o, ...e }));
|
|
440
433
|
oe.displayName = "TableCell";
|
|
441
|
-
const Pt =
|
|
434
|
+
const Pt = V((e, o) => /* @__PURE__ */ p.jsx("caption", { ref: o, ...e }));
|
|
442
435
|
Pt.displayName = "TableCaption";
|
|
443
436
|
const Et = ({
|
|
444
437
|
children: e,
|
|
@@ -453,16 +446,16 @@ const Et = ({
|
|
|
453
446
|
"button",
|
|
454
447
|
{
|
|
455
448
|
type: "button",
|
|
456
|
-
className:
|
|
449
|
+
className: C("desk-body-regular-l flex items-center justify-center gap-x-2 text-color-secondary", l),
|
|
457
450
|
onClick: () => t(!r),
|
|
458
451
|
disabled: !d,
|
|
459
452
|
children: [
|
|
460
|
-
/* @__PURE__ */ p.jsx("span", { className:
|
|
453
|
+
/* @__PURE__ */ p.jsx("span", { className: C("", u), children: e }),
|
|
461
454
|
d && /* @__PURE__ */ p.jsx(
|
|
462
455
|
N,
|
|
463
456
|
{
|
|
464
457
|
name: "arrows/arrowRight",
|
|
465
|
-
className:
|
|
458
|
+
className: C(
|
|
466
459
|
"size-4 rotate-90 text-color-current duration-100",
|
|
467
460
|
{
|
|
468
461
|
"-rotate-90": !n
|
|
@@ -549,7 +542,7 @@ function S(e, o, t) {
|
|
|
549
542
|
return r;
|
|
550
543
|
};
|
|
551
544
|
}
|
|
552
|
-
function
|
|
545
|
+
function w(e, o, t, n) {
|
|
553
546
|
return {
|
|
554
547
|
debug: () => {
|
|
555
548
|
var r;
|
|
@@ -576,7 +569,7 @@ function At(e, o, t, n) {
|
|
|
576
569
|
cell: g,
|
|
577
570
|
getValue: g.getValue,
|
|
578
571
|
renderValue: g.renderValue
|
|
579
|
-
}),
|
|
572
|
+
}), w(e.options, "debugCells", "cell.getContext"))
|
|
580
573
|
};
|
|
581
574
|
return e._features.forEach((l) => {
|
|
582
575
|
l.createCell == null || l.createCell(i, t, o, e);
|
|
@@ -608,7 +601,7 @@ function Ht(e, o, t, n) {
|
|
|
608
601
|
getFlatColumns: S(() => [!0], () => {
|
|
609
602
|
var c;
|
|
610
603
|
return [f, ...(c = f.columns) == null ? void 0 : c.flatMap((a) => a.getFlatColumns())];
|
|
611
|
-
},
|
|
604
|
+
}, w(e.options, "debugColumns", "column.getFlatColumns")),
|
|
612
605
|
getLeafColumns: S(() => [e._getOrderColumnsFn()], (c) => {
|
|
613
606
|
var a;
|
|
614
607
|
if ((a = f.columns) != null && a.length) {
|
|
@@ -616,14 +609,14 @@ function Ht(e, o, t, n) {
|
|
|
616
609
|
return c(m);
|
|
617
610
|
}
|
|
618
611
|
return [f];
|
|
619
|
-
},
|
|
612
|
+
}, w(e.options, "debugColumns", "column.getLeafColumns"))
|
|
620
613
|
};
|
|
621
614
|
for (const c of e._features)
|
|
622
615
|
c.createColumn == null || c.createColumn(f, e);
|
|
623
616
|
return f;
|
|
624
617
|
}
|
|
625
618
|
const F = "debugHeaders";
|
|
626
|
-
function
|
|
619
|
+
function _e(e, o, t) {
|
|
627
620
|
var n;
|
|
628
621
|
let i = {
|
|
629
622
|
id: (n = t.id) != null ? n : o.id,
|
|
@@ -658,27 +651,27 @@ const Gt = {
|
|
|
658
651
|
var i, l;
|
|
659
652
|
const u = (i = n == null ? void 0 : n.map((f) => t.find((c) => c.id === f)).filter(Boolean)) != null ? i : [], s = (l = r == null ? void 0 : r.map((f) => t.find((c) => c.id === f)).filter(Boolean)) != null ? l : [], g = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
660
653
|
return z(o, [...u, ...g, ...s], e);
|
|
661
|
-
},
|
|
654
|
+
}, w(e.options, F, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), z(o, t, e, "center")), w(e.options, F, "getCenterHeaderGroups")), e.getLeftHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
662
655
|
var r;
|
|
663
656
|
const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
|
|
664
657
|
return z(o, i, e, "left");
|
|
665
|
-
},
|
|
658
|
+
}, w(e.options, F, "getLeftHeaderGroups")), e.getRightHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
666
659
|
var r;
|
|
667
660
|
const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
|
|
668
661
|
return z(o, i, e, "right");
|
|
669
|
-
},
|
|
662
|
+
}, w(e.options, F, "getRightHeaderGroups")), e.getFooterGroups = S(() => [e.getHeaderGroups()], (o) => [...o].reverse(), w(e.options, F, "getFooterGroups")), e.getLeftFooterGroups = S(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), w(e.options, F, "getLeftFooterGroups")), e.getCenterFooterGroups = S(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), w(e.options, F, "getCenterFooterGroups")), e.getRightFooterGroups = S(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), w(e.options, F, "getRightFooterGroups")), e.getFlatHeaders = S(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, F, "getFlatHeaders")), e.getLeftFlatHeaders = S(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, F, "getLeftFlatHeaders")), e.getCenterFlatHeaders = S(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, F, "getCenterFlatHeaders")), e.getRightFlatHeaders = S(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, F, "getRightFlatHeaders")), e.getCenterLeafHeaders = S(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
670
663
|
var n;
|
|
671
664
|
return !((n = t.subHeaders) != null && n.length);
|
|
672
|
-
}),
|
|
665
|
+
}), w(e.options, F, "getCenterLeafHeaders")), e.getLeftLeafHeaders = S(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
|
673
666
|
var n;
|
|
674
667
|
return !((n = t.subHeaders) != null && n.length);
|
|
675
|
-
}),
|
|
668
|
+
}), w(e.options, F, "getLeftLeafHeaders")), e.getRightLeafHeaders = S(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
|
676
669
|
var n;
|
|
677
670
|
return !((n = t.subHeaders) != null && n.length);
|
|
678
|
-
}),
|
|
671
|
+
}), w(e.options, F, "getRightLeafHeaders")), e.getLeafHeaders = S(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
679
672
|
var r, i, l, u, s, g;
|
|
680
673
|
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (u = t[0]) == null ? void 0 : u.headers) != null ? l : [], ...(s = (g = n[0]) == null ? void 0 : g.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
|
|
681
|
-
},
|
|
674
|
+
}, w(e.options, F, "getLeafHeaders"));
|
|
682
675
|
}
|
|
683
676
|
};
|
|
684
677
|
function z(e, o, t, n) {
|
|
@@ -704,7 +697,7 @@ function z(e, o, t, n) {
|
|
|
704
697
|
if (x && R.column.parent ? _ = R.column.parent : (_ = R.column, I = !0), v && (v == null ? void 0 : v.column) === _)
|
|
705
698
|
v.subHeaders.push(R);
|
|
706
699
|
else {
|
|
707
|
-
const y =
|
|
700
|
+
const y = _e(t, _, {
|
|
708
701
|
id: [n, a, _.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
|
|
709
702
|
isPlaceholder: I,
|
|
710
703
|
placeholderId: I ? `${h.filter((A) => A.column === _).length}` : void 0,
|
|
@@ -715,7 +708,7 @@ function z(e, o, t, n) {
|
|
|
715
708
|
}
|
|
716
709
|
m.headers.push(R), R.headerGroup = m;
|
|
717
710
|
}), s.push(m), a > 0 && g(h, a - 1);
|
|
718
|
-
}, d = o.map((c, a) =>
|
|
711
|
+
}, d = o.map((c, a) => _e(t, c, {
|
|
719
712
|
depth: l,
|
|
720
713
|
index: a
|
|
721
714
|
}));
|
|
@@ -776,8 +769,8 @@ const ce = (e, o, t, n, r, i, l) => {
|
|
|
776
769
|
}
|
|
777
770
|
return s.reverse();
|
|
778
771
|
},
|
|
779
|
-
getAllCells: S(() => [e.getAllLeafColumns()], (s) => s.map((g) => At(e, u, g, g.id)),
|
|
780
|
-
_getAllCellsByColumnId: S(() => [u.getAllCells()], (s) => s.reduce((g, d) => (g[d.column.id] = d, g), {}),
|
|
772
|
+
getAllCells: S(() => [e.getAllLeafColumns()], (s) => s.map((g) => At(e, u, g, g.id)), w(e.options, "debugRows", "getAllCells")),
|
|
773
|
+
_getAllCellsByColumnId: S(() => [u.getAllCells()], (s) => s.reduce((g, d) => (g[d.column.id] = d, g), {}), w(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
781
774
|
};
|
|
782
775
|
for (let s = 0; s < e._features.length; s++) {
|
|
783
776
|
const g = e._features[s];
|
|
@@ -796,36 +789,36 @@ const ce = (e, o, t, n, r, i, l) => {
|
|
|
796
789
|
const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
797
790
|
return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
|
|
798
791
|
};
|
|
799
|
-
Be.autoRemove = (e) =>
|
|
792
|
+
Be.autoRemove = (e) => M(e);
|
|
800
793
|
const ke = (e, o, t) => {
|
|
801
794
|
var n;
|
|
802
795
|
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
803
796
|
};
|
|
804
|
-
ke.autoRemove = (e) =>
|
|
797
|
+
ke.autoRemove = (e) => M(e);
|
|
805
798
|
const qe = (e, o, t) => {
|
|
806
799
|
var n;
|
|
807
800
|
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
808
801
|
};
|
|
809
|
-
qe.autoRemove = (e) =>
|
|
802
|
+
qe.autoRemove = (e) => M(e);
|
|
810
803
|
const Ue = (e, o, t) => {
|
|
811
804
|
var n;
|
|
812
805
|
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
813
806
|
};
|
|
814
|
-
Ue.autoRemove = (e) =>
|
|
807
|
+
Ue.autoRemove = (e) => M(e);
|
|
815
808
|
const Ke = (e, o, t) => !t.some((n) => {
|
|
816
809
|
var r;
|
|
817
810
|
return !((r = e.getValue(o)) != null && r.includes(n));
|
|
818
811
|
});
|
|
819
|
-
Ke.autoRemove = (e) =>
|
|
812
|
+
Ke.autoRemove = (e) => M(e) || !(e != null && e.length);
|
|
820
813
|
const Xe = (e, o, t) => t.some((n) => {
|
|
821
814
|
var r;
|
|
822
815
|
return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
|
|
823
816
|
});
|
|
824
|
-
Xe.autoRemove = (e) =>
|
|
817
|
+
Xe.autoRemove = (e) => M(e) || !(e != null && e.length);
|
|
825
818
|
const We = (e, o, t) => e.getValue(o) === t;
|
|
826
|
-
We.autoRemove = (e) =>
|
|
819
|
+
We.autoRemove = (e) => M(e);
|
|
827
820
|
const Ye = (e, o, t) => e.getValue(o) == t;
|
|
828
|
-
Ye.autoRemove = (e) =>
|
|
821
|
+
Ye.autoRemove = (e) => M(e);
|
|
829
822
|
const fe = (e, o, t) => {
|
|
830
823
|
let [n, r] = t;
|
|
831
824
|
const i = e.getValue(o);
|
|
@@ -839,7 +832,7 @@ fe.resolveFilterValue = (e) => {
|
|
|
839
832
|
}
|
|
840
833
|
return [i, l];
|
|
841
834
|
};
|
|
842
|
-
fe.autoRemove = (e) =>
|
|
835
|
+
fe.autoRemove = (e) => M(e) || M(e[0]) && M(e[1]);
|
|
843
836
|
const P = {
|
|
844
837
|
includesString: Be,
|
|
845
838
|
includesStringSensitive: ke,
|
|
@@ -851,7 +844,7 @@ const P = {
|
|
|
851
844
|
weakEquals: Ye,
|
|
852
845
|
inNumberRange: fe
|
|
853
846
|
};
|
|
854
|
-
function
|
|
847
|
+
function M(e) {
|
|
855
848
|
return e == null || e === "";
|
|
856
849
|
}
|
|
857
850
|
const Nt = {
|
|
@@ -889,7 +882,7 @@ const Nt = {
|
|
|
889
882
|
}, e.setFilterValue = (t) => {
|
|
890
883
|
o.setColumnFilters((n) => {
|
|
891
884
|
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((d) => d.id === e.id), l = L(t, i ? i.value : void 0);
|
|
892
|
-
if (
|
|
885
|
+
if (Fe(r, l, e)) {
|
|
893
886
|
var u;
|
|
894
887
|
return (u = n == null ? void 0 : n.filter((d) => d.id !== e.id)) != null ? u : [];
|
|
895
888
|
}
|
|
@@ -916,7 +909,7 @@ const Nt = {
|
|
|
916
909
|
const u = t.find((s) => s.id === l.id);
|
|
917
910
|
if (u) {
|
|
918
911
|
const s = u.getFilterFn();
|
|
919
|
-
if (
|
|
912
|
+
if (Fe(s, l.value, u))
|
|
920
913
|
return !1;
|
|
921
914
|
}
|
|
922
915
|
return !0;
|
|
@@ -929,7 +922,7 @@ const Nt = {
|
|
|
929
922
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
930
923
|
}
|
|
931
924
|
};
|
|
932
|
-
function
|
|
925
|
+
function Fe(e, o, t) {
|
|
933
926
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
934
927
|
}
|
|
935
928
|
const zt = (e, o, t) => t.reduce((n, r) => {
|
|
@@ -1061,7 +1054,7 @@ const Zt = {
|
|
|
1061
1054
|
onColumnOrderChange: $("columnOrder", e)
|
|
1062
1055
|
}),
|
|
1063
1056
|
createColumn: (e, o) => {
|
|
1064
|
-
e.getIndex = S((t) => [j(o, t)], (t) => t.findIndex((n) => n.id === e.id),
|
|
1057
|
+
e.getIndex = S((t) => [j(o, t)], (t) => t.findIndex((n) => n.id === e.id), w(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
1065
1058
|
var n;
|
|
1066
1059
|
return ((n = j(o, t)[0]) == null ? void 0 : n.id) === e.id;
|
|
1067
1060
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -1087,7 +1080,7 @@ const Zt = {
|
|
|
1087
1080
|
i = [...i, ...u];
|
|
1088
1081
|
}
|
|
1089
1082
|
return Yt(i, t, n);
|
|
1090
|
-
},
|
|
1083
|
+
}, w(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1091
1084
|
}
|
|
1092
1085
|
}, Y = () => ({
|
|
1093
1086
|
left: [],
|
|
@@ -1143,13 +1136,13 @@ const Zt = {
|
|
|
1143
1136
|
e.getCenterVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
|
|
1144
1137
|
const i = [...n ?? [], ...r ?? []];
|
|
1145
1138
|
return t.filter((l) => !i.includes(l.column.id));
|
|
1146
|
-
},
|
|
1139
|
+
}, w(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
1147
1140
|
...i,
|
|
1148
1141
|
position: "left"
|
|
1149
|
-
})),
|
|
1142
|
+
})), w(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
1150
1143
|
...i,
|
|
1151
1144
|
position: "right"
|
|
1152
|
-
})),
|
|
1145
|
+
})), w(o.options, "debugRows", "getRightVisibleCells"));
|
|
1153
1146
|
},
|
|
1154
1147
|
createTable: (e) => {
|
|
1155
1148
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
@@ -1163,10 +1156,10 @@ const Zt = {
|
|
|
1163
1156
|
return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
|
|
1164
1157
|
}
|
|
1165
1158
|
return !!((t = n[o]) != null && t.length);
|
|
1166
|
-
}, e.getLeftLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean),
|
|
1159
|
+
}, e.getLeftLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), w(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), w(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
|
|
1167
1160
|
const r = [...t ?? [], ...n ?? []];
|
|
1168
1161
|
return o.filter((i) => !r.includes(i.id));
|
|
1169
|
-
},
|
|
1162
|
+
}, w(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1170
1163
|
}
|
|
1171
1164
|
}, T = {
|
|
1172
1165
|
size: 150,
|
|
@@ -1197,7 +1190,7 @@ const Zt = {
|
|
|
1197
1190
|
var t, n, r;
|
|
1198
1191
|
const i = o.getState().columnSizing[e.id];
|
|
1199
1192
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : T.minSize, (n = i ?? e.columnDef.size) != null ? n : T.size), (r = e.columnDef.maxSize) != null ? r : T.maxSize);
|
|
1200
|
-
}, e.getStart = S((t) => [t, j(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0),
|
|
1193
|
+
}, e.getStart = S((t) => [t, j(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), w(o.options, "debugColumns", "getStart")), e.getAfter = S((t) => [t, j(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), w(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
1201
1194
|
o.setColumnSizing((t) => {
|
|
1202
1195
|
let {
|
|
1203
1196
|
[e.id]: n,
|
|
@@ -1238,8 +1231,8 @@ const Zt = {
|
|
|
1238
1231
|
var I, y;
|
|
1239
1232
|
const A = o.options.columnResizeDirection === "rtl" ? -1 : 1, he = (x - ((I = _ == null ? void 0 : _.startOffset) != null ? I : 0)) * A, Se = Math.max(he / ((y = _ == null ? void 0 : _.startSize) != null ? y : 0), -0.999999);
|
|
1240
1233
|
return _.columnSizingStart.forEach((Qe) => {
|
|
1241
|
-
let [et,
|
|
1242
|
-
g[et] = Math.round(Math.max(
|
|
1234
|
+
let [et, we] = Qe;
|
|
1235
|
+
g[et] = Math.round(Math.max(we + we * Se, 0) * 100) / 100;
|
|
1243
1236
|
}), {
|
|
1244
1237
|
..._,
|
|
1245
1238
|
deltaOffset: he,
|
|
@@ -1353,10 +1346,10 @@ const tn = {
|
|
|
1353
1346
|
};
|
|
1354
1347
|
},
|
|
1355
1348
|
createRow: (e, o) => {
|
|
1356
|
-
e._getAllVisibleCells = S(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()),
|
|
1349
|
+
e._getAllVisibleCells = S(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), w(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = S(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], w(o.options, "debugRows", "getVisibleCells"));
|
|
1357
1350
|
},
|
|
1358
1351
|
createTable: (e) => {
|
|
1359
|
-
const o = (t, n) => S(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()),
|
|
1352
|
+
const o = (t, n) => S(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), w(e.options, "debugColumns", t));
|
|
1360
1353
|
e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
1361
1354
|
var n;
|
|
1362
1355
|
e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
|
|
@@ -1572,7 +1565,7 @@ const nn = {
|
|
|
1572
1565
|
}), e.getPageOptions = S(() => [e.getPageCount()], (n) => {
|
|
1573
1566
|
let r = [];
|
|
1574
1567
|
return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
|
|
1575
|
-
},
|
|
1568
|
+
}, w(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
1576
1569
|
const {
|
|
1577
1570
|
pageIndex: n
|
|
1578
1571
|
} = e.getState().pagination, r = e.getPageCount();
|
|
@@ -1684,10 +1677,10 @@ const nn = {
|
|
|
1684
1677
|
...l,
|
|
1685
1678
|
position: n
|
|
1686
1679
|
}));
|
|
1687
|
-
}, e.getTopRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"),
|
|
1680
|
+
}, e.getTopRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), w(e.options, "debugRows", "getTopRows")), e.getBottomRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), w(e.options, "debugRows", "getBottomRows")), e.getCenterRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
|
|
1688
1681
|
const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
|
|
1689
1682
|
return o.filter((i) => !r.has(i.id));
|
|
1690
|
-
},
|
|
1683
|
+
}, w(e.options, "debugRows", "getCenterRows"));
|
|
1691
1684
|
}
|
|
1692
1685
|
}, sn = {
|
|
1693
1686
|
getInitialState: (e) => ({
|
|
@@ -1730,15 +1723,15 @@ const nn = {
|
|
|
1730
1723
|
rows: [],
|
|
1731
1724
|
flatRows: [],
|
|
1732
1725
|
rowsById: {}
|
|
1733
|
-
},
|
|
1726
|
+
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? te(e, t) : {
|
|
1734
1727
|
rows: [],
|
|
1735
1728
|
flatRows: [],
|
|
1736
1729
|
rowsById: {}
|
|
1737
|
-
},
|
|
1730
|
+
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? te(e, t) : {
|
|
1738
1731
|
rows: [],
|
|
1739
1732
|
flatRows: [],
|
|
1740
1733
|
rowsById: {}
|
|
1741
|
-
},
|
|
1734
|
+
}, w(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
1742
1735
|
const o = e.getFilteredRowModel().flatRows, {
|
|
1743
1736
|
rowSelection: t
|
|
1744
1737
|
} = e.getState();
|
|
@@ -2069,7 +2062,7 @@ function Sn(e) {
|
|
|
2069
2062
|
...r._features.reduce((m, h) => Object.assign(m, h.getDefaultColumnDef == null ? void 0 : h.getDefaultColumnDef()), {}),
|
|
2070
2063
|
...c
|
|
2071
2064
|
};
|
|
2072
|
-
},
|
|
2065
|
+
}, w(e, "debugColumns", "_getDefaultColumnDef")),
|
|
2073
2066
|
_getColumnDefs: () => r.options.columns,
|
|
2074
2067
|
getAllColumns: S(() => [r._getColumnDefs()], (c) => {
|
|
2075
2068
|
const a = function(m, h, R) {
|
|
@@ -2079,13 +2072,13 @@ function Sn(e) {
|
|
|
2079
2072
|
});
|
|
2080
2073
|
};
|
|
2081
2074
|
return a(c);
|
|
2082
|
-
},
|
|
2083
|
-
getAllFlatColumns: S(() => [r.getAllColumns()], (c) => c.flatMap((a) => a.getFlatColumns()),
|
|
2084
|
-
_getAllFlatColumnsById: S(() => [r.getAllFlatColumns()], (c) => c.reduce((a, m) => (a[m.id] = m, a), {}),
|
|
2075
|
+
}, w(e, "debugColumns", "getAllColumns")),
|
|
2076
|
+
getAllFlatColumns: S(() => [r.getAllColumns()], (c) => c.flatMap((a) => a.getFlatColumns()), w(e, "debugColumns", "getAllFlatColumns")),
|
|
2077
|
+
_getAllFlatColumnsById: S(() => [r.getAllFlatColumns()], (c) => c.reduce((a, m) => (a[m.id] = m, a), {}), w(e, "debugColumns", "getAllFlatColumnsById")),
|
|
2085
2078
|
getAllLeafColumns: S(() => [r.getAllColumns(), r._getOrderColumnsFn()], (c, a) => {
|
|
2086
2079
|
let m = c.flatMap((h) => h.getLeafColumns());
|
|
2087
2080
|
return a(m);
|
|
2088
|
-
},
|
|
2081
|
+
}, w(e, "debugColumns", "getAllLeafColumns")),
|
|
2089
2082
|
getColumn: (c) => {
|
|
2090
2083
|
const a = r._getAllFlatColumnsById()[c];
|
|
2091
2084
|
return process.env.NODE_ENV !== "production" && !a && console.error(`[Table] Column with id '${c}' does not exist.`), a;
|
|
@@ -2098,7 +2091,7 @@ function Sn(e) {
|
|
|
2098
2091
|
}
|
|
2099
2092
|
return r;
|
|
2100
2093
|
}
|
|
2101
|
-
function
|
|
2094
|
+
function wn() {
|
|
2102
2095
|
return (e) => S(() => [e.options.data], (o) => {
|
|
2103
2096
|
const t = {
|
|
2104
2097
|
rows: [],
|
|
@@ -2117,9 +2110,9 @@ function Cn() {
|
|
|
2117
2110
|
return u;
|
|
2118
2111
|
};
|
|
2119
2112
|
return t.rows = n(o), t;
|
|
2120
|
-
},
|
|
2113
|
+
}, w(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
2121
2114
|
}
|
|
2122
|
-
function
|
|
2115
|
+
function Cn(e) {
|
|
2123
2116
|
const o = [], t = (n) => {
|
|
2124
2117
|
var r;
|
|
2125
2118
|
o.push(n), (r = n.subRows) != null && r.length && n.getIsExpanded() && n.subRows.forEach(t);
|
|
@@ -2197,7 +2190,7 @@ function xn() {
|
|
|
2197
2190
|
return !0;
|
|
2198
2191
|
};
|
|
2199
2192
|
return Je(t.rows, l, e);
|
|
2200
|
-
},
|
|
2193
|
+
}, w(e.options, "debugTable", "getFacetedRowModel"));
|
|
2201
2194
|
}
|
|
2202
2195
|
function _n() {
|
|
2203
2196
|
return (e, o) => S(() => {
|
|
@@ -2218,7 +2211,7 @@ function _n() {
|
|
|
2218
2211
|
}
|
|
2219
2212
|
}
|
|
2220
2213
|
return n;
|
|
2221
|
-
},
|
|
2214
|
+
}, w(e.options, "debugTable", `getFacetedUniqueValues_${o}`));
|
|
2222
2215
|
}
|
|
2223
2216
|
function Fn() {
|
|
2224
2217
|
return (e) => S(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
@@ -2285,7 +2278,7 @@ function Fn() {
|
|
|
2285
2278
|
return !0;
|
|
2286
2279
|
};
|
|
2287
2280
|
return Je(o.rows, f, e);
|
|
2288
|
-
},
|
|
2281
|
+
}, w(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
2289
2282
|
}
|
|
2290
2283
|
function yn(e) {
|
|
2291
2284
|
return (o) => S(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
|
@@ -2307,7 +2300,7 @@ function yn(e) {
|
|
|
2307
2300
|
rows: l,
|
|
2308
2301
|
flatRows: u,
|
|
2309
2302
|
rowsById: s
|
|
2310
|
-
} : f =
|
|
2303
|
+
} : f = Cn({
|
|
2311
2304
|
rows: l,
|
|
2312
2305
|
flatRows: u,
|
|
2313
2306
|
rowsById: s
|
|
@@ -2316,7 +2309,7 @@ function yn(e) {
|
|
|
2316
2309
|
f.flatRows.push(a), a.subRows.length && a.subRows.forEach(c);
|
|
2317
2310
|
};
|
|
2318
2311
|
return f.rows.forEach(c), f;
|
|
2319
|
-
},
|
|
2312
|
+
}, w(o.options, "debugTable", "getPaginationRowModel"));
|
|
2320
2313
|
}
|
|
2321
2314
|
function $n() {
|
|
2322
2315
|
return (e) => S(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
@@ -2365,7 +2358,7 @@ function $n() {
|
|
|
2365
2358
|
flatRows: r,
|
|
2366
2359
|
rowsById: t.rowsById
|
|
2367
2360
|
};
|
|
2368
|
-
},
|
|
2361
|
+
}, w(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
2369
2362
|
}
|
|
2370
2363
|
/**
|
|
2371
2364
|
* react-table
|
|
@@ -2433,13 +2426,13 @@ const En = ({
|
|
|
2433
2426
|
return t < s ? g = u : e - 1 <= o ? g = u.slice(0, s - (i > 0 ? i + 1 : 0)) : e + o >= t ? g = u.slice(t - s + (i > 0 ? i + 1 : 0), t) : g = u.slice(
|
|
2434
2427
|
e - 1 - (o - (i > 0 ? i + 1 : 0)),
|
|
2435
2428
|
e + (o - (i > 0 ? i + 1 : 0))
|
|
2436
|
-
), /* @__PURE__ */ p.jsxs("div", { className:
|
|
2429
|
+
), /* @__PURE__ */ p.jsxs("div", { className: C("flex", l == null ? void 0 : l.root), children: [
|
|
2437
2430
|
r && /* @__PURE__ */ p.jsx(
|
|
2438
2431
|
D,
|
|
2439
2432
|
{
|
|
2440
2433
|
size: "sm",
|
|
2441
2434
|
intent: "ghost",
|
|
2442
|
-
className:
|
|
2435
|
+
className: C("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", l == null ? void 0 : l.button),
|
|
2443
2436
|
disabled: e <= 1,
|
|
2444
2437
|
onClick: () => e > 1 && n(e - 2),
|
|
2445
2438
|
children: /* @__PURE__ */ p.jsx(N, { name: "arrows/arrowRight", className: "rotate-180" })
|
|
@@ -2450,7 +2443,7 @@ const En = ({
|
|
|
2450
2443
|
{
|
|
2451
2444
|
size: "sm",
|
|
2452
2445
|
intent: "ghost",
|
|
2453
|
-
className:
|
|
2446
|
+
className: C("mob-body-regular-l w-[40px] p-0 text-color-dark", l == null ? void 0 : l.button),
|
|
2454
2447
|
onClick: () => d !== e - 1 && n(d),
|
|
2455
2448
|
children: d + 1
|
|
2456
2449
|
},
|
|
@@ -2461,7 +2454,7 @@ const En = ({
|
|
|
2461
2454
|
{
|
|
2462
2455
|
size: "sm",
|
|
2463
2456
|
intent: "ghost",
|
|
2464
|
-
className:
|
|
2457
|
+
className: C("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark", l == null ? void 0 : l.ellipsis),
|
|
2465
2458
|
children: "..."
|
|
2466
2459
|
}
|
|
2467
2460
|
),
|
|
@@ -2471,7 +2464,7 @@ const En = ({
|
|
|
2471
2464
|
D,
|
|
2472
2465
|
{
|
|
2473
2466
|
size: "sm",
|
|
2474
|
-
className:
|
|
2467
|
+
className: C(
|
|
2475
2468
|
"mob-body-regular-l w-[40px] p-0 text-color-dark",
|
|
2476
2469
|
{
|
|
2477
2470
|
[`text-color-primary-default ${l == null ? void 0 : l.active}`]: f
|
|
@@ -2490,7 +2483,7 @@ const En = ({
|
|
|
2490
2483
|
{
|
|
2491
2484
|
size: "sm",
|
|
2492
2485
|
intent: "ghost",
|
|
2493
|
-
className:
|
|
2486
|
+
className: C("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark", l == null ? void 0 : l.ellipsis),
|
|
2494
2487
|
children: "..."
|
|
2495
2488
|
}
|
|
2496
2489
|
),
|
|
@@ -2498,7 +2491,7 @@ const En = ({
|
|
|
2498
2491
|
D,
|
|
2499
2492
|
{
|
|
2500
2493
|
size: "sm",
|
|
2501
|
-
className:
|
|
2494
|
+
className: C("mob-body-regular-l w-[40px] p-0 text-color-dark", l == null ? void 0 : l.button),
|
|
2502
2495
|
intent: "ghost",
|
|
2503
2496
|
onClick: () => d !== e - 1 && n(d),
|
|
2504
2497
|
children: d + 1
|
|
@@ -2510,7 +2503,7 @@ const En = ({
|
|
|
2510
2503
|
{
|
|
2511
2504
|
size: "sm",
|
|
2512
2505
|
intent: "ghost",
|
|
2513
|
-
className:
|
|
2506
|
+
className: C("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", l == null ? void 0 : l.button),
|
|
2514
2507
|
disabled: e >= t,
|
|
2515
2508
|
onClick: () => e < t && n(e),
|
|
2516
2509
|
children: /* @__PURE__ */ p.jsx(N, { name: "arrows/arrowRight" })
|
|
@@ -2519,8 +2512,8 @@ const En = ({
|
|
|
2519
2512
|
] });
|
|
2520
2513
|
}, Dn = ({ page: e, pageCount: o, pageSize: t, onPageIndexChange: n, rowsCount: r, classes: i }) => {
|
|
2521
2514
|
const l = t * e, u = l > r ? r : l;
|
|
2522
|
-
return /* @__PURE__ */ p.jsxs("div", { className:
|
|
2523
|
-
/* @__PURE__ */ p.jsxs("span", { className:
|
|
2515
|
+
return /* @__PURE__ */ p.jsxs("div", { className: C("flex w-full items-center justify-between", i == null ? void 0 : i.root), children: [
|
|
2516
|
+
/* @__PURE__ */ p.jsxs("span", { className: C("desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.displayShown), children: [
|
|
2524
2517
|
"Показано ",
|
|
2525
2518
|
u,
|
|
2526
2519
|
" из ",
|
|
@@ -2546,12 +2539,12 @@ const En = ({
|
|
|
2546
2539
|
onPageIndexChange: t.setPageIndex,
|
|
2547
2540
|
classes: n == null ? void 0 : n.pagination
|
|
2548
2541
|
};
|
|
2549
|
-
return /* @__PURE__ */ p.jsxs("div", { className:
|
|
2550
|
-
/* @__PURE__ */ p.jsxs(Ne, { className:
|
|
2542
|
+
return /* @__PURE__ */ p.jsxs("div", { className: C("flex w-full flex-col gap-y-4", n == null ? void 0 : n.root), children: [
|
|
2543
|
+
/* @__PURE__ */ p.jsxs(Ne, { className: C("w-full", n == null ? void 0 : n.table), children: [
|
|
2551
2544
|
o && /* @__PURE__ */ p.jsx(ze, { className: "px-2", children: t.getHeaderGroups().map((u) => /* @__PURE__ */ p.jsx(
|
|
2552
2545
|
B,
|
|
2553
2546
|
{
|
|
2554
|
-
className:
|
|
2547
|
+
className: C(
|
|
2555
2548
|
"w-full",
|
|
2556
2549
|
{
|
|
2557
2550
|
"border-b border-b-[rgba(234,237,241,1)]": e === "solid"
|
|
@@ -2561,7 +2554,7 @@ const En = ({
|
|
|
2561
2554
|
children: u.headers.map((s) => /* @__PURE__ */ p.jsx(
|
|
2562
2555
|
Oe,
|
|
2563
2556
|
{
|
|
2564
|
-
className:
|
|
2557
|
+
className: C(
|
|
2565
2558
|
"py-3",
|
|
2566
2559
|
{
|
|
2567
2560
|
"px-2": e === "odd"
|
|
@@ -2578,7 +2571,7 @@ const En = ({
|
|
|
2578
2571
|
/* @__PURE__ */ p.jsx(Te, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((u) => /* @__PURE__ */ p.jsx(
|
|
2579
2572
|
B,
|
|
2580
2573
|
{
|
|
2581
|
-
className:
|
|
2574
|
+
className: C(
|
|
2582
2575
|
"w-full",
|
|
2583
2576
|
{
|
|
2584
2577
|
"[&:not(:last-child)]:border-b [&:not(:last-child)]:border-b-[rgba(234,237,241,1)]": e === "solid",
|
|
@@ -2589,7 +2582,7 @@ const En = ({
|
|
|
2589
2582
|
children: u.getVisibleCells().map((s, g) => /* @__PURE__ */ p.jsx(
|
|
2590
2583
|
oe,
|
|
2591
2584
|
{
|
|
2592
|
-
className:
|
|
2585
|
+
className: C(
|
|
2593
2586
|
"py-3",
|
|
2594
2587
|
{
|
|
2595
2588
|
"px-2": e === "odd",
|
|
@@ -2612,10 +2605,10 @@ const En = ({
|
|
|
2612
2605
|
enableHeaders: o,
|
|
2613
2606
|
table: t,
|
|
2614
2607
|
classes: n
|
|
2615
|
-
}) => /* @__PURE__ */ p.jsx("div", { className:
|
|
2608
|
+
}) => /* @__PURE__ */ p.jsx("div", { className: C("w-full", n == null ? void 0 : n.table), children: t.getRowModel().rows.length ? t.getRowModel().rows.map((r) => /* @__PURE__ */ p.jsx(
|
|
2616
2609
|
"div",
|
|
2617
2610
|
{
|
|
2618
|
-
className:
|
|
2611
|
+
className: C(
|
|
2619
2612
|
{
|
|
2620
2613
|
"[&:not(:last-child)]:border-b [&:not(:last-child)]:border-b-[rgba(234,237,241,1)]": e === "solid",
|
|
2621
2614
|
"[&:nth-child(odd)]:bg-color-primary-light-default": e === "odd"
|
|
@@ -2627,7 +2620,7 @@ const En = ({
|
|
|
2627
2620
|
return /* @__PURE__ */ p.jsxs(
|
|
2628
2621
|
"div",
|
|
2629
2622
|
{
|
|
2630
|
-
className:
|
|
2623
|
+
className: C(
|
|
2631
2624
|
"grid grid-cols-2 p-2",
|
|
2632
2625
|
{
|
|
2633
2626
|
"px-2": e === "odd",
|
|
@@ -2660,7 +2653,7 @@ const En = ({
|
|
|
2660
2653
|
enableRowSelection: !0,
|
|
2661
2654
|
onSortingChange: g,
|
|
2662
2655
|
onColumnFiltersChange: u,
|
|
2663
|
-
getCoreRowModel:
|
|
2656
|
+
getCoreRowModel: wn(),
|
|
2664
2657
|
getFilteredRowModel: Fn(),
|
|
2665
2658
|
getSortedRowModel: $n(),
|
|
2666
2659
|
getFacetedRowModel: xn(),
|
|
@@ -2706,7 +2699,7 @@ class eo {
|
|
|
2706
2699
|
}
|
|
2707
2700
|
const to = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
2708
2701
|
const { toasts: t } = ft();
|
|
2709
|
-
return
|
|
2702
|
+
return $e(() => {
|
|
2710
2703
|
t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => pt.dismiss(n.id));
|
|
2711
2704
|
}, [e, t]), /* @__PURE__ */ p.jsx(
|
|
2712
2705
|
mt,
|
|
@@ -2720,7 +2713,7 @@ const to = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
|
2720
2713
|
}, no = ({ linksList: e }) => /* @__PURE__ */ p.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: e.map((o) => /* @__PURE__ */ p.jsx(p.Fragment, { children: "path" in o ? /* @__PURE__ */ p.jsxs(
|
|
2721
2714
|
"div",
|
|
2722
2715
|
{
|
|
2723
|
-
className:
|
|
2716
|
+
className: C(
|
|
2724
2717
|
"flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
|
|
2725
2718
|
{ "pointer-events-none !border-transparent": o == null ? void 0 : o.isDisabled }
|
|
2726
2719
|
),
|
|
@@ -2731,7 +2724,7 @@ const to = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
|
2731
2724
|
href: o.path,
|
|
2732
2725
|
target: "_blank",
|
|
2733
2726
|
rel: "noreferrer",
|
|
2734
|
-
className:
|
|
2727
|
+
className: C(
|
|
2735
2728
|
"desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
|
|
2736
2729
|
{ "!text-color-disabled": o == null ? void 0 : o.isDisabled }
|
|
2737
2730
|
),
|
|
@@ -2742,15 +2735,15 @@ const to = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
|
2742
2735
|
N,
|
|
2743
2736
|
{
|
|
2744
2737
|
name: "arrows/arrowRight",
|
|
2745
|
-
className:
|
|
2738
|
+
className: C("size-4 text-icon-primary-default", { "!text-icon-disabled": o == null ? void 0 : o.isDisabled })
|
|
2746
2739
|
}
|
|
2747
2740
|
)
|
|
2748
2741
|
]
|
|
2749
2742
|
}
|
|
2750
|
-
) : /* @__PURE__ */ p.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }), An = ({ children: e }) => /* @__PURE__ */ p.jsx(p.Fragment, { children: e }), ae =
|
|
2743
|
+
) : /* @__PURE__ */ p.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }), An = ({ children: e }) => /* @__PURE__ */ p.jsx(p.Fragment, { children: e }), ae = V(({ children: e, ...o }, t) => {
|
|
2751
2744
|
if (k(e)) {
|
|
2752
2745
|
const n = Gn(e);
|
|
2753
|
-
return
|
|
2746
|
+
return Ve(e, {
|
|
2754
2747
|
...jn(o, e.props),
|
|
2755
2748
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2756
2749
|
// @ts-expect-error
|
|
@@ -2773,11 +2766,11 @@ const Hn = (e) => k(e) && e.type === An, Gn = (e) => {
|
|
|
2773
2766
|
}) : r ? t[n] = r : n === "style" ? t[n] = { ...r, ...i } : n === "className" && (t[n] = [r, i].filter(Boolean).join(" "));
|
|
2774
2767
|
}
|
|
2775
2768
|
return { ...e, ...t };
|
|
2776
|
-
}, Nn =
|
|
2769
|
+
}, Nn = V(({ children: e, ...o }, t) => {
|
|
2777
2770
|
const n = G.toArray(e), r = n.find(Hn);
|
|
2778
2771
|
if (r) {
|
|
2779
2772
|
const i = r.props.children, l = n.map((u) => u === r ? G.count(i) > 1 ? G.only(null) : k(i) ? i.props.children : null : u);
|
|
2780
|
-
return /* @__PURE__ */ p.jsx(ae, { ...o, ref: t, children: k(i) ?
|
|
2773
|
+
return /* @__PURE__ */ p.jsx(ae, { ...o, ref: t, children: k(i) ? Ve(i, void 0, l) : null });
|
|
2781
2774
|
}
|
|
2782
2775
|
return /* @__PURE__ */ p.jsx(ae, { ...o, ref: t, children: e });
|
|
2783
2776
|
});
|
|
@@ -2822,11 +2815,11 @@ export {
|
|
|
2822
2815
|
Zn as TabsSwitcher,
|
|
2823
2816
|
So as Uncontrolled,
|
|
2824
2817
|
Wn as allowedIcons,
|
|
2825
|
-
|
|
2818
|
+
wo as brandLogos,
|
|
2826
2819
|
xo as defaultClassNames,
|
|
2827
2820
|
_o as formatDateToLocaleString,
|
|
2828
2821
|
Fo as formatDateToMonthString,
|
|
2829
2822
|
yo as formatDateToYearString,
|
|
2830
|
-
|
|
2823
|
+
Co as isSingleOption
|
|
2831
2824
|
};
|
|
2832
2825
|
//# sourceMappingURL=ui.js.map
|