@opengis/cms 0.0.53 → 0.0.55

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 (27) hide show
  1. package/dist/{ArticlesPage-dx7Se1Xo.js → ArticlesPage-BcR1hbds.js} +1 -1
  2. package/dist/{BuilderPage-ChkWE8rE.js → BuilderPage-CK_osM89.js} +158 -158
  3. package/dist/{EditCollectionPage-H1J9pZNo.js → EditCollectionPage-Cw3GQYRe.js} +4 -4
  4. package/dist/{MenuAddPage-B6Qs6qV8.js → MenuAddPage-Bf48Z-ah.js} +1 -1
  5. package/dist/{MenuItemPage-XN9lx5Vv.js → MenuItemPage-BSwUW8tv.js} +3 -3
  6. package/dist/{MonacoEditor.vue_vue_type_script_setup_true_lang-DQjDxfF8.js → MonacoEditor.vue_vue_type_script_setup_true_lang-B1DrxmQX.js} +7 -7
  7. package/dist/{UniversalTablePagination.vue_vue_type_script_setup_true_lang-Cp1WWIf0.js → UniversalTablePagination.vue_vue_type_script_setup_true_lang-GYZd_gkA.js} +5 -5
  8. package/dist/{contentForm-BgEoJcWF.js → contentForm-B6gHgGkz.js} +1 -1
  9. package/dist/{getField-DoisYj34.js → getField-Y5WXnRR0.js} +632 -631
  10. package/dist/index.js +9 -9
  11. package/dist/{vuedraggable-DTHNuRWs.js → vuedraggable-CoAPPFYd.js} +108 -108
  12. package/package.json +2 -2
  13. package/server/functions/getContent.js +3 -3
  14. package/server/functions/getSearchData.js +1 -1
  15. package/server/migrations/site.sql +2 -2
  16. package/server/routes/cms/controllers/getPermissions.js +15 -15
  17. package/server/routes/cms/controllers/listMedia.js +5 -1
  18. package/server/routes/cms/controllers/setPermissions.js +49 -49
  19. package/server/routes/cms/controllers/updateContent.js +27 -1
  20. package/server/routes/cms/functions/getSettings.js +1 -1
  21. package/server/routes/cms/utils/getSingle.js +3 -0
  22. package/server/routes/contentType/controllers/editContentType.js +29 -9
  23. package/server/routes/contentType/controllers/getContentType.js +13 -0
  24. package/server/routes/contentType/utils/updateContents.js +16 -0
  25. package/server/routes/menu/controllers/getMenu.js +2 -2
  26. package/server/routes/menu/functions/getMenu.js +3 -3
  27. package/server/templates/select/core.user_mentioned.sql +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, useModel as c, ref as m, onMounted as f, watch as d, onBeforeUnmount as h, openBlock as g, createElementBlock as p, normalizeStyle as v, mergeModels as w } from "vue";
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
2
  async function M() {
3
3
  if (window.monaco)
4
4
  return window.monaco;
@@ -12,7 +12,7 @@ async function M() {
12
12
  }
13
13
  const C = /* @__PURE__ */ s({
14
14
  __name: "MonacoEditor",
15
- props: /* @__PURE__ */ w({
15
+ props: /* @__PURE__ */ c({
16
16
  language: { default: "javascript" },
17
17
  theme: { default: "vs-dark" },
18
18
  width: { default: "100%" },
@@ -28,9 +28,9 @@ const C = /* @__PURE__ */ s({
28
28
  }),
29
29
  emits: ["update:modelValue"],
30
30
  setup(a) {
31
- const o = a, l = c(a, "modelValue"), n = m(null);
31
+ const o = a, l = m(a, "modelValue"), n = f(null);
32
32
  let e = null, i = null;
33
- return f(async () => {
33
+ return h(async () => {
34
34
  var t;
35
35
  if (n.value)
36
36
  try {
@@ -70,12 +70,12 @@ const C = /* @__PURE__ */ s({
70
70
  (t) => {
71
71
  e && t && i && i.editor.setTheme(t);
72
72
  }
73
- ), h(() => {
73
+ ), g(() => {
74
74
  e && (e.dispose(), e = null);
75
- }), (t, r) => (g(), p("div", {
75
+ }), (t, r) => (p(), v("div", {
76
76
  ref_key: "editorContainer",
77
77
  ref: n,
78
- style: v({ width: a.width, height: a.height })
78
+ style: w({ width: a.width, height: a.height })
79
79
  }, null, 4));
80
80
  }
81
81
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, useModel as p, computed as h, openBlock as d, createElementBlock as c, createElementVNode as e, toDisplayString as n, createTextVNode as u, createVNode as b, unref as g, Fragment as v, renderList as w, normalizeClass as k, mergeModels as y } from "vue";
1
+ import { defineComponent as f, mergeModels as p, useModel as w, computed as h, openBlock as d, createElementBlock as c, createElementVNode as e, toDisplayString as n, createTextVNode as u, createVNode as b, unref as g, Fragment as v, renderList as k, normalizeClass as y } from "vue";
2
2
  import { ChevronLeft as $, ChevronRight as M } from "lucide-vue-next";
3
3
  const C = { class: "flex items-center justify-between px-6 py-4 border-t border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800" }, _ = { class: "flex justify-between flex-1 sm:hidden" }, j = { class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50" }, P = { class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50" }, N = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, T = { class: "text-sm text-slate-600 dark:text-slate-400" }, V = { class: "font-medium text-slate-800 dark:text-slate-100" }, z = { class: "font-medium text-slate-800 dark:text-slate-100" }, B = {
4
4
  class: "relative z-0 inline-flex space-x-2 rounded-md shadow-sm",
@@ -8,7 +8,7 @@ const C = { class: "flex items-center justify-between px-6 py-4 border-t border-
8
8
  class: "px-2 py-2 text-gray-400"
9
9
  }, F = ["onClick"], R = ["disabled"], U = { class: "sr-only" }, G = /* @__PURE__ */ f({
10
10
  __name: "UniversalTablePagination",
11
- props: /* @__PURE__ */ y({
11
+ props: /* @__PURE__ */ p({
12
12
  total: {},
13
13
  count: {},
14
14
  limit: {}
@@ -18,7 +18,7 @@ const C = { class: "flex items-center justify-between px-6 py-4 border-t border-
18
18
  }),
19
19
  emits: ["update:page"],
20
20
  setup(a) {
21
- const t = p(a, "page"), r = h(() => Math.ceil(a.total / a.limit)), x = h(() => {
21
+ const t = w(a, "page"), r = h(() => Math.ceil(a.total / a.limit)), x = h(() => {
22
22
  const s = [];
23
23
  if (r.value <= 4) {
24
24
  for (let i = 1; i <= r.value; i++)
@@ -57,13 +57,13 @@ const C = { class: "flex items-center justify-between px-6 py-4 border-t border-
57
57
  b(g($), { class: "w-5 h-5" })
58
58
  ], 8, E),
59
59
  e("div", S, [
60
- (d(!0), c(v, null, w(x.value, (o, m) => (d(), c(v, {
60
+ (d(!0), c(v, null, k(x.value, (o, m) => (d(), c(v, {
61
61
  key: o + "-" + m
62
62
  }, [
63
63
  o === "ellipsis" ? (d(), c("span", D, "...")) : (d(), c("button", {
64
64
  key: 1,
65
65
  onClick: (i) => t.value = o,
66
- class: k(["inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors h-8 w-8 p-0 text-sm rounded-md", {
66
+ class: y(["inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors h-8 w-8 p-0 text-sm rounded-md", {
67
67
  "border shadow-sm hover:text-accent-foreground bg-white dark:bg-slate-700 border-slate-300 dark:border-slate-600 text-slate-600 dark:text-slate-300 hover:border-blue-600 hover:bg-slate-50 dark:hover:bg-slate-600": o !== t.value,
68
68
  "shadow bg-blue-600 hover:bg-blue-700 text-white border-blue-600": o === t.value
69
69
  }])
@@ -1,7 +1,7 @@
1
1
  import { defineAsyncComponent as xe, useModel as ke, ref as y, provide as $e, onMounted as Y, nextTick as D, watch as K, computed as p, openBlock as h, createBlock as re, unref as _, createCommentVNode as z, createElementBlock as b, createElementVNode as d, createTextVNode as ie, createVNode as A, defineComponent as Se, inject as Ae, getCurrentInstance as Ce, toRef as Te, toDisplayString as L, Fragment as Ve, renderList as je, normalizeClass as ae, withDirectives as W, vModelCheckbox as Fe, vShow as oe } from "vue";
2
2
  import { useRouter as ze, useRoute as Ne } from "vue-router";
3
3
  import { ExternalLink as Ee, ArrowLeft as Pe, HelpCircle as Le, Settings as Ue, Save as Be } from "lucide-vue-next";
4
- import { _ as Oe, a as De, V as Je, b as X, c as Me, d as Re, e as He, g as Ke } from "./getField-DoisYj34.js";
4
+ import { _ as Oe, a as De, V as Je, b as X, c as Me, d as Re, e as He, g as Ke } from "./getField-Y5WXnRR0.js";
5
5
  import { useI18n as ne } from "vue-i18n";
6
6
  import { inputs as S, VForm as le } from "@opengis/form";
7
7
  import { notify as U } from "@opengis/core";