@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
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { defineAsyncComponent as o, defineComponent as P, getCurrentInstance as $, computed as s, provide as w, openBlock as g, createBlock as b, resolveDynamicComponent as h, createElementBlock as k, toDisplayString as x } from "vue";
1
+ import { defineAsyncComponent as o, defineComponent as P, getCurrentInstance as $, computed as s, provide as w, openBlock as v, createBlock as b, resolveDynamicComponent as h, createElementBlock as k, toDisplayString as x } from "vue";
2
2
  import { useRoute as E, routeLocationKey as I } from "vue-router";
3
3
  const B = "menu", D = (u, i) => {
4
4
  const r = u == null ? void 0 : u.trim();
5
5
  return r ? r === B ? i ? i === "create" ? { type: "createMenu", collection: r } : { type: "editMenu", collection: r, id: i } : { type: "menu", collection: r } : i === "edit" ? { type: "editCollection", collection: r } : i ? i === "create" ? { type: "createArticle", collection: r } : { type: "editArticle", collection: r, id: i } : { type: "articles", collection: r } : { type: "collections" };
6
- }, C = o(() => import("./CollectionsPage-JfmrHNR_.js")), K = o(() => import("./ArticlesPage-dx7Se1Xo.js")), y = o(() => import("./contentForm-BgEoJcWF.js")), O = o(() => import("./EditCollectionPage-H1J9pZNo.js")), L = o(
6
+ }, C = o(() => import("./CollectionsPage-JfmrHNR_.js")), K = o(() => import("./ArticlesPage-BcR1hbds.js")), y = o(() => import("./contentForm-B6gHgGkz.js")), O = o(() => import("./EditCollectionPage-Cw3GQYRe.js")), L = o(
7
7
  () => import("./MenuPage-tJZtK46W.js")
8
8
  ), W = o(
9
- () => import("./MenuItemPage-XN9lx5Vv.js")
9
+ () => import("./MenuItemPage-BSwUW8tv.js")
10
10
  ), N = o(
11
- () => import("./MenuAddPage-B6Qs6qV8.js")
11
+ () => import("./MenuAddPage-Bf48Z-ah.js")
12
12
  ), j = {
13
13
  collections: C,
14
14
  articles: K,
@@ -50,7 +50,7 @@ const B = "menu", D = (u, i) => {
50
50
  _.value
51
51
  )), f = s(() => S(a.value.type)), A = s(
52
52
  () => `${a.value.type}-${a.value.collection ?? ""}-${a.value.id ?? ""}`
53
- ), v = s(() => {
53
+ ), g = s(() => {
54
54
  const { type: e, collection: t, id: c } = a.value, n = { ...p.value };
55
55
  return m.value ? n.collection = m.value : delete n.collection, e === "articles" ? n.id = t : e === "createArticle" ? delete n.id : e === "editCollection" ? n.id = t : e === "editArticle" && c ? n.id = c : delete n.id, n;
56
56
  }), M = new Proxy({}, {
@@ -59,7 +59,7 @@ const B = "menu", D = (u, i) => {
59
59
  if (!n)
60
60
  return;
61
61
  if (t === "params")
62
- return v.value;
62
+ return g.value;
63
63
  const d = Reflect.get(n, t, c);
64
64
  return typeof d == "function" ? d.bind(n) : d;
65
65
  },
@@ -78,7 +78,7 @@ const B = "menu", D = (u, i) => {
78
78
  return {
79
79
  configurable: !0,
80
80
  enumerable: !0,
81
- value: v.value
81
+ value: g.value
82
82
  };
83
83
  const c = l.value;
84
84
  if (!c)
@@ -88,9 +88,9 @@ const B = "menu", D = (u, i) => {
88
88
  return { ...n, configurable: !0 };
89
89
  }
90
90
  });
91
- return w(I, M), (e, t) => f.value ? (g(), b(h(f.value), { key: A.value })) : (g(), k("div", T, x(e.$t("cms.navigation.collections")), 1));
91
+ return w(I, M), (e, t) => f.value ? (v(), b(h(f.value), { key: A.value })) : (v(), k("div", T, x(e.$t("cms.navigation.collections")), 1));
92
92
  }
93
- }), z = o(() => import("./CollectionsPage-JfmrHNR_.js")), G = o(() => import("./ArticlesPage-dx7Se1Xo.js")), H = o(() => import("./BuilderPage-ChkWE8rE.js")), J = o(() => import("./EditCollectionPage-H1J9pZNo.js")), Q = o(() => import("./MenuPage-tJZtK46W.js")), X = o(() => import("./MenuAddPage-B6Qs6qV8.js")), Y = o(() => import("./MenuItemPage-XN9lx5Vv.js"));
93
+ }), z = o(() => import("./CollectionsPage-JfmrHNR_.js")), G = o(() => import("./ArticlesPage-BcR1hbds.js")), H = o(() => import("./BuilderPage-CK_osM89.js")), J = o(() => import("./EditCollectionPage-Cw3GQYRe.js")), Q = o(() => import("./MenuPage-tJZtK46W.js")), X = o(() => import("./MenuAddPage-Bf48Z-ah.js")), Y = o(() => import("./MenuItemPage-BSwUW8tv.js"));
94
94
  export {
95
95
  G as ArticlesPage,
96
96
  H as BuilderPage,