@burdenoff/microfe-product 2026.624.2 → 2026.624.3

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 (23) hide show
  1. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +241 -230
  2. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  3. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +292 -281
  4. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  5. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +143 -135
  6. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  7. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +25 -12
  8. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  9. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +94 -86
  10. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  11. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +249 -238
  12. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  13. package/dist/product-management/modules/products/pages/ProductDetailPage.js +406 -395
  14. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  15. package/dist/product-management/modules/products/pages/ProductsListPage.js +285 -274
  16. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  17. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +235 -224
  18. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  19. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +260 -244
  20. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  21. package/dist/product-management/shared/hooks/useConfirmDialog.js +44 -0
  22. package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -0
  23. package/package.json +1 -1
@@ -5,15 +5,16 @@ import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.
5
5
  import { SearchInput as i } from "../../../shared/components/input/SearchInput.js";
6
6
  import { exportToCsv as a } from "../../../shared/utils/exportUtils.js";
7
7
  import { nativeConfirm as o, nativeImpact as s, nativeNotify as c } from "../../../../utils/nativeBridge.js";
8
- import { useContentPages as l, useDeleteContentPage as u } from "../hooks/useContentPages.js";
9
- import { ContentPageStatusBadge as d } from "../components/ContentPageStatusBadge.js";
10
- import { useDebounced as f } from "../../../shared/hooks/useDebounced.js";
11
- import { useEffect as p, useState as m } from "react";
12
- import { ChevronLeft as h, ChevronRight as g, Download as _, Eye as v, FileText as y, Plus as b, RefreshCw as x, SquarePen as S, Trash2 as C } from "lucide-react";
13
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
14
- import { PermissionGate as E } from "@burdenoff/fe-libs/shared/components";
8
+ import { useConfirmDialog as l } from "../../../shared/hooks/useConfirmDialog.js";
9
+ import { useContentPages as u, useDeleteContentPage as d } from "../hooks/useContentPages.js";
10
+ import { ContentPageStatusBadge as f } from "../components/ContentPageStatusBadge.js";
11
+ import { useDebounced as p } from "../../../shared/hooks/useDebounced.js";
12
+ import { useEffect as m, useState as h } from "react";
13
+ import { ChevronLeft as g, ChevronRight as _, Download as v, Eye as y, FileText as b, Plus as x, RefreshCw as S, SquarePen as C, Trash2 as w } from "lucide-react";
14
+ import { jsx as T, jsxs as E } from "react/jsx-runtime";
15
+ import { PermissionGate as D } from "@burdenoff/fe-libs/shared/components";
15
16
  //#region src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx
