@ds-autonomie/web-components 2.0.1 → 2.1.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 +23 -0
- package/cdn/chunks/{chunk.QTUCYPM5.js → chunk.3TUFAITJ.js} +18 -0
- package/cdn/chunks/{chunk.ZC2YWJX5.js → chunk.5BF76EO7.js} +1 -1
- package/cdn/chunks/{chunk.HRSNXHEG.js → chunk.5BL6KECM.js} +31 -5
- package/cdn/chunks/{chunk.GDKBZ2H6.js → chunk.6CF6SXDF.js} +1 -2
- package/cdn/chunks/{chunk.Z326Q4YW.js → chunk.6V2FRFCB.js} +1 -1
- package/cdn/chunks/{chunk.KQ5BQRHA.js → chunk.77CWRZEL.js} +6 -0
- package/cdn/chunks/{chunk.5UR3I4O7.js → chunk.BE7PKTJW.js} +1 -1
- package/cdn/chunks/chunk.BNPGOQZ2.js +223 -0
- package/cdn/chunks/{chunk.VR6U4JFG.js → chunk.CUCCBQJX.js} +11 -2
- package/cdn/chunks/{chunk.Q2IGBG6C.js → chunk.CVV4WLBC.js} +16 -8
- package/cdn/chunks/{chunk.2GCON4UO.js → chunk.DSKRAAOI.js} +3 -4
- package/cdn/chunks/{chunk.454LK2SB.js → chunk.E6VF2I6I.js} +9 -4
- package/cdn/chunks/{chunk.JYYFSSR2.js → chunk.EARU4CHS.js} +1 -1
- package/cdn/chunks/{chunk.DTZ62PPT.js → chunk.IGA57P5N.js} +13 -22
- package/cdn/chunks/{chunk.SRCH73UW.js → chunk.JSVJ7J76.js} +24 -1
- package/cdn/chunks/{chunk.QPY2AEFG.js → chunk.JTHUYIYP.js} +9 -5
- package/cdn/chunks/{chunk.PLPMNDIZ.js → chunk.KTAPO27T.js} +1 -1
- package/cdn/chunks/{chunk.3NTS3AEA.js → chunk.LFCUNNYV.js} +34 -30
- package/cdn/chunks/{chunk.GLQFV66F.js → chunk.LRMXGBIU.js} +24 -10
- package/cdn/chunks/{chunk.NW4AAKGG.js → chunk.NPJ5ZOJ4.js} +24 -10
- package/{dist/chunks/chunk.3E6XVTWL.js → cdn/chunks/chunk.P45DWAWT.js} +1 -1
- package/cdn/chunks/{chunk.VIT6ZMSL.js → chunk.PGT2WHXR.js} +2 -3
- package/cdn/chunks/chunk.RJXLIOW7.js +28 -0
- package/cdn/chunks/{chunk.YTHFESMA.js → chunk.S4BW7KNM.js} +5 -1
- package/cdn/chunks/{chunk.PAGENBUA.js → chunk.UR6UOSYK.js} +10 -12
- package/cdn/chunks/{chunk.JY6ROHQN.js → chunk.WOONNSQ2.js} +14 -20
- package/cdn/chunks/{chunk.F2LQ5OCB.js → chunk.XD7G7WIJ.js} +6 -2
- package/cdn/chunks/chunk.XIX7XP2G.js +91 -0
- package/cdn/chunks/{chunk.CSDIRQFE.js → chunk.XLX7QTXT.js} +9 -1
- package/cdn/chunks/{chunk.BTTFPDXL.js → chunk.XPL6N3OJ.js} +3 -2
- package/cdn/chunks/{chunk.2SEDRBTZ.js → chunk.Z2IR3WWE.js} +4 -1
- package/cdn/chunks/{chunk.PS3BQQBO.js → chunk.Z6DEWBVS.js} +7 -3
- package/cdn/chunks/{chunk.FGSGBIL3.js → chunk.ZKPOAPR2.js} +0 -4
- package/cdn/components/accordion/accordion.js +3 -3
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/avatar/avatar.js +4 -4
- package/cdn/components/breadcrumb/breadcrumb.js +3 -3
- package/cdn/components/button/button.d.ts +4 -1
- package/cdn/components/button/button.js +4 -4
- package/cdn/components/callout/callout.d.ts +3 -1
- package/cdn/components/callout/callout.js +4 -4
- package/cdn/components/checkbox/checkbox.d.ts +4 -1
- package/cdn/components/checkbox/checkbox.js +4 -4
- package/cdn/components/checkbox-button/checkbox-button.js +3 -3
- package/cdn/components/checkbox-group/checkbox-group.d.ts +4 -0
- package/cdn/components/checkbox-group/checkbox-group.js +6 -4
- package/cdn/components/combobox/combobox.js +3 -3
- package/cdn/components/dialog/dialog.d.ts +5 -1
- package/cdn/components/dialog/dialog.js +5 -5
- package/cdn/components/dialog/dialog.styles.js +1 -1
- package/cdn/components/download-card/download-card.js +5 -5
- package/cdn/components/download-card/download-card.styles.js +1 -1
- package/cdn/components/download-link/download-link.js +5 -5
- package/cdn/components/download-link/download-link.styles.js +1 -1
- package/cdn/components/drawer/drawer.js +3 -3
- package/cdn/components/error-text/error-text.js +3 -3
- package/cdn/components/file-upload/file-upload.js +3 -3
- package/cdn/components/file-upload-item/file-upload-item.js +3 -3
- package/cdn/components/filter-base/filter-base-stories.js +1 -1
- package/cdn/components/filter-base/filter-base.js +3 -3
- package/cdn/components/filter-button/filter-button.js +3 -3
- package/cdn/components/filter-counter/filter-counter.js +4 -4
- package/cdn/components/filter-date/filter-date.js +3 -3
- package/cdn/components/filter-range/filter-range.js +5 -5
- package/cdn/components/filter-select/filter-select.d.ts +1 -0
- package/cdn/components/filter-select/filter-select.js +9 -9
- package/cdn/components/header/header.d.ts +5 -1
- package/cdn/components/header/header.js +2 -2
- package/cdn/components/header/header.styles.js +1 -1
- package/cdn/components/header-search/header-search.d.ts +6 -0
- package/cdn/components/header-search/header-search.js +11 -5
- package/cdn/components/header-search/header-search.styles.js +1 -1
- package/cdn/components/icon/icon.js +3 -3
- package/cdn/components/icon/library.js +2 -2
- package/cdn/components/icon/library.system.js +1 -1
- package/cdn/components/icon-button/icon-button.js +3 -3
- package/cdn/components/input/input.js +3 -3
- package/cdn/components/input-date/input-date.js +3 -3
- package/cdn/components/input-mask/input-mask.js +3 -3
- package/cdn/components/input-phone/input-phone.d.ts +3 -3
- package/cdn/components/input-phone/input-phone.js +8 -14
- package/cdn/components/input-phone/input-phone.styles.js +1 -1
- package/cdn/components/input-phone/input-phone.utils.d.ts +0 -2
- package/cdn/components/input-phone/input-phone.utils.js +1 -7
- package/cdn/components/menu-accordion/menu-accordion.js +3 -3
- package/cdn/components/menu-item/menu-item.js +3 -3
- package/cdn/components/menu-navigation/menu-navigation.js +1 -1
- package/cdn/components/navbar-link/navbar-link.js +4 -4
- package/cdn/components/navbar-menu/navbar-menu.js +4 -4
- package/cdn/components/option/option.js +5 -5
- package/cdn/components/option/option.styles.js +1 -1
- package/cdn/components/pagination/pagination.js +5 -5
- package/cdn/components/profile-button/profile-button.js +4 -4
- package/cdn/components/quote/quote.js +3 -3
- package/cdn/components/radio/radio.js +3 -3
- package/cdn/components/radio-button/radio-button.js +7 -5
- package/cdn/components/radio-group/radio-group.d.ts +4 -0
- package/cdn/components/radio-group/radio-group.js +6 -4
- package/cdn/components/range-slider/range-slider.d.ts +0 -2
- package/cdn/components/range-slider/range-slider.js +1 -1
- package/cdn/components/select/select.js +3 -3
- package/cdn/components/split-panel/split-panel.js +3 -3
- package/cdn/components/step/step.js +3 -3
- package/cdn/components/tab/tab.d.ts +2 -0
- package/cdn/components/tab/tab.js +4 -4
- package/cdn/components/tab-group/tab-group.js +3 -3
- package/cdn/components/table-header-cell/table-header-cell.js +3 -3
- package/cdn/components/table-header-row/table-header-row.js +6 -6
- package/cdn/components/table-row/table-row.js +5 -5
- package/cdn/components/tag/tag.js +3 -3
- package/cdn/components/textarea/textarea.js +3 -3
- package/cdn/components/tree/tree.js +4 -4
- package/cdn/components/tree-item/tree-item.js +4 -4
- package/cdn/custom-elements.json +223 -68
- package/cdn/design-system.js +40 -40
- package/cdn/events/events.d.ts +7 -7
- package/cdn/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +2 -86
- package/cdn/internal/test/disable-a11y-warnings.d.ts +2 -0
- package/cdn/internal/test/disable-a11y-warnings.js +10 -0
- package/cdn/themes/dsa-wc-theme.css +5 -0
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +5 -0
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/utilities/storybook.d.ts +1 -0
- package/cdn/utilities/storybook.js +3 -1
- package/cdn/vscode.html-custom-data.json +64 -11
- package/cdn/web-types.json +159 -35
- package/dist/chunks/{chunk.N5DO55QO.js → chunk.2EDNCADP.js} +9 -1
- package/dist/chunks/{chunk.YDXAC3AX.js → chunk.2VH3OZ2T.js} +1 -1
- package/dist/chunks/{chunk.QTUCYPM5.js → chunk.3TUFAITJ.js} +18 -0
- package/dist/chunks/{chunk.VC2F6FEI.js → chunk.4WSA3PVB.js} +1 -1
- package/dist/chunks/{chunk.TB3WT3D4.js → chunk.6QAB5TYJ.js} +6 -0
- package/dist/chunks/{chunk.IAL72I44.js → chunk.AF5WMYR2.js} +5 -1
- package/dist/chunks/{chunk.6RJLT24F.js → chunk.EGH3AVD7.js} +4 -1
- package/dist/chunks/{chunk.JDG6WH3B.js → chunk.EQZ4YFRU.js} +94 -54
- package/dist/chunks/{chunk.CWVZX3HL.js → chunk.FKXOTDTY.js} +1 -1
- package/dist/chunks/{chunk.35M6DDPF.js → chunk.G422H4DZ.js} +7 -3
- package/dist/chunks/chunk.HRIAHWFV.js +89 -0
- package/dist/chunks/{chunk.4FP4K3F5.js → chunk.JDIBYGPL.js} +11 -2
- package/dist/chunks/{chunk.2DJFK3E6.js → chunk.JX7OISYA.js} +24 -10
- package/dist/chunks/{chunk.QEFQHCEK.js → chunk.KFRR2I2P.js} +3 -4
- package/dist/chunks/{chunk.5LBJAKDG.js → chunk.LB54GRRB.js} +31 -5
- package/dist/chunks/{chunk.CQG7MKTO.js → chunk.LDXGSIJP.js} +6 -2
- package/dist/chunks/{chunk.ARYKCY32.js → chunk.MBRRLF6D.js} +34 -30
- package/dist/chunks/{chunk.X6V74J4Y.js → chunk.MEPTPSE5.js} +2 -3
- package/dist/chunks/{chunk.R426GAXO.js → chunk.MJKJSMQX.js} +3 -2
- package/dist/chunks/{chunk.RPZWIHKX.js → chunk.NCECJWN7.js} +1 -1
- package/dist/chunks/{chunk.JUPNFWMF.js → chunk.OHPSPLZO.js} +9 -5
- package/{cdn/chunks/chunk.3E6XVTWL.js → dist/chunks/chunk.P45DWAWT.js} +1 -1
- package/dist/chunks/{chunk.7NPJ25LI.js → chunk.PZXD4VTO.js} +14 -20
- package/dist/chunks/chunk.RJXLIOW7.js +28 -0
- package/dist/chunks/{chunk.35URRZJ2.js → chunk.SYVX56PU.js} +1 -2
- package/dist/chunks/{chunk.K6FDIYMY.js → chunk.UVN7RIEO.js} +0 -4
- package/dist/chunks/{chunk.LWFWCZIX.js → chunk.WQYBYKZ2.js} +9 -4
- package/dist/chunks/{chunk.GOMVXZ72.js → chunk.XRZGSSHY.js} +1 -1
- package/dist/chunks/{chunk.XWFZLRHU.js → chunk.XXHMFUD7.js} +24 -1
- package/dist/chunks/{chunk.Z2SRVRIK.js → chunk.XXN6UBL4.js} +10 -12
- package/dist/chunks/{chunk.DY2W3WPP.js → chunk.Z7DBDDCZ.js} +16 -8
- package/dist/chunks/{chunk.WI3DWLXW.js → chunk.ZTGPYOYG.js} +13 -22
- package/dist/chunks/{chunk.GBRTFFMV.js → chunk.ZYTDWH4E.js} +24 -10
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/components/button/button.d.ts +4 -1
- package/dist/components/button/button.js +4 -4
- package/dist/components/callout/callout.d.ts +3 -1
- package/dist/components/callout/callout.js +4 -4
- package/dist/components/checkbox/checkbox.d.ts +4 -1
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/checkbox-button/checkbox-button.js +3 -3
- package/dist/components/checkbox-group/checkbox-group.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.js +6 -4
- package/dist/components/combobox/combobox.js +3 -3
- package/dist/components/dialog/dialog.d.ts +5 -1
- package/dist/components/dialog/dialog.js +5 -5
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/download-card/download-card.js +5 -5
- package/dist/components/download-card/download-card.styles.js +1 -1
- package/dist/components/download-link/download-link.js +5 -5
- package/dist/components/download-link/download-link.styles.js +1 -1
- package/dist/components/drawer/drawer.js +3 -3
- package/dist/components/error-text/error-text.js +3 -3
- package/dist/components/file-upload/file-upload.js +3 -3
- package/dist/components/file-upload-item/file-upload-item.js +3 -3
- package/dist/components/filter-base/filter-base-stories.js +1 -1
- package/dist/components/filter-base/filter-base.js +3 -3
- package/dist/components/filter-button/filter-button.js +3 -3
- package/dist/components/filter-counter/filter-counter.js +4 -4
- package/dist/components/filter-date/filter-date.js +3 -3
- package/dist/components/filter-range/filter-range.js +5 -5
- package/dist/components/filter-select/filter-select.d.ts +1 -0
- package/dist/components/filter-select/filter-select.js +9 -9
- package/dist/components/header/header.d.ts +5 -1
- package/dist/components/header/header.js +2 -2
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/header-search/header-search.d.ts +6 -0
- package/dist/components/header-search/header-search.js +11 -5
- package/dist/components/header-search/header-search.styles.js +1 -1
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.js +3 -3
- package/dist/components/input/input.js +3 -3
- package/dist/components/input-date/input-date.js +3 -3
- package/dist/components/input-mask/input-mask.js +3 -3
- package/dist/components/input-phone/input-phone.d.ts +3 -3
- package/dist/components/input-phone/input-phone.js +8 -14
- package/dist/components/input-phone/input-phone.styles.js +1 -1
- package/dist/components/input-phone/input-phone.utils.d.ts +0 -2
- package/dist/components/input-phone/input-phone.utils.js +1 -5
- package/dist/components/menu-accordion/menu-accordion.js +3 -3
- package/dist/components/menu-item/menu-item.js +3 -3
- package/dist/components/menu-navigation/menu-navigation.js +1 -1
- package/dist/components/navbar-link/navbar-link.js +4 -4
- package/dist/components/navbar-menu/navbar-menu.js +4 -4
- package/dist/components/option/option.js +5 -5
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/pagination/pagination.js +5 -5
- package/dist/components/profile-button/profile-button.js +4 -4
- package/dist/components/quote/quote.js +3 -3
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/radio-button/radio-button.js +7 -5
- package/dist/components/radio-group/radio-group.d.ts +4 -0
- package/dist/components/radio-group/radio-group.js +6 -4
- package/dist/components/range-slider/range-slider.d.ts +0 -2
- package/dist/components/range-slider/range-slider.js +1 -1
- package/dist/components/select/select.js +3 -3
- package/dist/components/split-panel/split-panel.js +3 -3
- package/dist/components/step/step.js +3 -3
- package/dist/components/tab/tab.d.ts +2 -0
- package/dist/components/tab/tab.js +4 -4
- package/dist/components/tab-group/tab-group.js +3 -3
- package/dist/components/table-header-cell/table-header-cell.js +3 -3
- package/dist/components/table-header-row/table-header-row.js +6 -6
- package/dist/components/table-row/table-row.js +5 -5
- package/dist/components/tag/tag.js +3 -3
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tree/tree.js +4 -4
- package/dist/components/tree-item/tree-item.js +4 -4
- package/dist/custom-elements.json +223 -68
- package/dist/design-system.js +40 -40
- package/dist/events/events.d.ts +7 -7
- package/dist/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +2 -86
- package/dist/internal/test/disable-a11y-warnings.d.ts +2 -0
- package/dist/internal/test/disable-a11y-warnings.js +10 -0
- package/dist/themes/dsa-wc-theme.css +5 -0
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +5 -0
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/storybook.d.ts +1 -0
- package/dist/utilities/storybook.js +3 -1
- package/dist/vscode.html-custom-data.json +64 -11
- package/dist/web-types.json +159 -35
- package/package.json +3 -1
- package/cdn/chunks/chunk.CCL2RZON.js +0 -132
- package/cdn/chunks/chunk.DIF52FDQ.js +0 -183
- package/cdn/chunks/chunk.GVVML3JJ.js +0 -272
- package/dist/chunks/chunk.2T66U3QC.js +0 -270
- package/dist/chunks/chunk.ESYJVRG3.js +0 -129
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8dbb5e8: `download-card`: déplacement des attributs annexes dans le lien pour les lecteurs d'écran
|
|
8
|
+
`download-link`: déplacement des attributs annexes dans le lien pour les lecteurs d'écran
|
|
9
|
+
- 2a6ce52: `callout` : remplacement de l'attribut `title` (déprécié) par `callout-title`; `button`, `checkbox` : remplacement des attributs `title` et `aria-label` (dépréciés) par `accessible-name`
|
|
10
|
+
- 11314ee: `header`: ajout d'un attribut permettant de choisir la taille du logo
|
|
11
|
+
`header-search`: ajout d'un attribut permettant de rendre le composant dans un état ouvert permanent
|
|
12
|
+
- 5f6d3f2: `header-search` : ajout d'un attribut `mobile`
|
|
13
|
+
- ffea5ba: `tab` : ajout de l'attribut close-button-label
|
|
14
|
+
- 2bc49cb: `header` : ajout d'un slot pour le premier logo
|
|
15
|
+
- 151414f: `dialog`: ajout d'un attribut permettant de cacher le titre du header
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 5045b7d: `alert`: changement de l'attribut aria-live vers "polite"
|
|
20
|
+
- ba1513b: `input-phone`: ajustement espaces
|
|
21
|
+
- f2e90b5: Adaptation des stories pour améliorer les tests Chromatic
|
|
22
|
+
- ba7b276: `menu-navigation`, `filter-select` : retouches a11y
|
|
23
|
+
- c2407d7: `filter-select` : possibilité de changer d'option avec les flèches du clavier
|
|
24
|
+
- 44be976: `radio-group`, `checkbox-group` : permettre de cacher le label (si redondant)
|
|
25
|
+
|
|
3
26
|
## 2.0.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -4,6 +4,7 @@ var icons = {
|
|
|
4
4
|
add_box: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"/></svg>`,
|
|
5
5
|
arrow_upward: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>`,
|
|
6
6
|
calendar_today: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V10h16v11zm0-13H4V5h16v3z"/></svg>`,
|
|
7
|
+
cancel: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"/></svg>`,
|
|
7
8
|
check: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>`,
|
|
8
9
|
chevron_left: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"/></svg>`,
|
|
9
10
|
chevron_right: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"/></svg>`,
|
|
@@ -24,6 +25,23 @@ var icons = {
|
|
|
24
25
|
error_outline: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg>`,
|
|
25
26
|
expand_more: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"/></svg>`,
|
|
26
27
|
filter_list: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></svg>`,
|
|
28
|
+
french_flag: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
29
|
+
<g clip-path="url(#clip0_24022_31892)">
|
|
30
|
+
<rect x="0.25" y="0.25" width="23.5" height="23.5" rx="1.75" fill="white" stroke="#F5F5F5" stroke-width="0.5"/>
|
|
31
|
+
<mask id="mask0_24022_31892" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
32
|
+
<rect x="0.25" y="0.25" width="23.5" height="23.5" rx="1.75" fill="white" stroke="white" stroke-width="0.5"/>
|
|
33
|
+
</mask>
|
|
34
|
+
<g mask="url(#mask0_24022_31892)">
|
|
35
|
+
<rect x="16" width="8" height="24" fill="#F44653"/>
|
|
36
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 24H8V0H0V24Z" fill="#1035BB"/>
|
|
37
|
+
</g>
|
|
38
|
+
</g>
|
|
39
|
+
<defs>
|
|
40
|
+
<clipPath id="clip0_24022_31892">
|
|
41
|
+
<rect width="24" height="24" fill="white"/>
|
|
42
|
+
</clipPath>
|
|
43
|
+
</defs>
|
|
44
|
+
</svg>`,
|
|
27
45
|
horizontal_rule: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 11h16v2H4z"/></svg>`,
|
|
28
46
|
indeterminate_check_box: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 11h10v2H7z"/></svg>`,
|
|
29
47
|
info: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>`,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk.3BJMFOLF.js";
|
|
5
5
|
import {
|
|
6
6
|
header_styles_default
|
|
7
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.XLX7QTXT.js";
|
|
8
8
|
import {
|
|
9
9
|
HasSlotController
|
|
10
10
|
} from "./chunk.YIY5RM53.js";
|
|
@@ -45,6 +45,7 @@ var DSAHeader = class extends ShoelaceElement {
|
|
|
45
45
|
this.localize = new LocalizeController(this);
|
|
46
46
|
this.firstLogo = "public";
|
|
47
47
|
this.logoHref = "/";
|
|
48
|
+
this.logoSize = "default";
|
|
48
49
|
this.searchExpanded = false;
|
|
49
50
|
this.mobile = false;
|
|
50
51
|
}
|
|
@@ -74,6 +75,14 @@ var DSAHeader = class extends ShoelaceElement {
|
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
}
|
|
78
|
+
handleMobile() {
|
|
79
|
+
if (this.hasSlotController.test("search")) {
|
|
80
|
+
const search = this.querySelector("dsa-header-search");
|
|
81
|
+
if (search !== null && this.mobile !== void 0) {
|
|
82
|
+
search.mobile = this.mobile;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
77
86
|
render() {
|
|
78
87
|
const hasBrand = this.hasSlotController.test("second-logo") || this.hasSlotController.test("site-name");
|
|
79
88
|
return x`
|
|
@@ -98,11 +107,22 @@ var DSAHeader = class extends ShoelaceElement {
|
|
|
98
107
|
"header--search-expanded": this.hasSlotController.test("search") && this.searchExpanded
|
|
99
108
|
})}
|
|
100
109
|
>
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
110
|
+
<slot
|
|
111
|
+
name="first-logo"
|
|
112
|
+
part="first-logo"
|
|
113
|
+
class="logo ${this.logoSize === "large" && "logo-large"}"
|
|
114
|
+
>
|
|
115
|
+
<a href=${this.logoHref} class="logo-link">
|
|
116
|
+
${this.firstLogo === "public" ? dsaLogoSvg(this.localize.term("dsaGoToHomepage")) : cnsaLogoSvg(this.localize.term("cnsaGoToHomepage"))}
|
|
117
|
+
</a>
|
|
118
|
+
</slot>
|
|
104
119
|
<div part="brand">
|
|
105
|
-
${this.hasSlotController.test("second-logo") ? x`
|
|
120
|
+
${this.hasSlotController.test("second-logo") ? x`
|
|
121
|
+
<slot
|
|
122
|
+
name="second-logo"
|
|
123
|
+
class="logo ${this.logoSize === "large" && "logo-large"}"
|
|
124
|
+
></slot>
|
|
125
|
+
` : ""}
|
|
106
126
|
${this.hasSlotController.test("site-name") || this.hasSlotController.test("baseline") ? x`
|
|
107
127
|
<div class="site-info">
|
|
108
128
|
<slot name="site-name" part="site-name"></slot>
|
|
@@ -130,6 +150,9 @@ __decorateClass([
|
|
|
130
150
|
__decorateClass([
|
|
131
151
|
n({ reflect: true, attribute: "logo-href" })
|
|
132
152
|
], DSAHeader.prototype, "logoHref", 2);
|
|
153
|
+
__decorateClass([
|
|
154
|
+
n({ attribute: "logo-size" })
|
|
155
|
+
], DSAHeader.prototype, "logoSize", 2);
|
|
133
156
|
__decorateClass([
|
|
134
157
|
n({ reflect: true, type: Boolean, attribute: "search-expanded" })
|
|
135
158
|
], DSAHeader.prototype, "searchExpanded", 2);
|
|
@@ -139,6 +162,9 @@ __decorateClass([
|
|
|
139
162
|
__decorateClass([
|
|
140
163
|
watch("searchExpanded")
|
|
141
164
|
], DSAHeader.prototype, "handleSearchExpanded", 1);
|
|
165
|
+
__decorateClass([
|
|
166
|
+
watch("mobile")
|
|
167
|
+
], DSAHeader.prototype, "handleMobile", 1);
|
|
142
168
|
DSAHeader = __decorateClass([
|
|
143
169
|
t("dsa-header")
|
|
144
170
|
], DSAHeader);
|
|
@@ -71,8 +71,7 @@ var DSATableRow = class extends ShoelaceElement {
|
|
|
71
71
|
class="checkbox"
|
|
72
72
|
size="small"
|
|
73
73
|
name=${this.selectionName}
|
|
74
|
-
|
|
75
|
-
aria-label=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
|
|
74
|
+
accessible-name=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
|
|
76
75
|
value=${this.selectionValue}
|
|
77
76
|
?checked=${this.selected}
|
|
78
77
|
@click=${(e3) => e3.stopPropagation()}
|
|
@@ -37,7 +37,7 @@ var DSAMenuNavigation = class extends ShoelaceElement {
|
|
|
37
37
|
}
|
|
38
38
|
// A change of attributes on the slotted elements does not trigger the "slotchange" event, so we add an observer
|
|
39
39
|
render() {
|
|
40
|
-
return x`<slot
|
|
40
|
+
return x`<slot @keydown=${this.handleKeyDown}></slot>`;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
DSAMenuNavigation.styles = menu_navigation_styles_default;
|
|
@@ -300,6 +300,9 @@ var input_phone_styles_default = i`
|
|
|
300
300
|
var(--dsa-wc-input-phone-height) - var(--dsa-wc-input-border-width) * 2
|
|
301
301
|
);
|
|
302
302
|
}
|
|
303
|
+
.form-control--medium .input-phone__flag {
|
|
304
|
+
width: 1.25rem;
|
|
305
|
+
}
|
|
303
306
|
|
|
304
307
|
.form-control--large {
|
|
305
308
|
--input-phone__select__min-width: 68px;
|
|
@@ -316,6 +319,9 @@ var input_phone_styles_default = i`
|
|
|
316
319
|
2
|
|
317
320
|
);
|
|
318
321
|
}
|
|
322
|
+
.form-control--large .input-phone__flag {
|
|
323
|
+
width: 1.5rem;
|
|
324
|
+
}
|
|
319
325
|
|
|
320
326
|
/*
|
|
321
327
|
* Clearable
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import {
|
|
2
|
+
header_search_styles_default
|
|
3
|
+
} from "./chunk.XIX7XP2G.js";
|
|
4
|
+
import {
|
|
5
|
+
l
|
|
6
|
+
} from "./chunk.7PPSHHT2.js";
|
|
7
|
+
import {
|
|
8
|
+
LocalizeController
|
|
9
|
+
} from "./chunk.ZLWLHLBC.js";
|
|
10
|
+
import {
|
|
11
|
+
e as e2
|
|
12
|
+
} from "./chunk.IKHG7XGO.js";
|
|
13
|
+
import {
|
|
14
|
+
ShoelaceElement,
|
|
15
|
+
e,
|
|
16
|
+
n,
|
|
17
|
+
r,
|
|
18
|
+
t
|
|
19
|
+
} from "./chunk.DZB6XUZ7.js";
|
|
20
|
+
import {
|
|
21
|
+
x
|
|
22
|
+
} from "./chunk.7HUC6BF3.js";
|
|
23
|
+
import {
|
|
24
|
+
__decorateClass
|
|
25
|
+
} from "./chunk.4ZGVANML.js";
|
|
26
|
+
|
|
27
|
+
// src/components/header-search/header-search.ts
|
|
28
|
+
var DSAHeaderSearch = class extends ShoelaceElement {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.localize = new LocalizeController(this);
|
|
32
|
+
this.hasFocus = false;
|
|
33
|
+
this.value = "";
|
|
34
|
+
this.expanded = false;
|
|
35
|
+
this.alwaysOpen = false;
|
|
36
|
+
this.mobile = false;
|
|
37
|
+
}
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
super.connectedCallback();
|
|
40
|
+
this.setAttribute("role", "search");
|
|
41
|
+
}
|
|
42
|
+
async handleExpandClick() {
|
|
43
|
+
this.emit("dsa-expand");
|
|
44
|
+
this.expanded = true;
|
|
45
|
+
await this.updateComplete;
|
|
46
|
+
this.input.focus();
|
|
47
|
+
}
|
|
48
|
+
handleChange() {
|
|
49
|
+
this.value = this.input.value;
|
|
50
|
+
this.emit("dsa-change");
|
|
51
|
+
}
|
|
52
|
+
handleInput() {
|
|
53
|
+
this.value = this.input.value;
|
|
54
|
+
this.emit("dsa-input");
|
|
55
|
+
}
|
|
56
|
+
handleInputFocus() {
|
|
57
|
+
this.hasFocus = true;
|
|
58
|
+
this.emit("dsa-focus");
|
|
59
|
+
}
|
|
60
|
+
handleInputBlur() {
|
|
61
|
+
this.hasFocus = false;
|
|
62
|
+
this.emit("dsa-blur");
|
|
63
|
+
}
|
|
64
|
+
handleClearClick(event) {
|
|
65
|
+
this.value = "";
|
|
66
|
+
this.emit("dsa-clear");
|
|
67
|
+
this.emit("dsa-input");
|
|
68
|
+
this.emit("dsa-change");
|
|
69
|
+
this.input.focus();
|
|
70
|
+
event.stopPropagation();
|
|
71
|
+
}
|
|
72
|
+
handleKeyDown(event) {
|
|
73
|
+
event.stopPropagation();
|
|
74
|
+
const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
75
|
+
if (event.key === "Enter" && !hasModifier) {
|
|
76
|
+
setTimeout(() => {
|
|
77
|
+
if (!event.defaultPrevented && !event.isComposing) {
|
|
78
|
+
this.handleSubmitClick();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
handleSubmitClick() {
|
|
84
|
+
this.emit("dsa-submit");
|
|
85
|
+
}
|
|
86
|
+
async handleCancelClick() {
|
|
87
|
+
this.emit("dsa-collapse");
|
|
88
|
+
this.expanded = false;
|
|
89
|
+
await this.updateComplete;
|
|
90
|
+
this.expandButton.focus();
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
if (!this.expanded && !this.alwaysOpen) {
|
|
94
|
+
if (this.mobile) {
|
|
95
|
+
return x`
|
|
96
|
+
<dsa-icon-button
|
|
97
|
+
id="expand-button"
|
|
98
|
+
part="button button--navigation"
|
|
99
|
+
name="search"
|
|
100
|
+
library="system"
|
|
101
|
+
size="large"
|
|
102
|
+
label=${this.localize.term("search")}
|
|
103
|
+
@click=${this.handleExpandClick}
|
|
104
|
+
></dsa-icon-button>
|
|
105
|
+
`;
|
|
106
|
+
} else {
|
|
107
|
+
return x`
|
|
108
|
+
<dsa-button
|
|
109
|
+
id="expand-button"
|
|
110
|
+
variant="navigation"
|
|
111
|
+
part="button button--navigation"
|
|
112
|
+
}
|
|
113
|
+
@click=${this.handleExpandClick}
|
|
114
|
+
>
|
|
115
|
+
<dsa-icon name="search" library="system"></dsa-icon>
|
|
116
|
+
<span>${this.localize.term("search")}</span>
|
|
117
|
+
</dsa-button>
|
|
118
|
+
`;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return x`
|
|
122
|
+
<div
|
|
123
|
+
class=${e2({
|
|
124
|
+
"search-bar": true,
|
|
125
|
+
"search-bar--mobile": this.mobile,
|
|
126
|
+
"search-bar--desktop": !this.mobile
|
|
127
|
+
})}
|
|
128
|
+
>
|
|
129
|
+
<div
|
|
130
|
+
class=${e2({ input: true, "input--focused": this.hasFocus })}
|
|
131
|
+
>
|
|
132
|
+
<input
|
|
133
|
+
class=${e2({
|
|
134
|
+
input__control: true,
|
|
135
|
+
"input__control--mobile": this.mobile,
|
|
136
|
+
"input__control--desktop": !this.mobile
|
|
137
|
+
})}
|
|
138
|
+
type="search"
|
|
139
|
+
placeholder=${this.localize.term("search")}
|
|
140
|
+
aria-label=${this.localize.term("search")}
|
|
141
|
+
title=${this.localize.term("search")}
|
|
142
|
+
.value=${l(this.value)}
|
|
143
|
+
@change=${this.handleChange}
|
|
144
|
+
@input=${this.handleInput}
|
|
145
|
+
@focus=${this.handleInputFocus}
|
|
146
|
+
@blur=${this.handleInputBlur}
|
|
147
|
+
@keydown=${this.handleKeyDown}
|
|
148
|
+
/>
|
|
149
|
+
${this.value.length > 0 ? x`
|
|
150
|
+
<dsa-icon-button
|
|
151
|
+
id="clear-button"
|
|
152
|
+
part="clear-button"
|
|
153
|
+
name="cancel"
|
|
154
|
+
label=${this.localize.term("clearEntry")}
|
|
155
|
+
@click=${this.handleClearClick}
|
|
156
|
+
library="system"
|
|
157
|
+
></dsa-icon-button>
|
|
158
|
+
` : ""}
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<dsa-icon-button
|
|
162
|
+
id="submit-button"
|
|
163
|
+
name="search"
|
|
164
|
+
library="system"
|
|
165
|
+
label=${this.localize.term("search")}
|
|
166
|
+
variant="primary"
|
|
167
|
+
size=${this.mobile ? "large" : "xlarge"}
|
|
168
|
+
@click=${this.handleSubmitClick}
|
|
169
|
+
>
|
|
170
|
+
</dsa-icon-button>
|
|
171
|
+
|
|
172
|
+
${!this.alwaysOpen ? x`
|
|
173
|
+
<dsa-button
|
|
174
|
+
id="cancel-button"
|
|
175
|
+
variant="tertiary"
|
|
176
|
+
size=${this.mobile ? "small" : "medium"}
|
|
177
|
+
@click=${this.handleCancelClick}
|
|
178
|
+
>
|
|
179
|
+
${this.localize.term("cancel")}
|
|
180
|
+
</dsa-button>
|
|
181
|
+
` : ""}
|
|
182
|
+
</div>
|
|
183
|
+
`;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
DSAHeaderSearch.styles = header_search_styles_default;
|
|
187
|
+
__decorateClass([
|
|
188
|
+
e(".input__control")
|
|
189
|
+
], DSAHeaderSearch.prototype, "input", 2);
|
|
190
|
+
__decorateClass([
|
|
191
|
+
e("#expand-button")
|
|
192
|
+
], DSAHeaderSearch.prototype, "expandButton", 2);
|
|
193
|
+
__decorateClass([
|
|
194
|
+
e("#submit-button")
|
|
195
|
+
], DSAHeaderSearch.prototype, "submitButton", 2);
|
|
196
|
+
__decorateClass([
|
|
197
|
+
e("#cancel-button")
|
|
198
|
+
], DSAHeaderSearch.prototype, "cancelButton", 2);
|
|
199
|
+
__decorateClass([
|
|
200
|
+
e("#clear-button")
|
|
201
|
+
], DSAHeaderSearch.prototype, "clearButton", 2);
|
|
202
|
+
__decorateClass([
|
|
203
|
+
r()
|
|
204
|
+
], DSAHeaderSearch.prototype, "hasFocus", 2);
|
|
205
|
+
__decorateClass([
|
|
206
|
+
n()
|
|
207
|
+
], DSAHeaderSearch.prototype, "value", 2);
|
|
208
|
+
__decorateClass([
|
|
209
|
+
n({ reflect: true, type: Boolean })
|
|
210
|
+
], DSAHeaderSearch.prototype, "expanded", 2);
|
|
211
|
+
__decorateClass([
|
|
212
|
+
n({ type: Boolean, attribute: "always-open" })
|
|
213
|
+
], DSAHeaderSearch.prototype, "alwaysOpen", 2);
|
|
214
|
+
__decorateClass([
|
|
215
|
+
n({ type: Boolean })
|
|
216
|
+
], DSAHeaderSearch.prototype, "mobile", 2);
|
|
217
|
+
DSAHeaderSearch = __decorateClass([
|
|
218
|
+
t("dsa-header-search")
|
|
219
|
+
], DSAHeaderSearch);
|
|
220
|
+
|
|
221
|
+
export {
|
|
222
|
+
DSAHeaderSearch
|
|
223
|
+
};
|
|
@@ -145,11 +145,20 @@ var option_styles_default = i`
|
|
|
145
145
|
|
|
146
146
|
.option__prefix::slotted(*),
|
|
147
147
|
.option--error .option__error-icon {
|
|
148
|
-
margin-inline-end: var(--dsa-wc-option-
|
|
148
|
+
margin-inline-end: var(--dsa-wc-option-prefix-suffix-inline-padding);
|
|
149
|
+
}
|
|
150
|
+
.option--large .option__prefix::slotted(*),
|
|
151
|
+
.option--large .option--error .option__error-icon {
|
|
152
|
+
margin-inline-end: var(--dsa-wc-option-large-prefix-suffix-inline-padding);
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
.option__suffix::slotted(*) {
|
|
152
|
-
margin-inline-start: var(--dsa-wc-option-
|
|
156
|
+
margin-inline-start: var(--dsa-wc-option-prefix-suffix-inline-padding);
|
|
157
|
+
}
|
|
158
|
+
.option--large .option__suffix::slotted(*) {
|
|
159
|
+
margin-inline-start: var(
|
|
160
|
+
--dsa-wc-option-large-prefix-suffix-inline-padding
|
|
161
|
+
);
|
|
153
162
|
}
|
|
154
163
|
|
|
155
164
|
@media (forced-colors: active) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk.EMIT7S33.js";
|
|
8
8
|
import {
|
|
9
9
|
dialog_styles_default
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.XPL6N3OJ.js";
|
|
11
11
|
import {
|
|
12
12
|
HasSlotController
|
|
13
13
|
} from "./chunk.YIY5RM53.js";
|
|
@@ -59,6 +59,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
59
59
|
this.modal = new Modal(this);
|
|
60
60
|
this.open = false;
|
|
61
61
|
this.label = "";
|
|
62
|
+
this.hideTitle = false;
|
|
62
63
|
this.noHeader = false;
|
|
63
64
|
this.size = "medium";
|
|
64
65
|
}
|
|
@@ -212,6 +213,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
212
213
|
return await waitForEvent(this, "dsa-after-hide");
|
|
213
214
|
}
|
|
214
215
|
render() {
|
|
216
|
+
const hasVisibleTitle = !this.noHeader && !this.hideTitle;
|
|
215
217
|
return x`
|
|
216
218
|
<div
|
|
217
219
|
part="base"
|
|
@@ -238,18 +240,20 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
238
240
|
aria-modal="true"
|
|
239
241
|
aria-hidden=${this.open ? "false" : "true"}
|
|
240
242
|
aria-label=${ifDefinedAndNotEmpty(
|
|
241
|
-
|
|
243
|
+
!hasVisibleTitle ? this.label : void 0
|
|
242
244
|
)}
|
|
243
|
-
aria-labelledby=${o(
|
|
245
|
+
aria-labelledby=${o(hasVisibleTitle ? "title" : void 0)}
|
|
244
246
|
tabindex="-1"
|
|
245
247
|
>
|
|
246
248
|
${!this.noHeader ? x`
|
|
247
249
|
<header part="header" class="dialog__header">
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
${!this.hideTitle ? x`
|
|
251
|
+
<h1 part="title" class="dialog__title" id="title">
|
|
252
|
+
<slot name="label">
|
|
253
|
+
${this.label.length > 0 ? this.label : String.fromCharCode(65279)}
|
|
254
|
+
</slot>
|
|
255
|
+
</h1>
|
|
256
|
+
` : ""}
|
|
253
257
|
<div part="header-actions" class="dialog__header-actions">
|
|
254
258
|
<slot name="header-actions"></slot>
|
|
255
259
|
<dsa-icon-button
|
|
@@ -260,6 +264,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
260
264
|
label=${this.localize.term("close")}
|
|
261
265
|
@click="${() => this.requestClose("close-button")}"
|
|
262
266
|
library="system"
|
|
267
|
+
size="x-large"
|
|
263
268
|
></dsa-icon-button>
|
|
264
269
|
</div>
|
|
265
270
|
</header>
|
|
@@ -291,6 +296,9 @@ __decorateClass([
|
|
|
291
296
|
__decorateClass([
|
|
292
297
|
n({ reflect: true })
|
|
293
298
|
], DSADialog.prototype, "label", 2);
|
|
299
|
+
__decorateClass([
|
|
300
|
+
n({ attribute: "hide-title", type: Boolean, reflect: true })
|
|
301
|
+
], DSADialog.prototype, "hideTitle", 2);
|
|
294
302
|
__decorateClass([
|
|
295
303
|
n({ attribute: "no-header", type: Boolean, reflect: true })
|
|
296
304
|
], DSADialog.prototype, "noHeader", 2);
|
|
@@ -157,9 +157,8 @@ var DSAAlert = class extends ShoelaceElement {
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
render() {
|
|
160
|
-
var _a;
|
|
161
160
|
return x`
|
|
162
|
-
<div aria-live="
|
|
161
|
+
<div aria-live="polite" aria-atomic="true">
|
|
163
162
|
<div
|
|
164
163
|
part="base"
|
|
165
164
|
class=${e2({
|
|
@@ -181,7 +180,7 @@ var DSAAlert = class extends ShoelaceElement {
|
|
|
181
180
|
library="system"
|
|
182
181
|
></dsa-icon>
|
|
183
182
|
<div class="alert__text">
|
|
184
|
-
${this.title
|
|
183
|
+
${this.title || this.alertTitle ? x`
|
|
185
184
|
<div
|
|
186
185
|
part="header"
|
|
187
186
|
id="header"
|
|
@@ -189,7 +188,7 @@ var DSAAlert = class extends ShoelaceElement {
|
|
|
189
188
|
role=${o(this.headerLevel ? "heading" : void 0)}
|
|
190
189
|
class="alert__title"
|
|
191
190
|
>
|
|
192
|
-
${
|
|
191
|
+
${this.alertTitle || this.title}
|
|
193
192
|
</div>
|
|
194
193
|
` : ""}
|
|
195
194
|
<slot part="message" class="alert__message"></slot>
|
|
@@ -78,6 +78,7 @@ var DSAButton = class extends ShoelaceElement {
|
|
|
78
78
|
this.href = "";
|
|
79
79
|
this.rel = "noreferrer noopener";
|
|
80
80
|
this.ariaLabel = "";
|
|
81
|
+
this.accessibleName = "";
|
|
81
82
|
this.description = "";
|
|
82
83
|
}
|
|
83
84
|
/** Gets the validity state object */
|
|
@@ -235,14 +236,15 @@ var DSAButton = class extends ShoelaceElement {
|
|
|
235
236
|
target=${o(isLink ? this.target : void 0)}
|
|
236
237
|
download=${o(isLink ? this.download : void 0)}
|
|
237
238
|
rel=${o(isLink ? this.rel : void 0)}
|
|
238
|
-
|
|
239
|
-
|
|
239
|
+
aria-label=${ifDefinedAndNotEmpty(
|
|
240
|
+
this.accessibleName || this.ariaLabel
|
|
241
|
+
)}
|
|
240
242
|
aria-describedby=${o(
|
|
241
243
|
this.description !== "" ? "description" : void 0
|
|
242
244
|
)}
|
|
243
|
-
aria-disabled=${this.disabled ? "true" :
|
|
245
|
+
aria-disabled=${o(this.disabled ? "true" : void 0)}
|
|
244
246
|
aria-pressed=${o(this.toggle ? this.pressed : void 0)}
|
|
245
|
-
tabindex=${this.disabled ? "-1" :
|
|
247
|
+
tabindex=${o(this.disabled ? "-1" : void 0)}
|
|
246
248
|
@blur=${this.handleBlur}
|
|
247
249
|
@focus=${this.handleFocus}
|
|
248
250
|
@invalid=${this.isButton() ? this.handleInvalid : null}
|
|
@@ -359,6 +361,9 @@ __decorateClass([
|
|
|
359
361
|
__decorateClass([
|
|
360
362
|
n({ attribute: "aria-label" })
|
|
361
363
|
], DSAButton.prototype, "ariaLabel", 2);
|
|
364
|
+
__decorateClass([
|
|
365
|
+
n({ attribute: "accessible-name" })
|
|
366
|
+
], DSAButton.prototype, "accessibleName", 2);
|
|
362
367
|
__decorateClass([
|
|
363
368
|
n({ attribute: "description" })
|
|
364
369
|
], DSAButton.prototype, "description", 2);
|