@db-ux/v-core-components 2.0.0-0-custom-select-16b8cce → 2.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/dist/components/accordion/accordion.vue.d.ts +33 -8
- package/dist/components/accordion/model.d.ts +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +40 -8
- package/dist/components/accordion-item/model.d.ts +5 -5
- package/dist/components/badge/badge.vue.d.ts +30 -8
- package/dist/components/badge/model.d.ts +2 -2
- package/dist/components/brand/brand.vue.d.ts +27 -6
- package/dist/components/button/button.vue.d.ts +54 -15
- package/dist/components/button/model.d.ts +11 -7
- package/dist/components/card/card.vue.d.ts +30 -9
- package/dist/components/checkbox/checkbox.vue.d.ts +83 -20
- package/dist/components/checkbox/model.d.ts +3 -3
- package/dist/components/custom-select/custom-select.vue.d.ts +221 -22
- package/dist/components/custom-select/model.d.ts +49 -29
- package/dist/components/custom-select-dropdown/custom-select-dropdown.vue.d.ts +20 -5
- package/dist/components/custom-select-form-field/custom-select-form-field.vue.d.ts +18 -4
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +20 -4
- package/dist/components/custom-select-list-item/custom-select-list-item.vue.d.ts +53 -12
- package/dist/components/divider/divider.vue.d.ts +3 -3
- package/dist/components/drawer/drawer.vue.d.ts +47 -13
- package/dist/components/drawer/model.d.ts +2 -2
- package/dist/components/header/header.vue.d.ts +57 -13
- package/dist/components/header/model.d.ts +2 -2
- package/dist/components/icon/icon.vue.d.ts +25 -7
- package/dist/components/infotext/infotext.vue.d.ts +28 -8
- package/dist/components/input/input.vue.d.ts +131 -33
- package/dist/components/input/model.d.ts +3 -3
- package/dist/components/link/link.vue.d.ts +48 -14
- package/dist/components/navigation/navigation.vue.d.ts +21 -4
- package/dist/components/navigation-item/model.d.ts +6 -3
- package/dist/components/navigation-item/navigation-item.vue.d.ts +76 -12
- package/dist/components/notification/model.d.ts +3 -3
- package/dist/components/notification/notification.vue.d.ts +58 -17
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/page/page.vue.d.ts +32 -9
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/popover/popover.vue.d.ts +40 -13
- package/dist/components/radio/radio.vue.d.ts +56 -17
- package/dist/components/section/section.vue.d.ts +24 -6
- package/dist/components/select/model.d.ts +2 -2
- package/dist/components/select/select.vue.d.ts +106 -24
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/stack/stack.vue.d.ts +31 -10
- package/dist/components/switch/model.d.ts +2 -2
- package/dist/components/switch/switch.vue.d.ts +67 -21
- package/dist/components/tab-item/model.d.ts +6 -6
- package/dist/components/tab-item/tab-item.vue.d.ts +52 -14
- package/dist/components/tab-list/tab-list.vue.d.ts +20 -4
- package/dist/components/tab-panel/tab-panel.vue.d.ts +20 -4
- package/dist/components/tabs/model.d.ts +11 -3
- package/dist/components/tabs/tabs.vue.d.ts +60 -15
- package/dist/components/tag/model.d.ts +9 -5
- package/dist/components/tag/tag.vue.d.ts +49 -15
- package/dist/components/textarea/model.d.ts +4 -4
- package/dist/components/textarea/textarea.vue.d.ts +24 -23
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +37 -11
- package/dist/db-ux.es.js +1969 -1812
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +56 -31
- package/dist/utils/document-click-listener.d.ts +8 -0
- package/dist/utils/index.d.ts +5 -28
- package/package.json +8 -7
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
import { DBStackProps } from "./model";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { cls, getBooleanAsString } from "../../utils";
|
|
3
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
4
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
}>;
|
|
9
|
+
declare const __VLS_self: import("vue").DefineComponent<DBStackProps, {
|
|
10
|
+
cls: typeof cls;
|
|
11
|
+
getBooleanAsString: typeof getBooleanAsString;
|
|
12
|
+
_ref: typeof _ref;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBStackProps> & Readonly<{}>, {
|
|
14
|
+
variant: import("./model").StackVariantType;
|
|
4
15
|
children: any;
|
|
5
16
|
className: string;
|
|
6
17
|
id: string;
|
|
7
|
-
direction: "
|
|
8
|
-
wrap: boolean;
|
|
9
|
-
gap: "
|
|
10
|
-
alignment: "
|
|
11
|
-
justifyContent: "
|
|
12
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
direction: import("./model").StackDirectionType;
|
|
19
|
+
wrap: boolean | string;
|
|
20
|
+
gap: import("../..").GapSpacingType;
|
|
21
|
+
alignment: import("./model").StackAlignmentType;
|
|
22
|
+
justifyContent: import("./model").StackJustifyContentType;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<DBStackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBStackProps> & Readonly<{}>, {
|
|
25
|
+
variant: import("./model").StackVariantType;
|
|
26
|
+
children: any;
|
|
27
|
+
className: string;
|
|
28
|
+
id: string;
|
|
29
|
+
direction: import("./model").StackDirectionType;
|
|
30
|
+
wrap: boolean | string;
|
|
31
|
+
gap: import("../..").GapSpacingType;
|
|
32
|
+
alignment: import("./model").StackAlignmentType;
|
|
33
|
+
justifyContent: import("./model").StackJustifyContentType;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
36
|
export default _default;
|
|
16
37
|
type __VLS_WithSlots<T, S> = T & {
|
|
17
38
|
new (): {
|
|
@@ -3,10 +3,10 @@ export type DBSwitchDefaultProps = {
|
|
|
3
3
|
/**
|
|
4
4
|
* Add additional icons to indicate active/inactive state.
|
|
5
5
|
*/
|
|
6
|
-
visualAid?: boolean;
|
|
6
|
+
visualAid?: boolean | string;
|
|
7
7
|
};
|
|
8
8
|
export type DBSwitchProps = DBSwitchDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & EmphasisProps & SizeProps & IconProps & IconAfterProps;
|
|
9
9
|
export type DBSwitchDefaultState = {
|
|
10
|
-
_checked
|
|
10
|
+
_checked?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState;
|
|
@@ -1,35 +1,81 @@
|
|
|
1
|
-
import { DBSwitchProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import { DBSwitchProps, DBSwitchState } from "./model";
|
|
2
|
+
import { cls, getBoolean, getBooleanAsString, getHideProp } from "../../utils";
|
|
3
|
+
import { ChangeEvent, InteractionEvent } from "../../shared/model";
|
|
4
|
+
declare const _id: import("vue").Ref<string | undefined, string | undefined>;
|
|
5
|
+
declare const _checked: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
6
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
7
|
+
declare function handleChange(event: ChangeEvent<HTMLInputElement>): ReturnType<DBSwitchState["handleChange"]>;
|
|
8
|
+
declare function handleBlur(event: InteractionEvent<HTMLInputElement>): ReturnType<DBSwitchState["handleBlur"]>;
|
|
9
|
+
declare function handleFocus(event: InteractionEvent<HTMLInputElement>): ReturnType<DBSwitchState["handleFocus"]>;
|
|
10
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
11
|
+
declare var __VLS_1: {};
|
|
12
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
13
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
|
+
}>;
|
|
15
|
+
declare const __VLS_self: import("vue").DefineComponent<DBSwitchProps, {
|
|
16
|
+
cls: typeof cls;
|
|
17
|
+
getBoolean: typeof getBoolean;
|
|
18
|
+
getBooleanAsString: typeof getBooleanAsString;
|
|
19
|
+
getHideProp: typeof getHideProp;
|
|
20
|
+
_id: typeof _id;
|
|
21
|
+
_checked: typeof _checked;
|
|
22
|
+
_ref: typeof _ref;
|
|
23
|
+
handleChange: typeof handleChange;
|
|
24
|
+
handleBlur: typeof handleBlur;
|
|
25
|
+
handleFocus: typeof handleFocus;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
27
|
"update:checked": (...args: any[]) => void;
|
|
4
28
|
}, string, import("vue").PublicProps, Readonly<DBSwitchProps> & Readonly<{
|
|
5
29
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
6
30
|
}>, {
|
|
7
31
|
name: string;
|
|
8
32
|
label: string;
|
|
9
|
-
disabled: boolean;
|
|
33
|
+
disabled: boolean | string;
|
|
10
34
|
value: any;
|
|
11
35
|
children: any;
|
|
12
36
|
className: string;
|
|
13
37
|
describedbyid: string;
|
|
14
38
|
id: string;
|
|
15
|
-
icon: import("@db-ux/core-foundations").
|
|
16
|
-
size: "
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
}
|
|
39
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
40
|
+
size: import("../../shared/model").SizeType;
|
|
41
|
+
onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
42
|
+
onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
43
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
44
|
+
emphasis: import("../../shared/model").EmphasisType;
|
|
45
|
+
validation: import("../../shared/model").ValidationType;
|
|
46
|
+
required: boolean | string;
|
|
47
|
+
showLabel: boolean | string;
|
|
48
|
+
checked: boolean | string;
|
|
49
|
+
iconAfter: import("@db-ux/core-foundations").IconTypes;
|
|
50
|
+
visualAid: boolean | string;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const __VLS_component: import("vue").DefineComponent<DBSwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
"update:checked": (...args: any[]) => void;
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<DBSwitchProps> & Readonly<{
|
|
55
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
name: string;
|
|
58
|
+
label: string;
|
|
59
|
+
disabled: boolean | string;
|
|
60
|
+
value: any;
|
|
61
|
+
children: any;
|
|
62
|
+
className: string;
|
|
63
|
+
describedbyid: string;
|
|
64
|
+
id: string;
|
|
65
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
66
|
+
size: import("../../shared/model").SizeType;
|
|
67
|
+
onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
68
|
+
onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
69
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
70
|
+
emphasis: import("../../shared/model").EmphasisType;
|
|
71
|
+
validation: import("../../shared/model").ValidationType;
|
|
72
|
+
required: boolean | string;
|
|
73
|
+
showLabel: boolean | string;
|
|
74
|
+
checked: boolean | string;
|
|
75
|
+
iconAfter: import("@db-ux/core-foundations").IconTypes;
|
|
76
|
+
visualAid: boolean | string;
|
|
77
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
78
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
33
79
|
export default _default;
|
|
34
80
|
type __VLS_WithSlots<T, S> = T & {
|
|
35
81
|
new (): {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ActiveProps, AriaControlsProps, ChangeEventProps, ChangeEventState, GlobalProps, GlobalState, IconAfterProps, IconProps, InitializedState, ShowIconProps } from '../../shared/model';
|
|
1
|
+
import { ActiveProps, AriaControlsProps, ChangeEventProps, ChangeEventState, GlobalProps, GlobalState, IconAfterProps, IconProps, InitializedState, NameProps, NameState, ShowIconProps } from '../../shared/model';
|
|
2
2
|
export type DBTabItemDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* To control the component
|
|
5
5
|
*/
|
|
6
|
-
checked?: boolean;
|
|
6
|
+
checked?: boolean | string;
|
|
7
7
|
/**
|
|
8
8
|
* The disabled attribute can be set to keep a user from clicking on the tab-item.
|
|
9
9
|
*/
|
|
10
|
-
disabled?: boolean;
|
|
10
|
+
disabled?: boolean | string;
|
|
11
11
|
/**
|
|
12
12
|
* The label of the tab-item, if you don't want to use children.
|
|
13
13
|
*/
|
|
@@ -15,10 +15,10 @@ export type DBTabItemDefaultProps = {
|
|
|
15
15
|
/**
|
|
16
16
|
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
17
17
|
*/
|
|
18
|
-
noText?: boolean;
|
|
18
|
+
noText?: boolean | string;
|
|
19
19
|
};
|
|
20
|
-
export type DBTabItemProps = GlobalProps & DBTabItemDefaultProps & IconProps & IconAfterProps & ActiveProps & AriaControlsProps & ChangeEventProps<HTMLInputElement> & ShowIconProps;
|
|
20
|
+
export type DBTabItemProps = GlobalProps & DBTabItemDefaultProps & IconProps & IconAfterProps & ActiveProps & AriaControlsProps & ChangeEventProps<HTMLInputElement> & ShowIconProps & NameProps;
|
|
21
21
|
export type DBTabItemDefaultState = {
|
|
22
22
|
_selected: boolean;
|
|
23
23
|
};
|
|
24
|
-
export type DBTabItemState = DBTabItemDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & InitializedState;
|
|
24
|
+
export type DBTabItemState = DBTabItemDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & InitializedState & NameState;
|
|
@@ -1,26 +1,64 @@
|
|
|
1
|
-
import type { DBTabItemProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import type { DBTabItemProps, DBTabItemState } from "./model";
|
|
2
|
+
import { cls, getBoolean, getBooleanAsString, getHideProp } from "../../utils";
|
|
3
|
+
declare const _selected: import("vue").Ref<boolean, boolean>;
|
|
4
|
+
declare const _name: import("vue").Ref<string | undefined, string | undefined>;
|
|
5
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
6
|
+
declare function handleChange(event: any): ReturnType<DBTabItemState["handleChange"]>;
|
|
7
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
}>;
|
|
12
|
+
declare const __VLS_self: import("vue").DefineComponent<DBTabItemProps, {
|
|
13
|
+
cls: typeof cls;
|
|
14
|
+
getBoolean: typeof getBoolean;
|
|
15
|
+
getBooleanAsString: typeof getBooleanAsString;
|
|
16
|
+
getHideProp: typeof getHideProp;
|
|
17
|
+
_selected: typeof _selected;
|
|
18
|
+
_name: typeof _name;
|
|
19
|
+
_ref: typeof _ref;
|
|
20
|
+
handleChange: typeof handleChange;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
22
|
"update:checked": (...args: any[]) => void;
|
|
4
23
|
}, string, import("vue").PublicProps, Readonly<DBTabItemProps> & Readonly<{
|
|
5
24
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
6
25
|
}>, {
|
|
26
|
+
name: string;
|
|
7
27
|
label: string;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
noText: boolean;
|
|
28
|
+
disabled: boolean | string;
|
|
29
|
+
noText: boolean | string;
|
|
10
30
|
children: any;
|
|
11
31
|
className: string;
|
|
12
32
|
id: string;
|
|
13
|
-
icon: import("@db-ux/core-foundations").
|
|
14
|
-
showIcon: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
active: boolean;
|
|
33
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
34
|
+
showIcon: boolean | string;
|
|
35
|
+
onChange: (event: import("../..").ChangeEvent<HTMLInputElement>) => void;
|
|
36
|
+
checked: boolean | string;
|
|
37
|
+
iconAfter: import("@db-ux/core-foundations").IconTypes;
|
|
38
|
+
active: boolean | string;
|
|
20
39
|
controls: string;
|
|
21
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
22
|
-
|
|
23
|
-
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const __VLS_component: import("vue").DefineComponent<DBTabItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
+
"update:checked": (...args: any[]) => void;
|
|
43
|
+
}, string, import("vue").PublicProps, Readonly<DBTabItemProps> & Readonly<{
|
|
44
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
name: string;
|
|
47
|
+
label: string;
|
|
48
|
+
disabled: boolean | string;
|
|
49
|
+
noText: boolean | string;
|
|
50
|
+
children: any;
|
|
51
|
+
className: string;
|
|
52
|
+
id: string;
|
|
53
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
54
|
+
showIcon: boolean | string;
|
|
55
|
+
onChange: (event: import("../..").ChangeEvent<HTMLInputElement>) => void;
|
|
56
|
+
checked: boolean | string;
|
|
57
|
+
iconAfter: import("@db-ux/core-foundations").IconTypes;
|
|
58
|
+
active: boolean | string;
|
|
59
|
+
controls: string;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
61
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
62
|
export default _default;
|
|
25
63
|
type __VLS_WithSlots<T, S> = T & {
|
|
26
64
|
new (): {
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { cls } from "../../utils";
|
|
2
|
+
declare const _id: import("vue").Ref<string | undefined, string | undefined>;
|
|
3
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
4
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
}>;
|
|
9
|
+
declare const __VLS_self: import("vue").DefineComponent<import("../..").GlobalProps, {
|
|
10
|
+
cls: typeof cls;
|
|
11
|
+
_id: typeof _id;
|
|
12
|
+
_ref: typeof _ref;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../..").GlobalProps> & Readonly<{}>, {
|
|
2
14
|
children: any;
|
|
3
15
|
className: string;
|
|
4
16
|
id: string;
|
|
5
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
6
|
-
|
|
7
|
-
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<import("../..").GlobalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../..").GlobalProps> & Readonly<{}>, {
|
|
19
|
+
children: any;
|
|
20
|
+
className: string;
|
|
21
|
+
id: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
24
|
export default _default;
|
|
9
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
10
26
|
new (): {
|
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
import { DBTabPanelProps } from "./model";
|
|
2
|
-
|
|
2
|
+
import { cls } from "../../utils";
|
|
3
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
4
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
}>;
|
|
9
|
+
declare const __VLS_self: import("vue").DefineComponent<DBTabPanelProps, {
|
|
10
|
+
cls: typeof cls;
|
|
11
|
+
_ref: typeof _ref;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTabPanelProps> & Readonly<{}>, {
|
|
3
13
|
children: any;
|
|
4
14
|
className: string;
|
|
5
15
|
id: string;
|
|
6
16
|
content: string;
|
|
7
17
|
labelledBy: string;
|
|
8
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<DBTabPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTabPanelProps> & Readonly<{}>, {
|
|
20
|
+
children: any;
|
|
21
|
+
className: string;
|
|
22
|
+
id: string;
|
|
23
|
+
content: string;
|
|
24
|
+
labelledBy: string;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
27
|
export default _default;
|
|
12
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
13
29
|
new (): {
|
|
@@ -10,7 +10,7 @@ export type DBTabsDefaultProps = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Change amount of distance if you click on an arrow, only available with behavior="arrows"
|
|
12
12
|
*/
|
|
13
|
-
arrowScrollDistance?: number;
|
|
13
|
+
arrowScrollDistance?: number | string;
|
|
14
14
|
/**
|
|
15
15
|
* Show a scrollbar or buttons with arrows to navigate for horizontal tabs with overflow visible
|
|
16
16
|
*/
|
|
@@ -18,7 +18,7 @@ export type DBTabsDefaultProps = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Default behavior is auto selecting the first tab, change selected tab by index
|
|
20
20
|
*/
|
|
21
|
-
initialSelectedIndex?: number;
|
|
21
|
+
initialSelectedIndex?: number | string;
|
|
22
22
|
/**
|
|
23
23
|
* Default behavior is auto selecting the first tab, disable it with 'manually'
|
|
24
24
|
*/
|
|
@@ -35,6 +35,14 @@ export type DBTabsDefaultProps = {
|
|
|
35
35
|
* Informs the user if another tab has been selected.
|
|
36
36
|
*/
|
|
37
37
|
onTabSelect?: (event?: Event) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Informs the user if the current tab index has changed.
|
|
40
|
+
*/
|
|
41
|
+
indexChange?: (index?: number) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Informs the user if another tab has been selected.
|
|
44
|
+
*/
|
|
45
|
+
tabSelect?: (event?: Event) => void;
|
|
38
46
|
/**
|
|
39
47
|
* Provide simple tabs with label + text as content
|
|
40
48
|
*/
|
|
@@ -48,7 +56,7 @@ export type DBTabsDefaultState = {
|
|
|
48
56
|
showScrollLeft?: boolean;
|
|
49
57
|
showScrollRight?: boolean;
|
|
50
58
|
evaluateScrollButtons: (tabList: Element) => void;
|
|
51
|
-
convertTabs: (
|
|
59
|
+
convertTabs: () => DBSimpleTabProps[];
|
|
52
60
|
initTabList: () => void;
|
|
53
61
|
initTabs: (init?: boolean) => void;
|
|
54
62
|
handleChange: (event: any) => void;
|
|
@@ -1,22 +1,67 @@
|
|
|
1
|
-
import { DBSimpleTabProps, DBTabsProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import { DBSimpleTabProps, DBTabsProps, DBTabsState } from "./model";
|
|
2
|
+
import { cls } from "../../utils";
|
|
3
|
+
import DBButton from "../button/button.vue";
|
|
4
|
+
import DBTabList from "../tab-list/tab-list.vue";
|
|
5
|
+
import DBTabItem from "../tab-item/tab-item.vue";
|
|
6
|
+
import DBTabPanel from "../tab-panel/tab-panel.vue";
|
|
7
|
+
declare const _id: import("vue").Ref<string | undefined, string | undefined>;
|
|
8
|
+
declare const showScrollLeft: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
9
|
+
declare const showScrollRight: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
10
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
11
|
+
declare function convertTabs(): ReturnType<DBTabsState["convertTabs"]>;
|
|
12
|
+
declare function scroll(left?: boolean): ReturnType<DBTabsState["scroll"]>;
|
|
13
|
+
declare function handleChange(event: any): ReturnType<DBTabsState["handleChange"]>;
|
|
14
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
15
|
+
declare var __VLS_16: {};
|
|
16
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
17
|
+
default?: (props: typeof __VLS_16) => any;
|
|
18
|
+
}>;
|
|
19
|
+
declare const __VLS_self: import("vue").DefineComponent<DBTabsProps, {
|
|
20
|
+
cls: typeof cls;
|
|
21
|
+
DBButton: typeof DBButton;
|
|
22
|
+
DBTabList: typeof DBTabList;
|
|
23
|
+
DBTabItem: typeof DBTabItem;
|
|
24
|
+
DBTabPanel: typeof DBTabPanel;
|
|
25
|
+
_id: typeof _id;
|
|
26
|
+
showScrollLeft: typeof showScrollLeft;
|
|
27
|
+
showScrollRight: typeof showScrollRight;
|
|
28
|
+
_ref: typeof _ref;
|
|
29
|
+
convertTabs: typeof convertTabs;
|
|
30
|
+
scroll: typeof scroll;
|
|
31
|
+
handleChange: typeof handleChange;
|
|
32
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTabsProps> & Readonly<{}>, {
|
|
3
33
|
name: string;
|
|
4
34
|
children: any;
|
|
5
35
|
className: string;
|
|
6
36
|
id: string;
|
|
7
|
-
width: string;
|
|
8
|
-
behavior: "
|
|
9
|
-
arrowScrollDistance: number;
|
|
10
|
-
initialSelectedIndex: number;
|
|
11
|
-
initialSelectedMode: "
|
|
12
|
-
onIndexChange: (index?: number
|
|
13
|
-
onTabSelect: (event?: Event
|
|
14
|
-
tabs:
|
|
15
|
-
orientation: "
|
|
16
|
-
alignment: string;
|
|
17
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
width: import("../..").WidthType | string;
|
|
38
|
+
behavior: import("./model").TabsBehaviorType;
|
|
39
|
+
arrowScrollDistance: number | string;
|
|
40
|
+
initialSelectedIndex: number | string;
|
|
41
|
+
initialSelectedMode: import("./model").TabsInitialSelectedModeType;
|
|
42
|
+
onIndexChange: (index?: number) => void;
|
|
43
|
+
onTabSelect: (event?: Event) => void;
|
|
44
|
+
tabs: DBSimpleTabProps[] | string;
|
|
45
|
+
orientation: import("../..").OrientationType;
|
|
46
|
+
alignment: import("../..").AlignmentType | string;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
declare const __VLS_component: import("vue").DefineComponent<DBTabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTabsProps> & Readonly<{}>, {
|
|
49
|
+
name: string;
|
|
50
|
+
children: any;
|
|
51
|
+
className: string;
|
|
52
|
+
id: string;
|
|
53
|
+
width: import("../..").WidthType | string;
|
|
54
|
+
behavior: import("./model").TabsBehaviorType;
|
|
55
|
+
arrowScrollDistance: number | string;
|
|
56
|
+
initialSelectedIndex: number | string;
|
|
57
|
+
initialSelectedMode: import("./model").TabsInitialSelectedModeType;
|
|
58
|
+
onIndexChange: (index?: number) => void;
|
|
59
|
+
onTabSelect: (event?: Event) => void;
|
|
60
|
+
tabs: DBSimpleTabProps[] | string;
|
|
61
|
+
orientation: import("../..").OrientationType;
|
|
62
|
+
alignment: import("../..").AlignmentType | string;
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
65
|
export default _default;
|
|
21
66
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
67
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, ContentSlotProps, GlobalProps, GlobalState, IconProps, InitializedState, OverflowProps, SemanticProps, ShowIconProps,
|
|
1
|
+
import { ClickEvent, ContentSlotProps, GlobalProps, GlobalState, IconProps, InitializedState, OverflowProps, SemanticProps, ShowIconProps, EmphasisProps } from '../../shared/model';
|
|
2
2
|
export declare const TagBehaviorList: readonly ["static", "removable"];
|
|
3
3
|
export type TagBehaviorType = (typeof TagBehaviorList)[number];
|
|
4
4
|
export type DBTagDefaultProps = {
|
|
@@ -11,15 +11,19 @@ export type DBTagDefaultProps = {
|
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated Disable tag
|
|
13
13
|
*/
|
|
14
|
-
disabled?: boolean;
|
|
14
|
+
disabled?: boolean | string;
|
|
15
15
|
/**
|
|
16
16
|
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
17
17
|
*/
|
|
18
|
-
noText?: boolean;
|
|
18
|
+
noText?: boolean | string;
|
|
19
19
|
/**
|
|
20
20
|
* If "removeButton" attribute is set this function will be called when user clicks cancel button inside the tag.
|
|
21
21
|
*/
|
|
22
22
|
onRemove?: (event?: any) => void;
|
|
23
|
+
/**
|
|
24
|
+
* If "removeButton" attribute is set this function will be called when user clicks cancel button inside the tag.
|
|
25
|
+
*/
|
|
26
|
+
remove?: (event?: any) => void;
|
|
23
27
|
/**
|
|
24
28
|
* The removeButton attribute shows the cancel button.
|
|
25
29
|
*/
|
|
@@ -27,7 +31,7 @@ export type DBTagDefaultProps = {
|
|
|
27
31
|
/**
|
|
28
32
|
* Enable/Disable icon for checkbox/radio inside tag.
|
|
29
33
|
*/
|
|
30
|
-
showCheckState?: boolean;
|
|
34
|
+
showCheckState?: boolean | string;
|
|
31
35
|
/**
|
|
32
36
|
* Alternative for children to set content as property.
|
|
33
37
|
*/
|
|
@@ -37,7 +41,7 @@ export type DBTagDefaultProps = {
|
|
|
37
41
|
*/
|
|
38
42
|
value?: string;
|
|
39
43
|
};
|
|
40
|
-
export type DBTagProps = DBTagDefaultProps & GlobalProps & IconProps & SemanticProps & OverflowProps &
|
|
44
|
+
export type DBTagProps = DBTagDefaultProps & GlobalProps & IconProps & SemanticProps & OverflowProps & EmphasisProps & ShowIconProps & ContentSlotProps;
|
|
41
45
|
export type DBTagDefaultState = {
|
|
42
46
|
getRemoveButtonText: () => string;
|
|
43
47
|
handleRemove: (event?: ClickEvent<HTMLButtonElement>) => void;
|
|
@@ -1,24 +1,58 @@
|
|
|
1
|
-
import { DBTagProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import { DBTagProps, DBTagState } from "./model";
|
|
2
|
+
import { cls, getBooleanAsString, getHideProp } from "../../utils";
|
|
3
|
+
import { ClickEvent } from "../../shared/model";
|
|
4
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
5
|
+
declare function handleRemove(event?: ClickEvent<HTMLButtonElement>): ReturnType<DBTagState["handleRemove"]>;
|
|
6
|
+
declare function getRemoveButtonText(): ReturnType<DBTagState["getRemoveButtonText"]>;
|
|
7
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
9
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
10
|
+
content?: (props: typeof __VLS_1) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_3) => any;
|
|
13
|
+
}>;
|
|
14
|
+
declare const __VLS_self: import("vue").DefineComponent<DBTagProps, {
|
|
15
|
+
cls: typeof cls;
|
|
16
|
+
getBooleanAsString: typeof getBooleanAsString;
|
|
17
|
+
getHideProp: typeof getHideProp;
|
|
18
|
+
_ref: typeof _ref;
|
|
19
|
+
handleRemove: typeof handleRemove;
|
|
20
|
+
getRemoveButtonText: typeof getRemoveButtonText;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTagProps> & Readonly<{}>, {
|
|
3
22
|
text: string;
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
noText: boolean;
|
|
23
|
+
disabled: boolean | string;
|
|
24
|
+
noText: boolean | string;
|
|
6
25
|
children: any;
|
|
7
26
|
className: string;
|
|
8
27
|
id: string;
|
|
9
|
-
icon: import("@db-ux/core-foundations").
|
|
10
|
-
showIcon: boolean;
|
|
11
|
-
semantic: "
|
|
12
|
-
emphasis: "
|
|
13
|
-
behavior: string;
|
|
28
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
29
|
+
showIcon: boolean | string;
|
|
30
|
+
semantic: import("../../shared/model").SemanticType;
|
|
31
|
+
emphasis: import("../../shared/model").EmphasisType;
|
|
32
|
+
behavior: import("./model").TagBehaviorType | string;
|
|
14
33
|
onRemove: (event?: any) => void;
|
|
15
34
|
removeButton: string;
|
|
16
|
-
showCheckState: boolean;
|
|
17
|
-
overflow: boolean;
|
|
18
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
35
|
+
showCheckState: boolean | string;
|
|
36
|
+
overflow: boolean | string;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_component: import("vue").DefineComponent<DBTagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTagProps> & Readonly<{}>, {
|
|
39
|
+
text: string;
|
|
40
|
+
disabled: boolean | string;
|
|
41
|
+
noText: boolean | string;
|
|
42
|
+
children: any;
|
|
43
|
+
className: string;
|
|
44
|
+
id: string;
|
|
45
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
46
|
+
showIcon: boolean | string;
|
|
47
|
+
semantic: import("../../shared/model").SemanticType;
|
|
48
|
+
emphasis: import("../../shared/model").EmphasisType;
|
|
49
|
+
behavior: import("./model").TagBehaviorType | string;
|
|
50
|
+
onRemove: (event?: any) => void;
|
|
51
|
+
removeButton: string;
|
|
52
|
+
showCheckState: boolean | string;
|
|
53
|
+
overflow: boolean | string;
|
|
54
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
55
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
56
|
export default _default;
|
|
23
57
|
type __VLS_WithSlots<T, S> = T & {
|
|
24
58
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, GlobalProps, GlobalState, InputEventProps, InputEventState } from '../../shared/model';
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, InputEventProps, InputEventState } from '../../shared/model';
|
|
2
2
|
export declare const TextareaResizeList: readonly ["none", "both", "horizontal", "vertical"];
|
|
3
3
|
export type TextareaResizeType = (typeof TextareaResizeList)[number];
|
|
4
4
|
export declare const TextareaWrapList: readonly ["hard", "soft", "off"];
|
|
@@ -7,7 +7,7 @@ export type DBTextareaDefaultProps = {
|
|
|
7
7
|
/**
|
|
8
8
|
* The visible width of the text control, in average character widths. If it is specified, it must be a positive integer
|
|
9
9
|
*/
|
|
10
|
-
cols?: number;
|
|
10
|
+
cols?: number | string;
|
|
11
11
|
/**
|
|
12
12
|
* In most browsers, textareas are resizable — you'll notice the drag handle in the right-hand corner, you can control it with this
|
|
13
13
|
*/
|
|
@@ -15,7 +15,7 @@ export type DBTextareaDefaultProps = {
|
|
|
15
15
|
/**
|
|
16
16
|
* The number of visible text lines for the control. If it is specified, it must be a positive integer
|
|
17
17
|
*/
|
|
18
|
-
rows?: number;
|
|
18
|
+
rows?: number | string;
|
|
19
19
|
/**
|
|
20
20
|
* Specifies whether the textarea is subject to spell checking by the underlying browser/OS
|
|
21
21
|
*/
|
|
@@ -27,4 +27,4 @@ export type DBTextareaDefaultProps = {
|
|
|
27
27
|
};
|
|
28
28
|
export type DBTextareaProps = DBTextareaDefaultProps & ChangeEventProps<HTMLTextAreaElement> & InputEventProps<HTMLTextAreaElement> & FocusEventProps<HTMLTextAreaElement> & FormProps & GlobalProps & FormTextProps & FormMessageProps;
|
|
29
29
|
export type DBTextareaDefaultState = {};
|
|
30
|
-
export type DBTextareaState = DBTextareaDefaultState & ChangeEventState<HTMLTextAreaElement> & InputEventState<HTMLTextAreaElement> & FocusEventState<HTMLTextAreaElement> & FormState & GlobalState;
|
|
30
|
+
export type DBTextareaState = DBTextareaDefaultState & ChangeEventState<HTMLTextAreaElement> & InputEventState<HTMLTextAreaElement> & FocusEventState<HTMLTextAreaElement> & FormState & GlobalState & FromValidState;
|