16
- var D = [
17
+ var O = [
17
18
  {
18
19
  label: "All",
19
20
  tag: ""
@@ -38,313 +39,323 @@ var D = [
38
39
  label: "Pages",
39
40
  tag: "page"
40
41
  }
41
- ], O = 20;
42
- function k() {
43
- let { navigate: k, basePath: A = "/products" } = t(), j = `${A}/content-pages`, [M, N] = m(""), P = f(M, 300), F = e(), [I, L] = m({}), [R, z] = m(0), { contentPages: B, total: V, hasMore: H, loading: U, error: W, refetch: G } = l(void 0, {
44
- ...I,
45
- search: P || void 0
42
+ ], k = 20;
43
+ function A() {
44
+ let { navigate: A, basePath: j = "/products" } = t(), M = `${j}/content-pages`, [N, P] = h(""), F = p(N, 300), I = e(), [L, R] = h({}), [z, B] = h(0), { contentPages: V, total: H, hasMore: U, loading: W, error: G, refetch: K } = u(void 0, {
45
+ ...L,
46
+ search: F || void 0
46
47
  }, {
47
- limit: O,
48
- offset: R * O
49
- }), K = Math.max(1, Math.ceil(V / O)), q = R * O + 1, J = Math.min((R + 1) * O, V);
50
- p(() => {
51
- if (V === 0) {
52
- z(0);
48
+ limit: k,
49
+ offset: z * k
50
+ }), q = Math.max(1, Math.ceil(H / k)), J = z * k + 1, Y = Math.min((z + 1) * k, H);
51
+ m(() => {
52
+ if (H === 0) {
53
+ B(0);
53
54
  return;
54
55
  }
55
- let e = Math.ceil(V / O) - 1;
56
- z((t) => t > e ? e : t);
57
- }, [V]);
58
- let { deleteContentPage: Y, loading: X } = u(), Z = async (e) => {
56
+ let e = Math.ceil(H / k) - 1;
57
+ B((t) => t > e ? e : t);
58
+ }, [H]);
59
+ let { deleteContentPage: X, loading: Z } = d(), { confirm: Q, ConfirmDialog: $ } = l(), ee = async (e) => {
59
60
  s("medium");
60
- let t = F("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), n = await o({
61
+ let t = I("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), n = await o({
61
62
  title: "Delete content page",
62
63
  message: t,
63
64
  okButtonTitle: "Delete",
64
65
  cancelButtonTitle: "Cancel"
65
66
  });
66
- if (n === null ? window.confirm(t) : n) try {
67
- await Y(e), c("success"), G();
67
+ if (n === null ? await Q({
68
+ title: "Delete content page",
69
+ message: t,
70
+ okButtonTitle: "Delete",
71
+ cancelButtonTitle: "Cancel",
72
+ destructive: !0
73
+ }) : n) try {
74
+ await X(e), c("success"), K();
68
75
  } catch (e) {
69
76
  c("error"), console.error("Failed to delete content page:", e);
70
77
  }
71
- }, Q = (e) => e ? new Date(e).toLocaleDateString("en-US", {
78
+ }, te = (e) => e ? new Date(e).toLocaleDateString("en-US", {
72
79
  year: "numeric",
73
80
  month: "short",
74
81
  day: "numeric"
75
82
  }) : "—";
76
- return /* @__PURE__ */ T("div", {
83
+ return /* @__PURE__ */ E("div", {
77
84
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
78
- children: [/* @__PURE__ */ T("div", {
79
- className: "mb-6",
80
- children: [
81
- /* @__PURE__ */ T("div", {
82
- className: "flex items-center justify-between mb-4",
83
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
84
- className: "text-3xl font-bold text-text-primary mb-2",
85
- children: F("contentPages.title", "Content Pages")
86
- }), /* @__PURE__ */ w("p", {
87
- className: "text-text-secondary",
88
- children: F("contentPages.subtitle", "Manage content pages and documentation")
89
- })] }), /* @__PURE__ */ w(E, {
90
- role: "super_admin",
91
- children: /* @__PURE__ */ T("button", {
85
+ children: [
86
+ /* @__PURE__ */ E("div", {
87
+ className: "mb-6",
88
+ children: [
89
+ /* @__PURE__ */ E("div", {
90
+ className: "flex items-center justify-between mb-4",
91
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
92
+ className: "text-3xl font-bold text-text-primary mb-2",
93
+ children: I("contentPages.title", "Content Pages")
94
+ }), /* @__PURE__ */ T("p", {
95
+ className: "text-text-secondary",
96
+ children: I("contentPages.subtitle", "Manage content pages and documentation")
97
+ })] }), /* @__PURE__ */ T(D, {
98
+ role: "super_admin",
99
+ children: /* @__PURE__ */ E("button", {
100
+ type: "button",
101
+ onClick: () => A(`${M}/new`),
102
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
103
+ children: [/* @__PURE__ */ T(x, { size: 20 }), I("contentPages.newPage", "New Page")]
104
+ })
105
+ })]
106
+ }),
107
+ /* @__PURE__ */ T("div", {
108
+ className: "flex flex-wrap gap-1 border-b border-default pb-px",
109
+ children: O.map((e) => /* @__PURE__ */ T("button", {
92
110
  type: "button",
93
- onClick: () => k(`${j}/new`),
94
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
95
- children: [/* @__PURE__ */ w(b, { size: 20 }), F("contentPages.newPage", "New Page")]
96
- })
97
- })]
98
- }),
99
- /* @__PURE__ */ w("div", {
100
- className: "flex flex-wrap gap-1 border-b border-default pb-px",
101
- children: D.map((e) => /* @__PURE__ */ w("button", {
102
- type: "button",
103
- onClick: () => {
104
- L({
105
- ...I,
106
- tag: e.tag || void 0
107
- }), z(0);
108
- },
109
- className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(I.tag ?? "") === e.tag ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
110
- children: F(`contentPages.tab.${e.label.toLowerCase()}`, e.label)
111
- }, e.label))
112
- }),
113
- /* @__PURE__ */ T("div", {
114
- className: "flex gap-4",
115
- children: [
116
- /* @__PURE__ */ w(i, {
117
- value: M,
118
- onChange: (e) => {
119
- N(e), z(0);
111
+ onClick: () => {
112
+ R({
113
+ ...L,
114
+ tag: e.tag || void 0
115
+ }), B(0);
120
116
  },
121
- placeholder: F("contentPages.searchPlaceholder", "Search content pages..."),
122
- className: "flex-1"
123
- }),
124
- /* @__PURE__ */ T("select", {
125
- value: I.isPublished === void 0 ? "" : I.isPublished ? "published" : "all",
126
- onChange: (e) => {
127
- L({
128
- ...I,
129
- isPublished: e.target.value === "published" ? !0 : void 0
130
- }), z(0);
131
- },
132
- className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
133
- children: [/* @__PURE__ */ w("option", {
134
- value: "",
135
- children: F("contentPages.filterAll", "All")
136
- }), /* @__PURE__ */ w("option", {
137
- value: "published",
138
- children: F("contentPages.publishedOnly", "Published Only")
139
- })]
140
- }),
141
- /* @__PURE__ */ w("button", {
142
- type: "button",
143
- onClick: () => G(),
144
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
145
- children: /* @__PURE__ */ w(x, { size: 18 })
146
- }),
147
- B.length > 0 && /* @__PURE__ */ w("button", {
148
- type: "button",
149
- onClick: () => a("content-pages", B.map((e) => ({
150
- id: e.id,
151
- slug: e.slug,
152
- title: e.title,
153
- isPublished: e.isPublished,
154
- contentFormat: e.contentFormat,
155
- tags: (e.tags ?? []).join(", "),
156
- sortOrder: e.sortOrder,
157
- productId: e.productId ?? "",
158
- createdAt: e.createdAt,
159
- updatedAt: e.updatedAt
160
- }))),
161
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
162
- title: F("contentPages.exportCsv", "Export as CSV"),
163
- children: /* @__PURE__ */ w(_, { size: 18 })
164
- })
165
- ]
166
- })
167
- ]
168
- }), W ? /* @__PURE__ */ w(r, {
169
- message: W.message,
170
- action: {
171
- label: F("productCommon.retry", "Retry"),
172
- onClick: () => G()
173
- }
174
- }) : U && B.length === 0 ? /* @__PURE__ */ w(n, { message: F("contentPages.loadingContentPages", "Loading content pages...") }) : B.length === 0 ? /* @__PURE__ */ T("div", {
175
- className: "bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-200",
176
- children: [/* @__PURE__ */ w("p", {
177
- className: "text-text-secondary mb-4",
178
- children: F("contentPages.noContentPagesFound", "No content pages found")
179
- }), /* @__PURE__ */ T("button", {
180
- type: "button",
181
- onClick: () => k(`${j}/new`),
182
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
183
- children: [/* @__PURE__ */ w(b, { size: 20 }), F("contentPages.newPage", "New Page")]
184
- })]
185
- }) : /* @__PURE__ */ T("div", {
186
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden",
187
- children: [/* @__PURE__ */ T("table", {
188
- className: "w-full",
189
- children: [/* @__PURE__ */ w("thead", {
190
- className: "bg-bg-sunken border-b border-default",
191
- children: /* @__PURE__ */ T("tr", { children: [
192
- /* @__PURE__ */ w("th", {
193
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
194
- children: F("contentPages.columnPage", "Page")
195
- }),
196
- /* @__PURE__ */ w("th", {
197
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
198
- children: F("contentPages.columnSlug", "Slug")
199
- }),
200
- /* @__PURE__ */ w("th", {
201
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
202
- children: F("contentPages.columnStatus", "Status")
203
- }),
204
- /* @__PURE__ */ w("th", {
205
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
206
- children: F("contentPages.columnVersion", "Version")
207
- }),
208
- /* @__PURE__ */ w("th", {
209
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
210
- children: F("contentPages.columnLastUpdated", "Last Updated")
211
- }),
212
- /* @__PURE__ */ w("th", {
213
- className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
214
- children: F("contentPages.columnActions", "Actions")
215
- })
216
- ] })
217
- }), /* @__PURE__ */ w("tbody", {
218
- className: "divide-y divide-[var(--color-border-default)]",
219
- children: B.map((e) => /* @__PURE__ */ T("tr", {
220
- className: "hover:bg-bg-sunken transition-all duration-200 cursor-pointer",
221
- onClick: () => k(`${j}/${e.id}`),
117
+ className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(L.tag ?? "") === e.tag ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
118
+ children: I(`contentPages.tab.${e.label.toLowerCase()}`, e.label)
119
+ }, e.label))
120
+ }),
121
+ /* @__PURE__ */ E("div", {
122
+ className: "flex gap-4",
222
123
  children: [
223
- /* @__PURE__ */ w("td", {
224
- className: "px-6 py-4",
225
- children: /* @__PURE__ */ T("div", {
226
- className: "flex items-center gap-3",
227
- children: [/* @__PURE__ */ w("div", {
228
- className: "size-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center",
229
- children: /* @__PURE__ */ w(y, {
230
- size: 20,
231
- className: "text-[var(--color-status-info)]"
232
- })
233
- }), /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
234
- className: "font-medium text-text-primary",
235
- children: e.title
236
- }) })]
237
- })
124
+ /* @__PURE__ */ T(i, {
125
+ value: N,
126
+ onChange: (e) => {
127
+ P(e), B(0);
128
+ },
129
+ placeholder: I("contentPages.searchPlaceholder", "Search content pages..."),
130
+ className: "flex-1"
238
131
  }),
239
- /* @__PURE__ */ w("td", {
240
- className: "px-6 py-4",
241
- children: /* @__PURE__ */ T("span", {
242
- className: "text-sm text-text-tertiary font-mono",
243
- children: ["/", e.slug]
244
- })
132
+ /* @__PURE__ */ E("select", {
133
+ value: L.isPublished === void 0 ? "" : L.isPublished ? "published" : "all",
134
+ onChange: (e) => {
135
+ R({
136
+ ...L,
137
+ isPublished: e.target.value === "published" ? !0 : void 0
138
+ }), B(0);
139
+ },
140
+ className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
141
+ children: [/* @__PURE__ */ T("option", {
142
+ value: "",
143
+ children: I("contentPages.filterAll", "All")
144
+ }), /* @__PURE__ */ T("option", {
145
+ value: "published",
146
+ children: I("contentPages.publishedOnly", "Published Only")
147
+ })]
245
148
  }),
246
- /* @__PURE__ */ w("td", {
247
- className: "px-6 py-4",
248
- children: /* @__PURE__ */ w(d, { isPublished: e.isPublished })
149
+ /* @__PURE__ */ T("button", {
150
+ type: "button",
151
+ onClick: () => K(),
152
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
153
+ children: /* @__PURE__ */ T(S, { size: 18 })
249
154
  }),
250
- /* @__PURE__ */ w("td", {
251
- className: "px-6 py-4",
252
- children: /* @__PURE__ */ T("span", {
253
- className: "text-sm text-text-primary font-mono",
254
- children: ["v", e.version]
255
- })
155
+ V.length > 0 && /* @__PURE__ */ T("button", {
156
+ type: "button",
157
+ onClick: () => a("content-pages", V.map((e) => ({
158
+ id: e.id,
159
+ slug: e.slug,
160
+ title: e.title,
161
+ isPublished: e.isPublished,
162
+ contentFormat: e.contentFormat,
163
+ tags: (e.tags ?? []).join(", "),
164
+ sortOrder: e.sortOrder,
165
+ productId: e.productId ?? "",
166
+ createdAt: e.createdAt,
167
+ updatedAt: e.updatedAt
168
+ }))),
169
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
170
+ title: I("contentPages.exportCsv", "Export as CSV"),
171
+ children: /* @__PURE__ */ T(v, { size: 18 })
172
+ })
173
+ ]
174
+ })
175
+ ]
176
+ }),
177
+ G ? /* @__PURE__ */ T(r, {
178
+ message: G.message,
179
+ action: {
180
+ label: I("productCommon.retry", "Retry"),
181
+ onClick: () => K()
182
+ }
183
+ }) : W && V.length === 0 ? /* @__PURE__ */ T(n, { message: I("contentPages.loadingContentPages", "Loading content pages...") }) : V.length === 0 ? /* @__PURE__ */ E("div", {
184
+ className: "bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-200",
185
+ children: [/* @__PURE__ */ T("p", {
186
+ className: "text-text-secondary mb-4",
187
+ children: I("contentPages.noContentPagesFound", "No content pages found")
188
+ }), /* @__PURE__ */ E("button", {
189
+ type: "button",
190
+ onClick: () => A(`${M}/new`),
191
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
192
+ children: [/* @__PURE__ */ T(x, { size: 20 }), I("contentPages.newPage", "New Page")]
193
+ })]
194
+ }) : /* @__PURE__ */ E("div", {
195
+ className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden",
196
+ children: [/* @__PURE__ */ E("table", {
197
+ className: "w-full",
198
+ children: [/* @__PURE__ */ T("thead", {
199
+ className: "bg-bg-sunken border-b border-default",
200
+ children: /* @__PURE__ */ E("tr", { children: [
201
+ /* @__PURE__ */ T("th", {
202
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
203
+ children: I("contentPages.columnPage", "Page")
256
204
  }),
257
- /* @__PURE__ */ w("td", {
258
- className: "px-6 py-4",
259
- children: /* @__PURE__ */ w("span", {
260
- className: "text-sm text-text-secondary",
261
- children: Q(e.lastUpdated || e.updatedAt)
262
- })
205
+ /* @__PURE__ */ T("th", {
206
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
207
+ children: I("contentPages.columnSlug", "Slug")
208
+ }),
209
+ /* @__PURE__ */ T("th", {
210
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
211
+ children: I("contentPages.columnStatus", "Status")
212
+ }),
213
+ /* @__PURE__ */ T("th", {
214
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
215
+ children: I("contentPages.columnVersion", "Version")
263
216
  }),
264
- /* @__PURE__ */ w("td", {
265
- className: "px-6 py-4",
266
- children: /* @__PURE__ */ T("div", {
267
- className: "flex items-center justify-end gap-2",
268
- onClick: (e) => e.stopPropagation(),
269
- children: [/* @__PURE__ */ w("button", {
270
- type: "button",
271
- onClick: () => k(`${j}/${e.id}`),
272
- className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
273
- title: F("contentPages.viewDetails", "View details"),
274
- children: /* @__PURE__ */ w(v, { size: 18 })
275
- }), /* @__PURE__ */ T(E, {
276
- role: "super_admin",
277
- children: [/* @__PURE__ */ w("button", {
217
+ /* @__PURE__ */ T("th", {
218
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
219
+ children: I("contentPages.columnLastUpdated", "Last Updated")
220
+ }),
221
+ /* @__PURE__ */ T("th", {
222
+ className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
223
+ children: I("contentPages.columnActions", "Actions")
224
+ })
225
+ ] })
226
+ }), /* @__PURE__ */ T("tbody", {
227
+ className: "divide-y divide-[var(--color-border-default)]",
228
+ children: V.map((e) => /* @__PURE__ */ E("tr", {
229
+ className: "hover:bg-bg-sunken transition-all duration-200 cursor-pointer",
230
+ onClick: () => A(`${M}/${e.id}`),
231
+ children: [
232
+ /* @__PURE__ */ T("td", {
233
+ className: "px-6 py-4",
234
+ children: /* @__PURE__ */ E("div", {
235
+ className: "flex items-center gap-3",
236
+ children: [/* @__PURE__ */ T("div", {
237
+ className: "size-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center",
238
+ children: /* @__PURE__ */ T(b, {
239
+ size: 20,
240
+ className: "text-[var(--color-status-info)]"
241
+ })
242
+ }), /* @__PURE__ */ T("div", { children: /* @__PURE__ */ T("p", {
243
+ className: "font-medium text-text-primary",
244
+ children: e.title
245
+ }) })]
246
+ })
247
+ }),
248
+ /* @__PURE__ */ T("td", {
249
+ className: "px-6 py-4",
250
+ children: /* @__PURE__ */ E("span", {
251
+ className: "text-sm text-text-tertiary font-mono",
252
+ children: ["/", e.slug]
253
+ })
254
+ }),
255
+ /* @__PURE__ */ T("td", {
256
+ className: "px-6 py-4",
257
+ children: /* @__PURE__ */ T(f, { isPublished: e.isPublished })
258
+ }),
259
+ /* @__PURE__ */ T("td", {
260
+ className: "px-6 py-4",
261
+ children: /* @__PURE__ */ E("span", {
262
+ className: "text-sm text-text-primary font-mono",
263
+ children: ["v", e.version]
264
+ })
265
+ }),
266
+ /* @__PURE__ */ T("td", {
267
+ className: "px-6 py-4",
268
+ children: /* @__PURE__ */ T("span", {
269
+ className: "text-sm text-text-secondary",
270
+ children: te(e.lastUpdated || e.updatedAt)
271
+ })
272
+ }),
273
+ /* @__PURE__ */ T("td", {
274
+ className: "px-6 py-4",
275
+ children: /* @__PURE__ */ E("div", {
276
+ className: "flex items-center justify-end gap-2",
277
+ onClick: (e) => e.stopPropagation(),
278
+ children: [/* @__PURE__ */ T("button", {
278
279
  type: "button",
279
- onClick: () => k(`${j}/${e.id}/edit`),
280
+ onClick: () => A(`${M}/${e.id}`),
280
281
  className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
281
- title: F("contentPages.edit", "Edit"),
282
- children: /* @__PURE__ */ w(S, { size: 18 })
283
- }), /* @__PURE__ */ w("button", {
284
- type: "button",
285
- onClick: () => Z(e.id),
286
- disabled: X,
287
- className: "p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50",
288
- title: F("contentPages.delete", "Delete"),
289
- children: /* @__PURE__ */ w(C, { size: 18 })
282
+ title: I("contentPages.viewDetails", "View details"),
283
+ children: /* @__PURE__ */ T(y, { size: 18 })
284
+ }), /* @__PURE__ */ E(D, {
285
+ role: "super_admin",
286
+ children: [/* @__PURE__ */ T("button", {
287
+ type: "button",
288
+ onClick: () => A(`${M}/${e.id}/edit`),
289
+ className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
290
+ title: I("contentPages.edit", "Edit"),
291
+ children: /* @__PURE__ */ T(C, { size: 18 })
292
+ }), /* @__PURE__ */ T("button", {
293
+ type: "button",
294
+ onClick: () => ee(e.id),
295
+ disabled: Z,
296
+ className: "p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50",
297
+ title: I("contentPages.delete", "Delete"),
298
+ children: /* @__PURE__ */ T(w, { size: 18 })
299
+ })]
290
300
  })]
291
- })]
301
+ })
292
302
  })
303
+ ]
304
+ }, e.id))
305
+ })]
306
+ }), H > k && /* @__PURE__ */ E("div", {
307
+ className: "flex items-center justify-between px-6 py-3 border-t border-default bg-bg-sunken/50",
308
+ children: [/* @__PURE__ */ E("p", {
309
+ className: "text-sm text-text-secondary",
310
+ children: [
311
+ I("contentPages.showing", "Showing"),
312
+ " ",
313
+ J,
314
+ "–",
315
+ Y,
316
+ " ",
317
+ I("contentPages.of", "of"),
318
+ " ",
319
+ H,
320
+ " ",
321
+ I("contentPages.contentPages", "content pages")
322
+ ]
323
+ }), /* @__PURE__ */ E("div", {
324
+ className: "flex items-center gap-2",
325
+ children: [
326
+ /* @__PURE__ */ E("button", {
327
+ type: "button",
328
+ onClick: () => B((e) => Math.max(0, e - 1)),
329
+ disabled: z === 0 || W,
330
+ "aria-label": I("contentPages.prevPage", "Previous page"),
331
+ className: "\n inline-flex items-center gap-1 px-3 py-1.5 text-sm\n bg-surface border border-default rounded-lg\n text-text-primary\n hover:bg-bg-sunken transition-all duration-200\n disabled:opacity-40 disabled:cursor-not-allowed\n ",
332
+ children: [/* @__PURE__ */ T(g, { size: 16 }), I("contentPages.prev", "Prev")]
333
+ }),
334
+ /* @__PURE__ */ E("span", {
335
+ className: "text-sm text-text-secondary px-2 tabular-nums",
336
+ children: [
337
+ z + 1,
338
+ " / ",
339
+ q
340
+ ]
341
+ }),
342
+ /* @__PURE__ */ E("button", {
343
+ type: "button",
344
+ onClick: () => B((e) => e + 1),
345
+ disabled: !U && z + 1 >= q || W,
346
+ "aria-label": I("contentPages.nextPage", "Next page"),
347
+ className: "\n inline-flex items-center gap-1 px-3 py-1.5 text-sm\n bg-surface border border-default rounded-lg\n text-text-primary\n hover:bg-bg-sunken transition-all duration-200\n disabled:opacity-40 disabled:cursor-not-allowed\n ",
348
+ children: [I("contentPages.next", "Next"), /* @__PURE__ */ T(_, { size: 16 })]
293
349
  })
294
350
  ]
295
- }, e.id))
296
- })]
297
- }), V > O && /* @__PURE__ */ T("div", {
298
- className: "flex items-center justify-between px-6 py-3 border-t border-default bg-bg-sunken/50",
299
- children: [/* @__PURE__ */ T("p", {
300
- className: "text-sm text-text-secondary",
301
- children: [
302
- F("contentPages.showing", "Showing"),
303
- " ",
304
- q,
305
- "–",
306
- J,
307
- " ",
308
- F("contentPages.of", "of"),
309
- " ",
310
- V,
311
- " ",
312
- F("contentPages.contentPages", "content pages")
313
- ]
314
- }), /* @__PURE__ */ T("div", {
315
- className: "flex items-center gap-2",
316
- children: [
317
- /* @__PURE__ */ T("button", {
318
- type: "button",
319
- onClick: () => z((e) => Math.max(0, e - 1)),
320
- disabled: R === 0 || U,
321
- "aria-label": F("contentPages.prevPage", "Previous page"),
322
- className: "\n inline-flex items-center gap-1 px-3 py-1.5 text-sm\n bg-surface border border-default rounded-lg\n text-text-primary\n hover:bg-bg-sunken transition-all duration-200\n disabled:opacity-40 disabled:cursor-not-allowed\n ",
323
- children: [/* @__PURE__ */ w(h, { size: 16 }), F("contentPages.prev", "Prev")]
324
- }),
325
- /* @__PURE__ */ T("span", {
326
- className: "text-sm text-text-secondary px-2",
327
- children: [
328
- R + 1,
329
- " / ",
330
- K
331
- ]
332
- }),
333
- /* @__PURE__ */ T("button", {
334
- type: "button",
335
- onClick: () => z((e) => e + 1),
336
- disabled: !H && R + 1 >= K || U,
337
- "aria-label": F("contentPages.nextPage", "Next page"),
338
- className: "\n inline-flex items-center gap-1 px-3 py-1.5 text-sm\n bg-surface border border-default rounded-lg\n text-text-primary\n hover:bg-bg-sunken transition-all duration-200\n disabled:opacity-40 disabled:cursor-not-allowed\n ",
339
- children: [F("contentPages.next", "Next"), /* @__PURE__ */ w(g, { size: 16 })]
340
- })
341
- ]
351
+ })]
342
352
  })]
343
- })]
344
- })]
353
+ }),
354
+ $
355
+ ]
345
356
  });
346
357
  }
347
358
  //#endregion
348
- export { k as ContentPagesListPage };
359
+ export { A as ContentPagesListPage };
349
360
 
350
361
  //# sourceMappingURL=ContentPagesListPage.js.map