@feedmepos/mf-miniprogram-v2 0.2.8-dev.2 → 0.2.8-dev.21
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/{App-C8Vn8LvE.js → App-dgkwfArX.js} +337 -338
- package/dist/{BrandFontPicker-JHyoGusq.js → BrandFontPicker-CF3O3meB.js} +1 -1
- package/dist/BrandKitView-CdLMBZKd.js +276 -0
- package/dist/ControlPlaneView-BDPzyv_Z.js +27172 -0
- package/dist/{EcosystemView-XP9IZ9wn.js → EcosystemView-DHtS5IDN.js} +115 -93
- package/dist/MobileProjectDialog-Bt6r-bHC.js +446 -0
- package/dist/MobileProjectsView-Dvj7YKlO.js +237 -0
- package/dist/ModuleCenterView-t8rhd419.js +283 -0
- package/dist/ModuleDetailView-CcqJ4Hfu.js +296 -0
- package/dist/{PagesView-DzDqCd8N.js → PagesView-D0RMTyqw.js} +2 -2
- package/dist/{PlatformUnavailableView-CdHjkolw.js → PlatformUnavailableView-OHEJAztd.js} +1 -1
- package/dist/{PortalSettingsView-Df5jChmi.js → PortalSettingsView-B68s6fiS.js} +3 -3
- package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js +41 -0
- package/dist/TemplateCenterView-Cpr39Y5S.js +515 -0
- package/dist/{WorkspaceEntryView-DQkYJWdf.js → WorkspaceEntryView-gM7RX5BV.js} +2 -2
- package/dist/app.js +15 -15
- package/dist/{controlPlane-sXaC6pAh.js → controlPlane-DR5ykj4d.js} +8 -8
- package/dist/{adminAccess-D2K-L-Vt.js → localPreference-Do4VKtxT.js} +35 -35
- package/dist/package.json +1 -1
- package/dist/{portalContext-DV-6uUwp.js → portalContext-BeKN8Bcx.js} +2 -2
- package/dist/portalNavigation-DLcC7Koh.js +43 -0
- package/dist/{routes-CeuodIgg.js → routes-B9oMJsaM.js} +45 -27
- package/dist/style.css +1 -1
- package/dist/{useBrandKit-CXLIXo5j.js → useBrandKit-MkgkEuIX.js} +265 -233
- package/dist/useModuleCatalog-Daw8KA--.js +147 -0
- package/package.json +1 -1
- package/dist/AppTemplatePicker.vue_vue_type_script_setup_true_lang-LE_aKvfg.js +0 -198
- package/dist/BrandKitView-Dlt_ifI0.js +0 -249
- package/dist/ControlPlaneView-qDA8RgiR.js +0 -25317
- package/dist/MobileProjectsView-aAyHV5G-.js +0 -333
- package/dist/ModuleCenterView-C6mCPATr.js +0 -147
- package/dist/ModuleDetailView-CSfMF0Uo.js +0 -189
- package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-CMgQ0bd_.js +0 -30
- package/dist/TemplateCenterView-DrWImUYO.js +0 -425
- package/dist/portalNavigation-C29ihtq_.js +0 -38
- package/dist/useModuleCatalog-Cep-pzWO.js +0 -124
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { defineComponent as j, computed as _, ref as F, watch as Y, resolveComponent as h, openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as a, createVNode as c, createCommentVNode as u, createTextVNode as M, Fragment as N, renderList as P, unref as m, normalizeClass as V, withCtx as B, onMounted as G, createBlock as C } from "vue";
|
|
2
|
+
import { useRoute as R, useRouter as A } from "vue-router";
|
|
3
|
+
import { useDialog as H } from "@feedmepos/ui-library";
|
|
4
|
+
import { m as J, b as Q, u as W, _ as q } from "./useModuleCatalog-Daw8KA--.js";
|
|
5
|
+
import { w as X } from "./portalNavigation-DLcC7Koh.js";
|
|
6
|
+
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const Z = { class: "detail" }, ee = { class: "detail__head" }, te = { class: "detail__name fm-typo-en-title-sm-600 text-portal-text-primary" }, oe = { class: "detail__version fm-typo-en-body-md-400 text-portal-text-muted" }, ne = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "detail__description fm-typo-en-body-md-400 text-portal-text-muted"
|
|
10
|
+
}, se = { class: "detail__columns" }, le = { class: "detail__preview" }, ae = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "detail__note detail__note--error fm-typo-en-body-md-400"
|
|
13
|
+
}, ie = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "detail__note fm-typo-en-body-md-400"
|
|
16
|
+
}, re = ["srcdoc"], de = { class: "detail__facts" }, ue = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "detail__viewing"
|
|
19
|
+
}, me = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "detail__section"
|
|
22
|
+
}, ce = { class: "detail__siblings" }, ye = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "detail__sibling-tag"
|
|
25
|
+
}, pe = { class: "detail__section" }, _e = { class: "detail__list fm-typo-en-body-md-400" }, ve = { key: 0 }, be = { key: 1 }, fe = { class: "detail__section" }, ge = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "detail__note fm-typo-en-body-md-400"
|
|
28
|
+
}, he = {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: "detail__props"
|
|
31
|
+
}, we = {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "detail__optional fm-typo-en-body-sm-400"
|
|
34
|
+
}, ke = { class: "detail__section" }, xe = ["aria-expanded"], Ce = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "detail__dev-body"
|
|
37
|
+
}, De = { class: "detail__list fm-typo-en-body-md-400" }, Le = { key: 0 }, qe = { key: 1 }, $e = ["value"], Ie = /* @__PURE__ */ j({
|
|
38
|
+
__name: "ModuleDetail",
|
|
39
|
+
props: {
|
|
40
|
+
entry: {},
|
|
41
|
+
siblings: {},
|
|
42
|
+
previewDocument: {},
|
|
43
|
+
previewError: {}
|
|
44
|
+
},
|
|
45
|
+
setup(o) {
|
|
46
|
+
const y = R(), w = A(), l = o, v = _(() => l.siblings.length > 1 ? l.siblings : []);
|
|
47
|
+
function g(r) {
|
|
48
|
+
var t;
|
|
49
|
+
return r.styleLabel || ((t = r.labels) == null ? void 0 : t[0]) || r.description || r.name;
|
|
50
|
+
}
|
|
51
|
+
const D = H(), p = F(!1);
|
|
52
|
+
let b;
|
|
53
|
+
const i = F(!1), f = _(() => J(l.entry)), k = _(
|
|
54
|
+
() => l.previewDocument ? Q(l.previewDocument, l.entry.name) : null
|
|
55
|
+
);
|
|
56
|
+
Y(
|
|
57
|
+
() => l.entry.name,
|
|
58
|
+
() => {
|
|
59
|
+
p.value = !1;
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
function L() {
|
|
63
|
+
const r = y.query.returnProjectId;
|
|
64
|
+
if (typeof r == "string" && r) {
|
|
65
|
+
w.push(X(r, "workspace", y.query, { library: l.entry.name }));
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
w.push({ name: "miniprogram-v2-mobile-projects", query: { ...y.query, library: l.entry.name } });
|
|
69
|
+
}
|
|
70
|
+
async function K() {
|
|
71
|
+
try {
|
|
72
|
+
await navigator.clipboard.writeText(f.value), p.value = !0, window.clearTimeout(b), b = window.setTimeout(() => {
|
|
73
|
+
p.value = !1;
|
|
74
|
+
}, 2e3);
|
|
75
|
+
} catch (r) {
|
|
76
|
+
D.open({
|
|
77
|
+
title: "Could not copy",
|
|
78
|
+
message: `${r instanceof Error ? r.message : String(r)}. Select the text below and copy it manually.`,
|
|
79
|
+
dismissAway: !0,
|
|
80
|
+
primaryActions: { close: !0, text: "OK" }
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return (r, t) => {
|
|
85
|
+
var I, E, S, T, z;
|
|
86
|
+
const $ = h("FmButton"), x = h("FmIcon"), U = h("RouterLink");
|
|
87
|
+
return n(), s("div", Z, [
|
|
88
|
+
e("header", ee, [
|
|
89
|
+
e("h3", te, a(o.entry.name), 1),
|
|
90
|
+
e("span", oe, a(o.entry.version), 1),
|
|
91
|
+
c($, {
|
|
92
|
+
class: "detail__use",
|
|
93
|
+
size: "md",
|
|
94
|
+
variant: "primary",
|
|
95
|
+
icon: "bolt",
|
|
96
|
+
label: "Use this style",
|
|
97
|
+
onClick: L
|
|
98
|
+
}),
|
|
99
|
+
o.entry.description ? (n(), s("p", ne, a(o.entry.description), 1)) : u("", !0)
|
|
100
|
+
]),
|
|
101
|
+
e("div", se, [
|
|
102
|
+
e("section", le, [
|
|
103
|
+
t[1] || (t[1] = e("h4", { class: "detail__label fm-typo-en-body-sm-600 text-portal-text-muted" }, "Preview", -1)),
|
|
104
|
+
o.previewError ? (n(), s("p", ae, a(o.previewError), 1)) : k.value ? (n(), s("iframe", {
|
|
105
|
+
key: o.entry.name,
|
|
106
|
+
class: "detail__frame",
|
|
107
|
+
title: "module preview",
|
|
108
|
+
sandbox: "allow-scripts",
|
|
109
|
+
srcdoc: k.value
|
|
110
|
+
}, null, 8, re)) : (n(), s("p", ie, "Loading preview…")),
|
|
111
|
+
t[2] || (t[2] = e("p", { class: "detail__hint fm-typo-en-body-sm-400 text-portal-text-muted" }, " Stand-in brand colours. Your business's own palette applies in the workspace preview. ", -1))
|
|
112
|
+
]),
|
|
113
|
+
e("div", de, [
|
|
114
|
+
v.value.length ? (n(), s("p", ue, [
|
|
115
|
+
c(x, {
|
|
116
|
+
name: "check_circle",
|
|
117
|
+
size: "sm",
|
|
118
|
+
color: "typo-primary"
|
|
119
|
+
}),
|
|
120
|
+
t[3] || (t[3] = M(" Currently viewing this style ", -1))
|
|
121
|
+
])) : u("", !0),
|
|
122
|
+
v.value.length ? (n(), s("section", me, [
|
|
123
|
+
t[5] || (t[5] = e("h4", { class: "detail__label fm-typo-en-body-sm-600 text-portal-text-muted" }, "Other styles in this component", -1)),
|
|
124
|
+
e("ul", ce, [
|
|
125
|
+
(n(!0), s(N, null, P(v.value, (d) => (n(), s("li", {
|
|
126
|
+
key: d.id
|
|
127
|
+
}, [
|
|
128
|
+
c(U, {
|
|
129
|
+
class: V(["detail__sibling", { "detail__sibling--current": d.name === o.entry.name }]),
|
|
130
|
+
to: { name: "miniprogram-v2-module-detail", params: { name: d.name }, query: m(y).query },
|
|
131
|
+
"aria-current": d.name === o.entry.name ? "page" : void 0
|
|
132
|
+
}, {
|
|
133
|
+
default: B(() => [
|
|
134
|
+
e("span", null, a(g(d)), 1),
|
|
135
|
+
d.name === o.entry.name ? (n(), s("span", ye, [
|
|
136
|
+
c(x, {
|
|
137
|
+
name: "check_circle",
|
|
138
|
+
size: "sm",
|
|
139
|
+
color: "typo-white"
|
|
140
|
+
}),
|
|
141
|
+
t[4] || (t[4] = M(" Viewing ", -1))
|
|
142
|
+
])) : u("", !0)
|
|
143
|
+
]),
|
|
144
|
+
_: 2
|
|
145
|
+
}, 1032, ["class", "to", "aria-current"])
|
|
146
|
+
]))), 128))
|
|
147
|
+
])
|
|
148
|
+
])) : u("", !0),
|
|
149
|
+
e("section", pe, [
|
|
150
|
+
t[10] || (t[10] = e("h4", { class: "detail__label fm-typo-en-body-sm-600 text-portal-text-muted" }, "Details", -1)),
|
|
151
|
+
e("dl", _e, [
|
|
152
|
+
t[6] || (t[6] = e("dt", null, "Category", -1)),
|
|
153
|
+
e("dd", null, a(o.entry.group ?? "—"), 1),
|
|
154
|
+
t[7] || (t[7] = e("dt", null, "Component", -1)),
|
|
155
|
+
e("dd", null, a(o.entry.componentLabel ?? "—"), 1),
|
|
156
|
+
t[8] || (t[8] = e("dt", null, "Appears on", -1)),
|
|
157
|
+
e("dd", null, a(o.entry.page ?? "—"), 1),
|
|
158
|
+
(I = o.entry.surfaces) != null && I.length ? (n(), s("dt", ve, "Surfaces")) : u("", !0),
|
|
159
|
+
(E = o.entry.surfaces) != null && E.length ? (n(), s("dd", be, a(o.entry.surfaces.join(", ")), 1)) : u("", !0),
|
|
160
|
+
t[9] || (t[9] = e("dt", null, "Examples", -1)),
|
|
161
|
+
e("dd", null, a(o.entry.compositions.length), 1)
|
|
162
|
+
])
|
|
163
|
+
]),
|
|
164
|
+
e("section", fe, [
|
|
165
|
+
t[11] || (t[11] = e("h4", { class: "detail__label fm-typo-en-body-sm-600 text-portal-text-muted" }, "Content it needs", -1)),
|
|
166
|
+
(S = o.entry.props) != null && S.length ? (n(), s("ul", he, [
|
|
167
|
+
(n(!0), s(N, null, P(o.entry.props, (d) => (n(), s("li", {
|
|
168
|
+
key: d.name,
|
|
169
|
+
class: V({ "detail__prop--optional": !d.required })
|
|
170
|
+
}, [
|
|
171
|
+
e("code", null, a(d.name), 1),
|
|
172
|
+
d.required ? u("", !0) : (n(), s("span", we, "optional"))
|
|
173
|
+
], 2))), 128))
|
|
174
|
+
])) : (n(), s("p", ge, " This module declares no props interface, so it can only be offered as a like-for-like swap. "))
|
|
175
|
+
]),
|
|
176
|
+
e("section", ke, [
|
|
177
|
+
e("button", {
|
|
178
|
+
type: "button",
|
|
179
|
+
class: "detail__dev-toggle",
|
|
180
|
+
"aria-expanded": i.value,
|
|
181
|
+
onClick: t[0] || (t[0] = (d) => i.value = !i.value)
|
|
182
|
+
}, [
|
|
183
|
+
c(x, {
|
|
184
|
+
name: "code",
|
|
185
|
+
size: "sm",
|
|
186
|
+
color: "typo-secondary"
|
|
187
|
+
}),
|
|
188
|
+
t[12] || (t[12] = e("span", { class: "detail__label fm-typo-en-body-sm-600 text-portal-text-muted" }, "Developer details", -1)),
|
|
189
|
+
c(x, {
|
|
190
|
+
name: i.value ? "expand_less" : "chevron_right",
|
|
191
|
+
size: "sm",
|
|
192
|
+
color: "typo-tertiary"
|
|
193
|
+
}, null, 8, ["name"])
|
|
194
|
+
], 8, xe),
|
|
195
|
+
i.value ? (n(), s("div", Ce, [
|
|
196
|
+
e("dl", De, [
|
|
197
|
+
t[13] || (t[13] = e("dt", null, "Id", -1)),
|
|
198
|
+
e("dd", null, a(o.entry.id), 1),
|
|
199
|
+
t[14] || (t[14] = e("dt", null, "Slot", -1)),
|
|
200
|
+
e("dd", null, a(o.entry.slot ?? "—"), 1),
|
|
201
|
+
t[15] || (t[15] = e("dt", null, "Data shape", -1)),
|
|
202
|
+
e("dd", null, a(o.entry.dataShape ?? "—"), 1),
|
|
203
|
+
t[16] || (t[16] = e("dt", null, "Type", -1)),
|
|
204
|
+
e("dd", null, a(o.entry.category), 1),
|
|
205
|
+
(T = o.entry.labels) != null && T.length ? (n(), s("dt", Le, "Labels")) : u("", !0),
|
|
206
|
+
(z = o.entry.labels) != null && z.length ? (n(), s("dd", qe, a(o.entry.labels.join(", ")), 1)) : u("", !0)
|
|
207
|
+
]),
|
|
208
|
+
t[17] || (t[17] = e("p", { class: "detail__hint fm-typo-en-body-sm-400 text-portal-text-muted" }, " Paste this into a workspace chat. The agent copies the module into your app's own code. ", -1)),
|
|
209
|
+
e("textarea", {
|
|
210
|
+
class: "detail__prompt",
|
|
211
|
+
readonly: "",
|
|
212
|
+
value: f.value
|
|
213
|
+
}, null, 8, $e),
|
|
214
|
+
c($, {
|
|
215
|
+
class: "detail__copy",
|
|
216
|
+
size: "md",
|
|
217
|
+
variant: p.value ? "secondary" : "primary",
|
|
218
|
+
icon: p.value ? "check" : "content_copy",
|
|
219
|
+
label: p.value ? "Copied" : "Copy prompt",
|
|
220
|
+
onClick: K
|
|
221
|
+
}, null, 8, ["variant", "icon", "label"])
|
|
222
|
+
])) : u("", !0)
|
|
223
|
+
])
|
|
224
|
+
])
|
|
225
|
+
])
|
|
226
|
+
]);
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}), Ee = /* @__PURE__ */ O(Ie, [["__scopeId", "data-v-e21c800a"]]), Se = { class: "shell" }, Te = { class: "page" }, ze = { class: "page__inner" }, Fe = { class: "page__head" }, Me = {
|
|
230
|
+
key: 0,
|
|
231
|
+
class: "page__note fm-typo-en-body-md-400"
|
|
232
|
+
}, Ne = /* @__PURE__ */ j({
|
|
233
|
+
__name: "ModuleDetailView",
|
|
234
|
+
setup(o) {
|
|
235
|
+
const y = R(), w = A(), l = W(), v = _(() => String(y.params.name ?? "")), g = _(() => l.find(v.value)), D = _(() => l.entries.value === null), p = _(() => {
|
|
236
|
+
var i;
|
|
237
|
+
const b = (i = g.value) == null ? void 0 : i.slot;
|
|
238
|
+
return b ? (l.entries.value ?? []).filter((f) => f.slot === b) : [];
|
|
239
|
+
});
|
|
240
|
+
return G(() => l.load()), (b, i) => {
|
|
241
|
+
const f = h("FmIcon"), k = h("RouterLink");
|
|
242
|
+
return n(), s("div", Se, [
|
|
243
|
+
e("div", Te, [
|
|
244
|
+
e("div", ze, [
|
|
245
|
+
e("header", Fe, [
|
|
246
|
+
c(k, {
|
|
247
|
+
class: "page__back",
|
|
248
|
+
to: { name: "miniprogram-v2-module-center", query: m(y).query }
|
|
249
|
+
}, {
|
|
250
|
+
default: B(() => [
|
|
251
|
+
c(f, {
|
|
252
|
+
name: "arrow_back",
|
|
253
|
+
size: "sm",
|
|
254
|
+
color: "typo-secondary"
|
|
255
|
+
}),
|
|
256
|
+
i[2] || (i[2] = e("span", { class: "fm-typo-en-body-sm-600" }, "Component Library", -1))
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}, 8, ["to"])
|
|
260
|
+
]),
|
|
261
|
+
D.value ? (n(), s("p", Me, "Loading…")) : m(l).loadError.value ? (n(), C(q, {
|
|
262
|
+
key: 1,
|
|
263
|
+
icon: "error_outline",
|
|
264
|
+
tone: "error",
|
|
265
|
+
title: "Could not load the component library",
|
|
266
|
+
message: m(l).loadError.value,
|
|
267
|
+
"action-label": "Try again",
|
|
268
|
+
onAction: i[0] || (i[0] = (L) => m(l).load(!0))
|
|
269
|
+
}, null, 8, ["message"])) : m(l).unpublished.value ? (n(), C(q, {
|
|
270
|
+
key: 2,
|
|
271
|
+
icon: "widgets",
|
|
272
|
+
title: "No component library has been published yet",
|
|
273
|
+
message: "Nothing has been published for this page to show."
|
|
274
|
+
})) : g.value ? (n(), C(Ee, {
|
|
275
|
+
key: 4,
|
|
276
|
+
entry: g.value,
|
|
277
|
+
siblings: p.value,
|
|
278
|
+
"preview-document": m(l).previewDocument.value,
|
|
279
|
+
"preview-error": m(l).previewError.value
|
|
280
|
+
}, null, 8, ["entry", "siblings", "preview-document", "preview-error"])) : (n(), C(q, {
|
|
281
|
+
key: 3,
|
|
282
|
+
icon: "search_off",
|
|
283
|
+
title: `No module named “${v.value}”`,
|
|
284
|
+
message: "It is not in the published library. It may have been renamed, withdrawn, or never published.",
|
|
285
|
+
"action-label": "Back to the component library",
|
|
286
|
+
onAction: i[1] || (i[1] = (L) => m(w).push({ name: "miniprogram-v2-module-center", query: m(y).query }))
|
|
287
|
+
}, null, 8, ["title"]))
|
|
288
|
+
])
|
|
289
|
+
])
|
|
290
|
+
]);
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
}), Oe = /* @__PURE__ */ O(Ne, [["__scopeId", "data-v-a84b9d64"]]);
|
|
294
|
+
export {
|
|
295
|
+
Oe as default
|
|
296
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, resolveComponent as i, openBlock as l, createElementBlock as m, createElementVNode as o, createVNode as r, unref as t, withCtx as u, createTextVNode as c } from "vue";
|
|
2
2
|
import { useRoute as d } from "vue-router";
|
|
3
|
-
import { u as g } from "./portalContext-
|
|
4
|
-
import { w as f } from "./portalNavigation-
|
|
3
|
+
import { u as g } from "./portalContext-BeKN8Bcx.js";
|
|
4
|
+
import { w as f } from "./portalNavigation-DLcC7Koh.js";
|
|
5
5
|
import { P as k } from "./PortalIcon-DO0VrIoY.js";
|
|
6
6
|
const w = { class: "portal-page" }, y = { class: "portal-page-inner" }, b = { class: "portal-section portal-empty" }, E = /* @__PURE__ */ p({
|
|
7
7
|
__name: "PagesView",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, computed as p, resolveComponent as m, openBlock as c, createElementBlock as u, createElementVNode as e, toDisplayString as a, unref as n, createVNode as r, withCtx as d, createTextVNode as _ } from "vue";
|
|
2
2
|
import { useRoute as g } from "vue-router";
|
|
3
3
|
import { P as f } from "./PortalIcon-DO0VrIoY.js";
|
|
4
|
-
import { p as k } from "./portalNavigation-
|
|
4
|
+
import { p as k } from "./portalNavigation-DLcC7Koh.js";
|
|
5
5
|
const y = { class: "portal-page" }, b = { class: "portal-page-inner" }, v = { class: "portal-page-heading" }, h = { class: "portal-section portal-empty" }, P = /* @__PURE__ */ i({
|
|
6
6
|
__name: "PlatformUnavailableView",
|
|
7
7
|
setup(x) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as k, computed as p, ref as l, onMounted as P, onScopeDispose as S, resolveComponent as x, openBlock as o, createElementBlock as n, createElementVNode as s, toDisplayString as d, createCommentVNode as h, Fragment as I, createVNode as A, unref as M } from "vue";
|
|
2
2
|
import { useRoute as N } from "vue-router";
|
|
3
3
|
import { e as _, a as $ } from "./index-CIJWcl_6.js";
|
|
4
|
-
import {
|
|
4
|
+
import { m as B, e as E } from "./controlPlane-DR5ykj4d.js";
|
|
5
5
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
6
|
-
import { u as U } from "./portalContext-
|
|
7
|
-
import { l as V } from "./portalNavigation-
|
|
6
|
+
import { u as U } from "./portalContext-BeKN8Bcx.js";
|
|
7
|
+
import { l as V } from "./portalNavigation-DLcC7Koh.js";
|
|
8
8
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const L = { class: "portal-page" }, R = { class: "portal-page-inner settings-page" }, T = { class: "portal-page-heading" }, D = ["href"], H = {
|
|
10
10
|
key: 0,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as c, computed as m, openBlock as o, createElementBlock as r, normalizeClass as i, createElementVNode as x, createCommentVNode as d, renderSlot as f } from "vue";
|
|
2
|
+
const u = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "flex h-[14px] w-[14px] shrink-0 items-center justify-center",
|
|
5
|
+
"aria-hidden": "true"
|
|
6
|
+
}, y = /* @__PURE__ */ c({
|
|
7
|
+
__name: "StatusBadge",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "neutral" },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
dot: { type: Boolean }
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
const n = e, s = {
|
|
15
|
+
success: "bg-fm-color-system-success-100 text-fm-color-typo-success",
|
|
16
|
+
warning: "bg-fm-color-system-warning-100 text-fm-color-typo-warning",
|
|
17
|
+
error: "bg-fm-color-system-error-100 text-fm-color-typo-error",
|
|
18
|
+
info: "bg-fm-color-system-info-100 text-fm-color-typo-info",
|
|
19
|
+
neutral: "bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary",
|
|
20
|
+
// Figma `badge/bg/stone` on `badge/text/on-stone`: a resting state, cooler and
|
|
21
|
+
// lighter than neutral grey, so it recedes beside an Active row.
|
|
22
|
+
stone: "bg-portal-badge-stone-bg text-portal-badge-stone-text",
|
|
23
|
+
primary: "bg-fm-color-primary text-fm-color-typo-white"
|
|
24
|
+
}, a = {
|
|
25
|
+
xs: "rounded-[4px] px-[4px] py-[2px] text-[10px] leading-[14px] font-medium tracking-[0.2px]",
|
|
26
|
+
sm: "rounded-[4px] px-[6px] py-[4px] text-[12px] leading-[16px] font-medium tracking-[0.24px]",
|
|
27
|
+
md: "rounded-full px-8 py-2 leading-[16px]"
|
|
28
|
+
}, l = m(() => a[n.size]);
|
|
29
|
+
return (p, t) => (o(), r("span", {
|
|
30
|
+
class: i(["inline-flex shrink-0 items-center", [s[e.variant], l.value, e.dot ? "gap-[2px]" : "gap-4"]])
|
|
31
|
+
}, [
|
|
32
|
+
e.dot ? (o(), r("span", u, [...t[0] || (t[0] = [
|
|
33
|
+
x("span", { class: "h-[5.25px] w-[5.25px] rounded-full bg-current" }, null, -1)
|
|
34
|
+
])])) : d("", !0),
|
|
35
|
+
f(p.$slots, "default")
|
|
36
|
+
], 2));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
y as _
|
|
41
|
+
};
|