@geckou/ui-vue 0.9.0 → 0.12.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 +27 -0
- package/dist/components/ArticleList/Card/News.vue.d.ts +1 -0
- package/dist/components/ArticleList/Card/News.vue2.js +5 -4
- package/dist/components/ArticleList/Card/Row.vue.d.ts +1 -0
- package/dist/components/ArticleList/Card/Row.vue2.js +8 -7
- package/dist/components/ArticleList/GenericArticleList.vue2.js +16 -13
- package/dist/components/ArticleList/GenericArticleList.vue3.js +8 -8
- package/dist/components/ArticleList/Parts/CategoryList.vue.js +12 -12
- package/dist/components/ArticleList/Parts/MetadataList.vue2.js +16 -14
- package/dist/components/DatePicker.vue2.js +93 -95
- package/dist/components/DateRangePicker.vue2.js +35 -33
- package/dist/components/DateSelector.vue2.js +93 -99
- package/dist/components/SelectBox.vue2.js +47 -51
- package/dist/components/TextArea.vue2.js +38 -35
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -301,6 +301,33 @@ const articles = ref<any[]>([])
|
|
|
301
301
|
|
|
302
302
|
定義例はデモの `demo/styles/base.scss` を参照。
|
|
303
303
|
|
|
304
|
+
## 0.12.0 の変更
|
|
305
|
+
|
|
306
|
+
- `GenericArticleList` が `theme='grid'` を実装した(型には含まれるのに switch に無く、
|
|
307
|
+
黙って Standard になっていた)。`<ul>` の `list-style` もリセットする
|
|
308
|
+
- `CategoryList` / `MetadataList` が引き当てに失敗した値(空文字)を描かない。
|
|
309
|
+
`categoryData` を渡し忘れると、ID の数だけ空の `<li>` が並んでいた
|
|
310
|
+
- `MetadataList` の `icon.name` が prop の変更に追従する(setup 時の一度きりだった)
|
|
311
|
+
- `News` / `Row` カードが `isPickUpItem` を宣言した(`ispickupitem` 属性として
|
|
312
|
+
`<a>` に落ちていた)
|
|
313
|
+
- `News` カードの `AuthorInfo` へ渡す文字サイズを `text.fontSize` に直した
|
|
314
|
+
(`fontSize` は prop ではなく、小さくなっていなかった)
|
|
315
|
+
- `DateSelector` の使われていないクリックハンドラ(`openDropdown`)を削除
|
|
316
|
+
## 0.10.0 の変更
|
|
317
|
+
|
|
318
|
+
- `DatePicker` の年月日欄は**入力中にエラー文言を出さない**。判定は入力のたびに
|
|
319
|
+
更新し、文言は欄を離れた時点(blur)で出す。あわせて 1 桁の月・日は blur で
|
|
320
|
+
2 桁へ正規化する(「1」→「01」)。年に「2」と打った瞬間に
|
|
321
|
+
`role="alert"` で「年は4桁の数字で入力してください」が読み上げられていたのが直る
|
|
322
|
+
- `DatePicker` の年月日欄が不正なとき、`update:modelValue` が空文字になる
|
|
323
|
+
(これまでは valid のときだけ更新していたため、画面と送信値が食い違っていた)
|
|
324
|
+
- `SelectBox` が `isDisabled` かつ値が `0` / `'NA'` のときにプレースホルダを
|
|
325
|
+
出す分岐を削除した。0 は正当な選択値として扱う
|
|
326
|
+
- `SelectBox` がエラー時に `InputBox` へ `isErrored` を渡し、`aria-invalid` を付ける
|
|
327
|
+
- `TextArea` の `autoAdjustHeight` が `box-sizing` を見て高さを補正する
|
|
328
|
+
(border-box のリセット CSS を当てた環境で 2rem 足りなかった)
|
|
329
|
+
- `DateRangePicker` は範囲の比較前に日付を正規化する
|
|
330
|
+
|
|
304
331
|
## 0.9.0 の変更
|
|
305
332
|
|
|
306
333
|
- `ModalBox` を重ねたとき、Escape で閉じるのは**最前面の 1 枚だけ**になった
|
|
@@ -8,11 +8,12 @@ import h from "../Parts/CategoryList.vue.js";
|
|
|
8
8
|
import C from "../Parts/TagList.vue.js";
|
|
9
9
|
import $ from "../Parts/PostedDate.vue.js";
|
|
10
10
|
import b from "../Parts/ExcerptText.vue.js";
|
|
11
|
-
const
|
|
11
|
+
const A = /* @__PURE__ */ m({
|
|
12
12
|
__name: "News",
|
|
13
13
|
props: {
|
|
14
14
|
article: {},
|
|
15
15
|
path: {},
|
|
16
|
+
isPickUpItem: { type: Boolean },
|
|
16
17
|
postConfig: {},
|
|
17
18
|
categories: {}
|
|
18
19
|
},
|
|
@@ -79,9 +80,9 @@ const B = /* @__PURE__ */ m({
|
|
|
79
80
|
class: t(a.$style.author),
|
|
80
81
|
text: {
|
|
81
82
|
color: "var(--gray)",
|
|
82
|
-
preposition: "by"
|
|
83
|
+
preposition: "by",
|
|
84
|
+
fontSize: "small"
|
|
83
85
|
},
|
|
84
|
-
fontSize: "small",
|
|
85
86
|
style: { "grid-area": "author" }
|
|
86
87
|
}, null, 8, ["name", "class"])) : o("", !0)
|
|
87
88
|
];
|
|
@@ -91,5 +92,5 @@ const B = /* @__PURE__ */ m({
|
|
|
91
92
|
}
|
|
92
93
|
});
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
A as default
|
|
95
96
|
};
|
|
@@ -6,18 +6,19 @@ import u from "../Parts/AuthorInfo.vue.js";
|
|
|
6
6
|
import h from "../Parts/CardHeading.vue.js";
|
|
7
7
|
import C from "../Parts/CategoryList.vue.js";
|
|
8
8
|
import $ from "../Parts/TagList.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
9
|
+
import k from "../Parts/PostedDate.vue.js";
|
|
10
|
+
import v from "../Parts/ExcerptText.vue.js";
|
|
11
|
+
const N = /* @__PURE__ */ g({
|
|
12
12
|
__name: "Row",
|
|
13
13
|
props: {
|
|
14
14
|
article: {},
|
|
15
15
|
path: {},
|
|
16
|
+
isPickUpItem: { type: Boolean },
|
|
16
17
|
postConfig: {},
|
|
17
18
|
categories: {}
|
|
18
19
|
},
|
|
19
20
|
setup(e) {
|
|
20
|
-
return (a,
|
|
21
|
+
return (a, b) => e.article ? (r(), l(y, {
|
|
21
22
|
key: 0,
|
|
22
23
|
class: t(a.$style.container),
|
|
23
24
|
path: e.path
|
|
@@ -46,7 +47,7 @@ const R = /* @__PURE__ */ g({
|
|
|
46
47
|
class: t(a.$style.thumbnail),
|
|
47
48
|
style: { "grid-area": "thumbnail" }
|
|
48
49
|
}, null, 8, ["article", "class"]),
|
|
49
|
-
o(
|
|
50
|
+
o(k, {
|
|
50
51
|
date: e.article.date,
|
|
51
52
|
formatString: "yy.M.d",
|
|
52
53
|
class: t(a.$style.date),
|
|
@@ -58,7 +59,7 @@ const R = /* @__PURE__ */ g({
|
|
|
58
59
|
class: t(a.$style.heading),
|
|
59
60
|
style: { "grid-area": "heading" }
|
|
60
61
|
}, null, 8, ["heading", "class"]),
|
|
61
|
-
o(
|
|
62
|
+
o(v, {
|
|
62
63
|
excerpt: e.article.excerpt.rendered,
|
|
63
64
|
class: t(a.$style.excerpt),
|
|
64
65
|
fontSize: "small",
|
|
@@ -93,5 +94,5 @@ const R = /* @__PURE__ */ g({
|
|
|
93
94
|
}
|
|
94
95
|
});
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
N as default
|
|
97
98
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, computed as
|
|
1
|
+
import { defineComponent as f, computed as t, openBlock as n, createElementBlock as i, normalizeStyle as c, normalizeClass as C, Fragment as g, renderList as b, createBlock as y, resolveDynamicComponent as k, unref as h } from "vue";
|
|
2
2
|
import { normalizePostConfig as v, returnArticlePath as N } from "../../scripts/utils.js";
|
|
3
3
|
import u from "./Card/Standard.vue.js";
|
|
4
4
|
import P from "./Card/Rounded.vue.js";
|
|
@@ -7,9 +7,10 @@ import w from "./Card/Tile.vue.js";
|
|
|
7
7
|
import E from "./Card/Simple.vue.js";
|
|
8
8
|
import z from "./Card/Row.vue.js";
|
|
9
9
|
import A from "./Card/News.vue.js";
|
|
10
|
-
import B from "./Card/
|
|
10
|
+
import B from "./Card/Grid.vue.js";
|
|
11
|
+
import G from "./Card/Entertainment.vue.js";
|
|
11
12
|
import I from "./Card/Gallery.vue.js";
|
|
12
|
-
const
|
|
13
|
+
const O = /* @__PURE__ */ f({
|
|
13
14
|
__name: "GenericArticleList",
|
|
14
15
|
props: {
|
|
15
16
|
articles: {},
|
|
@@ -19,10 +20,10 @@ const K = /* @__PURE__ */ f({
|
|
|
19
20
|
settings: {}
|
|
20
21
|
},
|
|
21
22
|
setup(e) {
|
|
22
|
-
const
|
|
23
|
-
() => v(
|
|
24
|
-
), p =
|
|
25
|
-
switch (
|
|
23
|
+
const r = e, d = t(() => r.settings.domainToUse), a = t(() => r.settings.isEnabledPickUp), s = t(
|
|
24
|
+
() => v(r.settings.postConfig)
|
|
25
|
+
), p = t(() => {
|
|
26
|
+
switch (r.theme) {
|
|
26
27
|
case "standard":
|
|
27
28
|
return u;
|
|
28
29
|
case "rounded":
|
|
@@ -37,29 +38,31 @@ const K = /* @__PURE__ */ f({
|
|
|
37
38
|
return z;
|
|
38
39
|
case "news":
|
|
39
40
|
return A;
|
|
41
|
+
case "grid":
|
|
42
|
+
return B;
|
|
40
43
|
case "gallery":
|
|
41
44
|
return I;
|
|
42
45
|
case "entertainment":
|
|
43
|
-
return
|
|
46
|
+
return G;
|
|
44
47
|
default:
|
|
45
48
|
return u;
|
|
46
49
|
}
|
|
47
50
|
});
|
|
48
|
-
return (m, S) => (n(),
|
|
51
|
+
return (m, S) => (n(), i("ul", {
|
|
49
52
|
style: c({
|
|
50
53
|
"--column-number": e.columnNumber,
|
|
51
54
|
"--tablet-column-number": e.columnNumber - 1 ? e.columnNumber - 1 : 1
|
|
52
55
|
}),
|
|
53
|
-
class: C([m.$style.list, { [m.$style.pickup]:
|
|
56
|
+
class: C([m.$style.list, { [m.$style.pickup]: a.value }])
|
|
54
57
|
}, [
|
|
55
|
-
(n(!0),
|
|
58
|
+
(n(!0), i(g, null, b(e.articles, (o, l) => (n(), i("li", {
|
|
56
59
|
key: o.id,
|
|
57
60
|
style: c({ animationDelay: `${Number(l) * 0.1}s` })
|
|
58
61
|
}, [
|
|
59
62
|
(n(), y(k(p.value), {
|
|
60
63
|
path: h(N)(s.value, d.value, o.id),
|
|
61
64
|
article: o,
|
|
62
|
-
isPickUpItem: Number(l) === 0 &&
|
|
65
|
+
isPickUpItem: Number(l) === 0 && a.value,
|
|
63
66
|
postConfig: s.value,
|
|
64
67
|
categories: e.categories
|
|
65
68
|
}, null, 8, ["path", "article", "isPickUpItem", "postConfig", "categories"]))
|
|
@@ -68,5 +71,5 @@ const K = /* @__PURE__ */ f({
|
|
|
68
71
|
}
|
|
69
72
|
});
|
|
70
73
|
export {
|
|
71
|
-
|
|
74
|
+
O as default
|
|
72
75
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
list:
|
|
3
|
-
fadeIn:
|
|
4
|
-
pickup:
|
|
1
|
+
const c = "_list_cv8hf_1", t = "_fadeIn_cv8hf_1", s = "_pickup_cv8hf_42", _ = {
|
|
2
|
+
list: c,
|
|
3
|
+
fadeIn: t,
|
|
4
|
+
pickup: s
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
_ as default,
|
|
8
|
+
t as fadeIn,
|
|
9
|
+
c as list,
|
|
10
|
+
s as pickup
|
|
11
11
|
};
|
|
@@ -9,26 +9,26 @@ const b = /* @__PURE__ */ m({
|
|
|
9
9
|
label: {},
|
|
10
10
|
delimiter: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const n =
|
|
12
|
+
setup(t) {
|
|
13
|
+
const n = t, l = (e, i) => {
|
|
14
14
|
var a;
|
|
15
|
-
return
|
|
15
|
+
return e.length ? ((a = e.find((o) => String(o.id) === String(i))) == null ? void 0 : a.name) ?? "" : "";
|
|
16
16
|
}, r = d(
|
|
17
17
|
() => n.categoryIds.map(
|
|
18
|
-
(
|
|
19
|
-
)
|
|
18
|
+
(e) => l(n.categoryData, e)
|
|
19
|
+
).filter((e) => e !== "")
|
|
20
20
|
);
|
|
21
|
-
return (
|
|
22
|
-
var a, o,
|
|
21
|
+
return (e, i) => {
|
|
22
|
+
var a, o, c;
|
|
23
23
|
return s(), u(g, {
|
|
24
24
|
metadata: r.value,
|
|
25
25
|
icon: {
|
|
26
|
-
name: (a =
|
|
27
|
-
color: (o =
|
|
28
|
-
size: (
|
|
26
|
+
name: (a = t.icon) != null && a.color ? "FolderIcon" : null,
|
|
27
|
+
color: (o = t.icon) == null ? void 0 : o.color,
|
|
28
|
+
size: (c = t.icon) == null ? void 0 : c.size
|
|
29
29
|
},
|
|
30
|
-
label:
|
|
31
|
-
delimiter:
|
|
30
|
+
label: t.label,
|
|
31
|
+
delimiter: t.delimiter
|
|
32
32
|
}, null, 8, ["metadata", "icon", "label", "delimiter"]);
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as b, computed as c, openBlock as a, createElementBlock as o, normalizeClass as t, normalizeStyle as n, createBlock as f, resolveDynamicComponent as y, createCommentVNode as m, createElementVNode as v, Fragment as g, renderList as k, toDisplayString as z } from "vue";
|
|
2
|
+
import C from "../../Icon/Folder.vue.js";
|
|
3
|
+
import h from "../../Icon/Tag.vue.js";
|
|
4
|
+
const $ = ["data-delimiter"], q = /* @__PURE__ */ b({
|
|
5
5
|
__name: "MetadataList",
|
|
6
6
|
props: {
|
|
7
7
|
metadata: {},
|
|
@@ -20,25 +20,27 @@ const z = ["data-delimiter"], F = /* @__PURE__ */ s({
|
|
|
20
20
|
delimiter: { default: "" }
|
|
21
21
|
},
|
|
22
22
|
setup(e) {
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const r = e, d = c(
|
|
24
|
+
() => r.icon.name === "FolderIcon" ? C : h
|
|
25
|
+
), i = c(() => r.metadata.filter((l) => l !== ""));
|
|
26
|
+
return (l, S) => i.value.length ? (a(), o("div", {
|
|
25
27
|
key: 0,
|
|
26
28
|
class: t(l.$style.metadata_list),
|
|
27
29
|
style: n({ "--icon-color": e.icon.color })
|
|
28
30
|
}, [
|
|
29
|
-
e.icon.name ? (a(),
|
|
31
|
+
e.icon.name ? (a(), f(y(d.value), {
|
|
30
32
|
key: 0,
|
|
31
33
|
class: t(l.$style.icon),
|
|
32
34
|
style: n({
|
|
33
35
|
"--icon-color": e.icon.color,
|
|
34
36
|
"--icon-size": e.icon.size === "small" ? "var(--small-icon-size, 0.9375rem)" : "var(--medium-icon-size, 1.125rem)"
|
|
35
37
|
})
|
|
36
|
-
}, null, 8, ["class", "style"])) :
|
|
37
|
-
|
|
38
|
+
}, null, 8, ["class", "style"])) : m("", !0),
|
|
39
|
+
v("ul", {
|
|
38
40
|
class: t(l.$style.list)
|
|
39
41
|
}, [
|
|
40
|
-
(a(!0), o(
|
|
41
|
-
key:
|
|
42
|
+
(a(!0), o(g, null, k(i.value, (s, u) => (a(), o("li", {
|
|
43
|
+
key: `${u}_${s}`,
|
|
42
44
|
class: t([
|
|
43
45
|
l.$style.list_item,
|
|
44
46
|
l.$style[e.label.shape ?? "square"],
|
|
@@ -52,11 +54,11 @@ const z = ["data-delimiter"], F = /* @__PURE__ */ s({
|
|
|
52
54
|
"--label-font-weight": e.label.fontWeight ?? "normal"
|
|
53
55
|
}),
|
|
54
56
|
"data-delimiter": e.delimiter
|
|
55
|
-
},
|
|
57
|
+
}, z(s), 15, $))), 128))
|
|
56
58
|
], 2)
|
|
57
|
-
], 6)) :
|
|
59
|
+
], 6)) : m("", !0);
|
|
58
60
|
}
|
|
59
61
|
});
|
|
60
62
|
export {
|
|
61
|
-
|
|
63
|
+
q as default
|
|
62
64
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { MESSAGES as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { nextUniqueId as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as z, ref as B, reactive as C, watch as R, onBeforeUnmount as N, openBlock as p, createBlock as w, normalizeClass as y, withCtx as P, createElementVNode as s, createVNode as M, createTextVNode as S, createElementBlock as $, createCommentVNode as k, unref as V } from "vue";
|
|
2
|
+
import { MESSAGES as U, normalizeDateObject as A, formatDateValue as G, splitDate as T, validateDateObject as F, composeDateValue as H } from "@geckou/ui-core";
|
|
3
|
+
import J from "./InputBox.vue.js";
|
|
4
|
+
import K from "./Icon/CalendarIcon.vue.js";
|
|
5
|
+
import Q from "./ErrorMessage.vue.js";
|
|
6
|
+
import { nextUniqueId as W } from "../scripts/unique-id.js";
|
|
7
|
+
const X = ["value", "type", "name", "aria-label", "aria-labelledby", "max", "min", "required", "disabled"], Y = ["value", "aria-label", "aria-labelledby", "disabled"], Z = ["value", "aria-label", "aria-labelledby", "disabled"], _ = { key: 0 }, ee = ["value", "aria-label", "aria-labelledby", "disabled"], ae = ["id"], le = ["id"], te = ["id"], ie = ["id"], me = /* @__PURE__ */ z({
|
|
8
8
|
__name: "DatePicker",
|
|
9
9
|
props: {
|
|
10
10
|
name: {},
|
|
@@ -20,136 +20,134 @@ const Q = ["type", "name", "aria-label", "aria-labelledby", "max", "min", "requi
|
|
|
20
20
|
ariaLabelledBy: { default: void 0 }
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
|
-
setup(t, { emit:
|
|
24
|
-
const
|
|
23
|
+
setup(t, { emit: q }) {
|
|
24
|
+
const v = q, x = B(null), l = t, u = W("date_picker_unit"), b = (e) => l.ariaLabelledBy ? void 0 : `${l.ariaLabel ?? l.name}の${e}`, c = (e) => l.ariaLabelledBy ? `${l.ariaLabelledBy} ${u}_${e}` : void 0, i = C({
|
|
25
25
|
year: "",
|
|
26
26
|
month: "",
|
|
27
27
|
day: ""
|
|
28
|
-
}),
|
|
28
|
+
}), n = B(""), r = B(""), m = (e) => {
|
|
29
29
|
l.formValidationManager && l.formValidationManager.setValid(l.name, e);
|
|
30
|
-
},
|
|
30
|
+
}, f = (e) => !e && l.isRequired ? { isValid: !1, message: U.required } : { isValid: !0, message: "" }, O = (e) => F(
|
|
31
31
|
{ year: e.year, month: e.month, day: e.day ?? "" },
|
|
32
32
|
{ type: l.type, isRequired: l.isRequired }
|
|
33
|
-
),
|
|
34
|
-
const { year: a, month:
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
)
|
|
52
|
-
const k = (e) => {
|
|
33
|
+
), h = (e) => {
|
|
34
|
+
const { year: a, month: d, day: o } = T(e);
|
|
35
|
+
i.year = a, i.month = d, i.day = l.type === "month" ? "" : o;
|
|
36
|
+
}, E = () => H({ ...i }, l.type), j = (e) => {
|
|
37
|
+
const a = e.target.value;
|
|
38
|
+
n.value = a, h(a);
|
|
39
|
+
const { isValid: d, message: o } = f(a);
|
|
40
|
+
r.value = o, m(d), v("update:modelValue", a);
|
|
41
|
+
}, I = (e) => {
|
|
42
|
+
const { isValid: a, message: d } = O(i);
|
|
43
|
+
m(a), r.value = e ? d : "";
|
|
44
|
+
const o = a ? E() : "";
|
|
45
|
+
o !== n.value && (n.value = o, v("update:modelValue", o));
|
|
46
|
+
}, D = (e, a) => {
|
|
47
|
+
i[e] = a.target.value, I(!1);
|
|
48
|
+
}, g = () => {
|
|
49
|
+
const e = A({ ...i });
|
|
50
|
+
i.year = e.year, i.month = e.month, i.day = e.day, I(!0);
|
|
51
|
+
}, L = (e) => {
|
|
53
52
|
if (!e) {
|
|
54
|
-
|
|
53
|
+
n.value = "", h(""), r.value = "", m(f("").isValid);
|
|
55
54
|
return;
|
|
56
55
|
}
|
|
57
56
|
const a = G(e, l.type);
|
|
58
|
-
!a || a ===
|
|
57
|
+
!a || a === n.value || (n.value = a, h(a), r.value = "", m(f(a).isValid), a !== e && v("update:modelValue", a));
|
|
59
58
|
};
|
|
60
|
-
return
|
|
59
|
+
return R(
|
|
61
60
|
() => l.modelValue,
|
|
62
|
-
(e) =>
|
|
63
|
-
),
|
|
61
|
+
(e) => L(e)
|
|
62
|
+
), L(l.modelValue), m(f(n.value).isValid), N(() => {
|
|
64
63
|
var e;
|
|
65
64
|
return (e = l.formValidationManager) == null ? void 0 : e.remove(l.name);
|
|
66
|
-
}), (e, a) => (
|
|
65
|
+
}), (e, a) => (p(), w(J, {
|
|
67
66
|
isDisabled: t.isDisabled,
|
|
68
|
-
class:
|
|
67
|
+
class: y([
|
|
69
68
|
e.$style.date_picker,
|
|
70
69
|
e.$style[t.size],
|
|
71
70
|
{ [e.$style.is_disabled]: t.isDisabled }
|
|
72
71
|
]),
|
|
73
72
|
isErrored: !!r.value
|
|
74
73
|
}, {
|
|
75
|
-
default:
|
|
76
|
-
|
|
77
|
-
class:
|
|
74
|
+
default: P(() => [
|
|
75
|
+
s("div", {
|
|
76
|
+
class: y(e.$style.date_input)
|
|
78
77
|
}, [
|
|
79
|
-
M(
|
|
80
|
-
class:
|
|
78
|
+
M(K, {
|
|
79
|
+
class: y(e.$style.icon)
|
|
81
80
|
}, null, 8, ["class"]),
|
|
82
|
-
|
|
81
|
+
s("input", {
|
|
83
82
|
ref_key: "datePicker",
|
|
84
|
-
ref:
|
|
85
|
-
|
|
83
|
+
ref: x,
|
|
84
|
+
value: n.value,
|
|
86
85
|
type: t.type,
|
|
87
86
|
name: t.name,
|
|
88
|
-
"aria-label":
|
|
89
|
-
"aria-labelledby":
|
|
87
|
+
"aria-label": b("カレンダー"),
|
|
88
|
+
"aria-labelledby": c("カレンダー"),
|
|
90
89
|
max: t.maxDate,
|
|
91
90
|
min: t.minDate,
|
|
92
91
|
required: t.isRequired,
|
|
93
|
-
disabled: t.isDisabled
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
])
|
|
92
|
+
disabled: t.isDisabled,
|
|
93
|
+
onInput: j
|
|
94
|
+
}, null, 40, X)
|
|
97
95
|
], 2),
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
s("input", {
|
|
97
|
+
value: i.year,
|
|
100
98
|
placeholder: "年",
|
|
101
|
-
"aria-label":
|
|
102
|
-
"aria-labelledby":
|
|
99
|
+
"aria-label": b("年"),
|
|
100
|
+
"aria-labelledby": c("年"),
|
|
103
101
|
maxlength: "4",
|
|
104
102
|
type: "text",
|
|
105
103
|
disabled: t.isDisabled,
|
|
106
|
-
class:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
a[
|
|
111
|
-
|
|
112
|
-
|
|
104
|
+
class: y(e.$style.year),
|
|
105
|
+
onInput: a[0] || (a[0] = (d) => D("year", d)),
|
|
106
|
+
onBlur: g
|
|
107
|
+
}, null, 42, Y),
|
|
108
|
+
a[3] || (a[3] = S("/ ", -1)),
|
|
109
|
+
s("input", {
|
|
110
|
+
value: i.month,
|
|
113
111
|
placeholder: "月",
|
|
114
|
-
"aria-label":
|
|
115
|
-
"aria-labelledby":
|
|
112
|
+
"aria-label": b("月"),
|
|
113
|
+
"aria-labelledby": c("月"),
|
|
116
114
|
maxlength: "2",
|
|
117
115
|
type: "text",
|
|
118
|
-
disabled: t.isDisabled
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
t.type === "date" ? (
|
|
123
|
-
t.type === "date" ?
|
|
116
|
+
disabled: t.isDisabled,
|
|
117
|
+
onInput: a[1] || (a[1] = (d) => D("month", d)),
|
|
118
|
+
onBlur: g
|
|
119
|
+
}, null, 40, Z),
|
|
120
|
+
t.type === "date" ? (p(), $("span", _, "/")) : k("", !0),
|
|
121
|
+
t.type === "date" ? (p(), $("input", {
|
|
124
122
|
key: 1,
|
|
125
|
-
|
|
123
|
+
value: i.day,
|
|
126
124
|
placeholder: "日",
|
|
127
|
-
"aria-label":
|
|
128
|
-
"aria-labelledby":
|
|
125
|
+
"aria-label": b("日"),
|
|
126
|
+
"aria-labelledby": c("日"),
|
|
129
127
|
maxlength: "2",
|
|
130
128
|
type: "text",
|
|
131
|
-
disabled: t.isDisabled
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
t.ariaLabelledBy ? (
|
|
129
|
+
disabled: t.isDisabled,
|
|
130
|
+
onInput: a[2] || (a[2] = (d) => D("day", d)),
|
|
131
|
+
onBlur: g
|
|
132
|
+
}, null, 40, ee)) : k("", !0),
|
|
133
|
+
t.ariaLabelledBy ? (p(), $("span", {
|
|
136
134
|
key: 2,
|
|
137
|
-
class:
|
|
135
|
+
class: y(e.$style.unit_labels)
|
|
138
136
|
}, [
|
|
139
|
-
|
|
140
|
-
id: `${
|
|
141
|
-
}, "のカレンダー", 8,
|
|
142
|
-
|
|
143
|
-
id: `${
|
|
144
|
-
}, "の年", 8,
|
|
145
|
-
|
|
146
|
-
id: `${
|
|
147
|
-
}, "の月", 8,
|
|
148
|
-
|
|
149
|
-
id: `${
|
|
150
|
-
}, "の日", 8,
|
|
151
|
-
], 2)) :
|
|
152
|
-
M(
|
|
137
|
+
s("span", {
|
|
138
|
+
id: `${V(u)}_カレンダー`
|
|
139
|
+
}, "のカレンダー", 8, ae),
|
|
140
|
+
s("span", {
|
|
141
|
+
id: `${V(u)}_年`
|
|
142
|
+
}, "の年", 8, le),
|
|
143
|
+
s("span", {
|
|
144
|
+
id: `${V(u)}_月`
|
|
145
|
+
}, "の月", 8, te),
|
|
146
|
+
s("span", {
|
|
147
|
+
id: `${V(u)}_日`
|
|
148
|
+
}, "の日", 8, ie)
|
|
149
|
+
], 2)) : k("", !0),
|
|
150
|
+
M(Q, {
|
|
153
151
|
errorMessages: r.value ? [r.value] : []
|
|
154
152
|
}, null, 8, ["errorMessages"])
|
|
155
153
|
]),
|
|
@@ -158,5 +156,5 @@ const Q = ["type", "name", "aria-label", "aria-labelledby", "max", "min", "requi
|
|
|
158
156
|
}
|
|
159
157
|
});
|
|
160
158
|
export {
|
|
161
|
-
|
|
159
|
+
me as default
|
|
162
160
|
};
|