@opengis/cms 0.0.50 → 0.0.51

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.
Files changed (20) hide show
  1. package/dist/{ArticlesPage-Cuit_90w.js → ArticlesPage-BcR1hbds.js} +3 -3
  2. package/dist/{BuilderPage-B79YHrmr.js → BuilderPage-CK_osM89.js} +51 -51
  3. package/dist/{CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-B6irHMzL.js → CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-CnOe9ORD.js} +19 -19
  4. package/dist/{EditCollectionPage-B4p_iA6h.js → EditCollectionPage-DtgvKGm-.js} +2 -2
  5. package/dist/{MenuAddPage-CmU4kAUM.js → MenuAddPage-Bf48Z-ah.js} +1 -1
  6. package/dist/{MenuItemPage-UV8JlJvT.js → MenuItemPage-BSwUW8tv.js} +59 -59
  7. package/dist/{MenuPage-c4TPJgIN.js → MenuPage-tJZtK46W.js} +1 -1
  8. package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-B1DrxmQX.js +84 -0
  9. package/dist/{UniversalTable.vue_vue_type_script_setup_true_lang-DR4PQwqR.js → UniversalTable.vue_vue_type_script_setup_true_lang-CJGTsd1V.js} +80 -80
  10. package/dist/{UniversalTablePagination.vue_vue_type_script_setup_true_lang-C8P9DCeX.js → UniversalTablePagination.vue_vue_type_script_setup_true_lang-GYZd_gkA.js} +46 -46
  11. package/dist/{contentForm-S5mXr5B7.js → contentForm-NcG15_5z.js} +1 -1
  12. package/dist/index.js +5 -5
  13. package/package.json +68 -68
  14. package/server/functions/getSearchData.js +1 -1
  15. package/server/routes/cms/controllers/getPermissions.js +15 -15
  16. package/server/routes/cms/controllers/searchContent.js +10 -3
  17. package/server/routes/cms/controllers/setPermissions.js +49 -49
  18. package/server/routes/cms/utils/additionalData.js +1 -1
  19. package/server/templates/select/core.user_mentioned.sql +1 -1
  20. package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-C8cip9Ci.js +0 -84
@@ -1,11 +1,11 @@
1
- import { openBlock as w, createElementBlock as F, createStaticVNode as Re, defineComponent as D, ref as k, normalizeClass as B, createTextVNode as Z, toDisplayString as b, createCommentVNode as $, createBlock as O, unref as y, withModifiers as Y, createVNode as _, createElementVNode as v, withDirectives as Le, withKeys as re, vModelText as Me, watch as Ue, resolveComponent as De, withCtx as j, nextTick as te, mergeModels as Ye, useModel as de, onBeforeMount as Be, Fragment as $e, computed as Pe, onMounted as Ve } from "vue";
1
+ import { openBlock as w, createElementBlock as F, createStaticVNode as Re, defineComponent as D, ref as k, normalizeClass as B, createTextVNode as Z, toDisplayString as _, createCommentVNode as $, createBlock as O, unref as y, withModifiers as Y, createVNode as A, createElementVNode as v, withDirectives as Le, withKeys as re, vModelText as Me, watch as Ue, resolveComponent as De, withCtx as j, nextTick as te, mergeModels as Ye, useModel as de, onBeforeMount as Be, Fragment as $e, computed as Pe, onMounted as Ve } from "vue";
2
2
  import { d as He } from "./vuedraggable-CoAPPFYd.js";
3
3
  import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { Pencil as je, Trash2 as Ke, Check as Ge, X as Qe, Plus as We, ArrowLeft as ze, HelpCircle as Ze, Save as Xe } from "lucide-vue-next";
5
5
  import { confirm as Je, VsModal as er, notify as I } from "@opengis/core";
6
6
  import { useI18n as H } from "vue-i18n";
7
7
  import rr, { inputs as pe, VForm as ve } from "@opengis/form";
8
- import { _ as he } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-C8cip9Ci.js";
8
+ import { _ as he } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-B1DrxmQX.js";
9
9
  import { useRouter as tr, useRoute as nr } from "vue-router";
10
10
  const ir = {}, lr = {
11
11
  xmlns: "http://www.w3.org/2000/svg",
@@ -48,10 +48,10 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
48
48
  n.value = !1, a.value = "";
49
49
  };
