@cnamts/synapse 1.0.11 → 1.0.13
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/{DateFilter-QEfKOz0P.js → DateFilter-_EFzsvvM.js} +1 -1
- package/dist/{NumberFilter-C0h7gVzp.js → NumberFilter-CUxEbKJh.js} +1 -1
- package/dist/{PeriodFilter-8dVrKjju.js → PeriodFilter-D5ueqtKy.js} +1 -1
- package/dist/{SelectFilter-BI3QGbqb.js → SelectFilter-BciBNydy.js} +1 -1
- package/dist/{TextFilter-UOp1hcPp.js → TextFilter-DMN_WAQB.js} +1 -1
- package/dist/components/Amelipro/AmeliproAccordion/AmeliproAccordion.d.ts +7 -3
- package/dist/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/AmeliproAccordionTemplate.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.d.ts +2 -0
- package/dist/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResult.d.ts +7 -3
- package/dist/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResultTemplate/AmeliproAccordionResultTemplate.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +50 -68
- package/dist/components/Amelipro/AmeliproCard/AmeliproCard.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproIcon/AmeliproIcon.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.d.ts +5 -5
- package/dist/components/Amelipro/AmeliproMultipleFoldingCard/AmeliproMultipleFoldingCard.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproNumberedCard/AmeliproNumberedCard.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.d.ts +24 -32
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.d.ts +36 -48
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +50 -68
- package/dist/components/Amelipro/AmeliproTable/AmeliproTable.d.ts +4 -0
- package/dist/components/Amelipro/AmeliproTable/types.d.ts +11 -0
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +50 -68
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +0 -4
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +12 -16
- package/dist/components/Captcha/Captcha.d.ts +68 -0
- package/dist/components/Captcha/CaptchaAlert.d.ts +13 -0
- package/dist/components/Captcha/CaptchaBase.d.ts +55 -0
- package/dist/components/Captcha/CaptchaBtn.d.ts +12 -0
- package/dist/components/Captcha/CaptchaForm.d.ts +16 -0
- package/dist/components/Captcha/CaptchaImg.d.ts +12 -0
- package/dist/components/Captcha/CaptchaInformation.d.ts +20 -0
- package/dist/components/Captcha/captchaApi.d.ts +41 -0
- package/dist/components/Captcha/icons/volumeUp.d.ts +2 -0
- package/dist/components/Captcha/locales.d.ts +35 -0
- package/dist/components/Captcha/types.d.ts +2 -0
- package/dist/components/ChipList/ChipList.d.ts +2 -2
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +14 -14
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +5 -5
- package/dist/components/Customs/SyForm/SyForm.d.ts +6 -3
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +12 -16
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +96 -68
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +63 -38
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +23 -27
- package/dist/components/DatePicker/composables/useDatePickerViewMode.d.ts +2 -1
- package/dist/components/DatePicker/tests/setup.d.ts +816 -520
- package/dist/components/HeaderToolbar/HeaderToolbar.d.ts +10 -10
- package/dist/components/NirField/NirField.d.ts +31 -34
- package/dist/components/NirField/locales.d.ts +1 -3
- package/dist/components/PasswordField/PasswordField.d.ts +2 -0
- package/dist/components/PeriodField/PeriodField.d.ts +192 -128
- package/dist/components/PhoneField/PhoneField.d.ts +13 -17
- package/dist/components/SearchListField/SearchListField.d.ts +5 -5
- package/dist/components/SyTextArea/SyTextArea.d.ts +0 -4
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +5 -8
- package/dist/components/Tables/SyTable/SyTable.d.ts +5 -8
- package/dist/components/Tables/common/SyTablePagination.d.ts +5 -5
- package/dist/components/Tables/common/types.d.ts +4 -0
- package/dist/components/Tables/common/usePagination.d.ts +3 -4
- package/dist/components/Tables/common/useTableCheckbox.d.ts +10 -6
- package/dist/components/index.d.ts +1 -0
- package/dist/composables/validation/useFormValidation.d.ts +10 -0
- package/dist/composables/validation/useValidatable.d.ts +10 -2
- package/dist/design-system-v3.js +126 -125
- package/dist/design-system-v3.umd.cjs +265 -265
- package/dist/main-DISHlqcd.js +34217 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/assets/overrides/_forms.scss +2 -0
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordion.stories.ts +7 -4
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordion.vue +2 -0
- package/src/components/Amelipro/AmeliproAccordionFrieze/AmeliproAccordionFrieze.vue +1 -0
- package/src/components/Amelipro/AmeliproAccordionFrieze/__tests__/__snapshots__/AmeliproAccordionFrieze.spec.ts.snap +574 -112
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.stories.ts +5 -2
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.vue +2 -1
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResult.stories.ts +6 -3
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResult.vue +2 -0
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.stories.ts +5 -2
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.vue +2 -1
- package/src/components/Amelipro/AmeliproCheckbox/__tests__/AmeliproCheckbox.spec.ts +175 -0
- package/src/components/Amelipro/AmeliproCheckbox/__tests__/__snapshots__/AmeliproCheckbox.spec.ts.snap +88 -0
- package/src/components/Amelipro/AmeliproCheckboxGroup/__tests__/AmeliproCheckboxGroup.spec.ts +423 -0
- package/src/components/Amelipro/AmeliproCheckboxGroup/{tests → __tests__}/__snapshots__/AmeliproCheckboxGroup.spec.ts.snap +112 -78
- package/src/components/Amelipro/AmeliproChips/__tests__/AmeliproChips.spec.ts +92 -0
- package/src/components/Amelipro/AmeliproChips/__tests__/__snapshots__/AmeliproChips.spec.ts.snap +81 -0
- package/src/components/Amelipro/AmeliproDialog/__tests__/AmeliproDialog.spec.ts +257 -0
- package/src/components/Amelipro/AmeliproDialog/__tests__/__snapshots__/AmeliproDialog.spec.ts.snap +61 -0
- package/src/components/Amelipro/AmeliproDisclosure/__tests__/AmeliproDisclosure.spec.ts +79 -0
- package/src/components/Amelipro/AmeliproDisclosure/__tests__/__snapshots__/AmeliproDisclosure.spec.ts.snap +89 -0
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.vue +6 -7
- package/src/components/Amelipro/AmeliproFooter/__tests__/AmeliproFooter.spec.ts +787 -0
- package/src/components/Amelipro/AmeliproFooter/__tests__/__snapshots__/AmeliproFooter.spec.ts.snap +318 -0
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/__tests__/AmeliproHeaderBrandSection.spec.ts +167 -0
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/__tests__/__snapshots__/AmeliproHeaderBrandSection.spec.ts.snap +100 -0
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/__tests__/AmeliproHeaderBar.spec.ts +312 -0
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/__tests__/__snapshots__/AmeliproHeaderBar.spec.ts.snap +98 -0
- package/src/components/Amelipro/AmeliproHeader/__tests__/AmeliproHeader.spec.ts +361 -0
- package/src/components/Amelipro/AmeliproHeader/__tests__/__snapshots__/AmeliproHeader.spec.ts.snap +22 -0
- package/src/components/Amelipro/AmeliproMenu/__tests__/AmeliproMenu.spec.ts +168 -0
- package/src/components/Amelipro/AmeliproMenu/__tests__/__snapshots__/AmeliproMenu.spec.ts.snap +295 -0
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/AmeliproDropdownMenuBtn/__tests__/AmeliproDropdownMenuBtn.spec.ts +128 -0
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/AmeliproDropdownMenuBtn/__tests__/__snapshots__/AmeliproDropdownMenuBtn.spec.ts.snap +67 -0
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/__tests__/AmeliproDropdownMenu.spec.ts +266 -0
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/__tests__/__snapshots__/AmeliproDropdownMenu.spec.ts.snap +134 -0
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproMessagingMenuBtn/__tests__/AmeliproMessagingMenuBtn.spec.ts +72 -0
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproMessagingMenuBtn/__tests__/__snapshots__/AmeliproMessagingMenuBtn.spec.ts.snap +71 -0
- package/src/components/Amelipro/AmeliproPageLayout/tests/__snapshots__/AmeliproPageLayout.spec.ts.snap +12 -0
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.stories.ts +81 -9
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +139 -61
- package/src/components/Amelipro/AmeliproTable/__tests__/AmeliproTable.spec.ts +10 -0
- package/src/components/Amelipro/AmeliproTable/__tests__/__snapshots__/AmeliproTable.spec.ts.snap +361 -187
- package/src/components/Amelipro/AmeliproTable/types.d.ts +11 -0
- package/src/components/Captcha/Captcha.mdx +72 -0
- package/src/components/Captcha/Captcha.stories.ts +276 -0
- package/src/components/Captcha/Captcha.vue +325 -0
- package/src/components/Captcha/CaptchaAlert.vue +60 -0
- package/src/components/Captcha/CaptchaBase.vue +219 -0
- package/src/components/Captcha/CaptchaBtn.vue +35 -0
- package/src/components/Captcha/CaptchaForm.vue +58 -0
- package/src/components/Captcha/CaptchaImg.vue +41 -0
- package/src/components/Captcha/CaptchaInformation.vue +64 -0
- package/src/components/Captcha/captchaApi.ts +111 -0
- package/src/components/Captcha/icons/volumeUp.vue +11 -0
- package/src/components/Captcha/locales.ts +35 -0
- package/src/components/Captcha/readme.md +5 -0
- package/src/components/Captcha/tests/Captcha.spec.ts +298 -0
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +716 -0
- package/src/components/Captcha/types.ts +2 -0
- package/src/components/Customs/Selects/SySelect/SySelect.vue +2 -2
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +4 -0
- package/src/components/Customs/SyForm/SyForm.stories.ts +133 -23
- package/src/components/Customs/SyForm/SyForm.vue +17 -1
- package/src/components/Customs/SyTextField/SyTextField.vue +29 -7
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +32 -9
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +154 -18
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +2 -2
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +35 -4
- package/src/components/DatePicker/composables/tests/useDatePickerViewMode.spec.ts +107 -72
- package/src/components/DatePicker/composables/tests/useMonthButtonCustomization.spec.ts +6 -6
- package/src/components/DatePicker/composables/useDatePickerViewMode.ts +57 -7
- package/src/components/DatePicker/composables/useMonthButtonCustomization.ts +14 -14
- package/src/components/DatePicker/tests/navigation.regression.spec.ts +74 -0
- package/src/components/DatePicker/tests/navigation.simple.spec.ts +137 -0
- package/src/components/NirField/NirField.stories.ts +85 -2
- package/src/components/NirField/NirField.vue +55 -18
- package/src/components/NirField/locales.ts +1 -3
- package/src/components/PasswordField/PasswordField.vue +39 -7
- package/src/components/PhoneField/PhoneField.vue +43 -10
- package/src/components/RangeField/tests/RangeField.spec.ts +0 -3
- package/src/components/Tables/SyServerTable/SyServerTable.mdx +15 -0
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +309 -0
- package/src/components/Tables/SyServerTable/SyServerTable.vue +18 -3
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +67 -0
- package/src/components/Tables/SyTable/SyTable.mdx +15 -0
- package/src/components/Tables/SyTable/SyTable.stories.ts +228 -0
- package/src/components/Tables/SyTable/SyTable.vue +18 -3
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +63 -0
- package/src/components/Tables/common/SyTablePagination.vue +10 -8
- package/src/components/Tables/common/types.ts +4 -0
- package/src/components/Tables/common/usePagination.ts +11 -20
- package/src/components/Tables/common/useTableCheckbox.ts +23 -11
- package/src/components/index.ts +1 -0
- package/src/composables/validation/AvecVosComposants.mdx.old +1 -1
- package/src/composables/validation/FormValidation.stories.ts.old +5 -5
- package/src/composables/validation/useFormValidation.ts +46 -8
- package/src/composables/validation/useValidatable.ts +19 -8
- package/src/stories/Accessibilite/Introduction.mdx +1 -1
- package/src/stories/Demarrer/EnrichirLeDesignSystem.mdx +43 -0
- package/src/stories/Demarrer/EnrichirLeDesignSystem.stories.ts +239 -0
- package/src/stories/Demarrer/SignalerUneAnomalie.mdx +39 -0
- package/src/stories/Demarrer/SignalerUneAnomalie.stories.ts +261 -0
- package/dist/main-DyEOPqqn.js +0 -33329
- package/src/components/Amelipro/AmeliproCheckbox/tests/AmeliproCheckbox.spec.ts +0 -19
- package/src/components/Amelipro/AmeliproCheckbox/tests/__snapshots__/AmeliproCheckbox.spec.ts.snap +0 -40
- package/src/components/Amelipro/AmeliproCheckboxGroup/tests/AmeliproCheckboxGroup.spec.ts +0 -46
- package/src/components/Amelipro/AmeliproChips/tests/AmeliproChips.spec.ts +0 -16
- package/src/components/Amelipro/AmeliproChips/tests/__snapshots__/AmeliproChips.spec.ts.snap +0 -97
- package/src/components/Amelipro/AmeliproDialog/tests/AmeliproDialog.spec.ts +0 -24
- package/src/components/Amelipro/AmeliproDialog/tests/__snapshots__/AmeliproDialog.spec.ts.snap +0 -134
- package/src/components/Amelipro/AmeliproDisclosure/tests/AmeliproDisclosure.spec.ts +0 -19
- package/src/components/Amelipro/AmeliproDisclosure/tests/__snapshots__/AmeliproDisclosure.spec.ts.snap +0 -104
- package/src/components/Amelipro/AmeliproFooter/tests/AmeliproFooter.spec.ts +0 -15
- package/src/components/Amelipro/AmeliproFooter/tests/__snapshots__/AmeliproFooter.spec.ts.snap +0 -432
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/tests/AmeliproHeaderBrandSection.spec.ts +0 -15
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/tests/__snapshots__/AmeliproHeaderBrandSection.spec.ts.snap +0 -131
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/tests/AmeliproHeaderBar.spec.ts +0 -15
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/tests/__snapshots__/AmeliproHeaderBar.spec.ts.snap +0 -172
- package/src/components/Amelipro/AmeliproHeader/tests/AmeliproHeader.spec.ts +0 -159
- package/src/components/Amelipro/AmeliproHeader/tests/__snapshots__/AmeliproHeader.spec.ts.snap +0 -841
- package/src/components/Amelipro/AmeliproMenu/tests/AmeliproMenu.spec.ts +0 -85
- package/src/components/Amelipro/AmeliproMenu/tests/__snapshots__/AmeliproMenu.spec.ts.snap +0 -537
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/AmeliproDropdownMenuBtn/tests/AmeliproDropdownMenuBtn.spec.ts +0 -16
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/AmeliproDropdownMenuBtn/tests/__snapshots__/AmeliproDropdownMenuBtn.spec.ts.snap +0 -56
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/tests/AmeliproDropdownMenu.spec.ts +0 -28
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/tests/__snapshots__/AmeliproDropdownMenu.spec.ts.snap +0 -300
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproMessagingMenuBtn/tests/AmeliproMessagingMenuBtn.spec.ts +0 -16
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproMessagingMenuBtn/tests/__snapshots__/AmeliproMessagingMenuBtn.spec.ts.snap +0 -89
- package/src/components/BackBtn/tests/__snapshots__/BackBtn.spec.ts.snap +0 -45
- package/src/components/RangeField/tests/__snapshots__/RangeField.spec.ts.snap +0 -1270
- package/src/stories/Demarrer/CreerUneIssue.mdx +0 -67
- package/src/stories/Demarrer/components.stories.ts +0 -25
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { mount } from '@vue/test-utils'
|
|
2
|
-
import { expect, describe, it } from 'vitest'
|
|
3
|
-
import AmeliproDropdownMenu from '../AmeliproDropdownMenu.vue'
|
|
4
|
-
|
|
5
|
-
describe('AmeliproDropdownMenu', () => {
|
|
6
|
-
it('render correctly', async () => {
|
|
7
|
-
const wrapper = mount(AmeliproDropdownMenu, {
|
|
8
|
-
props: {
|
|
9
|
-
items: [
|
|
10
|
-
{
|
|
11
|
-
label: 'item 1',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
label: 'item 2',
|
|
15
|
-
active: true,
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: 'item 3',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
label: 'menu déroulant',
|
|
22
|
-
uniqueId: 'my-dropdown-menu-id',
|
|
23
|
-
},
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
expect(wrapper.html()).toMatchSnapshot()
|
|
27
|
-
})
|
|
28
|
-
})
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
-
|
|
3
|
-
exports[`AmeliproDropdownMenu > render correctly 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
class="dropdown-menu"
|
|
6
|
-
id="my-dropdown-menu-id"
|
|
7
|
-
style="width: 100%;"
|
|
8
|
-
>
|
|
9
|
-
<button
|
|
10
|
-
aria-controls="my-dropdown-menu-id-menu"
|
|
11
|
-
aria-expanded="false"
|
|
12
|
-
aria-haspopup="true"
|
|
13
|
-
class="
|
|
14
|
-
amelipro-btn
|
|
15
|
-
amelipro-btn--style
|
|
16
|
-
bg-ap-white
|
|
17
|
-
dropdown-menu__open-btn
|
|
18
|
-
dropdown-menu__open-btn
|
|
19
|
-
elevation-0
|
|
20
|
-
font-weight-bold
|
|
21
|
-
font-weight-bold
|
|
22
|
-
text-h6
|
|
23
|
-
text-h6
|
|
24
|
-
text-none
|
|
25
|
-
text-none
|
|
26
|
-
v-btn
|
|
27
|
-
v-btn--density-default
|
|
28
|
-
v-btn--flat
|
|
29
|
-
v-btn--size-default
|
|
30
|
-
v-btn--variant-flat
|
|
31
|
-
v-theme--light
|
|
32
|
-
w-100
|
|
33
|
-
w-100
|
|
34
|
-
"
|
|
35
|
-
id="my-dropdown-menu-id-btn"
|
|
36
|
-
style="
|
|
37
|
-
height: auto;
|
|
38
|
-
min-height: 2.5rem;
|
|
39
|
-
color: #1A1B1B !important;
|
|
40
|
-
"
|
|
41
|
-
type="button"
|
|
42
|
-
>
|
|
43
|
-
<span class="v-btn__overlay"></span>
|
|
44
|
-
<span class="v-btn__underlay"></span>
|
|
45
|
-
<!---->
|
|
46
|
-
<span
|
|
47
|
-
class="v-btn__content"
|
|
48
|
-
data-no-activator=""
|
|
49
|
-
>
|
|
50
|
-
<span class="
|
|
51
|
-
align-center
|
|
52
|
-
amelipro-custom-btn
|
|
53
|
-
d-flex
|
|
54
|
-
flex-row
|
|
55
|
-
">
|
|
56
|
-
<span
|
|
57
|
-
class="
|
|
58
|
-
font-weight-bold
|
|
59
|
-
text-h6
|
|
60
|
-
text-left
|
|
61
|
-
w-100
|
|
62
|
-
"
|
|
63
|
-
id="my-dropdown-menu-id-btn-text"
|
|
64
|
-
>
|
|
65
|
-
<span class="d-sr-only">
|
|
66
|
-
Page active :
|
|
67
|
-
</span>
|
|
68
|
-
item 2
|
|
69
|
-
</span>
|
|
70
|
-
<span
|
|
71
|
-
class="amelipro-icon"
|
|
72
|
-
id="my-dropdown-menu-id-icon"
|
|
73
|
-
style="margin-top: -18px;"
|
|
74
|
-
>
|
|
75
|
-
<span
|
|
76
|
-
aria-hidden="true"
|
|
77
|
-
class="
|
|
78
|
-
amelipro-custom-icon
|
|
79
|
-
custom-color
|
|
80
|
-
"
|
|
81
|
-
focusable="false"
|
|
82
|
-
role="img"
|
|
83
|
-
style="
|
|
84
|
-
color: #1A1B1B;
|
|
85
|
-
height: 8px;
|
|
86
|
-
width: 8px;
|
|
87
|
-
"
|
|
88
|
-
>
|
|
89
|
-
<span>
|
|
90
|
-
<svg
|
|
91
|
-
aria-hidden="true"
|
|
92
|
-
style="enable-background:new 0 0 42 42;"
|
|
93
|
-
version="1.1"
|
|
94
|
-
viewBox="0 0 42 42"
|
|
95
|
-
x="0px"
|
|
96
|
-
xml:space="preserve"
|
|
97
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
98
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
99
|
-
y="0px"
|
|
100
|
-
>
|
|
101
|
-
<polygon
|
|
102
|
-
class="shape-color"
|
|
103
|
-
points="21,39.2 42,2.8 0,2.8 "
|
|
104
|
-
/>
|
|
105
|
-
</svg>
|
|
106
|
-
</span>
|
|
107
|
-
</span>
|
|
108
|
-
</span>
|
|
109
|
-
<!-- v-if -->
|
|
110
|
-
<!-- v-if -->
|
|
111
|
-
</span>
|
|
112
|
-
</span>
|
|
113
|
-
<!---->
|
|
114
|
-
<!---->
|
|
115
|
-
</button>
|
|
116
|
-
<ul
|
|
117
|
-
aria-label="menu déroulant"
|
|
118
|
-
class="
|
|
119
|
-
ap-white
|
|
120
|
-
dropdown-menu__list
|
|
121
|
-
list-style-none
|
|
122
|
-
"
|
|
123
|
-
id="my-dropdown-menu-id-menu"
|
|
124
|
-
role="menu"
|
|
125
|
-
style="display: none;"
|
|
126
|
-
>
|
|
127
|
-
<li
|
|
128
|
-
class="dropdown-menu__item"
|
|
129
|
-
role="none"
|
|
130
|
-
>
|
|
131
|
-
<button
|
|
132
|
-
class="
|
|
133
|
-
amelipro-btn
|
|
134
|
-
amelipro-btn--style
|
|
135
|
-
bg-ap-white
|
|
136
|
-
dropdown-menu__btn
|
|
137
|
-
dropdown-menu__btn
|
|
138
|
-
elevation-0
|
|
139
|
-
text-left
|
|
140
|
-
text-left
|
|
141
|
-
text-none
|
|
142
|
-
text-none
|
|
143
|
-
v-btn
|
|
144
|
-
v-btn--density-default
|
|
145
|
-
v-btn--flat
|
|
146
|
-
v-btn--size-default
|
|
147
|
-
v-btn--variant-flat
|
|
148
|
-
v-theme--light
|
|
149
|
-
w-100
|
|
150
|
-
w-100
|
|
151
|
-
"
|
|
152
|
-
id="my-dropdown-menu-id-btn-0"
|
|
153
|
-
role="menuitem"
|
|
154
|
-
style="
|
|
155
|
-
height: auto;
|
|
156
|
-
min-height: 2.5rem;
|
|
157
|
-
color: #1A1B1B !important;
|
|
158
|
-
"
|
|
159
|
-
tabindex="-1"
|
|
160
|
-
type="button"
|
|
161
|
-
>
|
|
162
|
-
<span class="v-btn__overlay"></span>
|
|
163
|
-
<span class="v-btn__underlay"></span>
|
|
164
|
-
<!---->
|
|
165
|
-
<span
|
|
166
|
-
class="v-btn__content"
|
|
167
|
-
data-no-activator=""
|
|
168
|
-
>
|
|
169
|
-
<span class="
|
|
170
|
-
align-center
|
|
171
|
-
amelipro-custom-btn
|
|
172
|
-
d-flex
|
|
173
|
-
flex-row
|
|
174
|
-
">
|
|
175
|
-
item 1
|
|
176
|
-
<!-- v-if -->
|
|
177
|
-
<!-- v-if -->
|
|
178
|
-
</span>
|
|
179
|
-
</span>
|
|
180
|
-
<!---->
|
|
181
|
-
<!---->
|
|
182
|
-
</button>
|
|
183
|
-
</li>
|
|
184
|
-
<li
|
|
185
|
-
class="dropdown-menu__item"
|
|
186
|
-
role="none"
|
|
187
|
-
>
|
|
188
|
-
<button
|
|
189
|
-
class="
|
|
190
|
-
amelipro-btn
|
|
191
|
-
amelipro-btn--style
|
|
192
|
-
bg-ap-white
|
|
193
|
-
dropdown-menu__btn
|
|
194
|
-
dropdown-menu__btn
|
|
195
|
-
elevation-0
|
|
196
|
-
text-left
|
|
197
|
-
text-left
|
|
198
|
-
text-none
|
|
199
|
-
text-none
|
|
200
|
-
v-btn
|
|
201
|
-
v-btn--density-default
|
|
202
|
-
v-btn--flat
|
|
203
|
-
v-btn--size-default
|
|
204
|
-
v-btn--variant-flat
|
|
205
|
-
v-theme--light
|
|
206
|
-
w-100
|
|
207
|
-
w-100
|
|
208
|
-
"
|
|
209
|
-
id="my-dropdown-menu-id-btn-1"
|
|
210
|
-
role="menuitem"
|
|
211
|
-
style="
|
|
212
|
-
height: auto;
|
|
213
|
-
min-height: 2.5rem;
|
|
214
|
-
color: #1A1B1B !important;
|
|
215
|
-
"
|
|
216
|
-
tabindex="-1"
|
|
217
|
-
type="button"
|
|
218
|
-
>
|
|
219
|
-
<span class="v-btn__overlay"></span>
|
|
220
|
-
<span class="v-btn__underlay"></span>
|
|
221
|
-
<!---->
|
|
222
|
-
<span
|
|
223
|
-
class="v-btn__content"
|
|
224
|
-
data-no-activator=""
|
|
225
|
-
>
|
|
226
|
-
<span class="
|
|
227
|
-
align-center
|
|
228
|
-
amelipro-custom-btn
|
|
229
|
-
d-flex
|
|
230
|
-
flex-row
|
|
231
|
-
">
|
|
232
|
-
item 2
|
|
233
|
-
<!-- v-if -->
|
|
234
|
-
<!-- v-if -->
|
|
235
|
-
</span>
|
|
236
|
-
</span>
|
|
237
|
-
<!---->
|
|
238
|
-
<!---->
|
|
239
|
-
</button>
|
|
240
|
-
</li>
|
|
241
|
-
<li
|
|
242
|
-
class="dropdown-menu__item"
|
|
243
|
-
role="none"
|
|
244
|
-
>
|
|
245
|
-
<button
|
|
246
|
-
class="
|
|
247
|
-
amelipro-btn
|
|
248
|
-
amelipro-btn--style
|
|
249
|
-
bg-ap-white
|
|
250
|
-
dropdown-menu__btn
|
|
251
|
-
dropdown-menu__btn
|
|
252
|
-
elevation-0
|
|
253
|
-
text-left
|
|
254
|
-
text-left
|
|
255
|
-
text-none
|
|
256
|
-
text-none
|
|
257
|
-
v-btn
|
|
258
|
-
v-btn--density-default
|
|
259
|
-
v-btn--flat
|
|
260
|
-
v-btn--size-default
|
|
261
|
-
v-btn--variant-flat
|
|
262
|
-
v-theme--light
|
|
263
|
-
w-100
|
|
264
|
-
w-100
|
|
265
|
-
"
|
|
266
|
-
id="my-dropdown-menu-id-btn-2"
|
|
267
|
-
role="menuitem"
|
|
268
|
-
style="
|
|
269
|
-
height: auto;
|
|
270
|
-
min-height: 2.5rem;
|
|
271
|
-
color: #1A1B1B !important;
|
|
272
|
-
"
|
|
273
|
-
tabindex="-1"
|
|
274
|
-
type="button"
|
|
275
|
-
>
|
|
276
|
-
<span class="v-btn__overlay"></span>
|
|
277
|
-
<span class="v-btn__underlay"></span>
|
|
278
|
-
<!---->
|
|
279
|
-
<span
|
|
280
|
-
class="v-btn__content"
|
|
281
|
-
data-no-activator=""
|
|
282
|
-
>
|
|
283
|
-
<span class="
|
|
284
|
-
align-center
|
|
285
|
-
amelipro-custom-btn
|
|
286
|
-
d-flex
|
|
287
|
-
flex-row
|
|
288
|
-
">
|
|
289
|
-
item 3
|
|
290
|
-
<!-- v-if -->
|
|
291
|
-
<!-- v-if -->
|
|
292
|
-
</span>
|
|
293
|
-
</span>
|
|
294
|
-
<!---->
|
|
295
|
-
<!---->
|
|
296
|
-
</button>
|
|
297
|
-
</li>
|
|
298
|
-
</ul>
|
|
299
|
-
</div>
|
|
300
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { mount } from '@vue/test-utils'
|
|
2
|
-
import { expect, describe, it } from 'vitest'
|
|
3
|
-
import AmeliproMessagingMenuBtn from '../AmeliproMessagingMenuBtn.vue'
|
|
4
|
-
|
|
5
|
-
describe('AmeliproMessagingMenuBtn', () => {
|
|
6
|
-
it('render correctly', async () => {
|
|
7
|
-
const wrapper = mount(AmeliproMessagingMenuBtn, {
|
|
8
|
-
props: {
|
|
9
|
-
label: 'label du bouton',
|
|
10
|
-
uniqueId: 'my-messaging-menu-btn-id',
|
|
11
|
-
},
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
expect(wrapper.html()).toMatchSnapshot()
|
|
15
|
-
})
|
|
16
|
-
})
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
-
|
|
3
|
-
exports[`AmeliproMessagingMenuBtn > render correctly 1`] = `
|
|
4
|
-
<button
|
|
5
|
-
class="
|
|
6
|
-
amelipro-btn
|
|
7
|
-
amelipro-btn--style
|
|
8
|
-
bg-ap-blue-darken-1
|
|
9
|
-
elevation-0
|
|
10
|
-
font-weight-bold
|
|
11
|
-
font-weight-bold
|
|
12
|
-
mb-1
|
|
13
|
-
mb-1
|
|
14
|
-
messaging-menu__btn
|
|
15
|
-
messaging-menu__btn
|
|
16
|
-
text-h6
|
|
17
|
-
text-h6
|
|
18
|
-
text-none
|
|
19
|
-
text-none
|
|
20
|
-
v-btn
|
|
21
|
-
v-btn--density-default
|
|
22
|
-
v-btn--flat
|
|
23
|
-
v-btn--size-default
|
|
24
|
-
v-btn--variant-flat
|
|
25
|
-
v-theme--light
|
|
26
|
-
w-100
|
|
27
|
-
w-100
|
|
28
|
-
"
|
|
29
|
-
id="my-messaging-menu-btn-id"
|
|
30
|
-
style="
|
|
31
|
-
height: auto;
|
|
32
|
-
min-height: 50px;
|
|
33
|
-
color: #FFFFFF !important;
|
|
34
|
-
"
|
|
35
|
-
type="button"
|
|
36
|
-
>
|
|
37
|
-
<span class="v-btn__overlay"></span>
|
|
38
|
-
<span class="v-btn__underlay"></span>
|
|
39
|
-
<!---->
|
|
40
|
-
<span
|
|
41
|
-
class="v-btn__content"
|
|
42
|
-
data-no-activator=""
|
|
43
|
-
>
|
|
44
|
-
<span class="
|
|
45
|
-
align-center
|
|
46
|
-
amelipro-custom-btn
|
|
47
|
-
d-flex
|
|
48
|
-
flex-row
|
|
49
|
-
">
|
|
50
|
-
<span class="
|
|
51
|
-
align-center
|
|
52
|
-
d-flex
|
|
53
|
-
w-100
|
|
54
|
-
">
|
|
55
|
-
<span
|
|
56
|
-
class="
|
|
57
|
-
amelipro-icon
|
|
58
|
-
mr-2
|
|
59
|
-
"
|
|
60
|
-
id="my-messaging-menu-btn-id-icon"
|
|
61
|
-
>
|
|
62
|
-
<span
|
|
63
|
-
aria-hidden="true"
|
|
64
|
-
class="
|
|
65
|
-
amelipro-custom-icon
|
|
66
|
-
custom-color
|
|
67
|
-
"
|
|
68
|
-
focusable="false"
|
|
69
|
-
role="img"
|
|
70
|
-
style="
|
|
71
|
-
color: #FFFFFF;
|
|
72
|
-
height: 24px;
|
|
73
|
-
width: 24px;
|
|
74
|
-
"
|
|
75
|
-
>
|
|
76
|
-
<!-- v-if -->
|
|
77
|
-
</span>
|
|
78
|
-
</span>
|
|
79
|
-
label du bouton
|
|
80
|
-
</span>
|
|
81
|
-
<!-- v-if -->
|
|
82
|
-
<!-- v-if -->
|
|
83
|
-
<!-- v-if -->
|
|
84
|
-
</span>
|
|
85
|
-
</span>
|
|
86
|
-
<!---->
|
|
87
|
-
<!---->
|
|
88
|
-
</button>
|
|
89
|
-
`;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
-
|
|
3
|
-
exports[`BackBtn > render correctly 1`] = `
|
|
4
|
-
<button
|
|
5
|
-
class="
|
|
6
|
-
bg-white
|
|
7
|
-
pr-1
|
|
8
|
-
px-0
|
|
9
|
-
sy-back-btn
|
|
10
|
-
text-none
|
|
11
|
-
text-primary
|
|
12
|
-
v-btn
|
|
13
|
-
v-btn--density-default
|
|
14
|
-
v-btn--size-default
|
|
15
|
-
v-btn--variant-text
|
|
16
|
-
v-theme--light
|
|
17
|
-
"
|
|
18
|
-
type="button"
|
|
19
|
-
>
|
|
20
|
-
<span class="v-btn__overlay"></span>
|
|
21
|
-
<span class="v-btn__underlay"></span>
|
|
22
|
-
<!---->
|
|
23
|
-
<span
|
|
24
|
-
class="v-btn__content"
|
|
25
|
-
data-no-activator=""
|
|
26
|
-
>
|
|
27
|
-
<i
|
|
28
|
-
aria-hidden="true"
|
|
29
|
-
class="
|
|
30
|
-
M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z
|
|
31
|
-
mdi
|
|
32
|
-
mr-1
|
|
33
|
-
notranslate
|
|
34
|
-
text-primary
|
|
35
|
-
v-icon
|
|
36
|
-
v-icon--size-default
|
|
37
|
-
v-theme--light
|
|
38
|
-
"
|
|
39
|
-
></i>
|
|
40
|
-
Retour
|
|
41
|
-
</span>
|
|
42
|
-
<!---->
|
|
43
|
-
<!---->
|
|
44
|
-
</button>
|
|
45
|
-
`;
|