@wizleap-inc/wiz-ui-next 2.0.0 → 2.1.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.
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { PropType } from "vue";
|
|
2
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
-
isOpen: {
|
|
4
|
-
type: BooleanConstructor;
|
|
5
|
-
required: false;
|
|
6
|
-
default: boolean;
|
|
7
|
-
};
|
|
8
3
|
gapLeft: {
|
|
9
4
|
type: PropType<"at" | "no" | "xs2" | "xs" | "sm" | "md" | "lg" | "xl" | "xl2" | "xl3" | "xl4" | "max">;
|
|
10
5
|
required: false;
|
|
@@ -18,8 +13,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
18
13
|
required: false;
|
|
19
14
|
};
|
|
20
15
|
}, {
|
|
21
|
-
|
|
22
|
-
emits: (e: "click", value: boolean) => void;
|
|
16
|
+
emits: (e: "onToggle") => void;
|
|
23
17
|
toggleMenuOpen: () => void;
|
|
24
18
|
currentZIndex: import("vue").ComputedRef<number>;
|
|
25
19
|
readonly headerStyle: string;
|
|
@@ -548,12 +542,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
548
542
|
variant: "transparent" | "link" | "sub" | "primary";
|
|
549
543
|
}>;
|
|
550
544
|
readonly WizIMenu: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
551
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
|
552
|
-
isOpen: {
|
|
553
|
-
type: BooleanConstructor;
|
|
554
|
-
required: false;
|
|
555
|
-
default: boolean;
|
|
556
|
-
};
|
|
545
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onToggle"[], "onToggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
557
546
|
gapLeft: {
|
|
558
547
|
type: PropType<"at" | "no" | "xs2" | "xs" | "sm" | "md" | "lg" | "xl" | "xl2" | "xl3" | "xl4" | "max">;
|
|
559
548
|
required: false;
|
|
@@ -567,9 +556,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
567
556
|
required: false;
|
|
568
557
|
};
|
|
569
558
|
}>> & {
|
|
570
|
-
|
|
559
|
+
onOnToggle?: ((...args: any[]) => any) | undefined;
|
|
571
560
|
}, {
|
|
572
|
-
isOpen: boolean;
|
|
573
561
|
sticky: boolean;
|
|
574
562
|
}>;
|
|
575
563
|
export default _sfc_main;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from "vue";
|
|
2
|
+
import { TIcon } from '../../../../components/icons';
|
|
2
3
|
import { SearchInputOption } from "./types";
|
|
3
4
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
5
|
options: {
|
|
@@ -43,6 +44,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
43
44
|
required: false;
|
|
44
45
|
default: boolean;
|
|
45
46
|
};
|
|
47
|
+
icon: {
|
|
48
|
+
type: PropType<TIcon>;
|
|
49
|
+
required: false;
|
|
50
|
+
default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
51
|
+
};
|
|
46
52
|
}, {
|
|
47
53
|
props: any;
|
|
48
54
|
emit: {
|
|
@@ -594,10 +600,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
594
600
|
reverse: boolean;
|
|
595
601
|
wrap: boolean;
|
|
596
602
|
}>;
|
|
597
|
-
readonly WizISearch: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
598
603
|
readonly WizIcon: import("vue").DefineComponent<{
|
|
599
604
|
icon: {
|
|
600
|
-
type: PropType<
|
|
605
|
+
type: PropType<TIcon>;
|
|
601
606
|
required: true;
|
|
602
607
|
};
|
|
603
608
|
color: {
|
|
@@ -618,7 +623,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
618
623
|
readonly fontSizeStyle: Record<"xs2" | "xs" | "sm" | "md" | "lg" | "xl" | "xl2" | "xl3" | "xl4" | "xs3" | "xl5" | "xl6", string>;
|
|
619
624
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
620
625
|
icon: {
|
|
621
|
-
type: PropType<
|
|
626
|
+
type: PropType<TIcon>;
|
|
622
627
|
required: true;
|
|
623
628
|
};
|
|
624
629
|
color: {
|
|
@@ -1413,7 +1418,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
1413
1418
|
}>;
|
|
1414
1419
|
readonly WizIcon: import("vue").DefineComponent<{
|
|
1415
1420
|
icon: {
|
|
1416
|
-
type: PropType<
|
|
1421
|
+
type: PropType<TIcon>;
|
|
1417
1422
|
required: true;
|
|
1418
1423
|
};
|
|
1419
1424
|
color: {
|
|
@@ -1434,7 +1439,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
1434
1439
|
readonly fontSizeStyle: Record<"xs2" | "xs" | "sm" | "md" | "lg" | "xl" | "xl2" | "xl3" | "xl4" | "xs3" | "xl5" | "xl6", string>;
|
|
1435
1440
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1436
1441
|
icon: {
|
|
1437
|
-
type: PropType<
|
|
1442
|
+
type: PropType<TIcon>;
|
|
1438
1443
|
required: true;
|
|
1439
1444
|
};
|
|
1440
1445
|
color: {
|
|
@@ -1593,11 +1598,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
1593
1598
|
required: false;
|
|
1594
1599
|
default: boolean;
|
|
1595
1600
|
};
|
|
1601
|
+
icon: {
|
|
1602
|
+
type: PropType<TIcon>;
|
|
1603
|
+
required: false;
|
|
1604
|
+
default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1605
|
+
};
|
|
1596
1606
|
}>> & {
|
|
1597
1607
|
onToggle?: ((...args: any[]) => any) | undefined;
|
|
1598
1608
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
1599
1609
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1600
1610
|
}, {
|
|
1611
|
+
icon: TIcon;
|
|
1601
1612
|
disabled: boolean;
|
|
1602
1613
|
expand: boolean;
|
|
1603
1614
|
isDirectionFixed: boolean;
|
package/dist/wiz-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as k, readonly as Ie, inject as
|
|
1
|
+
import { ref as k, readonly as Ie, inject as oe, defineComponent as s, openBlock as n, createElementBlock as d, normalizeClass as i, unref as e, Fragment as H, renderList as O, createBlock as W, provide as Me, renderSlot as F, createVNode as m, createElementVNode as h, normalizeStyle as A, withCtx as g, toDisplayString as w, computed as _, resolveDynamicComponent as se, createCommentVNode as P, onMounted as ae, onBeforeMount as _l, watch as le, Teleport as Sa, withModifiers as dt, createSlots as Ge, withDirectives as ie, isRef as J, vModelDynamic as ql, vModelCheckbox as Ye, withKeys as be, vShow as pt, vModelRadio as xa, createTextVNode as Z, onBeforeUnmount as wa, reactive as $a, nextTick as Ze, vModelText as za, useSlots as bl } from "vue";
|
|
2
2
|
const yt = {
|
|
3
3
|
sm: "576px",
|
|
4
4
|
md: "768px",
|
|
@@ -391,7 +391,7 @@ const El = () => {
|
|
|
391
391
|
}, Vl = () => ({
|
|
392
392
|
...El()
|
|
393
393
|
}), xt = Symbol("Global"), Ca = (t) => {
|
|
394
|
-
const a =
|
|
394
|
+
const a = oe(t);
|
|
395
395
|
if (!a)
|
|
396
396
|
throw new Error(
|
|
397
397
|
"Global Providerは必ずApp.vue等のvueエントリーポイントファイルでprovideされている必要があります。"
|
|
@@ -1348,7 +1348,7 @@ const Xo = s({
|
|
|
1348
1348
|
},
|
|
1349
1349
|
setup(t) {
|
|
1350
1350
|
const a = t, l = _(() => a.to === void 0 ? !1 : typeof a.to == "object" ? !0 : a.to.startsWith("http") ? !1 : a.openInNewTab === !1);
|
|
1351
|
-
return (r, o) => (n(), W(
|
|
1351
|
+
return (r, o) => (n(), W(se(e(l) ? "router-link" : "a"), {
|
|
1352
1352
|
class: i([
|
|
1353
1353
|
e(Ko),
|
|
1354
1354
|
e(we)[t.color],
|
|
@@ -1772,7 +1772,7 @@ const x1 = ["disabled"], w1 = s({
|
|
|
1772
1772
|
disabled: t.disabled,
|
|
1773
1773
|
onClick: r
|
|
1774
1774
|
}, [
|
|
1775
|
-
(n(), W(
|
|
1775
|
+
(n(), W(se(t.icon), {
|
|
1776
1776
|
class: i(e(b1)[t.variant])
|
|
1777
1777
|
}, null, 8, ["class"]))
|
|
1778
1778
|
], 10, x1));
|
|
@@ -1804,7 +1804,7 @@ const M1 = s({
|
|
|
1804
1804
|
return (a, l) => (n(), d("div", {
|
|
1805
1805
|
class: i([e(T1), e(B1)[t.size]])
|
|
1806
1806
|
}, [
|
|
1807
|
-
(n(), W(
|
|
1807
|
+
(n(), W(se(t.icon), {
|
|
1808
1808
|
class: i([
|
|
1809
1809
|
e(ve)[t.size],
|
|
1810
1810
|
t.color === "inherit" ? e(W1) : e(ft)[t.color]
|
|
@@ -2512,7 +2512,7 @@ const at = k(0), La = (t) => {
|
|
|
2512
2512
|
const a = window.innerWidth;
|
|
2513
2513
|
return Object.keys(t).find((o) => a <= t[o]) ?? At[At.length - 1];
|
|
2514
2514
|
}, Oa = Symbol("BreakpointProvider"), kh = () => {
|
|
2515
|
-
const t =
|
|
2515
|
+
const t = oe(Oa, fu), a = k(lt(t));
|
|
2516
2516
|
return ae(() => {
|
|
2517
2517
|
const l = new ResizeObserver(() => {
|
|
2518
2518
|
a.value = lt(t);
|
|
@@ -2765,11 +2765,6 @@ const Iu = s({
|
|
|
2765
2765
|
}), Wu = /* @__PURE__ */ s({
|
|
2766
2766
|
...Iu,
|
|
2767
2767
|
props: {
|
|
2768
|
-
isOpen: {
|
|
2769
|
-
type: Boolean,
|
|
2770
|
-
required: !1,
|
|
2771
|
-
default: !1
|
|
2772
|
-
},
|
|
2773
2768
|
gapLeft: {
|
|
2774
2769
|
type: String,
|
|
2775
2770
|
required: !1
|
|
@@ -2783,14 +2778,14 @@ const Iu = s({
|
|
|
2783
2778
|
required: !1
|
|
2784
2779
|
}
|
|
2785
2780
|
},
|
|
2786
|
-
emits: ["
|
|
2781
|
+
emits: ["onToggle"],
|
|
2787
2782
|
setup(t, { emit: a }) {
|
|
2788
|
-
const l =
|
|
2789
|
-
a("
|
|
2790
|
-
}, { currentZIndex:
|
|
2791
|
-
return (
|
|
2783
|
+
const l = () => {
|
|
2784
|
+
a("onToggle");
|
|
2785
|
+
}, { currentZIndex: r } = La(X.zIndex.floating);
|
|
2786
|
+
return (o, u) => (n(), d("div", {
|
|
2792
2787
|
class: i([e(Cu), t.sticky && e(ku)]),
|
|
2793
|
-
style: A({ zIndex: e(
|
|
2788
|
+
style: A({ zIndex: e(r) })
|
|
2794
2789
|
}, [
|
|
2795
2790
|
m(e(R), {
|
|
2796
2791
|
align: "center",
|
|
@@ -2808,9 +2803,9 @@ const Iu = s({
|
|
|
2808
2803
|
icon: e(Fa),
|
|
2809
2804
|
size: "lg",
|
|
2810
2805
|
variant: "transparent",
|
|
2811
|
-
onClick:
|
|
2806
|
+
onClick: l
|
|
2812
2807
|
}, null, 8, ["icon"]),
|
|
2813
|
-
F(
|
|
2808
|
+
F(o.$slots, "left")
|
|
2814
2809
|
]),
|
|
2815
2810
|
_: 3
|
|
2816
2811
|
}, 8, ["gap"]),
|
|
@@ -2820,7 +2815,7 @@ const Iu = s({
|
|
|
2820
2815
|
pr: "lg"
|
|
2821
2816
|
}, {
|
|
2822
2817
|
default: g(() => [
|
|
2823
|
-
F(
|
|
2818
|
+
F(o.$slots, "right")
|
|
2824
2819
|
]),
|
|
2825
2820
|
_: 3
|
|
2826
2821
|
}, 8, ["gap"])
|
|
@@ -2866,7 +2861,7 @@ const Tu = s({
|
|
|
2866
2861
|
5: "gray.700",
|
|
2867
2862
|
6: "gray.700"
|
|
2868
2863
|
}, o = _(() => a.fontSize ? a.fontSize : l[a.level]), u = _(() => a.color ? a.color : r[a.level]), c = _(() => `h${a.level}`);
|
|
2869
|
-
return (f, v) => (n(), W(
|
|
2864
|
+
return (f, v) => (n(), W(se(e(c)), {
|
|
2870
2865
|
class: i([
|
|
2871
2866
|
e(Bu),
|
|
2872
2867
|
e(ve)[e(o)],
|
|
@@ -2946,7 +2941,7 @@ const Lu = ["placeholder", "disabled", "type", "id", "autocomplete"], Ou = s({
|
|
|
2946
2941
|
get: () => l.modelValue,
|
|
2947
2942
|
set: (f) => a("update:modelValue", f)
|
|
2948
2943
|
}), o = k(!1), u = _(() => l.expand ? "100%" : l.width), c = _(() => l.error ? "error" : o.value ? "active" : "default");
|
|
2949
|
-
return (f, v) =>
|
|
2944
|
+
return (f, v) => ie((n(), d("input", {
|
|
2950
2945
|
class: i([
|
|
2951
2946
|
e(Hu),
|
|
2952
2947
|
e(Au)[t.spaceType],
|
|
@@ -3011,11 +3006,11 @@ const Lu = ["placeholder", "disabled", "type", "id", "autocomplete"], Ou = s({
|
|
|
3011
3006
|
const l = t, r = _({
|
|
3012
3007
|
get: () => l.modelValue,
|
|
3013
3008
|
set: (f) => a("update:modelValue", f)
|
|
3014
|
-
}), o =
|
|
3009
|
+
}), o = oe(ye), u = _(() => o ? o.isError.value : !1), c = _(() => l.expand ? "expand" : "default");
|
|
3015
3010
|
return (f, v) => (n(), d("div", {
|
|
3016
3011
|
class: i([e(Eu), e(Du)[e(c)]])
|
|
3017
3012
|
}, [
|
|
3018
|
-
(n(), W(
|
|
3013
|
+
(n(), W(se(t.icon), {
|
|
3019
3014
|
class: i(e(Fu))
|
|
3020
3015
|
}, null, 8, ["class"])),
|
|
3021
3016
|
m(e(ja), {
|
|
@@ -3098,7 +3093,7 @@ const td = ["for"], ad = ["id", "name", "value", "disabled", "onFocus"], ld = /*
|
|
|
3098
3093
|
]),
|
|
3099
3094
|
for: b.key
|
|
3100
3095
|
}, [
|
|
3101
|
-
|
|
3096
|
+
ie(h("input", {
|
|
3102
3097
|
class: i(e(Uu)),
|
|
3103
3098
|
type: "checkbox",
|
|
3104
3099
|
id: b.key,
|
|
@@ -3177,7 +3172,7 @@ const od = ["aria-label"], ud = s({
|
|
|
3177
3172
|
const l = t, r = k(!1), o = _({
|
|
3178
3173
|
get: () => l.modelValue,
|
|
3179
3174
|
set: (v) => a("update:modelValue", v)
|
|
3180
|
-
}), u = _(() => l.expand ? "expand" : "default"), c =
|
|
3175
|
+
}), u = _(() => l.expand ? "expand" : "default"), c = oe(ye), f = _(() => c ? c.isError.value : !1);
|
|
3181
3176
|
return (v, y) => (n(), d("div", {
|
|
3182
3177
|
class: i([e(nd), e(rd)[e(u)]])
|
|
3183
3178
|
}, [
|
|
@@ -3292,9 +3287,9 @@ const wd = (t, a) => {
|
|
|
3292
3287
|
a("toggle", !0), (V = r.value) == null || V.focus();
|
|
3293
3288
|
}
|
|
3294
3289
|
}, c = (V) => JSON.parse(JSON.stringify(V)), f = (V, L) => {
|
|
3295
|
-
const Q = V.reduce((
|
|
3296
|
-
(
|
|
3297
|
-
), Ae = V.filter((
|
|
3290
|
+
const Q = V.reduce((ue, ze) => (ue[ze.label] = wd(ze.label, L), ue), {}), de = Math.min(...Object.values(Q)), re = V.filter(
|
|
3291
|
+
(ue) => Q[ue.label] === de
|
|
3292
|
+
), Ae = V.filter((ue) => ue.label.indexOf(L) !== -1 && !re.includes(ue));
|
|
3298
3293
|
return re.concat(Ae);
|
|
3299
3294
|
}, v = _(
|
|
3300
3295
|
() => l.options.reduce((V, L) => (V[L.value] = L, V), {})
|
|
@@ -3328,7 +3323,7 @@ const wd = (t, a) => {
|
|
|
3328
3323
|
})), a("setSearchValue", ""), a("update:modelValue", V), u();
|
|
3329
3324
|
}, M = (V) => {
|
|
3330
3325
|
a("add", V), a("setSearchValue", "");
|
|
3331
|
-
}, C = _(() => l.disabled ? "disabled" : !l.multiSelectable && l.modelValue.length > 0 ? "singleSelected" : "default"), S =
|
|
3326
|
+
}, C = _(() => l.disabled ? "disabled" : !l.multiSelectable && l.modelValue.length > 0 ? "singleSelected" : "default"), S = oe(ye), q = _(() => S ? S.isError.value : !1), B = _(() => l.expand ? "100%" : l.width), U = _(() => q.value ? "error" : l.isOpen ? "active" : "default"), K = _(() => l.modelValue.length > 0), ee = _(
|
|
3332
3327
|
() => l.addable && l.searchValue !== "" && !l.options.some((V) => V.label === l.searchValue)
|
|
3333
3328
|
), z = _(() => ({
|
|
3334
3329
|
kind: "button",
|
|
@@ -3509,7 +3504,7 @@ const Hd = ["onClick"], Ld = { key: 0 }, Od = s({
|
|
|
3509
3504
|
o(), a("update:modelValue", T);
|
|
3510
3505
|
}, c = _(
|
|
3511
3506
|
() => l.disabled ? "disabled" : "default"
|
|
3512
|
-
), f =
|
|
3507
|
+
), f = oe(ye), v = _(() => f ? f.isError.value : !1), y = _(() => l.expand ? "100%" : l.width), b = _(() => v.value ? "error" : r.value ? "active" : "default"), $ = _(() => l.options.some((T) => T.value === l.modelValue));
|
|
3513
3508
|
return (T, x) => (n(), W(e(he), { expand: t.expand }, {
|
|
3514
3509
|
default: g(() => [
|
|
3515
3510
|
h("div", {
|
|
@@ -3535,7 +3530,7 @@ const Hd = ["onClick"], Ld = { key: 0 }, Od = s({
|
|
|
3535
3530
|
key: 0,
|
|
3536
3531
|
class: i(e(Ed))
|
|
3537
3532
|
}, w(t.placeholder), 3)),
|
|
3538
|
-
(n(!0), d(H, null, O(t.options, (I, E) =>
|
|
3533
|
+
(n(!0), d(H, null, O(t.options, (I, E) => ie((n(), d("span", {
|
|
3539
3534
|
key: "selected" + E,
|
|
3540
3535
|
class: i(e(Dd))
|
|
3541
3536
|
}, w(I.label), 3)), [
|
|
@@ -3636,7 +3631,7 @@ const Kd = ["name", "id", "value", "disabled", "onFocus"], Xd = ["for"], Jd = /*
|
|
|
3636
3631
|
(n(!0), d(H, null, O(t.options, (y) => (n(), d("div", {
|
|
3637
3632
|
key: y.key
|
|
3638
3633
|
}, [
|
|
3639
|
-
|
|
3634
|
+
ie(h("input", {
|
|
3640
3635
|
class: i(e(jd)),
|
|
3641
3636
|
type: "radio",
|
|
3642
3637
|
name: y.key,
|
|
@@ -3691,7 +3686,7 @@ const nc = ["aria-label"], sc = s({
|
|
|
3691
3686
|
return (u, c) => (n(), d("label", {
|
|
3692
3687
|
class: i(e(rc))
|
|
3693
3688
|
}, [
|
|
3694
|
-
|
|
3689
|
+
ie(h("input", {
|
|
3695
3690
|
class: i(e(tc)),
|
|
3696
3691
|
type: "checkbox",
|
|
3697
3692
|
"aria-label": t.label,
|
|
@@ -3746,7 +3741,7 @@ const pc = ["for"], yc = ["id", "name", "value"], gc = s({
|
|
|
3746
3741
|
for: `panel${v}`
|
|
3747
3742
|
}, [
|
|
3748
3743
|
Z(w(f.label) + " ", 1),
|
|
3749
|
-
|
|
3744
|
+
ie(h("input", {
|
|
3750
3745
|
class: i(e(vc)),
|
|
3751
3746
|
type: "radio",
|
|
3752
3747
|
id: `panel${v}`,
|
|
@@ -3869,7 +3864,7 @@ const Za = (t, a) => {
|
|
|
3869
3864
|
const l = t, r = k(l.isOpen), o = k(), u = $a({
|
|
3870
3865
|
width: 0,
|
|
3871
3866
|
height: 0
|
|
3872
|
-
}), c =
|
|
3867
|
+
}), c = oe(Na);
|
|
3873
3868
|
if (!c)
|
|
3874
3869
|
throw new Error(
|
|
3875
3870
|
`${p.Popup}は${p.PopupContainer}の中で使用する必要があります。`
|
|
@@ -3945,7 +3940,7 @@ const Za = (t, a) => {
|
|
|
3945
3940
|
}
|
|
3946
3941
|
);
|
|
3947
3942
|
const B = _(() => !!$(y.value || null)), U = _(() => {
|
|
3948
|
-
const { scrollX: z, scrollY: j } = B.value ? { scrollX: 0, scrollY: 0 } : window, V = f.top + j + f.height, L = f.top + j - E.value.height + f.height, Q = f.top + j - E.value.height, de = f.top + j, re = f.left + z + f.width, Ae = f.left + z - E.value.width + f.width,
|
|
3943
|
+
const { scrollX: z, scrollY: j } = B.value ? { scrollX: 0, scrollY: 0 } : window, V = f.top + j + f.height, L = f.top + j - E.value.height + f.height, Q = f.top + j - E.value.height, de = f.top + j, re = f.left + z + f.width, Ae = f.left + z - E.value.width + f.width, ue = f.left + z - E.value.width, ze = f.left + z, Bt = f.left + z + (f.width - E.value.width) / 2, Tt = f.top + j + (f.height - E.value.height) / 2, [yl, gl] = (() => q.value === "bl" ? [V, ze] : q.value === "br" ? [V, Ae] : q.value === "bc" ? [V, Bt] : q.value === "tl" ? [Q, ze] : q.value === "tr" ? [Q, Ae] : q.value === "tc" ? [Q, Bt] : q.value === "rt" ? [de, re] : q.value === "rb" ? [L, re] : q.value === "rc" ? [Tt, re] : q.value === "lt" ? [de, ue] : q.value === "lb" ? [L, ue] : q.value === "lc" ? [Tt, ue] : [0, 0])();
|
|
3949
3944
|
return `${yl}px auto auto ${gl}px`;
|
|
3950
3945
|
}), K = _(() => {
|
|
3951
3946
|
const z = te(l.gap) ?? "0", [j] = C(q.value);
|
|
@@ -4033,7 +4028,7 @@ const Za = (t, a) => {
|
|
|
4033
4028
|
C ? (S[0] = M, o.value = M) : (S[1] = M, u.value = M), a("update:modelValue", S.join(":"));
|
|
4034
4029
|
}, b = _(
|
|
4035
4030
|
() => l.disabled ? "disabled" : "default"
|
|
4036
|
-
), $ = _(() => l.disabled ? "disabled" : l.modelValue ? "selected" : "default"), T = (M) => M ? "selected" : "default", x = _(() => l.width), I =
|
|
4031
|
+
), $ = _(() => l.disabled ? "disabled" : l.modelValue ? "selected" : "default"), T = (M) => M ? "selected" : "default", x = _(() => l.width), I = oe(ye), E = _(() => I ? I.isError.value : !1), D = _(() => E.value ? "error" : r.value ? "active" : "default");
|
|
4037
4032
|
return (M, C) => (n(), W(e(he), null, {
|
|
4038
4033
|
default: g(() => [
|
|
4039
4034
|
h("div", {
|
|
@@ -4266,7 +4261,7 @@ const Rc = (t) => {
|
|
|
4266
4261
|
}, T = _(() => `${o.value.getMonth() + 1}月`), x = _({
|
|
4267
4262
|
get: () => l.modelValue,
|
|
4268
4263
|
set: (C) => C && a("update:modelValue", C)
|
|
4269
|
-
}), I =
|
|
4264
|
+
}), I = oe(ye), E = _(() => I ? I.isError.value : !1), D = _(() => E.value ? "error" : l.isOpen && !l.disabled ? "active" : "default"), M = _(() => l.disabled ? "disabled" : x.value ? "selected" : "default");
|
|
4270
4265
|
return (C, S) => (n(), W(e(he), null, {
|
|
4271
4266
|
default: g(() => [
|
|
4272
4267
|
h("button", {
|
|
@@ -4649,6 +4644,11 @@ const B5 = ["placeholder", "name", "disabled"], T5 = ["onMouseover"], M5 = ["val
|
|
|
4649
4644
|
type: Boolean,
|
|
4650
4645
|
required: !1,
|
|
4651
4646
|
default: !1
|
|
4647
|
+
},
|
|
4648
|
+
icon: {
|
|
4649
|
+
type: Object,
|
|
4650
|
+
required: !1,
|
|
4651
|
+
default: Va
|
|
4652
4652
|
}
|
|
4653
4653
|
},
|
|
4654
4654
|
emits: ["update:modelValue", "click", "toggle"],
|
|
@@ -4686,7 +4686,7 @@ const B5 = ["placeholder", "name", "disabled"], T5 = ["onMouseover"], M5 = ["val
|
|
|
4686
4686
|
h("div", {
|
|
4687
4687
|
class: i(e(W5))
|
|
4688
4688
|
}, [
|
|
4689
|
-
|
|
4689
|
+
ie(h("input", {
|
|
4690
4690
|
type: "text",
|
|
4691
4691
|
class: i([
|
|
4692
4692
|
e(w5),
|
|
@@ -4705,9 +4705,9 @@ const B5 = ["placeholder", "name", "disabled"], T5 = ["onMouseover"], M5 = ["val
|
|
|
4705
4705
|
}, null, 46, B5), [
|
|
4706
4706
|
[za, o.value]
|
|
4707
4707
|
]),
|
|
4708
|
-
|
|
4708
|
+
(n(), W(se(t.icon), {
|
|
4709
4709
|
class: i(e(x5))
|
|
4710
|
-
}, null, 8, ["class"])
|
|
4710
|
+
}, null, 8, ["class"]))
|
|
4711
4711
|
], 2),
|
|
4712
4712
|
m(e(fe), {
|
|
4713
4713
|
isOpen: !t.disabled && t.openPopup,
|
|
@@ -4759,7 +4759,7 @@ const B5 = ["placeholder", "name", "disabled"], T5 = ["onMouseover"], M5 = ["val
|
|
|
4759
4759
|
onMouseover: (U) => f.value = q.value,
|
|
4760
4760
|
onMouseout: S[7] || (S[7] = (U) => f.value = null)
|
|
4761
4761
|
}, [
|
|
4762
|
-
|
|
4762
|
+
ie(h("input", {
|
|
4763
4763
|
"onUpdate:modelValue": S[5] || (S[5] = (U) => J(r) ? r.value = U : null),
|
|
4764
4764
|
value: q.value,
|
|
4765
4765
|
class: i(e(Ya)),
|
|
@@ -4930,7 +4930,7 @@ const B5 = ["placeholder", "name", "disabled"], T5 = ["onMouseover"], M5 = ["val
|
|
|
4930
4930
|
onMouseover: (K) => r.value = B.value,
|
|
4931
4931
|
onMouseout: C[2] || (C[2] = (K) => r.value = null)
|
|
4932
4932
|
}, [
|
|
4933
|
-
|
|
4933
|
+
ie(h("input", {
|
|
4934
4934
|
"onUpdate:modelValue": C[1] || (C[1] = (K) => J(f) ? f.value = K : null),
|
|
4935
4935
|
value: B.value,
|
|
4936
4936
|
class: i(e(Ya)),
|
|
@@ -5082,7 +5082,7 @@ const J5 = ["aria-label", "disabled", "onKeydown"], e2 = { key: 0 }, t2 = ["aria
|
|
|
5082
5082
|
Za(o, () => {
|
|
5083
5083
|
r.value = !1;
|
|
5084
5084
|
});
|
|
5085
|
-
const M =
|
|
5085
|
+
const M = oe(ye), C = _(() => M ? M.isError.value : !1), S = _(() => C.value ? "error" : l.isOpen && !l.disabled ? "active" : "default");
|
|
5086
5086
|
return (q, B) => (n(), W(e(he), { expand: t.expand }, {
|
|
5087
5087
|
default: g(() => [
|
|
5088
5088
|
h("button", {
|
|
@@ -5365,7 +5365,7 @@ const p2 = s({
|
|
|
5365
5365
|
e(v2)[t.variant]
|
|
5366
5366
|
])
|
|
5367
5367
|
}, [
|
|
5368
|
-
t.icon ? (n(), W(
|
|
5368
|
+
t.icon ? (n(), W(se(t.icon), {
|
|
5369
5369
|
key: 0,
|
|
5370
5370
|
class: i([e(c2), e(d2)[t.variant]])
|
|
5371
5371
|
}, null, 8, ["class"])) : P("", !0),
|
|
@@ -5455,7 +5455,7 @@ const W2 = { key: 0 }, B2 = s({
|
|
|
5455
5455
|
onMouseenter: f,
|
|
5456
5456
|
onMouseleave: v
|
|
5457
5457
|
}, [
|
|
5458
|
-
(n(), W(
|
|
5458
|
+
(n(), W(se(t.disabled || e(r) ? "a" : "router-link"), {
|
|
5459
5459
|
to: !t.disabled && !e(r) ? t.to : void 0,
|
|
5460
5460
|
href: !t.disabled && e(r) ? t.to : void 0,
|
|
5461
5461
|
target: !t.disabled && e(r) ? "_blank" : void 0,
|
|
@@ -5465,7 +5465,7 @@ const W2 = { key: 0 }, B2 = s({
|
|
|
5465
5465
|
])
|
|
5466
5466
|
}, {
|
|
5467
5467
|
default: g(() => [
|
|
5468
|
-
(n(), W(
|
|
5468
|
+
(n(), W(se(t.icon), {
|
|
5469
5469
|
class: i([
|
|
5470
5470
|
e($2),
|
|
5471
5471
|
t.disabled ? e(w2) : t.active && e(x2)
|
|
@@ -5606,7 +5606,7 @@ const E2 = ["onClick"], V2 = /* @__PURE__ */ s({
|
|
|
5606
5606
|
class: i([e(rt), e(nt).default]),
|
|
5607
5607
|
onClick: f[0] || (f[0] = (v) => o(e(r) - 1))
|
|
5608
5608
|
}, [
|
|
5609
|
-
(n(), W(
|
|
5609
|
+
(n(), W(se(e(Je)), {
|
|
5610
5610
|
class: i(e(na))
|
|
5611
5611
|
}, null, 8, ["class"]))
|
|
5612
5612
|
], 2)) : P("", !0),
|
|
@@ -5622,7 +5622,7 @@ const E2 = ["onClick"], V2 = /* @__PURE__ */ s({
|
|
|
5622
5622
|
class: i([e(rt), e(nt).default]),
|
|
5623
5623
|
onClick: f[1] || (f[1] = (v) => o(e(r) + 1))
|
|
5624
5624
|
}, [
|
|
5625
|
-
(n(), W(
|
|
5625
|
+
(n(), W(se(e(xe)), {
|
|
5626
5626
|
class: i(e(na))
|
|
5627
5627
|
}, null, 8, ["class"]))
|
|
5628
5628
|
], 2)) : P("", !0)
|
|
@@ -5698,7 +5698,7 @@ const l3 = s({
|
|
|
5698
5698
|
webkitBoxOrient: "vertical",
|
|
5699
5699
|
WebkitLineClamp: a.maxLines
|
|
5700
5700
|
} : {});
|
|
5701
|
-
return (r, o) => (n(), W(
|
|
5701
|
+
return (r, o) => (n(), W(se(t.as), {
|
|
5702
5702
|
class: i([
|
|
5703
5703
|
e(t3),
|
|
5704
5704
|
e(J2)[t.bold ? "bold" : "default"],
|
|
@@ -6614,8 +6614,8 @@ const Z0 = ["placeholder", "id", "disabled", "rows"], N0 = s({
|
|
|
6614
6614
|
const l = t, r = _({
|
|
6615
6615
|
get: () => l.modelValue,
|
|
6616
6616
|
set: (v) => a("update:modelValue", v)
|
|
6617
|
-
}), o =
|
|
6618
|
-
return (v, y) =>
|
|
6617
|
+
}), o = oe(ye), u = _(() => o ? o.isError.value : !1), c = k(!1), f = _(() => u.value ? "error" : c.value ? "active" : "default");
|
|
6618
|
+
return (v, y) => ie((n(), d("textarea", {
|
|
6619
6619
|
"onUpdate:modelValue": y[0] || (y[0] = (b) => J(r) ? r.value = b : null),
|
|
6620
6620
|
placeholder: t.placeholder,
|
|
6621
6621
|
id: t.id,
|
|
@@ -7794,7 +7794,7 @@ const I7 = s({
|
|
|
7794
7794
|
}), o = () => {
|
|
7795
7795
|
r.value = !1;
|
|
7796
7796
|
};
|
|
7797
|
-
return (u, c) =>
|
|
7797
|
+
return (u, c) => ie((n(), d("div", {
|
|
7798
7798
|
class: i([e(C7), t.border && e($7)]),
|
|
7799
7799
|
style: A({ width: t.width })
|
|
7800
7800
|
}, [
|
|
@@ -8294,7 +8294,7 @@ const T7 = s({
|
|
|
8294
8294
|
}
|
|
8295
8295
|
},
|
|
8296
8296
|
setup(t) {
|
|
8297
|
-
const a = t, l =
|
|
8297
|
+
const a = t, l = oe(cl), r = _(() => (l == null ? void 0 : l.labelWidth.value) || "8rem"), o = _(() => (l == null ? void 0 : l.labelColor.value) || "gray.900"), u = _(() => (l == null ? void 0 : l.labelFontSize.value) || "md"), c = Vu();
|
|
8298
8298
|
Me(ye, c);
|
|
8299
8299
|
const { setIsError: f } = c;
|
|
8300
8300
|
return le(a, (v) => f(!!v.error)), ae(() => f(!!a.error)), (v, y) => (n(), W(e(G), null, {
|
|
@@ -8690,7 +8690,7 @@ const Y7 = s({
|
|
|
8690
8690
|
const [o, u] = l.gridRow.split("/").map((c) => c.trim()).map(Number);
|
|
8691
8691
|
return u - o > 2 ? l.text : "";
|
|
8692
8692
|
});
|
|
8693
|
-
return (o, u) =>
|
|
8693
|
+
return (o, u) => ie((n(), d("div", {
|
|
8694
8694
|
class: i([j7[t.variant]]),
|
|
8695
8695
|
style: A({ gridRow: t.gridRow, gridColumn: t.gridColumn }),
|
|
8696
8696
|
onClick: u[0] || (u[0] = (c) => a("scheduleClick", t.id))
|