@mastra/playground-ui 65.0.0-alpha.10 → 65.0.0-alpha.11
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/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-Cu4C2Z07.js → data-list-DATsbxcn.js} +332 -5
- package/dist/data-list-DATsbxcn.js.map +1 -0
- package/dist/{data-list-top-DJh08vFA.cjs → data-list-DlXU1PLQ.cjs} +339 -13
- package/dist/data-list-DlXU1PLQ.cjs.map +1 -0
- package/dist/{data-list-skeleton-sdcaabdX.cjs → data-list-skeleton-DY0F40WQ.cjs} +6 -6
- package/dist/{data-list-skeleton-sdcaabdX.cjs.map → data-list-skeleton-DY0F40WQ.cjs.map} +1 -1
- package/dist/{data-list-skeleton-CiilOVAl.js → data-list-skeleton-Drzrws2O.js} +2 -2
- package/dist/{data-list-skeleton-CiilOVAl.js.map → data-list-skeleton-Drzrws2O.js.map} +1 -1
- package/dist/domains/chat/tools/badges/workflow-badge.cjs.js +2 -1
- package/dist/domains/chat/tools/badges/workflow-badge.cjs.js.map +1 -1
- package/dist/domains/chat/tools/badges/workflow-badge.es.js +2 -1
- package/dist/domains/chat/tools/badges/workflow-badge.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/trace-as-item-dialog.cjs.js +0 -1
- 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 +0 -1
- package/dist/domains/observability/components/trace-as-item-dialog.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 +0 -1
- 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 +0 -1
- package/dist/domains/traces/components/thread-view-by-trace.es.js.map +1 -1
- package/dist/domains/traces/components/trace-data-panel.cjs.js +2 -1
- package/dist/domains/traces/components/trace-data-panel.cjs.js.map +1 -1
- package/dist/domains/traces/components/trace-data-panel.es.js +2 -1
- package/dist/domains/traces/components/trace-data-panel.es.js.map +1 -1
- package/dist/domains/traces/components/trace-error-cell.cjs.js +3 -1
- package/dist/domains/traces/components/trace-error-cell.cjs.js.map +1 -1
- package/dist/domains/traces/components/trace-error-cell.es.js +3 -1
- package/dist/domains/traces/components/trace-error-cell.es.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-panel.cjs.js +0 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-panel.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-panel.es.js +0 -1
- package/dist/domains/traces/components/traces-explorer/traces-explorer-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/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-DCj8Pj77.cjs → logs-data-list-DEZuSjqt.cjs} +21 -22
- package/dist/{logs-data-list-DCj8Pj77.cjs.map → logs-data-list-DEZuSjqt.cjs.map} +1 -1
- package/dist/{logs-data-list-VEEruqHO.js → logs-data-list-eoGKicgL.js} +2 -3
- package/dist/{logs-data-list-VEEruqHO.js.map → logs-data-list-eoGKicgL.js.map} +1 -1
- package/dist/{traces-data-list-DgmSuEKb.js → traces-data-list-CcxqCHkj.js} +2 -4
- package/dist/{traces-data-list-DgmSuEKb.js.map → traces-data-list-CcxqCHkj.js.map} +1 -1
- package/dist/{traces-data-list-CF_LFvnf.cjs → traces-data-list-mCKFilYu.cjs} +18 -20
- package/dist/{traces-data-list-CF_LFvnf.cjs.map → traces-data-list-mCKFilYu.cjs.map} +1 -1
- package/package.json +8 -8
- package/dist/data-list-CD_lls8O.js +0 -138
- package/dist/data-list-CD_lls8O.js.map +0 -1
- package/dist/data-list-CGD9hzcp.cjs +0 -142
- package/dist/data-list-CGD9hzcp.cjs.map +0 -1
- package/dist/data-list-spacer-DpXJrZe1.js +0 -209
- package/dist/data-list-spacer-DpXJrZe1.js.map +0 -1
- package/dist/data-list-spacer-Dpoj55mv.cjs +0 -218
- package/dist/data-list-spacer-Dpoj55mv.cjs.map +0 -1
- package/dist/data-list-top-Cu4C2Z07.js.map +0 -1
- package/dist/data-list-top-DJh08vFA.cjs.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-DlXU1PLQ.cjs');
|
|
6
|
+
const dataListSkeleton = require('../data-list-skeleton-DY0F40WQ.cjs');
|
|
7
7
|
const jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
const dataListSpacer = require('../data-list-spacer-Dpoj55mv.cjs');
|
|
9
|
-
const dataListTop = require('../data-list-top-DJh08vFA.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-mCKFilYu.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 { D as DataListCell, g as DataListNextPageLoading, j as DataListNoMatch, m as DataListRowButton, q as DataListSortableTopCell, c as DataListTopCell, b as DataListTop, a as DataListRoot } from '../data-list-DATsbxcn.js';
|
|
2
|
+
export { e as DataList } from '../data-list-DATsbxcn.js';
|
|
3
|
+
export { D as DataListSkeleton, a as DataListSkeletonRows } from '../data-list-skeleton-Drzrws2O.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-DpXJrZe1.js';
|
|
5
|
-
import { D as DataListCell, c as DataListTopCell, b as DataListTop, a as DataListRoot } from '../data-list-top-Cu4C2Z07.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-CcxqCHkj.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-C4I05uT4.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-DlXU1PLQ.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-D8a5EWJ5.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-DATsbxcn.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-DEZuSjqt.cjs');
|
|
6
|
+
require('../data-list-DlXU1PLQ.cjs');
|
|
7
|
+
const dataListSkeleton = require('../data-list-skeleton-DY0F40WQ.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-eoGKicgL.js';
|
|
2
|
+
import '../data-list-DATsbxcn.js';
|
|
3
|
+
export { D as LogsDataListSkeleton } from '../data-list-skeleton-Drzrws2O.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-D8a5EWJ5.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) {
|
|
@@ -388,6 +458,125 @@ function DataListBase({
|
|
|
388
458
|
);
|
|
389
459
|
}
|
|
390
460
|
|
|
461
|
+
const DataListRowWrapperContext = createContext(false);
|
|
462
|
+
function useDataListRowWrapperContext() {
|
|
463
|
+
return useContext(DataListRowWrapperContext);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
const DataListRowButton = forwardRef(
|
|
467
|
+
({ children, className, type = "button", colStart, colEnd, featured, variant, style, ...rest }, ref) => {
|
|
468
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
469
|
+
const fluidRef = useFluidMenuItemRef(ref);
|
|
470
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
471
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
472
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
473
|
+
return /* @__PURE__ */ jsx(
|
|
474
|
+
"button",
|
|
475
|
+
{
|
|
476
|
+
ref: isWrapped ? ref : fluidRef,
|
|
477
|
+
type,
|
|
478
|
+
className: cn(
|
|
479
|
+
...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles,
|
|
480
|
+
cellsClass,
|
|
481
|
+
"text-left",
|
|
482
|
+
className
|
|
483
|
+
),
|
|
484
|
+
style: resolvedStyle,
|
|
485
|
+
"data-featured": featured || void 0,
|
|
486
|
+
"data-variant": variant ?? "default",
|
|
487
|
+
...rest,
|
|
488
|
+
children
|
|
489
|
+
}
|
|
490
|
+
);
|
|
491
|
+
}
|
|
492
|
+
);
|
|
493
|
+
DataListRowButton.displayName = "DataListRowButton";
|
|
494
|
+
|
|
495
|
+
const DataListRowLink = forwardRef(
|
|
496
|
+
({ children, to, className, style, LinkComponent: Link = "a", colStart, colEnd, featured, variant, ...rest }, ref) => {
|
|
497
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
498
|
+
const fluidRef = useFluidMenuItemRef(ref);
|
|
499
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
500
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
501
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
502
|
+
return /* @__PURE__ */ jsx(
|
|
503
|
+
Link,
|
|
504
|
+
{
|
|
505
|
+
ref: isWrapped ? ref : fluidRef,
|
|
506
|
+
href: to,
|
|
507
|
+
className: cn(...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles, cellsClass, className),
|
|
508
|
+
style: resolvedStyle,
|
|
509
|
+
"data-featured": featured || void 0,
|
|
510
|
+
"data-variant": variant ?? "default",
|
|
511
|
+
...rest,
|
|
512
|
+
children
|
|
513
|
+
}
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
);
|
|
517
|
+
DataListRowLink.displayName = "DataListRowLink";
|
|
518
|
+
|
|
519
|
+
const DataListRowStatic = forwardRef(
|
|
520
|
+
({ children, className, colStart, colEnd, featured, variant, style, ...rest }, ref) => {
|
|
521
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
522
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
523
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
524
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
525
|
+
return /* @__PURE__ */ jsx(
|
|
526
|
+
"div",
|
|
527
|
+
{
|
|
528
|
+
ref,
|
|
529
|
+
className: cn(isWrapped ? "grid grid-cols-subgrid gap-4 px-3" : dataListRowStaticStyles, cellsClass, className),
|
|
530
|
+
style: resolvedStyle,
|
|
531
|
+
"data-featured": featured || void 0,
|
|
532
|
+
"data-variant": variant ?? "default",
|
|
533
|
+
...rest,
|
|
534
|
+
children
|
|
535
|
+
}
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
);
|
|
539
|
+
DataListRowStatic.displayName = "DataListRowStatic";
|
|
540
|
+
|
|
541
|
+
const DataListRowWrapper = forwardRef(
|
|
542
|
+
({ children, className, onSelectRow, onClick, onKeyDown, tabIndex, ...rest }, ref) => {
|
|
543
|
+
const isSelectable = onSelectRow !== void 0;
|
|
544
|
+
const rowRef = useFluidMenuItemRef(ref);
|
|
545
|
+
const handleClick = (event) => {
|
|
546
|
+
onClick?.(event);
|
|
547
|
+
if (!isSelectable || event.defaultPrevented) return;
|
|
548
|
+
onSelectRow();
|
|
549
|
+
};
|
|
550
|
+
const handleKeyDown = (event) => {
|
|
551
|
+
onKeyDown?.(event);
|
|
552
|
+
if (!isSelectable || event.defaultPrevented) return;
|
|
553
|
+
if (event.key === "Enter" && event.target === event.currentTarget) {
|
|
554
|
+
event.preventDefault();
|
|
555
|
+
onSelectRow();
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
return /* @__PURE__ */ jsx(DataListRowWrapperContext.Provider, { value: true, children: /* @__PURE__ */ jsx(
|
|
559
|
+
"div",
|
|
560
|
+
{
|
|
561
|
+
ref: rowRef,
|
|
562
|
+
tabIndex: tabIndex ?? (isSelectable ? 0 : void 0),
|
|
563
|
+
className: cn(
|
|
564
|
+
"grid grid-cols-subgrid gap-0",
|
|
565
|
+
...dataListRowOuterStyles,
|
|
566
|
+
...dataListRowStateStyles,
|
|
567
|
+
isSelectable && cn("cursor-pointer", focusRingInset),
|
|
568
|
+
className
|
|
569
|
+
),
|
|
570
|
+
onClick: handleClick,
|
|
571
|
+
onKeyDown: handleKeyDown,
|
|
572
|
+
...rest,
|
|
573
|
+
children
|
|
574
|
+
}
|
|
575
|
+
) });
|
|
576
|
+
}
|
|
577
|
+
);
|
|
578
|
+
DataListRowWrapper.displayName = "DataListRowWrapper";
|
|
579
|
+
|
|
391
580
|
const DataListTopCell = forwardRef(
|
|
392
581
|
({ children, className, as, sticky, ...rest }, ref) => {
|
|
393
582
|
const Component = as || "span";
|
|
@@ -506,6 +695,90 @@ function DataListTopSelectCell({ checked, onToggle, ...rest }) {
|
|
|
506
695
|
);
|
|
507
696
|
}
|
|
508
697
|
|
|
698
|
+
const sortIcons = {
|
|
699
|
+
asc: ArrowUp,
|
|
700
|
+
desc: ArrowDown,
|
|
701
|
+
none: ArrowUpDown
|
|
702
|
+
};
|
|
703
|
+
const sortLabels = {
|
|
704
|
+
asc: "ascending",
|
|
705
|
+
desc: "descending"
|
|
706
|
+
};
|
|
707
|
+
const sortAnimations = {
|
|
708
|
+
asc: "animate-sort-arrow-up",
|
|
709
|
+
desc: "animate-sort-arrow-down"
|
|
710
|
+
};
|
|
711
|
+
const sortTooltips = {
|
|
712
|
+
asc: "Asc",
|
|
713
|
+
desc: "Desc",
|
|
714
|
+
none: "Sort"
|
|
715
|
+
};
|
|
716
|
+
function DataListSortableTopCell({
|
|
717
|
+
children,
|
|
718
|
+
sortKey,
|
|
719
|
+
sort,
|
|
720
|
+
onSortChange,
|
|
721
|
+
align = "start",
|
|
722
|
+
className,
|
|
723
|
+
...props
|
|
724
|
+
}) {
|
|
725
|
+
const next = sort === "asc" ? "desc" : "asc";
|
|
726
|
+
const SortIcon = sortIcons[sort ?? "none"];
|
|
727
|
+
const label = typeof children === "string" ? children : sortKey;
|
|
728
|
+
const current = sort ? `sorted ${sortLabels[sort]}` : "not sorted";
|
|
729
|
+
return /* @__PURE__ */ jsxs(
|
|
730
|
+
DataListTopCell,
|
|
731
|
+
{
|
|
732
|
+
"data-sort": sort ?? "none",
|
|
733
|
+
className: cn("gap-1 overflow-visible", align === "end" && "flex-row-reverse", className),
|
|
734
|
+
...props,
|
|
735
|
+
children: [
|
|
736
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children }),
|
|
737
|
+
/* @__PURE__ */ jsx(
|
|
738
|
+
Button,
|
|
739
|
+
{
|
|
740
|
+
variant: "ghost",
|
|
741
|
+
size: "icon-sm",
|
|
742
|
+
"aria-label": `${label}, ${current}, sort ${sortLabels[next]}`,
|
|
743
|
+
tooltip: sortTooltips[sort ?? "none"],
|
|
744
|
+
onClick: () => onSortChange(next, sortKey),
|
|
745
|
+
className: cn("shrink-0", sort ? "text-foreground" : "text-muted-foreground"),
|
|
746
|
+
children: /* @__PURE__ */ jsx(SortIcon, { className: sort && sortAnimations[sort] }, sort ?? "none")
|
|
747
|
+
}
|
|
748
|
+
)
|
|
749
|
+
]
|
|
750
|
+
}
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
function DataListSpacer({ height }) {
|
|
755
|
+
if (height <= 0) return null;
|
|
756
|
+
return /* @__PURE__ */ jsx("div", { className: "col-span-full", style: { height } });
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
const DataListSubheader = forwardRef(
|
|
760
|
+
({ children, className, ...rest }, ref) => {
|
|
761
|
+
return /* @__PURE__ */ jsx(
|
|
762
|
+
"div",
|
|
763
|
+
{
|
|
764
|
+
ref,
|
|
765
|
+
className: cn(
|
|
766
|
+
"data-list-subheader relative isolate col-span-full px-3 py-2 text-subheading text-muted-foreground",
|
|
767
|
+
"bg-(--data-list-background)",
|
|
768
|
+
className
|
|
769
|
+
),
|
|
770
|
+
...rest,
|
|
771
|
+
children
|
|
772
|
+
}
|
|
773
|
+
);
|
|
774
|
+
}
|
|
775
|
+
);
|
|
776
|
+
DataListSubheader.displayName = "DataListSubheader";
|
|
777
|
+
|
|
778
|
+
function DataListSubHeading({ children, className }) {
|
|
779
|
+
return /* @__PURE__ */ jsx(Txt, { as: "span", variant: "caption", tone: "faint", className, children });
|
|
780
|
+
}
|
|
781
|
+
|
|
509
782
|
function DataListTop({ children, className, hasLeadingCell, ...props }) {
|
|
510
783
|
return /* @__PURE__ */ jsx(
|
|
511
784
|
"div",
|
|
@@ -521,5 +794,59 @@ function DataListTop({ children, className, hasLeadingCell, ...props }) {
|
|
|
521
794
|
);
|
|
522
795
|
}
|
|
523
796
|
|
|
524
|
-
|
|
525
|
-
|
|
797
|
+
const DataListTopCells = forwardRef(
|
|
798
|
+
({ children, className, flushLeft, colStart, style, ...rest }, ref) => {
|
|
799
|
+
return /* @__PURE__ */ jsx(
|
|
800
|
+
"div",
|
|
801
|
+
{
|
|
802
|
+
ref,
|
|
803
|
+
className: cn(
|
|
804
|
+
"pointer-events-none grid grid-cols-subgrid gap-4 px-3 [&>*]:pointer-events-auto",
|
|
805
|
+
!colStart && "data-list-cells col-span-full",
|
|
806
|
+
flushLeft && "pl-0!",
|
|
807
|
+
className
|
|
808
|
+
),
|
|
809
|
+
style: colStart ? { ...style, gridColumn: `${colStart} / -1` } : style,
|
|
810
|
+
...rest,
|
|
811
|
+
children
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
);
|
|
816
|
+
DataListTopCells.displayName = "DataListTopCells";
|
|
817
|
+
|
|
818
|
+
const DataList = Object.assign(DataListRoot, {
|
|
819
|
+
Top: DataListTop,
|
|
820
|
+
TopCells: DataListTopCells,
|
|
821
|
+
TopCell: DataListTopCell,
|
|
822
|
+
SortableTopCell: DataListSortableTopCell,
|
|
823
|
+
TopCellWithTooltip: DataListTopCellWithTooltip,
|
|
824
|
+
TopCellSmart: DataListTopCellSmart,
|
|
825
|
+
RowWrapper: DataListRowWrapper,
|
|
826
|
+
RowButton: DataListRowButton,
|
|
827
|
+
RowLink: DataListRowLink,
|
|
828
|
+
RowStatic: DataListRowStatic,
|
|
829
|
+
Cell: DataListCell,
|
|
830
|
+
ActionsCell: DataListActionsCell,
|
|
831
|
+
TextCell: DataListTextCell,
|
|
832
|
+
NameCell: DataListNameCell,
|
|
833
|
+
DescriptionCell: DataListDescriptionCell,
|
|
834
|
+
IdCell: DataListIdCell,
|
|
835
|
+
RowHeaderCell: DataListRowHeaderCell,
|
|
836
|
+
NumberCell: DataListNumberCell,
|
|
837
|
+
DateCell: DataListDateCell,
|
|
838
|
+
CreatedCell: DataListCreatedCell,
|
|
839
|
+
TimeCell: DataListTimeCell,
|
|
840
|
+
SelectCell: DataListSelectCell,
|
|
841
|
+
TopSelectCell: DataListTopSelectCell,
|
|
842
|
+
NoMatch: DataListNoMatch,
|
|
843
|
+
Group: DataListGroup,
|
|
844
|
+
Subheader: DataListSubheader,
|
|
845
|
+
SubHeading: DataListSubHeading,
|
|
846
|
+
Spacer: DataListSpacer,
|
|
847
|
+
NextPageLoading: DataListNextPageLoading,
|
|
848
|
+
Pagination: DataListPagination
|
|
849
|
+
});
|
|
850
|
+
|
|
851
|
+
export { DataListCell as D, DataListRoot as a, DataListTop as b, DataListTopCell 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 };
|
|
852
|
+
//# sourceMappingURL=data-list-DATsbxcn.js.map
|