@indielayer/ui 1.8.4 → 1.9.1
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/select/usage.vue +17 -5
- package/docs/pages/component/table/index.vue +7 -0
- package/docs/pages/component/table/usage.vue +5 -1
- package/docs/pages/component/table/virtual.vue +53 -0
- 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 +42 -6
- package/lib/components/select/Select.vue.js +224 -201
- package/lib/components/select/theme/Select.base.theme.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 +119 -24
- package/lib/components/table/Table.vue.js +226 -188
- 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 +10 -2
- package/lib/components/table/TableHead.vue.js +16 -13
- package/lib/components/table/TableHeader.vue.d.ts +4 -8
- package/lib/components/table/TableHeader.vue.js +40 -41
- package/lib/components/table/TableRow.vue.d.ts +8 -4
- package/lib/components/table/TableRow.vue.js +3 -2
- package/lib/components/table/theme/TableHead.base.theme.js +7 -4
- package/lib/components/table/theme/TableHead.carbon.theme.js +7 -4
- package/lib/components/table/theme/TableHeader.base.theme.js +3 -3
- package/lib/components/table/theme/TableHeader.carbon.theme.js +1 -1
- 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/index.d.ts +1 -0
- package/lib/composables/useInputtable.d.ts +26 -6
- package/lib/composables/useVirtualList.d.ts +48 -0
- package/lib/composables/useVirtualList.js +123 -0
- package/lib/index.js +35 -33
- package/lib/index.umd.js +4 -4
- package/lib/node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +412 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/components/select/Select.vue +56 -26
- package/src/components/select/theme/Select.base.theme.ts +1 -1
- package/src/components/table/Table.vue +158 -114
- package/src/components/table/TableHead.vue +6 -2
- package/src/components/table/TableHeader.vue +0 -1
- package/src/components/table/TableRow.vue +1 -0
- package/src/components/table/theme/TableHead.base.theme.ts +7 -1
- package/src/components/table/theme/TableHead.carbon.theme.ts +7 -1
- package/src/components/table/theme/TableHeader.base.theme.ts +0 -2
- package/src/components/table/theme/TableHeader.carbon.theme.ts +0 -2
- package/src/components/table/theme/TableRow.base.theme.ts +4 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/useVirtualList.ts +286 -0
- package/src/version.ts +1 -1
- package/lib/node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9_typescript@5.2.2_/node_modules/@vueuse/core/index.js +0 -379
- /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
|
@@ -1,48 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
const
|
|
4
|
-
x1: "12",
|
|
5
|
-
y1: "5",
|
|
6
|
-
x2: "12",
|
|
7
|
-
y2: "19"
|
|
8
|
-
}, null, -1), k = /* @__PURE__ */ n("polyline", { points: "19 12 12 19 5 12" }, null, -1), v = /* @__PURE__ */ n("line", {
|
|
9
|
-
x1: "12",
|
|
10
|
-
y1: "19",
|
|
11
|
-
x2: "12",
|
|
12
|
-
y2: "5"
|
|
13
|
-
}, null, -1), b = /* @__PURE__ */ n("polyline", { points: "5 12 12 5 19 12" }, null, -1), B = {
|
|
1
|
+
import { defineComponent as f, openBlock as l, createElementBlock as r, normalizeStyle as g, unref as s, normalizeClass as u, renderSlot as v, Fragment as d, createElementVNode as n, createCommentVNode as k } from "vue";
|
|
2
|
+
import { useTheme as b } from "../../composables/useTheme.js";
|
|
3
|
+
const c = {
|
|
14
4
|
key: 2,
|
|
15
5
|
d: "m3 9l4-4l4 4M7 5v14m14-4l-4 4l-4-4m4 4V5"
|
|
16
|
-
},
|
|
6
|
+
}, i = {
|
|
17
7
|
sort: [1, -1, void 0],
|
|
18
8
|
textAlign: ["left", "center", "right", "justify"]
|
|
19
|
-
},
|
|
9
|
+
}, h = {
|
|
20
10
|
sort: {
|
|
21
11
|
type: Number,
|
|
22
|
-
validator: (
|
|
12
|
+
validator: (o) => i.sort.includes(o)
|
|
23
13
|
},
|
|
24
14
|
sortable: Boolean,
|
|
25
15
|
textAlign: {
|
|
26
16
|
type: String,
|
|
27
17
|
default: "left",
|
|
28
|
-
validator: (
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class: a([s(p), s(i).th, "group/th"])
|
|
18
|
+
validator: (o) => i.textAlign.includes(o)
|
|
19
|
+
}
|
|
20
|
+
}, x = { name: "XTableHeader", validators: i }, N = /* @__PURE__ */ f({
|
|
21
|
+
...x,
|
|
22
|
+
props: h,
|
|
23
|
+
setup(o) {
|
|
24
|
+
const p = o, { styles: m, classes: a, className: y } = b("TableHeader", {}, p);
|
|
25
|
+
return (t, e) => (l(), r("th", {
|
|
26
|
+
style: g(s(m)),
|
|
27
|
+
class: u([s(y), s(a).th, "group/th"])
|
|
39
28
|
}, [
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
v(t.$slots, "default"),
|
|
30
|
+
t.sortable ? (l(), r("svg", {
|
|
42
31
|
key: 0,
|
|
43
|
-
class:
|
|
44
|
-
s(
|
|
45
|
-
[
|
|
32
|
+
class: u([
|
|
33
|
+
s(a).sortIcon,
|
|
34
|
+
[t.sort && [1, -1].includes(t.sort) ? "" : "invisible group-hover/th:visible"]
|
|
46
35
|
]),
|
|
47
36
|
width: "24",
|
|
48
37
|
height: "24",
|
|
@@ -53,17 +42,27 @@ const g = /* @__PURE__ */ n("line", {
|
|
|
53
42
|
fill: "none",
|
|
54
43
|
role: "presentation"
|
|
55
44
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
45
|
+
t.sort === -1 ? (l(), r(d, { key: 0 }, [
|
|
46
|
+
e[0] || (e[0] = n("line", {
|
|
47
|
+
x1: "12",
|
|
48
|
+
y1: "5",
|
|
49
|
+
x2: "12",
|
|
50
|
+
y2: "19"
|
|
51
|
+
}, null, -1)),
|
|
52
|
+
e[1] || (e[1] = n("polyline", { points: "19 12 12 19 5 12" }, null, -1))
|
|
53
|
+
], 64)) : t.sort === 1 ? (l(), r(d, { key: 1 }, [
|
|
54
|
+
e[2] || (e[2] = n("line", {
|
|
55
|
+
x1: "12",
|
|
56
|
+
y1: "19",
|
|
57
|
+
x2: "12",
|
|
58
|
+
y2: "5"
|
|
59
|
+
}, null, -1)),
|
|
60
|
+
e[3] || (e[3] = n("polyline", { points: "5 12 12 5 19 12" }, null, -1))
|
|
61
|
+
], 64)) : (l(), r("path", c))
|
|
62
|
+
], 2)) : k("", !0)
|
|
64
63
|
], 6));
|
|
65
64
|
}
|
|
66
65
|
});
|
|
67
66
|
export {
|
|
68
|
-
|
|
67
|
+
N as default
|
|
69
68
|
};
|
|
@@ -3,6 +3,7 @@ import { type ThemeComponent } from '../../composables/useTheme';
|
|
|
3
3
|
declare const tableRowProps: {
|
|
4
4
|
pointer: BooleanConstructor;
|
|
5
5
|
striped: BooleanConstructor;
|
|
6
|
+
selected: BooleanConstructor;
|
|
6
7
|
verticalAlign: {
|
|
7
8
|
type: PropType<"top" | "bottom" | "baseline" | "middle" | "text-bottom" | "text-top">;
|
|
8
9
|
default: string;
|
|
@@ -13,27 +14,30 @@ export type TableRowProps = ExtractPublicPropTypes<typeof tableRowProps>;
|
|
|
13
14
|
type InternalClasses = 'row';
|
|
14
15
|
export interface TableRowTheme extends ThemeComponent<TableRowProps, InternalClasses> {
|
|
15
16
|
}
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
18
|
pointer: BooleanConstructor;
|
|
18
19
|
striped: BooleanConstructor;
|
|
20
|
+
selected: BooleanConstructor;
|
|
19
21
|
verticalAlign: {
|
|
20
22
|
type: PropType<"top" | "bottom" | "baseline" | "middle" | "text-bottom" | "text-top">;
|
|
21
23
|
default: string;
|
|
22
24
|
validator: (value: string) => boolean;
|
|
23
25
|
};
|
|
24
|
-
}
|
|
26
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
27
|
pointer: BooleanConstructor;
|
|
26
28
|
striped: BooleanConstructor;
|
|
29
|
+
selected: BooleanConstructor;
|
|
27
30
|
verticalAlign: {
|
|
28
31
|
type: PropType<"top" | "bottom" | "baseline" | "middle" | "text-bottom" | "text-top">;
|
|
29
32
|
default: string;
|
|
30
33
|
validator: (value: string) => boolean;
|
|
31
34
|
};
|
|
32
|
-
}
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
selected: boolean;
|
|
33
37
|
striped: boolean;
|
|
34
38
|
pointer: boolean;
|
|
35
39
|
verticalAlign: "top" | "bottom" | "baseline" | "middle" | "text-bottom" | "text-top";
|
|
36
|
-
}, {}>, {
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
37
41
|
default?(_: {}): any;
|
|
38
42
|
}>;
|
|
39
43
|
export default _default;
|
|
@@ -5,12 +5,13 @@ const o = {
|
|
|
5
5
|
}, v = {
|
|
6
6
|
pointer: Boolean,
|
|
7
7
|
striped: Boolean,
|
|
8
|
+
selected: Boolean,
|
|
8
9
|
verticalAlign: {
|
|
9
10
|
type: String,
|
|
10
11
|
default: "top",
|
|
11
12
|
validator: (t) => o.verticalAlign.includes(t)
|
|
12
13
|
}
|
|
13
|
-
}, A = { name: "XTableRow", validators: o },
|
|
14
|
+
}, A = { name: "XTableRow", validators: o }, w = /* @__PURE__ */ c({
|
|
14
15
|
...A,
|
|
15
16
|
props: v,
|
|
16
17
|
setup(t) {
|
|
@@ -24,5 +25,5 @@ const o = {
|
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
w as default
|
|
28
29
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const s = {
|
|
2
2
|
classes: {
|
|
3
|
-
thead:
|
|
3
|
+
thead: ({ props: t }) => {
|
|
4
|
+
const e = ["align-bottom bg-secondary-50 dark:bg-secondary-700"];
|
|
5
|
+
return t.stickyHeader && e.push("sticky top-0 z-10"), e;
|
|
6
|
+
},
|
|
4
7
|
row: "text-sm text-secondary-600 dark:text-secondary-200 border-b"
|
|
5
8
|
}
|
|
6
|
-
},
|
|
9
|
+
}, a = s;
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
a as default
|
|
9
12
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const s = {
|
|
2
2
|
classes: {
|
|
3
|
-
thead:
|
|
3
|
+
thead: ({ props: e }) => {
|
|
4
|
+
const t = ["align-bottom"];
|
|
5
|
+
return e.stickyHeader && t.push("sticky top-0 z-10"), t;
|
|
6
|
+
},
|
|
4
7
|
row: "text-secondary-900 dark:text-secondary-50"
|
|
5
8
|
}
|
|
6
|
-
},
|
|
9
|
+
}, a = s;
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
a as default
|
|
9
12
|
};
|
|
@@ -2,11 +2,11 @@ const s = {
|
|
|
2
2
|
classes: {
|
|
3
3
|
th: ({ props: e }) => {
|
|
4
4
|
const t = ["relative py-3 font-semibold text-xs px-3"];
|
|
5
|
-
return e.sortable && t.push("cursor-pointer hover:text-secondary-800 dark:hover:text-secondary-300 transition-colors duration-150 ease-in-out"), e.
|
|
5
|
+
return e.sortable && t.push("cursor-pointer hover:text-secondary-800 dark:hover:text-secondary-300 transition-colors duration-150 ease-in-out"), e.textAlign === "left" && t.push("text-left"), e.textAlign === "right" && t.push("text-right"), e.textAlign === "center" && t.push("text-center"), e.textAlign === "justify" && t.push("text-justify"), t;
|
|
6
6
|
},
|
|
7
7
|
sortIcon: ({ props: e }) => ["absolute stroke-2 w-3 h-3 top-3.5 right-0.5"]
|
|
8
8
|
}
|
|
9
|
-
},
|
|
9
|
+
}, r = s;
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
r as default
|
|
12
12
|
};
|
|
@@ -2,7 +2,7 @@ const s = {
|
|
|
2
2
|
classes: {
|
|
3
3
|
th: ({ props: e }) => {
|
|
4
4
|
const t = ["relative py-3.5 font-semibold text-sm px-3 bg-secondary-200 dark:bg-secondary-700 select-none"];
|
|
5
|
-
return e.sortable && t.push("cursor-pointer hover:bg-secondary-300 dark:hover:bg-secondary-600 transition-colors duration-150 ease-in-out pr-5"), e.
|
|
5
|
+
return e.sortable && t.push("cursor-pointer hover:bg-secondary-300 dark:hover:bg-secondary-600 transition-colors duration-150 ease-in-out pr-5"), e.textAlign === "left" && t.push("text-left"), e.textAlign === "right" && t.push("text-right"), e.textAlign === "center" && t.push("text-center"), e.textAlign === "justify" && t.push("text-justify"), t;
|
|
6
6
|
},
|
|
7
7
|
sortIcon: ({ props: e }) => ["absolute stroke-2 w-4 h-4 top-4 right-2"]
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ const s = {
|
|
|
2
2
|
classes: {
|
|
3
3
|
row: ({ props: r }) => {
|
|
4
4
|
const e = [];
|
|
5
|
-
return r.striped ? e.push("even:bg-secondary-50 dark:even:bg-secondary-700") : e.push("border-b border-secondary-200 dark:border-secondary-700"), r.pointer && e.push("hover:bg-secondary-50 dark:hover:bg-secondary-700 cursor-pointer"), e;
|
|
5
|
+
return r.selected && e.push("shadow-[inset_3px_0] shadow-primary-500"), r.striped ? e.push("even:bg-secondary-50 dark:even:bg-secondary-700") : e.push("border-b border-secondary-200 dark:border-secondary-700"), r.pointer && e.push("hover:bg-secondary-50 dark:hover:bg-secondary-700 cursor-pointer"), e;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
}, o = s;
|
|
@@ -23,7 +23,7 @@ export type TagProps = ExtractPublicPropTypes<typeof tagProps>;
|
|
|
23
23
|
type InternalClasses = 'wrapper';
|
|
24
24
|
export interface TagTheme extends ThemeComponent<TagProps, InternalClasses> {
|
|
25
25
|
}
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
27
27
|
tag: {
|
|
28
28
|
type: StringConstructor;
|
|
29
29
|
default: string;
|
|
@@ -41,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
41
|
readonly default: "md";
|
|
42
42
|
readonly validator: (value: string) => boolean;
|
|
43
43
|
};
|
|
44
|
-
}
|
|
44
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove"[], "remove", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
45
|
tag: {
|
|
46
46
|
type: StringConstructor;
|
|
47
47
|
default: string;
|
|
@@ -59,9 +59,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
59
59
|
readonly default: "md";
|
|
60
60
|
readonly validator: (value: string) => boolean;
|
|
61
61
|
};
|
|
62
|
-
}>> & {
|
|
62
|
+
}>> & Readonly<{
|
|
63
63
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
64
|
-
}
|
|
64
|
+
}>, {
|
|
65
65
|
disabled: boolean;
|
|
66
66
|
tag: string;
|
|
67
67
|
outlined: boolean;
|
|
@@ -69,7 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
69
69
|
color: string;
|
|
70
70
|
rounded: boolean;
|
|
71
71
|
size: import("../../composables/useCommon").Size;
|
|
72
|
-
}, {}>, {
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
73
73
|
default?(_: {}): any;
|
|
74
74
|
}>;
|
|
75
75
|
export default _default;
|
|
@@ -60,7 +60,7 @@ type InternalExtraData = {
|
|
|
60
60
|
};
|
|
61
61
|
export interface TextareaTheme extends ThemeComponent<TextareaProps, InternalClasses, InternalExtraData> {
|
|
62
62
|
}
|
|
63
|
-
declare const _default: import("vue").DefineComponent<{
|
|
63
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
64
64
|
dir: {
|
|
65
65
|
type: StringConstructor;
|
|
66
66
|
default: string;
|
|
@@ -112,13 +112,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
112
112
|
readonly default: "md";
|
|
113
113
|
readonly validator: (value: string) => boolean;
|
|
114
114
|
};
|
|
115
|
-
}
|
|
115
|
+
}>, {
|
|
116
116
|
focus: () => void | undefined;
|
|
117
117
|
blur: () => void | undefined;
|
|
118
118
|
reset: () => void;
|
|
119
119
|
validate: (val?: any) => boolean;
|
|
120
120
|
setError: (val: string) => void;
|
|
121
|
-
},
|
|
121
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
122
122
|
dir: {
|
|
123
123
|
type: StringConstructor;
|
|
124
124
|
default: string;
|
|
@@ -170,9 +170,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
170
|
readonly default: "md";
|
|
171
171
|
readonly validator: (value: string) => boolean;
|
|
172
172
|
};
|
|
173
|
-
}>> & {
|
|
173
|
+
}>> & Readonly<{
|
|
174
174
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
175
|
-
}
|
|
175
|
+
}>, {
|
|
176
176
|
disabled: boolean;
|
|
177
177
|
size: import("../../composables/useCommon").Size;
|
|
178
178
|
block: boolean;
|
|
@@ -190,5 +190,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
190
190
|
adjustToText: boolean;
|
|
191
191
|
preventEnter: boolean;
|
|
192
192
|
resizable: boolean;
|
|
193
|
-
}, {}>;
|
|
193
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
194
194
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as q, useAttrs as
|
|
2
|
-
import { useResizeObserver as J, useEventListener as M } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.
|
|
1
|
+
import { defineComponent as q, useAttrs as R, computed as A, ref as F, watch as H, openBlock as u, createBlock as p, normalizeStyle as K, unref as r, normalizeClass as L, withCtx as O, createElementVNode as $, mergeProps as D, toHandlers as W, withKeys as X, createCommentVNode as G } from "vue";
|
|
2
|
+
import { useResizeObserver as J, useEventListener as M } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
|
|
3
3
|
import { useCSS as Q } from "../../composables/useCSS.js";
|
|
4
4
|
import { useTheme as U } from "../../composables/useTheme.js";
|
|
5
5
|
import { useCommon as f } from "../../composables/useCommon.js";
|
|
@@ -8,7 +8,7 @@ import { useInputtable as a } from "../../composables/useInputtable.js";
|
|
|
8
8
|
import { useInteractive as c } from "../../composables/useInteractive.js";
|
|
9
9
|
import Z from "../label/Label.vue.js";
|
|
10
10
|
import _ from "../inputFooter/InputFooter.vue.js";
|
|
11
|
-
const ee = ["id", "disabled", "max", "maxlength", "min", "dir", "rows", "minlength", "name", "placeholder", "readonly", "value"
|
|
11
|
+
const ee = ["id", "disabled", "max", "maxlength", "min", "dir", "rows", "minlength", "name", "placeholder", "readonly", "value"], re = {
|
|
12
12
|
...f.props(),
|
|
13
13
|
...c.props(),
|
|
14
14
|
...a.props(),
|
|
@@ -39,8 +39,8 @@ const ee = ["id", "disabled", "max", "maxlength", "min", "dir", "rows", "minleng
|
|
|
39
39
|
props: re,
|
|
40
40
|
emits: a.emits(),
|
|
41
41
|
setup(h, { expose: b, emit: g }) {
|
|
42
|
-
const t = h, y = g, i =
|
|
43
|
-
J(o, n), typeof window < "u" && M(window, "resize", n),
|
|
42
|
+
const t = h, y = g, i = R(), v = A(() => Object.keys(i).reduce((e, s) => (s.startsWith("data-") && (e[s] = i[s]), e), {})), o = F(null);
|
|
43
|
+
J(o, n), typeof window < "u" && M(window, "resize", n), H([() => t.modelValue, () => t.size], () => {
|
|
44
44
|
setTimeout(n);
|
|
45
45
|
});
|
|
46
46
|
const w = Q("textarea"), S = Y().getPalette("primary"), k = w.get("border", S[400]);
|
|
@@ -63,7 +63,7 @@ const ee = ["id", "disabled", "max", "maxlength", "min", "dir", "rows", "minleng
|
|
|
63
63
|
setError: x
|
|
64
64
|
} = a(t, { focus: m, emit: y }), { styles: P, classes: d, className: j } = U("Textarea", {}, t, { errorInternal: l });
|
|
65
65
|
return b({ focus: m, blur: z, reset: I, validate: V, setError: x }), (e, s) => (u(), p(Z, {
|
|
66
|
-
style:
|
|
66
|
+
style: K(r(P)),
|
|
67
67
|
block: e.block,
|
|
68
68
|
disabled: e.disabled,
|
|
69
69
|
required: e.required,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import { type UITheme } from '../../theme';
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
theme: PropType<UITheme>;
|
|
5
|
-
}
|
|
5
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
6
|
theme: PropType<UITheme>;
|
|
7
|
-
}
|
|
7
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
8
8
|
default?(_: {}): any;
|
|
9
9
|
}>;
|
|
10
10
|
export default _default;
|
|
@@ -45,7 +45,7 @@ export type ToggleProps = ExtractPublicPropTypes<typeof toggleProps>;
|
|
|
45
45
|
type InternalClasses = 'wrapper' | 'label' | 'buttonWrapper' | 'button';
|
|
46
46
|
export interface ToggleTheme extends ThemeComponent<ToggleProps, InternalClasses> {
|
|
47
47
|
}
|
|
48
|
-
declare const _default: import("vue").DefineComponent<{
|
|
48
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
49
49
|
glow: BooleanConstructor;
|
|
50
50
|
modelValue: {
|
|
51
51
|
readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
|
|
@@ -85,13 +85,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
readonly default: "md";
|
|
86
86
|
readonly validator: (value: string) => boolean;
|
|
87
87
|
};
|
|
88
|
-
}
|
|
88
|
+
}>, {
|
|
89
89
|
focus: () => void | undefined;
|
|
90
90
|
blur: () => void | undefined;
|
|
91
91
|
reset: () => void;
|
|
92
92
|
validate: (val?: any) => boolean;
|
|
93
93
|
setError: (val: string) => void;
|
|
94
|
-
},
|
|
94
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
95
95
|
glow: BooleanConstructor;
|
|
96
96
|
modelValue: {
|
|
97
97
|
readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
|
|
@@ -131,9 +131,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
131
|
readonly default: "md";
|
|
132
132
|
readonly validator: (value: string) => boolean;
|
|
133
133
|
};
|
|
134
|
-
}>> & {
|
|
134
|
+
}>> & Readonly<{
|
|
135
135
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
136
|
-
}
|
|
136
|
+
}>, {
|
|
137
137
|
disabled: boolean;
|
|
138
138
|
glow: boolean;
|
|
139
139
|
color: string;
|
|
@@ -147,5 +147,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
147
147
|
hideFooter: boolean;
|
|
148
148
|
rules: unknown[];
|
|
149
149
|
skipFormRegistry: boolean;
|
|
150
|
-
}, {}>;
|
|
150
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
151
151
|
export default _default;
|
|
@@ -4,11 +4,11 @@ declare const toggleTipProps: {
|
|
|
4
4
|
icon: StringConstructor;
|
|
5
5
|
};
|
|
6
6
|
export type ToggleTipProps = ExtractPublicPropTypes<typeof toggleTipProps>;
|
|
7
|
-
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
content: StringConstructor;
|
|
9
9
|
icon: StringConstructor;
|
|
10
|
-
}
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
content: StringConstructor;
|
|
12
12
|
icon: StringConstructor;
|
|
13
|
-
}
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -8,19 +8,19 @@ declare const tooltipProps: {
|
|
|
8
8
|
};
|
|
9
9
|
export type PopoverPlacement = Placement;
|
|
10
10
|
export type TooltipProps = ExtractPublicPropTypes<typeof tooltipProps>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
12
|
placement: {
|
|
13
13
|
type: PropType<Placement>;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
placement: {
|
|
18
18
|
type: PropType<Placement>;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
-
}
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
22
|
placement: Placement;
|
|
23
|
-
}, {}>, {
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
24
24
|
default?(_: {}): any;
|
|
25
25
|
tooltip?(_: {}): any;
|
|
26
26
|
}>;
|
|
@@ -2,7 +2,7 @@ import { defineComponent as r, openBlock as a, createBlock as s, withCtx as e, c
|
|
|
2
2
|
import c from "../popover/Popover.vue.js";
|
|
3
3
|
import "../popover/Popover.vue3.js";
|
|
4
4
|
import p from "../popover/PopoverContainer.vue.js";
|
|
5
|
-
import "../../node_modules/.pnpm/floating-vue@5.2.2_@nuxt_kit@3.10.1_rollup@3.29.4__vue@3.
|
|
5
|
+
import "../../node_modules/.pnpm/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";
|
|
6
6
|
const i = { class: "dark" }, m = {
|
|
7
7
|
placement: {
|
|
8
8
|
type: String,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
2
|
export interface XFormInputMethods {
|
|
3
3
|
focus: () => void;
|
|
4
4
|
validate: (val: any) => boolean;
|
|
@@ -10,13 +10,33 @@ export declare const useInputtable: {
|
|
|
10
10
|
emit: any;
|
|
11
11
|
withListeners?: boolean | undefined;
|
|
12
12
|
}): {
|
|
13
|
-
isFirstValidation: import("vue").Ref<boolean>;
|
|
14
|
-
errorInternal: any
|
|
15
|
-
hideFooterInternal: any
|
|
16
|
-
isFocused: import("vue").Ref<boolean>;
|
|
13
|
+
isFirstValidation: import("vue").Ref<boolean, boolean>;
|
|
14
|
+
errorInternal: import("vue").Ref<any, any>;
|
|
15
|
+
hideFooterInternal: import("vue").Ref<any, any>;
|
|
16
|
+
isFocused: import("vue").Ref<boolean, boolean>;
|
|
17
17
|
isInsideForm: boolean;
|
|
18
18
|
isInsideFormGroup: boolean;
|
|
19
|
-
inputListeners:
|
|
19
|
+
inputListeners: {
|
|
20
|
+
focus: (event: Event) => void;
|
|
21
|
+
blur: (event: Event) => void;
|
|
22
|
+
input: (event: Event) => void;
|
|
23
|
+
change: (event: Event) => void;
|
|
24
|
+
} | import("vue").Ref<{
|
|
25
|
+
focus: (event: Event) => void;
|
|
26
|
+
blur: (event: Event) => void;
|
|
27
|
+
input: (event: Event) => void;
|
|
28
|
+
change: (event: Event) => void;
|
|
29
|
+
}, {
|
|
30
|
+
focus: (event: Event) => void;
|
|
31
|
+
blur: (event: Event) => void;
|
|
32
|
+
input: (event: Event) => void;
|
|
33
|
+
change: (event: Event) => void;
|
|
34
|
+
}> | import("vue").ShallowRef<{
|
|
35
|
+
focus: (event: Event) => void;
|
|
36
|
+
blur: (event: Event) => void;
|
|
37
|
+
input: (event: Event) => void;
|
|
38
|
+
change: (event: Event) => void;
|
|
39
|
+
}, {
|
|
20
40
|
focus: (event: Event) => void;
|
|
21
41
|
blur: (event: Event) => void;
|
|
22
42
|
input: (event: Event) => void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Ref, StyleValue } from 'vue';
|
|
2
|
+
import type { MaybeRef } from '@vueuse/shared';
|
|
3
|
+
type UseVirtualListItemSize = number | ((index: number) => number);
|
|
4
|
+
export type UseVirtualListOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* item height, accept a pixel value or a function that returns the height
|
|
7
|
+
*
|
|
8
|
+
* @default 0
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
itemHeight: UseVirtualListItemSize;
|
|
12
|
+
topOffset: number;
|
|
13
|
+
bottomOffset: number;
|
|
14
|
+
/**
|
|
15
|
+
* the extra buffer items outside of the view area
|
|
16
|
+
*
|
|
17
|
+
* @default 5
|
|
18
|
+
*/
|
|
19
|
+
overscan?: number;
|
|
20
|
+
};
|
|
21
|
+
export interface UseVirtualListItem<T> {
|
|
22
|
+
data: T;
|
|
23
|
+
index: number;
|
|
24
|
+
}
|
|
25
|
+
export interface UseVirtualListReturn<T> {
|
|
26
|
+
list: Ref<UseVirtualListItem<T>[]>;
|
|
27
|
+
scrollTo: (index: number) => void;
|
|
28
|
+
reset: () => void;
|
|
29
|
+
containerProps: {
|
|
30
|
+
ref: Ref<HTMLElement | null>;
|
|
31
|
+
style: StyleValue;
|
|
32
|
+
onScroll: () => void;
|
|
33
|
+
};
|
|
34
|
+
wrapperProps: MaybeRef<{
|
|
35
|
+
style?: {
|
|
36
|
+
width: string;
|
|
37
|
+
height: string;
|
|
38
|
+
marginTop: string;
|
|
39
|
+
} | {
|
|
40
|
+
width: string;
|
|
41
|
+
height: string;
|
|
42
|
+
marginLeft: string;
|
|
43
|
+
display: string;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
47
|
+
export declare function useVirtualList<T = any>(list: MaybeRef<T[]>, options: UseVirtualListOptions): UseVirtualListReturn<T>;
|
|
48
|
+
export {};
|