@avenirs-esr/avenirs-dsav 0.1.66 → 0.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avenirs-dsav.css +2 -2
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.vue.d.ts +1 -1
- package/dist/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +8 -2
- package/dist/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +14 -2
- package/dist/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +11 -4
- package/dist/components/interaction/tabs/AvTabs/AvTabs.vue.d.ts +6 -9
- package/dist/components/interaction/tabs/AvTabs/components/TabContent.vue.d.ts +35 -0
- package/dist/components/interaction/tabs/AvTabs/components/TabItem.vue.d.ts +41 -0
- package/dist/components/interaction/tabs/AvTabs/composables/use-tab-transition.d.ts +23 -0
- package/dist/components/interaction/tabs/AvTabs/composables/use-tab-transition.test.d.ts +1 -0
- package/dist/components/interaction/tabs/AvTabs/composables/use-tabs-style.d.ts +31 -0
- package/dist/components/interaction/tabs/AvTabs/composables/use-tabs-style.test.d.ts +1 -0
- package/dist/components/navigation/AvBreadcrumb/AvBreadcrumb.vue.d.ts +7 -0
- package/dist/components/navigation/AvNavigation/AvNavigation.stories.d.ts +0 -1
- package/dist/components/navigation/AvNavigation/AvNavigation.vue.d.ts +15 -5
- package/dist/components/navigation/AvNavigation/components/NavigationItem/NavigationItem.stub.d.ts +21 -0
- package/dist/components/navigation/AvNavigation/components/NavigationItem/NavigationItem.test.d.ts +1 -0
- package/dist/components/navigation/AvNavigation/components/NavigationItem/NavigationItem.vue.d.ts +31 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenu/NavigationMenu.stub.d.ts +50 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenu/NavigationMenu.test.d.ts +1 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenu/NavigationMenu.vue.d.ts +34 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenuItem/NavigationMenuItem.stub.d.ts +21 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenuItem/NavigationMenuItem.test.d.ts +1 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenuItem/NavigationMenuItem.vue.d.ts +31 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenuLink/NavigationMenuLink.stub.d.ts +53 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenuLink/NavigationMenuLink.test.d.ts +1 -0
- package/dist/components/navigation/AvNavigation/components/NavigationMenuLink/NavigationMenuLink.vue.d.ts +39 -0
- package/dist/components/navigation/AvPagination/AvPagination.types.d.ts +17 -0
- package/dist/components/navigation/AvPagination/AvPagination.vue.d.ts +1 -1
- package/dist/components/navigation/AvPagination/utils.d.ts +1 -1
- package/dist/components/overlay/modals/AvModal/AvModal.vue.d.ts +3 -12
- package/dist/composables/use-av-breakpoints/use-av-breakpoints.d.ts +1 -1
- package/dist/composables/use-collapsable/use-collapsable.d.ts +2 -7
- package/dist/index.cjs.js +8 -15
- package/dist/index.es.js +3643 -4800
- package/dist/main.d.ts +0 -1
- package/dist/test-utils.cjs.js +13 -8
- package/dist/test-utils.es.js +46 -36
- package/package.json +1 -2
- package/src/styles/main.scss +0 -2
- package/dist/tests/stubs.d.ts +0 -53
- package/src/styles/links.scss +0 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as AvHeader, type AvHeaderProps } from './AvHeader/AvHeader.vue';
|
|
2
|
+
export { registerNavigationLinkKey } from './AvHeader/injection-key';
|
|
2
3
|
export { default as AvHeaderMenuLinks } from './AvHeaderMenuLinks/AvHeaderMenuLinks.vue';
|
|
3
4
|
export { default as AvLogo } from './AvLogo.vue';
|
|
4
5
|
export { default as EsupLogo } from './EsupLogo.vue';
|
|
5
|
-
export { registerNavigationLinkKey } from '@gouvminint/vue-dsfr';
|
|
@@ -65,7 +65,7 @@ type __VLS_Slots = {
|
|
|
65
65
|
* Default slot to pass in one or more `AvRadioButton` components.
|
|
66
66
|
*
|
|
67
67
|
* Each `AvRadioButton` defines the props and content for a single radio option.
|
|
68
|
-
* The content of each button will be injected into the `label` slot of `
|
|
68
|
+
* The content of each button will be injected into the `label` slot of `AvRadioButton`.
|
|
69
69
|
*
|
|
70
70
|
* @slot default
|
|
71
71
|
*/
|
|
@@ -68,7 +68,7 @@ declare const meta: {
|
|
|
68
68
|
errorMessage: {
|
|
69
69
|
control: string;
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
placeholder: {
|
|
72
72
|
control: string;
|
|
73
73
|
required: boolean;
|
|
74
74
|
};
|
|
@@ -78,7 +78,7 @@ declare const meta: {
|
|
|
78
78
|
value: string;
|
|
79
79
|
text: string;
|
|
80
80
|
}[];
|
|
81
|
-
|
|
81
|
+
placeholder: string;
|
|
82
82
|
required: boolean;
|
|
83
83
|
disabled: boolean;
|
|
84
84
|
selectId: string;
|
|
@@ -94,3 +94,9 @@ declare const meta: {
|
|
|
94
94
|
export default meta;
|
|
95
95
|
export declare const Default: StoryFn<AvSelectProps>;
|
|
96
96
|
export declare const Dense: StoryFn<AvSelectProps>;
|
|
97
|
+
export declare const Disabled: StoryFn<AvSelectProps>;
|
|
98
|
+
export declare const Required: StoryFn<AvSelectProps>;
|
|
99
|
+
export declare const Hint: StoryFn<AvSelectProps>;
|
|
100
|
+
export declare const CustomPlaceholder: StoryFn<AvSelectProps>;
|
|
101
|
+
export declare const WithError: StoryFn<AvSelectProps>;
|
|
102
|
+
export declare const WithSuccess: StoryFn<AvSelectProps>;
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
export declare const AvSelectStub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
modelValue: (NumberConstructor | StringConstructor)[];
|
|
3
3
|
options: ArrayConstructor;
|
|
4
|
-
|
|
4
|
+
placeholder: StringConstructor;
|
|
5
5
|
dense: BooleanConstructor;
|
|
6
|
+
required: BooleanConstructor;
|
|
7
|
+
disabled: BooleanConstructor;
|
|
8
|
+
hint: StringConstructor;
|
|
9
|
+
errorMessage: StringConstructor;
|
|
10
|
+
successMessage: StringConstructor;
|
|
6
11
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
12
|
modelValue: (NumberConstructor | StringConstructor)[];
|
|
8
13
|
options: ArrayConstructor;
|
|
9
|
-
|
|
14
|
+
placeholder: StringConstructor;
|
|
10
15
|
dense: BooleanConstructor;
|
|
16
|
+
required: BooleanConstructor;
|
|
17
|
+
disabled: BooleanConstructor;
|
|
18
|
+
hint: StringConstructor;
|
|
19
|
+
errorMessage: StringConstructor;
|
|
20
|
+
successMessage: StringConstructor;
|
|
11
21
|
}>> & Readonly<{
|
|
12
22
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
13
23
|
}>, {
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
required: boolean;
|
|
14
26
|
dense: boolean;
|
|
15
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AvSelect component props.
|
|
3
|
-
*/
|
|
4
1
|
export interface AvSelectProps {
|
|
5
2
|
/**
|
|
6
3
|
* Indicates if the select is required.
|
|
4
|
+
* @default false
|
|
7
5
|
*/
|
|
8
6
|
required?: boolean;
|
|
9
7
|
/**
|
|
10
8
|
* Indicated if the select is disabled.
|
|
9
|
+
* @default false
|
|
11
10
|
*/
|
|
12
11
|
disabled?: boolean;
|
|
13
12
|
/**
|
|
14
13
|
* Unique id for the select. Used for the accessibility.
|
|
14
|
+
* @default `select-${crypto.randomUUID()}`
|
|
15
15
|
*/
|
|
16
16
|
selectId?: string;
|
|
17
17
|
/**
|
|
18
18
|
* Field name.
|
|
19
|
+
* @default ''
|
|
19
20
|
*/
|
|
20
21
|
name?: string;
|
|
21
22
|
/**
|
|
22
23
|
* Hint for guidance.
|
|
24
|
+
* @default ''
|
|
23
25
|
*/
|
|
24
26
|
hint?: string;
|
|
25
27
|
/**
|
|
@@ -28,10 +30,12 @@ export interface AvSelectProps {
|
|
|
28
30
|
modelValue?: string | number | undefined;
|
|
29
31
|
/**
|
|
30
32
|
* Select text label.
|
|
33
|
+
* @default ''
|
|
31
34
|
*/
|
|
32
35
|
label?: string;
|
|
33
36
|
/**
|
|
34
37
|
* Selectable options.
|
|
38
|
+
* @default []
|
|
35
39
|
*/
|
|
36
40
|
options?: {
|
|
37
41
|
value: string | number | undefined;
|
|
@@ -40,18 +44,21 @@ export interface AvSelectProps {
|
|
|
40
44
|
}[];
|
|
41
45
|
/**
|
|
42
46
|
* If set, display a success message.
|
|
47
|
+
* @default ''
|
|
43
48
|
*/
|
|
44
49
|
successMessage?: string;
|
|
45
50
|
/**
|
|
46
51
|
* If set, display an error message.
|
|
52
|
+
* @default ''
|
|
47
53
|
*/
|
|
48
54
|
errorMessage?: string;
|
|
49
55
|
/**
|
|
50
56
|
* Placeholder text.
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
placeholder: string;
|
|
53
59
|
/**
|
|
54
60
|
* dense mode
|
|
61
|
+
* @default false
|
|
55
62
|
*/
|
|
56
63
|
dense?: boolean;
|
|
57
64
|
}
|
|
@@ -9,11 +9,6 @@ export interface AvTabsProps {
|
|
|
9
9
|
* Improves accessibility by providing a description for screen readers.
|
|
10
10
|
*/
|
|
11
11
|
ariaLabel?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Index of selected tab on loading.
|
|
14
|
-
* Index starts at 0.
|
|
15
|
-
*/
|
|
16
|
-
modelValue: number;
|
|
17
12
|
/**
|
|
18
13
|
* Allows compact display:
|
|
19
14
|
* Underline without central pipe.
|
|
@@ -21,6 +16,7 @@ export interface AvTabsProps {
|
|
|
21
16
|
*/
|
|
22
17
|
compact?: boolean;
|
|
23
18
|
}
|
|
19
|
+
type __VLS_Props = AvTabsProps;
|
|
24
20
|
/**
|
|
25
21
|
* Slots available in AvTabs component.
|
|
26
22
|
* Used to inject tabs via `AvTab` components.
|
|
@@ -31,11 +27,12 @@ type __VLS_Slots = {
|
|
|
31
27
|
*/
|
|
32
28
|
default?: () => VNode<typeof AvTab>[];
|
|
33
29
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
30
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
31
|
+
'modelValue'?: number;
|
|
32
|
+
};
|
|
33
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
34
|
"update:modelValue": (value: number) => any;
|
|
38
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
39
36
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
40
37
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
41
38
|
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TabContent component props.
|
|
3
|
+
*/
|
|
4
|
+
export interface TabContentProps {
|
|
5
|
+
/**
|
|
6
|
+
* ID of the associated tab panel.
|
|
7
|
+
*/
|
|
8
|
+
panelId: string;
|
|
9
|
+
/**
|
|
10
|
+
* ID of the tab item.
|
|
11
|
+
*/
|
|
12
|
+
tabId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the tab content is visible.
|
|
15
|
+
*/
|
|
16
|
+
isVisible: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Direction of the tab transition animation.
|
|
19
|
+
* True for ascending (left to right), false for descending (right to left).
|
|
20
|
+
*/
|
|
21
|
+
asc: boolean;
|
|
22
|
+
}
|
|
23
|
+
type __VLS_Slots = {
|
|
24
|
+
/**
|
|
25
|
+
* Default slot for passing tab panel content.
|
|
26
|
+
*/
|
|
27
|
+
default: () => unknown;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TabContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface TabItemProps {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the associated tab panel.
|
|
4
|
+
*/
|
|
5
|
+
panelId: string;
|
|
6
|
+
/**
|
|
7
|
+
* ID of the tab item.
|
|
8
|
+
*/
|
|
9
|
+
tabId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the tab is currently selected.
|
|
12
|
+
*/
|
|
13
|
+
isSelected: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Title of the tab displayed in the tab bar.
|
|
16
|
+
*/
|
|
17
|
+
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the icon to display in the tab.
|
|
20
|
+
*/
|
|
21
|
+
icon?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the tab is displayed in compact mode.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
compact?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare const _default: import("vue").DefineComponent<TabItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
click: (tabId: string) => any;
|
|
30
|
+
next: () => any;
|
|
31
|
+
previous: () => any;
|
|
32
|
+
first: () => any;
|
|
33
|
+
last: () => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<TabItemProps> & Readonly<{
|
|
35
|
+
onClick?: ((tabId: string) => any) | undefined;
|
|
36
|
+
onNext?: (() => any) | undefined;
|
|
37
|
+
onPrevious?: (() => any) | undefined;
|
|
38
|
+
onFirst?: (() => any) | undefined;
|
|
39
|
+
onLast?: (() => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Return type of useTabTransition composable
|
|
4
|
+
*/
|
|
5
|
+
interface UseTabTransitionReturn {
|
|
6
|
+
/**
|
|
7
|
+
* Translate value for the "from" state of the transition.
|
|
8
|
+
* Used for the .slide-fade-enter-from class.
|
|
9
|
+
*/
|
|
10
|
+
translateValueFrom: ComputedRef<string>;
|
|
11
|
+
/**
|
|
12
|
+
* Translate value for the "to" state of the transition.
|
|
13
|
+
* Used for the .slide-fade-leave-to class.
|
|
14
|
+
*/
|
|
15
|
+
translateValueTo: ComputedRef<string>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Composable managing tab transition values based on the direction of the tab change.
|
|
19
|
+
* @param asc - Boolean indicating if the tab change is in ascending order.
|
|
20
|
+
* @returns An object containing computed properties for transition translate values.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useTabTransition(asc: Ref<boolean>): UseTabTransitionReturn;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Return type of useTabsStyle composable
|
|
4
|
+
*/
|
|
5
|
+
export interface UseTabsStyleReturn {
|
|
6
|
+
/**
|
|
7
|
+
* Reactive tabs style object to bind to the tabs container
|
|
8
|
+
*/
|
|
9
|
+
tabsStyle: Ref<Record<string, string>>;
|
|
10
|
+
/**
|
|
11
|
+
* Function to update the tabs style (height)
|
|
12
|
+
*/
|
|
13
|
+
updateTabsStyle: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Composable to manage the tabs style (height) based on the active tab and tablist height
|
|
17
|
+
* @param tablist tablist element reference
|
|
18
|
+
* @param tabs tabs elements reference array
|
|
19
|
+
* @param activeTab active tab index reference
|
|
20
|
+
* @returns tabsStyle and updateTabsStyle function
|
|
21
|
+
*/
|
|
22
|
+
export declare function useTabsStyle(tablist: Ref<HTMLElement | null>, tabs: Ref<HTMLElement[]>, activeTab: Ref<number>): {
|
|
23
|
+
tabsStyle: Ref<{
|
|
24
|
+
'--tabs-height': string;
|
|
25
|
+
}, {
|
|
26
|
+
'--tabs-height': string;
|
|
27
|
+
} | {
|
|
28
|
+
'--tabs-height': string;
|
|
29
|
+
}>;
|
|
30
|
+
updateTabsStyle: () => void;
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,11 @@ import type { RouteLocationAsPathGeneric, RouteLocationAsRelativeGeneric } from
|
|
|
3
3
|
* AvBreadcrumb component props.
|
|
4
4
|
*/
|
|
5
5
|
export interface AvBreadcrumbProps {
|
|
6
|
+
/**
|
|
7
|
+
* The unique identifier for the breadcrumb element.
|
|
8
|
+
* @default `breadcrumb-${crypto.randomUUID()}`
|
|
9
|
+
*/
|
|
10
|
+
breadcrumbId?: string;
|
|
6
11
|
/**
|
|
7
12
|
* A table of objects representing the links in the breadcrumb. Each object can
|
|
8
13
|
* have a ‘text’ property and, optionally, a ‘to’ property for routes.
|
|
@@ -13,10 +18,12 @@ export interface AvBreadcrumbProps {
|
|
|
13
18
|
}[] | undefined;
|
|
14
19
|
/**
|
|
15
20
|
* Displayed label on the breadcrumb `nav` tag.
|
|
21
|
+
* @default 'Vous êtes ici :'
|
|
16
22
|
*/
|
|
17
23
|
navigationLabel?: string;
|
|
18
24
|
/**
|
|
19
25
|
* Displayed breadcrumb button label.
|
|
26
|
+
* @default 'Voir le fil d’Ariane'
|
|
20
27
|
*/
|
|
21
28
|
showBreadcrumbLabel?: string;
|
|
22
29
|
}
|
|
@@ -19,7 +19,6 @@ import { type AvNavigationProps } from '@/components/navigation/AvNavigation/AvN
|
|
|
19
19
|
* <ul>
|
|
20
20
|
* <li><span class="b2-regular">direct link</span></li>
|
|
21
21
|
* <li><span class="b2-regular">submenu</span></li>
|
|
22
|
-
* <li><span class="b2-regular">mega-menu</span></li>
|
|
23
22
|
* </ul>
|
|
24
23
|
*/
|
|
25
24
|
declare const meta: Meta<AvNavigationProps>;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type NavigationMenuProps } from '@/components/navigation/AvNavigation/components/NavigationMenu/NavigationMenu.vue';
|
|
2
|
+
import { type NavigationMenuLinkProps } from '@/components/navigation/AvNavigation/components/NavigationMenuLink/NavigationMenuLink.vue';
|
|
2
3
|
/**
|
|
3
4
|
* AvNavigation component props.
|
|
4
5
|
*/
|
|
5
6
|
export interface AvNavigationProps {
|
|
7
|
+
/**
|
|
8
|
+
* The unique identifier for the navigation element.
|
|
9
|
+
* @default `nav-${crypto.randomUUID()}`
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The aria-label for the navigation element.
|
|
14
|
+
* @default 'Menu principal'
|
|
15
|
+
*/
|
|
16
|
+
label?: string;
|
|
6
17
|
/**
|
|
7
18
|
* List of navigation items.
|
|
8
19
|
* Each item can be:
|
|
9
|
-
* - A direct navigation link (`
|
|
10
|
-
* - A navigation submenu (`
|
|
11
|
-
* - A mega-navigation menu (`DsfrNavigationMegaMenuProps`) with `title`, `link`, `active` and `menus` props.
|
|
20
|
+
* - A direct navigation link (`NavigationMenuLinkProps`) with `to` and `text` props.
|
|
21
|
+
* - A navigation submenu (`NavigationMenuProps`) with `title`, `links` and `active` props.
|
|
12
22
|
*/
|
|
13
|
-
navItems: (
|
|
23
|
+
navItems: (NavigationMenuLinkProps | NavigationMenuProps)[];
|
|
14
24
|
}
|
|
15
25
|
declare const _default: import("vue").DefineComponent<AvNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvNavigationProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
26
|
export default _default;
|
package/dist/components/navigation/AvNavigation/components/NavigationItem/NavigationItem.stub.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const NavigationItemStub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
active: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
id: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
15
|
+
active: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
active: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/components/navigation/AvNavigation/components/NavigationItem/NavigationItem.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/components/navigation/AvNavigation/components/NavigationItem/NavigationItem.vue.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* NavigationItem component props.
|
|
4
|
+
*/
|
|
5
|
+
export interface NavigationItemProps {
|
|
6
|
+
/**
|
|
7
|
+
* The unique identifier for the navigation item.
|
|
8
|
+
* @default `nav-item-${crypto.randomUUID()}`
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Indicates if the navigation item is currently active.
|
|
13
|
+
*/
|
|
14
|
+
active?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Slots for NavigationItem component.
|
|
18
|
+
*/
|
|
19
|
+
type __VLS_Slots = {
|
|
20
|
+
/**
|
|
21
|
+
* Default slot for the content of the navigation item.
|
|
22
|
+
*/
|
|
23
|
+
default?: Slot;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
package/dist/components/navigation/AvNavigation/components/NavigationMenu/NavigationMenu.stub.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const NavigationMenuStub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
links: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
};
|
|
15
|
+
expandedId: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
active: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggleId"[], "toggleId", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
id: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: false;
|
|
27
|
+
};
|
|
28
|
+
title: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
links: {
|
|
33
|
+
type: ArrayConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
expandedId: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
active: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
onToggleId?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
links: unknown[];
|
|
49
|
+
active: boolean;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/components/navigation/AvNavigation/components/NavigationMenu/NavigationMenu.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/components/navigation/AvNavigation/components/NavigationMenu/NavigationMenu.vue.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type NavigationMenuLinkProps } from '@/components/navigation/AvNavigation/components/NavigationMenuLink/NavigationMenuLink.vue';
|
|
2
|
+
/**
|
|
3
|
+
* NavigationMenu component props.
|
|
4
|
+
*/
|
|
5
|
+
export interface NavigationMenuProps {
|
|
6
|
+
/**
|
|
7
|
+
* The unique identifier for the navigation menu.
|
|
8
|
+
* @default `menu-${crypto.randomUUID()}`
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The title displayed on the navigation menu button.
|
|
13
|
+
*/
|
|
14
|
+
title: string;
|
|
15
|
+
/**
|
|
16
|
+
* A table of objects representing the links in the navigation menu.
|
|
17
|
+
*/
|
|
18
|
+
links?: NavigationMenuLinkProps[];
|
|
19
|
+
/**
|
|
20
|
+
* The identifier of the currently expanded navigation menu.
|
|
21
|
+
* @default `expanded-${crypto.randomUUID()}`
|
|
22
|
+
*/
|
|
23
|
+
expandedId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates if the navigation menu is currently active.
|
|
26
|
+
*/
|
|
27
|
+
active?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const _default: import("vue").DefineComponent<NavigationMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
|
+
toggleId: (id: string) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<NavigationMenuProps> & Readonly<{
|
|
32
|
+
onToggleId?: ((id: string) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const NavigationMenuItemStub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
active: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
id: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
15
|
+
active: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
active: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* NavigationMenuItem component props.
|
|
4
|
+
*/
|
|
5
|
+
export interface NavigationMenuItemProps {
|
|
6
|
+
/**
|
|
7
|
+
* The unique identifier for the navigation item.
|
|
8
|
+
* @default `nav-menu-item-${crypto.randomUUID()}`
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Indicates if the navigation item is currently active.
|
|
13
|
+
*/
|
|
14
|
+
active?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Slots for NavigationMenuItem component.
|
|
18
|
+
*/
|
|
19
|
+
type __VLS_Slots = {
|
|
20
|
+
/**
|
|
21
|
+
* Default slot for the content of the navigation menu item.
|
|
22
|
+
*/
|
|
23
|
+
default?: Slot;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavigationMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const NavigationMenuLinkStub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
activeId: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
to: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
text: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
icon: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
onClick: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggleId"[], "toggleId", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
id: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
};
|
|
31
|
+
activeId: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
to: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: false;
|
|
38
|
+
};
|
|
39
|
+
text: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
icon: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
};
|
|
47
|
+
onClick: {
|
|
48
|
+
type: FunctionConstructor;
|
|
49
|
+
required: false;
|
|
50
|
+
};
|
|
51
|
+
}>> & Readonly<{
|
|
52
|
+
onToggleId?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|