vuiii 1.0.0-beta.71 → 1.0.0-beta.73
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/dist/{arrow-narrow-down-D7TTg_Sg.js → arrow-narrow-down-DjY9LioV.js} +1 -1
- package/dist/{arrow-narrow-left-DtYskF4u.js → arrow-narrow-left-D7eMhX7e.js} +1 -1
- package/dist/{arrow-narrow-right-BJQhmnn_.js → arrow-narrow-right-CSfW2plS.js} +1 -1
- package/dist/{arrow-narrow-up-CQrQ9M4D.js → arrow-narrow-up-B8BXRnWa.js} +1 -1
- package/dist/{arrow-up-tray-CiOLkzou.js → arrow-up-tray-B4vcRgwx.js} +1 -1
- package/dist/{caret-sort-C5vFjl8V.js → caret-sort-CQGMgNuY.js} +1 -1
- package/dist/{check-fIjMng7B.js → check-C4zdKExM.js} +1 -1
- package/dist/{chevron-down-Ba3vWwVv.js → chevron-down-CKjpyxTM.js} +1 -1
- package/dist/{chevron-left-C_3hZrgL.js → chevron-left-BzidL1Dd.js} +1 -1
- package/dist/{chevron-right-DDxObgsn.js → chevron-right-NrqwEvOt.js} +1 -1
- package/dist/{chevron-up-CQmsFtn5.js → chevron-up-Cte5OhZ7.js} +1 -1
- package/dist/components/Autocomplete.vue.d.ts +62 -0
- package/dist/components/Breadcrumbs.vue.d.ts +8 -0
- package/dist/components/Button.vue.d.ts +44 -0
- package/dist/components/ButtonGroup.vue.d.ts +17 -0
- package/dist/components/Checkbox.vue.d.ts +48 -0
- package/dist/components/CheckboxGroup.vue.d.ts +45 -0
- package/dist/components/Dropdown.vue.d.ts +55 -0
- package/dist/components/DropdownMenu.vue.d.ts +64 -0
- package/dist/components/FormFields.vue.d.ts +33 -0
- package/dist/components/FormGroup.vue.d.ts +33 -0
- package/dist/components/Icon.vue.d.ts +7 -0
- package/dist/components/IconButton.vue.d.ts +11 -0
- package/dist/components/Input.vue.d.ts +35 -0
- package/dist/components/InputWrapper.vue.d.ts +40 -0
- package/dist/components/RadioButtonGroup.vue.d.ts +21 -0
- package/dist/components/RadioGroup.vue.d.ts +56 -0
- package/dist/components/Select.vue.d.ts +46 -0
- package/dist/components/Table.vue.d.ts +81 -0
- package/dist/components/Textarea.vue.d.ts +33 -0
- package/dist/components/dialogStack/DialogLayout.vue.d.ts +42 -0
- package/dist/components/dialogStack/DialogStack.vue.d.ts +2 -0
- package/dist/components/snackbar/SnackbarStack.vue.d.ts +2 -0
- package/dist/components/transitions/FadeTransition.vue.d.ts +22 -0
- package/dist/composables/useAttrsWithoutClass.d.ts +3 -0
- package/dist/composables/useCursor.d.ts +11 -0
- package/dist/composables/useFilteredProps.d.ts +3 -0
- package/dist/composables/useLoadData.d.ts +38 -0
- package/dist/composables/useLoadPaginatedData.d.ts +16 -0
- package/dist/composables/useOnClickOutside.d.ts +2 -0
- package/dist/composables/useOnFocusOutside.d.ts +2 -0
- package/dist/composables/useOnKeyPress.d.ts +1 -0
- package/dist/composables/usePopper.d.ts +5 -0
- package/dist/composables/useRouteQuery.d.ts +20 -0
- package/dist/composables/useSubmitAction.d.ts +46 -0
- package/dist/composables/useValidation.d.ts +10 -0
- package/dist/dialogStack.d.ts +442 -0
- package/dist/{exclamation-C6mSrM_E.js → exclamation-iETaN6ps.js} +1 -1
- package/dist/{index-DmsS8oJ5.js → index-DfjABSiV.js} +817 -835
- package/dist/index.d.ts +41 -0
- package/dist/{mail-DrRAX7M1.js → mail-bOL2LGlu.js} +1 -1
- package/dist/{minus-Des-0JUa.js → minus-4Vhq_q6k.js} +1 -1
- package/dist/{pencil-DJcpXseh.js → pencil-CezqoD59.js} +1 -1
- package/dist/{plus-LLjGl5U3.js → plus-1eOX1D_D.js} +1 -1
- package/dist/{search-DvPkCGBS.js → search-D2Ae1rjX.js} +1 -1
- package/dist/snackbar.d.ts +24 -0
- package/dist/{spinner-BxAMlAIZ.js → spinner-n6aKvWCE.js} +1 -1
- package/dist/stories/assets/iconSizes.d.ts +2 -0
- package/dist/stories/assets/icons.d.ts +1 -0
- package/dist/stories/assets/inputSizes.d.ts +2 -0
- package/dist/stories/assets/options.d.ts +12 -0
- package/dist/stories/assets/tableItems.d.ts +8 -0
- package/dist/{trash-B7VQazD_.js → trash-CpUw_JOD.js} +1 -1
- package/dist/{triangle-down-BR_1dv1e.js → triangle-down-txokMSPH.js} +1 -1
- package/dist/{triangle-left-C2WtINFd.js → triangle-left-C8yQI6CT.js} +1 -1
- package/dist/{triangle-right-D5HL9gAQ.js → triangle-right-Y2Zz-X68.js} +1 -1
- package/dist/{triangle-up-BE_espQu.js → triangle-up-Bf0ef138.js} +1 -1
- package/dist/types.d.ts +102 -0
- package/dist/utils/createTypeParser.d.ts +2 -0
- package/dist/utils/generateId.d.ts +1 -0
- package/dist/utils/iconsResolver.d.ts +5 -0
- package/dist/utils/normalizeOptions.d.ts +34 -0
- package/dist/utils/retrieveInputValue.d.ts +1 -0
- package/dist/utils/transformInputAttrs.d.ts +5 -0
- package/dist/validations/validator.d.ts +2 -0
- package/dist/vuiii.css +1 -1
- package/dist/vuiii.js +1 -1
- package/dist/{x-BCDZi2yn.js → x-UNFKueVO.js} +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { InputWrapperProps, InputWrapperSlots } from './InputWrapper.vue';
|
|
2
|
+
import { Extractor, Option } from '../types';
|
|
3
|
+
export type AutocompleteFilterFn<T = any> = (option: Option<T>, query: string) => boolean;
|
|
4
|
+
export type AutocompleteRef = {
|
|
5
|
+
inputElement: HTMLInputElement;
|
|
6
|
+
focus: () => void;
|
|
7
|
+
blur: () => void;
|
|
8
|
+
open: () => void;
|
|
9
|
+
close: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: <T = any>(__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<{
|
|
12
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
13
|
+
readonly onSelect?: ((option: Option<T>) => any) | undefined;
|
|
14
|
+
readonly "onPrefix-icon-click"?: (() => any) | undefined;
|
|
15
|
+
readonly "onSuffix-icon-click"?: (() => any) | undefined;
|
|
16
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onPrefix-icon-click" | "onSuffix-icon-click" | "onUpdate:modelValue"> & ({
|
|
18
|
+
modelValue?: string;
|
|
19
|
+
} & InputWrapperProps & {
|
|
20
|
+
options: T[] | Record<string, any>;
|
|
21
|
+
optionLabel?: Extractor;
|
|
22
|
+
optionValue?: Extractor;
|
|
23
|
+
optionDisabled?: Extractor;
|
|
24
|
+
optionDescription?: Extractor;
|
|
25
|
+
optionIcon?: Extractor;
|
|
26
|
+
groupLabel?: Extractor;
|
|
27
|
+
groupOptions?: Extractor;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
inputClass?: any;
|
|
31
|
+
filter?: AutocompleteFilterFn<T>;
|
|
32
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
33
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
34
|
+
inputElement: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
35
|
+
focus: () => void | undefined;
|
|
36
|
+
blur: () => void | undefined;
|
|
37
|
+
open: () => void;
|
|
38
|
+
close: () => void;
|
|
39
|
+
filter: (option: Option<T>, searchQuery: string) => boolean;
|
|
40
|
+
}>): void;
|
|
41
|
+
attrs: any;
|
|
42
|
+
slots: Readonly<InputWrapperSlots & {
|
|
43
|
+
option?: (props: {
|
|
44
|
+
option: Option<T>;
|
|
45
|
+
index: number;
|
|
46
|
+
isHighlighted: boolean;
|
|
47
|
+
}) => any;
|
|
48
|
+
}> & InputWrapperSlots & {
|
|
49
|
+
option?: (props: {
|
|
50
|
+
option: Option<T>;
|
|
51
|
+
index: number;
|
|
52
|
+
isHighlighted: boolean;
|
|
53
|
+
}) => any;
|
|
54
|
+
};
|
|
55
|
+
emit: (((evt: "select", option: Option<T>) => void) & ((evt: "prefix-icon-click") => void) & ((evt: "suffix-icon-click") => void)) & ((evt: "update:modelValue", value: string) => void);
|
|
56
|
+
}>) => import('vue').VNode & {
|
|
57
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_PrettifyLocal<T> = {
|
|
61
|
+
[K in keyof T]: T[K];
|
|
62
|
+
} & {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BreadcrumbItems } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
breadcrumbs: BreadcrumbItems;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
breadcrumbs: BreadcrumbItems;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
import { ButtonVariant, InputSize } from '../types';
|
|
3
|
+
export type NativeButtonProps = {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
type?: "button" | "submit" | "reset";
|
|
6
|
+
};
|
|
7
|
+
export type ButtonProps = NativeButtonProps & {
|
|
8
|
+
size?: InputSize;
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
prefixIcon?: string;
|
|
11
|
+
suffixIcon?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
block?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
outlined?: boolean;
|
|
16
|
+
pill?: boolean;
|
|
17
|
+
to?: RouteLocationRaw;
|
|
18
|
+
href?: string;
|
|
19
|
+
};
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: Readonly<{
|
|
23
|
+
prefix?: void | undefined;
|
|
24
|
+
default?: void | undefined;
|
|
25
|
+
suffix?: void | undefined;
|
|
26
|
+
}> & {
|
|
27
|
+
prefix?: void | undefined;
|
|
28
|
+
default?: void | undefined;
|
|
29
|
+
suffix?: void | undefined;
|
|
30
|
+
};
|
|
31
|
+
refs: {};
|
|
32
|
+
rootEl: any;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
+
declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
36
|
+
type: "button" | "submit" | "reset";
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { InputSize, ValueParser } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
} & {
|
|
5
|
+
required?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
switch?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
valueParser?: ValueParser<boolean>;
|
|
12
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: any) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
+
modelValue?: any;
|
|
16
|
+
} & {
|
|
17
|
+
required?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
switch?: boolean;
|
|
20
|
+
label?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
size?: InputSize;
|
|
23
|
+
valueParser?: ValueParser<boolean>;
|
|
24
|
+
}> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
size: InputSize;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
29
|
+
default?: void | undefined;
|
|
30
|
+
symbol?: (props: {
|
|
31
|
+
checked: boolean;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
size: InputSize;
|
|
34
|
+
}) => any;
|
|
35
|
+
}> & {
|
|
36
|
+
default?: void | undefined;
|
|
37
|
+
symbol?: (props: {
|
|
38
|
+
checked: boolean;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
size: InputSize;
|
|
41
|
+
}) => any;
|
|
42
|
+
}>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Extractor, ValueParser } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: any[] | any;
|
|
4
|
+
optionLabel?: Extractor;
|
|
5
|
+
optionValue?: Extractor;
|
|
6
|
+
optionDisabled?: Extractor;
|
|
7
|
+
optionDescription?: Extractor;
|
|
8
|
+
valueParser?: ValueParser;
|
|
9
|
+
type?: "string" | "number" | "boolean" | "date";
|
|
10
|
+
inline?: boolean;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = {
|
|
13
|
+
modelValue?: any[];
|
|
14
|
+
} & __VLS_Props;
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: Readonly<{
|
|
18
|
+
default?: void | undefined;
|
|
19
|
+
symbol?: (props: {
|
|
20
|
+
checked: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
}) => any;
|
|
23
|
+
}> & {
|
|
24
|
+
default?: void | undefined;
|
|
25
|
+
symbol?: (props: {
|
|
26
|
+
checked: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
}) => any;
|
|
29
|
+
};
|
|
30
|
+
refs: {};
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
"update:modelValue": (value: any[]) => any;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
37
|
+
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { ButtonVariant } from '../types';
|
|
3
|
+
export type DropdownProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
block?: boolean;
|
|
7
|
+
icon?: string;
|
|
8
|
+
};
|
|
9
|
+
export type DropdownRef = {
|
|
10
|
+
open: () => void;
|
|
11
|
+
close: () => void;
|
|
12
|
+
toggle: (state?: boolean) => void;
|
|
13
|
+
isOpen: ComputedRef<boolean>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: <Item extends any = any>(__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<{
|
|
16
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
17
|
+
readonly onClose?: (() => any) | undefined;
|
|
18
|
+
readonly onOpen?: (() => any) | undefined;
|
|
19
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClose" | "onOpen"> & DropdownProps & Partial<{}>> & import('vue').PublicProps;
|
|
20
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
21
|
+
open: () => void;
|
|
22
|
+
close: () => void;
|
|
23
|
+
toggle: (state?: boolean) => void;
|
|
24
|
+
isOpen: ComputedRef<boolean>;
|
|
25
|
+
}>): void;
|
|
26
|
+
attrs: any;
|
|
27
|
+
slots: Readonly<{
|
|
28
|
+
default?: (props: {
|
|
29
|
+
close: () => void;
|
|
30
|
+
}) => any;
|
|
31
|
+
trigger?: (props: {
|
|
32
|
+
open: () => void;
|
|
33
|
+
close: () => void;
|
|
34
|
+
toggle: (state?: boolean) => void;
|
|
35
|
+
isOpen: boolean;
|
|
36
|
+
}) => any;
|
|
37
|
+
}> & {
|
|
38
|
+
default?: (props: {
|
|
39
|
+
close: () => void;
|
|
40
|
+
}) => any;
|
|
41
|
+
trigger?: (props: {
|
|
42
|
+
open: () => void;
|
|
43
|
+
close: () => void;
|
|
44
|
+
toggle: (state?: boolean) => void;
|
|
45
|
+
isOpen: boolean;
|
|
46
|
+
}) => any;
|
|
47
|
+
};
|
|
48
|
+
emit: ((evt: "close") => void) & ((evt: "open") => void);
|
|
49
|
+
}>) => import('vue').VNode & {
|
|
50
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_PrettifyLocal<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: <Item extends any = any>(__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<{
|
|
2
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
3
|
+
readonly onItemClick?: ((args_0: {
|
|
4
|
+
item: Item;
|
|
5
|
+
index: number;
|
|
6
|
+
}) => any) | undefined;
|
|
7
|
+
readonly onItemMouseenter?: ((args_0: {
|
|
8
|
+
item: Item;
|
|
9
|
+
index: number;
|
|
10
|
+
}) => any) | undefined;
|
|
11
|
+
readonly onItemMouseleave?: ((args_0: {
|
|
12
|
+
item: Item;
|
|
13
|
+
index: number;
|
|
14
|
+
}) => any) | undefined;
|
|
15
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onItemClick" | "onItemMouseenter" | "onItemMouseleave"> & {
|
|
16
|
+
items?: Item[];
|
|
17
|
+
cursorIndex?: number;
|
|
18
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
19
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
20
|
+
attrs: any;
|
|
21
|
+
slots: Readonly<{
|
|
22
|
+
item?: (props: {
|
|
23
|
+
item: Item;
|
|
24
|
+
index: number;
|
|
25
|
+
} & {
|
|
26
|
+
cursorIndex?: number;
|
|
27
|
+
}) => any;
|
|
28
|
+
itemLabel?: (props: {
|
|
29
|
+
item: Item;
|
|
30
|
+
index: number;
|
|
31
|
+
} & {
|
|
32
|
+
cursorIndex?: number;
|
|
33
|
+
}) => any;
|
|
34
|
+
}> & {
|
|
35
|
+
item?: (props: {
|
|
36
|
+
item: Item;
|
|
37
|
+
index: number;
|
|
38
|
+
} & {
|
|
39
|
+
cursorIndex?: number;
|
|
40
|
+
}) => any;
|
|
41
|
+
itemLabel?: (props: {
|
|
42
|
+
item: Item;
|
|
43
|
+
index: number;
|
|
44
|
+
} & {
|
|
45
|
+
cursorIndex?: number;
|
|
46
|
+
}) => any;
|
|
47
|
+
};
|
|
48
|
+
emit: ((evt: "itemClick", args_0: {
|
|
49
|
+
item: Item;
|
|
50
|
+
index: number;
|
|
51
|
+
}) => void) & ((evt: "itemMouseenter", args_0: {
|
|
52
|
+
item: Item;
|
|
53
|
+
index: number;
|
|
54
|
+
}) => void) & ((evt: "itemMouseleave", args_0: {
|
|
55
|
+
item: Item;
|
|
56
|
+
index: number;
|
|
57
|
+
}) => void);
|
|
58
|
+
}>) => import('vue').VNode & {
|
|
59
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
60
|
+
};
|
|
61
|
+
export default _default;
|
|
62
|
+
type __VLS_PrettifyLocal<T> = {
|
|
63
|
+
[K in keyof T]: T[K];
|
|
64
|
+
} & {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FormField, ObjectKeyOrAnyString, ValidationFieldResults } from '../types';
|
|
2
|
+
declare const _default: <Data extends {}>(__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<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:model-value"?: ((value: any) => any) | undefined;
|
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value"> & {
|
|
6
|
+
fields: FormField<Data>[];
|
|
7
|
+
modelValue: any;
|
|
8
|
+
validationResults?: Partial<Record<ObjectKeyOrAnyString<Data>, ValidationFieldResults>>;
|
|
9
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
10
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: Partial<Record<`field:${string}`, (_: {
|
|
13
|
+
index: number;
|
|
14
|
+
value: unknown;
|
|
15
|
+
required: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
invalid: boolean | undefined;
|
|
18
|
+
errorMessage: string | undefined;
|
|
19
|
+
name: ObjectKeyOrAnyString<Data>;
|
|
20
|
+
label?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
hint?: string;
|
|
23
|
+
component: string | import('vue').Component | import('vue').AsyncComponentLoader;
|
|
24
|
+
props?: Record<string, unknown>;
|
|
25
|
+
}) => any>>;
|
|
26
|
+
emit: (evt: "update:model-value", value: any) => void;
|
|
27
|
+
}>) => import('vue').VNode & {
|
|
28
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
for?: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
error?: string | boolean;
|
|
6
|
+
description?: string;
|
|
7
|
+
hint?: string;
|
|
8
|
+
};
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
default?: void | undefined;
|
|
13
|
+
label?: void | undefined;
|
|
14
|
+
description?: void | undefined;
|
|
15
|
+
hint?: void | undefined;
|
|
16
|
+
}> & {
|
|
17
|
+
default?: void | undefined;
|
|
18
|
+
label?: void | undefined;
|
|
19
|
+
description?: void | undefined;
|
|
20
|
+
hint?: void | undefined;
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IconSize } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
name: string;
|
|
4
|
+
size?: IconSize;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonProps } from './Button.vue';
|
|
2
|
+
export type IconButtonProps = Omit<ButtonProps, "prefixIcon" | "suffixIcon" | "label" | "block"> & {
|
|
3
|
+
icon: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<IconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
click: (args_0: Event) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<IconButtonProps> & Readonly<{
|
|
9
|
+
onClick?: ((args_0: Event) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { InputWrapperProps, InputWrapperSlots } from './InputWrapper.vue';
|
|
2
|
+
export type InputRef = {
|
|
3
|
+
input: HTMLInputElement;
|
|
4
|
+
focus: () => void;
|
|
5
|
+
select: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
8
|
+
modelValue?: string | number | Date | null | undefined;
|
|
9
|
+
} & InputWrapperProps & {
|
|
10
|
+
inputClass?: any;
|
|
11
|
+
}, {
|
|
12
|
+
input: import('vue').Ref<any, any>;
|
|
13
|
+
focus: () => any;
|
|
14
|
+
select: () => any;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"prefix-icon-click": () => any;
|
|
17
|
+
"suffix-icon-click": () => any;
|
|
18
|
+
"update:modelValue": (value: string | number | Date | null | undefined) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
20
|
+
modelValue?: string | number | Date | null | undefined;
|
|
21
|
+
} & InputWrapperProps & {
|
|
22
|
+
inputClass?: any;
|
|
23
|
+
}> & Readonly<{
|
|
24
|
+
"onPrefix-icon-click"?: (() => any) | undefined;
|
|
25
|
+
"onSuffix-icon-click"?: (() => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string | number | Date | null | undefined) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
+
input: HTMLInputElement;
|
|
29
|
+
}, any>, Readonly<InputWrapperSlots> & InputWrapperSlots>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { InputSize } from '../types';
|
|
2
|
+
export type InputWrapperProps = {
|
|
3
|
+
prefixIcon?: string;
|
|
4
|
+
suffixIcon?: string;
|
|
5
|
+
size?: InputSize;
|
|
6
|
+
invalid?: boolean;
|
|
7
|
+
pill?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type InputWrapperEmits = {
|
|
10
|
+
"prefix-icon-click": [];
|
|
11
|
+
"suffix-icon-click": [];
|
|
12
|
+
};
|
|
13
|
+
export type InputWrapperSlots = {
|
|
14
|
+
default: void;
|
|
15
|
+
prefix?: void;
|
|
16
|
+
suffix?: void;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<InputWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
click: (event: MouseEvent) => any;
|
|
20
|
+
"prefix-icon-click": () => any;
|
|
21
|
+
"suffix-icon-click": () => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<InputWrapperProps> & Readonly<{
|
|
23
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
|
+
"onPrefix-icon-click"?: (() => any) | undefined;
|
|
25
|
+
"onSuffix-icon-click"?: (() => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
27
|
+
default: void;
|
|
28
|
+
prefix?: void | undefined;
|
|
29
|
+
suffix?: void | undefined;
|
|
30
|
+
}> & {
|
|
31
|
+
default: void;
|
|
32
|
+
prefix?: void | undefined;
|
|
33
|
+
suffix?: void | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Extractor, InputSize, ValueParser } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: any[] | any;
|
|
4
|
+
optionLabel?: Extractor;
|
|
5
|
+
optionValue?: Extractor;
|
|
6
|
+
optionDisabled?: Extractor;
|
|
7
|
+
optionIcon?: Extractor;
|
|
8
|
+
optionDescription?: Extractor;
|
|
9
|
+
valueParser?: ValueParser<string>;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
size?: InputSize;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = {
|
|
14
|
+
modelValue?: any;
|
|
15
|
+
} & __VLS_Props;
|
|
16
|
+
declare const _default: 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
|
+
export default _default;
|