@ds-autonomie/web-components 1.21.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/chunks/{chunk.VTJZNWTJ.js → chunk.2YCECXQ4.js} +2 -2
- package/dist/chunks/{chunk.VVU4ZI4B.js → chunk.36WWRNIP.js} +2 -2
- package/dist/chunks/{chunk.2VU7NSY7.js → chunk.3JBCFU7B.js} +10 -13
- package/dist/chunks/{chunk.OQNKOMOW.js → chunk.3KCZS7CR.js} +2 -2
- package/dist/chunks/{chunk.5Y35HJBR.js → chunk.46QRHHLQ.js} +4 -4
- package/dist/chunks/{chunk.RC4FOPY5.js → chunk.4CA7E26P.js} +4 -4
- package/dist/chunks/{chunk.M53SSNJZ.js → chunk.4JK743ZT.js} +1 -1
- package/dist/chunks/{chunk.UIQY6EH4.js → chunk.4MDEHTR2.js} +2 -2
- package/dist/chunks/{chunk.VHC4JFUD.js → chunk.4QQ5B4IL.js} +18 -5
- package/dist/chunks/{chunk.L4T7Q6GD.js → chunk.5DAITYVK.js} +2 -2
- package/dist/chunks/{chunk.WVA3OV5Q.js → chunk.5DJID6VS.js} +1 -1
- package/dist/chunks/{chunk.IY4PPAPE.js → chunk.5MBTOZ4X.js} +84 -2
- package/dist/chunks/{chunk.4VKIGF5Z.js → chunk.5NEMV7VX.js} +14 -4
- package/dist/chunks/{chunk.NKVYNBAI.js → chunk.5S3NTA2V.js} +4 -0
- package/dist/chunks/{chunk.OZ2GKA3Q.js → chunk.5X4QTZAP.js} +14 -0
- package/dist/chunks/{chunk.VDSFN77O.js → chunk.6YV75XW5.js} +2 -2
- package/dist/chunks/{chunk.ZXP2XR2V.js → chunk.75JDBBOQ.js} +1 -1
- package/dist/chunks/chunk.75SMDXL6.js +591 -0
- package/dist/chunks/{chunk.Z3PCBFRD.js → chunk.76RCUC6S.js} +13 -9
- package/dist/chunks/{chunk.2ZWEASQH.js → chunk.7YZDEXJY.js} +7 -7
- package/dist/chunks/{chunk.V3HKSTWC.js → chunk.A5FZ3ZP6.js} +27 -16
- package/dist/chunks/{chunk.F4JFIJOX.js → chunk.AHCLCHKP.js} +4 -4
- package/dist/chunks/{chunk.ZI22JIAC.js → chunk.AO6LCWR7.js} +1 -1
- package/dist/chunks/{chunk.XQWKXNLU.js → chunk.BETV66IR.js} +2 -2
- package/dist/chunks/{chunk.TSW2ZSHN.js → chunk.BFKHQXQC.js} +1 -1
- package/dist/chunks/{chunk.ONR7YQWV.js → chunk.BNG3ZOCY.js} +6 -11
- package/dist/chunks/{chunk.7YWQEKBT.js → chunk.BUDRSMFF.js} +2 -2
- package/dist/chunks/{chunk.YYSMJZ6F.js → chunk.BYTDEMP3.js} +17 -12
- package/dist/chunks/{chunk.3F32N525.js → chunk.D6LJAMJM.js} +2 -2
- package/dist/chunks/{chunk.YIY5RM53.js → chunk.DA6UU6UL.js} +17 -0
- package/dist/chunks/{chunk.V4RBDTGM.js → chunk.DKATFHVQ.js} +1 -1
- package/dist/chunks/{chunk.IZBHR7GP.js → chunk.E3B2D5KE.js} +1 -0
- package/dist/chunks/{chunk.UPDEHRTD.js → chunk.EEKMHAZ5.js} +4 -2
- package/dist/chunks/{chunk.YB76RLIX.js → chunk.EJ4VOCOO.js} +2 -2
- package/dist/chunks/{chunk.32Q3N4FY.js → chunk.F4QJBOMR.js} +4 -4
- package/dist/chunks/{chunk.3B2D7GEN.js → chunk.FCXJCZEG.js} +3 -3
- package/dist/chunks/{chunk.Y7CSNRKE.js → chunk.FN3YT4DB.js} +1 -1
- package/dist/chunks/{chunk.PXS65FQN.js → chunk.FPXW7ZMC.js} +2 -2
- package/dist/chunks/{chunk.K4FVALS6.js → chunk.FUDAY7X2.js} +1 -1
- package/dist/chunks/{chunk.LBFGYYBC.js → chunk.GAC47LAL.js} +1 -1
- package/dist/chunks/{chunk.URXUE6MS.js → chunk.GBFSCUF6.js} +3 -3
- package/dist/chunks/{chunk.MJ3ZLDHO.js → chunk.GL4GU5DO.js} +1 -1
- package/dist/chunks/chunk.GTPD4VLY.js +49 -0
- package/dist/chunks/{chunk.66WACVGP.js → chunk.GUSO7ZX7.js} +1 -1
- package/dist/chunks/{chunk.6PNOLDUN.js → chunk.HOATJHQQ.js} +3 -0
- package/dist/chunks/{chunk.CYFF4SSJ.js → chunk.HQKKL7C7.js} +1 -1
- package/dist/chunks/{chunk.IS42GAIM.js → chunk.HR3WCXZI.js} +1 -1
- package/dist/chunks/{chunk.HRRPFGP6.js → chunk.HRKZRSEX.js} +1 -1
- package/dist/chunks/{chunk.4KUK43KY.js → chunk.IE34DJRP.js} +1 -1
- package/dist/chunks/{chunk.FXAGFSAU.js → chunk.IX2S32IE.js} +1 -1
- package/dist/chunks/{chunk.CZIWWDCG.js → chunk.J2ZHMO6P.js} +9 -0
- package/dist/chunks/{chunk.GBE3NP7T.js → chunk.K7M6SB54.js} +1 -1
- package/dist/chunks/{chunk.XJUWKPOM.js → chunk.KCJKFLMI.js} +1 -1
- package/dist/chunks/{chunk.K747M6BH.js → chunk.KSSPTHJA.js} +1 -1
- package/dist/chunks/{chunk.KXJWP6RB.js → chunk.L4BDK6WG.js} +1 -1
- package/dist/chunks/{chunk.JGKD2B3X.js → chunk.LJ7KTL3R.js} +4 -0
- package/dist/chunks/{chunk.UAD6YEEJ.js → chunk.LKXJNHSQ.js} +1 -1
- package/dist/chunks/{chunk.SOXCM55K.js → chunk.LLRC7DN3.js} +1 -1
- package/dist/chunks/{chunk.3KHOL2ZR.js → chunk.LWJY5VKB.js} +1 -1
- package/dist/chunks/{chunk.QWFM2SG7.js → chunk.M4JDLOFR.js} +2 -4
- package/dist/chunks/{chunk.ZJHZ3DYM.js → chunk.MAFEZZTX.js} +1 -1
- package/dist/chunks/{chunk.BBA6NDLS.js → chunk.MKM7ZZA3.js} +20 -4
- package/dist/chunks/{chunk.MS4XE2ZR.js → chunk.NZSU3FNO.js} +2 -2
- package/dist/chunks/chunk.O4MZVDWB.js +11 -0
- package/dist/chunks/{chunk.LXBTKWKD.js → chunk.OEYZ3CTB.js} +3 -3
- package/dist/chunks/{chunk.MDHRSOWI.js → chunk.OOD25N36.js} +2 -2
- package/dist/chunks/{chunk.BUINE4D4.js → chunk.PGUC3I5F.js} +3 -3
- package/dist/chunks/{chunk.WZNMOHN3.js → chunk.POBERW54.js} +1 -1
- package/dist/chunks/{chunk.T7SB5KS2.js → chunk.QBK6A3R2.js} +4 -8
- package/dist/chunks/{chunk.WP7IXCVC.js → chunk.RC7QZSCE.js} +6 -3
- package/dist/chunks/{chunk.R3PRXJRX.js → chunk.RKHCGLX6.js} +1 -1
- package/dist/chunks/{chunk.ADXDCZF5.js → chunk.SDJYJZWB.js} +127 -249
- package/dist/chunks/{chunk.W635ZS25.js → chunk.SG6IR57O.js} +1 -1
- package/dist/chunks/{chunk.RYNDLXYY.js → chunk.SMB4Q2LK.js} +1 -1
- package/dist/chunks/{chunk.Y3FYMACD.js → chunk.SYXHGIMC.js} +12 -14
- package/dist/chunks/{chunk.XFOOYYIV.js → chunk.TOWCNBTG.js} +13 -1
- package/dist/chunks/chunk.W3DSB3KZ.js +73 -0
- package/dist/chunks/{chunk.C3XAP2OQ.js → chunk.W45NKAQM.js} +10 -9
- package/dist/chunks/{chunk.5YV6H7CA.js → chunk.WUZDHRQQ.js} +2 -2
- package/dist/chunks/{chunk.MPFP7MPJ.js → chunk.XJU66OLS.js} +2 -2
- package/dist/chunks/{chunk.DE4CISVH.js → chunk.XOAAGTHU.js} +1 -1
- package/dist/chunks/{chunk.KRGFRDDA.js → chunk.YAXCH4J7.js} +1 -1
- package/dist/chunks/{chunk.O4TH77FX.js → chunk.YGFOBU5R.js} +13 -2
- package/dist/chunks/{chunk.SCP4RZIJ.js → chunk.YKMMYGAJ.js} +1 -1
- package/dist/chunks/{chunk.MLZNIULJ.js → chunk.YQX6XBXO.js} +100 -100
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/alert/alert.js +3 -3
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.js +4 -4
- package/dist/components/calendar/calendar.js +3 -3
- package/dist/components/callout/callout.js +1 -1
- package/dist/components/card/card.js +2 -2
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/checkbox-button/checkbox-button.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/combobox/combobox.js +8 -8
- package/dist/components/dialog/dialog.js +4 -4
- package/dist/components/drawer/drawer.js +4 -4
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +3 -3
- package/dist/components/error-text/error-text.utils.js +1 -1
- package/dist/components/file-upload/file-upload.js +3 -3
- package/dist/components/file-upload-item/file-upload-item.js +2 -2
- package/dist/components/filter/filter-base/filter-base.d.ts +1 -0
- package/dist/components/filter/filter-base/filter-base.js +3 -2
- package/dist/components/filter/filter-base/filter-base.styles.js +1 -1
- package/dist/components/filter/filter-button/filter-button.js +4 -4
- package/dist/components/filter/filter-counter/filter-counter.js +6 -5
- package/dist/components/filter/filter-counter/filter-counter.styles.js +2 -2
- package/dist/components/filter/filter-date/filter-date.d.ts +8 -9
- package/dist/components/filter/filter-date/filter-date.js +10 -19
- package/dist/components/filter/filter-date/filter-date.styles.js +2 -2
- package/dist/components/filter/filter-range/filter-range.js +15 -15
- package/dist/components/filter/filter-range/filter-range.styles.js +2 -2
- package/dist/components/filter/filter-select/filter-select.js +15 -14
- package/dist/components/filter/filter-select/filter-select.styles.js +2 -2
- package/dist/components/footer/footer.js +3 -3
- package/dist/components/footer-content-block/footer-content-block.d.ts +1 -1
- package/dist/components/footer-content-block/footer-content-block.js +2 -1
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.js +2 -2
- package/dist/components/footer-sitemap/footer-sitemap.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/header/header.js +3 -3
- package/dist/components/header-search/header-search.js +2 -2
- package/dist/components/icon-button/icon-button.js +1 -1
- package/dist/components/input/input.d.ts +2 -1
- package/dist/components/input/input.js +9 -9
- package/dist/components/input-date/input-date.d.ts +9 -34
- package/dist/components/input-date/input-date.js +8 -8
- package/dist/components/input-date/input-date.styles.js +1 -1
- package/dist/components/input-mask/input-mask.js +4 -4
- package/dist/components/input-phone/input-phone.js +12 -12
- package/dist/components/menu-accordion/menu-accordion.js +2 -2
- package/dist/components/menu-item/menu-item.d.ts +2 -0
- package/dist/components/menu-item/menu-item.js +3 -3
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-navigation/menu-navigation.d.ts +0 -6
- package/dist/components/menu-navigation/menu-navigation.js +2 -2
- package/dist/components/menu-navigation/menu-navigation.styles.js +1 -1
- package/dist/components/navbar/navbar-link/navbar-link.js +2 -2
- package/dist/components/navbar/navbar-menu/navbar-menu.js +5 -5
- package/dist/components/option/option.js +2 -2
- package/dist/components/pagination/pagination.js +11 -11
- package/dist/components/pagination-button/pagination-button.js +2 -2
- package/dist/components/profile-button/profile-button.js +4 -4
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/quote/quote.js +1 -1
- package/dist/components/radio-button/radio-button.js +4 -4
- package/dist/components/radio-group/radio-group.js +3 -3
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/select/select.js +6 -6
- package/dist/components/skip-links/skip-links.d.ts +1 -0
- package/dist/components/skip-links/skip-links.js +2 -1
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/split-panel/split-panel.js +2 -2
- package/dist/components/step/step.js +4 -4
- package/dist/components/step/step.styles.js +1 -1
- package/dist/components/tab/tab.d.ts +3 -0
- package/dist/components/tab/tab.js +4 -3
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +2 -2
- package/dist/components/tab-panel/tab-panel.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.js +1 -1
- package/dist/components/table/table-action/table-action.js +2 -2
- package/dist/components/table/table-caption/table-caption.js +3 -3
- package/dist/components/table/table-header-row/table-header-row.js +3 -3
- package/dist/components/table/table-row/table-row.js +2 -2
- package/dist/components/table-container/table-container.js +2 -2
- package/dist/components/tag/tag.js +3 -3
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +8 -8
- package/dist/components/tree-item/tree-item.js +7 -7
- package/dist/custom-elements.json +206 -314
- package/dist/design-system.js +92 -91
- package/dist/internal/components/date-field/date-field.d.ts +106 -0
- package/dist/internal/components/date-field/date-field.js +513 -0
- package/dist/internal/components/date-field/date-field.styles.d.ts +2 -0
- package/dist/internal/components/date-field/date-field.styles.js +68 -0
- package/dist/internal/components/date-field/date-field.utils.d.ts +1 -0
- package/dist/internal/components/date-field/date-field.utils.js +24 -0
- package/dist/internal/slot.js +3 -0
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/utilities/date.d.ts +4 -0
- package/dist/utilities/date.js +9 -1
- package/dist/utilities/helpers.d.ts +0 -2
- package/dist/utilities/helpers.js +1 -5
- package/dist/utilities/localize.d.ts +13 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +11 -26
- package/dist/web-types.json +122 -165
- package/package.json +1 -1
- package/dist/chunks/chunk.DY6WZQNG.js +0 -26
- package/dist/chunks/chunk.FFQRZGV3.js +0 -82
- package/dist/chunks/chunk.WKBOF2UN.js +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 1.22.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- acaea01: `tab` : suppression du décalage des titres d'onglet lors du changement d'onglet actif
|
|
8
|
+
- 4ed942f: `combobox` : prise en compte de la valeur si elle est ajoutée avant les options associées
|
|
9
|
+
- 89ca0d1: `checkbox`: Déplacement de l'astérisque des checkbox requises vers la gauche
|
|
10
|
+
- 2481f61: `checkbox`: en mode "readonly": ajout du focus, retrait de la classe CSS "disabled", retrait de la possibilité de cocher/décocher au click
|
|
11
|
+
`checkbox-button`: en mode "readonly": ajout du focus
|
|
12
|
+
- 189ce6c: `menu-navigation` : résolution du problème d'event listener sur les éléments du menu
|
|
13
|
+
- a8e8a08: `filter-range` : mise à jour de la valeur affichée quand les valeurs `start` et `end` sont modifiées dynamiquement
|
|
14
|
+
|
|
15
|
+
## 1.22.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 9fd968f: `input` : amélioration UX du type "date"
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- a81f235: `step` : ajout de l'état de l'étape et de son index au nom accessible du lien/bouton
|
|
24
|
+
- dc79532: `tab-panel`: ajout du focus (tabindex) sur le panneau par défaut.
|
|
25
|
+
- 9d64df7: `menu-item`, `footer-content-block` : imrpove a11y
|
|
26
|
+
- cdbb61e: `menu-navigation` : prise en charge des éléments dynamiques
|
|
27
|
+
- 5e2b778: `input` : prise en charge de la suppression de l'attribut "error-message"
|
|
28
|
+
- 425602e: `skip-links`: ajout d'un aria-label pour les liens d'accès rapide
|
|
29
|
+
|
|
3
30
|
## 1.21.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.73T7TU6S.js";
|
|
4
4
|
import {
|
|
5
5
|
DSATreeItem
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.HR3WCXZI.js";
|
|
7
7
|
import {
|
|
8
8
|
clamp
|
|
9
9
|
} from "./chunk.HF7GESMZ.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk.EMIT7S33.js";
|
|
11
11
|
import {
|
|
12
12
|
HasSlotController
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.DA6UU6UL.js";
|
|
14
14
|
import {
|
|
15
15
|
waitForEvent
|
|
16
16
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk.V7RJROLH.js";
|
|
25
25
|
import {
|
|
26
26
|
LocalizeController
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
28
28
|
import {
|
|
29
29
|
watch
|
|
30
30
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -24,7 +24,7 @@ var menu_navigation_styles_default = css`
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/* Menu Navigation Item */
|
|
27
|
-
a {
|
|
27
|
+
::slotted(a) {
|
|
28
28
|
position: relative;
|
|
29
29
|
display: flex;
|
|
30
30
|
align-items: stretch;
|
|
@@ -35,20 +35,20 @@ var menu_navigation_styles_default = css`
|
|
|
35
35
|
font: var(--dsa-wc-menu-item-font);
|
|
36
36
|
padding: var(--dsa-wc-menu-navigation-item-padding);
|
|
37
37
|
}
|
|
38
|
-
:host(.level-2) a {
|
|
38
|
+
:host(.level-2) ::slotted(a) {
|
|
39
39
|
padding-inline-start: var(--dsa-spacing-48);
|
|
40
40
|
}
|
|
41
|
-
a:hover,
|
|
42
|
-
a[aria-current='page']:hover {
|
|
41
|
+
::slotted(a:hover),
|
|
42
|
+
::slotted(a[aria-current='page']:hover) {
|
|
43
43
|
background-color: var(--dsa-wc-menu-item-hover-background-color);
|
|
44
44
|
color: var(--dsa-wc-menu-item-hover-color);
|
|
45
45
|
}
|
|
46
|
-
a:focus-visible {
|
|
46
|
+
::slotted(a:focus-visible) {
|
|
47
47
|
outline: var(--dsa-wc-focus-ring);
|
|
48
48
|
outline-offset: var(--dsa-wc-menu-item-focus-ring-offset);
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
51
|
-
a[aria-current='page'] {
|
|
51
|
+
::slotted(a[aria-current='page']) {
|
|
52
52
|
color: var(--dsa-wc-menu-navigation-item-current-color);
|
|
53
53
|
background-color: var(
|
|
54
54
|
--dsa-wc-menu-navigation-item-current-background-color
|
|
@@ -56,22 +56,19 @@ var menu_navigation_styles_default = css`
|
|
|
56
56
|
font: var(--dsa-wc-menu-item-font-current);
|
|
57
57
|
}
|
|
58
58
|
@media (forced-colors: active) {
|
|
59
|
-
a:hover,
|
|
60
|
-
a:focus-visible {
|
|
59
|
+
::slotted(a:hover),
|
|
60
|
+
::slotted(a:focus-visible) {
|
|
61
61
|
outline: var(--dsa-wc-focus-ring);
|
|
62
62
|
outline-offset: var(--dsa-wc-menu-item-focus-ring-offset);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/* remove browser default list styles */
|
|
67
|
-
li {
|
|
67
|
+
::slotted(li) {
|
|
68
68
|
list-style: none;
|
|
69
69
|
}
|
|
70
|
-
.slotted_items {
|
|
71
|
-
display: none;
|
|
72
|
-
}
|
|
73
70
|
|
|
74
|
-
dsa-divider {
|
|
71
|
+
::slotted(dsa-divider) {
|
|
75
72
|
--spacing-start: var(--dsa-wc-menu-divider-spacing);
|
|
76
73
|
--spacing-end: var(--dsa-wc-menu-divider-spacing);
|
|
77
74
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getISOFormattedDate
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.W3DSB3KZ.js";
|
|
4
4
|
import {
|
|
5
5
|
calendar_styles_default
|
|
6
6
|
} from "./chunk.L5DEEGJU.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk.CMJ2SRTL.js";
|
|
10
10
|
import {
|
|
11
11
|
renderFormElementErrors
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.E3B2D5KE.js";
|
|
13
13
|
import {
|
|
14
14
|
FormControlController
|
|
15
15
|
} from "./chunk.KIFBWPW5.js";
|
|
16
16
|
import {
|
|
17
17
|
HasSlotController
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.DA6UU6UL.js";
|
|
19
19
|
import {
|
|
20
20
|
waitForEvent
|
|
21
21
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk.V7RJROLH.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
33
33
|
import {
|
|
34
34
|
watch
|
|
35
35
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -790,7 +790,7 @@ __decorateClass([
|
|
|
790
790
|
property({
|
|
791
791
|
attribute: "error-message",
|
|
792
792
|
converter: {
|
|
793
|
-
fromAttribute: (value) => value.split("|"),
|
|
793
|
+
fromAttribute: (value) => value ? value.split("|") : "",
|
|
794
794
|
toAttribute: (value) => {
|
|
795
795
|
if (typeof value === "string") {
|
|
796
796
|
return value;
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
} from "./chunk.CMJ2SRTL.js";
|
|
12
12
|
import {
|
|
13
13
|
renderFormElementErrors
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.E3B2D5KE.js";
|
|
15
15
|
import {
|
|
16
16
|
FormControlController
|
|
17
17
|
} from "./chunk.KIFBWPW5.js";
|
|
18
18
|
import {
|
|
19
19
|
HasSlotController
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.DA6UU6UL.js";
|
|
21
21
|
import {
|
|
22
22
|
LocalizeController
|
|
23
|
-
} from "./chunk.
|
|
23
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
24
24
|
import {
|
|
25
25
|
watch
|
|
26
26
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -415,7 +415,7 @@ __decorateClass([
|
|
|
415
415
|
property({
|
|
416
416
|
attribute: "error-message",
|
|
417
417
|
converter: {
|
|
418
|
-
fromAttribute: (value) => value.split("|"),
|
|
418
|
+
fromAttribute: (value) => value ? value.split("|") : "",
|
|
419
419
|
toAttribute: (value) => {
|
|
420
420
|
if (typeof value === "string") {
|
|
421
421
|
return value;
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk.AEGNM2GN.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.DA6UU6UL.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
13
13
|
import {
|
|
14
14
|
ShoelaceElement
|
|
15
15
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
footer_content_block_styles_default
|
|
3
3
|
} from "./chunk.SUFR3KIW.js";
|
|
4
|
+
import {
|
|
5
|
+
HasSlotController
|
|
6
|
+
} from "./chunk.DA6UU6UL.js";
|
|
4
7
|
import {
|
|
5
8
|
ShoelaceElement
|
|
6
9
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -11,15 +14,25 @@ import {
|
|
|
11
14
|
// src/components/footer-content-block/footer-content-block.ts
|
|
12
15
|
import { html } from "lit";
|
|
13
16
|
import { customElement } from "lit/decorators.js";
|
|
17
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
14
18
|
var DSAFooterContentBlock = class extends ShoelaceElement {
|
|
15
|
-
|
|
16
|
-
super
|
|
17
|
-
this.
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.hasSlotController = new HasSlotController(
|
|
22
|
+
this,
|
|
23
|
+
"title",
|
|
24
|
+
"content"
|
|
25
|
+
);
|
|
18
26
|
}
|
|
19
27
|
render() {
|
|
28
|
+
const hasTitle = this.hasSlotController.test("title");
|
|
20
29
|
return html`
|
|
21
|
-
<div
|
|
22
|
-
|
|
30
|
+
<div
|
|
31
|
+
part="base"
|
|
32
|
+
role=${ifDefined(hasTitle ? "region" : void 0)}
|
|
33
|
+
aria-labelledby=${ifDefined(hasTitle ? "block-title" : void 0)}
|
|
34
|
+
>
|
|
35
|
+
<slot id="block-title" part="title" name="title"></slot>
|
|
23
36
|
<slot part="content" name="content"></slot>
|
|
24
37
|
</div>
|
|
25
38
|
`;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.MILDW5D6.js";
|
|
4
4
|
import {
|
|
5
5
|
HasSlotController
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.DA6UU6UL.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
10
10
|
import {
|
|
11
11
|
ShoelaceElement
|
|
12
12
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -36,6 +36,7 @@ var translation = {
|
|
|
36
36
|
stepCompleted: "\xC9tape valid\xE9e",
|
|
37
37
|
stepInProgress: "\xC9tape en cours",
|
|
38
38
|
stepError: "\xC9tape en erreur",
|
|
39
|
+
skipLinksAriaLabel: `Liens d'acc\xE8s rapide`,
|
|
39
40
|
errorMessagePanelCodePrefix: "Code d'erreur: ",
|
|
40
41
|
fileSelect: (multiple) => {
|
|
41
42
|
if (multiple)
|
|
@@ -82,6 +83,44 @@ var translation = {
|
|
|
82
83
|
min: "Min",
|
|
83
84
|
max: "Max",
|
|
84
85
|
clearButton: "Effacer valeur",
|
|
86
|
+
day: "Jour",
|
|
87
|
+
month: "Mois",
|
|
88
|
+
year: "Ann\xE9e",
|
|
89
|
+
dayPlaceholder: "JJ",
|
|
90
|
+
monthPlaceholder: "MM",
|
|
91
|
+
yearPlaceholder: "AAAA",
|
|
92
|
+
selectedDate: "Date s\xE9lectionn\xE9e : ",
|
|
93
|
+
selectedDates: "Dates s\xE9lectionn\xE9es : ",
|
|
94
|
+
enhancedMonth: (month) => {
|
|
95
|
+
switch (month) {
|
|
96
|
+
case 1:
|
|
97
|
+
return "1 - Janvier";
|
|
98
|
+
case 2:
|
|
99
|
+
return "2 - F\xE9vrier";
|
|
100
|
+
case 3:
|
|
101
|
+
return "3 - Mars";
|
|
102
|
+
case 4:
|
|
103
|
+
return "4 - Avril";
|
|
104
|
+
case 5:
|
|
105
|
+
return "5 - Mai";
|
|
106
|
+
case 6:
|
|
107
|
+
return "6 - Juin";
|
|
108
|
+
case 7:
|
|
109
|
+
return "7 - Juillet";
|
|
110
|
+
case 8:
|
|
111
|
+
return "8 - Ao\xFBt";
|
|
112
|
+
case 9:
|
|
113
|
+
return "9 - Septembre";
|
|
114
|
+
case 10:
|
|
115
|
+
return "10 - Octobre";
|
|
116
|
+
case 11:
|
|
117
|
+
return "11 - Novembre";
|
|
118
|
+
case 12:
|
|
119
|
+
return "12 - D\xE9cembre";
|
|
120
|
+
default:
|
|
121
|
+
return "";
|
|
122
|
+
}
|
|
123
|
+
},
|
|
85
124
|
monthSelect: "S\xE9lectionner le mois",
|
|
86
125
|
nextMonthButton: "Mois suivant",
|
|
87
126
|
nextYearButton: "Ann\xE9e suivante",
|
|
@@ -93,7 +132,9 @@ var translation = {
|
|
|
93
132
|
yearSelect: "S\xE9lectionner l'ann\xE9e",
|
|
94
133
|
startDate: "Date de d\xE9but",
|
|
95
134
|
endDate: "Date de fin",
|
|
96
|
-
|
|
135
|
+
invalidDate: "Date non valide",
|
|
136
|
+
invalidStartDate: "Date de d\xE9but non valide",
|
|
137
|
+
invalidEndDate: "Date de fin non valide",
|
|
97
138
|
tableOfContents: "Sommaire :",
|
|
98
139
|
userMenu: "Menu utilisateur",
|
|
99
140
|
// countries and regions
|
|
@@ -150,6 +191,7 @@ var translation2 = {
|
|
|
150
191
|
stepCompleted: "Step completed",
|
|
151
192
|
stepInProgress: "Step in progress",
|
|
152
193
|
stepError: "Step in error",
|
|
194
|
+
skipLinksAriaLabel: `Skip links`,
|
|
153
195
|
errorMessagePanelCodePrefix: "Error code: ",
|
|
154
196
|
fileSelect: (multiple) => {
|
|
155
197
|
if (multiple)
|
|
@@ -196,6 +238,44 @@ var translation2 = {
|
|
|
196
238
|
min: "Min",
|
|
197
239
|
max: "Max",
|
|
198
240
|
clearButton: "Clear value",
|
|
241
|
+
day: "Day",
|
|
242
|
+
month: "Month",
|
|
243
|
+
year: "Year",
|
|
244
|
+
dayPlaceholder: "DD",
|
|
245
|
+
monthPlaceholder: "MM",
|
|
246
|
+
yearPlaceholder: "YYYY",
|
|
247
|
+
selectedDate: "Selected date : ",
|
|
248
|
+
selectedDates: "Selected dates : ",
|
|
249
|
+
enhancedMonth: (month) => {
|
|
250
|
+
switch (month) {
|
|
251
|
+
case 1:
|
|
252
|
+
return "1 - January";
|
|
253
|
+
case 2:
|
|
254
|
+
return "2 - February";
|
|
255
|
+
case 3:
|
|
256
|
+
return "3 - March";
|
|
257
|
+
case 4:
|
|
258
|
+
return "4 - April";
|
|
259
|
+
case 5:
|
|
260
|
+
return "5 - May";
|
|
261
|
+
case 6:
|
|
262
|
+
return "6 - June";
|
|
263
|
+
case 7:
|
|
264
|
+
return "7 - July";
|
|
265
|
+
case 8:
|
|
266
|
+
return "8 - August";
|
|
267
|
+
case 9:
|
|
268
|
+
return "9 - September";
|
|
269
|
+
case 10:
|
|
270
|
+
return "10 - October";
|
|
271
|
+
case 11:
|
|
272
|
+
return "11 - November";
|
|
273
|
+
case 12:
|
|
274
|
+
return "12 - December";
|
|
275
|
+
default:
|
|
276
|
+
return "";
|
|
277
|
+
}
|
|
278
|
+
},
|
|
199
279
|
monthSelect: "Select month",
|
|
200
280
|
nextMonthButton: "Next month",
|
|
201
281
|
nextYearButton: "Next year",
|
|
@@ -207,7 +287,9 @@ var translation2 = {
|
|
|
207
287
|
yearSelect: "Select year",
|
|
208
288
|
startDate: "Start date",
|
|
209
289
|
endDate: "End date",
|
|
210
|
-
|
|
290
|
+
invalidDate: "Invalid date",
|
|
291
|
+
invalidStartDate: "Invalid start date",
|
|
292
|
+
invalidEndDate: "Invalide end date",
|
|
211
293
|
tableOfContents: "Table of contents :",
|
|
212
294
|
userMenu: "User Menu",
|
|
213
295
|
// countries and regions
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
step_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.76RCUC6S.js";
|
|
4
4
|
import {
|
|
5
5
|
getStepIcon
|
|
6
6
|
} from "./chunk.CCTWXABH.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.DA6UU6UL.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
13
13
|
import {
|
|
14
14
|
ShoelaceElement
|
|
15
15
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -142,7 +142,17 @@ var DSAStep = class extends ShoelaceElement {
|
|
|
142
142
|
type=${ifDefined(isButton ? "button" : void 0)}
|
|
143
143
|
href=${ifDefined(isLink ? this.href : void 0)}
|
|
144
144
|
target=${ifDefined(isLink ? this.target : void 0)}
|
|
145
|
-
rel=${ifDefined(isLink ? this.rel : void 0)}
|
|
145
|
+
rel=${ifDefined(isLink ? this.rel : void 0)}
|
|
146
|
+
>
|
|
147
|
+
${this.clickable ? html`
|
|
148
|
+
<dsa-visually-hidden>${stepLabel},</dsa-visually-hidden>
|
|
149
|
+
` : ""}
|
|
150
|
+
${this.clickable && this.index !== void 0 ? html`
|
|
151
|
+
<dsa-visually-hidden
|
|
152
|
+
>${this.localize.term("step")}
|
|
153
|
+
${this.index + 1},</dsa-visually-hidden
|
|
154
|
+
>
|
|
155
|
+
` : ""}
|
|
146
156
|
<slot
|
|
147
157
|
name="title"
|
|
148
158
|
class="step-title"
|
|
@@ -22,6 +22,7 @@ var DSATabPanel = class extends ShoelaceElement {
|
|
|
22
22
|
this.attrId = ++id;
|
|
23
23
|
this.componentId = `dsa-tab-panel-${this.attrId}`;
|
|
24
24
|
this.name = "";
|
|
25
|
+
this.tabindex = 0;
|
|
25
26
|
this.active = false;
|
|
26
27
|
}
|
|
27
28
|
connectedCallback() {
|
|
@@ -48,6 +49,9 @@ DSATabPanel.styles = tab_panel_styles_default;
|
|
|
48
49
|
__decorateClass([
|
|
49
50
|
property({ reflect: true })
|
|
50
51
|
], DSATabPanel.prototype, "name", 2);
|
|
52
|
+
__decorateClass([
|
|
53
|
+
property({ reflect: true })
|
|
54
|
+
], DSATabPanel.prototype, "tabindex", 2);
|
|
51
55
|
__decorateClass([
|
|
52
56
|
property({ type: Boolean, reflect: true })
|
|
53
57
|
], DSATabPanel.prototype, "active", 2);
|
|
@@ -23,6 +23,20 @@ var tab_styles_default = css`
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
.tab__content {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
.tab__width-placeholder {
|
|
32
|
+
content: attr(data-label);
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
visibility: hidden;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
height: 0;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
26
40
|
.tab:hover:not(.tab--disabled) {
|
|
27
41
|
color: var(--dsa-wc-tab-color-hover);
|
|
28
42
|
}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk.R426GAXO.js";
|
|
11
11
|
import {
|
|
12
12
|
HasSlotController
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.DA6UU6UL.js";
|
|
14
14
|
import {
|
|
15
15
|
waitForEvent
|
|
16
16
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk.V7RJROLH.js";
|
|
25
25
|
import {
|
|
26
26
|
LocalizeController
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.5MBTOZ4X.js";
|
|
28
28
|
import {
|
|
29
29
|
watch
|
|
30
30
|
} from "./chunk.6IH66JBY.js";
|