@ds-autonomie/web-components 2.11.1 → 2.13.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 +30 -0
- package/cdn/chunks/{chunk.TZ4Q6BAB.js → chunk.3K2PJ2XE.js} +3 -23
- package/cdn/chunks/{chunk.L57YXDBH.js → chunk.3ZGSESNP.js} +2 -1
- package/cdn/chunks/{chunk.JFUUWE3Y.js → chunk.5BXI46NB.js} +11 -9
- package/cdn/chunks/{chunk.XCDQSN4K.js → chunk.7IKGNEUS.js} +1 -1
- package/cdn/chunks/{chunk.7YRH4W4Z.js → chunk.7X3L3UKI.js} +1 -1
- package/cdn/chunks/{chunk.NDZZP23O.js → chunk.ANY4UVWZ.js} +1 -3
- package/cdn/chunks/{chunk.HPXPJRHP.js → chunk.AP47GURR.js} +1 -1
- package/cdn/chunks/{chunk.HCI7PRQV.js → chunk.AWWSQ5SC.js} +1 -1
- package/cdn/chunks/{chunk.XFBBCWDH.js → chunk.BR3HXIYO.js} +1 -1
- package/cdn/chunks/{chunk.2WKNTHTE.js → chunk.C2XIPTU3.js} +1 -1
- package/cdn/chunks/{chunk.7AU43JKE.js → chunk.C6YOQGP3.js} +1 -0
- package/cdn/chunks/{chunk.MQLSZR7A.js → chunk.CCG62HSL.js} +1 -1
- package/cdn/chunks/{chunk.IIVSSOAU.js → chunk.CH7F7WGJ.js} +2 -2
- package/cdn/chunks/{chunk.WZMY5NAQ.js → chunk.CK3OZQKX.js} +0 -4
- package/cdn/chunks/{chunk.BFQYLMIP.js → chunk.DMOAL7VS.js} +1 -0
- package/cdn/chunks/{chunk.B6FKIMN6.js → chunk.DNBIVA4J.js} +1 -1
- package/cdn/chunks/{chunk.BQTNLW5P.js → chunk.DT7G7VQ2.js} +1 -1
- package/cdn/chunks/{chunk.SC3NB3OV.js → chunk.E3W7YEA4.js} +0 -2
- package/cdn/chunks/{chunk.H55UBRU5.js → chunk.E6EXYKCB.js} +19 -3
- package/cdn/chunks/{chunk.K62J6GEH.js → chunk.E7NEC6I7.js} +1 -0
- package/cdn/chunks/{chunk.OONJ4BAJ.js → chunk.F2AI7O4R.js} +5 -1
- package/cdn/chunks/{chunk.T7LIPTCL.js → chunk.H4JTQC7T.js} +15 -19
- package/cdn/chunks/{chunk.SPF4JEAI.js → chunk.HD52LE6J.js} +1 -1
- package/cdn/chunks/{chunk.E7LCBTT5.js → chunk.IJML6NHK.js} +2 -2
- package/cdn/chunks/{chunk.KDCTYM4V.js → chunk.IW2FTSST.js} +1 -0
- package/cdn/chunks/{chunk.JSZ62MET.js → chunk.IWCZNIF5.js} +1 -1
- package/cdn/chunks/{chunk.VSZMOH4N.js → chunk.J7IAZRFK.js} +1 -1
- package/cdn/chunks/{chunk.MYQ5E7XD.js → chunk.JK2FCATP.js} +1 -1
- package/cdn/chunks/{chunk.X2EDAUXX.js → chunk.KA5KPMKE.js} +1 -1
- package/cdn/chunks/{chunk.34HTLNHP.js → chunk.KM4KITZK.js} +13 -0
- package/cdn/chunks/{chunk.CNA5HI7Z.js → chunk.LS2PBFC6.js} +1 -0
- package/cdn/chunks/{chunk.3NEUPBWJ.js → chunk.MUSSBYDR.js} +1 -0
- package/cdn/chunks/{chunk.7ATQ4MIY.js → chunk.MYFWIBY6.js} +1 -7
- package/cdn/chunks/{chunk.Z5BYMFSD.js → chunk.OHT2CDR3.js} +2 -3
- package/cdn/chunks/{chunk.COPSPY7Y.js → chunk.PLMZNC5Q.js} +3 -4
- package/cdn/chunks/{chunk.XO5NWJKS.js → chunk.QHK23HRN.js} +34 -15
- package/cdn/chunks/{chunk.OJYQEB5J.js → chunk.QRMD4CZI.js} +1 -1
- package/cdn/chunks/{chunk.L2UYHE4C.js → chunk.S4IPKDIZ.js} +1 -1
- package/cdn/chunks/{chunk.QSIQSHSN.js → chunk.SOPFOWBL.js} +1 -1
- package/cdn/chunks/{chunk.F6UW3MQK.js → chunk.T7UYS7W3.js} +1 -1
- package/cdn/chunks/{chunk.OTEYQ4OU.js → chunk.U4KGIXKJ.js} +1 -1
- package/cdn/chunks/{chunk.CRX7KUAK.js → chunk.UEHJW6ED.js} +1 -1
- package/cdn/chunks/{chunk.OAM7FL75.js → chunk.UMEHST4G.js} +1 -1
- package/cdn/chunks/{chunk.LT6QDZQK.js → chunk.WHRSLGOT.js} +1 -0
- package/cdn/chunks/{chunk.W7HYA37Q.js → chunk.WUW7EYWE.js} +1 -1
- package/cdn/chunks/{chunk.REWGAX6A.js → chunk.XI4SZBXQ.js} +1 -1
- package/cdn/chunks/{chunk.QNIK7LHK.js → chunk.XIS6BKXM.js} +2 -2
- package/cdn/chunks/{chunk.RRHJQF74.js → chunk.XTTQ5UPY.js} +6 -0
- package/cdn/chunks/{chunk.GZM7EYZQ.js → chunk.XUMSOEU7.js} +2 -0
- package/cdn/chunks/{chunk.6MHC5DNA.js → chunk.ZFWPHGWV.js} +1 -0
- package/cdn/chunks/{chunk.5ZUX2FMF.js → chunk.ZSS3MAEC.js} +1 -1
- package/cdn/components/accordion-group/accordion-group.js +1 -1
- package/cdn/components/alert/alert.js +1 -1
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/cdn/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/callout/callout.js +2 -2
- package/cdn/components/checkbox/checkbox.d.ts +2 -0
- package/cdn/components/checkbox/checkbox.js +2 -2
- package/cdn/components/checkbox/checkbox.styles.js +1 -1
- package/cdn/components/checkbox-button/checkbox-button.js +2 -2
- package/cdn/components/checkbox-card/checkbox-card.js +2 -2
- package/cdn/components/combobox/combobox.js +3 -3
- package/cdn/components/combobox/combobox.styles.js +1 -1
- package/cdn/components/dialog/dialog.js +3 -3
- package/cdn/components/dialog/dialog.styles.js +1 -1
- package/cdn/components/drawer/drawer.js +3 -3
- package/cdn/components/drawer/drawer.styles.js +1 -1
- package/cdn/components/file-upload/file-upload.d.ts +0 -1
- package/cdn/components/file-upload/file-upload.js +1 -1
- package/cdn/components/filter-counter/filter-counter.js +9 -9
- package/cdn/components/filter-counter/filter-counter.styles.js +2 -2
- package/cdn/components/filter-date/filter-date.js +5 -5
- package/cdn/components/filter-date/filter-date.styles.js +2 -2
- package/cdn/components/filter-range/filter-range.js +10 -10
- package/cdn/components/filter-range/filter-range.styles.js +2 -2
- package/cdn/components/filter-select/filter-select.js +9 -9
- package/cdn/components/filter-select/filter-select.styles.js +2 -2
- package/cdn/components/header-search/header-search.js +2 -2
- package/cdn/components/icon-button/icon-button.js +1 -1
- package/cdn/components/input/input.js +5 -5
- package/cdn/components/input-amount/input-amount.js +1 -1
- package/cdn/components/input-date/input-date.js +4 -4
- package/cdn/components/input-date/input-date.styles.js +1 -1
- package/cdn/components/input-native/input-native.js +1 -1
- package/cdn/components/input-otp/input-otp.js +1 -1
- package/cdn/components/input-phone/input-phone.js +4 -4
- package/cdn/components/input-time/input-time.js +1 -1
- package/cdn/components/menu-accordion/menu-accordion.d.ts +2 -1
- package/cdn/components/menu-accordion/menu-accordion.js +1 -1
- package/cdn/components/menu-navigation/menu-navigation.d.ts +5 -0
- package/cdn/components/menu-navigation/menu-navigation.js +1 -1
- package/cdn/components/navbar-link/navbar-link.js +1 -1
- package/cdn/components/navbar-menu/navbar-menu.js +1 -1
- package/cdn/components/pagination/pagination.js +5 -5
- package/cdn/components/progress-ring/progress-ring.js +2 -2
- package/cdn/components/progress-ring/progress-ring.styles.js +1 -1
- package/cdn/components/quote/quote.js +1 -1
- package/cdn/components/radio-button/radio-button.js +2 -2
- package/cdn/components/radio-card/radio-card.js +2 -2
- package/cdn/components/range-slider/range-slider.js +1 -1
- package/cdn/components/search/search.js +1 -1
- package/cdn/components/select/select.js +3 -3
- package/cdn/components/select/select.styles.js +1 -1
- package/cdn/components/sidenav/sidenav.js +2 -2
- package/cdn/components/sidenav/sidenav.styles.js +1 -1
- package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
- package/cdn/components/switch/switch.js +1 -1
- package/cdn/components/tab/tab.js +1 -1
- package/cdn/components/tab-group/tab-group.js +3 -3
- package/cdn/components/tab-group/tab-group.styles.js +1 -1
- package/cdn/components/tab-panel/tab-panel.js +2 -2
- package/cdn/components/tab-panel/tab-panel.styles.js +1 -1
- package/cdn/components/table-action/table-action.d.ts +2 -0
- package/cdn/components/table-action/table-action.js +1 -1
- package/cdn/components/table-container/table-container.js +1 -1
- package/cdn/components/table-header-row/table-header-row.js +3 -3
- package/cdn/components/table-of-contents/table-of-contents.js +2 -2
- package/cdn/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/cdn/components/table-row/table-row.js +3 -3
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/components/tree/tree.d.ts +1 -1
- package/cdn/components/tree/tree.js +3 -3
- package/cdn/components/tree-item/tree-item.js +2 -2
- package/cdn/custom-elements.json +68 -26
- package/cdn/design-system.js +53 -53
- package/cdn/internal/components/date-field/date-field.js +2 -0
- package/cdn/internal/components/filter-base/filter-base.styles.js +1 -0
- package/cdn/internal/components/form-selectable-card/form-selectable-card.js +3 -7
- package/cdn/internal/components/form-toggle-button/form-toggle-button.js +2 -6
- package/cdn/themes/dsa-wc-theme.css +22 -1
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +22 -1
- package/cdn/vscode.html-custom-data.json +14 -2
- package/cdn/web-types.json +53 -8
- package/dist/chunks/{chunk.BVJYG2SX.js → chunk.2I63PZSO.js} +1 -7
- package/dist/chunks/{chunk.WIJ5PZTL.js → chunk.2LB4AUIL.js} +1 -1
- package/dist/chunks/{chunk.FE77T4YV.js → chunk.2NY5MPRL.js} +2 -3
- package/dist/chunks/{chunk.44PC44MV.js → chunk.46IV7V5Z.js} +2 -1
- package/dist/chunks/{chunk.LGVJZXUH.js → chunk.6G6RGA23.js} +1 -0
- package/dist/chunks/{chunk.L6UOW2AY.js → chunk.6KJSL5LS.js} +13 -0
- package/dist/chunks/{chunk.CKP37TED.js → chunk.7MGIRC6M.js} +1 -1
- package/dist/chunks/{chunk.4ZTY4RLW.js → chunk.7TG3DZTW.js} +1 -1
- package/dist/chunks/{chunk.EXD4UGIK.js → chunk.A3SHXMQF.js} +1 -1
- package/dist/chunks/{chunk.TXDB6HM4.js → chunk.AXRKD7DS.js} +2 -0
- package/dist/chunks/{chunk.6PBTRK6C.js → chunk.B4DA7JH6.js} +1 -1
- package/dist/chunks/{chunk.QQOPMOYX.js → chunk.BC35J2XZ.js} +2 -2
- package/dist/chunks/{chunk.SBO2HJFC.js → chunk.CHUBPDIO.js} +3 -4
- package/dist/chunks/{chunk.3332LWML.js → chunk.DFNCZLQM.js} +1 -1
- package/dist/chunks/{chunk.BR2432LA.js → chunk.DONQDIEN.js} +6 -0
- package/dist/chunks/{chunk.FGPLOCXU.js → chunk.DQFLHN3N.js} +1 -1
- package/dist/chunks/{chunk.E3IQDNCT.js → chunk.ENRRKDIB.js} +1 -0
- package/dist/chunks/{chunk.YVUJ2MK6.js → chunk.F4IJ3EXV.js} +1 -0
- package/dist/chunks/{chunk.KR5EMEBO.js → chunk.GIRLDLV3.js} +19 -3
- package/dist/chunks/{chunk.5NAZU6VJ.js → chunk.HFNQK43R.js} +0 -4
- package/dist/chunks/{chunk.P7IPRHLL.js → chunk.HH6M5ISS.js} +1 -3
- package/dist/chunks/{chunk.IG7F6FJH.js → chunk.I26LWXXM.js} +3 -23
- package/dist/chunks/{chunk.7EMAFCV4.js → chunk.J5XUN4RX.js} +1 -1
- package/dist/chunks/{chunk.QDXFBING.js → chunk.JAN26V2T.js} +1 -1
- package/dist/chunks/{chunk.62K7FKPD.js → chunk.JHQA2R5B.js} +0 -2
- package/dist/chunks/{chunk.VQ2ZMSUF.js → chunk.JKNWQHLV.js} +1 -1
- package/dist/chunks/{chunk.LOM2QK4T.js → chunk.KIN7BJ2S.js} +1 -0
- package/dist/chunks/{chunk.DRR77YKL.js → chunk.LCNXSDAI.js} +1 -1
- package/dist/chunks/{chunk.COM2MNGD.js → chunk.LZPAAWTZ.js} +1 -0
- package/dist/chunks/{chunk.OMIL5X3X.js → chunk.N36MBM2Q.js} +15 -19
- package/dist/chunks/{chunk.OK2SQY2K.js → chunk.NEUS25YN.js} +1 -1
- package/dist/chunks/{chunk.C2GI7AW5.js → chunk.OBK2DHZB.js} +1 -1
- package/dist/chunks/{chunk.PQQ3VJ6P.js → chunk.OKT4R6YV.js} +1 -1
- package/dist/chunks/{chunk.YU4MKWNH.js → chunk.PFSXVNN2.js} +1 -1
- package/dist/chunks/{chunk.DTRA3OZD.js → chunk.PL7FGR6O.js} +11 -9
- package/dist/chunks/{chunk.WQVKSBYD.js → chunk.QXRV6D3A.js} +1 -0
- package/dist/chunks/{chunk.25GTO3QB.js → chunk.RH2CIWCE.js} +1 -1
- package/dist/chunks/{chunk.GXXH57EX.js → chunk.RQ2JUBGT.js} +1 -1
- package/dist/chunks/{chunk.5WAZTHII.js → chunk.S3E2SSO2.js} +1 -0
- package/dist/chunks/{chunk.AD6Q7RQZ.js → chunk.S4KNUHFV.js} +1 -1
- package/dist/chunks/{chunk.MJDFYFBT.js → chunk.SL2366FG.js} +2 -2
- package/dist/chunks/{chunk.6CMGI6X2.js → chunk.VC7GDGXF.js} +1 -1
- package/dist/chunks/{chunk.MWZRCNNO.js → chunk.VGW52PNG.js} +1 -1
- package/dist/chunks/{chunk.DHIOIHB2.js → chunk.WMH22J3Y.js} +1 -1
- package/dist/chunks/{chunk.7OU2KJ5C.js → chunk.WNBLXX3K.js} +34 -16
- package/dist/chunks/{chunk.SQJRLNS2.js → chunk.X6EAVUBY.js} +1 -1
- package/dist/chunks/{chunk.MONMQF4P.js → chunk.XCVEA2XZ.js} +2 -2
- package/dist/chunks/{chunk.PVXX2LT7.js → chunk.YSCXTTQZ.js} +1 -1
- package/dist/chunks/{chunk.5SU4CCQO.js → chunk.Z5AFKKBB.js} +1 -1
- package/dist/chunks/{chunk.RUSQQASU.js → chunk.ZK6Y3PH5.js} +5 -1
- package/dist/chunks/{chunk.75YDRKLZ.js → chunk.ZWLVZ5XN.js} +1 -0
- package/dist/components/accordion-group/accordion-group.js +1 -1
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/callout/callout.js +2 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/checkbox-button/checkbox-button.js +2 -2
- package/dist/components/checkbox-card/checkbox-card.js +2 -2
- package/dist/components/combobox/combobox.js +3 -3
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/dialog/dialog.js +3 -3
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/drawer/drawer.js +3 -3
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts +0 -1
- package/dist/components/file-upload/file-upload.js +1 -1
- package/dist/components/filter-counter/filter-counter.js +9 -9
- package/dist/components/filter-counter/filter-counter.styles.js +2 -2
- package/dist/components/filter-date/filter-date.js +5 -5
- package/dist/components/filter-date/filter-date.styles.js +2 -2
- package/dist/components/filter-range/filter-range.js +10 -10
- package/dist/components/filter-range/filter-range.styles.js +2 -2
- package/dist/components/filter-select/filter-select.js +9 -9
- package/dist/components/filter-select/filter-select.styles.js +2 -2
- 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.js +5 -5
- package/dist/components/input-amount/input-amount.js +1 -1
- package/dist/components/input-date/input-date.js +4 -4
- package/dist/components/input-date/input-date.styles.js +1 -1
- package/dist/components/input-native/input-native.js +1 -1
- package/dist/components/input-otp/input-otp.js +1 -1
- package/dist/components/input-phone/input-phone.js +4 -4
- package/dist/components/input-time/input-time.js +1 -1
- package/dist/components/menu-accordion/menu-accordion.d.ts +2 -1
- package/dist/components/menu-accordion/menu-accordion.js +1 -1
- package/dist/components/menu-navigation/menu-navigation.d.ts +5 -0
- package/dist/components/menu-navigation/menu-navigation.js +1 -1
- package/dist/components/navbar-link/navbar-link.js +1 -1
- package/dist/components/navbar-menu/navbar-menu.js +1 -1
- package/dist/components/pagination/pagination.js +5 -5
- package/dist/components/progress-ring/progress-ring.js +2 -2
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/quote/quote.js +1 -1
- package/dist/components/radio-button/radio-button.js +2 -2
- package/dist/components/radio-card/radio-card.js +2 -2
- package/dist/components/range-slider/range-slider.js +1 -1
- package/dist/components/search/search.js +1 -1
- package/dist/components/select/select.js +3 -3
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/sidenav/sidenav.js +2 -2
- package/dist/components/sidenav/sidenav.styles.js +1 -1
- package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/tab/tab.js +1 -1
- package/dist/components/tab-group/tab-group.js +3 -3
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.js +2 -2
- package/dist/components/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/table-action/table-action.d.ts +2 -0
- package/dist/components/table-action/table-action.js +1 -1
- package/dist/components/table-container/table-container.js +1 -1
- package/dist/components/table-header-row/table-header-row.js +3 -3
- package/dist/components/table-of-contents/table-of-contents.js +2 -2
- package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/dist/components/table-row/table-row.js +3 -3
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tree/tree.d.ts +1 -1
- package/dist/components/tree/tree.js +3 -3
- package/dist/components/tree-item/tree-item.js +2 -2
- package/dist/custom-elements.json +68 -26
- package/dist/design-system.js +53 -53
- package/dist/internal/components/date-field/date-field.js +2 -0
- package/dist/internal/components/filter-base/filter-base.styles.js +1 -0
- package/dist/internal/components/form-selectable-card/form-selectable-card.js +3 -7
- package/dist/internal/components/form-toggle-button/form-toggle-button.js +2 -6
- package/dist/themes/dsa-wc-theme.css +22 -1
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +22 -1
- package/dist/vscode.html-custom-data.json +14 -2
- package/dist/web-types.json +53 -8
- package/package.json +11 -11
- package/cdn/chunks/{chunk.7U7WP4XY.js → chunk.5EMAY7CZ.js} +1 -1
- package/cdn/chunks/{chunk.S7UTN2VW.js → chunk.5JPDE2SQ.js} +1 -1
- package/dist/chunks/{chunk.WBUREDTC.js → chunk.AKYLOFUZ.js} +1 -1
- package/dist/chunks/{chunk.5JVUW5SF.js → chunk.MXQ5RSBS.js} +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 2.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b47a3b7: `dsa-link--skip-content`: ajout d'une classe CSS pour les liens d'évitement de contenu
|
|
8
|
+
- 29e4ded: `tree` : ajout du mode de sélection des tree-items parents uniquement
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 1cc188c: `callout` : ajout d'un role region si un titre est ajouté
|
|
13
|
+
- 72533c0: Mise à jour vers Storybook 10
|
|
14
|
+
- 2373fb7: `breadcrumb-item`, `combobox`, `dialog`, `drawer`, `filter-date`, `progress-ring`, `select`, `sidenav`, `tab-group`, `tab-panel`, `table-of-content` : ajout de couleurs par défaut
|
|
15
|
+
- c0b261c: `input-date` : réduction de la largeur de la zone de saisie à son contenu
|
|
16
|
+
- Updated dependencies [def9509]
|
|
17
|
+
- @ds-autonomie/assets@1.4.10
|
|
18
|
+
|
|
19
|
+
## 2.12.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 36eadd8: `table-action` : ajout de l'attribut `deselect-all-on-close` afin de déselectionner toutes les lignes du tableau à la fermeture de la barre d'action
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- c5b74c6: Modèle de page Contact : ajout d'attributs autocomplete;
|
|
28
|
+
`checkbox`: Amélioration de l'accessibilité;
|
|
29
|
+
- c77b7b9: `button`, `checkbox`, `checkbox-button`, `checkbox-card`, `combobox`, `file-upload`, `filter-date`, `icon-button`, `range-slider`, `select`, `switch`, `radio-button`, `radio-card` : suppression d'attributs aria-disabled en doublon
|
|
30
|
+
- af1397a: `file-upload`: l'attribut `accept` peut être utilisé avec de la même manière que son équivalent natif.
|
|
31
|
+
- 82d5a6c: `menu-accordion`, `menu-navigation` : prise en charge du contenu dynamique
|
|
32
|
+
|
|
3
33
|
## 2.11.1
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -116,32 +116,13 @@ var DSAFileUpload = class extends ShoelaceElement {
|
|
|
116
116
|
handleClick() {
|
|
117
117
|
this.fileUploadInput.click();
|
|
118
118
|
}
|
|
119
|
-
handleChange(
|
|
120
|
-
|
|
119
|
+
handleChange() {
|
|
120
|
+
var _a;
|
|
121
|
+
const addedFiles = Array.from((_a = this.fileUploadInput.files) != null ? _a : []);
|
|
121
122
|
this.emit("dsa-file-upload", { detail: { files: addedFiles } });
|
|
122
123
|
this.value = this.fileUploadInput.value;
|
|
123
124
|
this.formControlController.updateValidity();
|
|
124
125
|
}
|
|
125
|
-
handleFileSelectedChange(event) {
|
|
126
|
-
var _a, _b;
|
|
127
|
-
if (!this.accept || !/^(change|drop)$/.test(event.type)) {
|
|
128
|
-
return Array.from((_a = this.fileUploadInput.files) != null ? _a : []);
|
|
129
|
-
}
|
|
130
|
-
if (((_b = this.fileUploadInput) == null ? void 0 : _b.files) === null) {
|
|
131
|
-
return [];
|
|
132
|
-
}
|
|
133
|
-
const acceptedTypes = new Set(this.accept.split(", "));
|
|
134
|
-
return Array.prototype.filter.call(
|
|
135
|
-
this.fileUploadInput.files,
|
|
136
|
-
(file) => {
|
|
137
|
-
var _a2;
|
|
138
|
-
const fileExtensionRegExp = /\.[^.]+$/;
|
|
139
|
-
const hasFileExtension = fileExtensionRegExp.test(file.name);
|
|
140
|
-
const [fileExtension] = !hasFileExtension ? [void 0] : (_a2 = fileExtensionRegExp.exec(file.name)) != null ? _a2 : [];
|
|
141
|
-
return acceptedTypes.has(file.type) || fileExtension && acceptedTypes.has(fileExtension);
|
|
142
|
-
}
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
126
|
handleInvalid(event) {
|
|
146
127
|
this.formControlController.setValidity(false);
|
|
147
128
|
this.formControlController.emitInvalidEvent(event);
|
|
@@ -247,7 +228,6 @@ var DSAFileUpload = class extends ShoelaceElement {
|
|
|
247
228
|
"button--disabled": this.disabled
|
|
248
229
|
})}
|
|
249
230
|
?disabled=${this.disabled}
|
|
250
|
-
aria-disabled=${this.disabled ? "true" : "false"}
|
|
251
231
|
aria-required=${o(this.required ? "true" : void 0)}
|
|
252
232
|
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
253
233
|
tabindex=${this.disabled ? "-1" : "0"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filter_base_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.MUSSBYDR.js";
|
|
4
4
|
import {
|
|
5
5
|
i
|
|
6
6
|
} from "./chunk.UKK3NS3L.js";
|
|
@@ -20,6 +20,7 @@ var filter_date_styles_default = i`
|
|
|
20
20
|
border-radius: var(--dsa-wc-filter-date-border-radius);
|
|
21
21
|
font: var(--dsa-wc-filter-date-font);
|
|
22
22
|
background-color: var(--dsa-wc-filter-date-background-color);
|
|
23
|
+
color: var(--dsa-wc-input-on-base-text-field-placeholder-color);
|
|
23
24
|
}
|
|
24
25
|
.filter-button > * {
|
|
25
26
|
line-height: 1.875rem;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.PZK4ARTY.js";
|
|
13
13
|
import {
|
|
14
14
|
checkbox_styles_default
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.CK3OZQKX.js";
|
|
16
16
|
import {
|
|
17
17
|
FormControlController
|
|
18
18
|
} from "./chunk.LLQW6MLS.js";
|
|
@@ -118,7 +118,7 @@ var DSACheckbox = class extends ShoelaceElement {
|
|
|
118
118
|
this.emit("dsa-focus");
|
|
119
119
|
}
|
|
120
120
|
handleDeactivatedChange() {
|
|
121
|
-
if (this.
|
|
121
|
+
if (this.readonly || this.parentReadonly) {
|
|
122
122
|
this.input.setAttribute("aria-disabled", "true");
|
|
123
123
|
} else {
|
|
124
124
|
this.input.removeAttribute("aria-disabled");
|
|
@@ -171,7 +171,7 @@ var DSACheckbox = class extends ShoelaceElement {
|
|
|
171
171
|
this.formControlController.updateValidity();
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
|
-
var _a, _b, _c;
|
|
174
|
+
var _a, _b, _c, _d;
|
|
175
175
|
const hasLabelSlot = this.hasSlotController.test("[default]");
|
|
176
176
|
const isDisabled = this.disabled || this.parentDisabled;
|
|
177
177
|
const isReadonly = this.readonly || this.parentReadonly;
|
|
@@ -198,7 +198,6 @@ var DSACheckbox = class extends ShoelaceElement {
|
|
|
198
198
|
})}
|
|
199
199
|
>
|
|
200
200
|
<label
|
|
201
|
-
for="input"
|
|
202
201
|
class=${e2({
|
|
203
202
|
checkbox: true,
|
|
204
203
|
"checkbox--checked": this.checked,
|
|
@@ -224,12 +223,11 @@ var DSACheckbox = class extends ShoelaceElement {
|
|
|
224
223
|
.checked=${l(this.checked)}
|
|
225
224
|
.disabled=${isDisabled}
|
|
226
225
|
.required=${this.required}
|
|
227
|
-
aria-label=${
|
|
228
|
-
(_b = this.accessibleName) != null ? _b : this.
|
|
226
|
+
aria-label=${o(
|
|
227
|
+
!hasLabelSlot ? (_b = this.accessibleName) != null ? _b : this.title : void 0
|
|
229
228
|
)}
|
|
230
|
-
aria-checked=${this.checked ? "true" : "false"}
|
|
231
229
|
aria-describedby=${o(this.error ? "error-text" : void 0)}
|
|
232
|
-
aria-disabled="${o(
|
|
230
|
+
aria-disabled="${o(isReadonly ? "true" : void 0)}"
|
|
233
231
|
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
234
232
|
@click=${this.handleClick}
|
|
235
233
|
@input=${this.handleInput}
|
|
@@ -250,7 +248,11 @@ var DSACheckbox = class extends ShoelaceElement {
|
|
|
250
248
|
|
|
251
249
|
<div part="label" class="checkbox__label">
|
|
252
250
|
${this.required ? x`<span class="checkbox__label-required">*</span>` : ""}
|
|
253
|
-
<slot
|
|
251
|
+
<slot
|
|
252
|
+
><dsa-visually-hidden
|
|
253
|
+
>${(_d = this.accessibleName) != null ? _d : this.title}</dsa-visually-hidden
|
|
254
|
+
></slot
|
|
255
|
+
>
|
|
254
256
|
</div>
|
|
255
257
|
</label>
|
|
256
258
|
${this.error && !isDeactivated && this.errorMessage ? renderFormElementErrors(this.errorMessage) : ""}
|
|
@@ -194,9 +194,7 @@ var DSASwitch = class extends ShoelaceElement {
|
|
|
194
194
|
.required=${this.required}
|
|
195
195
|
role="switch"
|
|
196
196
|
aria-checked=${this.checked ? "true" : "false"}
|
|
197
|
-
aria-disabled=${o(
|
|
198
|
-
this.disabled || this.readonly ? "true" : void 0
|
|
199
|
-
)}
|
|
197
|
+
aria-disabled=${o(this.readonly ? "true" : void 0)}
|
|
200
198
|
@click=${this.handleClick}
|
|
201
199
|
@input=${this.handleInput}
|
|
202
200
|
@invalid=${this.handleInvalid}
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.QVKLZ6B5.js";
|
|
4
4
|
import {
|
|
5
5
|
filter_select_styles_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.DT7G7VQ2.js";
|
|
7
7
|
import {
|
|
8
8
|
DSAInput
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.HD52LE6J.js";
|
|
10
10
|
import {
|
|
11
11
|
FilterBase
|
|
12
12
|
} from "./chunk.4Q2WUHBV.js";
|
|
@@ -61,10 +61,6 @@ var checkbox_styles_default = i`
|
|
|
61
61
|
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.checkbox__label:not(.checkbox--disabled) {
|
|
65
|
-
display: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
64
|
.checkbox--has-label .checkbox__label:not(.checkbox--disabled) {
|
|
69
65
|
display: inline-block;
|
|
70
66
|
color: var(--dsa-wc-checkbox-color);
|
|
@@ -40,6 +40,7 @@ var dialog_styles_default = i`
|
|
|
40
40
|
background-color: var(--dsa-wc-dialog-panel-color);
|
|
41
41
|
border-radius: var(--dsa-wc-dialog-panel-border-radius);
|
|
42
42
|
box-shadow: var(--dsa-wc-dialog-panel-box-shadow);
|
|
43
|
+
color: var(--dsa-wc-dialog-panel-text-color);
|
|
43
44
|
}
|
|
44
45
|
.dialog--small .dialog__panel {
|
|
45
46
|
width: var(--dsa-wc-dialog-size-small);
|
|
@@ -160,7 +160,6 @@ var DSARangeSlider = class extends ShoelaceElement {
|
|
|
160
160
|
max=${o(this.max)}
|
|
161
161
|
?disabled=${this.disabled}
|
|
162
162
|
aria-label=${ifDefinedAndNotEmpty(this.labelFrom)}
|
|
163
|
-
aria-disabled=${this.disabled}
|
|
164
163
|
@input=${this.onFromSliderInputChange}
|
|
165
164
|
@focus=${this.handleFromSliderFocus}
|
|
166
165
|
@blur=${this.handleFromSliderBlur}
|
|
@@ -178,7 +177,6 @@ var DSARangeSlider = class extends ShoelaceElement {
|
|
|
178
177
|
max=${o(this.max)}
|
|
179
178
|
?disabled=${this.disabled}
|
|
180
179
|
aria-label=${ifDefinedAndNotEmpty(this.labelTo)}
|
|
181
|
-
aria-disabled=${this.disabled}
|
|
182
180
|
@input=${this.onToSliderInputChange}
|
|
183
181
|
@focus=${this.handleToSliderFocus}
|
|
184
182
|
@blur=${this.handleToSliderBlur}
|
|
@@ -64,7 +64,7 @@ var DSATree = class extends ShoelaceElement {
|
|
|
64
64
|
this.selection = "single";
|
|
65
65
|
this.localize = new LocalizeController(this);
|
|
66
66
|
this.clickTarget = null;
|
|
67
|
-
// Initializes new items by setting the `selectable` property
|
|
67
|
+
// Initializes new items by setting the `selectable` property, the expanded/collapsed icons if any, and adding aria-disabled to leaves if the selection mode is 'parent'
|
|
68
68
|
this.initTreeItem = (item) => {
|
|
69
69
|
item.selectable = this.selection === "multiple";
|
|
70
70
|
["expand", "collapse"].filter((status) => !!this.querySelector(`[slot="${status}-icon"]`)).forEach((status) => {
|
|
@@ -80,6 +80,9 @@ var DSATree = class extends ShoelaceElement {
|
|
|
80
80
|
} else {
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
+
if (this.selection === "parent" && item.isLeaf) {
|
|
84
|
+
item.setAttribute("aria-disabled", "true");
|
|
85
|
+
}
|
|
83
86
|
};
|
|
84
87
|
}
|
|
85
88
|
async connectedCallback() {
|
|
@@ -133,6 +136,7 @@ var DSATree = class extends ShoelaceElement {
|
|
|
133
136
|
}
|
|
134
137
|
}
|
|
135
138
|
selectItem(selectedItem) {
|
|
139
|
+
var _a;
|
|
136
140
|
const previousSelection = [...this.selectedItems];
|
|
137
141
|
if (this.selection === "multiple") {
|
|
138
142
|
selectedItem.selected = !selectedItem.selected;
|
|
@@ -140,13 +144,21 @@ var DSATree = class extends ShoelaceElement {
|
|
|
140
144
|
selectedItem.expanded = true;
|
|
141
145
|
}
|
|
142
146
|
syncCheckboxes(selectedItem);
|
|
143
|
-
} else if (this.selection === "single" || selectedItem.isLeaf) {
|
|
147
|
+
} else if (this.selection === "single" || this.selection === "leaf" && selectedItem.isLeaf || this.selection === "parent" && !selectedItem.isLeaf) {
|
|
144
148
|
const items = this.getAllTreeItems();
|
|
145
149
|
for (const item of items) {
|
|
146
150
|
item.selected = item === selectedItem;
|
|
147
151
|
}
|
|
148
|
-
} else if (this.selection === "leaf") {
|
|
152
|
+
} else if (this.selection === "leaf" && !selectedItem.isLeaf) {
|
|
149
153
|
selectedItem.expanded = !selectedItem.expanded;
|
|
154
|
+
} else if (this.selection === "parent" && selectedItem.isLeaf) {
|
|
155
|
+
const parentItem = (_a = selectedItem.parentElement) == null ? void 0 : _a.closest("[role=treeitem]");
|
|
156
|
+
if (parentItem) {
|
|
157
|
+
const items = this.getAllTreeItems();
|
|
158
|
+
for (const item of items) {
|
|
159
|
+
item.selected = item === parentItem;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
150
162
|
}
|
|
151
163
|
const nextSelection = this.selectedItems;
|
|
152
164
|
if (previousSelection.length !== nextSelection.length || nextSelection.some((item) => !previousSelection.includes(item))) {
|
|
@@ -275,6 +287,10 @@ var DSATree = class extends ShoelaceElement {
|
|
|
275
287
|
);
|
|
276
288
|
for (const item of items) {
|
|
277
289
|
item.selectable = isSelectionMultiple;
|
|
290
|
+
item.setAttribute(
|
|
291
|
+
"aria-disabled",
|
|
292
|
+
item.disabled || (item.isLeaf && this.selection) === "parent" ? "true" : "false"
|
|
293
|
+
);
|
|
278
294
|
}
|
|
279
295
|
if (isSelectionMultiple) {
|
|
280
296
|
await this.updateComplete;
|
|
@@ -23,6 +23,7 @@ var DSATableAction = class extends ShoelaceElement {
|
|
|
23
23
|
super(...arguments);
|
|
24
24
|
this.localize = new LocalizeController(this);
|
|
25
25
|
this.show = false;
|
|
26
|
+
this.deselectAllOnClose = false;
|
|
26
27
|
}
|
|
27
28
|
handleClose() {
|
|
28
29
|
this.emit("dsa-table-actions-close");
|
|
@@ -40,7 +41,7 @@ var DSATableAction = class extends ShoelaceElement {
|
|
|
40
41
|
@click=${this.handleClose}
|
|
41
42
|
>
|
|
42
43
|
<dsa-icon slot="prefix" name="close" library="system"></dsa-icon>
|
|
43
|
-
${this.localize.term("close")}
|
|
44
|
+
${this.deselectAllOnClose ? this.localize.term("deselectAll") : this.localize.term("close")}
|
|
44
45
|
</dsa-button>
|
|
45
46
|
`;
|
|
46
47
|
}
|
|
@@ -52,6 +53,9 @@ __decorateClass([
|
|
|
52
53
|
__decorateClass([
|
|
53
54
|
n({ type: Boolean, reflect: true })
|
|
54
55
|
], DSATableAction.prototype, "show", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
n({ type: Boolean, attribute: "deselect-all-on-close" })
|
|
58
|
+
], DSATableAction.prototype, "deselectAllOnClose", 2);
|
|
55
59
|
DSATableAction = __decorateClass([
|
|
56
60
|
t("dsa-table-action")
|
|
57
61
|
], DSATableAction);
|
|
@@ -60,15 +60,6 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
60
60
|
this.collapsed = false;
|
|
61
61
|
this.sidenavInfo = false;
|
|
62
62
|
}
|
|
63
|
-
connectedCallback() {
|
|
64
|
-
super.connectedCallback();
|
|
65
|
-
const menuNavigation = this.querySelector(
|
|
66
|
-
"dsa-menu-navigation"
|
|
67
|
-
);
|
|
68
|
-
if (menuNavigation !== null) {
|
|
69
|
-
menuNavigation == null ? void 0 : menuNavigation.classList.add(this.level === 2 ? "level-2" : "level-1");
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
63
|
firstUpdated() {
|
|
73
64
|
this.body.hidden = !this.open;
|
|
74
65
|
this.body.style.height = this.open ? "auto" : "0";
|
|
@@ -99,6 +90,19 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
99
90
|
this.show();
|
|
100
91
|
}
|
|
101
92
|
}
|
|
93
|
+
updateChildrenClassName() {
|
|
94
|
+
const menuNavigation = this.querySelector(
|
|
95
|
+
"dsa-menu-navigation"
|
|
96
|
+
);
|
|
97
|
+
if (menuNavigation !== null) {
|
|
98
|
+
menuNavigation.level = this.level;
|
|
99
|
+
menuNavigation == null ? void 0 : menuNavigation.classList.remove("level-1", "level-2");
|
|
100
|
+
menuNavigation == null ? void 0 : menuNavigation.classList.add(this.level === 2 ? "level-2" : "level-1");
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
handleDefaultSlotChange() {
|
|
104
|
+
this.updateChildrenClassName();
|
|
105
|
+
}
|
|
102
106
|
/** Returns a text label based on the contents of the summary slot. */
|
|
103
107
|
getTextSummary(widthBadge = false) {
|
|
104
108
|
var _a, _b, _c, _d;
|
|
@@ -160,16 +164,7 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
160
164
|
}
|
|
161
165
|
}
|
|
162
166
|
handleLevelChange() {
|
|
163
|
-
|
|
164
|
-
"dsa-menu-navigation"
|
|
165
|
-
);
|
|
166
|
-
if (menuNavigation !== null) {
|
|
167
|
-
if (this.level === 2) {
|
|
168
|
-
menuNavigation.classList.add("level-2");
|
|
169
|
-
} else {
|
|
170
|
-
menuNavigation.classList.remove("level-2");
|
|
171
|
-
}
|
|
172
|
-
}
|
|
167
|
+
this.updateChildrenClassName();
|
|
173
168
|
}
|
|
174
169
|
async handleExpandedChange() {
|
|
175
170
|
await this.updateComplete;
|
|
@@ -265,6 +260,7 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
265
260
|
id="content"
|
|
266
261
|
class="menu-accordion__content"
|
|
267
262
|
aria-labelledby="header"
|
|
263
|
+
@slotchange=${this.handleDefaultSlotChange}
|
|
268
264
|
></slot>
|
|
269
265
|
</div>
|
|
270
266
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
select_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.UEHJW6ED.js";
|
|
4
4
|
import {
|
|
5
5
|
scrollIntoView
|
|
6
6
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -541,7 +541,7 @@ var DSASelect = class extends FormControlLayout {
|
|
|
541
541
|
aria-label=${ifDefinedAndNotEmpty(
|
|
542
542
|
hasLabel ? void 0 : (_b = this.accessibleName) != null ? _b : this.title
|
|
543
543
|
)}
|
|
544
|
-
aria-disabled=${
|
|
544
|
+
aria-disabled=${o(this.readonly ? "true" : void 0)}
|
|
545
545
|
aria-describedby=${this.getDescriptionIds()}
|
|
546
546
|
aria-activedescendant=${(_d = (_c = this.currentOption) == null ? void 0 : _c.id) != null ? _d : ""}
|
|
547
547
|
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
@@ -66,6 +66,19 @@ var DSATableContainer = class extends LoadingStateElement {
|
|
|
66
66
|
}
|
|
67
67
|
handleTableActionsClose() {
|
|
68
68
|
this.showTableActions = false;
|
|
69
|
+
const actionBar = this.querySelector("dsa-table-action");
|
|
70
|
+
const headerRow = this.querySelector(
|
|
71
|
+
"dsa-table-header-row"
|
|
72
|
+
);
|
|
73
|
+
if (actionBar && headerRow && actionBar.deselectAllOnClose) {
|
|
74
|
+
const tableRows = [
|
|
75
|
+
...this.querySelectorAll("dsa-table-row")
|
|
76
|
+
];
|
|
77
|
+
tableRows.forEach((row) => row.selected = false);
|
|
78
|
+
headerRow.checkbox.checked = false;
|
|
79
|
+
headerRow.checkbox.indeterminate = false;
|
|
80
|
+
headerRow.selected = false;
|
|
81
|
+
}
|
|
69
82
|
}
|
|
70
83
|
handleTableSelection(event) {
|
|
71
84
|
this.showTableActions = event.detail.selectedRows.length > 0;
|
|
@@ -34,6 +34,7 @@ var filter_base_styles_default = i`
|
|
|
34
34
|
font: var(--dsa-wc-input-text-field-font);
|
|
35
35
|
box-shadow: var(--dsa-wc-shadow-small);
|
|
36
36
|
background: var(--dsa-wc-select-listbox-background-color);
|
|
37
|
+
color: var(--dsa-color-text-on-base-primary);
|
|
37
38
|
border: solid var(--dsa-wc-select-listbox-border-width)
|
|
38
39
|
var(--dsa-wc-select-listbox-border-color);
|
|
39
40
|
border-radius: var(--dsa-wc-select-listbox-border-radius);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.4Q2WUHBV.js";
|
|
4
4
|
import {
|
|
5
5
|
filter_date_styles_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.3ZGSESNP.js";
|
|
7
7
|
import {
|
|
8
8
|
l
|
|
9
9
|
} from "./chunk.E6U524GP.js";
|
|
@@ -268,9 +268,6 @@ var DSAFilterDate = class extends FilterBase {
|
|
|
268
268
|
)}
|
|
269
269
|
@dsa-change=${this.handleChange}
|
|
270
270
|
?disabled=${this.disabled}
|
|
271
|
-
aria-disabled=${o(
|
|
272
|
-
this.disabled || this.readonly ? "true" : void 0
|
|
273
|
-
)}
|
|
274
271
|
?readonly=${this.readonly}
|
|
275
272
|
parent-name=${this.range ? `${this.label} - ${this.localize.term("startDate")}` : this.label}
|
|
276
273
|
description=${this.getDescriptionText("start")}
|
|
@@ -287,9 +284,6 @@ var DSAFilterDate = class extends FilterBase {
|
|
|
287
284
|
.value=${(_a = parseDateRange(this.value)[1]) != null ? _a : ""}
|
|
288
285
|
@dsa-change=${this.handleChange}
|
|
289
286
|
?disabled=${this.disabled}
|
|
290
|
-
aria-disabled=${o(
|
|
291
|
-
this.disabled || this.readonly ? "true" : void 0
|
|
292
|
-
)}
|
|
293
287
|
?readonly=${this.readonly}
|
|
294
288
|
parent-name=${`${this.label} - ${this.localize.term(
|
|
295
289
|
"endDate"
|
|
@@ -199,7 +199,7 @@ var FormToggleButton = class extends ShoelaceElement {
|
|
|
199
199
|
this.emit("dsa-focus");
|
|
200
200
|
}
|
|
201
201
|
handleDeactivatedChange() {
|
|
202
|
-
if (this.
|
|
202
|
+
if (this.readonly || this.parentReadonly) {
|
|
203
203
|
this.button.setAttribute("aria-disabled", "true");
|
|
204
204
|
} else {
|
|
205
205
|
this.button.removeAttribute("aria-disabled");
|
|
@@ -216,7 +216,6 @@ var FormToggleButton = class extends ShoelaceElement {
|
|
|
216
216
|
render() {
|
|
217
217
|
const isDisabled = this.disabled || this.parentDisabled;
|
|
218
218
|
const isReadonly = this.readonly || this.parentReadonly;
|
|
219
|
-
const isDeactivated = isDisabled || isReadonly;
|
|
220
219
|
if (!this.hasSlotController.test("[default]")) {
|
|
221
220
|
a11yWarning(
|
|
222
221
|
`<dsa-${this.type}-card> requires an accessible name in the default slot for accessibility`
|
|
@@ -242,7 +241,7 @@ var FormToggleButton = class extends ShoelaceElement {
|
|
|
242
241
|
"button--checkbox": this.type === "checkbox"
|
|
243
242
|
})}
|
|
244
243
|
?disabled=${isDisabled}
|
|
245
|
-
aria-disabled=${o(
|
|
244
|
+
aria-disabled=${o(isReadonly ? "true" : void 0)}
|
|
246
245
|
aria-invalid=${o(
|
|
247
246
|
this.type === "checkbox" && this.error ? "true" : void 0
|
|
248
247
|
)}
|