@burdenoff/microfe-product 2026.624.3 → 2026.626.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/product/pages/ContentPageViewPage.js +41 -36
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductCatalogPage.js +63 -50
- package/dist/product/pages/ProductCatalogPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +220 -178
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +7 -7
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +28 -26
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +119 -90
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +33 -31
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +171 -161
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +26 -24
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +152 -125
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +36 -34
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +144 -136
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +28 -26
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +111 -84
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +33 -31
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +85 -75
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +8 -8
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductPlans.js +136 -147
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +28 -26
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +170 -140
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.js +32 -30
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +219 -202
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +3 -3
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +28 -23
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +228 -209
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +31 -26
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +209 -198
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
- package/dist/product-management/shared/components/AuditHistoryTab.js +19 -17
- package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
- package/dist/product-management/shared/components/feedback/EmptyState.js +2 -20
- package/package.json +2 -2
- package/dist/product-management/shared/components/feedback/EmptyState.js.map +0 -1
|
@@ -1,301 +1,312 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
2
|
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
3
|
import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
|
|
4
|
-
import { ErrorState as
|
|
5
|
-
import { SearchInput as
|
|
6
|
-
import { nativeConfirm as
|
|
7
|
-
import { useConfirmDialog as
|
|
8
|
-
import { useDebounced as
|
|
9
|
-
import { useDeleteShortcut as
|
|
10
|
-
import { ShortcutCategories as
|
|
11
|
-
import { ShortcutCategoryBadge as
|
|
12
|
-
import { ShortcutKeyBadge as
|
|
13
|
-
import { useState as
|
|
14
|
-
import { Eye as
|
|
15
|
-
import { jsx as
|
|
16
|
-
import { PermissionGate as
|
|
4
|
+
import { ErrorState as ee } from "../../../shared/components/feedback/ErrorState.js";
|
|
5
|
+
import { SearchInput as r } from "../../../shared/components/input/SearchInput.js";
|
|
6
|
+
import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
|
|
7
|
+
import { useConfirmDialog as s } from "../../../shared/hooks/useConfirmDialog.js";
|
|
8
|
+
import { useDebounced as c } from "../../../shared/hooks/useDebounced.js";
|
|
9
|
+
import { useDeleteShortcut as l, useSeedDefaultShortcuts as u, useShortcuts as d, useToggleShortcut as f } from "../hooks/useShortcuts.js";
|
|
10
|
+
import { ShortcutCategories as p } from "../types/index.js";
|
|
11
|
+
import { ShortcutCategoryBadge as m } from "../components/ShortcutCategoryBadge.js";
|
|
12
|
+
import { ShortcutKeyBadge as h } from "../components/ShortcutKeyBadge.js";
|
|
13
|
+
import { useState as g } from "react";
|
|
14
|
+
import { Eye as _, Plus as v, RefreshCw as te, Sparkles as y, SquarePen as b, ToggleLeft as x, ToggleRight as S, Trash2 as C } from "lucide-react";
|
|
15
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
16
|
+
import { PermissionGate as E } from "@burdenoff/fe-libs/shared/components";
|
|
17
|
+
import { Button as D, CTAOverflowMenu as O, GlassCard as k, GradientText as A, IllustratedEmptyState as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
17
18
|
//#region src/product-management/modules/shortcuts/pages/ShortcutsListPage.tsx
|
|
18
|
-
function
|
|
19
|
-
let { navigate:
|
|
20
|
-
...
|
|
21
|
-
search:
|
|
22
|
-
}, { limit: 50 }), { deleteShortcut:
|
|
23
|
-
|
|
24
|
-
let t =
|
|
19
|
+
function N() {
|
|
20
|
+
let { navigate: N, basePath: P = "/products" } = t(), F = e(), { confirm: I, ConfirmDialog: L } = s(), [R, z] = g(""), B = c(R, 300), [V, H] = g({}), { shortcuts: U, loading: W, error: G, refetch: K } = d({
|
|
21
|
+
...V,
|
|
22
|
+
search: B || void 0
|
|
23
|
+
}, { limit: 50 }), { deleteShortcut: q, loading: J } = l(), { toggleShortcut: Y, loading: X } = f(), { seedDefaultShortcuts: Z, loading: Q } = u(), ne = async (e) => {
|
|
24
|
+
a("medium");
|
|
25
|
+
let t = F("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), n = await i({
|
|
25
26
|
title: "Delete shortcut",
|
|
26
27
|
message: t,
|
|
27
28
|
okButtonTitle: "Delete",
|
|
28
29
|
cancelButtonTitle: "Cancel"
|
|
29
30
|
});
|
|
30
|
-
if (n === null ? await
|
|
31
|
+
if (n === null ? await I({
|
|
31
32
|
title: "Delete shortcut",
|
|
32
33
|
message: t,
|
|
33
34
|
okButtonTitle: "Delete",
|
|
34
35
|
cancelButtonTitle: "Cancel",
|
|
35
36
|
destructive: !0
|
|
36
37
|
}) : n) try {
|
|
37
|
-
await
|
|
38
|
+
await q(e), o("success"), K();
|
|
38
39
|
} catch (e) {
|
|
39
|
-
|
|
40
|
+
o("error"), console.error("Failed to delete shortcut:", e);
|
|
40
41
|
}
|
|
41
|
-
},
|
|
42
|
-
|
|
42
|
+
}, re = async (e, t) => {
|
|
43
|
+
a("medium");
|
|
43
44
|
try {
|
|
44
|
-
await
|
|
45
|
+
await Y(e, !t), K();
|
|
45
46
|
} catch (e) {
|
|
46
|
-
|
|
47
|
+
o("error"), console.error("Failed to toggle shortcut:", e);
|
|
47
48
|
}
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
let e =
|
|
49
|
+
}, $ = async () => {
|
|
50
|
+
a("light");
|
|
51
|
+
let e = F("shortcuts.confirmSeedDefaults", "This will create default global shortcuts. Continue?"), t = await i({
|
|
51
52
|
title: "Seed defaults",
|
|
52
53
|
message: e,
|
|
53
54
|
okButtonTitle: "Continue",
|
|
54
55
|
cancelButtonTitle: "Cancel"
|
|
55
56
|
});
|
|
56
|
-
if (t === null ? await
|
|
57
|
+
if (t === null ? await I({
|
|
57
58
|
title: "Seed defaults",
|
|
58
59
|
message: e,
|
|
59
60
|
okButtonTitle: "Continue",
|
|
60
61
|
cancelButtonTitle: "Cancel"
|
|
61
62
|
}) : t) try {
|
|
62
|
-
let e = (await
|
|
63
|
-
|
|
63
|
+
let e = (await Z()).data?.seedDefaultShortcuts || 0;
|
|
64
|
+
o("success"), alert(`Created ${e} default shortcuts.`), K();
|
|
64
65
|
} catch (e) {
|
|
65
|
-
|
|
66
|
+
o("error"), console.error("Failed to seed shortcuts:", e);
|
|
66
67
|
}
|
|
67
68
|
};
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ T("div", {
|
|
69
70
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
|
|
70
71
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ T("div", {
|
|
72
73
|
className: "mb-6",
|
|
73
|
-
children: [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
...
|
|
112
|
-
|
|
113
|
-
}),
|
|
114
|
-
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 ",
|
|
115
|
-
children: [/* @__PURE__ */ E("option", {
|
|
116
|
-
value: "",
|
|
117
|
-
children: j("shortcuts.allCategories", "All Categories")
|
|
118
|
-
}), Object.values(m).map((e) => /* @__PURE__ */ E("option", {
|
|
119
|
-
value: e,
|
|
120
|
-
children: e
|
|
121
|
-
}, e))]
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ D("select", {
|
|
124
|
-
value: L.isEnabled === void 0 || L.isEnabled === null ? "" : L.isEnabled.toString(),
|
|
125
|
-
onChange: (e) => R({
|
|
126
|
-
...L,
|
|
127
|
-
isEnabled: e.target.value === "" ? void 0 : e.target.value === "true"
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ T("div", {
|
|
76
|
+
className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",
|
|
77
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
|
|
78
|
+
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary mb-2",
|
|
79
|
+
children: /* @__PURE__ */ w(A, { children: F("shortcuts.title", "Keyboard Shortcuts") })
|
|
80
|
+
}), /* @__PURE__ */ w("p", {
|
|
81
|
+
className: "text-text-secondary",
|
|
82
|
+
children: F("shortcuts.subtitle", "Manage keyboard shortcuts across all Burdenoff products")
|
|
83
|
+
})] }), /* @__PURE__ */ w(E, {
|
|
84
|
+
role: "super_admin",
|
|
85
|
+
children: /* @__PURE__ */ w(O, {
|
|
86
|
+
primary: {
|
|
87
|
+
label: F("shortcuts.createShortcut", "Create Shortcut"),
|
|
88
|
+
onSelect: () => N(`${P}/shortcuts/new`),
|
|
89
|
+
icon: /* @__PURE__ */ w(v, { className: "size-4" })
|
|
90
|
+
},
|
|
91
|
+
actions: [{
|
|
92
|
+
label: F("shortcuts.seedDefaults", "Seed Defaults"),
|
|
93
|
+
onSelect: () => {
|
|
94
|
+
$();
|
|
95
|
+
},
|
|
96
|
+
disabled: Q,
|
|
97
|
+
icon: /* @__PURE__ */ w(y, { className: "size-4" })
|
|
98
|
+
}]
|
|
99
|
+
})
|
|
100
|
+
})]
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ w(M, {
|
|
103
|
+
className: "mb-4",
|
|
104
|
+
children: F("shortcuts.purpose", "Keyboard shortcuts map a key combination to an in-app event so power users can move fast. Define product-specific or global shortcuts, enable or disable them on the fly, and use \"Seed Defaults\" to load the standard set in one click.")
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ T("div", {
|
|
107
|
+
className: "flex gap-4",
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ w(r, {
|
|
110
|
+
value: R,
|
|
111
|
+
onChange: z,
|
|
112
|
+
placeholder: F("shortcuts.searchPlaceholder", "Search shortcuts..."),
|
|
113
|
+
className: "flex-1"
|
|
128
114
|
}),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
115
|
+
/* @__PURE__ */ T("select", {
|
|
116
|
+
value: V.category || "",
|
|
117
|
+
onChange: (e) => H({
|
|
118
|
+
...V,
|
|
119
|
+
category: e.target.value || void 0
|
|
134
120
|
}),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
121
|
+
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 ",
|
|
122
|
+
children: [/* @__PURE__ */ w("option", {
|
|
123
|
+
value: "",
|
|
124
|
+
children: F("shortcuts.allCategories", "All Categories")
|
|
125
|
+
}), Object.values(p).map((e) => /* @__PURE__ */ w("option", {
|
|
126
|
+
value: e,
|
|
127
|
+
children: e
|
|
128
|
+
}, e))]
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ T("select", {
|
|
131
|
+
value: V.isEnabled === void 0 || V.isEnabled === null ? "" : V.isEnabled.toString(),
|
|
132
|
+
onChange: (e) => H({
|
|
133
|
+
...V,
|
|
134
|
+
isEnabled: e.target.value === "" ? void 0 : e.target.value === "true"
|
|
138
135
|
}),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
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 ",
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ w("option", {
|
|
139
|
+
value: "",
|
|
140
|
+
children: F("shortcuts.allStatus", "All Status")
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ w("option", {
|
|
143
|
+
value: "true",
|
|
144
|
+
children: F("shortcuts.enabled", "Enabled")
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ w("option", {
|
|
147
|
+
value: "false",
|
|
148
|
+
children: F("shortcuts.disabled", "Disabled")
|
|
149
|
+
})
|
|
150
|
+
]
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ w("button", {
|
|
153
|
+
type: "button",
|
|
154
|
+
onClick: () => K(),
|
|
155
|
+
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 ",
|
|
156
|
+
children: /* @__PURE__ */ w(te, { size: 18 })
|
|
157
|
+
})
|
|
158
|
+
]
|
|
159
|
+
})
|
|
160
|
+
]
|
|
153
161
|
}),
|
|
154
|
-
|
|
155
|
-
message:
|
|
162
|
+
G ? /* @__PURE__ */ w(ee, {
|
|
163
|
+
message: G.message,
|
|
156
164
|
action: {
|
|
157
|
-
label:
|
|
158
|
-
onClick: () =>
|
|
165
|
+
label: F("productCommon.retry", "Retry"),
|
|
166
|
+
onClick: () => K()
|
|
159
167
|
}
|
|
160
|
-
}) :
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
168
|
+
}) : W && U.length === 0 ? /* @__PURE__ */ w(n, { message: F("shortcuts.loadingShortcuts", "Loading keyboard shortcuts...") }) : U.length === 0 ? /* @__PURE__ */ w(k, {
|
|
169
|
+
treatment: "insight",
|
|
170
|
+
className: "animate-in fade-in duration-200",
|
|
171
|
+
children: /* @__PURE__ */ w(j, {
|
|
172
|
+
illustration: R || V.category || V.isEnabled !== void 0 ? "empty-search" : "empty-data",
|
|
173
|
+
title: F("shortcuts.noShortcutsFound", "No keyboard shortcuts found"),
|
|
174
|
+
action: /* @__PURE__ */ T("div", {
|
|
175
|
+
className: "flex flex-wrap items-center justify-center gap-3",
|
|
176
|
+
children: [/* @__PURE__ */ T(D, {
|
|
177
|
+
type: "button",
|
|
178
|
+
variant: "outline",
|
|
179
|
+
onClick: $,
|
|
180
|
+
disabled: Q,
|
|
181
|
+
children: [/* @__PURE__ */ w(y, { className: "size-4" }), F("shortcuts.seedDefaults", "Seed Defaults")]
|
|
182
|
+
}), /* @__PURE__ */ T(D, {
|
|
183
|
+
type: "button",
|
|
184
|
+
onClick: () => N(`${P}/shortcuts/new`),
|
|
185
|
+
children: [/* @__PURE__ */ w(v, { className: "size-4" }), F("shortcuts.createShortcut", "Create Shortcut")]
|
|
186
|
+
})]
|
|
187
|
+
})
|
|
188
|
+
})
|
|
189
|
+
}) : /* @__PURE__ */ w(k, {
|
|
190
|
+
treatment: "glass",
|
|
191
|
+
glow: !0,
|
|
192
|
+
className: "overflow-hidden p-0",
|
|
193
|
+
children: /* @__PURE__ */ T("table", {
|
|
183
194
|
className: "w-full",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
185
|
-
className: "bg-bg-sunken border-b border-
|
|
186
|
-
children: /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ w("thead", {
|
|
196
|
+
className: "bg-bg-sunken/60 border-b border-border-seam",
|
|
197
|
+
children: /* @__PURE__ */ T("tr", { children: [
|
|
198
|
+
/* @__PURE__ */ w("th", {
|
|
188
199
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
189
|
-
children:
|
|
200
|
+
children: F("shortcuts.columnShortcut", "Shortcut")
|
|
190
201
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ w("th", {
|
|
192
203
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
193
|
-
children:
|
|
204
|
+
children: F("shortcuts.columnLabel", "Label")
|
|
194
205
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ w("th", {
|
|
196
207
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
197
|
-
children:
|
|
208
|
+
children: F("shortcuts.columnCategory", "Category")
|
|
198
209
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ w("th", {
|
|
200
211
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
201
|
-
children:
|
|
212
|
+
children: F("shortcuts.columnEvent", "Event")
|
|
202
213
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ w("th", {
|
|
204
215
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
205
|
-
children:
|
|
216
|
+
children: F("shortcuts.columnProduct", "Product")
|
|
206
217
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ w("th", {
|
|
208
219
|
className: "text-center px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
209
|
-
children:
|
|
220
|
+
children: F("shortcuts.columnEnabled", "Enabled")
|
|
210
221
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ w("th", {
|
|
212
223
|
className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
213
|
-
children:
|
|
224
|
+
children: F("shortcuts.columnActions", "Actions")
|
|
214
225
|
})
|
|
215
226
|
] })
|
|
216
|
-
}), /* @__PURE__ */
|
|
217
|
-
className: "divide-y divide-
|
|
218
|
-
children:
|
|
219
|
-
className: "hover:bg-bg-sunken transition-
|
|
227
|
+
}), /* @__PURE__ */ w("tbody", {
|
|
228
|
+
className: "divide-y divide-border-seam",
|
|
229
|
+
children: U.map((e) => /* @__PURE__ */ T("tr", {
|
|
230
|
+
className: "hover:bg-bg-sunken/70 transition-colors duration-200",
|
|
220
231
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ w("td", {
|
|
222
233
|
className: "px-6 py-4",
|
|
223
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ w(h, {
|
|
224
235
|
shortcutKey: e.shortcutKey,
|
|
225
236
|
isSequence: e.isSequence
|
|
226
237
|
})
|
|
227
238
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ w("td", {
|
|
229
240
|
className: "px-6 py-4",
|
|
230
|
-
children: /* @__PURE__ */
|
|
241
|
+
children: /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
231
242
|
className: "font-medium text-text-primary",
|
|
232
243
|
children: e.label
|
|
233
|
-
}), e.description && /* @__PURE__ */
|
|
244
|
+
}), e.description && /* @__PURE__ */ w("p", {
|
|
234
245
|
className: "text-sm text-text-tertiary line-clamp-1",
|
|
235
246
|
children: e.description
|
|
236
247
|
})] })
|
|
237
248
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ w("td", {
|
|
239
250
|
className: "px-6 py-4",
|
|
240
|
-
children: /* @__PURE__ */
|
|
251
|
+
children: /* @__PURE__ */ w(m, { category: e.category })
|
|
241
252
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ w("td", {
|
|
243
254
|
className: "px-6 py-4",
|
|
244
|
-
children: /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ w("code", {
|
|
245
256
|
className: "text-sm text-text-secondary bg-bg-sunken px-1.5 py-0.5 rounded font-mono",
|
|
246
257
|
children: e.eventName
|
|
247
258
|
})
|
|
248
259
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ w("td", {
|
|
250
261
|
className: "px-6 py-4",
|
|
251
|
-
children: /* @__PURE__ */
|
|
262
|
+
children: /* @__PURE__ */ w("span", {
|
|
252
263
|
className: "text-sm text-text-primary",
|
|
253
|
-
children: e.product?.name || /* @__PURE__ */
|
|
264
|
+
children: e.product?.name || /* @__PURE__ */ w("span", {
|
|
254
265
|
className: "text-text-tertiary italic",
|
|
255
|
-
children:
|
|
266
|
+
children: F("shortcuts.global", "Global")
|
|
256
267
|
})
|
|
257
268
|
})
|
|
258
269
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ w("td", {
|
|
260
271
|
className: "px-6 py-4 text-center",
|
|
261
|
-
children: /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ w("button", {
|
|
262
273
|
type: "button",
|
|
263
|
-
onClick: () =>
|
|
264
|
-
disabled:
|
|
274
|
+
onClick: () => re(e.id, e.isEnabled),
|
|
275
|
+
disabled: X,
|
|
265
276
|
className: `
|
|
266
277
|
p-1 rounded-lg transition-all duration-200
|
|
267
278
|
${e.isEnabled ? "text-[var(--color-status-success)] hover:bg-[var(--color-status-success-subtle)]" : "text-text-tertiary hover:bg-bg-sunken"}
|
|
268
279
|
disabled:opacity-50
|
|
269
280
|
`,
|
|
270
|
-
title: e.isEnabled ?
|
|
271
|
-
children: e.isEnabled ? /* @__PURE__ */
|
|
281
|
+
title: e.isEnabled ? F("shortcuts.disable", "Disable") : F("shortcuts.enable", "Enable"),
|
|
282
|
+
children: e.isEnabled ? /* @__PURE__ */ w(S, { size: 24 }) : /* @__PURE__ */ w(x, { size: 24 })
|
|
272
283
|
})
|
|
273
284
|
}),
|
|
274
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ w("td", {
|
|
275
286
|
className: "px-6 py-4",
|
|
276
|
-
children: /* @__PURE__ */
|
|
287
|
+
children: /* @__PURE__ */ T("div", {
|
|
277
288
|
className: "flex items-center justify-end gap-2",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ w("button", {
|
|
279
290
|
type: "button",
|
|
280
|
-
onClick: () =>
|
|
291
|
+
onClick: () => N(`${P}/shortcuts/${e.id}`),
|
|
281
292
|
className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
|
|
282
|
-
title:
|
|
283
|
-
children: /* @__PURE__ */
|
|
284
|
-
}), /* @__PURE__ */
|
|
293
|
+
title: F("shortcuts.viewDetails", "View details"),
|
|
294
|
+
children: /* @__PURE__ */ w(_, { size: 18 })
|
|
295
|
+
}), /* @__PURE__ */ T(E, {
|
|
285
296
|
role: "super_admin",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ w("button", {
|
|
287
298
|
type: "button",
|
|
288
|
-
onClick: () =>
|
|
299
|
+
onClick: () => N(`${P}/shortcuts/${e.id}/edit`),
|
|
289
300
|
className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
|
|
290
|
-
title:
|
|
291
|
-
children: /* @__PURE__ */
|
|
292
|
-
}), /* @__PURE__ */
|
|
301
|
+
title: F("shortcuts.edit", "Edit"),
|
|
302
|
+
children: /* @__PURE__ */ w(b, { size: 18 })
|
|
303
|
+
}), /* @__PURE__ */ w("button", {
|
|
293
304
|
type: "button",
|
|
294
|
-
onClick: () =>
|
|
295
|
-
disabled:
|
|
305
|
+
onClick: () => ne(e.id),
|
|
306
|
+
disabled: J,
|
|
296
307
|
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:
|
|
298
|
-
children: /* @__PURE__ */
|
|
308
|
+
title: F("shortcuts.delete", "Delete"),
|
|
309
|
+
children: /* @__PURE__ */ w(C, { size: 18 })
|
|
299
310
|
})]
|
|
300
311
|
})]
|
|
301
312
|
})
|
|
@@ -305,11 +316,11 @@ function k() {
|
|
|
305
316
|
})]
|
|
306
317
|
})
|
|
307
318
|
}),
|
|
308
|
-
|
|
319
|
+
L
|
|
309
320
|
]
|
|
310
321
|
});
|
|
311
322
|
}
|
|
312
323
|
//#endregion
|
|
313
|
-
export {
|
|
324
|
+
export { N as ShortcutsListPage };
|
|
314
325
|
|
|
315
326
|
//# sourceMappingURL=ShortcutsListPage.js.map
|