@burdenoff/microfe-cosmicintersection 2026.1108.2 → 2026.1109.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/cosmicintersection/api/databricksTransport.d.ts +13 -0
  2. package/dist/cosmicintersection/api/databricksTransport.d.ts.map +1 -0
  3. package/dist/cosmicintersection/api/databricksTransport.js +38 -0
  4. package/dist/cosmicintersection/api/databricksTransport.js.map +1 -0
  5. package/dist/cosmicintersection/components/ActionMenu.js +17 -17
  6. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +13 -0
  7. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +1 -0
  8. package/dist/cosmicintersection/components/DatabricksQueueForm.js +221 -0
  9. package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -0
  10. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +6 -0
  11. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +1 -0
  12. package/dist/cosmicintersection/components/DatabricksRunPanel.js +206 -0
  13. package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -0
  14. package/dist/cosmicintersection/components/EntityFormShell.js +7 -7
  15. package/dist/cosmicintersection/components/EntityTagsField.js +8 -8
  16. package/dist/cosmicintersection/components/ErrorState.js +4 -4
  17. package/dist/cosmicintersection/components/FileUploadField.js +8 -8
  18. package/dist/cosmicintersection/components/Pagination.js +6 -6
  19. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +17 -17
  20. package/dist/cosmicintersection/components/RunTriageCard.js +12 -12
  21. package/dist/cosmicintersection/components/SchemaProposalPanel.js +35 -35
  22. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
  23. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +12 -12
  24. package/dist/cosmicintersection/components/index.js +7 -7
  25. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +2 -0
  26. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +1 -1
  27. package/dist/cosmicintersection/context/CosmicIntersectionContext.js +17 -13
  28. package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
  29. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +69 -0
  30. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +1 -0
  31. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +89 -0
  32. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -0
  33. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +59 -0
  34. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +1 -0
  35. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +158 -0
  36. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -0
  37. package/dist/cosmicintersection/lib/databricksForm.d.ts +4 -0
  38. package/dist/cosmicintersection/lib/databricksForm.d.ts.map +1 -0
  39. package/dist/cosmicintersection/lib/databricksForm.js +31 -0
  40. package/dist/cosmicintersection/lib/databricksForm.js.map +1 -0
  41. package/dist/cosmicintersection/lib/databricksIntent.d.ts +19 -0
  42. package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +1 -0
  43. package/dist/cosmicintersection/lib/databricksIntent.js +60 -0
  44. package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -0
  45. package/dist/cosmicintersection/lib/databricksPresentation.d.ts +5 -0
  46. package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +1 -0
  47. package/dist/cosmicintersection/lib/databricksPresentation.js +27 -0
  48. package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -0
  49. package/dist/cosmicintersection/pages/access/AccessPage.js +62 -62
  50. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  51. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +107 -107
  52. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  53. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +24 -24
  54. package/dist/cosmicintersection/pages/collections/CollectionsPage.js +12 -12
  55. package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +18 -18
  56. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +91 -91
  57. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +209 -209
  58. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
  59. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +98 -98
  60. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  61. package/dist/cosmicintersection/pages/lineage/LineagePage.js +15 -15
  62. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +139 -139
  63. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  64. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +34 -34
  65. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +39 -39
  66. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  67. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +107 -107
  68. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  69. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +32 -32
  70. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +213 -213
  71. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  72. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  73. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +250 -213
  74. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  75. package/dist/cosmicintersection/pages/runs/RunsPage.js +31 -31
  76. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +41 -41
  77. package/dist/cosmicintersection/pages/sources/SourcesPage.js +122 -122
  78. package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
  79. package/dist/generated/wspace-operations.d.ts +243 -0
  80. package/dist/generated/wspace-operations.d.ts.map +1 -0
  81. package/dist/generated/wspace-operations.js +1472 -0
  82. package/dist/generated/wspace-operations.js.map +1 -0
  83. package/dist/generated/wspace-types.d.ts +183281 -30204
  84. package/dist/generated/wspace-types.d.ts.map +1 -1
  85. package/package.json +10 -7
@@ -1,19 +1,19 @@
1
1
  import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
2
2
  import { notify as t } from "../../lib/toast.js";
3
- import { useCosArchiveDatasetMutation as n, useCosCollectionsQuery as r, useCosDatasetsQuery as i, useCosPublishDatasetMutation as ee, useCosSourcesQuery as te } from "../../api/cosmicApi.js";
4
- import { useTr as ne } from "../../../shared/hooks/useTr.js";
5
- import { ActionMenu as a } from "../../components/ActionMenu.js";
6
- import { EmptyState as re } from "../../components/EmptyState.js";
7
- import { ErrorState as ie } from "../../components/ErrorState.js";
8
- import { LoadingState as o } from "../../components/LoadingState.js";
3
+ import { useCosArchiveDatasetMutation as n, useCosCollectionsQuery as r, useCosDatasetsQuery as i, useCosPublishDatasetMutation as a, useCosSourcesQuery as ee } from "../../api/cosmicApi.js";
4
+ import { useTr as te } from "../../../shared/hooks/useTr.js";
5
+ import { ActionMenu as o } from "../../components/ActionMenu.js";
6
+ import { EmptyState as ne } from "../../components/EmptyState.js";
7
+ import { ErrorState as re } from "../../components/ErrorState.js";
8
+ import { LoadingState as ie } from "../../components/LoadingState.js";
9
9
  import { PageLayout as s } from "../../components/PageLayout.js";
