@ds-autonomie/web-components 1.20.0 → 1.21.0
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 +24 -0
- package/dist/chunks/{chunk.HHFAWREW.js → chunk.2VU7NSY7.js} +2 -1
- package/dist/chunks/{chunk.Q3EITOMR.js → chunk.2YJ4SOGI.js} +7 -4
- package/dist/chunks/{chunk.T2DCZWWQ.js → chunk.2ZWEASQH.js} +3 -3
- package/dist/chunks/{chunk.Y7BIBKXU.js → chunk.32Q3N4FY.js} +27 -14
- package/dist/chunks/{chunk.QGNUX2KV.js → chunk.3B2D7GEN.js} +18 -8
- package/dist/chunks/{chunk.MVFQ3IXQ.js → chunk.3F32N525.js} +1 -1
- package/dist/chunks/{chunk.BFVPPAWG.js → chunk.3KHOL2ZR.js} +1 -1
- package/dist/chunks/{chunk.FOGBKOQM.js → chunk.42I2CPKY.js} +1 -1
- package/dist/chunks/{chunk.AV26MFR7.js → chunk.4KUK43KY.js} +1 -1
- package/dist/chunks/{chunk.IANNJ3XQ.js → chunk.4VKIGF5Z.js} +85 -23
- package/dist/chunks/{chunk.HSLR5GY4.js → chunk.5KFYZRQZ.js} +1 -1
- package/dist/chunks/{chunk.3D63HEF5.js → chunk.5Y35HJBR.js} +22 -12
- package/dist/chunks/{chunk.L6I3R7R4.js → chunk.5YV6H7CA.js} +1 -1
- package/dist/chunks/{chunk.ENMMYFHE.js → chunk.7YWQEKBT.js} +1 -1
- package/dist/chunks/{chunk.L46ATINF.js → chunk.ADXDCZF5.js} +22 -11
- package/dist/chunks/{chunk.QDZIXDQB.js → chunk.AEGNM2GN.js} +38 -5
- package/dist/chunks/{chunk.R4Y6XOHR.js → chunk.AK74YXT7.js} +2 -1
- package/dist/chunks/{chunk.64JQY57B.js → chunk.BBA6NDLS.js} +1 -1
- package/dist/chunks/{chunk.3LVYSAA2.js → chunk.BTIJON33.js} +14 -2
- package/dist/chunks/{chunk.HEKH6LVG.js → chunk.BUINE4D4.js} +21 -10
- package/dist/chunks/{chunk.FPKXUSZ2.js → chunk.C3XAP2OQ.js} +22 -12
- package/dist/chunks/{chunk.G2PBKGYI.js → chunk.CYFF4SSJ.js} +1 -1
- package/dist/chunks/{chunk.HMY3DD5Q.js → chunk.DE4CISVH.js} +1 -1
- package/dist/chunks/{chunk.LDRVRUQG.js → chunk.DEYEKOVU.js} +35 -10
- package/dist/chunks/{chunk.74PVOVK5.js → chunk.DMX6VF2L.js} +1 -1
- package/dist/chunks/{chunk.3EPXMS3X.js → chunk.EOWQAIDU.js} +3 -0
- package/dist/chunks/{chunk.UGJMPVUI.js → chunk.F4JFIJOX.js} +7 -5
- package/dist/chunks/{chunk.TWD6W5IY.js → chunk.FFQRZGV3.js} +5 -2
- package/dist/chunks/{chunk.6TASDLIO.js → chunk.GM4DVAZJ.js} +1 -1
- package/dist/chunks/{chunk.WMZ6HMZN.js → chunk.HRRPFGP6.js} +1 -1
- package/dist/chunks/chunk.HV63L5BF.js +13 -0
- package/dist/chunks/{chunk.BCJMEP6L.js → chunk.IS42GAIM.js} +1 -1
- package/dist/chunks/{chunk.G3MRVMJ4.js → chunk.IY4PPAPE.js} +2 -0
- package/dist/chunks/chunk.IZBHR7GP.js +28 -0
- package/dist/chunks/{chunk.SGOZVSP6.js → chunk.JGKD2B3X.js} +20 -2
- package/dist/chunks/{chunk.CR3YYNT2.js → chunk.JXM67ADP.js} +1 -1
- package/dist/chunks/{chunk.MFWGK7WB.js → chunk.K4FVALS6.js} +1 -1
- package/dist/chunks/chunk.KC5MVFGS.js +88 -0
- package/dist/chunks/{chunk.LXBTGTSE.js → chunk.KCKFUT7W.js} +1 -1
- package/dist/chunks/{chunk.JKSDPLU3.js → chunk.KRGFRDDA.js} +1 -1
- package/dist/chunks/{chunk.QEVAFNHA.js → chunk.KVWD6T4L.js} +1 -1
- package/dist/chunks/{chunk.O5STCK5X.js → chunk.KXJWP6RB.js} +1 -1
- package/dist/chunks/{chunk.7AAMT4XK.js → chunk.L4T7Q6GD.js} +1 -1
- package/dist/chunks/{chunk.YU57HFSC.js → chunk.LBFGYYBC.js} +1 -1
- package/dist/chunks/{chunk.TGLNENJD.js → chunk.LXBTKWKD.js} +21 -10
- package/dist/chunks/chunk.M2NGA4XO.js +63 -0
- package/dist/chunks/{chunk.4L7EJLR4.js → chunk.M3FN3PFT.js} +1 -1
- package/dist/chunks/{chunk.PC2VIFJW.js → chunk.M53SSNJZ.js} +1 -1
- package/dist/chunks/chunk.MDHRSOWI.js +148 -0
- package/dist/chunks/chunk.MLZNIULJ.js +398 -0
- package/dist/chunks/{chunk.6ARUNZFT.js → chunk.MPFP7MPJ.js} +18 -7
- package/dist/chunks/{chunk.7PFNOFBI.js → chunk.MS4XE2ZR.js} +1 -1
- package/dist/chunks/chunk.N5JZMI4Z.js +88 -0
- package/dist/chunks/{chunk.EWT3XVAN.js → chunk.O4TH77FX.js} +6 -3
- package/dist/chunks/{chunk.UZBA5RSV.js → chunk.OMS37ACU.js} +1 -1
- package/dist/chunks/{chunk.TVVACMGN.js → chunk.ONR7YQWV.js} +42 -17
- package/dist/chunks/{chunk.3FPXYDA5.js → chunk.OQNKOMOW.js} +1 -1
- package/dist/chunks/{chunk.JI25EHQH.js → chunk.PIL5B5ND.js} +4 -4
- package/dist/chunks/{chunk.KD5BVWTU.js → chunk.PQR2GAOE.js} +1 -1
- package/dist/chunks/{chunk.IWQVNYM3.js → chunk.PXS65FQN.js} +1 -1
- package/dist/chunks/{chunk.O3HNJGYS.js → chunk.QWFM2SG7.js} +3 -1
- package/dist/chunks/{chunk.3XN3SRIA.js → chunk.R3PRXJRX.js} +12 -7
- package/dist/chunks/{chunk.3IJMYCGV.js → chunk.RC4FOPY5.js} +22 -11
- package/dist/chunks/{chunk.ECHOZ6NC.js → chunk.RYNDLXYY.js} +3 -3
- package/dist/chunks/{chunk.MNWP6APB.js → chunk.SCP4RZIJ.js} +1 -1
- package/dist/chunks/{chunk.4EOWX2QT.js → chunk.SOXCM55K.js} +3 -2
- package/dist/chunks/{chunk.TD3KXIPP.js → chunk.T7SB5KS2.js} +1 -1
- package/dist/chunks/{chunk.RJCFCZY3.js → chunk.UAD6YEEJ.js} +1 -1
- package/dist/chunks/{chunk.V5E77HVI.js → chunk.UIQY6EH4.js} +2 -2
- package/dist/chunks/{chunk.FKWXVC3X.js → chunk.UPDEHRTD.js} +4 -4
- package/dist/chunks/{chunk.CW4ML3IS.js → chunk.URXUE6MS.js} +42 -30
- package/dist/chunks/chunk.UUMZUOSS.js +78 -0
- package/dist/chunks/{chunk.T34EYGAF.js → chunk.V3HKSTWC.js} +33 -14
- package/dist/chunks/{chunk.3RD6XYCZ.js → chunk.V4RBDTGM.js} +1 -1
- package/dist/chunks/{chunk.CXQ4OD4X.js → chunk.VDSFN77O.js} +4 -4
- package/dist/chunks/{chunk.G2ETLWQZ.js → chunk.VTJZNWTJ.js} +4 -4
- package/dist/chunks/{chunk.RPHNQ6G2.js → chunk.VVU4ZI4B.js} +4 -4
- package/dist/chunks/{chunk.JAN3GSWY.js → chunk.WHL7ZCSP.js} +2 -1
- package/dist/chunks/{chunk.Y4RTGSQH.js → chunk.WP7IXCVC.js} +58 -7
- package/dist/chunks/{chunk.ISIFJ4EB.js → chunk.WVA3OV5Q.js} +1 -1
- package/dist/chunks/{chunk.AC3HBDLB.js → chunk.WZNMOHN3.js} +1 -1
- package/dist/chunks/{chunk.ATHRVCEP.js → chunk.XJUWKPOM.js} +1 -1
- package/dist/chunks/{chunk.MSCG6J3T.js → chunk.XQWKXNLU.js} +28 -26
- package/dist/chunks/{chunk.X6777XNN.js → chunk.Y3FYMACD.js} +1 -1
- package/dist/chunks/{chunk.PQ5POUST.js → chunk.YB76RLIX.js} +3 -5
- package/dist/chunks/{chunk.NTUKWCFF.js → chunk.YYSMJZ6F.js} +21 -13
- package/dist/chunks/{chunk.7FYXPV3G.js → chunk.Z3PCBFRD.js} +79 -2
- package/dist/chunks/{chunk.KPLNKARS.js → chunk.ZBZTILB6.js} +4 -4
- package/dist/chunks/{chunk.LQ42ZLXI.js → chunk.ZI22JIAC.js} +1 -1
- package/dist/chunks/{chunk.OVE2754B.js → chunk.ZJHZ3DYM.js} +4 -4
- package/dist/chunks/{chunk.GCPXZXYD.js → chunk.ZXP2XR2V.js} +1 -1
- package/dist/components/accordion/accordion.js +6 -6
- package/dist/components/alert/alert.d.ts +2 -0
- package/dist/components/alert/alert.js +7 -7
- package/dist/components/anchor-tag/anchor-tag.js +2 -2
- package/dist/components/animation/animation.js +2 -2
- package/dist/components/avatar/avatar.js +6 -6
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/button/button.js +8 -8
- package/dist/components/calendar/calendar.js +2 -2
- package/dist/components/callout/callout.js +10 -63
- package/dist/components/card/card.js +2 -2
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +3 -2
- package/dist/components/checkbox/checkbox.js +9 -8
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/checkbox-button/checkbox-button.js +5 -5
- package/dist/components/checkbox-group/checkbox-group.d.ts +3 -2
- package/dist/components/checkbox-group/checkbox-group.js +5 -4
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/combobox/combobox.d.ts +3 -2
- package/dist/components/combobox/combobox.js +12 -11
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/dialog/dialog.js +7 -7
- package/dist/components/download-card/download-card.js +4 -4
- package/dist/components/download-link/download-link.js +4 -4
- package/dist/components/drawer/drawer.js +7 -7
- package/dist/components/dropdown/dropdown.js +3 -3
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/error-message-panel/error-message-panel.js +2 -2
- package/dist/components/error-text/error-text.utils.d.ts +1 -0
- package/dist/components/error-text/error-text.utils.js +7 -0
- package/dist/components/file-upload/file-upload.d.ts +3 -2
- package/dist/components/file-upload/file-upload.js +5 -4
- package/dist/components/file-upload/file-upload.styles.js +2 -2
- package/dist/components/file-upload-item/file-upload-item.d.ts +3 -2
- package/dist/components/file-upload-item/file-upload-item.js +3 -2
- package/dist/components/file-upload-item/file-upload-item.styles.js +1 -1
- package/dist/components/filter/filter-base/filter-base.d.ts +3 -1
- package/dist/components/filter/filter-base/filter-base.js +2 -2
- package/dist/components/filter/filter-button/filter-button.js +6 -6
- package/dist/components/filter/filter-counter/filter-counter.js +3 -3
- package/dist/components/filter/filter-date/filter-date.d.ts +13 -34
- package/dist/components/filter/filter-date/filter-date.js +17 -14
- package/dist/components/filter/filter-date/filter-date.styles.js +2 -1
- package/dist/components/filter/filter-range/filter-range.js +16 -15
- package/dist/components/filter/filter-select/filter-select.js +16 -15
- package/dist/components/footer/footer.d.ts +3 -0
- package/dist/components/footer/footer.js +3 -3
- package/dist/components/footer/footer.styles.js +1 -1
- 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.d.ts +3 -0
- package/dist/components/header/header.js +3 -3
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/header-search/header-search.js +2 -2
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/input/input.d.ts +3 -2
- package/dist/components/input/input.js +13 -12
- package/dist/components/input/input.styles.js +2 -2
- package/dist/components/input-date/input-date.d.ts +3 -2
- package/dist/components/input-date/input-date.js +12 -11
- package/dist/components/input-date/input-date.styles.js +3 -3
- package/dist/components/input-mask/input-mask.d.ts +3 -2
- package/dist/components/input-mask/input-mask.js +6 -5
- package/dist/components/input-mask/input-mask.styles.js +2 -2
- package/dist/components/input-phone/input-phone.d.ts +3 -2
- package/dist/components/input-phone/input-phone.js +19 -18
- package/dist/components/input-phone/input-phone.styles.js +2 -2
- package/dist/components/menu/menu.d.ts +1 -1
- package/dist/components/menu-accordion/menu-accordion.js +6 -6
- package/dist/components/menu-item/menu-item.d.ts +19 -3
- package/dist/components/menu-item/menu-item.js +6 -6
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-navigation/menu-navigation.d.ts +1 -0
- 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 +6 -6
- package/dist/components/navbar/navbar-menu/navbar-menu.js +8 -8
- package/dist/components/option/option.js +6 -6
- package/dist/components/pagination/pagination.js +14 -13
- package/dist/components/profile-button/profile-button.d.ts +59 -0
- package/dist/components/profile-button/profile-button.js +31 -0
- package/dist/components/profile-button/profile-button.styles.d.ts +2 -0
- package/dist/components/profile-button/profile-button.styles.js +8 -0
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/quote/quote.d.ts +31 -0
- package/dist/components/quote/quote.js +22 -0
- package/dist/components/quote/quote.styles.d.ts +2 -0
- package/dist/components/quote/quote.styles.js +8 -0
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.js +7 -5
- package/dist/components/radio-group/radio-group.d.ts +3 -2
- package/dist/components/radio-group/radio-group.js +6 -4
- package/dist/components/radio-group/radio-group.styles.js +2 -2
- package/dist/components/radio-group/radio-group.utils.d.ts +1 -0
- package/dist/components/radio-group/radio-group.utils.js +7 -0
- package/dist/components/range-slider/range-slider.js +2 -2
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/select/select.d.ts +3 -2
- package/dist/components/select/select.js +11 -10
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/split-panel/split-panel.js +6 -6
- package/dist/components/step/step.d.ts +23 -1
- package/dist/components/step/step.js +7 -7
- package/dist/components/step/step.styles.js +1 -1
- package/dist/components/tab/tab.js +2 -2
- package/dist/components/tab-group/tab-group.js +2 -2
- package/dist/components/table/table-action/table-action.js +2 -2
- package/dist/components/table/table-caption/table-caption.js +2 -2
- package/dist/components/table/table-header-cell/table-header-cell.d.ts +3 -0
- package/dist/components/table/table-header-cell/table-header-cell.js +2 -2
- package/dist/components/table/table-header-cell/table-header-cell.styles.js +1 -1
- 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/tag/tag.js +7 -7
- package/dist/components/textarea/textarea.d.ts +3 -2
- package/dist/components/textarea/textarea.js +5 -4
- package/dist/components/textarea/textarea.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +13 -12
- package/dist/components/tree-item/tree-item.js +12 -11
- package/dist/custom-elements.json +1397 -314
- package/dist/design-system.d.ts +3 -0
- package/dist/design-system.js +161 -144
- package/dist/styles/form-control.styles.js +3 -0
- package/dist/themes/dsa-wc-theme.css +32 -11
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +32 -11
- 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/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +1 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/utilities/storybook.js +1 -1
- package/dist/vscode.html-custom-data.json +186 -50
- package/dist/web-types.json +801 -234
- package/package.json +2 -2
- package/dist/chunks/chunk.Z4APA22Y.js +0 -483
- package/dist/chunks/{chunk.D34QDO4H.js → chunk.O2PIWM25.js} +3 -3
- package/dist/chunks/{chunk.K7B6RL47.js → chunk.O7DWCXXH.js} +3 -3
- package/dist/chunks/{chunk.2R6P5TGQ.js → chunk.PEAFJZ6C.js} +3 -3
- package/dist/chunks/{chunk.FAKJROQT.js → chunk.ZV7TVP6P.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 1.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 59f6850: `input`, `input-phone`, `input-mask`, `checkbox`, `checkbox-group`, `combobox`, `radio-group`, `select`, `textarea`, `file-upload`, `file-upload-item` : possibilité d'ajouter plusieurs messages d'erreur
|
|
8
|
+
- a87a242: `step` : ajout de la possibilité de rendre une étape cliquable en tant que bouton ou lien href
|
|
9
|
+
- 664c912: `menu-item` : ajout des types lien et bouton ; `menu-navigation` : possibilité d'ajouter des éléments `menu-item` en tant qu'enfants
|
|
10
|
+
- 3d181ee: `header`, `footer` : possibilité d'ajuster les valeurs de max-width et padding
|
|
11
|
+
- 81861d2: `quote`: ajout du composant citation
|
|
12
|
+
- 2638b10: `filter-date` : utilisation dans un tiroir
|
|
13
|
+
- 6d4d2cc: `profile-button`, `dropdown` : ajout du bouton profil
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 595d758: `alert` : changement de l'attribut title en alert-title, remplacement du role="alert" par aria-live="assertive" et aria-atomic="true"
|
|
18
|
+
- 9dbf3e7: `link` : changement de la couleur des liens visités, uniformisation du comportement
|
|
19
|
+
- 9823335: `input` : possibilité d'utiliser les slots avec le type date
|
|
20
|
+
- ee04635: `radio-group` : les options readonly prennent le focus
|
|
21
|
+
- 83620bb: `file-upload` : alignement de la taille de police de la description avec les maquettes
|
|
22
|
+
- 47d1240: `table-header-cell` : affichage du prochain ordre de tri au focus (même comportement que pour le hover)
|
|
23
|
+
- Updated dependencies [34a692a]
|
|
24
|
+
- Updated dependencies [e15cf6f]
|
|
25
|
+
- @ds-autonomie/assets@1.4.3
|
|
26
|
+
|
|
3
27
|
## 1.20.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
|
@@ -38,7 +38,8 @@ var menu_navigation_styles_default = css`
|
|
|
38
38
|
:host(.level-2) a {
|
|
39
39
|
padding-inline-start: var(--dsa-spacing-48);
|
|
40
40
|
}
|
|
41
|
-
a:hover
|
|
41
|
+
a:hover,
|
|
42
|
+
a[aria-current='page']:hover {
|
|
42
43
|
background-color: var(--dsa-wc-menu-item-hover-background-color);
|
|
43
44
|
color: var(--dsa-wc-menu-item-hover-color);
|
|
44
45
|
}
|
|
@@ -39,6 +39,7 @@ var card_styles_default = css`
|
|
|
39
39
|
text-decoration: none;
|
|
40
40
|
color: inherit;
|
|
41
41
|
}
|
|
42
|
+
|
|
42
43
|
.card.link a::after{
|
|
43
44
|
position: absolute;
|
|
44
45
|
left: 0;
|
|
@@ -46,11 +47,13 @@ var card_styles_default = css`
|
|
|
46
47
|
top: 0;
|
|
47
48
|
bottom: 0;
|
|
48
49
|
content: '';
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.card.link a:hover::after {
|
|
51
53
|
bottom: -3px;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.card.link a:focus {
|
|
54
57
|
outline: none;
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.TSW2ZSHN.js";
|
|
4
4
|
import {
|
|
5
5
|
FilterBase
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.O4TH77FX.js";
|
|
7
7
|
import {
|
|
8
8
|
DSAOption
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.CYFF4SSJ.js";
|
|
10
10
|
import {
|
|
11
11
|
DSAInput
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.V3HKSTWC.js";
|
|
13
13
|
import {
|
|
14
14
|
scrollIntoView
|
|
15
15
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSASelect
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.5Y35HJBR.js";
|
|
4
|
+
import {
|
|
5
|
+
maskedValueToRawValue,
|
|
6
|
+
rawValueToMaskedValue,
|
|
7
|
+
stripSpecialChars
|
|
8
|
+
} from "./chunk.7OLEA3GQ.js";
|
|
4
9
|
import {
|
|
5
10
|
getPhoneConfig
|
|
6
11
|
} from "./chunk.65HTBW2L.js";
|
|
7
12
|
import {
|
|
8
13
|
input_phone_styles_default
|
|
9
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.5KFYZRQZ.js";
|
|
10
15
|
import {
|
|
11
16
|
frenchFlagOption,
|
|
12
17
|
frenchNumberPrefix,
|
|
13
18
|
phonePrefixOptions
|
|
14
19
|
} from "./chunk.ESYJVRG3.js";
|
|
15
|
-
import {
|
|
16
|
-
maskedValueToRawValue,
|
|
17
|
-
rawValueToMaskedValue,
|
|
18
|
-
stripSpecialChars
|
|
19
|
-
} from "./chunk.7OLEA3GQ.js";
|
|
20
20
|
import {
|
|
21
21
|
defaultValue
|
|
22
22
|
} from "./chunk.CMJ2SRTL.js";
|
|
23
|
+
import {
|
|
24
|
+
renderFormElementErrors
|
|
25
|
+
} from "./chunk.IZBHR7GP.js";
|
|
23
26
|
import {
|
|
24
27
|
FormControlController
|
|
25
28
|
} from "./chunk.KIFBWPW5.js";
|
|
26
29
|
import {
|
|
27
30
|
HasSlotController
|
|
28
31
|
} from "./chunk.YIY5RM53.js";
|
|
29
|
-
import {
|
|
30
|
-
ifDefinedAndNotEmpty
|
|
31
|
-
} from "./chunk.ZQJVCRB2.js";
|
|
32
32
|
import {
|
|
33
33
|
watch
|
|
34
34
|
} from "./chunk.6IH66JBY.js";
|
|
35
|
+
import {
|
|
36
|
+
ifDefinedAndNotEmpty
|
|
37
|
+
} from "./chunk.ZQJVCRB2.js";
|
|
35
38
|
import {
|
|
36
39
|
ShoelaceElement
|
|
37
40
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -450,9 +453,7 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
450
453
|
${this.helpText}
|
|
451
454
|
</slot>
|
|
452
455
|
|
|
453
|
-
|
|
454
|
-
>${this.errorMessage}</dsa-error-text
|
|
455
|
-
>` : ""}
|
|
456
|
+
${this.error && !this.disabled && this.errorMessage !== "" ? renderFormElementErrors(this.errorMessage) : ""}
|
|
456
457
|
</div>
|
|
457
458
|
</div>`;
|
|
458
459
|
}
|
|
@@ -525,7 +526,19 @@ __decorateClass([
|
|
|
525
526
|
property({ type: Boolean })
|
|
526
527
|
], DSAInputPhone.prototype, "error", 2);
|
|
527
528
|
__decorateClass([
|
|
528
|
-
property({
|
|
529
|
+
property({
|
|
530
|
+
attribute: "error-message",
|
|
531
|
+
converter: {
|
|
532
|
+
fromAttribute: (value) => value.split("|"),
|
|
533
|
+
toAttribute: (value) => {
|
|
534
|
+
if (typeof value === "string") {
|
|
535
|
+
return value;
|
|
536
|
+
} else {
|
|
537
|
+
return value.join("|");
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
})
|
|
529
542
|
], DSAInputPhone.prototype, "errorMessage", 2);
|
|
530
543
|
__decorateClass([
|
|
531
544
|
property({ reflect: true })
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkbox_group_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KVWD6T4L.js";
|
|
4
|
+
import {
|
|
5
|
+
renderFormElementErrors
|
|
6
|
+
} from "./chunk.IZBHR7GP.js";
|
|
4
7
|
import {
|
|
5
8
|
FormControlController,
|
|
6
9
|
customErrorValidityState,
|
|
@@ -351,12 +354,7 @@ var DSACheckboxGroup = class extends ShoelaceElement {
|
|
|
351
354
|
${this.helpText}
|
|
352
355
|
</slot>
|
|
353
356
|
|
|
354
|
-
${this.error ?
|
|
355
|
-
id="error-text"
|
|
356
|
-
class="form-control__error-text"
|
|
357
|
-
aria-live="assertive"
|
|
358
|
-
>${this.errorMessage}</dsa-error-text
|
|
359
|
-
>` : ""}
|
|
357
|
+
${this.error ? renderFormElementErrors(this.errorMessage) : ""}
|
|
360
358
|
</fieldset>
|
|
361
359
|
`;
|
|
362
360
|
}
|
|
@@ -419,7 +417,19 @@ __decorateClass([
|
|
|
419
417
|
property({ type: Boolean })
|
|
420
418
|
], DSACheckboxGroup.prototype, "error", 2);
|
|
421
419
|
__decorateClass([
|
|
422
|
-
property({
|
|
420
|
+
property({
|
|
421
|
+
attribute: "error-message",
|
|
422
|
+
converter: {
|
|
423
|
+
fromAttribute: (value) => value.split("|"),
|
|
424
|
+
toAttribute: (value) => {
|
|
425
|
+
if (typeof value === "string") {
|
|
426
|
+
return value;
|
|
427
|
+
} else {
|
|
428
|
+
return value.join("|");
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
})
|
|
423
433
|
], DSACheckboxGroup.prototype, "errorMessage", 2);
|
|
424
434
|
__decorateClass([
|
|
425
435
|
watch("value")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
step_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.Z3PCBFRD.js";
|
|
4
4
|
import {
|
|
5
5
|
getStepIcon
|
|
6
6
|
} from "./chunk.CCTWXABH.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.YIY5RM53.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.IY4PPAPE.js";
|
|
13
13
|
import {
|
|
14
14
|
ShoelaceElement
|
|
15
15
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "./chunk.6M63UXML.js";
|
|
19
19
|
|
|
20
20
|
// src/components/step/step.ts
|
|
21
|
-
import {
|
|
22
|
-
import { customElement, property } from "lit/decorators.js";
|
|
21
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
23
22
|
import { classMap } from "lit/directives/class-map.js";
|
|
24
23
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
24
|
+
import { html, literal } from "lit/static-html.js";
|
|
25
25
|
var DSAStep = class extends ShoelaceElement {
|
|
26
26
|
constructor() {
|
|
27
27
|
super(...arguments);
|
|
@@ -35,6 +35,27 @@ var DSAStep = class extends ShoelaceElement {
|
|
|
35
35
|
this.stepTitle = "";
|
|
36
36
|
this.content = "";
|
|
37
37
|
this.vertical = false;
|
|
38
|
+
this.clickable = false;
|
|
39
|
+
this.href = "";
|
|
40
|
+
this.rel = "noreferrer noopener";
|
|
41
|
+
}
|
|
42
|
+
/** Simulates a click on the step. */
|
|
43
|
+
click() {
|
|
44
|
+
this.button.click();
|
|
45
|
+
}
|
|
46
|
+
/** Sets focus on the step. */
|
|
47
|
+
focus(options) {
|
|
48
|
+
this.button.focus(options);
|
|
49
|
+
}
|
|
50
|
+
/** Removes focus from the step. */
|
|
51
|
+
blur() {
|
|
52
|
+
this.button.blur();
|
|
53
|
+
}
|
|
54
|
+
getTag() {
|
|
55
|
+
if (!this.clickable) {
|
|
56
|
+
return literal`div`;
|
|
57
|
+
}
|
|
58
|
+
return this.href ? literal`a` : literal`button`;
|
|
38
59
|
}
|
|
39
60
|
getStepLabel() {
|
|
40
61
|
switch (this.status) {
|
|
@@ -56,20 +77,24 @@ var DSAStep = class extends ShoelaceElement {
|
|
|
56
77
|
const hasContentSlot = this.hasSlotController.test("content");
|
|
57
78
|
const hasTitle = this.stepTitle ? true : !!hasTitleSlot;
|
|
58
79
|
const hasContent = this.content ? true : !!hasContentSlot;
|
|
80
|
+
const isStaticStep = !this.clickable;
|
|
59
81
|
const stepIconName = this.status !== "in-progress" && this.status !== "active" ? getStepIcon(this.status) : void 0;
|
|
60
82
|
const stepLabel = this.getStepLabel();
|
|
83
|
+
const isLink = this.clickable && this.href;
|
|
84
|
+
const isButton = this.clickable && !this.href;
|
|
85
|
+
const tag = this.getTag();
|
|
61
86
|
return html`
|
|
62
87
|
<div
|
|
63
|
-
role="listitem"
|
|
64
88
|
part="step"
|
|
65
89
|
class=${classMap({
|
|
66
90
|
"step-container": true,
|
|
91
|
+
"step-container--clickable": !isStaticStep,
|
|
67
92
|
"step-container--has-title": hasTitle,
|
|
68
93
|
"step-container--has-content": hasContent,
|
|
69
94
|
"step-container__horizontal": !this.vertical,
|
|
70
95
|
"step-container__vertical": this.vertical
|
|
71
96
|
})}
|
|
72
|
-
|
|
97
|
+
role='listitem'>
|
|
73
98
|
<div
|
|
74
99
|
class=${classMap({
|
|
75
100
|
step: true,
|
|
@@ -80,29 +105,51 @@ var DSAStep = class extends ShoelaceElement {
|
|
|
80
105
|
})}
|
|
81
106
|
>
|
|
82
107
|
${this.status === "in-progress" || this.status === "active" ? html`<span class="step-icon--in-progress"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
${this.status === "complete" || this.status === "error" ? html
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
108
|
+
><dsa-visually-hidden>${stepLabel}</dsa-visually-hidden></span
|
|
109
|
+
>` : ""}
|
|
110
|
+
${this.status === "complete" || this.status === "error" ? html`
|
|
111
|
+
<dsa-icon
|
|
112
|
+
class="step-icon"
|
|
113
|
+
name="${ifDefined(stepIconName)}"
|
|
114
|
+
label=${ifDefined(stepLabel)}
|
|
115
|
+
>
|
|
116
|
+
</dsa-icon>
|
|
117
|
+
|
|
118
|
+
${this.clickable ? html`</dsa-icon>
|
|
119
|
+
<dsa-icon
|
|
120
|
+
class="step-icon--edit"
|
|
121
|
+
name="edit"
|
|
122
|
+
label=${ifDefined(stepLabel)}
|
|
123
|
+
>
|
|
124
|
+
</dsa-icon>` : ""}
|
|
125
|
+
` : ""}
|
|
90
126
|
</div>
|
|
91
127
|
|
|
92
128
|
<div class="step-content-container">
|
|
93
129
|
${this.index !== void 0 ? html`
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
130
|
+
<p class="step-index">
|
|
131
|
+
${this.localize.term("step")} ${this.index + 1}
|
|
132
|
+
</p>
|
|
133
|
+
` : html``}
|
|
98
134
|
|
|
99
135
|
<div class="step-title-container">
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
136
|
+
<${tag}
|
|
137
|
+
class=${classMap({
|
|
138
|
+
"step-clickable": !isStaticStep,
|
|
139
|
+
"step-link": isLink,
|
|
140
|
+
"step-button": isButton
|
|
141
|
+
})}
|
|
142
|
+
type=${ifDefined(isButton ? "button" : void 0)}
|
|
143
|
+
href=${ifDefined(isLink ? this.href : void 0)}
|
|
144
|
+
target=${ifDefined(isLink ? this.target : void 0)}
|
|
145
|
+
rel=${ifDefined(isLink ? this.rel : void 0)}>
|
|
146
|
+
<slot
|
|
147
|
+
name="title"
|
|
148
|
+
class="step-title"
|
|
149
|
+
aria-hidden=${hasTitle ? "false" : "true"}
|
|
150
|
+
>${this.stepTitle}</slot
|
|
151
|
+
>
|
|
152
|
+
</${tag}>
|
|
106
153
|
${this.hasSlotController.test("tooltip") ? html` <slot name="tooltip" class="step-tooltip"></slot> ` : ""}
|
|
107
154
|
</div>
|
|
108
155
|
<slot name="content" class="step-content">${this.content}</slot>
|
|
@@ -112,6 +159,9 @@ var DSAStep = class extends ShoelaceElement {
|
|
|
112
159
|
}
|
|
113
160
|
};
|
|
114
161
|
DSAStep.styles = step_styles_default;
|
|
162
|
+
__decorateClass([
|
|
163
|
+
query(".button")
|
|
164
|
+
], DSAStep.prototype, "button", 2);
|
|
115
165
|
__decorateClass([
|
|
116
166
|
property()
|
|
117
167
|
], DSAStep.prototype, "status", 2);
|
|
@@ -127,6 +177,18 @@ __decorateClass([
|
|
|
127
177
|
__decorateClass([
|
|
128
178
|
property({ type: Boolean })
|
|
129
179
|
], DSAStep.prototype, "vertical", 2);
|
|
180
|
+
__decorateClass([
|
|
181
|
+
property({ type: Boolean })
|
|
182
|
+
], DSAStep.prototype, "clickable", 2);
|
|
183
|
+
__decorateClass([
|
|
184
|
+
property()
|
|
185
|
+
], DSAStep.prototype, "href", 2);
|
|
186
|
+
__decorateClass([
|
|
187
|
+
property()
|
|
188
|
+
], DSAStep.prototype, "target", 2);
|
|
189
|
+
__decorateClass([
|
|
190
|
+
property()
|
|
191
|
+
], DSAStep.prototype, "rel", 2);
|
|
130
192
|
DSAStep = __decorateClass([
|
|
131
193
|
customElement("dsa-step")
|
|
132
194
|
], DSAStep);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
select_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OMS37ACU.js";
|
|
4
4
|
import {
|
|
5
5
|
scrollIntoView
|
|
6
6
|
} from "./chunk.EMIT7S33.js";
|
|
7
7
|
import {
|
|
8
8
|
defaultValue
|
|
9
9
|
} from "./chunk.CMJ2SRTL.js";
|
|
10
|
+
import {
|
|
11
|
+
renderFormElementErrors
|
|
12
|
+
} from "./chunk.IZBHR7GP.js";
|
|
10
13
|
import {
|
|
11
14
|
FormControlController
|
|
12
15
|
} from "./chunk.KIFBWPW5.js";
|
|
13
16
|
import {
|
|
14
17
|
HasSlotController
|
|
15
18
|
} from "./chunk.YIY5RM53.js";
|
|
16
|
-
import {
|
|
17
|
-
ifDefinedAndNotEmpty
|
|
18
|
-
} from "./chunk.ZQJVCRB2.js";
|
|
19
19
|
import {
|
|
20
20
|
waitForEvent
|
|
21
21
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -29,10 +29,13 @@ import {
|
|
|
29
29
|
} from "./chunk.V7RJROLH.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.IY4PPAPE.js";
|
|
33
33
|
import {
|
|
34
34
|
watch
|
|
35
35
|
} from "./chunk.6IH66JBY.js";
|
|
36
|
+
import {
|
|
37
|
+
ifDefinedAndNotEmpty
|
|
38
|
+
} from "./chunk.ZQJVCRB2.js";
|
|
36
39
|
import {
|
|
37
40
|
ShoelaceElement
|
|
38
41
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -679,12 +682,7 @@ var DSASelect = class extends ShoelaceElement {
|
|
|
679
682
|
${this.helpText}
|
|
680
683
|
</slot>
|
|
681
684
|
|
|
682
|
-
${this.error && !isDisabledOrReadonly ?
|
|
683
|
-
id="error-text"
|
|
684
|
-
part="form-control-error-text"
|
|
685
|
-
class="form-control__error-text"
|
|
686
|
-
>${this.errorMessage}</dsa-error-text
|
|
687
|
-
>` : ""}
|
|
685
|
+
${this.error && !isDisabledOrReadonly ? renderFormElementErrors(this.errorMessage) : ""}
|
|
688
686
|
</div>
|
|
689
687
|
`;
|
|
690
688
|
}
|
|
@@ -789,7 +787,19 @@ __decorateClass([
|
|
|
789
787
|
property({ type: Boolean })
|
|
790
788
|
], DSASelect.prototype, "error", 2);
|
|
791
789
|
__decorateClass([
|
|
792
|
-
property({
|
|
790
|
+
property({
|
|
791
|
+
attribute: "error-message",
|
|
792
|
+
converter: {
|
|
793
|
+
fromAttribute: (value) => value.split("|"),
|
|
794
|
+
toAttribute: (value) => {
|
|
795
|
+
if (typeof value === "string") {
|
|
796
|
+
return value;
|
|
797
|
+
} else {
|
|
798
|
+
return value.join("|");
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
})
|
|
793
803
|
], DSASelect.prototype, "errorMessage", 2);
|
|
794
804
|
__decorateClass([
|
|
795
805
|
property({ attribute: "display-value", type: Boolean })
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk.WKBOF2UN.js";
|
|
6
6
|
import {
|
|
7
7
|
input_date_styles_default
|
|
8
|
-
} from "./chunk.
|
|
8
|
+
} from "./chunk.Y3FYMACD.js";
|
|
9
9
|
import {
|
|
10
10
|
getDateFromISO,
|
|
11
11
|
getISOFormattedDate
|
|
@@ -13,15 +13,15 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
defaultValue
|
|
15
15
|
} from "./chunk.CMJ2SRTL.js";
|
|
16
|
+
import {
|
|
17
|
+
renderFormElementErrors
|
|
18
|
+
} from "./chunk.IZBHR7GP.js";
|
|
16
19
|
import {
|
|
17
20
|
FormControlController
|
|
18
21
|
} from "./chunk.KIFBWPW5.js";
|
|
19
22
|
import {
|
|
20
23
|
HasSlotController
|
|
21
24
|
} from "./chunk.YIY5RM53.js";
|
|
22
|
-
import {
|
|
23
|
-
ifDefinedAndNotEmpty
|
|
24
|
-
} from "./chunk.ZQJVCRB2.js";
|
|
25
25
|
import {
|
|
26
26
|
waitForEvent
|
|
27
27
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -35,10 +35,13 @@ import {
|
|
|
35
35
|
} from "./chunk.V7RJROLH.js";
|
|
36
36
|
import {
|
|
37
37
|
LocalizeController
|
|
38
|
-
} from "./chunk.
|
|
38
|
+
} from "./chunk.IY4PPAPE.js";
|
|
39
39
|
import {
|
|
40
40
|
watch
|
|
41
41
|
} from "./chunk.6IH66JBY.js";
|
|
42
|
+
import {
|
|
43
|
+
ifDefinedAndNotEmpty
|
|
44
|
+
} from "./chunk.ZQJVCRB2.js";
|
|
42
45
|
import {
|
|
43
46
|
ShoelaceElement
|
|
44
47
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -535,11 +538,7 @@ var DSAInputDate = class extends ShoelaceElement {
|
|
|
535
538
|
${this.helpText}
|
|
536
539
|
</slot>
|
|
537
540
|
|
|
538
|
-
${this.error && !this.disabled && this.errorMessage !== "" ?
|
|
539
|
-
id="error-text"
|
|
540
|
-
class="form-control__error-text"
|
|
541
|
-
>${this.errorMessage}</dsa-error-text
|
|
542
|
-
>` : ""}
|
|
541
|
+
${this.error && !this.disabled && this.errorMessage !== "" ? renderFormElementErrors(this.errorMessage) : ""}
|
|
543
542
|
</div>
|
|
544
543
|
</div>
|
|
545
544
|
`;
|
|
@@ -616,7 +615,19 @@ __decorateClass([
|
|
|
616
615
|
property({ type: Boolean })
|
|
617
616
|
], DSAInputDate.prototype, "error", 2);
|
|
618
617
|
__decorateClass([
|
|
619
|
-
property({
|
|
618
|
+
property({
|
|
619
|
+
attribute: "error-message",
|
|
620
|
+
converter: {
|
|
621
|
+
fromAttribute: (value) => value.split("|"),
|
|
622
|
+
toAttribute: (value) => {
|
|
623
|
+
if (typeof value === "string") {
|
|
624
|
+
return value;
|
|
625
|
+
} else {
|
|
626
|
+
return value.join("|");
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
})
|
|
620
631
|
], DSAInputDate.prototype, "errorMessage", 2);
|
|
621
632
|
__decorateClass([
|
|
622
633
|
property({ reflect: true })
|