@mastra/playground-ui 64.0.1-alpha.0 → 65.0.0-alpha.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/README.md +10 -2
- package/components.css +340 -0
- package/dist/code-DJReJPSX.cjs.map +1 -1
- package/dist/code-DLuATvYu.js.map +1 -1
- package/dist/components/Breadcrumb.cjs.js +4 -2
- package/dist/components/Breadcrumb.cjs.js.map +1 -1
- package/dist/components/Breadcrumb.es.js +5 -3
- package/dist/components/Breadcrumb.es.js.map +1 -1
- package/dist/components/DataList.cjs.js +15 -17
- package/dist/components/DataList.cjs.js.map +1 -1
- package/dist/components/DataList.es.js +4 -5
- package/dist/components/DataList.es.js.map +1 -1
- package/dist/components/EnvironmentVariablesEditor.cjs.js +1 -1
- package/dist/components/EnvironmentVariablesEditor.es.js +1 -1
- package/dist/components/LogsDataList.cjs.js +5 -2
- package/dist/components/LogsDataList.cjs.js.map +1 -1
- package/dist/components/LogsDataList.es.js +5 -2
- package/dist/components/LogsDataList.es.js.map +1 -1
- package/dist/{data-list-top-DSr_ocKA.js → data-list-DdCZZctL.js} +332 -5
- package/dist/data-list-DdCZZctL.js.map +1 -0
- package/dist/{data-list-top-ByT2Mo77.cjs → data-list-ecHsw-zr.cjs} +339 -13
- package/dist/data-list-ecHsw-zr.cjs.map +1 -0
- package/dist/{data-list-skeleton-B_SXAeE0.js → data-list-skeleton-CGKlcoiI.js} +2 -2
- package/dist/{data-list-skeleton-B_SXAeE0.js.map → data-list-skeleton-CGKlcoiI.js.map} +1 -1
- package/dist/{data-list-skeleton-BqC9Gggi.cjs → data-list-skeleton-DGMTqeNP.cjs} +6 -6
- package/dist/{data-list-skeleton-BqC9Gggi.cjs.map → data-list-skeleton-DGMTqeNP.cjs.map} +1 -1
- package/dist/domains/chat/tools/badges/workflow-badge.cjs.js +4 -0
- package/dist/domains/chat/tools/badges/workflow-badge.cjs.js.map +1 -1
- package/dist/domains/chat/tools/badges/workflow-badge.es.js +4 -0
- package/dist/domains/chat/tools/badges/workflow-badge.es.js.map +1 -1
- package/dist/domains/datasets/components/save-as-dataset-item-dialog.cjs.js +104 -92
- package/dist/domains/datasets/components/save-as-dataset-item-dialog.cjs.js.map +1 -1
- package/dist/domains/datasets/components/save-as-dataset-item-dialog.es.js +105 -93
- package/dist/domains/datasets/components/save-as-dataset-item-dialog.es.js.map +1 -1
- package/dist/domains/logs/components/logs-list-view.cjs.js +3 -2
- package/dist/domains/logs/components/logs-list-view.cjs.js.map +1 -1
- package/dist/domains/logs/components/logs-list-view.es.js +3 -2
- package/dist/domains/logs/components/logs-list-view.es.js.map +1 -1
- package/dist/domains/observability/components/add-trace-mocks-to-item-dialog.cjs.js +3 -3
- package/dist/domains/observability/components/add-trace-mocks-to-item-dialog.es.js +3 -3
- package/dist/domains/observability/components/trace-as-item-dialog.cjs.js +6 -10
- package/dist/domains/observability/components/trace-as-item-dialog.cjs.js.map +1 -1
- package/dist/domains/observability/components/trace-as-item-dialog.es.js +7 -11
- package/dist/domains/observability/components/trace-as-item-dialog.es.js.map +1 -1
- package/dist/domains/scores/components/score-as-item-dialog.cjs.js +3 -9
- package/dist/domains/scores/components/score-as-item-dialog.cjs.js.map +1 -1
- package/dist/domains/scores/components/score-as-item-dialog.es.js +4 -10
- package/dist/domains/scores/components/score-as-item-dialog.es.js.map +1 -1
- package/dist/domains/scores/components/score-data-panel.cjs.js +9 -1
- package/dist/domains/scores/components/score-data-panel.cjs.js.map +1 -1
- package/dist/domains/scores/components/score-data-panel.es.js +9 -1
- package/dist/domains/scores/components/score-data-panel.es.js.map +1 -1
- package/dist/domains/scores/components/trace-scores-tab.cjs.js +2 -1
- package/dist/domains/scores/components/trace-scores-tab.cjs.js.map +1 -1
- package/dist/domains/scores/components/trace-scores-tab.es.js +2 -1
- package/dist/domains/scores/components/trace-scores-tab.es.js.map +1 -1
- package/dist/domains/traces/components/thread-view-by-trace.cjs.js +1 -0
- package/dist/domains/traces/components/thread-view-by-trace.cjs.js.map +1 -1
- package/dist/domains/traces/components/thread-view-by-trace.es.js +1 -0
- package/dist/domains/traces/components/thread-view-by-trace.es.js.map +1 -1
- package/dist/domains/traces/components/trace-data-panel.cjs.js +3 -0
- package/dist/domains/traces/components/trace-data-panel.cjs.js.map +1 -1
- package/dist/domains/traces/components/trace-data-panel.es.js +3 -0
- package/dist/domains/traces/components/trace-data-panel.es.js.map +1 -1
- package/dist/domains/traces/components/traces-list-view.cjs.js +4 -5
- package/dist/domains/traces/components/traces-list-view.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-list-view.es.js +3 -4
- package/dist/domains/traces/components/traces-list-view.es.js.map +1 -1
- package/dist/domains/traces/components/traces-page-skeleton.cjs.js +4 -1
- package/dist/domains/traces/components/traces-page-skeleton.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-page-skeleton.es.js +4 -1
- package/dist/domains/traces/components/traces-page-skeleton.es.js.map +1 -1
- package/dist/domains/workflows/components/workflows-list/workflows-list.cjs.js +2 -2
- package/dist/domains/workflows/components/workflows-list/workflows-list.es.js +2 -2
- package/dist/domains/workflows/workflow/workflow-input-data.cjs.js +1 -0
- package/dist/domains/workflows/workflow/workflow-input-data.cjs.js.map +1 -1
- package/dist/domains/workflows/workflow/workflow-input-data.es.js +1 -0
- package/dist/domains/workflows/workflow/workflow-input-data.es.js.map +1 -1
- package/dist/ee/signals/components/entity-index-list.cjs.js +3 -1
- package/dist/ee/signals/components/entity-index-list.cjs.js.map +1 -1
- package/dist/ee/signals/components/entity-index-list.es.js +3 -1
- package/dist/ee/signals/components/entity-index-list.es.js.map +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js +3 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js.map +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.es.js +3 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.es.js.map +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.cjs.js +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.es.js +1 -1
- package/dist/layout/tabbed-container.cjs.js +1 -1
- package/dist/layout/tabbed-container.es.js +1 -1
- package/dist/{logs-data-list-CoER2Hst.js → logs-data-list-DBJINzIL.js} +2 -3
- package/dist/{logs-data-list-CoER2Hst.js.map → logs-data-list-DBJINzIL.js.map} +1 -1
- package/dist/{logs-data-list-DRR6cMgl.cjs → logs-data-list-IWZgMCKG.cjs} +21 -22
- package/dist/{logs-data-list-DRR6cMgl.cjs.map → logs-data-list-IWZgMCKG.cjs.map} +1 -1
- package/dist/primitives/raised-surface.cjs.js.map +1 -1
- package/dist/primitives/raised-surface.es.js.map +1 -1
- package/dist/src/domains/datasets/components/index.d.ts +1 -1
- package/dist/src/domains/datasets/components/save-as-dataset-item-dialog.d.ts +14 -3
- package/dist/src/domains/observability/components/trace-as-item-dialog.d.ts +5 -3
- package/dist/src/domains/scores/components/score-as-item-dialog.d.ts +3 -3
- package/dist/src/ds/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/src/ds/components/Code/code.d.ts +1 -1
- package/dist/src/ds/primitives/raised-surface.d.ts +1 -1
- package/dist/style.css +22 -19
- package/dist/toast.css +1 -1
- package/dist/tokens.cjs.js.map +1 -1
- package/dist/tokens.es.js.map +1 -1
- package/dist/{traces-data-list-BgjeB-BF.cjs → traces-data-list-BH24OVKh.cjs} +18 -20
- package/dist/{traces-data-list-BgjeB-BF.cjs.map → traces-data-list-BH24OVKh.cjs.map} +1 -1
- package/dist/{traces-data-list-Zoai0OW_.js → traces-data-list-BOJB37dV.js} +2 -4
- package/dist/{traces-data-list-Zoai0OW_.js.map → traces-data-list-BOJB37dV.js.map} +1 -1
- package/dist/use-text-highlight.css +4 -4
- package/package.json +14 -10
- package/sources.css +1 -0
- package/theme/code.css +17 -0
- package/theme/surfaces.css +2 -2
- package/theme.css +2 -0
- package/dist/data-list-DUfXIhyC.cjs +0 -142
- package/dist/data-list-DUfXIhyC.cjs.map +0 -1
- package/dist/data-list-DXQY_iQW.js +0 -138
- package/dist/data-list-DXQY_iQW.js.map +0 -1
- package/dist/data-list-spacer-ByA4ce2a.js +0 -209
- package/dist/data-list-spacer-ByA4ce2a.js.map +0 -1
- package/dist/data-list-spacer-tQaBaum4.cjs +0 -218
- package/dist/data-list-spacer-tQaBaum4.cjs.map +0 -1
- package/dist/data-list-top-ByT2Mo77.cjs.map +0 -1
- package/dist/data-list-top-DSr_ocKA.js.map +0 -1
|
@@ -2,26 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const dataList = require('../data-list-
|
|
6
|
-
const dataListSkeleton = require('../data-list-skeleton-
|
|
5
|
+
const dataList = require('../data-list-ecHsw-zr.cjs');
|
|
6
|
+
const dataListSkeleton = require('../data-list-skeleton-DGMTqeNP.cjs');
|
|
7
7
|
const jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
const dataListSpacer = require('../data-list-spacer-tQaBaum4.cjs');
|
|
9
|
-
const dataListTop = require('../data-list-top-ByT2Mo77.cjs');
|
|
10
8
|
const Txt = require('../Txt-CIS2G5Jx.cjs');
|
|
11
9
|
const utils_dateFormat = require('../utils/date-format.cjs.js');
|
|
12
|
-
const tracesDataList = require('../traces-data-list-
|
|
10
|
+
const tracesDataList = require('../traces-data-list-BH24OVKh.cjs');
|
|
13
11
|
const useDataListKeyboard = require('../use-data-list-keyboard-DF3tLe10.cjs');
|
|
14
12
|
const layout_tabbedContainer = require('../layout/tabbed-container.cjs.js');
|
|
15
13
|
|
|
16
14
|
function ScoresDataListDateCell({ timestamp }) {
|
|
17
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { className: "text-muted-foreground", children: utils_dateFormat.formatDate(timestamp, "date") ?? "-" });
|
|
18
16
|
}
|
|
19
17
|
function ScoresDataListTimeCell({ timestamp }) {
|
|
20
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { className: "text-body-sm text-muted-foreground", children: utils_dateFormat.formatDate(timestamp, "time") ?? "-" });
|
|
21
19
|
}
|
|
22
20
|
function ScoresDataListInputCell({ input }) {
|
|
23
21
|
const display = input != null ? JSON.stringify(input) : "-";
|
|
24
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25
23
|
Txt.Txt,
|
|
26
24
|
{
|
|
27
25
|
as: "span",
|
|
@@ -36,11 +34,11 @@ function ScoresDataListInputCell({ input }) {
|
|
|
36
34
|
}
|
|
37
35
|
function ScoresDataListEntityCell({ entityId }) {
|
|
38
36
|
const display = entityId || "-";
|
|
39
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { children: /* @__PURE__ */ jsxRuntime.jsx(Txt.Txt, { as: "span", variant: "body-sm", className: "block max-w-full min-w-0 truncate", title: display, children: display }) });
|
|
40
38
|
}
|
|
41
39
|
function ScoresDataListScoreCell({ score }) {
|
|
42
40
|
const display = score == null ? "-" : typeof score === "object" ? JSON.stringify(score) : String(score);
|
|
43
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
42
|
Txt.Txt,
|
|
45
43
|
{
|
|
46
44
|
as: "span",
|
|
@@ -55,15 +53,15 @@ function ScoresDataListScoreCell({ score }) {
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
function ScoresDataListRoot(props) {
|
|
58
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListRoot, { ...props });
|
|
59
57
|
}
|
|
60
58
|
const ScoresDataList = Object.assign(ScoresDataListRoot, {
|
|
61
|
-
Top:
|
|
62
|
-
TopCell:
|
|
63
|
-
SortableTopCell:
|
|
64
|
-
RowButton:
|
|
65
|
-
NoMatch:
|
|
66
|
-
NextPageLoading:
|
|
59
|
+
Top: dataList.DataListTop,
|
|
60
|
+
TopCell: dataList.DataListTopCell,
|
|
61
|
+
SortableTopCell: dataList.DataListSortableTopCell,
|
|
62
|
+
RowButton: dataList.DataListRowButton,
|
|
63
|
+
NoMatch: dataList.DataListNoMatch,
|
|
64
|
+
NextPageLoading: dataList.DataListNextPageLoading,
|
|
67
65
|
DateCell: ScoresDataListDateCell,
|
|
68
66
|
TimeCell: ScoresDataListTimeCell,
|
|
69
67
|
InputCell: ScoresDataListInputCell,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataList.cjs.js","sources":["../../src/ds/components/DataList/ScoresDataList/scores-data-list-cells.tsx","../../src/ds/components/DataList/ScoresDataList/scores-data-list.tsx"],"sourcesContent":["import { DataListCell } from '../data-list-cells';\nimport { Txt } from '@/ds/components/Txt';\nimport { formatDate } from '@/utils/date-format';\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\n// ---------------------------------------------------------------------------\n// DateCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListDateCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date') ?? '-'}</DataListCell>;\n}\n\n// ---------------------------------------------------------------------------\n// TimeCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps) {\n return (\n <DataListCell className=\"text-body-sm text-muted-foreground\">{formatDate(timestamp, 'time') ?? '-'}</DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// InputCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListInputCellProps {\n input?: unknown;\n}\n\nexport function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps) {\n const display = input != null ? JSON.stringify(input) : '-';\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// EntityCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListEntityCellProps {\n entityId?: string | null;\n}\n\nexport function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps) {\n const display = entityId || '-';\n return (\n <DataListCell>\n <Txt as=\"span\" variant=\"body-sm\" className=\"block max-w-full min-w-0 truncate\" title={display}>\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ScoreCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListScoreCellProps {\n score?: unknown;\n}\n\nexport function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps) {\n const display = score == null ? '-' : typeof score === 'object' ? JSON.stringify(score) : String(score);\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { DataListNextPageLoading } from '../data-list-next-page-loading';\nimport { DataListNoMatch } from '../data-list-no-match';\nimport { DataListRoot } from '../data-list-root';\nimport { DataListRowButton } from '../data-list-row-button';\nimport { DataListSortableTopCell } from '../data-list-sortable-top-cell';\nimport { DataListTop } from '../data-list-top';\nimport { DataListTopCell } from '../data-list-top-cell';\nimport {\n ScoresDataListDateCell,\n ScoresDataListTimeCell,\n ScoresDataListInputCell,\n ScoresDataListEntityCell,\n ScoresDataListScoreCell,\n} from './scores-data-list-cells';\n\n// oxlint-disable-next-line react/only-export-components -- compound component root, same pattern as TracesDataList\n// eslint-disable-next-line react-refresh/only-export-components -- compound component root, same pattern as TracesDataList\nfunction ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>) {\n return <DataListRoot {...props} />;\n}\n\nexport const ScoresDataList = Object.assign(ScoresDataListRoot, {\n Top: DataListTop,\n TopCell: DataListTopCell,\n SortableTopCell: DataListSortableTopCell,\n RowButton: DataListRowButton,\n NoMatch: DataListNoMatch,\n NextPageLoading: DataListNextPageLoading,\n DateCell: ScoresDataListDateCell,\n TimeCell: ScoresDataListTimeCell,\n InputCell: ScoresDataListInputCell,\n EntityCell: ScoresDataListEntityCell,\n ScoreCell: ScoresDataListScoreCell,\n});\n"],"names":["jsx","DataListCell","Txt","DataListRoot","DataListTop","DataListTopCell","DataListSortableTopCell","DataListRowButton","DataListNoMatch","DataListNextPageLoading"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataList.cjs.js","sources":["../../src/ds/components/DataList/ScoresDataList/scores-data-list-cells.tsx","../../src/ds/components/DataList/ScoresDataList/scores-data-list.tsx"],"sourcesContent":["import { DataListCell } from '../data-list-cells';\nimport { Txt } from '@/ds/components/Txt';\nimport { formatDate } from '@/utils/date-format';\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\n// ---------------------------------------------------------------------------\n// DateCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListDateCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date') ?? '-'}</DataListCell>;\n}\n\n// ---------------------------------------------------------------------------\n// TimeCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps) {\n return (\n <DataListCell className=\"text-body-sm text-muted-foreground\">{formatDate(timestamp, 'time') ?? '-'}</DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// InputCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListInputCellProps {\n input?: unknown;\n}\n\nexport function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps) {\n const display = input != null ? JSON.stringify(input) : '-';\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// EntityCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListEntityCellProps {\n entityId?: string | null;\n}\n\nexport function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps) {\n const display = entityId || '-';\n return (\n <DataListCell>\n <Txt as=\"span\" variant=\"body-sm\" className=\"block max-w-full min-w-0 truncate\" title={display}>\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ScoreCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListScoreCellProps {\n score?: unknown;\n}\n\nexport function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps) {\n const display = score == null ? '-' : typeof score === 'object' ? JSON.stringify(score) : String(score);\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { DataListNextPageLoading } from '../data-list-next-page-loading';\nimport { DataListNoMatch } from '../data-list-no-match';\nimport { DataListRoot } from '../data-list-root';\nimport { DataListRowButton } from '../data-list-row-button';\nimport { DataListSortableTopCell } from '../data-list-sortable-top-cell';\nimport { DataListTop } from '../data-list-top';\nimport { DataListTopCell } from '../data-list-top-cell';\nimport {\n ScoresDataListDateCell,\n ScoresDataListTimeCell,\n ScoresDataListInputCell,\n ScoresDataListEntityCell,\n ScoresDataListScoreCell,\n} from './scores-data-list-cells';\n\n// oxlint-disable-next-line react/only-export-components -- compound component root, same pattern as TracesDataList\n// eslint-disable-next-line react-refresh/only-export-components -- compound component root, same pattern as TracesDataList\nfunction ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>) {\n return <DataListRoot {...props} />;\n}\n\nexport const ScoresDataList = Object.assign(ScoresDataListRoot, {\n Top: DataListTop,\n TopCell: DataListTopCell,\n SortableTopCell: DataListSortableTopCell,\n RowButton: DataListRowButton,\n NoMatch: DataListNoMatch,\n NextPageLoading: DataListNextPageLoading,\n DateCell: ScoresDataListDateCell,\n TimeCell: ScoresDataListTimeCell,\n InputCell: ScoresDataListInputCell,\n EntityCell: ScoresDataListEntityCell,\n ScoreCell: ScoresDataListScoreCell,\n});\n"],"names":["jsx","DataListCell","Txt","DataListRoot","DataListTop","DataListTopCell","DataListSortableTopCell","DataListRowButton","DataListNoMatch","DataListNextPageLoading"],"mappings":";;;;;;;;;;;;;AAgBO,SAAS,sBAAA,CAAuB,EAAE,SAAA,EAAU,EAAgC;AACjF,EAAA,uBAAOA,cAAA,CAACC,yBAAa,SAAA,EAAU,uBAAA,EAAyB,sCAAW,SAAA,EAAW,MAAM,KAAK,GAAA,EAAI,CAAA;AAC/F;AAUO,SAAS,sBAAA,CAAuB,EAAE,SAAA,EAAU,EAAgC;AACjF,EAAA,uBACED,cAAA,CAACC,yBAAa,SAAA,EAAU,oCAAA,EAAsC,sCAAW,SAAA,EAAW,MAAM,KAAK,GAAA,EAAI,CAAA;AAEvG;AAUO,SAAS,uBAAA,CAAwB,EAAE,KAAA,EAAM,EAAiC;AAC/E,EAAA,MAAM,UAAU,KAAA,IAAS,IAAA,GAAO,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA,GAAI,GAAA;AACxD,EAAA,sCACGA,qBAAA,EAAA,EACC,QAAA,kBAAAD,cAAA;AAAA,IAACE,OAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAG,MAAA;AAAA,MACH,OAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAK,OAAA;AAAA,MACL,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mCAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACH,EACF,CAAA;AAEJ;AAUO,SAAS,wBAAA,CAAyB,EAAE,QAAA,EAAS,EAAkC;AACpF,EAAA,MAAM,UAAU,QAAA,IAAY,GAAA;AAC5B,EAAA,uBACEF,cAAA,CAACC,qBAAA,EAAA,EACC,QAAA,kBAAAD,cAAA,CAACE,OAAA,EAAA,EAAI,EAAA,EAAG,MAAA,EAAO,OAAA,EAAQ,SAAA,EAAU,SAAA,EAAU,mCAAA,EAAoC,KAAA,EAAO,OAAA,EACnF,mBACH,CAAA,EACF,CAAA;AAEJ;AAUO,SAAS,uBAAA,CAAwB,EAAE,KAAA,EAAM,EAAiC;AAC/E,EAAA,MAAM,OAAA,GAAU,KAAA,IAAS,IAAA,GAAO,GAAA,GAAM,OAAO,KAAA,KAAU,QAAA,GAAW,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA,GAAI,MAAA,CAAO,KAAK,CAAA;AACtG,EAAA,sCACGD,qBAAA,EAAA,EACC,QAAA,kBAAAD,cAAA;AAAA,IAACE,OAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAG,MAAA;AAAA,MACH,OAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAK,OAAA;AAAA,MACL,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mCAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACH,EACF,CAAA;AAEJ;;ACrFA,SAAS,mBAAmB,KAAA,EAA4C;AACtE,EAAA,uBAAOF,cAAA,CAACG,qBAAA,EAAA,EAAc,GAAG,KAAA,EAAO,CAAA;AAClC;AAEO,MAAM,cAAA,GAAiB,MAAA,CAAO,MAAA,CAAO,kBAAA,EAAoB;AAAA,EAC9D,GAAA,EAAKC,oBAAA;AAAA,EACL,OAAA,EAASC,wBAAA;AAAA,EACT,eAAA,EAAiBC,gCAAA;AAAA,EACjB,SAAA,EAAWC,0BAAA;AAAA,EACX,OAAA,EAASC,wBAAA;AAAA,EACT,eAAA,EAAiBC,gCAAA;AAAA,EACjB,QAAA,EAAU,sBAAA;AAAA,EACV,QAAA,EAAU,sBAAA;AAAA,EACV,SAAA,EAAW,uBAAA;AAAA,EACX,UAAA,EAAY,wBAAA;AAAA,EACZ,SAAA,EAAW;AACb,CAAC;;;;;;;;;;"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { c as DataListCell, g as DataListNextPageLoading, j as DataListNoMatch, m as DataListRowButton, q as DataListSortableTopCell, b as DataListTopCell, a as DataListTop, D as DataListRoot } from '../data-list-DdCZZctL.js';
|
|
2
|
+
export { e as DataList } from '../data-list-DdCZZctL.js';
|
|
3
|
+
export { D as DataListSkeleton, a as DataListSkeletonRows } from '../data-list-skeleton-CGKlcoiI.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { D as DataListNextPageLoading, a as DataListNoMatch, d as DataListRowButton, f as DataListSortableTopCell } from '../data-list-spacer-ByA4ce2a.js';
|
|
5
|
-
import { c as DataListCell, b as DataListTopCell, a as DataListTop, D as DataListRoot } from '../data-list-top-DSr_ocKA.js';
|
|
6
5
|
import { T as Txt } from '../Txt-BtIGLRk1.js';
|
|
7
6
|
import { formatDate } from '../utils/date-format.es.js';
|
|
8
|
-
export { T as TracesDataList } from '../traces-data-list-
|
|
7
|
+
export { T as TracesDataList } from '../traces-data-list-BOJB37dV.js';
|
|
9
8
|
export { u as useDataListKeyboard } from '../use-data-list-keyboard-DFQr4t38.js';
|
|
10
9
|
export { TabbedContainer } from '../layout/tabbed-container.es.js';
|
|
11
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataList.es.js","sources":["../../src/ds/components/DataList/ScoresDataList/scores-data-list-cells.tsx","../../src/ds/components/DataList/ScoresDataList/scores-data-list.tsx"],"sourcesContent":["import { DataListCell } from '../data-list-cells';\nimport { Txt } from '@/ds/components/Txt';\nimport { formatDate } from '@/utils/date-format';\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\n// ---------------------------------------------------------------------------\n// DateCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListDateCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date') ?? '-'}</DataListCell>;\n}\n\n// ---------------------------------------------------------------------------\n// TimeCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps) {\n return (\n <DataListCell className=\"text-body-sm text-muted-foreground\">{formatDate(timestamp, 'time') ?? '-'}</DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// InputCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListInputCellProps {\n input?: unknown;\n}\n\nexport function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps) {\n const display = input != null ? JSON.stringify(input) : '-';\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// EntityCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListEntityCellProps {\n entityId?: string | null;\n}\n\nexport function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps) {\n const display = entityId || '-';\n return (\n <DataListCell>\n <Txt as=\"span\" variant=\"body-sm\" className=\"block max-w-full min-w-0 truncate\" title={display}>\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ScoreCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListScoreCellProps {\n score?: unknown;\n}\n\nexport function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps) {\n const display = score == null ? '-' : typeof score === 'object' ? JSON.stringify(score) : String(score);\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { DataListNextPageLoading } from '../data-list-next-page-loading';\nimport { DataListNoMatch } from '../data-list-no-match';\nimport { DataListRoot } from '../data-list-root';\nimport { DataListRowButton } from '../data-list-row-button';\nimport { DataListSortableTopCell } from '../data-list-sortable-top-cell';\nimport { DataListTop } from '../data-list-top';\nimport { DataListTopCell } from '../data-list-top-cell';\nimport {\n ScoresDataListDateCell,\n ScoresDataListTimeCell,\n ScoresDataListInputCell,\n ScoresDataListEntityCell,\n ScoresDataListScoreCell,\n} from './scores-data-list-cells';\n\n// oxlint-disable-next-line react/only-export-components -- compound component root, same pattern as TracesDataList\n// eslint-disable-next-line react-refresh/only-export-components -- compound component root, same pattern as TracesDataList\nfunction ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>) {\n return <DataListRoot {...props} />;\n}\n\nexport const ScoresDataList = Object.assign(ScoresDataListRoot, {\n Top: DataListTop,\n TopCell: DataListTopCell,\n SortableTopCell: DataListSortableTopCell,\n RowButton: DataListRowButton,\n NoMatch: DataListNoMatch,\n NextPageLoading: DataListNextPageLoading,\n DateCell: ScoresDataListDateCell,\n TimeCell: ScoresDataListTimeCell,\n InputCell: ScoresDataListInputCell,\n EntityCell: ScoresDataListEntityCell,\n ScoreCell: ScoresDataListScoreCell,\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataList.es.js","sources":["../../src/ds/components/DataList/ScoresDataList/scores-data-list-cells.tsx","../../src/ds/components/DataList/ScoresDataList/scores-data-list.tsx"],"sourcesContent":["import { DataListCell } from '../data-list-cells';\nimport { Txt } from '@/ds/components/Txt';\nimport { formatDate } from '@/utils/date-format';\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\n// ---------------------------------------------------------------------------\n// DateCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListDateCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date') ?? '-'}</DataListCell>;\n}\n\n// ---------------------------------------------------------------------------\n// TimeCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps) {\n return (\n <DataListCell className=\"text-body-sm text-muted-foreground\">{formatDate(timestamp, 'time') ?? '-'}</DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// InputCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListInputCellProps {\n input?: unknown;\n}\n\nexport function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps) {\n const display = input != null ? JSON.stringify(input) : '-';\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// EntityCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListEntityCellProps {\n entityId?: string | null;\n}\n\nexport function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps) {\n const display = entityId || '-';\n return (\n <DataListCell>\n <Txt as=\"span\" variant=\"body-sm\" className=\"block max-w-full min-w-0 truncate\" title={display}>\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ScoreCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListScoreCellProps {\n score?: unknown;\n}\n\nexport function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps) {\n const display = score == null ? '-' : typeof score === 'object' ? JSON.stringify(score) : String(score);\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { DataListNextPageLoading } from '../data-list-next-page-loading';\nimport { DataListNoMatch } from '../data-list-no-match';\nimport { DataListRoot } from '../data-list-root';\nimport { DataListRowButton } from '../data-list-row-button';\nimport { DataListSortableTopCell } from '../data-list-sortable-top-cell';\nimport { DataListTop } from '../data-list-top';\nimport { DataListTopCell } from '../data-list-top-cell';\nimport {\n ScoresDataListDateCell,\n ScoresDataListTimeCell,\n ScoresDataListInputCell,\n ScoresDataListEntityCell,\n ScoresDataListScoreCell,\n} from './scores-data-list-cells';\n\n// oxlint-disable-next-line react/only-export-components -- compound component root, same pattern as TracesDataList\n// eslint-disable-next-line react-refresh/only-export-components -- compound component root, same pattern as TracesDataList\nfunction ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>) {\n return <DataListRoot {...props} />;\n}\n\nexport const ScoresDataList = Object.assign(ScoresDataListRoot, {\n Top: DataListTop,\n TopCell: DataListTopCell,\n SortableTopCell: DataListSortableTopCell,\n RowButton: DataListRowButton,\n NoMatch: DataListNoMatch,\n NextPageLoading: DataListNextPageLoading,\n DateCell: ScoresDataListDateCell,\n TimeCell: ScoresDataListTimeCell,\n InputCell: ScoresDataListInputCell,\n EntityCell: ScoresDataListEntityCell,\n ScoreCell: ScoresDataListScoreCell,\n});\n"],"names":[],"mappings":";;;;;;;;;;AAgBO,SAAS,sBAAA,CAAuB,EAAE,SAAA,EAAU,EAAgC;AACjF,EAAA,uBAAO,GAAA,CAAC,gBAAa,SAAA,EAAU,uBAAA,EAAyB,qBAAW,SAAA,EAAW,MAAM,KAAK,GAAA,EAAI,CAAA;AAC/F;AAUO,SAAS,sBAAA,CAAuB,EAAE,SAAA,EAAU,EAAgC;AACjF,EAAA,uBACE,GAAA,CAAC,gBAAa,SAAA,EAAU,oCAAA,EAAsC,qBAAW,SAAA,EAAW,MAAM,KAAK,GAAA,EAAI,CAAA;AAEvG;AAUO,SAAS,uBAAA,CAAwB,EAAE,KAAA,EAAM,EAAiC;AAC/E,EAAA,MAAM,UAAU,KAAA,IAAS,IAAA,GAAO,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA,GAAI,GAAA;AACxD,EAAA,2BACG,YAAA,EAAA,EACC,QAAA,kBAAA,GAAA;AAAA,IAAC,GAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAG,MAAA;AAAA,MACH,OAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAK,OAAA;AAAA,MACL,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mCAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACH,EACF,CAAA;AAEJ;AAUO,SAAS,wBAAA,CAAyB,EAAE,QAAA,EAAS,EAAkC;AACpF,EAAA,MAAM,UAAU,QAAA,IAAY,GAAA;AAC5B,EAAA,uBACE,GAAA,CAAC,YAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,GAAA,EAAA,EAAI,EAAA,EAAG,MAAA,EAAO,OAAA,EAAQ,SAAA,EAAU,SAAA,EAAU,mCAAA,EAAoC,KAAA,EAAO,OAAA,EACnF,mBACH,CAAA,EACF,CAAA;AAEJ;AAUO,SAAS,uBAAA,CAAwB,EAAE,KAAA,EAAM,EAAiC;AAC/E,EAAA,MAAM,OAAA,GAAU,KAAA,IAAS,IAAA,GAAO,GAAA,GAAM,OAAO,KAAA,KAAU,QAAA,GAAW,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA,GAAI,MAAA,CAAO,KAAK,CAAA;AACtG,EAAA,2BACG,YAAA,EAAA,EACC,QAAA,kBAAA,GAAA;AAAA,IAAC,GAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAG,MAAA;AAAA,MACH,OAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAK,OAAA;AAAA,MACL,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mCAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACH,EACF,CAAA;AAEJ;;ACrFA,SAAS,mBAAmB,KAAA,EAA4C;AACtE,EAAA,uBAAO,GAAA,CAAC,YAAA,EAAA,EAAc,GAAG,KAAA,EAAO,CAAA;AAClC;AAEO,MAAM,cAAA,GAAiB,MAAA,CAAO,MAAA,CAAO,kBAAA,EAAoB;AAAA,EAC9D,GAAA,EAAK,WAAA;AAAA,EACL,OAAA,EAAS,eAAA;AAAA,EACT,eAAA,EAAiB,uBAAA;AAAA,EACjB,SAAA,EAAW,iBAAA;AAAA,EACX,OAAA,EAAS,eAAA;AAAA,EACT,eAAA,EAAiB,uBAAA;AAAA,EACjB,QAAA,EAAU,sBAAA;AAAA,EACV,QAAA,EAAU,sBAAA;AAAA,EACV,SAAA,EAAW,uBAAA;AAAA,EACX,UAAA,EAAY,wBAAA;AAAA,EACZ,SAAA,EAAW;AACb,CAAC;;;;"}
|
|
@@ -10,7 +10,7 @@ const Button = require('../Button-DH1aTzbs.cjs');
|
|
|
10
10
|
const Notice = require('../Notice-DYgIy4FO.cjs');
|
|
11
11
|
const envFile = require('../env-file-BU2hStkm.cjs');
|
|
12
12
|
const Txt = require('../Txt-CIS2G5Jx.cjs');
|
|
13
|
-
const dataList = require('../data-list-
|
|
13
|
+
const dataList = require('../data-list-ecHsw-zr.cjs');
|
|
14
14
|
const hooks_useCopyToClipboard = require('../hooks/use-copy-to-clipboard.cjs.js');
|
|
15
15
|
const field = require('../field-BCU5ZtWV.cjs');
|
|
16
16
|
require('../field-control-aria-WzMGs0A4.cjs');
|
|
@@ -6,7 +6,7 @@ import { B as Button } from '../Button-EGoajBQY.js';
|
|
|
6
6
|
import { N as Notice } from '../Notice-BioYTS4b.js';
|
|
7
7
|
import { D as DUPLICATE_ENVIRONMENT_VARIABLE_MESSAGE } from '../env-file-BITYowCx.js';
|
|
8
8
|
import { T as Txt } from '../Txt-BtIGLRk1.js';
|
|
9
|
-
import {
|
|
9
|
+
import { e as DataList } from '../data-list-DdCZZctL.js';
|
|
10
10
|
import { useCopyToClipboard } from '../hooks/use-copy-to-clipboard.es.js';
|
|
11
11
|
import { F as Field, e as FieldLabel, c as FieldError } from '../field-Dl1zeXTv.js';
|
|
12
12
|
import '../field-control-aria-DB6y41tQ.js';
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const logsDataList = require('../logs-data-list-
|
|
6
|
-
|
|
5
|
+
const logsDataList = require('../logs-data-list-IWZgMCKG.cjs');
|
|
6
|
+
require('../data-list-ecHsw-zr.cjs');
|
|
7
|
+
const dataListSkeleton = require('../data-list-skeleton-DGMTqeNP.cjs');
|
|
8
|
+
require('react');
|
|
9
|
+
require('../keyboard/keyboard-shortcuts-context.cjs.js');
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsDataList.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogsDataList.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export { L as LogsDataList } from '../logs-data-list-
|
|
2
|
-
|
|
1
|
+
export { L as LogsDataList } from '../logs-data-list-DBJINzIL.js';
|
|
2
|
+
import '../data-list-DdCZZctL.js';
|
|
3
|
+
export { D as LogsDataListSkeleton } from '../data-list-skeleton-CGKlcoiI.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../keyboard/keyboard-shortcuts-context.es.js';
|
|
3
6
|
//# sourceMappingURL=LogsDataList.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsDataList.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogsDataList.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { Children, isValidElement, cloneElement, useContext, createContext, useMemo, useId,
|
|
2
|
+
import { Children, isValidElement, cloneElement, forwardRef, useContext, createContext, useMemo, useId, useState } from 'react';
|
|
3
|
+
import { focusRingInset } from './primitives/transitions.es.js';
|
|
3
4
|
import { C as Checkbox } from './checkbox-ts1XgEEa.js';
|
|
4
5
|
import { c as cn } from './cn-CQUhN5Jx.js';
|
|
5
6
|
import { formatTimestampPrecise, formatDate } from './utils/date-format.es.js';
|
|
6
7
|
import { getShortId } from './utils/id.es.js';
|
|
8
|
+
import { GROUP_ATTR } from './hooks/use-fluid-hover.es.js';
|
|
9
|
+
import { T as Txt } from './Txt-BtIGLRk1.js';
|
|
10
|
+
import { ArrowLeftIcon, ArrowRightIcon, ArrowUpDown, ArrowDown, ArrowUp } from 'lucide-react';
|
|
11
|
+
import { B as Button } from './Button-EGoajBQY.js';
|
|
7
12
|
import { z } from 'zod/v4';
|
|
8
13
|
import { S as ScrollArea, a as ScrollAreaViewport } from './scroll-area-MaMqo4l8.js';
|
|
9
|
-
import { useFluidMenu, FluidMenuItems } from './primitives/fluid-menu.es.js';
|
|
14
|
+
import { useFluidMenu, FluidMenuItems, useFluidMenuItemRef } from './primitives/fluid-menu.es.js';
|
|
10
15
|
import { raisedSurfaceStyle } from './primitives/raised-surface.es.js';
|
|
11
16
|
import { useLocalStorageState } from './hooks/use-local-storage-state.es.js';
|
|
12
|
-
import { focusRingInset } from './primitives/transitions.es.js';
|
|
13
17
|
import { T as Tooltip, c as TooltipTrigger, a as TooltipContent } from './tooltip-DrsXZDAj.js';
|
|
14
18
|
|
|
15
19
|
const dataListRowOuterStyles = [
|
|
@@ -193,6 +197,72 @@ function DataListTimeCell({ timestamp }) {
|
|
|
193
197
|
return /* @__PURE__ */ jsx(DataListCell, { className: "flex text-muted-foreground tabular-nums", children: formatTimestampPrecise(timestamp, { withDate: false }) });
|
|
194
198
|
}
|
|
195
199
|
|
|
200
|
+
const DataListGroup = forwardRef(({ className, ...rest }, ref) => {
|
|
201
|
+
return /* @__PURE__ */ jsx(
|
|
202
|
+
"section",
|
|
203
|
+
{
|
|
204
|
+
ref,
|
|
205
|
+
...{ [GROUP_ATTR]: "" },
|
|
206
|
+
className: cn("col-span-full grid grid-cols-subgrid gap-y-px [&>:not(.data-list-row)]:col-span-full", className),
|
|
207
|
+
...rest
|
|
208
|
+
}
|
|
209
|
+
);
|
|
210
|
+
});
|
|
211
|
+
DataListGroup.displayName = "DataListGroup";
|
|
212
|
+
|
|
213
|
+
function DataListNextPageLoading({
|
|
214
|
+
isLoading,
|
|
215
|
+
setEndOfListElement,
|
|
216
|
+
hasMore,
|
|
217
|
+
loadingText = "Loading more data..."
|
|
218
|
+
}) {
|
|
219
|
+
if (!setEndOfListElement) {
|
|
220
|
+
return null;
|
|
221
|
+
}
|
|
222
|
+
return /* @__PURE__ */ jsx(
|
|
223
|
+
"div",
|
|
224
|
+
{
|
|
225
|
+
ref: setEndOfListElement,
|
|
226
|
+
className: cn("col-span-full -mt-px flex justify-center text-body text-muted-foreground opacity-50", {
|
|
227
|
+
"py-4": isLoading
|
|
228
|
+
}),
|
|
229
|
+
children: isLoading && loadingText
|
|
230
|
+
}
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function DataListNoMatch({
|
|
235
|
+
message = "Nothing matches your search",
|
|
236
|
+
className,
|
|
237
|
+
...props
|
|
238
|
+
}) {
|
|
239
|
+
return /* @__PURE__ */ jsx(
|
|
240
|
+
"div",
|
|
241
|
+
{
|
|
242
|
+
className: cn(
|
|
243
|
+
"col-span-full flex flex-col items-center justify-center gap-2 rounded-lg bg-background py-8 text-muted-foreground",
|
|
244
|
+
className
|
|
245
|
+
),
|
|
246
|
+
...props,
|
|
247
|
+
children: /* @__PURE__ */ jsx(Txt, { children: message })
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function DataListPagination({ currentPage, hasMore, onNextPage, onPrevPage }) {
|
|
253
|
+
const showNavigation = typeof currentPage === "number" && currentPage > 0 || hasMore;
|
|
254
|
+
return /* @__PURE__ */ jsxs("div", { className: "col-span-full flex items-center justify-center gap-4 py-3 text-body text-muted-foreground", children: [
|
|
255
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
256
|
+
"Page ",
|
|
257
|
+
/* @__PURE__ */ jsx("b", { children: currentPage ? currentPage + 1 : "1" })
|
|
258
|
+
] }),
|
|
259
|
+
showNavigation && /* @__PURE__ */ jsxs("div", { className: "flex gap-4", children: [
|
|
260
|
+
typeof currentPage === "number" && currentPage > 0 && /* @__PURE__ */ jsx(Button, { type: "button", size: "sm", onClick: onPrevPage, icon: /* @__PURE__ */ jsx(ArrowLeftIcon, {}), children: "Previous" }),
|
|
261
|
+
hasMore && /* @__PURE__ */ jsx(Button, { type: "button", size: "sm", onClick: onNextPage, icon: /* @__PURE__ */ jsx(ArrowRightIcon, {}), children: "Next" })
|
|
262
|
+
] })
|
|
263
|
+
] });
|
|
264
|
+
}
|
|
265
|
+
|
|
196
266
|
const columnOrderSchema = z.array(z.number().int().nonnegative());
|
|
197
267
|
const getColumnOrderStorageKey = (id) => `mastra:data-list:column-order:${id}`;
|
|
198
268
|
function splitGridTracks(columns) {
|
|
@@ -395,6 +465,125 @@ function DataListBase({
|
|
|
395
465
|
);
|
|
396
466
|
}
|
|
397
467
|
|
|
468
|
+
const DataListRowWrapperContext = createContext(false);
|
|
469
|
+
function useDataListRowWrapperContext() {
|
|
470
|
+
return useContext(DataListRowWrapperContext);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
const DataListRowButton = forwardRef(
|
|
474
|
+
({ children, className, type = "button", colStart, colEnd, featured, variant, style, ...rest }, ref) => {
|
|
475
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
476
|
+
const fluidRef = useFluidMenuItemRef(ref);
|
|
477
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
478
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
479
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
480
|
+
return /* @__PURE__ */ jsx(
|
|
481
|
+
"button",
|
|
482
|
+
{
|
|
483
|
+
ref: isWrapped ? ref : fluidRef,
|
|
484
|
+
type,
|
|
485
|
+
className: cn(
|
|
486
|
+
...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles,
|
|
487
|
+
cellsClass,
|
|
488
|
+
"text-left",
|
|
489
|
+
className
|
|
490
|
+
),
|
|
491
|
+
style: resolvedStyle,
|
|
492
|
+
"data-featured": featured || void 0,
|
|
493
|
+
"data-variant": variant ?? "default",
|
|
494
|
+
...rest,
|
|
495
|
+
children
|
|
496
|
+
}
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
);
|
|
500
|
+
DataListRowButton.displayName = "DataListRowButton";
|
|
501
|
+
|
|
502
|
+
const DataListRowLink = forwardRef(
|
|
503
|
+
({ children, to, className, style, LinkComponent: Link = "a", colStart, colEnd, featured, variant, ...rest }, ref) => {
|
|
504
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
505
|
+
const fluidRef = useFluidMenuItemRef(ref);
|
|
506
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
507
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
508
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
509
|
+
return /* @__PURE__ */ jsx(
|
|
510
|
+
Link,
|
|
511
|
+
{
|
|
512
|
+
ref: isWrapped ? ref : fluidRef,
|
|
513
|
+
href: to,
|
|
514
|
+
className: cn(...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles, cellsClass, className),
|
|
515
|
+
style: resolvedStyle,
|
|
516
|
+
"data-featured": featured || void 0,
|
|
517
|
+
"data-variant": variant ?? "default",
|
|
518
|
+
...rest,
|
|
519
|
+
children
|
|
520
|
+
}
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
);
|
|
524
|
+
DataListRowLink.displayName = "DataListRowLink";
|
|
525
|
+
|
|
526
|
+
const DataListRowStatic = forwardRef(
|
|
527
|
+
({ children, className, colStart, colEnd, featured, variant, style, ...rest }, ref) => {
|
|
528
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
529
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
530
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
531
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
532
|
+
return /* @__PURE__ */ jsx(
|
|
533
|
+
"div",
|
|
534
|
+
{
|
|
535
|
+
ref,
|
|
536
|
+
className: cn(isWrapped ? "grid grid-cols-subgrid gap-4 px-3" : dataListRowStaticStyles, cellsClass, className),
|
|
537
|
+
style: resolvedStyle,
|
|
538
|
+
"data-featured": featured || void 0,
|
|
539
|
+
"data-variant": variant ?? "default",
|
|
540
|
+
...rest,
|
|
541
|
+
children
|
|
542
|
+
}
|
|
543
|
+
);
|
|
544
|
+
}
|
|
545
|
+
);
|
|
546
|
+
DataListRowStatic.displayName = "DataListRowStatic";
|
|
547
|
+
|
|
548
|
+
const DataListRowWrapper = forwardRef(
|
|
549
|
+
({ children, className, onSelectRow, onClick, onKeyDown, tabIndex, ...rest }, ref) => {
|
|
550
|
+
const isSelectable = onSelectRow !== void 0;
|
|
551
|
+
const rowRef = useFluidMenuItemRef(ref);
|
|
552
|
+
const handleClick = (event) => {
|
|
553
|
+
onClick?.(event);
|
|
554
|
+
if (!isSelectable || event.defaultPrevented) return;
|
|
555
|
+
onSelectRow();
|
|
556
|
+
};
|
|
557
|
+
const handleKeyDown = (event) => {
|
|
558
|
+
onKeyDown?.(event);
|
|
559
|
+
if (!isSelectable || event.defaultPrevented) return;
|
|
560
|
+
if (event.key === "Enter" && event.target === event.currentTarget) {
|
|
561
|
+
event.preventDefault();
|
|
562
|
+
onSelectRow();
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
return /* @__PURE__ */ jsx(DataListRowWrapperContext.Provider, { value: true, children: /* @__PURE__ */ jsx(
|
|
566
|
+
"div",
|
|
567
|
+
{
|
|
568
|
+
ref: rowRef,
|
|
569
|
+
tabIndex: tabIndex ?? (isSelectable ? 0 : void 0),
|
|
570
|
+
className: cn(
|
|
571
|
+
"grid grid-cols-subgrid gap-0",
|
|
572
|
+
...dataListRowOuterStyles,
|
|
573
|
+
...dataListRowStateStyles,
|
|
574
|
+
isSelectable && cn("cursor-pointer", focusRingInset),
|
|
575
|
+
className
|
|
576
|
+
),
|
|
577
|
+
onClick: handleClick,
|
|
578
|
+
onKeyDown: handleKeyDown,
|
|
579
|
+
...rest,
|
|
580
|
+
children
|
|
581
|
+
}
|
|
582
|
+
) });
|
|
583
|
+
}
|
|
584
|
+
);
|
|
585
|
+
DataListRowWrapper.displayName = "DataListRowWrapper";
|
|
586
|
+
|
|
398
587
|
const DataListTopCell = forwardRef(
|
|
399
588
|
({ children, className, as, sticky, ...rest }, ref) => {
|
|
400
589
|
const Component = as || "span";
|
|
@@ -513,6 +702,90 @@ function DataListTopSelectCell({ checked, onToggle, ...rest }) {
|
|
|
513
702
|
);
|
|
514
703
|
}
|
|
515
704
|
|
|
705
|
+
const sortIcons = {
|
|
706
|
+
asc: ArrowUp,
|
|
707
|
+
desc: ArrowDown,
|
|
708
|
+
none: ArrowUpDown
|
|
709
|
+
};
|
|
710
|
+
const sortLabels = {
|
|
711
|
+
asc: "ascending",
|
|
712
|
+
desc: "descending"
|
|
713
|
+
};
|
|
714
|
+
const sortAnimations = {
|
|
715
|
+
asc: "animate-sort-arrow-up",
|
|
716
|
+
desc: "animate-sort-arrow-down"
|
|
717
|
+
};
|
|
718
|
+
const sortTooltips = {
|
|
719
|
+
asc: "Asc",
|
|
720
|
+
desc: "Desc",
|
|
721
|
+
none: "Sort"
|
|
722
|
+
};
|
|
723
|
+
function DataListSortableTopCell({
|
|
724
|
+
children,
|
|
725
|
+
sortKey,
|
|
726
|
+
sort,
|
|
727
|
+
onSortChange,
|
|
728
|
+
align = "start",
|
|
729
|
+
className,
|
|
730
|
+
...props
|
|
731
|
+
}) {
|
|
732
|
+
const next = sort === "asc" ? "desc" : "asc";
|
|
733
|
+
const SortIcon = sortIcons[sort ?? "none"];
|
|
734
|
+
const label = typeof children === "string" ? children : sortKey;
|
|
735
|
+
const current = sort ? `sorted ${sortLabels[sort]}` : "not sorted";
|
|
736
|
+
return /* @__PURE__ */ jsxs(
|
|
737
|
+
DataListTopCell,
|
|
738
|
+
{
|
|
739
|
+
"data-sort": sort ?? "none",
|
|
740
|
+
className: cn("gap-1 overflow-visible", align === "end" && "flex-row-reverse", className),
|
|
741
|
+
...props,
|
|
742
|
+
children: [
|
|
743
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children }),
|
|
744
|
+
/* @__PURE__ */ jsx(
|
|
745
|
+
Button,
|
|
746
|
+
{
|
|
747
|
+
variant: "ghost",
|
|
748
|
+
size: "icon-sm",
|
|
749
|
+
"aria-label": `${label}, ${current}, sort ${sortLabels[next]}`,
|
|
750
|
+
tooltip: sortTooltips[sort ?? "none"],
|
|
751
|
+
onClick: () => onSortChange(next, sortKey),
|
|
752
|
+
className: cn("shrink-0", sort ? "text-foreground" : "text-muted-foreground"),
|
|
753
|
+
children: /* @__PURE__ */ jsx(SortIcon, { className: sort && sortAnimations[sort] }, sort ?? "none")
|
|
754
|
+
}
|
|
755
|
+
)
|
|
756
|
+
]
|
|
757
|
+
}
|
|
758
|
+
);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
function DataListSpacer({ height }) {
|
|
762
|
+
if (height <= 0) return null;
|
|
763
|
+
return /* @__PURE__ */ jsx("div", { className: "col-span-full", style: { height } });
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
const DataListSubheader = forwardRef(
|
|
767
|
+
({ children, className, ...rest }, ref) => {
|
|
768
|
+
return /* @__PURE__ */ jsx(
|
|
769
|
+
"div",
|
|
770
|
+
{
|
|
771
|
+
ref,
|
|
772
|
+
className: cn(
|
|
773
|
+
"data-list-subheader relative isolate col-span-full px-3 py-2 text-subheading text-muted-foreground",
|
|
774
|
+
"bg-(--data-list-background)",
|
|
775
|
+
className
|
|
776
|
+
),
|
|
777
|
+
...rest,
|
|
778
|
+
children
|
|
779
|
+
}
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
);
|
|
783
|
+
DataListSubheader.displayName = "DataListSubheader";
|
|
784
|
+
|
|
785
|
+
function DataListSubHeading({ children, className }) {
|
|
786
|
+
return /* @__PURE__ */ jsx(Txt, { as: "span", variant: "caption", tone: "faint", className, children });
|
|
787
|
+
}
|
|
788
|
+
|
|
516
789
|
function DataListTop({ children, className, hasLeadingCell, ...props }) {
|
|
517
790
|
return /* @__PURE__ */ jsx(
|
|
518
791
|
"div",
|
|
@@ -528,5 +801,59 @@ function DataListTop({ children, className, hasLeadingCell, ...props }) {
|
|
|
528
801
|
);
|
|
529
802
|
}
|
|
530
803
|
|
|
531
|
-
|
|
532
|
-
|
|
804
|
+
const DataListTopCells = forwardRef(
|
|
805
|
+
({ children, className, flushLeft, colStart, style, ...rest }, ref) => {
|
|
806
|
+
return /* @__PURE__ */ jsx(
|
|
807
|
+
"div",
|
|
808
|
+
{
|
|
809
|
+
ref,
|
|
810
|
+
className: cn(
|
|
811
|
+
"pointer-events-none grid grid-cols-subgrid gap-4 px-3 [&>*]:pointer-events-auto",
|
|
812
|
+
!colStart && "data-list-cells col-span-full",
|
|
813
|
+
flushLeft && "pl-0!",
|
|
814
|
+
className
|
|
815
|
+
),
|
|
816
|
+
style: colStart ? { ...style, gridColumn: `${colStart} / -1` } : style,
|
|
817
|
+
...rest,
|
|
818
|
+
children
|
|
819
|
+
}
|
|
820
|
+
);
|
|
821
|
+
}
|
|
822
|
+
);
|
|
823
|
+
DataListTopCells.displayName = "DataListTopCells";
|
|
824
|
+
|
|
825
|
+
const DataList = Object.assign(DataListRoot, {
|
|
826
|
+
Top: DataListTop,
|
|
827
|
+
TopCells: DataListTopCells,
|
|
828
|
+
TopCell: DataListTopCell,
|
|
829
|
+
SortableTopCell: DataListSortableTopCell,
|
|
830
|
+
TopCellWithTooltip: DataListTopCellWithTooltip,
|
|
831
|
+
TopCellSmart: DataListTopCellSmart,
|
|
832
|
+
RowWrapper: DataListRowWrapper,
|
|
833
|
+
RowButton: DataListRowButton,
|
|
834
|
+
RowLink: DataListRowLink,
|
|
835
|
+
RowStatic: DataListRowStatic,
|
|
836
|
+
Cell: DataListCell,
|
|
837
|
+
ActionsCell: DataListActionsCell,
|
|
838
|
+
TextCell: DataListTextCell,
|
|
839
|
+
NameCell: DataListNameCell,
|
|
840
|
+
DescriptionCell: DataListDescriptionCell,
|
|
841
|
+
IdCell: DataListIdCell,
|
|
842
|
+
RowHeaderCell: DataListRowHeaderCell,
|
|
843
|
+
NumberCell: DataListNumberCell,
|
|
844
|
+
DateCell: DataListDateCell,
|
|
845
|
+
CreatedCell: DataListCreatedCell,
|
|
846
|
+
TimeCell: DataListTimeCell,
|
|
847
|
+
SelectCell: DataListSelectCell,
|
|
848
|
+
TopSelectCell: DataListTopSelectCell,
|
|
849
|
+
NoMatch: DataListNoMatch,
|
|
850
|
+
Group: DataListGroup,
|
|
851
|
+
Subheader: DataListSubheader,
|
|
852
|
+
SubHeading: DataListSubHeading,
|
|
853
|
+
Spacer: DataListSpacer,
|
|
854
|
+
NextPageLoading: DataListNextPageLoading,
|
|
855
|
+
Pagination: DataListPagination
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
export { DataListRoot as D, DataListTop as a, DataListTopCell as b, DataListCell as c, dataListRowOuterStyles as d, DataList as e, DataListTextCell as f, DataListNextPageLoading as g, DataListTimeCell as h, DataListDateCell as i, DataListNoMatch as j, DataListSpacer as k, DataListRowLink as l, DataListRowButton as m, DataListRowWrapper as n, DataListTopCellSmart as o, DataListTopCellWithTooltip as p, DataListSortableTopCell as q, DataListCreatedCell as r, splitColumns as s, DataListIdCell as t, DataListSubHeading as u, DataListSubheader as v };
|
|
859
|
+
//# sourceMappingURL=data-list-DdCZZctL.js.map
|