@db-ux/v-core-components 4.9.0-stencil-bundle-ad37ca4 → 4.9.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.
- package/CHANGELOG.md +19 -1
- package/dist/components/accordion/model.d.ts +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +0 -1
- package/dist/components/accordion-item/model.d.ts +1 -5
- package/dist/components/badge/model.d.ts +1 -1
- package/dist/components/brand/model.d.ts +1 -1
- package/dist/components/button/model.d.ts +1 -1
- package/dist/components/card/model.d.ts +1 -1
- package/dist/components/checkbox/model.d.ts +1 -1
- package/dist/components/custom-button/model.d.ts +2 -2
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +4 -4
- package/dist/components/custom-select-dropdown/model.d.ts +1 -1
- package/dist/components/custom-select-form-field/model.d.ts +1 -1
- package/dist/components/custom-select-list/model.d.ts +1 -1
- package/dist/components/custom-select-list-item/model.d.ts +1 -1
- package/dist/components/divider/model.d.ts +1 -1
- package/dist/components/drawer/model.d.ts +1 -1
- package/dist/components/header/header.vue.d.ts +8 -8
- package/dist/components/header/model.d.ts +1 -1
- package/dist/components/icon/model.d.ts +1 -1
- package/dist/components/infotext/model.d.ts +1 -1
- package/dist/components/input/model.d.ts +1 -1
- package/dist/components/link/model.d.ts +1 -1
- package/dist/components/navigation/model.d.ts +1 -1
- package/dist/components/navigation-item/model.d.ts +2 -6
- package/dist/components/navigation-item/navigation-item.vue.d.ts +3 -4
- package/dist/components/notification/model.d.ts +1 -1
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/radio/model.d.ts +1 -1
- package/dist/components/section/model.d.ts +1 -1
- package/dist/components/select/model.d.ts +1 -1
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/switch/model.d.ts +1 -1
- package/dist/components/tab-item/model.d.ts +1 -1
- package/dist/components/tab-list/model.d.ts +1 -1
- package/dist/components/tab-panel/model.d.ts +1 -1
- package/dist/components/tabs/model.d.ts +3 -3
- package/dist/components/tag/model.d.ts +1 -1
- package/dist/components/textarea/model.d.ts +1 -1
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/db-ux.es.js +22 -35
- package/dist/db-ux.umd.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @db-ux/v-core-components
|
|
2
2
|
|
|
3
|
+
## 4.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(switch): use `2lh` unit and add `min-inline-size` to prevent track from shrinking - [see commit 78c9fde](https://github.com/db-ux-design-system/core-web/commit/78c9fde67d9677f61eaa41761a088b9c1a9773a1)
|
|
8
|
+
|
|
9
|
+
- fix(notification): remove empty grid gap when icon is hidden - [see commit 96f94c6](https://github.com/db-ux-design-system/core-web/commit/96f94c651391f014e2d073402c2700b524ccbf5e)
|
|
10
|
+
|
|
11
|
+
## 4.9.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- refactor: allow text and children to be used together in components - [see commit cecb833](https://github.com/db-ux-design-system/core-web/commit/cecb833e2d2b2d15b47f9ac1ed57ccf1040374f0):
|
|
16
|
+
- feat: add `text` property to components that previously only supported children for their label, like e.g. `DBTooltip`.
|
|
17
|
+
- refactor: allow `text` property and components children to be used in parallel in components. Previously, `text` and children were mutually exclusive.
|
|
18
|
+
- refactor(`DBRadio`, `DBCheckbox`, `DBSwitch`): `label` and `children` can now be used together. Previously they were mutually exclusive.
|
|
19
|
+
- fix(`DBTag`): changed render order of `children` and `text` to align with design (children rendered before text).
|
|
20
|
+
|
|
3
21
|
## 4.8.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -189,7 +207,7 @@ _version bump_
|
|
|
189
207
|
|
|
190
208
|
- fix: set DBTabItem internal state `_selected` correctly - [see commit f7625cb](https://github.com/db-ux-design-system/core-web/commit/f7625cbd9d64513527e826c9d2c1ef42b2734a4b):
|
|
191
209
|
|
|
192
|
-
|
|
210
|
+
- Now also sets aria-selected=true|false correctly which improves screen reader behaviour
|
|
193
211
|
|
|
194
212
|
## 4.2.1
|
|
195
213
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GlobalProps, InitializedState } from '../../shared/model';
|
|
2
|
-
import { DBAccordionItemDefaultProps } from '../accordion-item/model';
|
|
1
|
+
import type { GlobalProps, InitializedState } from '../../shared/model';
|
|
2
|
+
import type { DBAccordionItemDefaultProps } from '../accordion-item/model';
|
|
3
3
|
export declare const AccordionVariantList: readonly ["divider", "card"];
|
|
4
4
|
export type AccordionVariantType = (typeof AccordionVariantList)[number];
|
|
5
5
|
export declare const AccordionBehaviorList: readonly ["multiple", "single"];
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { GlobalProps, InitializedState, NameProps, NameState, TextProps, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, InitializedState, NameProps, NameState, TextProps, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
2
2
|
export type DBAccordionItemDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Initial state for the accordion item
|
|
5
5
|
*/
|
|
6
6
|
defaultOpen?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* State for the accordion item
|
|
9
|
-
*/
|
|
10
|
-
open?: boolean;
|
|
11
7
|
/**
|
|
12
8
|
* The disabled attribute can be set to keep a user from clicking on the element.
|
|
13
9
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmphasisProps, GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TextProps, WrapProps } from '../../shared/model';
|
|
1
|
+
import type { EmphasisProps, GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TextProps, WrapProps } 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 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
2
|
export type DBBrandDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated: Disable the default logo svg to pass in a custom `img`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEventProps, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, NoTextProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEventProps, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, NoTextProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
|
|
2
2
|
export declare const ButtonVariantList: readonly ["outlined", "brand", "filled", "ghost"];
|
|
3
3
|
export type ButtonVariantType = (typeof ButtonVariantList)[number];
|
|
4
4
|
export declare const ButtonTypeList: readonly ["button", "reset", "submit"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';
|
|
2
2
|
export declare const CardBehaviorList: readonly ["static", "interactive"];
|
|
3
3
|
export type CardBehaviorType = (typeof CardBehaviorList)[number];
|
|
4
4
|
export declare const CardElevationLevelList: readonly ["1", "2", "3"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
|
|
1
|
+
import type { 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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, NoTextProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, WidthProps, WrapProps } from '../../shared/model';
|
|
2
|
-
import { DBButtonSharedProps } from '../button/model';
|
|
1
|
+
import type { GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, NoTextProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, WidthProps, WrapProps } from '../../shared/model';
|
|
2
|
+
import type { DBButtonSharedProps } from '../button/model';
|
|
3
3
|
export type DBCustomButtonDefaultProps = {};
|
|
4
4
|
export type DBCustomButtonProps = DBCustomButtonDefaultProps & DBButtonSharedProps & GlobalProps & IconProps & WidthProps & SizeProps & ShowIconProps & ShowIconLeadingProps & ShowIconTrailingProps & IconLeadingProps & IconTrailingProps & NoTextProps & WrapProps;
|
|
5
5
|
export type DBCustomButtonDefaultState = {};
|
|
@@ -17,8 +17,8 @@ declare const __VLS_base: import("vue").DefineComponent<DBCustomSelectProps, {},
|
|
|
17
17
|
form: string;
|
|
18
18
|
label: string;
|
|
19
19
|
values: string[];
|
|
20
|
-
open: boolean;
|
|
21
20
|
disabled: boolean | string;
|
|
21
|
+
open: boolean;
|
|
22
22
|
multiple: boolean | string;
|
|
23
23
|
variant: import("../../shared/model").LabelVariantType;
|
|
24
24
|
placement: import("../../shared/model").PlacementVerticalType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseFormProps, ClickEvent, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GeneralEvent, GlobalProps, GlobalState, IconProps, InputEvent, InteractionEvent, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';
|
|
2
|
-
import { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';
|
|
3
|
-
import { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
|
|
4
|
-
import { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';
|
|
1
|
+
import type { BaseFormProps, ClickEvent, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GeneralEvent, GlobalProps, GlobalState, IconProps, InputEvent, InteractionEvent, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';
|
|
2
|
+
import type { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';
|
|
3
|
+
import type { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
|
|
4
|
+
import type { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';
|
|
5
5
|
export type CustomSelectOptionType = {
|
|
6
6
|
/**
|
|
7
7
|
* Disables this option
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
2
|
export declare const CustomSelectDropdownWidthList: readonly ["fixed", "auto", "full"];
|
|
3
3
|
export type CustomSelectDropdownWidthType = (typeof CustomSelectDropdownWidthList)[number];
|
|
4
4
|
export type DBCustomSelectDropdownDefaultProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
2
|
export type DBCustomSelectFormFieldDefaultProps = {};
|
|
3
3
|
export type DBCustomSelectFormFieldProps = DBCustomSelectFormFieldDefaultProps & GlobalProps;
|
|
4
4
|
export type DBCustomSelectFormFieldDefaultState = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseFormProps, ChangeEventProps, ChangeEventState, FormCheckProps, GlobalProps, IconProps, ShowIconProps, ValueProps } from '../../shared/model';
|
|
1
|
+
import type { BaseFormProps, ChangeEventProps, ChangeEventState, FormCheckProps, GlobalProps, IconProps, ShowIconProps, ValueProps } from '../../shared/model';
|
|
2
2
|
export declare const CustomSelectListItemTypeList: readonly ["checkbox", "radio"];
|
|
3
3
|
export type CustomSelectListItemTypeType = (typeof CustomSelectListItemTypeList)[number];
|
|
4
4
|
export type DBCustomSelectListItemExtraProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmphasisProps, GlobalProps, GlobalState, MarginProps, WidthProps } from '../../shared/model';
|
|
1
|
+
import type { EmphasisProps, GlobalProps, GlobalState, MarginProps, WidthProps } from '../../shared/model';
|
|
2
2
|
export declare const DividerMarginList: readonly ["none", "_"];
|
|
3
3
|
export type DividerMarginType = (typeof DividerMarginList)[number];
|
|
4
4
|
export declare const DividerVariantList: readonly ["horizontal", "vertical"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
2
2
|
export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
3
3
|
export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
4
4
|
export declare const DrawerDirectionList: readonly ["left", "right", "up", "down"];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { DBHeaderProps } from "./model";
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {}, __VLS_27: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
5
|
} & {
|
|
6
|
-
|
|
6
|
+
'meta-navigation'?: (props: typeof __VLS_9) => any;
|
|
7
7
|
} & {
|
|
8
|
-
|
|
8
|
+
'secondary-action'?: (props: typeof __VLS_11) => any;
|
|
9
9
|
} & {
|
|
10
|
-
'
|
|
10
|
+
'meta-navigation'?: (props: typeof __VLS_13) => any;
|
|
11
11
|
} & {
|
|
12
|
-
|
|
12
|
+
brand?: (props: typeof __VLS_15) => any;
|
|
13
13
|
} & {
|
|
14
|
-
default?: (props: typeof
|
|
14
|
+
default?: (props: typeof __VLS_17) => any;
|
|
15
15
|
} & {
|
|
16
|
-
'
|
|
16
|
+
'primary-action'?: (props: typeof __VLS_19) => any;
|
|
17
17
|
} & {
|
|
18
18
|
'secondary-action'?: (props: typeof __VLS_27) => any;
|
|
19
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
1
|
+
import type { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
2
2
|
export type DBHeaderDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Slot to pass in the DBBrand component
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';
|
|
2
2
|
export declare const IconWeightList: readonly ["16", "20", "24", "32", "48", "64"];
|
|
3
3
|
export type IconWeightType = (typeof IconWeightList)[number];
|
|
4
4
|
export type DBIconDefaultProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState, IconProps, SemanticProps, ShowIconProps, SizeProps, TextProps, WrapProps } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, GlobalState, IconProps, SemanticProps, ShowIconProps, SizeProps, TextProps, WrapProps } from '../../shared/model';
|
|
2
2
|
export type DBInfotextDefaultProps = {};
|
|
3
3
|
export type DBInfotextProps = DBInfotextDefaultProps & GlobalProps & SemanticProps & IconProps & SizeProps & ShowIconProps & TextProps & WrapProps;
|
|
4
4
|
export type DBInfotextDefaultState = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InputEventProps, InputEventState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeType, ValueLabelType } from '../../shared/model';
|
|
1
|
+
import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InputEventProps, InputEventState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeType, 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 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, RoleProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, RoleProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';
|
|
2
2
|
export declare const LinkVariantList: readonly ["adaptive", "brand", "inline"];
|
|
3
3
|
export type LinkVariantType = (typeof LinkVariantList)[number];
|
|
4
4
|
export declare const LinkSizeList: readonly ["medium", "small"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, ShowIconProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
|
|
2
|
-
import { NavigationItemSafeTriangle } from '../../utils/navigation';
|
|
1
|
+
import type { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, ShowIconProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
|
|
2
|
+
import type { NavigationItemSafeTriangle } from '../../utils/navigation';
|
|
3
3
|
export type DBNavigationItemDefaultProps = {
|
|
4
4
|
/**
|
|
5
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.
|
|
@@ -17,10 +17,6 @@ export type DBNavigationItemDefaultProps = {
|
|
|
17
17
|
* This is for mobile navigation only, if it is set the sub-navigation is a static overlay
|
|
18
18
|
*/
|
|
19
19
|
subNavigationExpanded?: boolean | string;
|
|
20
|
-
/**
|
|
21
|
-
* Force hide sub-navigation - for web component output
|
|
22
|
-
*/
|
|
23
|
-
hideSubNavigation?: boolean;
|
|
24
20
|
};
|
|
25
21
|
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & WrapProps & NavigationBackButtonProps & ShowIconProps & TextProps;
|
|
26
22
|
export type DBNavigationItemDefaultState = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ClickEvent } from "../../shared/model";
|
|
2
2
|
import { DBNavigationItemProps } from "./model";
|
|
3
|
-
declare var __VLS_1: {},
|
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_11: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_1) => any;
|
|
6
6
|
} & {
|
|
7
|
-
|
|
7
|
+
default?: (props: typeof __VLS_3) => any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
9
|
+
'sub-navigation'?: (props: typeof __VLS_11) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<DBNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationItemProps> & Readonly<{}>, {
|
|
12
12
|
id: string;
|
|
@@ -22,7 +22,6 @@ declare const __VLS_base: import("vue").DefineComponent<DBNavigationItemProps, {
|
|
|
22
22
|
width: import("../../shared/model").WidthType | string;
|
|
23
23
|
active: boolean;
|
|
24
24
|
subNavigationExpanded: boolean | string;
|
|
25
|
-
hideSubNavigation: boolean;
|
|
26
25
|
backButtonId: string;
|
|
27
26
|
backButtonText: string;
|
|
28
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, RoleProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, RoleProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
2
|
export declare const NotificationVariantList: readonly ["docked", "standalone", "overlay"];
|
|
3
3
|
export type NotificationVariantType = (typeof NotificationVariantList)[number];
|
|
4
4
|
export declare const NotificationLinkVariantList: readonly ["block", "inline"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
2
|
export declare const PageVariantList: readonly ["auto", "fixed"];
|
|
3
3
|
export type PageVariantType = (typeof PageVariantList)[number];
|
|
4
4
|
export declare const PageDocumentOverflowList: readonly ["hidden", "auto"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GapProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, SpacingProps } from '../../shared/model';
|
|
1
|
+
import type { GapProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, SpacingProps } from '../../shared/model';
|
|
2
2
|
export type DBPopoverDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Use open to disable the default hover/focus behavior to use it on click or other trigger.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, InputEventProps, InputEventState, SizeProps } from '../../shared/model';
|
|
1
|
+
import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, InputEventProps, InputEventState, SizeProps } from '../../shared/model';
|
|
2
2
|
export type DBRadioDefaultProps = {};
|
|
3
3
|
export type DBRadioProps = DBRadioDefaultProps & GlobalProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & SizeProps;
|
|
4
4
|
export type DBRadioDefaultState = {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ContainerWidthProps, GlobalProps, SpacingProps } from '../../shared/model';
|
|
1
|
+
import type { ContainerWidthProps, GlobalProps, SpacingProps } from '../../shared/model';
|
|
2
2
|
export type DBSectionDefaultProps = {};
|
|
3
3
|
export type DBSectionProps = DBSectionDefaultProps & GlobalProps & SpacingProps & ContainerWidthProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, InitializedState, InputEventProps, InputEventState, ShowIconProps } from '../../shared/model';
|
|
1
|
+
import type { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, InitializedState, InputEventProps, InputEventState, ShowIconProps } from '../../shared/model';
|
|
2
2
|
export type DBSelectDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GapSpacingProps, GlobalProps, GlobalState } from '../../shared/model';
|
|
1
|
+
import type { GapSpacingProps, GlobalProps, GlobalState } from '../../shared/model';
|
|
2
2
|
export declare const StackVariantList: readonly ["simple", "divider"];
|
|
3
3
|
export type StackVariantType = (typeof StackVariantList)[number];
|
|
4
4
|
export declare const StackDirectionList: readonly ["row", "column"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GeneralKeyboardEvent, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, LabelVariantHorizontalType, SizeProps } from '../../shared/model';
|
|
1
|
+
import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GeneralKeyboardEvent, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, LabelVariantHorizontalType, SizeProps } from '../../shared/model';
|
|
2
2
|
export type DBSwitchDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Add additional icons to indicate active/inactive state.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActiveProps, ChangeEventProps, ChangeEventState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InitializedState, NameProps, NameState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps } from '../../shared/model';
|
|
1
|
+
import type { ActiveProps, ChangeEventProps, ChangeEventState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InitializedState, NameProps, NameState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps } from '../../shared/model';
|
|
2
2
|
export type DBTabItemDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* To control the component
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AlignmentProps, GlobalProps, InitializedState, InputEvent, OrientationProps, WidthProps } from '../../shared/model';
|
|
2
|
-
import { DBTabItemProps } from '../tab-item/model';
|
|
3
|
-
import { DBTabPanelProps } from '../tab-panel/model';
|
|
1
|
+
import type { AlignmentProps, GlobalProps, InitializedState, InputEvent, OrientationProps, WidthProps } from '../../shared/model';
|
|
2
|
+
import type { DBTabItemProps } from '../tab-item/model';
|
|
3
|
+
import type { DBTabPanelProps } from '../tab-panel/model';
|
|
4
4
|
export declare const TabsBehaviorList: readonly ["scrollbar", "arrows"];
|
|
5
5
|
export type TabsBehaviorType = (typeof TabsBehaviorList)[number];
|
|
6
6
|
export declare const TabsInitialSelectedModeList: readonly ["auto", "manually"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps, NoTextProps, OverflowProps, SemanticProps, ShowIconProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps, NoTextProps, OverflowProps, SemanticProps, ShowIconProps } from '../../shared/model';
|
|
2
2
|
export declare const TagBehaviorList: readonly ["static", "removable"];
|
|
3
3
|
export type TagBehaviorType = (typeof TagBehaviorList)[number];
|
|
4
4
|
export type DBTagEventsProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, InputEventProps, InputEventState } from '../../shared/model';
|
|
1
|
+
import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, InputEventProps, InputEventState } from '../../shared/model';
|
|
2
2
|
export declare const TextareaResizeList: readonly ["none", "both", "horizontal", "vertical"];
|
|
3
3
|
export type TextareaResizeType = (typeof TextareaResizeList)[number];
|
|
4
4
|
export declare const TextareaWrapList: readonly ["hard", "soft", "off"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEventState, DocumentScrollState, EmphasisProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, ResetIdState, TextProps, WrapProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEventState, DocumentScrollState, EmphasisProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, ResetIdState, TextProps, WrapProps } from '../../shared/model';
|
|
2
2
|
export declare const TooltipVariantList: readonly ["description", "label"];
|
|
3
3
|
export type TooltipVariantType = (typeof TooltipVariantList)[number];
|
|
4
4
|
export type DBTooltipDefaultProps = {
|
package/dist/db-ux.es.js
CHANGED
|
@@ -57,10 +57,6 @@ var b = () => {
|
|
|
57
57
|
type: Boolean,
|
|
58
58
|
default: void 0
|
|
59
59
|
},
|
|
60
|
-
open: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: void 0
|
|
63
|
-
},
|
|
64
60
|
disabled: {
|
|
65
61
|
type: [Boolean, String],
|
|
66
62
|
default: void 0
|
|
@@ -95,16 +91,11 @@ var b = () => {
|
|
|
95
91
|
}, {
|
|
96
92
|
immediate: !0,
|
|
97
93
|
flush: "post"
|
|
98
|
-
}), v(() => [o.open], () => {
|
|
99
|
-
o.open !== void 0 && (s.value = o.open);
|
|
100
|
-
}, {
|
|
101
|
-
immediate: !0,
|
|
102
|
-
flush: "post"
|
|
103
94
|
});
|
|
104
95
|
function y(e) {
|
|
105
96
|
e?.preventDefault();
|
|
106
97
|
let t = !s.value;
|
|
107
|
-
o.onToggle && o.onToggle(t),
|
|
98
|
+
o.onToggle && o.onToggle(t), s.value = t;
|
|
108
99
|
}
|
|
109
100
|
return (l, f) => (d(), r("li", {
|
|
110
101
|
id: t.id ?? t.propOverrides?.id,
|
|
@@ -143,7 +134,7 @@ var b = () => {
|
|
|
143
134
|
o.name,
|
|
144
135
|
o.behavior
|
|
145
136
|
], () => {
|
|
146
|
-
u.value &&
|
|
137
|
+
u.value && (o.behavior === "single" ? o.name ? s.value !== o.name && (s.value = o.name) : s.value = `accordion-${a}` : s.value = "");
|
|
147
138
|
}, {
|
|
148
139
|
immediate: !0,
|
|
149
140
|
flush: "post"
|
|
@@ -2448,7 +2439,7 @@ var b = () => {
|
|
|
2448
2439
|
}
|
|
2449
2440
|
function _() {
|
|
2450
2441
|
if (s.value) {
|
|
2451
|
-
let e =
|
|
2442
|
+
let e = !!t.open;
|
|
2452
2443
|
e && !s.value.open && (u.value && u.value.removeAttribute("data-transition"), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? s.value.show() : s.value.showModal(), D(() => {
|
|
2453
2444
|
u.value && (u.value.dataset.transition = "open");
|
|
2454
2445
|
}, 1)), !e && s.value.open && (u.value && (u.value.dataset.transition = "close"), D(() => {
|
|
@@ -2572,7 +2563,7 @@ var b = () => {
|
|
|
2572
2563
|
"id",
|
|
2573
2564
|
"data-width",
|
|
2574
2565
|
"data-on-forcing-mobile"
|
|
2575
|
-
], hn = { class: "db-header-
|
|
2566
|
+
], hn = { class: "db-header-drawer-navigation" }, gn = { class: "db-header-meta-navigation" }, _n = { class: "db-header-secondary-action" }, vn = { class: "db-header-meta-navigation" }, yn = { class: "db-header-navigation-bar" }, bn = { class: "db-header-brand-container" }, xn = { class: "db-header-navigation-container" }, Sn = { class: "db-header-navigation" }, Cn = { class: "db-header-primary-action" }, wn = { class: "db-header-action-container" }, Tn = { class: "db-header-burger-menu-container" }, En = { class: "db-header-secondary-action" }, Dn = /* @__PURE__ */ s({
|
|
2576
2567
|
name: "DBHeader",
|
|
2577
2568
|
__name: "header",
|
|
2578
2569
|
props: {
|
|
@@ -2633,20 +2624,6 @@ var b = () => {
|
|
|
2633
2624
|
"data-width": e.width,
|
|
2634
2625
|
"data-on-forcing-mobile": e.forceMobile && !s.value
|
|
2635
2626
|
}, [
|
|
2636
|
-
i("div", hn, [m(n.$slots, "meta-navigation")]),
|
|
2637
|
-
i("div", gn, [
|
|
2638
|
-
i("div", _n, [m(n.$slots, "brand")]),
|
|
2639
|
-
i("div", vn, [i("div", yn, [m(n.$slots, "default")]), i("div", bn, [m(n.$slots, "primary-action")])]),
|
|
2640
|
-
i("div", xn, [i("div", Sn, [o(Ie, {
|
|
2641
|
-
icon: "menu",
|
|
2642
|
-
variant: "ghost",
|
|
2643
|
-
noText: !0,
|
|
2644
|
-
onClick: (e) => p()
|
|
2645
|
-
}, {
|
|
2646
|
-
default: y(() => [a(h(e.burgerMenuLabel ?? g("BurgerMenu")), 1)]),
|
|
2647
|
-
_: 1
|
|
2648
|
-
}, 8, ["onClick"])]), i("div", Cn, [m(n.$slots, "secondary-action")])])
|
|
2649
|
-
]),
|
|
2650
2627
|
o(sn, {
|
|
2651
2628
|
class: "db-header-drawer",
|
|
2652
2629
|
spacing: "small",
|
|
@@ -2656,16 +2633,30 @@ var b = () => {
|
|
|
2656
2633
|
open: g(k)(e.drawerOpen),
|
|
2657
2634
|
onClose: (e) => p()
|
|
2658
2635
|
}, {
|
|
2659
|
-
default: y(() => [i("div",
|
|
2636
|
+
default: y(() => [i("div", hn, [i("div", {
|
|
2660
2637
|
class: "db-header-navigation",
|
|
2661
2638
|
onClick: l[0] ||= async (e) => _(e)
|
|
2662
|
-
}, [m(n.$slots, "default")]), i("div",
|
|
2639
|
+
}, [m(n.$slots, "default")]), i("div", gn, [m(n.$slots, "meta-navigation")])]), i("div", _n, [m(n.$slots, "secondary-action")])]),
|
|
2663
2640
|
_: 3
|
|
2664
2641
|
}, 8, [
|
|
2665
2642
|
"closeButtonId",
|
|
2666
2643
|
"closeButtonText",
|
|
2667
2644
|
"open",
|
|
2668
2645
|
"onClose"
|
|
2646
|
+
]),
|
|
2647
|
+
i("div", vn, [m(n.$slots, "meta-navigation")]),
|
|
2648
|
+
i("div", yn, [
|
|
2649
|
+
i("div", bn, [m(n.$slots, "brand")]),
|
|
2650
|
+
i("div", xn, [i("div", Sn, [m(n.$slots, "default")]), i("div", Cn, [m(n.$slots, "primary-action")])]),
|
|
2651
|
+
i("div", wn, [i("div", Tn, [o(Ie, {
|
|
2652
|
+
icon: "menu",
|
|
2653
|
+
variant: "ghost",
|
|
2654
|
+
noText: !0,
|
|
2655
|
+
onClick: (e) => p()
|
|
2656
|
+
}, {
|
|
2657
|
+
default: y(() => [a(h(e.burgerMenuLabel ?? g("BurgerMenu")), 1)]),
|
|
2658
|
+
_: 1
|
|
2659
|
+
}, 8, ["onClick"])]), i("div", En, [m(n.$slots, "secondary-action")])])
|
|
2669
2660
|
])
|
|
2670
2661
|
], 10, mn));
|
|
2671
2662
|
}
|
|
@@ -2868,10 +2859,6 @@ var b = () => {
|
|
|
2868
2859
|
type: [Boolean, String],
|
|
2869
2860
|
default: void 0
|
|
2870
2861
|
},
|
|
2871
|
-
hideSubNavigation: {
|
|
2872
|
-
type: Boolean,
|
|
2873
|
-
default: void 0
|
|
2874
|
-
},
|
|
2875
2862
|
children: { default: void 0 },
|
|
2876
2863
|
className: { default: void 0 },
|
|
2877
2864
|
class: {},
|
|
@@ -2942,7 +2929,7 @@ var b = () => {
|
|
|
2942
2929
|
"data-active": t.active,
|
|
2943
2930
|
"data-wrap": g(O)(t.wrap),
|
|
2944
2931
|
"aria-disabled": g(O)(t.disabled)
|
|
2945
|
-
}, [!
|
|
2932
|
+
}, [x.value ? n("", !0) : (d(), r(e, { key: 0 }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(s.$slots, "default", { key: 1 })], 64)), x.value ? (d(), r(e, { key: 1 }, [i("button", {
|
|
2946
2933
|
class: "db-navigation-item-expand-button",
|
|
2947
2934
|
id: A.value,
|
|
2948
2935
|
"aria-haspopup": b.value ? "true" : void 0,
|
|
@@ -2964,7 +2951,7 @@ var b = () => {
|
|
|
2964
2951
|
}, {
|
|
2965
2952
|
default: y(() => [a(h(t.backButtonText ?? g("Back")), 1)]),
|
|
2966
2953
|
_: 1
|
|
2967
|
-
}, 8, ["id", "onClick"])])) : n("", !0), m(s.$slots, "sub-navigation")], 8, Vn)], 64)) : (
|
|
2954
|
+
}, 8, ["id", "onClick"])])) : n("", !0), m(s.$slots, "sub-navigation")], 8, Vn)], 64)) : n("", !0)], 42, zn));
|
|
2968
2955
|
}
|
|
2969
2956
|
}), Wn = [
|
|
2970
2957
|
"id",
|