@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.
- package/README.md +52 -2
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components/ArticleList/Card/Artistic.vue.js +9 -0
- package/dist/components/ArticleList/Card/Artistic.vue2.js +105 -0
- package/dist/components/ArticleList/Card/Artistic.vue3.js +27 -0
- package/dist/components/ArticleList/Card/Entertainment.vue.js +9 -0
- package/dist/components/ArticleList/Card/Entertainment.vue2.js +120 -0
- package/dist/components/ArticleList/Card/Entertainment.vue3.js +31 -0
- package/dist/components/ArticleList/Card/Gallery.vue.js +9 -0
- package/dist/components/ArticleList/Card/Gallery.vue2.js +103 -0
- package/dist/components/ArticleList/Card/Gallery.vue3.js +23 -0
- package/dist/components/ArticleList/Card/Grid.vue.js +9 -0
- package/dist/components/ArticleList/Card/Grid.vue2.js +114 -0
- package/dist/components/ArticleList/Card/Grid.vue3.js +25 -0
- package/dist/components/ArticleList/Card/News.vue.js +9 -0
- package/dist/components/ArticleList/Card/News.vue2.js +95 -0
- package/dist/components/ArticleList/Card/News.vue3.js +19 -0
- package/dist/components/ArticleList/Card/Rounded.vue.js +9 -0
- package/dist/components/ArticleList/Card/Rounded.vue2.js +96 -0
- package/dist/components/ArticleList/Card/Rounded.vue3.js +15 -0
- package/dist/components/ArticleList/Card/Row.vue.js +9 -0
- package/dist/components/ArticleList/Card/Row.vue2.js +97 -0
- package/dist/components/ArticleList/Card/Row.vue3.js +17 -0
- package/dist/components/ArticleList/Card/Simple.vue.js +9 -0
- package/dist/components/ArticleList/Card/Simple.vue2.js +98 -0
- package/dist/components/ArticleList/Card/Simple.vue3.js +23 -0
- package/dist/components/ArticleList/Card/Standard.vue.js +9 -0
- package/dist/components/ArticleList/Card/Standard.vue2.js +93 -0
- package/dist/components/ArticleList/Card/Standard.vue3.js +21 -0
- package/dist/components/ArticleList/Card/Tile.vue.js +9 -0
- package/dist/components/ArticleList/Card/Tile.vue2.js +96 -0
- package/dist/components/ArticleList/Card/Tile.vue3.js +23 -0
- package/dist/components/ArticleList/GenericArticleList.vue.js +9 -0
- package/dist/components/ArticleList/GenericArticleList.vue2.js +72 -0
- package/dist/components/ArticleList/GenericArticleList.vue3.js +11 -0
- package/dist/components/ArticleList/List/Artistic.vue.js +22 -0
- package/dist/components/ArticleList/List/Artistic.vue2.js +4 -0
- package/dist/components/ArticleList/List/Entertainment.vue.js +22 -0
- package/dist/components/ArticleList/List/Entertainment.vue2.js +4 -0
- package/dist/components/ArticleList/List/Gallery.vue.js +22 -0
- package/dist/components/ArticleList/List/Gallery.vue2.js +4 -0
- package/dist/components/ArticleList/List/Grid.vue.js +9 -0
- package/dist/components/ArticleList/List/Grid.vue2.js +120 -0
- package/dist/components/ArticleList/List/Grid.vue3.js +9 -0
- package/dist/components/ArticleList/List/News.vue.js +22 -0
- package/dist/components/ArticleList/List/News.vue2.js +4 -0
- package/dist/components/ArticleList/List/Rounded.vue.js +22 -0
- package/dist/components/ArticleList/List/Rounded.vue2.js +4 -0
- package/dist/components/ArticleList/List/Row.vue.js +22 -0
- package/dist/components/ArticleList/List/Row.vue2.js +4 -0
- package/dist/components/ArticleList/List/Simple.vue.js +22 -0
- package/dist/components/ArticleList/List/Simple.vue2.js +4 -0
- package/dist/components/ArticleList/List/Standard.vue.js +22 -0
- package/dist/components/ArticleList/List/Standard.vue2.js +4 -0
- package/dist/components/ArticleList/List/Tile.vue.js +22 -0
- package/dist/components/ArticleList/List/Tile.vue2.js +4 -0
- package/dist/components/ArticleList/Parts/AuthorInfo.vue.js +9 -0
- package/dist/components/ArticleList/Parts/AuthorInfo.vue2.js +64 -0
- package/dist/components/ArticleList/Parts/AuthorInfo.vue3.js +11 -0
- package/dist/components/ArticleList/Parts/CardContainer.vue.js +9 -0
- package/dist/components/ArticleList/Parts/CardContainer.vue2.js +18 -0
- package/dist/components/ArticleList/Parts/CardContainer.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/CardHeading.vue.js +9 -0
- package/dist/components/ArticleList/Parts/CardHeading.vue2.js +25 -0
- package/dist/components/ArticleList/Parts/CardHeading.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/CategoryList.vue.js +38 -0
- package/dist/components/ArticleList/Parts/CategoryList.vue2.js +4 -0
- package/dist/components/ArticleList/Parts/ExcerptText.vue.js +9 -0
- package/dist/components/ArticleList/Parts/ExcerptText.vue2.js +24 -0
- package/dist/components/ArticleList/Parts/ExcerptText.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/MetadataList.vue.js +9 -0
- package/dist/components/ArticleList/Parts/MetadataList.vue2.js +62 -0
- package/dist/components/ArticleList/Parts/MetadataList.vue3.js +17 -0
- package/dist/components/ArticleList/Parts/NoImage.vue.js +9 -0
- package/dist/components/ArticleList/Parts/NoImage.vue2.js +16 -0
- package/dist/components/ArticleList/Parts/NoImage.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/PostedDate.vue.js +9 -0
- package/dist/components/ArticleList/Parts/PostedDate.vue2.js +28 -0
- package/dist/components/ArticleList/Parts/PostedDate.vue3.js +7 -0
- package/dist/components/ArticleList/Parts/TagList.vue.js +32 -0
- package/dist/components/ArticleList/Parts/TagList.vue2.js +4 -0
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue.js +9 -0
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue2.js +50 -0
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue3.js +7 -0
- package/dist/components/BasicButton.vue.js +9 -0
- package/dist/components/BasicButton.vue2.js +71 -0
- package/dist/components/BasicButton.vue3.js +11 -0
- package/dist/components/CheckBox.vue.d.ts +8 -0
- package/dist/components/CheckBox.vue.js +9 -0
- package/dist/components/CheckBox.vue2.js +76 -0
- package/dist/components/CheckBox.vue3.js +11 -0
- package/dist/components/CheckBoxes.vue.js +9 -0
- package/dist/components/CheckBoxes.vue2.js +104 -0
- package/dist/components/CheckBoxes.vue3.js +7 -0
- package/dist/components/CheckButton.vue.js +9 -0
- package/dist/components/CheckButton.vue2.js +54 -0
- package/dist/components/CheckButton.vue3.js +11 -0
- package/dist/components/DatePicker.vue.js +9 -0
- package/dist/components/DatePicker.vue2.js +137 -0
- package/dist/components/DatePicker.vue3.js +15 -0
- package/dist/components/DateRangePicker.vue.js +9 -0
- package/dist/components/DateRangePicker.vue2.js +74 -0
- package/dist/components/DateRangePicker.vue3.js +9 -0
- package/dist/components/DateSelector.vue.d.ts +5 -0
- package/dist/components/DateSelector.vue.js +9 -0
- package/dist/components/DateSelector.vue2.js +174 -0
- package/dist/components/DateSelector.vue3.js +13 -0
- package/dist/components/DropdownUi.vue.d.ts +1 -0
- package/dist/components/DropdownUi.vue.js +9 -0
- package/dist/components/DropdownUi.vue2.js +65 -0
- package/dist/components/DropdownUi.vue3.js +15 -0
- package/dist/components/ErrorMessage.vue.js +9 -0
- package/dist/components/ErrorMessage.vue2.js +30 -0
- package/dist/components/ErrorMessage.vue3.js +7 -0
- package/dist/components/Icon/CalendarIcon.vue.js +15 -0
- package/dist/components/Icon/CheckIcon.vue.js +15 -0
- package/dist/components/Icon/CloseIcon.vue.js +15 -0
- package/dist/components/Icon/Folder.vue.js +15 -0
- package/dist/components/Icon/Image.vue.js +21 -0
- package/dist/components/Icon/KeyboardArrowDownIcon.vue.js +15 -0
- package/dist/components/Icon/Tag.vue.js +15 -0
- package/dist/components/InputBox.vue.js +9 -0
- package/dist/components/InputBox.vue2.js +62 -0
- package/dist/components/InputBox.vue3.js +7 -0
- package/dist/components/InputGroup.vue.js +17 -0
- package/dist/components/InputGroup.vue2.js +7 -0
- package/dist/components/LabeledCheckbox.vue.js +9 -0
- package/dist/components/LabeledCheckbox.vue2.js +60 -0
- package/dist/components/LabeledCheckbox.vue3.js +9 -0
- package/dist/components/LabeledFieldset.vue.js +9 -0
- package/dist/components/LabeledFieldset.vue2.js +29 -0
- package/dist/components/LabeledFieldset.vue3.js +11 -0
- package/dist/components/LoadingSpinner.vue.js +15 -0
- package/dist/components/ModalBox.vue.d.ts +22 -16
- package/dist/components/ModalBox.vue.js +9 -0
- package/dist/components/ModalBox.vue2.js +85 -0
- package/dist/components/ModalBox.vue3.js +23 -0
- package/dist/components/PopupBox.vue.js +9 -0
- package/dist/components/PopupBox.vue2.js +35 -0
- package/dist/components/PopupBox.vue3.js +15 -0
- package/dist/components/RadioButtons.vue.js +9 -0
- package/dist/components/RadioButtons.vue2.js +75 -0
- package/dist/components/RadioButtons.vue3.js +11 -0
- package/dist/components/SelectBox.vue.js +9 -0
- package/dist/components/SelectBox.vue2.js +109 -0
- package/dist/components/SelectBox.vue3.js +9 -0
- package/dist/components/SlideDownUi.vue.js +9 -0
- package/dist/components/SlideDownUi.vue2.js +66 -0
- package/dist/components/SlideDownUi.vue3.js +17 -0
- package/dist/components/TabUI.vue.d.ts +0 -20
- package/dist/components/TabUI.vue.js +9 -0
- package/dist/components/TabUI.vue2.js +77 -0
- package/dist/components/TabUI.vue3.js +9 -0
- package/dist/components/TextArea.vue.js +9 -0
- package/dist/components/TextArea.vue2.js +82 -0
- package/dist/components/TextArea.vue3.js +7 -0
- package/dist/components/TextBox.vue.js +9 -0
- package/dist/components/TextBox.vue2.js +76 -0
- package/dist/components/TextBox.vue3.js +7 -0
- package/dist/components/TextButton.vue.js +9 -0
- package/dist/components/TextButton.vue2.js +24 -0
- package/dist/components/TextButton.vue3.js +7 -0
- package/dist/components/ToggleButton.vue.d.ts +12 -9
- package/dist/components/ToggleButton.vue.js +9 -0
- package/dist/components/ToggleButton.vue2.js +94 -0
- package/dist/components/ToggleButton.vue3.js +13 -0
- package/dist/const/list-theme.js +65 -0
- package/dist/index.js +112 -3514
- package/dist/scripts/form-validation-manager.js +38 -0
- package/dist/scripts/unique-id.d.ts +4 -0
- package/dist/scripts/unique-id.js +9 -0
- package/dist/scripts/use-click-outside.js +13 -0
- package/dist/scripts/utils.js +21 -0
- package/dist/style.css +1 -1
- package/package.json +8 -5
|
@@ -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,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
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
isShown: boolean;
|
|
3
|
-
size?:
|
|
3
|
+
size?: 'small' | 'medium' | 'large';
|
|
4
4
|
/** header スロットを使わない場合のダイアログ名 */
|
|
5
5
|
ariaLabel?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
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
|
-
|
|
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,85 @@
|
|
|
1
|
+
import { defineComponent as v, ref as g, watch as $, nextTick as C, computed as L, onMounted as E, onBeforeUnmount as B, openBlock as i, createElementBlock as r, normalizeClass as o, withModifiers as I, createElementVNode as d, unref as k, renderSlot as c, createCommentVNode as w, createVNode as z } from "vue";
|
|
2
|
+
import { createScrollLock as M } from "@geckou/ui-core";
|
|
3
|
+
import N from "./Icon/CloseIcon.vue.js";
|
|
4
|
+
import { nextUniqueId as V } from "../scripts/unique-id.js";
|
|
5
|
+
const q = ["aria-hidden", "inert"], U = ["aria-labelledby", "aria-label"], D = ["id"], G = /* @__PURE__ */ v({
|
|
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, u = V("modal_header"), m = g(null), S = b, f = M(), h = (e) => f.toggle(e), s = () => S("close");
|
|
15
|
+
$(
|
|
16
|
+
() => t.isShown,
|
|
17
|
+
(e) => h(e)
|
|
18
|
+
);
|
|
19
|
+
let l = null;
|
|
20
|
+
$(
|
|
21
|
+
() => t.isShown,
|
|
22
|
+
async (e) => {
|
|
23
|
+
var a;
|
|
24
|
+
if (!e) {
|
|
25
|
+
l == null || l.focus(), l = null;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
l = typeof document > "u" ? null : document.activeElement, await C(), (a = m.value) == null || a.focus();
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
const p = L(() => !t.isShown || void 0), y = (e) => {
|
|
32
|
+
t.isShown && e.key === "Escape" && s();
|
|
33
|
+
};
|
|
34
|
+
return E(() => {
|
|
35
|
+
h(t.isShown), document.addEventListener("keydown", y);
|
|
36
|
+
}), B(() => {
|
|
37
|
+
f.release(), document.removeEventListener("keydown", y);
|
|
38
|
+
}), (e, a) => (i(), r("div", {
|
|
39
|
+
class: o([e.$style.overlay, { [e.$style.display]: n.isShown }]),
|
|
40
|
+
"aria-hidden": !n.isShown,
|
|
41
|
+
inert: p.value,
|
|
42
|
+
onClick: I(s, ["self"])
|
|
43
|
+
}, [
|
|
44
|
+
d("div", {
|
|
45
|
+
ref_key: "dialog",
|
|
46
|
+
ref: m,
|
|
47
|
+
role: "dialog",
|
|
48
|
+
"aria-modal": "true",
|
|
49
|
+
"aria-labelledby": e.$slots.header ? k(u) : void 0,
|
|
50
|
+
"aria-label": e.$slots.header ? void 0 : n.ariaLabel ?? "ダイアログ",
|
|
51
|
+
tabindex: -1,
|
|
52
|
+
class: o([e.$style.container, e.$style[n.size ?? "medium"]])
|
|
53
|
+
}, [
|
|
54
|
+
e.$slots.header ? (i(), r("header", {
|
|
55
|
+
key: 0,
|
|
56
|
+
id: k(u),
|
|
57
|
+
class: o(e.$style.header)
|
|
58
|
+
}, [
|
|
59
|
+
c(e.$slots, "header")
|
|
60
|
+
], 10, D)) : w("", !0),
|
|
61
|
+
d("div", {
|
|
62
|
+
class: o(e.$style.contents)
|
|
63
|
+
}, [
|
|
64
|
+
c(e.$slots, "default")
|
|
65
|
+
], 2),
|
|
66
|
+
e.$slots.footer ? (i(), r("footer", {
|
|
67
|
+
key: 1,
|
|
68
|
+
class: o(e.$style.footer)
|
|
69
|
+
}, [
|
|
70
|
+
c(e.$slots, "footer")
|
|
71
|
+
], 2)) : w("", !0),
|
|
72
|
+
d("button", {
|
|
73
|
+
type: "button",
|
|
74
|
+
class: o(e.$style.close_button),
|
|
75
|
+
onClick: s
|
|
76
|
+
}, [
|
|
77
|
+
z(N)
|
|
78
|
+
], 2)
|
|
79
|
+
], 10, U)
|
|
80
|
+
], 10, q));
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
export {
|
|
84
|
+
G as default
|
|
85
|
+
};
|
|
@@ -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,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,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,109 @@
|
|
|
1
|
+
import { defineComponent as q, ref as E, computed as M, watch as N, openBlock as t, createBlock as D, normalizeClass as n, withCtx as O, withDirectives as R, createElementVNode as v, createElementBlock as a, toDisplayString as d, createCommentVNode as B, Fragment as i, renderList as y, vModelSelect as x, renderSlot as A, createVNode as I } from "vue";
|
|
2
|
+
import { isEmptyValue as C, MESSAGES as z } from "@geckou/ui-core";
|
|
3
|
+
import F from "./InputBox.vue.js";
|
|
4
|
+
import G from "./ErrorMessage.vue.js";
|
|
5
|
+
import L from "./Icon/KeyboardArrowDownIcon.vue.js";
|
|
6
|
+
const U = ["name", "disabled", "required"], H = {
|
|
7
|
+
key: 0,
|
|
8
|
+
value: ""
|
|
9
|
+
}, J = {
|
|
10
|
+
key: 1,
|
|
11
|
+
disabled: "",
|
|
12
|
+
selected: "",
|
|
13
|
+
value: ""
|
|
14
|
+
}, K = ["value"], P = ["value", "disabled"], Q = ["label"], T = ["value", "disabled"], _ = /* @__PURE__ */ q({
|
|
15
|
+
__name: "SelectBox",
|
|
16
|
+
props: {
|
|
17
|
+
options: {},
|
|
18
|
+
name: {},
|
|
19
|
+
modelValue: { default: void 0 },
|
|
20
|
+
cssStyle: { default: void 0 },
|
|
21
|
+
placeholder: { default: "選択してください" },
|
|
22
|
+
canOmitSelect: { type: Boolean },
|
|
23
|
+
isDisabled: { type: Boolean },
|
|
24
|
+
isRequired: { type: Boolean }
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue"],
|
|
27
|
+
setup(e, { emit: p }) {
|
|
28
|
+
const w = p, c = e, m = E([]), o = M({
|
|
29
|
+
get: () => c.modelValue ?? "",
|
|
30
|
+
set: (l) => w("update:modelValue", l)
|
|
31
|
+
}), b = (l) => typeof l == "object" && l !== null && "label" in l && typeof l.label == "string" && "value" in l, f = () => {
|
|
32
|
+
m.value = [], C(o.value) && c.isRequired && m.value.push(z.required);
|
|
33
|
+
};
|
|
34
|
+
return N(
|
|
35
|
+
() => o.value,
|
|
36
|
+
() => f(),
|
|
37
|
+
{ immediate: !C(c.modelValue), flush: "post" }
|
|
38
|
+
), (l, r) => (t(), D(F, {
|
|
39
|
+
cssStyle: e.cssStyle,
|
|
40
|
+
class: n(l.$style.select_box),
|
|
41
|
+
isDisabled: e.isDisabled
|
|
42
|
+
}, {
|
|
43
|
+
default: O(() => {
|
|
44
|
+
var S, h, k, g;
|
|
45
|
+
return [
|
|
46
|
+
R(v("select", {
|
|
47
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => o.value = s),
|
|
48
|
+
name: e.name,
|
|
49
|
+
disabled: e.isDisabled,
|
|
50
|
+
required: e.isRequired,
|
|
51
|
+
class: n(l.$style.select),
|
|
52
|
+
onBlur: r[1] || (r[1] = (s) => f())
|
|
53
|
+
}, [
|
|
54
|
+
e.canOmitSelect ? (t(), a("option", H, d(e.placeholder || "選択しない"), 1)) : (t(), a("option", J, d(e.placeholder || "選択してください"), 1)),
|
|
55
|
+
["0", "NA"].includes(o.value.toString()) && e.isDisabled ? (t(), a("option", {
|
|
56
|
+
key: 2,
|
|
57
|
+
disabled: "",
|
|
58
|
+
selected: "",
|
|
59
|
+
value: o.value
|
|
60
|
+
}, d(e.placeholder || "選択してください"), 9, K)) : B("", !0),
|
|
61
|
+
(t(!0), a(i, null, y(e.options, (s) => (t(), a(i, {
|
|
62
|
+
key: b(s) ? s.value : Object.keys(s)[0]
|
|
63
|
+
}, [
|
|
64
|
+
b(s) ? (t(), a("option", {
|
|
65
|
+
key: 0,
|
|
66
|
+
value: s.value,
|
|
67
|
+
disabled: s.isDisabled
|
|
68
|
+
}, d(s.label), 9, P)) : (t(), a(i, { key: 1 }, [
|
|
69
|
+
(t(!0), a(i, null, y(s, ($, V) => (t(), a("optgroup", {
|
|
70
|
+
key: V,
|
|
71
|
+
label: V
|
|
72
|
+
}, [
|
|
73
|
+
(t(!0), a(i, null, y($, (u) => (t(), a("option", {
|
|
74
|
+
key: u.value,
|
|
75
|
+
value: u.value,
|
|
76
|
+
disabled: u.isDisabled
|
|
77
|
+
}, d(u.label), 9, T))), 128))
|
|
78
|
+
], 8, Q))), 128)),
|
|
79
|
+
r[2] || (r[2] = v("hr", null, null, -1))
|
|
80
|
+
], 64))
|
|
81
|
+
], 64))), 128))
|
|
82
|
+
], 42, U), [
|
|
83
|
+
[x, o.value]
|
|
84
|
+
]),
|
|
85
|
+
v("div", {
|
|
86
|
+
class: n(l.$style.arrow_container)
|
|
87
|
+
}, [
|
|
88
|
+
A(l.$slots, "arrow"),
|
|
89
|
+
l.$slots.arrow ? B("", !0) : (t(), D(L, {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: n(l.$style.arrow)
|
|
92
|
+
}, null, 8, ["class"]))
|
|
93
|
+
], 2),
|
|
94
|
+
I(G, {
|
|
95
|
+
errorMessages: m.value,
|
|
96
|
+
cssStyle: {
|
|
97
|
+
textColor: (h = (S = e.cssStyle) == null ? void 0 : S.error) == null ? void 0 : h.backgroundColor,
|
|
98
|
+
backgroundColor: (g = (k = e.cssStyle) == null ? void 0 : k.error) == null ? void 0 : g.textColor
|
|
99
|
+
}
|
|
100
|
+
}, null, 8, ["errorMessages", "cssStyle"])
|
|
101
|
+
];
|
|
102
|
+
}),
|
|
103
|
+
_: 3
|
|
104
|
+
}, 8, ["cssStyle", "class", "isDisabled"]));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
_ as default
|
|
109
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as g, ref as s, onMounted as h, onUpdated as k, watch as C, openBlock as u, createElementBlock as $, normalizeClass as o, normalizeStyle as p, createElementVNode as l, withModifiers as b, renderSlot as f, createBlock as B, createCommentVNode as D } from "vue";
|
|
2
|
+
import O from "./Icon/KeyboardArrowDownIcon.vue.js";
|
|
3
|
+
import { useClickOutside as w } from "../scripts/use-click-outside.js";
|
|
4
|
+
const H = ["disabled", "aria-expanded"], S = ["inert"], N = /* @__PURE__ */ g({
|
|
5
|
+
__name: "SlideDownUi",
|
|
6
|
+
props: {
|
|
7
|
+
isOpened: { type: [Boolean, null], default: null },
|
|
8
|
+
isHiddenArrow: { type: Boolean },
|
|
9
|
+
isDisabled: { type: Boolean },
|
|
10
|
+
isDisableClickOutside: { type: Boolean },
|
|
11
|
+
duration: { default: 0.3 }
|
|
12
|
+
},
|
|
13
|
+
setup(i, { expose: y }) {
|
|
14
|
+
const n = i, t = s(n.isOpened || !1), a = s(null), r = s(null), d = s(0), v = () => t.value = !t.value, m = () => {
|
|
15
|
+
n.isDisableClickOutside || (t.value = !1);
|
|
16
|
+
}, c = () => {
|
|
17
|
+
const e = r.value;
|
|
18
|
+
e && (d.value = e.clientHeight);
|
|
19
|
+
};
|
|
20
|
+
return w(a, () => m()), h(() => c()), k(() => c()), C(
|
|
21
|
+
() => n.isOpened,
|
|
22
|
+
(e) => {
|
|
23
|
+
typeof e == "boolean" && (t.value = e);
|
|
24
|
+
}
|
|
25
|
+
), y({ isOpenedContents: t }), (e, z) => (u(), $("div", {
|
|
26
|
+
ref_key: "root",
|
|
27
|
+
ref: a,
|
|
28
|
+
class: o({ [e.$style.opened]: t.value }),
|
|
29
|
+
style: p({ "--accordion-toggle-duration": `${n.duration}s` })
|
|
30
|
+
}, [
|
|
31
|
+
l("button", {
|
|
32
|
+
class: o(e.$style.trigger),
|
|
33
|
+
disabled: i.isDisabled,
|
|
34
|
+
"aria-expanded": t.value,
|
|
35
|
+
type: "button",
|
|
36
|
+
onClick: b(v, ["prevent"])
|
|
37
|
+
}, [
|
|
38
|
+
l("div", {
|
|
39
|
+
class: o(e.$style.trigger_content)
|
|
40
|
+
}, [
|
|
41
|
+
f(e.$slots, "trigger")
|
|
42
|
+
], 2),
|
|
43
|
+
i.isHiddenArrow ? D("", !0) : (u(), B(O, {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: o(e.$style.icon)
|
|
46
|
+
}, null, 8, ["class"]))
|
|
47
|
+
], 10, H),
|
|
48
|
+
l("div", {
|
|
49
|
+
style: p({ height: t.value ? `${d.value}px` : 0 }),
|
|
50
|
+
class: o(e.$style.contents),
|
|
51
|
+
inert: !t.value || void 0
|
|
52
|
+
}, [
|
|
53
|
+
l("div", {
|
|
54
|
+
ref_key: "contents",
|
|
55
|
+
ref: r,
|
|
56
|
+
class: o(e.$style.container)
|
|
57
|
+
}, [
|
|
58
|
+
f(e.$slots, "default")
|
|
59
|
+
], 2)
|
|
60
|
+
], 14, S)
|
|
61
|
+
], 6));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
N as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const t = "_trigger_content_1gj5s_12", o = "_trigger_1gj5s_12", n = "_icon_1gj5s_28", e = "_contents_1gj5s_38", _ = "_opened_1gj5s_43", g = "_overflow_1gj5s_1", s = {
|
|
2
|
+
trigger_content: t,
|
|
3
|
+
trigger: o,
|
|
4
|
+
icon: n,
|
|
5
|
+
contents: e,
|
|
6
|
+
opened: _,
|
|
7
|
+
overflow: g
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
e as contents,
|
|
11
|
+
s as default,
|
|
12
|
+
n as icon,
|
|
13
|
+
_ as opened,
|
|
14
|
+
g as overflow,
|
|
15
|
+
o as trigger,
|
|
16
|
+
t as trigger_content
|
|
17
|
+
};
|
|
@@ -8,16 +8,6 @@ type __VLS_Props = {
|
|
|
8
8
|
background: string;
|
|
9
9
|
text: string;
|
|
10
10
|
};
|
|
11
|
-
cssStyle?: {
|
|
12
|
-
textColor: string;
|
|
13
|
-
backgroundColor: string;
|
|
14
|
-
border: {
|
|
15
|
-
color: string;
|
|
16
|
-
size: string;
|
|
17
|
-
radius: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
type?: 'tab' | 'button' | 'border';
|
|
21
11
|
initialIndex?: number;
|
|
22
12
|
};
|
|
23
13
|
declare function __VLS_template(): {
|
|
@@ -28,21 +18,11 @@ declare function __VLS_template(): {
|
|
|
28
18
|
};
|
|
29
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
20
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
31
|
-
cssStyle: {
|
|
32
|
-
textColor: string;
|
|
33
|
-
backgroundColor: string;
|
|
34
|
-
border: {
|
|
35
|
-
color: string;
|
|
36
|
-
size: string;
|
|
37
|
-
radius: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
21
|
color: {
|
|
41
22
|
active: string;
|
|
42
23
|
background: string;
|
|
43
24
|
text: string;
|
|
44
25
|
};
|
|
45
|
-
type: "tab" | "button" | "border";
|
|
46
26
|
initialIndex: number;
|
|
47
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
48
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|