@db-ux/v-core-components 1.1.1 → 2.0.0-0-custom-select-16b8cce
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -1
- package/dist/components/badge/badge.vue.d.ts +1 -1
- package/dist/components/brand/brand.vue.d.ts +1 -1
- package/dist/components/button/button.vue.d.ts +3 -3
- package/dist/components/card/card.vue.d.ts +1 -1
- package/dist/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/components/custom-select/custom-select.vue.d.ts +60 -0
- package/dist/components/custom-select/index.d.ts +1 -0
- package/dist/components/custom-select/model.d.ts +173 -0
- package/dist/components/custom-select-dropdown/custom-select-dropdown.vue.d.ts +15 -0
- package/dist/components/custom-select-dropdown/index.d.ts +1 -0
- package/dist/components/custom-select-dropdown/model.d.ts +15 -0
- package/dist/components/custom-select-form-field/custom-select-form-field.vue.d.ts +13 -0
- package/dist/components/custom-select-form-field/index.d.ts +1 -0
- package/dist/components/custom-select-form-field/model.d.ts +5 -0
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +16 -0
- package/dist/components/custom-select-list/index.d.ts +1 -0
- package/dist/components/custom-select-list/model.d.ts +8 -0
- package/dist/components/custom-select-list-item/custom-select-list-item.vue.d.ts +31 -0
- package/dist/components/custom-select-list-item/index.d.ts +1 -0
- package/dist/components/custom-select-list-item/model.d.ts +29 -0
- package/dist/components/divider/divider.vue.d.ts +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +2 -2
- package/dist/components/icon/icon.vue.d.ts +1 -1
- package/dist/components/infotext/infotext.vue.d.ts +1 -1
- package/dist/components/input/input.vue.d.ts +5 -4
- package/dist/components/link/link.vue.d.ts +2 -2
- package/dist/components/navigation-item/navigation-item.vue.d.ts +2 -2
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/page/model.d.ts +4 -0
- package/dist/components/page/page.vue.d.ts +1 -0
- package/dist/components/popover/popover.vue.d.ts +2 -2
- package/dist/components/radio/radio.vue.d.ts +1 -1
- package/dist/components/section/section.vue.d.ts +1 -1
- package/dist/components/select/model.d.ts +3 -3
- package/dist/components/select/select.vue.d.ts +3 -2
- package/dist/components/switch/switch.vue.d.ts +1 -1
- package/dist/components/tab-item/tab-item.vue.d.ts +1 -1
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/components/tag/model.d.ts +3 -3
- package/dist/components/tag/tag.vue.d.ts +2 -2
- package/dist/components/textarea/textarea.vue.d.ts +3 -3
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/db-ux.es.js +2042 -1240
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/shared/constants.d.ts +5 -0
- package/dist/shared/model.d.ts +36 -19
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/react.d.ts +4 -4
- package/package.json +5 -5
|
@@ -6,6 +6,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBPageProp
|
|
|
6
6
|
id: string;
|
|
7
7
|
documentOverflow: "auto" | "hidden";
|
|
8
8
|
fadeIn: boolean;
|
|
9
|
+
mainClass: string;
|
|
9
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
11
|
header?: ((props: {}) => any) | undefined;
|
|
11
12
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -6,8 +6,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBPopoverP
|
|
|
6
6
|
width: "auto" | "fixed";
|
|
7
7
|
delay: "none" | "slow" | "fast";
|
|
8
8
|
animation: boolean;
|
|
9
|
-
placement: "left" | "right" | "
|
|
10
|
-
spacing:
|
|
9
|
+
placement: "left" | "right" | "left-start" | "left-end" | "right-start" | "right-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
10
|
+
spacing: string;
|
|
11
11
|
open: boolean;
|
|
12
12
|
gap: boolean;
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -5,8 +5,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBRadioPro
|
|
|
5
5
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
name: string;
|
|
8
|
-
disabled: boolean;
|
|
9
8
|
label: string;
|
|
9
|
+
disabled: boolean;
|
|
10
10
|
value: any;
|
|
11
11
|
children: any;
|
|
12
12
|
className: string;
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBSectionP
|
|
|
4
4
|
className: string;
|
|
5
5
|
id: string;
|
|
6
6
|
width: "medium" | "small" | "large" | "full";
|
|
7
|
-
spacing:
|
|
7
|
+
spacing: string;
|
|
8
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
9
9
|
default?: ((props: {}) => any) | undefined;
|
|
10
10
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, 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
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
multiple?: boolean;
|
|
7
7
|
/**
|
|
8
8
|
* If you don't/can't use children/slots you can pass in the options as an array.
|
|
9
9
|
*/
|
|
@@ -35,7 +35,7 @@ export type DBSelectOptionType = {
|
|
|
35
35
|
*/
|
|
36
36
|
value: string | string[] | number;
|
|
37
37
|
};
|
|
38
|
-
export type DBSelectProps =
|
|
38
|
+
export type DBSelectProps = GlobalProps & ClickEventProps<HTMLSelectElement> & ChangeEventProps<HTMLSelectElement> & FocusEventProps<HTMLSelectElement> & InputEventProps<HTMLSelectElement> & FormProps & IconProps & FormMessageProps & DBSelectDefaultProps & ShowIconProps & FormSizeProps;
|
|
39
39
|
export type DBSelectDefaultState = {
|
|
40
40
|
_placeholderId: string;
|
|
41
41
|
getOptionLabel: (option: DBSelectOptionType) => string;
|
|
@@ -5,8 +5,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBSelectPr
|
|
|
5
5
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
name: string;
|
|
8
|
-
|
|
8
|
+
input: (event: Event) => void;
|
|
9
9
|
label: string;
|
|
10
|
+
disabled: boolean;
|
|
10
11
|
value: any;
|
|
11
12
|
variant: "above" | "floating";
|
|
12
13
|
children: any;
|
|
@@ -19,7 +20,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBSelectPr
|
|
|
19
20
|
blur: (event: FocusEvent) => void;
|
|
20
21
|
change: (event: Event) => void;
|
|
21
22
|
focus: (event: FocusEvent) => void;
|
|
22
|
-
input: (event: Event) => void;
|
|
23
23
|
onFocus: (event: FocusEvent) => void;
|
|
24
24
|
onBlur: (event: FocusEvent) => void;
|
|
25
25
|
onChange: (event: Event) => void;
|
|
@@ -34,6 +34,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBSelectPr
|
|
|
34
34
|
messageIcon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
35
35
|
autocomplete: string;
|
|
36
36
|
showMessage: boolean;
|
|
37
|
+
multiple: boolean;
|
|
37
38
|
options: DBSelectOptionType[];
|
|
38
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
39
40
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -5,8 +5,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBSwitchPr
|
|
|
5
5
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
name: string;
|
|
8
|
-
disabled: boolean;
|
|
9
8
|
label: string;
|
|
9
|
+
disabled: boolean;
|
|
10
10
|
value: any;
|
|
11
11
|
children: any;
|
|
12
12
|
className: string;
|
|
@@ -4,9 +4,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBTabItemP
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<DBTabItemProps> & Readonly<{
|
|
5
5
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
+
label: string;
|
|
7
8
|
disabled: boolean;
|
|
8
9
|
noText: boolean;
|
|
9
|
-
label: string;
|
|
10
10
|
children: any;
|
|
11
11
|
className: string;
|
|
12
12
|
id: string;
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBTabsProp
|
|
|
4
4
|
children: any;
|
|
5
5
|
className: string;
|
|
6
6
|
id: string;
|
|
7
|
-
width:
|
|
7
|
+
width: string;
|
|
8
8
|
behavior: "scrollbar" | "arrows";
|
|
9
9
|
arrowScrollDistance: number;
|
|
10
10
|
initialSelectedIndex: number;
|
|
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBTabsProp
|
|
|
13
13
|
onTabSelect: (event?: Event | undefined) => void;
|
|
14
14
|
tabs: string | DBSimpleTabProps[];
|
|
15
15
|
orientation: "horizontal" | "vertical";
|
|
16
|
-
alignment:
|
|
16
|
+
alignment: string;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
18
18
|
default?: ((props: {}) => any) | undefined;
|
|
19
19
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentSlotProps, GlobalProps, GlobalState, IconProps, InitializedState, OverflowProps, SemanticProps, ShowIconProps, TagEmphasisProps } from '../../shared/model';
|
|
1
|
+
import { ClickEvent, ContentSlotProps, GlobalProps, GlobalState, IconProps, InitializedState, OverflowProps, SemanticProps, ShowIconProps, TagEmphasisProps } 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 = {
|
|
@@ -19,7 +19,7 @@ export type DBTagDefaultProps = {
|
|
|
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
|
-
onRemove?: () => void;
|
|
22
|
+
onRemove?: (event?: any) => void;
|
|
23
23
|
/**
|
|
24
24
|
* The removeButton attribute shows the cancel button.
|
|
25
25
|
*/
|
|
@@ -40,6 +40,6 @@ export type DBTagDefaultProps = {
|
|
|
40
40
|
export type DBTagProps = DBTagDefaultProps & GlobalProps & IconProps & SemanticProps & OverflowProps & TagEmphasisProps & ShowIconProps & ContentSlotProps;
|
|
41
41
|
export type DBTagDefaultState = {
|
|
42
42
|
getRemoveButtonText: () => string;
|
|
43
|
-
handleRemove: () => void;
|
|
43
|
+
handleRemove: (event?: ClickEvent<HTMLButtonElement>) => void;
|
|
44
44
|
};
|
|
45
45
|
export type DBTagState = DBTagDefaultState & GlobalState & InitializedState;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DBTagProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBTagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTagProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
noText: boolean;
|
|
5
6
|
children: any;
|
|
@@ -7,11 +8,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBTagProps
|
|
|
7
8
|
id: string;
|
|
8
9
|
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
9
10
|
showIcon: boolean;
|
|
10
|
-
text: string;
|
|
11
11
|
semantic: "adaptive" | "neutral" | "critical" | "informational" | "warning" | "successful";
|
|
12
12
|
emphasis: "weak" | "strong" | "origin";
|
|
13
13
|
behavior: string;
|
|
14
|
-
onRemove: () => void;
|
|
14
|
+
onRemove: (event?: any) => void;
|
|
15
15
|
removeButton: string;
|
|
16
16
|
showCheckState: boolean;
|
|
17
17
|
overflow: boolean;
|
|
@@ -5,8 +5,10 @@ declare const _default: import("vue").DefineComponent<DBTextareaProps, {}, {}, {
|
|
|
5
5
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
name: string;
|
|
8
|
-
|
|
8
|
+
form: string;
|
|
9
|
+
input: (event: Event) => void;
|
|
9
10
|
label: string;
|
|
11
|
+
disabled: boolean;
|
|
10
12
|
value: any;
|
|
11
13
|
variant: "above" | "floating";
|
|
12
14
|
className: string;
|
|
@@ -14,9 +16,7 @@ declare const _default: import("vue").DefineComponent<DBTextareaProps, {}, {}, {
|
|
|
14
16
|
blur: (event: FocusEvent) => void;
|
|
15
17
|
change: (event: Event) => void;
|
|
16
18
|
focus: (event: FocusEvent) => void;
|
|
17
|
-
input: (event: Event) => void;
|
|
18
19
|
resize: "none" | "horizontal" | "vertical" | "both";
|
|
19
|
-
form: string;
|
|
20
20
|
onFocus: (event: FocusEvent) => void;
|
|
21
21
|
onBlur: (event: FocusEvent) => void;
|
|
22
22
|
onChange: (event: Event) => void;
|
|
@@ -6,7 +6,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBTooltipP
|
|
|
6
6
|
width: "auto" | "fixed";
|
|
7
7
|
delay: "none" | "slow" | "fast";
|
|
8
8
|
animation: boolean;
|
|
9
|
-
placement: "left" | "right" | "
|
|
9
|
+
placement: "left" | "right" | "left-start" | "left-end" | "right-start" | "right-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
10
10
|
emphasis: "weak" | "strong";
|
|
11
11
|
showArrow: boolean;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|