@indielayer/ui 1.9.2 → 1.10.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/docs/components/menu/DocsMenu.vue +1 -0
- package/docs/pages/component/form/usage.vue +2 -0
- package/docs/pages/component/menu/usage.vue +2 -0
- package/docs/pages/component/select/index.vue +7 -0
- package/docs/pages/component/select/multiple.vue +42 -0
- package/docs/pages/component/select/usage.vue +8 -12
- package/docs/pages/component/table/virtual.vue +19 -6
- package/docs/pages/component/toggle/index.vue +1 -1
- package/docs/pages/component/tooltip/index.vue +1 -1
- package/docs/pages/component/upload/index.vue +29 -0
- package/docs/pages/component/upload/usage.vue +115 -0
- package/docs/search/components.json +1 -1
- package/lib/common/icons.d.ts +2 -0
- package/lib/common/icons.js +17 -15
- package/lib/components/checkbox/Checkbox.vue2.js +9 -9
- package/lib/components/datepicker/Datepicker.vue.d.ts +4 -4
- package/lib/components/datepicker/Datepicker.vue.js +1 -1
- package/lib/components/drawer/Drawer.vue.js +1 -17
- package/lib/components/form/Form.vue.d.ts +4 -4
- package/lib/components/form/Form.vue.js +34 -34
- package/lib/components/formGroup/FormGroup.vue.d.ts +1 -1
- package/lib/components/formGroup/FormGroup.vue.js +39 -37
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +68 -66
- package/lib/components/label/theme/Label.base.theme.js +7 -7
- package/lib/components/menu/Menu.vue.d.ts +2 -0
- package/lib/components/menu/MenuItem.vue.d.ts +15 -3
- package/lib/components/menu/MenuItem.vue.js +1 -1
- package/lib/components/menu/MenuItem.vue2.js +43 -37
- package/lib/components/modal/Modal.vue.d.ts +4 -4
- package/lib/components/modal/Modal.vue.js +38 -34
- package/lib/components/notifications/Notifications.vue.d.ts +15 -0
- package/lib/components/notifications/Notifications.vue.js +149 -127
- package/lib/components/progress/Progress.vue.d.ts +4 -4
- package/lib/components/progress/Progress.vue.js +7 -7
- package/lib/components/scroll/Scroll.vue2.js +1 -1
- package/lib/components/select/Select.vue.d.ts +43 -1
- package/lib/components/select/Select.vue.js +358 -258
- package/lib/components/select/theme/Select.base.theme.js +1 -0
- package/lib/components/tab/Tab.vue.js +1 -1
- package/lib/components/tab/TabGroup.vue.js +2 -2
- package/lib/components/table/Table.vue.d.ts +4 -4
- package/lib/components/table/Table.vue.js +37 -37
- package/lib/components/table/TableCell.vue.d.ts +1 -1
- package/lib/components/tag/Tag.vue.js +23 -21
- package/lib/components/textarea/Textarea.vue.js +1 -1
- package/lib/components/upload/Upload.vue.d.ts +195 -0
- package/lib/components/upload/Upload.vue.js +264 -0
- package/lib/components/upload/Upload.vue2.js +4 -0
- package/lib/components/upload/__tests__/Upload.spec.d.ts +1 -0
- package/lib/components/upload/index.d.ts +2 -0
- package/lib/components/upload/theme/Upload.base.theme.d.ts +3 -0
- package/lib/components/upload/theme/Upload.base.theme.js +8 -0
- package/lib/components/upload/theme/Upload.carbon.theme.d.ts +3 -0
- package/lib/components/upload/theme/Upload.carbon.theme.js +5 -0
- package/lib/composables/useVirtualList.js +56 -53
- package/lib/index.js +43 -41
- package/lib/index.umd.js +4 -4
- package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +501 -0
- package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +96 -0
- package/lib/theme.d.ts +2 -1
- package/lib/themes/base/components.d.ts +1 -0
- package/lib/themes/base/components.js +23 -21
- package/lib/themes/carbon/components.d.ts +1 -0
- package/lib/themes/carbon/components.js +23 -21
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/common/icons.ts +2 -0
- package/src/components/checkbox/Checkbox.vue +5 -5
- package/src/components/drawer/Drawer.vue +0 -16
- package/src/components/form/Form.vue +10 -4
- package/src/components/formGroup/FormGroup.vue +2 -0
- package/src/components/index.ts +1 -0
- package/src/components/label/theme/Label.base.theme.ts +7 -5
- package/src/components/menu/Menu.vue +2 -0
- package/src/components/menu/MenuItem.vue +8 -6
- package/src/components/modal/Modal.vue +6 -1
- package/src/components/notifications/Notifications.vue +34 -4
- package/src/components/progress/Progress.vue +2 -2
- package/src/components/select/Select.vue +165 -67
- package/src/components/select/theme/Select.base.theme.ts +2 -0
- package/src/components/table/Table.vue +2 -3
- package/src/components/tag/Tag.vue +11 -9
- package/src/components/upload/Upload.vue +365 -0
- package/src/components/upload/__tests__/Upload.spec.ts +11 -0
- package/src/components/upload/index.ts +2 -0
- package/src/components/upload/theme/Upload.base.theme.ts +9 -0
- package/src/components/upload/theme/Upload.carbon.theme.ts +7 -0
- package/src/composables/useInputtable.ts +1 -1
- package/src/composables/useVirtualList.ts +8 -5
- package/src/theme.ts +2 -0
- package/src/themes/base/components.ts +1 -0
- package/src/themes/carbon/components.ts +1 -0
- package/src/version.ts +1 -1
- package/volar.d.ts +1 -0
- package/lib/node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +0 -412
- package/lib/node_modules/.pnpm/@vueuse_shared@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +0 -90
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, provide as I, onMounted as S, watch as $, nextTick as A, openBlock as c, createElementBlock as
|
|
1
|
+
import { defineComponent as E, provide as I, onMounted as S, watch as $, nextTick as A, openBlock as c, createElementBlock as f, normalizeStyle as C, unref as n, normalizeClass as l, renderSlot as d, toDisplayString as p, createCommentVNode as m, createElementVNode as y } from "vue";
|
|
2
2
|
import { injectFormKey as N } from "../../composables/keys.js";
|
|
3
3
|
import { useTheme as T } from "../../composables/useTheme.js";
|
|
4
4
|
const j = {
|
|
@@ -31,11 +31,11 @@ const j = {
|
|
|
31
31
|
props: z,
|
|
32
32
|
emits: ["submit"],
|
|
33
33
|
setup(h, { emit: b }) {
|
|
34
|
-
const
|
|
34
|
+
const u = h, F = b, s = [];
|
|
35
35
|
I(N, {
|
|
36
|
-
registerInput: (e, t, o,
|
|
37
|
-
const
|
|
38
|
-
|
|
36
|
+
registerInput: (e, t, o, i) => {
|
|
37
|
+
const a = s.find((B) => B.name === e);
|
|
38
|
+
a ? (a.focus = t, a.validate = o, a.setError = i) : s.push({ name: e, focus: t, validate: o, setError: i });
|
|
39
39
|
},
|
|
40
40
|
unregisterInput: (e) => {
|
|
41
41
|
const t = s.findIndex((o) => o.name === e);
|
|
@@ -43,17 +43,17 @@ const j = {
|
|
|
43
43
|
},
|
|
44
44
|
isInsideForm: !0
|
|
45
45
|
}), S(async () => {
|
|
46
|
-
|
|
47
|
-
}), $(() =>
|
|
46
|
+
u.autoFocus && s && s.length > 0 && setTimeout(s[0].focus, 50);
|
|
47
|
+
}), $(() => u.errors, (e) => {
|
|
48
48
|
e && A(() => {
|
|
49
49
|
if (Array.isArray(e))
|
|
50
|
-
e.forEach((t) => {
|
|
51
|
-
const
|
|
52
|
-
|
|
50
|
+
e.forEach((t, o) => {
|
|
51
|
+
const i = s.find((a) => a.name === t.field);
|
|
52
|
+
i && (i.setError(t.msg), o === 0 && i.focus && i.focus());
|
|
53
53
|
});
|
|
54
54
|
else {
|
|
55
55
|
const t = s.find((o) => o.name === e.field);
|
|
56
|
-
t && t.setError(e.msg);
|
|
56
|
+
t && (t.setError(e.msg), t.focus && t.focus());
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
});
|
|
@@ -64,43 +64,43 @@ const j = {
|
|
|
64
64
|
}), e;
|
|
65
65
|
}, V = (e) => {
|
|
66
66
|
e.preventDefault(), e.stopPropagation();
|
|
67
|
-
const t =
|
|
67
|
+
const t = u.autoValidate ? g() : !0;
|
|
68
68
|
F("submit", t);
|
|
69
|
-
}, { styles: k, classes:
|
|
70
|
-
return (e, t) => (c(),
|
|
71
|
-
style: C(
|
|
72
|
-
class:
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
}, { styles: k, classes: r, className: v } = T("Form", {}, u);
|
|
70
|
+
return (e, t) => (c(), f("form", {
|
|
71
|
+
style: C(n(k)),
|
|
72
|
+
class: l([
|
|
73
|
+
n(v),
|
|
74
|
+
n(r).wrapper
|
|
75
75
|
]),
|
|
76
76
|
onSubmit: V
|
|
77
77
|
}, [
|
|
78
|
-
|
|
79
|
-
e.title || e.description ? (c(),
|
|
80
|
-
e.title ? (c(),
|
|
78
|
+
d(e.$slots, "header", {}, () => [
|
|
79
|
+
e.title || e.description ? (c(), f("div", j, [
|
|
80
|
+
e.title ? (c(), f("p", {
|
|
81
81
|
key: 0,
|
|
82
|
-
class:
|
|
83
|
-
}, p(e.title), 3)) :
|
|
84
|
-
e.description ? (c(),
|
|
82
|
+
class: l(n(r).title)
|
|
83
|
+
}, p(e.title), 3)) : m("", !0),
|
|
84
|
+
e.description ? (c(), f("p", {
|
|
85
85
|
key: 1,
|
|
86
|
-
class:
|
|
87
|
-
}, p(e.description), 3)) :
|
|
88
|
-
])) :
|
|
86
|
+
class: l(n(r).description)
|
|
87
|
+
}, p(e.description), 3)) : m("", !0)
|
|
88
|
+
])) : m("", !0)
|
|
89
89
|
]),
|
|
90
90
|
y("fieldset", {
|
|
91
91
|
disabled: e.disabled,
|
|
92
|
-
class:
|
|
92
|
+
class: l([n(r).content, "contents"])
|
|
93
93
|
}, [
|
|
94
|
-
|
|
94
|
+
d(e.$slots, "default")
|
|
95
95
|
], 10, w),
|
|
96
|
-
e.hasFooter ?
|
|
96
|
+
e.hasFooter ? d(e.$slots, "footer", { key: 0 }, () => [
|
|
97
97
|
y("div", {
|
|
98
|
-
class:
|
|
98
|
+
class: l(n(r).footer)
|
|
99
99
|
}, [
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
d(e.$slots, "primary-action"),
|
|
101
|
+
d(e.$slots, "secondary-action")
|
|
102
102
|
], 2)
|
|
103
|
-
]) :
|
|
103
|
+
]) : m("", !0)
|
|
104
104
|
], 38));
|
|
105
105
|
}
|
|
106
106
|
});
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { useInteractive as
|
|
4
|
-
import { useInputtable as
|
|
5
|
-
import { injectFormGroupKey as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
...
|
|
10
|
-
...
|
|
1
|
+
import { defineComponent as q, computed as w, provide as B, openBlock as m, createBlock as d, mergeProps as K, unref as o, toHandlers as N, withKeys as $, withCtx as A, createElementVNode as E, normalizeClass as O, renderSlot as P, createCommentVNode as j } from "vue";
|
|
2
|
+
import { useTheme as z } from "../../composables/useTheme.js";
|
|
3
|
+
import { useInteractive as H } from "../../composables/useInteractive.js";
|
|
4
|
+
import { useInputtable as i } from "../../composables/useInputtable.js";
|
|
5
|
+
import { injectFormGroupKey as S } from "../../composables/keys.js";
|
|
6
|
+
import T from "../label/Label.vue.js";
|
|
7
|
+
import X from "../inputFooter/InputFooter.vue.js";
|
|
8
|
+
const D = {
|
|
9
|
+
...H.props(),
|
|
10
|
+
...i.props(),
|
|
11
11
|
vertical: {
|
|
12
12
|
type: Boolean,
|
|
13
13
|
default: !1
|
|
14
14
|
}
|
|
15
|
-
},
|
|
15
|
+
}, J = {
|
|
16
16
|
name: "XFormGroup"
|
|
17
|
-
},
|
|
18
|
-
...
|
|
19
|
-
props:
|
|
20
|
-
emits:
|
|
17
|
+
}, Z = /* @__PURE__ */ q({
|
|
18
|
+
...J,
|
|
19
|
+
props: D,
|
|
20
|
+
emits: i.emits(),
|
|
21
21
|
setup(f, { expose: c, emit: V }) {
|
|
22
|
-
const r = f, t = [], y =
|
|
23
|
-
|
|
22
|
+
const r = f, t = [], y = w(() => typeof r.modelValue == "string" || typeof r.modelValue == "number" || Array.isArray(r.modelValue) ? r.modelValue : "");
|
|
23
|
+
B(S, {
|
|
24
24
|
registerInputGroup: (e, s) => {
|
|
25
25
|
t.push({ name: e, focus: s });
|
|
26
26
|
},
|
|
27
27
|
unregisterInputGroup: (e) => {
|
|
28
|
-
const s = t.findIndex((
|
|
28
|
+
const s = t.findIndex((k) => k.name === e);
|
|
29
29
|
t.splice(s, 1);
|
|
30
30
|
},
|
|
31
31
|
setValue: (e) => {
|
|
@@ -34,47 +34,49 @@ const X = {
|
|
|
34
34
|
isInsideFormGroup: !0,
|
|
35
35
|
value: y
|
|
36
36
|
});
|
|
37
|
-
function
|
|
37
|
+
function a() {
|
|
38
38
|
var e;
|
|
39
39
|
(e = t[0]) == null || e.focus();
|
|
40
40
|
}
|
|
41
|
+
function v() {
|
|
42
|
+
}
|
|
41
43
|
const n = V, {
|
|
42
44
|
errorInternal: u,
|
|
43
|
-
isInsideForm:
|
|
45
|
+
isInsideForm: h,
|
|
44
46
|
isFirstValidation: p,
|
|
45
|
-
reset:
|
|
47
|
+
reset: I,
|
|
46
48
|
validate: l,
|
|
47
|
-
setError:
|
|
48
|
-
} =
|
|
49
|
+
setError: b
|
|
50
|
+
} = i(r, { focus: a, emit: n }), F = {
|
|
49
51
|
change: (e) => {
|
|
50
52
|
r.validateOnInput && !p.value && l(r.modelValue);
|
|
51
53
|
}
|
|
52
54
|
};
|
|
53
|
-
function
|
|
55
|
+
function G() {
|
|
54
56
|
r.validateOnInput && !p.value && l(r.modelValue);
|
|
55
57
|
}
|
|
56
|
-
const { styles:
|
|
57
|
-
return c({ focus:
|
|
58
|
+
const { styles: g, classes: _, className: C } = z("FormGroup", {}, r, { errorInternal: u });
|
|
59
|
+
return c({ focus: a, blur: v, reset: I, validate: l, setError: b }), (e, s) => (m(), d(T, K({
|
|
58
60
|
tag: "fieldset",
|
|
59
|
-
style: o(
|
|
61
|
+
style: o(g),
|
|
60
62
|
disabled: e.disabled,
|
|
61
63
|
required: e.required,
|
|
62
|
-
"is-inside-form": o(
|
|
64
|
+
"is-inside-form": o(h),
|
|
63
65
|
label: e.label,
|
|
64
66
|
class: [
|
|
65
|
-
o(
|
|
67
|
+
o(C)
|
|
66
68
|
],
|
|
67
69
|
tooltip: e.tooltip
|
|
68
|
-
},
|
|
69
|
-
onKeyup:
|
|
70
|
+
}, N(F), {
|
|
71
|
+
onKeyup: $(G, ["space"])
|
|
70
72
|
}), {
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
class:
|
|
73
|
+
default: A(() => [
|
|
74
|
+
E("div", {
|
|
75
|
+
class: O(o(_).wrapper)
|
|
74
76
|
}, [
|
|
75
|
-
|
|
77
|
+
P(e.$slots, "default")
|
|
76
78
|
], 2),
|
|
77
|
-
e.hideFooter ?
|
|
79
|
+
e.hideFooter ? j("", !0) : (m(), d(X, {
|
|
78
80
|
key: 0,
|
|
79
81
|
error: o(u),
|
|
80
82
|
helper: e.helper
|
|
@@ -85,5 +87,5 @@ const X = {
|
|
|
85
87
|
}
|
|
86
88
|
});
|
|
87
89
|
export {
|
|
88
|
-
|
|
90
|
+
Z as default
|
|
89
91
|
};
|
package/lib/components/index.js
CHANGED
|
@@ -18,100 +18,102 @@ import { default as h } from "./notifications/Notifications.vue.js";
|
|
|
18
18
|
import { default as H } from "./pagination/Pagination.vue.js";
|
|
19
19
|
import { default as y } from "./progress/Progress.vue.js";
|
|
20
20
|
import { default as Q } from "./qrCode/QrCode.vue.js";
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
21
|
+
import { default as j } from "./select/Select.vue.js";
|
|
22
|
+
import { default as z } from "./skeleton/Skeleton.vue.js";
|
|
23
|
+
import { default as J } from "./stepper/Stepper.vue.js";
|
|
24
|
+
import { default as O } from "./tab/Tab.vue.js";
|
|
25
25
|
import { default as W } from "./tab/TabGroup.vue.js";
|
|
26
26
|
import { default as Z } from "./table/Table.vue.js";
|
|
27
27
|
import { default as $ } from "./textarea/Textarea.vue.js";
|
|
28
28
|
import { default as oe } from "./themeProvider/ThemeProvider.vue.js";
|
|
29
29
|
import { default as ae } from "./toggle/Toggle.vue.js";
|
|
30
|
-
import { default as fe } from "./
|
|
31
|
-
import { default as de } from "./
|
|
32
|
-
import { default as ue } from "./
|
|
33
|
-
import { default as se } from "./button/
|
|
34
|
-
import { default as Xe } from "./
|
|
35
|
-
import { default as ne } from "./
|
|
36
|
-
import { default as ce } from "./
|
|
37
|
-
import { default as ge } from "./
|
|
38
|
-
import { default as Se } from "./
|
|
39
|
-
import { default as Pe } from "./
|
|
40
|
-
import { default as Be } from "./
|
|
41
|
-
import { default as Ae } from "./
|
|
42
|
-
import { default as Fe } from "./
|
|
43
|
-
import { default as Le } from "./
|
|
44
|
-
import { default as he } from "./
|
|
45
|
-
import { default as He } from "./popover/
|
|
46
|
-
import { default as ye } from "./
|
|
47
|
-
import { default as Qe } from "./
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as We } from "./table/
|
|
53
|
-
import { default as Ze } from "./table/
|
|
54
|
-
import { default as $e } from "./table/
|
|
55
|
-
import { default as oo } from "./table/
|
|
56
|
-
import { default as ao } from "./
|
|
57
|
-
import { default as fo } from "./
|
|
58
|
-
import { default as po } from "./tooltip/
|
|
30
|
+
import { default as fe } from "./upload/Upload.vue.js";
|
|
31
|
+
import { default as de } from "./alert/Alert.vue.js";
|
|
32
|
+
import { default as ue } from "./avatar/Avatar.vue.js";
|
|
33
|
+
import { default as se } from "./button/Button.vue.js";
|
|
34
|
+
import { default as Xe } from "./button/ButtonGroup.vue.js";
|
|
35
|
+
import { default as ne } from "./carousel/CarouselSlide.vue.js";
|
|
36
|
+
import { default as ce } from "./checkbox/Checkbox.vue.js";
|
|
37
|
+
import { default as ge } from "./icon/Icon.vue.js";
|
|
38
|
+
import { default as Se } from "./input/Input.vue.js";
|
|
39
|
+
import { default as Pe } from "./inputFooter/InputFooter.vue.js";
|
|
40
|
+
import { default as Be } from "./label/Label.vue.js";
|
|
41
|
+
import { default as Ae } from "./link/Link.vue.js";
|
|
42
|
+
import { default as Fe } from "./loader/Loader.vue.js";
|
|
43
|
+
import { default as Le } from "./menu/MenuItem.vue.js";
|
|
44
|
+
import { default as he } from "./pagination/PaginationItem.vue.js";
|
|
45
|
+
import { default as He } from "./popover/Popover.vue.js";
|
|
46
|
+
import { default as ye } from "./popover/PopoverContainer.vue.js";
|
|
47
|
+
import { default as Qe } from "./radio/Radio.vue.js";
|
|
48
|
+
import { default as je } from "./scroll/Scroll.vue.js";
|
|
49
|
+
import { default as ze } from "./slider/Slider.vue.js";
|
|
50
|
+
import { default as Je } from "./spacer/Spacer.js";
|
|
51
|
+
import { default as Oe } from "./spinner/Spinner.vue.js";
|
|
52
|
+
import { default as We } from "./table/TableBody.js";
|
|
53
|
+
import { default as Ze } from "./table/TableCell.vue.js";
|
|
54
|
+
import { default as $e } from "./table/TableHead.vue.js";
|
|
55
|
+
import { default as oo } from "./table/TableHeader.vue.js";
|
|
56
|
+
import { default as ao } from "./table/TableRow.vue.js";
|
|
57
|
+
import { default as fo } from "./tag/Tag.vue.js";
|
|
58
|
+
import { default as po } from "./tooltip/Tooltip.vue.js";
|
|
59
|
+
import { default as mo } from "./tooltip/ToggleTip.vue.js";
|
|
59
60
|
export {
|
|
60
61
|
a as XAccordion,
|
|
61
62
|
f as XAccordionItem,
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
de as XAlert,
|
|
64
|
+
ue as XAvatar,
|
|
64
65
|
d as XBadge,
|
|
65
66
|
u as XBreadcrumbs,
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
se as XButton,
|
|
68
|
+
Xe as XButtonGroup,
|
|
68
69
|
s as XCard,
|
|
69
70
|
X as XCarousel,
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
ne as XCarouselSlide,
|
|
72
|
+
ce as XCheckbox,
|
|
72
73
|
n as XContainer,
|
|
73
74
|
c as XDatepicker,
|
|
74
75
|
g as XDivider,
|
|
75
76
|
S as XDrawer,
|
|
76
77
|
P as XForm,
|
|
77
78
|
B as XFormGroup,
|
|
78
|
-
|
|
79
|
+
ge as XIcon,
|
|
79
80
|
A as XImage,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
Se as XInput,
|
|
82
|
+
Pe as XInputFooter,
|
|
83
|
+
Be as XLabel,
|
|
84
|
+
Ae as XLink,
|
|
85
|
+
Fe as XLoader,
|
|
85
86
|
F as XMenu,
|
|
86
|
-
|
|
87
|
+
Le as XMenuItem,
|
|
87
88
|
L as XModal,
|
|
88
89
|
h as XNotifications,
|
|
89
90
|
H as XPagination,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
he as XPaginationItem,
|
|
92
|
+
He as XPopover,
|
|
93
|
+
ye as XPopoverContainer,
|
|
93
94
|
y as XProgress,
|
|
94
95
|
Q as XQrCode,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
Qe as XRadio,
|
|
97
|
+
je as XScroll,
|
|
98
|
+
j as XSelect,
|
|
99
|
+
z as XSkeleton,
|
|
100
|
+
ze as XSlider,
|
|
101
|
+
Je as XSpacer,
|
|
102
|
+
Oe as XSpinner,
|
|
103
|
+
J as XStepper,
|
|
104
|
+
O as XTab,
|
|
104
105
|
W as XTabGroup,
|
|
105
106
|
Z as XTable,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
We as XTableBody,
|
|
108
|
+
Ze as XTableCell,
|
|
109
|
+
$e as XTableHead,
|
|
110
|
+
oo as XTableHeader,
|
|
111
|
+
ao as XTableRow,
|
|
112
|
+
fo as XTag,
|
|
112
113
|
$ as XTextarea,
|
|
113
114
|
oe as XThemeProvider,
|
|
114
115
|
ae as XToggle,
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
mo as XToggleTip,
|
|
117
|
+
po as XTooltip,
|
|
118
|
+
fe as XUpload
|
|
117
119
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = {
|
|
2
2
|
classes: {
|
|
3
|
-
wrapper: ({ props:
|
|
3
|
+
wrapper: ({ props: s }) => {
|
|
4
4
|
const e = ["block relative align-bottom focus:outline-none"];
|
|
5
|
-
return
|
|
5
|
+
return s.isInsideForm && e.push("mb-5"), s.block && e.push("w-full"), e;
|
|
6
6
|
},
|
|
7
|
-
label: ({ props:
|
|
8
|
-
const e = "flex items-center gap-2 font-medium text-secondary-800 dark:text-secondary-200 mb-1";
|
|
9
|
-
return
|
|
7
|
+
label: ({ props: s }) => {
|
|
8
|
+
const e = ["flex items-center gap-2 font-medium text-secondary-800 dark:text-secondary-200 mb-1"];
|
|
9
|
+
return s.size === "xs" ? e.push("text-xs") : s.size === "sm" ? e.push("text-sm") : s.size === "lg" ? e.push("text-lg") : s.size === "xl" && e.push("text-xl"), s.required && e.push('[&_span]:after:content-["*"] [&_span]:after:ml-0.5 [&_span]:after:text-error-500'), e;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
}, l =
|
|
12
|
+
}, l = t;
|
|
13
13
|
export {
|
|
14
14
|
l as default
|
|
15
15
|
};
|
|
@@ -51,6 +51,8 @@ export type MenuArrayItem = {
|
|
|
51
51
|
disabled?: boolean;
|
|
52
52
|
active?: boolean;
|
|
53
53
|
attrs?: Record<string, unknown>;
|
|
54
|
+
prefix?: string;
|
|
55
|
+
suffix?: string;
|
|
54
56
|
onClick?: (e: MouseEvent) => void;
|
|
55
57
|
};
|
|
56
58
|
export type MenuProps = ExtractPublicPropTypes<typeof menuProps>;
|
|
@@ -32,6 +32,8 @@ declare const menuItemProps: {
|
|
|
32
32
|
selected: BooleanConstructor;
|
|
33
33
|
disabled: BooleanConstructor;
|
|
34
34
|
minimal: BooleanConstructor;
|
|
35
|
+
prefix: StringConstructor;
|
|
36
|
+
suffix: StringConstructor;
|
|
35
37
|
color: {
|
|
36
38
|
readonly type: StringConstructor;
|
|
37
39
|
readonly default: string | undefined;
|
|
@@ -80,6 +82,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
80
82
|
selected: BooleanConstructor;
|
|
81
83
|
disabled: BooleanConstructor;
|
|
82
84
|
minimal: BooleanConstructor;
|
|
85
|
+
prefix: StringConstructor;
|
|
86
|
+
suffix: StringConstructor;
|
|
83
87
|
color: {
|
|
84
88
|
readonly type: StringConstructor;
|
|
85
89
|
readonly default: string | undefined;
|
|
@@ -120,6 +124,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
120
124
|
selected: BooleanConstructor;
|
|
121
125
|
disabled: BooleanConstructor;
|
|
122
126
|
minimal: BooleanConstructor;
|
|
127
|
+
prefix: StringConstructor;
|
|
128
|
+
suffix: StringConstructor;
|
|
123
129
|
color: {
|
|
124
130
|
readonly type: StringConstructor;
|
|
125
131
|
readonly default: string | undefined;
|
|
@@ -146,9 +152,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
146
152
|
exact: boolean;
|
|
147
153
|
selected: boolean;
|
|
148
154
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
149
|
-
prefix?(_: {
|
|
150
|
-
|
|
151
|
-
|
|
155
|
+
prefix?(_: {
|
|
156
|
+
item: MenuItemProps;
|
|
157
|
+
}): any;
|
|
158
|
+
default?(_: {
|
|
159
|
+
item: MenuItemProps;
|
|
160
|
+
}): any;
|
|
161
|
+
suffix?(_: {
|
|
162
|
+
item: MenuItemProps;
|
|
163
|
+
}): any;
|
|
152
164
|
}>;
|
|
153
165
|
export default _default;
|
|
154
166
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -3,7 +3,7 @@ import o from "./MenuItem.vue3.js";
|
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const e = {
|
|
5
5
|
$style: o
|
|
6
|
-
}, c = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-
|
|
6
|
+
}, c = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-47a57bf7"]]);
|
|
7
7
|
export {
|
|
8
8
|
c as default
|
|
9
9
|
};
|