10
- import { Pagination as c, usePagination as ae } from "../../components/Pagination.js";
11
- import { StatusBadge as l, formatEnumLabel as u } from "../../components/StatusBadge.js";
10
+ import { Pagination as c, usePagination as l } from "../../components/Pagination.js";
11
+ import { StatusBadge as u, formatEnumLabel as d } from "../../components/StatusBadge.js";
12
12
  import "../../components/index.js";
13
- import { useMemo as d, useState as f } from "react";
14
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
15
- import { Compass as g, Database as _, Plus as v } from "lucide-react";
16
- import { Badge as y, Button as b, Select as x, SelectContent as S, SelectItem as C, SelectTrigger as w, SelectValue as T, Table as oe, TableBody as se, TableCell as E, TableHead as D, TableHeader as ce, TableRow as O } from "@burdenoff/fe-libs/ui";
13
+ import { useMemo as f, useState as p } from "react";
14
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
15
+ import { Badge as _, Button as v, Select as y, SelectContent as b, SelectItem as x, SelectTrigger as S, SelectValue as C, Table as ae, TableBody as oe, TableCell as w, TableHead as T, TableHeader as se, TableRow as E } from "@burdenoff/fe-libs/ui";
16
+ import { Compass as D, Database as ce, Plus as O } from "lucide-react";
17
17
  //#region src/cosmicintersection/pages/datasets/DatasetsPage.tsx
