@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,74 @@
1
+ import { defineComponent as R, computed as i, watch as z, onBeforeUnmount as E, openBlock as b, createElementBlock as q, normalizeClass as c, createVNode as r, createElementVNode as x, unref as k } from "vue";
2
+ import { MESSAGES as B } from "@geckou/ui-core";
3
+ import g from "./DatePicker.vue.js";
4
+ import S from "./ErrorMessage.vue.js";
5
+ const A = /* @__PURE__ */ R({
6
+ __name: "DateRangePicker",
7
+ props: {
8
+ name: {},
9
+ modelValue: { default: () => ({ start: "", end: "" }) },
10
+ isDisabled: { type: Boolean, default: !1 },
11
+ isRequired: { type: Boolean, default: !1 },
12
+ formValidationManager: { default: null },
13
+ minDate: { default: "" },
14
+ maxDate: { default: "" },
15
+ size: { default: "medium" },
16
+ type: { default: "date" }
17
+ },
18
+ emits: ["update:modelValue"],
19
+ setup(e, { emit: M }) {
20
+ const u = M, t = e, l = i(() => t.modelValue.start), n = i(() => t.modelValue.end), s = i(
21
+ () => !(l.value && n.value && l.value > n.value)
22
+ ), f = i(() => `${t.name}Range`);
23
+ z(
24
+ [s, f],
25
+ ([a, d], m) => {
26
+ var V, D;
27
+ const o = m == null ? void 0 : m[1];
28
+ o && o !== d && ((V = t.formValidationManager) == null || V.remove(o)), (D = t.formValidationManager) == null || D.setValid(d, a);
29
+ },
30
+ { immediate: !0 }
31
+ ), E(() => {
32
+ var a;
33
+ return (a = t.formValidationManager) == null ? void 0 : a.remove(f.value);
34
+ });
35
+ const v = (a) => u("update:modelValue", { start: a ?? "", end: n.value }), y = (a) => u("update:modelValue", { start: l.value, end: a ?? "" });
36
+ return (a, d) => (b(), q("div", {
37
+ class: c(a.$style.date_range_picker)
38
+ }, [
39
+ r(g, {
40
+ name: `${e.name}Start`,
41
+ modelValue: l.value,
42
+ isDisabled: e.isDisabled,
43
+ isRequired: e.isRequired,
44
+ formValidationManager: e.formValidationManager,
45
+ minDate: e.minDate,
46
+ maxDate: n.value || e.maxDate,
47
+ size: e.size,
48
+ type: e.type,
49
+ "onUpdate:modelValue": v
50
+ }, null, 8, ["name", "modelValue", "isDisabled", "isRequired", "formValidationManager", "minDate", "maxDate", "size", "type"]),
51
+ x("div", {
52
+ class: c(a.$style.range)
53
+ }, "〜", 2),
54
+ r(g, {
55
+ name: `${e.name}End`,
56
+ modelValue: n.value,
57
+ isDisabled: e.isDisabled,
58
+ isRequired: e.isRequired,
59
+ formValidationManager: e.formValidationManager,
60
+ minDate: l.value || e.minDate,
61
+ maxDate: e.maxDate,
62
+ size: e.size,
63
+ type: e.type,
64
+ "onUpdate:modelValue": y
65
+ }, null, 8, ["name", "modelValue", "isDisabled", "isRequired", "formValidationManager", "minDate", "maxDate", "size", "type"]),
66
+ r(S, {
67
+ errorMessages: s.value ? void 0 : [k(B).startAfterEnd]
68
+ }, null, 8, ["errorMessages"])
69
+ ], 2));
70
+ }
71
+ });
72
+ export {
73
+ A as default
74
+ };
@@ -0,0 +1,9 @@
1
+ const e = "_date_range_picker_797j1_1", _ = "_range_797j1_9", a = {
2
+ date_range_picker: e,
3
+ range: _
4
+ };
5
+ export {
6
+ e as date_range_picker,
7
+ a as default,
8
+ _ as range
9
+ };
@@ -5,6 +5,16 @@ type __VLS_Props = {
5
5
  isRequired?: boolean;
6
6
  formValidationManager?: FormValidationManager | null;
7
7
  type?: 'date' | 'month';
8
+ /** 選べる年の下限・上限。既定は「今年 -100 〜 今年 -14」(生年月日向け) */
9
+ minYear?: number;
10
+ maxYear?: number;
11
+ /**
12
+ * 年月日それぞれの読み上げ名の土台。「の年」「の月」「の日」を後ろに繋げる。
13
+ * 可視ラベルがあるなら ariaLabelledBy でその要素を指すこと。
14
+ * どちらも無いときだけ name を使う(機械名でも無いよりはマシ)
15
+ */
16
+ ariaLabel?: string;
17
+ ariaLabelledBy?: string;
8
18
  };
