@cnamts/synapse 0.0.3-alpha → 0.0.4-alpha
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/design-system-v3.d.ts +712 -27
- package/dist/design-system-v3.js +2715 -1485
- package/dist/design-system-v3.umd.cjs +10 -1
- package/dist/style.css +1 -1
- package/package.json +5 -2
- package/src/components/Alert/Alert.mdx +1 -1
- package/src/components/Alert/Alert.stories.ts +91 -1
- package/src/components/BackBtn/BackBtn.mdx +1 -1
- package/src/components/BackBtn/BackBtn.stories.ts +84 -1
- package/src/components/BackToTopBtn/BackToTopBtn.mdx +3 -3
- package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +172 -11
- package/src/components/CollapsibleList/CollapsibleList.mdx +2 -2
- package/src/components/CollapsibleList/CollapsibleList.stories.ts +37 -1
- package/src/components/CopyBtn/CopyBtn.mdx +1 -1
- package/src/components/CopyBtn/CopyBtn.stories.ts +120 -1
- package/src/components/CopyBtn/CopyBtn.vue +1 -1
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.mdx +6 -8
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.stories.ts +270 -4
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.vue +80 -53
- package/src/components/Customs/CustomInputSelect/config.ts +10 -0
- package/src/components/Customs/CustomSelect/CustomSelect.mdx +3 -3
- package/src/components/Customs/CustomSelect/CustomSelect.stories.ts +158 -2
- package/src/components/Customs/CustomSelect/CustomSelect.vue +25 -6
- package/src/components/Customs/CustomTextField/CustomTextField.mdx +44 -0
- package/src/components/Customs/CustomTextField/CustomTextField.stories.ts +403 -0
- package/src/components/Customs/CustomTextField/CustomTextField.vue +110 -0
- package/src/components/Customs/CustomTextField/tests/CustomTextField.spec.ts +93 -0
- package/src/components/Customs/CustomTextField/tests/__snapshots__/CustomTextField.spec.ts.snap +59 -0
- package/src/components/Customs/CustomTextField/types.d.ts +3 -0
- package/src/components/DataList/DataList.mdx +77 -0
- package/src/components/DataList/DataList.stories.ts +960 -0
- package/src/components/DataList/DataList.vue +140 -0
- package/src/components/DataList/DataListLoading/DataListLoading.vue +56 -0
- package/src/components/DataList/DataListLoading/tests/DataListLoading.spec.ts +23 -0
- package/src/components/DataList/locales.ts +3 -0
- package/src/components/DataList/tests/DataList.spec.ts +194 -0
- package/src/components/DataList/types.d.ts +23 -0
- package/src/components/DataListGroup/DataListGroup.mdx +77 -0
- package/src/components/DataListGroup/DataListGroup.stories.ts +987 -0
- package/src/components/DataListGroup/DataListGroup.vue +59 -0
- package/src/components/DataListGroup/tests/DataListGroup.spec.ts +54 -0
- package/src/components/DataListGroup/tests/data/dataListGroupItems.ts +41 -0
- package/src/components/DataListGroup/types.d.ts +15 -0
- package/src/components/DataListItem/DataListItem.vue +135 -0
- package/src/components/DataListItem/config.ts +17 -0
- package/src/components/DataListItem/locales.ts +3 -0
- package/src/components/DataListItem/tests/DataListItem.spec.ts +156 -0
- package/src/components/DataListItem/types.d.ts +23 -0
- package/src/components/DownloadBtn/Accessibilite.mdx +14 -0
- package/src/components/DownloadBtn/Accessibilite.stories.ts +166 -0
- package/src/components/DownloadBtn/AccessibiliteItems.ts +129 -0
- package/src/components/DownloadBtn/DownloadBtn.mdx +5 -6
- package/src/components/DownloadBtn/DownloadBtn.stories.ts +207 -2
- package/src/components/DownloadBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FooterBar/FooterBar.mdx +2 -2
- package/src/components/FooterBar/FooterBar.stories.ts +1 -1
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +1 -1
- package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +58 -1
- package/src/components/HeaderBar/HeaderBar.mdx +164 -45
- package/src/components/HeaderBar/HeaderBar.stories.ts +559 -15
- package/src/components/HeaderBar/HeaderBar.vue +60 -22
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.mdx +433 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.stories.ts +1089 -0
- package/src/components/HeaderBar/{HeaderComplexMenu/HeaderComplexMenu.vue → HeaderBurgerMenu/HeaderBurgerMenu.vue} +74 -45
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.mdx +38 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.stories.ts +89 -0
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuItem/tests/__snapshots__/HeaderMenuItem.spec.ts.snap +1 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.mdx +17 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.stories.ts +121 -0
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuSection/HeaderMenuSection.vue +2 -2
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuSection/tests/HeaderMenuSection.spec.ts +1 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.mdx +43 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.stories.ts +261 -0
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderSubMenu/HeaderSubMenu.vue +17 -3
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderSubMenu/tests/HeaderSubMenu.spec.ts +1 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.spec.ts +180 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/HeaderBurgerMenu.spec.ts.snap +13 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/HeaderComplexMenu.spec.ts.snap +13 -0
- package/src/components/HeaderBar/HeaderLogo/HeaderLogo.vue +62 -25
- package/src/components/HeaderBar/HeaderLogo/tests/HeaderLogo.spec.ts +49 -1
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +19 -23
- package/src/components/HeaderBar/HeaderMenuBtn/tests/HeaderMenuBtn.spec.ts +70 -0
- package/src/components/HeaderBar/Usages.mdx +85 -0
- package/src/components/HeaderBar/consts.scss +0 -1
- package/src/components/HeaderBar/tests/HeaderBar.spec.ts +8 -2
- package/src/components/HeaderBar/tests/__snapshots__/HeaderBar.spec.ts.snap +5 -10
- package/src/components/HeaderLoading/HeaderLoading.mdx +28 -0
- package/src/components/HeaderLoading/HeaderLoading.stories.ts +62 -0
- package/src/components/HeaderLoading/HeaderLoading.vue +45 -0
- package/src/components/HeaderLoading/tests/HeaderLoading.spec.ts +22 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.mdx +128 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +784 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.vue +194 -0
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +74 -0
- package/src/components/HeaderNavigationBar/HorizontalNavbar/config.ts +18 -0
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +127 -0
- package/src/components/HeaderNavigationBar/types.ts +7 -0
- package/src/components/HeaderToolbar/HeaderToolbar.mdx +31 -0
- package/src/components/HeaderToolbar/HeaderToolbar.stories.ts +343 -0
- package/src/components/HeaderToolbar/HeaderToolbar.vue +487 -0
- package/src/components/HeaderToolbar/tests/HeaderToolbar.spec.ts +196 -0
- package/src/components/HeaderToolbar/types.d.ts +20 -0
- package/src/components/LangBtn/LangBtn.mdx +1 -1
- package/src/components/LangBtn/LangBtn.stories.ts +125 -8
- package/src/components/Logo/Logo.mdx +2 -2
- package/src/components/Logo/Logo.stories.ts +147 -1
- package/src/components/LogoBrandSection/LogoBrandSection.mdx +14 -0
- package/src/components/LogoBrandSection/LogoBrandSection.stories.ts +158 -0
- package/src/components/LogoBrandSection/LogoBrandSection.vue +312 -0
- package/src/components/LogoBrandSection/assets/ameli-pro.svg +1 -0
- package/src/components/LogoBrandSection/assets/ameli.svg +1 -0
- package/src/components/LogoBrandSection/assets/cnam.svg +1 -0
- package/src/components/LogoBrandSection/assets/compte-ameli.svg +1 -0
- package/src/components/LogoBrandSection/dividerDimensionsMapping.ts +14 -0
- package/src/components/LogoBrandSection/locales.ts +14 -0
- package/src/components/LogoBrandSection/secondaryLogoMapping.ts +24 -0
- package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +365 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/LogoBrandSection.spec.ts.snap +14 -0
- package/src/components/LogoBrandSection/types.ts +8 -0
- package/src/components/NotificationBar/NotificationBar.mdx +6 -6
- package/src/components/NotificationBar/NotificationBar.stories.ts +1 -1
- package/src/components/NotificationBar/NotificationBar.vue +2 -2
- package/src/components/NotificationBar/tests/NotificationBar.spec.ts +1 -1
- package/src/components/PageContainer/PageContainer.mdx +1 -1
- package/src/components/PageContainer/PageContainer.stories.ts +86 -1
- package/src/components/PhoneField/PhoneField.mdx +49 -0
- package/src/components/PhoneField/PhoneField.stories.ts +869 -0
- package/src/components/PhoneField/PhoneField.vue +230 -0
- package/src/components/PhoneField/indicatifs.ts +104 -0
- package/src/components/PhoneField/locales.ts +4 -0
- package/src/components/PhoneField/tests/PhoneField.spec.ts +179 -0
- package/src/components/SkipLink/SkipLink.stories.ts +50 -1
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +28 -1
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +37 -1
- package/src/components/SubHeader/SubHeader.mdx +31 -0
- package/src/components/SubHeader/SubHeader.stories.ts +1032 -0
- package/src/components/SubHeader/SubHeader.vue +185 -0
- package/src/components/SubHeader/config.ts +12 -0
- package/src/components/SubHeader/locales.ts +3 -0
- package/src/components/SubHeader/tests/SubHeader.spec.ts +144 -0
- package/src/components/index.ts +24 -7
- package/src/composables/widthable/index.ts +29 -0
- package/src/composables/widthable/tests/widthable.spec.ts +52 -0
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +2 -2
- package/src/main.ts +1 -0
- package/src/modules.d.ts +4 -0
- package/src/services/index.ts +1 -0
- package/src/stories/Demarrer/Accueil.mdx +10 -0
- package/src/stories/Demarrer/Accueil.stories.ts +76 -0
- package/src/stories/Demarrer/PolitiqueDeConfidentialite.mdx +9 -0
- package/src/stories/Demarrer/PolitiqueDeConfidentialite.stories.ts +20 -0
- package/src/stories/Fondamentaux/Accessibilite/Accessibilite.mdx +1 -2
- package/src/stories/Fondamentaux/Accessibilite/Accessibilite.stories.ts +1 -1
- package/src/stories/Fondamentaux/EcoConception/Econception.stories.ts +1 -1
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +52 -48
- package/src/stories/GuideDuDev/vuetifyOptions.mdx +31 -28
- package/src/stories/Guidelines/CustomisationEtThemes.mdx +1 -1
- package/src/utils/functions/throttleDisplayFn/tests/throttleDisplayFn.spec.ts +47 -0
- package/src/utils/functions/throttleDisplayFn/throttleDisplayFn.ts +26 -0
- package/src/utils/rules/exactLength/index.ts +33 -0
- package/src/utils/rules/exactLength/locales.ts +6 -0
- package/src/utils/rules/required/index.ts +25 -0
- package/src/utils/rules/required/locales.ts +5 -0
- package/src/utils/rules/required/ruleMessageHelper.ts +14 -0
- package/src/utils/rules/required/tests/index.spec.ts +47 -0
- package/src/utils/rules/required/tests/rulesMessageHelper.spec.ts +22 -0
- package/src/utils/rules/types.d.ts +15 -0
- package/src/components/Beta/beta.mdx +0 -5
- package/src/components/Deprecated/deprecated.mdx +0 -5
- package/src/components/HeaderBar/HeaderComplexMenu/HeaderComplexMenu.stories.ts +0 -272
- package/src/components/HeaderBar/HeaderComplexMenu/HeaderMenuItem/HeaderMenuItem.stories.ts +0 -49
- package/src/components/HeaderBar/HeaderComplexMenu/HeaderMenuSection/HeaderMenuSection.stories.ts +0 -56
- package/src/components/HeaderBar/HeaderComplexMenu/HeaderSubMenu/HeaderSubMenu.stories.ts +0 -137
- package/src/components/HeaderBar/HeaderComplexMenu/tests/HeaderComplexMenu.spec.ts +0 -129
- package/src/components/HeaderBar/HeaderComplexMenu/tests/__snapshots__/HeaderComplexMenu.spec.ts.snap +0 -18
- package/src/stories/Home/Accueil.mdx +0 -7
- package/src/stories/Home/PolitiqueDeConfidentialite.mdx +0 -4
- package/src/stories/Home/synapse.webp +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuItem/HeaderMenuItem.vue +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuItem/tests/HeaderMenuItem.spec.ts +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/conts.ts +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/locals.ts +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/tests/useHandleSubMenus.spec.ts +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/useHandleSubMenus.ts +0 -0
- /package/src/components/Logo/{types.d.ts → types.ts} +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { LogoSize } from '@/components/Logo/LogoSize'
|
|
3
|
+
import { cnamLightTheme } from '@/designTokens/tokens/cnam/cnamLightTheme'
|
|
4
|
+
import { computed, getCurrentInstance } from 'vue'
|
|
5
|
+
import type { RouteLocationRaw } from 'vue-router'
|
|
6
|
+
import Logo from '../Logo/Logo.vue'
|
|
7
|
+
import { dividerDimensionsMapping } from './dividerDimensionsMapping'
|
|
8
|
+
import { locales } from './locales'
|
|
9
|
+
import { secondaryLogoMapping } from './secondaryLogoMapping'
|
|
10
|
+
import type { Theme } from './types'
|
|
11
|
+
|
|
12
|
+
const props = withDefaults(
|
|
13
|
+
defineProps<{
|
|
14
|
+
theme?: Theme
|
|
15
|
+
serviceTitle?: string
|
|
16
|
+
serviceSubTitle?: string
|
|
17
|
+
mobileVersion?: boolean
|
|
18
|
+
reduceLogo?: boolean
|
|
19
|
+
homeLink?: {
|
|
20
|
+
ariaLabel?: string
|
|
21
|
+
to?: RouteLocationRaw
|
|
22
|
+
href?: string
|
|
23
|
+
}
|
|
24
|
+
}>(), {
|
|
25
|
+
theme: 'default',
|
|
26
|
+
serviceTitle: undefined,
|
|
27
|
+
serviceSubTitle: undefined,
|
|
28
|
+
mobileVersion: false,
|
|
29
|
+
reduceLogo: false,
|
|
30
|
+
homeLink: () => ({
|
|
31
|
+
href: '/',
|
|
32
|
+
}),
|
|
33
|
+
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
const slots = defineSlots<{
|
|
37
|
+
'default'(): unknown
|
|
38
|
+
'brand-content'(): unknown
|
|
39
|
+
}>()
|
|
40
|
+
|
|
41
|
+
const service = computed(() => {
|
|
42
|
+
if (props.theme === 'compte-entreprise') {
|
|
43
|
+
const { title, subTitle } = locales.compteEntreprise
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
title,
|
|
47
|
+
subTitle,
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return {
|
|
52
|
+
title: props.serviceTitle || '',
|
|
53
|
+
subTitle: props.serviceSubTitle || '',
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
const mobileWithSecondaryLogo = computed(() => {
|
|
58
|
+
return props.mobileVersion && hasSecondaryLogo.value
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
const height = computed(() => {
|
|
62
|
+
if (mobileWithSecondaryLogo.value) {
|
|
63
|
+
return '32px'
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return props.mobileVersion ? '40px' : '64px'
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
const isRisquePro = computed(() => {
|
|
70
|
+
return !props.reduceLogo && props.theme === 'risque-pro'
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
const isCompteEntreprise = computed(() => {
|
|
74
|
+
return props.theme === 'compte-entreprise'
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
const isCompteAmeliMobile = computed(() => {
|
|
78
|
+
return props.theme === 'compte-ameli' && props.mobileVersion
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
const hideSignature = computed(() => {
|
|
82
|
+
return (
|
|
83
|
+
props.reduceLogo
|
|
84
|
+
|| isCompteEntreprise.value
|
|
85
|
+
|| isCompteAmeliMobile.value
|
|
86
|
+
)
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
const secondaryLogo = computed(() => {
|
|
90
|
+
if (props.theme in secondaryLogoMapping) {
|
|
91
|
+
return secondaryLogoMapping[props.theme as keyof typeof secondaryLogoMapping]
|
|
92
|
+
}
|
|
93
|
+
return null
|
|
94
|
+
})
|
|
95
|
+
|
|
96
|
+
const hasSecondaryLogo = computed(() => {
|
|
97
|
+
return Boolean(secondaryLogo.value)
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
const hasSecondaryLogoLink = computed(() => {
|
|
101
|
+
return (
|
|
102
|
+
props.theme === 'ameli-pro'
|
|
103
|
+
|| props.theme === 'ameli'
|
|
104
|
+
)
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
const logoContainerComponent = computed(() => {
|
|
108
|
+
if (props.homeLink?.to) {
|
|
109
|
+
const componentsRegistered = getCurrentInstance()?.appContext?.components
|
|
110
|
+
const hasRouterLink = componentsRegistered && 'RouterLink' in componentsRegistered
|
|
111
|
+
if (hasRouterLink) {
|
|
112
|
+
return 'router-link'
|
|
113
|
+
}
|
|
114
|
+
return 'div'
|
|
115
|
+
}
|
|
116
|
+
if (props.homeLink?.href) {
|
|
117
|
+
return 'a'
|
|
118
|
+
}
|
|
119
|
+
return 'div'
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
const secondaryLogoCtnComponent = computed(() => {
|
|
123
|
+
return hasSecondaryLogoLink.value
|
|
124
|
+
? logoContainerComponent.value
|
|
125
|
+
: 'div'
|
|
126
|
+
})
|
|
127
|
+
|
|
128
|
+
const secondaryLogoLabel = computed(() => {
|
|
129
|
+
return hasSecondaryLogoLink.value && secondaryLogo.value
|
|
130
|
+
? `${locales.homeLinkPrefix} ${secondaryLogo.value.alt}`
|
|
131
|
+
: null
|
|
132
|
+
})
|
|
133
|
+
|
|
134
|
+
const avatar = computed(() => {
|
|
135
|
+
return props.reduceLogo ? hasSecondaryLogo.value : false
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
const hasBrandSlot = computed(() => {
|
|
139
|
+
return Boolean(slots['brand-content'])
|
|
140
|
+
})
|
|
141
|
+
|
|
142
|
+
const showBrandContent = computed(() => {
|
|
143
|
+
return Boolean(
|
|
144
|
+
service.value.title || service.value.subTitle || hasBrandSlot.value || hasSecondaryLogo.value,
|
|
145
|
+
)
|
|
146
|
+
})
|
|
147
|
+
|
|
148
|
+
const showDivider = computed(() => {
|
|
149
|
+
if (props.reduceLogo) {
|
|
150
|
+
return false
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return showBrandContent.value
|
|
154
|
+
})
|
|
155
|
+
|
|
156
|
+
const showServiceSubTitle = computed(() => {
|
|
157
|
+
return Boolean(
|
|
158
|
+
service.value.title && service.value.subTitle && !props.mobileVersion,
|
|
159
|
+
)
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
const dividerColor = computed(() => {
|
|
163
|
+
switch (props.theme) {
|
|
164
|
+
case 'cnam':
|
|
165
|
+
case 'ameli-pro':
|
|
166
|
+
return cnamLightTheme.secondary
|
|
167
|
+
case 'compte-entreprise':
|
|
168
|
+
return '#cd545b'
|
|
169
|
+
default:
|
|
170
|
+
return cnamLightTheme.primary
|
|
171
|
+
}
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
const dividerDimensions = computed(() => {
|
|
175
|
+
if (props.mobileVersion) {
|
|
176
|
+
return hasSecondaryLogo.value
|
|
177
|
+
? dividerDimensionsMapping.xSmall
|
|
178
|
+
: dividerDimensionsMapping.small
|
|
179
|
+
}
|
|
180
|
+
return dividerDimensionsMapping.normal
|
|
181
|
+
})
|
|
182
|
+
|
|
183
|
+
const logoSize = computed(() => {
|
|
184
|
+
if (props.mobileVersion) {
|
|
185
|
+
return hasSecondaryLogo.value
|
|
186
|
+
? LogoSize.X_SMALL
|
|
187
|
+
: LogoSize.SMALL
|
|
188
|
+
}
|
|
189
|
+
return LogoSize.NORMAL
|
|
190
|
+
})
|
|
191
|
+
</script>
|
|
192
|
+
|
|
193
|
+
<template>
|
|
194
|
+
<div
|
|
195
|
+
:height="height"
|
|
196
|
+
class="vd-logo-brand-section d-flex"
|
|
197
|
+
>
|
|
198
|
+
<component
|
|
199
|
+
:is="logoContainerComponent"
|
|
200
|
+
:to="logoContainerComponent === 'router-link' ? homeLink?.to : undefined"
|
|
201
|
+
:href="logoContainerComponent === 'a' ? homeLink?.href : undefined"
|
|
202
|
+
class="vd-home-link"
|
|
203
|
+
>
|
|
204
|
+
<Logo
|
|
205
|
+
:hide-signature="hideSignature"
|
|
206
|
+
:hide-organism="isCompteAmeliMobile"
|
|
207
|
+
:risque-pro="isRisquePro"
|
|
208
|
+
:aria-label="homeLink?.ariaLabel"
|
|
209
|
+
:avatar="avatar"
|
|
210
|
+
:size="logoSize"
|
|
211
|
+
:class="{ 'mr-2': avatar }"
|
|
212
|
+
/>
|
|
213
|
+
</component>
|
|
214
|
+
|
|
215
|
+
<slot>
|
|
216
|
+
<svg
|
|
217
|
+
v-if="showDivider"
|
|
218
|
+
:width="dividerDimensions.width"
|
|
219
|
+
:height="dividerDimensions.height"
|
|
220
|
+
:fill="dividerColor"
|
|
221
|
+
role="img"
|
|
222
|
+
focusable="false"
|
|
223
|
+
aria-hidden="true"
|
|
224
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
225
|
+
viewBox="0 0 22 64"
|
|
226
|
+
class="vd-divider"
|
|
227
|
+
>
|
|
228
|
+
<path d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z" />
|
|
229
|
+
</svg>
|
|
230
|
+
|
|
231
|
+
<component
|
|
232
|
+
:is="secondaryLogoCtnComponent"
|
|
233
|
+
v-if="secondaryLogo"
|
|
234
|
+
:aria-label="secondaryLogoLabel"
|
|
235
|
+
:to="secondaryLogoCtnComponent === 'router-link' ? homeLink?.to : undefined"
|
|
236
|
+
:href="secondaryLogoCtnComponent === 'a' ? homeLink?.href : undefined"
|
|
237
|
+
class="vd-home-link"
|
|
238
|
+
>
|
|
239
|
+
<img
|
|
240
|
+
:src="secondaryLogo.src"
|
|
241
|
+
:alt="secondaryLogo.alt"
|
|
242
|
+
>
|
|
243
|
+
</component>
|
|
244
|
+
|
|
245
|
+
<div
|
|
246
|
+
v-else-if="showBrandContent"
|
|
247
|
+
class="vd-title-container d-flex justify-center flex-column text-primary"
|
|
248
|
+
>
|
|
249
|
+
<slot name="brand-content">
|
|
250
|
+
<h1
|
|
251
|
+
v-if="service.title"
|
|
252
|
+
:class="{
|
|
253
|
+
'vd-compte-entreprise-title': isCompteEntreprise,
|
|
254
|
+
}"
|
|
255
|
+
class="vd-title text-caption text-md-subtitle-1 font-weight-medium"
|
|
256
|
+
>
|
|
257
|
+
<template v-if="typeof service.title === 'string'">
|
|
258
|
+
{{ service.title }}
|
|
259
|
+
</template>
|
|
260
|
+
|
|
261
|
+
<template v-else>
|
|
262
|
+
{{ service.title.text }}
|
|
263
|
+
<span>{{ service.title.highlight }}</span>
|
|
264
|
+
</template>
|
|
265
|
+
</h1>
|
|
266
|
+
|
|
267
|
+
<h2
|
|
268
|
+
v-if="showServiceSubTitle"
|
|
269
|
+
class="vd-title text-caption"
|
|
270
|
+
>
|
|
271
|
+
{{ service.subTitle }}
|
|
272
|
+
</h2>
|
|
273
|
+
</slot>
|
|
274
|
+
</div>
|
|
275
|
+
</slot>
|
|
276
|
+
</div>
|
|
277
|
+
</template>
|
|
278
|
+
|
|
279
|
+
<style lang="scss" scoped>
|
|
280
|
+
.vd-logo-brand-section {
|
|
281
|
+
.vd-title-container {
|
|
282
|
+
overflow: hidden;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:deep(.vd-title) {
|
|
286
|
+
line-height: 1.45 !important;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.vd-compte-entreprise-title {
|
|
290
|
+
font-weight: 700 !important;
|
|
291
|
+
|
|
292
|
+
span {
|
|
293
|
+
color: #cd545b;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:deep(img) {
|
|
298
|
+
width: auto;
|
|
299
|
+
height: 100%;
|
|
300
|
+
flex: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
svg,
|
|
304
|
+
.vd-home-link {
|
|
305
|
+
flex: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.vd-home-link {
|
|
309
|
+
cursor: pointer;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="99" height="64" viewBox="0 0 99 64" fill="none"><path fill="#00a5df" d="M68.38 38.78c.54.32 1.45.63 2.31.63 2.76 0 5.38-1.87 5.38-5.72v-2.86c0-3.59-2.62-5.7-5.7-5.7-3.09 0-5.71 2.11-5.71 5.7v13.73h3.72v-5.78Zm0-2.99v-4.83c0-1.8.85-2.68 2-2.68 1.12 0 1.97.88 1.97 2.68v2.6c0 1.97-.88 2.7-2 2.7-.67 0-1.32-.2-1.97-.47ZM77.97 39.07h3.7v-8.68c0-1.23.67-2.11 1.84-2.11.63 0 1.28.13 1.85.29l.7-3.02a8.47 8.47 0 0 0-2.57-.42c-3.1 0-5.52 2.11-5.52 5.26v8.68ZM86.43 33.45c0 3.72 2.44 5.96 5.8 5.96 3.35 0 5.8-2.24 5.8-5.96V31.1c0-3.72-2.45-5.96-5.8-5.96-3.36 0-5.8 2.24-5.8 5.96v2.36Zm3.69-.13v-2.1c0-1.8.52-2.94 2.1-2.94 1.56 0 2.11 1.14 2.11 2.94v2.1c0 1.8-.55 2.94-2.1 2.94-1.57 0-2.11-1.14-2.11-2.94Z"/><path fill="#0c419a" d="M.47 35.64c0-2.82 2.38-4.42 7.64-4.97-.08-1.2-.82-1.9-2.27-1.9-1.12 0-2.24.48-3.5 1.23L.94 27.36a10.75 10.75 0 0 1 5.67-1.78c3.39 0 5.25 1.97 5.25 6.09v7.72H8.15v-1.3s-1.53 1.64-3.7 1.64C2 39.69.48 37.9.48 35.64Zm7.64-.22v-2.34c-2.8.37-3.88 1.26-3.88 2.27 0 .85.6 1.3 1.53 1.3.86-.04 1.64-.52 2.35-1.23ZM57.84 21.75c0-1.22.97-2.08 2.28-2.08 1.3 0 2.27.86 2.27 2.08 0 1.23-.97 2.08-2.27 2.08-1.35 0-2.28-.89-2.28-2.08Zm.3 4.05h3.91v13.48h-3.9V25.8ZM36.24 32.7c0-4.37 2.76-7.05 6.07-7.05 3.77 0 5.85 2.79 5.85 6.46 0 .7-.07 1.45-.14 1.79h-7.94c.33 1.97 1.67 2.86 3.43 2.86 1 0 1.86-.41 2.83-.97l1.34 2.49a8.4 8.4 0 0 1-4.7 1.52c-3.87-.04-6.74-2.64-6.74-7.1Zm8.6-1.48c0-1.48-.85-2.56-2.41-2.56-1.23 0-2.1.85-2.35 2.56h4.77ZM18.18 27.66c1.08-1.08 2.28-2 4.03-2 1.86 0 3.02.77 3.69 2.18 1.15-1.19 2.38-2.19 4.17-2.19 2.9 0 4.21 2.08 4.21 5.39v8.28h-4.14v-7.73c0-1.85-.52-2.41-1.56-2.41-.63 0-1.34.4-2.16 1.23v8.95h-4.18v-7.77c0-1.85-.48-2.41-1.56-2.41-.63 0-1.34.4-2.16 1.23v8.95h-4.14V26.02h3.8v1.64ZM50.52 35.2V20.34h3.92v15c0 .86.37 1.12.7 1.12.15 0 .26 0 .49-.04l.48 2.94c-.44.18-1.08.33-1.97.33-2.72.04-3.62-1.75-3.62-4.5Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="64" viewBox="0 0 80 64" fill="#0c419a"><path d="M.47 37.75c0-2.75 2.31-4.3 7.41-4.85-.07-1.15-.8-1.84-2.2-1.84-1.09 0-2.17.47-3.4 1.2L.94 29.68a10.4 10.4 0 0 1 5.5-1.74c3.29 0 5.1 1.92 5.1 5.93v7.52H7.91v-1.26s-1.48 1.59-3.58 1.59C1.95 41.69.47 39.95.47 37.75Zm7.41-.22v-2.28c-2.71.37-3.76 1.23-3.76 2.21 0 .83.58 1.27 1.48 1.27.84-.04 1.6-.51 2.28-1.2ZM56.98 24.23c0-1.2.94-2.03 2.21-2.03s2.2.83 2.2 2.03c0 1.19-.93 2.02-2.2 2.02-1.3 0-2.2-.87-2.2-2.02Zm.3 3.94h3.79v13.12h-3.8V28.17ZM35.76 34.9c0-4.27 2.68-6.88 5.9-6.88 3.65 0 5.67 2.71 5.67 6.3a9.7 9.7 0 0 1-.14 1.73h-7.7c.32 1.92 1.62 2.78 3.32 2.78.98 0 1.8-.4 2.75-.94l1.3 2.43a8.14 8.14 0 0 1-4.56 1.48c-3.76-.04-6.54-2.57-6.54-6.9Zm8.35-1.45c0-1.45-.83-2.5-2.35-2.5-1.2 0-2.02.83-2.28 2.5h4.63ZM17.93 29.98c1.05-1.05 2.2-1.96 3.9-1.96 1.82 0 2.94.76 3.59 2.14 1.12-1.16 2.31-2.14 4.05-2.14 2.82 0 4.08 2.03 4.08 5.25v8.06h-4V33.8c0-1.81-.52-2.35-1.53-2.35-.61 0-1.3.4-2.1 1.2v8.7h-4.05v-7.55c0-1.81-.47-2.35-1.51-2.35-.62 0-1.3.4-2.1 1.2v8.7h-4.01V28.39h3.68v1.6ZM64.98 40.42c0-.68.5-1.22 1.19-1.22s1.2.54 1.2 1.22c0 .7-.51 1.23-1.2 1.23s-1.2-.54-1.2-1.23ZM72.9 27.99c-1.45 0-2.25.97-2.25 2.7v1.92l-1.2.08v.8h1.2v8.1h.94v-8.14h2.06v-.87H71.6v-1.85c0-1.26.44-1.91 1.3-1.91.33 0 .65.07 1.02.22l.07.03.29-.76-.07-.03a3.8 3.8 0 0 0-1.3-.3ZM79.55 32.58c-.33-.18-.65-.18-.9-.18-.95 0-1.78.61-2.47 1.7l-.07-1.49h-.83v8.94h.94v-6.08c.58-1.37 1.41-2.2 2.31-2.2.33 0 .51.03.73.1l.07.04.25-.83h-.03ZM49.75 37.32V22.85h3.8v14.61c0 .83.36 1.08.69 1.08.14 0 .25 0 .47-.03l.47 2.86c-.44.18-1.05.32-1.92.32-2.64.04-3.5-1.7-3.5-4.37Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="110" height="64" viewBox="0 0 110 64" fill="#007Fad"><path d="m7.3 36.1-1.4.2a4 4 0 0 1-2-.5 3 3 0 0 1-1.3-1.4c-.3-.7-.4-1.4-.4-2.2 0-.8.1-1.5.4-2.1a3 3 0 0 1 1.3-1.4c.6-.4 1.2-.5 2-.5a6 6 0 0 1 2.8.7l.2-1.8-1.4-.5-1.6-.2a5.4 5.4 0 0 0-5 2.8 6 6 0 0 0-.7 3c0 1.2.2 2.2.7 3.1.5.9 1.2 1.6 2 2a6 6 0 0 0 3 .7 6 6 0 0 0 3-.7l-.2-1.7a4 4 0 0 1-1.4.5zm9.6.4-.5-.1-.2-.4v-2.9c0-1.2-.2-2.1-.7-2.6-.5-.5-1.2-.8-2.1-.8-1 0-1.9.2-2.8.7l.2 1.5c.2-.2.6-.3.9-.4l1-.2c.5 0 .9.1 1.2.3.2.2.4.6.4 1.1l-2.1.3a7 7 0 0 0-1.7 1 2 2 0 0 0-.8 1.6c0 .7.2 1.3.7 1.7.4.4 1 .6 1.7.6.5 0 .9-.1 1.4-.3l1.1-.7.7.8c.3.2.7.2 1.2.2h.5l.2-1.5h-.3zm-2.6-.7-.8.6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-.3-1.2c-.9.9-2.2 1.5-3.7 1.5-2.5.1-3.8-1.7-3.8-3.8zm7.1-.1v-1.9c-2.5.3-3.4.9-3.4 1.8s.4 1 1.3 1c.7 0 1.5-.3 2.1-.9zM99.3 28.2h3.2l.3 1.5c1-.9 2.1-1.8 3.8-1.8s2.8.7 3.5 1.9c1.2-1 2.2-1.9 4-1.9 2.7 0 4 1.8 4 4.9v7.5h-3.8v-7.1c0-1.6-.4-2.1-1.5-2.1s-1.3.3-2.1 1v8.1h-4v-7.1c0-1.6-.4-2.1-1.5-2.1s-1.3.3-2.1 1v8.1h-3.8V28.2c.1 0 0 0 0 0zM120.5 34.3c0-4 2.8-6.2 5.9-6.2 3.1 0 5.5 2.7 5.5 5.8v1.6h-7.5c.3 1.6 1.6 2.4 3.2 2.4s1.8-.3 2.7-.7l1.3 2.4c-1.3.9-3.1 1.3-4.6 1.3-3.9-.3-6.5-2.5-6.5-6.6zm8-1.5c0-1.2-.4-2.1-1.9-2.1s-2.1.7-2.4 2.1h4.3zM134.5 36.4V23.2h3.8v13.3c0 .7.4 1 .7 1h.4l.4 2.8c-.4.1-1.2.3-1.9.3-2.5 0-3.4-1.6-3.4-4.2zM141.6 24.6c0-1.2 1-1.9 2.2-1.9 1.3 0 2.2.7 2.2 1.9s-1 1.9-2.2 1.9c-1.3.1-2.2-.6-2.2-1.9zm.3 3.6h3.8v12.1h-3.8V28.2z" fill="#0c419a"/></svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const locales = {
|
|
2
|
+
homeLinkPrefix: 'Accueil,',
|
|
3
|
+
logoCnam: 'Caisse nationale',
|
|
4
|
+
logoAmeli: 'ameli.fr',
|
|
5
|
+
logoAmeliPro: 'AmeliPro',
|
|
6
|
+
logoCompteAmeli: 'Compte ameli',
|
|
7
|
+
compteEntreprise: {
|
|
8
|
+
title: {
|
|
9
|
+
text: 'Compte',
|
|
10
|
+
highlight: 'entreprise',
|
|
11
|
+
},
|
|
12
|
+
subTitle: 'Vos démarches maladie et risques professionnels',
|
|
13
|
+
},
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { locales } from './locales'
|
|
2
|
+
import logoCnam from './assets/cnam.svg'
|
|
3
|
+
import logoAmeli from './assets/ameli.svg'
|
|
4
|
+
import logoAmeliPro from './assets/ameli-pro.svg'
|
|
5
|
+
import logoCompteAmeli from './assets/compte-ameli.svg'
|
|
6
|
+
|
|
7
|
+
export const secondaryLogoMapping = {
|
|
8
|
+
'cnam': {
|
|
9
|
+
src: logoCnam,
|
|
10
|
+
alt: locales.logoCnam,
|
|
11
|
+
},
|
|
12
|
+
'ameli': {
|
|
13
|
+
src: logoAmeli,
|
|
14
|
+
alt: locales.logoAmeli,
|
|
15
|
+
},
|
|
16
|
+
'ameli-pro': {
|
|
17
|
+
src: logoAmeliPro,
|
|
18
|
+
alt: locales.logoAmeliPro,
|
|
19
|
+
},
|
|
20
|
+
'compte-ameli': {
|
|
21
|
+
src: logoCompteAmeli,
|
|
22
|
+
alt: locales.logoCompteAmeli,
|
|
23
|
+
},
|
|
24
|
+
} as const
|