18
18
  var le = [
19
19
  "DRAFT",
@@ -21,13 +21,13 @@ var le = [
21
21
  "AVAILABLE",
22
22
  "DEPRECATED",
23
23
  "ARCHIVED"
24
- ], k = [
24
+ ], ue = [
25
25
  "PUBLIC",
26
26
  "WORKSPACE",
27
27
  "RESTRICTED",
28
28
  "EMBARGOED"
29
- ], A = "__all__", ue = 200;
30
- function j(e) {
29
+ ], k = "__all__", de = 200;
30
+ function A(e) {
31
31
  if (!e) return "—";
32
32
  let t = Number(e);
33
33
  if (!Number.isFinite(t) || t <= 0) return "—";
@@ -42,348 +42,348 @@ function j(e) {
42
42
  for (; r >= 1024 && i < n.length - 1;) r /= 1024, i += 1;
43
43
  return `${r >= 10 || i === 0 ? Math.round(r) : r.toFixed(1)} ${n[i]}`;
44
44
  }
45
- function M(e) {
45
+ function j(e) {
46
46
  if (!e) return "—";
47
47
  let t = new Date(e);
48
48
  return Number.isNaN(t.getTime()) ? "—" : t.toLocaleDateString();
49
49
  }
50
- function N() {
51
- let { navigate: N } = e(), P = ne(), [F, I] = f(A), [L, R] = f(A), [z, B] = f(A), [V, H] = f(A), [U, de] = f(A), W = ae({
50
+ function M() {
51
+ let { navigate: M } = e(), N = te(), [P, F] = p(k), [I, L] = p(k), [R, z] = p(k), [B, V] = p(k), [H, fe] = p(k), U = l({
52
52
  pageSize: 20,
53
- resetKey: `${F}|${L}|${z}|${V}|${U}`
54
- }), { data: G, loading: K, error: fe, refetch: q } = i({
55
- status: F === A ? void 0 : F,
56
- sourceId: L === A ? void 0 : L,
57
- collectionId: z === A ? void 0 : z,
58
- format: V === A ? void 0 : V,
59
- accessLevel: U === A ? void 0 : U,
53
+ resetKey: `${P}|${I}|${R}|${B}|${H}`
54
+ }), { data: W, loading: G, error: pe, refetch: K } = i({
55
+ status: P === k ? void 0 : P,
56
+ sourceId: I === k ? void 0 : I,
57
+ collectionId: R === k ? void 0 : R,
58
+ format: B === k ? void 0 : B,
59
+ accessLevel: H === k ? void 0 : H,
60
60
  pagination: {
61
- limit: W.limit,
62
- offset: W.offset
61
+ limit: U.limit,
62
+ offset: U.offset
63
63
  }
64
- }), pe = te({ pagination: {
64
+ }), me = ee({ pagination: {
65
65
  limit: 100,
66
66
  offset: 0
67
- } }), me = r(), J = i({ pagination: {
68
- limit: ue,
67
+ } }), he = r(), q = i({ pagination: {
68
+ limit: de,
69
69
  offset: 0
70
- } }), [he] = ee(), [ge] = n(), Y = d(() => G?.cosListDatasets?.items ?? [], [G]), _e = G?.cosListDatasets?.pageInfo, ve = pe.data?.cosListSources?.items ?? [], ye = me.data?.cosListCollections ?? [], X = d(() => {
70
+ } }), [ge] = a(), [_e] = n(), J = f(() => W?.cosListDatasets?.items ?? [], [W]), ve = W?.cosListDatasets?.pageInfo, ye = me.data?.cosListSources?.items ?? [], Y = he.data?.cosListCollections ?? [], X = f(() => {
71
71
  let e = /* @__PURE__ */ new Set();
72
- for (let t of J.data?.cosListDatasets?.items ?? []) t.format && e.add(t.format);
72
+ for (let t of q.data?.cosListDatasets?.items ?? []) t.format && e.add(t.format);
73
73
  return [...e].sort((e, t) => e.localeCompare(t));
74
- }, [J.data]), Z = F === A && L === A && z === A && V === A && U === A, Q = async (e) => {
75
- (await he({ variables: { id: e.id } })).data?.cosPublishDataset && (t.success(P("cosmicintersection.pages.datasets.publishSuccess", "Dataset published"), P("cosmicintersection.pages.datasets.publishSuccessDescription", "“{{name}}” is now available.", { name: e.name })), await q());
74
+ }, [q.data]), Z = P === k && I === k && R === k && B === k && H === k, Q = async (e) => {
75
+ (await ge({ variables: { id: e.id } })).data?.cosPublishDataset && (t.success(N("cosmicintersection.pages.datasets.publishSuccess", "Dataset published"), N("cosmicintersection.pages.datasets.publishSuccessDescription", "“{{name}}” is now available.", { name: e.name })), await K());
76
76
  }, $ = async (e) => {
77
- let n = await ge({ variables: { id: e.id } });
77
+ let n = await _e({ variables: { id: e.id } });
78
78
  if (n.error) throw Error(n.error.message);
79
- if (!n.data?.cosArchiveDataset) throw t.error(P("cosmicintersection.pages.datasets.archiveError", "Could not archive dataset"), P("cosmicintersection.pages.datasets.archiveErrorDescription", "The server did not confirm the change.")), Error("Archive not confirmed");
80
- t.success(P("cosmicintersection.pages.datasets.archiveSuccess", "Dataset archived")), await q();
79
+ if (!n.data?.cosArchiveDataset) throw t.error(N("cosmicintersection.pages.datasets.archiveError", "Could not archive dataset"), N("cosmicintersection.pages.datasets.archiveErrorDescription", "The server did not confirm the change.")), Error("Archive not confirmed");
80
+ t.success(N("cosmicintersection.pages.datasets.archiveSuccess", "Dataset archived")), await K();
81
81
  };
82
- return /* @__PURE__ */ m(s, {
83
- title: P("cosmicintersection.pages.datasets.title", "Datasets"),
84
- description: P("cosmicintersection.pages.datasets.description", "Federated science datasets — catalog, schema, lineage and access, all from live data."),
85
- actions: /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h(b, {
82
+ return /* @__PURE__ */ h(s, {
83
+ title: N("cosmicintersection.pages.datasets.title", "Datasets"),
84
+ description: N("cosmicintersection.pages.datasets.description", "Federated science datasets — catalog, schema, lineage and access, all from live data."),
85
+ actions: /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g(v, {
86
86
  type: "button",
87
87
  variant: "outline",
88
- onClick: () => N("discovery"),
89
- children: [/* @__PURE__ */ m(g, { className: "size-4" }), P("nav.discover", "Discover")]
90
- }), /* @__PURE__ */ h(b, {
88
+ onClick: () => M("discovery"),
89
+ children: [/* @__PURE__ */ h(D, { className: "size-4" }), N("nav.discover", "Discover")]
90
+ }), /* @__PURE__ */ g(v, {
91
91
  type: "button",
92
- onClick: () => N("datasets/create"),
93
- children: [/* @__PURE__ */ m(v, { className: "size-4" }), P("cosmicintersection.pages.datasets.create", "New dataset")]
92
+ onClick: () => M("datasets/create"),
93
+ children: [/* @__PURE__ */ h(O, { className: "size-4" }), N("cosmicintersection.pages.datasets.create", "New dataset")]
94
94
  })] }),
95
- children: /* @__PURE__ */ h("div", {
95
+ children: /* @__PURE__ */ g("div", {
96
96
  className: "space-y-4",
97
- children: [/* @__PURE__ */ h("div", {
97
+ children: [/* @__PURE__ */ g("div", {
98
98
  className: "flex flex-wrap items-end gap-3",
99
99
  children: [
100
- /* @__PURE__ */ h("label", {
100
+ /* @__PURE__ */ g("label", {
101
101
  className: "space-y-1 text-sm",
102
- children: [/* @__PURE__ */ m("span", {
102
+ children: [/* @__PURE__ */ h("span", {
103
103
  className: "block font-medium text-text-primary",
104
- children: P("cosmicintersection.common.status", "Status")
105
- }), /* @__PURE__ */ h(x, {
106
- value: F,
107
- onValueChange: I,
108
- children: [/* @__PURE__ */ m(w, {
109
- "aria-label": P("cosmicintersection.common.filterByStatus", "Filter by status"),
104
+ children: N("cosmicintersection.common.status", "Status")
105
+ }), /* @__PURE__ */ g(y, {
106
+ value: P,
107
+ onValueChange: F,
108
+ children: [/* @__PURE__ */ h(S, {
109
+ "aria-label": N("cosmicintersection.common.filterByStatus", "Filter by status"),
110
110
  className: "w-44",
111
- children: /* @__PURE__ */ m(T, {})
112
- }), /* @__PURE__ */ h(S, { children: [/* @__PURE__ */ m(C, {
113
- value: A,
114
- children: P("cosmicintersection.common.allStatuses", "All statuses")
115
- }), le.map((e) => /* @__PURE__ */ m(C, {
111
+ children: /* @__PURE__ */ h(C, {})
112
+ }), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
113
+ value: k,
114
+ children: N("cosmicintersection.common.allStatuses", "All statuses")
115
+ }), le.map((e) => /* @__PURE__ */ h(x, {
116
116
  value: e,
117
- children: u(e)
117
+ children: d(e)
118
118
  }, e))] })]
119
119
  })]
120
120
  }),
121
- /* @__PURE__ */ h("label", {
121
+ /* @__PURE__ */ g("label", {
122
122
  className: "space-y-1 text-sm",
123
- children: [/* @__PURE__ */ m("span", {
123
+ children: [/* @__PURE__ */ h("span", {
124
124
  className: "block font-medium text-text-primary",
125
- children: P("cosmicintersection.common.source", "Source")
126
- }), /* @__PURE__ */ h(x, {
127
- value: L,
128
- onValueChange: R,
129
- children: [/* @__PURE__ */ m(w, {
130
- "aria-label": P("cosmicintersection.common.filterBySource", "Filter by source"),
125
+ children: N("cosmicintersection.common.source", "Source")
126
+ }), /* @__PURE__ */ g(y, {
127
+ value: I,
128
+ onValueChange: L,
129
+ children: [/* @__PURE__ */ h(S, {
130
+ "aria-label": N("cosmicintersection.common.filterBySource", "Filter by source"),
131
131
  className: "w-48",
132
- children: /* @__PURE__ */ m(T, {})
133
- }), /* @__PURE__ */ h(S, { children: [/* @__PURE__ */ m(C, {
134
- value: A,
135
- children: P("cosmicintersection.common.allSources", "All sources")
136
- }), ve.map((e) => /* @__PURE__ */ m(C, {
132
+ children: /* @__PURE__ */ h(C, {})
133
+ }), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
134
+ value: k,
135
+ children: N("cosmicintersection.common.allSources", "All sources")
136
+ }), ye.map((e) => /* @__PURE__ */ h(x, {
137
137
  value: e.id,
138
138
  children: e.name
139
139
  }, e.id))] })]
140
140
  })]
141
141
  }),
142
- /* @__PURE__ */ h("label", {
142
+ /* @__PURE__ */ g("label", {
143
143
  className: "space-y-1 text-sm",
144
- children: [/* @__PURE__ */ m("span", {
144
+ children: [/* @__PURE__ */ h("span", {
145
145
  className: "block font-medium text-text-primary",
146
- children: P("cosmicintersection.common.collection", "Collection")
147
- }), /* @__PURE__ */ h(x, {
148
- value: z,
149
- onValueChange: B,
150
- children: [/* @__PURE__ */ m(w, {
151
- "aria-label": P("cosmicintersection.common.filterByCollection", "Filter by collection"),
146
+ children: N("cosmicintersection.common.collection", "Collection")
147
+ }), /* @__PURE__ */ g(y, {
148
+ value: R,
149
+ onValueChange: z,
150
+ children: [/* @__PURE__ */ h(S, {
151
+ "aria-label": N("cosmicintersection.common.filterByCollection", "Filter by collection"),
152
152
  className: "w-48",
153
- children: /* @__PURE__ */ m(T, {})
154
- }), /* @__PURE__ */ h(S, { children: [/* @__PURE__ */ m(C, {
155
- value: A,
156
- children: P("cosmicintersection.common.allCollections", "All collections")
157
- }), ye.map((e) => /* @__PURE__ */ m(C, {
153
+ children: /* @__PURE__ */ h(C, {})
154
+ }), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
155
+ value: k,
156
+ children: N("cosmicintersection.common.allCollections", "All collections")
157
+ }), Y.map((e) => /* @__PURE__ */ h(x, {
158
158
  value: e.id,
159
159
  children: e.name
160
160
  }, e.id))] })]
161
161
  })]
162
162
  }),
163
- /* @__PURE__ */ h("label", {
163
+ /* @__PURE__ */ g("label", {
164
164
  className: "space-y-1 text-sm",
165
- children: [/* @__PURE__ */ m("span", {
165
+ children: [/* @__PURE__ */ h("span", {
166
166
  className: "block font-medium text-text-primary",
167
- children: P("cosmicintersection.common.format", "Format")
168
- }), /* @__PURE__ */ h(x, {
169
- value: V,
170
- onValueChange: H,
167
+ children: N("cosmicintersection.common.format", "Format")
168
+ }), /* @__PURE__ */ g(y, {
169
+ value: B,
170
+ onValueChange: V,
171
171
  disabled: X.length === 0,
172
- children: [/* @__PURE__ */ m(w, {
173
- "aria-label": P("cosmicintersection.common.filterByFormat", "Filter by format"),
172
+ children: [/* @__PURE__ */ h(S, {
173
+ "aria-label": N("cosmicintersection.common.filterByFormat", "Filter by format"),
174
174
  className: "w-40",
175
- children: /* @__PURE__ */ m(T, {})
176
- }), /* @__PURE__ */ h(S, { children: [/* @__PURE__ */ m(C, {
177
- value: A,
178
- children: P("cosmicintersection.common.allFormats", "All formats")
179
- }), X.map((e) => /* @__PURE__ */ m(C, {
175
+ children: /* @__PURE__ */ h(C, {})
176
+ }), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
177
+ value: k,
178
+ children: N("cosmicintersection.common.allFormats", "All formats")
179
+ }), X.map((e) => /* @__PURE__ */ h(x, {
180
180
  value: e,
181
181
  children: e
182
182
  }, e))] })]
183
183
  })]
184
184
  }),
185
- /* @__PURE__ */ h("label", {
185
+ /* @__PURE__ */ g("label", {
186
186
  className: "space-y-1 text-sm",
187
- children: [/* @__PURE__ */ m("span", {
187
+ children: [/* @__PURE__ */ h("span", {
188
188
  className: "block font-medium text-text-primary",
189
- children: P("cosmicintersection.common.access", "Access")
190
- }), /* @__PURE__ */ h(x, {
191
- value: U,
192
- onValueChange: de,
193
- children: [/* @__PURE__ */ m(w, {
194
- "aria-label": P("cosmicintersection.common.filterByAccess", "Filter by access level"),
189
+ children: N("cosmicintersection.common.access", "Access")
190
+ }), /* @__PURE__ */ g(y, {
191
+ value: H,
192
+ onValueChange: fe,
193
+ children: [/* @__PURE__ */ h(S, {
194
+ "aria-label": N("cosmicintersection.common.filterByAccess", "Filter by access level"),
195
195
  className: "w-44",
196
- children: /* @__PURE__ */ m(T, {})
197
- }), /* @__PURE__ */ h(S, { children: [/* @__PURE__ */ m(C, {
198
- value: A,
199
- children: P("cosmicintersection.common.allAccessLevels", "All access levels")
200
- }), k.map((e) => /* @__PURE__ */ m(C, {
196
+ children: /* @__PURE__ */ h(C, {})
197
+ }), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
198
+ value: k,
199
+ children: N("cosmicintersection.common.allAccessLevels", "All access levels")
200
+ }), ue.map((e) => /* @__PURE__ */ h(x, {
201
201
  value: e,
202
- children: u(e)
202
+ children: d(e)
203
203
  }, e))] })]
204
204
  })]
205
205
  })
206
206
  ]
207
- }), K ? /* @__PURE__ */ m(o, {
207
+ }), G ? /* @__PURE__ */ h(ie, {
208
208
  variant: "rows",
209
209
  rows: 6,
210
- label: P("cosmicintersection.pages.datasets.loading", "Loading datasets…")
211
- }) : fe ? /* @__PURE__ */ m(ie, {
212
- message: P("cosmicintersection.pages.datasets.error", "We could not load datasets. Please try again."),
213
- onRetry: () => void q()
214
- }) : Y.length === 0 ? /* @__PURE__ */ m(re, {
215
- icon: _,
216
- title: Z ? P("cosmicintersection.pages.datasets.emptyTitle", "No datasets yet.") : P("cosmicintersection.pages.datasets.emptyFilterTitle", "No datasets match these filters."),
217
- description: Z ? P("cosmicintersection.pages.datasets.emptyDescription", "Register your first dataset to start federating science data across sources.") : P("cosmicintersection.pages.datasets.emptyFilterDescription", "Try a different status, source, collection, format or access level."),
218
- action: Z ? /* @__PURE__ */ h(b, {
210
+ label: N("cosmicintersection.pages.datasets.loading", "Loading datasets…")
211
+ }) : pe ? /* @__PURE__ */ h(re, {
212
+ message: N("cosmicintersection.pages.datasets.error", "We could not load datasets. Please try again."),
213
+ onRetry: () => void K()
214
+ }) : J.length === 0 ? /* @__PURE__ */ h(ne, {
215
+ icon: ce,
216
+ title: Z ? N("cosmicintersection.pages.datasets.emptyTitle", "No datasets yet.") : N("cosmicintersection.pages.datasets.emptyFilterTitle", "No datasets match these filters."),
217
+ description: Z ? N("cosmicintersection.pages.datasets.emptyDescription", "Register your first dataset to start federating science data across sources.") : N("cosmicintersection.pages.datasets.emptyFilterDescription", "Try a different status, source, collection, format or access level."),
218
+ action: Z ? /* @__PURE__ */ g(v, {
219
219
  type: "button",
220
- onClick: () => N("datasets/create"),
221
- children: [/* @__PURE__ */ m(v, { className: "size-4" }), P("cosmicintersection.pages.datasets.create", "New dataset")]
220
+ onClick: () => M("datasets/create"),
221
+ children: [/* @__PURE__ */ h(O, { className: "size-4" }), N("cosmicintersection.pages.datasets.create", "New dataset")]
222
222
  }) : void 0
223
- }) : /* @__PURE__ */ h(p, { children: [
224
- /* @__PURE__ */ m("div", {
223
+ }) : /* @__PURE__ */ g(m, { children: [
224
+ /* @__PURE__ */ h("div", {
225
225
  className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
226
- children: /* @__PURE__ */ h(oe, { children: [/* @__PURE__ */ m(ce, { children: /* @__PURE__ */ h(O, { children: [
227
- /* @__PURE__ */ m(D, { children: P("cosmicintersection.common.name", "Name") }),
228
- /* @__PURE__ */ m(D, { children: P("cosmicintersection.common.status", "Status") }),
229
- /* @__PURE__ */ m(D, { children: P("cosmicintersection.common.access", "Access") }),
230
- /* @__PURE__ */ m(D, { children: P("cosmicintersection.common.format", "Format") }),
231
- /* @__PURE__ */ m(D, {
226
+ children: /* @__PURE__ */ g(ae, { children: [/* @__PURE__ */ h(se, { children: /* @__PURE__ */ g(E, { children: [
227
+ /* @__PURE__ */ h(T, { children: N("cosmicintersection.common.name", "Name") }),
228
+ /* @__PURE__ */ h(T, { children: N("cosmicintersection.common.status", "Status") }),
229
+ /* @__PURE__ */ h(T, { children: N("cosmicintersection.common.access", "Access") }),
230
+ /* @__PURE__ */ h(T, { children: N("cosmicintersection.common.format", "Format") }),
231
+ /* @__PURE__ */ h(T, {
232
232
  className: "text-right",
233
- children: P("cosmicintersection.common.size", "Size")
233
+ children: N("cosmicintersection.common.size", "Size")
234
234
  }),
235
- /* @__PURE__ */ m(D, { children: P("cosmicintersection.common.tags", "Tags") }),
236
- /* @__PURE__ */ m(D, { children: P("cosmicintersection.common.updated", "Updated") }),
237
- /* @__PURE__ */ m(D, {
235
+ /* @__PURE__ */ h(T, { children: N("cosmicintersection.common.tags", "Tags") }),
236
+ /* @__PURE__ */ h(T, { children: N("cosmicintersection.common.updated", "Updated") }),
237
+ /* @__PURE__ */ h(T, {
238
238
  className: "text-right",
239
- children: P("cosmicintersection.common.actions", "Actions")
239
+ children: N("cosmicintersection.common.actions", "Actions")
240
240
  })
241
- ] }) }), /* @__PURE__ */ m(se, { children: Y.map((e) => /* @__PURE__ */ h(O, {
241
+ ] }) }), /* @__PURE__ */ h(oe, { children: J.map((e) => /* @__PURE__ */ g(E, {
242
242
  className: "cursor-pointer",
243
- onClick: () => N(`datasets/${e.id}`),
243
+ onClick: () => M(`datasets/${e.id}`),
244
244
  children: [
245
- /* @__PURE__ */ h(E, { children: [/* @__PURE__ */ m("span", {
245
+ /* @__PURE__ */ g(w, { children: [/* @__PURE__ */ h("span", {
246
246
  className: "font-medium text-text-primary",
247
247
  children: e.name
248
- }), e.description ? /* @__PURE__ */ m("p", {
248
+ }), e.description ? /* @__PURE__ */ h("p", {
249
249
  className: "mt-0.5 line-clamp-1 max-w-xs text-xs text-text-secondary",
250
250
  children: e.description
251
251
  }) : null] }),
252
- /* @__PURE__ */ m(E, { children: /* @__PURE__ */ m(l, { status: e.status }) }),
253
- /* @__PURE__ */ m(E, { children: /* @__PURE__ */ m("span", {
252
+ /* @__PURE__ */ h(w, { children: /* @__PURE__ */ h(u, { status: e.status }) }),
253
+ /* @__PURE__ */ h(w, { children: /* @__PURE__ */ h("span", {
254
254
  className: "text-sm text-text-secondary",
255
- children: u(e.accessLevel)
255
+ children: d(e.accessLevel)
256
256
  }) }),
257
- /* @__PURE__ */ m(E, { children: /* @__PURE__ */ m("span", {
257
+ /* @__PURE__ */ h(w, { children: /* @__PURE__ */ h("span", {
258
258
  className: "text-sm text-text-secondary",
259
259
  children: e.format || "—"
260
260
  }) }),
261
- /* @__PURE__ */ m(E, {
261
+ /* @__PURE__ */ h(w, {
262
262
  className: "text-right text-sm tabular-nums text-text-secondary",
263
- children: j(e.sizeBytes)
263
+ children: A(e.sizeBytes)
264
264
  }),
265
- /* @__PURE__ */ m(E, { children: /* @__PURE__ */ m("div", {
265
+ /* @__PURE__ */ h(w, { children: /* @__PURE__ */ h("div", {
266
266
  className: "flex max-w-[12rem] flex-wrap gap-1",
267
- children: e.tags.length === 0 ? /* @__PURE__ */ m("span", {
267
+ children: e.tags.length === 0 ? /* @__PURE__ */ h("span", {
268
268
  className: "text-xs text-text-secondary",
269
269
  children: "—"
270
- }) : /* @__PURE__ */ h(p, { children: [e.tags.slice(0, 2).map((e) => /* @__PURE__ */ m(y, {
270
+ }) : /* @__PURE__ */ g(m, { children: [e.tags.slice(0, 2).map((e) => /* @__PURE__ */ h(_, {
271
271
  variant: "secondary",
272
272
  children: e
273
- }, e)), e.tags.length > 2 ? /* @__PURE__ */ h(y, {
273
+ }, e)), e.tags.length > 2 ? /* @__PURE__ */ g(_, {
274
274
  variant: "secondary",
275
275
  children: ["+", e.tags.length - 2]
276
276
  }) : null] })
277
277
  }) }),
278
- /* @__PURE__ */ m(E, {
278
+ /* @__PURE__ */ h(w, {
279
279
  className: "whitespace-nowrap text-sm text-text-secondary",
280
- children: M(e.updatedAt)
280
+ children: j(e.updatedAt)
281
281
  }),
282
- /* @__PURE__ */ m(E, {
282
+ /* @__PURE__ */ h(w, {
283
283
  className: "text-right",
284
- children: /* @__PURE__ */ m(a, {
285
- ariaLabel: P("cosmicintersection.common.actionsFor", "Actions for {{name}}", { name: e.name }),
284
+ children: /* @__PURE__ */ h(o, {
285
+ ariaLabel: N("cosmicintersection.common.actionsFor", "Actions for {{name}}", { name: e.name }),
286
286
  entityName: e.name,
287
- onView: () => N(`datasets/${e.id}`),
288
- onEdit: () => N(`datasets/${e.id}/edit`),
287
+ onView: () => M(`datasets/${e.id}`),
288
+ onEdit: () => M(`datasets/${e.id}/edit`),
289
289
  extraItems: e.status === "AVAILABLE" || e.status === "ARCHIVED" ? [] : [{
290
290
  key: "publish",
291
- label: P("cosmicintersection.common.publish", "Publish"),
291
+ label: N("cosmicintersection.common.publish", "Publish"),
292
292
  onSelect: () => void Q(e)
293
293
  }],
294
294
  onDelete: () => $(e),
295
- deleteLabel: P("cosmicintersection.pages.datasets.archive", "Archive dataset")
295
+ deleteLabel: N("cosmicintersection.pages.datasets.archive", "Archive dataset")
296
296
  })
297
297
  })
298
298
  ]
299
299
  }, e.id)) })] })
300
300
  }),
301
- /* @__PURE__ */ m("ul", {
301
+ /* @__PURE__ */ h("ul", {
302
302
  className: "space-y-3 md:hidden",
303
- children: Y.map((e) => /* @__PURE__ */ m("li", { children: /* @__PURE__ */ h("div", {
303
+ children: J.map((e) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ g("div", {
304
304
  role: "button",
305
305
  tabIndex: 0,
306
- "aria-label": P("cosmicintersection.common.open", "Open {{name}}", { name: e.name }),
307
- onClick: () => N(`datasets/${e.id}`),
306
+ "aria-label": N("cosmicintersection.common.open", "Open {{name}}", { name: e.name }),
307
+ onClick: () => M(`datasets/${e.id}`),
308
308
  onKeyDown: (t) => {
309
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), N(`datasets/${e.id}`));
309
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), M(`datasets/${e.id}`));
310
310
  },
311
311
  className: "flex flex-col gap-3 rounded-card border border-border-default bg-bg-elevated p-4 outline-none transition-colors hover:bg-bg-sunken focus-visible:ring-2 focus-visible:ring-border-focus",
312
312
  children: [
313
- /* @__PURE__ */ h("div", {
313
+ /* @__PURE__ */ g("div", {
314
314
  className: "flex items-start justify-between gap-3",
315
- children: [/* @__PURE__ */ h("div", {
315
+ children: [/* @__PURE__ */ g("div", {
316
316
  className: "min-w-0",
317
- children: [/* @__PURE__ */ m("p", {
317
+ children: [/* @__PURE__ */ h("p", {
318
318
  className: "font-medium text-text-primary",
319
319
  children: e.name
320
- }), e.description ? /* @__PURE__ */ m("p", {
320
+ }), e.description ? /* @__PURE__ */ h("p", {
321
321
  className: "mt-0.5 line-clamp-2 text-xs text-text-secondary",
322
322
  children: e.description
323
323
  }) : null]
324
- }), /* @__PURE__ */ m("div", {
324
+ }), /* @__PURE__ */ h("div", {
325
325
  onClick: (e) => e.stopPropagation(),
326
- children: /* @__PURE__ */ m(a, {
327
- ariaLabel: P("cosmicintersection.common.actionsFor", "Actions for {{name}}", { name: e.name }),
326
+ children: /* @__PURE__ */ h(o, {
327
+ ariaLabel: N("cosmicintersection.common.actionsFor", "Actions for {{name}}", { name: e.name }),
328
328
  entityName: e.name,
329
- onView: () => N(`datasets/${e.id}`),
330
- onEdit: () => N(`datasets/${e.id}/edit`),
329
+ onView: () => M(`datasets/${e.id}`),
330
+ onEdit: () => M(`datasets/${e.id}/edit`),
331
331
  extraItems: e.status === "AVAILABLE" || e.status === "ARCHIVED" ? [] : [{
332
332
  key: "publish",
333
- label: P("cosmicintersection.common.publish", "Publish"),
333
+ label: N("cosmicintersection.common.publish", "Publish"),
334
334
  onSelect: () => void Q(e)
335
335
  }],
336
336
  onDelete: () => $(e),
337
- deleteLabel: P("cosmicintersection.pages.datasets.archive", "Archive dataset")
337
+ deleteLabel: N("cosmicintersection.pages.datasets.archive", "Archive dataset")
338
338
  })
339
339
  })]
340
340
  }),
341
- /* @__PURE__ */ h("div", {
341
+ /* @__PURE__ */ g("div", {
342
342
  className: "flex flex-wrap items-center gap-1.5",
343
- children: [/* @__PURE__ */ m(l, { status: e.status }), /* @__PURE__ */ m(l, { status: e.accessLevel })]
343
+ children: [/* @__PURE__ */ h(u, { status: e.status }), /* @__PURE__ */ h(u, { status: e.accessLevel })]
344
344
  }),
345
- /* @__PURE__ */ h("dl", {
345
+ /* @__PURE__ */ g("dl", {
346
346
  className: "grid grid-cols-2 gap-x-4 gap-y-1 text-xs",
347
347
  children: [
348
- /* @__PURE__ */ h("div", {
348
+ /* @__PURE__ */ g("div", {
349
349
  className: "flex justify-between gap-2",
350
- children: [/* @__PURE__ */ m("dt", {
350
+ children: [/* @__PURE__ */ h("dt", {
351
351
  className: "text-text-secondary",
352
- children: P("cosmicintersection.common.format", "Format")
353
- }), /* @__PURE__ */ m("dd", {
352
+ children: N("cosmicintersection.common.format", "Format")
353
+ }), /* @__PURE__ */ h("dd", {
354
354
  className: "text-text-primary",
355
355
  children: e.format || "—"
356
356
  })]
357
357
  }),
358
- /* @__PURE__ */ h("div", {
358
+ /* @__PURE__ */ g("div", {
359
359
  className: "flex justify-between gap-2",
360
- children: [/* @__PURE__ */ m("dt", {
360
+ children: [/* @__PURE__ */ h("dt", {
361
361
  className: "text-text-secondary",
362
- children: P("cosmicintersection.common.size", "Size")
363
- }), /* @__PURE__ */ m("dd", {
362
+ children: N("cosmicintersection.common.size", "Size")
363
+ }), /* @__PURE__ */ h("dd", {
364
364
  className: "tabular-nums text-text-primary",
365
- children: j(e.sizeBytes)
365
+ children: A(e.sizeBytes)
366
366
  })]
367
367
  }),
368
- /* @__PURE__ */ h("div", {
368
+ /* @__PURE__ */ g("div", {
369
369
  className: "flex justify-between gap-2",
370
- children: [/* @__PURE__ */ m("dt", {
370
+ children: [/* @__PURE__ */ h("dt", {
371
371
  className: "text-text-secondary",
372
- children: P("cosmicintersection.common.updated", "Updated")
373
- }), /* @__PURE__ */ m("dd", {
372
+ children: N("cosmicintersection.common.updated", "Updated")
373
+ }), /* @__PURE__ */ h("dd", {
374
374
  className: "text-text-primary",
375
- children: M(e.updatedAt)
375
+ children: j(e.updatedAt)
376
376
  })]
377
377
  })
378
378
  ]
379
379
  }),
380
- e.tags.length > 0 ? /* @__PURE__ */ h("div", {
380
+ e.tags.length > 0 ? /* @__PURE__ */ g("div", {
381
381
  className: "flex flex-wrap gap-1",
382
- children: [e.tags.slice(0, 4).map((e) => /* @__PURE__ */ m(y, {
382
+ children: [e.tags.slice(0, 4).map((e) => /* @__PURE__ */ h(_, {
383
383
  variant: "secondary",
384
384
  className: "text-xs",
385
385
  children: e
386
- }, e)), e.tags.length > 4 ? /* @__PURE__ */ h("span", {
386
+ }, e)), e.tags.length > 4 ? /* @__PURE__ */ g("span", {
387
387
  className: "text-xs text-text-secondary",
388
388
  children: ["+", e.tags.length - 4]
389
389
  }) : null]
@@ -391,21 +391,21 @@ function N() {
391
391
  ]
392
392
  }) }, e.id))
393
393
  }),
394
- /* @__PURE__ */ m(c, {
395
- offset: W.offset,
396
- limit: W.limit,
397
- loadedCount: Y.length,
398
- hasMore: !!_e?.hasMore,
399
- onPrev: W.prevPage,
400
- onNext: W.nextPage,
401
- itemLabel: P("cosmicintersection.pages.datasets.itemLabel", "datasets"),
402
- loading: K
394
+ /* @__PURE__ */ h(c, {
395
+ offset: U.offset,
396
+ limit: U.limit,
397
+ loadedCount: J.length,
398
+ hasMore: !!ve?.hasMore,
399
+ onPrev: U.prevPage,
400
+ onNext: U.nextPage,
401
+ itemLabel: N("cosmicintersection.pages.datasets.itemLabel", "datasets"),
402
+ loading: G
403
403
  })
404
404
  ] })]
405
405
  })
406
406
  });
407
407
  }
408
408
  //#endregion
409
- export { N as default };
409
+ export { M as default };
410
410
 
411
411
  //# sourceMappingURL=DatasetsPage.js.map