@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
|
@@ -2267,7 +2267,13 @@
|
|
|
2267
2267
|
{
|
|
2268
2268
|
"name": "dsa-menu-navigation",
|
|
2269
2269
|
"description": "Menus Navigation provide a list of links for the user to choose from.\n---\n\n\n### **Slots:**\n - _default_ - The menu's content, including links, menu labels, menu-accordions, and dividers.",
|
|
2270
|
-
"attributes": [
|
|
2270
|
+
"attributes": [
|
|
2271
|
+
{
|
|
2272
|
+
"name": "level",
|
|
2273
|
+
"description": "(internal) The level of the parent menu accordion",
|
|
2274
|
+
"values": [{ "name": "1" }, { "name": "2" }]
|
|
2275
|
+
}
|
|
2276
|
+
],
|
|
2271
2277
|
"references": []
|
|
2272
2278
|
},
|
|
2273
2279
|
{
|
|
@@ -3533,6 +3539,11 @@
|
|
|
3533
3539
|
"name": "show",
|
|
3534
3540
|
"description": "`true` if it should be visible.",
|
|
3535
3541
|
"values": []
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
"name": "deselect-all-on-close",
|
|
3545
|
+
"description": "Should deselect all rows on close",
|
|
3546
|
+
"values": []
|
|
3536
3547
|
}
|
|
3537
3548
|
],
|
|
3538
3549
|
"references": []
|
|
@@ -4052,7 +4063,8 @@
|
|
|
4052
4063
|
"values": [
|
|
4053
4064
|
{ "name": "single" },
|
|
4054
4065
|
{ "name": "multiple" },
|
|
4055
|
-
{ "name": "leaf" }
|
|
4066
|
+
{ "name": "leaf" },
|
|
4067
|
+
{ "name": "parent" }
|
|
4056
4068
|
]
|
|
4057
4069
|
}
|
|
4058
4070
|
],
|
package/cdn/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@ds-autonomie/web-components",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework-config": {
|
|
7
7
|
"enable-when": {
|
|
@@ -4956,10 +4956,6 @@
|
|
|
4956
4956
|
"name": "handleChange",
|
|
4957
4957
|
"value": {}
|
|
4958
4958
|
},
|
|
4959
|
-
{
|
|
4960
|
-
"name": "handleFileSelectedChange",
|
|
4961
|
-
"value": {}
|
|
4962
|
-
},
|
|
4963
4959
|
{
|
|
4964
4960
|
"name": "handleInvalid",
|
|
4965
4961
|
"value": {}
|
|
@@ -9108,6 +9104,14 @@
|
|
|
9108
9104
|
"name": "handleSummaryKeyDown",
|
|
9109
9105
|
"value": {}
|
|
9110
9106
|
},
|
|
9107
|
+
{
|
|
9108
|
+
"name": "updateChildrenClassName",
|
|
9109
|
+
"value": {}
|
|
9110
|
+
},
|
|
9111
|
+
{
|
|
9112
|
+
"name": "handleDefaultSlotChange",
|
|
9113
|
+
"value": {}
|
|
9114
|
+
},
|
|
9111
9115
|
{
|
|
9112
9116
|
"name": "getTextSummary",
|
|
9113
9117
|
"description": "Returns a text label based on the contents of the summary slot.",
|
|
@@ -9404,14 +9408,41 @@
|
|
|
9404
9408
|
"type": "HTMLSlotElement"
|
|
9405
9409
|
}
|
|
9406
9410
|
},
|
|
9411
|
+
{
|
|
9412
|
+
"name": "level",
|
|
9413
|
+
"description": "(internal) The level of the parent menu accordion",
|
|
9414
|
+
"value": {
|
|
9415
|
+
"type": "1 | 2"
|
|
9416
|
+
}
|
|
9417
|
+
},
|
|
9418
|
+
{
|
|
9419
|
+
"name": "updateChildrenClassName",
|
|
9420
|
+
"value": {}
|
|
9421
|
+
},
|
|
9422
|
+
{
|
|
9423
|
+
"name": "handleSlotChange",
|
|
9424
|
+
"value": {}
|
|
9425
|
+
},
|
|
9407
9426
|
{
|
|
9408
9427
|
"name": "handleKeyDown",
|
|
9409
9428
|
"value": {}
|
|
9429
|
+
},
|
|
9430
|
+
{
|
|
9431
|
+
"name": "handleLevelChange",
|
|
9432
|
+
"value": {}
|
|
9410
9433
|
}
|
|
9411
9434
|
],
|
|
9412
9435
|
"events": []
|
|
9413
9436
|
},
|
|
9414
|
-
"attributes": [
|
|
9437
|
+
"attributes": [
|
|
9438
|
+
{
|
|
9439
|
+
"name": "level",
|
|
9440
|
+
"description": "(internal) The level of the parent menu accordion",
|
|
9441
|
+
"value": {
|
|
9442
|
+
"type": "1 | 2"
|
|
9443
|
+
}
|
|
9444
|
+
}
|
|
9445
|
+
]
|
|
9415
9446
|
},
|
|
9416
9447
|
{
|
|
9417
9448
|
"name": "dsa-mutation-observer",
|
|
@@ -14389,6 +14420,13 @@
|
|
|
14389
14420
|
"type": "boolean"
|
|
14390
14421
|
}
|
|
14391
14422
|
},
|
|
14423
|
+
{
|
|
14424
|
+
"name": "deselectAllOnClose",
|
|
14425
|
+
"description": "Should deselect all rows on close",
|
|
14426
|
+
"value": {
|
|
14427
|
+
"type": "boolean"
|
|
14428
|
+
}
|
|
14429
|
+
},
|
|
14392
14430
|
{
|
|
14393
14431
|
"name": "handleClose",
|
|
14394
14432
|
"value": {}
|
|
@@ -14408,6 +14446,13 @@
|
|
|
14408
14446
|
"value": {
|
|
14409
14447
|
"type": "boolean"
|
|
14410
14448
|
}
|
|
14449
|
+
},
|
|
14450
|
+
{
|
|
14451
|
+
"name": "deselect-all-on-close",
|
|
14452
|
+
"description": "Should deselect all rows on close",
|
|
14453
|
+
"value": {
|
|
14454
|
+
"type": "boolean"
|
|
14455
|
+
}
|
|
14411
14456
|
}
|
|
14412
14457
|
]
|
|
14413
14458
|
},
|
|
@@ -16431,7 +16476,7 @@
|
|
|
16431
16476
|
"name": "selection",
|
|
16432
16477
|
"description": "The selection behavior of the tree. Single selection allows only one node to be selected at a time. Multiple\ndisplays checkboxes and allows more than one node to be selected. Leaf allows only leaf nodes to be selected.",
|
|
16433
16478
|
"value": {
|
|
16434
|
-
"type": "'single' | 'multiple' | 'leaf'"
|
|
16479
|
+
"type": "'single' | 'multiple' | 'leaf' | 'parent'"
|
|
16435
16480
|
}
|
|
16436
16481
|
},
|
|
16437
16482
|
{
|
|
@@ -16521,7 +16566,7 @@
|
|
|
16521
16566
|
"name": "selection",
|
|
16522
16567
|
"description": "The selection behavior of the tree. Single selection allows only one node to be selected at a time. Multiple\ndisplays checkboxes and allows more than one node to be selected. Leaf allows only leaf nodes to be selected.",
|
|
16523
16568
|
"value": {
|
|
16524
|
-
"type": "'single' | 'multiple' | 'leaf'"
|
|
16569
|
+
"type": "'single' | 'multiple' | 'leaf' | 'parent'"
|
|
16525
16570
|
}
|
|
16526
16571
|
}
|
|
16527
16572
|
]
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.7M5CM6FS.js";
|
|
4
4
|
import {
|
|
5
5
|
filter_date_styles_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.46IV7V5Z.js";
|
|
7
7
|
import {
|
|
8
8
|
formatDateRange,
|
|
9
9
|
getDateFromISO,
|
|
@@ -255,9 +255,6 @@ var DSAFilterDate = class extends FilterBase {
|
|
|
255
255
|
)}
|
|
256
256
|
@dsa-change=${this.handleChange}
|
|
257
257
|
?disabled=${this.disabled}
|
|
258
|
-
aria-disabled=${ifDefined(
|
|
259
|
-
this.disabled || this.readonly ? "true" : void 0
|
|
260
|
-
)}
|
|
261
258
|
?readonly=${this.readonly}
|
|
262
259
|
parent-name=${this.range ? `${this.label} - ${this.localize.term("startDate")}` : this.label}
|
|
263
260
|
description=${this.getDescriptionText("start")}
|
|
@@ -274,9 +271,6 @@ var DSAFilterDate = class extends FilterBase {
|
|
|
274
271
|
.value=${(_a = parseDateRange(this.value)[1]) != null ? _a : ""}
|
|
275
272
|
@dsa-change=${this.handleChange}
|
|
276
273
|
?disabled=${this.disabled}
|
|
277
|
-
aria-disabled=${ifDefined(
|
|
278
|
-
this.disabled || this.readonly ? "true" : void 0
|
|
279
|
-
)}
|
|
280
274
|
?readonly=${this.readonly}
|
|
281
275
|
parent-name=${`${this.label} - ${this.localize.term(
|
|
282
276
|
"endDate"
|
|
@@ -192,7 +192,7 @@ var FormToggleButton = class extends ShoelaceElement {
|
|
|
192
192
|
this.emit("dsa-focus");
|
|
193
193
|
}
|
|
194
194
|
handleDeactivatedChange() {
|
|
195
|
-
if (this.
|
|
195
|
+
if (this.readonly || this.parentReadonly) {
|
|
196
196
|
this.button.setAttribute("aria-disabled", "true");
|
|
197
197
|
} else {
|
|
198
198
|
this.button.removeAttribute("aria-disabled");
|
|
@@ -209,7 +209,6 @@ var FormToggleButton = class extends ShoelaceElement {
|
|
|
209
209
|
render() {
|
|
210
210
|
const isDisabled = this.disabled || this.parentDisabled;
|
|
211
211
|
const isReadonly = this.readonly || this.parentReadonly;
|
|
212
|
-
const isDeactivated = isDisabled || isReadonly;
|
|
213
212
|
if (!this.hasSlotController.test("[default]")) {
|
|
214
213
|
a11yWarning(
|
|
215
214
|
`<dsa-${this.type}-card> requires an accessible name in the default slot for accessibility`
|
|
@@ -235,7 +234,7 @@ var FormToggleButton = class extends ShoelaceElement {
|
|
|
235
234
|
"button--checkbox": this.type === "checkbox"
|
|
236
235
|
})}
|
|
237
236
|
?disabled=${isDisabled}
|
|
238
|
-
aria-disabled=${ifDefined(
|
|
237
|
+
aria-disabled=${ifDefined(isReadonly ? "true" : void 0)}
|
|
239
238
|
aria-invalid=${ifDefined(
|
|
240
239
|
this.type === "checkbox" && this.error ? "true" : void 0
|
|
241
240
|
)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filter_base_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ENRRKDIB.js";
|
|
4
4
|
|
|
5
5
|
// src/components/filter-date/filter-date.styles.ts
|
|
6
6
|
import { css } from "lit";
|
|
@@ -18,6 +18,7 @@ var filter_date_styles_default = css`
|
|
|
18
18
|
border-radius: var(--dsa-wc-filter-date-border-radius);
|
|
19
19
|
font: var(--dsa-wc-filter-date-font);
|
|
20
20
|
background-color: var(--dsa-wc-filter-date-background-color);
|
|
21
|
+
color: var(--dsa-wc-input-on-base-text-field-placeholder-color);
|
|
21
22
|
}
|
|
22
23
|
.filter-button > * {
|
|
23
24
|
line-height: 1.875rem;
|
|
@@ -38,6 +38,7 @@ var dialog_styles_default = css`
|
|
|
38
38
|
background-color: var(--dsa-wc-dialog-panel-color);
|
|
39
39
|
border-radius: var(--dsa-wc-dialog-panel-border-radius);
|
|
40
40
|
box-shadow: var(--dsa-wc-dialog-panel-box-shadow);
|
|
41
|
+
color: var(--dsa-wc-dialog-panel-text-color);
|
|
41
42
|
}
|
|
42
43
|
.dialog--small .dialog__panel {
|
|
43
44
|
width: var(--dsa-wc-dialog-size-small);
|
|
@@ -59,6 +59,19 @@ var DSATableContainer = class extends LoadingStateElement {
|
|
|
59
59
|
}
|
|
60
60
|
handleTableActionsClose() {
|
|
61
61
|
this.showTableActions = false;
|
|
62
|
+
const actionBar = this.querySelector("dsa-table-action");
|
|
63
|
+
const headerRow = this.querySelector(
|
|
64
|
+
"dsa-table-header-row"
|
|
65
|
+
);
|
|
66
|
+
if (actionBar && headerRow && actionBar.deselectAllOnClose) {
|
|
67
|
+
const tableRows = [
|
|
68
|
+
...this.querySelectorAll("dsa-table-row")
|
|
69
|
+
];
|
|
70
|
+
tableRows.forEach((row) => row.selected = false);
|
|
71
|
+
headerRow.checkbox.checked = false;
|
|
72
|
+
headerRow.checkbox.indeterminate = false;
|
|
73
|
+
headerRow.selected = false;
|
|
74
|
+
}
|
|
62
75
|
}
|
|
63
76
|
handleTableSelection(event) {
|
|
64
77
|
this.showTableActions = event.detail.selectedRows.length > 0;
|
|
@@ -493,6 +493,7 @@ var DSAInternalDateField = class extends ShoelaceElement {
|
|
|
493
493
|
class=${className}
|
|
494
494
|
?disabled=${this.disabled}
|
|
495
495
|
?readonly=${this.readonly}
|
|
496
|
+
aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
|
|
496
497
|
?required=${this.required}
|
|
497
498
|
aria-label=${`${ariaLabel} - ${this.parentName}`}
|
|
498
499
|
aria-describedby="description"
|
|
@@ -530,6 +531,7 @@ var DSAInternalDateField = class extends ShoelaceElement {
|
|
|
530
531
|
name=${ifDefinedAndNotEmpty(this.name)}
|
|
531
532
|
?disabled=${this.disabled}
|
|
532
533
|
?readonly=${this.readonly}
|
|
534
|
+
aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
|
|
533
535
|
?required=${this.required}
|
|
534
536
|
min=${ifDefined(this.min)}
|
|
535
537
|
max=${ifDefined(this.max)}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.CMJ2SRTL.js";
|
|
10
10
|
import {
|
|
11
11
|
combobox_styles_default
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.A3SHXMQF.js";
|
|
13
13
|
import {
|
|
14
14
|
FormControlController
|
|
15
15
|
} from "./chunk.APQFQQX5.js";
|
|
@@ -693,7 +693,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
693
693
|
aria-label=${ifDefinedAndNotEmpty(
|
|
694
694
|
hasLabel ? void 0 : (_b = this.accessibleName) != null ? _b : this.title
|
|
695
695
|
)}
|
|
696
|
-
aria-disabled=${
|
|
696
|
+
aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
|
|
697
697
|
aria-describedby=${this.getDescriptionIds()}
|
|
698
698
|
aria-activedescendant=${(_d = (_c = this.currentOption) == null ? void 0 : _c.id) != null ? _d : ""}
|
|
699
699
|
aria-invalid=${ifDefined(this.error ? "true" : void 0)}
|
|
@@ -185,7 +185,7 @@ var FormSelectableCard = class extends ShoelaceElement {
|
|
|
185
185
|
this.emit("dsa-focus");
|
|
186
186
|
}
|
|
187
187
|
handleDisabledChange() {
|
|
188
|
-
if (this.
|
|
188
|
+
if (this.readonly || this.parentReadonly) {
|
|
189
189
|
this.button.setAttribute("aria-disabled", "true");
|
|
190
190
|
} else {
|
|
191
191
|
this.button.removeAttribute("aria-disabled");
|
|
@@ -202,7 +202,6 @@ var FormSelectableCard = class extends ShoelaceElement {
|
|
|
202
202
|
render() {
|
|
203
203
|
const isDisabled = this.disabled || this.parentDisabled;
|
|
204
204
|
const isReadonly = this.readonly || this.parentReadonly;
|
|
205
|
-
const isDeactivated = isDisabled || isReadonly;
|
|
206
205
|
return html`
|
|
207
206
|
<div part="base">
|
|
208
207
|
<button
|
|
@@ -224,7 +223,7 @@ var FormSelectableCard = class extends ShoelaceElement {
|
|
|
224
223
|
"selectable-card--contrasted-borders": this.contrastedBorders
|
|
225
224
|
})}
|
|
226
225
|
?disabled=${isDisabled}
|
|
227
|
-
aria-disabled=${ifDefined(
|
|
226
|
+
aria-disabled=${ifDefined(isReadonly ? "true" : void 0)}
|
|
228
227
|
aria-invalid=${ifDefined(
|
|
229
228
|
this.type === "checkbox" && this.error ? "true" : void 0
|
|
230
229
|
)}
|
|
@@ -312,7 +311,7 @@ __decorateClass([
|
|
|
312
311
|
property({ type: Boolean, reflect: true, attribute: "contrasted-borders" })
|
|
313
312
|
], FormSelectableCard.prototype, "contrastedBorders", 2);
|
|
314
313
|
__decorateClass([
|
|
315
|
-
watch(["
|
|
314
|
+
watch(["readonly", "parentReadonly"], {
|
|
316
315
|
waitUntilFirstUpdate: true
|
|
317
316
|
})
|
|
318
317
|
], FormSelectableCard.prototype, "handleDisabledChange", 1);
|
|
@@ -96,7 +96,7 @@ var DSAIconButton = class extends ShoelaceElement {
|
|
|
96
96
|
isLink && this.target ? "noreferrer noopener" : void 0
|
|
97
97
|
)}
|
|
98
98
|
role=${ifDefined(isLink ? void 0 : "button")}
|
|
99
|
-
aria-disabled=${this.disabled ? "true" :
|
|
99
|
+
aria-disabled=${ifDefined(this.disabled && isLink ? "true" : void 0)}
|
|
100
100
|
aria-pressed=${ifDefined(this.toggle ? this.pressed : void 0)}
|
|
101
101
|
aria-label=${ifDefinedAndNotEmpty(this.label)}
|
|
102
102
|
aria-describedby="description"
|
|
@@ -26,6 +26,12 @@ var DSACallout = class extends ShoelaceElement {
|
|
|
26
26
|
class=${classMap({
|
|
27
27
|
callout: true
|
|
28
28
|
})}
|
|
29
|
+
role=${ifDefined(
|
|
30
|
+
this.calloutTitle || this.title ? "region" : void 0
|
|
31
|
+
)}
|
|
32
|
+
aria-labelledby=${ifDefined(
|
|
33
|
+
this.calloutTitle || this.title ? "header" : void 0
|
|
34
|
+
)}
|
|
29
35
|
>
|
|
30
36
|
<div class="callout__text">
|
|
31
37
|
${this.calloutTitle || this.title ? html`
|
|
@@ -32,6 +32,7 @@ var filter_base_styles_default = css`
|
|
|
32
32
|
font: var(--dsa-wc-input-text-field-font);
|
|
33
33
|
box-shadow: var(--dsa-wc-shadow-small);
|
|
34
34
|
background: var(--dsa-wc-select-listbox-background-color);
|
|
35
|
+
color: var(--dsa-color-text-on-base-primary);
|
|
35
36
|
border: solid var(--dsa-wc-select-listbox-border-width)
|
|
36
37
|
var(--dsa-wc-select-listbox-border-color);
|
|
37
38
|
border-radius: var(--dsa-wc-select-listbox-border-radius);
|
|
@@ -60,7 +60,7 @@ var DSATree = class extends ShoelaceElement {
|
|
|
60
60
|
this.selection = "single";
|
|
61
61
|
this.localize = new LocalizeController(this);
|
|
62
62
|
this.clickTarget = null;
|
|
63
|
-
// Initializes new items by setting the `selectable` property
|
|
63
|
+
// 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'
|
|
64
64
|
this.initTreeItem = (item) => {
|
|
65
65
|
item.selectable = this.selection === "multiple";
|
|
66
66
|
["expand", "collapse"].filter((status) => !!this.querySelector(`[slot="${status}-icon"]`)).forEach((status) => {
|
|
@@ -76,6 +76,9 @@ var DSATree = class extends ShoelaceElement {
|
|
|
76
76
|
} else {
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
+
if (this.selection === "parent" && item.isLeaf) {
|
|
80
|
+
item.setAttribute("aria-disabled", "true");
|
|
81
|
+
}
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
async connectedCallback() {
|
|
@@ -129,6 +132,7 @@ var DSATree = class extends ShoelaceElement {
|
|
|
129
132
|
}
|
|
130
133
|
}
|
|
131
134
|
selectItem(selectedItem) {
|
|
135
|
+
var _a;
|
|
132
136
|
const previousSelection = [...this.selectedItems];
|
|
133
137
|
if (this.selection === "multiple") {
|
|
134
138
|
selectedItem.selected = !selectedItem.selected;
|
|
@@ -136,13 +140,21 @@ var DSATree = class extends ShoelaceElement {
|
|
|
136
140
|
selectedItem.expanded = true;
|
|
137
141
|
}
|
|
138
142
|
syncCheckboxes(selectedItem);
|
|
139
|
-
} else if (this.selection === "single" || selectedItem.isLeaf) {
|
|
143
|
+
} else if (this.selection === "single" || this.selection === "leaf" && selectedItem.isLeaf || this.selection === "parent" && !selectedItem.isLeaf) {
|
|
140
144
|
const items = this.getAllTreeItems();
|
|
141
145
|
for (const item of items) {
|
|
142
146
|
item.selected = item === selectedItem;
|
|
143
147
|
}
|
|
144
|
-
} else if (this.selection === "leaf") {
|
|
148
|
+
} else if (this.selection === "leaf" && !selectedItem.isLeaf) {
|
|
145
149
|
selectedItem.expanded = !selectedItem.expanded;
|
|
150
|
+
} else if (this.selection === "parent" && selectedItem.isLeaf) {
|
|
151
|
+
const parentItem = (_a = selectedItem.parentElement) == null ? void 0 : _a.closest("[role=treeitem]");
|
|
152
|
+
if (parentItem) {
|
|
153
|
+
const items = this.getAllTreeItems();
|
|
154
|
+
for (const item of items) {
|
|
155
|
+
item.selected = item === parentItem;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
146
158
|
}
|
|
147
159
|
const nextSelection = this.selectedItems;
|
|
148
160
|
if (previousSelection.length !== nextSelection.length || nextSelection.some((item) => !previousSelection.includes(item))) {
|
|
@@ -271,6 +283,10 @@ var DSATree = class extends ShoelaceElement {
|
|
|
271
283
|
);
|
|
272
284
|
for (const item of items) {
|
|
273
285
|
item.selectable = isSelectionMultiple;
|
|
286
|
+
item.setAttribute(
|
|
287
|
+
"aria-disabled",
|
|
288
|
+
item.disabled || (item.isLeaf && this.selection) === "parent" ? "true" : "false"
|
|
289
|
+
);
|
|
274
290
|
}
|
|
275
291
|
if (isSelectionMultiple) {
|
|
276
292
|
await this.updateComplete;
|
|
@@ -59,10 +59,6 @@ var checkbox_styles_default = css`
|
|
|
59
59
|
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.checkbox__label:not(.checkbox--disabled) {
|
|
63
|
-
display: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
62
|
.checkbox--has-label .checkbox__label:not(.checkbox--disabled) {
|
|
67
63
|
display: inline-block;
|
|
68
64
|
color: var(--dsa-wc-checkbox-color);
|
|
@@ -183,9 +183,7 @@ var DSASwitch = class extends ShoelaceElement {
|
|
|
183
183
|
.required=${this.required}
|
|
184
184
|
role="switch"
|
|
185
185
|
aria-checked=${this.checked ? "true" : "false"}
|
|
186
|
-
aria-disabled=${ifDefined(
|
|
187
|
-
this.disabled || this.readonly ? "true" : void 0
|
|
188
|
-
)}
|
|
186
|
+
aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
|
|
189
187
|
@click=${this.handleClick}
|
|
190
188
|
@input=${this.handleInput}
|
|
191
189
|
@invalid=${this.handleInvalid}
|
|
@@ -108,32 +108,13 @@ var DSAFileUpload = class extends ShoelaceElement {
|
|
|
108
108
|
handleClick() {
|
|
109
109
|
this.fileUploadInput.click();
|
|
110
110
|
}
|
|
111
|
-
handleChange(
|
|
112
|
-
|
|
111
|
+
handleChange() {
|
|
112
|
+
var _a;
|
|
113
|
+
const addedFiles = Array.from((_a = this.fileUploadInput.files) != null ? _a : []);
|
|
113
114
|
this.emit("dsa-file-upload", { detail: { files: addedFiles } });
|
|
114
115
|
this.value = this.fileUploadInput.value;
|
|
115
116
|
this.formControlController.updateValidity();
|
|
116
117
|
}
|
|
117
|
-
handleFileSelectedChange(event) {
|
|
118
|
-
var _a, _b;
|
|
119
|
-
if (!this.accept || !/^(change|drop)$/.test(event.type)) {
|
|
120
|
-
return Array.from((_a = this.fileUploadInput.files) != null ? _a : []);
|
|
121
|
-
}
|
|
122
|
-
if (((_b = this.fileUploadInput) == null ? void 0 : _b.files) === null) {
|
|
123
|
-
return [];
|
|
124
|
-
}
|
|
125
|
-
const acceptedTypes = new Set(this.accept.split(", "));
|
|
126
|
-
return Array.prototype.filter.call(
|
|
127
|
-
this.fileUploadInput.files,
|
|
128
|
-
(file) => {
|
|
129
|
-
var _a2;
|
|
130
|
-
const fileExtensionRegExp = /\.[^.]+$/;
|
|
131
|
-
const hasFileExtension = fileExtensionRegExp.test(file.name);
|
|
132
|
-
const [fileExtension] = !hasFileExtension ? [void 0] : (_a2 = fileExtensionRegExp.exec(file.name)) != null ? _a2 : [];
|
|
133
|
-
return acceptedTypes.has(file.type) || fileExtension && acceptedTypes.has(fileExtension);
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
118
|
handleInvalid(event) {
|
|
138
119
|
this.formControlController.setValidity(false);
|
|
139
120
|
this.formControlController.emitInvalidEvent(event);
|
|
@@ -239,7 +220,6 @@ var DSAFileUpload = class extends ShoelaceElement {
|
|
|
239
220
|
"button--disabled": this.disabled
|
|
240
221
|
})}
|
|
241
222
|
?disabled=${this.disabled}
|
|
242
|
-
aria-disabled=${this.disabled ? "true" : "false"}
|
|
243
223
|
aria-required=${ifDefined(this.required ? "true" : void 0)}
|
|
244
224
|
aria-invalid=${ifDefined(this.error ? "true" : void 0)}
|
|
245
225
|
tabindex=${this.disabled ? "-1" : "0"}
|
|
@@ -151,7 +151,6 @@ var DSARangeSlider = class extends ShoelaceElement {
|
|
|
151
151
|
max=${ifDefined(this.max)}
|
|
152
152
|
?disabled=${this.disabled}
|
|
153
153
|
aria-label=${ifDefinedAndNotEmpty(this.labelFrom)}
|
|
154
|
-
aria-disabled=${this.disabled}
|
|
155
154
|
@input=${this.onFromSliderInputChange}
|
|
156
155
|
@focus=${this.handleFromSliderFocus}
|
|
157
156
|
@blur=${this.handleFromSliderBlur}
|
|
@@ -169,7 +168,6 @@ var DSARangeSlider = class extends ShoelaceElement {
|
|
|
169
168
|
max=${ifDefined(this.max)}
|
|
170
169
|
?disabled=${this.disabled}
|
|
171
170
|
aria-label=${ifDefinedAndNotEmpty(this.labelTo)}
|
|
172
|
-
aria-disabled=${this.disabled}
|
|
173
171
|
@input=${this.onToSliderInputChange}
|
|
174
172
|
@focus=${this.handleToSliderFocus}
|
|
175
173
|
@blur=${this.handleToSliderBlur}
|