@opengis/cms 0.0.39 → 0.0.40
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/index.js +44 -43
- package/dist/index.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4585,7 +4585,7 @@ const K0 = { class: "flex items-center justify-between" }, G0 = { class: "flex i
|
|
|
4585
4585
|
},
|
|
4586
4586
|
emits: ["edit", "view", "delete", "more"],
|
|
4587
4587
|
setup(e, { emit: t }) {
|
|
4588
|
-
const { t: l } = Ke(
|
|
4588
|
+
const { t: l } = Ke();
|
|
4589
4589
|
$(null);
|
|
4590
4590
|
const r = e, a = t, n = P(() => !r.query || !r.filterFn ? r.rows : r.rows.filter((p) => r.filterFn(p, r.query))), o = (p) => {
|
|
4591
4591
|
if (!p)
|
|
@@ -21097,7 +21097,7 @@ const _u = /* @__PURE__ */ _l(E$, [["render", L$]]), Cu = {
|
|
|
21097
21097
|
}, fL = /* @__PURE__ */ le({
|
|
21098
21098
|
__name: "MenuPage",
|
|
21099
21099
|
setup(e) {
|
|
21100
|
-
const { t, locale: l } = Ke(
|
|
21100
|
+
const { t, locale: l } = Ke(), r = Xt(), a = $(""), n = $([]), o = $([]), s = $(""), u = $([
|
|
21101
21101
|
{ name: "name", title: t("cms.menu.form.name"), type: "text" },
|
|
21102
21102
|
{ name: "description", title: t("cms.menu.form.description"), type: "text" },
|
|
21103
21103
|
{ name: "locale", title: t("cms.menu.form.language"), type: "select", data: [{ text: "uk", id: "uk" }, { text: "en", id: "en" }] }
|
|
@@ -21190,9 +21190,7 @@ const _u = /* @__PURE__ */ _l(E$, [["render", L$]]), Cu = {
|
|
|
21190
21190
|
__name: "MenuAddPage",
|
|
21191
21191
|
setup(e) {
|
|
21192
21192
|
Xe["vs-input-monaco-editor"] = Ia;
|
|
21193
|
-
const { t } = Ke(
|
|
21194
|
-
ql();
|
|
21195
|
-
const r = $([
|
|
21193
|
+
const { t } = Ke(), l = Xt(), r = ql(), a = $([
|
|
21196
21194
|
{
|
|
21197
21195
|
key: "name",
|
|
21198
21196
|
title: t("cms.menu.form.name"),
|
|
@@ -21229,9 +21227,9 @@ const _u = /* @__PURE__ */ _l(E$, [["render", L$]]), Cu = {
|
|
|
21229
21227
|
language: "yaml",
|
|
21230
21228
|
theme: "vs-light"
|
|
21231
21229
|
}
|
|
21232
|
-
]),
|
|
21230
|
+
]), n = $({}), o = $({}), s = async () => {
|
|
21233
21231
|
try {
|
|
21234
|
-
if (await
|
|
21232
|
+
if (await o.value.validate()) {
|
|
21235
21233
|
Ce({
|
|
21236
21234
|
type: "warning",
|
|
21237
21235
|
title: t("cms.common.actions.warning"),
|
|
@@ -21244,51 +21242,54 @@ const _u = /* @__PURE__ */ _l(E$, [["render", L$]]), Cu = {
|
|
|
21244
21242
|
headers: {
|
|
21245
21243
|
"Content-Type": "application/json"
|
|
21246
21244
|
},
|
|
21247
|
-
body: JSON.stringify(
|
|
21245
|
+
body: JSON.stringify(n.value)
|
|
21248
21246
|
}), Ce({
|
|
21249
21247
|
title: t("cms.common.success"),
|
|
21250
21248
|
type: "success",
|
|
21251
21249
|
message: t("cms.common.successMessage")
|
|
21252
|
-
}),
|
|
21253
|
-
} catch (
|
|
21254
|
-
console.log(
|
|
21250
|
+
}), n.value = {}, l.push("/menu");
|
|
21251
|
+
} catch (u) {
|
|
21252
|
+
console.log(u), Ce({
|
|
21255
21253
|
title: t("cms.common.error"),
|
|
21256
21254
|
type: "error",
|
|
21257
21255
|
message: t("cms.common.errorMessage")
|
|
21258
21256
|
});
|
|
21259
21257
|
}
|
|
21260
21258
|
};
|
|
21261
|
-
return (
|
|
21262
|
-
|
|
21263
|
-
|
|
21264
|
-
|
|
21265
|
-
|
|
21266
|
-
|
|
21267
|
-
|
|
21268
|
-
|
|
21259
|
+
return (u, d) => {
|
|
21260
|
+
var c, p;
|
|
21261
|
+
return f(), h("div", T6, [
|
|
21262
|
+
i("div", M6, [
|
|
21263
|
+
i("div", O6, [
|
|
21264
|
+
i("button", {
|
|
21265
|
+
onClick: d[0] || (d[0] = (v) => y(l).back()),
|
|
21266
|
+
class: "p-2 text-gray-500 rounded-full hover:text-gray-900 dark:text-gray-400 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
21267
|
+
}, [
|
|
21268
|
+
D(y(In), { class: "w-5 h-5" })
|
|
21269
|
+
]),
|
|
21270
|
+
i("h1", I6, E(u.$t((p = (c = y(r)) == null ? void 0 : c.meta) == null ? void 0 : p.title)), 1)
|
|
21269
21271
|
]),
|
|
21270
|
-
i("
|
|
21271
|
-
|
|
21272
|
-
|
|
21273
|
-
|
|
21274
|
-
|
|
21275
|
-
|
|
21276
|
-
|
|
21277
|
-
|
|
21278
|
-
he(" " + E(s.$t("cms.common.actions.save")), 1)
|
|
21272
|
+
i("div", N6, [
|
|
21273
|
+
i("button", {
|
|
21274
|
+
onClick: s,
|
|
21275
|
+
class: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium h-9 px-4 py-2 bg-blue-600 text-white shadow-md transition-all duration-200 transform hover:bg-blue-700 hover:shadow-lg hover:scale-105 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
|
|
21276
|
+
}, [
|
|
21277
|
+
D(y(Dn), { class: "w-4 h-4 mr-2" }),
|
|
21278
|
+
he(" " + E(u.$t("cms.common.actions.save")), 1)
|
|
21279
|
+
])
|
|
21279
21280
|
])
|
|
21281
|
+
]),
|
|
21282
|
+
i("div", V6, [
|
|
21283
|
+
D(y(pt), {
|
|
21284
|
+
schema: a.value,
|
|
21285
|
+
modelValue: n.value,
|
|
21286
|
+
"onUpdate:modelValue": d[1] || (d[1] = (v) => n.value = v),
|
|
21287
|
+
form: o.value,
|
|
21288
|
+
"onUpdate:form": d[2] || (d[2] = (v) => o.value = v)
|
|
21289
|
+
}, null, 8, ["schema", "modelValue", "form"])
|
|
21280
21290
|
])
|
|
21281
|
-
])
|
|
21282
|
-
|
|
21283
|
-
D(y(pt), {
|
|
21284
|
-
schema: r.value,
|
|
21285
|
-
modelValue: a.value,
|
|
21286
|
-
"onUpdate:modelValue": u[1] || (u[1] = (d) => a.value = d),
|
|
21287
|
-
form: n.value,
|
|
21288
|
-
"onUpdate:form": u[2] || (u[2] = (d) => n.value = d)
|
|
21289
|
-
}, null, 8, ["schema", "modelValue", "form"])
|
|
21290
|
-
])
|
|
21291
|
-
]));
|
|
21291
|
+
]);
|
|
21292
|
+
};
|
|
21292
21293
|
}
|
|
21293
21294
|
}), D6 = {}, F6 = {
|
|
21294
21295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -21392,7 +21393,7 @@ const P6 = /* @__PURE__ */ _l(D6, [["render", R6]]), j6 = {
|
|
|
21392
21393
|
},
|
|
21393
21394
|
emits: ["update:list", "delete:item"],
|
|
21394
21395
|
setup(e, { emit: t }) {
|
|
21395
|
-
const { t: l } = Ke(
|
|
21396
|
+
const { t: l } = Ke(), r = e, a = t, n = $([]);
|
|
21396
21397
|
ie(
|
|
21397
21398
|
() => r.list,
|
|
21398
21399
|
(c) => {
|
|
@@ -21460,7 +21461,7 @@ const P6 = /* @__PURE__ */ _l(D6, [["render", R6]]), j6 = {
|
|
|
21460
21461
|
},
|
|
21461
21462
|
emits: /* @__PURE__ */ Re(["addNewItem"], ["update:isOpen"]),
|
|
21462
21463
|
setup(e, { emit: t }) {
|
|
21463
|
-
const { t: l } = Ke(
|
|
21464
|
+
const { t: l } = Ke(), r = Ae(e, "isOpen"), a = $({}), n = t, o = $({}), s = {
|
|
21464
21465
|
title: {
|
|
21465
21466
|
type: "text",
|
|
21466
21467
|
label: l("cms.menu.form.name"),
|
|
@@ -21529,7 +21530,7 @@ const P6 = /* @__PURE__ */ _l(D6, [["render", R6]]), j6 = {
|
|
|
21529
21530
|
emits: ["update:modelValue"],
|
|
21530
21531
|
setup(e) {
|
|
21531
21532
|
Xe["vs-input-monaco-editor"] = Ia;
|
|
21532
|
-
const { t } = Ke(
|
|
21533
|
+
const { t } = Ke(), l = $(!1), r = $(null), a = Ae(e, "modelValue"), n = $({}), o = async (v) => {
|
|
21533
21534
|
try {
|
|
21534
21535
|
if (await n.value.validate()) {
|
|
21535
21536
|
Ce({
|
|
@@ -22504,7 +22505,7 @@ const ZA = { class: "space-y-6 max-w-7xl mx-auto" }, QA = { class: "flex items-c
|
|
|
22504
22505
|
__name: "MenuItemPage",
|
|
22505
22506
|
setup(e) {
|
|
22506
22507
|
Xe["vs-input-monaco-editor"] = Ia;
|
|
22507
|
-
const { t, locale: l } = Ke(
|
|
22508
|
+
const { t, locale: l } = Ke(), r = Xt(), a = ql(), n = P(() => [
|
|
22508
22509
|
{
|
|
22509
22510
|
key: "name",
|
|
22510
22511
|
title: t("cms.menu.form.name"),
|