@db-ux/v-core-components 2.0.0-0-6589a60 → 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/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 +2 -2
- 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/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 +1 -1
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/popover/popover.vue.d.ts +1 -1
- package/dist/components/radio/radio.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/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 +1934 -1135
- 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 +31 -14
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/react.d.ts +4 -4
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DBAccordionItemProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBAccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBAccordionItemProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
children: any;
|
|
5
6
|
className: string;
|
|
6
7
|
id: string;
|
|
7
|
-
text: string;
|
|
8
8
|
onToggle: (open: boolean) => void;
|
|
9
9
|
defaultOpen: boolean;
|
|
10
10
|
headlinePlain: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DBBadgeProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBadgeProps> & Readonly<{}>, {
|
|
3
3
|
label: string;
|
|
4
|
+
text: string;
|
|
4
5
|
children: any;
|
|
5
6
|
className: string;
|
|
6
7
|
id: string;
|
|
7
8
|
size: "medium" | "small";
|
|
8
|
-
text: string;
|
|
9
9
|
semantic: "adaptive" | "neutral" | "critical" | "informational" | "warning" | "successful";
|
|
10
10
|
placement: "inline" | "corner-top-left" | "corner-top-right" | "corner-center-left" | "corner-center-right" | "corner-bottom-left" | "corner-bottom-right";
|
|
11
11
|
emphasis: "weak" | "strong" | "origin";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DBBrandProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBBrandProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBrandProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
3
4
|
children: any;
|
|
4
5
|
className: string;
|
|
5
6
|
id: string;
|
|
6
7
|
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
7
8
|
showIcon: boolean;
|
|
8
|
-
text: string;
|
|
9
9
|
hideLogo: boolean;
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
11
11
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { DBButtonProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBButtonProps> & Readonly<{}>, {
|
|
3
3
|
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
text: string;
|
|
4
6
|
ariaexpanded: boolean;
|
|
5
7
|
ariapressed: boolean;
|
|
6
8
|
disabled: boolean;
|
|
7
9
|
noText: boolean;
|
|
8
|
-
label: string;
|
|
9
10
|
type: "button" | "reset" | "submit";
|
|
10
11
|
value: string;
|
|
11
12
|
state: "loading";
|
|
@@ -19,7 +20,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBButtonPr
|
|
|
19
20
|
width: string;
|
|
20
21
|
size: "medium" | "small";
|
|
21
22
|
showIcon: boolean;
|
|
22
|
-
text: string;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
24
|
default?: ((props: {}) => any) | undefined;
|
|
25
25
|
}>;
|
|
@@ -5,8 +5,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBCheckbox
|
|
|
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;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { DBCustomSelectProps, CustomSelectOptionType } from "./model";
|
|
2
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBCustomSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:values": (...args: any[]) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<DBCustomSelectProps> & Readonly<{
|
|
5
|
+
"onUpdate:values"?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
name: string;
|
|
8
|
+
form: string;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
variant: "above" | "floating";
|
|
12
|
+
children: any;
|
|
13
|
+
className: string;
|
|
14
|
+
id: string;
|
|
15
|
+
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
16
|
+
width: string;
|
|
17
|
+
showIcon: boolean;
|
|
18
|
+
values: string[];
|
|
19
|
+
onSelect: (values: string[]) => void;
|
|
20
|
+
placement: "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
21
|
+
validation: "invalid" | "valid" | "no-validation";
|
|
22
|
+
required: boolean;
|
|
23
|
+
showLabel: boolean;
|
|
24
|
+
placeholder: string;
|
|
25
|
+
message: string;
|
|
26
|
+
validMessage: string;
|
|
27
|
+
invalidMessage: string;
|
|
28
|
+
messageIcon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
29
|
+
showMessage: boolean;
|
|
30
|
+
open: boolean;
|
|
31
|
+
multiple: boolean;
|
|
32
|
+
options: CustomSelectOptionType[];
|
|
33
|
+
amountText: string;
|
|
34
|
+
clearSelectionLabel: string;
|
|
35
|
+
deSelectAllLabel: string;
|
|
36
|
+
dropdownWidth: "string" | "full" | "auto" | "fixed";
|
|
37
|
+
loadingText: string;
|
|
38
|
+
mobileCloseButtonText: string;
|
|
39
|
+
noResultsText: string;
|
|
40
|
+
onAmountChange: (amount: number) => void;
|
|
41
|
+
removeTagsTexts: string[];
|
|
42
|
+
searchLabel: string;
|
|
43
|
+
searchPlaceholder: string;
|
|
44
|
+
selectAllLabel: string;
|
|
45
|
+
selectedType: "text" | "amount" | "tag";
|
|
46
|
+
showClearSelection: boolean;
|
|
47
|
+
showLoading: boolean;
|
|
48
|
+
showNoResults: boolean;
|
|
49
|
+
showSearch: boolean;
|
|
50
|
+
showSelectAll: boolean;
|
|
51
|
+
onDropdownToggle: (event: any) => void;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
53
|
+
default?: ((props: {}) => any) | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBCustomSelect } from './custom-select.vue';
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { BaseFormProps, CloseEventState, CustomFormProps, FormMessageProps, FormState, GlobalProps, GlobalState, IconProps, PlacementVerticalType, PopoverState, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthProps } from '../../shared/model';
|
|
2
|
+
import { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
|
|
3
|
+
import { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';
|
|
4
|
+
import { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';
|
|
5
|
+
export type CustomSelectOptionType = {
|
|
6
|
+
/**
|
|
7
|
+
* Disables this option
|
|
8
|
+
*/
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Identifier for option
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* If the value is different from the label you want to show to the user.
|
|
16
|
+
*/
|
|
17
|
+
label?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The value for the option
|
|
20
|
+
*/
|
|
21
|
+
value?: string;
|
|
22
|
+
} & DBCustomSelectListItemExtraProps;
|
|
23
|
+
export declare const SelectedTypeList: readonly ["amount", "text", "tag"];
|
|
24
|
+
export type SelectedTypeType = (typeof SelectedTypeList)[number];
|
|
25
|
+
export type DBCustomSelectDefaultProps = {
|
|
26
|
+
/**
|
|
27
|
+
* Optional: if select-type="amount" change the shown text
|
|
28
|
+
*/
|
|
29
|
+
amountText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Label for the clear selection button
|
|
32
|
+
*/
|
|
33
|
+
clearSelectionLabel?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Deselect all checkbox label
|
|
36
|
+
*/
|
|
37
|
+
deSelectAllLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Changes the behavior of the dropdown with.
|
|
40
|
+
* Default: fixed 328px
|
|
41
|
+
* Auto: Based on the size of the form-field
|
|
42
|
+
*/
|
|
43
|
+
dropdownWidth?: CustomSelectDropdownWidthType | 'string';
|
|
44
|
+
/**
|
|
45
|
+
* Dropdown - hint if data has to be loaded
|
|
46
|
+
*/
|
|
47
|
+
loadingText?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Change the button text for mobile close
|
|
50
|
+
*/
|
|
51
|
+
mobileCloseButtonText?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Enables CustomSelect
|
|
54
|
+
*/
|
|
55
|
+
multiple?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Dropdown - hint if there are no options
|
|
58
|
+
*/
|
|
59
|
+
noResultsText?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Optional: if select-type="amount" when amount changes
|
|
62
|
+
* @param amount The amount of selected checkboxes
|
|
63
|
+
*/
|
|
64
|
+
onAmountChange?: (amount: number) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Triggers after some checkbox was clicked in dropdown
|
|
67
|
+
* @param values the changed values
|
|
68
|
+
*/
|
|
69
|
+
onSelect?: (values: string[]) => void;
|
|
70
|
+
/**
|
|
71
|
+
* You should pass in the options as an array.
|
|
72
|
+
*/
|
|
73
|
+
options?: CustomSelectOptionType[];
|
|
74
|
+
/**
|
|
75
|
+
* The `placement` attributes values change the position to absolute and adds a transform based on the placement.
|
|
76
|
+
*/
|
|
77
|
+
placement?: PlacementVerticalType;
|
|
78
|
+
/**
|
|
79
|
+
* Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users
|
|
80
|
+
*/
|
|
81
|
+
removeTagsTexts?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* Search label
|
|
84
|
+
*/
|
|
85
|
+
searchLabel?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Search placeholder
|
|
88
|
+
*/
|
|
89
|
+
searchPlaceholder?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Select all checkbox label
|
|
92
|
+
*/
|
|
93
|
+
selectAllLabel?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Change the selected type for values shown in multi select
|
|
96
|
+
*/
|
|
97
|
+
selectedType?: SelectedTypeType;
|
|
98
|
+
/**
|
|
99
|
+
* Show clear selection button (default:true). Hide it if you have very small inputs e.g. in tables.
|
|
100
|
+
*/
|
|
101
|
+
showClearSelection?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Dropdown - enable loading infotext and spinner
|
|
104
|
+
*/
|
|
105
|
+
showLoading?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Dropdown - enable no options infotext
|
|
108
|
+
*/
|
|
109
|
+
showNoResults?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Forces search in header.
|
|
112
|
+
*/
|
|
113
|
+
showSearch?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Forces select all checkbox (only for multiple).
|
|
116
|
+
*/
|
|
117
|
+
showSelectAll?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Initial value for multi select
|
|
120
|
+
*/
|
|
121
|
+
values?: string[];
|
|
122
|
+
/**
|
|
123
|
+
* Programmatically open the dropdown. May differ if you don't use onDropdownToggle.
|
|
124
|
+
*/
|
|
125
|
+
open?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Informs the user when dropdown was toggled.
|
|
128
|
+
*/
|
|
129
|
+
onDropdownToggle?: (event: any) => void;
|
|
130
|
+
};
|
|
131
|
+
export type DBCustomSelectProps = GlobalProps & CustomFormProps & BaseFormProps & RequiredProps & FormMessageProps & DBCustomSelectDefaultProps & DBCustomSelectFormFieldDefaultProps & WidthProps & IconProps & ShowIconProps & ShowLabelProps;
|
|
132
|
+
export type DBCustomSelectDefaultState = {
|
|
133
|
+
_validity?: ValidationType;
|
|
134
|
+
_values?: string[];
|
|
135
|
+
_options?: CustomSelectOptionType[];
|
|
136
|
+
_selectedOptions?: CustomSelectOptionType[];
|
|
137
|
+
_hasNoOptions: boolean;
|
|
138
|
+
_selectId?: string;
|
|
139
|
+
_labelId?: string;
|
|
140
|
+
_summaryId?: string;
|
|
141
|
+
_placeholderId?: string;
|
|
142
|
+
_selectedLabels?: string;
|
|
143
|
+
_selectedLabelsId?: string;
|
|
144
|
+
_infoTextId?: string;
|
|
145
|
+
_externalChangeTimestamp?: number;
|
|
146
|
+
_internalChangeTimestamp?: number;
|
|
147
|
+
_name?: string;
|
|
148
|
+
getNativeSelectValue: () => string;
|
|
149
|
+
getOptionLabel: (option: CustomSelectOptionType) => string;
|
|
150
|
+
getOptionChecked: (value?: string) => boolean;
|
|
151
|
+
getOptionKey: (option: CustomSelectOptionType) => string;
|
|
152
|
+
getTagRemoveLabel: (index: number) => string;
|
|
153
|
+
selectAllEnabled: boolean;
|
|
154
|
+
searchEnabled: boolean;
|
|
155
|
+
amountOptions: number;
|
|
156
|
+
setDescById: (descId?: string) => void;
|
|
157
|
+
handleTagRemove: (option: CustomSelectOptionType, event?: any) => void;
|
|
158
|
+
handleSummaryFocus: () => void;
|
|
159
|
+
handleSelect: (value?: string) => void;
|
|
160
|
+
handleSelectAll: () => void;
|
|
161
|
+
handleClearAll: () => void;
|
|
162
|
+
handleDropdownToggle: (event: any) => void;
|
|
163
|
+
handleDocumentClose: (event: any) => void;
|
|
164
|
+
handleOpenByKeyboardFocus: (onlySearch?: boolean) => void;
|
|
165
|
+
handleFocusFirstDropdownCheckbox: (activeElement?: Element) => void;
|
|
166
|
+
handleKeyboardPress: (event: any) => void;
|
|
167
|
+
handleArrowDownUp: (event: any) => void;
|
|
168
|
+
handleSearch: (event: any) => void;
|
|
169
|
+
getSelectAllLabel: () => string;
|
|
170
|
+
selectAllChecked: boolean;
|
|
171
|
+
selectAllIndeterminate: boolean;
|
|
172
|
+
};
|
|
173
|
+
export type DBCustomSelectState = DBCustomSelectDefaultState & GlobalState & FormState & CloseEventState & PopoverState;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DBCustomSelectDropdownProps } from "./model";
|
|
2
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBCustomSelectDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBCustomSelectDropdownProps> & Readonly<{}>, {
|
|
3
|
+
children: any;
|
|
4
|
+
className: string;
|
|
5
|
+
id: string;
|
|
6
|
+
width: string;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
8
|
+
default?: ((props: {}) => any) | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBCustomSelectDropdown } from './custom-select-dropdown.vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export declare const CustomSelectDropdownWidthList: readonly ["fixed", "auto", "full"];
|
|
3
|
+
export type CustomSelectDropdownWidthType = (typeof CustomSelectDropdownWidthList)[number];
|
|
4
|
+
export type DBCustomSelectDropdownDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Changes the behavior of the dropdown with.
|
|
7
|
+
* Default: fixed 328px
|
|
8
|
+
* Full: Based on the size of the form-field
|
|
9
|
+
* Auto: Based on the size of the largest list item
|
|
10
|
+
*/
|
|
11
|
+
width?: CustomSelectDropdownWidthType | string;
|
|
12
|
+
};
|
|
13
|
+
export type DBCustomSelectDropdownProps = DBCustomSelectDropdownDefaultProps & GlobalProps;
|
|
14
|
+
export type DBCustomSelectDropdownDefaultState = {};
|
|
15
|
+
export type DBCustomSelectDropdownState = DBCustomSelectDropdownDefaultState & GlobalState;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("../../shared/model").GlobalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../../shared/model").GlobalProps> & Readonly<{}>, {
|
|
2
|
+
children: any;
|
|
3
|
+
className: string;
|
|
4
|
+
id: string;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
6
|
+
default?: ((props: {}) => any) | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBCustomSelectFormField } from './custom-select-form-field.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBCustomSelectFormFieldDefaultProps = {};
|
|
3
|
+
export type DBCustomSelectFormFieldProps = DBCustomSelectFormFieldDefaultProps & GlobalProps;
|
|
4
|
+
export type DBCustomSelectFormFieldDefaultState = {};
|
|
5
|
+
export type DBCustomSelectFormFieldState = DBCustomSelectFormFieldDefaultState & GlobalState;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DBCustomSelectListProps } from "./model";
|
|
2
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBCustomSelectListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBCustomSelectListProps> & Readonly<{}>, {
|
|
3
|
+
label: string;
|
|
4
|
+
children: any;
|
|
5
|
+
className: string;
|
|
6
|
+
id: string;
|
|
7
|
+
multiple: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
9
|
+
default?: ((props: {}) => any) | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBCustomSelectList } from './custom-select-list.vue';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBCustomSelectListDefaultProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type DBCustomSelectListProps = DBCustomSelectListDefaultProps & GlobalProps;
|
|
7
|
+
export type DBCustomSelectListDefaultState = {};
|
|
8
|
+
export type DBCustomSelectListState = DBCustomSelectListDefaultState & GlobalState;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DBCustomSelectListItemProps } from "./model";
|
|
2
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBCustomSelectListItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:checked": (...args: any[]) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<DBCustomSelectListItemProps> & Readonly<{
|
|
5
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
name: string;
|
|
8
|
+
label: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
type: "checkbox" | "radio";
|
|
11
|
+
value: any;
|
|
12
|
+
children: any;
|
|
13
|
+
className: string;
|
|
14
|
+
id: string;
|
|
15
|
+
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
16
|
+
showIcon: boolean;
|
|
17
|
+
change: (event: Event) => void;
|
|
18
|
+
onChange: (event: Event) => void;
|
|
19
|
+
checked: boolean;
|
|
20
|
+
groupTitle: string;
|
|
21
|
+
isGroupTitle: boolean;
|
|
22
|
+
showDivider: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
|
+
default?: ((props: {}) => any) | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBCustomSelectListItem } from './custom-select-list-item.vue';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseFormProps, ChangeEventProps, ChangeEventState, FormCheckProps, GlobalProps, GlobalState, IconProps, ShowIconProps, ValueProps } from '../../shared/model';
|
|
2
|
+
export declare const CustomSelectListItemTypeList: readonly ["checkbox", "radio"];
|
|
3
|
+
export type CustomSelectListItemTypeType = (typeof CustomSelectListItemTypeList)[number];
|
|
4
|
+
export type DBCustomSelectListItemExtraProps = {
|
|
5
|
+
/**
|
|
6
|
+
* If the item is a group title (only text)
|
|
7
|
+
*/
|
|
8
|
+
isGroupTitle?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Show a divider on the bottom of the list item for visual grouping (don't use it on every item)
|
|
11
|
+
*/
|
|
12
|
+
showDivider?: boolean;
|
|
13
|
+
} & IconProps & ShowIconProps;
|
|
14
|
+
export type DBCustomSelectListItemDefaultProps = {
|
|
15
|
+
/**
|
|
16
|
+
* Set the title of a group of items - disables radio/checkbox behavior
|
|
17
|
+
*/
|
|
18
|
+
groupTitle?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Change the behavior of the item single(radio) or multiple(checkbox)
|
|
21
|
+
*/
|
|
22
|
+
type?: CustomSelectListItemTypeType;
|
|
23
|
+
};
|
|
24
|
+
export type DBCustomSelectListItemProps = DBCustomSelectListItemDefaultProps & GlobalProps & BaseFormProps & ValueProps & FormCheckProps & ChangeEventProps<HTMLInputElement> & DBCustomSelectListItemExtraProps;
|
|
25
|
+
export type DBCustomSelectListItemDefaultState = {
|
|
26
|
+
getIconAfter: () => string | undefined;
|
|
27
|
+
hasDivider?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type DBCustomSelectListItemState = DBCustomSelectListItemDefaultState & ChangeEventState<HTMLInputElement> & GlobalState;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DBIconProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBIconProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
3
4
|
variant: "filled" | "default" | "inverted";
|
|
4
5
|
children: any;
|
|
5
6
|
className: string;
|
|
6
7
|
id: string;
|
|
7
8
|
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
8
|
-
text: string;
|
|
9
9
|
weight: "16" | "20" | "24" | "32" | "48" | "64";
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
11
11
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DBInfotextProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBInfotextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBInfotextProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
3
4
|
children: any;
|
|
4
5
|
className: string;
|
|
5
6
|
id: string;
|
|
6
7
|
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
7
8
|
size: "medium" | "small";
|
|
8
9
|
showIcon: boolean;
|
|
9
|
-
text: string;
|
|
10
10
|
semantic: "adaptive" | "neutral" | "critical" | "informational" | "warning" | "successful";
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
12
12
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -7,8 +7,11 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBInputPro
|
|
|
7
7
|
}>, {
|
|
8
8
|
name: string;
|
|
9
9
|
step: string | number;
|
|
10
|
-
|
|
10
|
+
form: string;
|
|
11
|
+
input: (event: Event) => void;
|
|
11
12
|
label: string;
|
|
13
|
+
pattern: string;
|
|
14
|
+
disabled: boolean;
|
|
12
15
|
type: string;
|
|
13
16
|
value: any;
|
|
14
17
|
variant: "above" | "floating";
|
|
@@ -22,13 +25,11 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBInputPro
|
|
|
22
25
|
blur: (event: FocusEvent) => void;
|
|
23
26
|
change: (event: Event) => void;
|
|
24
27
|
focus: (event: FocusEvent) => void;
|
|
25
|
-
input: (event: Event) => void;
|
|
26
|
-
form: string;
|
|
27
|
-
pattern: string;
|
|
28
28
|
onFocus: (event: FocusEvent) => void;
|
|
29
29
|
onBlur: (event: FocusEvent) => void;
|
|
30
30
|
onChange: (event: Event) => void;
|
|
31
31
|
onInput: (event: Event) => void;
|
|
32
|
+
ariaDescribedBy: string;
|
|
32
33
|
validation: "invalid" | "valid" | "no-validation";
|
|
33
34
|
required: boolean;
|
|
34
35
|
showLabel: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DBLinkProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBLinkProps> & Readonly<{}>, {
|
|
3
|
-
disabled: boolean;
|
|
4
3
|
label: string;
|
|
4
|
+
text: string;
|
|
5
|
+
disabled: boolean;
|
|
5
6
|
variant: "adaptive" | "brand";
|
|
6
7
|
children: any;
|
|
7
8
|
className: string;
|
|
@@ -9,7 +10,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBLinkProp
|
|
|
9
10
|
onClick: (event: MouseEvent) => void;
|
|
10
11
|
size: "medium" | "small";
|
|
11
12
|
showIcon: boolean;
|
|
12
|
-
text: string;
|
|
13
13
|
target: "_self" | "_blank" | "_parent" | "_top";
|
|
14
14
|
role: string;
|
|
15
15
|
content: "external" | "internal";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DBNavigationItemProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationItemProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
children: any;
|
|
5
6
|
className: string;
|
|
@@ -8,7 +9,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBNavigati
|
|
|
8
9
|
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
9
10
|
width: string;
|
|
10
11
|
showIcon: boolean;
|
|
11
|
-
text: string;
|
|
12
12
|
active: boolean;
|
|
13
13
|
subNavigationExpanded: boolean;
|
|
14
14
|
backButtonId: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DBNotificationProps } from "./model";
|
|
2
2
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBNotificationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNotificationProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
3
4
|
variant: "docked" | "standalone" | "overlay";
|
|
4
5
|
children: any;
|
|
5
6
|
className: string;
|
|
6
7
|
id: string;
|
|
7
8
|
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
8
9
|
showIcon: boolean;
|
|
9
|
-
text: string;
|
|
10
10
|
ariaLive: "off" | "assertive" | "polite";
|
|
11
11
|
closeable: boolean;
|
|
12
12
|
headline: any;
|
|
@@ -6,7 +6,7 @@ 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" | "
|
|
9
|
+
placement: "left" | "right" | "left-start" | "left-end" | "right-start" | "right-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
10
10
|
spacing: string;
|
|
11
11
|
open: boolean;
|
|
12
12
|
gap: boolean;
|
|
@@ -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;
|
|
@@ -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;
|