@geckou/ui-vue 0.10.0 → 0.13.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 +31 -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/BasicButton.vue2.js +51 -43
- package/dist/components/BasicButton.vue3.js +5 -5
- package/dist/components/CheckBoxes.vue.d.ts +8 -0
- package/dist/components/CheckBoxes.vue2.js +56 -45
- package/dist/components/CheckButton.vue.d.ts +9 -0
- package/dist/components/CheckButton.vue2.js +32 -28
- package/dist/components/DateSelector.vue2.js +93 -99
- package/dist/components/ErrorMessage.vue.d.ts +2 -0
- package/dist/components/ErrorMessage.vue2.js +15 -13
- package/dist/components/LoadingSpinner.vue.d.ts +1 -1
- package/dist/components/LoadingSpinner.vue.js +5 -3
- package/dist/components/ModalBox.vue2.js +51 -41
- package/dist/components/PopupBox.vue2.js +17 -17
- package/dist/components/RadioButtons.vue.d.ts +8 -0
- package/dist/components/RadioButtons.vue2.js +55 -44
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -301,6 +301,37 @@ const articles = ref<any[]>([])
|
|
|
301
301
|
|
|
302
302
|
定義例はデモの `demo/styles/base.scss` を参照。
|
|
303
303
|
|
|
304
|
+
## 0.13.0 の変更
|
|
305
|
+
|
|
306
|
+
- `BasicButton` はローディング中に `disabled` にしない(押した瞬間にフォーカスが
|
|
307
|
+
`body` へ落ちるため)。代わりに `aria-disabled` / `aria-busy` を付け、
|
|
308
|
+
`pointer-events` と click ガードで押せなくする。**`:disabled` を前提に
|
|
309
|
+
スタイルを当てている場合は `[aria-disabled]` の追従が要る**
|
|
310
|
+
- `BasicButton` のローディング中もアクセシブル名を保つ(`visibility: hidden` → `opacity: 0`)。
|
|
311
|
+
`LoadingSpinner` は `aria-hidden="true"`
|
|
312
|
+
- `BasicButton` の hover 色が `color-mix()` になった(3 桁 hex 等で不正値になっていた)。
|
|
313
|
+
`cssStyle` の差し替えにも追従する(`hoverStyle` を `computed` に)
|
|
314
|
+
- `PopupBox` は**表示している間だけ**スロットを描画する
|
|
315
|
+
- `ModalBox` はマウント時点で `isShown` が true でもダイアログへフォーカスを移す
|
|
316
|
+
- `ModalBox` の背景クリック判定が「押し始めも背景だったとき」だけになった
|
|
317
|
+
- `RadioButtons` が `role="radiogroup"`、`CheckBoxes` が `role="group"` になり、
|
|
318
|
+
どちらも `ariaLabel` / `ariaLabelledBy` を受ける。エラーは `aria-describedby` で結び付く
|
|
319
|
+
- `RadioButtons` が `cssStyle.textColor` を `--text-color` へ出す(React 版と揃えた)
|
|
320
|
+
- `CheckButton` が `ariaLabel` / `ariaLabelledBy` を受ける
|
|
321
|
+
- `CheckBoxes` の `errorColor` が `cssStyle` の差し替えに追従する
|
|
322
|
+
- `ErrorMessage` が `id` を受ける
|
|
323
|
+
## 0.12.0 の変更
|
|
324
|
+
|
|
325
|
+
- `GenericArticleList` が `theme='grid'` を実装した(型には含まれるのに switch に無く、
|
|
326
|
+
黙って Standard になっていた)。`<ul>` の `list-style` もリセットする
|
|
327
|
+
- `CategoryList` / `MetadataList` が引き当てに失敗した値(空文字)を描かない。
|
|
328
|
+
`categoryData` を渡し忘れると、ID の数だけ空の `<li>` が並んでいた
|
|
329
|
+
- `MetadataList` の `icon.name` が prop の変更に追従する(setup 時の一度きりだった)
|
|
330
|
+
- `News` / `Row` カードが `isPickUpItem` を宣言した(`ispickupitem` 属性として
|
|
331
|
+
`<a>` に落ちていた)
|
|
332
|
+
- `News` カードの `AuthorInfo` へ渡す文字サイズを `text.fontSize` に直した
|
|
333
|
+
(`fontSize` は prop ではなく、小さくなっていなかった)
|
|
334
|
+
- `DateSelector` の使われていないクリックハンドラ(`openDropdown`)を削除
|
|
304
335
|
## 0.10.0 の変更
|
|
305
336
|
|
|
306
337
|
- `DatePicker` の年月日欄は**入力中にエラー文言を出さない**。判定は入力のたびに
|
|
@@ -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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { COLOR as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as J, computed as R, openBlock as V, createElementBlock as K, normalizeClass as j, normalizeStyle as M, withDirectives as Q, createElementVNode as q, renderSlot as A, createBlock as U, vShow as W } from "vue";
|
|
2
|
+
import X from "./LoadingSpinner.vue.js";
|
|
3
|
+
import { COLOR as i } from "@geckou/ui-core";
|
|
4
|
+
const Y = ["type", "disabled", "aria-disabled", "aria-busy"], oe = /* @__PURE__ */ J({
|
|
5
5
|
__name: "BasicButton",
|
|
6
6
|
props: {
|
|
7
7
|
cssStyle: {},
|
|
@@ -10,62 +10,70 @@ const Z = ["type", "disabled"], ro = /* @__PURE__ */ K({
|
|
|
10
10
|
isDisabled: { type: Boolean },
|
|
11
11
|
buttonType: {}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const e = d.isDisabled ? (n = d.cssStyle) == null ? void 0 : n.disabled : (t = d.cssStyle) == null ? void 0 : t.default;
|
|
13
|
+
setup(a) {
|
|
14
|
+
const r = a, o = R(() => {
|
|
15
|
+
var t, d;
|
|
16
|
+
const e = r.isDisabled ? (t = r.cssStyle) == null ? void 0 : t.disabled : (d = r.cssStyle) == null ? void 0 : d.default;
|
|
18
17
|
return {
|
|
19
|
-
textColor:
|
|
20
|
-
backgroundColor:
|
|
18
|
+
textColor: i.white,
|
|
19
|
+
backgroundColor: r.isDisabled ? i.darkGray : i.blue,
|
|
21
20
|
backgroundImage: "none",
|
|
22
21
|
border: {
|
|
23
|
-
color:
|
|
22
|
+
color: r.isDisabled ? i.darkGray : i.blue,
|
|
24
23
|
size: "1px",
|
|
25
24
|
radius: ".25rem"
|
|
26
25
|
},
|
|
27
26
|
boxShadow: "0 0 0 0 transparent",
|
|
28
27
|
...e
|
|
29
28
|
};
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"--
|
|
42
|
-
"--
|
|
43
|
-
"--
|
|
44
|
-
"--
|
|
45
|
-
"--
|
|
46
|
-
"--
|
|
47
|
-
"--
|
|
48
|
-
"--hover-
|
|
49
|
-
"--hover-
|
|
50
|
-
"--
|
|
29
|
+
}), l = R(() => {
|
|
30
|
+
var e;
|
|
31
|
+
return ((e = r.cssStyle) == null ? void 0 : e.hover) || {};
|
|
32
|
+
}), F = (e) => e && `color-mix(in srgb, ${e} 80%, transparent)`, H = (e) => {
|
|
33
|
+
r.isLoading && (e.preventDefault(), e.stopImmediatePropagation());
|
|
34
|
+
};
|
|
35
|
+
return (e, t) => {
|
|
36
|
+
var d, n, s, u, b, c, v, g, m, y, h, k, S, f, C, x, z, p, w, D, L, $, B, I, E, G, O, T, N, P;
|
|
37
|
+
return V(), K("button", {
|
|
38
|
+
class: j([e.$style.button, { [e.$style.loading]: a.isLoading }]),
|
|
39
|
+
style: M({
|
|
40
|
+
"--text-color": (d = o.value) == null ? void 0 : d.textColor,
|
|
41
|
+
"--background-color": (n = o.value) == null ? void 0 : n.backgroundColor,
|
|
42
|
+
"--background-image": (s = o.value) == null ? void 0 : s.backgroundImage,
|
|
43
|
+
"--border-color": (b = (u = o.value) == null ? void 0 : u.border) == null ? void 0 : b.color,
|
|
44
|
+
"--border-size": (v = (c = o.value) == null ? void 0 : c.border) == null ? void 0 : v.size,
|
|
45
|
+
"--radius-size": (m = (g = o.value) == null ? void 0 : g.border) == null ? void 0 : m.radius,
|
|
46
|
+
"--box-shadow": (y = o.value) == null ? void 0 : y.boxShadow,
|
|
47
|
+
"--hover-text-color": ((h = l.value) == null ? void 0 : h.textColor) || ((k = o.value) == null ? void 0 : k.textColor),
|
|
48
|
+
"--hover-background-color": ((S = l.value) == null ? void 0 : S.backgroundColor) || F((f = o.value) == null ? void 0 : f.backgroundColor),
|
|
49
|
+
"--hover-background-image": ((C = l.value) == null ? void 0 : C.backgroundImage) || ((x = o.value) == null ? void 0 : x.backgroundImage),
|
|
50
|
+
"--hover-border-color": ((p = (z = l.value) == null ? void 0 : z.border) == null ? void 0 : p.color) || ((D = (w = o.value) == null ? void 0 : w.border) == null ? void 0 : D.color),
|
|
51
|
+
"--hover-border-size": (($ = (L = l.value) == null ? void 0 : L.border) == null ? void 0 : $.size) || ((I = (B = o.value) == null ? void 0 : B.border) == null ? void 0 : I.size),
|
|
52
|
+
"--hover-radius-size": ((G = (E = l.value) == null ? void 0 : E.border) == null ? void 0 : G.radius) || ((T = (O = o.value) == null ? void 0 : O.border) == null ? void 0 : T.radius),
|
|
53
|
+
"--hover-box-shadow": ((N = l.value) == null ? void 0 : N.boxShadow) || ((P = o.value) == null ? void 0 : P.boxShadow),
|
|
54
|
+
"--duration": `${a.duration || 0.3}s`
|
|
51
55
|
}),
|
|
52
|
-
type:
|
|
53
|
-
disabled:
|
|
56
|
+
type: a.buttonType || "button",
|
|
57
|
+
disabled: a.isDisabled,
|
|
58
|
+
"aria-disabled": a.isDisabled || a.isLoading || void 0,
|
|
59
|
+
"aria-busy": a.isLoading || void 0,
|
|
60
|
+
onClick: H
|
|
54
61
|
}, [
|
|
55
|
-
|
|
56
|
-
class:
|
|
62
|
+
Q(q("div", {
|
|
63
|
+
class: j(e.$style.loading_animation),
|
|
64
|
+
"aria-hidden": "true"
|
|
57
65
|
}, [
|
|
58
|
-
e.$slots.loading ?
|
|
66
|
+
e.$slots.loading ? A(e.$slots, "loading", {}, void 0, void 0, 0) : (V(), U(X, { key: 1 }))
|
|
59
67
|
], 2), [
|
|
60
|
-
[
|
|
68
|
+
[W, a.isLoading]
|
|
61
69
|
]),
|
|
62
|
-
|
|
63
|
-
|
|
70
|
+
q("div", null, [
|
|
71
|
+
A(e.$slots, "default")
|
|
64
72
|
])
|
|
65
|
-
], 14,
|
|
73
|
+
], 14, Y);
|
|
66
74
|
};
|
|
67
75
|
}
|
|
68
76
|
});
|
|
69
77
|
export {
|
|
70
|
-
|
|
78
|
+
oe as default
|
|
71
79
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
button:
|
|
3
|
-
loading:
|
|
1
|
+
const o = "_button_1ocs4_1", n = "_loading_1ocs4_25", t = "_loading_animation_1ocs4_35", a = {
|
|
2
|
+
button: o,
|
|
3
|
+
loading: n,
|
|
4
4
|
loading_animation: t
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
o as button,
|
|
8
8
|
a as default,
|
|
9
|
-
|
|
9
|
+
n as loading,
|
|
10
10
|
t as loading_animation
|
|
11
11
|
};
|
|
@@ -6,6 +6,12 @@ type __VLS_Props = {
|
|
|
6
6
|
isDisabled?: boolean;
|
|
7
7
|
isRequired?: boolean;
|
|
8
8
|
cssStyle?: CheckBoxStyleForEachStatus;
|
|
9
|
+
/**
|
|
10
|
+
* チェックボックス群自体のアクセシブル名。
|
|
11
|
+
* 可視ラベル(見出し等)があるなら ariaLabelledBy でその要素を指すこと
|
|
12
|
+
*/
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
ariaLabelledBy?: string;
|
|
9
15
|
};
|
|
10
16
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
17
|
"update:modelValue": (newValue: SelectValue[]) => any;
|
|
@@ -14,5 +20,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
14
20
|
}>, {
|
|
15
21
|
cssStyle: CheckBoxStyleForEachStatus;
|
|
16
22
|
modelValue: SelectValue[];
|
|
23
|
+
ariaLabel: string;
|
|
24
|
+
ariaLabelledBy: string;
|
|
17
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
26
|
export default _default;
|