@db-ux/v-core-components 1.0.0-test-13b991d

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 (103) hide show
  1. package/README.md +112 -0
  2. package/dist/components/accordion/accordion.vue.d.ts +22 -0
  3. package/dist/components/accordion/index.d.ts +1 -0
  4. package/dist/components/accordion/model.d.ts +41 -0
  5. package/dist/components/accordion-item/accordion-item.vue.d.ts +22 -0
  6. package/dist/components/accordion-item/index.d.ts +1 -0
  7. package/dist/components/accordion-item/model.d.ts +24 -0
  8. package/dist/components/badge/badge.vue.d.ts +22 -0
  9. package/dist/components/badge/index.d.ts +1 -0
  10. package/dist/components/badge/model.d.ts +16 -0
  11. package/dist/components/brand/brand.vue.d.ts +20 -0
  12. package/dist/components/brand/index.d.ts +1 -0
  13. package/dist/components/brand/model.d.ts +10 -0
  14. package/dist/components/button/button.vue.d.ts +33 -0
  15. package/dist/components/button/index.d.ts +1 -0
  16. package/dist/components/button/model.d.ts +52 -0
  17. package/dist/components/card/card.vue.d.ts +20 -0
  18. package/dist/components/card/index.d.ts +1 -0
  19. package/dist/components/card/model.d.ts +18 -0
  20. package/dist/components/checkbox/checkbox.vue.d.ts +41 -0
  21. package/dist/components/checkbox/index.d.ts +1 -0
  22. package/dist/components/checkbox/model.d.ts +10 -0
  23. package/dist/components/divider/divider.vue.d.ts +12 -0
  24. package/dist/components/divider/index.d.ts +1 -0
  25. package/dist/components/divider/model.d.ts +18 -0
  26. package/dist/components/drawer/drawer.vue.d.ts +28 -0
  27. package/dist/components/drawer/index.d.ts +1 -0
  28. package/dist/components/drawer/model.d.ts +41 -0
  29. package/dist/components/header/header.vue.d.ts +28 -0
  30. package/dist/components/header/index.d.ts +1 -0
  31. package/dist/components/header/model.d.ts +44 -0
  32. package/dist/components/icon/icon.vue.d.ts +20 -0
  33. package/dist/components/icon/index.d.ts +1 -0
  34. package/dist/components/icon/model.d.ts +12 -0
  35. package/dist/components/infotext/index.d.ts +1 -0
  36. package/dist/components/infotext/infotext.vue.d.ts +21 -0
  37. package/dist/components/infotext/model.d.ts +5 -0
  38. package/dist/components/input/index.d.ts +1 -0
  39. package/dist/components/input/input.vue.d.ts +59 -0
  40. package/dist/components/input/model.d.ts +39 -0
  41. package/dist/components/link/index.d.ts +1 -0
  42. package/dist/components/link/link.vue.d.ts +31 -0
  43. package/dist/components/link/model.d.ts +24 -0
  44. package/dist/components/navigation/index.d.ts +1 -0
  45. package/dist/components/navigation/model.d.ts +5 -0
  46. package/dist/components/navigation/navigation.vue.d.ts +17 -0
  47. package/dist/components/navigation-item/index.d.ts +1 -0
  48. package/dist/components/navigation-item/model.d.ts +34 -0
  49. package/dist/components/navigation-item/navigation-item.vue.d.ts +28 -0
  50. package/dist/components/notification/index.d.ts +1 -0
  51. package/dist/components/notification/model.d.ts +57 -0
  52. package/dist/components/notification/notification.vue.d.ts +33 -0
  53. package/dist/components/page/index.d.ts +1 -0
  54. package/dist/components/page/model.d.ts +32 -0
  55. package/dist/components/page/page.vue.d.ts +21 -0
  56. package/dist/components/popover/index.d.ts +1 -0
  57. package/dist/components/popover/model.d.ts +18 -0
  58. package/dist/components/popover/popover.vue.d.ts +24 -0
  59. package/dist/components/radio/index.d.ts +1 -0
  60. package/dist/components/radio/model.d.ts +7 -0
  61. package/dist/components/radio/radio.vue.d.ts +36 -0
  62. package/dist/components/section/index.d.ts +1 -0
  63. package/dist/components/section/model.d.ts +5 -0
  64. package/dist/components/section/section.vue.d.ts +18 -0
  65. package/dist/components/select/index.d.ts +1 -0
  66. package/dist/components/select/model.d.ts +43 -0
  67. package/dist/components/select/select.vue.d.ts +47 -0
  68. package/dist/components/stack/index.d.ts +1 -0
  69. package/dist/components/stack/model.d.ts +34 -0
  70. package/dist/components/stack/stack.vue.d.ts +22 -0
  71. package/dist/components/switch/index.d.ts +1 -0
  72. package/dist/components/switch/model.d.ts +12 -0
  73. package/dist/components/switch/switch.vue.d.ts +39 -0
  74. package/dist/components/tab-item/index.d.ts +1 -0
  75. package/dist/components/tab-item/model.d.ts +24 -0
  76. package/dist/components/tab-item/tab-item.vue.d.ts +31 -0
  77. package/dist/components/tab-list/index.d.ts +1 -0
  78. package/dist/components/tab-list/model.d.ts +5 -0
  79. package/dist/components/tab-list/tab-list.vue.d.ts +15 -0
  80. package/dist/components/tab-panel/index.d.ts +1 -0
  81. package/dist/components/tab-panel/model.d.ts +10 -0
  82. package/dist/components/tab-panel/tab-panel.vue.d.ts +18 -0
  83. package/dist/components/tabs/index.d.ts +1 -0
  84. package/dist/components/tabs/model.d.ts +47 -0
  85. package/dist/components/tabs/tabs.vue.d.ts +25 -0
  86. package/dist/components/tag/index.d.ts +1 -0
  87. package/dist/components/tag/model.d.ts +45 -0
  88. package/dist/components/tag/tag.vue.d.ts +29 -0
  89. package/dist/components/textarea/index.d.ts +1 -0
  90. package/dist/components/textarea/model.d.ts +30 -0
  91. package/dist/components/textarea/textarea.vue.d.ts +44 -0
  92. package/dist/components/tooltip/index.d.ts +1 -0
  93. package/dist/components/tooltip/model.d.ts +7 -0
  94. package/dist/components/tooltip/tooltip.vue.d.ts +22 -0
  95. package/dist/db-ux.es.js +2645 -0
  96. package/dist/db-ux.umd.js +1 -0
  97. package/dist/index.d.ts +36 -0
  98. package/dist/shared/constants.d.ts +83 -0
  99. package/dist/shared/model.d.ts +445 -0
  100. package/dist/utils/form-components.d.ts +2 -0
  101. package/dist/utils/index.d.ts +61 -0
  102. package/dist/utils/navigation.d.ts +32 -0
  103. package/package.json +58 -0
