@mastra/playground-ui 62.0.0 → 62.0.1-alpha.0
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-BJCC62oy.js → data-list-DvbAODUM.js} +332 -5
- package/dist/data-list-DvbAODUM.js.map +1 -0
- package/dist/{data-list-top-Ds-NWyPO.cjs → data-list-_yDPF5wR.cjs} +339 -13
- package/dist/data-list-_yDPF5wR.cjs.map +1 -0
- package/dist/{data-list-skeleton-BmsDYJrA.js → data-list-skeleton-DLVW7OFS.js} +2 -2
- package/dist/{data-list-skeleton-BmsDYJrA.js.map → data-list-skeleton-DLVW7OFS.js.map} +1 -1
- package/dist/{data-list-skeleton-CfVsXhx1.cjs → data-list-skeleton-maUWF7Ri.cjs} +6 -6
- package/dist/{data-list-skeleton-CfVsXhx1.cjs.map → data-list-skeleton-maUWF7Ri.cjs.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/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/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-DfuVMd6f.cjs → logs-data-list-Bf_vIsFb.cjs} +21 -22
- package/dist/{logs-data-list-DfuVMd6f.cjs.map → logs-data-list-Bf_vIsFb.cjs.map} +1 -1
- package/dist/{logs-data-list-C262Be3o.js → logs-data-list-Dc1CNVBT.js} +2 -3
- package/dist/{logs-data-list-C262Be3o.js.map → logs-data-list-Dc1CNVBT.js.map} +1 -1
- package/dist/{traces-data-list-_mFOMw0U.js → traces-data-list-Cz8YHTOD.js} +2 -4
- package/dist/{traces-data-list-_mFOMw0U.js.map → traces-data-list-Cz8YHTOD.js.map} +1 -1
- package/dist/{traces-data-list-Cf_PpmSN.cjs → traces-data-list-DaFA1Ccg.cjs} +17 -19
- package/dist/{traces-data-list-Cf_PpmSN.cjs.map → traces-data-list-DaFA1Ccg.cjs.map} +1 -1
- package/package.json +8 -8
- package/dist/data-list-DkVOwk8l.cjs +0 -142
- package/dist/data-list-DkVOwk8l.cjs.map +0 -1
- package/dist/data-list-Dv2lP-dU.js +0 -138
- package/dist/data-list-Dv2lP-dU.js.map +0 -1
- package/dist/data-list-spacer-DEMquKp9.js +0 -209
- package/dist/data-list-spacer-DEMquKp9.js.map +0 -1
- package/dist/data-list-spacer-pXP8xDlg.cjs +0 -218
- package/dist/data-list-spacer-pXP8xDlg.cjs.map +0 -1
- package/dist/data-list-top-BJCC62oy.js.map +0 -1
- package/dist/data-list-top-Ds-NWyPO.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-_yDPF5wR.cjs');
|
|
6
|
+
const dataListSkeleton = require('../data-list-skeleton-maUWF7Ri.cjs');
|
|
7
7
|
const jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
const dataListSpacer = require('../data-list-spacer-pXP8xDlg.cjs');
|
|
9
|
-
const dataListTop = require('../data-list-top-Ds-NWyPO.cjs');
|
|
10
8
|
const Txt = require('../Txt-DXjXpX9r.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-DaFA1Ccg.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-DvbAODUM.js';
|
|
2
|
+
export { e as DataList } from '../data-list-DvbAODUM.js';
|
|
3
|
+
export { D as DataListSkeleton, a as DataListSkeletonRows } from '../data-list-skeleton-DLVW7OFS.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-DEMquKp9.js';
|
|
5
|
-
import { c as DataListCell, b as DataListTopCell, a as DataListTop, D as DataListRoot } from '../data-list-top-BJCC62oy.js';
|
|
6
5
|
import { T as Txt } from '../Txt-BuzYj7Vy.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-Cz8YHTOD.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-BfZzgZrA.cjs');
|
|
|
10
10
|
const Notice = require('../Notice-c8dMiAtZ.cjs');
|
|
11
11
|
const envFile = require('../env-file-BU2hStkm.cjs');
|
|
12
12
|
const Txt = require('../Txt-DXjXpX9r.cjs');
|
|
13
|
-
const dataList = require('../data-list-
|
|
13
|
+
const dataList = require('../data-list-_yDPF5wR.cjs');
|
|
14
14
|
const hooks_useCopyToClipboard = require('../hooks/use-copy-to-clipboard.cjs.js');
|
|
15
15
|
const field = require('../field-D1SVMPMz.cjs');
|
|
16
16
|
require('../field-control-aria-WzMGs0A4.cjs');
|
|
@@ -6,7 +6,7 @@ import { B as Button } from '../Button-C8QDEN9j.js';
|
|
|
6
6
|
import { N as Notice } from '../Notice-Wy1grdLu.js';
|
|
7
7
|
import { D as DUPLICATE_ENVIRONMENT_VARIABLE_MESSAGE } from '../env-file-BITYowCx.js';
|
|
8
8
|
import { T as Txt } from '../Txt-BuzYj7Vy.js';
|
|
9
|
-
import {
|
|
9
|
+
import { e as DataList } from '../data-list-DvbAODUM.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-B89BEZg4.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-Bf_vIsFb.cjs');
|
|
6
|
+
require('../data-list-_yDPF5wR.cjs');
|
|
7
|
+
const dataListSkeleton = require('../data-list-skeleton-maUWF7Ri.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-Dc1CNVBT.js';
|
|
2
|
+
import '../data-list-DvbAODUM.js';
|
|
3
|
+
export { D as LogsDataListSkeleton } from '../data-list-skeleton-DLVW7OFS.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-mmR3rD2j.js';
|
|
4
5
|
import { c as cn } from './cn-coERSHz5.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-BuzYj7Vy.js';
|
|
10
|
+
import { ArrowLeftIcon, ArrowRightIcon, ArrowUpDown, ArrowDown, ArrowUp } from 'lucide-react';
|
|
11
|
+
import { B as Button } from './Button-C8QDEN9j.js';
|
|
7
12
|
import { z } from 'zod/v4';
|
|
8
13
|
import { S as ScrollArea, a as ScrollAreaViewport } from './scroll-area-BywIlj3F.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-CCZcMbgy.js';
|
|
14
18
|
|
|
15
19
|
const dataListRowOuterStyles = [
|
|
@@ -190,6 +194,72 @@ function DataListTimeCell({ timestamp }) {
|
|
|
190
194
|
return /* @__PURE__ */ jsx(DataListCell, { className: "flex text-muted-foreground tabular-nums", children: formatTimestampPrecise(timestamp, { withDate: false }) });
|
|
191
195
|
}
|
|
192
196
|
|
|
197
|
+
const DataListGroup = forwardRef(({ className, ...rest }, ref) => {
|
|
198
|
+
return /* @__PURE__ */ jsx(
|
|
199
|
+
"section",
|
|
200
|
+
{
|
|
201
|
+
ref,
|
|
202
|
+
...{ [GROUP_ATTR]: "" },
|
|
203
|
+
className: cn("col-span-full grid grid-cols-subgrid gap-y-px [&>:not(.data-list-row)]:col-span-full", className),
|
|
204
|
+
...rest
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
});
|
|
208
|
+
DataListGroup.displayName = "DataListGroup";
|
|
209
|
+
|
|
210
|
+
function DataListNextPageLoading({
|
|
211
|
+
isLoading,
|
|
212
|
+
setEndOfListElement,
|
|
213
|
+
hasMore,
|
|
214
|
+
loadingText = "Loading more data..."
|
|
215
|
+
}) {
|
|
216
|
+
if (!setEndOfListElement) {
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
return /* @__PURE__ */ jsx(
|
|
220
|
+
"div",
|
|
221
|
+
{
|
|
222
|
+
ref: setEndOfListElement,
|
|
223
|
+
className: cn("col-span-full -mt-px flex justify-center text-body text-muted-foreground opacity-50", {
|
|
224
|
+
"py-4": isLoading
|
|
225
|
+
}),
|
|
226
|
+
children: isLoading && loadingText
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function DataListNoMatch({
|
|
232
|
+
message = "Nothing matches your search",
|
|
233
|
+
className,
|
|
234
|
+
...props
|
|
235
|
+
}) {
|
|
236
|
+
return /* @__PURE__ */ jsx(
|
|
237
|
+
"div",
|
|
238
|
+
{
|
|
239
|
+
className: cn(
|
|
240
|
+
"col-span-full flex flex-col items-center justify-center gap-2 rounded-lg bg-background py-8 text-muted-foreground",
|
|
241
|
+
className
|
|
242
|
+
),
|
|
243
|
+
...props,
|
|
244
|
+
children: /* @__PURE__ */ jsx(Txt, { children: message })
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function DataListPagination({ currentPage, hasMore, onNextPage, onPrevPage }) {
|
|
250
|
+
const showNavigation = typeof currentPage === "number" && currentPage > 0 || hasMore;
|
|
251
|
+
return /* @__PURE__ */ jsxs("div", { className: "col-span-full flex items-center justify-center gap-4 py-3 text-body text-muted-foreground", children: [
|
|
252
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
253
|
+
"Page ",
|
|
254
|
+
/* @__PURE__ */ jsx("b", { children: currentPage ? currentPage + 1 : "1" })
|
|
255
|
+
] }),
|
|
256
|
+
showNavigation && /* @__PURE__ */ jsxs("div", { className: "flex gap-4", children: [
|
|
257
|
+
typeof currentPage === "number" && currentPage > 0 && /* @__PURE__ */ jsx(Button, { type: "button", size: "sm", onClick: onPrevPage, icon: /* @__PURE__ */ jsx(ArrowLeftIcon, {}), children: "Previous" }),
|
|
258
|
+
hasMore && /* @__PURE__ */ jsx(Button, { type: "button", size: "sm", onClick: onNextPage, icon: /* @__PURE__ */ jsx(ArrowRightIcon, {}), children: "Next" })
|
|
259
|
+
] })
|
|
260
|
+
] });
|
|
261
|
+
}
|
|
262
|
+
|
|
193
263
|
const columnOrderSchema = z.array(z.number().int().nonnegative());
|
|
194
264
|
const getColumnOrderStorageKey = (id) => `mastra:data-list:column-order:${id}`;
|
|
195
265
|
function splitGridTracks(columns) {
|
|
@@ -392,6 +462,125 @@ function DataListBase({
|
|
|
392
462
|
);
|
|
393
463
|
}
|
|
394
464
|
|
|
465
|
+
const DataListRowWrapperContext = createContext(false);
|
|
466
|
+
function useDataListRowWrapperContext() {
|
|
467
|
+
return useContext(DataListRowWrapperContext);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
const DataListRowButton = forwardRef(
|
|
471
|
+
({ children, className, type = "button", colStart, colEnd, featured, variant, style, ...rest }, ref) => {
|
|
472
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
473
|
+
const fluidRef = useFluidMenuItemRef(ref);
|
|
474
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
475
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
476
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
477
|
+
return /* @__PURE__ */ jsx(
|
|
478
|
+
"button",
|
|
479
|
+
{
|
|
480
|
+
ref: isWrapped ? ref : fluidRef,
|
|
481
|
+
type,
|
|
482
|
+
className: cn(
|
|
483
|
+
...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles,
|
|
484
|
+
cellsClass,
|
|
485
|
+
"text-left",
|
|
486
|
+
className
|
|
487
|
+
),
|
|
488
|
+
style: resolvedStyle,
|
|
489
|
+
"data-featured": featured || void 0,
|
|
490
|
+
"data-variant": variant ?? "default",
|
|
491
|
+
...rest,
|
|
492
|
+
children
|
|
493
|
+
}
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
);
|
|
497
|
+
DataListRowButton.displayName = "DataListRowButton";
|
|
498
|
+
|
|
499
|
+
const DataListRowLink = forwardRef(
|
|
500
|
+
({ children, to, className, style, LinkComponent: Link = "a", colStart, colEnd, featured, variant, ...rest }, ref) => {
|
|
501
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
502
|
+
const fluidRef = useFluidMenuItemRef(ref);
|
|
503
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
504
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
505
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
506
|
+
return /* @__PURE__ */ jsx(
|
|
507
|
+
Link,
|
|
508
|
+
{
|
|
509
|
+
ref: isWrapped ? ref : fluidRef,
|
|
510
|
+
href: to,
|
|
511
|
+
className: cn(...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles, cellsClass, className),
|
|
512
|
+
style: resolvedStyle,
|
|
513
|
+
"data-featured": featured || void 0,
|
|
514
|
+
"data-variant": variant ?? "default",
|
|
515
|
+
...rest,
|
|
516
|
+
children
|
|
517
|
+
}
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
);
|
|
521
|
+
DataListRowLink.displayName = "DataListRowLink";
|
|
522
|
+
|
|
523
|
+
const DataListRowStatic = forwardRef(
|
|
524
|
+
({ children, className, colStart, colEnd, featured, variant, style, ...rest }, ref) => {
|
|
525
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
526
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
527
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
528
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
529
|
+
return /* @__PURE__ */ jsx(
|
|
530
|
+
"div",
|
|
531
|
+
{
|
|
532
|
+
ref,
|
|
533
|
+
className: cn(isWrapped ? "grid grid-cols-subgrid gap-4 px-3" : dataListRowStaticStyles, cellsClass, className),
|
|
534
|
+
style: resolvedStyle,
|
|
535
|
+
"data-featured": featured || void 0,
|
|
536
|
+
"data-variant": variant ?? "default",
|
|
537
|
+
...rest,
|
|
538
|
+
children
|
|
539
|
+
}
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
);
|
|
543
|
+
DataListRowStatic.displayName = "DataListRowStatic";
|
|
544
|
+
|
|
545
|
+
const DataListRowWrapper = forwardRef(
|
|
546
|
+
({ children, className, onSelectRow, onClick, onKeyDown, tabIndex, ...rest }, ref) => {
|
|
547
|
+
const isSelectable = onSelectRow !== void 0;
|
|
548
|
+
const rowRef = useFluidMenuItemRef(ref);
|
|
549
|
+
const handleClick = (event) => {
|
|
550
|
+
onClick?.(event);
|
|
551
|
+
if (!isSelectable || event.defaultPrevented) return;
|
|
552
|
+
onSelectRow();
|
|
553
|
+
};
|
|
554
|
+
const handleKeyDown = (event) => {
|
|
555
|
+
onKeyDown?.(event);
|
|
556
|
+
if (!isSelectable || event.defaultPrevented) return;
|
|
557
|
+
if (event.key === "Enter" && event.target === event.currentTarget) {
|
|
558
|
+
event.preventDefault();
|
|
559
|
+
onSelectRow();
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
return /* @__PURE__ */ jsx(DataListRowWrapperContext.Provider, { value: true, children: /* @__PURE__ */ jsx(
|
|
563
|
+
"div",
|
|
564
|
+
{
|
|
565
|
+
ref: rowRef,
|
|
566
|
+
tabIndex: tabIndex ?? (isSelectable ? 0 : void 0),
|
|
567
|
+
className: cn(
|
|
568
|
+
"grid grid-cols-subgrid gap-0",
|
|
569
|
+
...dataListRowOuterStyles,
|
|
570
|
+
...dataListRowStateStyles,
|
|
571
|
+
isSelectable && cn("cursor-pointer", focusRingInset),
|
|
572
|
+
className
|
|
573
|
+
),
|
|
574
|
+
onClick: handleClick,
|
|
575
|
+
onKeyDown: handleKeyDown,
|
|
576
|
+
...rest,
|
|
577
|
+
children
|
|
578
|
+
}
|
|
579
|
+
) });
|
|
580
|
+
}
|
|
581
|
+
);
|
|
582
|
+
DataListRowWrapper.displayName = "DataListRowWrapper";
|
|
583
|
+
|
|
395
584
|
const DataListTopCell = forwardRef(
|
|
396
585
|
({ children, className, as, sticky, ...rest }, ref) => {
|
|
397
586
|
const Component = as || "span";
|
|
@@ -510,6 +699,90 @@ function DataListTopSelectCell({ checked, onToggle, ...rest }) {
|
|
|
510
699
|
);
|
|
511
700
|
}
|
|
512
701
|
|
|
702
|
+
const sortIcons = {
|
|
703
|
+
asc: ArrowUp,
|
|
704
|
+
desc: ArrowDown,
|
|
705
|
+
none: ArrowUpDown
|
|
706
|
+
};
|
|
707
|
+
const sortLabels = {
|
|
708
|
+
asc: "ascending",
|
|
709
|
+
desc: "descending"
|
|
710
|
+
};
|
|
711
|
+
const sortAnimations = {
|
|
712
|
+
asc: "animate-sort-arrow-up",
|
|
713
|
+
desc: "animate-sort-arrow-down"
|
|
714
|
+
};
|
|
715
|
+
const sortTooltips = {
|
|
716
|
+
asc: "Asc",
|
|
717
|
+
desc: "Desc",
|
|
718
|
+
none: "Sort"
|
|
719
|
+
};
|
|
720
|
+
function DataListSortableTopCell({
|
|
721
|
+
children,
|
|
722
|
+
sortKey,
|
|
723
|
+
sort,
|
|
724
|
+
onSortChange,
|
|
725
|
+
align = "start",
|
|
726
|
+
className,
|
|
727
|
+
...props
|
|
728
|
+
}) {
|
|
729
|
+
const next = sort === "asc" ? "desc" : "asc";
|
|
730
|
+
const SortIcon = sortIcons[sort ?? "none"];
|
|
731
|
+
const label = typeof children === "string" ? children : sortKey;
|
|
732
|
+
const current = sort ? `sorted ${sortLabels[sort]}` : "not sorted";
|
|
733
|
+
return /* @__PURE__ */ jsxs(
|
|
734
|
+
DataListTopCell,
|
|
735
|
+
{
|
|
736
|
+
"data-sort": sort ?? "none",
|
|
737
|
+
className: cn("gap-1 overflow-visible", align === "end" && "flex-row-reverse", className),
|
|
738
|
+
...props,
|
|
739
|
+
children: [
|
|
740
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children }),
|
|
741
|
+
/* @__PURE__ */ jsx(
|
|
742
|
+
Button,
|
|
743
|
+
{
|
|
744
|
+
variant: "ghost",
|
|
745
|
+
size: "icon-sm",
|
|
746
|
+
"aria-label": `${label}, ${current}, sort ${sortLabels[next]}`,
|
|
747
|
+
tooltip: sortTooltips[sort ?? "none"],
|
|
748
|
+
onClick: () => onSortChange(next, sortKey),
|
|
749
|
+
className: cn("shrink-0", sort ? "text-foreground" : "text-muted-foreground"),
|
|
750
|
+
children: /* @__PURE__ */ jsx(SortIcon, { className: sort && sortAnimations[sort] }, sort ?? "none")
|
|
751
|
+
}
|
|
752
|
+
)
|
|
753
|
+
]
|
|
754
|
+
}
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
function DataListSpacer({ height }) {
|
|
759
|
+
if (height <= 0) return null;
|
|
760
|
+
return /* @__PURE__ */ jsx("div", { className: "col-span-full", style: { height } });
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
const DataListSubheader = forwardRef(
|
|
764
|
+
({ children, className, ...rest }, ref) => {
|
|
765
|
+
return /* @__PURE__ */ jsx(
|
|
766
|
+
"div",
|
|
767
|
+
{
|
|
768
|
+
ref,
|
|
769
|
+
className: cn(
|
|
770
|
+
"data-list-subheader relative isolate col-span-full px-3 py-2 text-subheading text-muted-foreground",
|
|
771
|
+
"bg-(--data-list-background)",
|
|
772
|
+
className
|
|
773
|
+
),
|
|
774
|
+
...rest,
|
|
775
|
+
children
|
|
776
|
+
}
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
);
|
|
780
|
+
DataListSubheader.displayName = "DataListSubheader";
|
|
781
|
+
|
|
782
|
+
function DataListSubHeading({ children, className }) {
|
|
783
|
+
return /* @__PURE__ */ jsx(Txt, { as: "span", variant: "caption", tone: "faint", className, children });
|
|
784
|
+
}
|
|
785
|
+
|
|
513
786
|
function DataListTop({ children, className, hasLeadingCell, ...props }) {
|
|
514
787
|
return /* @__PURE__ */ jsx(
|
|
515
788
|
"div",
|
|
@@ -525,5 +798,59 @@ function DataListTop({ children, className, hasLeadingCell, ...props }) {
|
|
|
525
798
|
);
|
|
526
799
|
}
|
|
527
800
|
|
|
528
|
-
|
|
529
|
-
|
|
801
|
+
const DataListTopCells = forwardRef(
|
|
802
|
+
({ children, className, flushLeft, colStart, style, ...rest }, ref) => {
|
|
803
|
+
return /* @__PURE__ */ jsx(
|
|
804
|
+
"div",
|
|
805
|
+
{
|
|
806
|
+
ref,
|
|
807
|
+
className: cn(
|
|
808
|
+
"pointer-events-none grid grid-cols-subgrid gap-4 px-3 [&>*]:pointer-events-auto",
|
|
809
|
+
!colStart && "data-list-cells col-span-full",
|
|
810
|
+
flushLeft && "pl-0!",
|
|
811
|
+
className
|
|
812
|
+
),
|
|
813
|
+
style: colStart ? { ...style, gridColumn: `${colStart} / -1` } : style,
|
|
814
|
+
...rest,
|
|
815
|
+
children
|
|
816
|
+
}
|
|
817
|
+
);
|
|
818
|
+
}
|
|
819
|
+
);
|
|
820
|
+
DataListTopCells.displayName = "DataListTopCells";
|
|
821
|
+
|
|
822
|
+
const DataList = Object.assign(DataListRoot, {
|
|
823
|
+
Top: DataListTop,
|
|
824
|
+
TopCells: DataListTopCells,
|
|
825
|
+
TopCell: DataListTopCell,
|
|
826
|
+
SortableTopCell: DataListSortableTopCell,
|
|
827
|
+
TopCellWithTooltip: DataListTopCellWithTooltip,
|
|
828
|
+
TopCellSmart: DataListTopCellSmart,
|
|
829
|
+
RowWrapper: DataListRowWrapper,
|
|
830
|
+
RowButton: DataListRowButton,
|
|
831
|
+
RowLink: DataListRowLink,
|
|
832
|
+
RowStatic: DataListRowStatic,
|
|
833
|
+
Cell: DataListCell,
|
|
834
|
+
ActionsCell: DataListActionsCell,
|
|
835
|
+
TextCell: DataListTextCell,
|
|
836
|
+
NameCell: DataListNameCell,
|
|
837
|
+
DescriptionCell: DataListDescriptionCell,
|
|
838
|
+
IdCell: DataListIdCell,
|
|
839
|
+
RowHeaderCell: DataListRowHeaderCell,
|
|
840
|
+
NumberCell: DataListNumberCell,
|
|
841
|
+
DateCell: DataListDateCell,
|
|
842
|
+
CreatedCell: DataListCreatedCell,
|
|
843
|
+
TimeCell: DataListTimeCell,
|
|
844
|
+
SelectCell: DataListSelectCell,
|
|
845
|
+
TopSelectCell: DataListTopSelectCell,
|
|
846
|
+
NoMatch: DataListNoMatch,
|
|
847
|
+
Group: DataListGroup,
|
|
848
|
+
Subheader: DataListSubheader,
|
|
849
|
+
SubHeading: DataListSubHeading,
|
|
850
|
+
Spacer: DataListSpacer,
|
|
851
|
+
NextPageLoading: DataListNextPageLoading,
|
|
852
|
+
Pagination: DataListPagination
|
|
853
|
+
});
|
|
854
|
+
|
|
855
|
+
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 };
|
|
856
|
+
//# sourceMappingURL=data-list-DvbAODUM.js.map
|