@opengis/cms 0.0.37 → 0.0.39

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 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({ useScope: "global" });
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(), r = Xt(), a = $(""), n = $([]), o = $([]), s = $(""), u = $([
21100
+ const { t, locale: l } = Ke({ useScope: "global" }), 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,7 +21190,9 @@ 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(), l = Xt(), r = ql(), a = $([
21193
+ const { t } = Ke({ useScope: "global" }), l = Xt();
21194
+ ql();
21195
+ const r = $([
21194
21196
  {
21195
21197
  key: "name",
21196
21198
  title: t("cms.menu.form.name"),
@@ -21227,9 +21229,9 @@ const _u = /* @__PURE__ */ _l(E$, [["render", L$]]), Cu = {
21227
21229
  language: "yaml",
21228
21230
  theme: "vs-light"
21229
21231
  }
21230
- ]), n = $({}), o = $({}), s = async () => {
21232
+ ]), a = $({}), n = $({}), o = async () => {
21231
21233
  try {
21232
- if (await o.value.validate()) {
21234
+ if (await n.value.validate()) {
21233
21235
  Ce({
21234
21236
  type: "warning",
21235
21237
  title: t("cms.common.actions.warning"),
@@ -21242,54 +21244,51 @@ const _u = /* @__PURE__ */ _l(E$, [["render", L$]]), Cu = {
21242
21244
  headers: {
21243
21245
  "Content-Type": "application/json"
21244
21246
  },
21245
- body: JSON.stringify(n.value)
21247
+ body: JSON.stringify(a.value)
21246
21248
  }), Ce({
21247
21249
  title: t("cms.common.success"),
21248
21250
  type: "success",
21249
21251
  message: t("cms.common.successMessage")
21250
- }), n.value = {}, l.push("/menu");
21251
- } catch (u) {
21252
- console.log(u), Ce({
21252
+ }), a.value = {}, l.push("/menu");
21253
+ } catch (s) {
21254
+ console.log(s), Ce({
21253
21255
  title: t("cms.common.error"),
21254
21256
  type: "error",
21255
21257
  message: t("cms.common.errorMessage")
21256
21258
  });
21257
21259
  }
21258
21260
  };
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)
21261
+ return (s, u) => (f(), h("div", T6, [
21262
+ i("div", M6, [
21263
+ i("div", O6, [
21264
+ i("button", {
21265
+ onClick: u[0] || (u[0] = (d) => 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" })
21271
21269
  ]),
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
- ])
21280
- ])
21270
+ i("h1", I6, E(s.$t("cms.menu.menuAdd")), 1)
21281
21271
  ]),
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"])
21272
+ i("div", N6, [
21273
+ i("button", {
21274
+ onClick: o,
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(s.$t("cms.common.actions.save")), 1)
21279
+ ])
21290
21280
  ])
21291
- ]);
21292
- };
21281
+ ]),
21282
+ i("div", V6, [
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
+ ]));
21293
21292
  }
21294
21293
  }), D6 = {}, F6 = {
21295
21294
  xmlns: "http://www.w3.org/2000/svg",
@@ -21393,7 +21392,7 @@ const P6 = /* @__PURE__ */ _l(D6, [["render", R6]]), j6 = {
21393
21392
  },
21394
21393
  emits: ["update:list", "delete:item"],
21395
21394
  setup(e, { emit: t }) {
21396
- const { t: l } = Ke(), r = e, a = t, n = $([]);
21395
+ const { t: l } = Ke({ useScope: "global" }), r = e, a = t, n = $([]);
21397
21396
  ie(
21398
21397
  () => r.list,
21399
21398
  (c) => {
@@ -21461,7 +21460,7 @@ const P6 = /* @__PURE__ */ _l(D6, [["render", R6]]), j6 = {
21461
21460
  },
21462
21461
  emits: /* @__PURE__ */ Re(["addNewItem"], ["update:isOpen"]),
21463
21462
  setup(e, { emit: t }) {
21464
- const { t: l } = Ke(), r = Ae(e, "isOpen"), a = $({}), n = t, o = $({}), s = {
21463
+ const { t: l } = Ke({ useScope: "global" }), r = Ae(e, "isOpen"), a = $({}), n = t, o = $({}), s = {
21465
21464
  title: {
21466
21465
  type: "text",
21467
21466
  label: l("cms.menu.form.name"),
@@ -21530,7 +21529,7 @@ const P6 = /* @__PURE__ */ _l(D6, [["render", R6]]), j6 = {
21530
21529
  emits: ["update:modelValue"],
21531
21530
  setup(e) {
21532
21531
  Xe["vs-input-monaco-editor"] = Ia;
21533
- const { t } = Ke(), l = $(!1), r = $(null), a = Ae(e, "modelValue"), n = $({}), o = async (v) => {
21532
+ const { t } = Ke({ useScope: "global" }), l = $(!1), r = $(null), a = Ae(e, "modelValue"), n = $({}), o = async (v) => {
21534
21533
  try {
21535
21534
  if (await n.value.validate()) {
21536
21535
  Ce({
@@ -22505,7 +22504,7 @@ const ZA = { class: "space-y-6 max-w-7xl mx-auto" }, QA = { class: "flex items-c
22505
22504
  __name: "MenuItemPage",
22506
22505
  setup(e) {
22507
22506
  Xe["vs-input-monaco-editor"] = Ia;
22508
- const { t, locale: l } = Ke(), r = Xt(), a = ql(), n = P(() => [
22507
+ const { t, locale: l } = Ke({ useScope: "global" }), r = Xt(), a = ql(), n = P(() => [
22509
22508
  {
22510
22509
  key: "name",
22511
22510
  title: t("cms.menu.form.name"),