@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,22 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as i, createBlock as s } from "vue";
|
|
2
|
+
import r from "../GenericArticleList.vue.js";
|
|
3
|
+
const l = /* @__PURE__ */ t({
|
|
4
|
+
__name: "Simple",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (c, n) => (i(), s(r, {
|
|
12
|
+
theme: "simple",
|
|
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: "Standard",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (i, a) => (r(), s(c, {
|
|
12
|
+
theme: "standard",
|
|
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 i, createBlock as r } from "vue";
|
|
2
|
+
import s from "../GenericArticleList.vue.js";
|
|
3
|
+
const l = /* @__PURE__ */ t({
|
|
4
|
+
__name: "Tile",
|
|
5
|
+
props: {
|
|
6
|
+
articles: {},
|
|
7
|
+
categories: {},
|
|
8
|
+
settings: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (c, n) => (i(), r(s, {
|
|
12
|
+
theme: "tile",
|
|
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,64 @@
|
|
|
1
|
+
import { defineComponent as f, computed as u, openBlock as l, createElementBlock as r, normalizeClass as s, normalizeStyle as c, createCommentVNode as m, toDisplayString as h } from "vue";
|
|
2
|
+
const v = ["src", "srcset", "alt"], y = ["data-preposition"], z = /* @__PURE__ */ f({
|
|
3
|
+
__name: "AuthorInfo",
|
|
4
|
+
props: {
|
|
5
|
+
avatarUrls: { default: null },
|
|
6
|
+
name: { default: "" },
|
|
7
|
+
direction: { default: "row" },
|
|
8
|
+
thumbnail: { default: () => ({
|
|
9
|
+
size: "medium",
|
|
10
|
+
shape: "square"
|
|
11
|
+
}) },
|
|
12
|
+
text: { default: () => ({
|
|
13
|
+
color: "var(--gray)",
|
|
14
|
+
fontSize: "medium",
|
|
15
|
+
fontWeight: "normal",
|
|
16
|
+
preposition: ""
|
|
17
|
+
}) }
|
|
18
|
+
},
|
|
19
|
+
setup(e) {
|
|
20
|
+
const i = e, d = u(() => {
|
|
21
|
+
const t = i.avatarUrls;
|
|
22
|
+
if (!t)
|
|
23
|
+
return;
|
|
24
|
+
const n = [
|
|
25
|
+
{ url: t[96], width: "1024w" },
|
|
26
|
+
{ url: t[48], width: "640w" }
|
|
27
|
+
].filter((a) => !!a.url);
|
|
28
|
+
if (n.length !== 0)
|
|
29
|
+
return n.map((a) => `${a.url} ${a.width}`).join(", ");
|
|
30
|
+
}), o = u(() => {
|
|
31
|
+
const t = i.avatarUrls;
|
|
32
|
+
if (t)
|
|
33
|
+
return t[96] ?? t[48];
|
|
34
|
+
});
|
|
35
|
+
return (t, n) => (l(), r("div", {
|
|
36
|
+
class: s(t.$style.author_info),
|
|
37
|
+
style: c({
|
|
38
|
+
"--author-info-direction": e.direction,
|
|
39
|
+
"--author-name-color": e.text.color,
|
|
40
|
+
"--author-name-font-size": e.text.fontSize,
|
|
41
|
+
"--author-name-font-weight": e.text.fontWeight
|
|
42
|
+
})
|
|
43
|
+
}, [
|
|
44
|
+
o.value ? (l(), r("img", {
|
|
45
|
+
key: 0,
|
|
46
|
+
src: o.value,
|
|
47
|
+
srcset: d.value,
|
|
48
|
+
alt: `${e.name} thumbnail`,
|
|
49
|
+
loading: "lazy",
|
|
50
|
+
class: s([t.$style.thumbnail, t.$style[e.thumbnail.shape ?? "square"]]),
|
|
51
|
+
style: c({
|
|
52
|
+
"--thumbnail-size": e.thumbnail.size === "small" ? "calc(var(--bv) * 3)" : e.thumbnail.size === "large" ? "calc(var(--bv) * 6)" : "calc(var(--bv) * 4)"
|
|
53
|
+
})
|
|
54
|
+
}, null, 14, v)) : m("", !0),
|
|
55
|
+
e.name ? (l(), r("span", {
|
|
56
|
+
key: 1,
|
|
57
|
+
"data-preposition": e.text.preposition
|
|
58
|
+
}, h(e.name), 9, y)) : m("", !0)
|
|
59
|
+
], 6));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
z as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as r, normalizeClass as a, renderSlot as s } from "vue";
|
|
2
|
+
const l = ["href"], f = /* @__PURE__ */ n({
|
|
3
|
+
__name: "CardContainer",
|
|
4
|
+
props: {
|
|
5
|
+
path: {}
|
|
6
|
+
},
|
|
7
|
+
setup(t) {
|
|
8
|
+
return (e, c) => (o(), r("a", {
|
|
9
|
+
href: t.path,
|
|
10
|
+
class: a(e.$style.container)
|
|
11
|
+
}, [
|
|
12
|
+
s(e.$slots, "default")
|
|
13
|
+
], 10, l));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
f as default
|
|
18
|
+
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* 見出し。**HTML 文字列として描画する**(WordPress の `title.rendered` は
|
|
4
|
+
* `&` などにエンコード済みなので、テキストのまま出すとエンティティが見えてしまう)。
|
|
5
|
+
* WP 以外から渡す場合は、埋め込む前にサニタイズすること
|
|
6
|
+
*/
|
|
2
7
|
heading: string;
|
|
3
8
|
color?: string;
|
|
4
9
|
fontSize?: string;
|
|
@@ -8,5 +13,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
8
13
|
color: string;
|
|
9
14
|
fontSize: string;
|
|
10
15
|
fontWeight: string;
|
|
11
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
17
|
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as o, createElementBlock as a, normalizeClass as i, normalizeStyle as l, createElementVNode as r } from "vue";
|
|
2
|
+
const d = ["innerHTML"], h = /* @__PURE__ */ t({
|
|
3
|
+
__name: "CardHeading",
|
|
4
|
+
props: {
|
|
5
|
+
heading: {},
|
|
6
|
+
color: { default: "var(--primary-color)" },
|
|
7
|
+
fontSize: { default: "larger" },
|
|
8
|
+
fontWeight: { default: "bold" }
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (n, c) => (o(), a("div", {
|
|
12
|
+
class: i(n.$style.heading),
|
|
13
|
+
style: l({
|
|
14
|
+
"--heading-color": e.color,
|
|
15
|
+
"--heading-font-size": e.fontSize,
|
|
16
|
+
"--heading-font-weight": e.fontWeight
|
|
17
|
+
})
|
|
18
|
+
}, [
|
|
19
|
+
r("h2", { innerHTML: e.heading }, null, 8, d)
|
|
20
|
+
], 6));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
h as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as m, computed as d, openBlock as s, createBlock as u } from "vue";
|
|
2
|
+
import f from "./MetadataList.vue.js";
|
|
3
|
+
const b = /* @__PURE__ */ m({
|
|
4
|
+
__name: "CategoryList",
|
|
5
|
+
props: {
|
|
6
|
+
categoryIds: {},
|
|
7
|
+
categoryData: {},
|
|
8
|
+
icon: {},
|
|
9
|
+
label: {},
|
|
10
|
+
delimiter: {}
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
const c = e, i = (t, n) => {
|
|
14
|
+
var a;
|
|
15
|
+
return t.length ? ((a = t.find((o) => o.id === n)) == null ? void 0 : a.name) ?? "" : "";
|
|
16
|
+
}, r = d(
|
|
17
|
+
() => c.categoryIds.map(
|
|
18
|
+
(t) => i(c.categoryData, t)
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
return (t, n) => {
|
|
22
|
+
var a, o, l;
|
|
23
|
+
return s(), u(f, {
|
|
24
|
+
metadata: r.value,
|
|
25
|
+
icon: {
|
|
26
|
+
name: (a = e.icon) != null && a.color ? "FolderIcon" : null,
|
|
27
|
+
color: (o = e.icon) == null ? void 0 : o.color,
|
|
28
|
+
size: (l = e.icon) == null ? void 0 : l.size
|
|
29
|
+
},
|
|
30
|
+
label: e.label,
|
|
31
|
+
delimiter: e.delimiter
|
|
32
|
+
}, null, 8, ["metadata", "icon", "label", "delimiter"]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
b as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as r, createElementBlock as n, normalizeClass as c, normalizeStyle as l } from "vue";
|
|
2
|
+
const a = ["innerHTML"], f = /* @__PURE__ */ o({
|
|
3
|
+
__name: "ExcerptText",
|
|
4
|
+
props: {
|
|
5
|
+
excerpt: {},
|
|
6
|
+
color: { default: "var(--text-color)" },
|
|
7
|
+
fontSize: { default: "medium" },
|
|
8
|
+
row: { default: 3 }
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (t, i) => (r(), n("div", {
|
|
12
|
+
class: c(t.$style.excerpt),
|
|
13
|
+
style: l({
|
|
14
|
+
"--excerpt-color": e.color,
|
|
15
|
+
"--excerpt-font-size": e.fontSize,
|
|
16
|
+
"--excerpt-row": e.row
|
|
17
|
+
}),
|
|
18
|
+
innerHTML: e.excerpt
|
|
19
|
+
}, null, 14, a));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
f as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as s, openBlock as a, createElementBlock as o, normalizeClass as t, normalizeStyle as n, createBlock as m, resolveDynamicComponent as d, unref as u, createCommentVNode as i, createElementVNode as b, Fragment as f, renderList as y, toDisplayString as g } from "vue";
|
|
2
|
+
import k from "../../Icon/Folder.vue.js";
|
|
3
|
+
import v from "../../Icon/Tag.vue.js";
|
|
4
|
+
const z = ["data-delimiter"], F = /* @__PURE__ */ s({
|
|
5
|
+
__name: "MetadataList",
|
|
6
|
+
props: {
|
|
7
|
+
metadata: {},
|
|
8
|
+
icon: { default: () => ({
|
|
9
|
+
name: null,
|
|
10
|
+
color: "var(--disable-text-color)",
|
|
11
|
+
size: "medium"
|
|
12
|
+
}) },
|
|
13
|
+
label: { default: () => ({
|
|
14
|
+
backgroundColor: "transparent",
|
|
15
|
+
color: "var(--text-color)",
|
|
16
|
+
fontSize: "var(--fs-small)",
|
|
17
|
+
fontWeight: "normal",
|
|
18
|
+
shape: "square"
|
|
19
|
+
}) },
|
|
20
|
+
delimiter: { default: "" }
|
|
21
|
+
},
|
|
22
|
+
setup(e) {
|
|
23
|
+
const c = e.icon.name === "FolderIcon" ? k : v;
|
|
24
|
+
return (l, C) => e.metadata.length ? (a(), o("div", {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: t(l.$style.metadata_list),
|
|
27
|
+
style: n({ "--icon-color": e.icon.color })
|
|
28
|
+
}, [
|
|
29
|
+
e.icon.name ? (a(), m(d(u(c)), {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: t(l.$style.icon),
|
|
32
|
+
style: n({
|
|
33
|
+
"--icon-color": e.icon.color,
|
|
34
|
+
"--icon-size": e.icon.size === "small" ? "var(--small-icon-size, 0.9375rem)" : "var(--medium-icon-size, 1.125rem)"
|
|
35
|
+
})
|
|
36
|
+
}, null, 8, ["class", "style"])) : i("", !0),
|
|
37
|
+
b("ul", {
|
|
38
|
+
class: t(l.$style.list)
|
|
39
|
+
}, [
|
|
40
|
+
(a(!0), o(f, null, y(e.metadata, (r) => (a(), o("li", {
|
|
41
|
+
key: r,
|
|
42
|
+
class: t([
|
|
43
|
+
l.$style.list_item,
|
|
44
|
+
l.$style[e.label.shape ?? "square"],
|
|
45
|
+
{ [l.$style.delimiter]: e.delimiter }
|
|
46
|
+
]),
|
|
47
|
+
style: n({
|
|
48
|
+
"--label-padding": !e.label.backgroundColor || e.label.backgroundColor === "transparent" ? "0px" : "var(--sp-min) var(--sp-small)",
|
|
49
|
+
"--label-background-color": e.label.backgroundColor ?? "transparent",
|
|
50
|
+
"--label-color": e.label.color ?? "var(--text-color)",
|
|
51
|
+
"--label-font-size": e.label.fontSize ?? "var(--fs-small)",
|
|
52
|
+
"--label-font-weight": e.label.fontWeight ?? "normal"
|
|
53
|
+
}),
|
|
54
|
+
"data-delimiter": e.delimiter
|
|
55
|
+
}, g(r), 15, z))), 128))
|
|
56
|
+
], 2)
|
|
57
|
+
], 6)) : i("", !0);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
F as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const t = "_metadata_list_1aazi_1", i = "_icon_1aazi_8", _ = "_list_1aazi_17", a = "_list_item_1aazi_22", e = "_rounded_1aazi_30", s = "_delimiter_1aazi_33", l = {
|
|
2
|
+
metadata_list: t,
|
|
3
|
+
icon: i,
|
|
4
|
+
list: _,
|
|
5
|
+
list_item: a,
|
|
6
|
+
rounded: e,
|
|
7
|
+
delimiter: s
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
l as default,
|
|
11
|
+
s as delimiter,
|
|
12
|
+
i as icon,
|
|
13
|
+
_ as list,
|
|
14
|
+
a as list_item,
|
|
15
|
+
t as metadata_list,
|
|
16
|
+
e as rounded
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as t, createElementBlock as a, normalizeClass as m, createVNode as r, createElementVNode as l } from "vue";
|
|
2
|
+
import s from "../../Icon/Image.vue.js";
|
|
3
|
+
const _ = /* @__PURE__ */ n({
|
|
4
|
+
__name: "NoImage",
|
|
5
|
+
setup(p) {
|
|
6
|
+
return (o, e) => (t(), a("div", {
|
|
7
|
+
class: m(o.$style.no_image)
|
|
8
|
+
}, [
|
|
9
|
+
r(s),
|
|
10
|
+
e[0] || (e[0] = l("span", null, "No Image", -1))
|
|
11
|
+
], 2));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
_ as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as n, computed as a, openBlock as d, createElementBlock as s, normalizeClass as f, normalizeStyle as i, toDisplayString as m } from "vue";
|
|
2
|
+
import { parseISO as c, isValid as u, format as p } from "date-fns";
|
|
3
|
+
const z = /* @__PURE__ */ n({
|
|
4
|
+
__name: "PostedDate",
|
|
5
|
+
props: {
|
|
6
|
+
date: {},
|
|
7
|
+
formatString: { default: "yyyy/MM/dd" },
|
|
8
|
+
color: { default: "var(--text-color)" },
|
|
9
|
+
fontSize: { default: "small" },
|
|
10
|
+
fontWeight: { default: "normal" }
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
const e = t, o = a(() => c(e.date)), l = a(
|
|
14
|
+
() => u(o.value) ? p(o.value, e.formatString) : ""
|
|
15
|
+
);
|
|
16
|
+
return (r, y) => (d(), s("time", {
|
|
17
|
+
class: f(r.$style.posted_date),
|
|
18
|
+
style: i({
|
|
19
|
+
"--date-color": t.color,
|
|
20
|
+
"--date-font-size": t.fontSize,
|
|
21
|
+
"--date-font-weight": t.fontWeight
|
|
22
|
+
})
|
|
23
|
+
}, m(l.value), 7));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
z as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as c, computed as n, openBlock as r, createBlock as m, createCommentVNode as d } from "vue";
|
|
2
|
+
import u from "./MetadataList.vue.js";
|
|
3
|
+
import { returnTagList as s } from "../../../scripts/utils.js";
|
|
4
|
+
const T = /* @__PURE__ */ c({
|
|
5
|
+
__name: "TagList",
|
|
6
|
+
props: {
|
|
7
|
+
article: {},
|
|
8
|
+
icon: {},
|
|
9
|
+
label: {},
|
|
10
|
+
delimiter: {}
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
const i = e, t = n(() => s(i.article));
|
|
14
|
+
return (f, g) => {
|
|
15
|
+
var a, o, l;
|
|
16
|
+
return t.value.length ? (r(), m(u, {
|
|
17
|
+
key: 0,
|
|
18
|
+
metadata: t.value,
|
|
19
|
+
icon: {
|
|
20
|
+
name: (a = e.icon) != null && a.color ? "TagIcon" : null,
|
|
21
|
+
color: (o = e.icon) == null ? void 0 : o.color,
|
|
22
|
+
size: (l = e.icon) == null ? void 0 : l.size
|
|
23
|
+
},
|
|
24
|
+
label: e.label,
|
|
25
|
+
delimiter: e.delimiter
|
|
26
|
+
}, null, 8, ["metadata", "icon", "label", "delimiter"])) : d("", !0);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
T as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as b, computed as n, openBlock as s, createElementBlock as m, normalizeStyle as f, normalizeClass as u, createBlock as k } from "vue";
|
|
2
|
+
import h from "./NoImage.vue.js";
|
|
3
|
+
const y = ["srcset", "alt"], g = /* @__PURE__ */ b({
|
|
4
|
+
__name: "ThumbnailImage",
|
|
5
|
+
props: {
|
|
6
|
+
article: {},
|
|
7
|
+
aspectRatio: { default: () => ({
|
|
8
|
+
desktop: "4/3",
|
|
9
|
+
tablet: "4/3",
|
|
10
|
+
mobile: "4/3"
|
|
11
|
+
}) }
|
|
12
|
+
},
|
|
13
|
+
setup(l) {
|
|
14
|
+
const d = l, c = n(
|
|
15
|
+
() => {
|
|
16
|
+
var a, e, t;
|
|
17
|
+
return ((t = (e = (a = d.article) == null ? void 0 : a._embedded) == null ? void 0 : e["wp:featuredmedia"]) == null ? void 0 : t[0]) || {};
|
|
18
|
+
}
|
|
19
|
+
), o = (a) => {
|
|
20
|
+
var t, i, r;
|
|
21
|
+
const e = (t = c.value.media_details) == null ? void 0 : t.sizes;
|
|
22
|
+
return ((i = e == null ? void 0 : e[a]) == null ? void 0 : i.source_url) ?? ((r = e == null ? void 0 : e.full) == null ? void 0 : r.source_url) ?? "";
|
|
23
|
+
}, p = n(
|
|
24
|
+
() => `${o("full")} 1024w, ${o("thumbnail")} 640w`
|
|
25
|
+
);
|
|
26
|
+
return (a, e) => {
|
|
27
|
+
var t;
|
|
28
|
+
return s(), m("div", {
|
|
29
|
+
style: f({
|
|
30
|
+
"--desktop-aspect--ratio": l.aspectRatio.desktop,
|
|
31
|
+
"--tablet-aspect--ratio": l.aspectRatio.tablet,
|
|
32
|
+
"--mobile-aspect--ratio": l.aspectRatio.mobile
|
|
33
|
+
}),
|
|
34
|
+
class: u(a.$style.container)
|
|
35
|
+
}, [
|
|
36
|
+
o("full") ? (s(), m("img", {
|
|
37
|
+
key: 0,
|
|
38
|
+
srcset: p.value,
|
|
39
|
+
sizes: "(min-width: 640px) 50vw, 100vw",
|
|
40
|
+
alt: ((t = c.value) == null ? void 0 : t.alt_text) ?? "記事サムネイル",
|
|
41
|
+
loading: "lazy",
|
|
42
|
+
class: u(a.$style.image)
|
|
43
|
+
}, null, 10, y)) : (s(), k(h, { key: 1 }))
|
|
44
|
+
], 6);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
g as default
|
|
50
|
+
};
|