@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,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_1y15f_1", l = "_label_1y15f_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
+ };
@@ -0,0 +1,29 @@
1
+ import { defineComponent as n, openBlock as s, createElementBlock as t, normalizeClass as l, createElementVNode as a, renderSlot as o, createCommentVNode as i } from "vue";
2
+ const r = ["disabled"], c = /* @__PURE__ */ n({
3
+ __name: "LabeledFieldset",
4
+ props: {
5
+ isDisabled: { type: Boolean }
6
+ },
7
+ setup(d) {
8
+ return (e, m) => (s(), t("div", {
9
+ class: l(e.$style.fieldset)
10
+ }, [
11
+ a("fieldset", { disabled: d.isDisabled }, [
12
+ e.$slots.label ? (s(), t("legend", {
13
+ key: 0,
14
+ class: l(e.$style.legend)
15
+ }, [
16
+ o(e.$slots, "label")
17
+ ], 2)) : i("", !0),
18
+ a("div", {
19
+ class: l(e.$style.input)
20
+ }, [
21
+ o(e.$slots, "default")
22
+ ], 2)
23
+ ], 8, r)
24
+ ], 2));
25
+ }
26
+ });
27
+ export {
28
+ c as default
29
+ };
@@ -0,0 +1,11 @@
1
+ const e = "_fieldset_1iro5_1", t = "_legend_1iro5_9", n = "_input_1iro5_14", i = {
2
+ fieldset: e,
3
+ legend: t,
4
+ input: n
5
+ };
6
+ export {
7
+ i as default,
8
+ e as fieldset,
9
+ n as input,
10
+ t as legend
11
+ };
@@ -0,0 +1,15 @@
1
+ import { openBlock as r, createElementBlock as e, createStaticVNode as t } from "vue";
2
+ import i from "../_virtual/_plugin-vue_export-helper.js";
3
+ const o = {}, a = {
4
+ viewBox: "0 0 24 24",
5
+ xmlns: "http://www.w3.org/2000/svg"
6
+ };
7
+ function n(l, c) {
8
+ return r(), e("svg", a, [...c[0] || (c[0] = [
9
+ t('<g><circle cx="12" cy="2.5" r="1.5" opacity=".14"></circle><circle cx="16.75" cy="3.77" r="1.5" opacity=".29"></circle><circle cx="20.23" cy="7.25" r="1.5" opacity=".43"></circle><circle cx="21.50" cy="12.00" r="1.5" opacity=".57"></circle><circle cx="20.23" cy="16.75" r="1.5" opacity=".71"></circle><circle cx="16.75" cy="20.23" r="1.5" opacity=".86"></circle><circle cx="12" cy="21.5" r="1.5"></circle><animateTransform attributeName="transform" type="rotate" calcMode="discrete" dur="0.75s" values="0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12" repeatCount="indefinite"></animateTransform></g>', 1)
10
+ ])]);
11
+ }
12
+ const y = /* @__PURE__ */ i(o, [["render", n]]);
13
+ export {
14
+ y as default
15
+ };
@@ -1,24 +1,30 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
1
+ type __VLS_Props = {
2
2
  isShown: boolean;
3
- size?: "small" | "medium" | "large";
3
+ size?: 'small' | 'medium' | 'large';
4
4
  /** header スロットを使わない場合のダイアログ名 */
5
5
  ariaLabel?: string;
6
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
- closeModal: (state: boolean) => any;
8
- }, string, import('vue').PublicProps, Readonly<{
9
- isShown: boolean;
10
- size?: "small" | "medium" | "large";
11
- /** header スロットを使わない場合のダイアログ名 */
12
- ariaLabel?: string;
13
- }> & Readonly<{
14
- onCloseModal?: ((state: boolean) => any) | undefined;
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ header?(_: {}): any;
11
+ default?(_: {}): any;
12
+ footer?(_: {}): any;
13
+ };
14
+ refs: {
15
+ dialog: HTMLDivElement;
16
+ };
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ close: () => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onClose?: (() => any) | undefined;
15
24
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
16
25
  dialog: HTMLDivElement;