9
19
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
20
  "update:modelValue": (newValue: string) => any;
@@ -12,6 +22,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
12
22
  "onUpdate:modelValue"?: ((newValue: string) => any) | undefined;
13
23
  }>, {
14
24
  type: "date" | "month";
25
+ ariaLabel: string;
26
+ ariaLabelledBy: string;
15
27
  formValidationManager: FormValidationManager | null;
28
+ minYear: number;
29
+ maxYear: number;
16
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
31
  export default _default;
@@ -0,0 +1,9 @@
1
+ import o from "./DateSelector.vue2.js";
2
+ import s from "./DateSelector.vue3.js";
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const e = {
5
+ $style: s
6
+ }, f = /* @__PURE__ */ t(o, [["__cssModules", e]]);
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,194 @@
1
+ import { defineComponent as T, ref as x, computed as y, watch as M, watchEffect as A, onBeforeUnmount as O, openBlock as s, createBlock as j, normalizeClass as u, withCtx as U, createElementVNode as o, createElementBlock as d, Fragment as h, renderList as $, toDisplayString as B, createVNode as c, createCommentVNode as Y, unref as k } from "vue";
2
+ import { daysInMonth as z, splitDate as H } from "@geckou/ui-core";
3
+ import P from "./InputBox.vue.js";
4
+ import C from "./Icon/KeyboardArrowDownIcon.vue.js";
5
+ import G from "./TextButton.vue.js";
6
+ import { nextUniqueId as J } from "../scripts/unique-id.js";
7
+ const K = ["value", "name", "aria-label", "aria-labelledby", "required"], Q = ["value"], W = ["value", "name", "aria-label", "aria-labelledby", "required"], X = ["value"], Z = ["value", "name", "aria-label", "aria-labelledby", "required"], w = ["value"], _ = ["id"], ee = ["id"], te = ["id"], de = /* @__PURE__ */ T({
8
+ __name: "DateSelector",
9
+ props: {
10
+ name: {},
11
+ modelValue: {},
12
+ isRequired: { type: Boolean },
13
+ formValidationManager: { default: null },
14
+ type: { default: "date" },
15
+ minYear: { default: void 0 },
16
+ maxYear: { default: void 0 },
17
+ ariaLabel: { default: void 0 },
18
+ ariaLabelledBy: { default: void 0 }
19
+ },
20
+ emits: ["update:modelValue"],
21
+ setup(i, { emit: D }) {
22
+ const q = D, l = i, m = J("date_selector_unit"), f = (e) => l.ariaLabelledBy ? void 0 : `${l.ariaLabel ?? l.name}の${e}`, v = (e) => l.ariaLabelledBy ? `${l.ariaLabelledBy} ${m}_${e}` : void 0, n = x({
23
+ year: "",
24
+ month: "",
25
+ day: ""
26
+ }), E = y(() => {
27
+ const e = (/* @__PURE__ */ new Date()).getFullYear(), a = l.minYear ?? e - 100, t = l.maxYear ?? e - 14, r = Math.max(t - a + 1, 0);
28
+ return Array.from({ length: r }, (g, F) => (a + F).toString()).map((g) => ({ label: g, value: g }));
29
+ }), N = y(() => Array.from({ length: 12 }, (e, a) => {
30
+ const t = (a + 1).toString();
31
+ return {
32
+ label: t,
33
+ value: t.padStart(2, "0")
34
+ };
35
+ })), S = y(() => {
36
+ var t, r;
37
+ const e = Number((t = n.value) == null ? void 0 : t.month);
38
+ if (!e)
39
+ return 31;
40
+ const a = Number((r = n.value) == null ? void 0 : r.year) || 2e3;
41
+ return z(a, e);
42
+ }), R = y(() => {
43
+ const e = [], a = S.value;
44
+ for (let t = 1; t <= a; t++) {
45
+ const r = t.toString();
46
+ e.push(r);
47
+ }
48
+ return e.map((t) => ({
49
+ label: t,
50
+ value: String(t).padStart(2, "0")
51
+ }));
52
+ }), b = (e) => {
53
+ const t = e.currentTarget.firstElementChild;
54
+ t && t.click();
55
+ }, p = (e, a) => {
56
+ const t = e.target, { value: r } = t;
57
+ n.value = { ...n.value, [a]: r };
58
+ };
59
+ M(S, (e) => {
60
+ const a = Number(n.value.day);
61
+ a && a > e && (n.value = { ...n.value, day: String(e).padStart(2, "0") });
62
+ });
63
+ const V = { year: "", month: "", day: "" };
64
+ A(() => {
65
+ n.value = l.modelValue ? H(l.modelValue) : { ...V };
66
+ });
67
+ const L = (e) => {
68
+ l.formValidationManager && l.formValidationManager.setValid(l.name, e);
69
+ }, I = (e) => {
70
+ const a = !!(e.year && e.month && (l.type === "month" || e.day)), t = !e.year && !e.month && !e.day;
71
+ return l.isRequired ? a : a || t;
72
+ };
73
+ return L(I(n.value)), M(
74
+ () => n.value,
75
+ (e) => {
76
+ const a = !!(e.year && e.month && (l.type === "month" || e.day)), t = !e.year && !e.month && !e.day;
77
+ if (L(I(e)), t)
78
+ q("update:modelValue", "");
79
+ else if (a) {
80
+ const r = l.type === "month" ? [e.year, e.month] : [e.year, e.month, e.day];
81
+ q("update:modelValue", r.filter(Boolean).join("-"));
82
+ } else
83
+ return;
84
+ },
85
+ { deep: !0 }
86
+ ), O(() => {
87
+ var e;
88
+ return (e = l.formValidationManager) == null ? void 0 : e.remove(l.name);
89
+ }), (e, a) => (s(), j(P, {
90
+ class: u(e.$style.date_selector)
91
+ }, {
92
+ default: U(() => [
93
+ o("div", {
94
+ class: u([e.$style.selector_wrapper]),
95
+ onClick: a[1] || (a[1] = (t) => b(t))
96
+ }, [
97
+ o("select", {
98
+ value: n.value.year,
99
+ name: `${i.name}-year`,
100
+ "aria-label": f("年"),
101
+ "aria-labelledby": v("年"),
102
+ required: i.isRequired,
103
+ class: u(e.$style.year),
104
+ onChange: a[0] || (a[0] = (t) => p(t, "year"))
105
+ }, [
106
+ a[7] || (a[7] = o("option", {
107
+ disabled: "",
108
+ selected: "",
109
+ value: ""
110
+ }, "年", -1)),
111
+ (s(!0), d(h, null, $(E.value, (t) => (s(), d("option", {
112
+ key: t.value,
113
+ value: t.value
114
+ }, B(t.label), 9, Q))), 128))
115
+ ], 42, K),
116
+ c(C)
117
+ ], 2),
118
+ o("div", {
119
+ class: u([e.$style.selector_wrapper]),
120
+ onClick: a[3] || (a[3] = (t) => b(t))
121
+ }, [
122
+ o("select", {
123
+ value: n.value.month,
124
+ name: `${i.name}-month`,
125
+ "aria-label": f("月"),
126
+ "aria-labelledby": v("月"),
127
+ required: i.isRequired,
128
+ onChange: a[2] || (a[2] = (t) => p(t, "month"))
129
+ }, [
130
+ a[8] || (a[8] = o("option", {
131
+ disabled: "",
132
+ selected: "",
133
+ value: ""
134
+ }, "月", -1)),
135
+ (s(!0), d(h, null, $(N.value, (t) => (s(), d("option", {
136
+ key: t.value,
137
+ value: t.value
138
+ }, B(t.label), 9, X))), 128))
139
+ ], 40, W),
140
+ c(C)
141
+ ], 2),
142
+ i.type === "date" ? (s(), d("div", {
143
+ key: 0,
144
+ class: u([e.$style.selector_wrapper]),
145
+ onClick: a[5] || (a[5] = (t) => b(t))
146
+ }, [
147
+ o("select", {
148
+ value: n.value.day,
149
+ name: `${i.name}-day`,
150
+ "aria-label": f("日"),
151
+ "aria-labelledby": v("日"),
152
+ required: i.isRequired,
153
+ onChange: a[4] || (a[4] = (t) => p(t, "day"))
154
+ }, [
155
+ a[9] || (a[9] = o("option", {
156
+ disabled: "",
157
+ selected: "",
158
+ value: ""
159
+ }, "日", -1)),
160
+ (s(!0), d(h, null, $(R.value, (t) => (s(), d("option", {
161
+ key: t.value,
162
+ value: t.value
163
+ }, B(t.label), 9, w))), 128))
164
+ ], 40, Z),
165
+ c(C)
166
+ ], 2)) : Y("", !0),
167
+ i.ariaLabelledBy ? (s(), d("span", {
168
+ key: 1,
169
+ class: u(e.$style.unit_labels)
170
+ }, [
171
+ o("span", {
172
+ id: `${k(m)}_年`
173
+ }, "の年", 8, _),
174
+ o("span", {
175
+ id: `${k(m)}_月`
176
+ }, "の月", 8, ee),
177
+ o("span", {
178
+ id: `${k(m)}_日`
179
+ }, "の日", 8, te)
180
+ ], 2)) : Y("", !0),
181
+ c(G, {
182
+ text: "削除",
183
+ variant: "caution",
184
+ class: u(e.$style.delete_button),
185
+ onClick: a[6] || (a[6] = (t) => n.value = { year: "", month: "", day: "" })
186
+ }, null, 8, ["class"])
187
+ ]),
188
+ _: 1
189
+ }, 8, ["class"]));
190
+ }
191
+ });
192
+ export {
193
+ de as default
194
+ };
@@ -0,0 +1,15 @@
1
+ const e = "_unit_labels_pa04y_1", t = "_date_selector_pa04y_13", _ = "_selector_wrapper_pa04y_23", a = "_year_pa04y_49", l = "_delete_button_pa04y_53", s = {
2
+ unit_labels: e,
3
+ date_selector: t,
4
+ selector_wrapper: _,
5
+ year: a,
6
+ delete_button: l
7
+ };
8
+ export {
9
+ t as date_selector,
10
+ s as default,
11
+ l as delete_button,
12
+ _ as selector_wrapper,
13
+ e as unit_labels,
14
+ a as year
15
+ };
@@ -19,6 +19,7 @@ declare function __VLS_template(): {
19
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
20
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
21
21
  isContentsOpened: import('vue').Ref<boolean, boolean>;
22
+ close: () => boolean;
22
23
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
24
  isDisabled: boolean;
24
25
  isHiddenArrow: boolean;
@@ -0,0 +1,9 @@
1
+ import o from "./DropdownUi.vue2.js";
2
+ import s from "./DropdownUi.vue3.js";
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const r = {
5
+ $style: s
6
+ }, f = /* @__PURE__ */ t(o, [["__cssModules", r]]);
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,65 @@
1
+ import { defineComponent as h, ref as o, onMounted as k, onUpdated as $, openBlock as a, createElementBlock as u, normalizeClass as l, createElementVNode as f, normalizeStyle as v, withModifiers as p, renderSlot as m, createBlock as w, createCommentVNode as b } from "vue";
2
+ import C from "./Icon/KeyboardArrowDownIcon.vue.js";
3
+ import { useClickOutside as D } from "../scripts/use-click-outside.js";
4
+ const B = ["disabled", "aria-expanded"], z = ["inert"], E = /* @__PURE__ */ h({
5
+ __name: "DropdownUi",
6
+ props: {
7
+ isHiddenArrow: { type: Boolean, default: !1 },
8
+ contentAlignment: { default: "left" },
9
+ isDisabled: { type: Boolean, default: !1 },
10
+ contentsWidth: { default: "auto" }
11
+ },
12
+ setup(n, { expose: y }) {
13
+ const t = o(!1), i = o(null), r = o(null), c = o(0), g = () => t.value = !t.value, s = () => t.value = !1, d = () => {
14
+ const e = r.value;
15
+ e && (c.value = e.clientHeight);
16
+ };
17
+ return D(i, () => s()), k(() => d()), $(() => d()), y({ isContentsOpened: t, close: s }), (e, A) => (a(), u("div", {
18
+ ref_key: "root",
19
+ ref: i,
20
+ class: l(e.$style.drop_down_box)
21
+ }, [
22
+ f("button", {
23
+ class: l(e.$style.button),
24
+ disabled: n.isDisabled,
25
+ "aria-expanded": t.value,
26
+ type: "button",
27
+ style: v({
28
+ "--trigger-color": n.isDisabled || !e.$slots.contents ? "var(--text-color)" : "var(--link-color)",
29
+ cursor: n.isDisabled || !e.$slots.contents ? "auto" : "pointer"
30
+ }),
31
+ onClick: p(g, ["prevent"])
32
+ }, [
33
+ m(e.$slots, "trigger"),
34
+ n.isHiddenArrow || !e.$slots.contents || n.isDisabled ? b("", !0) : (a(), w(C, {
35
+ key: 0,
36
+ class: l([e.$style.icon, { [e.$style.open]: t.value }])
37
+ }, null, 8, ["class"]))
38
+ ], 14, B),
39
+ e.$slots.contents ? (a(), u("div", {
40
+ key: 0,
41
+ class: l(e.$style.contents),
42
+ inert: !t.value || void 0,
43
+ style: v({
44
+ boxShadow: t.value ? "var(--box-shadow)" : "none",
45
+ blockSize: t.value ? `${c.value}px` : 0,
46
+ inlineSize: n.contentsWidth,
47
+ right: n.contentAlignment === "right" ? "calc(var(--bv) * -0.5)" : "auto",
48
+ left: n.contentAlignment === "left" ? "calc(var(--bv) * -0.5)" : "auto",
49
+ zIndex: "2"
50
+ })
51
+ }, [
52
+ f("div", {
53
+ ref_key: "contents",
54
+ ref: r,
55
+ onClick: s
56
+ }, [
57
+ m(e.$slots, "contents")
58
+ ], 512)
59
+ ], 14, z)) : b("", !0)
60
+ ], 2));
61
+ }
62
+ });
63
+ export {
64
+ E as default
65
+ };
@@ -0,0 +1,15 @@
1
+ const o = "_drop_down_box_1azx1_1", n = "_button_1azx1_5", t = "_icon_1azx1_14", _ = "_open_1azx1_23", c = "_contents_1azx1_27", s = {
2
+ drop_down_box: o,
3
+ button: n,
4
+ icon: t,
5
+ open: _,
6
+ contents: c
7
+ };
8
+ export {
9
+ n as button,
10
+ c as contents,
11
+ s as default,
12
+ o as drop_down_box,
13
+ t as icon,
14
+ _ as open
15
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./ErrorMessage.vue2.js";
2
+ import o from "./ErrorMessage.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,30 @@
1
+ import { defineComponent as c, withDirectives as i, openBlock as r, createElementBlock as o, normalizeClass as m, normalizeStyle as u, unref as g, Fragment as f, renderList as y, toDisplayString as d, vShow as C } from "vue";
2
+ import { COLOR as S } from "@geckou/ui-core";
3
+ const v = /* @__PURE__ */ c({
4
+ __name: "ErrorMessage",
5
+ props: {
6
+ cssStyle: {},
7
+ errorMessages: {}
8
+ },
9
+ setup(e) {
10
+ const { red: n } = S;
11
+ return (a, k) => {
12
+ var s, t;
13
+ return i((r(), o("div", {
14
+ role: "alert",
15
+ class: m(a.$style.error_messages),
16
+ style: u({
17
+ "--error-text-color": ((s = e.cssStyle) == null ? void 0 : s.textColor) || "#fff",
18
+ "--error-background-color": ((t = e.cssStyle) == null ? void 0 : t.backgroundColor) || g(n)
19
+ })
20
+ }, [
21
+ (r(!0), o(f, null, y(e.errorMessages, (l) => (r(), o("span", { key: l }, d(l), 1))), 128))
22
+ ], 6)), [
23
+ [C, e.errorMessages && e.errorMessages.length]
24
+ ]);
25
+ };
26
+ }
27
+ });
28
+ export {
29
+ v as default
30
+ };
@@ -0,0 +1,7 @@
1
+ const s = "_error_messages_basoi_1", e = {
2
+ error_messages: s
3
+ };
4
+ export {
5
+ e as default,
6
+ s as error_messages
7
+ };
@@ -0,0 +1,15 @@
1
+ import { openBlock as T, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, r = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 -960 960 960"
6
+ };
7
+ function m(v, q) {
8
+ return T(), e("svg", r, [...q[0] || (q[0] = [
9
+ t("path", { d: "M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z" }, null, -1)
10
+ ])]);
11
+ }
12
+ const h = /* @__PURE__ */ o(n, [["render", m]]);
13
+ export {
14
+ h as default
15
+ };
@@ -0,0 +1,15 @@
1
+ import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
2
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const c = {}, s = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 -960 960 960"
6
+ };
7
+ function l(m, e) {
8
+ return t(), o("svg", s, [...e[0] || (e[0] = [
9
+ n("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" }, null, -1)
10
+ ])]);
11
+ }
12
+ const p = /* @__PURE__ */ r(c, [["render", l]]);
13
+ export {
14
+ p as default
15
+ };
@@ -0,0 +1,15 @@
1
+ import { openBlock as o, createElementBlock as t, createElementVNode as n } from "vue";
2
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const s = {}, c = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 -960 960 960"
6
+ };
7
+ function l(m, e) {
8
+ return o(), t("svg", c, [...e[0] || (e[0] = [
9
+ n("path", { d: "m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" }, null, -1)
10
+ ])]);
11
+ }
12
+ const p = /* @__PURE__ */ r(s, [["render", l]]);
13
+ export {
14
+ p as default
15
+ };
@@ -0,0 +1,15 @@
1
+ import { openBlock as o, createElementBlock as t, createElementVNode as r } from "vue";
2
+ import c from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, s = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 0 24 24"
6
+ };
7
+ function l(m, e) {
8
+ return o(), t("svg", s, [...e[0] || (e[0] = [
9
+ r("path", { d: "M20 5h-9.586L8.707 3.293A.997.997 0 0 0 8 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V7c0-1.103-.897-2-2-2z" }, null, -1)
10
+ ])]);
11
+ }
12
+ const f = /* @__PURE__ */ c(n, [["render", l]]);
13
+ export {
14
+ f as default
15
+ };
@@ -0,0 +1,21 @@
1
+ import { openBlock as c, createElementBlock as o, createElementVNode as e } from "vue";
2
+ import n from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const r = {}, l = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 0 24 24"
6
+ };
7
+ function m(s, t) {
8
+ return c(), o("svg", l, [...t[0] || (t[0] = [
9
+ e("circle", {
10
+ cx: "7.499",
11
+ cy: "9.5",
12
+ r: "1.5"
13
+ }, null, -1),
14
+ e("path", { d: "m10.499 14-1.5-2-3 4h12l-4.5-6z" }, null, -1),
15
+ e("path", { d: "M19.999 4h-16c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zm-16 14V6h16l.002 12H3.999z" }, null, -1)
16
+ ])]);
17
+ }
18
+ const a = /* @__PURE__ */ n(r, [["render", m]]);
19
+ export {
20
+ a as default
21
+ };
@@ -0,0 +1,15 @@
1
+ import { openBlock as o, createElementBlock as t, createElementVNode as n } from "vue";
2
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const c = {}, s = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 -960 960 960"
6
+ };
7
+ function l(m, e) {
8
+ return o(), t("svg", s, [...e[0] || (e[0] = [
9
+ n("path", { d: "M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z" }, null, -1)
10
+ ])]);
11
+ }
12
+ const p = /* @__PURE__ */ r(c, [["render", l]]);
13
+ export {
14
+ p as default
15
+ };
@@ -0,0 +1,15 @@
1
+ import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
2
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const a = {}, c = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 0 24 24"
6
+ };
7
+ function l(s, e) {
8
+ return t(), o("svg", c, [...e[0] || (e[0] = [
9
+ n("path", { d: "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8 8a2 2 0 0 0 2.828 0l7.172-7.172a2 2 0 0 0 0-2.828l-8-8zM7 9a2 2 0 1 1 .001-4.001A2 2 0 0 1 7 9z" }, null, -1)
10
+ ])]);
11
+ }
12
+ const f = /* @__PURE__ */ r(a, [["render", l]]);
13
+ export {
14
+ f as default
15
+ };
@@ -0,0 +1,9 @@
1
+ import o from "./InputBox.vue2.js";
2
+ import s from "./InputBox.vue3.js";
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const r = {
5
+ $style: s
6
+ }, f = /* @__PURE__ */ t(o, [["__cssModules", r]]);
7
+ export {
8
+ f as default
9
+ };