@db-ux/v-core-components 1.0.1 → 1.1.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/dist/components/input/input.vue.d.ts +1 -0
- package/dist/components/input/model.d.ts +2 -2
- package/dist/components/link/link.vue.d.ts +3 -3
- package/dist/components/select/model.d.ts +2 -2
- package/dist/components/select/select.vue.d.ts +1 -0
- package/dist/components/switch/model.d.ts +2 -2
- package/dist/components/switch/switch.vue.d.ts +1 -0
- package/dist/components/tab-panel/tab-panel.vue.d.ts +1 -1
- package/dist/components/tabs/model.d.ts +9 -0
- package/dist/components/tabs/tabs.vue.d.ts +2 -0
- package/dist/components/textarea/textarea.vue.d.ts +1 -1
- package/dist/db-ux.es.js +774 -756
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +6 -0
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/react.d.ts +7 -0
- package/package.json +5 -5
|
@@ -21,6 +21,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBInputPro
|
|
|
21
21
|
id: string;
|
|
22
22
|
autofocus: boolean;
|
|
23
23
|
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
24
|
+
size: number;
|
|
24
25
|
showIcon: boolean;
|
|
25
26
|
blur: (event: FocusEvent) => void;
|
|
26
27
|
change: (event: Event) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, GlobalProps, GlobalState, IconAfterProps, IconProps, InputEventProps, InputEventState, ShowIconProps, ValueLabelType } from '../../shared/model';
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, GlobalProps, GlobalState, IconAfterProps, IconProps, InputEventProps, InputEventState, ShowIconProps, ValueLabelType } from '../../shared/model';
|
|
2
2
|
export declare const InputTypeList: readonly ["color", "date", "datetime-local", "email", "file", "hidden", "month", "number", "password", "range", "search", "tel", "text", "time", "url", "week"];
|
|
3
3
|
export type InputTypeType = (typeof InputTypeList)[number];
|
|
4
4
|
export type DBInputDefaultProps = {
|
|
@@ -31,7 +31,7 @@ export type DBInputDefaultProps = {
|
|
|
31
31
|
*/
|
|
32
32
|
step?: number | string;
|
|
33
33
|
};
|
|
34
|
-
export type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps & IconAfterProps & FormMessageProps & ShowIconProps;
|
|
34
|
+
export type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps & IconAfterProps & FormMessageProps & ShowIconProps & FormSizeProps;
|
|
35
35
|
export type DBInputDefaultState = {
|
|
36
36
|
_dataListId?: string;
|
|
37
37
|
getDataList: (_list?: string[] | ValueLabelType[]) => ValueLabelType[];
|
|
@@ -4,9 +4,6 @@ type __VLS_TemplateRefs = {
|
|
|
4
4
|
_ref: typeof __VLS_nativeElements['a'];
|
|
5
5
|
};
|
|
6
6
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBLinkProps> & Readonly<{}>, {
|
|
7
|
-
rel: string;
|
|
8
|
-
content: "external" | "internal";
|
|
9
|
-
role: string;
|
|
10
7
|
disabled: boolean;
|
|
11
8
|
label: string;
|
|
12
9
|
variant: "adaptive" | "brand";
|
|
@@ -18,9 +15,12 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBLinkProp
|
|
|
18
15
|
showIcon: boolean;
|
|
19
16
|
text: string;
|
|
20
17
|
target: "_self" | "_blank" | "_parent" | "_top";
|
|
18
|
+
role: string;
|
|
19
|
+
content: "external" | "internal";
|
|
21
20
|
current: boolean | "time" | "true" | "false" | "date" | "page" | "step" | "location";
|
|
22
21
|
href: string;
|
|
23
22
|
hreflang: string;
|
|
23
|
+
rel: string;
|
|
24
24
|
selected: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, HTMLAnchorElement>, {
|
|
26
26
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, GlobalProps, GlobalState, IconProps, InitializedState, InputEventProps, InputEventState, ShowIconProps } from '../../shared/model';
|
|
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
|
* The description attribute will add a paragraph below the select.
|
|
@@ -35,7 +35,7 @@ export type DBSelectOptionType = {
|
|
|
35
35
|
*/
|
|
36
36
|
value: string | string[] | number;
|
|
37
37
|
};
|
|
38
|
-
export type DBSelectProps = DBSelectDefaultProps & GlobalProps & ClickEventProps<HTMLSelectElement> & ChangeEventProps<HTMLSelectElement> & FocusEventProps<HTMLSelectElement> & InputEventProps<HTMLSelectElement> & FormProps & IconProps & FormMessageProps & ShowIconProps;
|
|
38
|
+
export type DBSelectProps = DBSelectDefaultProps & GlobalProps & ClickEventProps<HTMLSelectElement> & ChangeEventProps<HTMLSelectElement> & FocusEventProps<HTMLSelectElement> & InputEventProps<HTMLSelectElement> & FormProps & IconProps & FormMessageProps & ShowIconProps & FormSizeProps;
|
|
39
39
|
export type DBSelectDefaultState = {
|
|
40
40
|
_placeholderId: string;
|
|
41
41
|
getOptionLabel: (option: DBSelectOptionType) => string;
|
|
@@ -18,6 +18,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBSelectPr
|
|
|
18
18
|
id: string;
|
|
19
19
|
onClick: (event: MouseEvent) => void;
|
|
20
20
|
icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
|
|
21
|
+
size: number;
|
|
21
22
|
showIcon: boolean;
|
|
22
23
|
blur: (event: FocusEvent) => void;
|
|
23
24
|
change: (event: Event) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, EmphasisProps, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, IconAfterProps, IconProps,
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, EmphasisProps, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, IconAfterProps, IconProps, SizeProps } from '../../shared/model';
|
|
2
2
|
export type DBSwitchDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Add additional icons to indicate active/inactive state.
|
|
@@ -9,4 +9,4 @@ export type DBSwitchProps = DBSwitchDefaultProps & GlobalProps & ChangeEventProp
|
|
|
9
9
|
export type DBSwitchDefaultState = {
|
|
10
10
|
_checked: boolean;
|
|
11
11
|
};
|
|
12
|
-
export type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState
|
|
12
|
+
export type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState;
|
|
@@ -4,10 +4,10 @@ type __VLS_TemplateRefs = {
|
|
|
4
4
|
_ref: typeof __VLS_nativeElements['section'];
|
|
5
5
|
};
|
|
6
6
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBTabPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTabPanelProps> & Readonly<{}>, {
|
|
7
|
-
content: string;
|
|
8
7
|
children: any;
|
|
9
8
|
className: string;
|
|
10
9
|
id: string;
|
|
10
|
+
content: string;
|
|
11
11
|
labelledBy: string;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, HTMLElement>, {
|
|
13
13
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -27,6 +27,14 @@ export type DBTabsDefaultProps = {
|
|
|
27
27
|
* The name of the tab bar, is required for grouping multiple tabs together. Will overwrite names from children.
|
|
28
28
|
*/
|
|
29
29
|
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Informs the user if the current tab index has changed.
|
|
32
|
+
*/
|
|
33
|
+
onIndexChange?: (index?: number) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Informs the user if another tab has been selected.
|
|
36
|
+
*/
|
|
37
|
+
onTabSelect?: (event?: Event) => void;
|
|
30
38
|
/**
|
|
31
39
|
* Provide simple tabs with label + text as content
|
|
32
40
|
*/
|
|
@@ -43,5 +51,6 @@ export type DBTabsDefaultState = {
|
|
|
43
51
|
convertTabs: (tabs?: unknown[] | string | undefined) => DBSimpleTabProps[];
|
|
44
52
|
initTabList: () => void;
|
|
45
53
|
initTabs: (init?: boolean) => void;
|
|
54
|
+
handleChange: (event: any) => void;
|
|
46
55
|
};
|
|
47
56
|
export type DBTabsState = DBTabsDefaultState & GlobalState & InitializedState;
|
|
@@ -13,6 +13,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBTabsProp
|
|
|
13
13
|
arrowScrollDistance: number;
|
|
14
14
|
initialSelectedIndex: number;
|
|
15
15
|
initialSelectedMode: "auto" | "manually";
|
|
16
|
+
onIndexChange: (index?: number | undefined) => void;
|
|
17
|
+
onTabSelect: (event?: Event | undefined) => void;
|
|
16
18
|
tabs: string | DBSimpleTabProps[];
|
|
17
19
|
orientation: "horizontal" | "vertical";
|
|
18
20
|
alignment: "start" | "center";
|
|
@@ -9,7 +9,6 @@ declare const _default: import("vue").DefineComponent<DBTextareaProps, {}, {}, {
|
|
|
9
9
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
name: string;
|
|
12
|
-
spellCheck: boolean;
|
|
13
12
|
disabled: boolean;
|
|
14
13
|
label: string;
|
|
15
14
|
value: any;
|
|
@@ -41,6 +40,7 @@ declare const _default: import("vue").DefineComponent<DBTextareaProps, {}, {}, {
|
|
|
41
40
|
readOnly: boolean;
|
|
42
41
|
cols: number;
|
|
43
42
|
rows: number;
|
|
43
|
+
spellCheck: boolean;
|
|
44
44
|
wrap: "off" | "hard" | "soft";
|
|
45
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, HTMLDivElement>;
|
|
46
46
|
export default _default;
|