@geckou/ui-vue 0.4.0 → 0.6.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.
Files changed (175) hide show
  1. package/README.md +52 -2
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/components/ArticleList/Card/Artistic.vue.js +9 -0
  4. package/dist/components/ArticleList/Card/Artistic.vue2.js +105 -0
  5. package/dist/components/ArticleList/Card/Artistic.vue3.js +27 -0
  6. package/dist/components/ArticleList/Card/Entertainment.vue.js +9 -0
  7. package/dist/components/ArticleList/Card/Entertainment.vue2.js +120 -0
  8. package/dist/components/ArticleList/Card/Entertainment.vue3.js +31 -0
  9. package/dist/components/ArticleList/Card/Gallery.vue.js +9 -0
  10. package/dist/components/ArticleList/Card/Gallery.vue2.js +103 -0
  11. package/dist/components/ArticleList/Card/Gallery.vue3.js +23 -0
  12. package/dist/components/ArticleList/Card/Grid.vue.js +9 -0
  13. package/dist/components/ArticleList/Card/Grid.vue2.js +114 -0
  14. package/dist/components/ArticleList/Card/Grid.vue3.js +25 -0
  15. package/dist/components/ArticleList/Card/News.vue.js +9 -0
  16. package/dist/components/ArticleList/Card/News.vue2.js +95 -0
  17. package/dist/components/ArticleList/Card/News.vue3.js +19 -0
  18. package/dist/components/ArticleList/Card/Rounded.vue.js +9 -0
  19. package/dist/components/ArticleList/Card/Rounded.vue2.js +96 -0
  20. package/dist/components/ArticleList/Card/Rounded.vue3.js +15 -0
  21. package/dist/components/ArticleList/Card/Row.vue.js +9 -0
  22. package/dist/components/ArticleList/Card/Row.vue2.js +97 -0
  23. package/dist/components/ArticleList/Card/Row.vue3.js +17 -0
  24. package/dist/components/ArticleList/Card/Simple.vue.js +9 -0
  25. package/dist/components/ArticleList/Card/Simple.vue2.js +98 -0
  26. package/dist/components/ArticleList/Card/Simple.vue3.js +23 -0
  27. package/dist/components/ArticleList/Card/Standard.vue.js +9 -0
  28. package/dist/components/ArticleList/Card/Standard.vue2.js +93 -0
  29. package/dist/components/ArticleList/Card/Standard.vue3.js +21 -0
  30. package/dist/components/ArticleList/Card/Tile.vue.js +9 -0
  31. package/dist/components/ArticleList/Card/Tile.vue2.js +96 -0
  32. package/dist/components/ArticleList/Card/Tile.vue3.js +23 -0
  33. package/dist/components/ArticleList/GenericArticleList.vue.js +9 -0
  34. package/dist/components/ArticleList/GenericArticleList.vue2.js +72 -0
  35. package/dist/components/ArticleList/GenericArticleList.vue3.js +11 -0
  36. package/dist/components/ArticleList/List/Artistic.vue.js +22 -0
  37. package/dist/components/ArticleList/List/Artistic.vue2.js +4 -0
  38. package/dist/components/ArticleList/List/Entertainment.vue.js +22 -0
  39. package/dist/components/ArticleList/List/Entertainment.vue2.js +4 -0
  40. package/dist/components/ArticleList/List/Gallery.vue.js +22 -0
  41. package/dist/components/ArticleList/List/Gallery.vue2.js +4 -0
  42. package/dist/components/ArticleList/List/Grid.vue.js +9 -0
  43. package/dist/components/ArticleList/List/Grid.vue2.js +120 -0
  44. package/dist/components/ArticleList/List/Grid.vue3.js +9 -0
  45. package/dist/components/ArticleList/List/News.vue.js +22 -0
  46. package/dist/components/ArticleList/List/News.vue2.js +4 -0
  47. package/dist/components/ArticleList/List/Rounded.vue.js +22 -0
  48. package/dist/components/ArticleList/List/Rounded.vue2.js +4 -0
  49. package/dist/components/ArticleList/List/Row.vue.js +22 -0
  50. package/dist/components/ArticleList/List/Row.vue2.js +4 -0
  51. package/dist/components/ArticleList/List/Simple.vue.js +22 -0
  52. package/dist/components/ArticleList/List/Simple.vue2.js +4 -0
  53. package/dist/components/ArticleList/List/Standard.vue.js +22 -0
  54. package/dist/components/ArticleList/List/Standard.vue2.js +4 -0
  55. package/dist/components/ArticleList/List/Tile.vue.js +22 -0
  56. package/dist/components/ArticleList/List/Tile.vue2.js +4 -0
  57. package/dist/components/ArticleList/Parts/AuthorInfo.vue.js +9 -0
  58. package/dist/components/ArticleList/Parts/AuthorInfo.vue2.js +64 -0
  59. package/dist/components/ArticleList/Parts/AuthorInfo.vue3.js +11 -0
  60. package/dist/components/ArticleList/Parts/CardContainer.vue.js +9 -0
  61. package/dist/components/ArticleList/Parts/CardContainer.vue2.js +18 -0
  62. package/dist/components/ArticleList/Parts/CardContainer.vue3.js +7 -0
  63. package/dist/components/ArticleList/Parts/CardHeading.vue.js +9 -0
  64. package/dist/components/ArticleList/Parts/CardHeading.vue2.js +25 -0
  65. package/dist/components/ArticleList/Parts/CardHeading.vue3.js +7 -0
  66. package/dist/components/ArticleList/Parts/CategoryList.vue.js +38 -0
  67. package/dist/components/ArticleList/Parts/CategoryList.vue2.js +4 -0
  68. package/dist/components/ArticleList/Parts/ExcerptText.vue.js +9 -0
  69. package/dist/components/ArticleList/Parts/ExcerptText.vue2.js +24 -0
  70. package/dist/components/ArticleList/Parts/ExcerptText.vue3.js +7 -0
  71. package/dist/components/ArticleList/Parts/MetadataList.vue.js +9 -0
  72. package/dist/components/ArticleList/Parts/MetadataList.vue2.js +62 -0
  73. package/dist/components/ArticleList/Parts/MetadataList.vue3.js +17 -0
  74. package/dist/components/ArticleList/Parts/NoImage.vue.js +9 -0
  75. package/dist/components/ArticleList/Parts/NoImage.vue2.js +16 -0
  76. package/dist/components/ArticleList/Parts/NoImage.vue3.js +7 -0
  77. package/dist/components/ArticleList/Parts/PostedDate.vue.js +9 -0
  78. package/dist/components/ArticleList/Parts/PostedDate.vue2.js +28 -0
  79. package/dist/components/ArticleList/Parts/PostedDate.vue3.js +7 -0
  80. package/dist/components/ArticleList/Parts/TagList.vue.js +32 -0
  81. package/dist/components/ArticleList/Parts/TagList.vue2.js +4 -0
  82. package/dist/components/ArticleList/Parts/ThumbnailImage.vue.js +9 -0
  83. package/dist/components/ArticleList/Parts/ThumbnailImage.vue2.js +50 -0
  84. package/dist/components/ArticleList/Parts/ThumbnailImage.vue3.js +7 -0
  85. package/dist/components/BasicButton.vue.js +9 -0
  86. package/dist/components/BasicButton.vue2.js +71 -0
  87. package/dist/components/BasicButton.vue3.js +11 -0
  88. package/dist/components/CheckBox.vue.d.ts +8 -0
  89. package/dist/components/CheckBox.vue.js +9 -0
  90. package/dist/components/CheckBox.vue2.js +76 -0
  91. package/dist/components/CheckBox.vue3.js +11 -0
  92. package/dist/components/CheckBoxes.vue.js +9 -0
  93. package/dist/components/CheckBoxes.vue2.js +104 -0
  94. package/dist/components/CheckBoxes.vue3.js +7 -0
  95. package/dist/components/CheckButton.vue.js +9 -0
  96. package/dist/components/CheckButton.vue2.js +54 -0
  97. package/dist/components/CheckButton.vue3.js +11 -0
  98. package/dist/components/DatePicker.vue.js +9 -0
  99. package/dist/components/DatePicker.vue2.js +137 -0
  100. package/dist/components/DatePicker.vue3.js +15 -0
  101. package/dist/components/DateRangePicker.vue.js +9 -0
  102. package/dist/components/DateRangePicker.vue2.js +74 -0
  103. package/dist/components/DateRangePicker.vue3.js +9 -0
  104. package/dist/components/DateSelector.vue.d.ts +5 -0
  105. package/dist/components/DateSelector.vue.js +9 -0
  106. package/dist/components/DateSelector.vue2.js +174 -0
  107. package/dist/components/DateSelector.vue3.js +13 -0
  108. package/dist/components/DropdownUi.vue.d.ts +1 -0
  109. package/dist/components/DropdownUi.vue.js +9 -0
  110. package/dist/components/DropdownUi.vue2.js +65 -0
  111. package/dist/components/DropdownUi.vue3.js +15 -0
  112. package/dist/components/ErrorMessage.vue.js +9 -0
  113. package/dist/components/ErrorMessage.vue2.js +30 -0
  114. package/dist/components/ErrorMessage.vue3.js +7 -0
  115. package/dist/components/Icon/CalendarIcon.vue.js +15 -0
  116. package/dist/components/Icon/CheckIcon.vue.js +15 -0
  117. package/dist/components/Icon/CloseIcon.vue.js +15 -0
  118. package/dist/components/Icon/Folder.vue.js +15 -0
  119. package/dist/components/Icon/Image.vue.js +21 -0
  120. package/dist/components/Icon/KeyboardArrowDownIcon.vue.js +15 -0
  121. package/dist/components/Icon/Tag.vue.js +15 -0
  122. package/dist/components/InputBox.vue.js +9 -0
  123. package/dist/components/InputBox.vue2.js +62 -0
  124. package/dist/components/InputBox.vue3.js +7 -0
  125. package/dist/components/InputGroup.vue.js +17 -0
  126. package/dist/components/InputGroup.vue2.js +7 -0
  127. package/dist/components/LabeledCheckbox.vue.js +9 -0
  128. package/dist/components/LabeledCheckbox.vue2.js +60 -0
  129. package/dist/components/LabeledCheckbox.vue3.js +9 -0
  130. package/dist/components/LabeledFieldset.vue.js +9 -0
  131. package/dist/components/LabeledFieldset.vue2.js +29 -0
  132. package/dist/components/LabeledFieldset.vue3.js +11 -0
  133. package/dist/components/LoadingSpinner.vue.js +15 -0
  134. package/dist/components/ModalBox.vue.d.ts +22 -16
  135. package/dist/components/ModalBox.vue.js +9 -0
  136. package/dist/components/ModalBox.vue2.js +85 -0
  137. package/dist/components/ModalBox.vue3.js +23 -0
  138. package/dist/components/PopupBox.vue.js +9 -0
  139. package/dist/components/PopupBox.vue2.js +35 -0
  140. package/dist/components/PopupBox.vue3.js +15 -0
  141. package/dist/components/RadioButtons.vue.js +9 -0
  142. package/dist/components/RadioButtons.vue2.js +75 -0
  143. package/dist/components/RadioButtons.vue3.js +11 -0
  144. package/dist/components/SelectBox.vue.js +9 -0
  145. package/dist/components/SelectBox.vue2.js +109 -0
  146. package/dist/components/SelectBox.vue3.js +9 -0
  147. package/dist/components/SlideDownUi.vue.js +9 -0
  148. package/dist/components/SlideDownUi.vue2.js +66 -0
  149. package/dist/components/SlideDownUi.vue3.js +17 -0
  150. package/dist/components/TabUI.vue.d.ts +0 -20
  151. package/dist/components/TabUI.vue.js +9 -0
  152. package/dist/components/TabUI.vue2.js +77 -0
  153. package/dist/components/TabUI.vue3.js +9 -0
  154. package/dist/components/TextArea.vue.js +9 -0
  155. package/dist/components/TextArea.vue2.js +82 -0
  156. package/dist/components/TextArea.vue3.js +7 -0
  157. package/dist/components/TextBox.vue.js +9 -0
  158. package/dist/components/TextBox.vue2.js +76 -0
  159. package/dist/components/TextBox.vue3.js +7 -0
  160. package/dist/components/TextButton.vue.js +9 -0
  161. package/dist/components/TextButton.vue2.js +24 -0
  162. package/dist/components/TextButton.vue3.js +7 -0
  163. package/dist/components/ToggleButton.vue.d.ts +12 -9
  164. package/dist/components/ToggleButton.vue.js +9 -0
  165. package/dist/components/ToggleButton.vue2.js +94 -0
  166. package/dist/components/ToggleButton.vue3.js +13 -0
  167. package/dist/const/list-theme.js +65 -0
  168. package/dist/index.js +112 -3514
  169. package/dist/scripts/form-validation-manager.js +38 -0
  170. package/dist/scripts/unique-id.d.ts +4 -0
  171. package/dist/scripts/unique-id.js +9 -0
  172. package/dist/scripts/use-click-outside.js +13 -0
  173. package/dist/scripts/utils.js +21 -0
  174. package/dist/style.css +1 -1
  175. package/package.json +8 -5
