@tager/admin-blog 1.0.4 → 2.0.0
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/dev/App.vue.d.ts +670 -1
- package/dist/index.mjs +106 -106
- package/dist/style.css +1 -1
- package/dist/typings/model.d.ts +6 -6
- package/dist/views/Categories/CategoryForm/CategoryForm.vue.d.ts +3129 -5
- package/dist/views/Categories/CategoryList/CategoryList.vue.d.ts +2404 -7
- package/dist/views/Posts/PostForm/PostForm.vue.d.ts +28422 -2889
- package/dist/views/Posts/PostList/PostList.vue.d.ts +2506 -12
- package/package.json +10 -10
- package/src/dev/config.ts +0 -1
- package/src/typings/model.ts +3 -3
- package/src/views/Categories/CategoryForm/CategoryForm.vue +4 -4
- package/src/views/Posts/PostForm/PostForm.vue +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { useRoute as ge, useRouter as de } from "vue-router";
|
|
|
3
3
|
import { onMounted as oe, watch as G, computed as r, ref as E, defineComponent as pe, resolveComponent as y, openBlock as T, createBlock as M, withCtx as A, createVNode as p, createElementVNode as Y, toDisplayString as x, createElementBlock as Q, createTextVNode as Se, createCommentVNode as B, withModifiers as Ve, Fragment as J, renderList as ra, createSlots as ia } from "vue";
|
|
4
4
|
import We from "lodash.isequal";
|
|
5
5
|
import ua from "lodash.pick";
|
|
6
|
-
import { getFilterParamAsStringArray as ie, getFilterParamAsString as Be, getFilterParams as He, DataTable as ze, AdvancedSearch as Ye, FormFieldMultiSelect as Le, FormField as Te, BaseButton as Qe, EditIcon as Ke, ContentCopyIcon as ga, DeleteIcon as je, useDataTable as Ze, formatDateTime as da, FormFooter as Je, ShortCodeConstructor as pa, FormFieldSelect as Xe, FormFieldUrlAliasInput as _e, FormFieldCheckbox as xe, FormFieldRichTextInput as ma, FormFieldFileInput as ca, SeoFieldGroup as ea, formatDate as
|
|
6
|
+
import { getFilterParamAsStringArray as ie, getFilterParamAsString as Be, getFilterParams as He, DataTable as ze, AdvancedSearch as Ye, FormFieldMultiSelect as Le, FormField as Te, BaseButton as Qe, EditIcon as Ke, ContentCopyIcon as ga, DeleteIcon as je, useDataTable as Ze, formatDateTime as da, FormFooter as Je, ShortCodeConstructor as pa, FormFieldSelect as Xe, FormFieldUrlAliasInput as _e, FormFieldCheckbox as xe, FormFieldRichTextInput as ma, FormFieldFileInput as ca, SeoFieldGroup as ea, formatDate as va, createTabErrorFinder as ba, CountButton as fa, NorthIcon as ya, SouthIcon as ha, TabList as Ca } from "@tager/admin-ui";
|
|
7
7
|
import { Page as me } from "@tager/admin-layout";
|
|
8
8
|
import { universalFieldUtils as De, DynamicField as Fa } from "@tager/admin-dynamic-field";
|
|
9
9
|
import { compile as aa } from "path-to-regexp";
|
|
@@ -349,7 +349,7 @@ function he(e, a, n, o, t) {
|
|
|
349
349
|
const d = a.find(
|
|
350
350
|
(s) => s.value === e.language
|
|
351
351
|
), c = n.filter(
|
|
352
|
-
(s) => e.relatedPosts.some((
|
|
352
|
+
(s) => e.relatedPosts.some((v) => v.id === s.value)
|
|
353
353
|
), C = t.find(({ value: s }) => s === e.status) ?? t[0];
|
|
354
354
|
return {
|
|
355
355
|
title: e.title,
|
|
@@ -371,12 +371,12 @@ function he(e, a, n, o, t) {
|
|
|
371
371
|
relatedPosts: c,
|
|
372
372
|
tags: e.tags.join(","),
|
|
373
373
|
additionalFields: o.map((s) => {
|
|
374
|
-
const
|
|
375
|
-
({ name:
|
|
374
|
+
const v = e.additionalFields.find(
|
|
375
|
+
({ name: b }) => b === s.name
|
|
376
376
|
);
|
|
377
377
|
return De.createFormField(
|
|
378
378
|
s,
|
|
379
|
-
|
|
379
|
+
v == null ? void 0 : v.value
|
|
380
380
|
);
|
|
381
381
|
}),
|
|
382
382
|
status: C,
|
|
@@ -565,7 +565,7 @@ function Ya({
|
|
|
565
565
|
});
|
|
566
566
|
const s = r(
|
|
567
567
|
() => o.value.map(({ id: l, name: m }) => ({ value: l, label: m }))
|
|
568
|
-
),
|
|
568
|
+
), v = r(() => {
|
|
569
569
|
const l = ie(
|
|
570
570
|
a.query,
|
|
571
571
|
"language"
|
|
@@ -574,9 +574,9 @@ function Ya({
|
|
|
574
574
|
return s.value.filter(
|
|
575
575
|
({ value: m }) => l.some(($) => $ === m)
|
|
576
576
|
);
|
|
577
|
-
}),
|
|
578
|
-
G(
|
|
579
|
-
|
|
577
|
+
}), b = E(v.value);
|
|
578
|
+
G(v, () => {
|
|
579
|
+
b.value = v.value;
|
|
580
580
|
});
|
|
581
581
|
const L = r(
|
|
582
582
|
() => Be(
|
|
@@ -626,7 +626,7 @@ function Ya({
|
|
|
626
626
|
const u = r(() => {
|
|
627
627
|
const l = {
|
|
628
628
|
category: C.value.map(({ value: m }) => m),
|
|
629
|
-
language:
|
|
629
|
+
language: b.value.map(({ value: m }) => m),
|
|
630
630
|
status: D.value.map(({ value: m }) => m)
|
|
631
631
|
};
|
|
632
632
|
return F.value && (l[
|
|
@@ -640,7 +640,7 @@ function Ya({
|
|
|
640
640
|
function V(l) {
|
|
641
641
|
l.name === "category" && (C.value = C.value.filter(
|
|
642
642
|
({ value: m }) => m !== l.value
|
|
643
|
-
)), l.name === "language" && (
|
|
643
|
+
)), l.name === "language" && (b.value = b.value.filter(
|
|
644
644
|
({ value: m }) => m !== l.value
|
|
645
645
|
)), l.name === "from-date" && (F.value = "", g.value = ""), l.name === "status" && (D.value = D.value.filter(
|
|
646
646
|
({ value: m }) => m !== l.value
|
|
@@ -654,7 +654,7 @@ function Ya({
|
|
|
654
654
|
name: "category",
|
|
655
655
|
title: e("blog:category")
|
|
656
656
|
})),
|
|
657
|
-
...
|
|
657
|
+
...b.value.map(({ value: l, label: m }) => ({
|
|
658
658
|
value: l,
|
|
659
659
|
label: m,
|
|
660
660
|
name: "language",
|
|
@@ -668,8 +668,8 @@ function Ya({
|
|
|
668
668
|
title: e("blog:status")
|
|
669
669
|
}))
|
|
670
670
|
].filter(Fe)
|
|
671
|
-
), W = r(() =>
|
|
672
|
-
({ language: m }) =>
|
|
671
|
+
), W = r(() => b.value.length === 0 ? d.value : n.value.filter(
|
|
672
|
+
({ language: m }) => b.value.some(({ value: $ }) => $ === m)
|
|
673
673
|
).map(({ id: m, name: $, depth: q }) => ({
|
|
674
674
|
value: String(m),
|
|
675
675
|
label: ae($, q)
|
|
@@ -677,7 +677,7 @@ function Ya({
|
|
|
677
677
|
return {
|
|
678
678
|
categoryFilter: C,
|
|
679
679
|
categoryOptionList: W,
|
|
680
|
-
languageFilter:
|
|
680
|
+
languageFilter: b,
|
|
681
681
|
languageOptionList: s,
|
|
682
682
|
fromDateFilter: F,
|
|
683
683
|
toDateFilter: g,
|
|
@@ -706,11 +706,11 @@ const Qa = pe({
|
|
|
706
706
|
var P;
|
|
707
707
|
return ((P = d.value) == null ? void 0 : P.languages) ?? [];
|
|
708
708
|
}
|
|
709
|
-
), { data: s, loading:
|
|
709
|
+
), { data: s, loading: v } = Ie(), b = r(
|
|
710
710
|
() => o.value ? s.value.find(
|
|
711
711
|
({ id: P }) => String(P) === String(o.value)
|
|
712
712
|
) ?? null : null
|
|
713
|
-
), L = r(() =>
|
|
713
|
+
), L = r(() => b.value ? `${e("blog:postsByCategory")} "${b.value.name}"` : e("blog:posts")), F = r(
|
|
714
714
|
() => h.value.length > 1
|
|
715
715
|
), {
|
|
716
716
|
categoryFilter: I,
|
|
@@ -739,7 +739,7 @@ const Qa = pe({
|
|
|
739
739
|
pageNumber: k,
|
|
740
740
|
pageCount: _,
|
|
741
741
|
pageSize: K,
|
|
742
|
-
sort:
|
|
742
|
+
sort: be
|
|
743
743
|
} = Ze({
|
|
744
744
|
fetchEntityList: (P) => ta({
|
|
745
745
|
query: P.searchQuery,
|
|
@@ -754,7 +754,7 @@ const Qa = pe({
|
|
|
754
754
|
defaultSort: m[0].value
|
|
755
755
|
});
|
|
756
756
|
G(V, () => {
|
|
757
|
-
if (c.value ||
|
|
757
|
+
if (c.value || v.value)
|
|
758
758
|
return;
|
|
759
759
|
const P = {
|
|
760
760
|
...ua(a.query, ["query", "pageNumber", "sort"]),
|
|
@@ -767,12 +767,12 @@ const Qa = pe({
|
|
|
767
767
|
var P;
|
|
768
768
|
return Va(
|
|
769
769
|
j.value,
|
|
770
|
-
|
|
770
|
+
b.value,
|
|
771
771
|
((P = d.value) == null ? void 0 : P.languages) ?? []
|
|
772
772
|
);
|
|
773
773
|
}
|
|
774
774
|
), le = r(
|
|
775
|
-
() =>
|
|
775
|
+
() => v.value || q.value || c.value
|
|
776
776
|
), { isDeleting: ne, handleResourceDelete: se } = Re({
|
|
777
777
|
deleteResource: $a,
|
|
778
778
|
resourceName: "Post",
|
|
@@ -795,7 +795,7 @@ const Qa = pe({
|
|
|
795
795
|
formatDateTime: da,
|
|
796
796
|
columnDefs: z,
|
|
797
797
|
sortOptions: m,
|
|
798
|
-
sortValue:
|
|
798
|
+
sortValue: be,
|
|
799
799
|
rowData: fe,
|
|
800
800
|
handleResourceDelete: se,
|
|
801
801
|
isDeleting: ne,
|
|
@@ -827,14 +827,14 @@ const Qa = pe({
|
|
|
827
827
|
isBusy: H
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
}),
|
|
830
|
+
}), ve = (e, a) => {
|
|
831
831
|
const n = e.__vccOpts || e;
|
|
832
832
|
for (const [o, t] of a)
|
|
833
833
|
n[o] = t;
|
|
834
834
|
return n;
|
|
835
835
|
}, Ka = { class: "filters" }, ja = { class: "filters" }, Za = { class: "status" }, Ja = { key: 0 }, Xa = { key: 1 };
|
|
836
836
|
function _a(e, a, n, o, t, d) {
|
|
837
|
-
const c = y("FormFieldMultiSelect"), C = y("FormField"), s = y("AdvancedSearch"),
|
|
837
|
+
const c = y("FormFieldMultiSelect"), C = y("FormField"), s = y("AdvancedSearch"), v = y("EditIcon"), b = y("BaseButton"), L = y("ContentCopyIcon"), F = y("DeleteIcon"), I = y("DataTable"), g = y("Page");
|
|
838
838
|
return T(), M(g, {
|
|
839
839
|
title: e.pageTitle,
|
|
840
840
|
"header-buttons": [
|
|
@@ -870,7 +870,7 @@ function _a(e, a, n, o, t, d) {
|
|
|
870
870
|
Y("div", Ka, [
|
|
871
871
|
p(c, {
|
|
872
872
|
"selected-options": e.categoryFilter,
|
|
873
|
-
"onUpdate:
|
|
873
|
+
"onUpdate:selectedOptions": a[0] || (a[0] = (f) => e.categoryFilter = f),
|
|
874
874
|
options: e.categoryOptionList,
|
|
875
875
|
name: "categoryFilter",
|
|
876
876
|
searchable: !0,
|
|
@@ -880,7 +880,7 @@ function _a(e, a, n, o, t, d) {
|
|
|
880
880
|
e.isLangSpecific ? (T(), M(c, {
|
|
881
881
|
key: 0,
|
|
882
882
|
"selected-options": e.languageFilter,
|
|
883
|
-
"onUpdate:
|
|
883
|
+
"onUpdate:selectedOptions": a[1] || (a[1] = (f) => e.languageFilter = f),
|
|
884
884
|
options: e.languageOptionList,
|
|
885
885
|
name: "languageFilter",
|
|
886
886
|
searchable: !0,
|
|
@@ -889,7 +889,7 @@ function _a(e, a, n, o, t, d) {
|
|
|
889
889
|
}, null, 8, ["selected-options", "options", "label"])) : B("", !0),
|
|
890
890
|
p(c, {
|
|
891
891
|
"selected-options": e.statusFilter,
|
|
892
|
-
"onUpdate:
|
|
892
|
+
"onUpdate:selectedOptions": a[2] || (a[2] = (f) => e.statusFilter = f),
|
|
893
893
|
options: e.statusOptionList,
|
|
894
894
|
name: "statusFilter",
|
|
895
895
|
searchable: !0,
|
|
@@ -933,18 +933,18 @@ function _a(e, a, n, o, t, d) {
|
|
|
933
933
|
])
|
|
934
934
|
]),
|
|
935
935
|
"cell(actions)": A(({ row: f }) => [
|
|
936
|
-
p(
|
|
936
|
+
p(b, {
|
|
937
937
|
variant: "icon",
|
|
938
938
|
title: e.$i18n.t("blog:edit"),
|
|
939
939
|
disabled: e.isBusy(f.id),
|
|
940
940
|
href: e.getBlogPostFormUrl({ postId: f.id })
|
|
941
941
|
}, {
|
|
942
942
|
default: A(() => [
|
|
943
|
-
p(
|
|
943
|
+
p(v)
|
|
944
944
|
]),
|
|
945
|
-
_:
|
|
946
|
-
},
|
|
947
|
-
p(
|
|
945
|
+
_: 1
|
|
946
|
+
}, 8, ["title", "disabled", "href"]),
|
|
947
|
+
p(b, {
|
|
948
948
|
variant: "icon",
|
|
949
949
|
title: e.$i18n.t("blog:clone"),
|
|
950
950
|
disabled: e.isBusy(f.id),
|
|
@@ -953,9 +953,9 @@ function _a(e, a, n, o, t, d) {
|
|
|
953
953
|
default: A(() => [
|
|
954
954
|
p(L)
|
|
955
955
|
]),
|
|
956
|
-
_:
|
|
957
|
-
},
|
|
958
|
-
p(
|
|
956
|
+
_: 1
|
|
957
|
+
}, 8, ["title", "disabled", "onClick"]),
|
|
958
|
+
p(b, {
|
|
959
959
|
variant: "icon",
|
|
960
960
|
title: e.$i18n.t("blog:remove"),
|
|
961
961
|
disabled: e.isBusy(f.id),
|
|
@@ -964,8 +964,8 @@ function _a(e, a, n, o, t, d) {
|
|
|
964
964
|
default: A(() => [
|
|
965
965
|
p(F)
|
|
966
966
|
]),
|
|
967
|
-
_:
|
|
968
|
-
},
|
|
967
|
+
_: 1
|
|
968
|
+
}, 8, ["title", "disabled", "onClick"])
|
|
969
969
|
]),
|
|
970
970
|
_: 1
|
|
971
971
|
}, 8, ["column-defs", "row-data", "loading", "error-message", "search-query", "pagination", "sort", "onChange"])
|
|
@@ -973,7 +973,7 @@ function _a(e, a, n, o, t, d) {
|
|
|
973
973
|
_: 1
|
|
974
974
|
}, 8, ["title", "header-buttons"]);
|
|
975
975
|
}
|
|
976
|
-
const xa = /* @__PURE__ */
|
|
976
|
+
const xa = /* @__PURE__ */ ve(Qa, [["render", _a], ["__scopeId", "data-v-7b6e97da"]]), et = pe({
|
|
977
977
|
name: "BlogPostForm",
|
|
978
978
|
components: {
|
|
979
979
|
SeoFieldGroup: ea,
|
|
@@ -991,13 +991,13 @@ const xa = /* @__PURE__ */ be(Qa, [["render", _a], ["__scopeId", "data-v-7b6e97d
|
|
|
991
991
|
},
|
|
992
992
|
setup() {
|
|
993
993
|
var se;
|
|
994
|
-
const e = ge(), a = de(), n = we(), { t: o } = ue(), t = r(() => e.params.postId), d = r(() => t.value === "create"), c = E(!1), C = r(() => la(o)), { data: s, loading:
|
|
994
|
+
const e = ge(), a = de(), n = we(), { t: o } = ue(), t = r(() => e.params.postId), d = r(() => t.value === "create"), c = E(!1), C = r(() => la(o)), { data: s, loading: v } = ce(), b = r(
|
|
995
995
|
() => {
|
|
996
996
|
var i;
|
|
997
997
|
return ((i = s.value) == null ? void 0 : i.languages) ?? [];
|
|
998
998
|
}
|
|
999
999
|
), L = r(
|
|
1000
|
-
() =>
|
|
1000
|
+
() => b.value.map(({ id: i, name: O }) => ({
|
|
1001
1001
|
value: i,
|
|
1002
1002
|
label: O
|
|
1003
1003
|
}))
|
|
@@ -1017,7 +1017,7 @@ const xa = /* @__PURE__ */ be(Qa, [["render", _a], ["__scopeId", "data-v-7b6e97d
|
|
|
1017
1017
|
return i.id !== ((O = h.value) == null ? void 0 : O.id);
|
|
1018
1018
|
}).map((i) => ({
|
|
1019
1019
|
value: i.id,
|
|
1020
|
-
label: (i.status === "ARCHIVED" ? `${o("blog:statusArchived")} - ` : i.status === "DRAFT" ? `${o("blog:statusDraft")} - ` : i.datetime ?
|
|
1020
|
+
label: (i.status === "ARCHIVED" ? `${o("blog:statusArchived")} - ` : i.status === "DRAFT" ? `${o("blog:statusDraft")} - ` : i.datetime ? va(new Date(i.datetime)) + " - " : "") + i.title
|
|
1021
1021
|
}))
|
|
1022
1022
|
), W = E(!1), l = E(
|
|
1023
1023
|
he(
|
|
@@ -1091,7 +1091,7 @@ const xa = /* @__PURE__ */ be(Qa, [["render", _a], ["__scopeId", "data-v-7b6e97d
|
|
|
1091
1091
|
l.value.categories = l.value.categories.filter(i);
|
|
1092
1092
|
});
|
|
1093
1093
|
const j = r(
|
|
1094
|
-
() => D.value || g.value || V.value ||
|
|
1094
|
+
() => D.value || g.value || V.value || v.value
|
|
1095
1095
|
);
|
|
1096
1096
|
function X() {
|
|
1097
1097
|
var i;
|
|
@@ -1101,7 +1101,7 @@ const xa = /* @__PURE__ */ be(Qa, [["render", _a], ["__scopeId", "data-v-7b6e97d
|
|
|
1101
1101
|
var O;
|
|
1102
1102
|
return (process.env.VUE_APP_WEBSITE_URL || window.location.origin) + (((O = h.value) == null ? void 0 : O.urlTemplate) ?? "");
|
|
1103
1103
|
}), S = r(() => {
|
|
1104
|
-
const i =
|
|
1104
|
+
const i = ba(m.value);
|
|
1105
1105
|
return [
|
|
1106
1106
|
{
|
|
1107
1107
|
id: "common",
|
|
@@ -1156,7 +1156,7 @@ const xa = /* @__PURE__ */ be(Qa, [["render", _a], ["__scopeId", "data-v-7b6e97d
|
|
|
1156
1156
|
}) {
|
|
1157
1157
|
l.value.pageTitle = i, l.value.pageDescription = O, l.value.openGraphImage = H;
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function be(i) {
|
|
1160
1160
|
d.value && c.value === !1 && (l.value.urlAlias = Me(i));
|
|
1161
1161
|
}
|
|
1162
1162
|
function fe() {
|
|
@@ -1207,7 +1207,7 @@ const xa = /* @__PURE__ */ be(Qa, [["render", _a], ["__scopeId", "data-v-7b6e97d
|
|
|
1207
1207
|
selectedTabId: k,
|
|
1208
1208
|
headerButtonList: _,
|
|
1209
1209
|
handleSeoFieldGroupChange: K,
|
|
1210
|
-
handleTitleChange:
|
|
1210
|
+
handleTitleChange: be,
|
|
1211
1211
|
handleAliasChange: fe,
|
|
1212
1212
|
urlAliasTemplate: le,
|
|
1213
1213
|
handleCategoriesChange: ne,
|
|
@@ -1222,10 +1222,10 @@ const xa = /* @__PURE__ */ be(Qa, [["render", _a], ["__scopeId", "data-v-7b6e97d
|
|
|
1222
1222
|
class: "status-date"
|
|
1223
1223
|
};
|
|
1224
1224
|
function nt(e, a, n, o, t, d) {
|
|
1225
|
-
const c = y("FormFieldSelect"), C = y("FormField"), s = y("FormFieldUrlAliasInput"),
|
|
1225
|
+
const c = y("FormFieldSelect"), C = y("FormField"), s = y("FormFieldUrlAliasInput"), v = y("FormFieldCheckbox"), b = y("FormFieldRichTextInput"), L = y("ShortCodeConstructor"), F = y("FormFieldFileInput"), I = y("FormFieldMultiSelect"), g = y("DynamicField"), f = y("SeoFieldGroup"), h = y("FormFooter"), D = y("Page");
|
|
1226
1226
|
return T(), M(D, {
|
|
1227
1227
|
"tab-id": e.selectedTabId,
|
|
1228
|
-
"onUpdate:
|
|
1228
|
+
"onUpdate:tabId": a[16] || (a[16] = (u) => e.selectedTabId = u),
|
|
1229
1229
|
title: e.isCreation ? e.$i18n.t("blog:createPost") : e.$i18n.t("blog:updatePost"),
|
|
1230
1230
|
"is-content-loading": e.isContentLoading,
|
|
1231
1231
|
"header-buttons": e.headerButtonList,
|
|
@@ -1283,7 +1283,7 @@ function nt(e, a, n, o, t, d) {
|
|
|
1283
1283
|
}, null, 8, ["value", "error", "label", "no-options-message", "options"])
|
|
1284
1284
|
]),
|
|
1285
1285
|
e.values.status.value === "PUBLISHED" || e.values.status.value === "DRAFT" ? (T(), Q("div", ot, [
|
|
1286
|
-
p(
|
|
1286
|
+
p(v, {
|
|
1287
1287
|
checked: e.values.statusDateEnabled,
|
|
1288
1288
|
"onUpdate:checked": a[4] || (a[4] = (u) => e.values.statusDateEnabled = u),
|
|
1289
1289
|
name: "statusDateEnabled",
|
|
@@ -1322,7 +1322,7 @@ function nt(e, a, n, o, t, d) {
|
|
|
1322
1322
|
type: "textarea",
|
|
1323
1323
|
error: e.errors.excerpt
|
|
1324
1324
|
}, null, 8, ["value", "label", "error"]),
|
|
1325
|
-
p(
|
|
1325
|
+
p(b, {
|
|
1326
1326
|
value: e.values.body,
|
|
1327
1327
|
"onUpdate:value": a[8] || (a[8] = (u) => e.values.body = u),
|
|
1328
1328
|
name: "body",
|
|
@@ -1370,7 +1370,7 @@ function nt(e, a, n, o, t, d) {
|
|
|
1370
1370
|
}, null, 8, ["value", "label", "error"]),
|
|
1371
1371
|
p(I, {
|
|
1372
1372
|
"selected-options": e.values.categories,
|
|
1373
|
-
"onUpdate:
|
|
1373
|
+
"onUpdate:selectedOptions": a[13] || (a[13] = (u) => e.values.categories = u),
|
|
1374
1374
|
name: "categories",
|
|
1375
1375
|
label: e.$i18n.t("blog:categories"),
|
|
1376
1376
|
options: e.categoryOptionList,
|
|
@@ -1379,7 +1379,7 @@ function nt(e, a, n, o, t, d) {
|
|
|
1379
1379
|
}, null, 8, ["selected-options", "label", "options", "error", "onChange"]),
|
|
1380
1380
|
p(I, {
|
|
1381
1381
|
"selected-options": e.values.relatedPosts,
|
|
1382
|
-
"onUpdate:
|
|
1382
|
+
"onUpdate:selectedOptions": a[14] || (a[14] = (u) => e.values.relatedPosts = u),
|
|
1383
1383
|
name: "relatedPosts",
|
|
1384
1384
|
label: e.$i18n.t("blog:relatedPosts"),
|
|
1385
1385
|
options: e.postOptionList,
|
|
@@ -1402,7 +1402,7 @@ function nt(e, a, n, o, t, d) {
|
|
|
1402
1402
|
image: e.values.openGraphImage,
|
|
1403
1403
|
"image-error-message": e.errors.openGraphImage,
|
|
1404
1404
|
"image-label": e.$i18n.t("blog:openGraphImage"),
|
|
1405
|
-
"image-scenario": e.moduleConfig ? e.moduleConfig.fileScenarios.openGraph :
|
|
1405
|
+
"image-scenario": e.moduleConfig ? e.moduleConfig.fileScenarios.openGraph ?? void 0 : void 0,
|
|
1406
1406
|
onChange: e.handleSeoFieldGroupChange
|
|
1407
1407
|
}, null, 8, ["title", "title-error-message", "title-label", "description", "description-error-message", "description-label", "image", "image-error-message", "image-label", "image-scenario", "onChange"])) : B("", !0)
|
|
1408
1408
|
], 32)
|
|
@@ -1419,7 +1419,7 @@ function nt(e, a, n, o, t, d) {
|
|
|
1419
1419
|
_: 1
|
|
1420
1420
|
}, 8, ["tab-id", "title", "is-content-loading", "header-buttons", "footer", "tabs"]);
|
|
1421
1421
|
}
|
|
1422
|
-
const st = /* @__PURE__ */
|
|
1422
|
+
const st = /* @__PURE__ */ ve(et, [["render", nt], ["__scopeId", "data-v-66887350"]]);
|
|
1423
1423
|
function rt(e, a) {
|
|
1424
1424
|
return e.map((n) => {
|
|
1425
1425
|
if (a.length > 0) {
|
|
@@ -1485,15 +1485,15 @@ function ut(e) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
function gt({ languageList: e, route: a, t: n }) {
|
|
1487
1487
|
const o = r(
|
|
1488
|
-
() => e.value.map(({ id:
|
|
1488
|
+
() => e.value.map(({ id: v, name: b }) => ({ value: v, label: b }))
|
|
1489
1489
|
), t = r(() => {
|
|
1490
|
-
const
|
|
1490
|
+
const v = ie(
|
|
1491
1491
|
a.query,
|
|
1492
1492
|
"language"
|
|
1493
1493
|
/* LANGUAGE */
|
|
1494
1494
|
);
|
|
1495
1495
|
return o.value.filter(
|
|
1496
|
-
({ value:
|
|
1496
|
+
({ value: b }) => v.some((L) => L === b)
|
|
1497
1497
|
);
|
|
1498
1498
|
}), d = E(t.value);
|
|
1499
1499
|
G(t, () => {
|
|
@@ -1501,18 +1501,18 @@ function gt({ languageList: e, route: a, t: n }) {
|
|
|
1501
1501
|
});
|
|
1502
1502
|
const c = r(
|
|
1503
1503
|
() => He({
|
|
1504
|
-
language: d.value.map(({ value:
|
|
1504
|
+
language: d.value.map(({ value: v }) => v)
|
|
1505
1505
|
})
|
|
1506
1506
|
);
|
|
1507
|
-
function C(
|
|
1508
|
-
|
|
1509
|
-
({ value:
|
|
1507
|
+
function C(v) {
|
|
1508
|
+
v.name === "language" && (d.value = d.value.filter(
|
|
1509
|
+
({ value: b }) => b !== v.value
|
|
1510
1510
|
));
|
|
1511
1511
|
}
|
|
1512
1512
|
const s = r(() => [
|
|
1513
|
-
...d.value.map(({ value:
|
|
1514
|
-
value:
|
|
1515
|
-
label:
|
|
1513
|
+
...d.value.map(({ value: v, label: b }) => ({
|
|
1514
|
+
value: v,
|
|
1515
|
+
label: b,
|
|
1516
1516
|
name: "language",
|
|
1517
1517
|
title: n("blog:language")
|
|
1518
1518
|
}))
|
|
@@ -1549,8 +1549,8 @@ const dt = pe({
|
|
|
1549
1549
|
languageFilter: c,
|
|
1550
1550
|
languageOptionList: C,
|
|
1551
1551
|
filterParams: s,
|
|
1552
|
-
tags:
|
|
1553
|
-
tagRemovalHandler:
|
|
1552
|
+
tags: v,
|
|
1553
|
+
tagRemovalHandler: b
|
|
1554
1554
|
} = gt({ languageList: d, route: a, t: e }), L = r(
|
|
1555
1555
|
() => C.value.length > 1
|
|
1556
1556
|
), {
|
|
@@ -1622,13 +1622,13 @@ const dt = pe({
|
|
|
1622
1622
|
pageSize: w,
|
|
1623
1623
|
languageFilter: c,
|
|
1624
1624
|
languageOptionList: C,
|
|
1625
|
-
tags:
|
|
1626
|
-
tagRemovalHandler:
|
|
1625
|
+
tags: v,
|
|
1626
|
+
tagRemovalHandler: b
|
|
1627
1627
|
};
|
|
1628
1628
|
}
|
|
1629
1629
|
}), pt = { class: "filters" };
|
|
1630
1630
|
function mt(e, a, n, o, t, d) {
|
|
1631
|
-
const c = y("FormFieldMultiSelect"), C = y("AdvancedSearch"), s = y("CountButton"),
|
|
1631
|
+
const c = y("FormFieldMultiSelect"), C = y("AdvancedSearch"), s = y("CountButton"), v = y("EditIcon"), b = y("BaseButton"), L = y("NorthIcon"), F = y("SouthIcon"), I = y("DeleteIcon"), g = y("DataTable"), f = y("Page");
|
|
1632
1632
|
return T(), M(f, {
|
|
1633
1633
|
title: e.$i18n.t("blog:blogCategories"),
|
|
1634
1634
|
"header-buttons": [
|
|
@@ -1663,22 +1663,22 @@ function mt(e, a, n, o, t, d) {
|
|
|
1663
1663
|
default: A(() => [
|
|
1664
1664
|
Se(x(e.$i18n.t("blog:posts")), 1)
|
|
1665
1665
|
]),
|
|
1666
|
-
_:
|
|
1667
|
-
},
|
|
1666
|
+
_: 1
|
|
1667
|
+
}, 8, ["href", "count"])
|
|
1668
1668
|
]),
|
|
1669
1669
|
"cell(actions)": A(({ row: h, rowIndex: D }) => [
|
|
1670
|
-
p(
|
|
1670
|
+
p(b, {
|
|
1671
1671
|
variant: "icon",
|
|
1672
1672
|
title: e.$i18n.t("blog:edit"),
|
|
1673
1673
|
disabled: e.isDeleting(h.id),
|
|
1674
1674
|
href: e.getBlogCategoryFormUrl({ categoryId: h.id })
|
|
1675
1675
|
}, {
|
|
1676
1676
|
default: A(() => [
|
|
1677
|
-
p(
|
|
1677
|
+
p(v)
|
|
1678
1678
|
]),
|
|
1679
|
-
_:
|
|
1680
|
-
},
|
|
1681
|
-
p(
|
|
1679
|
+
_: 1
|
|
1680
|
+
}, 8, ["title", "disabled", "href"]),
|
|
1681
|
+
p(b, {
|
|
1682
1682
|
variant: "icon",
|
|
1683
1683
|
title: e.$i18n.t("blog:moveUp"),
|
|
1684
1684
|
disabled: D === 0 || e.isCategoryMoving,
|
|
@@ -1687,9 +1687,9 @@ function mt(e, a, n, o, t, d) {
|
|
|
1687
1687
|
default: A(() => [
|
|
1688
1688
|
p(L)
|
|
1689
1689
|
]),
|
|
1690
|
-
_:
|
|
1691
|
-
},
|
|
1692
|
-
p(
|
|
1690
|
+
_: 1
|
|
1691
|
+
}, 8, ["title", "disabled", "onClick"]),
|
|
1692
|
+
p(b, {
|
|
1693
1693
|
variant: "icon",
|
|
1694
1694
|
title: e.$i18n.t("blog:moveDown"),
|
|
1695
1695
|
disabled: D === e.rowData.length - 1 || e.isCategoryMoving,
|
|
@@ -1698,9 +1698,9 @@ function mt(e, a, n, o, t, d) {
|
|
|
1698
1698
|
default: A(() => [
|
|
1699
1699
|
p(F)
|
|
1700
1700
|
]),
|
|
1701
|
-
_:
|
|
1702
|
-
},
|
|
1703
|
-
p(
|
|
1701
|
+
_: 1
|
|
1702
|
+
}, 8, ["title", "disabled", "onClick"]),
|
|
1703
|
+
p(b, {
|
|
1704
1704
|
variant: "icon",
|
|
1705
1705
|
title: e.$i18n.t("blog:remove"),
|
|
1706
1706
|
disabled: e.isDeleting(h.id) || h.postsCount > 0,
|
|
@@ -1709,8 +1709,8 @@ function mt(e, a, n, o, t, d) {
|
|
|
1709
1709
|
default: A(() => [
|
|
1710
1710
|
p(I)
|
|
1711
1711
|
]),
|
|
1712
|
-
_:
|
|
1713
|
-
},
|
|
1712
|
+
_: 1
|
|
1713
|
+
}, 8, ["title", "disabled", "onClick"])
|
|
1714
1714
|
]),
|
|
1715
1715
|
_: 2
|
|
1716
1716
|
}, [
|
|
@@ -1744,7 +1744,7 @@ function mt(e, a, n, o, t, d) {
|
|
|
1744
1744
|
_: 1
|
|
1745
1745
|
}, 8, ["title", "header-buttons"]);
|
|
1746
1746
|
}
|
|
1747
|
-
const ct = /* @__PURE__ */
|
|
1747
|
+
const ct = /* @__PURE__ */ ve(dt, [["render", mt]]);
|
|
1748
1748
|
function Ce(e, a, n) {
|
|
1749
1749
|
const o = a.find(
|
|
1750
1750
|
({ value: t }) => t === (e == null ? void 0 : e.language)
|
|
@@ -1775,7 +1775,7 @@ function Ce(e, a, n) {
|
|
|
1775
1775
|
openGraphImage: null
|
|
1776
1776
|
};
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function vt(e) {
|
|
1779
1779
|
var a, n;
|
|
1780
1780
|
return {
|
|
1781
1781
|
language: ((a = e.language) == null ? void 0 : a.value) ?? null,
|
|
@@ -1788,7 +1788,7 @@ function bt(e) {
|
|
|
1788
1788
|
openGraphImage: ((n = e.openGraphImage) == null ? void 0 : n.file.id) ?? null
|
|
1789
1789
|
};
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function bt(e, a, n) {
|
|
1792
1792
|
return [
|
|
1793
1793
|
{ value: null, label: n("blog:noParent") },
|
|
1794
1794
|
...e.filter(({ language: o }) => a ? o === a : !0).map(({ id: o, name: t, depth: d }) => ({
|
|
@@ -1817,10 +1817,10 @@ const ft = pe({
|
|
|
1817
1817
|
var S;
|
|
1818
1818
|
return ((S = c.value) == null ? void 0 : S.languages) ?? [];
|
|
1819
1819
|
}
|
|
1820
|
-
), b = r(
|
|
1821
|
-
() => s.value.map(({ id: S, name: k }) => ({ value: S, label: k }))
|
|
1822
1820
|
), v = r(
|
|
1823
|
-
() =>
|
|
1821
|
+
() => s.value.map(({ id: S, name: k }) => ({ value: S, label: k }))
|
|
1822
|
+
), b = r(
|
|
1823
|
+
() => v.value.length > 0
|
|
1824
1824
|
), L = r(
|
|
1825
1825
|
() => {
|
|
1826
1826
|
var S, k;
|
|
@@ -1830,24 +1830,24 @@ const ft = pe({
|
|
|
1830
1830
|
categoryId: t,
|
|
1831
1831
|
isCreation: d
|
|
1832
1832
|
}), h = E(!1), D = E(
|
|
1833
|
-
Ce(g.value,
|
|
1833
|
+
Ce(g.value, v.value, e)
|
|
1834
1834
|
), u = E({});
|
|
1835
|
-
G([g,
|
|
1835
|
+
G([g, v], () => {
|
|
1836
1836
|
D.value = Ce(
|
|
1837
1837
|
g.value,
|
|
1838
|
-
|
|
1838
|
+
v.value,
|
|
1839
1839
|
e
|
|
1840
1840
|
);
|
|
1841
1841
|
});
|
|
1842
1842
|
function V(S) {
|
|
1843
1843
|
h.value = !0;
|
|
1844
|
-
const k =
|
|
1844
|
+
const k = vt(D.value);
|
|
1845
1845
|
(d.value ? Ua(k) : Ba(t.value, k)).then(({ data: K }) => {
|
|
1846
1846
|
u.value = {}, S.type === "create" && a.push(
|
|
1847
1847
|
$e({ categoryId: String(K.id) })
|
|
1848
1848
|
), (S.type === "create_exit" || S.type === "save_exit") && Ge(a, Ee()), S.type === "create_create-another" && (D.value = Ce(
|
|
1849
1849
|
null,
|
|
1850
|
-
|
|
1850
|
+
v.value,
|
|
1851
1851
|
e
|
|
1852
1852
|
)), o.show({
|
|
1853
1853
|
variant: "success",
|
|
@@ -1867,7 +1867,7 @@ const ft = pe({
|
|
|
1867
1867
|
const w = r(
|
|
1868
1868
|
() => {
|
|
1869
1869
|
var S;
|
|
1870
|
-
return
|
|
1870
|
+
return bt(
|
|
1871
1871
|
F.value,
|
|
1872
1872
|
((S = D.value.language) == null ? void 0 : S.value) ?? null,
|
|
1873
1873
|
e
|
|
@@ -1900,8 +1900,8 @@ const ft = pe({
|
|
|
1900
1900
|
isContentLoading: W,
|
|
1901
1901
|
values: D,
|
|
1902
1902
|
errors: u,
|
|
1903
|
-
isLangSpecific:
|
|
1904
|
-
languageOptionList:
|
|
1903
|
+
isLangSpecific: b,
|
|
1904
|
+
languageOptionList: v,
|
|
1905
1905
|
pagePath: l,
|
|
1906
1906
|
categoryListUrl: Ee(),
|
|
1907
1907
|
submitForm: V,
|
|
@@ -1920,7 +1920,7 @@ const ft = pe({
|
|
|
1920
1920
|
}
|
|
1921
1921
|
});
|
|
1922
1922
|
function yt(e, a, n, o, t, d) {
|
|
1923
|
-
const c = y("FormFieldSelect"), C = y("FormField"), s = y("FormFieldUrlAliasInput"),
|
|
1923
|
+
const c = y("FormFieldSelect"), C = y("FormField"), s = y("FormFieldUrlAliasInput"), v = y("TabList"), b = y("FormFieldCheckbox"), L = y("SeoFieldGroup"), F = y("FormFooter"), I = y("Page");
|
|
1924
1924
|
return T(), M(I, {
|
|
1925
1925
|
title: e.isCreation ? e.$i18n.t("blog:createBlogCategory") : e.$i18n.t("blog:updateBlogCategory"),
|
|
1926
1926
|
"is-content-loading": e.isContentLoading
|
|
@@ -1969,9 +1969,9 @@ function yt(e, a, n, o, t, d) {
|
|
|
1969
1969
|
onChange: e.handleAliasChange
|
|
1970
1970
|
}, null, 8, ["value", "label", "url-template", "error", "onChange"])
|
|
1971
1971
|
], 64)) : (T(), Q(J, { key: 1 }, [
|
|
1972
|
-
p(
|
|
1972
|
+
p(v, {
|
|
1973
1973
|
"tab-id": e.selectedTabId,
|
|
1974
|
-
"onUpdate:
|
|
1974
|
+
"onUpdate:tabId": a[4] || (a[4] = (g) => e.selectedTabId = g),
|
|
1975
1975
|
"tab-list": e.tabList
|
|
1976
1976
|
}, null, 8, ["tab-id", "tab-list"]),
|
|
1977
1977
|
e.selectedTabId === "common" ? (T(), Q(J, { key: 0 }, [
|
|
@@ -1984,7 +1984,7 @@ function yt(e, a, n, o, t, d) {
|
|
|
1984
1984
|
options: e.languageOptionList,
|
|
1985
1985
|
error: e.errors.language
|
|
1986
1986
|
}, null, 8, ["value", "label", "options", "error"])) : B("", !0),
|
|
1987
|
-
p(
|
|
1987
|
+
p(b, {
|
|
1988
1988
|
checked: e.values.isDefault,
|
|
1989
1989
|
"onUpdate:checked": a[6] || (a[6] = (g) => e.values.isDefault = g),
|
|
1990
1990
|
name: "isDefault",
|
|
@@ -2019,15 +2019,15 @@ function yt(e, a, n, o, t, d) {
|
|
|
2019
2019
|
], 64)) : B("", !0),
|
|
2020
2020
|
e.selectedTabId === "seo" ? (T(), M(L, {
|
|
2021
2021
|
key: 1,
|
|
2022
|
-
title: e.values.pageTitle,
|
|
2022
|
+
title: e.values.pageTitle ?? "",
|
|
2023
2023
|
"title-error-message": e.errors.pageTitle,
|
|
2024
|
-
description: e.values.pageDescription,
|
|
2024
|
+
description: e.values.pageDescription ?? "",
|
|
2025
2025
|
"description-error-message": e.errors.pageDescription,
|
|
2026
2026
|
"should-display-keywords": !1,
|
|
2027
|
-
keywords: e.values.pageKeywords,
|
|
2027
|
+
keywords: e.values.pageKeywords ?? "",
|
|
2028
2028
|
"keywords-error-message": e.errors.pageKeywords,
|
|
2029
2029
|
image: e.values.openGraphImage,
|
|
2030
|
-
"image-scenario": e.imageScenario,
|
|
2030
|
+
"image-scenario": e.imageScenario ?? void 0,
|
|
2031
2031
|
"image-error-message": e.errors.openGraphImage,
|
|
2032
2032
|
onChange: e.handleSeoFieldGroupChange
|
|
2033
2033
|
}, null, 8, ["title", "title-error-message", "description", "description-error-message", "keywords", "keywords-error-message", "image", "image-scenario", "image-error-message", "onChange"])) : B("", !0)
|
|
@@ -2046,7 +2046,7 @@ function yt(e, a, n, o, t, d) {
|
|
|
2046
2046
|
_: 1
|
|
2047
2047
|
}, 8, ["title", "is-content-loading"]);
|
|
2048
2048
|
}
|
|
2049
|
-
const ht = /* @__PURE__ */
|
|
2049
|
+
const ht = /* @__PURE__ */ ve(ft, [["render", yt]]), Ut = {
|
|
2050
2050
|
path: N.POST_LIST,
|
|
2051
2051
|
component: xa,
|
|
2052
2052
|
name: "All posts",
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filters[data-v-7b6e97da]{margin-bottom:1rem;width:100%;display:grid;gap:1rem;grid-template-columns:1fr 1fr}.filters[data-v-7b6e97da]:not(:first-child){margin-top:1rem}.status span[data-v-7b6e97da]{display:block}.status span[data-v-7b6e97da]:nth-child(2){display:block;margin-top:5px;font-size:.8rem}.status span:nth-child(2) i[data-v-7b6e97da]{display:block}.status[data-v-
|
|
1
|
+
.filters[data-v-7b6e97da]{margin-bottom:1rem;width:100%;display:grid;gap:1rem;grid-template-columns:1fr 1fr}.filters[data-v-7b6e97da]:not(:first-child){margin-top:1rem}.status span[data-v-7b6e97da]{display:block}.status span[data-v-7b6e97da]:nth-child(2){display:block;margin-top:5px;font-size:.8rem}.status span:nth-child(2) i[data-v-7b6e97da]{display:block}.status[data-v-66887350]{display:flex;align-items:flex-end}.status-value[data-v-66887350]{flex-basis:50%}.status-checkbox[data-v-66887350]{margin-left:20px;padding-bottom:8px}.status-date[data-v-66887350]{margin-left:20px;flex:1 1 1px}
|