@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.
Files changed (177) hide show
  1. package/README.md +76 -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.d.ts +6 -1
  64. package/dist/components/ArticleList/Parts/CardHeading.vue.js +9 -0
  65. package/dist/components/ArticleList/Parts/CardHeading.vue2.js +25 -0
  66. package/dist/components/ArticleList/Parts/CardHeading.vue3.js +7 -0
  67. package/dist/components/ArticleList/Parts/CategoryList.vue.js +38 -0
  68. package/dist/components/ArticleList/Parts/CategoryList.vue2.js +4 -0
  69. package/dist/components/ArticleList/Parts/ExcerptText.vue.js +9 -0
  70. package/dist/components/ArticleList/Parts/ExcerptText.vue2.js +24 -0
  71. package/dist/components/ArticleList/Parts/ExcerptText.vue3.js +7 -0
  72. package/dist/components/ArticleList/Parts/MetadataList.vue.js +9 -0
  73. package/dist/components/ArticleList/Parts/MetadataList.vue2.js +62 -0
  74. package/dist/components/ArticleList/Parts/MetadataList.vue3.js +17 -0
  75. package/dist/components/ArticleList/Parts/NoImage.vue.js +9 -0
  76. package/dist/components/ArticleList/Parts/NoImage.vue2.js +16 -0
  77. package/dist/components/ArticleList/Parts/NoImage.vue3.js +7 -0
  78. package/dist/components/ArticleList/Parts/PostedDate.vue.js +9 -0
  79. package/dist/components/ArticleList/Parts/PostedDate.vue2.js +28 -0
  80. package/dist/components/ArticleList/Parts/PostedDate.vue3.js +7 -0
  81. package/dist/components/ArticleList/Parts/TagList.vue.js +32 -0
  82. package/dist/components/ArticleList/Parts/TagList.vue2.js +4 -0
  83. package/dist/components/ArticleList/Parts/ThumbnailImage.vue.js +9 -0
  84. package/dist/components/ArticleList/Parts/ThumbnailImage.vue2.js +50 -0
  85. package/dist/components/ArticleList/Parts/ThumbnailImage.vue3.js +7 -0
  86. package/dist/components/BasicButton.vue.js +9 -0
  87. package/dist/components/BasicButton.vue2.js +71 -0
  88. package/dist/components/BasicButton.vue3.js +11 -0
  89. package/dist/components/CheckBox.vue.d.ts +10 -2
  90. package/dist/components/CheckBox.vue.js +9 -0
  91. package/dist/components/CheckBox.vue2.js +78 -0
  92. package/dist/components/CheckBox.vue3.js +11 -0
  93. package/dist/components/CheckBoxes.vue.js +9 -0
  94. package/dist/components/CheckBoxes.vue2.js +104 -0
  95. package/dist/components/CheckBoxes.vue3.js +7 -0
  96. package/dist/components/CheckButton.vue.js +9 -0
  97. package/dist/components/CheckButton.vue2.js +54 -0
  98. package/dist/components/CheckButton.vue3.js +11 -0
  99. package/dist/components/DatePicker.vue.d.ts +9 -0
  100. package/dist/components/DatePicker.vue.js +9 -0
  101. package/dist/components/DatePicker.vue2.js +157 -0
  102. package/dist/components/DatePicker.vue3.js +17 -0
  103. package/dist/components/DateRangePicker.vue.js +9 -0
  104. package/dist/components/DateRangePicker.vue2.js +74 -0
  105. package/dist/components/DateRangePicker.vue3.js +9 -0
  106. package/dist/components/DateSelector.vue.d.ts +14 -0
  107. package/dist/components/DateSelector.vue.js +9 -0
  108. package/dist/components/DateSelector.vue2.js +194 -0
  109. package/dist/components/DateSelector.vue3.js +15 -0
  110. package/dist/components/DropdownUi.vue.d.ts +1 -0
  111. package/dist/components/DropdownUi.vue.js +9 -0
  112. package/dist/components/DropdownUi.vue2.js +65 -0
  113. package/dist/components/DropdownUi.vue3.js +15 -0
  114. package/dist/components/ErrorMessage.vue.js +9 -0
  115. package/dist/components/ErrorMessage.vue2.js +30 -0
  116. package/dist/components/ErrorMessage.vue3.js +7 -0
  117. package/dist/components/Icon/CalendarIcon.vue.js +15 -0
  118. package/dist/components/Icon/CheckIcon.vue.js +15 -0
  119. package/dist/components/Icon/CloseIcon.vue.js +15 -0
  120. package/dist/components/Icon/Folder.vue.js +15 -0
  121. package/dist/components/Icon/Image.vue.js +21 -0
  122. package/dist/components/Icon/KeyboardArrowDownIcon.vue.js +15 -0
  123. package/dist/components/Icon/Tag.vue.js +15 -0
  124. package/dist/components/InputBox.vue.js +9 -0
  125. package/dist/components/InputBox.vue2.js +62 -0
  126. package/dist/components/InputBox.vue3.js +7 -0
  127. package/dist/components/InputGroup.vue.js +17 -0
  128. package/dist/components/InputGroup.vue2.js +7 -0
  129. package/dist/components/LabeledCheckbox.vue.js +9 -0
  130. package/dist/components/LabeledCheckbox.vue2.js +60 -0
  131. package/dist/components/LabeledCheckbox.vue3.js +9 -0
  132. package/dist/components/LabeledFieldset.vue.js +9 -0
  133. package/dist/components/LabeledFieldset.vue2.js +29 -0
  134. package/dist/components/LabeledFieldset.vue3.js +11 -0
  135. package/dist/components/LoadingSpinner.vue.js +15 -0
  136. package/dist/components/ModalBox.vue.d.ts +22 -16
  137. package/dist/components/ModalBox.vue.js +9 -0
  138. package/dist/components/ModalBox.vue2.js +91 -0
  139. package/dist/components/ModalBox.vue3.js +23 -0
  140. package/dist/components/PopupBox.vue.js +9 -0
  141. package/dist/components/PopupBox.vue2.js +35 -0
  142. package/dist/components/PopupBox.vue3.js +15 -0
  143. package/dist/components/RadioButtons.vue.js +9 -0
  144. package/dist/components/RadioButtons.vue2.js +75 -0
  145. package/dist/components/RadioButtons.vue3.js +11 -0
  146. package/dist/components/SelectBox.vue.js +9 -0
  147. package/dist/components/SelectBox.vue2.js +109 -0
  148. package/dist/components/SelectBox.vue3.js +9 -0
  149. package/dist/components/SlideDownUi.vue.js +9 -0
  150. package/dist/components/SlideDownUi.vue2.js +66 -0
  151. package/dist/components/SlideDownUi.vue3.js +17 -0
  152. package/dist/components/TabUI.vue.d.ts +0 -18
  153. package/dist/components/TabUI.vue.js +9 -0
  154. package/dist/components/TabUI.vue2.js +77 -0
  155. package/dist/components/TabUI.vue3.js +9 -0
  156. package/dist/components/TextArea.vue.js +9 -0
  157. package/dist/components/TextArea.vue2.js +82 -0
  158. package/dist/components/TextArea.vue3.js +7 -0
  159. package/dist/components/TextBox.vue.js +9 -0
  160. package/dist/components/TextBox.vue2.js +76 -0
  161. package/dist/components/TextBox.vue3.js +7 -0
  162. package/dist/components/TextButton.vue.js +9 -0
  163. package/dist/components/TextButton.vue2.js +24 -0
  164. package/dist/components/TextButton.vue3.js +7 -0
  165. package/dist/components/ToggleButton.vue.d.ts +13 -10
  166. package/dist/components/ToggleButton.vue.js +9 -0
  167. package/dist/components/ToggleButton.vue2.js +96 -0
  168. package/dist/components/ToggleButton.vue3.js +13 -0
  169. package/dist/const/list-theme.js +65 -0
  170. package/dist/index.js +112 -3513
  171. package/dist/scripts/form-validation-manager.js +38 -0
  172. package/dist/scripts/unique-id.d.ts +4 -0
  173. package/dist/scripts/unique-id.js +9 -0
  174. package/dist/scripts/use-click-outside.js +13 -0
  175. package/dist/scripts/utils.js +21 -0
  176. package/dist/style.css +1 -1
  177. 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,9 @@
1
+ import s from "./Tile.vue2.js";
2
+ import o from "./Tile.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,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,11 @@
1
+ const t = "_list_h2kvz_1", s = "_fadeIn_h2kvz_1", _ = "_pickup_h2kvz_39", c = {
2
+ list: t,
3
+ fadeIn: s,
4
+ pickup: _
5
+ };
6
+ export {
7
+ c as default,
8
+ s as fadeIn,
9
+ t as list,
10
+ _ as pickup
11
+ };
@@ -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,4 @@
1
+ import f from "./Artistic.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -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,4 @@
1
+ import f from "./Entertainment.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -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,4 @@
1
+ import f from "./Gallery.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./Grid.vue2.js";
2
+ import o from "./Grid.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,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,9 @@
1
+ const s = "_list_18syb_1", t = "_fadeIn_18syb_1", e = {
2
+ list: s,
3
+ fadeIn: t
4
+ };
5
+ export {
6
+ e as default,
7
+ t as fadeIn,
8
+ s as list
9
+ };
@@ -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,4 @@
1
+ import f from "./News.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -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,4 @@
1
+ import f from "./Rounded.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Row.vue.js";
2
+ export {
3
+ f as default
4
+ };