package/README.md CHANGED
@@ -14,7 +14,20 @@ Vue 3 用の再利用可能な UI コンポーネント集。
14
14
  yarn add @geckou/ui-vue
15
15
  ```
16
16
 
17
- Vue 本体は同梱していません。プロジェクト側の Vue 3.0 以上を使います(`peerDependencies`)。
17
+ Vue 本体は同梱していません。プロジェクト側の Vue 3.5 以上を使います(`peerDependencies`)。
18
+ 3.5 未満では `onScopeDispose(fn, true)` と `useId()` が無いため動きません。
19
+
20
+ ⚠️ **1 ページに複数の Vue アプリをマウントする場合は、アプリごとに
21
+ `app.config.idPrefix` を変えてください。** DOM id と `RadioButtons` のグループ
22
+ `name` は `useId()` で採番しており(SSR と client で一致させるため)、既定の
23
+ prefix はどのアプリでも同じです。分けないと、別アプリのラジオグループが同じ
24
+ `name` になって片方を選ぶともう片方の選択が外れます。`RadioButtons` に `name` を
25
+ 明示すれば個別に回避できます。
26
+
27
+ ```ts
28
+ const app = createApp(App)
29
+ app.config.idPrefix = 'checkout'
30
+ ```
18
31
 
19
32
  ## Usage
20
33
 
@@ -247,7 +260,7 @@ const articles = ref<any[]>([])
247
260
  | `modelValue` | `string \| number` | ✅ | - | テキストボックスの値 |
248
261
  | `name` | `string` | ✅ | - | `name`属性 |
249
262
  | `cssStyle` | `InputBoxStyleForEachStatus`| ❌ | - | テキストボックスのスタイル |
250
- | `type` | `string` | ❌ | `text` | テキストボックスのタイプ |
263
+ | `inputType` | `string` | ❌ | `text` | `input` の `type` 属性 |
251
264
  | `isDisabled` | `boolean` | ❌ | `false` | テキストボックスの活性/非活性 |
252
265
  | `isRequired` | `boolean` | ❌ | `false` | 必須項目かどうか |
253
266
  | `maxLength` | `number` | ❌ | `30` | 最大入力文字数 |
@@ -255,6 +268,43 @@ const articles = ref<any[]>([])
255
268
  | `validates` | `Validates[]` | ❌ | `[]` | バリデーションの設定 |
256
269
 
257
270
 
271
+ ## Design tokens
272
+
273
+ **トークンの一覧はルートの [README](../../README.md#design-tokens) が正。**
274
+ ここに挙げるのは、そのうちフォールバックを持つもの(未定義でも壊れない)だけ。
275
+
276
+ ⚠️ `--sp-*` / `--white` / `--gray` / `--radius-small` / `--icon-medium` などは
277
+ **フォールバックを持たない**。未定義だと padding が消える等、普通に崩れるので、
278
+ `:root` で定義すること。
279
+
280
+ | トークン | 既定値 | 使う場所 |
281
+ |---|---|---|
282
+ | `--overlay-color` | `rgba(0, 8, 26, 0.5)` | ModalBox の背面 |
283
+ | `--shadow-color` | `rgba(21, 20, 58, 0.12)` | ModalBox の drop-shadow |
284
+ | `--z-index-overlay` | `90` | ModalBox / PopupBox の重なり |
285
+ | `--z-index-nav` | `70` | ModalBox の閉じるボタン(+1 で重ねる) |
286
+ | `--contents-max-width` | `1440px` | ModalBox の最大幅、PopupBox の左右位置 |
287
+ | `--global-header-height` | `0px` | PopupBox の上端 |
288
+ | `--mobile-lower-width` | `430px` | PopupBox の最大幅 |
289
+ | `--small-icon-size` | `0.9375rem` | ArticleList のアイコン |
290
+ | `--medium-icon-size` | `1.125rem` | アイコン全般(`mixin.scss` の既定) |
291
+
292
+ 定義例はデモの `demo/styles/base.scss` を参照。
293
+
294
+ ## 0.6.0 の破壊的変更
295
+
296
+ - `ModalBox` のイベント名が `closeModal` → `close`(React の `onClose` と揃えた)。
297
+ 親が `isShown=false` にしたときと unmount 時には emit しなくなった
298
+ - `TabUI` の `cssStyle` prop を削除(宣言のみで未使用だった)。`color.text` は配線した
299
+ - `CheckBox` / `ToggleButton` のロールが `aria-pressed` から
300
+ `role="checkbox" + aria-checked` / `role="switch" + aria-checked` に変わった。
301
+ アクセシブル名は `ariaLabel` / `ariaLabelledBy` で渡せる(未指定なら従来どおり `name`)
302
+ - id の採番が `useId()` になり、Vue 3.5 未満では動かない(→ Installation)
303
+ - `dist` が `preserveModules` 構成になった(`import '@geckou/ui-vue/style.css'` は引き続き必要)
304
+ - `DateSelector` に `minYear` / `maxYear` を追加(既定は従来どおり「今年 -100 〜 今年 -14」)
305
+ - `DateRangePicker` が範囲(開始 > 終了)を検証し、`<name>Range` という名前で
306
+ `FormValidationManager` に登録する。`invalidNames` を見ている場合は増える
307
+
258
308
  ## License
259
309
 
260
310
  [MIT](../../LICENSE)
@@ -0,0 +1,9 @@
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
7
+ export {
8
+ s as default
9
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./Artistic.vue2.js";
2
+ import o from "./Artistic.vue3.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = {
5
+ $style: o
6
+ }, f = /* @__PURE__ */ t(s, [["__cssModules", r]]);
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,105 @@
1
+ import { defineComponent as m, openBlock as r, createElementBlock as d, normalizeClass as t, createBlock as l, withCtx as g, createVNode as i, createElementVNode as y, createCommentVNode as s, unref as o } from "vue";
2
+ import { returnAuthor as n } from "../../../scripts/utils.js";
3
+ import u from "../Parts/CardContainer.vue.js";
4
+ import f from "../Parts/ThumbnailImage.vue.js";
5
+ import h from "../Parts/AuthorInfo.vue.js";
6
+ import k from "../Parts/CardHeading.vue.js";
7
+ import $ from "../Parts/CategoryList.vue.js";
8
+ import C from "../Parts/TagList.vue.js";
9
+ import v from "../Parts/PostedDate.vue.js";
10
+ import b from "../Parts/ExcerptText.vue.js";
11
+ const S = /* @__PURE__ */ m({
12
+ __name: "Artistic",
13
+ props: {
14
+ article: {},
15
+ path: {},
16
+ isPickUpItem: { type: Boolean },
17
+ postConfig: {},
18
+ categories: {}
19
+ },
20
+ setup(e) {
21
+ return (a, p) => (r(), d("div", {
22
+ class: t([a.$style.wrapper, { [a.$style.pickup]: e.isPickUpItem }])
23
+ }, [
24
+ e.article ? (r(), l(u, {
25
+ key: 0,
26
+ class: t(a.$style.container),
27
+ path: e.path
28
+ }, {
29
+ default: g(() => {
30
+ var c;
31
+ return [
32
+ i(f, {
33
+ article: e.article,
34
+ aspectRatio: {
35
+ desktop: e.isPickUpItem ? "21/9" : "4/3",
36
+ tablet: e.isPickUpItem ? "21/9" : "4/3",
37
+ mobile: "4/3"
38
+ },
39
+ class: t(a.$style.thumbnail),
40
+ style: { "grid-area": "thumbnail" }
41
+ }, null, 8, ["article", "aspectRatio", "class"]),
42
+ y("div", {
43
+ class: t(a.$style.overlay)
44
+ }, [
45
+ i(b, {
46
+ excerpt: e.article.excerpt.rendered,
47
+ class: t(a.$style.excerpt),
48
+ color: "var(--white)",
49
+ style: { "grid-area": "excerpt" }
50
+ }, null, 8, ["excerpt", "class"])
51
+ ], 2),
52
+ i(v, {
53
+ date: e.article.date,
54
+ formatString: "yy.M.d",
55
+ class: t(a.$style.date),
56
+ style: { "grid-area": "date" }
57
+ }, null, 8, ["date", "class"]),
58
+ i(k, {
59
+ heading: e.article.title.rendered,
60
+ class: t(a.$style.heading),
61
+ style: { "grid-area": "heading" }
62
+ }, null, 8, ["heading", "class"]),
63
+ e.postConfig.tag ? (r(), l(C, {
64
+ key: 0,
65
+ article: e.article,
66
+ label: {
67
+ color: "var(--text-color)",
68
+ fontSize: "smaller"
69
+ },
70
+ class: t(a.$style.tag),
71
+ delimiter: "/",
72
+ style: { "grid-area": "tag" }
73
+ }, null, 8, ["article", "class"])) : s("", !0),
74
+ e.postConfig.author && o(n)(e.article) ? (r(), l(h, {
75
+ key: 1,
76
+ avatarUrls: (c = o(n)(e.article)) == null ? void 0 : c.avatar_urls,
77
+ thumbnail: {
78
+ size: "large",
79
+ shape: "circle"
80
+ },
81
+ class: t(a.$style.author),
82
+ style: { "grid-area": "author" }
83
+ }, null, 8, ["avatarUrls", "class"])) : s("", !0),
84
+ e.postConfig.category && e.article.categories ? (r(), l($, {
85
+ key: 2,
86
+ categoryIds: e.article.categories,
87
+ categoryData: e.categories,
88
+ label: {
89
+ backgroundColor: "var(--main-color)",
90
+ color: "var(--white)",
91
+ fontSize: "small"
92
+ },
93
+ class: t(a.$style.category),
94
+ style: { "grid-area": "category" }
95
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : s("", !0)
96
+ ];
97
+ }),
98
+ _: 1
99
+ }, 8, ["class", "path"])) : s("", !0)
100
+ ], 2));
101
+ }
102
+ });
103
+ export {
104
+ S as default
105
+ };
@@ -0,0 +1,27 @@
1
+ const o = "_wrapper_1gqog_1", t = "_container_1gqog_28", _ = "_overlay_1gqog_31", g = "_excerpt_1gqog_32", a = "_pickup_1gqog_36", e = "_thumbnail_1gqog_43", c = "_heading_1gqog_49", n = "_date_1gqog_50", r = "_tag_1gqog_51", p = "_author_1gqog_52", s = "_category_1gqog_53", i = {
2
+ wrapper: o,
3
+ container: t,
4
+ overlay: _,
5
+ excerpt: g,
6
+ pickup: a,
7
+ thumbnail: e,
8
+ heading: c,
9
+ date: n,
10
+ tag: r,
11
+ author: p,
12
+ category: s
13
+ };
14
+ export {
15
+ p as author,
16
+ s as category,
17
+ t as container,
18
+ n as date,
19
+ i as default,
20
+ g as excerpt,
21
+ c as heading,
22
+ _ as overlay,
23
+ a as pickup,
24
+ r as tag,
25
+ e as thumbnail,
26
+ o as wrapper
27
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./Entertainment.vue2.js";
2
+ import t from "./Entertainment.vue3.js";
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = {
5
+ $style: t
6
+ }, f = /* @__PURE__ */ o(s, [["__cssModules", r]]);
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,120 @@
1
+ import { defineComponent as f, openBlock as r, createBlock as i, normalizeClass as a, withCtx as u, createElementVNode as c, createVNode as l, createCommentVNode as o, unref as m } from "vue";
2
+ import { returnAuthor as d } from "../../../scripts/utils.js";
3
+ import y from "../Parts/CardContainer.vue.js";
4
+ import g from "../Parts/ThumbnailImage.vue.js";
5
+ import h from "../Parts/AuthorInfo.vue.js";
6
+ import $ from "../Parts/CardHeading.vue.js";
7
+ import k from "../Parts/CategoryList.vue.js";
8
+ import b from "../Parts/TagList.vue.js";
9
+ import s from "../Parts/PostedDate.vue.js";
10
+ import v from "../Parts/ExcerptText.vue.js";
11
+ const N = /* @__PURE__ */ f({
12
+ __name: "Entertainment",
13
+ props: {
14
+ article: {},
15
+ path: {},
16
+ isPickUpItem: { type: Boolean },
17
+ postConfig: {},
18
+ categories: {}
19
+ },
20
+ setup(e) {
21
+ return (t, C) => e.article ? (r(), i(y, {
22
+ key: 0,
23
+ class: a([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
24
+ path: e.path
25
+ }, {
26
+ default: u(() => {
27
+ var n;
28
+ return [
29
+ c("div", {
30
+ class: a(t.$style.date)
31
+ }, [
32
+ l(s, {
33
+ date: e.article.date,
34
+ class: a(t.$style.year),
35
+ formatString: "yyyy",
36
+ fontSize: "medium",
37
+ fontWeight: "bold",
38
+ color: "var(--text-color)"
39
+ }, null, 8, ["date", "class"]),
40
+ l(s, {
41
+ date: e.article.date,
42
+ class: a(t.$style.month),
43
+ formatString: "M",
44
+ fontSize: "xxx-large",
45
+ fontWeight: "bold",
46
+ color: "var(--text-color)"
47
+ }, null, 8, ["date", "class"]),
48
+ l(s, {
49
+ date: e.article.date,
50
+ class: a(t.$style.day),
51
+ formatString: "d",
52
+ fontSize: "xxx-large",
53
+ fontWeight: "bold",
54
+ color: "var(--text-color)"
55
+ }, null, 8, ["date", "class"])
56
+ ], 2),
57
+ l(g, {
58
+ article: e.article,
59
+ aspectRatio: {
60
+ desktop: e.isPickUpItem ? "21/9" : "4/3",
61
+ tablet: e.isPickUpItem ? "16/9" : "4/3",
62
+ mobile: (e.isPickUpItem, "4/3")
63
+ },
64
+ class: a(t.$style.thumbnail)
65
+ }, null, 8, ["article", "aspectRatio", "class"]),
66
+ c("div", {
67
+ class: a(t.$style.contents)
68
+ }, [
69
+ e.postConfig.category && e.article.categories ? (r(), i(k, {
70
+ key: 0,
71
+ categoryIds: e.article.categories,
72
+ categoryData: e.categories,
73
+ label: {
74
+ color: "var(--main-color)",
75
+ fontSize: "small",
76
+ fontWeight: "bold"
77
+ },
78
+ class: a(t.$style.category)
79
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : o("", !0),
80
+ l($, {
81
+ heading: e.article.title.rendered,
82
+ class: a(t.$style.heading)
83
+ }, null, 8, ["heading", "class"]),
84
+ c("div", {
85
+ class: a(t.$style.row)
86
+ }, [
87
+ e.postConfig.tag ? (r(), i(b, {
88
+ key: 0,
89
+ article: e.article,
90
+ label: {
91
+ color: "var(--text-color)",
92
+ fontSize: "small"
93
+ },
94
+ class: a(t.$style.tag),
95
+ delimiter: "/"
96
+ }, null, 8, ["article", "class"])) : o("", !0),
97
+ e.postConfig.author && m(d)(e.article) ? (r(), i(h, {
98
+ key: 1,
99
+ avatarUrls: (n = m(d)(e.article)) == null ? void 0 : n.avatar_urls,
100
+ class: a(t.$style.author),
101
+ thumbnail: {
102
+ size: "medium",
103
+ shape: "circle"
104
+ }
105
+ }, null, 8, ["avatarUrls", "class"])) : o("", !0)
106
+ ], 2),
107
+ l(v, {
108
+ excerpt: e.article.excerpt.rendered,
109
+ class: a(t.$style.excerpt)
110
+ }, null, 8, ["excerpt", "class"])
111
+ ], 2)
112
+ ];
113
+ }),
114
+ _: 1
115
+ }, 8, ["class", "path"])) : o("", !0);
116
+ }
117
+ });
118
+ export {
119
+ N as default
120
+ };
@@ -0,0 +1,31 @@
1
+ const t = "_thumbnail_uuh1j_1", _ = "_date_uuh1j_9", u = "_year_uuh1j_19", n = "_month_uuh1j_23", o = "_day_uuh1j_24", c = "_contents_uuh1j_42", e = "_category_uuh1j_53", a = "_heading_uuh1j_57", h = "_row_uuh1j_62", r = "_author_uuh1j_69", s = "_excerpt_uuh1j_73", j = "_container_uuh1j_82", i = "_pickup_uuh1j_93", d = {
2
+ thumbnail: t,
3
+ date: _,
4
+ year: u,
5
+ month: n,
6
+ day: o,
7
+ contents: c,
8
+ category: e,
9
+ heading: a,
10
+ row: h,
11
+ author: r,
12
+ excerpt: s,
13
+ container: j,
14
+ pickup: i
15
+ };
16
+ export {
17
+ r as author,
18
+ e as category,
19
+ j as container,
20
+ c as contents,
21
+ _ as date,
22
+ o as day,
23
+ d as default,
24
+ s as excerpt,
25
+ a as heading,
26
+ n as month,
27
+ i as pickup,
28
+ h as row,
29
+ t as thumbnail,
30
+ u as year
31
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./Gallery.vue2.js";
2
+ import o from "./Gallery.vue3.js";
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = {
5
+ $style: o
6
+ }, c = /* @__PURE__ */ r(s, [["__cssModules", t]]);
7
+ export {
8
+ c as default
9
+ };
@@ -0,0 +1,103 @@
1
+ import { defineComponent as n, openBlock as l, createBlock as i, normalizeClass as a, withCtx as d, createVNode as r, unref as s, createCommentVNode as c } from "vue";
2
+ import { returnAuthor as m } from "../../../scripts/utils.js";
3
+ import g from "../Parts/CardContainer.vue.js";
4
+ import y from "../Parts/ThumbnailImage.vue.js";
5
+ import f from "../Parts/AuthorInfo.vue.js";
6
+ import u from "../Parts/CardHeading.vue.js";
7
+ import h from "../Parts/CategoryList.vue.js";
8
+ import k from "../Parts/TagList.vue.js";
9
+ import I from "../Parts/PostedDate.vue.js";
10
+ import b from "../Parts/ExcerptText.vue.js";
11
+ const A = /* @__PURE__ */ n({
12
+ __name: "Gallery",
13
+ props: {
14
+ article: {},
15
+ path: {},
16
+ isPickUpItem: { type: Boolean },
17
+ postConfig: {},
18
+ categories: {}
19
+ },
20
+ setup(e) {
21
+ return (t, C) => e.article ? (l(), i(g, {
22
+ key: 0,
23
+ class: a([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
24
+ path: e.path
25
+ }, {
26
+ default: d(() => {
27
+ var o;
28
+ return [
29
+ r(y, {
30
+ article: e.article,
31
+ aspectRatio: {
32
+ desktop: e.isPickUpItem ? "2.85/1" : "4/3",
33
+ tablet: e.isPickUpItem ? "16/9" : "4/3",
34
+ mobile: (e.isPickUpItem, "4/3")
35
+ },
36
+ class: a(t.$style.thumbnail),
37
+ style: { "grid-area": "thumbnail" }
38
+ }, null, 8, ["article", "aspectRatio", "class"]),
39
+ r(u, {
40
+ heading: e.article.title.rendered,
41
+ class: a(t.$style.heading),
42
+ color: "var(--white)",
43
+ style: { "grid-area": "heading" }
44
+ }, null, 8, ["heading", "class"]),
45
+ r(I, {
46
+ date: e.article.date,
47
+ class: a(t.$style.date),
48
+ fontSize: e.isPickUpItem ? "medium" : "small",
49
+ formatString: "yyyy.M.d",
50
+ color: "var(--white)",
51
+ fontWeight: "bold",
52
+ style: { "grid-area": "date" }
53
+ }, null, 8, ["date", "class", "fontSize"]),
54
+ e.postConfig.author && s(m)(e.article) ? (l(), i(f, {
55
+ key: 0,
56
+ name: (o = s(m)(e.article)) == null ? void 0 : o.name,
57
+ class: a(t.$style.author),
58
+ text: {
59
+ color: "var(--white)",
60
+ fontSize: e.isPickUpItem ? "medium" : "small",
61
+ fontWeight: "bold"
62
+ },
63
+ style: { "grid-area": "author" }
64
+ }, null, 8, ["name", "class", "text"])) : c("", !0),
65
+ e.postConfig.category && e.article.categories ? (l(), i(h, {
66
+ key: 1,
67
+ categoryIds: e.article.categories,
68
+ categoryData: e.categories,
69
+ label: {
70
+ color: "var(--white)",
71
+ fontSize: e.isPickUpItem ? "medium" : "small"
72
+ },
73
+ class: a(t.$style.category),
74
+ style: { "grid-area": "category" }
75
+ }, null, 8, ["categoryIds", "categoryData", "label", "class"])) : c("", !0),
76
+ e.postConfig.tag ? (l(), i(k, {
77
+ key: 2,
78
+ article: e.article,
79
+ label: {
80
+ color: "var(--white)",
81
+ fontSize: e.isPickUpItem ? "medium" : "small"
82
+ },
83
+ class: a(t.$style.tag),
84
+ delimiter: "/",
85
+ style: { "grid-area": "tag" }
86
+ }, null, 8, ["article", "label", "class"])) : c("", !0),
87
+ r(b, {
88
+ excerpt: e.article.excerpt.rendered,
89
+ class: a(t.$style.excerpt),
90
+ color: "var(--white)",
91
+ fontSize: "small",
92
+ row: 2,
93
+ style: { "grid-area": "excerpt" }
94
+ }, null, 8, ["excerpt", "class"])
95
+ ];
96
+ }),
97
+ _: 1
98
+ }, 8, ["class", "path"])) : c("", !0);
99
+ }
100
+ });
101
+ export {
102
+ A as default
103
+ };
@@ -0,0 +1,23 @@
1
+ const t = "_container_1hse0_1", e = "_thumbnail_1hse0_16", _ = "_category_1hse0_20", a = "_tag_1hse0_21", c = "_excerpt_1hse0_22", n = "_pickup_1hse0_53", s = "_heading_1hse0_73", o = "_date_1hse0_105", h = "_author_1hse0_106", r = {
2
+ container: t,
3
+ thumbnail: e,
4
+ category: _,
5
+ tag: a,
6
+ excerpt: c,
7
+ pickup: n,
8
+ heading: s,
9
+ date: o,
10
+ author: h
11
+ };
12
+ export {
13
+ h as author,
14
+ _ as category,
15
+ t as container,
16
+ o as date,
17
+ r as default,
18
+ c as excerpt,
19
+ s as heading,
20
+ n as pickup,
21
+ a as tag,
22
+ e as thumbnail
23
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./Grid.vue2.js";
2
+ import o from "./Grid.vue3.js";
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = {
5
+ $style: o
6
+ }, f = /* @__PURE__ */ r(s, [["__cssModules", t]]);
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,114 @@
1
+ import { defineComponent as d, openBlock as l, createBlock as i, normalizeClass as a, withCtx as g, createVNode as r, createElementVNode as y, unref as s, createCommentVNode as o } from "vue";
2
+ import { returnAuthor as n } from "../../../scripts/utils.js";
3
+ import u from "../Parts/CardContainer.vue.js";
4
+ import f from "../Parts/ThumbnailImage.vue.js";
5
+ import h from "../Parts/AuthorInfo.vue.js";
6
+ import k from "../Parts/CardHeading.vue.js";
7
+ import $ from "../Parts/CategoryList.vue.js";
8
+ import C from "../Parts/TagList.vue.js";
9
+ import m from "../Parts/PostedDate.vue.js";
10
+ import b from "../Parts/ExcerptText.vue.js";
11
+ const A = /* @__PURE__ */ d({
12
+ __name: "Grid",
13
+ props: {
14
+ article: {},
15
+ path: {},
16
+ isPickUpItem: { type: Boolean },
17
+ postConfig: {},
18
+ categories: {},
19
+ direction: {}
20
+ },
21
+ setup(e) {
22
+ return (t, v) => e.article ? (l(), i(u, {
23
+ key: 0,
24
+ class: a([
25
+ t.$style.container,
26
+ { [t.$style.pickup]: e.isPickUpItem },
27
+ t.$style[e.direction]
28
+ ]),
29
+ path: e.path
30
+ }, {
31
+ default: g(() => {
32
+ var c;
33
+ return [
34
+ r(f, {
35
+ article: e.article,
36
+ aspectRatio: {
37
+ desktop: e.isPickUpItem ? "21/9" : "4/3",
38
+ tablet: e.isPickUpItem ? "21/9" : "4/3",
39
+ mobile: "4/3"
40
+ },
41
+ class: a(t.$style.thumbnail),
42
+ style: { "grid-area": "thumbnail" }
43
+ }, null, 8, ["article", "aspectRatio", "class"]),
44
+ y("div", {
45
+ class: a(t.$style.date),
46
+ style: { "grid-area": "date" }
47
+ }, [
48
+ r(m, {
49
+ date: e.article.date,
50
+ formatString: "M.d",
51
+ color: "var(--white)",
52
+ fontWeight: "bold"
53
+ }, null, 8, ["date"]),
54
+ r(m, {
55
+ date: e.article.date,
56
+ formatString: "yyyy",
57
+ color: "var(--white)",
58
+ fontWeight: "bold"
59
+ }, null, 8, ["date"])
60
+ ], 2),
61
+ r(k, {
62
+ heading: e.article.title.rendered,
63
+ class: a(t.$style.heading),
64
+ fontSize: e.isPickUpItem ? "large" : "medium",
65
+ color: e.isPickUpItem && e.direction === "horizontal" ? "var(--white)" : "var(--text-color)",
66
+ style: { "grid-area": "heading" }
67
+ }, null, 8, ["heading", "class", "fontSize", "color"]),
68
+ r(b, {
69
+ excerpt: e.article.excerpt.rendered,
70
+ class: a(t.$style.excerpt),
71
+ row: 2,
72
+ fontSize: "small",
73
+ style: { "grid-area": "excerpt" }
74
+ }, null, 8, ["excerpt", "class"]),
75
+ e.postConfig.author && s(n)(e.article) ? (l(), i(h, {
76
+ key: 0,
77
+ avatarUrls: (c = s(n)(e.article)) == null ? void 0 : c.avatar_urls,
78
+ thumbnail: {
79
+ size: "large",
80
+ shape: "square"
81
+ },
82
+ class: a(t.$style.author),
83
+ style: { "grid-area": "author" }
84
+ }, null, 8, ["avatarUrls", "class"])) : o("", !0),
85
+ e.postConfig.category && e.article.categories ? (l(), i($, {
86
+ key: 1,
87
+ categoryIds: e.article.categories,
88
+ categoryData: e.categories,
89
+ label: {
90
+ color: "var(--gray)",
91
+ fontSize: "smaller"
92
+ },
93
+ class: a(t.$style.category),
94
+ style: { "grid-area": "category" }
95
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : o("", !0),
96
+ e.postConfig.tag ? (l(), i(C, {
97
+ key: 2,
98
+ article: e.article,
99
+ label: {
100
+ color: "var(--gray)",
101
+ fontSize: "smaller"
102
+ },
103
+ class: a(t.$style.tag),
104
+ style: { "grid-area": "tag" }
105
+ }, null, 8, ["article", "class"])) : o("", !0)
106
+ ];
107
+ }),
108
+ _: 1
109
+ }, 8, ["class", "path"])) : o("", !0);
110
+ }
111
+ });
112
+ export {
113
+ A as default
114
+ };