@db-ux/v-core-components 4.3.2 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/components/badge/badge.vue.d.ts +1 -1
- package/dist/components/infotext/infotext.vue.d.ts +1 -1
- package/dist/components/link/link.vue.d.ts +1 -1
- package/dist/components/link/model.d.ts +2 -2
- package/dist/components/notification/model.d.ts +2 -2
- package/dist/components/notification/notification.vue.d.ts +3 -2
- package/dist/components/select/model.d.ts +10 -0
- package/dist/components/select/select.vue.d.ts +1 -0
- package/dist/components/tag/tag.vue.d.ts +1 -1
- package/dist/db-ux.es.js +872 -841
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +6 -4
- package/dist/utils/index.d.ts +12 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @db-ux/v-core-components
|
|
2
2
|
|
|
3
|
+
## 4.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: add `role` property to DBNotification & automatically add role based on semantic if no `role` or `ariaLive` is provided to increase UX for screen-reader users - [see commit 177d71e](https://github.com/db-ux-design-system/core-web/commit/177d71e287a64a6491ba446e7812d0adbda1717e)
|
|
8
|
+
|
|
9
|
+
- feat(DBSelect): hide empty first option in `required` selects with placeholder after the first user selection, and add `showEmptyOption` prop to overwrite this - [see commit 4280bc4](https://github.com/db-ux-design-system/core-web/commit/4280bc47538d6983d6bb5575f012b6c6b25b40e8)
|
|
10
|
+
|
|
3
11
|
## 4.3.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -4,13 +4,13 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<DBBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBadgeProps> & Readonly<{}>, {
|
|
7
|
+
semantic: import("../..").SemanticType;
|
|
7
8
|
label: string;
|
|
8
9
|
text: string;
|
|
9
10
|
children: any;
|
|
10
11
|
className: string;
|
|
11
12
|
id: string;
|
|
12
13
|
placement: import("./model").BadgePlacementType;
|
|
13
|
-
semantic: import("../..").SemanticType;
|
|
14
14
|
size: import("../..").SizeType;
|
|
15
15
|
emphasis: import("../..").EmphasisType;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,11 +4,11 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<DBInfotextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBInfotextProps> & Readonly<{}>, {
|
|
7
|
+
semantic: import("../..").SemanticType;
|
|
7
8
|
text: string;
|
|
8
9
|
children: any;
|
|
9
10
|
className: string;
|
|
10
11
|
id: string;
|
|
11
|
-
semantic: import("../..").SemanticType;
|
|
12
12
|
size: import("../..").SizeType;
|
|
13
13
|
icon: import("@db-ux/core-foundations").IconTypes;
|
|
14
14
|
showIcon: boolean | string;
|
|
@@ -5,6 +5,7 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<DBLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBLinkProps> & Readonly<{}>, {
|
|
7
7
|
content: import("./model").LinkContentType;
|
|
8
|
+
role: string;
|
|
8
9
|
text: string;
|
|
9
10
|
disabled: boolean | string;
|
|
10
11
|
children: any;
|
|
@@ -14,7 +15,6 @@ declare const __VLS_base: import("vue").DefineComponent<DBLinkProps, {}, {}, {},
|
|
|
14
15
|
variant: import("./model").LinkVariantType;
|
|
15
16
|
size: import("./model").LinkSizeType;
|
|
16
17
|
showIcon: boolean | string;
|
|
17
|
-
role: string;
|
|
18
18
|
target: import("../..").LinkTargetType;
|
|
19
19
|
href: string;
|
|
20
20
|
hreflang: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';
|
|
1
|
+
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, RoleProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';
|
|
2
2
|
export declare const LinkVariantList: readonly ["adaptive", "brand", "inline"];
|
|
3
3
|
export type LinkVariantType = (typeof LinkVariantList)[number];
|
|
4
4
|
export declare const LinkSizeList: readonly ["medium", "small"];
|
|
@@ -19,6 +19,6 @@ export type DBLinkDefaultProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
variant?: LinkVariantType;
|
|
21
21
|
};
|
|
22
|
-
export type DBLinkProps = DBLinkDefaultProps & GlobalProps & ClickEventProps<HTMLAnchorElement> & LinkProps & ShowIconProps & TextProps & WrapProps;
|
|
22
|
+
export type DBLinkProps = DBLinkDefaultProps & GlobalProps & ClickEventProps<HTMLAnchorElement> & LinkProps & RoleProps & ShowIconProps & TextProps & WrapProps;
|
|
23
23
|
export type DBLinkDefaultState = {};
|
|
24
24
|
export type DBLinkState = DBLinkDefaultState & GlobalState & ClickEventState<HTMLAnchorElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, PopoverProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
1
|
+
import { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, PopoverProps, RoleProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
2
|
export declare const NotificationVariantList: readonly ["docked", "standalone", "overlay"];
|
|
3
3
|
export type NotificationVariantType = (typeof NotificationVariantList)[number];
|
|
4
4
|
export declare const NotificationLinkVariantList: readonly ["block", "inline"];
|
|
@@ -52,6 +52,6 @@ export type DBNotificationDefaultProps = {
|
|
|
52
52
|
*/
|
|
53
53
|
variant?: NotificationVariantType;
|
|
54
54
|
};
|
|
55
|
-
export type DBNotificationProps = DBNotificationDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement>> & IconProps & SemanticProps & InnerCloseButtonProps & PopoverProps & ShowIconProps & TextProps;
|
|
55
|
+
export type DBNotificationProps = DBNotificationDefaultProps & GlobalProps & RoleProps & CloseEventProps<ClickEvent<HTMLButtonElement>> & IconProps & SemanticProps & InnerCloseButtonProps & PopoverProps & ShowIconProps & TextProps;
|
|
56
56
|
export type DBNotificationDefaultState = {};
|
|
57
57
|
export type DBNotificationState = DBNotificationDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement>>;
|
|
@@ -8,19 +8,20 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
link?: (props: typeof __VLS_5) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<DBNotificationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNotificationProps> & Readonly<{}>, {
|
|
11
|
+
semantic: import("../../shared/model").SemanticType;
|
|
12
|
+
role: string;
|
|
13
|
+
ariaLive: import("./model").NotificationAriaLiveType;
|
|
11
14
|
text: string;
|
|
12
15
|
headline: string | any;
|
|
13
16
|
children: any;
|
|
14
17
|
className: string;
|
|
15
18
|
id: string;
|
|
16
19
|
variant: import("./model").NotificationVariantType;
|
|
17
|
-
semantic: import("../../shared/model").SemanticType;
|
|
18
20
|
icon: import("@db-ux/core-foundations").IconTypes;
|
|
19
21
|
showIcon: boolean | string;
|
|
20
22
|
onClose: (event?: MouseEvent | undefined) => void;
|
|
21
23
|
closeButtonId: string;
|
|
22
24
|
closeButtonText: string;
|
|
23
|
-
ariaLive: import("./model").NotificationAriaLiveType;
|
|
24
25
|
closeable: boolean | string;
|
|
25
26
|
linkVariant: import("./model").NotificationLinkVariantType;
|
|
26
27
|
showHeadline: boolean | string;
|
|
@@ -9,6 +9,15 @@ export type DBSelectDefaultProps = {
|
|
|
9
9
|
* If you don't/can't use children/slots you can pass in the options as an array.
|
|
10
10
|
*/
|
|
11
11
|
options?: DBSelectOptionType[];
|
|
12
|
+
/**
|
|
13
|
+
* Controls whether the empty placeholder option is shown in the dropdown after the user's selection of another option.
|
|
14
|
+
* By default, it is shown for non-required selects and hidden for required selects.
|
|
15
|
+
* Set to `true` to always show or `false` to always hide the empty option.
|
|
16
|
+
*
|
|
17
|
+
* Note: The empty option is only rendered when `variant === 'floating'` or a `placeholder` is set.
|
|
18
|
+
* Setting `showEmptyOption` alone has no effect if neither of these conditions is met.
|
|
19
|
+
*/
|
|
20
|
+
showEmptyOption?: boolean;
|
|
12
21
|
};
|
|
13
22
|
export type DBSelectOptionType = {
|
|
14
23
|
/**
|
|
@@ -40,5 +49,6 @@ export type DBSelectProps = GlobalProps & ClickEventProps<HTMLSelectElement> & C
|
|
|
40
49
|
export type DBSelectDefaultState = {
|
|
41
50
|
_placeholderId: string;
|
|
42
51
|
getOptionLabel: (option: DBSelectOptionType) => string;
|
|
52
|
+
shouldShowEmptyOption: () => boolean;
|
|
43
53
|
};
|
|
44
54
|
export type DBSelectState = DBSelectDefaultState & GlobalState & ClickEventState<HTMLSelectElement> & ChangeEventState<HTMLSelectElement> & FocusEventState<HTMLSelectElement> & InputEventState<HTMLSelectElement> & FormState & InitializedState & FromValidState;
|
|
@@ -40,6 +40,7 @@ declare const __VLS_base: import("vue").DefineComponent<DBSelectProps, {}, {}, {
|
|
|
40
40
|
autocomplete: string | import("../../shared/model").AutoCompleteType;
|
|
41
41
|
showMessage: boolean | string;
|
|
42
42
|
options: DBSelectOptionType[];
|
|
43
|
+
showEmptyOption: boolean;
|
|
43
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
45
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
46
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,12 +7,12 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_3) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<DBTagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTagProps> & Readonly<{}>, {
|
|
10
|
+
semantic: import("../../shared/model").SemanticType;
|
|
10
11
|
text: string;
|
|
11
12
|
children: any;
|
|
12
13
|
className: string;
|
|
13
14
|
id: string;
|
|
14
15
|
behavior: import("./model").TagBehaviorType | string;
|
|
15
|
-
semantic: import("../../shared/model").SemanticType;
|
|
16
16
|
emphasis: import("../../shared/model").EmphasisType;
|
|
17
17
|
icon: import("@db-ux/core-foundations").IconTypes;
|
|
18
18
|
showIcon: boolean | string;
|