@sequenceholdings/atlas-ui 0.3.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +24 -58
- package/dist/index.mjs +336 -397
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -49,7 +49,7 @@ function oe(e) {
|
|
|
49
49
|
minute: "2-digit"
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function B(e) {
|
|
53
53
|
if (e < 1e3) return `${Math.round(e)}ms`;
|
|
54
54
|
let t = Math.floor(e / 1e3);
|
|
55
55
|
if (t < 60) return `${(e / 1e3).toFixed(1)}s`;
|
|
@@ -58,12 +58,12 @@ function se(e) {
|
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region ../../../atlas/src/shared/contexts/PortalContainerContext.tsx
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
return m.useContext(
|
|
61
|
+
var se = m.createContext({ container: null });
|
|
62
|
+
function ce() {
|
|
63
|
+
return m.useContext(se).container;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return m.useContext(
|
|
65
|
+
function le() {
|
|
66
|
+
return m.useContext(se).appClassName;
|
|
67
67
|
}
|
|
68
68
|
function ue({ children: e, appClassName: t }) {
|
|
69
69
|
let [n, r] = m.useState(null), i = m.useCallback((e) => {
|
|
@@ -72,7 +72,7 @@ function ue({ children: e, appClassName: t }) {
|
|
|
72
72
|
container: n,
|
|
73
73
|
appClassName: t
|
|
74
74
|
}), [n, t]);
|
|
75
|
-
return /* @__PURE__ */ O(
|
|
75
|
+
return /* @__PURE__ */ O(se.Provider, {
|
|
76
76
|
value: a,
|
|
77
77
|
children: /* @__PURE__ */ O("div", {
|
|
78
78
|
ref: i,
|
|
@@ -634,13 +634,13 @@ function nt(e) {
|
|
|
634
634
|
return t && r.push(t), n && r.push(n), r;
|
|
635
635
|
}
|
|
636
636
|
var rt = (e) => {
|
|
637
|
-
let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = h.useState(null), [k, A] = h.useState(null), [j, M] = h.useState(!1), [N, P] = h.useState(!1), [F, I] = h.useState(!1), [L, ee] = h.useState(!1), [R, z] = h.useState(!1), [te, ne] = h.useState(0), [re, ie] = h.useState(0), ae = h.useRef(n.duration || b || Xe), oe = h.useRef(null),
|
|
637
|
+
let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = h.useState(null), [k, A] = h.useState(null), [j, M] = h.useState(!1), [N, P] = h.useState(!1), [F, I] = h.useState(!1), [L, ee] = h.useState(!1), [R, z] = h.useState(!1), [te, ne] = h.useState(0), [re, ie] = h.useState(0), ae = h.useRef(n.duration || b || Xe), oe = h.useRef(null), B = h.useRef(null), se = c === 0, ce = c + 1 <= o, le = n.type, ue = n.dismissible !== !1, de = n.className || "", fe = n.descriptionClassName || "", pe = h.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), me = h.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), V = h.useMemo(() => n.duration || b || Xe, [n.duration, b]), he = h.useRef(0), ge = h.useRef(0), _e = h.useRef(0), ve = h.useRef(null), [ye, be] = x.split("-"), xe = h.useMemo(() => s.reduce((e, t, n) => n >= pe ? e : e + t.height, 0), [s, pe]), Se = Ve(), Ce = n.invert || t, we = le === "loading";
|
|
638
638
|
ge.current = h.useMemo(() => pe * S + xe, [pe, xe]), h.useEffect(() => {
|
|
639
639
|
ae.current = V;
|
|
640
640
|
}, [V]), h.useEffect(() => {
|
|
641
641
|
M(!0);
|
|
642
642
|
}, []), h.useEffect(() => {
|
|
643
|
-
let e =
|
|
643
|
+
let e = B.current;
|
|
644
644
|
if (e) {
|
|
645
645
|
let t = e.getBoundingClientRect().height;
|
|
646
646
|
return ie(t), a((e) => [{
|
|
@@ -651,7 +651,7 @@ var rt = (e) => {
|
|
|
651
651
|
}
|
|
652
652
|
}, [a, n.id]), h.useLayoutEffect(() => {
|
|
653
653
|
if (!j) return;
|
|
654
|
-
let e =
|
|
654
|
+
let e = B.current, t = e.style.height;
|
|
655
655
|
e.style.height = "auto";
|
|
656
656
|
let r = e.getBoundingClientRect().height;
|
|
657
657
|
e.style.height = t, ie(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
|
|
@@ -683,7 +683,7 @@ var rt = (e) => {
|
|
|
683
683
|
ge
|
|
684
684
|
]);
|
|
685
685
|
h.useEffect(() => {
|
|
686
|
-
if (n.promise &&
|
|
686
|
+
if (n.promise && le === "loading" || n.duration === Infinity || n.type === "loading") return;
|
|
687
687
|
let e;
|
|
688
688
|
return u || i || Se ? (() => {
|
|
689
689
|
if (_e.current < he.current) {
|
|
@@ -698,7 +698,7 @@ var rt = (e) => {
|
|
|
698
698
|
u,
|
|
699
699
|
i,
|
|
700
700
|
n,
|
|
701
|
-
|
|
701
|
+
le,
|
|
702
702
|
Se,
|
|
703
703
|
Te
|
|
704
704
|
]), h.useEffect(() => {
|
|
@@ -707,17 +707,17 @@ var rt = (e) => {
|
|
|
707
707
|
function Ee() {
|
|
708
708
|
return T?.loading ? /*#__PURE__*/ h.createElement("div", {
|
|
709
709
|
className: tt(w?.loader, n?.classNames?.loader, "sonner-loader"),
|
|
710
|
-
"data-visible":
|
|
710
|
+
"data-visible": le === "loading"
|
|
711
711
|
}, T.loading) : /*#__PURE__*/ h.createElement(Fe, {
|
|
712
712
|
className: tt(w?.loader, n?.classNames?.loader),
|
|
713
|
-
visible:
|
|
713
|
+
visible: le === "loading"
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
|
-
let De = n.icon || T?.[
|
|
716
|
+
let De = n.icon || T?.[le] || Ne(le);
|
|
717
717
|
return /*#__PURE__*/ h.createElement("li", {
|
|
718
718
|
tabIndex: 0,
|
|
719
|
-
ref:
|
|
720
|
-
className: tt(v, de, w?.toast, n?.classNames?.toast, w?.default, w?.[
|
|
719
|
+
ref: B,
|
|
720
|
+
className: tt(v, de, w?.toast, n?.classNames?.toast, w?.default, w?.[le], n?.classNames?.[le]),
|
|
721
721
|
"data-sonner-toast": "",
|
|
722
722
|
"data-rich-colors": n.richColors ?? f,
|
|
723
723
|
"data-styled": !(n.jsx || n.unstyled || r),
|
|
@@ -725,14 +725,14 @@ var rt = (e) => {
|
|
|
725
725
|
"data-promise": !!n.promise,
|
|
726
726
|
"data-swiped": R,
|
|
727
727
|
"data-removed": N,
|
|
728
|
-
"data-visible":
|
|
728
|
+
"data-visible": ce,
|
|
729
729
|
"data-y-position": ye,
|
|
730
730
|
"data-x-position": be,
|
|
731
731
|
"data-index": c,
|
|
732
|
-
"data-front":
|
|
732
|
+
"data-front": se,
|
|
733
733
|
"data-swiping": F,
|
|
734
734
|
"data-dismissible": ue,
|
|
735
|
-
"data-type":
|
|
735
|
+
"data-type": le,
|
|
736
736
|
"data-invert": Ce,
|
|
737
737
|
"data-swipe-out": L,
|
|
738
738
|
"data-swipe-direction": k,
|
|
@@ -759,13 +759,13 @@ var rt = (e) => {
|
|
|
759
759
|
onPointerUp: () => {
|
|
760
760
|
if (L || !ue) return;
|
|
761
761
|
ve.current = null;
|
|
762
|
-
let e = Number(
|
|
762
|
+
let e = Number(B.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(B.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - oe.current?.getTime(), i = D === "x" ? e : t, a = Math.abs(i) / r;
|
|
763
763
|
if (Math.abs(i) >= $e || a > .11) {
|
|
764
764
|
ne(ge.current), n.onDismiss == null || n.onDismiss.call(n, n), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Te(), ee(!0);
|
|
765
765
|
return;
|
|
766
766
|
} else {
|
|
767
767
|
var o, s;
|
|
768
|
-
(o =
|
|
768
|
+
(o = B.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = B.current) == null || s.style.setProperty("--swipe-amount-y", "0px");
|
|
769
769
|
}
|
|
770
770
|
z(!1), I(!1), O(null);
|
|
771
771
|
},
|
|
@@ -789,9 +789,9 @@ var rt = (e) => {
|
|
|
789
789
|
let e = a * c(a);
|
|
790
790
|
s.x = Math.abs(e) < Math.abs(a) ? e : a;
|
|
791
791
|
}
|
|
792
|
-
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) && z(!0), (n =
|
|
792
|
+
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) && z(!0), (n = B.current) == null || n.style.setProperty("--swipe-amount-x", `${s.x}px`), (r = B.current) == null || r.style.setProperty("--swipe-amount-y", `${s.y}px`);
|
|
793
793
|
}
|
|
794
|
-
}, me && !n.jsx &&
|
|
794
|
+
}, me && !n.jsx && le !== "loading" ? /*#__PURE__*/ h.createElement("button", {
|
|
795
795
|
"aria-label": E,
|
|
796
796
|
"data-disabled": we,
|
|
797
797
|
"data-close-button": !0,
|
|
@@ -799,7 +799,7 @@ var rt = (e) => {
|
|
|
799
799
|
Te(), n.onDismiss == null || n.onDismiss.call(n, n);
|
|
800
800
|
},
|
|
801
801
|
className: tt(w?.closeButton, n?.classNames?.closeButton)
|
|
802
|
-
}, T?.close ?? Be) : null, (
|
|
802
|
+
}, T?.close ?? Be) : null, (le || n.icon || n.promise) && n.icon !== null && (T?.[le] !== null || n.icon) ? /*#__PURE__*/ h.createElement("div", {
|
|
803
803
|
"data-icon": "",
|
|
804
804
|
className: tt(w?.icon, n?.classNames?.icon)
|
|
805
805
|
}, n.promise || n.type === "loading" && !n.icon ? n.icon || Ee() : null, n.type === "loading" ? null : De) : null, /*#__PURE__*/ h.createElement("div", {
|
|
@@ -3877,7 +3877,7 @@ function ns(e) {
|
|
|
3877
3877
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
3878
3878
|
}
|
|
3879
3879
|
var rs = jo, is = Fo, as = Lo, os = Vo, ss = Uo, cs = Xo, ls = rs, us = is, ds = as, fs = m.forwardRef(({ className: e, sideOffset: t = 6, container: n, children: i, ...a }, o) => {
|
|
3880
|
-
let s =
|
|
3880
|
+
let s = ce();
|
|
3881
3881
|
return /* @__PURE__ */ O(os, {
|
|
3882
3882
|
container: (n === void 0 ? s : n) ?? void 0,
|
|
3883
3883
|
children: /* @__PURE__ */ k(ss, {
|
|
@@ -6266,7 +6266,7 @@ var cp = Mf, lp = Pf, up = If, dp = Rf, fp = Bf, pp = Hf, mp = Wf, hp = Kf, gp =
|
|
|
6266
6266
|
}));
|
|
6267
6267
|
kp.displayName = xp.displayName;
|
|
6268
6268
|
var Ap = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(up, {
|
|
6269
|
-
container:
|
|
6269
|
+
container: ce() ?? void 0,
|
|
6270
6270
|
children: /* @__PURE__ */ O(Sp, {
|
|
6271
6271
|
"data-density": "default",
|
|
6272
6272
|
ref: n,
|
|
@@ -6276,7 +6276,7 @@ var Ap = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(up, {
|
|
|
6276
6276
|
}));
|
|
6277
6277
|
Ap.displayName = Sp.displayName;
|
|
6278
6278
|
var jp = m.forwardRef(({ className: e, sideOffset: t = 4, ...n }, i) => /* @__PURE__ */ O(up, {
|
|
6279
|
-
container:
|
|
6279
|
+
container: ce() ?? void 0,
|
|
6280
6280
|
children: /* @__PURE__ */ O(dp, {
|
|
6281
6281
|
"data-density": "default",
|
|
6282
6282
|
ref: i,
|
|
@@ -8697,7 +8697,7 @@ function e_(e) {
|
|
|
8697
8697
|
return e ? "open" : "closed";
|
|
8698
8698
|
}
|
|
8699
8699
|
var t_ = Fg, n_ = Lg, r_ = zg, i_ = Ug, a_ = Gg, o_ = t_, s_ = r_, c_ = n_, l_ = m.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ O(i_, {
|
|
8700
|
-
container:
|
|
8700
|
+
container: ce() ?? void 0,
|
|
8701
8701
|
children: /* @__PURE__ */ O(a_, {
|
|
8702
8702
|
"data-density": "default",
|
|
8703
8703
|
ref: a,
|
|
@@ -9396,7 +9396,7 @@ function Jv(e) {
|
|
|
9396
9396
|
//#endregion
|
|
9397
9397
|
//#region ../../../atlas/src/shared/components/ui/use-overlay-portal-target.ts
|
|
9398
9398
|
function Yv({ container: e, escapeMfeContainment: t, fallbackId: n }) {
|
|
9399
|
-
let r =
|
|
9399
|
+
let r = ce(), i = le(), [a, o] = m.useState(null), s = !e && t ? r?.closest("[data-mfe-container]")?.getAttribute("data-overlay-portal-class") ?? null : null, c = !e && t && r?.closest("[data-mfe-container]") != null ? null : r;
|
|
9400
9400
|
return m.useLayoutEffect(() => {
|
|
9401
9401
|
if (e || c) {
|
|
9402
9402
|
o(null);
|
|
@@ -9587,28 +9587,29 @@ function _y() {
|
|
|
9587
9587
|
children: /* @__PURE__ */ O(Cn, { className: "size-icon-sm" })
|
|
9588
9588
|
});
|
|
9589
9589
|
}
|
|
9590
|
-
function vy({ label: e, countLabel: t, options: n, selected: i, onChange: a, searchPlaceholder: o, emptyMessage: s = "No matches.", maxStackedIcons: c = 3, hideWhenEmpty: l = !0,
|
|
9591
|
-
let [
|
|
9590
|
+
function vy({ label: e, countLabel: t, options: n, selected: i, onChange: a, searchPlaceholder: o, emptyMessage: s = "No matches.", maxStackedIcons: c = 3, hideWhenEmpty: l = !0, modal: u = !1, className: d }) {
|
|
9591
|
+
let [f, p] = E(!1), [m, h] = E(""), g = i.length > 0, _ = t ?? e.toLowerCase(), v = w(() => {
|
|
9592
9592
|
let e = new Set(i);
|
|
9593
9593
|
return n.filter((t) => e.has(t.value));
|
|
9594
|
-
}, [n, i]).slice(0, c),
|
|
9594
|
+
}, [n, i]).slice(0, c), y = w(() => n.some((e) => e.icon != null), [n]);
|
|
9595
9595
|
return l && n.length === 0 ? null : /* @__PURE__ */ k(o_, {
|
|
9596
|
-
open:
|
|
9596
|
+
open: f,
|
|
9597
9597
|
onOpenChange: (e) => {
|
|
9598
|
-
|
|
9598
|
+
p(e), e || h("");
|
|
9599
9599
|
},
|
|
9600
|
+
modal: u,
|
|
9600
9601
|
children: [/* @__PURE__ */ O(s_, {
|
|
9601
9602
|
asChild: !0,
|
|
9602
9603
|
children: /* @__PURE__ */ O("button", {
|
|
9603
9604
|
type: "button",
|
|
9604
9605
|
"data-slot": "multi-select-trigger",
|
|
9605
9606
|
"aria-haspopup": "listbox",
|
|
9606
|
-
"aria-expanded":
|
|
9607
|
-
className: r("flex h-9 items-center gap-2 whitespace-nowrap rounded-field border border-input bg-field px-3 py-1 text-base md:text-sm", "ring-offset-background transition-colors", "focus:outline-none focus:ring-1 focus:ring-ring", "disabled:cursor-not-allowed disabled:opacity-50",
|
|
9608
|
-
children:
|
|
9609
|
-
|
|
9607
|
+
"aria-expanded": f,
|
|
9608
|
+
className: r("flex h-9 items-center gap-2 whitespace-nowrap rounded-field border border-input bg-field px-3 py-1 text-base md:text-sm", "ring-offset-background transition-colors", "focus:outline-none focus:ring-1 focus:ring-ring", "disabled:cursor-not-allowed disabled:opacity-50", g ? "text-foreground" : "text-muted-foreground hover:text-foreground", d),
|
|
9609
|
+
children: g ? /* @__PURE__ */ k(D, { children: [
|
|
9610
|
+
y && v.length > 0 && /* @__PURE__ */ O("span", {
|
|
9610
9611
|
className: "flex shrink-0 flex-row-reverse -space-x-1.5 space-x-reverse",
|
|
9611
|
-
children: [...
|
|
9612
|
+
children: [...v].reverse().map((e) => /* @__PURE__ */ O("span", {
|
|
9612
9613
|
className: "flex size-5 shrink-0 items-center justify-center rounded-full ring-2 ring-background",
|
|
9613
9614
|
children: e.icon ?? /* @__PURE__ */ O(_y, {})
|
|
9614
9615
|
}, e.value))
|
|
@@ -9621,7 +9622,7 @@ function vy({ label: e, countLabel: t, options: n, selected: i, onChange: a, sea
|
|
|
9621
9622
|
children: i.length
|
|
9622
9623
|
}),
|
|
9623
9624
|
" ",
|
|
9624
|
-
|
|
9625
|
+
_
|
|
9625
9626
|
]
|
|
9626
9627
|
}),
|
|
9627
9628
|
/* @__PURE__ */ O("span", {
|
|
@@ -9647,7 +9648,7 @@ function vy({ label: e, countLabel: t, options: n, selected: i, onChange: a, sea
|
|
|
9647
9648
|
className: "min-w-0 truncate",
|
|
9648
9649
|
children: e
|
|
9649
9650
|
}), /* @__PURE__ */ O(ln, {
|
|
9650
|
-
className: r("size-icon shrink-0 opacity-50 transition-transform",
|
|
9651
|
+
className: r("size-icon shrink-0 opacity-50 transition-transform", f && "rotate-180"),
|
|
9651
9652
|
"aria-hidden": !0
|
|
9652
9653
|
})] })
|
|
9653
9654
|
})
|
|
@@ -9660,8 +9661,8 @@ function vy({ label: e, countLabel: t, options: n, selected: i, onChange: a, sea
|
|
|
9660
9661
|
onChange: a,
|
|
9661
9662
|
searchPlaceholder: o ?? e,
|
|
9662
9663
|
emptyMessage: s,
|
|
9663
|
-
query:
|
|
9664
|
-
onQueryChange:
|
|
9664
|
+
query: m,
|
|
9665
|
+
onQueryChange: h
|
|
9665
9666
|
})
|
|
9666
9667
|
})]
|
|
9667
9668
|
});
|
|
@@ -10115,22 +10116,22 @@ function rb(e) {
|
|
|
10115
10116
|
};
|
|
10116
10117
|
}
|
|
10117
10118
|
function ib({ columns: e, data: t, selectable: n = !1, getRowId: i, selectedRowIds: a, onSelectionChange: o, enableRowSelection: s, rowActions: c, getRowLabel: l, searchable: u, filters: d, toolbar: f, actions: p, footer: h, pageSize: g = 50, disablePagination: _, resizableColumns: v = !1, columnSizingStorageKey: y, defaultSort: b, manualPagination: x = !1, rowCount: S, pageIndex: C, onPageChange: w, manualSorting: T = !1, sorting: E, onSortingChange: A, manualFiltering: j = !1, columnFilters: M, onColumnFiltersChange: N, loading: P = !1, emptyMessage: F = "No data", onRowClick: I, rowHref: L, rowClassName: ee, minWidth: R, height: z, bordered: te = !0, variant: ne = "table", ariaLabel: re, className: ie }) {
|
|
10118
|
-
let ae = m.useMemo(() => u ? typeof u == "object" ? u : {} : null, [u]), [oe,
|
|
10119
|
+
let ae = m.useMemo(() => u ? typeof u == "object" ? u : {} : null, [u]), [oe, B] = m.useState(b ?? []), se = T ? E ?? [] : oe, ce = m.useCallback((e) => {
|
|
10119
10120
|
if (T) {
|
|
10120
10121
|
let t = typeof e == "function" ? e(E ?? []) : e;
|
|
10121
10122
|
A?.(t);
|
|
10122
|
-
} else
|
|
10123
|
+
} else B(e);
|
|
10123
10124
|
}, [
|
|
10124
10125
|
T,
|
|
10125
10126
|
E,
|
|
10126
10127
|
A
|
|
10127
|
-
]), [
|
|
10128
|
+
]), [le, ue] = m.useState({
|
|
10128
10129
|
pageIndex: 0,
|
|
10129
10130
|
pageSize: g
|
|
10130
10131
|
}), de = x ? {
|
|
10131
10132
|
pageIndex: C ?? 0,
|
|
10132
10133
|
pageSize: g
|
|
10133
|
-
} :
|
|
10134
|
+
} : le, fe = m.useCallback((e) => {
|
|
10134
10135
|
if (x) {
|
|
10135
10136
|
let t = {
|
|
10136
10137
|
pageIndex: C ?? 0,
|
|
@@ -10247,7 +10248,7 @@ function ib({ columns: e, data: t, selectable: n = !1, getRowId: i, selectedRowI
|
|
|
10247
10248
|
data: Me,
|
|
10248
10249
|
columns: Oe,
|
|
10249
10250
|
state: {
|
|
10250
|
-
sorting:
|
|
10251
|
+
sorting: se,
|
|
10251
10252
|
pagination: de,
|
|
10252
10253
|
...v ? { columnSizing: xe } : {},
|
|
10253
10254
|
...V ? { columnFilters: _e } : {},
|
|
@@ -10256,7 +10257,7 @@ function ib({ columns: e, data: t, selectable: n = !1, getRowId: i, selectedRowI
|
|
|
10256
10257
|
getRowId: i ? (e) => i(e) : void 0,
|
|
10257
10258
|
enableRowSelection: n ? s ? (e) => s(e.original) : !0 : !1,
|
|
10258
10259
|
onRowSelectionChange: n ? De : void 0,
|
|
10259
|
-
onSortingChange:
|
|
10260
|
+
onSortingChange: ce,
|
|
10260
10261
|
onPaginationChange: fe,
|
|
10261
10262
|
onColumnFiltersChange: V ? ve : void 0,
|
|
10262
10263
|
getFilteredRowModel: V && !j ? qh() : void 0,
|
|
@@ -12669,7 +12670,7 @@ DS.displayName = "EditorSection";
|
|
|
12669
12670
|
//#region ../../../atlas/src/shared/components/ui/sheet.tsx
|
|
12670
12671
|
var OS = av, kS = ov, AS = fv;
|
|
12671
12672
|
function jS({ container: e, ...t }) {
|
|
12672
|
-
let n =
|
|
12673
|
+
let n = ce(), r = le(), [i, a] = m.useState(null);
|
|
12673
12674
|
return m.useLayoutEffect(() => {
|
|
12674
12675
|
if (e || n) return;
|
|
12675
12676
|
let t = document.createElement("div");
|
|
@@ -12984,7 +12985,7 @@ var GC = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(LC, {
|
|
|
12984
12985
|
}));
|
|
12985
12986
|
GC.displayName = LC.displayName;
|
|
12986
12987
|
var KC = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(TC, {
|
|
12987
|
-
container:
|
|
12988
|
+
container: ce() ?? void 0,
|
|
12988
12989
|
children: /* @__PURE__ */ O(EC, {
|
|
12989
12990
|
"data-density": "default",
|
|
12990
12991
|
ref: n,
|
|
@@ -13256,7 +13257,7 @@ function ww(e) {
|
|
|
13256
13257
|
return t;
|
|
13257
13258
|
}
|
|
13258
13259
|
var Tw = dw, Ew = pw, Dw = _w, Ow = yw, kw = Tw, Aw = Ew, jw = m.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ O(Dw, {
|
|
13259
|
-
container:
|
|
13260
|
+
container: ce() ?? void 0,
|
|
13260
13261
|
children: /* @__PURE__ */ O(Ow, {
|
|
13261
13262
|
"data-density": "default",
|
|
13262
13263
|
ref: a,
|
|
@@ -16666,7 +16667,7 @@ function uA(e) {
|
|
|
16666
16667
|
...t,
|
|
16667
16668
|
today: o.today()
|
|
16668
16669
|
});
|
|
16669
|
-
let { captionLayout: l, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: p, onDayClick: m, onDayFocus: g, onDayKeyDown: _, onDayMouseEnter: v, onDayMouseLeave: b, onNextClick: x, onPrevClick: S, showWeekNumber: C, styles: E } = t, { formatCaption: D, formatDay: O, formatMonthDropdown: k, formatWeekNumber: A, formatWeekNumberHeader: j, formatWeekdayName: M, formatYearDropdown: N } = i, P = Gk(t, o), { days: F, months: I, navStart: L, navEnd: ee, previousMonth: R, nextMonth: z, goToMonth: te } = P, ne = UO(F, t, L, ee, o), { isSelected: re, select: ie, selected: ae } = aA(t, o) ?? {}, { blur: oe, focused:
|
|
16670
|
+
let { captionLayout: l, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: p, onDayClick: m, onDayFocus: g, onDayKeyDown: _, onDayMouseEnter: v, onDayMouseLeave: b, onNextClick: x, onPrevClick: S, showWeekNumber: C, styles: E } = t, { formatCaption: D, formatDay: O, formatMonthDropdown: k, formatWeekNumber: A, formatWeekNumberHeader: j, formatWeekdayName: M, formatYearDropdown: N } = i, P = Gk(t, o), { days: F, months: I, navStart: L, navEnd: ee, previousMonth: R, nextMonth: z, goToMonth: te } = P, ne = UO(F, t, L, ee, o), { isSelected: re, select: ie, selected: ae } = aA(t, o) ?? {}, { blur: oe, focused: B, isFocusTarget: se, moveFocus: ce, setFocused: le } = Zk(t, P, ne, re ?? (() => !1), o), { labelDayButton: ue, labelGridcell: de, labelGrid: fe, labelMonthDropdown: pe, labelNav: me, labelPrevious: V, labelNext: he, labelWeekday: ge, labelWeekNumber: _e, labelWeekNumberHeader: ve, labelYearDropdown: ye } = a, be = w(() => wk(o, t.ISOWeek, t.broadcastCalendar, t.today), [
|
|
16670
16671
|
o,
|
|
16671
16672
|
t.ISOWeek,
|
|
16672
16673
|
t.broadcastCalendar,
|
|
@@ -16684,14 +16685,14 @@ function uA(e) {
|
|
|
16684
16685
|
z,
|
|
16685
16686
|
x
|
|
16686
16687
|
]), we = y((e, t) => (n) => {
|
|
16687
|
-
n.preventDefault(), n.stopPropagation(),
|
|
16688
|
+
n.preventDefault(), n.stopPropagation(), le(e), !t.disabled && (ie?.(e.date, t, n), m?.(e.date, t, n));
|
|
16688
16689
|
}, [
|
|
16689
16690
|
ie,
|
|
16690
16691
|
m,
|
|
16691
|
-
|
|
16692
|
+
le
|
|
16692
16693
|
]), Te = y((e, t) => (n) => {
|
|
16693
|
-
|
|
16694
|
-
}, [g,
|
|
16694
|
+
le(e), g?.(e.date, t, n);
|
|
16695
|
+
}, [g, le]), Ee = y((e, t) => (n) => {
|
|
16695
16696
|
oe(), p?.(e.date, t, n);
|
|
16696
16697
|
}, [oe, p]), De = y((e, n) => (r) => {
|
|
16697
16698
|
let i = {
|
|
@@ -16707,11 +16708,11 @@ function uA(e) {
|
|
|
16707
16708
|
if (i[r.key]) {
|
|
16708
16709
|
r.preventDefault(), r.stopPropagation();
|
|
16709
16710
|
let [e, t] = i[r.key];
|
|
16710
|
-
|
|
16711
|
+
ce(e, t);
|
|
16711
16712
|
}
|
|
16712
16713
|
_?.(e.date, n, r);
|
|
16713
16714
|
}, [
|
|
16714
|
-
|
|
16715
|
+
ce,
|
|
16715
16716
|
_,
|
|
16716
16717
|
t.dir
|
|
16717
16718
|
]), Oe = y((e, t) => (n) => {
|
|
@@ -16739,7 +16740,7 @@ function uA(e) {
|
|
|
16739
16740
|
Pk(Pe, !!t.animate, {
|
|
16740
16741
|
classNames: c,
|
|
16741
16742
|
months: I,
|
|
16742
|
-
focused:
|
|
16743
|
+
focused: B,
|
|
16743
16744
|
dateLib: o
|
|
16744
16745
|
});
|
|
16745
16746
|
let Fe = {
|
|
@@ -16915,7 +16916,7 @@ function uA(e) {
|
|
|
16915
16916
|
role: "rowheader"
|
|
16916
16917
|
}, A(e.weekNumber, o)), e.days.map((e) => {
|
|
16917
16918
|
let { date: n } = e, i = ne(e);
|
|
16918
|
-
if (i[cO.focused] = !i.hidden && !!
|
|
16919
|
+
if (i[cO.focused] = !i.hidden && !!B?.isEqualTo(e), i[lO.selected] = re?.(n) || i.selected, LO(ae)) {
|
|
16919
16920
|
let { from: e, to: t } = ae;
|
|
16920
16921
|
i[lO.range_start] = !!(e && t && o.isSameDay(n, e)), i[lO.range_end] = !!(e && t && o.isSameDay(n, t)), i[lO.range_middle] = FO(ae, n, !0, o);
|
|
16921
16922
|
}
|
|
@@ -16945,7 +16946,7 @@ function uA(e) {
|
|
|
16945
16946
|
modifiers: i,
|
|
16946
16947
|
disabled: !i.focused && i.disabled || void 0,
|
|
16947
16948
|
"aria-disabled": i.focused && i.disabled || void 0,
|
|
16948
|
-
tabIndex:
|
|
16949
|
+
tabIndex: se(e) ? 0 : -1,
|
|
16949
16950
|
"aria-label": ue(n, i, o.options, o),
|
|
16950
16951
|
onClick: we(e, i),
|
|
16951
16952
|
onBlur: Ee(e, i),
|
|
@@ -17867,7 +17868,7 @@ var bM = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(pM, {
|
|
|
17867
17868
|
}));
|
|
17868
17869
|
bM.displayName = pM.displayName;
|
|
17869
17870
|
var xM = m.forwardRef(({ className: e, children: t, position: n = "popper", ...i }, a) => /* @__PURE__ */ O(iM, {
|
|
17870
|
-
container:
|
|
17871
|
+
container: ce() ?? void 0,
|
|
17871
17872
|
children: /* @__PURE__ */ k(aM, {
|
|
17872
17873
|
"data-density": "default",
|
|
17873
17874
|
ref: a,
|
|
@@ -18805,75 +18806,13 @@ function PN(e, t, n) {
|
|
|
18805
18806
|
return MN(DN(e) ? e.from : e, DN(t) ? t.from : t);
|
|
18806
18807
|
}
|
|
18807
18808
|
//#endregion
|
|
18808
|
-
//#region ../../../atlas/src/shared/components/ui/filter-pill.tsx
|
|
18809
|
-
function FN({ label: e, options: t, selected: n, onChange: i }) {
|
|
18810
|
-
let [a, o] = E(!1), s = T(null), c = n.length > 0, l = (e) => {
|
|
18811
|
-
i(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
18812
|
-
};
|
|
18813
|
-
return t.length ? /* @__PURE__ */ k("div", {
|
|
18814
|
-
"data-slot": "filter-pill",
|
|
18815
|
-
className: "relative",
|
|
18816
|
-
children: [/* @__PURE__ */ k("button", {
|
|
18817
|
-
ref: s,
|
|
18818
|
-
type: "button",
|
|
18819
|
-
"aria-haspopup": "listbox",
|
|
18820
|
-
"aria-expanded": a,
|
|
18821
|
-
onClick: () => o(!a),
|
|
18822
|
-
className: r("flex h-9 items-center justify-between gap-2 whitespace-nowrap rounded-control border bg-card px-3 py-1 text-base md:text-sm dark:bg-input/30", "ring-offset-background transition-colors", "focus:outline-none focus:ring-1 focus:ring-ring", "disabled:cursor-not-allowed disabled:opacity-50", c ? "border-foreground text-foreground" : "border-input text-muted-foreground hover:text-foreground"),
|
|
18823
|
-
children: [/* @__PURE__ */ k("span", {
|
|
18824
|
-
className: "flex items-center gap-1.5",
|
|
18825
|
-
children: [/* @__PURE__ */ O("span", { children: e }), c && /* @__PURE__ */ O("span", {
|
|
18826
|
-
className: "inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-full bg-foreground px-1 text-xs font-semibold leading-none text-background tabular-nums",
|
|
18827
|
-
"aria-label": `${n.length} selected`,
|
|
18828
|
-
children: n.length
|
|
18829
|
-
})]
|
|
18830
|
-
}), /* @__PURE__ */ O(ln, { className: r("size-icon opacity-50 transition-transform", a && "rotate-180") })]
|
|
18831
|
-
}), a && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
|
|
18832
|
-
className: "fixed inset-0 z-10",
|
|
18833
|
-
onClick: () => o(!1),
|
|
18834
|
-
"aria-hidden": !0
|
|
18835
|
-
}), /* @__PURE__ */ k("div", {
|
|
18836
|
-
role: "listbox",
|
|
18837
|
-
"aria-multiselectable": "true",
|
|
18838
|
-
className: "absolute left-0 top-full z-20 mt-1 max-h-64 w-52 overflow-auto rounded-surface border bg-popover p-1 text-popover-foreground shadow-popover",
|
|
18839
|
-
children: [n.length > 0 && /* @__PURE__ */ O("button", {
|
|
18840
|
-
type: "button",
|
|
18841
|
-
onClick: () => i([]),
|
|
18842
|
-
className: "w-full rounded-surface-nested px-2 py-1.5 text-left text-xs font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
18843
|
-
children: "Clear all"
|
|
18844
|
-
}), t.map((e) => {
|
|
18845
|
-
let t = n.includes(e);
|
|
18846
|
-
return /* @__PURE__ */ k("div", {
|
|
18847
|
-
role: "option",
|
|
18848
|
-
"aria-selected": t,
|
|
18849
|
-
tabIndex: 0,
|
|
18850
|
-
onClick: () => l(e),
|
|
18851
|
-
onKeyDown: (t) => {
|
|
18852
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(e));
|
|
18853
|
-
},
|
|
18854
|
-
className: "flex w-full cursor-pointer items-center gap-2.5 rounded-surface-nested px-2 py-1.5 text-left text-sm transition-colors hover:bg-accent focus:bg-accent focus:outline-none",
|
|
18855
|
-
children: [/* @__PURE__ */ O(Og, {
|
|
18856
|
-
checked: t,
|
|
18857
|
-
tabIndex: -1,
|
|
18858
|
-
"aria-hidden": !0,
|
|
18859
|
-
className: "pointer-events-none"
|
|
18860
|
-
}), /* @__PURE__ */ O("span", {
|
|
18861
|
-
className: r("truncate", t ? "text-foreground" : "text-muted-foreground"),
|
|
18862
|
-
children: e
|
|
18863
|
-
})]
|
|
18864
|
-
}, e);
|
|
18865
|
-
})]
|
|
18866
|
-
})] })]
|
|
18867
|
-
}) : null;
|
|
18868
|
-
}
|
|
18869
|
-
//#endregion
|
|
18870
18809
|
//#region ../../../node_modules/.pnpm/@radix-ui+react-scroll-area@1.2.10_@types+react-dom@19.2.3_@types+react@19.2.14__@types_3f2ac5445210224aefd6333ca2197426/node_modules/@radix-ui/react-scroll-area/dist/index.mjs
|
|
18871
|
-
function
|
|
18810
|
+
function FN(e, t) {
|
|
18872
18811
|
return m.useReducer((e, n) => t[e][n] ?? e, e);
|
|
18873
18812
|
}
|
|
18874
|
-
var
|
|
18813
|
+
var IN = "ScrollArea", [LN, RN] = On(IN), [zN, BN] = LN(IN), VN = m.forwardRef((e, t) => {
|
|
18875
18814
|
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = m.useState(null), [l, u] = m.useState(null), [d, f] = m.useState(null), [p, h] = m.useState(null), [g, _] = m.useState(null), [v, y] = m.useState(0), [b, x] = m.useState(0), [S, C] = m.useState(!1), [w, T] = m.useState(!1), E = W(t, (e) => c(e)), D = As(i);
|
|
18876
|
-
return /* @__PURE__ */ O(
|
|
18815
|
+
return /* @__PURE__ */ O(zN, {
|
|
18877
18816
|
scope: n,
|
|
18878
18817
|
type: r,
|
|
18879
18818
|
dir: D,
|
|
@@ -18906,9 +18845,9 @@ var LN = "ScrollArea", [RN, zN] = On(LN), [BN, VN] = RN(LN), HN = m.forwardRef((
|
|
|
18906
18845
|
})
|
|
18907
18846
|
});
|
|
18908
18847
|
});
|
|
18909
|
-
|
|
18910
|
-
var
|
|
18911
|
-
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o =
|
|
18848
|
+
VN.displayName = IN;
|
|
18849
|
+
var HN = "ScrollAreaViewport", UN = m.forwardRef((e, t) => {
|
|
18850
|
+
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = BN(HN, n), s = W(t, m.useRef(null), o.onViewportChange);
|
|
18912
18851
|
return /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("style", {
|
|
18913
18852
|
dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
|
|
18914
18853
|
nonce: i
|
|
@@ -18931,35 +18870,35 @@ var UN = "ScrollAreaViewport", WN = m.forwardRef((e, t) => {
|
|
|
18931
18870
|
})
|
|
18932
18871
|
})] });
|
|
18933
18872
|
});
|
|
18934
|
-
|
|
18935
|
-
var
|
|
18936
|
-
let { forceMount: n, ...r } = e, i =
|
|
18873
|
+
UN.displayName = HN;
|
|
18874
|
+
var WN = "ScrollAreaScrollbar", GN = m.forwardRef((e, t) => {
|
|
18875
|
+
let { forceMount: n, ...r } = e, i = BN(WN, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
|
|
18937
18876
|
return m.useEffect(() => (s ? a(!0) : o(!0), () => {
|
|
18938
18877
|
s ? a(!1) : o(!1);
|
|
18939
18878
|
}), [
|
|
18940
18879
|
s,
|
|
18941
18880
|
a,
|
|
18942
18881
|
o
|
|
18943
|
-
]), i.type === "hover" ? /* @__PURE__ */ O(
|
|
18882
|
+
]), i.type === "hover" ? /* @__PURE__ */ O(KN, {
|
|
18944
18883
|
...r,
|
|
18945
18884
|
ref: t,
|
|
18946
18885
|
forceMount: n
|
|
18947
|
-
}) : i.type === "scroll" ? /* @__PURE__ */ O(
|
|
18886
|
+
}) : i.type === "scroll" ? /* @__PURE__ */ O(qN, {
|
|
18948
18887
|
...r,
|
|
18949
18888
|
ref: t,
|
|
18950
18889
|
forceMount: n
|
|
18951
|
-
}) : i.type === "auto" ? /* @__PURE__ */ O(
|
|
18890
|
+
}) : i.type === "auto" ? /* @__PURE__ */ O(JN, {
|
|
18952
18891
|
...r,
|
|
18953
18892
|
ref: t,
|
|
18954
18893
|
forceMount: n
|
|
18955
|
-
}) : i.type === "always" ? /* @__PURE__ */ O(
|
|
18894
|
+
}) : i.type === "always" ? /* @__PURE__ */ O(YN, {
|
|
18956
18895
|
...r,
|
|
18957
18896
|
ref: t
|
|
18958
18897
|
}) : null;
|
|
18959
18898
|
});
|
|
18960
|
-
|
|
18961
|
-
var
|
|
18962
|
-
let { forceMount: n, ...r } = e, i =
|
|
18899
|
+
GN.displayName = WN;
|
|
18900
|
+
var KN = m.forwardRef((e, t) => {
|
|
18901
|
+
let { forceMount: n, ...r } = e, i = BN(WN, e.__scopeScrollArea), [a, o] = m.useState(!1);
|
|
18963
18902
|
return m.useEffect(() => {
|
|
18964
18903
|
let e = i.scrollArea, t = 0;
|
|
18965
18904
|
if (e) {
|
|
@@ -18974,14 +18913,14 @@ var qN = m.forwardRef((e, t) => {
|
|
|
18974
18913
|
}
|
|
18975
18914
|
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ O(ho, {
|
|
18976
18915
|
present: n || a,
|
|
18977
|
-
children: /* @__PURE__ */ O(
|
|
18916
|
+
children: /* @__PURE__ */ O(JN, {
|
|
18978
18917
|
"data-state": a ? "visible" : "hidden",
|
|
18979
18918
|
...r,
|
|
18980
18919
|
ref: t
|
|
18981
18920
|
})
|
|
18982
18921
|
});
|
|
18983
|
-
}),
|
|
18984
|
-
let { forceMount: n, ...r } = e, i =
|
|
18922
|
+
}), qN = m.forwardRef((e, t) => {
|
|
18923
|
+
let { forceMount: n, ...r } = e, i = BN(WN, e.__scopeScrollArea), a = e.orientation === "horizontal", o = hP(() => c("SCROLL_END"), 100), [s, c] = FN("hidden", {
|
|
18985
18924
|
hidden: { SCROLL: "scrolling" },
|
|
18986
18925
|
scrolling: {
|
|
18987
18926
|
SCROLL_END: "idle",
|
|
@@ -19022,7 +18961,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19022
18961
|
o
|
|
19023
18962
|
]), /* @__PURE__ */ O(ho, {
|
|
19024
18963
|
present: n || s !== "hidden",
|
|
19025
|
-
children: /* @__PURE__ */ O(
|
|
18964
|
+
children: /* @__PURE__ */ O(YN, {
|
|
19026
18965
|
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
19027
18966
|
...r,
|
|
19028
18967
|
ref: t,
|
|
@@ -19030,23 +18969,23 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19030
18969
|
onPointerLeave: G(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
19031
18970
|
})
|
|
19032
18971
|
});
|
|
19033
|
-
}),
|
|
19034
|
-
let n =
|
|
18972
|
+
}), JN = m.forwardRef((e, t) => {
|
|
18973
|
+
let n = BN(WN, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = m.useState(!1), s = e.orientation === "horizontal", c = hP(() => {
|
|
19035
18974
|
if (n.viewport) {
|
|
19036
18975
|
let e = n.viewport.offsetWidth < n.viewport.scrollWidth, t = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
19037
18976
|
o(s ? e : t);
|
|
19038
18977
|
}
|
|
19039
18978
|
}, 10);
|
|
19040
|
-
return
|
|
18979
|
+
return gP(n.viewport, c), gP(n.content, c), /* @__PURE__ */ O(ho, {
|
|
19041
18980
|
present: r || a,
|
|
19042
|
-
children: /* @__PURE__ */ O(
|
|
18981
|
+
children: /* @__PURE__ */ O(YN, {
|
|
19043
18982
|
"data-state": a ? "visible" : "hidden",
|
|
19044
18983
|
...i,
|
|
19045
18984
|
ref: t
|
|
19046
18985
|
})
|
|
19047
18986
|
});
|
|
19048
|
-
}),
|
|
19049
|
-
let { orientation: n = "vertical", ...r } = e, i =
|
|
18987
|
+
}), YN = m.forwardRef((e, t) => {
|
|
18988
|
+
let { orientation: n = "vertical", ...r } = e, i = BN(WN, e.__scopeScrollArea), a = m.useRef(null), o = m.useRef(0), [s, c] = m.useState({
|
|
19050
18989
|
content: 0,
|
|
19051
18990
|
viewport: 0,
|
|
19052
18991
|
scrollbar: {
|
|
@@ -19054,7 +18993,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19054
18993
|
paddingStart: 0,
|
|
19055
18994
|
paddingEnd: 0
|
|
19056
18995
|
}
|
|
19057
|
-
}), l =
|
|
18996
|
+
}), l = cP(s.viewport, s.content), u = {
|
|
19058
18997
|
...r,
|
|
19059
18998
|
sizes: s,
|
|
19060
18999
|
onSizesChange: c,
|
|
@@ -19064,14 +19003,14 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19064
19003
|
onThumbPointerDown: (e) => o.current = e
|
|
19065
19004
|
};
|
|
19066
19005
|
function d(e, t) {
|
|
19067
|
-
return
|
|
19006
|
+
return uP(e, o.current, s, t);
|
|
19068
19007
|
}
|
|
19069
|
-
return n === "horizontal" ? /* @__PURE__ */ O(
|
|
19008
|
+
return n === "horizontal" ? /* @__PURE__ */ O(XN, {
|
|
19070
19009
|
...u,
|
|
19071
19010
|
ref: t,
|
|
19072
19011
|
onThumbPositionChange: () => {
|
|
19073
19012
|
if (i.viewport && a.current) {
|
|
19074
|
-
let e = i.viewport.scrollLeft, t =
|
|
19013
|
+
let e = i.viewport.scrollLeft, t = dP(e, s, i.dir);
|
|
19075
19014
|
a.current.style.transform = `translate3d(${t}px, 0, 0)`;
|
|
19076
19015
|
}
|
|
19077
19016
|
},
|
|
@@ -19081,12 +19020,12 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19081
19020
|
onDragScroll: (e) => {
|
|
19082
19021
|
i.viewport && (i.viewport.scrollLeft = d(e, i.dir));
|
|
19083
19022
|
}
|
|
19084
|
-
}) : n === "vertical" ? /* @__PURE__ */ O(
|
|
19023
|
+
}) : n === "vertical" ? /* @__PURE__ */ O(ZN, {
|
|
19085
19024
|
...u,
|
|
19086
19025
|
ref: t,
|
|
19087
19026
|
onThumbPositionChange: () => {
|
|
19088
19027
|
if (i.viewport && a.current) {
|
|
19089
|
-
let e = i.viewport.scrollTop, t =
|
|
19028
|
+
let e = i.viewport.scrollTop, t = dP(e, s);
|
|
19090
19029
|
a.current.style.transform = `translate3d(0, ${t}px, 0)`;
|
|
19091
19030
|
}
|
|
19092
19031
|
},
|
|
@@ -19097,11 +19036,11 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19097
19036
|
i.viewport && (i.viewport.scrollTop = d(e));
|
|
19098
19037
|
}
|
|
19099
19038
|
}) : null;
|
|
19100
|
-
}),
|
|
19101
|
-
let { sizes: n, onSizesChange: r, ...i } = e, a =
|
|
19039
|
+
}), XN = m.forwardRef((e, t) => {
|
|
19040
|
+
let { sizes: n, onSizesChange: r, ...i } = e, a = BN(WN, e.__scopeScrollArea), [o, s] = m.useState(), c = m.useRef(null), l = W(t, c, a.onScrollbarXChange);
|
|
19102
19041
|
return m.useEffect(() => {
|
|
19103
19042
|
c.current && s(getComputedStyle(c.current));
|
|
19104
|
-
}, [c]), /* @__PURE__ */ O(
|
|
19043
|
+
}, [c]), /* @__PURE__ */ O(eP, {
|
|
19105
19044
|
"data-orientation": "horizontal",
|
|
19106
19045
|
...i,
|
|
19107
19046
|
ref: l,
|
|
@@ -19110,7 +19049,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19110
19049
|
bottom: 0,
|
|
19111
19050
|
left: a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
19112
19051
|
right: a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
19113
|
-
"--radix-scroll-area-thumb-width":
|
|
19052
|
+
"--radix-scroll-area-thumb-width": lP(n) + "px",
|
|
19114
19053
|
...e.style
|
|
19115
19054
|
},
|
|
19116
19055
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
|
|
@@ -19118,7 +19057,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19118
19057
|
onWheelScroll: (t, n) => {
|
|
19119
19058
|
if (a.viewport) {
|
|
19120
19059
|
let r = a.viewport.scrollLeft + t.deltaX;
|
|
19121
|
-
e.onWheelScroll(r),
|
|
19060
|
+
e.onWheelScroll(r), pP(r, n) && t.preventDefault();
|
|
19122
19061
|
}
|
|
19123
19062
|
},
|
|
19124
19063
|
onResize: () => {
|
|
@@ -19127,17 +19066,17 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19127
19066
|
viewport: a.viewport.offsetWidth,
|
|
19128
19067
|
scrollbar: {
|
|
19129
19068
|
size: c.current.clientWidth,
|
|
19130
|
-
paddingStart:
|
|
19131
|
-
paddingEnd:
|
|
19069
|
+
paddingStart: sP(o.paddingLeft),
|
|
19070
|
+
paddingEnd: sP(o.paddingRight)
|
|
19132
19071
|
}
|
|
19133
19072
|
});
|
|
19134
19073
|
}
|
|
19135
19074
|
});
|
|
19136
|
-
}),
|
|
19137
|
-
let { sizes: n, onSizesChange: r, ...i } = e, a =
|
|
19075
|
+
}), ZN = m.forwardRef((e, t) => {
|
|
19076
|
+
let { sizes: n, onSizesChange: r, ...i } = e, a = BN(WN, e.__scopeScrollArea), [o, s] = m.useState(), c = m.useRef(null), l = W(t, c, a.onScrollbarYChange);
|
|
19138
19077
|
return m.useEffect(() => {
|
|
19139
19078
|
c.current && s(getComputedStyle(c.current));
|
|
19140
|
-
}, [c]), /* @__PURE__ */ O(
|
|
19079
|
+
}, [c]), /* @__PURE__ */ O(eP, {
|
|
19141
19080
|
"data-orientation": "vertical",
|
|
19142
19081
|
...i,
|
|
19143
19082
|
ref: l,
|
|
@@ -19147,7 +19086,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19147
19086
|
right: a.dir === "ltr" ? 0 : void 0,
|
|
19148
19087
|
left: a.dir === "rtl" ? 0 : void 0,
|
|
19149
19088
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
19150
|
-
"--radix-scroll-area-thumb-height":
|
|
19089
|
+
"--radix-scroll-area-thumb-height": lP(n) + "px",
|
|
19151
19090
|
...e.style
|
|
19152
19091
|
},
|
|
19153
19092
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
|
|
@@ -19155,7 +19094,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19155
19094
|
onWheelScroll: (t, n) => {
|
|
19156
19095
|
if (a.viewport) {
|
|
19157
19096
|
let r = a.viewport.scrollTop + t.deltaY;
|
|
19158
|
-
e.onWheelScroll(r),
|
|
19097
|
+
e.onWheelScroll(r), pP(r, n) && t.preventDefault();
|
|
19159
19098
|
}
|
|
19160
19099
|
},
|
|
19161
19100
|
onResize: () => {
|
|
@@ -19164,14 +19103,14 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19164
19103
|
viewport: a.viewport.offsetHeight,
|
|
19165
19104
|
scrollbar: {
|
|
19166
19105
|
size: c.current.clientHeight,
|
|
19167
|
-
paddingStart:
|
|
19168
|
-
paddingEnd:
|
|
19106
|
+
paddingStart: sP(o.paddingTop),
|
|
19107
|
+
paddingEnd: sP(o.paddingBottom)
|
|
19169
19108
|
}
|
|
19170
19109
|
});
|
|
19171
19110
|
}
|
|
19172
19111
|
});
|
|
19173
|
-
}), [$N
|
|
19174
|
-
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p =
|
|
19112
|
+
}), [QN, $N] = LN(WN), eP = m.forwardRef((e, t) => {
|
|
19113
|
+
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = BN(WN, n), [h, g] = m.useState(null), _ = W(t, (e) => g(e)), v = m.useRef(null), y = m.useRef(""), b = p.viewport, x = r.content - r.viewport, S = ur(u), C = ur(c), w = hP(d, 10);
|
|
19175
19114
|
function T(e) {
|
|
19176
19115
|
v.current && l({
|
|
19177
19116
|
x: e.clientX - v.current.left,
|
|
@@ -19189,7 +19128,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19189
19128
|
h,
|
|
19190
19129
|
x,
|
|
19191
19130
|
S
|
|
19192
|
-
]), m.useEffect(C, [r, C]),
|
|
19131
|
+
]), m.useEffect(C, [r, C]), gP(h, w), gP(p.content, w), /* @__PURE__ */ O(QN, {
|
|
19193
19132
|
scope: n,
|
|
19194
19133
|
scrollbar: h,
|
|
19195
19134
|
hasThumb: i,
|
|
@@ -19214,24 +19153,24 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19214
19153
|
})
|
|
19215
19154
|
})
|
|
19216
19155
|
});
|
|
19217
|
-
}),
|
|
19218
|
-
let { forceMount: n, ...r } = e, i =
|
|
19156
|
+
}), tP = "ScrollAreaThumb", nP = m.forwardRef((e, t) => {
|
|
19157
|
+
let { forceMount: n, ...r } = e, i = $N(tP, e.__scopeScrollArea);
|
|
19219
19158
|
return /* @__PURE__ */ O(ho, {
|
|
19220
19159
|
present: n || i.hasThumb,
|
|
19221
|
-
children: /* @__PURE__ */ O(
|
|
19160
|
+
children: /* @__PURE__ */ O(rP, {
|
|
19222
19161
|
ref: t,
|
|
19223
19162
|
...r
|
|
19224
19163
|
})
|
|
19225
19164
|
});
|
|
19226
|
-
}),
|
|
19227
|
-
let { __scopeScrollArea: n, style: r, ...i } = e, a =
|
|
19165
|
+
}), rP = m.forwardRef((e, t) => {
|
|
19166
|
+
let { __scopeScrollArea: n, style: r, ...i } = e, a = BN(tP, n), o = $N(tP, n), { onThumbPositionChange: s } = o, c = W(t, (e) => o.onThumbChange(e)), l = m.useRef(void 0), u = hP(() => {
|
|
19228
19167
|
l.current &&= (l.current(), void 0);
|
|
19229
19168
|
}, 100);
|
|
19230
19169
|
return m.useEffect(() => {
|
|
19231
19170
|
let e = a.viewport;
|
|
19232
19171
|
if (e) {
|
|
19233
19172
|
let t = () => {
|
|
19234
|
-
u(), l.current || (l.current =
|
|
19173
|
+
u(), l.current || (l.current = mP(e, s), s());
|
|
19235
19174
|
};
|
|
19236
19175
|
return s(), e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
|
|
19237
19176
|
}
|
|
@@ -19258,21 +19197,21 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19258
19197
|
onPointerUp: G(e.onPointerUp, o.onThumbPointerUp)
|
|
19259
19198
|
});
|
|
19260
19199
|
});
|
|
19261
|
-
|
|
19262
|
-
var
|
|
19263
|
-
let n =
|
|
19264
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ O(
|
|
19200
|
+
nP.displayName = tP;
|
|
19201
|
+
var iP = "ScrollAreaCorner", aP = m.forwardRef((e, t) => {
|
|
19202
|
+
let n = BN(iP, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
19203
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ O(oP, {
|
|
19265
19204
|
...e,
|
|
19266
19205
|
ref: t
|
|
19267
19206
|
}) : null;
|
|
19268
19207
|
});
|
|
19269
|
-
|
|
19270
|
-
var
|
|
19271
|
-
let { __scopeScrollArea: n, ...r } = e, i =
|
|
19272
|
-
return
|
|
19208
|
+
aP.displayName = iP;
|
|
19209
|
+
var oP = m.forwardRef((e, t) => {
|
|
19210
|
+
let { __scopeScrollArea: n, ...r } = e, i = BN(iP, n), [a, o] = m.useState(0), [s, c] = m.useState(0), l = !!(a && s);
|
|
19211
|
+
return gP(i.scrollbarX, () => {
|
|
19273
19212
|
let e = i.scrollbarX?.offsetHeight || 0;
|
|
19274
19213
|
i.onCornerHeightChange(e), c(e);
|
|
19275
|
-
}),
|
|
19214
|
+
}), gP(i.scrollbarY, () => {
|
|
19276
19215
|
let e = i.scrollbarY?.offsetWidth || 0;
|
|
19277
19216
|
i.onCornerWidthChange(e), o(e);
|
|
19278
19217
|
}), l ? /* @__PURE__ */ O(K.div, {
|
|
@@ -19289,36 +19228,36 @@ var sP = m.forwardRef((e, t) => {
|
|
|
19289
19228
|
}
|
|
19290
19229
|
}) : null;
|
|
19291
19230
|
});
|
|
19292
|
-
function
|
|
19231
|
+
function sP(e) {
|
|
19293
19232
|
return e ? parseInt(e, 10) : 0;
|
|
19294
19233
|
}
|
|
19295
|
-
function
|
|
19234
|
+
function cP(e, t) {
|
|
19296
19235
|
let n = e / t;
|
|
19297
19236
|
return isNaN(n) ? 0 : n;
|
|
19298
19237
|
}
|
|
19299
|
-
function
|
|
19300
|
-
let t =
|
|
19238
|
+
function lP(e) {
|
|
19239
|
+
let t = cP(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
19301
19240
|
return Math.max(r, 18);
|
|
19302
19241
|
}
|
|
19303
|
-
function
|
|
19304
|
-
let i =
|
|
19305
|
-
return
|
|
19242
|
+
function uP(e, t, n, r = "ltr") {
|
|
19243
|
+
let i = lP(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
19244
|
+
return fP([c, l], d)(e);
|
|
19306
19245
|
}
|
|
19307
|
-
function
|
|
19308
|
-
let r =
|
|
19309
|
-
return
|
|
19246
|
+
function dP(e, t, n = "ltr") {
|
|
19247
|
+
let r = lP(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = Zb(e, n === "ltr" ? [0, o] : [o * -1, 0]);
|
|
19248
|
+
return fP([0, o], [0, s])(c);
|
|
19310
19249
|
}
|
|
19311
|
-
function
|
|
19250
|
+
function fP(e, t) {
|
|
19312
19251
|
return (n) => {
|
|
19313
19252
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
19314
19253
|
let r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
19315
19254
|
return t[0] + r * (n - e[0]);
|
|
19316
19255
|
};
|
|
19317
19256
|
}
|
|
19318
|
-
function
|
|
19257
|
+
function pP(e, t) {
|
|
19319
19258
|
return e > 0 && e < t;
|
|
19320
19259
|
}
|
|
19321
|
-
var
|
|
19260
|
+
var mP = (e, t = () => {}) => {
|
|
19322
19261
|
let n = {
|
|
19323
19262
|
left: e.scrollLeft,
|
|
19324
19263
|
top: e.scrollTop
|
|
@@ -19331,13 +19270,13 @@ var hP = (e, t = () => {}) => {
|
|
|
19331
19270
|
(o || s) && t(), n = a, r = window.requestAnimationFrame(i);
|
|
19332
19271
|
})(), () => window.cancelAnimationFrame(r);
|
|
19333
19272
|
};
|
|
19334
|
-
function
|
|
19273
|
+
function hP(e, t) {
|
|
19335
19274
|
let n = ur(e), r = m.useRef(0);
|
|
19336
19275
|
return m.useEffect(() => () => window.clearTimeout(r.current), []), m.useCallback(() => {
|
|
19337
19276
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
19338
19277
|
}, [n, t]);
|
|
19339
19278
|
}
|
|
19340
|
-
function
|
|
19279
|
+
function gP(e, t) {
|
|
19341
19280
|
let n = ur(t);
|
|
19342
19281
|
An(() => {
|
|
19343
19282
|
let t = 0;
|
|
@@ -19351,88 +19290,88 @@ function _P(e, t) {
|
|
|
19351
19290
|
}
|
|
19352
19291
|
}, [e, n]);
|
|
19353
19292
|
}
|
|
19354
|
-
var
|
|
19293
|
+
var _P = VN, vP = UN, yP = aP, bP = m.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ k(_P, {
|
|
19355
19294
|
ref: i,
|
|
19356
19295
|
className: r("relative overflow-hidden", e),
|
|
19357
19296
|
...n,
|
|
19358
19297
|
children: [
|
|
19359
|
-
/* @__PURE__ */ O(
|
|
19298
|
+
/* @__PURE__ */ O(vP, {
|
|
19360
19299
|
className: "h-full w-full rounded-[inherit]",
|
|
19361
19300
|
children: t
|
|
19362
19301
|
}),
|
|
19363
|
-
/* @__PURE__ */ O(
|
|
19364
|
-
/* @__PURE__ */ O(
|
|
19302
|
+
/* @__PURE__ */ O(xP, {}),
|
|
19303
|
+
/* @__PURE__ */ O(yP, {})
|
|
19365
19304
|
]
|
|
19366
19305
|
}));
|
|
19367
|
-
|
|
19368
|
-
var
|
|
19306
|
+
bP.displayName = _P.displayName;
|
|
19307
|
+
var xP = m.forwardRef(({ className: e, orientation: t = "vertical", ...n }, i) => /* @__PURE__ */ O(GN, {
|
|
19369
19308
|
ref: i,
|
|
19370
19309
|
orientation: t,
|
|
19371
19310
|
className: r("flex touch-none select-none transition-colors", t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]", e),
|
|
19372
19311
|
...n,
|
|
19373
|
-
children: /* @__PURE__ */ O(
|
|
19312
|
+
children: /* @__PURE__ */ O(nP, { className: "relative flex-1 rounded-full bg-border" })
|
|
19374
19313
|
}));
|
|
19375
|
-
|
|
19314
|
+
xP.displayName = GN.displayName;
|
|
19376
19315
|
//#endregion
|
|
19377
19316
|
//#region ../../../atlas/src/shared/lib/iso-date.ts
|
|
19378
|
-
function
|
|
19317
|
+
function SP(e) {
|
|
19379
19318
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
19380
19319
|
}
|
|
19381
|
-
function
|
|
19320
|
+
function CP(e, t, n) {
|
|
19382
19321
|
return !Number.isFinite(e) || !Number.isFinite(t) || !Number.isFinite(n) || t < 1 || t > 12 || n < 1 ? !1 : n <= new Date(Date.UTC(e, t, 0)).getUTCDate();
|
|
19383
19322
|
}
|
|
19384
|
-
function
|
|
19385
|
-
return e ?
|
|
19323
|
+
function wP(e) {
|
|
19324
|
+
return e ? SP(e) : null;
|
|
19386
19325
|
}
|
|
19387
|
-
function
|
|
19326
|
+
function TP(e) {
|
|
19388
19327
|
if (!e) return null;
|
|
19389
19328
|
let t = e.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
19390
19329
|
if (t) {
|
|
19391
19330
|
let [, n, r, i] = t;
|
|
19392
|
-
if (!
|
|
19331
|
+
if (!CP(Number.parseInt(n, 10), Number.parseInt(r, 10), Number.parseInt(i, 10))) return null;
|
|
19393
19332
|
let a = /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
19394
19333
|
return Number.isNaN(a.getTime()) ? null : a;
|
|
19395
19334
|
}
|
|
19396
19335
|
let n = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
19397
19336
|
if (n) {
|
|
19398
19337
|
let [, e, t, r] = n;
|
|
19399
|
-
if (!
|
|
19338
|
+
if (!CP(Number.parseInt(e, 10), Number.parseInt(t, 10), Number.parseInt(r, 10))) return null;
|
|
19400
19339
|
}
|
|
19401
19340
|
let r = new Date(e);
|
|
19402
19341
|
return Number.isNaN(r.getTime()) ? null : new Date(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate());
|
|
19403
19342
|
}
|
|
19404
19343
|
//#endregion
|
|
19405
19344
|
//#region ../../../atlas/src/shared/components/ui/due-date.ts
|
|
19406
|
-
function
|
|
19345
|
+
function EP(e) {
|
|
19407
19346
|
let t = wD(e), n = /* @__PURE__ */ new Date(), r = new Date(n.getFullYear(), n.getMonth(), n.getDate()), i = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = Math.round((i.getTime() - r.getTime()) / (1440 * 60 * 1e3));
|
|
19408
19347
|
return a === 0 ? "Today" : a === 1 ? "Tomorrow" : a === -1 ? "Yesterday" : a > 1 && a < 7 ? hD(t, "EEE") : a < 0 && a > -7 ? `${Math.abs(a)}d ago` : hD(t, "MMM d");
|
|
19409
19348
|
}
|
|
19410
|
-
function
|
|
19349
|
+
function DP(e, t) {
|
|
19411
19350
|
if (!e || t) return null;
|
|
19412
19351
|
let n = /* @__PURE__ */ new Date(), r = `${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, "0")}-${String(n.getDate()).padStart(2, "0")}`, i = new Date(n.getFullYear(), n.getMonth(), n.getDate() + 1), a = `${i.getFullYear()}-${String(i.getMonth() + 1).padStart(2, "0")}-${String(i.getDate()).padStart(2, "0")}`;
|
|
19413
19352
|
return e < r ? "overdue" : e === r ? "today" : e === a ? "tomorrow" : null;
|
|
19414
19353
|
}
|
|
19415
19354
|
//#endregion
|
|
19416
19355
|
//#region ../../../atlas/src/shared/components/ui/task-field.tsx
|
|
19417
|
-
function
|
|
19356
|
+
function OP({ show: e = "whenSet", hasValue: t }) {
|
|
19418
19357
|
return e === "never" ? !1 : e === "always" ? !0 : t;
|
|
19419
19358
|
}
|
|
19420
|
-
function
|
|
19359
|
+
function kP(e) {
|
|
19421
19360
|
return !e.readOnly && !e.render && Array.isArray(e.options) && typeof e.onChange == "function";
|
|
19422
19361
|
}
|
|
19423
|
-
function
|
|
19362
|
+
function AP(e) {
|
|
19424
19363
|
return e.text == null ? typeof e.value == "string" ? e.value : Array.isArray(e.value) ? e.value.join(", ") : "" : e.text;
|
|
19425
19364
|
}
|
|
19426
|
-
function
|
|
19365
|
+
function jP(e) {
|
|
19427
19366
|
return e.editorValue === void 0 ? typeof e.value == "string" ? e.value : Array.isArray(e.value) ? e.value[0] ?? null : null : e.editorValue;
|
|
19428
19367
|
}
|
|
19429
|
-
var
|
|
19368
|
+
var MP = {
|
|
19430
19369
|
default: "border-border bg-accent text-muted-foreground",
|
|
19431
19370
|
danger: "border-danger/30 bg-danger-tint text-danger-text",
|
|
19432
19371
|
warning: "border-warning/30 bg-warning-tint text-warning-text",
|
|
19433
19372
|
success: "border-success/30 bg-success-tint text-success-text"
|
|
19434
|
-
},
|
|
19435
|
-
let l = r("inline-flex h-5 max-w-full items-center gap-1 rounded-badge border px-2 text-xs font-normal transition-colors", "[&>svg]:size-3.5 [&>svg]:shrink-0", t ? "border-dashed border-border bg-transparent text-muted-foreground [&>svg]:text-muted-foreground" : n === "default" ? r(
|
|
19373
|
+
}, NP = m.forwardRef(function({ icon: e, empty: t = !1, tone: n = "default", asStatic: i = !1, className: a, children: o, ...s }, c) {
|
|
19374
|
+
let l = r("inline-flex h-5 max-w-full items-center gap-1 rounded-badge border px-2 text-xs font-normal transition-colors", "[&>svg]:size-3.5 [&>svg]:shrink-0", t ? "border-dashed border-border bg-transparent text-muted-foreground [&>svg]:text-muted-foreground" : n === "default" ? r(MP.default, "[&>svg]:text-muted-foreground") : MP[n], a), u = /* @__PURE__ */ k(D, { children: [e, /* @__PURE__ */ O("span", {
|
|
19436
19375
|
className: "truncate",
|
|
19437
19376
|
children: o
|
|
19438
19377
|
})] });
|
|
@@ -19447,7 +19386,7 @@ var NP = {
|
|
|
19447
19386
|
...s,
|
|
19448
19387
|
children: u
|
|
19449
19388
|
});
|
|
19450
|
-
}),
|
|
19389
|
+
}), PP = [
|
|
19451
19390
|
{
|
|
19452
19391
|
value: "todo",
|
|
19453
19392
|
label: "To do",
|
|
@@ -19478,16 +19417,16 @@ var NP = {
|
|
|
19478
19417
|
tone: "text-muted-foreground",
|
|
19479
19418
|
icon: Rc
|
|
19480
19419
|
}
|
|
19481
|
-
],
|
|
19420
|
+
], FP = "done", IP = "todo", LP = "in_progress", RP = ["done", "cancelled"], zP = {
|
|
19482
19421
|
value: "",
|
|
19483
19422
|
label: "To do",
|
|
19484
19423
|
tone: "text-muted-foreground",
|
|
19485
19424
|
icon: zc
|
|
19486
19425
|
};
|
|
19487
|
-
function
|
|
19488
|
-
return e.find((e) => e.value === t) ??
|
|
19426
|
+
function BP(e, t) {
|
|
19427
|
+
return e.find((e) => e.value === t) ?? zP;
|
|
19489
19428
|
}
|
|
19490
|
-
function
|
|
19429
|
+
function VP(e) {
|
|
19491
19430
|
return e.map((e) => {
|
|
19492
19431
|
let t = e.icon;
|
|
19493
19432
|
return {
|
|
@@ -19500,22 +19439,22 @@ function HP(e) {
|
|
|
19500
19439
|
};
|
|
19501
19440
|
});
|
|
19502
19441
|
}
|
|
19503
|
-
var
|
|
19442
|
+
var HP = [
|
|
19504
19443
|
"in_progress",
|
|
19505
19444
|
"blocked",
|
|
19506
19445
|
"todo",
|
|
19507
19446
|
"done",
|
|
19508
19447
|
"cancelled"
|
|
19509
19448
|
];
|
|
19510
|
-
function
|
|
19449
|
+
function UP(e, t) {
|
|
19511
19450
|
let n = e.indexOf(t);
|
|
19512
19451
|
return n === -1 ? e.length : n;
|
|
19513
19452
|
}
|
|
19514
|
-
|
|
19515
|
-
var
|
|
19516
|
-
function
|
|
19517
|
-
let s =
|
|
19518
|
-
return t ? /* @__PURE__ */ O(
|
|
19453
|
+
VP(PP);
|
|
19454
|
+
var WP = "nodrag nopan min-w-0 flex-1 truncate border-0 bg-transparent text-sm font-medium outline-none transition-colors duration-200 placeholder:italic placeholder:font-normal placeholder:text-muted-foreground";
|
|
19455
|
+
function GP({ status: e, editable: t = !0, onChange: n, size: i = 16, className: a, statusOptions: o = PP }) {
|
|
19456
|
+
let s = BP(o, e), c = s.icon;
|
|
19457
|
+
return t ? /* @__PURE__ */ O(YP, {
|
|
19519
19458
|
status: e,
|
|
19520
19459
|
onChange: n,
|
|
19521
19460
|
size: i,
|
|
@@ -19527,15 +19466,15 @@ function KP({ status: e, editable: t = !0, onChange: n, size: i = 16, className:
|
|
|
19527
19466
|
className: r("shrink-0", s.tone, a)
|
|
19528
19467
|
});
|
|
19529
19468
|
}
|
|
19530
|
-
function
|
|
19531
|
-
let c = e === o || e === s, l = e === o, u =
|
|
19469
|
+
function KP({ status: e, editable: t, onChange: n, size: i = 16, statusOptions: a, completeStatus: o, incompleteStatus: s }) {
|
|
19470
|
+
let c = e === o || e === s, l = e === o, u = BP(a, o).tone, d = BP(a, s).tone;
|
|
19532
19471
|
if (!t) {
|
|
19533
|
-
let t =
|
|
19472
|
+
let t = BP(a, e);
|
|
19534
19473
|
if (c) return /* @__PURE__ */ O("span", {
|
|
19535
19474
|
role: "img",
|
|
19536
19475
|
"aria-label": t.label,
|
|
19537
19476
|
className: "inline-flex shrink-0",
|
|
19538
|
-
children: /* @__PURE__ */ O(
|
|
19477
|
+
children: /* @__PURE__ */ O(qP, {
|
|
19539
19478
|
done: l,
|
|
19540
19479
|
size: i,
|
|
19541
19480
|
completeTone: u,
|
|
@@ -19558,13 +19497,13 @@ function qP({ status: e, editable: t, onChange: n, size: i = 16, statusOptions:
|
|
|
19558
19497
|
},
|
|
19559
19498
|
onMouseDown: (e) => e.stopPropagation(),
|
|
19560
19499
|
className: "nodrag inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full p-0.5 transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
19561
|
-
children: c ? /* @__PURE__ */ O(
|
|
19500
|
+
children: c ? /* @__PURE__ */ O(qP, {
|
|
19562
19501
|
done: l,
|
|
19563
19502
|
size: i,
|
|
19564
19503
|
completeTone: u,
|
|
19565
19504
|
incompleteTone: d
|
|
19566
19505
|
}) : (() => {
|
|
19567
|
-
let t =
|
|
19506
|
+
let t = BP(a, e), n = t.icon;
|
|
19568
19507
|
return /* @__PURE__ */ O(n, {
|
|
19569
19508
|
size: i,
|
|
19570
19509
|
className: t.tone
|
|
@@ -19572,7 +19511,7 @@ function qP({ status: e, editable: t, onChange: n, size: i = 16, statusOptions:
|
|
|
19572
19511
|
})()
|
|
19573
19512
|
});
|
|
19574
19513
|
}
|
|
19575
|
-
function
|
|
19514
|
+
function qP({ done: e, size: t = 16, completeTone: n, incompleteTone: i }) {
|
|
19576
19515
|
return /* @__PURE__ */ O("span", {
|
|
19577
19516
|
"data-done": e || void 0,
|
|
19578
19517
|
"aria-hidden": "true",
|
|
@@ -19602,7 +19541,7 @@ function JP({ done: e, size: t = 16, completeTone: n, incompleteTone: i }) {
|
|
|
19602
19541
|
})
|
|
19603
19542
|
});
|
|
19604
19543
|
}
|
|
19605
|
-
function
|
|
19544
|
+
function JP({ onClick: e }) {
|
|
19606
19545
|
return /* @__PURE__ */ k(us, { children: [/* @__PURE__ */ O(ds, {
|
|
19607
19546
|
asChild: !0,
|
|
19608
19547
|
children: /* @__PURE__ */ O("button", {
|
|
@@ -19621,8 +19560,8 @@ function YP({ onClick: e }) {
|
|
|
19621
19560
|
children: "Start task"
|
|
19622
19561
|
})] });
|
|
19623
19562
|
}
|
|
19624
|
-
function
|
|
19625
|
-
let o =
|
|
19563
|
+
function YP({ status: e, onChange: t, size: n, className: i, statusOptions: a }) {
|
|
19564
|
+
let o = BP(a, e), s = o.icon;
|
|
19626
19565
|
return /* @__PURE__ */ k(Cp, {
|
|
19627
19566
|
modal: !1,
|
|
19628
19567
|
children: [/* @__PURE__ */ O(wp, {
|
|
@@ -19648,14 +19587,14 @@ function XP({ status: e, onChange: t, size: n, className: i, statusOptions: a })
|
|
|
19648
19587
|
})]
|
|
19649
19588
|
});
|
|
19650
19589
|
}
|
|
19651
|
-
function
|
|
19590
|
+
function XP(e) {
|
|
19652
19591
|
let t = (e.split("@")[0] ?? e).split(/[\s._-]+/).filter(Boolean);
|
|
19653
19592
|
return t.length >= 2 ? ((t[0]?.[0] ?? "") + (t[1]?.[0] ?? "")).toUpperCase() : (t[0] ?? e).slice(0, 2).toUpperCase();
|
|
19654
19593
|
}
|
|
19655
|
-
var
|
|
19656
|
-
function
|
|
19594
|
+
var ZP = "__unassigned__";
|
|
19595
|
+
function QP(e) {
|
|
19657
19596
|
return [{
|
|
19658
|
-
value:
|
|
19597
|
+
value: ZP,
|
|
19659
19598
|
label: "Unassigned",
|
|
19660
19599
|
icon: /* @__PURE__ */ O("span", {
|
|
19661
19600
|
className: "flex size-4 items-center justify-center rounded-full border border-dashed border-border text-muted-foreground",
|
|
@@ -19667,12 +19606,12 @@ function $P(e) {
|
|
|
19667
19606
|
icon: /* @__PURE__ */ O(rw, {
|
|
19668
19607
|
name: e.email,
|
|
19669
19608
|
colorKey: e.email,
|
|
19670
|
-
initials: (e.initials ??
|
|
19609
|
+
initials: (e.initials ?? XP(e.email)).slice(0, 2),
|
|
19671
19610
|
size: 16
|
|
19672
19611
|
})
|
|
19673
19612
|
}))];
|
|
19674
19613
|
}
|
|
19675
|
-
var
|
|
19614
|
+
var $P = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "What needs to be done?", onChange: i, onCommit: a, onDelete: o, hideOwner: s = !1, statusOnly: c = !1, due: l, assignee: u, tags: d, fields: f, statusOptions: p = PP, completeStatus: h = FP, incompleteStatus: g = IP, startStatus: _ = LP, resolvedStatuses: v = RP, className: y }, b) {
|
|
19676
19615
|
let x = e === null || e.title.trim() === "", S = e ?? {
|
|
19677
19616
|
title: "",
|
|
19678
19617
|
status: g
|
|
@@ -19680,23 +19619,23 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19680
19619
|
m.useEffect(() => {
|
|
19681
19620
|
oe(S.title);
|
|
19682
19621
|
}, [S.title]);
|
|
19683
|
-
let
|
|
19684
|
-
!t || c || x || (oe(S.title), ie(!0), queueMicrotask(() =>
|
|
19622
|
+
let B = m.useRef(null), se = m.useCallback(() => {
|
|
19623
|
+
!t || c || x || (oe(S.title), ie(!0), queueMicrotask(() => B.current?.focus()));
|
|
19685
19624
|
}, [
|
|
19686
19625
|
S.title,
|
|
19687
19626
|
t,
|
|
19688
19627
|
x,
|
|
19689
19628
|
c
|
|
19690
|
-
]),
|
|
19691
|
-
if (
|
|
19629
|
+
]), ce = m.useRef(!1), le = (e) => {
|
|
19630
|
+
if (ce.current) return;
|
|
19692
19631
|
let t = e.trim();
|
|
19693
19632
|
if (x) {
|
|
19694
19633
|
if (t === "") return;
|
|
19695
|
-
|
|
19634
|
+
ce.current = !0, a?.({
|
|
19696
19635
|
...S,
|
|
19697
19636
|
title: t
|
|
19698
19637
|
}), oe(""), queueMicrotask(() => {
|
|
19699
|
-
|
|
19638
|
+
ce.current = !1;
|
|
19700
19639
|
});
|
|
19701
19640
|
return;
|
|
19702
19641
|
}
|
|
@@ -19705,20 +19644,20 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19705
19644
|
oe(S.title);
|
|
19706
19645
|
return;
|
|
19707
19646
|
}
|
|
19708
|
-
|
|
19709
|
-
|
|
19647
|
+
ce.current = !0, i?.({ title: t }), queueMicrotask(() => {
|
|
19648
|
+
ce.current = !1;
|
|
19710
19649
|
});
|
|
19711
19650
|
}
|
|
19712
|
-
}, ue =
|
|
19651
|
+
}, ue = DP(S.dueDate, C), de = x ? /* @__PURE__ */ O("span", {
|
|
19713
19652
|
"aria-hidden": "true",
|
|
19714
19653
|
className: "inline-flex shrink-0 items-center justify-center rounded-full p-0.5 text-muted-foreground",
|
|
19715
19654
|
children: /* @__PURE__ */ O(Kc, { className: "size-icon" })
|
|
19716
|
-
}) : c ? /* @__PURE__ */ O(
|
|
19655
|
+
}) : c ? /* @__PURE__ */ O(GP, {
|
|
19717
19656
|
status: S.status,
|
|
19718
19657
|
editable: t,
|
|
19719
19658
|
onChange: (e) => i?.({ status: e }),
|
|
19720
19659
|
statusOptions: p
|
|
19721
|
-
}) : /* @__PURE__ */ O(
|
|
19660
|
+
}) : /* @__PURE__ */ O(KP, {
|
|
19722
19661
|
status: S.status,
|
|
19723
19662
|
editable: t,
|
|
19724
19663
|
onChange: (e) => i?.({ status: e }),
|
|
@@ -19726,7 +19665,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19726
19665
|
completeStatus: h,
|
|
19727
19666
|
incompleteStatus: g
|
|
19728
19667
|
}), fe = t && !c && !x, pe = x || fe && re, me = /* @__PURE__ */ O("input", {
|
|
19729
|
-
ref:
|
|
19668
|
+
ref: B,
|
|
19730
19669
|
type: "text",
|
|
19731
19670
|
value: ae,
|
|
19732
19671
|
placeholder: n,
|
|
@@ -19736,24 +19675,24 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19736
19675
|
onClick: (e) => e.stopPropagation(),
|
|
19737
19676
|
onMouseDown: (e) => e.stopPropagation(),
|
|
19738
19677
|
onBlur: () => {
|
|
19739
|
-
c || (
|
|
19678
|
+
c || (le(ae), x || ie(!1));
|
|
19740
19679
|
},
|
|
19741
19680
|
onKeyDown: (e) => {
|
|
19742
|
-
c || (e.key === "Enter" ? (e.preventDefault(),
|
|
19681
|
+
c || (e.key === "Enter" ? (e.preventDefault(), le(ae), x || B.current?.blur()) : e.key === "Escape" && (oe(S.title), B.current?.blur()));
|
|
19743
19682
|
},
|
|
19744
|
-
className: r(
|
|
19683
|
+
className: r(WP, C && "text-muted-foreground line-through")
|
|
19745
19684
|
}), V = /* @__PURE__ */ O("span", {
|
|
19746
19685
|
"data-slot": "task-row-title",
|
|
19747
19686
|
onMouseDown: fe ? (e) => e.stopPropagation() : void 0,
|
|
19748
19687
|
onDoubleClick: fe ? (e) => {
|
|
19749
|
-
e.stopPropagation(),
|
|
19688
|
+
e.stopPropagation(), se();
|
|
19750
19689
|
} : void 0,
|
|
19751
19690
|
onClick: fe ? (e) => {
|
|
19752
|
-
e.stopPropagation(),
|
|
19691
|
+
e.stopPropagation(), se();
|
|
19753
19692
|
} : void 0,
|
|
19754
19693
|
className: r("nodrag nopan min-w-0 flex-1 truncate text-sm font-medium transition-colors", fe && "cursor-text", C && "text-muted-foreground line-through"),
|
|
19755
19694
|
children: S.title
|
|
19756
|
-
}), he = pe ? me : V, ge = t && !c && _ != null && _ !== g && S.status === g ? /* @__PURE__ */ O(
|
|
19695
|
+
}), he = pe ? me : V, ge = t && !c && _ != null && _ !== g && S.status === g ? /* @__PURE__ */ O(JP, { onClick: () => i?.({ status: _ }) }) : null, _e = !!S.dueDate, ve = !c && OP({
|
|
19757
19696
|
show: w,
|
|
19758
19697
|
hasValue: _e
|
|
19759
19698
|
}), ye = t && !c && T === "inline", be = ue === "overdue" || ue === "today" ? "danger" : ue === "tomorrow" ? "warning" : "default", xe = (e) => /* @__PURE__ */ O(l_, {
|
|
@@ -19763,13 +19702,13 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19763
19702
|
onClick: (e) => e.stopPropagation(),
|
|
19764
19703
|
children: /* @__PURE__ */ O(ON, {
|
|
19765
19704
|
mode: "single",
|
|
19766
|
-
value:
|
|
19705
|
+
value: TP(S.dueDate),
|
|
19767
19706
|
now: ne,
|
|
19768
19707
|
presets: SN,
|
|
19769
19708
|
yearBias: "future",
|
|
19770
19709
|
onApply: (e) => {
|
|
19771
19710
|
let t = e instanceof Date ? e : null;
|
|
19772
|
-
i?.({ dueDate:
|
|
19711
|
+
i?.({ dueDate: wP(t) }), N(!1);
|
|
19773
19712
|
},
|
|
19774
19713
|
onClose: () => N(!1)
|
|
19775
19714
|
})
|
|
@@ -19779,21 +19718,21 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19779
19718
|
modal: !1,
|
|
19780
19719
|
children: [/* @__PURE__ */ O(s_, {
|
|
19781
19720
|
asChild: !0,
|
|
19782
|
-
children: /* @__PURE__ */ O(
|
|
19721
|
+
children: /* @__PURE__ */ O(NP, {
|
|
19783
19722
|
icon: /* @__PURE__ */ O(Mc, {}),
|
|
19784
19723
|
tone: be,
|
|
19785
19724
|
empty: !_e,
|
|
19786
19725
|
onMouseDown: (e) => e.stopPropagation(),
|
|
19787
19726
|
onClick: (e) => e.stopPropagation(),
|
|
19788
|
-
children: _e ?
|
|
19727
|
+
children: _e ? EP(S.dueDate) : "Due"
|
|
19789
19728
|
})
|
|
19790
19729
|
}), xe("start")]
|
|
19791
|
-
}) : /* @__PURE__ */ O(
|
|
19730
|
+
}) : /* @__PURE__ */ O(NP, {
|
|
19792
19731
|
icon: /* @__PURE__ */ O(Mc, {}),
|
|
19793
19732
|
tone: be,
|
|
19794
19733
|
empty: !_e,
|
|
19795
19734
|
asStatic: !0,
|
|
19796
|
-
children: _e ?
|
|
19735
|
+
children: _e ? EP(S.dueDate) : "Due"
|
|
19797
19736
|
}) : null, we = t && !c && !Se ? /* @__PURE__ */ k(o_, {
|
|
19798
19737
|
open: M,
|
|
19799
19738
|
onOpenChange: N,
|
|
@@ -19805,19 +19744,19 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19805
19744
|
className: "pointer-events-none absolute right-2 top-2 h-0 w-0"
|
|
19806
19745
|
})
|
|
19807
19746
|
}), xe("end")]
|
|
19808
|
-
}) : null, Te = !!(S.tags && S.tags.length > 0), Ee = !c &&
|
|
19747
|
+
}) : null, Te = !!(S.tags && S.tags.length > 0), Ee = !c && OP({
|
|
19809
19748
|
show: j,
|
|
19810
19749
|
hasValue: Te
|
|
19811
|
-
}) && S.tags ? S.tags.map((e) => /* @__PURE__ */ O(
|
|
19750
|
+
}) && S.tags ? S.tags.map((e) => /* @__PURE__ */ O(NP, {
|
|
19812
19751
|
asStatic: !0,
|
|
19813
19752
|
children: e
|
|
19814
|
-
}, e)) : [], De = c ? [] : (f ?? []).filter((e) =>
|
|
19753
|
+
}, e)) : [], De = c ? [] : (f ?? []).filter((e) => OP({
|
|
19815
19754
|
show: e.show,
|
|
19816
19755
|
hasValue: e.hasValue
|
|
19817
19756
|
})).map((e) => {
|
|
19818
19757
|
if (e.render) return /* @__PURE__ */ O(m.Fragment, { children: e.render() }, e.id);
|
|
19819
|
-
let n =
|
|
19820
|
-
return !t || !
|
|
19758
|
+
let n = AP(e), r = e.edit ?? "inline";
|
|
19759
|
+
return !t || !kP(e) || r === "menu" ? /* @__PURE__ */ O(NP, {
|
|
19821
19760
|
asStatic: !0,
|
|
19822
19761
|
icon: e.icon,
|
|
19823
19762
|
tone: e.tone,
|
|
@@ -19828,7 +19767,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19828
19767
|
modal: !1,
|
|
19829
19768
|
children: [/* @__PURE__ */ O(s_, {
|
|
19830
19769
|
asChild: !0,
|
|
19831
|
-
children: /* @__PURE__ */ O(
|
|
19770
|
+
children: /* @__PURE__ */ O(NP, {
|
|
19832
19771
|
icon: e.icon,
|
|
19833
19772
|
tone: e.tone,
|
|
19834
19773
|
"aria-haspopup": "listbox",
|
|
@@ -19842,7 +19781,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19842
19781
|
onClick: (e) => e.stopPropagation(),
|
|
19843
19782
|
children: /* @__PURE__ */ O(Sy, {
|
|
19844
19783
|
options: e.options ?? [],
|
|
19845
|
-
value:
|
|
19784
|
+
value: jP(e),
|
|
19846
19785
|
clearable: e.editorClearable ?? !0,
|
|
19847
19786
|
searchPlaceholder: e.editorPlaceholder ?? e.label,
|
|
19848
19787
|
className: "w-56",
|
|
@@ -19852,10 +19791,10 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19852
19791
|
})
|
|
19853
19792
|
})]
|
|
19854
19793
|
}, e.id);
|
|
19855
|
-
}), Oe = !!S.ownerEmail, H = !x &&
|
|
19794
|
+
}), Oe = !!S.ownerEmail, H = !x && OP({
|
|
19856
19795
|
show: E,
|
|
19857
19796
|
hasValue: Oe
|
|
19858
|
-
}), ke = t && !c && D === "inline", Ae = t && !c && A.length > 0, je = S.ownerEmail ? (S.ownerInitials ??
|
|
19797
|
+
}), ke = t && !c && D === "inline", Ae = t && !c && A.length > 0, je = S.ownerEmail ? (S.ownerInitials ?? XP(S.ownerEmail)).slice(0, 2) : "", Me = Oe ? /* @__PURE__ */ O(rw, {
|
|
19859
19798
|
name: S.ownerEmail,
|
|
19860
19799
|
colorKey: S.ownerEmail,
|
|
19861
19800
|
initials: je,
|
|
@@ -19864,7 +19803,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19864
19803
|
className: "flex size-5 items-center justify-center rounded-full border border-dashed border-border text-muted-foreground",
|
|
19865
19804
|
"aria-label": "Unassigned",
|
|
19866
19805
|
children: /* @__PURE__ */ O(Jc, { className: "size-icon-sm" })
|
|
19867
|
-
}), Ne =
|
|
19806
|
+
}), Ne = QP(A), Pe = /* @__PURE__ */ O(l_, {
|
|
19868
19807
|
align: "end",
|
|
19869
19808
|
className: "w-auto border-border p-0",
|
|
19870
19809
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -19914,7 +19853,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19914
19853
|
"data-draft": x || void 0,
|
|
19915
19854
|
className: r("group relative flex flex-col gap-0.5 px-2 py-2.5 text-sm transition-colors hover:bg-surface-hover", y),
|
|
19916
19855
|
onClick: () => {
|
|
19917
|
-
x && t &&
|
|
19856
|
+
x && t && B.current?.focus();
|
|
19918
19857
|
},
|
|
19919
19858
|
children: [
|
|
19920
19859
|
/* @__PURE__ */ k("div", {
|
|
@@ -19937,16 +19876,16 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19937
19876
|
}),
|
|
19938
19877
|
!x && we
|
|
19939
19878
|
]
|
|
19940
|
-
}), Re = t && !c && !x && !!i, ze = t && !c && !x && !!i, Be = t && !x && !c ? (f ?? []).filter((e) => !!e.onEditFromMenu || t &&
|
|
19879
|
+
}), Re = t && !c && !x && !!i, ze = t && !c && !x && !!i, Be = t && !x && !c ? (f ?? []).filter((e) => !!e.onEditFromMenu || t && kP(e)) : [], Ve = ze || Ae || Be.length > 0;
|
|
19941
19880
|
if (!(!x && !c && (Re || Ve || t && o))) return Le;
|
|
19942
|
-
let He = Re || !!o, U =
|
|
19881
|
+
let He = Re || !!o, U = BP(p, S.status), Ue = U.icon;
|
|
19943
19882
|
return /* @__PURE__ */ k(RC, { children: [/* @__PURE__ */ O(zC, {
|
|
19944
19883
|
asChild: !0,
|
|
19945
19884
|
children: Le
|
|
19946
19885
|
}), /* @__PURE__ */ k(KC, {
|
|
19947
19886
|
onCloseAutoFocus: (e) => {
|
|
19948
19887
|
if (ee) {
|
|
19949
|
-
e.preventDefault(),
|
|
19888
|
+
e.preventDefault(), se(), R(!1);
|
|
19950
19889
|
return;
|
|
19951
19890
|
}
|
|
19952
19891
|
I && (e.preventDefault(), N(!0), L(!1));
|
|
@@ -19978,7 +19917,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19978
19917
|
className: "p-0",
|
|
19979
19918
|
children: /* @__PURE__ */ O(Sy, {
|
|
19980
19919
|
options: e.options ?? [],
|
|
19981
|
-
value:
|
|
19920
|
+
value: jP(e),
|
|
19982
19921
|
clearable: e.editorClearable ?? !0,
|
|
19983
19922
|
searchPlaceholder: e.editorPlaceholder ?? e.label,
|
|
19984
19923
|
className: "w-56",
|
|
@@ -19989,7 +19928,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19989
19928
|
Re && /* @__PURE__ */ k(HC, { children: [/* @__PURE__ */ k(WC, { children: [/* @__PURE__ */ O(Ue, { className: U.tone }), "Status"] }), /* @__PURE__ */ O(GC, {
|
|
19990
19929
|
className: "p-0",
|
|
19991
19930
|
children: /* @__PURE__ */ O(Sy, {
|
|
19992
|
-
options:
|
|
19931
|
+
options: VP(p),
|
|
19993
19932
|
value: S.status,
|
|
19994
19933
|
clearable: !1,
|
|
19995
19934
|
searchPlaceholder: "Set status…",
|
|
@@ -20008,8 +19947,8 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
20008
19947
|
]
|
|
20009
19948
|
})] });
|
|
20010
19949
|
});
|
|
20011
|
-
|
|
20012
|
-
function
|
|
19950
|
+
$P.displayName = "TaskRow";
|
|
19951
|
+
function eF(e, t) {
|
|
20013
19952
|
if (e === t) return !0;
|
|
20014
19953
|
let n = e?.length ?? 0;
|
|
20015
19954
|
if (n !== (t?.length ?? 0)) return !1;
|
|
@@ -20017,33 +19956,33 @@ function tF(e, t) {
|
|
|
20017
19956
|
for (let r = 0; r < n; r++) if (e[r] !== t[r]) return !1;
|
|
20018
19957
|
return !0;
|
|
20019
19958
|
}
|
|
19959
|
+
function tF(e, t) {
|
|
19960
|
+
return e === t ? !0 : !e || !t ? !1 : e.title === t.title && e.status === t.status && (e.dueDate ?? null) === (t.dueDate ?? null) && (e.ownerEmail ?? null) === (t.ownerEmail ?? null) && (e.ownerInitials ?? null) === (t.ownerInitials ?? null) && eF(e.tags, t.tags);
|
|
19961
|
+
}
|
|
20020
19962
|
function nF(e, t) {
|
|
20021
|
-
return e === t
|
|
19963
|
+
return e?.show === t?.show && e?.edit === t?.edit;
|
|
20022
19964
|
}
|
|
20023
19965
|
function rF(e, t) {
|
|
20024
|
-
return e
|
|
19966
|
+
return nF(e, t) && e?.options === t?.options;
|
|
20025
19967
|
}
|
|
20026
19968
|
function iF(e, t) {
|
|
20027
|
-
return rF(e, t) && e?.options === t?.options;
|
|
20028
|
-
}
|
|
20029
|
-
function aF(e, t) {
|
|
20030
19969
|
if (e === t) return !0;
|
|
20031
19970
|
let n = e?.length ?? 0;
|
|
20032
19971
|
if (n !== (t?.length ?? 0)) return !1;
|
|
20033
19972
|
if (!e || !t) return !0;
|
|
20034
19973
|
for (let r = 0; r < n; r++) {
|
|
20035
19974
|
let n = e[r], i = t[r];
|
|
20036
|
-
if (n.render !== i.render || n.render && (n.renderKey === void 0 || n.renderKey !== i.renderKey) || n.id !== i.id || n.label !== i.label || n.show !== i.show || (n.edit ?? "inline") !== (i.edit ?? "inline") || !!n.hasValue != !!i.hasValue || !!n.readOnly != !!i.readOnly || (n.editorValue ?? null) !== (i.editorValue ?? null) ||
|
|
19975
|
+
if (n.render !== i.render || n.render && (n.renderKey === void 0 || n.renderKey !== i.renderKey) || n.id !== i.id || n.label !== i.label || n.show !== i.show || (n.edit ?? "inline") !== (i.edit ?? "inline") || !!n.hasValue != !!i.hasValue || !!n.readOnly != !!i.readOnly || (n.editorValue ?? null) !== (i.editorValue ?? null) || AP(n) !== AP(i) || n.options !== i.options || n.onChange !== i.onChange || n.onEditFromMenu !== i.onEditFromMenu || (n.editorClearable ?? !0) !== (i.editorClearable ?? !0) || (n.editorPlaceholder ?? null) !== (i.editorPlaceholder ?? null) || n.tone !== i.tone || n.icon !== i.icon) return !1;
|
|
20037
19976
|
}
|
|
20038
19977
|
return !0;
|
|
20039
19978
|
}
|
|
20040
|
-
function
|
|
20041
|
-
return e.task === null || t.task === null ? !1 :
|
|
19979
|
+
function aF(e, t) {
|
|
19980
|
+
return e.task === null || t.task === null ? !1 : tF(e.task, t.task) && e.editable === t.editable && e.statusOnly === t.statusOnly && e.hideOwner === t.hideOwner && e.placeholder === t.placeholder && e.className === t.className && e.statusOptions === t.statusOptions && e.completeStatus === t.completeStatus && e.incompleteStatus === t.incompleteStatus && e.startStatus === t.startStatus && e.resolvedStatuses === t.resolvedStatuses && !!e.onChange == !!t.onChange && !!e.onDelete == !!t.onDelete && !!e.onCommit == !!t.onCommit && nF(e.due, t.due) && rF(e.assignee, t.assignee) && nF(e.tags, t.tags) && iF(e.fields, t.fields);
|
|
20042
19981
|
}
|
|
20043
|
-
var
|
|
19982
|
+
var oF = m.memo($P, aF);
|
|
20044
19983
|
//#endregion
|
|
20045
19984
|
//#region ../../../atlas/src/shared/components/ui/task-create-dialog.tsx
|
|
20046
|
-
function
|
|
19985
|
+
function sF({ options: e, value: t, placeholder: n, icon: r, empty: i, clearable: a = !1, onChange: o }) {
|
|
20047
19986
|
let [s, c] = m.useState(!1), l = e.find((e) => e.value === t);
|
|
20048
19987
|
return /* @__PURE__ */ k(o_, {
|
|
20049
19988
|
open: s,
|
|
@@ -20051,7 +19990,7 @@ function cF({ options: e, value: t, placeholder: n, icon: r, empty: i, clearable
|
|
|
20051
19990
|
modal: !1,
|
|
20052
19991
|
children: [/* @__PURE__ */ O(s_, {
|
|
20053
19992
|
asChild: !0,
|
|
20054
|
-
children: /* @__PURE__ */ O(
|
|
19993
|
+
children: /* @__PURE__ */ O(NP, {
|
|
20055
19994
|
icon: l?.icon ?? r,
|
|
20056
19995
|
empty: i,
|
|
20057
19996
|
children: l?.label ?? n
|
|
@@ -20072,8 +20011,8 @@ function cF({ options: e, value: t, placeholder: n, icon: r, empty: i, clearable
|
|
|
20072
20011
|
})]
|
|
20073
20012
|
});
|
|
20074
20013
|
}
|
|
20075
|
-
function
|
|
20076
|
-
let [n, r] = m.useState(!1), i = m.useMemo(() => /* @__PURE__ */ new Date(), [n]), a = e ?
|
|
20014
|
+
function cF({ value: e, onChange: t }) {
|
|
20015
|
+
let [n, r] = m.useState(!1), i = m.useMemo(() => /* @__PURE__ */ new Date(), [n]), a = e ? TP(e)?.toLocaleDateString(void 0, {
|
|
20077
20016
|
month: "short",
|
|
20078
20017
|
day: "numeric"
|
|
20079
20018
|
}) ?? "Due date" : "Due date";
|
|
@@ -20083,7 +20022,7 @@ function lF({ value: e, onChange: t }) {
|
|
|
20083
20022
|
modal: !1,
|
|
20084
20023
|
children: [/* @__PURE__ */ O(s_, {
|
|
20085
20024
|
asChild: !0,
|
|
20086
|
-
children: /* @__PURE__ */ O(
|
|
20025
|
+
children: /* @__PURE__ */ O(NP, {
|
|
20087
20026
|
icon: /* @__PURE__ */ O(Mc, {}),
|
|
20088
20027
|
empty: !e,
|
|
20089
20028
|
children: a
|
|
@@ -20094,23 +20033,23 @@ function lF({ value: e, onChange: t }) {
|
|
|
20094
20033
|
onInteractOutside: EN,
|
|
20095
20034
|
children: /* @__PURE__ */ O(ON, {
|
|
20096
20035
|
mode: "single",
|
|
20097
|
-
value:
|
|
20036
|
+
value: TP(e),
|
|
20098
20037
|
now: i,
|
|
20099
20038
|
presets: SN,
|
|
20100
20039
|
yearBias: "future",
|
|
20101
20040
|
onApply: (e) => {
|
|
20102
|
-
t(
|
|
20041
|
+
t(wP(e instanceof Date ? e : null)), r(!1);
|
|
20103
20042
|
},
|
|
20104
20043
|
onClose: () => r(!1)
|
|
20105
20044
|
})
|
|
20106
20045
|
})]
|
|
20107
20046
|
});
|
|
20108
20047
|
}
|
|
20109
|
-
function
|
|
20048
|
+
function lF(e, t) {
|
|
20110
20049
|
return t == null ? null : e.find((e) => e.value === t || e.label === t)?.value ?? null;
|
|
20111
20050
|
}
|
|
20112
|
-
function
|
|
20113
|
-
let [u, d] = m.useState(""), [f, p] = m.useState(""), [h, g] = m.useState(a), _ = m.useMemo(() =>
|
|
20051
|
+
function uF({ open: e, onOpenChange: t, initialValues: n, assigneeOptions: r, statusOptions: i = PP, defaultStatus: a = IP, showDescription: o = !0, createFields: s, initialFieldValues: c, onCreate: l }) {
|
|
20052
|
+
let [u, d] = m.useState(""), [f, p] = m.useState(""), [h, g] = m.useState(a), _ = m.useMemo(() => VP(i), [i]), [v, y] = m.useState(null), [b, x] = m.useState(null), [S, C] = m.useState(void 0), [w, T] = m.useState({}), E = m.useMemo(() => QP(r ?? []), [r]), D = m.useRef({
|
|
20114
20053
|
initialValues: n,
|
|
20115
20054
|
createFields: s,
|
|
20116
20055
|
initialFieldValues: c,
|
|
@@ -20126,7 +20065,7 @@ function dF({ open: e, onOpenChange: t, initialValues: n, assigneeOptions: r, st
|
|
|
20126
20065
|
let { initialValues: e, createFields: t, initialFieldValues: n, defaultStatus: r } = D.current;
|
|
20127
20066
|
d(""), p(""), g(e?.status ?? r), y(e?.ownerEmail ?? null), x(e?.dueDate ?? null), C(e?.tags);
|
|
20128
20067
|
let i = {};
|
|
20129
|
-
for (let e of t ?? []) i[e.id] =
|
|
20068
|
+
for (let e of t ?? []) i[e.id] = lF(e.options, n?.[e.id]);
|
|
20130
20069
|
T(i);
|
|
20131
20070
|
}, []);
|
|
20132
20071
|
m.useEffect(() => {
|
|
@@ -20177,24 +20116,24 @@ function dF({ open: e, onOpenChange: t, initialValues: n, assigneeOptions: r, st
|
|
|
20177
20116
|
/* @__PURE__ */ k("div", {
|
|
20178
20117
|
className: "flex flex-wrap items-center gap-2 pt-1",
|
|
20179
20118
|
children: [
|
|
20180
|
-
/* @__PURE__ */ O(
|
|
20119
|
+
/* @__PURE__ */ O(sF, {
|
|
20181
20120
|
options: _,
|
|
20182
20121
|
value: h,
|
|
20183
20122
|
placeholder: "Status",
|
|
20184
20123
|
onChange: (e) => e && g(e)
|
|
20185
20124
|
}),
|
|
20186
|
-
r && r.length > 0 && /* @__PURE__ */ O(
|
|
20125
|
+
r && r.length > 0 && /* @__PURE__ */ O(sF, {
|
|
20187
20126
|
options: E,
|
|
20188
20127
|
value: v ?? "__unassigned__",
|
|
20189
20128
|
placeholder: "Assign to…",
|
|
20190
20129
|
clearable: !0,
|
|
20191
20130
|
onChange: (e) => y(!e || e === "__unassigned__" ? null : e)
|
|
20192
20131
|
}),
|
|
20193
|
-
/* @__PURE__ */ O(
|
|
20132
|
+
/* @__PURE__ */ O(cF, {
|
|
20194
20133
|
value: b,
|
|
20195
20134
|
onChange: x
|
|
20196
20135
|
}),
|
|
20197
|
-
(s ?? []).map((e) => /* @__PURE__ */ O(
|
|
20136
|
+
(s ?? []).map((e) => /* @__PURE__ */ O(sF, {
|
|
20198
20137
|
options: e.options,
|
|
20199
20138
|
value: w[e.id] ?? null,
|
|
20200
20139
|
placeholder: e.label,
|
|
@@ -20229,7 +20168,7 @@ function dF({ open: e, onOpenChange: t, initialValues: n, assigneeOptions: r, st
|
|
|
20229
20168
|
}
|
|
20230
20169
|
//#endregion
|
|
20231
20170
|
//#region ../../../node_modules/.pnpm/@tanstack+virtual-core@3.14.0/node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
20232
|
-
function
|
|
20171
|
+
function dF(e, t, n) {
|
|
20233
20172
|
let r = n.initialDeps ?? [], i, a = !0;
|
|
20234
20173
|
function o() {
|
|
20235
20174
|
let o;
|
|
@@ -20254,26 +20193,26 @@ function fF(e, t, n) {
|
|
|
20254
20193
|
r = e;
|
|
20255
20194
|
}, o;
|
|
20256
20195
|
}
|
|
20257
|
-
function
|
|
20196
|
+
function fF(e, t) {
|
|
20258
20197
|
if (e === void 0) throw Error(`Unexpected undefined${t ? `: ${t}` : ""}`);
|
|
20259
20198
|
return e;
|
|
20260
20199
|
}
|
|
20261
|
-
var
|
|
20200
|
+
var pF = (e, t) => Math.abs(e - t) < 1.01, mF = (e, t, n) => {
|
|
20262
20201
|
let r;
|
|
20263
20202
|
return function(...i) {
|
|
20264
20203
|
e.clearTimeout(r), r = e.setTimeout(() => t.apply(this, i), n);
|
|
20265
20204
|
};
|
|
20266
|
-
},
|
|
20205
|
+
}, hF = (e) => {
|
|
20267
20206
|
let { offsetWidth: t, offsetHeight: n } = e;
|
|
20268
20207
|
return {
|
|
20269
20208
|
width: t,
|
|
20270
20209
|
height: n
|
|
20271
20210
|
};
|
|
20272
|
-
},
|
|
20211
|
+
}, gF = (e) => e, _F = (e) => {
|
|
20273
20212
|
let t = Math.max(e.startIndex - e.overscan, 0), n = Math.min(e.endIndex + e.overscan, e.count - 1), r = [];
|
|
20274
20213
|
for (let e = t; e <= n; e++) r.push(e);
|
|
20275
20214
|
return r;
|
|
20276
|
-
},
|
|
20215
|
+
}, vF = (e, t) => {
|
|
20277
20216
|
let n = e.scrollElement;
|
|
20278
20217
|
if (!n) return;
|
|
20279
20218
|
let r = e.targetWindow;
|
|
@@ -20285,7 +20224,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20285
20224
|
height: Math.round(r)
|
|
20286
20225
|
});
|
|
20287
20226
|
};
|
|
20288
|
-
if (i(
|
|
20227
|
+
if (i(hF(n)), !r.ResizeObserver) return () => {};
|
|
20289
20228
|
let a = new r.ResizeObserver((t) => {
|
|
20290
20229
|
let r = () => {
|
|
20291
20230
|
let e = t[0];
|
|
@@ -20299,43 +20238,43 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20299
20238
|
return;
|
|
20300
20239
|
}
|
|
20301
20240
|
}
|
|
20302
|
-
i(
|
|
20241
|
+
i(hF(n));
|
|
20303
20242
|
};
|
|
20304
20243
|
e.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(r) : r();
|
|
20305
20244
|
});
|
|
20306
20245
|
return a.observe(n, { box: "border-box" }), () => {
|
|
20307
20246
|
a.unobserve(n);
|
|
20308
20247
|
};
|
|
20309
|
-
},
|
|
20248
|
+
}, yF = { passive: !0 }, bF = typeof window > "u" ? !0 : "onscrollend" in window, xF = (e, t) => {
|
|
20310
20249
|
let n = e.scrollElement;
|
|
20311
20250
|
if (!n) return;
|
|
20312
20251
|
let r = e.targetWindow;
|
|
20313
20252
|
if (!r) return;
|
|
20314
|
-
let i = 0, a = e.options.useScrollendEvent &&
|
|
20253
|
+
let i = 0, a = e.options.useScrollendEvent && bF ? () => void 0 : mF(r, () => {
|
|
20315
20254
|
t(i, !1);
|
|
20316
20255
|
}, e.options.isScrollingResetDelay), o = (r) => () => {
|
|
20317
20256
|
let { horizontal: o, isRtl: s } = e.options;
|
|
20318
20257
|
i = o ? n.scrollLeft * (s && -1 || 1) : n.scrollTop, a(), t(i, r);
|
|
20319
20258
|
}, s = o(!0), c = o(!1);
|
|
20320
|
-
n.addEventListener("scroll", s,
|
|
20321
|
-
let l = e.options.useScrollendEvent &&
|
|
20322
|
-
return l && n.addEventListener("scrollend", c,
|
|
20259
|
+
n.addEventListener("scroll", s, yF);
|
|
20260
|
+
let l = e.options.useScrollendEvent && bF;
|
|
20261
|
+
return l && n.addEventListener("scrollend", c, yF), () => {
|
|
20323
20262
|
n.removeEventListener("scroll", s), l && n.removeEventListener("scrollend", c);
|
|
20324
20263
|
};
|
|
20325
|
-
},
|
|
20264
|
+
}, SF = (e, t, n) => {
|
|
20326
20265
|
if (t?.borderBoxSize) {
|
|
20327
20266
|
let e = t.borderBoxSize[0];
|
|
20328
20267
|
if (e) return Math.round(e[n.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
20329
20268
|
}
|
|
20330
20269
|
return e[n.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
20331
|
-
},
|
|
20270
|
+
}, CF = (e, { adjustments: t = 0, behavior: n }, r) => {
|
|
20332
20271
|
var i, a;
|
|
20333
20272
|
let o = e + t;
|
|
20334
20273
|
(a = (i = r.scrollElement)?.scrollTo) == null || a.call(i, {
|
|
20335
20274
|
[r.options.horizontal ? "left" : "top"]: o,
|
|
20336
20275
|
behavior: n
|
|
20337
20276
|
});
|
|
20338
|
-
},
|
|
20277
|
+
}, wF = class {
|
|
20339
20278
|
constructor(e) {
|
|
20340
20279
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
20341
20280
|
var e;
|
|
@@ -20374,10 +20313,10 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20374
20313
|
scrollPaddingStart: 0,
|
|
20375
20314
|
scrollPaddingEnd: 0,
|
|
20376
20315
|
horizontal: !1,
|
|
20377
|
-
getItemKey:
|
|
20378
|
-
rangeExtractor:
|
|
20316
|
+
getItemKey: gF,
|
|
20317
|
+
rangeExtractor: _F,
|
|
20379
20318
|
onChange: () => {},
|
|
20380
|
-
measureElement:
|
|
20319
|
+
measureElement: SF,
|
|
20381
20320
|
initialRect: {
|
|
20382
20321
|
width: 0,
|
|
20383
20322
|
height: 0
|
|
@@ -20398,7 +20337,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20398
20337
|
}, this.notify = (e) => {
|
|
20399
20338
|
var t, n;
|
|
20400
20339
|
(n = (t = this.options).onChange) == null || n.call(t, this, e);
|
|
20401
|
-
}, this.maybeNotify =
|
|
20340
|
+
}, this.maybeNotify = dF(() => (this.calculateRange(), [
|
|
20402
20341
|
this.isScrolling,
|
|
20403
20342
|
this.range ? this.range.startIndex : null,
|
|
20404
20343
|
this.range ? this.range.endIndex : null
|
|
@@ -20443,7 +20382,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20443
20382
|
if (a == null || t.end > a.end ? r.set(t.lane, t) : t.end < a.end && n.set(t.lane, !0), n.size === this.options.lanes) break;
|
|
20444
20383
|
}
|
|
20445
20384
|
return r.size === this.options.lanes ? Array.from(r.values()).sort((e, t) => e.end === t.end ? e.index - t.index : e.end - t.end)[0] : void 0;
|
|
20446
|
-
}, this.getMeasurementOptions =
|
|
20385
|
+
}, this.getMeasurementOptions = dF(() => [
|
|
20447
20386
|
this.options.count,
|
|
20448
20387
|
this.options.paddingStart,
|
|
20449
20388
|
this.options.scrollMargin,
|
|
@@ -20459,7 +20398,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20459
20398
|
enabled: i,
|
|
20460
20399
|
lanes: a,
|
|
20461
20400
|
laneAssignmentMode: o
|
|
20462
|
-
}), { key: !1 }), this.getMeasurements =
|
|
20401
|
+
}), { key: !1 }), this.getMeasurements = dF(() => [this.getMeasurementOptions(), this.itemSizeCache], ({ count: e, paddingStart: t, scrollMargin: n, getItemKey: r, enabled: i, lanes: a, laneAssignmentMode: o }, s) => {
|
|
20463
20402
|
if (!i) return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
|
|
20464
20403
|
if (this.laneAssignments.size > e) for (let t of this.laneAssignments.keys()) t >= e && this.laneAssignments.delete(t);
|
|
20465
20404
|
this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e) => {
|
|
@@ -20496,12 +20435,12 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20496
20435
|
}, {
|
|
20497
20436
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
20498
20437
|
debug: () => this.options.debug
|
|
20499
|
-
}), this.calculateRange =
|
|
20438
|
+
}), this.calculateRange = dF(() => [
|
|
20500
20439
|
this.getMeasurements(),
|
|
20501
20440
|
this.getSize(),
|
|
20502
20441
|
this.getScrollOffset(),
|
|
20503
20442
|
this.options.lanes
|
|
20504
|
-
], (e, t, n, r) => this.range = e.length > 0 && t > 0 ?
|
|
20443
|
+
], (e, t, n, r) => this.range = e.length > 0 && t > 0 ? EF({
|
|
20505
20444
|
measurements: e,
|
|
20506
20445
|
outerSize: t,
|
|
20507
20446
|
scrollOffset: n,
|
|
@@ -20509,7 +20448,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20509
20448
|
}) : null, {
|
|
20510
20449
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
20511
20450
|
debug: () => this.options.debug
|
|
20512
|
-
}), this.getVirtualIndexes =
|
|
20451
|
+
}), this.getVirtualIndexes = dF(() => {
|
|
20513
20452
|
let e = null, t = null, n = this.calculateRange();
|
|
20514
20453
|
return n && (e = n.startIndex, t = n.endIndex), this.maybeNotify.updateDeps([
|
|
20515
20454
|
this.isScrolling,
|
|
@@ -20558,7 +20497,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20558
20497
|
adjustments: this.scrollAdjustments += r,
|
|
20559
20498
|
behavior: void 0
|
|
20560
20499
|
})), this.pendingMeasuredCacheIndexes.push(n.index), this.itemSizeCache = new Map(this.itemSizeCache.set(n.key, t)), this.notify(!1));
|
|
20561
|
-
}, this.getVirtualItems =
|
|
20500
|
+
}, this.getVirtualItems = dF(() => [this.getVirtualIndexes(), this.getMeasurements()], (e, t) => {
|
|
20562
20501
|
let n = [];
|
|
20563
20502
|
for (let r = 0, i = e.length; r < i; r++) {
|
|
20564
20503
|
let i = t[e[r]];
|
|
@@ -20570,7 +20509,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20570
20509
|
debug: () => this.options.debug
|
|
20571
20510
|
}), this.getVirtualItemForOffset = (e) => {
|
|
20572
20511
|
let t = this.getMeasurements();
|
|
20573
|
-
if (t.length !== 0) return
|
|
20512
|
+
if (t.length !== 0) return fF(t[TF(0, t.length - 1, (e) => fF(t[e]).start, e)]);
|
|
20574
20513
|
}, this.getMaxScrollOffset = () => {
|
|
20575
20514
|
if (!this.scrollElement) return 0;
|
|
20576
20515
|
if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
|
|
@@ -20674,7 +20613,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20674
20613
|
return;
|
|
20675
20614
|
}
|
|
20676
20615
|
let e = this.scrollState.index == null ? void 0 : this.getOffsetForIndex(this.scrollState.index, this.scrollState.align), t = e ? e[0] : this.scrollState.lastTargetOffset, n = t !== this.scrollState.lastTargetOffset;
|
|
20677
|
-
if (!n &&
|
|
20616
|
+
if (!n && pF(t, this.getScrollOffset())) {
|
|
20678
20617
|
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= 1) {
|
|
20679
20618
|
this.scrollState = null;
|
|
20680
20619
|
return;
|
|
@@ -20685,7 +20624,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20685
20624
|
}));
|
|
20686
20625
|
this.scheduleScrollReconcile();
|
|
20687
20626
|
}
|
|
20688
|
-
},
|
|
20627
|
+
}, TF = (e, t, n, r) => {
|
|
20689
20628
|
for (; e <= t;) {
|
|
20690
20629
|
let i = (e + t) / 2 | 0, a = n(i);
|
|
20691
20630
|
if (a < r) e = i + 1;
|
|
@@ -20694,13 +20633,13 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20694
20633
|
}
|
|
20695
20634
|
return e > 0 ? e - 1 : 0;
|
|
20696
20635
|
};
|
|
20697
|
-
function
|
|
20636
|
+
function EF({ measurements: e, outerSize: t, scrollOffset: n, lanes: r }) {
|
|
20698
20637
|
let i = e.length - 1, a = (t) => e[t].start;
|
|
20699
20638
|
if (e.length <= r) return {
|
|
20700
20639
|
startIndex: 0,
|
|
20701
20640
|
endIndex: i
|
|
20702
20641
|
};
|
|
20703
|
-
let o =
|
|
20642
|
+
let o = TF(0, i, a, n), s = o;
|
|
20704
20643
|
if (r === 1) for (; s < i && e[s].end < n + t;) s++;
|
|
20705
20644
|
else if (r > 1) {
|
|
20706
20645
|
let a = Array(r).fill(0);
|
|
@@ -20722,44 +20661,44 @@ function DF({ measurements: e, outerSize: t, scrollOffset: n, lanes: r }) {
|
|
|
20722
20661
|
}
|
|
20723
20662
|
//#endregion
|
|
20724
20663
|
//#region ../../../node_modules/.pnpm/@tanstack+react-virtual@3.13.24_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
20725
|
-
var
|
|
20726
|
-
function
|
|
20664
|
+
var DF = typeof document < "u" ? m.useLayoutEffect : m.useEffect;
|
|
20665
|
+
function OF({ useFlushSync: e = !0, ...t }) {
|
|
20727
20666
|
let n = m.useReducer(() => ({}), {})[1], r = {
|
|
20728
20667
|
...t,
|
|
20729
20668
|
onChange: (r, i) => {
|
|
20730
20669
|
var a;
|
|
20731
20670
|
e && i ? P(n) : n(), (a = t.onChange) == null || a.call(t, r, i);
|
|
20732
20671
|
}
|
|
20733
|
-
}, [i] = m.useState(() => new
|
|
20734
|
-
return i.setOptions(r),
|
|
20735
|
-
}
|
|
20736
|
-
function
|
|
20737
|
-
return
|
|
20738
|
-
observeElementRect:
|
|
20739
|
-
observeElementOffset:
|
|
20740
|
-
scrollToFn:
|
|
20672
|
+
}, [i] = m.useState(() => new wF(r));
|
|
20673
|
+
return i.setOptions(r), DF(() => i._didMount(), []), DF(() => i._willUpdate()), i;
|
|
20674
|
+
}
|
|
20675
|
+
function kF(e) {
|
|
20676
|
+
return OF({
|
|
20677
|
+
observeElementRect: vF,
|
|
20678
|
+
observeElementOffset: xF,
|
|
20679
|
+
scrollToFn: CF,
|
|
20741
20680
|
...e
|
|
20742
20681
|
});
|
|
20743
20682
|
}
|
|
20744
20683
|
//#endregion
|
|
20745
20684
|
//#region ../../../atlas/src/shared/components/ui/task-list.tsx
|
|
20746
|
-
function
|
|
20685
|
+
function AF(e) {
|
|
20747
20686
|
return typeof e.id == "string" && e.id.length > 0 ? e.id : null;
|
|
20748
20687
|
}
|
|
20749
|
-
var
|
|
20688
|
+
var jF = new Set([
|
|
20750
20689
|
"status",
|
|
20751
20690
|
"assignee",
|
|
20752
20691
|
"tags"
|
|
20753
20692
|
]);
|
|
20754
|
-
function
|
|
20693
|
+
function MF(e) {
|
|
20755
20694
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
20756
20695
|
}
|
|
20757
|
-
function
|
|
20696
|
+
function NF(e, t) {
|
|
20758
20697
|
let n = /* @__PURE__ */ new Set();
|
|
20759
20698
|
for (let r of e) for (let e of t(r)) n.add(e);
|
|
20760
20699
|
return [...n];
|
|
20761
20700
|
}
|
|
20762
|
-
function
|
|
20701
|
+
function PF(e) {
|
|
20763
20702
|
return {
|
|
20764
20703
|
title: e.title,
|
|
20765
20704
|
status: e.status,
|
|
@@ -20769,10 +20708,10 @@ function FF(e) {
|
|
|
20769
20708
|
tags: e.tags
|
|
20770
20709
|
};
|
|
20771
20710
|
}
|
|
20772
|
-
function
|
|
20711
|
+
function FF(e) {
|
|
20773
20712
|
return `${e.title} ${(e.tags ?? []).join(" ")} ${e.ownerEmail ?? ""}`;
|
|
20774
20713
|
}
|
|
20775
|
-
function
|
|
20714
|
+
function IF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1, getRowKey: a, onChange: o, createTask: s, onTaskUpdate: c, onTaskDelete: l, onTaskCreate: u, emptyMessage: d = "No tasks yet.", searchable: f, filterable: p, currentUserEmail: h, onVisibleTasksChange: g, groupable: _ = !0, defaultGroupBy: v = "none", groupStorageKey: y, due: b, assignee: x, tags: S, fields: C, createFields: w, statusOptions: T = PP, statusBoardOrder: E = HP, completeStatus: D = FP, incompleteStatus: A = IP, startStatus: j = LP, resolvedStatuses: M = RP, showDescription: N = !0, className: P }) {
|
|
20776
20715
|
let F = m.useRef(e);
|
|
20777
20716
|
F.current = e;
|
|
20778
20717
|
let I = m.useRef(o);
|
|
@@ -20789,7 +20728,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20789
20728
|
let t = /* @__PURE__ */ new Map();
|
|
20790
20729
|
if (C) for (let n of e) t.set(n, C(n));
|
|
20791
20730
|
return t;
|
|
20792
|
-
}, [e, C]), ne = m.useCallback((e, t) =>
|
|
20731
|
+
}, [e, C]), ne = m.useCallback((e, t) => AF(e) || (a ? a(e, t) : null), [a]), re = m.useCallback((e, t) => t == null ? e : F.current.find((e, n) => ne(e, n) === t) ?? e, [ne]), ie = m.useCallback((e, t, n) => {
|
|
20793
20732
|
let r = L.current;
|
|
20794
20733
|
if (r) {
|
|
20795
20734
|
r(re(e, t), n);
|
|
@@ -20827,11 +20766,11 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20827
20766
|
}
|
|
20828
20767
|
let r = z.current;
|
|
20829
20768
|
r && I.current?.([...F.current, r(e)]);
|
|
20830
|
-
}, []),
|
|
20769
|
+
}, []), B = t && !n && !!(u || s), se = m.useMemo(() => f ? typeof f == "object" ? f : {} : null, [f]), [ce, le] = m.useState(""), [ue, de] = m.useState({}), [fe, pe] = m.useState(!1), me = x?.options ?? [], V = m.useMemo(() => {
|
|
20831
20770
|
let t = [{
|
|
20832
20771
|
key: "status",
|
|
20833
20772
|
label: "Status",
|
|
20834
|
-
options:
|
|
20773
|
+
options: VP(T),
|
|
20835
20774
|
getValues: (e) => [e.status],
|
|
20836
20775
|
groupOrder: E
|
|
20837
20776
|
}];
|
|
@@ -20844,7 +20783,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20844
20783
|
})),
|
|
20845
20784
|
getValues: (e) => e.ownerEmail ? [e.ownerEmail] : []
|
|
20846
20785
|
});
|
|
20847
|
-
let n =
|
|
20786
|
+
let n = NF(e, (e) => e.tags ?? []);
|
|
20848
20787
|
n.length > 0 && t.push({
|
|
20849
20788
|
key: "tags",
|
|
20850
20789
|
label: "Tags",
|
|
@@ -20861,7 +20800,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20861
20800
|
label: t.label,
|
|
20862
20801
|
values: /* @__PURE__ */ new Set(),
|
|
20863
20802
|
valueLabels: /* @__PURE__ */ new Map()
|
|
20864
|
-
}, n =
|
|
20803
|
+
}, n = MF(t.value);
|
|
20865
20804
|
for (let r of n) {
|
|
20866
20805
|
e.values.add(r);
|
|
20867
20806
|
let i = t.options?.find((e) => e.value === r)?.label ?? (n.length === 1 ? t.text : void 0);
|
|
@@ -20876,7 +20815,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20876
20815
|
value: e,
|
|
20877
20816
|
label: a.get(e) ?? e
|
|
20878
20817
|
})).sort((e, t) => e.label.localeCompare(t.label)),
|
|
20879
|
-
getValues: (t) =>
|
|
20818
|
+
getValues: (t) => MF(te.get(t)?.find((t) => t.id === e)?.value)
|
|
20880
20819
|
});
|
|
20881
20820
|
return t;
|
|
20882
20821
|
}, [
|
|
@@ -20886,7 +20825,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20886
20825
|
T,
|
|
20887
20826
|
E
|
|
20888
20827
|
]), he = m.useMemo(() => {
|
|
20889
|
-
let t =
|
|
20828
|
+
let t = ce.trim().toLowerCase(), n = se?.accessor ?? FF;
|
|
20890
20829
|
return e.filter((e) => {
|
|
20891
20830
|
if (t && !n(e).toLowerCase().includes(t) || fe && h && e.ownerEmail !== h) return !1;
|
|
20892
20831
|
for (let t of V) {
|
|
@@ -20897,10 +20836,10 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20897
20836
|
});
|
|
20898
20837
|
}, [
|
|
20899
20838
|
e,
|
|
20900
|
-
|
|
20839
|
+
ce,
|
|
20901
20840
|
V,
|
|
20902
20841
|
ue,
|
|
20903
|
-
|
|
20842
|
+
se,
|
|
20904
20843
|
fe,
|
|
20905
20844
|
h
|
|
20906
20845
|
]), ge = m.useRef(g);
|
|
@@ -20950,7 +20889,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20950
20889
|
}, [be]), Oe = (e) => Ee((t) => {
|
|
20951
20890
|
let n = new Set(t);
|
|
20952
20891
|
return n.has(e) ? n.delete(e) : n.add(e), De(n), n;
|
|
20953
|
-
}), H = Se === "none" || V.some((e) => e.key === Se) ? Se : "none", ke = m.useCallback((e) => [...e].sort((e, t) =>
|
|
20892
|
+
}), H = Se === "none" || V.some((e) => e.key === Se) ? Se : "none", ke = m.useCallback((e) => [...e].sort((e, t) => UP(E, e.status) - UP(E, t.status)), [E]), Ae = m.useMemo(() => {
|
|
20954
20893
|
let e = [{
|
|
20955
20894
|
key: "__all__",
|
|
20956
20895
|
label: null,
|
|
@@ -20997,7 +20936,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20997
20936
|
]), je = m.useMemo(() => {
|
|
20998
20937
|
let t = /* @__PURE__ */ new Map();
|
|
20999
20938
|
return e.forEach((e, n) => t.set(e, n)), t;
|
|
21000
|
-
}, [e]), [Me, Ne] = m.useState(null), Pe = m.useMemo(() => new Set((w ?? []).map((e) => e.id)), [w]), Fe = m.useCallback((e) => !e.header || H === "none" || e.key === "__none__" ? !0 :
|
|
20939
|
+
}, [e]), [Me, Ne] = m.useState(null), Pe = m.useMemo(() => new Set((w ?? []).map((e) => e.id)), [w]), Fe = m.useCallback((e) => !e.header || H === "none" || e.key === "__none__" ? !0 : jF.has(H) || Pe.has(H), [H, Pe]), Ie = (e) => {
|
|
21001
20940
|
if (!e.header || H === "none" || e.key === "__none__") {
|
|
21002
20941
|
Ne({ initial: {} });
|
|
21003
20942
|
return;
|
|
@@ -21009,19 +20948,19 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21009
20948
|
}) : Ne({ initial: {} });
|
|
21010
20949
|
};
|
|
21011
20950
|
m.useEffect(() => {
|
|
21012
|
-
if (!
|
|
20951
|
+
if (!B) return;
|
|
21013
20952
|
let e = (e) => {
|
|
21014
20953
|
(e.metaKey || e.ctrlKey) && !e.shiftKey && !e.altKey && e.key.toLowerCase() === "n" && (e.preventDefault(), Ne((e) => e ?? { initial: {} }));
|
|
21015
20954
|
};
|
|
21016
20955
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
21017
|
-
}, [
|
|
21018
|
-
let Le = !!h, Re = e.length > 0, ze = (
|
|
20956
|
+
}, [B]);
|
|
20957
|
+
let Le = !!h, Re = e.length > 0, ze = (se != null || ve.length > 0 || ye || Le) && Re || B, Be = (e, t) => {
|
|
21019
20958
|
let n = je.get(e) ?? -1;
|
|
21020
20959
|
return `${t}::${ne(e, n) ?? `task-${n}`}`;
|
|
21021
20960
|
}, Ve = (e, r) => {
|
|
21022
20961
|
let a = ne(e, je.get(e) ?? -1);
|
|
21023
|
-
return /* @__PURE__ */ O(
|
|
21024
|
-
task:
|
|
20962
|
+
return /* @__PURE__ */ O(oF, {
|
|
20963
|
+
task: PF(e),
|
|
21025
20964
|
editable: t,
|
|
21026
20965
|
statusOnly: n,
|
|
21027
20966
|
hideOwner: i,
|
|
@@ -21054,7 +20993,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21054
20993
|
children: e.tasks.length
|
|
21055
20994
|
})
|
|
21056
20995
|
]
|
|
21057
|
-
}),
|
|
20996
|
+
}), B && Fe(e) && /* @__PURE__ */ O("button", {
|
|
21058
20997
|
type: "button",
|
|
21059
20998
|
"aria-label": "Add task to group",
|
|
21060
20999
|
onClick: () => Ie(e),
|
|
@@ -21093,9 +21032,9 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21093
21032
|
}, [Ae, Te]), Ke = m.useMemo(() => Ge.reduce((e, t, n) => (t.kind === "header" && e.push(n), e), []), [Ge]), qe = m.useRef(0), Je = m.useCallback((e) => {
|
|
21094
21033
|
let t = [...Ke].reverse().find((t) => e.startIndex >= t) ?? -1;
|
|
21095
21034
|
qe.current = t;
|
|
21096
|
-
let n = new Set(
|
|
21035
|
+
let n = new Set(_F(e));
|
|
21097
21036
|
return t >= 0 && n.add(t), [...n].sort((e, t) => e - t);
|
|
21098
|
-
}, [Ke]), Ye =
|
|
21037
|
+
}, [Ke]), Ye = kF({
|
|
21099
21038
|
count: Ge.length,
|
|
21100
21039
|
getScrollElement: () => U.current,
|
|
21101
21040
|
estimateSize: (e) => Ge[e]?.kind === "header" ? 36 : 48,
|
|
@@ -21121,10 +21060,10 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21121
21060
|
className: "flex shrink-0 items-center gap-2 pb-2",
|
|
21122
21061
|
style: { paddingRight: Ue },
|
|
21123
21062
|
children: [
|
|
21124
|
-
Re &&
|
|
21125
|
-
value:
|
|
21126
|
-
onChange: (e) =>
|
|
21127
|
-
placeholder:
|
|
21063
|
+
Re && se && /* @__PURE__ */ O(En, {
|
|
21064
|
+
value: ce,
|
|
21065
|
+
onChange: (e) => le(e.currentTarget.value),
|
|
21066
|
+
placeholder: se.placeholder ?? "Search tasks",
|
|
21128
21067
|
containerClassName: "w-full max-w-xs",
|
|
21129
21068
|
className: "h-8 text-body-sm"
|
|
21130
21069
|
}),
|
|
@@ -21172,7 +21111,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21172
21111
|
}, e.value))
|
|
21173
21112
|
})]
|
|
21174
21113
|
}),
|
|
21175
|
-
|
|
21114
|
+
B && /* @__PURE__ */ k(dg, {
|
|
21176
21115
|
size: "sm",
|
|
21177
21116
|
className: "h-8 shrink-0",
|
|
21178
21117
|
onClick: () => Ne({ initial: {} }),
|
|
@@ -21219,7 +21158,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21219
21158
|
})
|
|
21220
21159
|
})
|
|
21221
21160
|
}),
|
|
21222
|
-
|
|
21161
|
+
B && /* @__PURE__ */ O(uF, {
|
|
21223
21162
|
open: Me !== null,
|
|
21224
21163
|
onOpenChange: (e) => !e && Ne(null),
|
|
21225
21164
|
initialValues: Me?.initial,
|
|
@@ -21235,4 +21174,4 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21235
21174
|
});
|
|
21236
21175
|
}
|
|
21237
21176
|
//#endregion
|
|
21238
|
-
export { hb as AGENT_TINTS, yT as AlertDialog, OT as AlertDialogAction, kT as AlertDialogCancel, CT as AlertDialogContent, DT as AlertDialogDescription, TT as AlertDialogFooter, wT as AlertDialogHeader, ST as AlertDialogOverlay, xT as AlertDialogPortal, ET as AlertDialogTitle, bT as AlertDialogTrigger, PT as AppStatusBadge, Hb as AsyncActionButton, vb as AvatarTextCell, dt as Badge, Zp as Breadcrumb, Bp as BreadcrumbLinkProvider, al as BreadcrumbPrimitive, dg as Button, dA as Calendar, mt as CalendarGrid, vc as Card, Sc as CardContent, xc as CardDescription, yc as CardHeader, bc as CardTitle, f as ChartContainer, l as ChartLegend, d as ChartLegendContent, c as ChartTooltip, i as ChartTooltipContent, Og as Checkbox, Xb as CheckboxGroup, ar as ChoiceCard, or as ChoiceCardGroup, ys as CitationChip, xs as CodeBadge, Ob as CodePillCell, cy as Command, ly as CommandDialog, fy as CommandEmpty, py as CommandGroup, uy as CommandInput, hy as CommandItem, dy as CommandList, my as CommandSeparator, gy as CommandShortcut, AT as ConfirmDialog, Ab as ContentLoadingState, RC as ContextMenu, JC as ContextMenuCheckboxItem, KC as ContextMenuContent, BC as ContextMenuGroup, qC as ContextMenuItem, XC as ContextMenuLabel, VC as ContextMenuPortal, UC as ContextMenuRadioGroup, YC as ContextMenuRadioItem, ZC as ContextMenuSeparator, QC as ContextMenuShortcut, HC as ContextMenuSub, GC as ContextMenuSubContent, WC as ContextMenuSubTrigger, zC as ContextMenuTrigger,
|
|
21177
|
+
export { hb as AGENT_TINTS, yT as AlertDialog, OT as AlertDialogAction, kT as AlertDialogCancel, CT as AlertDialogContent, DT as AlertDialogDescription, TT as AlertDialogFooter, wT as AlertDialogHeader, ST as AlertDialogOverlay, xT as AlertDialogPortal, ET as AlertDialogTitle, bT as AlertDialogTrigger, PT as AppStatusBadge, Hb as AsyncActionButton, vb as AvatarTextCell, dt as Badge, Zp as Breadcrumb, Bp as BreadcrumbLinkProvider, al as BreadcrumbPrimitive, dg as Button, dA as Calendar, mt as CalendarGrid, vc as Card, Sc as CardContent, xc as CardDescription, yc as CardHeader, bc as CardTitle, f as ChartContainer, l as ChartLegend, d as ChartLegendContent, c as ChartTooltip, i as ChartTooltipContent, Og as Checkbox, Xb as CheckboxGroup, ar as ChoiceCard, or as ChoiceCardGroup, ys as CitationChip, xs as CodeBadge, Ob as CodePillCell, cy as Command, ly as CommandDialog, fy as CommandEmpty, py as CommandGroup, uy as CommandInput, hy as CommandItem, dy as CommandList, my as CommandSeparator, gy as CommandShortcut, AT as ConfirmDialog, Ab as ContentLoadingState, RC as ContextMenu, JC as ContextMenuCheckboxItem, KC as ContextMenuContent, BC as ContextMenuGroup, qC as ContextMenuItem, XC as ContextMenuLabel, VC as ContextMenuPortal, UC as ContextMenuRadioGroup, YC as ContextMenuRadioItem, ZC as ContextMenuSeparator, QC as ContextMenuShortcut, HC as ContextMenuSub, GC as ContextMenuSubContent, WC as ContextMenuSubTrigger, zC as ContextMenuTrigger, FP as DEFAULT_COMPLETE_STATUS, IP as DEFAULT_INCOMPLETE_STATUS, CN as DEFAULT_RANGE_PRESETS, RP as DEFAULT_RESOLVED_STATUSES, SN as DEFAULT_SINGLE_PRESETS, LP as DEFAULT_START_STATUS, HP as DEFAULT_STATUS_BOARD_ORDER, PP as DEFAULT_STATUS_OPTIONS, fS as DashboardShell, ib as DataTable, ib as ProDataTable, ib as Table, wN as DateField, Zv as Dialog, iy as DialogBody, ey as DialogClose, ny as DialogContent, sy as DialogDescription, ay as DialogFooter, ry as DialogHeader, ty as DialogOverlay, $v as DialogPortal, oy as DialogTitle, Qv as DialogTrigger, Cp as DropdownMenu, Np as DropdownMenuCheckboxItem, jp as DropdownMenuContent, Tp as DropdownMenuGroup, Mp as DropdownMenuItem, Fp as DropdownMenuLabel, Ep as DropdownMenuPortal, Op as DropdownMenuRadioGroup, Pp as DropdownMenuRadioItem, Ip as DropdownMenuSeparator, Lp as DropdownMenuShortcut, Dp as DropdownMenuSub, Ap as DropdownMenuSubContent, kp as DropdownMenuSubTrigger, wp as DropdownMenuTrigger, TS as EditorPageHeader, ES as EditorPagePane, DS as EditorSection, xS as EditorSideNav, SS as EditorSideNavGroup, CS as EditorSideNavItem, gS as EditorTopBar, yS as EditorTopBarActions, _S as EditorTopBarBackButton, vS as EditorTopBarIdentity, bS as EditorTopBarStatusBadge, Mb as EmptyState, iS as ErrorState, Kt as Field, qt as FieldContent, Xt as FieldDescription, Qt as FieldError, Wt as FieldGroup, Jt as FieldLabel, Ut as FieldLegend, Zt as FieldSeparator, Ht as FieldSet, Yt as FieldTitle, Ub as FileDropzone, Gb as FileDropzoneList, Yb as FilterSelect, jT as FormDialog, Ss as FormField, nw as GenericAvatar, Fb as HeatmapTable, kw as HoverCard, jw as HoverCardContent, Aw as HoverCardTrigger, Pw as InlineTextCell, Tn as Input, zb as KpiTile, Bb as KpiTileGrid, Pt as Label, Sb as LineSparklineCell, Lw as MetricAreaChart, Rb as MetricCard, mS as MetricGrid, vy as MultiSelect, xy as MultiSelectList, uS as PageSkeleton, rS as PageState, Db as PercentCell, o_ as Popover, c_ as PopoverAnchor, l_ as PopoverContent, s_ as PopoverTrigger, se as PortalContainerContext, ue as PortalContainerProvider, cb as ProDataTablePagination, lb as ProDataTableToolbar, wc as ProgressBar, Cb as ProgressBarCell, zA as RadioGroup, BA as RadioGroupItem, kb as RelativeTimeCell, Mt as RequiredMarker, wb as ResultsBarCell, dS as RouteLoading, yb as STATUS_TONES, Eb as ScoreBarCell, bP as ScrollArea, xP as ScrollBar, En as SearchInput, hS as SectionHeader, jb as SectionLoadingState, zx as SegmentedControl, hM as Select, xM as SelectContent, gM as SelectGroup, CM as SelectItem, SM as SelectLabel, bM as SelectScrollDownButton, yM as SelectScrollUpButton, wM as SelectSeparator, vM as SelectTrigger, _M as SelectValue, Vt as Separator, OS as Sheet, AS as SheetClose, PS as SheetContent, RS as SheetDescription, IS as SheetFooter, FS as SheetHeader, MS as SheetOverlay, jS as SheetPortal, LS as SheetTitle, kS as SheetTrigger, Sy as SingleSelectList, Rp as Skeleton, X as SkeletonBlock, Rx as Slider, Pb as SortableHeader, xb as SparklineCell, em as Spinner, bb as StatusDotBadge, ir as Switch, rg as TableBody, cg as TableCaption, sg as TableCell, ig as TableFooter, og as TableHead, ng as TableHeader, lg as TablePrimitive, ag as TableRow, bm as Tabs, Em as TabsContent, wm as TabsList, Tm as TabsTrigger, uF as TaskCreateDialog, NP as TaskFieldChip, IF as TaskList, oF as TaskRow, GP as TaskStatusIndicator, Rw as Textarea, Dm as Toaster, Ds as Toggle, gc as ToggleGroup, _c as ToggleGroupItem, us as Tooltip, ps as TooltipArrow, fs as TooltipContent, ls as TooltipProvider, ds as TooltipTrigger, Vb as TrendBadge, gs as TruncatedText, rw as UserAvatar, Nw as UserChip, ut as badgeVariants, Ib as buildPeriodColumns, Lb as buildTotalColumn, ug as buttonVariants, r as cn, bs as codeBadgeVariants, My as facetFilterMatches, AP as fieldChipText, jP as fieldEditorValue, Kb as formatBytes, ne as formatCompact, z as formatCurrency, te as formatCurrencyPrecise, B as formatDurationMs, ie as formatNumber, re as formatPercent, oe as formatTimestamp, Nb as heatColor, kP as isFieldEditable, ae as pctChange, Tb as scoreBand, OP as showFieldInline, Qp as spinnerVariants, UP as statusBoardRankIn, BP as statusMetaOf, VP as statusSelectOptions, _b as tintForString, Ge as toast, Es as toggleVariants, le as useAppClassName, Oe as useEditableDraft, De as useOptimisticList, ve as useOptimisticResource, je as usePersistentTabValue, ce as usePortalContainer };
|