@geckou/ui-vue 0.5.0 → 0.7.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/README.md +76 -2
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components/ArticleList/Card/Artistic.vue.js +9 -0
- package/dist/components/ArticleList/Card/Artistic.vue2.js +105 -0
- package/dist/components/ArticleList/Card/Artistic.vue3.js +27 -0
- package/dist/components/ArticleList/Card/Entertainment.vue.js +9 -0
- package/dist/components/ArticleList/Card/Entertainment.vue2.js +120 -0
- package/dist/components/ArticleList/Card/Entertainment.vue3.js +31 -0
- package/dist/components/ArticleList/Card/Gallery.vue.js +9 -0
- package/dist/components/ArticleList/Card/Gallery.vue2.js +103 -0
- package/dist/components/ArticleList/Card/Gallery.vue3.js +23 -0
- package/dist/components/ArticleList/Card/Grid.vue.js +9 -0
- package/dist/components/ArticleList/Card/Grid.vue2.js +114 -0
- package/dist/components/ArticleList/Card/Grid.vue3.js +25 -0
- package/dist/components/ArticleList/Card/News.vue.js +9 -0
- package/dist/components/ArticleList/Card/News.vue2.js +95 -0
- package/dist/components/ArticleList/Card/News.vue3.js +19 -0
- package/dist/components/ArticleList/Card/Rounded.vue.js +9 -0
- package/dist/components/ArticleList/Card/Rounded.vue2.js +96 -0
- package/dist/components/ArticleList/Card/Rounded.vue3.js +15 -0
- package/dist/components/ArticleList/Card/Row.vue.js +9 -0
- package/dist/components/ArticleList/Card/Row.vue2.js +97 -0
- package/dist/components/ArticleList/Card/Row.vue3.js +17 -0
- package/dist/components/ArticleList/Card/Simple.vue.js +9 -0
- package/dist/components/ArticleList/Card/Simple.vue2.js +98 -0
- package/dist/components/ArticleList/Card/Simple.vue3.js +23 -0
- package/dist/components/ArticleList/Card/Standard.vue.js +9 -0
- package/dist/components/ArticleList/Card/Standard.vue2.js +93 -0
- package/dist/components/ArticleList/Card/Standard.vue3.js +21 -0
- package/dist/components/ArticleList/Card/Tile.vue.js +9 -0
- package/dist/components/ArticleList/Card/Tile.vue2.js +96 -0
- package/dist/components/ArticleList/Card/Tile.vue3.js +23 -0
- package/dist/components/ArticleList/GenericArticleList.vue.js +9 -0
- package/dist/components/ArticleList/GenericArticleList.vue2.js +72 -0
- package/dist/components/ArticleList/GenericArticleList.vue3.js +11 -0
- package/dist/components/ArticleList/List/Artistic.vue.js +22 -0
- package/dist/components/ArticleList/List/Artistic.vue2.js +4 -0
- package/dist/components/ArticleList/List/Entertainment.vue.js +22 -0
- package/dist/components/ArticleList/List/Entertainment.vue2.js +4 -0
- package/dist/components/ArticleList/List/Gallery.vue.js +22 -0
- package/dist/components/ArticleList/List/Gallery.vue2.js +4 -0
- package/dist/components/ArticleList/List/Grid.vue.js +9 -0
- package/dist/components/ArticleList/List/Grid.vue2.js +120 -0
- package/dist/components/ArticleList/List/Grid.vue3.js +9 -0
- package/dist/components/ArticleList/List/News.vue.js +22 -0
- package/dist/components/ArticleList/List/News.vue2.js +4 -0
- package/dist/components/ArticleList/List/Rounded.vue.js +22 -0
- package/dist/components/ArticleList/List/Rounded.vue2.js +4 -0
- package/dist/components/ArticleList/List/Row.vue.js +22 -0
- package/dist/components/ArticleList/List/Row.vue2.js +4 -0
- package/dist/components/ArticleList/List/Simple.vue.js +22 -0
- package/dist/components/ArticleList/List/Simple.vue2.js +4 -0
- package/dist/components/ArticleList/List/Standard.vue.js +22 -0
- package/dist/components/ArticleList/List/Standard.vue2.js +4 -0
- package/dist/components/ArticleList/List/Tile.vue.js +22 -0
- package/dist/components/ArticleList/List/Tile.vue2.js +4 -0
- package/dist/components/ArticleList/Parts/AuthorInfo.vue.js +9 -0
- package/dist/components/ArticleList/Parts/AuthorInfo.vue2.js +64 -0
- package/dist/components/ArticleList/Parts/AuthorInfo.vue3.js +11 -0
- package/dist/components/ArticleList/Parts/CardContainer.vue.js +9 -0
- package/dist/components/ArticleList/Parts/CardContainer.vue2.js +18 -0
- package/dist/components/ArticleList/Parts/CardContainer.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/CardHeading.vue.d.ts +6 -1
- package/dist/components/ArticleList/Parts/CardHeading.vue.js +9 -0
- package/dist/components/ArticleList/Parts/CardHeading.vue2.js +25 -0
- package/dist/components/ArticleList/Parts/CardHeading.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/CategoryList.vue.js +38 -0
- package/dist/components/ArticleList/Parts/CategoryList.vue2.js +4 -0
- package/dist/components/ArticleList/Parts/ExcerptText.vue.js +9 -0
- package/dist/components/ArticleList/Parts/ExcerptText.vue2.js +24 -0
- package/dist/components/ArticleList/Parts/ExcerptText.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/MetadataList.vue.js +9 -0
- package/dist/components/ArticleList/Parts/MetadataList.vue2.js +62 -0
- package/dist/components/ArticleList/Parts/MetadataList.vue3.js +17 -0
- package/dist/components/ArticleList/Parts/NoImage.vue.js +9 -0
- package/dist/components/ArticleList/Parts/NoImage.vue2.js +16 -0
- package/dist/components/ArticleList/Parts/NoImage.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/PostedDate.vue.js +9 -0
- package/dist/components/ArticleList/Parts/PostedDate.vue2.js +28 -0
- package/dist/components/ArticleList/Parts/PostedDate.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/TagList.vue.js +32 -0
- package/dist/components/ArticleList/Parts/TagList.vue2.js +4 -0
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue.js +9 -0
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue2.js +50 -0
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue3.js +7 -0
- package/dist/components/BasicButton.vue.js +9 -0
- package/dist/components/BasicButton.vue2.js +71 -0
- package/dist/components/BasicButton.vue3.js +11 -0
- package/dist/components/CheckBox.vue.d.ts +10 -2
- package/dist/components/CheckBox.vue.js +9 -0
- package/dist/components/CheckBox.vue2.js +78 -0
- package/dist/components/CheckBox.vue3.js +11 -0
- package/dist/components/CheckBoxes.vue.js +9 -0
- package/dist/components/CheckBoxes.vue2.js +104 -0
- package/dist/components/CheckBoxes.vue3.js +7 -0
- package/dist/components/CheckButton.vue.js +9 -0
- package/dist/components/CheckButton.vue2.js +54 -0
- package/dist/components/CheckButton.vue3.js +11 -0
- package/dist/components/DatePicker.vue.d.ts +9 -0
- package/dist/components/DatePicker.vue.js +9 -0
- package/dist/components/DatePicker.vue2.js +157 -0
- package/dist/components/DatePicker.vue3.js +17 -0
- package/dist/components/DateRangePicker.vue.js +9 -0
- package/dist/components/DateRangePicker.vue2.js +74 -0
- package/dist/components/DateRangePicker.vue3.js +9 -0
- package/dist/components/DateSelector.vue.d.ts +14 -0
- package/dist/components/DateSelector.vue.js +9 -0
- package/dist/components/DateSelector.vue2.js +194 -0
- package/dist/components/DateSelector.vue3.js +15 -0
- package/dist/components/DropdownUi.vue.d.ts +1 -0
- package/dist/components/DropdownUi.vue.js +9 -0
- package/dist/components/DropdownUi.vue2.js +65 -0
- package/dist/components/DropdownUi.vue3.js +15 -0
- package/dist/components/ErrorMessage.vue.js +9 -0
- package/dist/components/ErrorMessage.vue2.js +30 -0
- package/dist/components/ErrorMessage.vue3.js +7 -0
- package/dist/components/Icon/CalendarIcon.vue.js +15 -0
- package/dist/components/Icon/CheckIcon.vue.js +15 -0
- package/dist/components/Icon/CloseIcon.vue.js +15 -0
- package/dist/components/Icon/Folder.vue.js +15 -0
- package/dist/components/Icon/Image.vue.js +21 -0
- package/dist/components/Icon/KeyboardArrowDownIcon.vue.js +15 -0
- package/dist/components/Icon/Tag.vue.js +15 -0
- package/dist/components/InputBox.vue.js +9 -0
- package/dist/components/InputBox.vue2.js +62 -0
- package/dist/components/InputBox.vue3.js +7 -0
- package/dist/components/InputGroup.vue.js +17 -0
- package/dist/components/InputGroup.vue2.js +7 -0
- package/dist/components/LabeledCheckbox.vue.js +9 -0
- package/dist/components/LabeledCheckbox.vue2.js +60 -0
- package/dist/components/LabeledCheckbox.vue3.js +9 -0
- package/dist/components/LabeledFieldset.vue.js +9 -0
- package/dist/components/LabeledFieldset.vue2.js +29 -0
- package/dist/components/LabeledFieldset.vue3.js +11 -0
- package/dist/components/LoadingSpinner.vue.js +15 -0
- package/dist/components/ModalBox.vue.d.ts +22 -16
- package/dist/components/ModalBox.vue.js +9 -0
- package/dist/components/ModalBox.vue2.js +91 -0
- package/dist/components/ModalBox.vue3.js +23 -0
- package/dist/components/PopupBox.vue.js +9 -0
- package/dist/components/PopupBox.vue2.js +35 -0
- package/dist/components/PopupBox.vue3.js +15 -0
- package/dist/components/RadioButtons.vue.js +9 -0
- package/dist/components/RadioButtons.vue2.js +75 -0
- package/dist/components/RadioButtons.vue3.js +11 -0
- package/dist/components/SelectBox.vue.js +9 -0
- package/dist/components/SelectBox.vue2.js +109 -0
- package/dist/components/SelectBox.vue3.js +9 -0
- package/dist/components/SlideDownUi.vue.js +9 -0
- package/dist/components/SlideDownUi.vue2.js +66 -0
- package/dist/components/SlideDownUi.vue3.js +17 -0
- package/dist/components/TabUI.vue.d.ts +0 -18
- package/dist/components/TabUI.vue.js +9 -0
- package/dist/components/TabUI.vue2.js +77 -0
- package/dist/components/TabUI.vue3.js +9 -0
- package/dist/components/TextArea.vue.js +9 -0
- package/dist/components/TextArea.vue2.js +82 -0
- package/dist/components/TextArea.vue3.js +7 -0
- package/dist/components/TextBox.vue.js +9 -0
- package/dist/components/TextBox.vue2.js +76 -0
- package/dist/components/TextBox.vue3.js +7 -0
- package/dist/components/TextButton.vue.js +9 -0
- package/dist/components/TextButton.vue2.js +24 -0
- package/dist/components/TextButton.vue3.js +7 -0
- package/dist/components/ToggleButton.vue.d.ts +13 -10
- package/dist/components/ToggleButton.vue.js +9 -0
- package/dist/components/ToggleButton.vue2.js +96 -0
- package/dist/components/ToggleButton.vue3.js +13 -0
- package/dist/const/list-theme.js +65 -0
- package/dist/index.js +112 -3513
- package/dist/scripts/form-validation-manager.js +38 -0
- package/dist/scripts/unique-id.d.ts +4 -0
- package/dist/scripts/unique-id.js +9 -0
- package/dist/scripts/use-click-outside.js +13 -0
- package/dist/scripts/utils.js +21 -0
- package/dist/style.css +1 -1
- package/package.json +8 -5
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent as d, openBlock as r, createBlock as l, normalizeClass as t, withCtx as g, createVNode as i, createCommentVNode as c, unref as o } from "vue";
|
|
2
|
+
import { returnAuthor as s } from "../../../scripts/utils.js";
|
|
3
|
+
import y from "../Parts/CardContainer.vue.js";
|
|
4
|
+
import u from "../Parts/ThumbnailImage.vue.js";
|
|
5
|
+
import f from "../Parts/AuthorInfo.vue.js";
|
|
6
|
+
import h from "../Parts/CardHeading.vue.js";
|
|
7
|
+
import k from "../Parts/CategoryList.vue.js";
|
|
8
|
+
import C from "../Parts/TagList.vue.js";
|
|
9
|
+
import $ from "../Parts/PostedDate.vue.js";
|
|
10
|
+
import b from "../Parts/ExcerptText.vue.js";
|
|
11
|
+
const N = /* @__PURE__ */ d({
|
|
12
|
+
__name: "Standard",
|
|
13
|
+
props: {
|
|
14
|
+
article: {},
|
|
15
|
+
path: {},
|
|
16
|
+
isPickUpItem: { type: Boolean },
|
|
17
|
+
postConfig: {},
|
|
18
|
+
categories: {}
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
return (a, I) => e.article ? (r(), l(y, {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: t([a.$style.container, { [a.$style.pickup]: e.isPickUpItem }]),
|
|
24
|
+
path: e.path
|
|
25
|
+
}, {
|
|
26
|
+
default: g(() => {
|
|
27
|
+
var n, m;
|
|
28
|
+
return [
|
|
29
|
+
i(u, {
|
|
30
|
+
article: e.article,
|
|
31
|
+
aspectRatio: {
|
|
32
|
+
desktop: e.isPickUpItem ? "2.85/1" : "4/3",
|
|
33
|
+
tablet: e.isPickUpItem ? "2.85/1" : "4/3",
|
|
34
|
+
mobile: "4/3"
|
|
35
|
+
},
|
|
36
|
+
class: t(a.$style.thumbnail),
|
|
37
|
+
style: { "grid-area": "thumbnail" }
|
|
38
|
+
}, null, 8, ["article", "aspectRatio", "class"]),
|
|
39
|
+
i(h, {
|
|
40
|
+
heading: e.article.title.rendered,
|
|
41
|
+
class: t(a.$style.heading),
|
|
42
|
+
style: { "grid-area": "heading" }
|
|
43
|
+
}, null, 8, ["heading", "class"]),
|
|
44
|
+
e.postConfig.tag ? (r(), l(C, {
|
|
45
|
+
key: 0,
|
|
46
|
+
article: e.article,
|
|
47
|
+
label: {
|
|
48
|
+
color: "var(--gray)",
|
|
49
|
+
fontSize: "smaller"
|
|
50
|
+
},
|
|
51
|
+
class: t(a.$style.tag),
|
|
52
|
+
style: { "grid-area": "tag" }
|
|
53
|
+
}, null, 8, ["article", "class"])) : c("", !0),
|
|
54
|
+
i(b, {
|
|
55
|
+
excerpt: e.article.excerpt.rendered,
|
|
56
|
+
class: t(a.$style.excerpt),
|
|
57
|
+
style: { "grid-area": "excerpt" }
|
|
58
|
+
}, null, 8, ["excerpt", "class"]),
|
|
59
|
+
i($, {
|
|
60
|
+
date: e.article.date,
|
|
61
|
+
class: t(a.$style.date),
|
|
62
|
+
formatString: "yy.M.d",
|
|
63
|
+
color: "var(--gray)",
|
|
64
|
+
style: { "grid-area": "date" }
|
|
65
|
+
}, null, 8, ["date", "class"]),
|
|
66
|
+
e.postConfig.author && o(s)(e.article) ? (r(), l(f, {
|
|
67
|
+
key: 1,
|
|
68
|
+
avatarUrls: (n = o(s)(e.article)) == null ? void 0 : n.avatar_urls,
|
|
69
|
+
name: (m = o(s)(e.article)) == null ? void 0 : m.name,
|
|
70
|
+
class: t(a.$style.author),
|
|
71
|
+
style: { "grid-area": "author" }
|
|
72
|
+
}, null, 8, ["avatarUrls", "name", "class"])) : c("", !0),
|
|
73
|
+
e.postConfig.category && e.article.categories ? (r(), l(k, {
|
|
74
|
+
key: 2,
|
|
75
|
+
categoryIds: e.article.categories,
|
|
76
|
+
categoryData: e.categories,
|
|
77
|
+
label: {
|
|
78
|
+
backgroundColor: "var(--main-color)",
|
|
79
|
+
color: "var(--white)",
|
|
80
|
+
fontSize: "small"
|
|
81
|
+
},
|
|
82
|
+
class: t(a.$style.category),
|
|
83
|
+
style: { "grid-area": "category" }
|
|
84
|
+
}, null, 8, ["categoryIds", "categoryData", "class"])) : c("", !0)
|
|
85
|
+
];
|
|
86
|
+
}),
|
|
87
|
+
_: 1
|
|
88
|
+
}, 8, ["class", "path"])) : c("", !0);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
export {
|
|
92
|
+
N as default
|
|
93
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const t = "_container_1g9t2_1", _ = "_thumbnail_1g9t2_6", c = "_pickup_1g9t2_10", e = "_category_1g9t2_15", n = "_date_1g9t2_19", a = "_author_1g9t2_20", o = "_heading_1g9t2_41", g = "_excerpt_1g9t2_62", r = {
|
|
2
|
+
container: t,
|
|
3
|
+
thumbnail: _,
|
|
4
|
+
pickup: c,
|
|
5
|
+
category: e,
|
|
6
|
+
date: n,
|
|
7
|
+
author: a,
|
|
8
|
+
heading: o,
|
|
9
|
+
excerpt: g
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as author,
|
|
13
|
+
e as category,
|
|
14
|
+
t as container,
|
|
15
|
+
n as date,
|
|
16
|
+
r as default,
|
|
17
|
+
g as excerpt,
|
|
18
|
+
o as heading,
|
|
19
|
+
c as pickup,
|
|
20
|
+
_ as thumbnail
|
|
21
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as r, createBlock as l, normalizeClass as t, withCtx as d, createVNode as i, createCommentVNode as o, unref as s } from "vue";
|
|
2
|
+
import { returnAuthor as n } from "../../../scripts/utils.js";
|
|
3
|
+
import g from "../Parts/CardContainer.vue.js";
|
|
4
|
+
import y from "../Parts/ThumbnailImage.vue.js";
|
|
5
|
+
import u from "../Parts/AuthorInfo.vue.js";
|
|
6
|
+
import f from "../Parts/CardHeading.vue.js";
|
|
7
|
+
import h from "../Parts/CategoryList.vue.js";
|
|
8
|
+
import k from "../Parts/TagList.vue.js";
|
|
9
|
+
import C from "../Parts/PostedDate.vue.js";
|
|
10
|
+
import $ from "../Parts/ExcerptText.vue.js";
|
|
11
|
+
const x = /* @__PURE__ */ m({
|
|
12
|
+
__name: "Tile",
|
|
13
|
+
props: {
|
|
14
|
+
article: {},
|
|
15
|
+
path: {},
|
|
16
|
+
isPickUpItem: { type: Boolean },
|
|
17
|
+
postConfig: {},
|
|
18
|
+
categories: {}
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
return (a, b) => e.article ? (r(), l(g, {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: t([a.$style.container, { [a.$style.pickup]: e.isPickUpItem }]),
|
|
24
|
+
path: e.path
|
|
25
|
+
}, {
|
|
26
|
+
default: d(() => {
|
|
27
|
+
var c;
|
|
28
|
+
return [
|
|
29
|
+
i(y, {
|
|
30
|
+
article: e.article,
|
|
31
|
+
aspectRatio: {
|
|
32
|
+
desktop: e.isPickUpItem ? "21/9" : "4/3",
|
|
33
|
+
tablet: "4/3",
|
|
34
|
+
mobile: "4/3"
|
|
35
|
+
},
|
|
36
|
+
class: t(a.$style.thumbnail),
|
|
37
|
+
style: { "grid-area": "thumbnail" }
|
|
38
|
+
}, null, 8, ["article", "aspectRatio", "class"]),
|
|
39
|
+
i(C, {
|
|
40
|
+
date: e.article.date,
|
|
41
|
+
formatString: "yy.M.d",
|
|
42
|
+
class: t(a.$style.date),
|
|
43
|
+
style: { "grid-area": "date" }
|
|
44
|
+
}, null, 8, ["date", "class"]),
|
|
45
|
+
e.postConfig.category && e.article.categories ? (r(), l(h, {
|
|
46
|
+
key: 0,
|
|
47
|
+
categoryIds: e.article.categories,
|
|
48
|
+
categoryData: e.categories,
|
|
49
|
+
label: {
|
|
50
|
+
color: "var(--main-color)",
|
|
51
|
+
fontSize: "small"
|
|
52
|
+
},
|
|
53
|
+
class: t(a.$style.category),
|
|
54
|
+
style: { "grid-area": "category" }
|
|
55
|
+
}, null, 8, ["categoryIds", "categoryData", "class"])) : o("", !0),
|
|
56
|
+
i(f, {
|
|
57
|
+
heading: e.article.title.rendered,
|
|
58
|
+
class: t(a.$style.heading),
|
|
59
|
+
style: { "grid-area": "heading" }
|
|
60
|
+
}, null, 8, ["heading", "class"]),
|
|
61
|
+
i($, {
|
|
62
|
+
excerpt: e.article.excerpt.rendered,
|
|
63
|
+
class: t(a.$style.excerpt),
|
|
64
|
+
style: { "grid-area": "excerpt" }
|
|
65
|
+
}, null, 8, ["excerpt", "class"]),
|
|
66
|
+
e.postConfig.tag ? (r(), l(k, {
|
|
67
|
+
key: 1,
|
|
68
|
+
article: e.article,
|
|
69
|
+
label: {
|
|
70
|
+
color: "var(--gray)",
|
|
71
|
+
fontSize: "small"
|
|
72
|
+
},
|
|
73
|
+
class: t(a.$style.tag),
|
|
74
|
+
delimiter: "/",
|
|
75
|
+
style: { "grid-area": "tag" }
|
|
76
|
+
}, null, 8, ["article", "class"])) : o("", !0),
|
|
77
|
+
e.postConfig.author && s(n)(e.article) ? (r(), l(u, {
|
|
78
|
+
key: 2,
|
|
79
|
+
name: (c = s(n)(e.article)) == null ? void 0 : c.name,
|
|
80
|
+
class: t(a.$style.author),
|
|
81
|
+
text: {
|
|
82
|
+
color: "var(--gray)",
|
|
83
|
+
fontWeight: "bold",
|
|
84
|
+
preposition: "by"
|
|
85
|
+
},
|
|
86
|
+
style: { "grid-area": "author" }
|
|
87
|
+
}, null, 8, ["name", "class"])) : o("", !0)
|
|
88
|
+
];
|
|
89
|
+
}),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["class", "path"])) : o("", !0);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
x as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const t = "_container_9fac4_1", a = "_thumbnail_9fac4_12", c = "_pickup_9fac4_16", _ = "_heading_9fac4_32", n = "_tag_9fac4_33", e = "_excerpt_9fac4_34", o = "_author_9fac4_35", r = "_date_9fac4_40", i = "_category_9fac4_41", s = {
|
|
2
|
+
container: t,
|
|
3
|
+
thumbnail: a,
|
|
4
|
+
pickup: c,
|
|
5
|
+
heading: _,
|
|
6
|
+
tag: n,
|
|
7
|
+
excerpt: e,
|
|
8
|
+
author: o,
|
|
9
|
+
date: r,
|
|
10
|
+
category: i
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
o as author,
|
|
14
|
+
i as category,
|
|
15
|
+
t as container,
|
|
16
|
+
r as date,
|
|
17
|
+
s as default,
|
|
18
|
+
e as excerpt,
|
|
19
|
+
_ as heading,
|
|
20
|
+
c as pickup,
|
|
21
|
+
n as tag,
|
|
22
|
+
a as thumbnail
|
|
23
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import s from "./GenericArticleList.vue2.js";
|
|
2
|
+
import o from "./GenericArticleList.vue3.js";
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = {
|
|
5
|
+
$style: o
|
|
6
|
+
}, m = /* @__PURE__ */ t(s, [["__cssModules", e]]);
|
|
7
|
+
export {
|
|
8
|
+
m as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as f, computed as r, openBlock as n, createElementBlock as a, normalizeStyle as c, normalizeClass as C, Fragment as g, renderList as b, createBlock as y, resolveDynamicComponent as k, unref as h } from "vue";
|
|
2
|
+
import { normalizePostConfig as v, returnArticlePath as N } from "../../scripts/utils.js";
|
|
3
|
+
import u from "./Card/Standard.vue.js";
|
|
4
|
+
import P from "./Card/Rounded.vue.js";
|
|
5
|
+
import U from "./Card/Artistic.vue.js";
|
|
6
|
+
import w from "./Card/Tile.vue.js";
|
|
7
|
+
import E from "./Card/Simple.vue.js";
|
|
8
|
+
import z from "./Card/Row.vue.js";
|
|
9
|
+
import A from "./Card/News.vue.js";
|
|
10
|
+
import B from "./Card/Entertainment.vue.js";
|
|
11
|
+
import I from "./Card/Gallery.vue.js";
|
|
12
|
+
const K = /* @__PURE__ */ f({
|
|
13
|
+
__name: "GenericArticleList",
|
|
14
|
+
props: {
|
|
15
|
+
articles: {},
|
|
16
|
+
theme: {},
|
|
17
|
+
categories: {},
|
|
18
|
+
columnNumber: {},
|
|
19
|
+
settings: {}
|
|
20
|
+
},
|
|
21
|
+
setup(e) {
|
|
22
|
+
const t = e, d = r(() => t.settings.domainToUse), i = r(() => t.settings.isEnabledPickUp), s = r(
|
|
23
|
+
() => v(t.settings.postConfig)
|
|
24
|
+
), p = r(() => {
|
|
25
|
+
switch (t.theme) {
|
|
26
|
+
case "standard":
|
|
27
|
+
return u;
|
|
28
|
+
case "rounded":
|
|
29
|
+
return P;
|
|
30
|
+
case "artistic":
|
|
31
|
+
return U;
|
|
32
|
+
case "tile":
|
|
33
|
+
return w;
|
|
34
|
+
case "simple":
|
|
35
|
+
return E;
|
|
36
|
+
case "row":
|
|
37
|
+
return z;
|
|
38
|
+
case "news":
|
|
39
|
+
return A;
|
|
40
|
+
case "gallery":
|
|
41
|
+
return I;
|
|
42
|
+
case "entertainment":
|
|
43
|
+
return B;
|
|
44
|
+
default:
|
|
45
|
+
return u;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return (m, S) => (n(), a("ul", {
|
|
49
|
+
style: c({
|
|
50
|
+
"--column-number": e.columnNumber,
|
|
51
|
+
"--tablet-column-number": e.columnNumber - 1 ? e.columnNumber - 1 : 1
|
|
52
|
+
}),
|
|
53
|
+
class: C([m.$style.list, { [m.$style.pickup]: i.value }])
|
|
54
|
+
}, [
|
|
55
|
+
(n(!0), a(g, null, b(e.articles, (o, l) => (n(), a("li", {
|
|
56
|
+
key: o.id,
|
|
57
|
+
style: c({ animationDelay: `${Number(l) * 0.1}s` })
|
|
58
|
+
}, [
|
|
59
|
+
(n(), y(k(p.value), {
|
|
60
|
+
path: h(N)(s.value, d.value, o.id),
|
|
61
|
+
article: o,
|
|
62
|
+
isPickUpItem: Number(l) === 0 && i.value,
|
|
63
|
+
postConfig: s.value,
|
|
64
|
+
categories: e.categories
|
|
65
|
+
}, null, 8, ["path", "article", "isPickUpItem", "postConfig", "categories"]))
|
|
66
|
+
], 4))), 128))
|
|
67
|
+
], 6));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
K as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as i, createBlock as r } from "vue";
|
|
2
|
+
import s from "../GenericArticleList.vue.js";
|
|
3
|
+
const l = /* @__PURE__ */ t({
|
|
4
|
+
__name: "Artistic",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (c, n) => (i(), r(s, {
|
|
12
|
+
theme: "artistic",
|
|
13
|
+
columnNumber: 3,
|
|
14
|
+
articles: e.articles,
|
|
15
|
+
categories: e.categories,
|
|
16
|
+
settings: e.settings
|
|
17
|
+
}, null, 8, ["articles", "categories", "settings"]));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
l as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as n, createBlock as r } from "vue";
|
|
2
|
+
import i from "../GenericArticleList.vue.js";
|
|
3
|
+
const m = /* @__PURE__ */ t({
|
|
4
|
+
__name: "Entertainment",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (s, c) => (n(), r(i, {
|
|
12
|
+
theme: "entertainment",
|
|
13
|
+
columnNumber: 3,
|
|
14
|
+
articles: e.articles,
|
|
15
|
+
categories: e.categories,
|
|
16
|
+
settings: e.settings
|
|
17
|
+
}, null, 8, ["articles", "categories", "settings"]));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
m as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as r, createBlock as s } from "vue";
|
|
2
|
+
import c from "../GenericArticleList.vue.js";
|
|
3
|
+
const o = /* @__PURE__ */ t({
|
|
4
|
+
__name: "Gallery",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (i, a) => (r(), s(c, {
|
|
12
|
+
theme: "gallery",
|
|
13
|
+
columnNumber: 3,
|
|
14
|
+
articles: e.articles,
|
|
15
|
+
categories: e.categories,
|
|
16
|
+
settings: e.settings
|
|
17
|
+
}, null, 8, ["articles", "categories", "settings"]));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
o as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { defineComponent as R, computed as b, ref as N, onMounted as U, onUnmounted as P, openBlock as v, createElementBlock as f, normalizeStyle as h, normalizeClass as p, Fragment as T, renderList as E, createVNode as G, unref as V } from "vue";
|
|
2
|
+
import { normalizePostConfig as I, returnArticlePath as M } from "../../../scripts/utils.js";
|
|
3
|
+
import A from "../Card/Grid.vue.js";
|
|
4
|
+
const j = /* @__PURE__ */ R({
|
|
5
|
+
__name: "Grid",
|
|
6
|
+
props: {
|
|
7
|
+
articles: {},
|
|
8
|
+
categories: {},
|
|
9
|
+
columnNumber: {},
|
|
10
|
+
settings: {}
|
|
11
|
+
},
|
|
12
|
+
setup(l) {
|
|
13
|
+
const s = l, C = b(() => s.settings.domainToUse), w = b(() => s.settings.isEnabledPickUp), d = b(
|
|
14
|
+
() => I(s.settings.postConfig)
|
|
15
|
+
), i = N(null), a = N(0), c = N(null), n = b(() => a.value > 992 ? s.columnNumber : a.value >= 576 && a.value <= 992 ? s.columnNumber - 1 : 1), $ = (t) => {
|
|
16
|
+
const r = t + 1, u = Number(n.value) - 1;
|
|
17
|
+
return Math.ceil(r / u);
|
|
18
|
+
}, z = (t) => {
|
|
19
|
+
const r = t + 1, u = Number(n.value);
|
|
20
|
+
if (r < u)
|
|
21
|
+
return r;
|
|
22
|
+
if (u === 1)
|
|
23
|
+
return 1;
|
|
24
|
+
const e = r % (u - 1);
|
|
25
|
+
return e === 0 ? u - 1 : e;
|
|
26
|
+
}, y = (t) => {
|
|
27
|
+
if (n.value === 4) {
|
|
28
|
+
const r = $(t), u = Array.from({ length: 49 }, (o, k) => k + 1).find(
|
|
29
|
+
(o) => r <= o * 2
|
|
30
|
+
) || 0, e = r - 1 + u;
|
|
31
|
+
return m(t) === "vertical" ? `${Number(e)}/${Number(e) + 2}` : r % 2 ? `${Number(e)}/${Number(e) + 1}` : `${Number(e) + 1}/${Number(e) + 2}`;
|
|
32
|
+
} else if (n.value === 3) {
|
|
33
|
+
const r = t + 1, u = r % 3, e = Math.floor(r / 3), o = u ? e * 2 + 1 : e * 2;
|
|
34
|
+
return m(t) === "horizontal" ? `${Number(o)}/${Number(o) + 1}` : `${Number(o)}/${Number(o) + 2}`;
|
|
35
|
+
}
|
|
36
|
+
}, g = (t) => {
|
|
37
|
+
const r = (t + 1) % 6, u = Number(n.value);
|
|
38
|
+
if (u === 4) {
|
|
39
|
+
const e = z(t);
|
|
40
|
+
switch (!0) {
|
|
41
|
+
case (!t || r === 1):
|
|
42
|
+
return "1/3";
|
|
43
|
+
case !r:
|
|
44
|
+
return "3/5";
|
|
45
|
+
default:
|
|
46
|
+
return $(t) % 2 ? `${e + 1}/${e + 2}` : `${e}/${e + 1}`;
|
|
47
|
+
}
|
|
48
|
+
} else if (u === 3) {
|
|
49
|
+
const e = m(t) === "horizontal" ? 2 : 1;
|
|
50
|
+
switch (r) {
|
|
51
|
+
case 1:
|
|
52
|
+
case 3:
|
|
53
|
+
case 4:
|
|
54
|
+
return `1/${1 + e}`;
|
|
55
|
+
case 5:
|
|
56
|
+
case 0:
|
|
57
|
+
return `2/${2 + e}`;
|
|
58
|
+
case 2:
|
|
59
|
+
return `3/${3 + e}`;
|
|
60
|
+
default:
|
|
61
|
+
return "";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return "";
|
|
65
|
+
}, m = (t) => {
|
|
66
|
+
if (n.value === 1)
|
|
67
|
+
return "vertical";
|
|
68
|
+
if (n.value === 3) {
|
|
69
|
+
const u = (t + 1) % 6;
|
|
70
|
+
return u !== 2 && u !== 4 ? "horizontal" : "vertical";
|
|
71
|
+
} else {
|
|
72
|
+
const r = g(t);
|
|
73
|
+
if (!r.includes("/"))
|
|
74
|
+
return "horizontal";
|
|
75
|
+
const u = r.split("/").map(Number);
|
|
76
|
+
return u[1] - u[0] >= 2 ? "horizontal" : "vertical";
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
return U(() => {
|
|
80
|
+
const t = new ResizeObserver((r) => {
|
|
81
|
+
c.value && clearTimeout(c.value), c.value = setTimeout(() => {
|
|
82
|
+
a.value = r[0].contentRect.width;
|
|
83
|
+
}, 100);
|
|
84
|
+
});
|
|
85
|
+
i.value && t.observe(i.value), P(() => {
|
|
86
|
+
i.value && t.unobserve(i.value), t.disconnect(), c.value && clearTimeout(c.value);
|
|
87
|
+
});
|
|
88
|
+
}), (t, r) => (v(), f("ul", {
|
|
89
|
+
ref_key: "listElement",
|
|
90
|
+
ref: i,
|
|
91
|
+
style: h({
|
|
92
|
+
"--column-number": l.columnNumber,
|
|
93
|
+
"--tablet-column-number": l.columnNumber - 1 ? l.columnNumber - 1 : 1
|
|
94
|
+
}),
|
|
95
|
+
class: p(t.$style.list)
|
|
96
|
+
}, [
|
|
97
|
+
(v(!0), f(T, null, E(l.articles, (u, e) => (v(), f("li", {
|
|
98
|
+
key: u.id,
|
|
99
|
+
class: p(t.$style.item),
|
|
100
|
+
style: h({
|
|
101
|
+
animationDelay: `${Number(e) * 0.1}s`,
|
|
102
|
+
gridRow: y(Number(e)) || "auto",
|
|
103
|
+
gridColumn: g(Number(e)) || "auto"
|
|
104
|
+
})
|
|
105
|
+
}, [
|
|
106
|
+
G(A, {
|
|
107
|
+
path: V(M)(d.value, C.value, u.id),
|
|
108
|
+
article: u,
|
|
109
|
+
isPickUpItem: Number(e) === 0 && w.value,
|
|
110
|
+
postConfig: d.value,
|
|
111
|
+
categories: l.categories,
|
|
112
|
+
direction: m(Number(e))
|
|
113
|
+
}, null, 8, ["path", "article", "isPickUpItem", "postConfig", "categories", "direction"])
|
|
114
|
+
], 6))), 128))
|
|
115
|
+
], 6));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
j as default
|
|
120
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as s, createBlock as r } from "vue";
|
|
2
|
+
import c from "../GenericArticleList.vue.js";
|
|
3
|
+
const l = /* @__PURE__ */ t({
|
|
4
|
+
__name: "News",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (i, n) => (s(), r(c, {
|
|
12
|
+
theme: "news",
|
|
13
|
+
columnNumber: 1,
|
|
14
|
+
articles: e.articles,
|
|
15
|
+
categories: e.categories,
|
|
16
|
+
settings: e.settings
|
|
17
|
+
}, null, 8, ["articles", "categories", "settings"]));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
l as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as r, createBlock as s } from "vue";
|
|
2
|
+
import c from "../GenericArticleList.vue.js";
|
|
3
|
+
const l = /* @__PURE__ */ t({
|
|
4
|
+
__name: "Rounded",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (i, n) => (r(), s(c, {
|
|
12
|
+
theme: "rounded",
|
|
13
|
+
columnNumber: 3,
|
|
14
|
+
articles: e.articles,
|
|
15
|
+
categories: e.categories,
|
|
16
|
+
settings: e.settings
|
|
17
|
+
}, null, 8, ["articles", "categories", "settings"]));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
l as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as r, createBlock as s } from "vue";
|
|
2
|
+
import c from "../GenericArticleList.vue.js";
|
|
3
|
+
const l = /* @__PURE__ */ t({
|
|
4
|
+
__name: "Row",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (i, o) => (r(), s(c, {
|
|
12
|
+
theme: "row",
|
|
13
|
+
columnNumber: 1,
|
|
14
|
+
articles: e.articles,
|
|
15
|
+
categories: e.categories,
|
|
16
|
+
settings: e.settings
|
|
17
|
+
}, null, 8, ["articles", "categories", "settings"]));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
l as default
|
|
22
|
+
};
|