@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,22 +1,86 @@
|
|
|
1
|
-
import { DBNavigationItemProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import { DBNavigationItemProps, DBNavigationItemState } from "./model";
|
|
2
|
+
import DBButton from "../button/button.vue";
|
|
3
|
+
import { cls, getBoolean, getBooleanAsString, getHideProp } from "../../utils";
|
|
4
|
+
import { NavigationItemSafeTriangle } from "../../utils/navigation";
|
|
5
|
+
import { DEFAULT_BACK } from "../../shared/constants";
|
|
6
|
+
import { ClickEvent } from "../../shared/model";
|
|
7
|
+
declare const hasAreaPopup: import("vue").Ref<boolean, boolean>;
|
|
8
|
+
declare const hasSubNavigation: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
9
|
+
declare const isSubNavigationExpanded: import("vue").Ref<boolean, boolean>;
|
|
10
|
+
declare const autoClose: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
11
|
+
declare const subNavigationId: import("vue").Ref<string, string>;
|
|
12
|
+
declare const navigationItemSafeTriangle: import("vue").Ref<{
|
|
13
|
+
enableFollow: () => void;
|
|
14
|
+
disableFollow: () => void;
|
|
15
|
+
followByMouseEvent: (event: MouseEvent) => void;
|
|
16
|
+
} | undefined, NavigationItemSafeTriangle | {
|
|
17
|
+
enableFollow: () => void;
|
|
18
|
+
disableFollow: () => void;
|
|
19
|
+
followByMouseEvent: (event: MouseEvent) => void;
|
|
20
|
+
} | undefined>;
|
|
21
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
22
|
+
declare function handleNavigationItemClick(event: unknown): ReturnType<DBNavigationItemState["handleNavigationItemClick"]>;
|
|
23
|
+
declare function handleClick(event: ClickEvent<HTMLButtonElement> | any): ReturnType<DBNavigationItemState["handleClick"]>;
|
|
24
|
+
declare function handleBackClick(event: ClickEvent<HTMLButtonElement> | any): ReturnType<DBNavigationItemState["handleBackClick"]>;
|
|
25
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
26
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_8: {};
|
|
27
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
28
|
+
default?: (props: typeof __VLS_1) => any;
|
|
29
|
+
} & {
|
|
30
|
+
default?: (props: typeof __VLS_3) => any;
|
|
31
|
+
} & {
|
|
32
|
+
'sub-navigation'?: (props: typeof __VLS_8) => any;
|
|
33
|
+
}>;
|
|
34
|
+
declare const __VLS_self: import("vue").DefineComponent<DBNavigationItemProps, {
|
|
35
|
+
DBButton: typeof DBButton;
|
|
36
|
+
cls: typeof cls;
|
|
37
|
+
getBoolean: typeof getBoolean;
|
|
38
|
+
getBooleanAsString: typeof getBooleanAsString;
|
|
39
|
+
getHideProp: typeof getHideProp;
|
|
40
|
+
DEFAULT_BACK: typeof DEFAULT_BACK;
|
|
41
|
+
hasAreaPopup: typeof hasAreaPopup;
|
|
42
|
+
hasSubNavigation: typeof hasSubNavigation;
|
|
43
|
+
isSubNavigationExpanded: typeof isSubNavigationExpanded;
|
|
44
|
+
autoClose: typeof autoClose;
|
|
45
|
+
subNavigationId: typeof subNavigationId;
|
|
46
|
+
navigationItemSafeTriangle: typeof navigationItemSafeTriangle;
|
|
47
|
+
_ref: typeof _ref;
|
|
48
|
+
handleNavigationItemClick: typeof handleNavigationItemClick;
|
|
49
|
+
handleClick: typeof handleClick;
|
|
50
|
+
handleBackClick: typeof handleBackClick;
|
|
51
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationItemProps> & Readonly<{}>, {
|
|
3
52
|
text: string;
|
|
4
|
-
disabled: boolean;
|
|
53
|
+
disabled: boolean | string;
|
|
5
54
|
children: any;
|
|
6
55
|
className: string;
|
|
7
56
|
id: string;
|
|
8
|
-
onClick: (event:
|
|
9
|
-
icon: import("@db-ux/core-foundations").
|
|
10
|
-
width: string;
|
|
11
|
-
showIcon: boolean;
|
|
57
|
+
onClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
58
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
59
|
+
width: import("../../shared/model").WidthType | string;
|
|
60
|
+
showIcon: boolean | string;
|
|
12
61
|
active: boolean;
|
|
13
|
-
|
|
62
|
+
wrap: boolean | string;
|
|
63
|
+
subNavigationExpanded: boolean | string;
|
|
14
64
|
backButtonId: string;
|
|
15
65
|
backButtonText: string;
|
|
16
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
66
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
67
|
+
declare const __VLS_component: import("vue").DefineComponent<DBNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationItemProps> & Readonly<{}>, {
|
|
68
|
+
text: string;
|
|
69
|
+
disabled: boolean | string;
|
|
70
|
+
children: any;
|
|
71
|
+
className: string;
|
|
72
|
+
id: string;
|
|
73
|
+
onClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
74
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
75
|
+
width: import("../../shared/model").WidthType | string;
|
|
76
|
+
showIcon: boolean | string;
|
|
77
|
+
active: boolean;
|
|
78
|
+
wrap: boolean | string;
|
|
79
|
+
subNavigationExpanded: boolean | string;
|
|
80
|
+
backButtonId: string;
|
|
81
|
+
backButtonText: string;
|
|
82
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
83
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
84
|
export default _default;
|
|
21
85
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
86
|
new (): {
|
|
@@ -15,7 +15,7 @@ export type DBNotificationDefaultProps = {
|
|
|
15
15
|
/**
|
|
16
16
|
* The closeable attribute shows/hides the close button on the top right.
|
|
17
17
|
*/
|
|
18
|
-
closeable?: boolean;
|
|
18
|
+
closeable?: boolean | string;
|
|
19
19
|
/**
|
|
20
20
|
* The headline attribute changes the text of the bold headline.
|
|
21
21
|
*/
|
|
@@ -35,7 +35,7 @@ export type DBNotificationDefaultProps = {
|
|
|
35
35
|
/**
|
|
36
36
|
* Enables or disables the visibility of the headline.
|
|
37
37
|
*/
|
|
38
|
-
showHeadline?: boolean;
|
|
38
|
+
showHeadline?: boolean | string;
|
|
39
39
|
/**
|
|
40
40
|
* The timestamp attribute can be set for overlay notifications
|
|
41
41
|
*/
|
|
@@ -43,7 +43,7 @@ export type DBNotificationDefaultProps = {
|
|
|
43
43
|
/**
|
|
44
44
|
* Enables or disables the visibility of the timestamp.
|
|
45
45
|
*/
|
|
46
|
-
showTimestamp?: boolean;
|
|
46
|
+
showTimestamp?: boolean | string;
|
|
47
47
|
/**
|
|
48
48
|
* The variant attribute changes the styling of the notification.
|
|
49
49
|
* The docked notifications are used e.g. between header and main content to show a global alert.
|
|
@@ -1,28 +1,69 @@
|
|
|
1
|
-
import { DBNotificationProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import { DBNotificationProps, DBNotificationState } from "./model";
|
|
2
|
+
import DBButton from "../button/button.vue";
|
|
3
|
+
import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants";
|
|
4
|
+
import { cls, getBoolean, getHideProp, stringPropVisible } from "../../utils";
|
|
5
|
+
import { ClickEvent } from "../../shared/model";
|
|
6
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
7
|
+
declare function handleClose(event: ClickEvent<HTMLButtonElement> | any): ReturnType<DBNotificationState["handleClose"]>;
|
|
8
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
9
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
10
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
11
|
+
image?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_3) => any;
|
|
14
|
+
} & {
|
|
15
|
+
link?: (props: typeof __VLS_5) => any;
|
|
16
|
+
}>;
|
|
17
|
+
declare const __VLS_self: import("vue").DefineComponent<DBNotificationProps, {
|
|
18
|
+
DBButton: typeof DBButton;
|
|
19
|
+
DEFAULT_CLOSE_BUTTON: typeof DEFAULT_CLOSE_BUTTON;
|
|
20
|
+
cls: typeof cls;
|
|
21
|
+
getBoolean: typeof getBoolean;
|
|
22
|
+
getHideProp: typeof getHideProp;
|
|
23
|
+
stringPropVisible: typeof stringPropVisible;
|
|
24
|
+
_ref: typeof _ref;
|
|
25
|
+
handleClose: typeof handleClose;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNotificationProps> & Readonly<{}>, {
|
|
3
27
|
text: string;
|
|
4
|
-
variant: "
|
|
28
|
+
variant: import("./model").NotificationVariantType;
|
|
5
29
|
children: any;
|
|
6
30
|
className: string;
|
|
7
31
|
id: string;
|
|
8
|
-
icon: import("@db-ux/core-foundations").
|
|
9
|
-
showIcon: boolean;
|
|
10
|
-
ariaLive: "
|
|
11
|
-
closeable: boolean;
|
|
12
|
-
headline: any;
|
|
13
|
-
linkVariant: "
|
|
14
|
-
showHeadline: boolean;
|
|
32
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
33
|
+
showIcon: boolean | string;
|
|
34
|
+
ariaLive: import("./model").NotificationAriaLiveType;
|
|
35
|
+
closeable: boolean | string;
|
|
36
|
+
headline: string | any;
|
|
37
|
+
linkVariant: import("./model").NotificationLinkVariantType;
|
|
38
|
+
showHeadline: boolean | string;
|
|
15
39
|
timestamp: string;
|
|
16
|
-
showTimestamp: boolean;
|
|
40
|
+
showTimestamp: boolean | string;
|
|
17
41
|
onClose: (event?: any) => void;
|
|
18
|
-
semantic: "
|
|
42
|
+
semantic: import("../../shared/model").SemanticType;
|
|
19
43
|
closeButtonId: string;
|
|
20
44
|
closeButtonText: string;
|
|
21
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_component: import("vue").DefineComponent<DBNotificationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNotificationProps> & Readonly<{}>, {
|
|
47
|
+
text: string;
|
|
48
|
+
variant: import("./model").NotificationVariantType;
|
|
49
|
+
children: any;
|
|
50
|
+
className: string;
|
|
51
|
+
id: string;
|
|
52
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
53
|
+
showIcon: boolean | string;
|
|
54
|
+
ariaLive: import("./model").NotificationAriaLiveType;
|
|
55
|
+
closeable: boolean | string;
|
|
56
|
+
headline: string | any;
|
|
57
|
+
linkVariant: import("./model").NotificationLinkVariantType;
|
|
58
|
+
showHeadline: boolean | string;
|
|
59
|
+
timestamp: string;
|
|
60
|
+
showTimestamp: boolean | string;
|
|
61
|
+
onClose: (event?: any) => void;
|
|
62
|
+
semantic: import("../../shared/model").SemanticType;
|
|
63
|
+
closeButtonId: string;
|
|
64
|
+
closeButtonText: string;
|
|
65
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
66
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
67
|
export default _default;
|
|
27
68
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
69
|
new (): {
|
|
@@ -11,7 +11,7 @@ export type DBPageDefaultProps = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Set this to have a transition with opacity to avoid layout-shifts https://simonhearne.com/2021/layout-shifts-webfonts/
|
|
13
13
|
*/
|
|
14
|
-
fadeIn?: boolean;
|
|
14
|
+
fadeIn?: boolean | string;
|
|
15
15
|
/**
|
|
16
16
|
* The slot can be used for React to set a footer.
|
|
17
17
|
*/
|
|
@@ -1,17 +1,40 @@
|
|
|
1
1
|
import { DBPageProps } from "./model";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { cls, getBooleanAsString } from "../../utils";
|
|
3
|
+
declare const fontsLoaded: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
4
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
5
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
6
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
7
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
8
|
+
header?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_3) => any;
|
|
11
|
+
} & {
|
|
12
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
13
|
+
}>;
|
|
14
|
+
declare const __VLS_self: import("vue").DefineComponent<DBPageProps, {
|
|
15
|
+
cls: typeof cls;
|
|
16
|
+
getBooleanAsString: typeof getBooleanAsString;
|
|
17
|
+
fontsLoaded: typeof fontsLoaded;
|
|
18
|
+
_ref: typeof _ref;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBPageProps> & Readonly<{}>, {
|
|
20
|
+
variant: import("./model").PageVariantType;
|
|
4
21
|
children: any;
|
|
5
22
|
className: string;
|
|
6
23
|
id: string;
|
|
7
|
-
documentOverflow: "
|
|
8
|
-
fadeIn: boolean;
|
|
24
|
+
documentOverflow: import("./model").PageDocumentOverflowType;
|
|
25
|
+
fadeIn: boolean | string;
|
|
9
26
|
mainClass: string;
|
|
10
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_component: import("vue").DefineComponent<DBPageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBPageProps> & Readonly<{}>, {
|
|
29
|
+
variant: import("./model").PageVariantType;
|
|
30
|
+
children: any;
|
|
31
|
+
className: string;
|
|
32
|
+
id: string;
|
|
33
|
+
documentOverflow: import("./model").PageDocumentOverflowType;
|
|
34
|
+
fadeIn: boolean | string;
|
|
35
|
+
mainClass: string;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
38
|
export default _default;
|
|
16
39
|
type __VLS_WithSlots<T, S> = T & {
|
|
17
40
|
new (): {
|
|
@@ -1,19 +1,46 @@
|
|
|
1
|
-
import { DBPopoverProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import { DBPopoverProps, DBPopoverState } from "./model";
|
|
2
|
+
import { cls, getBooleanAsString } from "../../utils";
|
|
3
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
4
|
+
declare function handleAutoPlacement(): ReturnType<DBPopoverState["handleAutoPlacement"]>;
|
|
5
|
+
declare function handleLeave(event: any): ReturnType<DBPopoverState["handleLeave"]>;
|
|
6
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
8
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
9
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_3) => any;
|
|
12
|
+
}>;
|
|
13
|
+
declare const __VLS_self: import("vue").DefineComponent<DBPopoverProps, {
|
|
14
|
+
cls: typeof cls;
|
|
15
|
+
getBooleanAsString: typeof getBooleanAsString;
|
|
16
|
+
_ref: typeof _ref;
|
|
17
|
+
handleAutoPlacement: typeof handleAutoPlacement;
|
|
18
|
+
handleLeave: typeof handleLeave;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBPopoverProps> & Readonly<{}>, {
|
|
3
20
|
children: any;
|
|
4
21
|
className: string;
|
|
5
22
|
id: string;
|
|
6
|
-
width: "
|
|
7
|
-
delay: "
|
|
8
|
-
animation: boolean;
|
|
9
|
-
placement: "
|
|
10
|
-
spacing: string;
|
|
11
|
-
open: boolean;
|
|
12
|
-
gap: boolean;
|
|
13
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
width: import("../..").PopoverWidthType;
|
|
24
|
+
delay: import("../..").PopoverDelayType;
|
|
25
|
+
animation: boolean | string;
|
|
26
|
+
placement: import("../..").PlacementType;
|
|
27
|
+
spacing: import("../..").SpacingType | string;
|
|
28
|
+
open: boolean | string;
|
|
29
|
+
gap: boolean | string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_component: import("vue").DefineComponent<DBPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBPopoverProps> & Readonly<{}>, {
|
|
32
|
+
children: any;
|
|
33
|
+
className: string;
|
|
34
|
+
id: string;
|
|
35
|
+
width: import("../..").PopoverWidthType;
|
|
36
|
+
delay: import("../..").PopoverDelayType;
|
|
37
|
+
animation: boolean | string;
|
|
38
|
+
placement: import("../..").PlacementType;
|
|
39
|
+
spacing: import("../..").SpacingType | string;
|
|
40
|
+
open: boolean | string;
|
|
41
|
+
gap: boolean | string;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
44
|
export default _default;
|
|
18
45
|
type __VLS_WithSlots<T, S> = T & {
|
|
19
46
|
new (): {
|
|
@@ -1,31 +1,70 @@
|
|
|
1
|
-
import { DBRadioProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import { DBRadioProps, DBRadioState } from "./model";
|
|
2
|
+
import { cls, getBoolean, getHideProp } from "../../utils";
|
|
3
|
+
import { ChangeEvent, InteractionEvent } from "../../shared/model";
|
|
4
|
+
declare const _id: import("vue").Ref<string | undefined, string | undefined>;
|
|
5
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
6
|
+
declare function handleChange(event: ChangeEvent<HTMLInputElement> | any): ReturnType<DBRadioState["handleChange"]>;
|
|
7
|
+
declare function handleBlur(event: InteractionEvent<HTMLInputElement> | any): ReturnType<DBRadioState["handleBlur"]>;
|
|
8
|
+
declare function handleFocus(event: InteractionEvent<HTMLInputElement> | any): ReturnType<DBRadioState["handleFocus"]>;
|
|
9
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
10
|
+
declare var __VLS_1: {};
|
|
11
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
}>;
|
|
14
|
+
declare const __VLS_self: import("vue").DefineComponent<DBRadioProps, {
|
|
15
|
+
cls: typeof cls;
|
|
16
|
+
getBoolean: typeof getBoolean;
|
|
17
|
+
getHideProp: typeof getHideProp;
|
|
18
|
+
_id: typeof _id;
|
|
19
|
+
_ref: typeof _ref;
|
|
20
|
+
handleChange: typeof handleChange;
|
|
21
|
+
handleBlur: typeof handleBlur;
|
|
22
|
+
handleFocus: typeof handleFocus;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
24
|
"update:value": (...args: any[]) => void;
|
|
4
25
|
}, string, import("vue").PublicProps, Readonly<DBRadioProps> & Readonly<{
|
|
5
26
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
6
27
|
}>, {
|
|
7
28
|
name: string;
|
|
8
29
|
label: string;
|
|
9
|
-
disabled: boolean;
|
|
30
|
+
disabled: boolean | string;
|
|
10
31
|
value: any;
|
|
11
32
|
children: any;
|
|
12
33
|
className: string;
|
|
13
34
|
describedbyid: string;
|
|
14
35
|
id: string;
|
|
15
|
-
size: "
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
}
|
|
36
|
+
size: import("../../shared/model").SizeType;
|
|
37
|
+
onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
38
|
+
onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
39
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
40
|
+
validation: import("../../shared/model").ValidationType;
|
|
41
|
+
required: boolean | string;
|
|
42
|
+
showLabel: boolean | string;
|
|
43
|
+
checked: boolean | string;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_component: import("vue").DefineComponent<DBRadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
"update:value": (...args: any[]) => void;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<DBRadioProps> & Readonly<{
|
|
48
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
name: string;
|
|
51
|
+
label: string;
|
|
52
|
+
disabled: boolean | string;
|
|
53
|
+
value: any;
|
|
54
|
+
children: any;
|
|
55
|
+
className: string;
|
|
56
|
+
describedbyid: string;
|
|
57
|
+
id: string;
|
|
58
|
+
size: import("../../shared/model").SizeType;
|
|
59
|
+
onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
60
|
+
onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
61
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
62
|
+
validation: import("../../shared/model").ValidationType;
|
|
63
|
+
required: boolean | string;
|
|
64
|
+
showLabel: boolean | string;
|
|
65
|
+
checked: boolean | string;
|
|
66
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
67
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
68
|
export default _default;
|
|
30
69
|
type __VLS_WithSlots<T, S> = T & {
|
|
31
70
|
new (): {
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import { DBSectionProps } from "./model";
|
|
2
|
-
|
|
2
|
+
import { cls } from "../../utils";
|
|
3
|
+
declare const _id: import("vue").Ref<string | undefined, string | undefined>;
|
|
4
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
5
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
}>;
|
|
10
|
+
declare const __VLS_self: import("vue").DefineComponent<DBSectionProps, {
|
|
11
|
+
cls: typeof cls;
|
|
12
|
+
_id: typeof _id;
|
|
13
|
+
_ref: typeof _ref;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBSectionProps> & Readonly<{}>, {
|
|
3
15
|
children: any;
|
|
4
16
|
className: string;
|
|
5
17
|
id: string;
|
|
6
|
-
width: "
|
|
7
|
-
spacing: string;
|
|
8
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
width: import("../..").MaxWidthType;
|
|
19
|
+
spacing: import("../..").SpacingType | string;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<DBSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBSectionProps> & Readonly<{}>, {
|
|
22
|
+
children: any;
|
|
23
|
+
className: string;
|
|
24
|
+
id: string;
|
|
25
|
+
width: import("../..").MaxWidthType;
|
|
26
|
+
spacing: import("../..").SpacingType | string;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
29
|
export default _default;
|
|
12
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
13
31
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, GlobalProps, GlobalState, IconProps, InitializedState, InputEventProps, InputEventState, ShowIconProps } from '../../shared/model';
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, InitializedState, InputEventProps, InputEventState, ShowIconProps } from '../../shared/model';
|
|
2
2
|
export type DBSelectDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Enable multiple select -> use DBCustomSelect/db-custom-select for a better look
|
|
@@ -40,4 +40,4 @@ export type DBSelectDefaultState = {
|
|
|
40
40
|
_placeholderId: string;
|
|
41
41
|
getOptionLabel: (option: DBSelectOptionType) => string;
|
|
42
42
|
};
|
|
43
|
-
export type DBSelectState = DBSelectDefaultState & GlobalState & ClickEventState<HTMLSelectElement> & ChangeEventState<HTMLSelectElement> & FocusEventState<HTMLSelectElement> & InputEventState<HTMLSelectElement> & FormState & InitializedState;
|
|
43
|
+
export type DBSelectState = DBSelectDefaultState & GlobalState & ClickEventState<HTMLSelectElement> & ChangeEventState<HTMLSelectElement> & FocusEventState<HTMLSelectElement> & InputEventState<HTMLSelectElement> & FormState & InitializedState & FromValidState;
|
|
@@ -1,44 +1,126 @@
|
|
|
1
|
-
import { DBSelectOptionType, DBSelectProps } from "./model";
|
|
2
|
-
|
|
1
|
+
import { DBSelectOptionType, DBSelectProps, DBSelectState } from "./model";
|
|
2
|
+
import { cls, getBoolean, getHideProp, stringPropVisible } from "../../utils";
|
|
3
|
+
import { DEFAULT_LABEL, DEFAULT_VALID_MESSAGE } from "../../shared/constants";
|
|
4
|
+
import DBInfotext from "../infotext/infotext.vue";
|
|
5
|
+
import { ChangeEvent, ClickEvent, InputEvent, InteractionEvent } from "../../shared/model";
|
|
6
|
+
declare const _id: import("vue").Ref<string | undefined, string | undefined>;
|
|
7
|
+
declare const _messageId: import("vue").Ref<string | undefined, string | undefined>;
|
|
8
|
+
declare const _validMessageId: import("vue").Ref<string | undefined, string | undefined>;
|
|
9
|
+
declare const _invalidMessageId: import("vue").Ref<string | undefined, string | undefined>;
|
|
10
|
+
declare const _invalidMessage: import("vue").Ref<string | undefined, string | undefined>;
|
|
11
|
+
declare const _placeholderId: import("vue").Ref<string, string>;
|
|
12
|
+
declare const _descByIds: import("vue").Ref<string | undefined, string | undefined>;
|
|
13
|
+
declare const _value: import("vue").Ref<string | undefined, string | undefined>;
|
|
14
|
+
declare const _voiceOverFallback: import("vue").Ref<string | undefined, string | undefined>;
|
|
15
|
+
declare const _ref: import("vue").Ref<any, any>;
|
|
16
|
+
declare function hasValidState(): ReturnType<DBSelectState["hasValidState"]>;
|
|
17
|
+
declare function handleClick(event: ClickEvent<HTMLSelectElement> | any): ReturnType<DBSelectState["handleClick"]>;
|
|
18
|
+
declare function handleInput(event: InputEvent<HTMLSelectElement> | any): ReturnType<DBSelectState["handleInput"]>;
|
|
19
|
+
declare function handleChange(event: ChangeEvent<HTMLSelectElement> | any): ReturnType<DBSelectState["handleChange"]>;
|
|
20
|
+
declare function handleBlur(event: InteractionEvent<HTMLSelectElement> | any): ReturnType<DBSelectState["handleBlur"]>;
|
|
21
|
+
declare function handleFocus(event: InteractionEvent<HTMLSelectElement> | any): ReturnType<DBSelectState["handleFocus"]>;
|
|
22
|
+
declare function getOptionLabel(option: DBSelectOptionType): ReturnType<DBSelectState["getOptionLabel"]>;
|
|
23
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
24
|
+
declare var __VLS_1: {};
|
|
25
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
26
|
+
default?: (props: typeof __VLS_1) => any;
|
|
27
|
+
}>;
|
|
28
|
+
declare const __VLS_self: import("vue").DefineComponent<DBSelectProps, {
|
|
29
|
+
cls: typeof cls;
|
|
30
|
+
getBoolean: typeof getBoolean;
|
|
31
|
+
getHideProp: typeof getHideProp;
|
|
32
|
+
stringPropVisible: typeof stringPropVisible;
|
|
33
|
+
DEFAULT_LABEL: typeof DEFAULT_LABEL;
|
|
34
|
+
DEFAULT_VALID_MESSAGE: typeof DEFAULT_VALID_MESSAGE;
|
|
35
|
+
DBInfotext: typeof DBInfotext;
|
|
36
|
+
_id: typeof _id;
|
|
37
|
+
_messageId: typeof _messageId;
|
|
38
|
+
_validMessageId: typeof _validMessageId;
|
|
39
|
+
_invalidMessageId: typeof _invalidMessageId;
|
|
40
|
+
_invalidMessage: typeof _invalidMessage;
|
|
41
|
+
_placeholderId: typeof _placeholderId;
|
|
42
|
+
_descByIds: typeof _descByIds;
|
|
43
|
+
_value: typeof _value;
|
|
44
|
+
_voiceOverFallback: typeof _voiceOverFallback;
|
|
45
|
+
_ref: typeof _ref;
|
|
46
|
+
hasValidState: typeof hasValidState;
|
|
47
|
+
handleClick: typeof handleClick;
|
|
48
|
+
handleInput: typeof handleInput;
|
|
49
|
+
handleChange: typeof handleChange;
|
|
50
|
+
handleBlur: typeof handleBlur;
|
|
51
|
+
handleFocus: typeof handleFocus;
|
|
52
|
+
getOptionLabel: typeof getOptionLabel;
|
|
53
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
54
|
"update:value": (...args: any[]) => void;
|
|
4
55
|
}, string, import("vue").PublicProps, Readonly<DBSelectProps> & Readonly<{
|
|
5
56
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
6
57
|
}>, {
|
|
7
58
|
name: string;
|
|
8
|
-
input: (event:
|
|
59
|
+
input: (event: InputEvent<HTMLSelectElement>) => void;
|
|
9
60
|
label: string;
|
|
10
|
-
disabled: boolean;
|
|
61
|
+
disabled: boolean | string;
|
|
11
62
|
value: any;
|
|
12
|
-
variant: "
|
|
63
|
+
variant: import("../../shared/model").LabelVariantType;
|
|
13
64
|
children: any;
|
|
14
65
|
className: string;
|
|
15
66
|
id: string;
|
|
16
|
-
onClick: (event:
|
|
17
|
-
icon: import("@db-ux/core-foundations").
|
|
67
|
+
onClick: (event: ClickEvent<HTMLSelectElement>) => void;
|
|
68
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
18
69
|
size: number;
|
|
19
|
-
showIcon: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
validation: "invalid" | "valid" | "no-validation";
|
|
28
|
-
required: boolean;
|
|
29
|
-
showLabel: boolean;
|
|
70
|
+
showIcon: boolean | string;
|
|
71
|
+
onFocus: (event: InteractionEvent<HTMLSelectElement>) => void;
|
|
72
|
+
onBlur: (event: InteractionEvent<HTMLSelectElement>) => void;
|
|
73
|
+
onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
|
|
74
|
+
onInput: (event: InputEvent<HTMLSelectElement>) => void;
|
|
75
|
+
validation: import("../../shared/model").ValidationType;
|
|
76
|
+
required: boolean | string;
|
|
77
|
+
showLabel: boolean | string;
|
|
30
78
|
placeholder: string;
|
|
31
79
|
message: string;
|
|
32
80
|
validMessage: string;
|
|
33
81
|
invalidMessage: string;
|
|
34
|
-
messageIcon: import("@db-ux/core-foundations").
|
|
35
|
-
autocomplete: string;
|
|
36
|
-
showMessage: boolean;
|
|
82
|
+
messageIcon: import("@db-ux/core-foundations").IconTypes;
|
|
83
|
+
autocomplete: string | import("../../shared/model").AutoCompleteType;
|
|
84
|
+
showMessage: boolean | string;
|
|
37
85
|
multiple: boolean;
|
|
38
86
|
options: DBSelectOptionType[];
|
|
39
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
40
|
-
|
|
41
|
-
|
|
87
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
88
|
+
declare const __VLS_component: import("vue").DefineComponent<DBSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
89
|
+
"update:value": (...args: any[]) => void;
|
|
90
|
+
}, string, import("vue").PublicProps, Readonly<DBSelectProps> & Readonly<{
|
|
91
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
name: string;
|
|
94
|
+
input: (event: InputEvent<HTMLSelectElement>) => void;
|
|
95
|
+
label: string;
|
|
96
|
+
disabled: boolean | string;
|
|
97
|
+
value: any;
|
|
98
|
+
variant: import("../../shared/model").LabelVariantType;
|
|
99
|
+
children: any;
|
|
100
|
+
className: string;
|
|
101
|
+
id: string;
|
|
102
|
+
onClick: (event: ClickEvent<HTMLSelectElement>) => void;
|
|
103
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
104
|
+
size: number;
|
|
105
|
+
showIcon: boolean | string;
|
|
106
|
+
onFocus: (event: InteractionEvent<HTMLSelectElement>) => void;
|
|
107
|
+
onBlur: (event: InteractionEvent<HTMLSelectElement>) => void;
|
|
108
|
+
onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
|
|
109
|
+
onInput: (event: InputEvent<HTMLSelectElement>) => void;
|
|
110
|
+
validation: import("../../shared/model").ValidationType;
|
|
111
|
+
required: boolean | string;
|
|
112
|
+
showLabel: boolean | string;
|
|
113
|
+
placeholder: string;
|
|
114
|
+
message: string;
|
|
115
|
+
validMessage: string;
|
|
116
|
+
invalidMessage: string;
|
|
117
|
+
messageIcon: import("@db-ux/core-foundations").IconTypes;
|
|
118
|
+
autocomplete: string | import("../../shared/model").AutoCompleteType;
|
|
119
|
+
showMessage: boolean | string;
|
|
120
|
+
multiple: boolean;
|
|
121
|
+
options: DBSelectOptionType[];
|
|
122
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
123
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
42
124
|
export default _default;
|
|
43
125
|
type __VLS_WithSlots<T, S> = T & {
|
|
44
126
|
new (): {
|