@db-ux/v-core-components 2.0.0-0-custom-select-16b8cce → 2.0.1

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.
Files changed (63) hide show
  1. package/dist/components/accordion/accordion.vue.d.ts +33 -8
  2. package/dist/components/accordion/model.d.ts +2 -2
  3. package/dist/components/accordion-item/accordion-item.vue.d.ts +40 -8
  4. package/dist/components/accordion-item/model.d.ts +5 -5
  5. package/dist/components/badge/badge.vue.d.ts +30 -8
  6. package/dist/components/badge/model.d.ts +2 -2
  7. package/dist/components/brand/brand.vue.d.ts +27 -6
  8. package/dist/components/button/button.vue.d.ts +54 -15
  9. package/dist/components/button/model.d.ts +11 -7
  10. package/dist/components/card/card.vue.d.ts +30 -9
  11. package/dist/components/checkbox/checkbox.vue.d.ts +83 -20
  12. package/dist/components/checkbox/model.d.ts +3 -3
  13. package/dist/components/custom-select/custom-select.vue.d.ts +221 -22
  14. package/dist/components/custom-select/model.d.ts +49 -29
  15. package/dist/components/custom-select-dropdown/custom-select-dropdown.vue.d.ts +20 -5
  16. package/dist/components/custom-select-form-field/custom-select-form-field.vue.d.ts +18 -4
  17. package/dist/components/custom-select-list/custom-select-list.vue.d.ts +20 -4
  18. package/dist/components/custom-select-list-item/custom-select-list-item.vue.d.ts +53 -12
  19. package/dist/components/divider/divider.vue.d.ts +3 -3
  20. package/dist/components/drawer/drawer.vue.d.ts +47 -13
  21. package/dist/components/drawer/model.d.ts +2 -2
  22. package/dist/components/header/header.vue.d.ts +57 -13
  23. package/dist/components/header/model.d.ts +2 -2
  24. package/dist/components/icon/icon.vue.d.ts +25 -7
  25. package/dist/components/infotext/infotext.vue.d.ts +28 -8
  26. package/dist/components/input/input.vue.d.ts +131 -33
  27. package/dist/components/input/model.d.ts +3 -3
  28. package/dist/components/link/link.vue.d.ts +48 -14
  29. package/dist/components/navigation/navigation.vue.d.ts +21 -4
  30. package/dist/components/navigation-item/model.d.ts +6 -3
  31. package/dist/components/navigation-item/navigation-item.vue.d.ts +76 -12
  32. package/dist/components/notification/model.d.ts +3 -3
  33. package/dist/components/notification/notification.vue.d.ts +58 -17
  34. package/dist/components/page/model.d.ts +1 -1
  35. package/dist/components/page/page.vue.d.ts +32 -9
  36. package/dist/components/popover/model.d.ts +1 -1
  37. package/dist/components/popover/popover.vue.d.ts +40 -13
  38. package/dist/components/radio/radio.vue.d.ts +56 -17
  39. package/dist/components/section/section.vue.d.ts +24 -6
  40. package/dist/components/select/model.d.ts +2 -2
  41. package/dist/components/select/select.vue.d.ts +106 -24
  42. package/dist/components/stack/model.d.ts +1 -1
  43. package/dist/components/stack/stack.vue.d.ts +31 -10
  44. package/dist/components/switch/model.d.ts +2 -2
  45. package/dist/components/switch/switch.vue.d.ts +67 -21
  46. package/dist/components/tab-item/model.d.ts +6 -6
  47. package/dist/components/tab-item/tab-item.vue.d.ts +52 -14
  48. package/dist/components/tab-list/tab-list.vue.d.ts +20 -4
  49. package/dist/components/tab-panel/tab-panel.vue.d.ts +20 -4
  50. package/dist/components/tabs/model.d.ts +11 -3
  51. package/dist/components/tabs/tabs.vue.d.ts +60 -15
  52. package/dist/components/tag/model.d.ts +9 -5
  53. package/dist/components/tag/tag.vue.d.ts +49 -15
  54. package/dist/components/textarea/model.d.ts +4 -4
  55. package/dist/components/textarea/textarea.vue.d.ts +24 -23
  56. package/dist/components/tooltip/model.d.ts +1 -1
  57. package/dist/components/tooltip/tooltip.vue.d.ts +37 -11
  58. package/dist/db-ux.es.js +1969 -1812
  59. package/dist/db-ux.umd.js +1 -1
  60. package/dist/shared/model.d.ts +56 -31
  61. package/dist/utils/document-click-listener.d.ts +8 -0
  62. package/dist/utils/index.d.ts +5 -28
  63. package/package.json +8 -7
