@db-ux/v-core-components 2.0.8 → 2.0.10-popover-d7e8b9a
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/checkbox/checkbox.vue.d.ts +1 -0
- package/dist/components/custom-select/custom-select.vue.d.ts +2 -1
- package/dist/components/custom-select/model.d.ts +6 -5
- package/dist/components/icon/icon.vue.d.ts +1 -1
- package/dist/components/icon/model.d.ts +1 -3
- package/dist/components/popover/model.d.ts +0 -1
- package/dist/components/radio/model.d.ts +1 -3
- package/dist/components/radio/radio.vue.d.ts +1 -0
- package/dist/components/select/model.d.ts +2 -1
- package/dist/components/select/select.vue.d.ts +1 -0
- package/dist/components/switch/switch.vue.d.ts +1 -0
- package/dist/components/textarea/textarea.vue.d.ts +1 -0
- package/dist/components/tooltip/model.d.ts +5 -3
- package/dist/db-ux.es.js +1854 -1671
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +12 -3
- package/dist/utils/document-scroll-listener.d.ts +9 -0
- package/dist/utils/floating-components.d.ts +7 -0
- package/dist/utils/index.d.ts +0 -13
- package/dist/utils/navigation.d.ts +1 -1
- package/package.json +4 -4
|
@@ -21,6 +21,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBCheckboxProps, {}
|
|
|
21
21
|
onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
22
22
|
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
23
23
|
indeterminate: boolean | string;
|
|
24
|
+
ariaDescribedBy: string;
|
|
24
25
|
validation: import("../../shared/model").ValidationType;
|
|
25
26
|
required: boolean | string;
|
|
26
27
|
showLabel: boolean | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomSelectOptionType, DBCustomSelectProps } from "./model";
|
|
2
2
|
declare var __VLS_1: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -20,6 +20,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBCustomSelectProps
|
|
|
20
20
|
showIcon: boolean | string;
|
|
21
21
|
values: string[];
|
|
22
22
|
placement: import("../../shared/model").PlacementVerticalType;
|
|
23
|
+
ariaDescribedBy: string;
|
|
23
24
|
validation: import("../../shared/model").ValidationType;
|
|
24
25
|
required: boolean | string;
|
|
25
26
|
showLabel: boolean | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseFormProps, CloseEventState, CustomFormProps, FormMessageProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, PlacementVerticalType,
|
|
1
|
+
import { BaseFormProps, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, 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';
|
|
@@ -176,11 +176,11 @@ export type DBCustomSelectDefaultState = {
|
|
|
176
176
|
handleTagRemove: (option: CustomSelectOptionType, event?: any) => void;
|
|
177
177
|
handleSummaryFocus: () => void;
|
|
178
178
|
handleSelect: (value?: string) => void;
|
|
179
|
-
handleSelectAll: () => void;
|
|
180
|
-
handleClearAll: () => void;
|
|
179
|
+
handleSelectAll: (event: any) => void;
|
|
180
|
+
handleClearAll: (event: any) => void;
|
|
181
181
|
handleDropdownToggle: (event: any) => void;
|
|
182
182
|
handleDocumentClose: (event: any) => void;
|
|
183
|
-
handleOpenByKeyboardFocus: (
|
|
183
|
+
handleOpenByKeyboardFocus: () => void;
|
|
184
184
|
handleFocusFirstDropdownCheckbox: (activeElement?: Element) => void;
|
|
185
185
|
handleKeyboardPress: (event: any) => void;
|
|
186
186
|
handleArrowDownUp: (event: any) => void;
|
|
@@ -189,5 +189,6 @@ export type DBCustomSelectDefaultState = {
|
|
|
189
189
|
getSelectAllLabel: () => string;
|
|
190
190
|
selectAllChecked: boolean;
|
|
191
191
|
selectAllIndeterminate: boolean;
|
|
192
|
+
handleAutoPlacement: () => void;
|
|
192
193
|
};
|
|
193
|
-
export type DBCustomSelectState = DBCustomSelectDefaultState & GlobalState & FormState & FromValidState & CloseEventState &
|
|
194
|
+
export type DBCustomSelectState = DBCustomSelectDefaultState & GlobalState & FormState & FromValidState & CloseEventState & DocumentScrollState;
|
|
@@ -5,7 +5,7 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<DBIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBIconProps> & Readonly<{}>, {
|
|
7
7
|
text: string;
|
|
8
|
-
variant:
|
|
8
|
+
variant: string;
|
|
9
9
|
children: any;
|
|
10
10
|
className: string;
|
|
11
11
|
id: string;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';
|
|
2
|
-
export declare const IconVariantList: readonly ["default", "inverted", "filled"];
|
|
3
|
-
export type IconVariantType = (typeof IconVariantList)[number];
|
|
4
2
|
export declare const IconWeightList: readonly ["16", "20", "24", "32", "48", "64"];
|
|
5
3
|
export type IconWeightType = (typeof IconWeightList)[number];
|
|
6
4
|
export type DBIconDefaultProps = {
|
|
7
|
-
variant?:
|
|
5
|
+
variant?: string;
|
|
8
6
|
weight?: IconWeightType;
|
|
9
7
|
};
|
|
10
8
|
export type DBIconProps = DBIconDefaultProps & GlobalProps & IconProps & TextProps;
|
|
@@ -13,6 +13,5 @@ export type DBPopoverProps = DBPopoverDefaultProps & GlobalProps & SpacingProps
|
|
|
13
13
|
export type DBPopoverDefaultState = {
|
|
14
14
|
isExpanded?: boolean;
|
|
15
15
|
getTrigger: () => Element | null;
|
|
16
|
-
handleLeave: (event: any) => void;
|
|
17
16
|
};
|
|
18
17
|
export type DBPopoverState = DBPopoverDefaultState & GlobalState & PopoverState & InitializedState;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
|
|
2
|
-
export type DBRadioDefaultProps = {
|
|
3
|
-
describedbyid?: string;
|
|
4
|
-
};
|
|
2
|
+
export type DBRadioDefaultProps = {};
|
|
5
3
|
export type DBRadioProps = DBRadioDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & SizeProps;
|
|
6
4
|
export type DBRadioDefaultState = {};
|
|
7
5
|
export type DBRadioState = DBRadioDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState;
|
|
@@ -21,6 +21,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBRadioProps, {}, {
|
|
|
21
21
|
onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
22
22
|
onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
23
23
|
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
24
|
+
ariaDescribedBy: string;
|
|
24
25
|
validation: import("../../shared/model").ValidationType;
|
|
25
26
|
required: boolean | string;
|
|
26
27
|
showLabel: boolean | string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
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
|
+
* @deprecated
|
|
5
|
+
* Enables multiple select, but it isn't styled, please use DBCustomSelect/db-custom-select instead
|
|
5
6
|
*/
|
|
6
7
|
multiple?: boolean;
|
|
7
8
|
/**
|
|
@@ -26,6 +26,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBSelectProps, {},
|
|
|
26
26
|
onBlur: (event: InteractionEvent<HTMLSelectElement>) => void;
|
|
27
27
|
onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
|
|
28
28
|
onInput: (event: InputEvent<HTMLSelectElement>) => void;
|
|
29
|
+
ariaDescribedBy: string;
|
|
29
30
|
validation: import("../../shared/model").ValidationType;
|
|
30
31
|
required: boolean | string;
|
|
31
32
|
showLabel: boolean | string;
|
|
@@ -23,6 +23,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBSwitchProps, {},
|
|
|
23
23
|
onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
24
24
|
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
25
25
|
emphasis: import("../../shared/model").EmphasisType;
|
|
26
|
+
ariaDescribedBy: string;
|
|
26
27
|
validation: import("../../shared/model").ValidationType;
|
|
27
28
|
required: boolean | string;
|
|
28
29
|
showLabel: boolean | string;
|
|
@@ -19,6 +19,7 @@ declare const _default: import("vue").DefineComponent<DBTextareaProps, {}, {}, {
|
|
|
19
19
|
onBlur: (event: InteractionEvent<HTMLTextAreaElement>) => void;
|
|
20
20
|
onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
21
21
|
onInput: (event: InputEvent<HTMLTextAreaElement>) => void;
|
|
22
|
+
ariaDescribedBy: string;
|
|
22
23
|
validation: import("../../shared/model").ValidationType;
|
|
23
24
|
required: boolean | string;
|
|
24
25
|
showLabel: boolean | string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { ClickEventState, EmphasisProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState } from '../../shared/model';
|
|
1
|
+
import { ClickEventState, DocumentScrollState, EmphasisProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState } from '../../shared/model';
|
|
2
2
|
export type DBTooltipDefaultProps = {
|
|
3
3
|
showArrow?: boolean | string;
|
|
4
4
|
};
|
|
5
5
|
export type DBTooltipProps = DBTooltipDefaultProps & GlobalProps & EmphasisProps & PlacementProps & PopoverProps;
|
|
6
|
-
export type DBTooltipDefaultState = {
|
|
7
|
-
|
|
6
|
+
export type DBTooltipDefaultState = {
|
|
7
|
+
getParent: () => HTMLElement;
|
|
8
|
+
};
|
|
9
|
+
export type DBTooltipState = DBTooltipDefaultState & GlobalState & ClickEventState<HTMLElement> & PopoverState & InitializedState & DocumentScrollState;
|