@versini/sassysaint 8.119.0 → 8.119.2
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/chunks/{AboutChangelog.B3zToB4T.js → AboutChangelog.D2F7IsfA.js} +2 -2
- package/dist/chunks/{AboutEntry.Dc0GMtzL.js → AboutEntry.6St28Lf5.js} +7 -7
- package/dist/chunks/{App.Bcw00dJK.js → App.Dx0i7v1f.js} +16 -16
- package/dist/chunks/{BubbleActions.BcwPpzhU.js → BubbleActions.rlJwcUek.js} +3 -3
- package/dist/chunks/ButtonIconDelete.D1XluRE7.js +512 -0
- package/dist/chunks/{Chart.B0oqrdYo.js → Chart.ClEQYypc.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DAwx85Wd.js → ChatBubbleAssistant.BaNEs-WH.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.BRTLYDmZ.js → ChatBubbleUser.BKQwt_MT.js} +4 -4
- package/dist/chunks/HistoryDataGrid.EVORyJf2.js +479 -0
- package/dist/chunks/{HistoryEntry.4GpBDf9x.js → HistoryEntry.B88FZSWr.js} +5 -5
- package/dist/chunks/{InlineFilter.Cv_LUpTp.js → InlineFilter.BC6p53ao.js} +3 -3
- package/dist/chunks/{LoginEntry.5bQhuYQl.js → LoginEntry.ChP-sVI8.js} +4 -4
- package/dist/chunks/{LogoEntry.CN5P16eA.js → LogoEntry.BX2BbPnz.js} +2 -2
- package/dist/chunks/{MemoriesEntry.D0q1U5FD.js → MemoriesEntry.7VLaTZvU.js} +6 -6
- package/dist/chunks/{ProfileEntry.Ck-5SP70.js → ProfileEntry.DjAWes3a.js} +4 -4
- package/dist/chunks/{SettingsEntry.CfB9DKIp.js → SettingsEntry.o9nEUETW.js} +5 -5
- package/dist/chunks/{UsageEntry.BCFJMOjQ.js → UsageEntry.CRYw7M5Q.js} +5 -5
- package/dist/chunks/{_baseUniq.DRTEXwBu.js → _baseUniq.qYL6t1qv.js} +1 -1
- package/dist/chunks/{arc.x_GRGNuD.js → arc.Cym5wUzu.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.DSfD0nUy.js → architecture-U656AL7Q.DS4pgkMC.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.CAS-oDjc.js → architectureDiagram-VXUJARFQ.BvDQXBtF.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.P_XB2AgQ.js → blockDiagram-VD42YOAC.q0iBwpIB.js} +5 -5
- package/dist/chunks/{browser.oW1ZW8ge.js → browser.B2MccGxb.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.Dc9Vyv3k.js → c4Diagram-YG6GDRKO.TUW7Jr-h.js} +2 -2
- package/dist/chunks/{channel.TjlRRr3U.js → channel.BbbTuklR.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.BwgmyLAX.js → chunk-4BX2VUAB.CeJFN81d.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.Cgq1oeLK.js → chunk-55IACEB6.kkb8e0kJ.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.Ds2wbzEG.js → chunk-B4BG7PRW.BCtv4gxR.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.Bft9jyaz.js → chunk-DI55MBZ5.BRNj1QQD.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.DF-Zr883.js → chunk-FMBD7UC4.DX4dWsGY.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.BVMRH_Hs.js → chunk-QN33PNHL.H_LPM2vF.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.DS306ds1.js → chunk-QZHKN3VN.BMYfiX1a.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.Cl4RUaGp.js → chunk-TZMSLE5B.YB2DMjFF.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.DbFfjSp_.js → classDiagram-2ON5EDUG.BVw5YdVW.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.DbFfjSp_.js → classDiagram-v2-WZHVMYZB.BVw5YdVW.js} +2 -2
- package/dist/chunks/{clone.B8XxgJj0.js → clone.CR4Q6L6w.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.CL-tsB7O.js → cose-bilkent-S5V4N54A.DL75oZVQ.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.7xKesqEK.js → dagre-6UL2VRFP.skxnrW0m.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.D6JNXJQr.js → diagram-PSM6KHXK.CIKSCwqj.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.VaJKE9Ih.js → diagram-QEK2KX5R.CXfUdwio.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.BjCuqhPd.js → diagram-S2PKOQOG.DNP0yPuz.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.BYnxwTG-.js → erDiagram-Q2GNP2WA.DsDL14E8.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.DefWDma3.js → flowDiagram-NV44I4VS.KyT8VEH0.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.BrEeaW2n.js → ganttDiagram-JELNMOA3.BIc6-yIF.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.C4_YWAr0.js → gitGraph-F6HP7TQM.DZQnBw57.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.GGrXKGya.js → gitGraphDiagram-NY62KEGX.dp5Oo2Wm.js} +4 -4
- package/dist/chunks/{graph.BxDrvENy.js → graph.Daj4nkbR.js} +2 -2
- package/dist/chunks/{index.DvThh-C6.js → index.B0nO3wvT.js} +1 -1
- package/dist/chunks/{index.CR0NHbVR.js → index.BbXK13Js.js} +1 -1
- package/dist/chunks/{index.DS9SCH32.js → index.BpBKcgEW.js} +1 -1
- package/dist/chunks/{index.o4ZD5ALX.js → index.C-7h2KOd.js} +2 -2
- package/dist/chunks/{index.DOwjLeiM.js → index.C0ecFrQh.js} +1 -1
- package/dist/chunks/{index.CZRaE0eA.js → index.CFO0VGN_.js} +1 -1
- package/dist/chunks/{index.CsAjUl3G.js → index.CHSGxc4N.js} +3 -3
- package/dist/chunks/{index.BMADibmh.js → index.Cxl91Epa.js} +3 -3
- package/dist/chunks/{index.tqKeN7sl.js → index.Dx1p6vnB.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.E0G9wIVE.js → info-NVLQJR56.B1sH-qdY.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.CY9ADLsc.js → infoDiagram-WHAUD3N6.1AjxKmSb.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.BZHhK7w4.js → journeyDiagram-XKPGCS4Q.BXUWA_H0.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.DQSZD0Em.js → kanban-definition-3W4ZIXB7.DwKUNSwB.js} +2 -2
- package/dist/chunks/{layout.DUh_4gWb.js → layout.BurBG7fo.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.lAJFSSvC.js → mermaid-parser.core.BYpuHuuP.js} +10 -10
- package/dist/chunks/{min.B3NH5ZNz.js → min.BUzVe1CC.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.CVTcq_-S.js → mindmap-definition-VGOIOE7T.CcFtF2ym.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.CaaCaP6S.js → packet-BFZMPI3H.BYUkRp22.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.Ctr5Wngs.js → pie-7BOR55EZ.D9vQx_ny.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.v0K5SYBL.js → pieDiagram-ADFJNKIX.iNvnYxgY.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.CSGhc5R-.js → quadrantDiagram-AYHSOK5B.DUv-EOEE.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.BYJioslS.js → radar-NHE76QYJ.Cr-FgGCd.js} +1 -1
- package/dist/chunks/{rehype-mermaid.CYJb7tO-.js → rehype-mermaid.CNWjRv7t.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.07FdvPam.js → requirementDiagram-UZGBJVZJ.BoczNkNl.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.BJQl-LVq.js → sankeyDiagram-TZEHDZUN.PNrd5uuL.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.D3HP-wCt.js → sequenceDiagram-WL72ISMW.K8gyhsmA.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.uXuYKEnS.js → stateDiagram-FKZM4ZOC.lVblIqCD.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.i7NR_lBC.js → stateDiagram-v2-4FDKWEC3.ChcG_M0g.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.CfrxZtW7.js → timeline-definition-IT6M3QCI.i6kfP-GH.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.D0E-EXib.js → treemap-KMMF4GRG.E6EpEM17.js} +1 -1
- package/dist/chunks/{useMarkdown.CVmi3L7b.js → useMarkdown.JIM6TAXs.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.BedGeb-X.js → xychartDiagram-PRI3JC2R.wqxzlkjJ.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +4 -4
- package/dist/chunks/ButtonIconDelete.CASHORv6.js +0 -523
- package/dist/chunks/HistoryDataGrid.Bg984Jd_.js +0 -465
|
@@ -1,523 +0,0 @@
|
|
|
1
|
-
import c from "clsx";
|
|
2
|
-
import re, { createContext as se, useContext as ae, useLayoutEffect as q, useState as w, useCallback as I, useMemo as W, useId as ne, useRef as oe, useEffect as $ } from "react";
|
|
3
|
-
import { jsx as o, jsxs as D, Fragment as le } from "react/jsx-runtime";
|
|
4
|
-
import { CellWrapper as m, BlurEffects as R, ButtonIcon as P, IconSortUp as ie, IconSortDown as de, IconSort as ce, IconDelete as ue } from "./LogoEntry.CN5P16eA.js";
|
|
5
|
-
import { ResponsiveTooltip as ge } from "./App.Bcw00dJK.js";
|
|
6
|
-
const C = se({
|
|
7
|
-
mode: "system"
|
|
8
|
-
});
|
|
9
|
-
function Fe(e, r) {
|
|
10
|
-
return e ? c("contents", r) : c("flex flex-col", r);
|
|
11
|
-
}
|
|
12
|
-
function ze(e, r) {
|
|
13
|
-
const s = ae(C);
|
|
14
|
-
q(() => {
|
|
15
|
-
const a = e.current, t = s.columns && (s.stickyHeader || s.stickyFooter);
|
|
16
|
-
if (!a || !t || !s.setMeasuredColumnWidths)
|
|
17
|
-
return;
|
|
18
|
-
const n = a.querySelector('[role="row"]');
|
|
19
|
-
if (!n)
|
|
20
|
-
return;
|
|
21
|
-
const l = n.querySelectorAll('[role="cell"], [role="columnheader"], [role="gridcell"]');
|
|
22
|
-
if (l.length === 0)
|
|
23
|
-
return;
|
|
24
|
-
const d = () => {
|
|
25
|
-
const g = Array.from(l).map((i) => i.getBoundingClientRect().width);
|
|
26
|
-
s.setMeasuredColumnWidths?.(g);
|
|
27
|
-
};
|
|
28
|
-
d();
|
|
29
|
-
const u = new ResizeObserver(() => {
|
|
30
|
-
d();
|
|
31
|
-
});
|
|
32
|
-
u.observe(a);
|
|
33
|
-
for (const g of l)
|
|
34
|
-
u.observe(g);
|
|
35
|
-
return () => u.disconnect();
|
|
36
|
-
}, [
|
|
37
|
-
s.columns,
|
|
38
|
-
s.stickyHeader,
|
|
39
|
-
s.stickyFooter,
|
|
40
|
-
s.setMeasuredColumnWidths,
|
|
41
|
-
r
|
|
42
|
-
]);
|
|
43
|
-
}
|
|
44
|
-
const F = ({ mode: e }) => c({
|
|
45
|
-
"text-copy-light": e === "dark",
|
|
46
|
-
"text-copy-dark": e === "light",
|
|
47
|
-
"text-copy-light dark:text-copy-dark": e === "system",
|
|
48
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
49
|
-
}), be = ({ mode: e }) => c({
|
|
50
|
-
"bg-surface-darker": e === "dark" || e === "system",
|
|
51
|
-
"bg-surface-light": e === "light" || e === "alt-system",
|
|
52
|
-
"dark:bg-surface-light": e === "system",
|
|
53
|
-
"dark:bg-surface-darker": e === "alt-system"
|
|
54
|
-
}), V = ({ mode: e, hasBlur: r, sticky: s }) => c({
|
|
55
|
-
// Semi-transparent for blur effect.
|
|
56
|
-
"bg-surface-darkest/50": r && s && (e === "dark" || e === "system"),
|
|
57
|
-
"bg-surface-light/50": r && s && (e === "light" || e === "alt-system"),
|
|
58
|
-
"dark:bg-surface-light/50": r && s && e === "system",
|
|
59
|
-
"dark:bg-surface-darkest/50": r && s && e === "alt-system",
|
|
60
|
-
// Solid backgrounds.
|
|
61
|
-
"bg-surface-darkest": !r && (e === "dark" || e === "system"),
|
|
62
|
-
"bg-surface-light": !r && (e === "light" || e === "alt-system"),
|
|
63
|
-
"dark:bg-surface-light": !r && e === "system",
|
|
64
|
-
"dark:bg-surface-darkest": !r && e === "alt-system"
|
|
65
|
-
}), fe = ({ mode: e }) => c({
|
|
66
|
-
"border-table-dark": e === "dark" || e === "system",
|
|
67
|
-
"border-table-light": e === "light" || e === "alt-system",
|
|
68
|
-
"dark:border-table-light": e === "system",
|
|
69
|
-
"dark:border-table-dark": e === "alt-system"
|
|
70
|
-
}), he = ({ blurEffect: e }) => c({
|
|
71
|
-
"backdrop-blur-sm": e === R.SMALL,
|
|
72
|
-
"backdrop-blur-md": e === R.MEDIUM,
|
|
73
|
-
"backdrop-blur-lg": e === R.LARGE
|
|
74
|
-
}), ye = ({ mode: e }) => c("size-8", "align-[-0.125em]", "border-4", "inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]", {
|
|
75
|
-
"text-copy-dark": e === "light",
|
|
76
|
-
"text-copy-light": e === "dark",
|
|
77
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system",
|
|
78
|
-
"text-copy-light dark:text-copy-dark": e === "system"
|
|
79
|
-
}), pe = ({ mode: e }) => ({
|
|
80
|
-
inner: "relative",
|
|
81
|
-
overlay: c("absolute inset-0 z-20 cursor-not-allowed", "backdrop-blur-xs bg-white/30 dark:bg-black/30"),
|
|
82
|
-
spinnerWrapper: c("absolute z-30 top-0 left-0 right-0 h-[min(100%,100vh)]", "flex items-center justify-center", "pointer-events-none"),
|
|
83
|
-
spinner: ye({
|
|
84
|
-
mode: e
|
|
85
|
-
})
|
|
86
|
-
}), ke = ({ mode: e, className: r, wrapperClassName: s, stickyHeader: a, stickyFooter: t, disabled: n, hasColumns: l }) => {
|
|
87
|
-
const d = n ? pe({
|
|
88
|
-
mode: e
|
|
89
|
-
}) : null, u = a || t;
|
|
90
|
-
return {
|
|
91
|
-
overlay: d?.overlay ?? "",
|
|
92
|
-
inner: d?.inner ?? "",
|
|
93
|
-
spinnerWrapper: d?.spinnerWrapper ?? "",
|
|
94
|
-
spinner: d?.spinner ?? "",
|
|
95
|
-
wrapper: c("not-prose relative w-full rounded-lg shadow-md", {
|
|
96
|
-
"overflow-x-auto": !u && !n,
|
|
97
|
-
"overflow-hidden flex flex-col": u || n
|
|
98
|
-
}, be({
|
|
99
|
-
mode: e
|
|
100
|
-
}), F({
|
|
101
|
-
mode: e
|
|
102
|
-
}), s),
|
|
103
|
-
scrollableContent: c("overflow-y-auto overflow-x-hidden rounded-[inherit] flex-1 min-h-0"),
|
|
104
|
-
grid: c("my-0 w-full text-left text-sm", l ? "grid" : "flex flex-col", r, F({
|
|
105
|
-
mode: e
|
|
106
|
-
}))
|
|
107
|
-
};
|
|
108
|
-
}, ve = ({ className: e, stickyHeader: r, mode: s, blurEffect: a, hasColumns: t }) => {
|
|
109
|
-
const n = !!(a && a !== R.NONE);
|
|
110
|
-
return t && !r ? c("contents", V({
|
|
111
|
-
mode: s,
|
|
112
|
-
hasBlur: n,
|
|
113
|
-
sticky: !!r
|
|
114
|
-
}), F({
|
|
115
|
-
mode: s
|
|
116
|
-
}), e) : c("flex flex-col", {
|
|
117
|
-
"absolute left-0 right-0 z-20 top-0 rounded-t-lg": r
|
|
118
|
-
}, V({
|
|
119
|
-
mode: s,
|
|
120
|
-
hasBlur: n,
|
|
121
|
-
sticky: !!r
|
|
122
|
-
}), F({
|
|
123
|
-
mode: s
|
|
124
|
-
}), r && he({
|
|
125
|
-
blurEffect: a
|
|
126
|
-
}), e);
|
|
127
|
-
}, me = ({ captionClassName: e, hasColumns: r }) => c("py-2 text-sm text-center font-bold", r && "col-span-full", e), Ce = ({ mode: e, className: r, cellWrapper: s }) => {
|
|
128
|
-
const a = "group grid items-center";
|
|
129
|
-
return s === m.HEADER || s === m.FOOTER ? c(a, r) : c(a, "border-b last:border-0", fe({
|
|
130
|
-
mode: e
|
|
131
|
-
}), {
|
|
132
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": e === "dark",
|
|
133
|
-
"hover:bg-table-dark-hover": e === "dark",
|
|
134
|
-
"odd:bg-table-light-odd even:bg-table-light-even": e === "light",
|
|
135
|
-
"hover:bg-table-light-hover": e === "light",
|
|
136
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": e === "system",
|
|
137
|
-
"hover:bg-table-dark-hover dark:hover:bg-table-light-hover": e === "system",
|
|
138
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": e === "alt-system",
|
|
139
|
-
"hover:bg-table-light-hover dark:hover:bg-table-dark-hover": e === "alt-system"
|
|
140
|
-
}, r);
|
|
141
|
-
}, U = ({ cellWrapper: e, className: r, compact: s, align: a, mode: t, borderLeft: n, borderRight: l }) => {
|
|
142
|
-
const d = e === m.HEADER;
|
|
143
|
-
return c(
|
|
144
|
-
// Base padding.
|
|
145
|
-
{
|
|
146
|
-
"px-2 py-1": s,
|
|
147
|
-
"px-4 py-3": !s
|
|
148
|
-
},
|
|
149
|
-
// Text alignment.
|
|
150
|
-
{
|
|
151
|
-
"text-left justify-start": a === "left" || !a,
|
|
152
|
-
"text-center justify-center": a === "center",
|
|
153
|
-
"text-right justify-end": a === "right"
|
|
154
|
-
},
|
|
155
|
-
// Header/footer specific styles.
|
|
156
|
-
{
|
|
157
|
-
"font-semibold": d
|
|
158
|
-
},
|
|
159
|
-
// Active row indicator.
|
|
160
|
-
"first:group-data-[active]:relative",
|
|
161
|
-
"first:group-data-[active]:before:absolute first:group-data-[active]:before:left-0 first:group-data-[active]:before:top-0 first:group-data-[active]:before:bottom-0 first:group-data-[active]:before:w-1",
|
|
162
|
-
"first:group-data-[active]:self-stretch first:group-data-[active]:flex first:group-data-[active]:items-center",
|
|
163
|
-
// Active indicator color based on theme mode.
|
|
164
|
-
{
|
|
165
|
-
"first:group-data-[active]:before:bg-table-active-dark": t === "dark",
|
|
166
|
-
"first:group-data-[active]:before:bg-table-active-light": t === "light",
|
|
167
|
-
"first:group-data-[active]:before:bg-table-active-dark dark:first:group-data-[active]:before:bg-table-active-light": t === "system",
|
|
168
|
-
"first:group-data-[active]:before:bg-table-active-light dark:first:group-data-[active]:before:bg-table-active-dark": t === "alt-system"
|
|
169
|
-
},
|
|
170
|
-
// Vertical borders.
|
|
171
|
-
{
|
|
172
|
-
"self-stretch flex items-center": n || l,
|
|
173
|
-
"border-l border-l-table-dark": n && t === "dark",
|
|
174
|
-
"border-l border-l-table-light": n && t === "light",
|
|
175
|
-
"border-l border-l-table-dark dark:border-l-table-light": n && t === "system",
|
|
176
|
-
"border-l border-l-table-light dark:border-l-table-dark": n && t === "alt-system",
|
|
177
|
-
"border-r border-r-table-dark": l && t === "dark",
|
|
178
|
-
"border-r border-r-table-light": l && t === "light",
|
|
179
|
-
"border-r border-r-table-dark dark:border-r-table-light": l && t === "system",
|
|
180
|
-
"border-r border-r-table-light dark:border-r-table-dark": l && t === "alt-system"
|
|
181
|
-
},
|
|
182
|
-
r
|
|
183
|
-
);
|
|
184
|
-
}, xe = (e) => e === m.HEADER ? "columnheader" : "gridcell";
|
|
185
|
-
const Be = ({ className: e, wrapperClassName: r, children: s, mode: a = "system", compact: t = !1, stickyHeader: n = !1, stickyFooter: l = !1, blurEffect: d = R.NONE, maxHeight: u, disabled: g = !1, columns: i, ...f }) => {
|
|
186
|
-
const [b, p] = w(0), [N, h] = w(0), [x, k] = w(0), [z, B] = w(0), [E, L] = w([]), M = I(() => p((y) => y + 1), []), j = I(() => p((y) => y - 1), []), A = I(() => h((y) => y + 1), []), G = I(() => h((y) => y - 1), []), J = b > 0, K = N > 0, H = n && J, S = l && K, [Q, X] = w(void 0), T = I((y) => {
|
|
187
|
-
X(y);
|
|
188
|
-
}, []), v = W(() => ke({
|
|
189
|
-
mode: a,
|
|
190
|
-
className: e,
|
|
191
|
-
wrapperClassName: r,
|
|
192
|
-
stickyHeader: H,
|
|
193
|
-
stickyFooter: S,
|
|
194
|
-
disabled: g,
|
|
195
|
-
hasColumns: !!i
|
|
196
|
-
}), [
|
|
197
|
-
a,
|
|
198
|
-
e,
|
|
199
|
-
r,
|
|
200
|
-
H,
|
|
201
|
-
S,
|
|
202
|
-
g,
|
|
203
|
-
i
|
|
204
|
-
]), Y = W(() => ({
|
|
205
|
-
mode: a,
|
|
206
|
-
compact: t,
|
|
207
|
-
stickyHeader: H,
|
|
208
|
-
stickyFooter: S,
|
|
209
|
-
blurEffect: d,
|
|
210
|
-
columns: i,
|
|
211
|
-
measuredColumnWidths: E,
|
|
212
|
-
setCaptionId: T,
|
|
213
|
-
registerHeader: M,
|
|
214
|
-
unregisterHeader: j,
|
|
215
|
-
registerFooter: A,
|
|
216
|
-
unregisterFooter: G,
|
|
217
|
-
setHeaderHeight: k,
|
|
218
|
-
setFooterHeight: B,
|
|
219
|
-
setMeasuredColumnWidths: L
|
|
220
|
-
}), [
|
|
221
|
-
a,
|
|
222
|
-
t,
|
|
223
|
-
H,
|
|
224
|
-
S,
|
|
225
|
-
d,
|
|
226
|
-
i,
|
|
227
|
-
E,
|
|
228
|
-
T,
|
|
229
|
-
M,
|
|
230
|
-
j,
|
|
231
|
-
A,
|
|
232
|
-
G
|
|
233
|
-
]), O = u ? {
|
|
234
|
-
maxHeight: typeof u == "number" ? `${u}px` : u
|
|
235
|
-
} : void 0, Z = {
|
|
236
|
-
...O,
|
|
237
|
-
paddingTop: H ? x : void 0,
|
|
238
|
-
paddingBottom: S ? z : void 0
|
|
239
|
-
}, ee = H || S, te = i ? {
|
|
240
|
-
gridTemplateColumns: i.join(" ")
|
|
241
|
-
} : void 0, _ = /* @__PURE__ */ o("div", {
|
|
242
|
-
role: "grid",
|
|
243
|
-
"aria-labelledby": Q,
|
|
244
|
-
className: v.grid,
|
|
245
|
-
style: te,
|
|
246
|
-
...f,
|
|
247
|
-
children: s
|
|
248
|
-
});
|
|
249
|
-
return /* @__PURE__ */ o(C.Provider, {
|
|
250
|
-
value: Y,
|
|
251
|
-
children: /* @__PURE__ */ D("div", {
|
|
252
|
-
className: v.inner,
|
|
253
|
-
children: [
|
|
254
|
-
g && /* @__PURE__ */ D(le, {
|
|
255
|
-
children: [
|
|
256
|
-
/* @__PURE__ */ o("div", {
|
|
257
|
-
className: v.overlay,
|
|
258
|
-
"aria-hidden": "true"
|
|
259
|
-
}),
|
|
260
|
-
/* @__PURE__ */ o("div", {
|
|
261
|
-
className: v.spinnerWrapper,
|
|
262
|
-
children: /* @__PURE__ */ o("div", {
|
|
263
|
-
className: v.spinner,
|
|
264
|
-
role: "status",
|
|
265
|
-
children: /* @__PURE__ */ o("span", {
|
|
266
|
-
className: "sr-only",
|
|
267
|
-
children: "Loading..."
|
|
268
|
-
})
|
|
269
|
-
})
|
|
270
|
-
})
|
|
271
|
-
]
|
|
272
|
-
}),
|
|
273
|
-
/* @__PURE__ */ o("div", {
|
|
274
|
-
className: v.wrapper,
|
|
275
|
-
style: O,
|
|
276
|
-
children: ee ? /* @__PURE__ */ o("div", {
|
|
277
|
-
className: v.scrollableContent,
|
|
278
|
-
style: Z,
|
|
279
|
-
children: _
|
|
280
|
-
}) : _
|
|
281
|
-
})
|
|
282
|
-
]
|
|
283
|
-
})
|
|
284
|
-
});
|
|
285
|
-
};
|
|
286
|
-
const Me = ({ className: e, children: r, align: s, borderLeft: a, borderRight: t, colSpan: n, style: l, ...d }) => /* @__PURE__ */ o(C.Consumer, {
|
|
287
|
-
children: ({ mode: u, compact: g, cellWrapper: i }) => {
|
|
288
|
-
const f = U({
|
|
289
|
-
cellWrapper: i,
|
|
290
|
-
className: e,
|
|
291
|
-
mode: u,
|
|
292
|
-
compact: g,
|
|
293
|
-
align: s,
|
|
294
|
-
borderLeft: a,
|
|
295
|
-
borderRight: t
|
|
296
|
-
}), b = xe(i), p = n && n > 1 ? {
|
|
297
|
-
...l,
|
|
298
|
-
gridColumn: `span ${n}`
|
|
299
|
-
} : l;
|
|
300
|
-
return /* @__PURE__ */ o("div", {
|
|
301
|
-
role: b,
|
|
302
|
-
className: f,
|
|
303
|
-
style: p,
|
|
304
|
-
...d,
|
|
305
|
-
children: r
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
function He({ children: e, mode: r = "system", className: s, active: a = !1, ref: t, ...n }) {
|
|
310
|
-
const l = a ? c("relative", "focus-within:static", "focus-within:after:border-transparent", "after:absolute", "after:content-['']", "after:border-b-2", "after:-bottom-1", "after:left-0", "after:right-0", {
|
|
311
|
-
"after:border-table-light": r === "dark",
|
|
312
|
-
"after:border-table-dark": r === "light",
|
|
313
|
-
"after:border-table-light dark:after:border-table-dark": r === "system",
|
|
314
|
-
"after:border-table-dark dark:after:border-table-light": r === "alt-system"
|
|
315
|
-
}) : "";
|
|
316
|
-
return /* @__PURE__ */ o("div", {
|
|
317
|
-
className: l,
|
|
318
|
-
children: /* @__PURE__ */ o(P, {
|
|
319
|
-
className: s,
|
|
320
|
-
ref: t,
|
|
321
|
-
mode: r,
|
|
322
|
-
radius: "small",
|
|
323
|
-
size: "small",
|
|
324
|
-
align: "center",
|
|
325
|
-
...n,
|
|
326
|
-
children: e
|
|
327
|
-
})
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
const je = ({ className: e, children: r, cellId: s, onSort: a, sortDirection: t, sortedCell: n, slotLeft: l, slotRight: d, buttonClassName: u, focusMode: g = "alt-system", align: i, ...f }) => {
|
|
331
|
-
const b = n === s, p = () => {
|
|
332
|
-
a && a(s, b && t ? t : void 0);
|
|
333
|
-
}, N = () => b && t === "asc" ? /* @__PURE__ */ o(ie, {
|
|
334
|
-
className: "size-4",
|
|
335
|
-
monotone: !0
|
|
336
|
-
}) : b && t === "desc" ? /* @__PURE__ */ o(de, {
|
|
337
|
-
className: "size-4",
|
|
338
|
-
monotone: !0
|
|
339
|
-
}) : /* @__PURE__ */ o(ce, {
|
|
340
|
-
className: "size-4",
|
|
341
|
-
monotone: !0
|
|
342
|
-
}), h = () => b && t === "asc" ? "ascending" : b && t === "desc" ? "descending" : "other";
|
|
343
|
-
return /* @__PURE__ */ o(C.Consumer, {
|
|
344
|
-
children: ({ mode: x, compact: k, cellWrapper: z }) => {
|
|
345
|
-
const B = U({
|
|
346
|
-
cellWrapper: z,
|
|
347
|
-
className: e,
|
|
348
|
-
mode: x,
|
|
349
|
-
compact: k,
|
|
350
|
-
align: i
|
|
351
|
-
}), E = c("flex", {
|
|
352
|
-
"justify-start": i === "left" || !i,
|
|
353
|
-
"justify-center": i === "center",
|
|
354
|
-
"justify-end": i === "right"
|
|
355
|
-
});
|
|
356
|
-
return /* @__PURE__ */ o("div", {
|
|
357
|
-
className: B,
|
|
358
|
-
role: "columnheader",
|
|
359
|
-
"aria-sort": h(),
|
|
360
|
-
...f,
|
|
361
|
-
children: /* @__PURE__ */ D("div", {
|
|
362
|
-
className: E,
|
|
363
|
-
children: [
|
|
364
|
-
l,
|
|
365
|
-
/* @__PURE__ */ o(He, {
|
|
366
|
-
active: b,
|
|
367
|
-
className: u,
|
|
368
|
-
onClick: p,
|
|
369
|
-
noBorder: !0,
|
|
370
|
-
focusMode: g,
|
|
371
|
-
mode: x,
|
|
372
|
-
labelRight: r,
|
|
373
|
-
children: N()
|
|
374
|
-
}),
|
|
375
|
-
d
|
|
376
|
-
]
|
|
377
|
-
})
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
};
|
|
382
|
-
const Se = ({ caption: e, captionClassName: r, className: s, children: a, ...t }) => {
|
|
383
|
-
const n = ne();
|
|
384
|
-
return /* @__PURE__ */ o(C.Consumer, {
|
|
385
|
-
children: (l) => /* @__PURE__ */ o(we, {
|
|
386
|
-
caption: e,
|
|
387
|
-
captionClassName: r,
|
|
388
|
-
captionId: n,
|
|
389
|
-
className: s,
|
|
390
|
-
ctx: l,
|
|
391
|
-
...t,
|
|
392
|
-
children: a
|
|
393
|
-
})
|
|
394
|
-
});
|
|
395
|
-
};
|
|
396
|
-
Se.displayName = "DataGridHeader";
|
|
397
|
-
const we = ({ caption: e, captionClassName: r, captionId: s, className: a, ctx: t, children: n, ...l }) => {
|
|
398
|
-
const d = !!t.columns, u = oe(null);
|
|
399
|
-
return $(() => (t.registerHeader?.(), () => {
|
|
400
|
-
t.unregisterHeader?.();
|
|
401
|
-
}), [
|
|
402
|
-
t.registerHeader,
|
|
403
|
-
t.unregisterHeader
|
|
404
|
-
]), $(() => (e && t.setCaptionId && t.setCaptionId(s), () => {
|
|
405
|
-
t.setCaptionId && t.setCaptionId(void 0);
|
|
406
|
-
}), [
|
|
407
|
-
e,
|
|
408
|
-
s,
|
|
409
|
-
t.setCaptionId
|
|
410
|
-
]), q(() => {
|
|
411
|
-
const g = u.current;
|
|
412
|
-
if (!g || !t.stickyHeader || !t.setHeaderHeight)
|
|
413
|
-
return;
|
|
414
|
-
const i = new ResizeObserver((f) => {
|
|
415
|
-
const b = f[0]?.borderBoxSize?.[0]?.blockSize;
|
|
416
|
-
b !== void 0 && t.setHeaderHeight?.(b);
|
|
417
|
-
});
|
|
418
|
-
return i.observe(g), () => i.disconnect();
|
|
419
|
-
}, [
|
|
420
|
-
t.stickyHeader,
|
|
421
|
-
t.setHeaderHeight
|
|
422
|
-
]), /* @__PURE__ */ o(C.Provider, {
|
|
423
|
-
value: {
|
|
424
|
-
...t,
|
|
425
|
-
cellWrapper: m.HEADER
|
|
426
|
-
},
|
|
427
|
-
children: /* @__PURE__ */ D("div", {
|
|
428
|
-
ref: u,
|
|
429
|
-
role: "rowgroup",
|
|
430
|
-
className: ve({
|
|
431
|
-
className: a,
|
|
432
|
-
stickyHeader: t.stickyHeader,
|
|
433
|
-
mode: t.mode,
|
|
434
|
-
blurEffect: t.blurEffect,
|
|
435
|
-
hasColumns: d
|
|
436
|
-
}),
|
|
437
|
-
...l,
|
|
438
|
-
children: [
|
|
439
|
-
e && /* @__PURE__ */ o("div", {
|
|
440
|
-
id: s,
|
|
441
|
-
className: me({
|
|
442
|
-
captionClassName: r,
|
|
443
|
-
hasColumns: d
|
|
444
|
-
}),
|
|
445
|
-
children: e
|
|
446
|
-
}),
|
|
447
|
-
n
|
|
448
|
-
]
|
|
449
|
-
})
|
|
450
|
-
});
|
|
451
|
-
};
|
|
452
|
-
const Ae = ({ className: e, children: r, active: s, style: a, ...t }) => {
|
|
453
|
-
const n = re.Children.count(r);
|
|
454
|
-
return /* @__PURE__ */ o(C.Consumer, {
|
|
455
|
-
children: ({ mode: l, cellWrapper: d, stickyHeader: u, stickyFooter: g, columns: i, measuredColumnWidths: f }) => {
|
|
456
|
-
const b = d === m.HEADER && u, p = d === m.FOOTER && g, N = b || p;
|
|
457
|
-
let h;
|
|
458
|
-
return i ? N ? f && f.length === i.length && f.some((k) => k > 0) ? h = {
|
|
459
|
-
gridTemplateColumns: f.map((k) => `${k}px`).join(" ")
|
|
460
|
-
} : h = {
|
|
461
|
-
gridTemplateColumns: i.join(" ")
|
|
462
|
-
} : h = {
|
|
463
|
-
gridColumn: "1 / -1",
|
|
464
|
-
gridTemplateColumns: "subgrid"
|
|
465
|
-
} : h = {
|
|
466
|
-
gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))`
|
|
467
|
-
}, /* @__PURE__ */ o("div", {
|
|
468
|
-
role: "row",
|
|
469
|
-
className: Ce({
|
|
470
|
-
mode: l,
|
|
471
|
-
className: e,
|
|
472
|
-
cellWrapper: d
|
|
473
|
-
}),
|
|
474
|
-
style: {
|
|
475
|
-
...h,
|
|
476
|
-
...a
|
|
477
|
-
},
|
|
478
|
-
"data-active": s || void 0,
|
|
479
|
-
...t,
|
|
480
|
-
children: r
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
}, Ge = ({
|
|
485
|
-
label: e,
|
|
486
|
-
disabled: r,
|
|
487
|
-
onClick: s
|
|
488
|
-
}) => /* @__PURE__ */ o(
|
|
489
|
-
ge,
|
|
490
|
-
{
|
|
491
|
-
label: e,
|
|
492
|
-
placement: "top",
|
|
493
|
-
trigger: /* @__PURE__ */ o(
|
|
494
|
-
P,
|
|
495
|
-
{
|
|
496
|
-
noBorder: !0,
|
|
497
|
-
variant: "primary",
|
|
498
|
-
label: e,
|
|
499
|
-
disabled: r,
|
|
500
|
-
onClick: s,
|
|
501
|
-
children: /* @__PURE__ */ o(
|
|
502
|
-
ue,
|
|
503
|
-
{
|
|
504
|
-
size: "size-3",
|
|
505
|
-
monotone: !0,
|
|
506
|
-
className: "text-copy-error-dark dark:text-copy-error-light"
|
|
507
|
-
}
|
|
508
|
-
)
|
|
509
|
-
}
|
|
510
|
-
)
|
|
511
|
-
}
|
|
512
|
-
);
|
|
513
|
-
export {
|
|
514
|
-
Ge as ButtonIconDelete,
|
|
515
|
-
Be as DataGrid,
|
|
516
|
-
Me as DataGridCell,
|
|
517
|
-
je as DataGridCellSort,
|
|
518
|
-
C as DataGridContext,
|
|
519
|
-
Se as DataGridHeader,
|
|
520
|
-
Ae as DataGridRow,
|
|
521
|
-
Fe as getBodyClass,
|
|
522
|
-
ze as useColumnMeasurement
|
|
523
|
-
};
|