@avenirs-esr/avenirs-dsav 0.1.0 → 0.1.2
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 +1 -1
- package/dist/avenirs-dsav.es.js +7375 -15307
- package/dist/avenirs-dsav.umd.js +73 -110
- package/dist/src/App.vue.d.ts +2 -0
- package/dist/src/components/badges/AvBadge/AvBadge.stories.d.ts +44 -0
- package/dist/src/components/badges/AvBadge/AvBadge.stub.d.ts +30 -0
- package/dist/src/components/badges/AvBadge/AvBadge.test.d.ts +1 -0
- package/dist/src/components/badges/AvBadge/AvBadge.vue.d.ts +44 -0
- package/dist/src/components/badges/index.d.ts +1 -0
- package/dist/src/components/base/AvIconText/AvIconText.stories.d.ts +36 -0
- package/dist/src/components/base/AvIconText/AvIconText.test.d.ts +1 -0
- package/dist/src/components/base/AvIconText/AvIconText.vue.d.ts +40 -0
- package/dist/src/components/base/AvNotice/AvNotice.stories.d.ts +63 -0
- package/dist/src/components/base/AvNotice/AvNotice.test.d.ts +1 -0
- package/dist/src/components/base/AvNotice/AvNotice.vue.d.ts +22 -0
- package/dist/src/components/base/AvVIcon/AvVIcon.stories.d.ts +47 -0
- package/dist/src/components/base/AvVIcon/AvVIcon.stub.d.ts +9 -0
- package/dist/src/components/base/AvVIcon/AvVIcon.vue.d.ts +54 -0
- package/dist/src/components/base/index.d.ts +2 -0
- package/dist/src/components/cards/AvCard/AvCard.stories.d.ts +28 -0
- package/dist/src/components/cards/AvCard/AvCard.test.d.ts +1 -0
- package/dist/src/components/cards/AvCard/AvCard.vue.d.ts +58 -0
- package/dist/src/components/cards/index.d.ts +1 -0
- package/dist/src/components/feedback/AvAlert/AvAlert.test.d.ts +1 -0
- package/dist/src/components/feedback/AvAlert/AvAlert.vue.d.ts +77 -0
- package/dist/src/components/feedback/AvToaster/AvToaster.test.d.ts +1 -0
- package/dist/src/components/feedback/AvToaster/AvToaster.vue.d.ts +79 -0
- package/dist/src/components/feedback/index.d.ts +2 -0
- package/dist/src/components/header/AvHeader/AvHeader.test.d.ts +1 -0
- package/dist/src/components/header/AvHeader/AvHeader.vue.d.ts +132 -0
- package/dist/src/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.test.d.ts +1 -0
- package/dist/src/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.vue.d.ts +38 -0
- package/dist/src/components/header/AvLogo.vue.d.ts +2 -0
- package/dist/src/components/header/EsupLogo.test.d.ts +1 -0
- package/dist/src/components/header/EsupLogo.vue.d.ts +7 -0
- package/dist/src/components/header/index.d.ts +5 -0
- package/dist/src/components/index.d.ts +8 -0
- package/dist/src/components/interaction/accordions/AvAccordion/AvAccordion.stories.d.ts +30 -0
- package/dist/src/components/interaction/accordions/AvAccordion/AvAccordion.test.d.ts +1 -0
- package/dist/src/components/interaction/accordions/AvAccordion/AvAccordion.vue.d.ts +31 -0
- package/dist/src/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.stories.d.ts +48 -0
- package/dist/src/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.test.d.ts +1 -0
- package/dist/src/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.vue.d.ts +36 -0
- package/dist/src/components/interaction/accordions/index.d.ts +2 -0
- package/dist/src/components/interaction/buttons/AvButton/AvButton.stories.d.ts +75 -0
- package/dist/src/components/interaction/buttons/AvButton/AvButton.stub.d.ts +15 -0
- package/dist/src/components/interaction/buttons/AvButton/AvButton.test.d.ts +1 -0
- package/dist/src/components/interaction/buttons/AvButton/AvButton.vue.d.ts +78 -0
- package/dist/src/components/interaction/buttons/AvRichButton/AvRichButton.stories.d.ts +39 -0
- package/dist/src/components/interaction/buttons/AvRichButton/AvRichButton.test.d.ts +1 -0
- package/dist/src/components/interaction/buttons/AvRichButton/AvRichButton.vue.d.ts +48 -0
- package/dist/src/components/interaction/buttons/index.d.ts +2 -0
- package/dist/src/components/interaction/files/AvFileUpload/AvFileUpload.stories.d.ts +30 -0
- package/dist/src/components/interaction/files/AvFileUpload/AvFileUpload.test.d.ts +1 -0
- package/dist/src/components/interaction/files/AvFileUpload/AvFileUpload.vue.d.ts +131 -0
- package/dist/src/components/interaction/files/AvFileUpload/AvFileUploadAlert.vue.d.ts +19 -0
- package/dist/src/components/interaction/files/index.d.ts +1 -0
- package/dist/src/components/interaction/index.d.ts +10 -0
- package/dist/src/components/interaction/inputs/AvInput/AvInput.stories.d.ts +71 -0
- package/dist/src/components/interaction/inputs/AvInput/AvInput.test.d.ts +1 -0
- package/dist/src/components/interaction/inputs/AvInput/AvInput.vue.d.ts +111 -0
- package/dist/src/components/interaction/inputs/index.d.ts +1 -0
- package/dist/src/components/interaction/lists/AvList/AvList.stories.d.ts +55 -0
- package/dist/src/components/interaction/lists/AvList/AvList.stub.d.ts +5 -0
- package/dist/src/components/interaction/lists/AvList/AvList.test.d.ts +1 -0
- package/dist/src/components/interaction/lists/AvList/AvList.vue.d.ts +74 -0
- package/dist/src/components/interaction/lists/AvListItem/AvListItem.stories.d.ts +59 -0
- package/dist/src/components/interaction/lists/AvListItem/AvListItem.stub.d.ts +19 -0
- package/dist/src/components/interaction/lists/AvListItem/AvListItem.test.d.ts +1 -0
- package/dist/src/components/interaction/lists/AvListItem/AvListItem.vue.d.ts +112 -0
- package/dist/src/components/interaction/lists/index.d.ts +2 -0
- package/dist/src/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.stories.d.ts +24 -0
- package/dist/src/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.test.d.ts +1 -0
- package/dist/src/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.vue.d.ts +23 -0
- package/dist/src/components/interaction/pickers/AvTagPicker/AvTagPicker.stories.d.ts +96 -0
- package/dist/src/components/interaction/pickers/AvTagPicker/AvTagPicker.stub.d.ts +11 -0
- package/dist/src/components/interaction/pickers/AvTagPicker/AvTagPicker.test.d.ts +1 -0
- package/dist/src/components/interaction/pickers/AvTagPicker/AvTagPicker.vue.d.ts +79 -0
- package/dist/src/components/interaction/pickers/index.d.ts +2 -0
- package/dist/src/components/interaction/radios/AvRadioButton/AvRadioButton.stories.d.ts +34 -0
- package/dist/src/components/interaction/radios/AvRadioButton/AvRadioButton.test.d.ts +1 -0
- package/dist/src/components/interaction/radios/AvRadioButton/AvRadioButton.vue.d.ts +38 -0
- package/dist/src/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.stories.d.ts +54 -0
- package/dist/src/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.test.d.ts +1 -0
- package/dist/src/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.vue.d.ts +76 -0
- package/dist/src/components/interaction/radios/index.d.ts +2 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +553 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.stub.d.ts +28 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.test.d.ts +1 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.types.d.ts +101 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.vue.d.ts +204 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocompleteContext.d.ts +14 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocompleteDropdown.vue.d.ts +60 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +309 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocompleteSelectedTags.vue.d.ts +42 -0
- package/dist/src/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +103 -0
- package/dist/src/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +15 -0
- package/dist/src/components/interaction/selects/AvSelect/AvSelect.test.d.ts +1 -0
- package/dist/src/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +63 -0
- package/dist/src/components/interaction/selects/index.d.ts +3 -0
- package/dist/src/components/interaction/tabs/AvTab/AvTab.stories.d.ts +34 -0
- package/dist/src/components/interaction/tabs/AvTab/AvTab.test.d.ts +1 -0
- package/dist/src/components/interaction/tabs/AvTab/AvTab.vue.d.ts +31 -0
- package/dist/src/components/interaction/tabs/AvTabs/AvTabs.stories.d.ts +51 -0
- package/dist/src/components/interaction/tabs/AvTabs/AvTabs.test.d.ts +1 -0
- package/dist/src/components/interaction/tabs/AvTabs/AvTabs.vue.d.ts +40 -0
- package/dist/src/components/interaction/tabs/index.d.ts +2 -0
- package/dist/src/components/interaction/toggles/AvToggle/AvToggle.stories.d.ts +21 -0
- package/dist/src/components/interaction/toggles/AvToggle/AvToggle.test.d.ts +1 -0
- package/dist/src/components/interaction/toggles/AvToggle/AvToggle.vue.d.ts +46 -0
- package/dist/src/components/interaction/toggles/index.d.ts +1 -0
- package/dist/src/components/navigation/AvNavigation/AvNavigation.stories.d.ts +34 -0
- package/dist/src/components/navigation/AvNavigation/AvNavigation.test.d.ts +1 -0
- package/dist/src/components/navigation/AvNavigation/AvNavigation.vue.d.ts +16 -0
- package/dist/src/components/navigation/AvNavigation/index.d.ts +1 -0
- package/dist/src/components/navigation/AvPagination/AvPagination.test.d.ts +1 -0
- package/dist/src/components/navigation/AvPagination/AvPagination.vue.d.ts +57 -0
- package/dist/src/components/navigation/AvPagination/utils.d.ts +14 -0
- package/dist/src/components/navigation/AvPagination/utils.test.d.ts +1 -0
- package/dist/src/components/navigation/AvSideMenu/AvSideMenu.stories.d.ts +55 -0
- package/dist/src/components/navigation/AvSideMenu/AvSideMenu.test.d.ts +1 -0
- package/dist/src/components/navigation/AvSideMenu/AvSideMenu.vue.d.ts +61 -0
- package/dist/src/components/navigation/AvSideNavigation/AvSideNavigation.stories.d.ts +58 -0
- package/dist/src/components/navigation/AvSideNavigation/AvSideNavigation.stub.d.ts +16 -0
- package/dist/src/components/navigation/AvSideNavigation/AvSideNavigation.test.d.ts +1 -0
- package/dist/src/components/navigation/AvSideNavigation/AvSideNavigation.vue.d.ts +38 -0
- package/dist/src/components/navigation/index.d.ts +5 -0
- package/dist/src/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +53 -0
- package/dist/src/components/overlay/drawers/AvDrawer/AvDrawer.stub.d.ts +11 -0
- package/dist/src/components/overlay/drawers/AvDrawer/AvDrawer.test.d.ts +1 -0
- package/dist/src/components/overlay/drawers/AvDrawer/AvDrawer.vue.d.ts +60 -0
- package/dist/src/components/overlay/index.d.ts +3 -0
- package/dist/src/components/overlay/modals/AvModal/AvModal.test.d.ts +1 -0
- package/dist/src/components/overlay/modals/AvModal/AvModal.vue.d.ts +74 -0
- package/dist/src/components/overlay/popovers/AvPopover/AvPopover.stories.d.ts +49 -0
- package/dist/src/components/overlay/popovers/AvPopover/AvPopover.test.d.ts +1 -0
- package/dist/src/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +48 -0
- package/dist/src/components/overlay/popovers/AvPopover/use-popover.d.ts +41 -0
- package/dist/src/components/overlay/popovers/AvPopover/use-popover.test.d.ts +1 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/use-focus-trap/use-focus-trap.d.ts +25 -0
- package/dist/src/composables/use-focus-trap/use-focus-trap.test.d.ts +1 -0
- package/dist/src/config/index.d.ts +1 -0
- package/dist/src/config/page-sizes.d.ts +6 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/main.d.ts +8 -0
- package/dist/src/stories/foundations/icons.stories.d.ts +6 -0
- package/dist/src/stories/foundations/typography.stories.d.ts +5 -0
- package/dist/src/tests/index.d.ts +2 -0
- package/dist/src/tests/stubs.d.ts +62 -0
- package/dist/src/tests/utils.d.ts +34 -0
- package/dist/src/tokens/icons.d.ts +79 -0
- package/dist/src/tokens/index.d.ts +1 -0
- package/dist/src/utils/array/array.d.ts +8 -0
- package/dist/src/utils/forms/form.test.d.ts +1 -0
- package/dist/src/utils/forms/forms.d.ts +6 -0
- package/dist/src/utils/index.d.ts +3 -0
- package/dist/src/utils/string/string.d.ts +21 -0
- package/dist/src/utils/string/string.test.d.ts +1 -0
- package/package.json +6 -5
- package/dist/android-chrome-192x192.png +0 -0
- package/dist/android-chrome-512x512.png +0 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/browserconfig.xml +0 -2
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/manifest.json +0 -41
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const DsfrBadgeStub: import("vue").DefineComponent<{
|
|
2
|
+
label?: any;
|
|
3
|
+
small?: any;
|
|
4
|
+
type?: any;
|
|
5
|
+
ellipsis?: any;
|
|
6
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
7
|
+
label?: any;
|
|
8
|
+
small?: any;
|
|
9
|
+
type?: any;
|
|
10
|
+
ellipsis?: any;
|
|
11
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export declare const DsfrModalStub: import("vue").DefineComponent<{
|
|
13
|
+
title?: any;
|
|
14
|
+
opened?: any;
|
|
15
|
+
}, {}, {}, {}, {
|
|
16
|
+
triggerEscape(): void;
|
|
17
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "keydown"[], "keydown", import("vue").PublicProps, Readonly<{
|
|
18
|
+
title?: any;
|
|
19
|
+
opened?: any;
|
|
20
|
+
}> & Readonly<{
|
|
21
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export declare const DsfrNavigationStub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
24
|
+
navItems: {
|
|
25
|
+
(arrayLength: number): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
|
|
26
|
+
(...items: (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][]): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
|
|
27
|
+
new (arrayLength: number): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
|
|
28
|
+
new (...items: (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][]): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
|
|
29
|
+
isArray(arg: any): arg is any[];
|
|
30
|
+
readonly prototype: any[];
|
|
31
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
32
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
33
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
34
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
35
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
36
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
37
|
+
};
|
|
38
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
navItems: {
|
|
40
|
+
(arrayLength: number): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
|
|
41
|
+
(...items: (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][]): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
|
|
42
|
+
new (arrayLength: number): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
|
|
43
|
+
new (...items: (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][]): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
|
|
44
|
+
isArray(arg: any): arg is any[];
|
|
45
|
+
readonly prototype: any[];
|
|
46
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
47
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
48
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
49
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
50
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
51
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
export declare const VIconStub: import("vue").DefineComponent<{
|
|
55
|
+
size?: any;
|
|
56
|
+
name?: any;
|
|
57
|
+
color?: any;
|
|
58
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
59
|
+
size?: any;
|
|
60
|
+
name?: any;
|
|
61
|
+
color?: any;
|
|
62
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ComponentMountingOptions } from '@vue/test-utils';
|
|
2
|
+
import { type Component } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* Function allowing developpers to use a common BDD format for tests
|
|
5
|
+
* @returns given (describe), when (describe) and then (it)
|
|
6
|
+
*/
|
|
7
|
+
export declare function BddTest(): {
|
|
8
|
+
given(description: string, fn: () => void): any;
|
|
9
|
+
when(description: string, fn: () => void): any;
|
|
10
|
+
and(description: string, fn: () => void): any;
|
|
11
|
+
then(description: string, fn: () => void): any;
|
|
12
|
+
};
|
|
13
|
+
declare function mountComposable<T>(fn: () => T): {
|
|
14
|
+
result: T;
|
|
15
|
+
unmount: () => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Mounts a Vue component with a mock router for testing.
|
|
19
|
+
*
|
|
20
|
+
* This function uses Vue Test Utils to mount the component by injecting
|
|
21
|
+
* stubs for `RouterLink` and `RouterView` to simulate the router behavior
|
|
22
|
+
* without launching a real instance.
|
|
23
|
+
*
|
|
24
|
+
* @template T
|
|
25
|
+
* @param {Component} component - Vue component to mount.
|
|
26
|
+
* @param {ComponentMountingOptions<T>} [options] - Additional options for mounting the component.
|
|
27
|
+
* @returns {Promise<ReturnType<typeof mount>>} The mounted component wrapper, after the next tick.
|
|
28
|
+
*/
|
|
29
|
+
declare function mountWithRouter<T>(component: Component, options?: ComponentMountingOptions<T>): Promise<import("@vue/test-utils").VueWrapper<import("vue-component-type-helpers").ComponentProps<T> & (T extends {
|
|
30
|
+
data?(...args: any): infer D;
|
|
31
|
+
} ? D : {}) & import("vue-component-type-helpers").ComponentExposed<T>, import("vue").ComponentPublicInstance<import("vue-component-type-helpers").ComponentProps<T>, (T extends {
|
|
32
|
+
data?(...args: any): infer D;
|
|
33
|
+
} ? D : {}) & import("vue-component-type-helpers").ComponentExposed<T> & Omit<import("vue-component-type-helpers").ComponentProps<T>, keyof import("vue-component-type-helpers").ComponentProps<T>>>>>;
|
|
34
|
+
export { mountComposable, mountWithRouter, };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const MDI_ICONS: {
|
|
2
|
+
ACCOUNT_CIRCLE_OUTLINE: string;
|
|
3
|
+
ACCOUNT_STUDENT_OUTLINE: string;
|
|
4
|
+
ALERT_CIRCLE_OUTLINE: string;
|
|
5
|
+
ARROW_DECISION: string;
|
|
6
|
+
ARROW_LEFT_THIN: string;
|
|
7
|
+
ARROW_RIGHT: string;
|
|
8
|
+
ARROW_RIGHT_THIN: string;
|
|
9
|
+
ARROW_TOP_RIGHT_THICK: string;
|
|
10
|
+
ATTACH_FILE: string;
|
|
11
|
+
ATTACHMENT_PLUS: string;
|
|
12
|
+
BELL_NOTIFICATION: string;
|
|
13
|
+
BOOK_LOCATION_OUTLINE: string;
|
|
14
|
+
BRIEFCASE_VARIANT_OUTLINE: string;
|
|
15
|
+
CALENDAR_MONTH_OUTLINE: string;
|
|
16
|
+
CHAT_BUBBLE_OUTLINE: string;
|
|
17
|
+
CHECK: string;
|
|
18
|
+
CHECK_CIRCLE: string;
|
|
19
|
+
CHECK_CIRCLE_OUTLINE: string;
|
|
20
|
+
CHEVRON_DOUBLE_LEFT: string;
|
|
21
|
+
CHEVRON_DOUBLE_RIGHT: string;
|
|
22
|
+
CLOSE_CIRCLE_OUTLINE: string;
|
|
23
|
+
CONTENT_SAVE_OUTLINE: string;
|
|
24
|
+
DOTS_VERTICAL: string;
|
|
25
|
+
ELECTRON_FRAMEWORK: string;
|
|
26
|
+
FAMILY: string;
|
|
27
|
+
FILE_ACCOUNT_OUTLINE: string;
|
|
28
|
+
FILE_DOCUMENT_BOX_MULTIPLE_OUTLINE: string;
|
|
29
|
+
FILE_DOCUMENT_EDIT_OUTLINE: string;
|
|
30
|
+
FILE_DOCUMENT_MULTIPLE_OUTLINE: string;
|
|
31
|
+
FLAG_VARIANT: string;
|
|
32
|
+
FORMAT_LIST_BULLETED: string;
|
|
33
|
+
HOME_VARIANT_OUTLINE: string;
|
|
34
|
+
HOURGLASS: string;
|
|
35
|
+
IMAGE_FILTER_CENTER_FOCUS_WEAK: string;
|
|
36
|
+
IMAGE_OUTLINE: string;
|
|
37
|
+
INFORMATION_OUTLINE: string;
|
|
38
|
+
LOADING_OUTLINE: string;
|
|
39
|
+
LOGOUT: string;
|
|
40
|
+
NAVIGATE_BEFORE: string;
|
|
41
|
+
NAVIGATE_NEXT: string;
|
|
42
|
+
NOTIFICATIONS_NONE: string;
|
|
43
|
+
PAGE_FIRST: string;
|
|
44
|
+
PAGE_LAST: string;
|
|
45
|
+
PENCIL_OUTLINE: string;
|
|
46
|
+
PLUS_CIRCLE_OUTLINE: string;
|
|
47
|
+
POST_IT_NOTES_OUTLINE: string;
|
|
48
|
+
SCHOOL_OUTLINE: string;
|
|
49
|
+
SHARE_VARIANT_OUTLINE: string;
|
|
50
|
+
STAR_CHECK_OUTLINE: string;
|
|
51
|
+
STAR_SHOOTING_OUTLINE: string;
|
|
52
|
+
STARS: string;
|
|
53
|
+
SWAP_HORIZONTAL: string;
|
|
54
|
+
SWAP_VERTICAL_VARIANT: string;
|
|
55
|
+
TARGET_ARROW: string;
|
|
56
|
+
TEST_TUBE_EMPTY: string;
|
|
57
|
+
TRASH_CAN_OUTLINE: string;
|
|
58
|
+
TRAY_UPLOAD: string;
|
|
59
|
+
VECTOR_POLYGON_VARIANT: string;
|
|
60
|
+
WARNING_OUTLINE: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const RI_ICONS: {
|
|
63
|
+
DICE_1_LINE: string;
|
|
64
|
+
DICE_4_LINE: string;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* contains icon as base64 to be used in img src or also for components that need iconPath
|
|
68
|
+
* Useful for icons that are in MDI but we cannot use them using icon name, so we can use them
|
|
69
|
+
* without creating svg files in assets/icons, also simple to use (no need for basePath ...)
|
|
70
|
+
* e.g. using mdi icons with AvBadge
|
|
71
|
+
*/
|
|
72
|
+
export declare const ICONS_DATA_URL: {
|
|
73
|
+
CLOCK_ALMOST_CHECK: string;
|
|
74
|
+
CLOCK_HALF_PLUS_CHECK: string;
|
|
75
|
+
CLOCK_QUARTER_CHECK: string;
|
|
76
|
+
CLOCK_THIRD_CHECK: string;
|
|
77
|
+
FILE_DOCUMENT_MULTIPLE_OUTLINE: string;
|
|
78
|
+
MDI_CHECK_CIRCLE: string;
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icons';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Removes duplicates from an array and returns a new array containing only unique elements.
|
|
3
|
+
*
|
|
4
|
+
* @template T - The type of the elements in the array.
|
|
5
|
+
* @param {T[]} array - The array that can contain duplicates.
|
|
6
|
+
* @returns {T[]} A new array containing only the unique elements of the original array, in the order they appear.
|
|
7
|
+
*/
|
|
8
|
+
export declare function removeDuplicates<T>(array: T[]): T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a string by applying structured HTML transformations based on specific patterns:
|
|
3
|
+
*
|
|
4
|
+
* - Text between `**...**` is underlined using a `<span class="text-underline">`.
|
|
5
|
+
* - Text between `##...##` is colored and bold using a `<strong style="color: ...">`.
|
|
6
|
+
* - Text within `(-...)` is converted to `<li>` items with an indentation class.
|
|
7
|
+
* - Line breaks (`\n`, `\r`, `\\n`, etc.) are converted to `<div class="line-break"></div>`
|
|
8
|
+
* for visual spacing (e.g., adjustable height via CSS).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* formatTextToHtml('(-##Important## and **underlined**)\nNext line')
|
|
13
|
+
* // Returns:
|
|
14
|
+
* // '<li class="indented-list"><strong style="color: var(--dark-background-primary1)">Important</strong> and <span class="text-underline">underlined</span></li><div class="line-break"></div>Next line'
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param {string} text - The raw input string that may contain styling markers like `**`, `##`, or `(-...)`.
|
|
18
|
+
* @param {string} color - The color applied to text wrapped in `**` and '###'. Defaults to 'var(--dark-background-primary1)'.
|
|
19
|
+
* @returns {string} A string of HTML with appropriate tags for styling and structure.
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatTextToHtml(text: string, color?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avenirs-esr/avenirs-dsav",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"module": "dist/
|
|
4
|
+
"version": "0.1.2",
|
|
5
|
+
"main": "dist/avenirs-dsav.umd.js",
|
|
6
|
+
"module": "dist/avenirs-dsav.es.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"build-only": "vite build",
|
|
15
15
|
"build-only:development": "vite build -m development",
|
|
16
16
|
"dev": "vite",
|
|
17
|
-
"build": "run-p type-check \"build-only {@}\" --",
|
|
18
|
-
"build:development": "run-p type-check \"build-only:development {@}\" --",
|
|
17
|
+
"build": "run-p type-check type-gen \"build-only {@}\" --",
|
|
18
|
+
"build:development": "run-p type-check type-gen \"build-only:development {@}\" --",
|
|
19
19
|
"format": "eslint . --fix",
|
|
20
20
|
"lint": "eslint .",
|
|
21
21
|
"preview": "vite preview",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"test:a11y:cleanup": "rimraf a11y/.output",
|
|
29
29
|
"test:watch": "vitest",
|
|
30
30
|
"type-check": "vue-tsc --build --force",
|
|
31
|
+
"type-gen": "vue-tsc -p tsconfig.app.json",
|
|
31
32
|
"prepare": "husky || true",
|
|
32
33
|
"commitlint": "commitlint --edit",
|
|
33
34
|
"lint-staged": "lint-staged",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/browserconfig.xml
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<browserconfig><msapplication><tile><square70x70logo src="/icons/ms-icon-70x70.png"/><square150x150logo src="/icons/ms-icon-150x150.png"/><square310x310logo src="/icons/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
package/dist/favicon-16x16.png
DELETED
|
Binary file
|
package/dist/favicon-32x32.png
DELETED
|
Binary file
|
package/dist/favicon.ico
DELETED
|
Binary file
|
package/dist/manifest.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "VueDsfr App",
|
|
3
|
-
"icons": [
|
|
4
|
-
{
|
|
5
|
-
"src": "/icons/android-icon-36x36.png",
|
|
6
|
-
"sizes": "36x36",
|
|
7
|
-
"type": "image/png",
|
|
8
|
-
"density": "0.75"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "/icons/android-icon-48x48.png",
|
|
12
|
-
"sizes": "48x48",
|
|
13
|
-
"type": "image/png",
|
|
14
|
-
"density": "1.0"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"src": "/icons/android-icon-72x72.png",
|
|
18
|
-
"sizes": "72x72",
|
|
19
|
-
"type": "image/png",
|
|
20
|
-
"density": "1.5"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"src": "/icons/android-icon-96x96.png",
|
|
24
|
-
"sizes": "96x96",
|
|
25
|
-
"type": "image/png",
|
|
26
|
-
"density": "2.0"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"src": "/icons/android-icon-144x144.png",
|
|
30
|
-
"sizes": "144x144",
|
|
31
|
-
"type": "image/png",
|
|
32
|
-
"density": "3.0"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"src": "/icons/android-icon-192x192.png",
|
|
36
|
-
"sizes": "192x192",
|
|
37
|
-
"type": "image/png",
|
|
38
|
-
"density": "4.0"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|