50
50
  return (s, m) => (w(), F("div", {
51
- class: B([{ "space-y-1": typeof s.value != "string" }, "dark:bg-transparent"])
51
+ class: B([{ "space-y-1": typeof e.value != "string" }, "dark:bg-transparent"])
52
52
  }, [
53
53
  n.value ? (w(), F("div", cr, [
54
- v("span", fr, b(s.title) + ":", 1),
54
+ v("span", fr, _(e.title) + ":", 1),
55
55
  Le(v("input", {
56
56
  "onUpdate:modelValue": m[1] || (m[1] = (p) => a.value = p),
57
57
  onKeyup: [
@@ -70,28 +70,28 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
70
70
  class: "shrink-0 p-1 text-green-600 dark:text-green-400 hover:bg-green-50 dark:hover:bg-green-900/20 rounded",
71
71
  title: "Save"
72
72
  }, [
73
- _(y(Ge), { class: "size-4" })
73
+ A(y(Ge), { class: "size-4" })
74
74
  ]),
75
75
  v("button", {
76
76
  onClick: Y(o, ["stop"]),
77
77
  class: "shrink-0 p-1 text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded",
78
78
  title: "Cancel"
79
79
  }, [
80
- _(y(Qe), { class: "size-4" })
80
+ A(y(Qe), { class: "size-4" })
81
81
  ])
82
82
  ])) : (w(), F("div", or, [
83
- Z(b(s.title) + " ", 1),
84
- typeof s.value == "string" ? (w(), F("span", sr, b(s.value), 1)) : $("", !0),
85
- typeof s.value == "string" ? (w(), O(y(je), {
83
+ Z(_(e.title) + " ", 1),
84
+ typeof e.value == "string" ? (w(), F("span", sr, _(e.value), 1)) : $("", !0),
85
+ typeof e.value == "string" ? (w(), O(y(je), {
86
86
  key: 1,
87
87
  class: "shrink-0 size-4 ml-auto text-gray-500 dark:text-neutral-500 cursor-pointer hover:text-blue-600 dark:hover:text-blue-400",
88
88
  onClick: Y(l, ["stop"])
89
89
  })) : $("", !0),
90
- _(y(Ke), {
90
+ A(y(Ke), {
91
91
  class: "shrink-0 size-4 text-gray-500 dark:text-neutral-500 cursor-pointer hover:text-red-600 dark:hover:text-red-400",
92
92
  onClick: m[0] || (m[0] = Y((p) => i("delete"), ["stop"]))
93
93
  }),
94
- _(ur, { class: "shrink-0 size-4 cursor-pointer text-gray-500 dark:text-neutral-500" })
94
+ A(ur, { class: "shrink-0 size-4 cursor-pointer text-gray-500 dark:text-neutral-500" })
95
95
  ]))
96
96
  ], 2));
97
97
  }
@@ -150,7 +150,7 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
150
150
  }, {
151
151
  item: j(({ element: d }) => [
152
152
  v("div", dr, [
153
- _(mr, {
153
+ A(mr, {
154
154
  title: d.title,
155
155
  value: d.value,
156
156
  onDelete: (f) => u(d),
@@ -218,15 +218,15 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
218
218
  onClick: m[2] || (m[2] = (p) => {
219
219
  i.value = !1, l.value = {};
220
220
  })
221
- }, b(s.$t("cms.common.actions.cancel")), 1),
221
+ }, _(s.$t("cms.common.actions.cancel")), 1),
222
222
  v("button", {
223
223
  onClick: o,
224
224
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"
225
- }, b(s.$t("cms.common.actions.save")), 1)
225
+ }, _(s.$t("cms.common.actions.save")), 1)
226
226
  ])
227
227
  ]),
228
228
  default: j(() => [
229
- _(y(rr), {
229
+ A(y(rr), {
230
230
  form: n.value,
231
231
  "onUpdate:form": m[0] || (m[0] = (p) => n.value = p),
232
232
  modelValue: l.value,
@@ -321,7 +321,7 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
321
321
  return Be(() => {
322
322
  Array.isArray(n.value.items) || (n.value.items = o(n.value.items));
323
323
  }), (c, d) => (w(), F($e, null, [
324
- _(y(ve), {
324
+ A(y(ve), {
325
325
  schema: u.value,
326
326
  modelValue: n.value,
327
327
  "onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
@@ -332,17 +332,17 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
332
332
  onClick: d[2] || (d[2] = (f) => t.value = !0),
333
333
  class: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium w-min ml-auto my-6 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"
334
334
  }, [
335
- _(y(We), { class: "w-4 h-4 mr-2" }),
336
- Z(" " + b(c.$t("cms.menu.createMenu")), 1)
335
+ A(y(We), { class: "w-4 h-4 mr-2" }),
336
+ Z(" " + _(c.$t("cms.menu.createMenu")), 1)
337
337
  ]),
338
- _(hr, {
338
+ A(hr, {
339
339
  isOpen: t.value,
340
340
  "onUpdate:isOpen": d[3] || (d[3] = (f) => t.value = f),
341
341
  form: i.value,
342
342
  "onUpdate:form": d[4] || (d[4] = (f) => i.value = f),
343
343
  onAddNewItem: l
344
344
  }, null, 8, ["isOpen", "form"]),
345
- _(pr, {
345
+ A(pr, {
346
346
  class: "px-2",
347
347
  list: n.value.items,
348
348
  "onUpdate:list": s,
@@ -351,7 +351,7 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
351
351
  ], 64));
352
352
  }
353
353
  });
354
- /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
354
+ /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
355
355
  function xe(e) {
356
356
  return typeof e > "u" || e === null;
357
357
  }
@@ -374,12 +374,12 @@ function kr(e, r) {
374
374
  t += e;
375
375
  return t;
376
376
  }
377
- function _r(e) {
377
+ function Ar(e) {
378
378
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
379
379
  }
380
- var Ar = xe, br = gr, Er = yr, Fr = kr, Cr = _r, Sr = wr, C = {
381
- isNothing: Ar,
382
- isObject: br,
380
+ var br = xe, _r = gr, Er = yr, Fr = kr, Cr = Ar, Sr = wr, C = {
381
+ isNothing: br,
382
+ isObject: _r,
383
383
  toArray: Er,
384
384
  repeat: Fr,
385
385
  isNegativeZero: Cr,
@@ -399,7 +399,7 @@ R.prototype.constructor = R;
399
399
  R.prototype.toString = function(r) {
400
400
  return this.name + ": " + ge(this, r);
401
401
  };
402
- var A = R, Nr = [
402
+ var b = R, Nr = [
403
403
  "kind",
404
404
  "multi",
405
405
  "resolve",
@@ -426,13 +426,13 @@ function Tr(e) {
426
426
  function Ir(e, r) {
427
427
  if (r = r || {}, Object.keys(r).forEach(function(t) {
428
428
  if (Nr.indexOf(t) === -1)
429
- throw new A('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
429
+ throw new b('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
430
430
  }), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
431
431
  return !0;
432
432
  }, this.construct = r.construct || function(t) {
433
433
  return t;
434
434
  }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = Tr(r.styleAliases || null), Or.indexOf(this.kind) === -1)
435
- throw new A('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
435
+ throw new b('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
436
436
  }
437
437
  var x = Ir;
438
438
  function ne(e, r) {
@@ -476,17 +476,17 @@ K.prototype.extend = function(r) {
476
476
  else if (r && (Array.isArray(r.implicit) || Array.isArray(r.explicit)))
477
477
  r.implicit && (t = t.concat(r.implicit)), r.explicit && (i = i.concat(r.explicit));
478
478
  else
479
- throw new A("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
479
+ throw new b("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
480
480
  t.forEach(function(a) {
481
481
  if (!(a instanceof x))
482
- throw new A("Specified list of YAML types (or a single Type object) contains a non-Type object.");
482
+ throw new b("Specified list of YAML types (or a single Type object) contains a non-Type object.");
483
483
  if (a.loadKind && a.loadKind !== "scalar")
484
- throw new A("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
484
+ throw new b("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
485
485
  if (a.multi)
486
- throw new A("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
486
+ throw new b("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
487
487
  }), i.forEach(function(a) {
488
488
  if (!(a instanceof x))
489
- throw new A("Specified list of YAML types (or a single Type object) contains a non-Type object.");
489
+ throw new b("Specified list of YAML types (or a single Type object) contains a non-Type object.");
490
490
  });
491
491
  var n = Object.create(K.prototype);
492
492
  return n.implicit = (this.implicit || []).concat(t), n.explicit = (this.explicit || []).concat(i), n.compiledImplicit = ne(n, "implicit"), n.compiledExplicit = ne(n, "explicit"), n.compiledTypeMap = Rr(n.compiledImplicit, n.compiledExplicit), n;
@@ -816,7 +816,7 @@ var yt = new x("tag:yaml.org,2002:binary", {
816
816
  predicate: gt,
817
817
  represent: xt
818
818
  }), wt = Object.prototype.hasOwnProperty, kt = Object.prototype.toString;
819
- function _t(e) {
819
+ function At(e) {
820
820
  if (e === null)
821
821
  return !0;
822
822
  var r = [], t, i, n, a, l, u = e;
@@ -838,13 +838,13 @@ function _t(e) {
838
838
  }
839
839
  return !0;
840
840
  }
841
- function At(e) {
841
+ function bt(e) {
842
842
  return e !== null ? e : [];
843
843
  }
844
- var bt = new x("tag:yaml.org,2002:omap", {
844
+ var _t = new x("tag:yaml.org,2002:omap", {
845
845
  kind: "sequence",
846
- resolve: _t,
847
- construct: At
846
+ resolve: At,
847
+ construct: bt
848
848
  }), Et = Object.prototype.toString;
849
849
  function Ft(e) {
850
850
  if (e === null)
@@ -893,7 +893,7 @@ var It = new x("tag:yaml.org,2002:set", {
893
893
  ],
894
894
  explicit: [
895
895
  yt,
896
- bt,
896
+ _t,
897
897
  St,
898
898
  It
899
899
  ]
@@ -905,7 +905,7 @@ function ie(e) {
905
905
  var Lt = new Array(256), Mt = new Array(256);
906
906
  for (var S = 0; S < 256; S++)
907
907
  Lt[S] = ie(S) ? 1 : 0, Mt[S] = ie(S);
908
- var ke = Object.prototype.toString, _e = Object.prototype.hasOwnProperty, J = 65279, Ut = 9, L = 10, Dt = 13, Yt = 32, Bt = 33, $t = 34, G = 35, Pt = 37, Vt = 38, Ht = 39, qt = 42, Ae = 44, jt = 45, P = 58, Kt = 61, Gt = 62, Qt = 63, Wt = 64, be = 91, Ee = 93, zt = 96, Fe = 123, Zt = 124, Ce = 125, g = {};
908
+ var ke = Object.prototype.toString, Ae = Object.prototype.hasOwnProperty, J = 65279, Ut = 9, L = 10, Dt = 13, Yt = 32, Bt = 33, $t = 34, G = 35, Pt = 37, Vt = 38, Ht = 39, qt = 42, be = 44, jt = 45, P = 58, Kt = 61, Gt = 62, Qt = 63, Wt = 64, _e = 91, Ee = 93, zt = 96, Fe = 123, Zt = 124, Ce = 125, g = {};
909
909
  g[0] = "\\0";
910
910
  g[7] = "\\a";
911
911
  g[8] = "\\b";
@@ -944,7 +944,7 @@ function en(e, r) {
944
944
  if (r === null)
945
945
  return {};
946
946
  for (t = {}, i = Object.keys(r), n = 0, a = i.length; n < a; n += 1)
947
- l = i[n], u = String(r[l]), l.slice(0, 2) === "!!" && (l = "tag:yaml.org,2002:" + l.slice(2)), o = e.compiledTypeMap.fallback[l], o && _e.call(o.styleAliases, u) && (u = o.styleAliases[u]), t[l] = u;
947
+ l = i[n], u = String(r[l]), l.slice(0, 2) === "!!" && (l = "tag:yaml.org,2002:" + l.slice(2)), o = e.compiledTypeMap.fallback[l], o && Ae.call(o.styleAliases, u) && (u = o.styleAliases[u]), t[l] = u;
948
948
  return t;
949
949
  }
950
950
  function rn(e) {
@@ -956,7 +956,7 @@ function rn(e) {
956
956
  else if (e <= 4294967295)
957
957
  t = "U", i = 8;
958
958
  else
959
- throw new A("code point within a string may not be greater than 0xFFFFFFFF");
959
+ throw new b("code point within a string may not be greater than 0xFFFFFFFF");
960
960
  return "\\" + t + C.repeat("0", i - r.length) + r;
961
961
  }
962
962
  var tn = 1, M = 2;
@@ -997,11 +997,11 @@ function ue(e, r, t) {
997
997
  (t ? (
998
998
  // c = flow-in
999
999
  i
1000
- ) : i && e !== Ae && e !== be && e !== Ee && e !== Fe && e !== Ce) && e !== G && !(r === P && !n) || ae(r) && !V(r) && e === G || r === P && n
1000
+ ) : i && e !== be && e !== _e && e !== Ee && e !== Fe && e !== Ce) && e !== G && !(r === P && !n) || ae(r) && !V(r) && e === G || r === P && n
1001
1001
  );
1002
1002
  }
1003
1003
  function an(e) {
1004
- return U(e) && e !== J && !V(e) && e !== jt && e !== Qt && e !== P && e !== Ae && e !== be && e !== Ee && e !== Fe && e !== Ce && e !== G && e !== Vt && e !== qt && e !== Bt && e !== Zt && e !== Kt && e !== Gt && e !== Ht && e !== $t && e !== Pt && e !== Wt && e !== zt;
1004
+ return U(e) && e !== J && !V(e) && e !== jt && e !== Qt && e !== P && e !== be && e !== _e && e !== Ee && e !== Fe && e !== Ce && e !== G && e !== Vt && e !== qt && e !== Bt && e !== Zt && e !== Kt && e !== Gt && e !== Ht && e !== $t && e !== Pt && e !== Wt && e !== zt;
1005
1005
  }
1006
1006
  function un(e) {
1007
1007
  return !V(e) && e !== P;
@@ -1067,7 +1067,7 @@ function sn(e, r, t, i, n) {
1067
1067
  case N:
1068
1068
  return '"' + fn(r) + '"';
1069
1069
  default:
1070
- throw new A("impossible error: invalid scalar style");
1070
+ throw new b("impossible error: invalid scalar style");
1071
1071
  }
1072
1072
  }();
1073
1073
  }
@@ -1136,7 +1136,7 @@ function pn(e, r, t, i) {
1136
1136
  else if (typeof e.sortKeys == "function")
1137
1137
  l.sort(e.sortKeys);
1138
1138
  else if (e.sortKeys)
1139
- throw new A("sortKeys must be a boolean or a function");
1139
+ throw new b("sortKeys must be a boolean or a function");
1140
1140
  for (u = 0, o = l.length; u < o; u += 1)
1141
1141
  c = "", (!i || n !== "") && (c += Q(e, r)), s = l[u], m = t[s], e.replacer && (m = e.replacer.call(t, s, m)), E(e, r + 1, s, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && L === e.dump.charCodeAt(0) ? c += "?" : c += "? "), c += e.dump, p && (c += Q(e, r)), E(e, r + 1, m, !0, p) && (e.dump && L === e.dump.charCodeAt(0) ? c += ":" : c += ": ", c += e.dump, n += c));
1142
1142
  e.tag = a, e.dump = n || "{}";
@@ -1148,10 +1148,10 @@ function me(e, r, t) {
1148
1148
  if (t ? u.multi && u.representName ? e.tag = u.representName(r) : e.tag = u.tag : e.tag = "?", u.represent) {
1149
1149
  if (o = e.styleMap[u.tag] || u.defaultStyle, ke.call(u.represent) === "[object Function]")
1150
1150
  i = u.represent(r, o);
1151
- else if (_e.call(u.represent, o))
1151
+ else if (Ae.call(u.represent, o))
1152
1152
  i = u.represent[o](r, o);
1153
1153
  else
1154
- throw new A("!<" + u.tag + '> tag resolver accepts not "' + o + '" style');
1154
+ throw new b("!<" + u.tag + '> tag resolver accepts not "' + o + '" style');
1155
1155
  e.dump = i;
1156
1156
  }
1157
1157
  return !0;
@@ -1177,7 +1177,7 @@ function E(e, r, t, i, n, a, l) {
1177
1177
  return !1;
1178
1178
  if (e.skipInvalid)
1179
1179
  return !1;
1180
- throw new A("unacceptable kind of an object to dump " + u);
1180
+ throw new b("unacceptable kind of an object to dump " + u);
1181
1181
  }
1182
1182
  e.tag !== null && e.tag !== "?" && (s = encodeURI(
1183
1183
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
@@ -1214,7 +1214,7 @@ function hn(e, r) {
1214
1214
  var xn = hn, gn = {
1215
1215
  dump: xn
1216
1216
  }, yn = gn.dump;
1217
- const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-center justify-between" }, _n = { class: "flex items-center gap-4" }, An = { class: "flex items-center gap-2" }, bn = { class: "text-2xl font-semibold text-gray-900 dark:text-white" }, En = ["href", "title"], Fn = { class: "flex items-center space-x-3" }, Cn = {
1217
+ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-center justify-between" }, An = { class: "flex items-center gap-4" }, bn = { class: "flex items-center gap-2" }, _n = { class: "text-2xl font-semibold text-gray-900 dark:text-white" }, En = ["href", "title"], Fn = { class: "flex items-center space-x-3" }, Cn = {
1218
1218
  key: 0,
1219
1219
  class: "max-w-[1000px] flex flex-col"
1220
1220
  }, Sn = { class: "flex ml-2 mb-6 w-min border border-gray-200 dark:border-gray-700 rounded-full overflow-hidden" }, Yn = /* @__PURE__ */ D({
@@ -1305,21 +1305,21 @@ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-c
1305
1305
  }
1306
1306
  }), (d, f) => (w(), F("div", wn, [
1307
1307
  v("div", kn, [
1308
- v("div", _n, [
1308
+ v("div", An, [
1309
1309
  v("button", {
1310
1310
  onClick: f[0] || (f[0] = (h) => y(i).back()),
1311
1311
  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"
1312
1312
  }, [
1313
- _(y(ze), { class: "w-5 h-5" })
1313
+ A(y(ze), { class: "w-5 h-5" })
1314
1314
  ]),
1315
- v("div", An, [
1316
- v("h1", bn, b(d.$t("cms.menu.editMenu")), 1),
1315
+ v("div", bn, [
1316
+ v("h1", _n, _(d.$t("cms.menu.editMenu")), 1),
1317
1317
  v("a", {
1318
1318
  href: `https://cms.opengis.info/${y(t)}/guides/menu/`,
1319
1319
  target: "_blank",
1320
1320
  title: d.$t("cms.guide.menu")
1321
1321
  }, [
1322
- _(y(Ze), { class: "w-5 h-5" })
1322
+ A(y(Ze), { class: "w-5 h-5" })
1323
1323
  ], 8, En)
1324
1324
  ])
1325
1325
  ]),
@@ -1328,8 +1328,8 @@ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-c
1328
1328
  onClick: p,
1329
1329
  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"
1330
1330
  }, [
1331
- _(y(Xe), { class: "w-4 h-4 mr-2" }),
1332
- Z(" " + b(d.$t("cms.common.actions.save")), 1)
1331
+ A(y(Xe), { class: "w-4 h-4 mr-2" }),
1332
+ Z(" " + _(d.$t("cms.common.actions.save")), 1)
1333
1333
  ])
1334
1334
  ])
1335
1335
  ]),
@@ -1338,11 +1338,11 @@ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-c
1338
1338
  v("button", {
1339
1339
  onClick: f[1] || (f[1] = (h) => s.value = !1),
1340
1340
  class: B([{ "bg-gray-200 text-gray-900 dark:bg-gray-700 dark:text-white": !s.value }, "text-gray-500 hover:text-gray-900 dark:hover:text-white hover:bg-gray-200 dark:hover:bg-gray-700 whitespace-nowrap px-5 py-2 w-[200px] text-sm font-medium"])
1341
- }, b(d.$t("cms.menu.textEditor")), 3),
1341
+ }, _(d.$t("cms.menu.textEditor")), 3),
1342
1342
  v("button", {
1343
1343
  onClick: f[2] || (f[2] = (h) => s.value = !0),
1344
1344
  class: B([{ "bg-gray-200 text-gray-900 dark:bg-gray-700 dark:text-white": s.value }, "text-gray-500 hover:text-gray-900 dark:hover:text-white hover:bg-gray-200 dark:hover:bg-gray-700 whitespace-nowrap px-5 py-2 w-[200px] text-sm font-medium"])
1345
- }, b(d.$t("cms.menu.listTree")), 3)
1345
+ }, _(d.$t("cms.menu.listTree")), 3)
1346
1346
  ]),
1347
1347
  s.value ? (w(), O(xr, {
1348
1348
  key: 0,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as D, ref as a, onMounted as S, resolveComponent as V, openBlock as f, createElementBlock as _, createElementVNode as r, toDisplayString as u, unref as l, createVNode as m, withCtx as j, createTextVNode as F, createCommentVNode as N } from "vue";
2
2
  import { useRouter as L } from "vue-router";
3
3
  import { HelpCircle as q, Plus as B } from "lucide-vue-next";
4
- import { _ as M } from "./UniversalTable.vue_vue_type_script_setup_true_lang-DR4PQwqR.js";
4
+ import { _ as M } from "./UniversalTable.vue_vue_type_script_setup_true_lang-CJGTsd1V.js";
5
5
  import { useI18n as P } from "vue-i18n";
6
6
  import T from "@opengis/filter";
7
7
  import { notify as w } from "@opengis/core";
@@ -0,0 +1,84 @@
1
+ import { defineComponent as s, mergeModels as c, useModel as m, ref as f, onMounted as h, watch as d, onBeforeUnmount as g, openBlock as p, createElementBlock as v, normalizeStyle as w } from "vue";
2
+ async function M() {
3
+ if (window.monaco)
4
+ return window.monaco;
5
+ const a = "https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min";
6
+ return window.require || (window.require = { paths: { vs: `${a}/vs` } }, await new Promise((o, l) => {
7
+ const n = document.createElement("script");
8
+ n.src = `${a}/vs/loader.min.js`, n.onload = () => o(), n.onerror = l, document.head.appendChild(n);
9
+ })), new Promise((o) => {
10
+ window.require(["vs/editor/editor.main"], () => o(window.monaco));
11
+ });
12
+ }
13
+ const C = /* @__PURE__ */ s({
14
+ __name: "MonacoEditor",
15
+ props: /* @__PURE__ */ c({
16
+ language: { default: "javascript" },
17
+ theme: { default: "vs-dark" },
18
+ width: { default: "100%" },
19
+ height: { default: "100%" },
20
+ options: { default: () => ({
21
+ minimap: { enabled: !1 }
22
+ }) }
23
+ }, {
24
+ modelValue: {
25
+ required: !0
26
+ },
27
+ modelModifiers: {}
28
+ }),
29
+ emits: ["update:modelValue"],
30
+ setup(a) {
31
+ const o = a, l = m(a, "modelValue"), n = f(null);
32
+ let e = null, i = null;
33
+ return h(async () => {
34
+ var t;
35
+ if (n.value)
36
+ try {
37
+ i = await M();
38
+ const r = ((t = l.value) == null ? void 0 : t.replace(/\\n/g, `
39
+ `)) || "";
40
+ e = i.editor.create(n.value, {
41
+ value: r,
42
+ language: o.language,
43
+ theme: o.theme,
44
+ automaticLayout: !0,
45
+ ...o.options
46
+ }), e.onDidChangeModelContent(() => {
47
+ const u = (e == null ? void 0 : e.getValue()) || "";
48
+ l.value = u;
49
+ });
50
+ } catch (r) {
51
+ console.error("Failed to load Monaco Editor:", r);
52
+ }
53
+ }), d(
54
+ () => l.value,
55
+ (t) => {
56
+ if (e) {
57
+ const r = (t == null ? void 0 : t.replace(/\\n/g, `
58
+ `)) || "";
59
+ r !== e.getValue() && e.setValue(r);
60
+ }
61
+ },
62
+ { immediate: !0 }
63
+ ), d(
64
+ () => o.language,
65
+ (t) => {
66
+ e && t && i && i.editor.setModelLanguage(e.getModel(), t);
67
+ }
68
+ ), d(
69
+ () => o.theme,
70
+ (t) => {
71
+ e && t && i && i.editor.setTheme(t);
72
+ }
73
+ ), g(() => {
74
+ e && (e.dispose(), e = null);
75
+ }), (t, r) => (p(), v("div", {
76
+ ref_key: "editorContainer",
77
+ ref: n,
78
+ style: w({ width: a.width, height: a.height })
79
+ }, null, 4));
80
+ }
81
+ });
82
+ export {
83
+ C as _
84
+ };