@opengis/cms 0.0.52 → 0.0.54
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/{ArticlesPage-Cddv2qte.js → ArticlesPage-Cuit_90w.js} +5 -5
- package/dist/{BuilderPage-BgcBJcw7.js → BuilderPage-B79YHrmr.js} +139 -139
- package/dist/{CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-C-k8QGA-.js → CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-B6irHMzL.js} +19 -19
- package/dist/{CollectionsPage-d5MLIIAG.js → CollectionsPage-JfmrHNR_.js} +3 -3
- package/dist/{CreateForm-B0srHu5e.js → CreateForm-BMOBeP4G.js} +2 -2
- package/dist/{EditCollectionPage-NUVatLkY.js → EditCollectionPage-CAVLcvLg.js} +5 -5
- package/dist/{EmptyData-BSW20VKP.js → EmptyData-DaZt_nAm.js} +5 -5
- package/dist/{MenuAddPage-Cn3JN04F.js → MenuAddPage-CmU4kAUM.js} +3 -3
- package/dist/{MenuItemPage-B0Th9EOe.js → MenuItemPage-UV8JlJvT.js} +60 -60
- package/dist/{MenuPage-DQpD3IXx.js → MenuPage-c4TPJgIN.js} +4 -4
- package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-C8cip9Ci.js +84 -0
- package/dist/{UniversalTable.vue_vue_type_script_setup_true_lang-DW6O-xoY.js → UniversalTable.vue_vue_type_script_setup_true_lang-DR4PQwqR.js} +78 -78
- package/dist/{UniversalTablePagination.vue_vue_type_script_setup_true_lang-DBIPBmpm.js → UniversalTablePagination.vue_vue_type_script_setup_true_lang-C8P9DCeX.js} +46 -46
- package/dist/{contentForm-C4Jp-FbQ.js → contentForm-BQdeYVFh.js} +3 -3
- package/dist/{getField-CKcz_b0t.js → getField-Y5WXnRR0.js} +632 -631
- package/dist/index.js +10 -10
- package/dist/style.css +1 -1
- package/dist/{vuedraggable-mqqAYsch.js → vuedraggable-CoAPPFYd.js} +107 -107
- package/package.json +67 -67
- package/server/functions/getTags.js +30 -0
- package/server/routes/cms/controllers/listMedia.js +5 -1
- package/server/routes/cms/controllers/translate.js +3 -3
- package/server/routes/cms/utils/insertContentLocalization.js +22 -4
- package/server/routes/contentType/controllers/getContentType.js +9 -2
- package/server/routes/tags/controllers/get.tags.js +1 -1
- package/utils.js +1 -0
- package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-CTKNG0qR.js +0 -84
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as j, ref as L, computed as $,
|
|
1
|
+
import { defineComponent as j, ref as L, computed as $, openBlock as s, createElementBlock as r, createElementVNode as a, Fragment as y, renderList as w, normalizeClass as h, createBlock as g, resolveDynamicComponent as C, createCommentVNode as A, createTextVNode as v, toDisplayString as l, createVNode as M, unref as f, withModifiers as D, renderSlot as B } from "vue";
|
|
2
2
|
import { useI18n as q } from "vue-i18n";
|
|
3
3
|
import { Eye as U, File as P, Layers as z, Pencil as H, Trash2 as W, XCircle as X, Edit as G, CheckCircle as J } from "lucide-vue-next";
|
|
4
4
|
const K = { class: "text-card-foreground border-0 bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm" }, O = { class: "p-0" }, Q = { class: "table-scroll overflow-x-auto" }, Y = { class: "relative w-full overflow-auto max-h-[calc(100vh-270px)]" }, Z = { class: "w-full caption-bottom text-sm" }, I = { class: "border-b border-slate-200 dark:border-slate-700 bg-slate-50/50 dark:bg-slate-700/50 hover:bg-slate-50/80 dark:hover:bg-slate-700/80 transition-colors" }, ee = { class: "flex items-center gap-2" }, te = { class: "h-10 text-center px-4 font-semibold text-slate-700 dark:text-slate-300 max-w-32" }, se = ["onClick"], ne = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "whitespace-nowrap"
|
|
7
|
-
},
|
|
7
|
+
}, re = {
|
|
8
8
|
key: 2,
|
|
9
9
|
class: "whitespace-nowrap"
|
|
10
|
-
},
|
|
10
|
+
}, ae = {
|
|
11
11
|
key: 3,
|
|
12
12
|
class: "flex items-center"
|
|
13
13
|
}, ie = {
|
|
@@ -22,10 +22,10 @@ const K = { class: "text-card-foreground border-0 bg-white/80 dark:bg-slate-800/
|
|
|
22
22
|
}, le = {
|
|
23
23
|
key: 8,
|
|
24
24
|
class: "flex items-center gap-3"
|
|
25
|
-
},
|
|
25
|
+
}, me = {
|
|
26
26
|
key: 11,
|
|
27
27
|
class: "flex items-center gap-3"
|
|
28
|
-
},
|
|
28
|
+
}, ce = { class: "line-clamp-2" }, ue = { class: "flex justify-end py-2 px-4 align-middle max-w-40" }, be = { class: "flex items-center justify-center gap-1" }, he = ["onClick"], pe = ["onClick"], ye = /* @__PURE__ */ j({
|
|
29
29
|
__name: "UniversalTable",
|
|
30
30
|
props: {
|
|
31
31
|
rows: {},
|
|
@@ -39,16 +39,16 @@ const K = { class: "text-card-foreground border-0 bg-white/80 dark:bg-slate-800/
|
|
|
39
39
|
customRender: {}
|
|
40
40
|
},
|
|
41
41
|
emits: ["edit", "view", "delete", "more"],
|
|
42
|
-
setup(
|
|
42
|
+
setup(N, { emit: E }) {
|
|
43
43
|
const { t: o } = q();
|
|
44
44
|
L(null);
|
|
45
|
-
const d =
|
|
46
|
-
if (!
|
|
45
|
+
const d = N, x = E, T = $(() => !d.query || !d.filterFn ? d.rows : d.rows.filter((n) => d.filterFn(n, d.query))), V = (n) => {
|
|
46
|
+
if (!n)
|
|
47
47
|
return "";
|
|
48
|
-
const i = new Date(
|
|
49
|
-
return isNaN(i.getTime()) ? "" :
|
|
50
|
-
},
|
|
51
|
-
switch (
|
|
48
|
+
const i = new Date(n);
|
|
49
|
+
return isNaN(i.getTime()) ? "" : n.includes("T") || n.includes(" ") || n.includes(":") ? i.toLocaleString("uk-UA", { dateStyle: "medium", timeStyle: "medium" }) : i.toLocaleDateString("uk-UA", { dateStyle: "medium" });
|
|
50
|
+
}, k = (n) => {
|
|
51
|
+
switch (n) {
|
|
52
52
|
case "published":
|
|
53
53
|
return {
|
|
54
54
|
icon: J,
|
|
@@ -70,130 +70,130 @@ const K = { class: "text-card-foreground border-0 bg-white/80 dark:bg-slate-800/
|
|
|
70
70
|
default:
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
|
-
},
|
|
74
|
-
switch (
|
|
73
|
+
}, _ = (n, i) => {
|
|
74
|
+
switch (n) {
|
|
75
75
|
case "edit":
|
|
76
|
-
|
|
76
|
+
x("edit", i), d.onEdit && d.onEdit(i);
|
|
77
77
|
break;
|
|
78
78
|
case "view":
|
|
79
|
-
|
|
79
|
+
x("view", i), d.onView && d.onView(i);
|
|
80
80
|
break;
|
|
81
81
|
case "delete":
|
|
82
|
-
|
|
82
|
+
x("delete", i);
|
|
83
83
|
break;
|
|
84
84
|
case "more":
|
|
85
|
-
|
|
85
|
+
x("more", i), d.onMore && d.onMore(i);
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
|
-
}, R = (
|
|
89
|
-
|
|
90
|
-
}, S = (
|
|
91
|
-
const i = /* @__PURE__ */ new Date(), e = new Date(
|
|
92
|
-
return
|
|
88
|
+
}, R = (n) => {
|
|
89
|
+
_("edit", n);
|
|
90
|
+
}, S = (n) => {
|
|
91
|
+
const i = /* @__PURE__ */ new Date(), e = new Date(n), t = i - e, p = Math.floor(t / 1e3), m = Math.floor(p / 60), c = Math.floor(m / 60), u = Number(Math.floor(c / 24)), b = Number(Math.floor(u / 7));
|
|
92
|
+
return b >= 2 ? o("cms.table.time.weeksAgo", { count: b }) : b === 1 ? o("cms.table.time.weekAgo") : u >= 2 ? o("cms.table.time.daysAgo", { count: u }) : u === 1 ? o("cms.table.time.dayAgo") : c >= 2 ? o("cms.table.time.hoursAgo", { count: c }) : c === 1 ? o("cms.table.time.hourAgo") : m >= 2 ? o("cms.table.time.minutesAgo", { count: m }) : o(m === 1 ? "cms.table.time.minuteAgo" : "cms.table.time.justNow");
|
|
93
93
|
};
|
|
94
|
-
return (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
(s(!0),
|
|
94
|
+
return (n, i) => (s(), r("div", K, [
|
|
95
|
+
a("div", O, [
|
|
96
|
+
a("div", Q, [
|
|
97
|
+
a("div", Y, [
|
|
98
|
+
a("table", Z, [
|
|
99
|
+
a("thead", null, [
|
|
100
|
+
a("tr", I, [
|
|
101
|
+
(s(!0), r(y, null, w(n.columns, (e) => (s(), r("th", {
|
|
102
102
|
key: e.name,
|
|
103
|
-
class:
|
|
103
|
+
class: h(["h-10 px-4 text-left align-middle font-semibold text-slate-700 dark:text-slate-300 max-w-80", {
|
|
104
104
|
"min-w-[200px]": ["title", "name"].includes(e.name),
|
|
105
105
|
"min-w-[150px]": e.name === "slug",
|
|
106
106
|
"min-w-[250px]": e.name === "description"
|
|
107
107
|
}])
|
|
108
108
|
}, [
|
|
109
|
-
|
|
110
|
-
e.icon ? (s(),
|
|
109
|
+
a("div", ee, [
|
|
110
|
+
e.icon ? (s(), g(C(e.icon), {
|
|
111
111
|
key: 0,
|
|
112
112
|
class: "w-5 h-5"
|
|
113
113
|
})) : A("", !0),
|
|
114
|
-
|
|
114
|
+
v(" " + l(e.label || e.title || e.ua || e.name), 1)
|
|
115
115
|
])
|
|
116
116
|
], 2))), 128)),
|
|
117
|
-
|
|
117
|
+
a("th", te, l(n.$t("cms.table.actions")), 1)
|
|
118
118
|
])
|
|
119
119
|
]),
|
|
120
|
-
|
|
121
|
-
(s(!0),
|
|
120
|
+
a("tbody", null, [
|
|
121
|
+
(s(!0), r(y, null, w(T.value, (e) => (s(), r("tr", {
|
|
122
122
|
key: e.id || e._id || e.name,
|
|
123
123
|
class: "transition-all duration-200 hover:bg-slate-100 dark:hover:bg-slate-700/60"
|
|
124
124
|
}, [
|
|
125
|
-
(s(!0),
|
|
126
|
-
var
|
|
127
|
-
return s(),
|
|
125
|
+
(s(!0), r(y, null, w(n.columns, (t, p) => {
|
|
126
|
+
var m, c, u, b, F;
|
|
127
|
+
return s(), r("td", {
|
|
128
128
|
key: t.name,
|
|
129
|
-
class:
|
|
130
|
-
"font-medium text-slate-800 dark:text-white cursor-pointer":
|
|
131
|
-
"text-slate-600 dark:text-slate-400 font-mono text-sm":
|
|
129
|
+
class: h(["py-2 px-4 align-middle max-w-80", {
|
|
130
|
+
"font-medium text-slate-800 dark:text-white cursor-pointer": p === 0,
|
|
131
|
+
"text-slate-600 dark:text-slate-400 font-mono text-sm": p !== 0
|
|
132
132
|
}]),
|
|
133
|
-
onClick: (
|
|
133
|
+
onClick: (ge) => p === 0 ? R(e) : void 0
|
|
134
134
|
}, [
|
|
135
|
-
|
|
135
|
+
n.customRender && n.customRender[t.name] ? (s(), g(C(n.customRender[t.name](e[t.name], e)), { key: 0 })) : A("", !0),
|
|
136
136
|
[
|
|
137
137
|
"published_at",
|
|
138
138
|
"publish_at",
|
|
139
139
|
"created_at",
|
|
140
140
|
"date"
|
|
141
|
-
].includes(t.name) && e[t.name] ? (s(),
|
|
141
|
+
].includes(t.name) && e[t.name] ? (s(), r("span", ne, l(V(e[t.name])), 1)) : [
|
|
142
142
|
"updated_at",
|
|
143
143
|
"lastModified",
|
|
144
144
|
"last_edit"
|
|
145
|
-
].includes(t.name) ? (s(),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
])) : ["entries", "fields"].includes(t.name) ? (s(),
|
|
149
|
-
|
|
150
|
-
class:
|
|
145
|
+
].includes(t.name) ? (s(), r("span", re, l(S(e[t.name]) || "--"), 1)) : t.name === "views" ? (s(), r("div", ae, [
|
|
146
|
+
M(f(U), { class: "w-4 h-4 mr-1" }),
|
|
147
|
+
v(" " + l(((c = (m = e[t.name]) == null ? void 0 : m.toLocaleString) == null ? void 0 : c.call(m)) ?? e[t.name]), 1)
|
|
148
|
+
])) : ["entries", "fields"].includes(t.name) ? (s(), r("div", ie, l(e[t.name] || "-"), 1)) : t.name === "type" ? (s(), r("div", oe, [
|
|
149
|
+
a("div", {
|
|
150
|
+
class: h(["whitespace-nowrap inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors border-transparent hover:bg-secondary/80", e[t.name] === "pages" ? "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300" : "bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300"])
|
|
151
151
|
}, l(e[t.name] || "-"), 3)
|
|
152
|
-
])) : t.name === "name" ? (s(),
|
|
153
|
-
e.type === "single" ? (s(), f(
|
|
152
|
+
])) : t.name === "name" ? (s(), r("div", de, [
|
|
153
|
+
e.type === "single" ? (s(), g(f(P), {
|
|
154
154
|
key: 0,
|
|
155
155
|
class: "shrink-0 lucide lucide-page w-5 h-5 text-blue-600"
|
|
156
|
-
})) : (s(), f(
|
|
156
|
+
})) : (s(), g(f(z), {
|
|
157
157
|
key: 1,
|
|
158
158
|
class: "shrink-0 lucide lucide-layers w-5 h-5 text-blue-600"
|
|
159
159
|
})),
|
|
160
|
-
|
|
161
|
-
])) : t.name === "status" ? (s(),
|
|
162
|
-
|
|
160
|
+
v(" " + l(e[t.name]), 1)
|
|
161
|
+
])) : t.name === "status" ? (s(), r(y, { key: 7 }, [
|
|
162
|
+
k(e[t.name]) ? (s(), r("div", {
|
|
163
163
|
key: 0,
|
|
164
|
-
class:
|
|
164
|
+
class: h(["whitespace-nowrap rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors hover:bg-secondary/80 flex items-center w-fit bg-green-100 text-green-800 border-green-200 dark:bg-green-900/30 dark:text-green-300 dark:border-green-700", (u = k(e[t.name])) == null ? void 0 : u.classes])
|
|
165
165
|
}, [
|
|
166
|
-
(s(),
|
|
167
|
-
|
|
166
|
+
(s(), g(C((b = k(e[t.name])) == null ? void 0 : b.icon), { class: "w-3 h-3 mr-1" })),
|
|
167
|
+
v(" " + l((F = k(e[t.name])) == null ? void 0 : F.text), 1)
|
|
168
168
|
], 2)) : A("", !0)
|
|
169
|
-
], 64)) : t.name === "slug" ? (s(),
|
|
169
|
+
], 64)) : t.name === "slug" ? (s(), r("div", le, l(e[t.name] ? "/" + e[t.name] : "-"), 1)) : t.name === "color" ? (s(), r("span", {
|
|
170
170
|
key: 9,
|
|
171
|
-
class:
|
|
172
|
-
}, null, 2)) : t.name === "enabled" ? (s(),
|
|
171
|
+
class: h(["w-4 h-4 rounded-full block ml-2", "bg-[" + e[t.name] + "]"])
|
|
172
|
+
}, null, 2)) : t.name === "enabled" ? (s(), r("span", {
|
|
173
173
|
key: 10,
|
|
174
|
-
class:
|
|
175
|
-
}, l(e[t.name] ? "Доступ" : "Заборонено"), 3)) : (s(),
|
|
176
|
-
|
|
174
|
+
class: h(["whitespace-nowrap rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors hover:bg-secondary/80 flex items-center w-fit", e[t.name] ? "bg-green-100 text-green-800 border-green-200" : "bg-red-100 text-red-800 border-red-200"])
|
|
175
|
+
}, l(e[t.name] ? "Доступ" : "Заборонено"), 3)) : (s(), r("div", me, [
|
|
176
|
+
a("p", ce, l(e[t.name] || "-"), 1)
|
|
177
177
|
]))
|
|
178
178
|
], 10, se);
|
|
179
179
|
}), 128)),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
onClick:
|
|
180
|
+
a("td", ue, [
|
|
181
|
+
a("div", be, [
|
|
182
|
+
a("button", {
|
|
183
|
+
onClick: D((t) => _("edit", e), ["stop"]),
|
|
184
184
|
class: "inline-flex items-center justify-center whitespace-nowrap font-medium border rounded-md text-xs h-8 w-8 p-0 border-slate-300 bg-white transition-all duration-200 shadow-sm dark:border-slate-600 dark:bg-slate-700 dark:hover:bg-slate-600 dark:hover:text-slate-200 hover:border-blue-300 hover:bg-blue-50 hover:text-blue-600",
|
|
185
185
|
title: "Edit"
|
|
186
186
|
}, [
|
|
187
|
-
|
|
187
|
+
M(f(H), { class: "text-slate-800 dark:text-slate-200 w-4 h-4 group-hover:text-green-600 dark:group-hover:text-blue-50" })
|
|
188
188
|
], 8, he),
|
|
189
|
-
|
|
190
|
-
onClick:
|
|
189
|
+
a("button", {
|
|
190
|
+
onClick: D((t) => _("delete", e), ["stop"]),
|
|
191
191
|
class: "inline-flex items-center justify-center whitespace-nowrap font-medium border rounded-md text-xs h-8 w-8 p-0 border-slate-300 bg-white transition-all duration-200 shadow-sm dark:border-slate-600 dark:bg-slate-700 dark:hover:bg-slate-600 dark:hover:text-slate-200 hover:border-blue-300 hover:bg-blue-50 hover:text-blue-600",
|
|
192
192
|
title: "Preview"
|
|
193
193
|
}, [
|
|
194
|
-
|
|
195
|
-
], 8,
|
|
196
|
-
B(
|
|
194
|
+
M(f(W), { class: "w-4 h-4 text-slate-800 dark:text-slate-200 group-hover:text-red-600 dark:group-hover:text-blue-50" })
|
|
195
|
+
], 8, pe),
|
|
196
|
+
B(n.$slots, "actions", { row: e })
|
|
197
197
|
])
|
|
198
198
|
])
|
|
199
199
|
]))), 128))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as f, mergeModels as
|
|
2
|
-
import { ChevronLeft as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, mergeModels as x, useModel as w, computed as h, openBlock as r, createElementBlock as d, createElementVNode as t, toDisplayString as n, createTextVNode as u, createVNode as b, unref as p, Fragment as g, renderList as k, normalizeClass as y } from "vue";
|
|
2
|
+
import { ChevronLeft as _, ChevronRight as $ } from "lucide-vue-next";
|
|
3
|
+
const M = { 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" }, C = { 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",
|
|
5
5
|
"aria-label": "Pagination"
|
|
6
6
|
}, E = ["disabled"], L = { class: "sr-only" }, S = { class: "space-x-1" }, D = {
|
|
@@ -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__ */
|
|
11
|
+
props: /* @__PURE__ */ x({
|
|
12
12
|
total: {},
|
|
13
13
|
count: {},
|
|
14
14
|
limit: {}
|
|
@@ -17,66 +17,66 @@ const C = { class: "flex items-center justify-between px-6 py-4 border-t border-
|
|
|
17
17
|
pageModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:page"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
24
|
-
for (let
|
|
25
|
-
|
|
26
|
-
return
|
|
20
|
+
setup(c) {
|
|
21
|
+
const s = w(c, "page"), i = h(() => Math.ceil(c.total / c.limit)), v = h(() => {
|
|
22
|
+
const a = [];
|
|
23
|
+
if (i.value <= 4) {
|
|
24
|
+
for (let l = 1; l <= i.value; l++)
|
|
25
|
+
a.push(l);
|
|
26
|
+
return a;
|
|
27
27
|
}
|
|
28
|
-
const o = Math.max(2,
|
|
29
|
-
|
|
30
|
-
for (let
|
|
31
|
-
|
|
32
|
-
return m <
|
|
28
|
+
const o = Math.max(2, s.value - 2), m = Math.min(i.value - 1, s.value + 2);
|
|
29
|
+
a.push(1), o > 2 && a.push("ellipsis");
|
|
30
|
+
for (let l = o; l <= m; l++)
|
|
31
|
+
a.push(l);
|
|
32
|
+
return m < i.value - 1 && a.push("ellipsis"), a.push(i.value), a;
|
|
33
33
|
});
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
return (e, a) => (r(), d("div", M, [
|
|
35
|
+
t("div", C, [
|
|
36
|
+
t("button", j, n(e.$t("cms.common.pagination.previous")), 1),
|
|
37
|
+
t("button", P, n(e.$t("cms.common.pagination.next")), 1)
|
|
38
38
|
]),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
u(n(
|
|
43
|
-
|
|
44
|
-
u(" " + n(
|
|
45
|
-
|
|
46
|
-
u(" " + n(
|
|
39
|
+
t("div", N, [
|
|
40
|
+
t("div", null, [
|
|
41
|
+
t("p", T, [
|
|
42
|
+
u(n(e.$t("cms.common.pagination.showing")) + " ", 1),
|
|
43
|
+
t("span", V, n(e.count), 1),
|
|
44
|
+
u(" " + n(e.$t("cms.common.pagination.of")) + " ", 1),
|
|
45
|
+
t("span", z, n(e.total), 1),
|
|
46
|
+
u(" " + n(e.$t("cms.common.pagination.results")), 1)
|
|
47
47
|
])
|
|
48
48
|
]),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
onClick:
|
|
53
|
-
disabled:
|
|
49
|
+
t("div", null, [
|
|
50
|
+
t("nav", B, [
|
|
51
|
+
t("button", {
|
|
52
|
+
onClick: a[0] || (a[0] = (o) => s.value = s.value > 1 ? s.value - 1 : 1),
|
|
53
|
+
disabled: s.value === 1,
|
|
54
54
|
class: "inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors border shadow-sm rounded-md text-xs h-8 w-8 p-0 bg-white border-slate-300 text-slate-600 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed hover:text-accent-foreground hover:bg-slate-50 dark:bg-slate-700 dark:border-slate-600 dark:text-slate-300 dark:hover:bg-slate-600"
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
b(
|
|
56
|
+
t("span", L, n(e.$t("cms.common.pagination.previous")), 1),
|
|
57
|
+
b(p(_), { class: "w-5 h-5" })
|
|
58
58
|
], 8, E),
|
|
59
|
-
|
|
60
|
-
(
|
|
59
|
+
t("div", S, [
|
|
60
|
+
(r(!0), d(g, null, k(v.value, (o, m) => (r(), d(g, {
|
|
61
61
|
key: o + "-" + m
|
|
62
62
|
}, [
|
|
63
|
-
o === "ellipsis" ? (
|
|
63
|
+
o === "ellipsis" ? (r(), d("span", D, "...")) : (r(), d("button", {
|
|
64
64
|
key: 1,
|
|
65
|
-
onClick: (
|
|
65
|
+
onClick: (l) => s.value = o,
|
|
66
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
|
-
"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 !==
|
|
68
|
-
"shadow bg-blue-600 hover:bg-blue-700 text-white border-blue-600": o ===
|
|
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 !== s.value,
|
|
68
|
+
"shadow bg-blue-600 hover:bg-blue-700 text-white border-blue-600": o === s.value
|
|
69
69
|
}])
|
|
70
70
|
}, n(o), 11, F))
|
|
71
71
|
], 64))), 128))
|
|
72
72
|
]),
|
|
73
|
-
|
|
74
|
-
onClick:
|
|
75
|
-
disabled:
|
|
73
|
+
t("button", {
|
|
74
|
+
onClick: a[1] || (a[1] = (o) => s.value = s.value < Math.ceil(e.total / e.limit) ? s.value + 1 : Math.ceil(e.total / e.limit)),
|
|
75
|
+
disabled: s.value === Math.ceil(e.total / e.limit),
|
|
76
76
|
class: "inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors border shadow-sm rounded-md text-xs h-8 w-8 p-0 bg-white border-slate-300 text-slate-600 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed hover:text-accent-foreground hover:bg-slate-50 dark:bg-slate-700 dark:border-slate-600 dark:text-slate-300 dark:hover:bg-slate-600"
|
|
77
77
|
}, [
|
|
78
|
-
|
|
79
|
-
b(
|
|
78
|
+
t("span", U, n(e.$t("cms.common.pagination.next")), 1),
|
|
79
|
+
b(p($), { class: "w-5 h-5" })
|
|
80
80
|
], 8, R)
|
|
81
81
|
])
|
|
82
82
|
])
|
|
@@ -1,11 +1,11 @@
|
|
|
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,
|
|
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-
|
|
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";
|
|
8
|
-
import { _ as Ie } from "./CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Ie } from "./CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-B6irHMzL.js";
|
|
9
9
|
const qe = [
|
|
10
10
|
{
|
|
11
11
|
key: "title",
|