@dolanske/vui 1.2.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +4 -27
- package/package.json +2 -2
- package/src/App.vue +8 -0
- package/src/components/Accordion/Accordion.vue +10 -3
- package/src/components/Accordion/accordion.scss +18 -3
- package/src/components/Button/Button.vue +5 -4
- package/src/components/Button/button.scss +9 -1
- package/src/components/ButtonGroup/button-group.scss +2 -2
- package/src/components/Calendar/calendar.scss +5 -0
- package/src/components/Card/Card.vue +1 -1
- package/src/components/CopyClipboard/CopyClipboard.vue +10 -3
- package/src/components/CopyClipboard/copy-clipboard.scss +1 -1
- package/src/components/Dropdown/Dropdown.vue +1 -15
- package/src/components/Dropdown/dropdown-item.scss +1 -1
- package/src/components/Dropdown/dropdown.scss +2 -2
- package/src/components/Grid/Grid.vue +3 -0
- package/src/components/Input/Counter.vue +1 -1
- package/src/components/Input/Password.vue +1 -1
- package/src/components/Input/input.scss +3 -3
- package/src/components/OTP/otp.scss +3 -3
- package/src/components/Pagination/Pagination.vue +25 -10
- package/src/components/Popout/Popout.vue +30 -9
- package/src/components/Popout/popout.scss +2 -1
- package/src/components/Progress/progress.scss +1 -1
- package/src/components/Select/Select.vue +2 -0
- package/src/components/Select/select.scss +1 -1
- package/src/components/Sidebar/sidebar.scss +1 -1
- package/src/components/Table/Head.vue +23 -16
- package/src/components/Table/table.scss +9 -8
- package/src/components/Tabs/Tabs.vue +1 -1
- package/src/components/Tabs/tabs.scss +2 -2
- package/src/components/Tooltip/Tooltip.vue +9 -17
- package/src/components/Tooltip/tooltip.scss +1 -4
- package/src/examples/ExampleAccordions.vue +17 -4
- package/src/examples/ExampleCopyClipboard.vue +2 -2
- package/src/examples/ExamplePalette.vue +6 -0
- package/src/examples/ExamplePopouts.vue +1 -1
- package/src/examples/ExampleTables.vue +164 -0
- package/src/examples/ExampleTabs.vue +3 -2
- package/src/internal/Backdrop/backdrop.scss +2 -2
- package/src/shared/helpers.ts +7 -0
- package/src/style/animation.scss +33 -5
- package/src/style/core.scss +24 -10
- package/src/style/fonts.scss +73 -0
- package/src/style/layout.scss +8 -39
- package/src/style/theme.scss +1 -1
- package/src/style/tooltip.scss +4 -4
- package/src/style/typography.scss +45 -25
- package/src/vite-env.d.ts +1 -1
- package/dist/components/Accordion/Accordion.vue.d.ts +0 -47
- package/dist/components/Accordion/AccordionGroup.vue.d.ts +0 -21
- package/dist/components/Alert/Alert.vue.d.ts +0 -36
- package/dist/components/Avatar/Avatar.vue.d.ts +0 -25
- package/dist/components/Badge/Badge.vue.d.ts +0 -22
- package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +0 -22
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +0 -18
- package/dist/components/Button/Button.vue.d.ts +0 -32
- package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +0 -22
- package/dist/components/Calendar/Calendar.vue.d.ts +0 -27
- package/dist/components/Card/Card.vue.d.ts +0 -26
- package/dist/components/Checkbox/Checkbox.vue.d.ts +0 -33
- package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +0 -41
- package/dist/components/Divider/Divider.vue.d.ts +0 -23
- package/dist/components/Drawer/Drawer.vue.d.ts +0 -53
- package/dist/components/Dropdown/Dropdown.vue.d.ts +0 -183
- package/dist/components/Dropdown/DropdownItem.vue.d.ts +0 -23
- package/dist/components/Dropdown/DropdownTitle.vue.d.ts +0 -21
- package/dist/components/Flex/Flex.vue.d.ts +0 -41
- package/dist/components/Grid/Grid.vue.d.ts +0 -34
- package/dist/components/Input/Color.vue.d.ts +0 -11
- package/dist/components/Input/Counter.vue.d.ts +0 -19
- package/dist/components/Input/Dropzone.vue.d.ts +0 -193
- package/dist/components/Input/File.vue.d.ts +0 -8
- package/dist/components/Input/Input.vue.d.ts +0 -56
- package/dist/components/Input/Password.vue.d.ts +0 -6
- package/dist/components/Input/Textarea.vue.d.ts +0 -31
- package/dist/components/Kbd/Kbd.vue.d.ts +0 -23
- package/dist/components/Kbd/KbdGroup.vue.d.ts +0 -19
- package/dist/components/Modal/Confirm.vue.d.ts +0 -43
- package/dist/components/Modal/Modal.vue.d.ts +0 -58
- package/dist/components/OTP/OTP.vue.d.ts +0 -44
- package/dist/components/OTP/OTPItem.vue.d.ts +0 -5
- package/dist/components/Pagination/Pagination.vue.d.ts +0 -46
- package/dist/components/Pagination/pagination.d.ts +0 -12
- package/dist/components/Popout/Popout.vue.d.ts +0 -42
- package/dist/components/Progress/Progress.vue.d.ts +0 -33
- package/dist/components/Radio/Radio.vue.d.ts +0 -29
- package/dist/components/Radio/RadioGroup.vue.d.ts +0 -27
- package/dist/components/Select/Select.vue.d.ts +0 -35
- package/dist/components/Sheet/Sheet.vue.d.ts +0 -47
- package/dist/components/Sidebar/Sidebar.vue.d.ts +0 -70
- package/dist/components/Skeleton/Skeleton.vue.d.ts +0 -8
- package/dist/components/Spinner/Spinner.vue.d.ts +0 -6
- package/dist/components/Switch/Switch.vue.d.ts +0 -28
- package/dist/components/Table/Cell.vue.d.ts +0 -22
- package/dist/components/Table/Head.vue.d.ts +0 -30
- package/dist/components/Table/Root.vue.d.ts +0 -41
- package/dist/components/Table/SelectAll.vue.d.ts +0 -2
- package/dist/components/Table/SelectRow.vue.d.ts +0 -6
- package/dist/components/Table/index.d.ts +0 -6
- package/dist/components/Table/table.d.ts +0 -68
- package/dist/components/Tabs/Tab.vue.d.ts +0 -22
- package/dist/components/Tabs/Tabs.vue.d.ts +0 -34
- package/dist/components/Toast/Toasts.vue.d.ts +0 -2
- package/dist/components/Toast/toast.d.ts +0 -287
- package/dist/components/Tooltip/Tooltip.vue.d.ts +0 -33
- package/dist/index.d.ts +0 -56
- package/dist/internal/Backdrop/Backdrop.vue.d.ts +0 -21
- package/dist/shared/helpers.d.ts +0 -32
- package/dist/shared/slots.d.ts +0 -20
- package/dist/shared/theme.d.ts +0 -3
- package/dist/shared/types.d.ts +0 -24
- package/dist/vui.css +0 -1
- package/dist/vui.js +0 -16166
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { FlexProps } from '../Flex/Flex.vue';
|
|
2
|
-
interface Props extends FlexProps {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
}
|
|
5
|
-
type __VLS_Props = Props;
|
|
6
|
-
type __VLS_PublicProps = {
|
|
7
|
-
modelValue?: any;
|
|
8
|
-
} & __VLS_Props;
|
|
9
|
-
declare function __VLS_template(): {
|
|
10
|
-
attrs: Partial<{}>;
|
|
11
|
-
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
12
|
-
refs: {};
|
|
13
|
-
rootEl: HTMLDivElement;
|
|
14
|
-
};
|
|
15
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
-
"update:modelValue": (value: any) => any;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export type SelectOption = {
|
|
2
|
-
value: any;
|
|
3
|
-
label: string;
|
|
4
|
-
};
|
|
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
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
|
-
readonly "onUpdate:modelValue"?: ((value: SelectOption[] | undefined) => any) | undefined;
|
|
8
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
9
|
-
modelValue?: SelectOption[] | undefined;
|
|
10
|
-
} & {
|
|
11
|
-
single?: boolean;
|
|
12
|
-
readonly?: boolean;
|
|
13
|
-
options: SelectOption[];
|
|
14
|
-
label?: string;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
required?: boolean;
|
|
17
|
-
expand?: boolean;
|
|
18
|
-
hint?: string;
|
|
19
|
-
search?: boolean;
|
|
20
|
-
maxActiveOptions?: number;
|
|
21
|
-
showClear?: boolean;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
errors?: string[];
|
|
24
|
-
}) & Partial<{}>> & import('vue').PublicProps;
|
|
25
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
26
|
-
attrs: any;
|
|
27
|
-
slots: {};
|
|
28
|
-
emit: (evt: "update:modelValue", value: SelectOption[] | undefined) => void;
|
|
29
|
-
}>) => import('vue').VNode & {
|
|
30
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
33
|
-
type __VLS_PrettifyLocal<T> = {
|
|
34
|
-
[K in keyof T]: T[K];
|
|
35
|
-
} & {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
/**
|
|
3
|
-
* Controls the visibility of the sheet
|
|
4
|
-
*/
|
|
5
|
-
open?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Controls the position of the sheet
|
|
8
|
-
*/
|
|
9
|
-
position?: 'left' | 'right' | 'top' | 'bottom';
|
|
10
|
-
/**
|
|
11
|
-
* Sets the width of the sheet
|
|
12
|
-
*/
|
|
13
|
-
size?: number | string;
|
|
14
|
-
/**
|
|
15
|
-
* Wether to show a divider between header and content
|
|
16
|
-
*/
|
|
17
|
-
separator?: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare function __VLS_template(): {
|
|
20
|
-
attrs: Partial<{}>;
|
|
21
|
-
slots: {
|
|
22
|
-
header?(_: {
|
|
23
|
-
close: () => void;
|
|
24
|
-
}): any;
|
|
25
|
-
default?(_: {
|
|
26
|
-
close: () => void;
|
|
27
|
-
}): any;
|
|
28
|
-
footer?(_: {
|
|
29
|
-
close: () => void;
|
|
30
|
-
}): any;
|
|
31
|
-
};
|
|
32
|
-
refs: {};
|
|
33
|
-
rootEl: any;
|
|
34
|
-
};
|
|
35
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
36
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
-
close: () => any;
|
|
38
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
39
|
-
onClose?: (() => any) | undefined;
|
|
40
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
41
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
|
-
export default _default;
|
|
43
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
-
new (): {
|
|
45
|
-
$slots: S;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
radius?: string | number;
|
|
3
|
-
width?: string | number;
|
|
4
|
-
height?: string | number;
|
|
5
|
-
circle?: boolean;
|
|
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, {}, HTMLDivElement>;
|
|
8
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Sizes } from '../../shared/types';
|
|
2
|
-
interface Props {
|
|
3
|
-
size?: Sizes;
|
|
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, {}, HTMLDivElement>;
|
|
6
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
label?: string;
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
accent?: boolean;
|
|
5
|
-
}
|
|
6
|
-
type __VLS_Props = Props;
|
|
7
|
-
type __VLS_PublicProps = {
|
|
8
|
-
modelValue?: boolean;
|
|
9
|
-
} & __VLS_Props;
|
|
10
|
-
declare function __VLS_template(): {
|
|
11
|
-
attrs: Partial<{}>;
|
|
12
|
-
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: HTMLDivElement;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
-
"update:modelValue": (value: boolean) => any;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
context?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {
|
|
8
|
-
context: HTMLDivElement;
|
|
9
|
-
};
|
|
10
|
-
rootEl: HTMLTableCellElement;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
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>;
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Header } from './table';
|
|
2
|
-
interface Props {
|
|
3
|
-
/**
|
|
4
|
-
* Main header data. This can be empty in case we are just adding an empty
|
|
5
|
-
* padder. It is recommended to just use <th> instead, but this shouldn't fail
|
|
6
|
-
* anyway
|
|
7
|
-
*/
|
|
8
|
-
header?: Header;
|
|
9
|
-
/**
|
|
10
|
-
* Enable sorting on this column
|
|
11
|
-
*/
|
|
12
|
-
sort?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare function __VLS_template(): {
|
|
15
|
-
attrs: Partial<{}>;
|
|
16
|
-
slots: {
|
|
17
|
-
default?(_: {}): any;
|
|
18
|
-
};
|
|
19
|
-
refs: {};
|
|
20
|
-
rootEl: HTMLTableCellElement;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
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>;
|
|
24
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
/**
|
|
3
|
-
* Sets the `table-layout` property
|
|
4
|
-
*/
|
|
5
|
-
fixed?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Table cells with content overflowing on new line will be cropped
|
|
8
|
-
*/
|
|
9
|
-
nowrap?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Add a visual separator between each row
|
|
12
|
-
*/
|
|
13
|
-
separateRows?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Add a visual separator between each cell
|
|
16
|
-
*/
|
|
17
|
-
separateCells?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Wrap table with a border
|
|
20
|
-
*/
|
|
21
|
-
outerBorder?: boolean;
|
|
22
|
-
}
|
|
23
|
-
declare function __VLS_template(): {
|
|
24
|
-
attrs: Partial<{}>;
|
|
25
|
-
slots: {
|
|
26
|
-
header?(_: {}): any;
|
|
27
|
-
body?(_: {}): any;
|
|
28
|
-
pagination?(_: {}): any;
|
|
29
|
-
};
|
|
30
|
-
refs: {};
|
|
31
|
-
rootEl: HTMLDivElement;
|
|
32
|
-
};
|
|
33
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
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>;
|
|
35
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
-
export default _default;
|
|
37
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
-
new (): {
|
|
39
|
-
$slots: S;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BaseRow } from './table';
|
|
2
|
-
interface Props {
|
|
3
|
-
row: BaseRow;
|
|
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, {}, any>;
|
|
6
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
-
import { DeepRequired } from '../../shared/types';
|
|
3
|
-
export type BaseRow = Record<string, string | number>;
|
|
4
|
-
export interface TableSelectionProvide {
|
|
5
|
-
selectedRows: Ref<Set<BaseRow>>;
|
|
6
|
-
selectRow: (row: BaseRow) => void;
|
|
7
|
-
selectAllRows: () => void;
|
|
8
|
-
enabled: ComputedRef<boolean>;
|
|
9
|
-
isSelectedAll: ComputedRef<boolean>;
|
|
10
|
-
}
|
|
11
|
-
export declare const TableSelectionProvideSymbol: InjectionKey<TableSelectionProvide>;
|
|
12
|
-
export interface Header {
|
|
13
|
-
label: string;
|
|
14
|
-
sortToggle: () => void;
|
|
15
|
-
sortKey?: 'asc' | 'desc';
|
|
16
|
-
}
|
|
17
|
-
interface TableOptionsInput {
|
|
18
|
-
pagination?: {
|
|
19
|
-
enabled?: boolean;
|
|
20
|
-
perPage?: number;
|
|
21
|
-
maxPages?: number;
|
|
22
|
-
};
|
|
23
|
-
select?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare function defineTable<const Dataset extends any[]>(computedDataset: MaybeRefOrGetter<Dataset>, tableOptions?: TableOptionsInput): {
|
|
26
|
-
setSort: (key: keyof Dataset[number], type?: "asc" | "desc" | "toggle") => void;
|
|
27
|
-
clearSort: () => void;
|
|
28
|
-
search: Ref<string | undefined, string | undefined>;
|
|
29
|
-
rows: Readonly<Ref<import('vue').DeepReadonly<Dataset>, import('vue').DeepReadonly<Dataset>>>;
|
|
30
|
-
allRows: Readonly<Ref<import('vue').DeepReadonly<Dataset>, import('vue').DeepReadonly<Dataset>>>;
|
|
31
|
-
selectedRows: Readonly<Ref<ReadonlySet<{
|
|
32
|
-
readonly [x: string]: string | number;
|
|
33
|
-
}>, ReadonlySet<{
|
|
34
|
-
readonly [x: string]: string | number;
|
|
35
|
-
}>>>;
|
|
36
|
-
headers: Readonly<Ref<readonly {
|
|
37
|
-
readonly label: string;
|
|
38
|
-
readonly sortToggle: () => void;
|
|
39
|
-
readonly sortKey?: "asc" | "desc" | undefined;
|
|
40
|
-
}[], readonly {
|
|
41
|
-
readonly label: string;
|
|
42
|
-
readonly sortToggle: () => void;
|
|
43
|
-
readonly sortKey?: "asc" | "desc" | undefined;
|
|
44
|
-
}[]>>;
|
|
45
|
-
pagination: ComputedRef<import('../Pagination/pagination').Pagination>;
|
|
46
|
-
canPrevPage: ComputedRef<boolean>;
|
|
47
|
-
canNextPage: ComputedRef<boolean>;
|
|
48
|
-
setPage: (page: number) => void;
|
|
49
|
-
options: Ref<{
|
|
50
|
-
pagination: {
|
|
51
|
-
enabled: boolean;
|
|
52
|
-
perPage: number;
|
|
53
|
-
maxPages: number;
|
|
54
|
-
};
|
|
55
|
-
select: boolean;
|
|
56
|
-
}, DeepRequired<TableOptionsInput> | {
|
|
57
|
-
pagination: {
|
|
58
|
-
enabled: boolean;
|
|
59
|
-
perPage: number;
|
|
60
|
-
maxPages: number;
|
|
61
|
-
};
|
|
62
|
-
select: boolean;
|
|
63
|
-
}>;
|
|
64
|
-
selectRow: (row: Dataset[number]) => void;
|
|
65
|
-
selectAllRows: () => void;
|
|
66
|
-
isSelectedAll: ComputedRef<boolean>;
|
|
67
|
-
};
|
|
68
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface TabProps {
|
|
2
|
-
disabled?: boolean;
|
|
3
|
-
value: string;
|
|
4
|
-
icon?: string;
|
|
5
|
-
}
|
|
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"]>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
variant?: 'default' | 'filled';
|
|
3
|
-
expand?: boolean;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
type __VLS_Props = Props;
|
|
7
|
-
type __VLS_PublicProps = {
|
|
8
|
-
modelValue?: any;
|
|
9
|
-
} & __VLS_Props;
|
|
10
|
-
declare function __VLS_template(): {
|
|
11
|
-
attrs: Partial<{}>;
|
|
12
|
-
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
13
|
-
refs: {
|
|
14
|
-
tabs: HTMLDivElement;
|
|
15
|
-
underline: HTMLDivElement;
|
|
16
|
-
};
|
|
17
|
-
rootEl: HTMLDivElement;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (value: any) => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
-
tabs: HTMLDivElement;
|
|
26
|
-
underline: HTMLDivElement;
|
|
27
|
-
}, HTMLDivElement>;
|
|
28
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
-
export default _default;
|
|
30
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
-
new (): {
|
|
32
|
-
$slots: S;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|