@@ -1,22 +1,56 @@
1
- import { DBDrawerProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBDrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBDrawerProps> & Readonly<{}>, {
3
- variant: "modal" | "inside";
1
+ import { DBDrawerProps, DBDrawerState } from "./model";
2
+ import DBButton from "../button/button.vue";
3
+ import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants";
4
+ import { cls, getBooleanAsString } from "../../utils";
5
+ declare const _ref: import("vue").Ref<any, any>;
6
+ declare const dialogContainerRef: import("vue").Ref<any, any>;
7
+ declare function handleClose(event: any): ReturnType<DBDrawerState["handleClose"]>;
8
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
9
+ declare var __VLS_1: {}, __VLS_6: {};
10
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
11
+ 'drawer-header'?: (props: typeof __VLS_1) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_6) => any;
14
+ }>;
15
+ declare const __VLS_self: import("vue").DefineComponent<DBDrawerProps, {
16
+ DBButton: typeof DBButton;
17
+ DEFAULT_CLOSE_BUTTON: typeof DEFAULT_CLOSE_BUTTON;
18
+ cls: typeof cls;
19
+ getBooleanAsString: typeof getBooleanAsString;
20
+ _ref: typeof _ref;
21
+ dialogContainerRef: typeof dialogContainerRef;
22
+ handleClose: typeof handleClose;
23
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBDrawerProps> & Readonly<{}>, {
24
+ variant: import("./model").DrawerVariantType;
4
25
  children: any;
5
26
  className: string;
6
27
  id: string;
7
- width: string;
28
+ width: import("../..").WidthType | string;
8
29
  onClose: (event?: any) => void;
9
30
  closeButtonId: string;
10
31
  closeButtonText: string;
11
- spacing: string;
12
- backdrop: "none" | "weak" | "strong" | "invisible";
13
- direction: "left" | "right" | "up" | "down";
14
- open: boolean;
15
- rounded: boolean;
16
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
17
- 'drawer-header'?: ((props: {}) => any) | undefined;
18
- default?: ((props: {}) => any) | undefined;
19
- }>;
32
+ spacing: import("../..").SpacingType | string;
33
+ backdrop: import("./model").DrawerBackdropType;
34
+ direction: import("./model").DrawerDirectionType;
35
+ open: boolean | string;
36
+ rounded: boolean | string;
37
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ declare const __VLS_component: import("vue").DefineComponent<DBDrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBDrawerProps> & Readonly<{}>, {
39
+ variant: import("./model").DrawerVariantType;
40
+ children: any;
41
+ className: string;
42
+ id: string;
43
+ width: import("../..").WidthType | string;
44
+ onClose: (event?: any) => void;
45
+ closeButtonId: string;
46
+ closeButtonText: string;
47
+ spacing: import("../..").SpacingType | string;
48
+ backdrop: import("./model").DrawerBackdropType;
49
+ direction: import("./model").DrawerDirectionType;
50
+ open: boolean | string;
51
+ rounded: boolean | string;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
54
  export default _default;
21
55
  type __VLS_WithSlots<T, S> = T & {
22
56
  new (): {
@@ -23,12 +23,12 @@ export type DBDrawerDefaultProps = {
23
23
  /**
24
24
  * The open attribute opens or closes the drawer based on the state.
25
25
  */
26
- open?: boolean;
26
+ open?: boolean | string;
27
27
  /**
28
28
  * The rounded attribute changes the border radius of the corners on the "end" of the drawer.
29
29
  * The "end" depends on which direction you use.
30
30
  */
31
- rounded?: boolean;
31
+ rounded?: boolean | string;
32
32
  /**
33
33
  * Set the variant modal|inside. Defaults to modal.
34
34
  */
@@ -1,20 +1,64 @@
1
- import { DBHeaderProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBHeaderProps> & Readonly<{}>, {
1
+ import { DBHeaderProps, DBHeaderState } from "./model";
2
+ import { cls, getBoolean } from "../../utils";
3
+ import DBButton from "../button/button.vue";
4
+ import DBDrawer from "../drawer/drawer.vue";
5
+ import { DEFAULT_BURGER_MENU } from "../../shared/constants";
6
+ declare const _id: import("vue").Ref<string | undefined, string | undefined>;
7
+ declare const forcedToMobile: import("vue").Ref<boolean | undefined, boolean | undefined>;
8
+ declare const _ref: import("vue").Ref<any, any>;
9
+ declare function handleToggle(): ReturnType<DBHeaderState["handleToggle"]>;
10
+ declare function handleNavigationItemClick(event: unknown): ReturnType<DBHeaderState["handleNavigationItemClick"]>;
11
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
12
+ declare var __VLS_4: {}, __VLS_6: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {}, __VLS_16: {}, __VLS_21: {};
13
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
14
+ default?: (props: typeof __VLS_4) => any;
15
+ } & {
16
+ 'meta-navigation'?: (props: typeof __VLS_6) => any;
17
+ } & {
18
+ 'secondary-action'?: (props: typeof __VLS_8) => any;
19
+ } & {
20
+ 'meta-navigation'?: (props: typeof __VLS_10) => any;
21
+ } & {
22
+ brand?: (props: typeof __VLS_12) => any;
23
+ } & {
24
+ default?: (props: typeof __VLS_14) => any;
25
+ } & {
26
+ 'primary-action'?: (props: typeof __VLS_16) => any;
27
+ } & {
28
+ 'secondary-action'?: (props: typeof __VLS_21) => any;
29
+ }>;
30
+ declare const __VLS_self: import("vue").DefineComponent<DBHeaderProps, {
31
+ cls: typeof cls;
32
+ getBoolean: typeof getBoolean;
33
+ DBButton: typeof DBButton;
34
+ DBDrawer: typeof DBDrawer;
35
+ DEFAULT_BURGER_MENU: typeof DEFAULT_BURGER_MENU;
36
+ _id: typeof _id;
37
+ forcedToMobile: typeof forcedToMobile;
38
+ _ref: typeof _ref;
39
+ handleToggle: typeof handleToggle;
40
+ handleNavigationItemClick: typeof handleNavigationItemClick;
41
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBHeaderProps> & Readonly<{}>, {
3
42
  children: any;
4
43
  className: string;
5
44
  id: string;
6
- width: "medium" | "small" | "large" | "full";
7
- drawerOpen: boolean;
8
- forceMobile: boolean;
45
+ width: import("../..").MaxWidthType;
46
+ drawerOpen: boolean | string;
47
+ forceMobile: boolean | string;
9
48
  burgerMenuLabel: string;
10
- onToggle: (open: boolean) => void;
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
12
- default?: (((props: {}) => any) & ((props: {}) => any)) | undefined;
13
- 'meta-navigation'?: (((props: {}) => any) & ((props: {}) => any)) | undefined;
14
- 'secondary-action'?: (((props: {}) => any) & ((props: {}) => any)) | undefined;
15
- brand?: ((props: {}) => any) | undefined;
16
- 'primary-action'?: ((props: {}) => any) | undefined;
17
- }>;
49
+ onToggle: (open: boolean | any) => void;
50
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
+ declare const __VLS_component: import("vue").DefineComponent<DBHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBHeaderProps> & Readonly<{}>, {
52
+ children: any;
53
+ className: string;
54
+ id: string;
55
+ width: import("../..").MaxWidthType;
56
+ drawerOpen: boolean | string;
57
+ forceMobile: boolean | string;
58
+ burgerMenuLabel: string;
59
+ onToggle: (open: boolean | any) => void;
60
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
61
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
62
  export default _default;
19
63
  type __VLS_WithSlots<T, S> = T & {
20
64
  new (): {
@@ -25,13 +25,13 @@ export type DBHeaderDefaultProps = {
25
25
  /**
26
26
  * Open/closes the drawer for mobile header or if `forceMobile` is true.
27
27
  */
28
- drawerOpen?: boolean;
28
+ drawerOpen?: boolean | string;
29
29
  /**
30
30
  * Forces the header to use mobile layout for desktop as well.
31
31
  * You should only use this setting if you really can't provide a smaller navigation.
32
32
  * Overwrite size of the drawer with '--db-drawer-max-width: xxx'
33
33
  */
34
- forceMobile?: boolean;
34
+ forceMobile?: boolean | string;
35
35
  /**
36
36
  * This attribute sets the label for the burger menu button for mobile headers.
37
37
  */
@@ -1,15 +1,33 @@
1
1
  import type { DBIconProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBIconProps> & Readonly<{}>, {
2
+ import { cls } from "../../utils";
3
+ declare const _ref: import("vue").Ref<any, any>;
4
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ }>;
9
+ declare const __VLS_self: import("vue").DefineComponent<DBIconProps, {
10
+ cls: typeof cls;
11
+ _ref: typeof _ref;
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBIconProps> & Readonly<{}>, {
3
13
  text: string;
4
- variant: "filled" | "default" | "inverted";
14
+ variant: import("./model").IconVariantType;
5
15
  children: any;
6
16
  className: string;
7
17
  id: string;
8
- icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
9
- weight: "16" | "20" | "24" | "32" | "48" | "64";
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
11
- default?: ((props: {}) => any) | undefined;
12
- }>;
18
+ icon: import("@db-ux/core-foundations").IconTypes;
19
+ weight: import("./model").IconWeightType;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_component: import("vue").DefineComponent<DBIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBIconProps> & Readonly<{}>, {
22
+ text: string;
23
+ variant: import("./model").IconVariantType;
24
+ children: any;
25
+ className: string;
26
+ id: string;
27
+ icon: import("@db-ux/core-foundations").IconTypes;
28
+ weight: import("./model").IconWeightType;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
31
  export default _default;
14
32
  type __VLS_WithSlots<T, S> = T & {
15
33
  new (): {
@@ -1,16 +1,36 @@
1
1
  import { DBInfotextProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBInfotextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBInfotextProps> & Readonly<{}>, {
2
+ import { cls, getHideProp } from "../../utils";
3
+ declare const _ref: import("vue").Ref<any, any>;
4
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ }>;
9
+ declare const __VLS_self: import("vue").DefineComponent<DBInfotextProps, {
10
+ cls: typeof cls;
11
+ getHideProp: typeof getHideProp;
12
+ _ref: typeof _ref;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBInfotextProps> & Readonly<{}>, {
3
14
  text: string;
4
15
  children: any;
5
16
  className: string;
6
17
  id: string;
7
- icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
8
- size: "medium" | "small";
9
- showIcon: boolean;
10
- semantic: "adaptive" | "neutral" | "critical" | "informational" | "warning" | "successful";
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
12
- default?: ((props: {}) => any) | undefined;
13
- }>;
18
+ icon: import("@db-ux/core-foundations").IconTypes;
19
+ size: import("../..").SizeType;
20
+ showIcon: boolean | string;
21
+ semantic: import("../..").SemanticType;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_component: import("vue").DefineComponent<DBInfotextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBInfotextProps> & Readonly<{}>, {
24
+ text: string;
25
+ children: any;
26
+ className: string;
27
+ id: string;
28
+ icon: import("@db-ux/core-foundations").IconTypes;
29
+ size: import("../..").SizeType;
30
+ showIcon: boolean | string;
31
+ semantic: import("../..").SemanticType;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
14
34
  export default _default;
15
35
  type __VLS_WithSlots<T, S> = T & {
16
36
  new (): {
@@ -1,56 +1,154 @@
1
- import { DBInputProps } from "./model";
2
- import { ValueLabelType } from "../../shared/model";
3
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import { cls, getBoolean, getHideProp, getNumber, stringPropVisible } from "../../utils";
2
+ import { DBInputProps, DBInputState } from "./model";
3
+ import { DEFAULT_LABEL, DEFAULT_PLACEHOLDER, DEFAULT_VALID_MESSAGE } from "../../shared/constants";
4
+ import { ChangeEvent, InputEvent, InteractionEvent, ValueLabelType } from "../../shared/model";
5
+ import DBInfotext from "../infotext/infotext.vue";
6
+ declare const _id: import("vue").Ref<string | undefined, string | undefined>;
7
+ declare const _messageId: import("vue").Ref<string | undefined, string | undefined>;
8
+ declare const _validMessageId: import("vue").Ref<string | undefined, string | undefined>;
9
+ declare const _invalidMessageId: import("vue").Ref<string | undefined, string | undefined>;
10
+ declare const _invalidMessage: import("vue").Ref<string | undefined, string | undefined>;
11
+ declare const _dataListId: import("vue").Ref<string | undefined, string | undefined>;
12
+ declare const _descByIds: import("vue").Ref<string | undefined, string | undefined>;
13
+ declare const _value: import("vue").Ref<string | undefined, string | undefined>;
14
+ declare const _voiceOverFallback: import("vue").Ref<string | undefined, string | undefined>;
15
+ declare const _ref: import("vue").Ref<any, any>;
16
+ declare function hasValidState(): ReturnType<DBInputState["hasValidState"]>;
17
+ declare function handleInput(event: InputEvent<HTMLInputElement>): ReturnType<DBInputState["handleInput"]>;
18
+ declare function handleChange(event: ChangeEvent<HTMLInputElement>): ReturnType<DBInputState["handleChange"]>;
19
+ declare function handleBlur(event: InteractionEvent<HTMLInputElement> | any): ReturnType<DBInputState["handleBlur"]>;
20
+ declare function handleFocus(event: InteractionEvent<HTMLInputElement> | any): ReturnType<DBInputState["handleFocus"]>;
21
+ declare function getDataList(): ReturnType<DBInputState["getDataList"]>;
22
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
23
+ declare var __VLS_1: {};
24
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
25
+ default?: (props: typeof __VLS_1) => any;
26
+ }>;
27
+ declare const __VLS_self: import("vue").DefineComponent<DBInputProps, {
28
+ cls: typeof cls;
29
+ getBoolean: typeof getBoolean;
30
+ getHideProp: typeof getHideProp;
31
+ getNumber: typeof getNumber;
32
+ stringPropVisible: typeof stringPropVisible;
33
+ DEFAULT_LABEL: typeof DEFAULT_LABEL;
34
+ DEFAULT_PLACEHOLDER: typeof DEFAULT_PLACEHOLDER;
35
+ DEFAULT_VALID_MESSAGE: typeof DEFAULT_VALID_MESSAGE;
36
+ DBInfotext: typeof DBInfotext;
37
+ _id: typeof _id;
38
+ _messageId: typeof _messageId;
39
+ _validMessageId: typeof _validMessageId;
40
+ _invalidMessageId: typeof _invalidMessageId;
41
+ _invalidMessage: typeof _invalidMessage;
42
+ _dataListId: typeof _dataListId;
43
+ _descByIds: typeof _descByIds;
44
+ _value: typeof _value;
45
+ _voiceOverFallback: typeof _voiceOverFallback;
46
+ _ref: typeof _ref;
47
+ hasValidState: typeof hasValidState;
48
+ handleInput: typeof handleInput;
49
+ handleChange: typeof handleChange;
50
+ handleBlur: typeof handleBlur;
51
+ handleFocus: typeof handleFocus;
52
+ getDataList: typeof getDataList;
53
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
54
  "update:value": (...args: any[]) => void;
5
55
  }, string, import("vue").PublicProps, Readonly<DBInputProps> & Readonly<{
6
56
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
7
57
  }>, {
8
58
  name: string;
9
- step: string | number;
59
+ step: number | string;
10
60
  form: string;
11
- input: (event: Event) => void;
61
+ input: (event: InputEvent<HTMLInputElement>) => void;
12
62
  label: string;
13
63
  pattern: string;
14
- disabled: boolean;
15
- type: string;
64
+ disabled: boolean | string;
65
+ type: import("./model").InputTypeType | string;
16
66
  value: any;
17
- variant: "above" | "floating";
67
+ variant: import("../../shared/model").LabelVariantType;
18
68
  children: any;
19
69
  className: string;
20
70
  id: string;
21
- autofocus: boolean;
22
- icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
71
+ autofocus: boolean | string;
72
+ icon: import("@db-ux/core-foundations").IconTypes;
23
73
  size: number;
24
- showIcon: boolean;
25
- blur: (event: FocusEvent) => void;
26
- change: (event: Event) => void;
27
- focus: (event: FocusEvent) => void;
28
- onFocus: (event: FocusEvent) => void;
29
- onBlur: (event: FocusEvent) => void;
30
- onChange: (event: Event) => void;
31
- onInput: (event: Event) => void;
74
+ showIcon: boolean | string;
75
+ onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
76
+ onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
77
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
78
+ onInput: (event: InputEvent<HTMLInputElement>) => void;
32
79
  ariaDescribedBy: string;
33
- validation: "invalid" | "valid" | "no-validation";
34
- required: boolean;
35
- showLabel: boolean;
80
+ validation: import("../../shared/model").ValidationType;
81
+ required: boolean | string;
82
+ showLabel: boolean | string;
36
83
  placeholder: string;
37
84
  message: string;
38
85
  validMessage: string;
39
86
  invalidMessage: string;
40
- messageIcon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
41
- autocomplete: string;
42
- showMessage: boolean;
87
+ messageIcon: import("@db-ux/core-foundations").IconTypes;
88
+ autocomplete: string | import("../../shared/model").AutoCompleteType;
89
+ showMessage: boolean | string;
43
90
  dataList: string[] | ValueLabelType[];
44
91
  dataListId: string;
45
- max: string | number;
46
- min: string | number;
47
- maxLength: number;
48
- minLength: number;
49
- readOnly: boolean;
50
- iconAfter: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
51
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
52
- default?: ((props: {}) => any) | undefined;
53
- }>;
92
+ max: number | string;
93
+ min: number | string;
94
+ maxLength: number | string;
95
+ minLength: number | string;
96
+ maxlength: number | string;
97
+ minlength: number | string;
98
+ readOnly: boolean | string;
99
+ readonly: boolean | string;
100
+ iconAfter: import("@db-ux/core-foundations").IconTypes;
101
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
102
+ declare const __VLS_component: import("vue").DefineComponent<DBInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
103
+ "update:value": (...args: any[]) => void;
104
+ }, string, import("vue").PublicProps, Readonly<DBInputProps> & Readonly<{
105
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
106
+ }>, {
107
+ name: string;
108
+ step: number | string;
109
+ form: string;
110
+ input: (event: InputEvent<HTMLInputElement>) => void;
111
+ label: string;
112
+ pattern: string;
113
+ disabled: boolean | string;
114
+ type: import("./model").InputTypeType | string;
115
+ value: any;
116
+ variant: import("../../shared/model").LabelVariantType;
117
+ children: any;
118
+ className: string;
119
+ id: string;
120
+ autofocus: boolean | string;
121
+ icon: import("@db-ux/core-foundations").IconTypes;
122
+ size: number;
123
+ showIcon: boolean | string;
124
+ onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
125
+ onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
126
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
127
+ onInput: (event: InputEvent<HTMLInputElement>) => void;
128
+ ariaDescribedBy: string;
129
+ validation: import("../../shared/model").ValidationType;
130
+ required: boolean | string;
131
+ showLabel: boolean | string;
132
+ placeholder: string;
133
+ message: string;
134
+ validMessage: string;
135
+ invalidMessage: string;
136
+ messageIcon: import("@db-ux/core-foundations").IconTypes;
137
+ autocomplete: string | import("../../shared/model").AutoCompleteType;
138
+ showMessage: boolean | string;
139
+ dataList: string[] | ValueLabelType[];
140
+ dataListId: string;
141
+ max: number | string;
142
+ min: number | string;
143
+ maxLength: number | string;
144
+ minLength: number | string;
145
+ maxlength: number | string;
146
+ minlength: number | string;
147
+ readOnly: boolean | string;
148
+ readonly: boolean | string;
149
+ iconAfter: import("@db-ux/core-foundations").IconTypes;
150
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
151
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
54
152
  export default _default;
55
153
  type __VLS_WithSlots<T, S> = T & {
56
154
  new (): {
@@ -1,4 +1,4 @@
1
- import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, GlobalProps, GlobalState, IconAfterProps, IconProps, InputEventProps, InputEventState, ShowIconProps, ValueLabelType } from '../../shared/model';
1
+ import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, 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 = {
@@ -34,6 +34,6 @@ export type DBInputDefaultProps = {
34
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
- getDataList: (_list?: string[] | ValueLabelType[]) => ValueLabelType[];
37
+ getDataList: () => ValueLabelType[];
38
38
  };
39
- export type DBInputState = DBInputDefaultState & GlobalState & InputEventState<HTMLInputElement> & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState;
39
+ export type DBInputState = DBInputDefaultState & GlobalState & InputEventState<HTMLInputElement> & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & FromValidState;
@@ -1,26 +1,60 @@
1
- import { DBLinkProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBLinkProps> & Readonly<{}>, {
1
+ import { DBLinkProps, DBLinkState } from "./model";
2
+ import { cls, getBooleanAsString, getHideProp } from "../../utils";
3
+ import { ClickEvent } from "../../shared/model";
4
+ declare const _ref: import("vue").Ref<any, any>;
5
+ declare function handleClick(event: ClickEvent<HTMLAnchorElement>): ReturnType<DBLinkState["handleClick"]>;
6
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
7
+ declare var __VLS_1: {};
8
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
9
+ default?: (props: typeof __VLS_1) => any;
10
+ }>;
11
+ declare const __VLS_self: import("vue").DefineComponent<DBLinkProps, {
12
+ cls: typeof cls;
13
+ getBooleanAsString: typeof getBooleanAsString;
14
+ getHideProp: typeof getHideProp;
15
+ _ref: typeof _ref;
16
+ handleClick: typeof handleClick;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBLinkProps> & Readonly<{}>, {
3
18
  label: string;
4
19
  text: string;
5
- disabled: boolean;
6
- variant: "adaptive" | "brand";
20
+ disabled: boolean | string;
21
+ variant: import("./model").LinkVariantType;
7
22
  children: any;
8
23
  className: string;
9
24
  id: string;
10
- onClick: (event: MouseEvent) => void;
11
- size: "medium" | "small";
12
- showIcon: boolean;
13
- target: "_self" | "_blank" | "_parent" | "_top";
25
+ onClick: (event: ClickEvent<HTMLAnchorElement>) => void;
26
+ size: import("./model").LinkSizeType;
27
+ showIcon: boolean | string;
28
+ target: import("../../shared/model").LinkTargetType;
14
29
  role: string;
15
- content: "external" | "internal";
16
- current: boolean | "time" | "true" | "false" | "date" | "page" | "step" | "location";
30
+ content: import("./model").LinkContentType;
31
+ current: boolean | import("../../shared/model").LinkCurrentType;
17
32
  href: string;
18
33
  hreflang: string;
19
34
  rel: string;
20
- selected: boolean;
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
22
- default?: ((props: {}) => any) | undefined;
23
- }>;
35
+ selected: boolean | string;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_component: import("vue").DefineComponent<DBLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBLinkProps> & Readonly<{}>, {
38
+ label: string;
39
+ text: string;
40
+ disabled: boolean | string;
41
+ variant: import("./model").LinkVariantType;
42
+ children: any;
43
+ className: string;
44
+ id: string;
45
+ onClick: (event: ClickEvent<HTMLAnchorElement>) => void;
46
+ size: import("./model").LinkSizeType;
47
+ showIcon: boolean | string;
48
+ target: import("../../shared/model").LinkTargetType;
49
+ role: string;
50
+ content: import("./model").LinkContentType;
51
+ current: boolean | import("../../shared/model").LinkCurrentType;
52
+ href: string;
53
+ hreflang: string;
54
+ rel: string;
55
+ selected: boolean | string;
56
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
58
  export default _default;
25
59
  type __VLS_WithSlots<T, S> = T & {
26
60
  new (): {
@@ -1,12 +1,29 @@
1
1
  import { DBNavigationProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationProps> & Readonly<{}>, {
2
+ import { cls } from "../../utils";
3
+ declare const _id: import("vue").Ref<string | undefined, string | undefined>;
4
+ declare const _ref: import("vue").Ref<any, any>;
5
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ }>;
10
+ declare const __VLS_self: import("vue").DefineComponent<DBNavigationProps, {
11
+ cls: typeof cls;
12
+ _id: typeof _id;
13
+ _ref: typeof _ref;
14
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationProps> & Readonly<{}>, {
3
15
  children: any;
4
16
  className: string;
5
17
  id: string;
6
18
  labelledBy: string;
7
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
8
- default?: ((props: {}) => any) | undefined;
9
- }>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_component: import("vue").DefineComponent<DBNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationProps> & Readonly<{}>, {
21
+ children: any;
22
+ className: string;
23
+ id: string;
24
+ labelledBy: string;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
27
  export default _default;
11
28
  type __VLS_WithSlots<T, S> = T & {
12
29
  new (): {
@@ -8,7 +8,7 @@ export type DBNavigationItemDefaultProps = {
8
8
  /**
9
9
  * The disabled attribute can be set to [keep a user from clicking on the item](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).
10
10
  */
11
- disabled?: boolean;
11
+ disabled?: boolean | string;
12
12
  /**
13
13
  * React-specific property to pass in a slot for sub-navigation
14
14
  */
@@ -16,7 +16,11 @@ export type DBNavigationItemDefaultProps = {
16
16
  /**
17
17
  * This is for mobile navigation only, if it is set the sub-navigation is a static overlay
18
18
  */
19
- subNavigationExpanded?: boolean;
19
+ subNavigationExpanded?: boolean | string;
20
+ /**
21
+ * Determines whether the text should wrap when its parent container is too small, preventing overflow.
22
+ */
23
+ wrap?: boolean | string;
20
24
  };
21
25
  export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & NavigationBackButtonProps & ShowIconProps & TextProps;
22
26
  export type DBNavigationItemDefaultState = {
@@ -28,7 +32,6 @@ export type DBNavigationItemDefaultState = {
28
32
  * Internal state property to show/hide sub-navigation button
29
33
  */
30
34
  hasSubNavigation?: boolean;
31
- updateSubNavigationState: () => void;
32
35
  navigationItemSafeTriangle?: NavigationItemSafeTriangle;
33
36
  autoClose?: boolean;
34
37
  };