17
- }, HTMLDivElement>, {
18
- header?(_: {}): any;
19
- default?(_: {}): any;
20
- footer?(_: {}): any;
21
- }>;
26
+ }, HTMLDivElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
28
  export default _default;
23
29
  type __VLS_WithTemplateSlots<T, S> = T & {
24
30
  new (): {
@@ -0,0 +1,9 @@
1
+ import o from "./ModalBox.vue2.js";
2
+ import s from "./ModalBox.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,91 @@
1
+ import { defineComponent as p, ref as g, watch as $, nextTick as C, computed as E, onMounted as L, onBeforeUnmount as B, openBlock as i, createElementBlock as d, normalizeClass as o, withModifiers as I, createElementVNode as c, unref as k, renderSlot as u, createCommentVNode as w, createVNode as z } from "vue";
2
+ import { createScrollLock as M, handleTabKey as N } from "@geckou/ui-core";
3
+ import V from "./Icon/CloseIcon.vue.js";
4
+ import { nextUniqueId as q } from "../scripts/unique-id.js";
5
+ const K = ["aria-hidden", "inert"], T = ["aria-labelledby", "aria-label"], U = ["id"], H = /* @__PURE__ */ p({
6
+ __name: "ModalBox",
7
+ props: {
8
+ isShown: { type: Boolean },
9
+ size: {},
10
+ ariaLabel: {}
11
+ },
12
+ emits: ["close"],
13
+ setup(n, { emit: b }) {
14
+ const t = n, m = q("modal_header"), s = g(null), v = b, f = M(), h = (e) => f.toggle(e), a = () => v("close");
15
+ $(
16
+ () => t.isShown,
17
+ (e) => h(e)
18
+ );
19
+ let l = null;
20
+ $(
21
+ () => t.isShown,
22
+ async (e) => {
23
+ var r;
24
+ if (!e) {
25
+ l == null || l.focus(), l = null;
26
+ return;
27
+ }
28
+ l = typeof document > "u" ? null : document.activeElement, await C(), (r = s.value) == null || r.focus();
29
+ }
30
+ );
31
+ const S = E(() => !t.isShown || void 0), y = (e) => {
32
+ if (t.isShown) {
33
+ if (e.key === "Escape") {
34
+ a();
35
+ return;
36
+ }
37
+ N(s.value, e, document.activeElement);
38
+ }
39
+ };
40
+ return L(() => {
41
+ h(t.isShown), document.addEventListener("keydown", y);
42
+ }), B(() => {
43
+ f.release(), document.removeEventListener("keydown", y);
44
+ }), (e, r) => (i(), d("div", {
45
+ class: o([e.$style.overlay, { [e.$style.display]: n.isShown }]),
46
+ "aria-hidden": !n.isShown,
47
+ inert: S.value,
48
+ onClick: I(a, ["self"])
49
+ }, [
50
+ c("div", {
51
+ ref_key: "dialog",
52
+ ref: s,
53
+ role: "dialog",
54
+ "aria-modal": "true",
55
+ "aria-labelledby": e.$slots.header ? k(m) : void 0,
56
+ "aria-label": e.$slots.header ? void 0 : n.ariaLabel ?? "ダイアログ",
57
+ tabindex: -1,
58
+ class: o([e.$style.container, e.$style[n.size ?? "medium"]])
59
+ }, [
60
+ e.$slots.header ? (i(), d("header", {
61
+ key: 0,
62
+ id: k(m),
63
+ class: o(e.$style.header)
64
+ }, [
65
+ u(e.$slots, "header")
66
+ ], 10, U)) : w("", !0),
67
+ c("div", {
68
+ class: o(e.$style.contents)
69
+ }, [
70
+ u(e.$slots, "default")
71
+ ], 2),
72
+ e.$slots.footer ? (i(), d("footer", {
73
+ key: 1,
74
+ class: o(e.$style.footer)
75
+ }, [
76
+ u(e.$slots, "footer")
77
+ ], 2)) : w("", !0),
78
+ c("button", {
79
+ type: "button",
80
+ class: o(e.$style.close_button),
81
+ onClick: a
82
+ }, [
83
+ z(V)
84
+ ], 2)
85
+ ], 10, T)
86
+ ], 10, K));
87
+ }
88
+ });
89
+ export {
90
+ H as default
91
+ };
@@ -0,0 +1,23 @@
1
+ const o = "_container_1r8pd_1", t = "_small_1r8pd_13", _ = "_large_1r8pd_16", e = "_header_1r8pd_20", n = "_contents_1r8pd_34", r = "_footer_1r8pd_45", s = "_close_button_1r8pd_62", a = "_overlay_1r8pd_80", l = "_display_1r8pd_105", c = {
2
+ container: o,
3
+ small: t,
4
+ large: _,
5
+ header: e,
6
+ contents: n,
7
+ footer: r,
8
+ close_button: s,
9
+ overlay: a,
10
+ display: l
11
+ };
12
+ export {
13
+ s as close_button,
14
+ o as container,
15
+ n as contents,
16
+ c as default,
17
+ l as display,
18
+ r as footer,
19
+ e as header,
20
+ _ as large,
21
+ a as overlay,
22
+ t as small
23
+ };
@@ -0,0 +1,9 @@
1
+ import o from "./PopupBox.vue2.js";
2
+ import s from "./PopupBox.vue3.js";
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const r = {
5
+ $style: s
6
+ }, c = /* @__PURE__ */ t(o, [["__cssModules", r]]);
7
+ export {
8
+ c as default
9
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as u, ref as i, onBeforeUnmount as r, openBlock as a, createBlock as p, Teleport as f, createElementVNode as m, normalizeClass as c, renderSlot as d } from "vue";
2
+ const h = /* @__PURE__ */ u({
3
+ __name: "PopupBox",
4
+ props: {
5
+ position: { default: () => ({ x: "right", y: "top" }) }
6
+ },
7
+ setup(t, { expose: s }) {
8
+ const l = i(!1);
9
+ let e = null;
10
+ const n = () => {
11
+ l.value = !0, e !== null && clearTimeout(e), e = setTimeout(() => {
12
+ l.value = !1, e = null;
13
+ }, 3e3);
14
+ };
15
+ return r(() => {
16
+ e !== null && clearTimeout(e);
17
+ }), s({
18
+ showPopup: n
19
+ }), (o, y) => (a(), p(f, { to: "body" }, [
20
+ m("div", {
21
+ class: c([
22
+ o.$style.popup,
23
+ o.$style[`x-${t.position.x}`],
24
+ o.$style[`y-${t.position.y}`],
25
+ { [o.$style.show]: l.value }
26
+ ])
27
+ }, [
28
+ d(o.$slots, "default")
29
+ ], 2)
30
+ ]));
31
+ }
32
+ });
33
+ export {
34
+ h as default
35
+ };
@@ -0,0 +1,15 @@
1
+ const t = "_popup_1gz6t_23", _ = "_show_1gz6t_38", o = {
2
+ "x-left": "_x-left_1gz6t_1",
3
+ "x-right": "_x-right_1gz6t_4",
4
+ "x-center": "_x-center_1gz6t_7",
5
+ "y-top": "_y-top_1gz6t_12",
6
+ "y-bottom": "_y-bottom_1gz6t_15",
7
+ "y-center": "_y-center_1gz6t_18",
8
+ popup: t,
9
+ show: _
10
+ };
11
+ export {
12
+ o as default,
13
+ t as popup,
14
+ _ as show
15
+ };
@@ -0,0 +1,9 @@
1
+ import o from "./RadioButtons.vue2.js";
2
+ import s from "./RadioButtons.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,75 @@
1
+ import { defineComponent as C, ref as B, computed as y, watch as E, openBlock as u, createElementBlock as n, normalizeClass as f, Fragment as M, renderList as R, normalizeStyle as z, withDirectives as G, createElementVNode as g, unref as w, vModelRadio as x, toDisplayString as A, createVNode as N } from "vue";
2
+ import { COLOR as r, isEmptyValue as k, MESSAGES as L } from "@geckou/ui-core";
3
+ import { nextUniqueId as O } from "../scripts/unique-id.js";
4
+ import U from "./ErrorMessage.vue.js";
5
+ const $ = ["name", "value", "disabled", "required", "checked"], J = /* @__PURE__ */ C({
6
+ __name: "RadioButtons",
7
+ props: {
8
+ modelValue: {},
9
+ options: {},
10
+ name: { default: void 0 },
11
+ isDisabled: { type: Boolean },
12
+ isRequired: { type: Boolean },
13
+ cssStyle: { default: void 0 },
14
+ isDisableAnimation: { type: Boolean }
15
+ },
16
+ emits: ["update:modelValue"],
17
+ setup(s, { emit: V }) {
18
+ const D = V, e = s, S = e.name ?? O("radio_group"), i = B([]), o = y({
19
+ get: () => e.modelValue ?? "",
20
+ set: (a) => D("update:modelValue", a)
21
+ }), d = y(() => {
22
+ var t, l;
23
+ const a = e.isDisabled ? (t = e.cssStyle) == null ? void 0 : t.disabled : (l = e.cssStyle) == null ? void 0 : l.default;
24
+ return {
25
+ textColor: e.isDisabled ? r.darkGray : r.black,
26
+ backgroundColor: e.isDisabled ? r.lightGray : r.white,
27
+ border: {
28
+ color: e.isDisabled ? r.darkGray : r.blue,
29
+ size: "1px"
30
+ },
31
+ ...a ?? {}
32
+ };
33
+ }), h = () => {
34
+ i.value = [], k(o.value) && e.isRequired && i.value.push(L.required);
35
+ };
36
+ return E(
37
+ () => o.value,
38
+ () => h(),
39
+ { immediate: !k(e.modelValue) }
40
+ ), (a, t) => (u(), n("div", {
41
+ class: f(a.$style.radios)
42
+ }, [
43
+ (u(!0), n(M, null, R(s.options, (l) => {
44
+ var c, m, b, v, p;
45
+ return u(), n("label", {
46
+ key: l.value,
47
+ class: f(a.$style.radio),
48
+ style: z({
49
+ "--border-color": (m = (c = d.value) == null ? void 0 : c.border) == null ? void 0 : m.color,
50
+ "--border-size": (v = (b = d.value) == null ? void 0 : b.border) == null ? void 0 : v.size,
51
+ "--background-color": (p = d.value) == null ? void 0 : p.backgroundColor,
52
+ "--duration": s.isDisableAnimation ? "0s" : ".3s"
53
+ })
54
+ }, [
55
+ G(g("input", {
56
+ "onUpdate:modelValue": t[0] || (t[0] = (q) => o.value = q),
57
+ type: "radio",
58
+ name: w(S),
59
+ value: l.value,
60
+ disabled: s.isDisabled,
61
+ required: s.isRequired,
62
+ checked: l.value === o.value
63
+ }, null, 8, $), [
64
+ [x, o.value]
65
+ ]),
66
+ g("span", null, A(l.label), 1)
67
+ ], 6);
68
+ }), 128)),
69
+ N(U, { errorMessages: i.value }, null, 8, ["errorMessages"])
70
+ ], 2));
71
+ }
72
+ });
73
+ export {
74
+ J as default
75
+ };
@@ -0,0 +1,11 @@
1
+ const o = "_radios_hh7eh_15", h = "_radio_hh7eh_15", s = "_pop_hh7eh_1", _ = {
2
+ radios: o,
3
+ radio: h,
4
+ pop: s
5
+ };
6
+ export {
7
+ _ as default,
8
+ s as pop,
9
+ h as radio,
10
+ o as radios
11
+ };
@@ -0,0 +1,9 @@
1
+ import o from "./SelectBox.vue2.js";
2
+ import s from "./SelectBox.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
+ };