@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 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 枚だけ**になった
@@ -2,6 +2,7 @@ import { Article, Category, PostConfig } from '../../../types';
2
2
  type __VLS_Props = {
3
3
  article: Article;
4
4
  path: string;
5
+ isPickUpItem?: boolean;
5
6
  postConfig: PostConfig;
6
7
  categories: Category[];
7
8
  };
@@ -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 B = /* @__PURE__ */ m({
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
- B as default
95
+ A as default
95
96
  };
@@ -2,6 +2,7 @@ import { Article, Category, PostConfig } from '../../../types';
2
2
  type __VLS_Props = {
3
3
  article: Article;
4
4
  path: string;
5
+ isPickUpItem?: boolean;
5
6
  postConfig: PostConfig;
6
7
  categories: Category[];
7
8
  };
@@ -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 v from "../Parts/PostedDate.vue.js";
10
- import b from "../Parts/ExcerptText.vue.js";
11
- const R = /* @__PURE__ */ g({
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, k) => e.article ? (r(), l(y, {
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(v, {
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(b, {
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
- R as default
97
+ N as default
97
98
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, computed as r, openBlock as n, createElementBlock as a, normalizeStyle as c, normalizeClass as C, Fragment as g, renderList as b, createBlock as y, resolveDynamicComponent as k, unref as h } from "vue";
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/Entertainment.vue.js";
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 K = /* @__PURE__ */ f({
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 t = e, d = r(() => t.settings.domainToUse), i = r(() => t.settings.isEnabledPickUp), s = r(
23
- () => v(t.settings.postConfig)
24
- ), p = r(() => {
25
- switch (t.theme) {
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 B;
46
+ return G;
44
47
  default:
45
48
  return u;
46
49
  }
47
50
  });
48
- return (m, S) => (n(), a("ul", {
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]: i.value }])
56
+ class: C([m.$style.list, { [m.$style.pickup]: a.value }])
54
57
  }, [
55
- (n(!0), a(g, null, b(e.articles, (o, l) => (n(), a("li", {
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 && i.value,
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
- K as default
74
+ O as default
72
75
  };
@@ -1,11 +1,11 @@
1
- const t = "_list_h2kvz_1", s = "_fadeIn_h2kvz_1", _ = "_pickup_h2kvz_39", c = {
2
- list: t,
3
- fadeIn: s,
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
- c as default,
8
- s as fadeIn,
9
- t as list,
10
- _ as pickup
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(e) {
13
- const n = e, l = (t, c) => {
12
+ setup(t) {
13
+ const n = t, l = (e, i) => {
14
14
  var a;
15
- return t.length ? ((a = t.find((o) => String(o.id) === String(c))) == null ? void 0 : a.name) ?? "" : "";
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
- (t) => l(n.categoryData, t)
19
- )
18
+ (e) => l(n.categoryData, e)
19
+ ).filter((e) => e !== "")
20
20
  );
21
- return (t, c) => {
22
- var a, o, i;
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 = e.icon) != null && a.color ? "FolderIcon" : null,
27
- color: (o = e.icon) == null ? void 0 : o.color,
28
- size: (i = e.icon) == null ? void 0 : i.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: e.label,
31
- delimiter: e.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 s, openBlock as a, createElementBlock as o, normalizeClass as t, normalizeStyle as n, createBlock as m, resolveDynamicComponent as d, unref as u, createCommentVNode as i, createElementVNode as b, Fragment as f, renderList as y, toDisplayString as g } from "vue";
2
- import k from "../../Icon/Folder.vue.js";
3
- import v from "../../Icon/Tag.vue.js";
4
- const z = ["data-delimiter"], F = /* @__PURE__ */ s({
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 c = e.icon.name === "FolderIcon" ? k : v;
24
- return (l, C) => e.metadata.length ? (a(), o("div", {
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(), m(d(u(c)), {
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"])) : i("", !0),
37
- b("ul", {
38
+ }, null, 8, ["class", "style"])) : m("", !0),
39
+ v("ul", {
38
40
  class: t(l.$style.list)
39
41
  }, [
40
- (a(!0), o(f, null, y(e.metadata, (r) => (a(), o("li", {
41
- key: r,
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
- }, g(r), 15, z))), 128))
57
+ }, z(s), 15, $))), 128))
56
58
  ], 2)
57
- ], 6)) : i("", !0);
59
+ ], 6)) : m("", !0);
58
60
  }
59
61
  });
60
62
  export {
61
- F as default
63
+ q as default
62
64
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as I, ref as D, reactive as R, watch as h, onBeforeUnmount as N, openBlock as f, createBlock as O, normalizeClass as u, withCtx as z, createElementVNode as n, createVNode as M, withDirectives as c, vModelDynamic as P, vModelText as $, createTextVNode as S, createElementBlock as g, createCommentVNode as B, unref as p } from "vue";
2
- import { MESSAGES as j, validateDateObject as T, splitDate as w, composeDateValue as A, formatDateValue as G } from "@geckou/ui-core";
3
- import F from "./InputBox.vue.js";
4
- import H from "./Icon/CalendarIcon.vue.js";
5
- import J from "./ErrorMessage.vue.js";
6
- import { nextUniqueId as K } from "../scripts/unique-id.js";
7
- const Q = ["type", "name", "aria-label", "aria-labelledby", "max", "min", "required", "disabled"], W = ["aria-label", "aria-labelledby", "disabled"], X = ["aria-label", "aria-labelledby", "disabled"], Y = { key: 0 }, Z = ["aria-label", "aria-labelledby", "disabled"], _ = ["id"], ee = ["id"], ae = ["id"], le = ["id"], oe = /* @__PURE__ */ I({
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: x }) {
24
- const L = x, q = D(null), l = t, o = K("date_picker_unit"), m = (e) => l.ariaLabelledBy ? void 0 : `${l.ariaLabel ?? l.name}の${e}`, y = (e) => l.ariaLabelledBy ? `${l.ariaLabelledBy} ${o}_${e}` : void 0, d = R({
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
- }), s = D(""), r = D(""), b = (e) => {
28
+ }), n = B(""), r = B(""), m = (e) => {
29
29
  l.formValidationManager && l.formValidationManager.setValid(l.name, e);
30
- }, V = (e) => !e && l.isRequired ? { isValid: !1, message: j.required } : { isValid: !0, message: "" }, E = (e) => T(
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
- ), v = (e) => {
34
- const { year: a, month: i, day: C } = w(e);
35
- d.year = a, d.month = i, d.day = l.type === "month" ? "" : C;
36
- }, U = () => A({ ...d }, l.type);
37
- h(
38
- () => s.value,
39
- (e) => {
40
- v(e);
41
- const { isValid: a, message: i } = V(e);
42
- r.value = i, L("update:modelValue", e), b(a);
43
- }
44
- ), h(
45
- () => d,
46
- (e) => {
47
- const { isValid: a, message: i } = E(e);
48
- r.value = i, b(a), a && (s.value = U());
49
- },
50
- { deep: !0 }
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
- s.value = "", v(""), r.value = "", b(V("").isValid);
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 === s.value || (s.value = a, v(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 h(
59
+ return R(
61
60
  () => l.modelValue,
62
- (e) => k(e)
63
- ), k(l.modelValue), b(V(s.value).isValid), N(() => {
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) => (f(), O(F, {
65
+ }), (e, a) => (p(), w(J, {
67
66
  isDisabled: t.isDisabled,
68
- class: u([
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: z(() => [
76
- n("div", {
77
- class: u(e.$style.date_input)
74
+ default: P(() => [
75
+ s("div", {
76
+ class: y(e.$style.date_input)
78
77
  }, [
79
- M(H, {
80
- class: u(e.$style.icon)
78
+ M(K, {
79
+ class: y(e.$style.icon)
81
80
  }, null, 8, ["class"]),
82
- c(n("input", {
81
+ s("input", {
83
82
  ref_key: "datePicker",
84
- ref: q,
85
- "onUpdate:modelValue": a[0] || (a[0] = (i) => s.value = i),
83
+ ref: x,
84
+ value: n.value,
86
85
  type: t.type,
87
86
  name: t.name,
88
- "aria-label": m("カレンダー"),
89
- "aria-labelledby": y("カレンダー"),
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
- }, null, 8, Q), [
95
- [P, s.value]
96
- ])
92
+ disabled: t.isDisabled,
93
+ onInput: j
94
+ }, null, 40, X)
97
95
  ], 2),
98
- c(n("input", {
99
- "onUpdate:modelValue": a[1] || (a[1] = (i) => d.year = i),
96
+ s("input", {
97
+ value: i.year,
100
98
  placeholder: "年",
101
- "aria-label": m("年"),
102
- "aria-labelledby": y("年"),
99
+ "aria-label": b("年"),
100
+ "aria-labelledby": c("年"),
103
101
  maxlength: "4",
104
102
  type: "text",
105
103
  disabled: t.isDisabled,
106
- class: u(e.$style.year)
107
- }, null, 10, W), [
108
- [$, d.year]
109
- ]),
110
- a[4] || (a[4] = S("/ ", -1)),
111
- c(n("input", {
112
- "onUpdate:modelValue": a[2] || (a[2] = (i) => d.month = i),
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": m("月"),
115
- "aria-labelledby": y("月"),
112
+ "aria-label": b("月"),
113
+ "aria-labelledby": c("月"),
116
114
  maxlength: "2",
117
115
  type: "text",
118
- disabled: t.isDisabled
119
- }, null, 8, X), [
120
- [$, d.month]
121
- ]),
122
- t.type === "date" ? (f(), g("span", Y, "/")) : B("", !0),
123
- t.type === "date" ? c((f(), g("input", {
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
- "onUpdate:modelValue": a[3] || (a[3] = (i) => d.day = i),
123
+ value: i.day,
126
124
  placeholder: "日",
127
- "aria-label": m("日"),
128
- "aria-labelledby": y("日"),
125
+ "aria-label": b("日"),
126
+ "aria-labelledby": c("日"),
129
127
  maxlength: "2",
130
128
  type: "text",
131
- disabled: t.isDisabled
132
- }, null, 8, Z)), [
133
- [$, d.day]
134
- ]) : B("", !0),
135
- t.ariaLabelledBy ? (f(), g("span", {
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: u(e.$style.unit_labels)
135
+ class: y(e.$style.unit_labels)
138
136
  }, [
139
- n("span", {
140
- id: `${p(o)}_カレンダー`
141
- }, "のカレンダー", 8, _),
142
- n("span", {
143
- id: `${p(o)}_年`
144
- }, "の年", 8, ee),
145
- n("span", {
146
- id: `${p(o)}_月`
147
- }, "の月", 8, ae),
148
- n("span", {
149
- id: `${p(o)}_日`
150
- }, "の日", 8, le)
151
- ], 2)) : B("", !0),
152
- M(J, {
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
- oe as default
159
+ me as default
162
160
  };