@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,17 +1,42 @@
1
1
  import { DBAccordionItemDefaultProps } from "../accordion-item/model";
2
- import { DBAccordionProps } from "./model";
3
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBAccordionProps> & Readonly<{}>, {
2
+ import { DBAccordionProps, DBAccordionState } from "./model";
3
+ import { cls } from "../../utils";
4
+ import DBAccordionItem from "../accordion-item/accordion-item.vue";
5
+ declare const _id: import("vue").Ref<string | undefined, string | undefined>;
6
+ declare const _ref: import("vue").Ref<any, any>;
7
+ declare function convertItems(): ReturnType<DBAccordionState["convertItems"]>;
8
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
9
+ declare var __VLS_1: {};
10
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ }>;
13
+ declare const __VLS_self: import("vue").DefineComponent<DBAccordionProps, {
14
+ cls: typeof cls;
15
+ DBAccordionItem: typeof DBAccordionItem;
16
+ _id: typeof _id;
17
+ _ref: typeof _ref;
18
+ convertItems: typeof convertItems;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBAccordionProps> & Readonly<{}>, {
4
20
  name: string;
5
- variant: "divider" | "card";
21
+ variant: import("./model").AccordionVariantType;
6
22
  children: any;
7
23
  className: string;
8
24
  id: string;
9
- behavior: "multiple" | "single";
25
+ behavior: import("./model").AccordionBehaviorType;
10
26
  initOpenIndex: number[];
11
- items: string | DBAccordionItemDefaultProps[];
12
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
13
- default?: ((props: {}) => any) | undefined;
14
- }>;
27
+ items: DBAccordionItemDefaultProps[] | string;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_component: import("vue").DefineComponent<DBAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBAccordionProps> & Readonly<{}>, {
30
+ name: string;
31
+ variant: import("./model").AccordionVariantType;
32
+ children: any;
33
+ className: string;
34
+ id: string;
35
+ behavior: import("./model").AccordionBehaviorType;
36
+ initOpenIndex: number[];
37
+ items: DBAccordionItemDefaultProps[] | string;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
15
40
  export default _default;
16
41
  type __VLS_WithSlots<T, S> = T & {
17
42
  new (): {
@@ -35,7 +35,7 @@ export type DBAccordionDefaultProps = {
35
35
  export type DBAccordionProps = DBAccordionDefaultProps & GlobalProps;
36
36
  export type DBAccordionDefaultState = {
37
37
  _initOpenIndexDone: boolean;
38
- _name: string;
39
- convertItems: (items?: unknown[] | string) => DBAccordionItemDefaultProps[];
38
+ _name?: string;
39
+ convertItems: () => DBAccordionItemDefaultProps[];
40
40
  };
41
41
  export type DBAccordionState = DBAccordionDefaultState & GlobalState & InitializedState;
@@ -1,17 +1,49 @@
1
- import { DBAccordionItemProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBAccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBAccordionItemProps> & Readonly<{}>, {
1
+ import { DBAccordionItemProps, DBAccordionItemState } from "./model";
2
+ import { cls, getBooleanAsString } from "../../utils";
3
+ import { ClickEvent } from "../../shared/model";
4
+ declare const _id: import("vue").Ref<string | undefined, string | undefined>;
5
+ declare const _open: import("vue").Ref<boolean | undefined, boolean | undefined>;
6
+ declare const _name: import("vue").Ref<string | undefined, string | undefined>;
7
+ declare const _ref: import("vue").Ref<any, any>;
8
+ declare function handleToggle(event: ClickEvent<HTMLElement> | any): ReturnType<DBAccordionItemState["handleToggle"]>;
9
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
10
+ declare var __VLS_1: {}, __VLS_3: {};
11
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
+ headline?: (props: typeof __VLS_1) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_3) => any;
15
+ }>;
16
+ declare const __VLS_self: import("vue").DefineComponent<DBAccordionItemProps, {
17
+ cls: typeof cls;
18
+ getBooleanAsString: typeof getBooleanAsString;
19
+ _id: typeof _id;
20
+ _open: typeof _open;
21
+ _name: typeof _name;
22
+ _ref: typeof _ref;
23
+ handleToggle: typeof handleToggle;
24
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBAccordionItemProps> & Readonly<{}>, {
25
+ name: string;
3
26
  text: string;
4
- disabled: boolean;
27
+ disabled: boolean | string;
5
28
  children: any;
6
29
  className: string;
7
30
  id: string;
8
- onToggle: (open: boolean) => void;
31
+ onToggle: (open: boolean | any) => void;
9
32
  defaultOpen: boolean;
10
33
  headlinePlain: string;
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
12
- headline?: ((props: {}) => any) | undefined;
13
- default?: ((props: {}) => any) | undefined;
14
- }>;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
+ declare const __VLS_component: import("vue").DefineComponent<DBAccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBAccordionItemProps> & Readonly<{}>, {
36
+ name: string;
37
+ text: string;
38
+ disabled: boolean | string;
39
+ children: any;
40
+ className: string;
41
+ id: string;
42
+ onToggle: (open: boolean | any) => void;
43
+ defaultOpen: boolean;
44
+ headlinePlain: string;
45
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
15
47
  export default _default;
16
48
  type __VLS_WithSlots<T, S> = T & {
17
49
  new (): {
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState, TextProps, ToggleEventProps, ToggleEventState } from '../../shared/model';
1
+ import { GlobalProps, GlobalState, InitializedState, NameProps, NameState, TextProps, ToggleEventProps, ToggleEventState } from '../../shared/model';
2
2
  export type DBAccordionItemDefaultProps = {
3
3
  /**
4
4
  * Initial state for the accordion item
@@ -7,7 +7,7 @@ export type DBAccordionItemDefaultProps = {
7
7
  /**
8
8
  * The disabled attribute can be set to keep a user from clicking on the element.
9
9
  */
10
- disabled?: boolean;
10
+ disabled?: boolean | string;
11
11
  /**
12
12
  * Title of the accordion-item as slot
13
13
  */
@@ -17,8 +17,8 @@ export type DBAccordionItemDefaultProps = {
17
17
  */
18
18
  headlinePlain?: string;
19
19
  } & TextProps;
20
- export type DBAccordionItemProps = DBAccordionItemDefaultProps & GlobalProps & ToggleEventProps;
20
+ export type DBAccordionItemProps = DBAccordionItemDefaultProps & GlobalProps & ToggleEventProps & NameProps;
21
21
  export type DBAccordionItemDefaultState = {
22
- _open: boolean;
22
+ _open?: boolean;
23
23
  };
24
- export type DBAccordionItemState = DBAccordionItemDefaultState & GlobalState & ToggleEventState<HTMLElement>;
24
+ export type DBAccordionItemState = DBAccordionItemDefaultState & GlobalState & ToggleEventState<HTMLElement> & InitializedState & NameState;
@@ -1,17 +1,39 @@
1
1
  import { DBBadgeProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBadgeProps> & Readonly<{}>, {
2
+ import { cls } from "../../utils";
3
+ import { DEFAULT_LABEL } from "../../shared/constants";
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<DBBadgeProps, {
11
+ cls: typeof cls;
12
+ DEFAULT_LABEL: typeof DEFAULT_LABEL;
13
+ _ref: typeof _ref;
14
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBadgeProps> & Readonly<{}>, {
3
15
  label: string;
4
16
  text: string;
5
17
  children: any;
6
18
  className: string;
7
19
  id: string;
8
- size: "medium" | "small";
9
- semantic: "adaptive" | "neutral" | "critical" | "informational" | "warning" | "successful";
10
- placement: "inline" | "corner-top-left" | "corner-top-right" | "corner-center-left" | "corner-center-right" | "corner-bottom-left" | "corner-bottom-right";
11
- emphasis: "weak" | "strong" | "origin";
12
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
13
- default?: ((props: {}) => any) | undefined;
14
- }>;
20
+ size: import("../..").SizeType;
21
+ semantic: import("../..").SemanticType;
22
+ placement: import("./model").BadgePlacementType;
23
+ emphasis: import("../..").EmphasisType;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_component: import("vue").DefineComponent<DBBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBadgeProps> & Readonly<{}>, {
26
+ label: string;
27
+ text: string;
28
+ children: any;
29
+ className: string;
30
+ id: string;
31
+ size: import("../..").SizeType;
32
+ semantic: import("../..").SemanticType;
33
+ placement: import("./model").BadgePlacementType;
34
+ emphasis: import("../..").EmphasisType;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
15
37
  export default _default;
16
38
  type __VLS_WithSlots<T, S> = T & {
17
39
  new (): {
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TagEmphasisProps, TextProps } from '../../shared/model';
1
+ import { GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, EmphasisProps, TextProps } from '../../shared/model';
2
2
  export declare const BadgePlacementList: readonly ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"];
3
3
  export type BadgePlacementType = (typeof BadgePlacementList)[number];
4
4
  export type DBBadgeDefaultProps = {
@@ -11,6 +11,6 @@ export type DBBadgeDefaultProps = {
11
11
  */
12
12
  label?: string;
13
13
  };
14
- export type DBBadgeProps = DBBadgeDefaultProps & GlobalProps & SemanticProps & SizeProps & TagEmphasisProps & TextProps;
14
+ export type DBBadgeProps = DBBadgeDefaultProps & GlobalProps & SemanticProps & SizeProps & EmphasisProps & TextProps;
15
15
  export type DBBadgeDefaultState = {};
16
16
  export type DBBadgeState = DBBadgeDefaultState & GlobalState & InitializedState;
@@ -1,15 +1,36 @@
1
+ import { cls, getHideProp } from "../../utils";
1
2
  import { DBBrandProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBBrandProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBrandProps> & Readonly<{}>, {
3
+ import { DEFAULT_ICON } from "../../shared/constants";
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<DBBrandProps, {
11
+ cls: typeof cls;
12
+ getHideProp: typeof getHideProp;
13
+ DEFAULT_ICON: typeof DEFAULT_ICON;
14
+ _ref: typeof _ref;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBrandProps> & Readonly<{}>, {
3
16
  text: string;
4
17
  children: any;
5
18
  className: string;
6
19
  id: string;
7
- icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
8
- showIcon: boolean;
20
+ icon: import("@db-ux/core-foundations").IconTypes;
21
+ showIcon: boolean | string;
9
22
  hideLogo: boolean;
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
11
- default?: ((props: {}) => any) | undefined;
12
- }>;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_component: import("vue").DefineComponent<DBBrandProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBBrandProps> & Readonly<{}>, {
25
+ text: string;
26
+ children: any;
27
+ className: string;
28
+ id: string;
29
+ icon: import("@db-ux/core-foundations").IconTypes;
30
+ showIcon: boolean | string;
31
+ hideLogo: boolean;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
34
  export default _default;
14
35
  type __VLS_WithSlots<T, S> = T & {
15
36
  new (): {
@@ -1,28 +1,67 @@
1
- import type { DBButtonProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBButtonProps> & Readonly<{}>, {
1
+ import type { DBButtonProps, DBButtonState } from "./model";
2
+ import { cls, getBoolean, 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<HTMLButtonElement>): ReturnType<DBButtonState["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<DBButtonProps, {
12
+ cls: typeof cls;
13
+ getBoolean: typeof getBoolean;
14
+ getBooleanAsString: typeof getBooleanAsString;
15
+ getHideProp: typeof getHideProp;
16
+ _ref: typeof _ref;
17
+ handleClick: typeof handleClick;
18
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBButtonProps> & Readonly<{}>, {
3
19
  name: string;
20
+ form: string;
4
21
  label: string;
5
22
  text: string;
6
23
  ariaexpanded: boolean;
7
24
  ariapressed: boolean;
8
- disabled: boolean;
9
- noText: boolean;
10
- type: "button" | "reset" | "submit";
25
+ disabled: boolean | string;
26
+ noText: boolean | string;
27
+ state: import("./model").ButtonStateType;
28
+ type: import("./model").ButtonTypeType;
11
29
  value: string;
12
- state: "loading";
13
- variant: string;
30
+ variant: import("./model").ButtonVariantType | string;
14
31
  children: any;
15
32
  className: string;
16
33
  describedbyid: string;
17
34
  id: string;
18
- onClick: (event: MouseEvent) => void;
19
- icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
20
- width: string;
21
- size: "medium" | "small";
22
- showIcon: boolean;
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
24
- default?: ((props: {}) => any) | undefined;
25
- }>;
35
+ onClick: (event: ClickEvent<HTMLButtonElement>) => void;
36
+ icon: import("@db-ux/core-foundations").IconTypes;
37
+ width: import("../../shared/model").WidthType | string;
38
+ size: import("../../shared/model").SizeType;
39
+ showIcon: boolean | string;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const __VLS_component: import("vue").DefineComponent<DBButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBButtonProps> & Readonly<{}>, {
42
+ name: string;
43
+ form: string;
44
+ label: string;
45
+ text: string;
46
+ ariaexpanded: boolean;
47
+ ariapressed: boolean;
48
+ disabled: boolean | string;
49
+ noText: boolean | string;
50
+ state: import("./model").ButtonStateType;
51
+ type: import("./model").ButtonTypeType;
52
+ value: string;
53
+ variant: import("./model").ButtonVariantType | string;
54
+ children: any;
55
+ className: string;
56
+ describedbyid: string;
57
+ id: string;
58
+ onClick: (event: ClickEvent<HTMLButtonElement>) => void;
59
+ icon: import("@db-ux/core-foundations").IconTypes;
60
+ width: import("../../shared/model").WidthType | string;
61
+ size: import("../../shared/model").SizeType;
62
+ showIcon: boolean | string;
63
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
64
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
65
  export default _default;
27
66
  type __VLS_WithSlots<T, S> = T & {
28
67
  new (): {
@@ -17,11 +17,11 @@ export type DBButtonDefaultProps = {
17
17
  /**
18
18
  * The disabled attribute can be set to [keep a user from clicking on the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).
19
19
  */
20
- disabled?: boolean;
20
+ disabled?: boolean | string;
21
21
  /**
22
- * Define the text next to the icon specified via the icon Property to get hidden.
22
+ * Associates the control with a form element
23
23
  */
24
- noText?: boolean;
24
+ form?: string;
25
25
  /**
26
26
  * The label represents the [aria-label attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) value of the button
27
27
  */
@@ -30,6 +30,14 @@ export type DBButtonDefaultProps = {
30
30
  * The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.
31
31
  */
32
32
  name?: string;
33
+ /**
34
+ * Define the text next to the icon specified via the icon Property to get hidden.
35
+ */
36
+ noText?: boolean | string;
37
+ /**
38
+ * Show loading progress inside button.
39
+ */
40
+ state?: ButtonStateType;
33
41
  /**
34
42
  * The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).
35
43
  */
@@ -38,10 +46,6 @@ export type DBButtonDefaultProps = {
38
46
  * The value attribute specifies an initial [value for the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value).
39
47
  */
40
48
  value?: string;
41
- /**
42
- * Show loading progress inside button.
43
- */
44
- state?: ButtonStateType;
45
49
  /**
46
50
  * Variant of the button. Use only 1 primary button on a page as CTA otherwise use one of the adaptive buttons.
47
51
  */
@@ -1,15 +1,36 @@
1
- import type { DBCardProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBCardProps> & Readonly<{}>, {
1
+ import type { DBCardProps, DBCardState } from "./model";
2
+ import { cls } from "../../utils";
3
+ import { ClickEvent } from "../../shared/model";
4
+ declare const _ref: import("vue").Ref<any, any>;
5
+ declare function handleClick(event: ClickEvent<HTMLElement>): ReturnType<DBCardState["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<DBCardProps, {
12
+ cls: typeof cls;
13
+ _ref: typeof _ref;
14
+ handleClick: typeof handleClick;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBCardProps> & Readonly<{}>, {
3
16
  children: any;
4
17
  className: string;
5
18
  id: string;
6
- onClick: (event: MouseEvent) => void;
7
- behavior: "static" | "interactive";
8
- elevationLevel: "1" | "2" | "3";
9
- spacing: string;
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
11
- default?: ((props: {}) => any) | undefined;
12
- }>;
19
+ onClick: (event: ClickEvent<HTMLElement>) => void;
20
+ behavior: import("./model").CardBehaviorType;
21
+ elevationLevel: import("./model").CardElevationLevelType;
22
+ spacing: import("../../shared/model").SpacingType | string;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_component: import("vue").DefineComponent<DBCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBCardProps> & Readonly<{}>, {
25
+ children: any;
26
+ className: string;
27
+ id: string;
28
+ onClick: (event: ClickEvent<HTMLElement>) => void;
29
+ behavior: import("./model").CardBehaviorType;
30
+ elevationLevel: import("./model").CardElevationLevelType;
31
+ spacing: import("../../shared/model").SpacingType | string;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
34
  export default _default;
14
35
  type __VLS_WithSlots<T, S> = T & {
15
36
  new (): {
@@ -1,36 +1,99 @@
1
- import { DBCheckboxProps } from "./model";
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DBCheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import { DBCheckboxProps, DBCheckboxState } from "./model";
2
+ import { DEFAULT_VALID_MESSAGE } from "../../shared/constants";
3
+ import { ChangeEvent, InteractionEvent } from "../../shared/model";
4
+ import DBInfotext from "../infotext/infotext.vue";
5
+ import { cls, getBoolean, getHideProp, stringPropVisible } from "../../utils";
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 _descByIds: import("vue").Ref<string | undefined, string | undefined>;
12
+ declare const _voiceOverFallback: import("vue").Ref<string | undefined, string | undefined>;
13
+ declare const _ref: import("vue").Ref<any, any>;
14
+ declare function hasValidState(): ReturnType<DBCheckboxState["hasValidState"]>;
15
+ declare function handleChange(event: ChangeEvent<HTMLInputElement>): ReturnType<DBCheckboxState["handleChange"]>;
16
+ declare function handleBlur(event: InteractionEvent<HTMLInputElement> | any): ReturnType<DBCheckboxState["handleBlur"]>;
17
+ declare function handleFocus(event: InteractionEvent<HTMLInputElement> | any): ReturnType<DBCheckboxState["handleFocus"]>;
18
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
19
+ declare var __VLS_1: {};
20
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
21
+ default?: (props: typeof __VLS_1) => any;
22
+ }>;
23
+ declare const __VLS_self: import("vue").DefineComponent<DBCheckboxProps, {
24
+ DEFAULT_VALID_MESSAGE: typeof DEFAULT_VALID_MESSAGE;
25
+ DBInfotext: typeof DBInfotext;
26
+ cls: typeof cls;
27
+ getBoolean: typeof getBoolean;
28
+ getHideProp: typeof getHideProp;
29
+ stringPropVisible: typeof stringPropVisible;
30
+ _id: typeof _id;
31
+ _messageId: typeof _messageId;
32
+ _validMessageId: typeof _validMessageId;
33
+ _invalidMessageId: typeof _invalidMessageId;
34
+ _invalidMessage: typeof _invalidMessage;
35
+ _descByIds: typeof _descByIds;
36
+ _voiceOverFallback: typeof _voiceOverFallback;
37
+ _ref: typeof _ref;
38
+ hasValidState: typeof hasValidState;
39
+ handleChange: typeof handleChange;
40
+ handleBlur: typeof handleBlur;
41
+ handleFocus: typeof handleFocus;
42
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
43
  "update:checked": (...args: any[]) => void;
4
44
  }, string, import("vue").PublicProps, Readonly<DBCheckboxProps> & Readonly<{
5
45
  "onUpdate:checked"?: ((...args: any[]) => any) | undefined;
6
46
  }>, {
7
47
  name: string;
8
48
  label: string;
9
- disabled: boolean;
49
+ disabled: boolean | string;
10
50
  value: any;
11
51
  children: any;
12
52
  className: string;
13
53
  id: string;
14
- size: "medium" | "small";
15
- blur: (event: FocusEvent) => void;
16
- change: (event: Event) => void;
17
- focus: (event: FocusEvent) => void;
18
- onFocus: (event: FocusEvent) => void;
19
- onBlur: (event: FocusEvent) => void;
20
- onChange: (event: Event) => void;
21
- indeterminate: boolean;
22
- validation: "invalid" | "valid" | "no-validation";
23
- required: boolean;
24
- showLabel: boolean;
25
- checked: boolean;
54
+ size: import("../../shared/model").SizeType;
55
+ onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
56
+ onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
57
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
58
+ indeterminate: boolean | string;
59
+ validation: import("../../shared/model").ValidationType;
60
+ required: boolean | string;
61
+ showLabel: boolean | string;
62
+ checked: boolean | string;
26
63
  message: string;
27
64
  validMessage: string;
28
65
  invalidMessage: string;
29
- messageIcon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
30
- showMessage: boolean;
31
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
32
- default?: ((props: {}) => any) | undefined;
33
- }>;
66
+ messageIcon: import("@db-ux/core-foundations").IconTypes;
67
+ showMessage: boolean | string;
68
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
69
+ declare const __VLS_component: import("vue").DefineComponent<DBCheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
+ "update:checked": (...args: any[]) => void;
71
+ }, string, import("vue").PublicProps, Readonly<DBCheckboxProps> & Readonly<{
72
+ "onUpdate:checked"?: ((...args: any[]) => any) | undefined;
73
+ }>, {
74
+ name: string;
75
+ label: string;
76
+ disabled: boolean | string;
77
+ value: any;
78
+ children: any;
79
+ className: string;
80
+ id: string;
81
+ size: import("../../shared/model").SizeType;
82
+ onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
83
+ onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
84
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
85
+ indeterminate: boolean | string;
86
+ validation: import("../../shared/model").ValidationType;
87
+ required: boolean | string;
88
+ showLabel: boolean | string;
89
+ checked: boolean | string;
90
+ message: string;
91
+ validMessage: string;
92
+ invalidMessage: string;
93
+ messageIcon: import("@db-ux/core-foundations").IconTypes;
94
+ showMessage: boolean | string;
95
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
96
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
97
  export default _default;
35
98
  type __VLS_WithSlots<T, S> = T & {
36
99
  new (): {
@@ -1,10 +1,10 @@
1
- import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
1
+ import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
2
2
  export type DBCheckboxDefaultProps = {
3
3
  /**
4
4
  * Define an [indeterminate](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#indeterminate) state of a checkbox
5
5
  */
6
- indeterminate?: boolean;
6
+ indeterminate?: boolean | string;
7
7
  };
8
8
  export type DBCheckboxProps = DBCheckboxDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & FormMessageProps & SizeProps;
9
9
  export type DBCheckboxDefaultState = {};
10
- export type DBCheckboxState = DBCheckboxDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState;
10
+ export type DBCheckboxState = DBCheckboxDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState & FromValidState;