@indielayer/ui 1.9.0 → 1.9.2
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/pages/component/table/usage.vue +6 -1
- package/docs/pages/component/table/virtual.vue +1 -1
- package/docs/pages/typography.vue +14 -12
- package/lib/components/accordion/Accordion.vue.d.ts +4 -4
- package/lib/components/accordion/AccordionItem.vue.d.ts +6 -6
- package/lib/components/accordion/AccordionItem.vue.js +51 -51
- package/lib/components/alert/Alert.vue.d.ts +8 -8
- package/lib/components/alert/Alert.vue2.js +20 -20
- package/lib/components/avatar/Avatar.vue.d.ts +4 -4
- package/lib/components/badge/Badge.vue.d.ts +4 -4
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +4 -4
- package/lib/components/button/Button.vue.d.ts +5 -5
- package/lib/components/button/ButtonGroup.vue.d.ts +4 -4
- package/lib/components/card/Card.vue.d.ts +4 -4
- package/lib/components/carousel/Carousel.vue.d.ts +7 -7
- package/lib/components/carousel/CarouselSlide.vue.d.ts +4 -4
- package/lib/components/checkbox/Checkbox.vue.d.ts +6 -6
- package/lib/components/checkbox/Checkbox.vue2.js +60 -60
- package/lib/components/container/Container.vue.d.ts +4 -4
- package/lib/components/datepicker/Datepicker.vue.d.ts +6 -6
- package/lib/components/datepicker/Datepicker.vue.js +3 -3
- package/lib/components/divider/Divider.vue.d.ts +4 -4
- package/lib/components/drawer/Drawer.vue.d.ts +6 -6
- package/lib/components/drawer/Drawer.vue.js +1 -1
- package/lib/components/form/Form.vue.d.ts +5 -5
- package/lib/components/formGroup/FormGroup.vue.d.ts +6 -6
- package/lib/components/formGroup/FormGroup.vue.js +7 -7
- package/lib/components/icon/Icon.vue.d.ts +4 -4
- package/lib/components/image/Image.vue.d.ts +3 -3
- package/lib/components/input/Input.vue.d.ts +6 -6
- package/lib/components/inputFooter/InputFooter.vue.d.ts +3 -3
- package/lib/components/label/Label.vue.d.ts +4 -4
- package/lib/components/link/Link.vue.d.ts +4 -4
- package/lib/components/loader/Loader.vue.d.ts +4 -4
- package/lib/components/menu/Menu.vue.d.ts +5 -5
- package/lib/components/menu/MenuItem.vue.d.ts +5 -5
- package/lib/components/menu/MenuItem.vue2.js +1 -1
- package/lib/components/modal/Modal.vue.d.ts +6 -6
- package/lib/components/modal/Modal.vue.js +1 -1
- package/lib/components/notifications/Notifications.vue.d.ts +5 -5
- package/lib/components/pagination/Pagination.vue.d.ts +5 -5
- package/lib/components/pagination/Pagination.vue.js +41 -41
- package/lib/components/pagination/PaginationItem.vue.d.ts +6 -6
- package/lib/components/popover/Popover.vue.d.ts +8 -8
- package/lib/components/popover/Popover.vue.js +1 -1
- package/lib/components/popover/PopoverContainer.vue.d.ts +4 -4
- package/lib/components/progress/Progress.vue.d.ts +4 -4
- package/lib/components/qrCode/QrCode.vue.d.ts +4 -4
- package/lib/components/radio/Radio.vue.d.ts +6 -6
- package/lib/components/radio/Radio.vue2.js +63 -63
- package/lib/components/scroll/Scroll.vue.d.ts +6 -6
- package/lib/components/scroll/Scroll.vue2.js +1 -1
- package/lib/components/select/Select.vue.d.ts +6 -6
- package/lib/components/select/Select.vue.js +1 -1
- package/lib/components/skeleton/Skeleton.vue.d.ts +4 -4
- package/lib/components/skeleton/Skeleton.vue.js +17 -17
- package/lib/components/slider/Slider.vue.d.ts +6 -6
- package/lib/components/spacer/Spacer.d.ts +1 -1
- package/lib/components/spinner/Spinner.vue.d.ts +4 -4
- package/lib/components/stepper/Stepper.vue.d.ts +5 -5
- package/lib/components/tab/Tab.vue.d.ts +5 -5
- package/lib/components/tab/Tab.vue.js +1 -1
- package/lib/components/tab/TabGroup.vue.d.ts +5 -5
- package/lib/components/tab/TabGroup.vue.js +2 -2
- package/lib/components/table/Table.vue.d.ts +41 -24
- package/lib/components/table/Table.vue.js +123 -116
- package/lib/components/table/TableBody.d.ts +1 -1
- package/lib/components/table/TableCell.vue.d.ts +4 -4
- package/lib/components/table/TableHead.vue.d.ts +4 -4
- package/lib/components/table/TableHeader.vue.d.ts +4 -4
- package/lib/components/table/TableHeader.vue.js +39 -39
- package/lib/components/table/TableRow.vue.d.ts +8 -4
- package/lib/components/table/TableRow.vue.js +3 -2
- package/lib/components/table/theme/TableRow.base.theme.js +1 -1
- package/lib/components/tag/Tag.vue.d.ts +5 -5
- package/lib/components/textarea/Textarea.vue.d.ts +6 -6
- package/lib/components/textarea/Textarea.vue.js +6 -6
- package/lib/components/themeProvider/ThemeProvider.vue.d.ts +3 -3
- package/lib/components/toggle/Toggle.vue.d.ts +6 -6
- package/lib/components/tooltip/ToggleTip.vue.d.ts +3 -3
- package/lib/components/tooltip/Tooltip.vue.d.ts +4 -4
- package/lib/components/tooltip/Tooltip.vue.js +1 -1
- package/lib/composables/useInputtable.d.ts +26 -6
- package/lib/composables/useVirtualList.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.umd.js +4 -4
- package/lib/node_modules/.pnpm/{@vueuse_core@10.2.0_vue@3.3.9_typescript@5.2.2_ → @vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_}/node_modules/@vueuse/core/index.js +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/components/table/Table.vue +10 -4
- package/src/components/table/TableRow.vue +1 -0
- package/src/components/table/theme/TableRow.base.theme.ts +4 -0
- package/src/version.ts +1 -1
- /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@8.3.2_vue@3.3.9_typescript@5.2.2_ → @vuepic_vue-datepicker@8.3.2_vue@3.5.10_typescript@5.2.2_}/node_modules/@vuepic/vue-datepicker/dist/main.css.js +0 -0
- /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@8.3.2_vue@3.3.9_typescript@5.2.2_ → @vuepic_vue-datepicker@8.3.2_vue@3.5.10_typescript@5.2.2_}/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +0 -0
- /package/lib/node_modules/.pnpm/{@vueuse_shared@10.2.0_vue@3.3.9_typescript@5.2.2_ → @vueuse_shared@10.2.0_vue@3.5.10_typescript@5.2.2_}/node_modules/@vueuse/shared/index.js +0 -0
- /package/lib/node_modules/.pnpm/{floating-vue@5.2.2_@nuxt_kit@3.10.1_rollup@3.29.4__vue@3.3.9_typescript@5.2.2_ → floating-vue@5.2.2_@nuxt_kit@3.10.1_rollup@3.29.4__vue@3.5.10_typescript@5.2.2_}/node_modules/floating-vue/dist/floating-vue.js +0 -0
|
@@ -60,6 +60,8 @@ const itemsSorted = computed<Book[]>(() => {
|
|
|
60
60
|
return 0
|
|
61
61
|
})
|
|
62
62
|
})
|
|
63
|
+
|
|
64
|
+
const selected = ref<number>(2)
|
|
63
65
|
</script>
|
|
64
66
|
|
|
65
67
|
<template>
|
|
@@ -87,11 +89,14 @@ const itemsSorted = computed<Book[]>(() => {
|
|
|
87
89
|
<x-card>
|
|
88
90
|
<x-table
|
|
89
91
|
v-model:sort="sort"
|
|
92
|
+
v-model:selected="selected"
|
|
93
|
+
key-prop="id"
|
|
90
94
|
dense
|
|
95
|
+
pointer
|
|
91
96
|
striped
|
|
92
97
|
:headers="headers"
|
|
93
98
|
:items="itemsSorted"
|
|
94
|
-
@click-row="notifications?.log(
|
|
99
|
+
@click-row="(event, index) => { notifications?.log(event); selected = event.id }"
|
|
95
100
|
>
|
|
96
101
|
<template #item-published="{ item }">
|
|
97
102
|
{{ formatDate(item.published) }}
|
|
@@ -70,18 +70,20 @@ const textClasses = {
|
|
|
70
70
|
|
|
71
71
|
<div class="mt-10">
|
|
72
72
|
<table class="text-left w-full">
|
|
73
|
-
<
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
73
|
+
<tbody>
|
|
74
|
+
<tr>
|
|
75
|
+
<th class="py-2">Class</th>
|
|
76
|
+
<th>Size</th>
|
|
77
|
+
<th>Line Height</th>
|
|
78
|
+
<th>Preview</th>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr v-for="(c, key) in textClasses" :key="key" class="border-t">
|
|
81
|
+
<td class="py-2">{{ key }}</td>
|
|
82
|
+
<td class="text-secondary-500 font-light">{{ c.size }}</td>
|
|
83
|
+
<td class="text-secondary-500 font-light">{{ c.line }}</td>
|
|
84
|
+
<td :class="key" class="max-w-lg truncate">Preview text</td>
|
|
85
|
+
</tr>
|
|
86
|
+
</tbody>
|
|
85
87
|
</table>
|
|
86
88
|
</div>
|
|
87
89
|
|
|
@@ -21,7 +21,7 @@ export type AccordionInjection = AccordionProps & {
|
|
|
21
21
|
type InternalClasses = 'wrapper';
|
|
22
22
|
export interface AccordionTheme extends ThemeComponent<AccordionProps, InternalClasses> {
|
|
23
23
|
}
|
|
24
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
25
25
|
tag: {
|
|
26
26
|
type: StringConstructor;
|
|
27
27
|
default: string;
|
|
@@ -34,7 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
34
|
};
|
|
35
35
|
icon: StringConstructor;
|
|
36
36
|
iconAlign: PropType<"left" | "right">;
|
|
37
|
-
}
|
|
37
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
tag: {
|
|
39
39
|
type: StringConstructor;
|
|
40
40
|
default: string;
|
|
@@ -47,12 +47,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
47
47
|
};
|
|
48
48
|
icon: StringConstructor;
|
|
49
49
|
iconAlign: PropType<"left" | "right">;
|
|
50
|
-
}
|
|
50
|
+
}>> & Readonly<{}>, {
|
|
51
51
|
disabled: boolean;
|
|
52
52
|
tag: string;
|
|
53
53
|
expanded: boolean;
|
|
54
54
|
showIcon: boolean;
|
|
55
|
-
}, {}>, {
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
56
56
|
default?(_: {}): any;
|
|
57
57
|
}>;
|
|
58
58
|
export default _default;
|
|
@@ -27,7 +27,7 @@ type InternalData = {
|
|
|
27
27
|
};
|
|
28
28
|
export interface AccordionItemTheme extends ThemeComponent<AccordionItemProps, InternalClasses, InternalData> {
|
|
29
29
|
}
|
|
30
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
31
31
|
tag: {
|
|
32
32
|
type: StringConstructor;
|
|
33
33
|
default: string;
|
|
@@ -43,11 +43,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
43
|
type: PropType<"left" | "right">;
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
|
-
}
|
|
46
|
+
}>, {
|
|
47
47
|
toggle: () => void;
|
|
48
48
|
open: (anim?: boolean) => void;
|
|
49
49
|
close: (anim?: boolean) => void;
|
|
50
|
-
},
|
|
50
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "expand")[], "change" | "expand", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
51
|
tag: {
|
|
52
52
|
type: StringConstructor;
|
|
53
53
|
default: string;
|
|
@@ -63,16 +63,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
63
63
|
type: PropType<"left" | "right">;
|
|
64
64
|
default: string;
|
|
65
65
|
};
|
|
66
|
-
}>> & {
|
|
66
|
+
}>> & Readonly<{
|
|
67
67
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
69
|
-
}
|
|
69
|
+
}>, {
|
|
70
70
|
disabled: boolean;
|
|
71
71
|
tag: string;
|
|
72
72
|
expanded: boolean;
|
|
73
73
|
showIcon: boolean;
|
|
74
74
|
iconAlign: "left" | "right";
|
|
75
|
-
}, {}>, {
|
|
75
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
76
76
|
default?(_: {
|
|
77
77
|
expand: (anim?: boolean) => void;
|
|
78
78
|
collapsed: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, inject as z, computed as D, reactive as H, ref as h, watch as g, openBlock as s, createBlock as y, resolveDynamicComponent as F, normalizeStyle as K, unref as a, normalizeClass as l, withCtx as A, createElementVNode as r, renderSlot as u, createElementBlock as x, createCommentVNode as
|
|
1
|
+
import { defineComponent as j, inject as z, computed as D, reactive as H, ref as h, watch as g, openBlock as s, createBlock as y, resolveDynamicComponent as F, normalizeStyle as K, unref as a, normalizeClass as l, withCtx as A, createElementVNode as r, renderSlot as u, createElementBlock as x, createCommentVNode as k, createVNode as M, Transition as X, withDirectives as q, vShow as G } from "vue";
|
|
2
2
|
import { useTheme as J } from "../../composables/useTheme.js";
|
|
3
3
|
import O from "../icon/Icon.vue.js";
|
|
4
4
|
import { injectAccordionKey as Q } from "../../composables/keys.js";
|
|
@@ -9,9 +9,7 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
|
|
|
9
9
|
fill: "none",
|
|
10
10
|
role: "presentation",
|
|
11
11
|
class: "stroke-2 w-4 h-4"
|
|
12
|
-
}, W =
|
|
13
|
-
W
|
|
14
|
-
], Z = ["left", "right"], ee = {
|
|
12
|
+
}, W = ["left", "right"], Y = {
|
|
15
13
|
tag: {
|
|
16
14
|
type: String,
|
|
17
15
|
default: "div"
|
|
@@ -27,69 +25,69 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
|
|
|
27
25
|
type: String,
|
|
28
26
|
default: "right"
|
|
29
27
|
}
|
|
30
|
-
},
|
|
28
|
+
}, Z = {
|
|
31
29
|
name: "XAccordionItem",
|
|
32
30
|
validators: {
|
|
33
|
-
iconAlign:
|
|
31
|
+
iconAlign: W
|
|
34
32
|
}
|
|
35
|
-
},
|
|
36
|
-
...
|
|
37
|
-
props:
|
|
33
|
+
}, ie = /* @__PURE__ */ j({
|
|
34
|
+
...Z,
|
|
35
|
+
props: Y,
|
|
38
36
|
emits: ["expand", "change"],
|
|
39
|
-
setup(
|
|
40
|
-
const i =
|
|
37
|
+
setup(w, { expose: I, emit: B }) {
|
|
38
|
+
const i = w, p = B, f = z(Q, {
|
|
41
39
|
isInsideAccordion: !1
|
|
42
|
-
}),
|
|
43
|
-
iconAlign:
|
|
44
|
-
}),
|
|
40
|
+
}), b = D(() => f.iconAlign || i.iconAlign), C = H({
|
|
41
|
+
iconAlign: b
|
|
42
|
+
}), n = h(!i.expanded), o = h(!0);
|
|
45
43
|
g(() => i.expanded, () => {
|
|
46
|
-
|
|
47
|
-
}), g(
|
|
44
|
+
n.value = !i.expanded;
|
|
45
|
+
}), g(n, (e, t) => {
|
|
48
46
|
p("change", !e);
|
|
49
47
|
});
|
|
50
|
-
function
|
|
51
|
-
|
|
48
|
+
function E(e) {
|
|
49
|
+
o.value && (e.style.height = "0px");
|
|
52
50
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
51
|
+
function $(e, t) {
|
|
52
|
+
o.value ? (e.addEventListener("transitionend", t), setTimeout(() => {
|
|
55
53
|
e.style.height = `${e.scrollHeight}px`;
|
|
56
|
-
}, 1)) :
|
|
57
|
-
}
|
|
58
|
-
function $(e) {
|
|
59
|
-
t.value ? e.style.removeProperty("height") : t.value = !0;
|
|
54
|
+
}, 1)) : t();
|
|
60
55
|
}
|
|
61
56
|
function S(e) {
|
|
62
|
-
|
|
57
|
+
o.value ? e.style.removeProperty("height") : o.value = !0;
|
|
58
|
+
}
|
|
59
|
+
function L(e) {
|
|
60
|
+
o.value && (e.style.height = `${e.scrollHeight}px`);
|
|
63
61
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
62
|
+
function P(e, t) {
|
|
63
|
+
o.value ? (e.addEventListener("transitionend", t), setTimeout(() => {
|
|
66
64
|
e.style.height = "0px";
|
|
67
|
-
}, 1)) :
|
|
65
|
+
}, 1)) : t();
|
|
68
66
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
67
|
+
function _(e) {
|
|
68
|
+
o.value ? e.style.removeProperty("height") : o.value = !0;
|
|
71
69
|
}
|
|
72
70
|
function m(e = !0) {
|
|
73
|
-
|
|
71
|
+
o.value = e, n.value = !1;
|
|
74
72
|
}
|
|
75
73
|
function N(e = !0) {
|
|
76
|
-
|
|
74
|
+
o.value = e, n.value = !0;
|
|
77
75
|
}
|
|
78
76
|
function v() {
|
|
79
|
-
i.disabled || (
|
|
77
|
+
i.disabled || (n.value = !n.value);
|
|
80
78
|
}
|
|
81
79
|
function c(e = !0) {
|
|
82
80
|
m(e), p("expand");
|
|
83
81
|
}
|
|
84
82
|
const { styles: T, classes: d, className: V } = J("AccordionItem", {}, {
|
|
85
83
|
...i,
|
|
86
|
-
...
|
|
87
|
-
}, { collapsed:
|
|
88
|
-
return
|
|
84
|
+
...C
|
|
85
|
+
}, { collapsed: n, isInsideAccordion: f.isInsideAccordion });
|
|
86
|
+
return I({ toggle: v, open: m, close: N }), (e, t) => (s(), y(F(e.tag), {
|
|
89
87
|
style: K(a(T)),
|
|
90
88
|
class: l(a(V)),
|
|
91
89
|
"aria-disabled": e.disabled,
|
|
92
|
-
"aria-expanded":
|
|
90
|
+
"aria-expanded": n.value ? "false" : "true"
|
|
93
91
|
}, {
|
|
94
92
|
default: A(() => [
|
|
95
93
|
r("button", {
|
|
@@ -100,7 +98,7 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
|
|
|
100
98
|
r("div", R, [
|
|
101
99
|
u(e.$slots, "default", {
|
|
102
100
|
expand: c,
|
|
103
|
-
collapsed:
|
|
101
|
+
collapsed: n.value
|
|
104
102
|
})
|
|
105
103
|
]),
|
|
106
104
|
e.showIcon ? (s(), x("div", {
|
|
@@ -110,21 +108,23 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
|
|
|
110
108
|
e.icon ? (s(), y(O, {
|
|
111
109
|
key: 0,
|
|
112
110
|
icon: e.icon
|
|
113
|
-
}, null, 8, ["icon"])) : (s(), x("svg", U,
|
|
114
|
-
|
|
111
|
+
}, null, 8, ["icon"])) : (s(), x("svg", U, t[0] || (t[0] = [
|
|
112
|
+
r("path", { d: "M19 9l-7 7-7-7" }, null, -1)
|
|
113
|
+
])))
|
|
114
|
+
], 2)) : k("", !0)
|
|
115
115
|
], 2),
|
|
116
116
|
e.$slots.summary ? u(e.$slots, "summary", {
|
|
117
117
|
key: 0,
|
|
118
118
|
expand: c,
|
|
119
|
-
collapsed:
|
|
120
|
-
}) :
|
|
119
|
+
collapsed: n.value
|
|
120
|
+
}) : k("", !0),
|
|
121
121
|
M(X, {
|
|
122
|
-
onBeforeEnter:
|
|
123
|
-
onEnter:
|
|
124
|
-
onAfterEnter:
|
|
125
|
-
onBeforeLeave:
|
|
126
|
-
onLeave:
|
|
127
|
-
onAfterLeave:
|
|
122
|
+
onBeforeEnter: E,
|
|
123
|
+
onEnter: $,
|
|
124
|
+
onAfterEnter: S,
|
|
125
|
+
onBeforeLeave: L,
|
|
126
|
+
onLeave: P,
|
|
127
|
+
onAfterLeave: _
|
|
128
128
|
}, {
|
|
129
129
|
default: A(() => [
|
|
130
130
|
q(r("div", {
|
|
@@ -132,10 +132,10 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
|
|
|
132
132
|
}, [
|
|
133
133
|
u(e.$slots, "content", {
|
|
134
134
|
expand: c,
|
|
135
|
-
collapsed:
|
|
135
|
+
collapsed: n.value
|
|
136
136
|
})
|
|
137
137
|
], 2), [
|
|
138
|
-
[G, !
|
|
138
|
+
[G, !n.value]
|
|
139
139
|
])
|
|
140
140
|
]),
|
|
141
141
|
_: 3
|
|
@@ -146,5 +146,5 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
export {
|
|
149
|
-
|
|
149
|
+
ie as default
|
|
150
150
|
};
|
|
@@ -2,7 +2,7 @@ import { type ExtractPublicPropTypes, type PropType } from 'vue';
|
|
|
2
2
|
import { type ThemeComponent } from '../../composables/useTheme';
|
|
3
3
|
declare const alertType: readonly ["info", "success", "error", "warning"];
|
|
4
4
|
declare const alertProps: {
|
|
5
|
-
type: PropType<"
|
|
5
|
+
type: PropType<"error" | "info" | "success" | "warning">;
|
|
6
6
|
glow: BooleanConstructor;
|
|
7
7
|
light: BooleanConstructor;
|
|
8
8
|
outlined: BooleanConstructor;
|
|
@@ -18,8 +18,8 @@ export type AlertProps = ExtractPublicPropTypes<typeof alertProps>;
|
|
|
18
18
|
type InternalClasses = 'wrapper';
|
|
19
19
|
export interface AlertTheme extends ThemeComponent<AlertProps, InternalClasses> {
|
|
20
20
|
}
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
22
|
-
type: PropType<"
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
22
|
+
type: PropType<"error" | "info" | "success" | "warning">;
|
|
23
23
|
glow: BooleanConstructor;
|
|
24
24
|
light: BooleanConstructor;
|
|
25
25
|
outlined: BooleanConstructor;
|
|
@@ -29,8 +29,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
29
|
readonly type: StringConstructor;
|
|
30
30
|
readonly default: string | undefined;
|
|
31
31
|
};
|
|
32
|
-
}
|
|
33
|
-
type: PropType<"
|
|
32
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove"[], "remove", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
type: PropType<"error" | "info" | "success" | "warning">;
|
|
34
34
|
glow: BooleanConstructor;
|
|
35
35
|
light: BooleanConstructor;
|
|
36
36
|
outlined: BooleanConstructor;
|
|
@@ -40,15 +40,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
40
40
|
readonly type: StringConstructor;
|
|
41
41
|
readonly default: string | undefined;
|
|
42
42
|
};
|
|
43
|
-
}>> & {
|
|
43
|
+
}>> & Readonly<{
|
|
44
44
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
45
|
-
}
|
|
45
|
+
}>, {
|
|
46
46
|
glow: boolean;
|
|
47
47
|
light: boolean;
|
|
48
48
|
outlined: boolean;
|
|
49
49
|
removable: boolean;
|
|
50
50
|
color: string;
|
|
51
|
-
}, {}>, {
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
52
52
|
icon?(_: {}): any;
|
|
53
53
|
default?(_: {}): any;
|
|
54
54
|
removeIcon?(_: {}): any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as v, computed as g, openBlock as
|
|
1
|
+
import { defineComponent as v, computed as g, openBlock as t, createElementBlock as a, normalizeStyle as k, unref as l, normalizeClass as b, renderSlot as n, createBlock as w, createCommentVNode as i, createElementVNode as s, Fragment as B, createVNode as $ } from "vue";
|
|
2
2
|
import { useColors as I } from "../../composables/useColors.js";
|
|
3
3
|
import { useTheme as C } from "../../composables/useTheme.js";
|
|
4
|
-
import { infoIcon as
|
|
4
|
+
import { infoIcon as N, successIcon as S, errorIcon as V, warningIcon as z, closeIcon as A } from "../../common/icons.js";
|
|
5
5
|
import c from "../icon/Icon.vue.js";
|
|
6
|
-
const
|
|
6
|
+
const E = ["aria-label"], L = ["info", "success", "error", "warning"], T = {
|
|
7
7
|
...I.props(),
|
|
8
8
|
type: String,
|
|
9
9
|
glow: Boolean,
|
|
@@ -11,46 +11,46 @@ const A = /* @__PURE__ */ n("div", { class: "flex-grow" }, null, -1), E = ["aria
|
|
|
11
11
|
outlined: Boolean,
|
|
12
12
|
removable: Boolean,
|
|
13
13
|
closeLabel: String
|
|
14
|
-
},
|
|
14
|
+
}, h = {
|
|
15
15
|
name: "XAlert",
|
|
16
16
|
validators: {
|
|
17
17
|
type: L
|
|
18
18
|
}
|
|
19
19
|
}, D = /* @__PURE__ */ v({
|
|
20
|
-
...
|
|
20
|
+
...h,
|
|
21
21
|
props: T,
|
|
22
22
|
emits: ["remove"],
|
|
23
23
|
setup(m) {
|
|
24
|
-
const o = m, p = g(() => o.type === "info" ?
|
|
25
|
-
return (e,
|
|
26
|
-
style: k(
|
|
24
|
+
const o = m, p = g(() => o.type === "info" ? N : o.type === "success" ? S : o.type === "error" ? V : o.type === "warning" ? z : ""), { styles: u, classes: f, className: d } = C("Alert", {}, o);
|
|
25
|
+
return (e, r) => (t(), a("div", {
|
|
26
|
+
style: k(l(u)),
|
|
27
27
|
class: b([
|
|
28
|
-
|
|
28
|
+
l(d),
|
|
29
29
|
e.$style.alert,
|
|
30
30
|
e.glow ? e.$style["alert--glow"] : "",
|
|
31
|
-
|
|
31
|
+
l(f).wrapper
|
|
32
32
|
])
|
|
33
33
|
}, [
|
|
34
|
-
|
|
35
|
-
e.type ? (
|
|
34
|
+
n(e.$slots, "icon", {}, () => [
|
|
35
|
+
e.type ? (t(), w(c, {
|
|
36
36
|
key: 0,
|
|
37
37
|
icon: p.value,
|
|
38
38
|
class: "text-[color:var(--x-alert-icon)] dark:text-[color:var(--x-alert-dark-icon)]"
|
|
39
39
|
}, null, 8, ["icon"])) : i("", !0)
|
|
40
40
|
]),
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
s("div", null, [
|
|
42
|
+
n(e.$slots, "default")
|
|
43
43
|
]),
|
|
44
|
-
e.removable ? (
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
e.removable ? (t(), a(B, { key: 0 }, [
|
|
45
|
+
r[1] || (r[1] = s("div", { class: "flex-grow" }, null, -1)),
|
|
46
|
+
s("button", {
|
|
47
47
|
type: "button",
|
|
48
48
|
class: "shrink-0",
|
|
49
49
|
"aria-label": e.closeLabel,
|
|
50
|
-
onClick:
|
|
50
|
+
onClick: r[0] || (r[0] = (y) => e.$emit("remove", y))
|
|
51
51
|
}, [
|
|
52
|
-
|
|
53
|
-
$(c, { icon:
|
|
52
|
+
n(e.$slots, "removeIcon", {}, () => [
|
|
53
|
+
$(c, { icon: l(A) }, null, 8, ["icon"])
|
|
54
54
|
])
|
|
55
55
|
], 8, E)
|
|
56
56
|
], 64)) : i("", !0)
|
|
@@ -27,7 +27,7 @@ type InternalExtraData = {
|
|
|
27
27
|
};
|
|
28
28
|
export interface AvatarTheme extends ThemeComponent<AvatarProps, InternalClasses, InternalExtraData> {
|
|
29
29
|
}
|
|
30
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
31
31
|
tag: {
|
|
32
32
|
type: StringConstructor;
|
|
33
33
|
default: string;
|
|
@@ -46,7 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
46
46
|
readonly default: "md";
|
|
47
47
|
readonly validator: (value: string) => boolean;
|
|
48
48
|
};
|
|
49
|
-
}
|
|
49
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
tag: {
|
|
51
51
|
type: StringConstructor;
|
|
52
52
|
default: string;
|
|
@@ -65,13 +65,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
65
65
|
readonly default: "md";
|
|
66
66
|
readonly validator: (value: string) => boolean;
|
|
67
67
|
};
|
|
68
|
-
}
|
|
68
|
+
}>> & Readonly<{}>, {
|
|
69
69
|
tag: string;
|
|
70
70
|
outlined: boolean;
|
|
71
71
|
color: string;
|
|
72
72
|
rounded: boolean;
|
|
73
73
|
size: import("../../composables/useCommon").Size;
|
|
74
|
-
}, {}>, {
|
|
74
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
75
75
|
avatarIcon?(_: {}): any;
|
|
76
76
|
}>;
|
|
77
77
|
export default _default;
|
|
@@ -40,7 +40,7 @@ export type BadgeProps = ExtractPublicPropTypes<typeof badgeProps>;
|
|
|
40
40
|
type InternalClasses = 'wrapper';
|
|
41
41
|
export interface BadgeTheme extends ThemeComponent<BadgeProps, InternalClasses> {
|
|
42
42
|
}
|
|
43
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
44
44
|
tag: {
|
|
45
45
|
type: StringConstructor;
|
|
46
46
|
default: string;
|
|
@@ -71,7 +71,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
71
71
|
readonly default: "md";
|
|
72
72
|
readonly validator: (value: string) => boolean;
|
|
73
73
|
};
|
|
74
|
-
}
|
|
74
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
75
|
tag: {
|
|
76
76
|
type: StringConstructor;
|
|
77
77
|
default: string;
|
|
@@ -102,7 +102,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
102
102
|
readonly default: "md";
|
|
103
103
|
readonly validator: (value: string) => boolean;
|
|
104
104
|
};
|
|
105
|
-
}
|
|
105
|
+
}>> & Readonly<{}>, {
|
|
106
106
|
tag: string;
|
|
107
107
|
outlined: boolean;
|
|
108
108
|
color: string;
|
|
@@ -111,7 +111,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
111
111
|
align: "left" | "right";
|
|
112
112
|
animated: boolean;
|
|
113
113
|
show: boolean;
|
|
114
|
-
}, {}>, {
|
|
114
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
115
115
|
default?(_: {}): any;
|
|
116
116
|
content?(_: {}): any;
|
|
117
117
|
}>;
|
|
@@ -27,7 +27,7 @@ export type BreadcrumbsProps = ExtractPublicPropTypes<typeof breadcrumbsProps>;
|
|
|
27
27
|
type InternalClasses = 'wrapper' | 'item' | 'separator';
|
|
28
28
|
export interface BreadcrumbsTheme extends ThemeComponent<BreadcrumbsProps, InternalClasses> {
|
|
29
29
|
}
|
|
30
|
-
declare const _default: import("vue").DefineComponent<{
|
|
30
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
31
31
|
items: PropType<BreadcrumbsItem[]>;
|
|
32
32
|
separator: {
|
|
33
33
|
type: StringConstructor;
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
readonly type: StringConstructor;
|
|
41
41
|
readonly default: string | undefined;
|
|
42
42
|
};
|
|
43
|
-
}
|
|
43
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
44
|
items: PropType<BreadcrumbsItem[]>;
|
|
45
45
|
separator: {
|
|
46
46
|
type: StringConstructor;
|
|
@@ -53,10 +53,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
readonly type: StringConstructor;
|
|
54
54
|
readonly default: string | undefined;
|
|
55
55
|
};
|
|
56
|
-
}
|
|
56
|
+
}>> & Readonly<{}>, {
|
|
57
57
|
color: string;
|
|
58
58
|
separator: string;
|
|
59
59
|
shadow: boolean;
|
|
60
60
|
underline: boolean;
|
|
61
|
-
}, {}>;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
62
|
export default _default;
|
|
@@ -44,7 +44,7 @@ type InternalExtraData = {
|
|
|
44
44
|
};
|
|
45
45
|
export interface ButtonTheme extends ThemeComponent<ButtonProps, InternalClasses, InternalExtraData> {
|
|
46
46
|
}
|
|
47
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
48
48
|
tag: {
|
|
49
49
|
type: StringConstructor;
|
|
50
50
|
default: string;
|
|
@@ -80,10 +80,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
80
80
|
readonly default: "md";
|
|
81
81
|
readonly validator: (value: string) => boolean;
|
|
82
82
|
};
|
|
83
|
-
}
|
|
83
|
+
}>, {
|
|
84
84
|
focus: () => void | undefined;
|
|
85
85
|
blur: () => void | undefined;
|
|
86
|
-
},
|
|
86
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
87
87
|
tag: {
|
|
88
88
|
type: StringConstructor;
|
|
89
89
|
default: string;
|
|
@@ -119,7 +119,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
119
119
|
readonly default: "md";
|
|
120
120
|
readonly validator: (value: string) => boolean;
|
|
121
121
|
};
|
|
122
|
-
}
|
|
122
|
+
}>> & Readonly<{}>, {
|
|
123
123
|
disabled: boolean;
|
|
124
124
|
flat: boolean;
|
|
125
125
|
type: string;
|
|
@@ -134,7 +134,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
134
134
|
block: boolean;
|
|
135
135
|
loading: boolean;
|
|
136
136
|
loadingStatus: import("../loader/Loader.vue").LoaderStatus;
|
|
137
|
-
}, {}>, {
|
|
137
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
138
138
|
default?(_: {}): any;
|
|
139
139
|
}>;
|
|
140
140
|
export default _default;
|
|
@@ -38,7 +38,7 @@ type InternalExtraData = {
|
|
|
38
38
|
};
|
|
39
39
|
export interface ButtonGroupTheme extends ThemeComponent<ButtonGroupProps, InternalClasses, InternalExtraData> {
|
|
40
40
|
}
|
|
41
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
41
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
42
42
|
tag: {
|
|
43
43
|
type: StringConstructor;
|
|
44
44
|
default: string;
|
|
@@ -64,7 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
64
64
|
readonly default: "md";
|
|
65
65
|
readonly validator: (value: string) => boolean;
|
|
66
66
|
};
|
|
67
|
-
}
|
|
67
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
68
|
tag: {
|
|
69
69
|
type: StringConstructor;
|
|
70
70
|
default: string;
|
|
@@ -90,7 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
90
90
|
readonly default: "md";
|
|
91
91
|
readonly validator: (value: string) => boolean;
|
|
92
92
|
};
|
|
93
|
-
}
|
|
93
|
+
}>> & Readonly<{}>, {
|
|
94
94
|
disabled: boolean;
|
|
95
95
|
flat: boolean;
|
|
96
96
|
tag: string;
|
|
@@ -102,7 +102,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
102
102
|
ghost: boolean;
|
|
103
103
|
loading: boolean;
|
|
104
104
|
loadingStatus: import("../loader/Loader.vue").LoaderStatus;
|
|
105
|
-
}, {}>, {
|
|
105
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
106
106
|
default?(_: {}): any;
|
|
107
107
|
}>;
|
|
108
108
|
export default _default;
|