@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
@@ -0,0 +1,174 @@
1
+ import { defineComponent as N, ref as R, computed as m, watch as q, watchEffect as V, onBeforeUnmount as F, openBlock as s, createBlock as T, normalizeClass as u, withCtx as x, createElementVNode as i, createElementBlock as d, Fragment as p, renderList as g, toDisplayString as h, createVNode as y, createCommentVNode as A } from "vue";
2
+ import { daysInMonth as O, splitDate as j } from "@geckou/ui-core";
3
+ import z from "./InputBox.vue.js";
4
+ import b from "./Icon/KeyboardArrowDownIcon.vue.js";
5
+ import H from "./TextButton.vue.js";
6
+ const L = ["value", "name", "aria-label", "required"], P = ["value"], U = ["value", "name", "aria-label", "required"], G = ["value"], J = ["value", "name", "aria-label", "required"], K = ["value"], ee = /* @__PURE__ */ N({
7
+ __name: "DateSelector",
8
+ props: {
9
+ name: {},
10
+ modelValue: {},
11
+ isRequired: { type: Boolean },
12
+ formValidationManager: { default: null },
13
+ type: { default: "date" },
14
+ minYear: { default: void 0 },
15
+ maxYear: { default: void 0 }
16
+ },
17
+ emits: ["update:modelValue"],
18
+ setup(l, { emit: B }) {
19
+ const C = B, o = l, n = R({
20
+ year: "",
21
+ month: "",
22
+ day: ""
23
+ }), M = m(() => {
24
+ const e = (/* @__PURE__ */ new Date()).getFullYear(), a = o.minYear ?? e - 100, t = o.maxYear ?? e - 14, r = Math.max(t - a + 1, 0);
25
+ return Array.from({ length: r }, (f, I) => (a + I).toString()).map((f) => ({ label: f, value: f }));
26
+ }), Y = m(() => Array.from({ length: 12 }, (e, a) => {
27
+ const t = (a + 1).toString();
28
+ return {
29
+ label: t,
30
+ value: t.padStart(2, "0")
31
+ };
32
+ })), $ = m(() => {
33
+ var t, r;
34
+ const e = Number((t = n.value) == null ? void 0 : t.month);
35
+ if (!e)
36
+ return 31;
37
+ const a = Number((r = n.value) == null ? void 0 : r.year) || 2e3;
38
+ return O(a, e);
39
+ }), D = m(() => {
40
+ const e = [], a = $.value;
41
+ for (let t = 1; t <= a; t++) {
42
+ const r = t.toString();
43
+ e.push(r);
44
+ }
45
+ return e.map((t) => ({
46
+ label: t,
47
+ value: String(t).padStart(2, "0")
48
+ }));
49
+ }), v = (e) => {
50
+ const t = e.currentTarget.firstElementChild;
51
+ t && t.click();
52
+ }, c = (e, a) => {
53
+ const t = e.target, { value: r } = t;
54
+ n.value = { ...n.value, [a]: r };
55
+ };
56
+ q($, (e) => {
57
+ const a = Number(n.value.day);
58
+ a && a > e && (n.value = { ...n.value, day: String(e).padStart(2, "0") });
59
+ });
60
+ const E = { year: "", month: "", day: "" };
61
+ V(() => {
62
+ n.value = o.modelValue ? j(o.modelValue) : { ...E };
63
+ });
64
+ const k = (e) => {
65
+ o.formValidationManager && o.formValidationManager.setValid(o.name, e);
66
+ }, S = (e) => {
67
+ const a = !!(e.year && e.month && (o.type === "month" || e.day)), t = !e.year && !e.month && !e.day;
68
+ return o.isRequired ? a : a || t;
69
+ };
70
+ return k(S(n.value)), q(
71
+ () => n.value,
72
+ (e) => {
73
+ const a = !!(e.year && e.month && (o.type === "month" || e.day)), t = !e.year && !e.month && !e.day;
74
+ if (k(S(e)), t)
75
+ C("update:modelValue", "");
76
+ else if (a) {
77
+ const r = o.type === "month" ? [e.year, e.month] : [e.year, e.month, e.day];
78
+ C("update:modelValue", r.filter(Boolean).join("-"));
79
+ } else
80
+ return;
81
+ },
82
+ { deep: !0 }
83
+ ), F(() => {
84
+ var e;
85
+ return (e = o.formValidationManager) == null ? void 0 : e.remove(o.name);
86
+ }), (e, a) => (s(), T(z, {
87
+ class: u(e.$style.date_selector)
88
+ }, {
89
+ default: x(() => [
90
+ i("div", {
91
+ class: u([e.$style.selector_wrapper]),
92
+ onClick: a[1] || (a[1] = (t) => v(t))
93
+ }, [
94
+ i("select", {
95
+ value: n.value.year,
96
+ name: `${l.name}-year`,
97
+ "aria-label": `${l.name}の年`,
98
+ required: l.isRequired,
99
+ class: u(e.$style.year),
100
+ onChange: a[0] || (a[0] = (t) => c(t, "year"))
101
+ }, [
102
+ a[7] || (a[7] = i("option", {
103
+ disabled: "",
104
+ selected: "",
105
+ value: ""
106
+ }, "年", -1)),
107
+ (s(!0), d(p, null, g(M.value, (t) => (s(), d("option", {
108
+ key: t.value,
109
+ value: t.value
110
+ }, h(t.label), 9, P))), 128))
111
+ ], 42, L),
112
+ y(b)
113
+ ], 2),
114
+ i("div", {
115
+ class: u([e.$style.selector_wrapper]),
116
+ onClick: a[3] || (a[3] = (t) => v(t))
117
+ }, [
118
+ i("select", {
119
+ value: n.value.month,
120
+ name: `${l.name}-month`,
121
+ "aria-label": `${l.name}の月`,
122
+ required: l.isRequired,
123
+ onChange: a[2] || (a[2] = (t) => c(t, "month"))
124
+ }, [
125
+ a[8] || (a[8] = i("option", {
126
+ disabled: "",
127
+ selected: "",
128
+ value: ""
129
+ }, "月", -1)),
130
+ (s(!0), d(p, null, g(Y.value, (t) => (s(), d("option", {
131
+ key: t.value,
132
+ value: t.value
133
+ }, h(t.label), 9, G))), 128))
134
+ ], 40, U),
135
+ y(b)
136
+ ], 2),
137
+ l.type === "date" ? (s(), d("div", {
138
+ key: 0,
139
+ class: u([e.$style.selector_wrapper]),
140
+ onClick: a[5] || (a[5] = (t) => v(t))
141
+ }, [
142
+ i("select", {
143
+ value: n.value.day,
144
+ name: `${l.name}-day`,
145
+ "aria-label": `${l.name}の日`,
146
+ required: l.isRequired,
147
+ onChange: a[4] || (a[4] = (t) => c(t, "day"))
148
+ }, [
149
+ a[9] || (a[9] = i("option", {
150
+ disabled: "",
151
+ selected: "",
152
+ value: ""
153
+ }, "日", -1)),
154
+ (s(!0), d(p, null, g(D.value, (t) => (s(), d("option", {
155
+ key: t.value,
156
+ value: t.value
157
+ }, h(t.label), 9, K))), 128))
158
+ ], 40, J),
159
+ y(b)
160
+ ], 2)) : A("", !0),
161
+ y(H, {
162
+ text: "削除",
163
+ variant: "caution",
164
+ class: u(e.$style.delete_button),
165
+ onClick: a[6] || (a[6] = (t) => n.value = { year: "", month: "", day: "" })
166
+ }, null, 8, ["class"])
167
+ ]),
168
+ _: 1
169
+ }, 8, ["class"]));
170
+ }
171
+ });
172
+ export {
173
+ ee as default
174
+ };
@@ -0,0 +1,13 @@
1
+ const e = "_date_selector_kckhg_1", t = "_selector_wrapper_kckhg_11", _ = "_year_kckhg_37", r = "_delete_button_kckhg_41", c = {
2
+ date_selector: e,
3
+ selector_wrapper: t,
4
+ year: _,
5
+ delete_button: r
6
+ };
7
+ export {
8
+ e as date_selector,
9
+ c as default,
10
+ r as delete_button,
11
+ t as selector_wrapper,
12
+ _ as year
13
+ };
@@ -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
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as y, ref as v, computed as f, onMounted as S, onBeforeUnmount as h, watch as m, openBlock as E, createElementBlock as x, normalizeClass as B, normalizeStyle as _, renderSlot as L } from "vue";
2
+ import { INPUT_BOX_DEFAULT_STYLES as k } from "@geckou/ui-core";
3
+ const g = /* @__PURE__ */ y({
4
+ __name: "InputBox",
5
+ props: {
6
+ cssStyle: {},
7
+ isErrored: { type: Boolean },
8
+ isDisabled: { type: Boolean }
9
+ },
10
+ setup(p) {
11
+ const a = p, r = v(null), n = f(() => ({
12
+ ...k,
13
+ ...a.cssStyle ?? {}
14
+ })), u = f(
15
+ () => n.value[t.value] ?? n.value.default
16
+ ), t = v("default"), b = (e) => e.length === 0 ? t.value = "default" : e.every((l) => l.matches(":disabled")) ? t.value = "disabled" : e.some((l) => l.matches(":focus")) ? t.value = "focus" : a.isErrored || e.some((l) => l.matches(":invalid")) ? t.value = "error" : e.every((l) => l.value !== "") ? t.value = "valid" : t.value = "default", o = () => {
17
+ var e;
18
+ b(
19
+ Array.from(
20
+ ((e = r.value) == null ? void 0 : e.querySelectorAll(
21
+ "input, textarea, select"
22
+ )) ?? []
23
+ )
24
+ );
25
+ };
26
+ let s = null;
27
+ return S(() => {
28
+ r.value && (s = new MutationObserver(o), s.observe(r.value, { childList: !0, subtree: !0 }), r.value.addEventListener("focusin", o, !0), r.value.addEventListener("blur", o, !0));
29
+ }), h(() => {
30
+ s == null || s.disconnect(), s = null, r.value && (r.value.removeEventListener("focusin", o, !0), r.value.removeEventListener("blur", o, !0));
31
+ }), m(
32
+ () => a.isDisabled,
33
+ () => t.value = a.isDisabled ? "disabled" : "default",
34
+ { immediate: !0 }
35
+ ), m(
36
+ () => a.isErrored,
37
+ () => {
38
+ a.isDisabled || o();
39
+ }
40
+ ), (e, l) => {
41
+ var i, d, c;
42
+ return E(), x("div", {
43
+ ref_key: "inputBox",
44
+ ref: r,
45
+ class: B(e.$style.input_box),
46
+ style: _({
47
+ "--text-color": u.value.textColor,
48
+ "--placeholder-color": u.value.placeholderColor,
49
+ "--background-color": u.value.backgroundColor,
50
+ "--border-style": `0 0 0 ${((i = u.value.border) == null ? void 0 : i.size) || "1px"} ${(d = u.value.border) == null ? void 0 : d.color} inset`,
51
+ "--radius-size": ((c = u.value.border) == null ? void 0 : c.radius) || ".25rem",
52
+ "--box-shadow": u.value.boxShadow || "0 0 0 0 rgba(0, 0, 0, 0)"
53
+ })
54
+ }, [
55
+ L(e.$slots, "default")
56
+ ], 6);
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ g as default
62
+ };
@@ -0,0 +1,7 @@
1
+ const t = "_input_box_4lok0_1", o = {
2
+ input_box: t
3
+ };
4
+ export {
5
+ o as default,
6
+ t as input_box
7
+ };
@@ -0,0 +1,17 @@
1
+ import { openBlock as o, createElementBlock as s, normalizeClass as r, renderSlot as t } from "vue";
2
+ import l from "./InputGroup.vue2.js";
3
+ import n from "../_virtual/_plugin-vue_export-helper.js";
4
+ const c = {};
5
+ function p(e, a) {
6
+ return o(), s("div", {
7
+ class: r(e.$style.input_group)
8
+ }, [
9
+ t(e.$slots, "default")
10
+ ], 2);
11
+ }
12
+ const u = {
13
+ $style: l
14
+ }, d = /* @__PURE__ */ n(c, [["render", p], ["__cssModules", u]]);
15
+ export {
16
+ d as default
17
+ };
@@ -0,0 +1,7 @@
1
+ const t = "_input_group_7evrk_1", p = {
2
+ input_group: t
3
+ };
4
+ export {
5
+ p as default,
6
+ t as input_group
7
+ };
@@ -0,0 +1,9 @@
1
+ import o from "./LabeledCheckbox.vue2.js";
2
+ import s from "./LabeledCheckbox.vue3.js";
3
+ import e from "../_virtual/_plugin-vue_export-helper.js";
4
+ const t = {
5
+ $style: s
6
+ }, f = /* @__PURE__ */ e(o, [["__cssModules", t]]);
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,60 @@
1
+ import { defineComponent as k, computed as r, openBlock as D, createElementBlock as C, normalizeClass as u, createVNode as p, unref as m, createElementVNode as S, normalizeStyle as v, toDisplayString as V } from "vue";
2
+ import x from "./CheckBox.vue.js";
3
+ import { nextUniqueId as B } from "../scripts/unique-id.js";
4
+ import { COLOR as o } from "@geckou/ui-core";
5
+ const h = ["id"], E = /* @__PURE__ */ k({
6
+ __name: "LabeledCheckbox",
7
+ props: {
8
+ name: {},
9
+ label: {},
10
+ value: { default: void 0 },
11
+ modelValue: { type: Boolean },
12
+ isDisabled: { type: Boolean },
13
+ cssStyle: { default: void 0 },
14
+ isDisableAnimation: { type: Boolean }
15
+ },
16
+ emits: ["update:modelValue"],
17
+ setup(e, { emit: b }) {
18
+ const y = b, l = e, i = B("labeled_check_box_label"), n = r({
19
+ get: () => l.modelValue ?? !1,
20
+ set: (a) => y("update:modelValue", a)
21
+ }), d = r(() => {
22
+ var t, s;
23
+ const a = l.isDisabled ? (t = l.cssStyle) == null ? void 0 : t.disabled : (s = l.cssStyle) == null ? void 0 : s.default;
24
+ return {
25
+ textColor: l.isDisabled ? o.darkGray : o.black,
26
+ backgroundColor: l.isDisabled ? o.darkGray : o.blue,
27
+ ...a ?? {}
28
+ };
29
+ });
30
+ return (a, t) => {
31
+ var s, c;
32
+ return D(), C("label", {
33
+ class: u(a.$style.labeled_check_box)
34
+ }, [
35
+ p(x, {
36
+ modelValue: n.value,
37
+ "onUpdate:modelValue": t[0] || (t[0] = (f) => n.value = f),
38
+ name: e.name,
39
+ value: e.value,
40
+ isDisabled: e.isDisabled,
41
+ cssStyle: e.cssStyle,
42
+ isDisableAnimation: e.isDisableAnimation,
43
+ ariaLabelledBy: m(i),
44
+ style: { "pointer-events": "none" }
45
+ }, null, 8, ["modelValue", "name", "value", "isDisabled", "cssStyle", "isDisableAnimation", "ariaLabelledBy"]),
46
+ S("span", {
47
+ id: m(i),
48
+ class: u(a.$style.label),
49
+ style: v({
50
+ "--text-color": (s = d.value) == null ? void 0 : s.textColor,
51
+ "--checked-color": (c = d.value) == null ? void 0 : c.backgroundColor
52
+ })
53
+ }, V(e.label), 15, h)
54
+ ], 2);
55
+ };
56
+ }
57
+ });
58
+ export {
59
+ E as default
60
+ };
@@ -0,0 +1,9 @@
1
+ const e = "_labeled_check_box_ck3yh_1", l = "_label_ck3yh_1", _ = {
2
+ labeled_check_box: e,
3
+ label: l
4
+ };
5
+ export {
6
+ _ as default,
7
+ l as label,
8
+ e as labeled_check_box
9
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./LabeledFieldset.vue2.js";
2
+ import o from "./LabeledFieldset.vue3.js";
3
+ import e from "../_virtual/_plugin-vue_export-helper.js";
4
+ const t = {
5
+ $style: o
6
+ }, c = /* @__PURE__ */ e(s, [["__cssModules", t]]);
7
+ export {
8
+ c as default
9
+ };