@dolanske/vui 0.5.0 → 1.0.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/README.md +5 -4
- package/dist/components/Accordion/Accordion.vue.d.ts +3 -2
- package/dist/components/Accordion/AccordionGroup.vue.d.ts +5 -2
- package/dist/components/Alert/Alert.vue.d.ts +10 -3
- package/dist/components/Avatar/Avatar.vue.d.ts +16 -1
- package/dist/components/Badge/Badge.vue.d.ts +4 -3
- package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +4 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +3 -2
- package/dist/components/Button/Button.vue.d.ts +8 -17
- package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +5 -2
- package/dist/components/Calendar/Calendar.vue.d.ts +7 -7
- package/dist/components/Card/Card.vue.d.ts +4 -3
- package/dist/components/Checkbox/Checkbox.vue.d.ts +8 -6
- package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +2 -1
- package/dist/components/Divider/Divider.vue.d.ts +3 -2
- package/dist/components/Drawer/Drawer.vue.d.ts +6 -5
- package/dist/components/Dropdown/Dropdown.vue.d.ts +84 -6
- package/dist/components/Dropdown/DropdownItem.vue.d.ts +3 -2
- package/dist/components/Dropdown/DropdownTitle.vue.d.ts +6 -2
- package/dist/components/Flex/Flex.vue.d.ts +3 -2
- package/dist/components/Grid/Grid.vue.d.ts +7 -3
- package/dist/components/Input/Color.vue.d.ts +11 -0
- package/dist/components/Input/Counter.vue.d.ts +5 -5
- package/dist/components/Input/Dropzone.vue.d.ts +96 -11
- package/dist/components/Input/File.vue.d.ts +4 -3
- package/dist/components/Input/Input.vue.d.ts +9 -8
- package/dist/components/Input/Password.vue.d.ts +1 -1
- package/dist/components/Input/Textarea.vue.d.ts +7 -6
- package/dist/components/Kbd/Kbd.vue.d.ts +1 -1
- package/dist/components/Kbd/KbdGroup.vue.d.ts +5 -12
- package/dist/components/Modal/Confirm.vue.d.ts +7 -6
- package/dist/components/Modal/Modal.vue.d.ts +7 -6
- package/dist/components/OTP/OTP.vue.d.ts +7 -6
- package/dist/components/OTP/OTPItem.vue.d.ts +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts +6 -2
- package/dist/components/Popout/Popout.vue.d.ts +11 -3
- package/dist/components/Progress/Progress.vue.d.ts +7 -5
- package/dist/components/Radio/Radio.vue.d.ts +8 -6
- package/dist/components/Radio/RadioGroup.vue.d.ts +7 -6
- package/dist/components/Select/Select.vue.d.ts +6 -8
- package/dist/components/Sheet/Sheet.vue.d.ts +9 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts +70 -0
- package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
- package/dist/components/Switch/Switch.vue.d.ts +8 -6
- package/dist/components/Table/Cell.vue.d.ts +5 -2
- package/dist/components/Table/{Header.vue.d.ts → Head.vue.d.ts} +3 -2
- package/dist/components/Table/{Table.vue.d.ts → Root.vue.d.ts} +3 -2
- package/dist/components/Table/index.d.ts +6 -0
- package/dist/components/Table/table.d.ts +3 -3
- package/dist/components/Tabs/Tab.vue.d.ts +17 -3
- package/dist/components/Tabs/Tabs.vue.d.ts +8 -7
- package/dist/components/Toast/toast.d.ts +245 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +2 -1
- package/dist/index.d.ts +5 -7
- package/dist/internal/Backdrop/Backdrop.vue.d.ts +3 -2
- package/dist/shared/helpers.d.ts +9 -0
- package/dist/shared/theme.d.ts +3 -0
- package/dist/vui.css +1 -0
- package/dist/vui.js +7160 -6355
- package/package.json +22 -18
- package/src/App.vue +90 -171
- package/src/components/Accordion/accordion.scss +1 -0
- package/src/components/Alert/Alert.vue +11 -5
- package/src/components/Alert/alert.scss +104 -23
- package/src/components/Avatar/Avatar.vue +4 -1
- package/src/components/Avatar/avatar.scss +1 -1
- package/src/components/Badge/Badge.vue +1 -1
- package/src/components/Badge/badge.scss +134 -17
- package/src/components/Breadcrumbs/BreadcrumbItem.vue +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.vue +1 -2
- package/src/components/Breadcrumbs/breadcrumbs.scss +2 -1
- package/src/components/Button/Button.vue +15 -20
- package/src/components/Button/button.scss +156 -55
- package/src/components/ButtonGroup/ButtonGroup.vue +4 -1
- package/src/components/ButtonGroup/button-group.scss +2 -2
- package/src/components/Calendar/Calendar.vue +4 -1
- package/src/components/Calendar/calendar.scss +25 -2
- package/src/components/Card/Card.vue +2 -2
- package/src/components/Card/card.scss +4 -4
- package/src/components/Checkbox/Checkbox.vue +4 -1
- package/src/components/Checkbox/checkbox.scss +17 -12
- package/src/components/CopyClipboard/CopyClipboard.vue +15 -6
- package/src/components/CopyClipboard/copy-clipboard.scss +10 -2
- package/src/components/Drawer/Drawer.vue +4 -4
- package/src/components/Drawer/drawer.scss +1 -0
- package/src/components/Dropdown/Dropdown.vue +44 -20
- package/src/components/Dropdown/DropdownItem.vue +4 -4
- package/src/components/Dropdown/DropdownTitle.vue +7 -1
- package/src/components/Dropdown/dropdown-item.scss +9 -2
- package/src/components/Dropdown/dropdown.scss +21 -7
- package/src/components/Grid/Grid.vue +21 -1
- package/src/components/Input/Color.vue +26 -0
- package/src/components/Input/Counter.vue +12 -16
- package/src/components/Input/Dropzone.vue +1 -1
- package/src/components/Input/File.vue +1 -1
- package/src/components/Input/Input.vue +8 -6
- package/src/components/Input/Password.vue +1 -13
- package/src/components/Input/Textarea.vue +4 -2
- package/src/components/Input/input.scss +110 -16
- package/src/components/Kbd/KbdGroup.vue +2 -6
- package/src/components/Kbd/kbd.scss +6 -5
- package/src/components/Modal/Confirm.vue +1 -1
- package/src/components/Modal/Modal.vue +23 -15
- package/src/components/Modal/modal.scss +11 -6
- package/src/components/OTP/otp.scss +8 -7
- package/src/components/Pagination/Pagination.vue +6 -3
- package/src/components/Popout/Popout.vue +15 -5
- package/src/components/Popout/popout.scss +8 -1
- package/src/components/Progress/Progress.vue +18 -5
- package/src/components/Progress/progress.scss +7 -1
- package/src/components/Radio/Radio.vue +4 -2
- package/src/components/Radio/radio.scss +18 -8
- package/src/components/Select/Select.vue +49 -18
- package/src/components/Select/select.scss +35 -2
- package/src/components/Sheet/Sheet.vue +8 -2
- package/src/components/Sheet/sheet.scss +9 -0
- package/src/components/Sidebar/Sidebar.vue +24 -11
- package/src/components/Sidebar/sidebar.scss +6 -5
- package/src/components/Spinner/spinner.scss +2 -1
- package/src/components/Switch/Switch.vue +4 -3
- package/src/components/Switch/switch.scss +39 -6
- package/src/components/Table/{Header.vue → Head.vue} +5 -5
- package/src/components/Table/{Table.vue → Root.vue} +2 -2
- package/src/components/Table/SelectRow.vue +2 -1
- package/src/components/Table/index.ts +7 -0
- package/src/components/Table/table.scss +25 -5
- package/src/components/Table/table.ts +7 -3
- package/src/components/Tabs/Tab.vue +7 -9
- package/src/components/Tabs/Tabs.vue +5 -4
- package/src/components/Tabs/tabs.scss +10 -3
- package/src/components/Toast/Toasts.vue +5 -0
- package/src/components/Toast/toast.scss +6 -2
- package/src/components/Toast/toast.ts +7 -0
- package/src/components/Tooltip/Tooltip.vue +9 -9
- package/src/components/Tooltip/tooltip.scss +4 -0
- package/src/examples/ExampleAccordions.vue +58 -0
- package/src/examples/ExampleAlerts.vue +78 -0
- package/src/examples/ExampleAvatars.vue +44 -0
- package/src/examples/ExampleBadges.vue +48 -0
- package/src/examples/ExampleBreadcrumbs.vue +46 -0
- package/src/examples/ExampleButtons.vue +140 -0
- package/src/examples/ExampleCalendars.vue +40 -0
- package/src/examples/ExampleCards.vue +94 -0
- package/src/examples/ExampleCheckboxes.vue +123 -0
- package/src/examples/ExampleCopyClipboard.vue +47 -0
- package/src/examples/ExampleDividers.vue +39 -0
- package/src/examples/ExampleDrawers.vue +67 -0
- package/src/examples/ExampleDropdowns.vue +114 -0
- package/src/examples/ExampleFlexGrid.vue +122 -0
- package/src/examples/ExampleInputs.vue +234 -0
- package/src/examples/ExampleKBD.vue +65 -0
- package/src/examples/ExampleModals.vue +143 -0
- package/src/examples/ExamplePalette.vue +159 -0
- package/src/examples/ExamplePopouts.vue +41 -0
- package/src/examples/ExampleSheets.vue +77 -0
- package/src/examples/ExampleSidebars.vue +270 -0
- package/src/examples/ExampleSkeletons.vue +26 -0
- package/src/examples/ExampleSpinners.vue +78 -0
- package/src/examples/ExampleTables.vue +195 -0
- package/src/examples/ExampleTabs.vue +119 -0
- package/src/examples/ExampleToasts.vue +96 -0
- package/src/examples/ExampleTooltips.vue +70 -0
- package/src/examples/shared/ExampleColor.vue +28 -0
- package/src/index.ts +8 -11
- package/src/internal/Backdrop/backdrop.scss +7 -1
- package/src/shared/helpers.ts +43 -0
- package/src/shared/theme.ts +22 -0
- package/src/style/animation.scss +1 -0
- package/src/style/core.scss +30 -55
- package/src/style/layout.scss +74 -9
- package/src/style/text.scss +18 -0
- package/src/style/theme.scss +195 -0
- package/src/style/tooltip.scss +22 -4
- package/src/style/typography.scss +95 -18
- package/dist/components/Table/Row.vue.d.ts +0 -16
- package/dist/style.css +0 -1
- package/src/components/Table/Row.vue +0 -9
|
@@ -3,25 +3,26 @@ import { default as Radio } from './Radio.vue';
|
|
|
3
3
|
interface Props extends FlexProps {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type __VLS_Props = Props;
|
|
7
7
|
type __VLS_PublicProps = {
|
|
8
8
|
modelValue?: any;
|
|
9
|
-
} &
|
|
9
|
+
} & __VLS_Props;
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
11
12
|
slots: Readonly<{
|
|
12
13
|
default: () => Array<typeof Radio>;
|
|
13
14
|
}> & {
|
|
14
15
|
default: () => Array<typeof Radio>;
|
|
15
16
|
};
|
|
16
17
|
refs: {};
|
|
17
|
-
|
|
18
|
+
rootEl: HTMLDivElement;
|
|
18
19
|
};
|
|
19
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
21
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (
|
|
22
|
+
"update:modelValue": (value: any) => any;
|
|
22
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
-
"onUpdate:modelValue"?: ((
|
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
24
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
27
|
export default _default;
|
|
27
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -4,7 +4,7 @@ export type SelectOption = {
|
|
|
4
4
|
};
|
|
5
5
|
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
|
-
readonly "onUpdate:modelValue"?: ((
|
|
7
|
+
readonly "onUpdate:modelValue"?: ((value: SelectOption[] | undefined) => any) | undefined;
|
|
8
8
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
9
9
|
modelValue?: SelectOption[] | undefined;
|
|
10
10
|
} & {
|
|
@@ -19,16 +19,14 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
19
19
|
search?: boolean;
|
|
20
20
|
maxActiveOptions?: number;
|
|
21
21
|
showClear?: boolean;
|
|
22
|
-
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
errors?: string[];
|
|
24
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
23
25
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
24
26
|
attrs: any;
|
|
25
27
|
slots: {};
|
|
26
|
-
emit:
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
}> & {
|
|
28
|
+
emit: (evt: "update:modelValue", value: SelectOption[] | undefined) => void;
|
|
29
|
+
}>) => import('vue').VNode & {
|
|
32
30
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
33
31
|
};
|
|
34
32
|
export default _default;
|
|
@@ -3,12 +3,13 @@ interface Props {
|
|
|
3
3
|
size?: number | string;
|
|
4
4
|
separator?: boolean;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type __VLS_Props = Props;
|
|
7
7
|
declare function close(): void;
|
|
8
8
|
type __VLS_PublicProps = {
|
|
9
9
|
modelValue?: boolean;
|
|
10
|
-
} &
|
|
10
|
+
} & __VLS_Props;
|
|
11
11
|
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
12
13
|
slots: {
|
|
13
14
|
header?(_: {
|
|
14
15
|
close: typeof close;
|
|
@@ -16,15 +17,18 @@ declare function __VLS_template(): {
|
|
|
16
17
|
default?(_: {
|
|
17
18
|
close: typeof close;
|
|
18
19
|
}): any;
|
|
20
|
+
footer?(_: {
|
|
21
|
+
close: typeof close;
|
|
22
|
+
}): any;
|
|
19
23
|
};
|
|
20
24
|
refs: {};
|
|
21
|
-
|
|
25
|
+
rootEl: any;
|
|
22
26
|
};
|
|
23
27
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
28
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
"update:modelValue": (
|
|
29
|
+
"update:modelValue": (value: boolean) => any;
|
|
26
30
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
-
"onUpdate:modelValue"?: ((
|
|
31
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
28
32
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
34
|
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
type __VLS_Props = Props;
|
|
2
|
+
interface Props {
|
|
3
|
+
width?: number;
|
|
4
|
+
/**
|
|
5
|
+
* Controls wether the sidebar is displayed in full size, or a small version
|
|
6
|
+
*/
|
|
7
|
+
mini?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Allow sidebar showing up, when user hovers at very left of the screen. The
|
|
10
|
+
* sidebar will apear over content, not pushing anything over
|
|
11
|
+
*/
|
|
12
|
+
appear?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Add edges of background around sidebar
|
|
15
|
+
*/
|
|
16
|
+
floaty?: boolean;
|
|
17
|
+
}
|
|
18
|
+
type __VLS_PublicProps = {
|
|
19
|
+
modelValue?: boolean;
|
|
20
|
+
} & __VLS_Props;
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
23
|
+
slots: {
|
|
24
|
+
header?(_: {
|
|
25
|
+
mini: boolean;
|
|
26
|
+
floaty: boolean;
|
|
27
|
+
width: number;
|
|
28
|
+
open: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
29
|
+
close: () => false;
|
|
30
|
+
}): any;
|
|
31
|
+
default?(_: {
|
|
32
|
+
mini: boolean;
|
|
33
|
+
floaty: boolean;
|
|
34
|
+
width: number;
|
|
35
|
+
open: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
36
|
+
close: () => false;
|
|
37
|
+
}): any;
|
|
38
|
+
footer?(_: {
|
|
39
|
+
mini: boolean;
|
|
40
|
+
floaty: boolean;
|
|
41
|
+
width: number;
|
|
42
|
+
open: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
43
|
+
close: () => false;
|
|
44
|
+
}): any;
|
|
45
|
+
};
|
|
46
|
+
refs: {
|
|
47
|
+
wrap: HTMLDivElement;
|
|
48
|
+
sidebar: HTMLElement;
|
|
49
|
+
};
|
|
50
|
+
rootEl: HTMLDivElement;
|
|
51
|
+
};
|
|
52
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
53
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
"update:modelValue": (value: boolean) => any;
|
|
55
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
56
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
width: number;
|
|
59
|
+
mini: boolean;
|
|
60
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
61
|
+
wrap: HTMLDivElement;
|
|
62
|
+
sidebar: HTMLElement;
|
|
63
|
+
}, HTMLDivElement>;
|
|
64
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
height?: string | number;
|
|
5
5
|
circle?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
8
|
export default _default;
|
|
@@ -2,5 +2,5 @@ import { Sizes } from '../../shared/types';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
size?: Sizes;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
6
|
export default _default;
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
label?: string;
|
|
3
3
|
disabled?: boolean;
|
|
4
|
+
accent?: boolean;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
+
type __VLS_Props = Props;
|
|
6
7
|
type __VLS_PublicProps = {
|
|
7
8
|
modelValue?: boolean;
|
|
8
|
-
} &
|
|
9
|
+
} & __VLS_Props;
|
|
9
10
|
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
10
12
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
13
|
refs: {};
|
|
12
|
-
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
13
15
|
};
|
|
14
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
17
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (
|
|
18
|
+
"update:modelValue": (value: boolean) => any;
|
|
17
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: ((
|
|
19
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
20
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
23
|
export default _default;
|
|
22
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
2
3
|
slots: {
|
|
3
4
|
default?(_: {}): any;
|
|
4
5
|
context?(_: {}): any;
|
|
@@ -6,10 +7,12 @@ declare function __VLS_template(): {
|
|
|
6
7
|
refs: {
|
|
7
8
|
context: HTMLDivElement;
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
rootEl: HTMLTableCellElement;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
14
|
+
context: HTMLDivElement;
|
|
15
|
+
}, HTMLTableCellElement>;
|
|
13
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
17
|
export default _default;
|
|
15
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -12,14 +12,15 @@ interface Props {
|
|
|
12
12
|
sort?: boolean;
|
|
13
13
|
}
|
|
14
14
|
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
15
16
|
slots: {
|
|
16
17
|
default?(_: {}): any;
|
|
17
18
|
};
|
|
18
19
|
refs: {};
|
|
19
|
-
|
|
20
|
+
rootEl: HTMLTableCellElement;
|
|
20
21
|
};
|
|
21
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableCellElement>;
|
|
23
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
25
|
export default _default;
|
|
25
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -21,16 +21,17 @@ interface Props {
|
|
|
21
21
|
outerBorder?: boolean;
|
|
22
22
|
}
|
|
23
23
|
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
24
25
|
slots: {
|
|
25
26
|
header?(_: {}): any;
|
|
26
27
|
body?(_: {}): any;
|
|
27
28
|
pagination?(_: {}): any;
|
|
28
29
|
};
|
|
29
30
|
refs: {};
|
|
30
|
-
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
31
32
|
};
|
|
32
33
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
34
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
36
|
export default _default;
|
|
36
37
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as Cell } from './Cell.vue';
|
|
2
|
+
import { default as Head } from './Head.vue';
|
|
3
|
+
import { default as Root } from './Root.vue';
|
|
4
|
+
import { default as SelectAll } from './SelectAll.vue';
|
|
5
|
+
import { default as SelectRow } from './SelectRow.vue';
|
|
6
|
+
export { Cell, Head, Root, SelectAll, SelectRow };
|
|
@@ -22,7 +22,7 @@ interface TableOptionsInput {
|
|
|
22
22
|
};
|
|
23
23
|
select?: boolean;
|
|
24
24
|
}
|
|
25
|
-
export declare function defineTable<const Dataset extends
|
|
25
|
+
export declare function defineTable<const Dataset extends any[]>(computedDataset: MaybeRefOrGetter<Dataset>, tableOptions?: TableOptionsInput): {
|
|
26
26
|
setSort: (key: keyof Dataset[number], type?: "asc" | "desc" | "toggle") => void;
|
|
27
27
|
clearSort: () => void;
|
|
28
28
|
search: Ref<string | undefined, string | undefined>;
|
|
@@ -36,11 +36,11 @@ export declare function defineTable<const Dataset extends Array<BaseRow>>(comput
|
|
|
36
36
|
headers: Readonly<Ref<readonly {
|
|
37
37
|
readonly label: string;
|
|
38
38
|
readonly sortToggle: () => void;
|
|
39
|
-
readonly sortKey?:
|
|
39
|
+
readonly sortKey?: "asc" | "desc" | undefined;
|
|
40
40
|
}[], readonly {
|
|
41
41
|
readonly label: string;
|
|
42
42
|
readonly sortToggle: () => void;
|
|
43
|
-
readonly sortKey?:
|
|
43
|
+
readonly sortKey?: "asc" | "desc" | undefined;
|
|
44
44
|
}[]>>;
|
|
45
45
|
pagination: ComputedRef<import('../Pagination/pagination').Pagination>;
|
|
46
46
|
canPrevPage: ComputedRef<boolean>;
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
export interface TabProps {
|
|
2
2
|
disabled?: boolean;
|
|
3
|
-
|
|
4
|
-
label: string;
|
|
3
|
+
label?: string;
|
|
5
4
|
icon?: string;
|
|
6
5
|
}
|
|
7
|
-
declare
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLButtonElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<TabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
17
|
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { TabProps } from './Tab.vue';
|
|
2
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { TabProps } from './Tab.vue';
|
|
3
3
|
interface Props {
|
|
4
4
|
variant?: 'default' | 'filled';
|
|
5
5
|
expand?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
type __VLS_Props = Props;
|
|
9
9
|
type __VLS_PublicProps = {
|
|
10
10
|
modelValue?: any;
|
|
11
|
-
} &
|
|
11
|
+
} & __VLS_Props;
|
|
12
12
|
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
13
14
|
slots: Readonly<{
|
|
14
15
|
default: () => Array<VNode & {
|
|
15
16
|
props: TabProps;
|
|
@@ -27,17 +28,17 @@ declare function __VLS_template(): {
|
|
|
27
28
|
tabs: HTMLDivElement;
|
|
28
29
|
underline: HTMLDivElement;
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
31
32
|
};
|
|
32
33
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
34
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
-
"update:modelValue": (
|
|
35
|
+
"update:modelValue": (value: any) => any;
|
|
35
36
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
-
"onUpdate:modelValue"?: ((
|
|
37
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
37
38
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
38
39
|
tabs: HTMLDivElement;
|
|
39
40
|
underline: HTMLDivElement;
|
|
40
|
-
},
|
|
41
|
+
}, HTMLDivElement>;
|
|
41
42
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
43
|
export default _default;
|
|
43
44
|
type __VLS_WithTemplateSlots<T, S> = T & {
|