@opengis/cms 0.0.38 → 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)
@@ -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({ useScope: "global" }), 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",