@db-ux/v-core-components 2.2.3 → 2.2.5
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-item/accordion-item.vue.d.ts +1 -1
- package/dist/components/custom-select/custom-select.vue.d.ts +3 -2
- package/dist/components/custom-select/model.d.ts +7 -7
- package/dist/components/drawer/drawer.vue.d.ts +3 -3
- package/dist/components/drawer/model.d.ts +3 -3
- package/dist/components/header/header.vue.d.ts +1 -1
- package/dist/components/notification/model.d.ts +3 -3
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/tabs/model.d.ts +13 -11
- package/dist/components/tabs/tabs.vue.d.ts +6 -5
- package/dist/components/tag/model.d.ts +12 -10
- package/dist/components/tag/tag.vue.d.ts +2 -1
- package/dist/db-ux.es.js +866 -854
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +9 -7
- package/dist/utils/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -12,7 +12,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBAccordionItemProp
|
|
|
12
12
|
children: any;
|
|
13
13
|
className: string;
|
|
14
14
|
id: string;
|
|
15
|
-
onToggle: (open: boolean
|
|
15
|
+
onToggle: (open: boolean) => void;
|
|
16
16
|
defaultOpen: boolean;
|
|
17
17
|
headlinePlain: string;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CustomSelectOptionType, DBCustomSelectProps } from "./model";
|
|
2
|
+
import { GeneralEvent, InputEvent } from "../../shared/model";
|
|
2
3
|
declare var __VLS_1: {};
|
|
3
4
|
type __VLS_Slots = {} & {
|
|
4
5
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -57,8 +58,8 @@ declare const __VLS_component: import("vue").DefineComponent<DBCustomSelectProps
|
|
|
57
58
|
transformSelectedLabels: (selectedOptions?: CustomSelectOptionType[]) => string;
|
|
58
59
|
onAmountChange: (amount: number) => void;
|
|
59
60
|
onOptionSelected: (values: string[]) => void;
|
|
60
|
-
onDropdownToggle: (event:
|
|
61
|
-
onSearch: (event:
|
|
61
|
+
onDropdownToggle: (event: GeneralEvent<HTMLDetailsElement>) => void;
|
|
62
|
+
onSearch: (event: InputEvent<HTMLInputElement>) => void;
|
|
62
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
64
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
64
65
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseFormProps, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';
|
|
1
|
+
import { BaseFormProps, ClickEvent, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GeneralEvent, GlobalProps, GlobalState, IconProps, InputEvent, InteractionEvent, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';
|
|
2
2
|
import { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
|
|
3
3
|
import { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';
|
|
4
4
|
import { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';
|
|
@@ -46,19 +46,19 @@ export type DBCustomSelectEvents = {
|
|
|
46
46
|
/**
|
|
47
47
|
* Informs the user when dropdown was toggled.
|
|
48
48
|
*/
|
|
49
|
-
onDropdownToggle?: (event:
|
|
49
|
+
onDropdownToggle?: (event: GeneralEvent<HTMLDetailsElement>) => void;
|
|
50
50
|
/**
|
|
51
51
|
* Informs the user when dropdown was toggled.
|
|
52
52
|
*/
|
|
53
|
-
dropdownToggle?: (event:
|
|
53
|
+
dropdownToggle?: (event: GeneralEvent<HTMLDetailsElement>) => void;
|
|
54
54
|
/**
|
|
55
55
|
* Informs the user when a search was performed.
|
|
56
56
|
*/
|
|
57
|
-
onSearch?: (event:
|
|
57
|
+
onSearch?: (event: InputEvent<HTMLInputElement>) => void;
|
|
58
58
|
/**
|
|
59
59
|
* Informs the user when a search was performed.
|
|
60
60
|
*/
|
|
61
|
-
search?: (event:
|
|
61
|
+
search?: (event: InputEvent<HTMLInputElement>) => void;
|
|
62
62
|
};
|
|
63
63
|
export type DBCustomSelectDefaultProps = {
|
|
64
64
|
/**
|
|
@@ -198,7 +198,7 @@ export type DBCustomSelectDefaultState = {
|
|
|
198
198
|
searchEnabled: boolean;
|
|
199
199
|
amountOptions: number;
|
|
200
200
|
setDescById: (descId?: string) => void;
|
|
201
|
-
handleTagRemove: (option: CustomSelectOptionType, event?:
|
|
201
|
+
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
202
202
|
handleSummaryFocus: () => void;
|
|
203
203
|
handleSelect: (value?: string) => void;
|
|
204
204
|
handleSelectAll: (event: any) => void;
|
|
@@ -216,4 +216,4 @@ export type DBCustomSelectDefaultState = {
|
|
|
216
216
|
selectAllIndeterminate: boolean;
|
|
217
217
|
handleAutoPlacement: () => void;
|
|
218
218
|
};
|
|
219
|
-
export type DBCustomSelectState = DBCustomSelectDefaultState & GlobalState & FormState & FromValidState & CloseEventState & DocumentScrollState;
|
|
219
|
+
export type DBCustomSelectState = DBCustomSelectDefaultState & GlobalState & FormState & FromValidState & CloseEventState<InteractionEvent<HTMLDetailsElement>> & DocumentScrollState;
|
|
@@ -10,11 +10,11 @@ declare const __VLS_component: import("vue").DefineComponent<DBDrawerProps, {},
|
|
|
10
10
|
children: any;
|
|
11
11
|
className: string;
|
|
12
12
|
id: string;
|
|
13
|
-
width: import("
|
|
14
|
-
onClose: (event?:
|
|
13
|
+
width: import("../../shared/model").WidthType | string;
|
|
14
|
+
onClose: (event?: KeyboardEvent | MouseEvent | undefined) => void;
|
|
15
15
|
closeButtonId: string;
|
|
16
16
|
closeButtonText: string;
|
|
17
|
-
spacing: import("
|
|
17
|
+
spacing: import("../../shared/model").SpacingType | string;
|
|
18
18
|
backdrop: import("./model").DrawerBackdropType;
|
|
19
19
|
direction: import("./model").DrawerDirectionType;
|
|
20
20
|
open: boolean | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CloseEventProps, CloseEventState, GlobalProps, GlobalState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
1
|
+
import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
2
2
|
export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
3
3
|
export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
4
4
|
export declare const DrawerDirectionList: readonly ["left", "right", "up", "down"];
|
|
@@ -34,8 +34,8 @@ export type DBDrawerDefaultProps = {
|
|
|
34
34
|
*/
|
|
35
35
|
variant?: DrawerVariantType;
|
|
36
36
|
};
|
|
37
|
-
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps & InnerCloseButtonProps & WidthProps & SpacingProps;
|
|
37
|
+
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InnerCloseButtonProps & WidthProps & SpacingProps;
|
|
38
38
|
export type DBDrawerDefaultState = {
|
|
39
39
|
handleDialogOpen: () => void;
|
|
40
40
|
};
|
|
41
|
-
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState
|
|
41
|
+
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>>;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBHeaderProps, {},
|
|
|
25
25
|
drawerOpen: boolean | string;
|
|
26
26
|
forceMobile: boolean | string;
|
|
27
27
|
burgerMenuLabel: string;
|
|
28
|
-
onToggle: (open: boolean
|
|
28
|
+
onToggle: (open: boolean) => void;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
31
31
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, PopoverProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
1
|
+
import { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, PopoverProps, 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 & IconProps & SemanticProps & InnerCloseButtonProps & PopoverProps & ShowIconProps & TextProps;
|
|
55
|
+
export type DBNotificationProps = DBNotificationDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement>> & IconProps & SemanticProps & InnerCloseButtonProps & PopoverProps & ShowIconProps & TextProps;
|
|
56
56
|
export type DBNotificationDefaultState = {};
|
|
57
|
-
export type DBNotificationState = DBNotificationDefaultState & GlobalState & CloseEventState
|
|
57
|
+
export type DBNotificationState = DBNotificationDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement>>;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBNotificationProps
|
|
|
22
22
|
showHeadline: boolean | string;
|
|
23
23
|
timestamp: string;
|
|
24
24
|
showTimestamp: boolean | string;
|
|
25
|
-
onClose: (event?:
|
|
25
|
+
onClose: (event?: MouseEvent | undefined) => void;
|
|
26
26
|
semantic: import("../../shared/model").SemanticType;
|
|
27
27
|
closeButtonId: string;
|
|
28
28
|
closeButtonText: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlignmentProps, GlobalProps, GlobalState, InitializedState, OrientationProps, WidthProps } from '../../shared/model';
|
|
1
|
+
import { AlignmentProps, InputEvent, GlobalProps, GlobalState, InitializedState, OrientationProps, WidthProps } from '../../shared/model';
|
|
2
2
|
import { DBTabItemProps } from '../tab-item/model';
|
|
3
3
|
import { DBTabPanelProps } from '../tab-panel/model';
|
|
4
4
|
export declare const TabsBehaviorList: readonly ["scrollbar", "arrows"];
|
|
@@ -28,27 +28,29 @@ export type DBTabsDefaultProps = {
|
|
|
28
28
|
*/
|
|
29
29
|
name?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Provide simple tabs with label + text as content
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
tabs?: DBSimpleTabProps[] | string;
|
|
34
|
+
};
|
|
35
|
+
export type DBTabsEventProps = {
|
|
34
36
|
/**
|
|
35
|
-
* Informs the user if
|
|
37
|
+
* Informs the user if the current tab index has changed.
|
|
36
38
|
*/
|
|
37
|
-
|
|
39
|
+
indexChange?: (index?: number) => void;
|
|
38
40
|
/**
|
|
39
41
|
* Informs the user if the current tab index has changed.
|
|
40
42
|
*/
|
|
41
|
-
|
|
43
|
+
onIndexChange?: (index?: number) => void;
|
|
42
44
|
/**
|
|
43
45
|
* Informs the user if another tab has been selected.
|
|
44
46
|
*/
|
|
45
|
-
|
|
47
|
+
onTabSelect?: (event?: InputEvent<HTMLElement>) => void;
|
|
46
48
|
/**
|
|
47
|
-
*
|
|
49
|
+
* Informs the user if another tab has been selected.
|
|
48
50
|
*/
|
|
49
|
-
|
|
51
|
+
tabSelect?: (event?: InputEvent<HTMLElement>) => void;
|
|
50
52
|
};
|
|
51
|
-
export type DBTabsProps = DBTabsDefaultProps & GlobalProps & OrientationProps & WidthProps & AlignmentProps;
|
|
53
|
+
export type DBTabsProps = DBTabsDefaultProps & GlobalProps & OrientationProps & WidthProps & AlignmentProps & DBTabsEventProps;
|
|
52
54
|
export type DBTabsDefaultState = {
|
|
53
55
|
_name: string;
|
|
54
56
|
scrollContainer?: Element | null;
|
|
@@ -59,6 +61,6 @@ export type DBTabsDefaultState = {
|
|
|
59
61
|
convertTabs: () => DBSimpleTabProps[];
|
|
60
62
|
initTabList: () => void;
|
|
61
63
|
initTabs: (init?: boolean) => void;
|
|
62
|
-
handleChange: (event:
|
|
64
|
+
handleChange: (event: InputEvent<HTMLElement>) => void;
|
|
63
65
|
};
|
|
64
66
|
export type DBTabsState = DBTabsDefaultState & GlobalState & InitializedState;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DBSimpleTabProps, DBTabsProps } from "./model";
|
|
2
|
+
import { InputEvent } from "../../shared/model";
|
|
2
3
|
declare var __VLS_16: {};
|
|
3
4
|
type __VLS_Slots = {} & {
|
|
4
5
|
default?: (props: typeof __VLS_16) => any;
|
|
@@ -8,16 +9,16 @@ declare const __VLS_component: import("vue").DefineComponent<DBTabsProps, {}, {}
|
|
|
8
9
|
children: any;
|
|
9
10
|
className: string;
|
|
10
11
|
id: string;
|
|
11
|
-
width: import("
|
|
12
|
+
width: import("../../shared/model").WidthType | string;
|
|
12
13
|
behavior: import("./model").TabsBehaviorType;
|
|
13
14
|
arrowScrollDistance: number | string;
|
|
14
15
|
initialSelectedIndex: number | string;
|
|
15
16
|
initialSelectedMode: import("./model").TabsInitialSelectedModeType;
|
|
16
|
-
onIndexChange: (index?: number) => void;
|
|
17
|
-
onTabSelect: (event?: Event) => void;
|
|
18
17
|
tabs: DBSimpleTabProps[] | string;
|
|
19
|
-
orientation: import("
|
|
20
|
-
alignment: import("
|
|
18
|
+
orientation: import("../../shared/model").OrientationType;
|
|
19
|
+
alignment: import("../../shared/model").AlignmentType | string;
|
|
20
|
+
onIndexChange: (index?: number) => void;
|
|
21
|
+
onTabSelect: (event?: InputEvent<HTMLElement>) => void;
|
|
21
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
23
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
24
|
export default _default;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
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
|
+
export type DBTagEventsProps = {
|
|
5
|
+
/**
|
|
6
|
+
* If "removeButton" attribute is set this function will be called when user clicks cancel button inside the tag.
|
|
7
|
+
*/
|
|
8
|
+
onRemove?: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
9
|
+
/**
|
|
10
|
+
* If "removeButton" attribute is set this function will be called when user clicks cancel button inside the tag.
|
|
11
|
+
*/
|
|
12
|
+
remove?: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
13
|
+
};
|
|
4
14
|
export type DBTagDefaultProps = {
|
|
5
15
|
/**
|
|
6
16
|
* Defines the behavior of the component:
|
|
@@ -16,14 +26,6 @@ export type DBTagDefaultProps = {
|
|
|
16
26
|
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
17
27
|
*/
|
|
18
28
|
noText?: boolean | string;
|
|
19
|
-
/**
|
|
20
|
-
* If "removeButton" attribute is set this function will be called when user clicks cancel button inside the tag.
|
|
21
|
-
*/
|
|
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;
|
|
27
29
|
/**
|
|
28
30
|
* The removeButton attribute shows the cancel button.
|
|
29
31
|
*/
|
|
@@ -41,9 +43,9 @@ export type DBTagDefaultProps = {
|
|
|
41
43
|
*/
|
|
42
44
|
value?: string;
|
|
43
45
|
};
|
|
44
|
-
export type DBTagProps = DBTagDefaultProps & GlobalProps & IconProps & SemanticProps & OverflowProps & EmphasisProps & ShowIconProps & ContentSlotProps;
|
|
46
|
+
export type DBTagProps = DBTagDefaultProps & GlobalProps & IconProps & SemanticProps & OverflowProps & EmphasisProps & ShowIconProps & ContentSlotProps & DBTagEventsProps;
|
|
45
47
|
export type DBTagDefaultState = {
|
|
46
48
|
getRemoveButtonText: () => string;
|
|
47
|
-
handleRemove: (event?: ClickEvent<HTMLButtonElement>) => void;
|
|
49
|
+
handleRemove: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
48
50
|
};
|
|
49
51
|
export type DBTagState = DBTagDefaultState & GlobalState & InitializedState;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DBTagProps } from "./model";
|
|
2
|
+
import { ClickEvent } from "../../shared/model";
|
|
2
3
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
3
4
|
type __VLS_Slots = {} & {
|
|
4
5
|
content?: (props: typeof __VLS_1) => any;
|
|
@@ -17,10 +18,10 @@ declare const __VLS_component: import("vue").DefineComponent<DBTagProps, {}, {},
|
|
|
17
18
|
semantic: import("../../shared/model").SemanticType;
|
|
18
19
|
emphasis: import("../../shared/model").EmphasisType;
|
|
19
20
|
behavior: import("./model").TagBehaviorType | string;
|
|
20
|
-
onRemove: (event?: any) => void;
|
|
21
21
|
removeButton: string;
|
|
22
22
|
showCheckState: boolean | string;
|
|
23
23
|
overflow: boolean | string;
|
|
24
|
+
onRemove: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
24
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
26
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
27
|
export default _default;
|