@trinityui/design-system 2.1.4 → 2.2.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/CHANGELOG.md +187 -1
- package/MIGRATION.md +118 -0
- package/README.md +56 -2
- package/dist/Legend.js +873 -868
- package/dist/app-shell.js +5705 -5757
- package/dist/charts.js +2399 -2407
- package/dist/components/AI/AIActions.d.ts +3 -3
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +1 -1
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +63 -188
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +195 -0
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -0
- package/dist/components/AI/AIChainOfThought.utils.d.ts +20 -0
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -0
- package/dist/components/AI/AIChat.d.ts +5 -5
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIContainer.d.ts +3 -3
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +1 -1
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AILabel.d.ts +1 -1
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +15 -2
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIRelatedQuestions.d.ts +1 -1
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +33 -26
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AISources.d.ts +2 -2
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +2 -2
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +59 -19
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AIVisuals.d.ts +4 -4
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +2 -2
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/ChatHeader.d.ts +1 -1
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +21 -1
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InsightEngine.d.ts +29 -1
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/QueryInput.d.ts +1 -1
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +1 -1
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +1 -1
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/tokens.d.ts +120 -10
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +1 -1
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts +3 -2
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +45 -1
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +10 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +57 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +26 -1
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +6 -8
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/CustomTooltip.d.ts +4 -3
- package/dist/components/Charts/CustomTooltip.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts +2 -2
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +7 -1
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +10 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/Cron/Cron.d.ts +1 -1
- package/dist/components/Cron/Cron.d.ts.map +1 -1
- package/dist/components/DataCard/DataCard.d.ts +1 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DiffViewer/DiffViewer.d.ts +1 -1
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/DockLayout/DockLayout.d.ts +1 -1
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +42 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/Footer.d.ts +17 -2
- package/dist/components/Footer.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
- package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts +1 -1
- package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts.map +1 -1
- package/dist/components/IllustratedMessage.d.ts +2 -2
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/MentionsInput/MentionsInput.d.ts +1 -1
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/NestedMenu/NestedMenu.d.ts +6 -0
- package/dist/components/NestedMenu/NestedMenu.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +7 -3
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +23 -5
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +1 -1
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +1 -1
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +7 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +51 -7
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/SplitPane/index.d.ts +1 -1
- package/dist/components/SplitPane/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +1 -1
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +14 -2
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +34 -4
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +1 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +1 -1
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/navigation/components.d.ts +5 -5
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/NavBar.styles.d.ts +65 -0
- package/dist/components/shared/NavBar.styles.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +82 -0
- package/dist/components/shared/useResizable.d.ts.map +1 -0
- package/dist/components/shared/warnDeprecated.d.ts +30 -0
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -0
- package/dist/components/templates/Dashboard/DashboardTemplate.d.ts +1 -1
- package/dist/components/templates/Dashboard/DashboardTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/data.js +116 -114
- package/dist/essentials.js +91 -89
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +356 -46564
- package/dist/index.d.ts +44 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26935 -26522
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +42 -42
- package/dist/tokens.d.ts +16 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +1 -1
- package/dist/trinity.css +864 -1025
- package/package.json +14 -9
- package/dist/assets/design-system.css +0 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +0 -39
- package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +0 -1
- package/dist/components/RichTextEditor/index.d.ts +0 -3
- package/dist/components/RichTextEditor/index.d.ts.map +0 -1
package/dist/essentials.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { brandColors as
|
|
2
|
-
import { a as
|
|
3
|
-
import { C as
|
|
4
|
-
import { D as
|
|
5
|
-
import { jsxs as k, jsx as t, Fragment as
|
|
6
|
-
import { useState as y, useCallback as b, useMemo as
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import { visuallyHidden as
|
|
9
|
-
import { F as
|
|
1
|
+
import { brandColors as Ae, darkTheme as De, lightTheme as _e, useTrinityTokens as we } from "./theme.js";
|
|
2
|
+
import { a as Fe, s as Oe } from "./app-shell.js";
|
|
3
|
+
import { C as We, I as Be, M as He, S as Le, a as Me, c as Ne, T as $e, u as qe, b as Ee } from "./Legend.js";
|
|
4
|
+
import { D as ze } from "./data.js";
|
|
5
|
+
import { jsxs as k, jsx as t, Fragment as ne } from "react/jsx-runtime";
|
|
6
|
+
import ie, { useState as y, useCallback as b, useMemo as F } from "react";
|
|
7
|
+
import { useTheme as de, Paper as oe, TableContainer as se, Table as le, TableHead as ce, TableRow as C, TableCell as p, Checkbox as O, alpha as A, TableSortLabel as he, Box as pe, TableBody as ge, TablePagination as ue, Skeleton as V, Typography as fe } from "@mui/material";
|
|
8
|
+
import { visuallyHidden as me } from "@mui/utils";
|
|
9
|
+
import { F as Je } from "./forms.js";
|
|
10
10
|
function D(r, n) {
|
|
11
11
|
return n.split(".").reduce((a, i) => {
|
|
12
12
|
if (a && typeof a == "object" && i in a)
|
|
13
13
|
return a[i];
|
|
14
14
|
}, r);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function W(r, n, a) {
|
|
17
17
|
const i = D(r, a), d = D(n, a);
|
|
18
18
|
return d == null ? -1 : i == null ? 1 : d < i ? -1 : d > i ? 1 : 0;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return r === "desc" ? (a, i) =>
|
|
20
|
+
function be(r, n) {
|
|
21
|
+
return r === "desc" ? (a, i) => W(a, i, n) : (a, i) => -W(a, i, n);
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const ke = ({ columns: r, rows: n, hasCheckbox: a }) => {
|
|
24
24
|
const i = [60, 80, 70, 90, 75, 85, 65, 95];
|
|
25
|
-
return /* @__PURE__ */ t(
|
|
26
|
-
a && /* @__PURE__ */ t(p, { padding: "checkbox", children: /* @__PURE__ */ t(
|
|
27
|
-
Array.from({ length: r }).map((
|
|
28
|
-
|
|
25
|
+
return /* @__PURE__ */ t(ne, { children: Array.from({ length: n }).map((d, g) => /* @__PURE__ */ k(C, { children: [
|
|
26
|
+
a && /* @__PURE__ */ t(p, { padding: "checkbox", children: /* @__PURE__ */ t(V, { variant: "rectangular", width: 18, height: 18 }) }),
|
|
27
|
+
Array.from({ length: r }).map((s, l) => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
28
|
+
V,
|
|
29
29
|
{
|
|
30
30
|
variant: "text",
|
|
31
31
|
width: `${i[(g + l) % i.length]}%`
|
|
32
32
|
}
|
|
33
33
|
) }, l))
|
|
34
34
|
] }, g)) });
|
|
35
|
-
},
|
|
36
|
-
function
|
|
35
|
+
}, xe = ({ message: r, colSpan: n, component: a }) => /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(p, { colSpan: n, align: "center", sx: { py: 8 }, children: a || /* @__PURE__ */ t(fe, { color: "text.secondary", variant: "body2", children: r }) }) });
|
|
36
|
+
function Te({
|
|
37
37
|
rows: r,
|
|
38
38
|
columns: n,
|
|
39
39
|
loading: a = !1,
|
|
40
40
|
loadingRows: i = 5,
|
|
41
41
|
selectable: d = !1,
|
|
42
42
|
selectionMode: g = "multiple",
|
|
43
|
-
selected:
|
|
43
|
+
selected: s = [],
|
|
44
44
|
onSelectionChange: l,
|
|
45
|
-
onRowClick:
|
|
46
|
-
pagination:
|
|
45
|
+
onRowClick: _,
|
|
46
|
+
pagination: S = !0,
|
|
47
47
|
rowsPerPageOptions: B = [5, 10, 25, 50],
|
|
48
48
|
defaultRowsPerPage: H = 10,
|
|
49
49
|
defaultSortColumn: L,
|
|
@@ -54,73 +54,74 @@ function Ce({
|
|
|
54
54
|
emptyMessage: E = "No data available",
|
|
55
55
|
emptyComponent: U,
|
|
56
56
|
ariaLabel: z = "data table"
|
|
57
|
-
}) {
|
|
58
|
-
const u =
|
|
57
|
+
}, G) {
|
|
58
|
+
const u = de(), [f, J] = y(M), [c, K] = y(
|
|
59
59
|
L || (n[0]?.id ?? "")
|
|
60
|
-
), [T, w] = y(0), [x,
|
|
60
|
+
), [T, w] = y(0), [x, Q] = y(H), X = b(
|
|
61
61
|
(e) => {
|
|
62
|
-
|
|
62
|
+
J(c === e && f === "asc" ? "desc" : "asc"), K(e);
|
|
63
63
|
},
|
|
64
64
|
[f, c]
|
|
65
|
-
),
|
|
65
|
+
), Y = b(
|
|
66
66
|
(e) => {
|
|
67
67
|
if (e.target.checked) {
|
|
68
|
-
const
|
|
69
|
-
l?.(
|
|
68
|
+
const o = r.map((m) => m.id);
|
|
69
|
+
l?.(o);
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
l?.([]);
|
|
73
73
|
},
|
|
74
74
|
[r, l]
|
|
75
|
-
),
|
|
75
|
+
), Z = b(
|
|
76
76
|
(e) => {
|
|
77
77
|
if (g === "single") {
|
|
78
|
-
l?.(
|
|
78
|
+
l?.(s.includes(e) ? [] : [e]);
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const o = s.indexOf(e);
|
|
82
82
|
let m = [];
|
|
83
|
-
|
|
83
|
+
o === -1 ? m = [...s, e] : m = s.filter((h) => h !== e), l?.(m);
|
|
84
84
|
},
|
|
85
|
-
[
|
|
86
|
-
),
|
|
87
|
-
w(
|
|
88
|
-
}, []),
|
|
85
|
+
[s, g, l]
|
|
86
|
+
), ee = b((e, o) => {
|
|
87
|
+
w(o);
|
|
88
|
+
}, []), te = b(
|
|
89
89
|
(e) => {
|
|
90
|
-
|
|
90
|
+
Q(parseInt(e.target.value, 10)), w(0);
|
|
91
91
|
},
|
|
92
92
|
[]
|
|
93
|
-
),
|
|
93
|
+
), v = F(() => c ? [...r].sort(be(f, c)) : r, [r, f, c]), j = F(() => S ? v.slice(
|
|
94
94
|
T * x,
|
|
95
95
|
T * x + x
|
|
96
|
-
) :
|
|
97
|
-
(e) =>
|
|
98
|
-
[
|
|
99
|
-
),
|
|
96
|
+
) : v, [v, S, T, x]), re = b(
|
|
97
|
+
(e) => s.includes(e),
|
|
98
|
+
[s]
|
|
99
|
+
), P = s.length, R = r.length, ae = n.length + (d ? 1 : 0);
|
|
100
100
|
return /* @__PURE__ */ k(
|
|
101
|
-
|
|
101
|
+
oe,
|
|
102
102
|
{
|
|
103
|
+
ref: G,
|
|
103
104
|
sx: {
|
|
104
105
|
width: "100%",
|
|
105
106
|
overflow: "hidden",
|
|
106
107
|
borderRadius: 2
|
|
107
108
|
},
|
|
108
109
|
children: [
|
|
109
|
-
/* @__PURE__ */ t(
|
|
110
|
-
|
|
110
|
+
/* @__PURE__ */ t(se, { sx: { maxHeight: q }, children: /* @__PURE__ */ k(
|
|
111
|
+
le,
|
|
111
112
|
{
|
|
112
113
|
stickyHeader: $,
|
|
113
114
|
size: N,
|
|
114
115
|
"aria-label": z,
|
|
115
116
|
children: [
|
|
116
|
-
/* @__PURE__ */ t(
|
|
117
|
+
/* @__PURE__ */ t(ce, { children: /* @__PURE__ */ k(C, { children: [
|
|
117
118
|
d && g === "multiple" && /* @__PURE__ */ t(p, { padding: "checkbox", children: /* @__PURE__ */ t(
|
|
118
|
-
|
|
119
|
+
O,
|
|
119
120
|
{
|
|
120
121
|
color: "primary",
|
|
121
|
-
indeterminate:
|
|
122
|
-
checked: R > 0 &&
|
|
123
|
-
onChange:
|
|
122
|
+
indeterminate: P > 0 && P < R,
|
|
123
|
+
checked: R > 0 && P === R,
|
|
124
|
+
onChange: Y,
|
|
124
125
|
inputProps: {
|
|
125
126
|
"aria-label": "select all rows"
|
|
126
127
|
}
|
|
@@ -138,14 +139,14 @@ function Ce({
|
|
|
138
139
|
backgroundColor: u.palette.mode === "dark" ? A(u.palette.background.paper, 0.9) : u.palette.grey[50]
|
|
139
140
|
},
|
|
140
141
|
children: e.sortable !== !1 ? /* @__PURE__ */ k(
|
|
141
|
-
|
|
142
|
+
he,
|
|
142
143
|
{
|
|
143
144
|
active: c === e.id,
|
|
144
145
|
direction: c === e.id ? f : "asc",
|
|
145
|
-
onClick: () =>
|
|
146
|
+
onClick: () => X(e.id),
|
|
146
147
|
children: [
|
|
147
148
|
e.label,
|
|
148
|
-
c === e.id ? /* @__PURE__ */ t(
|
|
149
|
+
c === e.id ? /* @__PURE__ */ t(pe, { component: "span", sx: me, children: f === "desc" ? "sorted descending" : "sorted ascending" }) : null
|
|
149
150
|
]
|
|
150
151
|
}
|
|
151
152
|
) : e.label
|
|
@@ -153,35 +154,35 @@ function Ce({
|
|
|
153
154
|
String(e.id)
|
|
154
155
|
))
|
|
155
156
|
] }) }),
|
|
156
|
-
/* @__PURE__ */ t(
|
|
157
|
-
|
|
157
|
+
/* @__PURE__ */ t(ge, { children: a ? /* @__PURE__ */ t(
|
|
158
|
+
ke,
|
|
158
159
|
{
|
|
159
160
|
columns: n.length,
|
|
160
161
|
rows: i,
|
|
161
162
|
hasCheckbox: d
|
|
162
163
|
}
|
|
163
|
-
) :
|
|
164
|
-
|
|
164
|
+
) : j.length === 0 ? /* @__PURE__ */ t(
|
|
165
|
+
xe,
|
|
165
166
|
{
|
|
166
167
|
message: E,
|
|
167
|
-
colSpan:
|
|
168
|
+
colSpan: ae,
|
|
168
169
|
component: U
|
|
169
170
|
}
|
|
170
|
-
) :
|
|
171
|
-
const
|
|
171
|
+
) : j.map((e) => {
|
|
172
|
+
const o = re(e.id), m = `table-checkbox-${e.id}`;
|
|
172
173
|
return /* @__PURE__ */ k(
|
|
173
174
|
C,
|
|
174
175
|
{
|
|
175
176
|
hover: !0,
|
|
176
177
|
onClick: () => {
|
|
177
|
-
d &&
|
|
178
|
+
d && Z(e.id), _?.(e);
|
|
178
179
|
},
|
|
179
180
|
role: d ? "checkbox" : void 0,
|
|
180
|
-
"aria-checked": d ?
|
|
181
|
+
"aria-checked": d ? o : void 0,
|
|
181
182
|
tabIndex: -1,
|
|
182
|
-
selected:
|
|
183
|
+
selected: o,
|
|
183
184
|
sx: {
|
|
184
|
-
cursor: d ||
|
|
185
|
+
cursor: d || _ ? "pointer" : "default",
|
|
185
186
|
"&.Mui-selected": {
|
|
186
187
|
backgroundColor: A(
|
|
187
188
|
u.palette.primary.main,
|
|
@@ -197,10 +198,10 @@ function Ce({
|
|
|
197
198
|
},
|
|
198
199
|
children: [
|
|
199
200
|
d && /* @__PURE__ */ t(p, { padding: "checkbox", children: /* @__PURE__ */ t(
|
|
200
|
-
|
|
201
|
+
O,
|
|
201
202
|
{
|
|
202
203
|
color: "primary",
|
|
203
|
-
checked:
|
|
204
|
+
checked: o,
|
|
204
205
|
inputProps: {
|
|
205
206
|
"aria-labelledby": m
|
|
206
207
|
}
|
|
@@ -218,39 +219,40 @@ function Ce({
|
|
|
218
219
|
]
|
|
219
220
|
}
|
|
220
221
|
) }),
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
S && !a && r.length > 0 && /* @__PURE__ */ t(
|
|
223
|
+
ue,
|
|
223
224
|
{
|
|
224
225
|
rowsPerPageOptions: B,
|
|
225
226
|
component: "div",
|
|
226
227
|
count: r.length,
|
|
227
228
|
rowsPerPage: x,
|
|
228
229
|
page: T,
|
|
229
|
-
onPageChange:
|
|
230
|
-
onRowsPerPageChange:
|
|
230
|
+
onPageChange: ee,
|
|
231
|
+
onRowsPerPageChange: te
|
|
231
232
|
}
|
|
232
233
|
)
|
|
233
234
|
]
|
|
234
235
|
}
|
|
235
236
|
);
|
|
236
237
|
}
|
|
238
|
+
const Pe = ie.forwardRef(Te);
|
|
237
239
|
export {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
240
|
+
We as ConfirmDialog,
|
|
241
|
+
ze as DataCard,
|
|
242
|
+
Je as FileUpload,
|
|
243
|
+
Be as IllustratedMessage,
|
|
244
|
+
He as Modal,
|
|
245
|
+
Pe as SimpleTable,
|
|
246
|
+
Le as StatusIndicator,
|
|
247
|
+
Me as StatusLegend,
|
|
248
|
+
Ne as Toast,
|
|
249
|
+
$e as ToastProvider,
|
|
250
|
+
Fe as baseTokens,
|
|
251
|
+
Ae as brandColors,
|
|
252
|
+
De as darkTheme,
|
|
253
|
+
_e as lightTheme,
|
|
254
|
+
Oe as semanticTokens,
|
|
255
|
+
qe as useConfirmDialog,
|
|
256
|
+
Ee as useToast,
|
|
257
|
+
we as useTrinityTokens
|
|
256
258
|
};
|
package/dist/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/form.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/form.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAmF,MAAM,OAAO,CAAC;AAMxG,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,OAAO,IAAI;IACxC,oFAAoF;IACpF,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,MAAM,CAAC;IACzC,8CAA8C;IAC9C,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