@@ -0,0 +1,44 @@
1
+ import { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model';
2
+ export type DBHeaderDefaultProps = {
3
+ /**
4
+ * Slot to pass in the DBBrand component
5
+ */
6
+ brand?: any;
7
+ /**
8
+ * Slot to pass in a meta navigation.
9
+ * Desktop: Above the regular header
10
+ * Mobile: Inside the drawer
11
+ */
12
+ metaNavigation?: any;
13
+ /**
14
+ * Slot to pass one or more elements like DBButton (e.g. search) as primary action.
15
+ * Desktop: Shown next to the main-navigation
16
+ * Mobile: Shown next to the brand
17
+ */
18
+ primaryAction?: any;
19
+ /**
20
+ * Slot to pass one or more elements like DBButton (e.g. profile, language, etc.) as secondary action.
21
+ * Desktop: Shown seperated by divider at the end of the header
22
+ * Mobile: Shown inside the drawer at the bottom.
23
+ */
24
+ secondaryAction?: any;
25
+ /**
26
+ * Open/closes the drawer for mobile header or if `forceMobile` is true.
27
+ */
28
+ drawerOpen?: boolean;
29
+ /**
30
+ * Forces the header to use mobile layout for desktop as well.
31
+ * You should only use this setting if you really can't provide a smaller navigation.
32
+ * Overwrite size of the drawer with '--db-drawer-max-width: xxx'
33
+ */
34
+ forceMobile?: boolean;
35
+ /**
36
+ * This attribute sets the label for the burger menu button for mobile headers.
37
+ */
38
+ burgerMenuLabel?: string;
39
+ };
40
+ export type DBHeaderProps = DBHeaderDefaultProps & GlobalProps & ToggleEventProps & ContainerWidthProps;
41
+ export type DBHeaderDefaultState = {
42
+ forcedToMobile?: boolean;
43
+ };
44
+ export type DBHeaderState = DBHeaderDefaultState & GlobalState & ToggleEventState<HTMLElement> & InitializedState & NavigationBehaviorState;
@@ -0,0 +1,20 @@
1
+ import type { DBIconProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBIconProps> & Readonly<{}>, {
3
+ variant: "filled" | "default" | "inverted";
4
+ children: any;
5
+ className: string;
6
+ id: string;
7
+ icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
8
+ text: string;
9
+ weight: "16" | "20" | "24" | "32" | "48" | "64";
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
11
+ _ref: HTMLSpanElement;
12
+ }, HTMLSpanElement>, {
13
+ default?(_: {}): any;
14
+ }>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1 @@
1
+ export { default as DBIcon } from './icon.vue';
@@ -0,0 +1,12 @@
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
+ export declare const IconWeightList: readonly ["16", "20", "24", "32", "48", "64"];
5
+ export type IconWeightType = (typeof IconWeightList)[number];
6
+ export type DBIconDefaultProps = {
7
+ variant?: IconVariantType;
8
+ weight?: IconWeightType;
9
+ };
10
+ export type DBIconProps = DBIconDefaultProps & GlobalProps & IconProps & TextProps;
11
+ export type DBIconDefaultState = {};
12
+ export type DBIconState = DBIconDefaultState & GlobalState;
@@ -0,0 +1 @@
1
+ export { default as DBInfotext } from './infotext.vue';
@@ -0,0 +1,21 @@
1
+ import { DBInfotextProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBInfotextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBInfotextProps> & Readonly<{}>, {
3
+ children: any;
4
+ className: string;
5
+ id: string;
6
+ icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
7
+ size: "medium" | "small";
8
+ showIcon: boolean;
9
+ text: string;
10
+ semantic: "adaptive" | "neutral" | "critical" | "informational" | "warning" | "successful";
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
12
+ _ref: HTMLSpanElement;
13
+ }, HTMLSpanElement>, {
14
+ default?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,5 @@
1
+ import { GlobalProps, GlobalState, IconProps, SemanticProps, ShowIconProps, SizeProps, TextProps } from '../../shared/model';
2
+ export type DBInfotextDefaultProps = {};
3
+ export type DBInfotextProps = DBInfotextDefaultProps & GlobalProps & SemanticProps & IconProps & SizeProps & ShowIconProps & TextProps;
4
+ export type DBInfotextDefaultState = {};
5
+ export type DBInfotextState = DBInfotextDefaultState & GlobalState;
@@ -0,0 +1 @@
1
+ export { default as DBInput } from './input.vue';
@@ -0,0 +1,59 @@
1
+ import { DBInputProps } from "./model";
2
+ import { ValueLabelType } from "../../shared/model";
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ "update:value": (...args: any[]) => void;
5
+ }, string, import("vue").PublicProps, Readonly<DBInputProps> & Readonly<{
6
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
7
+ }>, {
8
+ name: string;
9
+ step: string | number;
10
+ disabled: boolean;
11
+ label: string;
12
+ type: string;
13
+ value: any;
14
+ variant: "above" | "floating";
15
+ children: any;
16
+ className: string;
17
+ id: string;
18
+ autofocus: boolean;
19
+ icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
20
+ showIcon: boolean;
21
+ blur: (event: FocusEvent) => void;
22
+ change: (event: Event) => void;
23
+ focus: (event: FocusEvent) => void;
24
+ input: (event: Event) => void;
25
+ form: string;
26
+ pattern: string;
27
+ onFocus: (event: FocusEvent) => void;
28
+ onBlur: (event: FocusEvent) => void;
29
+ onChange: (event: Event) => void;
30
+ onInput: (event: Event) => void;
31
+ validation: "invalid" | "valid" | "no-validation";
32
+ required: boolean;
33
+ showLabel: boolean;
34
+ placeholder: string;
35
+ message: string;
36
+ validMessage: string;
37
+ invalidMessage: string;
38
+ messageIcon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
39
+ autocomplete: string;
40
+ showMessage: boolean;
41
+ dataList: string[] | ValueLabelType[];
42
+ dataListId: string;
43
+ max: string | number;
44
+ min: string | number;
45
+ maxLength: number;
46
+ minLength: number;
47
+ readOnly: boolean;
48
+ iconAfter: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
50
+ _ref: HTMLInputElement;
51
+ }, HTMLDivElement>, {
52
+ default?(_: {}): any;
53
+ }>;
54
+ export default _default;
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,39 @@
1
+ import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, GlobalProps, GlobalState, IconAfterProps, IconProps, InputEventProps, InputEventState, ShowIconProps, ValueLabelType } from '../../shared/model';
2
+ export declare const InputTypeList: readonly ["color", "date", "datetime-local", "email", "file", "hidden", "month", "number", "password", "range", "search", "tel", "text", "time", "url", "week"];
3
+ export type InputTypeType = (typeof InputTypeList)[number];
4
+ export type DBInputDefaultProps = {
5
+ /**
6
+ * Set a [data list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) via attribute instead of children.
7
+ */
8
+ dataList?: string[] | ValueLabelType[];
9
+ /**
10
+ * Add a custom id to [data list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) if you're using `dataList` attribute.
11
+ */
12
+ dataListId?: string;
13
+ /**
14
+ * Maximum value
15
+ */
16
+ max?: number | string;
17
+ /**
18
+ * Minimum value
19
+ */
20
+ min?: number | string;
21
+ /**
22
+ * Pattern the value must match to be valid
23
+ */
24
+ pattern?: string;
25
+ /**
26
+ * Type of form control
27
+ */
28
+ type?: InputTypeType | string;
29
+ /**
30
+ * Sets [step value](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).
31
+ */
32
+ step?: number | string;
33
+ };
34
+ export type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps & IconAfterProps & FormMessageProps & ShowIconProps;
35
+ export type DBInputDefaultState = {
36
+ _dataListId?: string;
37
+ getDataList: (_list?: string[] | ValueLabelType[]) => ValueLabelType[];
38
+ };
39
+ export type DBInputState = DBInputDefaultState & GlobalState & InputEventState<HTMLInputElement> & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState;
@@ -0,0 +1 @@
1
+ export { default as DBLink } from './link.vue';
@@ -0,0 +1,31 @@
1
+ import { DBLinkProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBLinkProps> & Readonly<{}>, {
3
+ rel: string;
4
+ content: "external" | "internal";
5
+ role: string;
6
+ disabled: boolean;
7
+ label: string;
8
+ variant: "adaptive" | "brand";
9
+ children: any;
10
+ className: string;
11
+ id: string;
12
+ onClick: (event: MouseEvent) => void;
13
+ size: "medium" | "small";
14
+ showIcon: boolean;
15
+ text: string;
16
+ target: "_self" | "_blank" | "_parent" | "_top";
17
+ current: boolean | "time" | "true" | "false" | "date" | "page" | "step" | "location";
18
+ href: string;
19
+ hreflang: string;
20
+ selected: boolean;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
22
+ _ref: HTMLAnchorElement;
23
+ }, HTMLAnchorElement>, {
24
+ default?(_: {}): any;
25
+ }>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,24 @@
1
+ import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, ShowIconProps, TextProps } from '../../shared/model';
2
+ export declare const LinkVariantList: readonly ["adaptive", "brand"];
3
+ export type LinkVariantType = (typeof LinkVariantList)[number];
4
+ export declare const LinkSizeList: readonly ["medium", "small"];
5
+ export type LinkSizeType = (typeof LinkSizeList)[number];
6
+ export declare const LinkContentList: readonly ["external", "internal"];
7
+ export type LinkContentType = (typeof LinkContentList)[number];
8
+ export type DBLinkDefaultProps = {
9
+ /**
10
+ * Adds a different arrow after the link to indicate external or internal link
11
+ */
12
+ content?: LinkContentType;
13
+ /**
14
+ * Change the size of the link
15
+ */
16
+ size?: LinkSizeType;
17
+ /**
18
+ * Change the styling of the link. `inline` will remove the arrow. Defaults to adaptive.
19
+ */
20
+ variant?: LinkVariantType;
21
+ };
22
+ export type DBLinkProps = DBLinkDefaultProps & GlobalProps & ClickEventProps<HTMLAnchorElement> & LinkProps & ShowIconProps & TextProps;
23
+ export type DBLinkDefaultState = {};
24
+ export type DBLinkState = DBLinkDefaultState & GlobalState & ClickEventState<HTMLAnchorElement>;
@@ -0,0 +1 @@
1
+ export { default as DBNavigation } from './navigation.vue';
@@ -0,0 +1,5 @@
1
+ import { AriaLabelledByProps, GlobalProps, GlobalState } from '../../shared/model';
2
+ export type DBNavigationDefaultProps = {};
3
+ export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps & AriaLabelledByProps;
4
+ export type DBNavigationDefaultState = {};
5
+ export type DBNavigationState = DBNavigationDefaultState & GlobalState;
@@ -0,0 +1,17 @@
1
+ import { DBNavigationProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationProps> & Readonly<{}>, {
3
+ children: any;
4
+ className: string;
5
+ id: string;
6
+ labelledBy: string;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
8
+ _ref: HTMLElement;
9
+ }, HTMLElement>, {
10
+ default?(_: {}): any;
11
+ }>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1 @@
1
+ export { default as DBNavigationItem } from './navigation-item.vue';
@@ -0,0 +1,34 @@
1
+ import { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, ShowIconProps, TextProps, WidthProps } from '../../shared/model';
2
+ import { NavigationItemSafeTriangle } from '../../utils/navigation';
3
+ export type DBNavigationItemDefaultProps = {
4
+ /**
5
+ * Alternative indicator for active navigation item (bold font). In contrast to the use of aria-current="page" on the contained anchor, this does not guarantee correct a11y.
6
+ */
7
+ active?: boolean;
8
+ /**
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
+ */
11
+ disabled?: boolean;
12
+ /**
13
+ * React-specific property to pass in a slot for sub-navigation
14
+ */
15
+ subNavigation?: any;
16
+ /**
17
+ * This is for mobile navigation only, if it is set the sub-navigation is a static overlay
18
+ */
19
+ subNavigationExpanded?: boolean;
20
+ };
21
+ export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & NavigationBackButtonProps & ShowIconProps & TextProps;
22
+ export type DBNavigationItemDefaultState = {
23
+ handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
24
+ hasAreaPopup: boolean;
25
+ isSubNavigationExpanded: boolean;
26
+ subNavigationId: string;
27
+ /**
28
+ * Internal state property to show/hide sub-navigation button
29
+ */
30
+ hasSubNavigation?: boolean;
31
+ updateSubNavigationState: () => void;
32
+ navigationItemSafeTriangle?: NavigationItemSafeTriangle;
33
+ };
34
+ export type DBNavigationItemState = DBNavigationItemDefaultState & ClickEventState<HTMLButtonElement> & GlobalState & InitializedState;
@@ -0,0 +1,28 @@
1
+ import { DBNavigationItemProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationItemProps> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ children: any;
5
+ className: string;
6
+ id: string;
7
+ onClick: (event: MouseEvent) => void;
8
+ icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
9
+ width: "full" | "auto";
10
+ showIcon: boolean;
11
+ text: string;
12
+ active: boolean;
13
+ subNavigationExpanded: boolean;
14
+ backButtonId: string;
15
+ backButtonText: string;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
17
+ _ref: HTMLLIElement;
18
+ }, HTMLLIElement>, {
19
+ default?(_: {}): any;
20
+ default?(_: {}): any;
21
+ 'sub-navigation'?(_: {}): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1 @@
1
+ export { default as DBNotification } from './notification.vue';
@@ -0,0 +1,57 @@
1
+ import { CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, PopoverProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
2
+ export declare const NotificationVariantList: readonly ["docked", "standalone", "overlay"];
3
+ export type NotificationVariantType = (typeof NotificationVariantList)[number];
4
+ export declare const NotificationLinkVariantList: readonly ["block", "inline"];
5
+ export type NotificationLinkVariantType = (typeof NotificationLinkVariantList)[number];
6
+ export declare const NotificationAriaLiveList: readonly ["assertive", "polite", "off"];
7
+ export type NotificationAriaLiveType = (typeof NotificationAriaLiveList)[number];
8
+ export type DBNotificationDefaultProps = {
9
+ /**
10
+ * The arialive attribute will lead to that the screenreader interrupts immediately
11
+ * and reads out the notification if set to "assertive", while it will wait for the
12
+ * user's idleness when set to "polite", compare to [aria-live](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live)
13
+ */
14
+ ariaLive?: NotificationAriaLiveType;
15
+ /**
16
+ * The closeable attribute shows/hides the close button on the top right.
17
+ */
18
+ closeable?: boolean;
19
+ /**
20
+ * The headline attribute changes the text of the bold headline.
21
+ */
22
+ headline?: string | any;
23
+ /**
24
+ * The slotImage can be set instead of an icon.
25
+ */
26
+ image?: any;
27
+ /**
28
+ * The slotLink can be set for non overlay-notifications
29
+ */
30
+ link?: any;
31
+ /**
32
+ * The linkVariant will be used if slotLink is set.
33
+ */
34
+ linkVariant?: NotificationLinkVariantType;
35
+ /**
36
+ * Enables or disables the visibility of the headline.
37
+ */
38
+ showHeadline?: boolean;
39
+ /**
40
+ * The timestamp attribute can be set for overlay notifications
41
+ */
42
+ timestamp?: string;
43
+ /**
44
+ * Enables or disables the visibility of the timestamp.
45
+ */
46
+ showTimestamp?: boolean;
47
+ /**
48
+ * The variant attribute changes the styling of the notification.
49
+ * The docked notifications are used e.g. between header and main content to show a global alert.
50
+ * The standalone notifications are used e.g. inside a form to show an alert for a specific field.
51
+ * The overlay notifications are used for absolute and floating notifications like snackbars etc.
52
+ */
53
+ variant?: NotificationVariantType;
54
+ };
55
+ export type DBNotificationProps = DBNotificationDefaultProps & GlobalProps & CloseEventProps & IconProps & SemanticProps & InnerCloseButtonProps & PopoverProps & ShowIconProps & TextProps;
56
+ export type DBNotificationDefaultState = {};
57
+ export type DBNotificationState = DBNotificationDefaultState & GlobalState & CloseEventState;
@@ -0,0 +1,33 @@
1
+ import { DBNotificationProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBNotificationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNotificationProps> & Readonly<{}>, {
3
+ variant: "docked" | "standalone" | "overlay";
4
+ children: any;
5
+ className: string;
6
+ id: string;
7
+ icon: import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete;
8
+ showIcon: boolean;
9
+ text: string;
10
+ ariaLive: "off" | "assertive" | "polite";
11
+ closeable: boolean;
12
+ headline: any;
13
+ linkVariant: "block" | "inline";
14
+ showHeadline: boolean;
15
+ timestamp: string;
16
+ showTimestamp: boolean;
17
+ onClose: (event?: any) => void;
18
+ semantic: "adaptive" | "neutral" | "critical" | "informational" | "warning" | "successful";
19
+ closeButtonId: string;
20
+ closeButtonText: string;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
22
+ _ref: HTMLElement;
23
+ }, HTMLElement>, {
24
+ image?(_: {}): any;
25
+ default?(_: {}): any;
26
+ link?(_: {}): any;
27
+ }>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1 @@
1
+ export { default as DBPage } from './page.vue';
@@ -0,0 +1,32 @@
1
+ import { GlobalProps, GlobalState } from '../../shared/model';
2
+ export declare const PageVariantList: readonly ["auto", "fixed"];
3
+ export type PageVariantType = (typeof PageVariantList)[number];
4
+ export declare const PageDocumentOverflowList: readonly ["hidden", "auto"];
5
+ export type PageDocumentOverflowType = (typeof PageDocumentOverflowList)[number];
6
+ export type DBPageDefaultProps = {
7
+ /**
8
+ * The documentOverflow sets the overflow:hidden/auto to the root document
9
+ */
10
+ documentOverflow?: PageDocumentOverflowType;
11
+ /**
12
+ * Set this to have a transition with opacity to avoid layout-shifts https://simonhearne.com/2021/layout-shifts-webfonts/
13
+ */
14
+ fadeIn?: boolean;
15
+ /**
16
+ * The slot can be used for React to set a footer.
17
+ */
18
+ footer?: any;
19
+ /**
20
+ * The slot can be used for React to set a header.
21
+ */
22
+ header?: any;
23
+ /**
24
+ * The variant=fixed uses flex-box to make header and footer static
25
+ */
26
+ variant?: PageVariantType;
27
+ };
28
+ export type DBPageProps = DBPageDefaultProps & GlobalProps;
29
+ export type DBPageDefaultState = {
30
+ fontsLoaded?: boolean;
31
+ };
32
+ export type DBPageState = DBPageDefaultState & GlobalState;
@@ -0,0 +1,21 @@
1
+ import { DBPageProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBPageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBPageProps> & Readonly<{}>, {
3
+ variant: "auto" | "fixed";
4
+ children: any;
5
+ className: string;
6
+ id: string;
7
+ documentOverflow: "auto" | "hidden";
8
+ fadeIn: boolean;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
10
+ _ref: HTMLDivElement;
11
+ }, HTMLDivElement>, {
12
+ header?(_: {}): any;
13
+ default?(_: {}): any;
14
+ footer?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1 @@
1
+ export { default as DBPopover } from './popover.vue';
@@ -0,0 +1,18 @@
1
+ import { GapProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, SpacingProps } from '../../shared/model';
2
+ export type DBPopoverDefaultProps = {
3
+ /**
4
+ * Use open to disable the default hover/focus behavior to use it on click or other trigger.
5
+ */
6
+ open?: boolean;
7
+ /**
8
+ * The trigger to open the popover e.g. a button
9
+ */
10
+ trigger?: any;
11
+ };
12
+ export type DBPopoverProps = DBPopoverDefaultProps & GlobalProps & SpacingProps & PlacementProps & GapProps & PopoverProps;
13
+ export type DBPopoverDefaultState = {
14
+ isExpanded?: boolean;
15
+ getTrigger: () => Element | null;
16
+ handleLeave: (event: any) => void;
17
+ };
18
+ export type DBPopoverState = DBPopoverDefaultState & GlobalState & PopoverState & InitializedState;
@@ -0,0 +1,24 @@
1
+ import { DBPopoverProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBPopoverProps> & Readonly<{}>, {
3
+ children: any;
4
+ className: string;
5
+ id: string;
6
+ width: "auto" | "fixed";
7
+ delay: "none" | "slow" | "fast";
8
+ animation: boolean;
9
+ placement: "left" | "right" | "top" | "bottom" | "left-start" | "left-end" | "right-start" | "right-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
10
+ spacing: "medium" | "small" | "large" | "none";
11
+ open: boolean;
12
+ gap: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
14
+ _ref: HTMLDivElement;
15
+ }, HTMLDivElement>, {
16
+ trigger?(_: {}): any;
17
+ default?(_: {}): any;
18
+ }>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1 @@
1
+ export { default as DBRadio } from './radio.vue';
@@ -0,0 +1,7 @@
1
+ import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
2
+ export type DBRadioDefaultProps = {
3
+ describedbyid?: string;
4
+ };
5
+ export type DBRadioProps = DBRadioDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & SizeProps;
6
+ export type DBRadioDefaultState = {};
7
+ export type DBRadioState = DBRadioDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState;
@@ -0,0 +1,36 @@
1
+ import { DBRadioProps } from "./model";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<DBRadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ "update:checked": (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<DBRadioProps> & Readonly<{
5
+ "onUpdate:checked"?: ((...args: any[]) => any) | undefined;
6
+ }>, {
7
+ name: string;
8
+ disabled: boolean;
9
+ label: string;
10
+ value: any;
11
+ children: any;
12
+ className: string;
13
+ describedbyid: string;
14
+ id: string;
15
+ size: "medium" | "small";
16
+ blur: (event: FocusEvent) => void;
17
+ change: (event: Event) => void;
18
+ focus: (event: FocusEvent) => void;
19
+ onFocus: (event: FocusEvent) => void;
20
+ onBlur: (event: FocusEvent) => void;
21
+ onChange: (event: Event) => void;
22
+ validation: "invalid" | "valid" | "no-validation";
23
+ required: boolean;
24
+ showLabel: boolean;
25
+ checked: boolean;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
27
+ _ref: HTMLInputElement;
28
+ }, HTMLLabelElement>, {
29
+ default?(_: {}): any;
30
+ }>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1 @@
1
+ export { default as DBSection } from './section.vue';
@@ -0,0 +1,5 @@
1
+ import { ContainerWidthProps, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';
2
+ export type DBSectionDefaultProps = {};
3
+ export type DBSectionProps = DBSectionDefaultProps & GlobalProps & SpacingProps & ContainerWidthProps;
4
+ export type DBSectionDefaultState = {};
5
+ export type DBSectionState = DBSectionDefaultState & GlobalState;