@ds-autonomie/web-components 2.3.1 → 2.4.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 +29 -0
- package/cdn/chunks/{chunk.ZEPLEFIQ.js → chunk.2FOGPUI3.js} +2 -2
- package/cdn/chunks/chunk.2URJBNTF.js +148 -0
- package/cdn/chunks/{chunk.W4FOPJHU.js → chunk.2YVHHVLG.js} +2 -0
- package/cdn/chunks/{chunk.JEWSMUZM.js → chunk.3AD4AURN.js} +11 -2
- package/cdn/chunks/{chunk.ISEH6AO6.js → chunk.3XJMTCX6.js} +16 -9
- package/cdn/chunks/{chunk.GCLAPOSZ.js → chunk.45DY5Z6P.js} +1 -1
- package/cdn/chunks/{chunk.56W7VK2Z.js → chunk.4GWNV3R4.js} +29 -6
- package/cdn/chunks/{chunk.YDBMOXIS.js → chunk.4XTAL3PC.js} +1 -2
- package/cdn/chunks/{chunk.4AMHKT45.js → chunk.4ZEHBLJR.js} +7 -1
- package/cdn/chunks/{chunk.BILEGEVX.js → chunk.5AF25B3X.js} +3 -3
- package/cdn/chunks/{chunk.27YOIDOY.js → chunk.5LBMOJJI.js} +1 -1
- package/cdn/chunks/{chunk.EEKS3ZN7.js → chunk.5VZE6TSA.js} +1 -1
- package/cdn/chunks/{chunk.TAKMMVMG.js → chunk.67KNPORK.js} +1 -1
- package/cdn/chunks/{chunk.5EYEXU6M.js → chunk.6FWACI3G.js} +13 -1
- package/cdn/chunks/{chunk.US6UTTN5.js → chunk.6HLUBEKO.js} +1 -1
- package/cdn/chunks/{chunk.ZUJJYUHF.js → chunk.6XVWAOAW.js} +1 -1
- package/cdn/chunks/{chunk.2P3IVRMK.js → chunk.75VU5MNL.js} +11 -5
- package/cdn/chunks/{chunk.HZJEKORW.js → chunk.7YE2BWH2.js} +1 -1
- package/cdn/chunks/{chunk.THMGZ3JS.js → chunk.A27ADPHB.js} +1 -1
- package/cdn/chunks/{chunk.KXKV4FIS.js → chunk.A5QRPK4Q.js} +4 -1
- package/cdn/chunks/{chunk.Y3KT5GTU.js → chunk.AJFNFADL.js} +1 -1
- package/cdn/chunks/{chunk.S3G2QBTA.js → chunk.ATHVFSQX.js} +8 -0
- package/cdn/chunks/{chunk.JHXMD4L2.js → chunk.AZBK27ET.js} +1 -1
- package/cdn/chunks/{chunk.LLHSRCWY.js → chunk.BEKIGEWZ.js} +13 -0
- package/cdn/chunks/{chunk.V2UYRTUC.js → chunk.BNLQUWBO.js} +1 -1
- package/cdn/chunks/{chunk.6NFWRZM6.js → chunk.C6VRBK7T.js} +15 -2
- package/cdn/chunks/{chunk.DDRUVCZW.js → chunk.CMRQV2SO.js} +1 -1
- package/cdn/chunks/{chunk.YGAW4V4H.js → chunk.CTMJ2DNZ.js} +1 -1
- package/cdn/chunks/{chunk.GN3AVMBZ.js → chunk.CUFMKSEN.js} +1 -1
- package/cdn/chunks/{chunk.7S74KUA4.js → chunk.CUZCVMCE.js} +1 -1
- package/cdn/chunks/{chunk.5UPL2TW3.js → chunk.D3U3NPDM.js} +1 -11
- package/cdn/chunks/{chunk.LFCUNNYV.js → chunk.DROLKHEJ.js} +9 -10
- package/cdn/chunks/{chunk.BLLAYNRQ.js → chunk.E36IR3BP.js} +1 -1
- package/cdn/chunks/{chunk.3CRRJ74Q.js → chunk.E7IRWRZH.js} +1 -1
- package/cdn/chunks/{chunk.W6N2ZQTH.js → chunk.EVFY55H5.js} +6 -10
- package/cdn/chunks/{chunk.VGXDHXD4.js → chunk.FAPQZI57.js} +1 -1
- package/cdn/chunks/{chunk.7FRA5H32.js → chunk.FLMM3C4U.js} +22 -4
- package/cdn/chunks/{chunk.WYBADVDH.js → chunk.FLPTQ76Z.js} +10 -10
- package/cdn/chunks/{chunk.JXHXRRPX.js → chunk.FN6Y2EK6.js} +3 -1
- package/cdn/chunks/{chunk.P7D7IUHT.js → chunk.FTI4C7U6.js} +1 -1
- package/cdn/chunks/{chunk.GS6TNOKD.js → chunk.FULHOODX.js} +6 -9
- package/cdn/chunks/{chunk.U5Q3HCRP.js → chunk.GBGDDTEL.js} +1 -1
- package/cdn/chunks/{chunk.JHLEDXWG.js → chunk.GXQMOXKI.js} +8 -0
- package/cdn/chunks/{chunk.SE7W7XMK.js → chunk.HBIJX2WM.js} +1 -1
- package/cdn/chunks/{chunk.P5KRELMB.js → chunk.HE5SI4A5.js} +27 -13
- package/cdn/chunks/{chunk.ZKPOAPR2.js → chunk.HNGA66FR.js} +8 -0
- package/cdn/chunks/{chunk.AVH4JYLK.js → chunk.ICBLN3KB.js} +2 -2
- package/cdn/chunks/{chunk.O3K7DNLG.js → chunk.II42H5RK.js} +1 -1
- package/cdn/chunks/{chunk.W2B6WXUI.js → chunk.IWMEHK72.js} +5 -0
- package/cdn/chunks/{chunk.F34KPGDS.js → chunk.JD7YUYPB.js} +50 -39
- package/cdn/chunks/{chunk.57JBB4UL.js → chunk.JO52YCNJ.js} +1 -1
- package/cdn/chunks/{chunk.VHQBFGHB.js → chunk.JUHZQETN.js} +35 -10
- package/cdn/chunks/{chunk.TOWWOPMH.js → chunk.JZOEQBF7.js} +19 -4
- package/cdn/chunks/{chunk.LBM4RHMA.js → chunk.K4B5TCNN.js} +25 -6
- package/cdn/chunks/{chunk.MOWF7MA3.js → chunk.KDSIJN5N.js} +3 -3
- package/cdn/chunks/{chunk.KCPXZK3D.js → chunk.KLIZYLWG.js} +9 -1
- package/cdn/chunks/{chunk.IB463542.js → chunk.KOWSS3HP.js} +5 -5
- package/cdn/chunks/{chunk.KNY4ZIQ7.js → chunk.KPS4A22J.js} +2 -2
- package/cdn/chunks/{chunk.ASMJ2LI6.js → chunk.KWRUGVRF.js} +1 -0
- package/cdn/chunks/{chunk.4VWDJUDJ.js → chunk.KYZIL6TB.js} +2 -2
- package/cdn/chunks/{chunk.T56ZOKTF.js → chunk.L3ZYNSI3.js} +1 -1
- package/cdn/chunks/{chunk.JIUJNSW6.js → chunk.LBDB4OXT.js} +7 -9
- package/cdn/chunks/{chunk.ROGVB4AO.js → chunk.LFBIXLMF.js} +2 -2
- package/cdn/chunks/{chunk.WY2HI4TL.js → chunk.M3TRPPPZ.js} +1 -1
- package/cdn/chunks/{chunk.7VDWWPRU.js → chunk.MCSZ2F65.js} +5 -7
- package/cdn/chunks/{chunk.NX5D5OTS.js → chunk.N6Z3FRHY.js} +2 -2
- package/cdn/chunks/{chunk.IAOVYG7Z.js → chunk.N7TSHDJG.js} +1 -1
- package/cdn/chunks/{chunk.7KCIFACP.js → chunk.NTOOFOWB.js} +1 -1
- package/cdn/chunks/{chunk.ER5ZWWSU.js → chunk.NV5OLVPR.js} +2 -2
- package/cdn/chunks/{chunk.EHSLOI5L.js → chunk.NY5U3HSN.js} +5 -3
- package/cdn/chunks/{chunk.OLIPJEPX.js → chunk.OFWHWMUH.js} +1 -1
- package/cdn/chunks/{chunk.RF24VGSM.js → chunk.OIBXY54X.js} +3 -3
- package/cdn/chunks/{chunk.ZLZIVCPW.js → chunk.OJFCPMJA.js} +7 -4
- package/cdn/chunks/{chunk.X3MRO4MI.js → chunk.OOL4Q6HA.js} +1 -0
- package/cdn/chunks/{chunk.TGMW5D2F.js → chunk.OSJ5I4FK.js} +1 -1
- package/cdn/chunks/{chunk.7ZBG7ZQG.js → chunk.OVBLP5E4.js} +48 -34
- package/cdn/chunks/{chunk.H3Y633AF.js → chunk.P6NF7VUG.js} +1 -1
- package/cdn/chunks/{chunk.Z7VB7VAD.js → chunk.PIFZYHAW.js} +10 -2
- package/cdn/chunks/{chunk.J6J6XRPR.js → chunk.PK4XXM66.js} +1 -1
- package/cdn/chunks/{chunk.RGTLY6EQ.js → chunk.POKFLTEE.js} +1 -1
- package/cdn/chunks/{chunk.EKKWPXJL.js → chunk.QHU2DUDS.js} +12 -0
- package/cdn/chunks/{chunk.5BWMYJNC.js → chunk.QKLRW3JL.js} +15 -2
- package/cdn/chunks/chunk.RAMP7CRD.js +93 -0
- package/cdn/chunks/{chunk.RXUJBLKT.js → chunk.RZUPGCMM.js} +2 -2
- package/cdn/chunks/{chunk.MNE7AANP.js → chunk.SJM5UCFK.js} +1 -1
- package/cdn/chunks/{chunk.OZVVCEKQ.js → chunk.SMWE3ICX.js} +2 -2
- package/cdn/chunks/{chunk.HAONBKG7.js → chunk.TS2KKUX2.js} +14 -14
- package/cdn/chunks/{chunk.MML6GY5Y.js → chunk.TUB5XL3J.js} +1 -0
- package/cdn/chunks/{chunk.TO65OMN5.js → chunk.TZ4FLP4S.js} +25 -16
- package/cdn/chunks/{chunk.AATBJDAH.js → chunk.UPVAZQNH.js} +15 -12
- package/cdn/chunks/{chunk.V5TMX44U.js → chunk.UULRRJ5I.js} +1 -1
- package/cdn/chunks/{chunk.LICWCBKN.js → chunk.VARBZAJP.js} +4 -0
- package/cdn/chunks/{chunk.WMMK7OL4.js → chunk.VI5JEKGK.js} +14 -1
- package/cdn/chunks/{chunk.MESUBVHC.js → chunk.VRC57YIG.js} +2 -2
- package/cdn/chunks/{chunk.O577BA4U.js → chunk.VZF3ZTED.js} +1 -1
- package/cdn/chunks/{chunk.ZTXQFGQX.js → chunk.W6JXBJWF.js} +1 -1
- package/cdn/chunks/{chunk.QEPPYDSN.js → chunk.WD2ZD2TZ.js} +16 -5
- package/cdn/chunks/{chunk.M53HNM5Y.js → chunk.WJDOTH54.js} +2 -2
- package/cdn/chunks/{chunk.57UCUSPU.js → chunk.WYTP4TFA.js} +10 -2
- package/cdn/chunks/{chunk.N6NAUMXW.js → chunk.XASHG6W4.js} +4 -6
- package/cdn/chunks/{chunk.RJUKDJQG.js → chunk.XLDTCR3W.js} +146 -70
- package/cdn/chunks/{chunk.WOONNSQ2.js → chunk.XRFDWQQQ.js} +2 -1
- package/cdn/chunks/{chunk.YA7ZX7VM.js → chunk.Y5RTMSTB.js} +1 -1
- package/{dist/chunks/chunk.6YEPFMKU.js → cdn/chunks/chunk.YBWQADCH.js} +2 -6
- package/cdn/chunks/{chunk.NBPMAZHK.js → chunk.YDT7HT2E.js} +0 -3
- package/cdn/chunks/{chunk.FXVCDQEN.js → chunk.YJBMFRB4.js} +15 -1
- package/cdn/chunks/{chunk.65HTBW2L.js → chunk.YKKP7YAT.js} +7 -1
- package/cdn/chunks/{chunk.CZFLF4QH.js → chunk.ZCBARTO2.js} +9 -1
- package/cdn/chunks/{chunk.HMLKFYNH.js → chunk.ZDF27RIQ.js} +11 -2
- package/cdn/chunks/{chunk.55Y4QE5R.js → chunk.ZHJDF2I3.js} +3 -3
- package/cdn/chunks/{chunk.GFKXMARC.js → chunk.ZYAFL7BC.js} +10 -4
- package/cdn/components/accordion/accordion.d.ts +2 -0
- package/cdn/components/accordion/accordion.js +5 -3
- package/cdn/components/accordion/accordion.styles.js +1 -1
- package/cdn/components/alert/alert.js +6 -5
- package/cdn/components/alert/alert.styles.js +1 -1
- package/cdn/components/anchor-tag/anchor-tag.js +3 -2
- package/cdn/components/anchor-tag/anchor-tag.styles.js +1 -1
- package/cdn/components/badge/badge.js +2 -2
- package/cdn/components/badge/badge.styles.js +1 -1
- package/cdn/components/breadcrumb/breadcrumb.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.styles.js +1 -1
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/cdn/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/cdn/components/button/button.js +4 -4
- package/cdn/components/calendar/calendar.js +3 -3
- package/cdn/components/callout/callout.js +3 -2
- package/cdn/components/card/card.js +2 -1
- package/cdn/components/checkbox/checkbox.js +8 -8
- package/cdn/components/checkbox/checkbox.styles.js +2 -2
- package/cdn/components/checkbox-button/checkbox-button.js +9 -9
- package/cdn/components/checkbox-group/checkbox-group.d.ts +3 -1
- package/cdn/components/checkbox-group/checkbox-group.js +6 -6
- package/cdn/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/cdn/components/combobox/combobox.d.ts +11 -1
- package/cdn/components/combobox/combobox.js +13 -13
- package/cdn/components/combobox/combobox.styles.js +2 -2
- package/cdn/components/dialog/dialog.js +5 -4
- package/cdn/components/download-link/download-link.js +2 -2
- package/cdn/components/download-link/download-link.styles.js +1 -1
- package/cdn/components/drawer/drawer.js +5 -4
- package/cdn/components/dropdown/dropdown.js +2 -2
- package/cdn/components/error-message-panel/error-message-panel.js +2 -2
- package/cdn/components/error-text/error-text.js +2 -2
- package/cdn/components/error-text/error-text.styles.js +1 -1
- package/cdn/components/file-upload/file-upload.d.ts +1 -0
- package/cdn/components/file-upload/file-upload.js +7 -6
- package/cdn/components/file-upload/file-upload.styles.js +2 -2
- package/cdn/components/file-upload-item/file-upload-item.js +5 -3
- package/cdn/components/filter-base/filter-base.js +7 -6
- package/cdn/components/filter-button/filter-button.js +6 -5
- package/cdn/components/filter-button/filter-button.styles.js +1 -1
- package/cdn/components/filter-counter/filter-counter.js +26 -26
- package/cdn/components/filter-date/filter-date.js +14 -13
- package/cdn/components/filter-range/filter-range.js +27 -27
- package/cdn/components/filter-select/filter-select.js +27 -27
- package/cdn/components/footer/footer.js +2 -2
- package/cdn/components/format-bytes/format-bytes.js +2 -2
- package/cdn/components/format-date/format-date.js +2 -2
- package/cdn/components/format-number/format-number.js +2 -2
- package/cdn/components/header/header.js +2 -2
- package/cdn/components/header-search/header-search.js +8 -7
- package/cdn/components/icon-button/icon-button.js +3 -2
- package/cdn/components/icon-button/icon-button.styles.js +1 -1
- package/cdn/components/input/input.d.ts +1 -0
- package/cdn/components/input/input.js +18 -18
- package/cdn/components/input/input.styles.js +2 -2
- package/cdn/components/input-date/input-date.js +15 -15
- package/cdn/components/input-date/input-date.styles.js +3 -3
- package/cdn/components/input-mask/input-mask.js +8 -8
- package/cdn/components/input-mask/input-mask.styles.js +2 -2
- package/cdn/components/input-otp/input-otp.js +9 -9
- package/cdn/components/input-otp/input-otp.styles.js +2 -2
- package/cdn/components/input-phone/input-phone.configs.js +1 -1
- package/cdn/components/input-phone/input-phone.d.ts +1 -0
- package/cdn/components/input-phone/input-phone.js +16 -16
- package/cdn/components/input-phone/input-phone.styles.js +2 -2
- package/cdn/components/input-time/input-time.js +11 -11
- package/cdn/components/input-time/input-time.styles.js +3 -3
- package/cdn/components/menu-accordion/menu-accordion.d.ts +1 -0
- package/cdn/components/menu-accordion/menu-accordion.js +4 -2
- package/cdn/components/navbar-menu/navbar-menu.js +3 -2
- package/cdn/components/option/option.js +2 -2
- package/cdn/components/page-header/page-header.d.ts +31 -0
- package/cdn/components/page-header/page-header.js +17 -0
- package/cdn/components/page-header/page-header.styles.d.ts +2 -0
- package/cdn/components/page-header/page-header.styles.js +10 -0
- package/cdn/components/pagination/pagination.js +20 -20
- package/cdn/components/pagination-button/pagination-button.js +1 -1
- package/cdn/components/profile-button/profile-button.js +4 -4
- package/cdn/components/progress-bar/progress-bar.js +3 -2
- package/cdn/components/progress-ring/progress-ring.js +2 -1
- package/cdn/components/quote/quote.js +3 -2
- package/cdn/components/radio-button/radio-button.js +9 -9
- package/cdn/components/radio-card/radio-card.js +7 -7
- package/cdn/components/radio-group/radio-group.d.ts +3 -0
- package/cdn/components/radio-group/radio-group.js +6 -6
- package/cdn/components/radio-group/radio-group.styles.js +2 -2
- package/cdn/components/range-slider/range-slider.js +2 -1
- package/cdn/components/relative-time/relative-time.js +2 -2
- package/cdn/components/select/select.d.ts +1 -0
- package/cdn/components/select/select.js +12 -12
- package/cdn/components/select/select.styles.js +2 -2
- package/cdn/components/skip-links/skip-links.js +2 -2
- package/cdn/components/spinner/spinner.js +2 -2
- package/cdn/components/split-panel/split-panel.js +2 -2
- package/cdn/components/step/step.js +3 -3
- package/cdn/components/switch/switch.js +3 -3
- package/cdn/components/tab/tab.js +5 -4
- package/cdn/components/tab-group/tab-group.d.ts +6 -0
- package/cdn/components/tab-group/tab-group.js +6 -5
- package/cdn/components/tab-group/tab-group.styles.js +1 -1
- package/cdn/components/table/table.js +1 -1
- package/cdn/components/table-action/table-action.js +2 -2
- package/cdn/components/table-body/table-body.js +3 -3
- package/cdn/components/table-caption/table-caption.d.ts +1 -0
- package/cdn/components/table-caption/table-caption.js +2 -2
- package/cdn/components/table-container/table-container.d.ts +5 -0
- package/cdn/components/table-container/table-container.js +5 -1
- package/cdn/components/table-head/table-head.js +2 -2
- package/cdn/components/table-header-cell/table-header-cell.js +2 -2
- package/cdn/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/cdn/components/table-header-row/table-header-row.js +17 -17
- package/cdn/components/table-header-row/table-header-row.styles.js +1 -1
- package/cdn/components/table-of-contents/table-of-contents.js +2 -2
- package/cdn/components/table-row/table-row.js +12 -12
- package/cdn/components/tag/tag.js +6 -5
- package/cdn/components/tag/tag.styles.js +1 -1
- package/cdn/components/textarea/textarea.js +7 -7
- package/cdn/components/textarea/textarea.styles.js +2 -2
- package/cdn/components/tooltip/tooltip.js +2 -2
- package/cdn/components/tree/tree.js +12 -12
- package/cdn/components/tree-item/tree-item.js +11 -11
- package/cdn/custom-elements.json +487 -190
- package/cdn/design-system.d.ts +1 -0
- package/cdn/design-system.js +136 -131
- package/cdn/internal/components/form-control/form-control-layout.d.ts +2 -0
- package/cdn/internal/components/form-control/form-control-layout.js +17 -1
- package/cdn/internal/components/form-toggle-button/form-toggle-button.d.ts +1 -0
- package/cdn/internal/components/form-toggle-button/form-toggle-button.js +6 -0
- package/cdn/styles/form-control.styles.js +5 -0
- package/cdn/themes/dsa-wc-theme.css +124 -31
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +125 -31
- package/cdn/translations/en-gb.js +1 -1
- package/cdn/translations/en.js +1 -1
- package/cdn/translations/fr.js +1 -1
- package/cdn/utilities/date.js +1 -1
- package/cdn/utilities/localize.d.ts +2 -0
- package/cdn/utilities/localize.js +1 -1
- package/cdn/vscode.html-custom-data.json +65 -31
- package/cdn/web-types.json +238 -84
- package/dist/chunks/{chunk.ITUK4PON.js → chunk.2JCMUNW4.js} +1 -1
- package/dist/chunks/{chunk.5NXRUN57.js → chunk.2OZ6SQ6Y.js} +27 -13
- package/dist/chunks/{chunk.2KECVLQH.js → chunk.37I5GPBX.js} +8 -0
- package/dist/chunks/{chunk.WPIYFGT2.js → chunk.46A3MGDV.js} +1 -1
- package/dist/chunks/{chunk.WFHOSUOX.js → chunk.4LRLYTU2.js} +3 -3
- package/dist/chunks/{chunk.4YOAT5R7.js → chunk.4SVX6VCY.js} +15 -2
- package/dist/chunks/{chunk.JOW4YVGA.js → chunk.4UC4W5Q5.js} +13 -0
- package/dist/chunks/{chunk.YVOXMJ6Q.js → chunk.4URSPC26.js} +10 -2
- package/dist/chunks/{chunk.L66AKAXM.js → chunk.4VJTOIB4.js} +1 -1
- package/dist/chunks/{chunk.KFXWL3NW.js → chunk.4W3KHK6H.js} +1 -1
- package/dist/chunks/{chunk.NF5ELBI4.js → chunk.533C7JJH.js} +2 -2
- package/dist/chunks/{chunk.QBHSEMUU.js → chunk.53DFT644.js} +2 -2
- package/dist/chunks/chunk.5Q5FI5EH.js +146 -0
- package/dist/chunks/{chunk.BVRGK5ZO.js → chunk.5R6YK6UH.js} +4 -6
- package/dist/chunks/{chunk.UG7D663E.js → chunk.5VC7IHJ2.js} +11 -2
- package/dist/chunks/{chunk.UJAK75R6.js → chunk.6674T4KX.js} +15 -12
- package/dist/chunks/{chunk.MBRRLF6D.js → chunk.6HSTAJNR.js} +9 -10
- package/dist/chunks/{chunk.HEOHHRVV.js → chunk.6ZR5MQTU.js} +1 -1
- package/dist/chunks/{chunk.RCN745RS.js → chunk.7E57JVUE.js} +1 -1
- package/dist/chunks/{chunk.HAYCQF2N.js → chunk.7K5DG6KV.js} +1 -1
- package/dist/chunks/{chunk.THO67JP2.js → chunk.A4R5LBIA.js} +16 -5
- package/dist/chunks/{chunk.GZO5TQGU.js → chunk.AC4PBQVM.js} +11 -5
- package/dist/chunks/{chunk.SWP3OZUN.js → chunk.AMTRQ7HP.js} +1 -1
- package/dist/chunks/{chunk.ITAWMEY7.js → chunk.BHY3DDPH.js} +1 -1
- package/dist/chunks/{chunk.EIZK62ST.js → chunk.D7NKST7Z.js} +5 -0
- package/dist/chunks/{chunk.63MNXWSY.js → chunk.DFBKUH2U.js} +1 -1
- package/dist/chunks/{chunk.3O6BVDJF.js → chunk.DISFQ7ZU.js} +1 -1
- package/dist/chunks/{chunk.K7CPVIPV.js → chunk.DKTT254G.js} +9 -1
- package/dist/chunks/{chunk.YZTXGQRN.js → chunk.DNLOBVBE.js} +14 -1
- package/dist/chunks/{chunk.3JLROK74.js → chunk.DR3IPTYE.js} +10 -10
- package/dist/chunks/{chunk.6UCJKKYR.js → chunk.DYTNEN2V.js} +7 -9
- package/dist/chunks/{chunk.SP5JKDHH.js → chunk.E7S4C6P7.js} +1 -1
- package/dist/chunks/{chunk.M5QF4L4W.js → chunk.ERDP4WZN.js} +1 -1
- package/dist/chunks/{chunk.YOMZYBQL.js → chunk.FC7AQRZS.js} +2 -2
- package/dist/chunks/{chunk.MPZ56XQK.js → chunk.FUUFLFPS.js} +3 -3
- package/dist/chunks/{chunk.MAENDYI7.js → chunk.FWHDRD6T.js} +15 -2
- package/dist/chunks/{chunk.NHPMJYPM.js → chunk.G3UE6SMI.js} +146 -70
- package/dist/chunks/{chunk.6KWCQDRD.js → chunk.GFXISORD.js} +12 -0
- package/dist/chunks/{chunk.OWG5FD2H.js → chunk.GI3JNOHH.js} +11 -2
- package/dist/chunks/{chunk.K53YJ3XK.js → chunk.GNJX6QSO.js} +1 -1
- package/dist/chunks/{chunk.P3CATWXI.js → chunk.GRNDTTXR.js} +2 -2
- package/dist/chunks/{chunk.5H3FRLYG.js → chunk.GSKMPYLG.js} +14 -14
- package/dist/chunks/{chunk.KFUZ6JMQ.js → chunk.H3X3D747.js} +2 -2
- package/dist/chunks/{chunk.3EAWXV27.js → chunk.H7ZLX7SO.js} +1 -1
- package/dist/chunks/{chunk.2W6FOXSH.js → chunk.HQJDKIMG.js} +25 -16
- package/dist/chunks/{chunk.DIM7WDHO.js → chunk.IFDJNZPC.js} +13 -1
- package/dist/chunks/{chunk.E45DVVIM.js → chunk.INFNQBQD.js} +2 -2
- package/dist/chunks/{chunk.EI563TWV.js → chunk.ISWFROYZ.js} +1 -0
- package/dist/chunks/{chunk.6K4LF64W.js → chunk.IUPSCAN6.js} +1 -1
- package/dist/chunks/{chunk.K3HEMTRQ.js → chunk.IW4EYF6Z.js} +1 -1
- package/dist/chunks/{chunk.2GRTPJX3.js → chunk.IXAKBOI4.js} +1 -1
- package/dist/chunks/{chunk.UVN7RIEO.js → chunk.JG4PBHLV.js} +8 -0
- package/dist/chunks/{chunk.4C3EA7WT.js → chunk.JMJY2JIN.js} +5 -3
- package/dist/chunks/{chunk.WIVRYVXD.js → chunk.JRJB2DFE.js} +1 -1
- package/dist/chunks/{chunk.2YE5HPSL.js → chunk.JZYJ2V4F.js} +2 -2
- package/dist/chunks/{chunk.PTFOYYGJ.js → chunk.KDEA34PP.js} +1 -1
- package/dist/chunks/{chunk.EYZGEU3G.js → chunk.KEJKTQP6.js} +1 -11
- package/dist/chunks/{chunk.5NUQTJJR.js → chunk.KENYJWWA.js} +10 -2
- package/dist/chunks/{chunk.JNZTWND7.js → chunk.KNPGT6SV.js} +15 -6
- package/dist/chunks/{chunk.IIYPN5OC.js → chunk.LC7CCWN3.js} +1 -1
- package/dist/chunks/{chunk.INLQD4SQ.js → chunk.LQG6R72U.js} +0 -3
- package/dist/chunks/{chunk.F6RRFM4P.js → chunk.M362UNDB.js} +1 -0
- package/dist/chunks/{chunk.KGZLC7FO.js → chunk.M4H37WUH.js} +1 -1
- package/dist/chunks/{chunk.J4GT5AWF.js → chunk.M5MCRNUJ.js} +35 -10
- package/dist/chunks/{chunk.GNJ2HZ3Y.js → chunk.MIOQ72YC.js} +3 -3
- package/dist/chunks/{chunk.WOJO2VFN.js → chunk.MTOENDDR.js} +9 -1
- package/dist/chunks/{chunk.3SX7AERB.js → chunk.MWWI3AU2.js} +7 -1
- package/dist/chunks/{chunk.T2OLM5TG.js → chunk.NASETPCZ.js} +48 -34
- package/dist/chunks/{chunk.XE37RME4.js → chunk.O4HVYU6G.js} +2 -2
- package/dist/chunks/{chunk.2O3M7HBZ.js → chunk.O4ZSTSXZ.js} +1 -1
- package/dist/chunks/{chunk.3NNE7XGI.js → chunk.OCK5L55T.js} +1 -1
- package/dist/chunks/{chunk.CWDSCTUA.js → chunk.OHDR6G6J.js} +1 -1
- package/dist/chunks/{chunk.FK5HR2F4.js → chunk.OVOTWPG3.js} +1 -1
- package/dist/chunks/{chunk.OJ5RKDE5.js → chunk.OWV6XZFR.js} +2 -2
- package/dist/chunks/{chunk.7KMMSAQN.js → chunk.P7SN3TMY.js} +2 -2
- package/dist/chunks/{chunk.77ECBNUM.js → chunk.PD6ETZGV.js} +5 -5
- package/dist/chunks/{chunk.NPCMEZGE.js → chunk.QEZ5FSIU.js} +1 -1
- package/dist/chunks/{chunk.DANAZGRI.js → chunk.QG62LWYX.js} +8 -0
- package/dist/chunks/{chunk.LGDM46D4.js → chunk.RVCSQIWF.js} +19 -4
- package/dist/chunks/{chunk.EAYW5L6J.js → chunk.S6XG7G6X.js} +1 -1
- package/dist/chunks/{chunk.CEGU6OTH.js → chunk.SA7GMM2I.js} +1 -2
- package/dist/chunks/{chunk.54KX7M52.js → chunk.SRP6V7OW.js} +1 -1
- package/dist/chunks/{chunk.B2KV6DSI.js → chunk.TK77JBEH.js} +1 -1
- package/dist/chunks/{chunk.BCLTC7W4.js → chunk.TKV7I7MM.js} +1 -1
- package/dist/chunks/{chunk.LE5LHO5Y.js → chunk.TQJLTADP.js} +3 -1
- package/dist/chunks/{chunk.KQJQQDCQ.js → chunk.TRQQN4AO.js} +6 -10
- package/dist/chunks/{chunk.HTBAICPA.js → chunk.TXMAH3OK.js} +50 -39
- package/dist/chunks/{chunk.BNREFNJW.js → chunk.U2RG7USD.js} +5 -7
- package/dist/chunks/{chunk.EK7OT2VJ.js → chunk.UCIFKWMI.js} +1 -1
- package/dist/chunks/{chunk.X6UZBREW.js → chunk.UKZA4PJB.js} +1 -1
- package/dist/chunks/{chunk.XMPGIWRA.js → chunk.V4U5XMU7.js} +1 -1
- package/dist/chunks/{chunk.7BE555XS.js → chunk.VJJQFEZ2.js} +6 -9
- package/dist/chunks/{chunk.52CUBOF2.js → chunk.VYIXCMT3.js} +3 -3
- package/dist/chunks/{chunk.BN3YUYMM.js → chunk.VZHVRVYC.js} +10 -4
- package/dist/chunks/{chunk.MILDW5D6.js → chunk.WBUREDTC.js} +1 -0
- package/dist/chunks/{chunk.3B3226HJ.js → chunk.X4HFQ4MT.js} +1 -1
- package/dist/chunks/{chunk.BALZ7HK5.js → chunk.XG7KR6BI.js} +25 -6
- package/dist/chunks/{chunk.DLE3F4GC.js → chunk.XNVSET6H.js} +1 -1
- package/dist/chunks/{chunk.DB3EDROT.js → chunk.XQDC25MI.js} +15 -1
- package/dist/chunks/{chunk.PZXD4VTO.js → chunk.XX3QRZEL.js} +2 -1
- package/dist/chunks/{chunk.3J7DL2SS.js → chunk.Y3I7GUNB.js} +4 -1
- package/{cdn/chunks/chunk.6YEPFMKU.js → dist/chunks/chunk.YBWQADCH.js} +2 -6
- package/dist/chunks/{chunk.WB2DWTAB.js → chunk.YJEHKLDJ.js} +22 -4
- package/dist/chunks/{chunk.65HTBW2L.js → chunk.YKKP7YAT.js} +7 -1
- package/dist/chunks/{chunk.3HX6HRHC.js → chunk.YOISCONT.js} +2 -2
- package/dist/chunks/{chunk.U7ZMMMJ3.js → chunk.YWHYMKYI.js} +4 -0
- package/dist/chunks/{chunk.KOTPR264.js → chunk.YXCCM5NC.js} +29 -6
- package/dist/chunks/chunk.YZVRMUCB.js +88 -0
- package/dist/chunks/{chunk.6ZJSEOLO.js → chunk.ZAZPAXHI.js} +7 -5
- package/dist/chunks/{chunk.ODXKNTKC.js → chunk.ZG2D4OQ4.js} +1 -1
- package/dist/chunks/{chunk.M4ZPYQVZ.js → chunk.ZRW5L2NC.js} +2 -0
- package/dist/components/accordion/accordion.d.ts +2 -0
- package/dist/components/accordion/accordion.js +5 -3
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.js +6 -5
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/anchor-tag/anchor-tag.js +3 -2
- package/dist/components/anchor-tag/anchor-tag.styles.js +1 -1
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/dist/components/button/button.js +4 -4
- package/dist/components/calendar/calendar.js +3 -3
- package/dist/components/callout/callout.js +3 -2
- package/dist/components/card/card.js +2 -1
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/checkbox-button/checkbox-button.js +9 -9
- package/dist/components/checkbox-group/checkbox-group.d.ts +3 -1
- package/dist/components/checkbox-group/checkbox-group.js +6 -6
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/combobox/combobox.d.ts +11 -1
- package/dist/components/combobox/combobox.js +13 -13
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/dialog/dialog.js +5 -4
- package/dist/components/download-link/download-link.js +2 -2
- package/dist/components/download-link/download-link.styles.js +1 -1
- package/dist/components/drawer/drawer.js +5 -4
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +2 -2
- package/dist/components/error-text/error-text.js +2 -2
- package/dist/components/error-text/error-text.styles.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts +1 -0
- package/dist/components/file-upload/file-upload.js +7 -6
- package/dist/components/file-upload/file-upload.styles.js +2 -2
- package/dist/components/file-upload-item/file-upload-item.js +5 -3
- package/dist/components/filter-base/filter-base.js +7 -6
- package/dist/components/filter-button/filter-button.js +6 -5
- package/dist/components/filter-button/filter-button.styles.js +1 -1
- package/dist/components/filter-counter/filter-counter.js +26 -26
- package/dist/components/filter-date/filter-date.js +14 -13
- package/dist/components/filter-range/filter-range.js +27 -27
- package/dist/components/filter-select/filter-select.js +27 -27
- package/dist/components/footer/footer.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/header/header.js +2 -2
- package/dist/components/header-search/header-search.js +8 -7
- package/dist/components/icon-button/icon-button.js +3 -2
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.d.ts +1 -0
- package/dist/components/input/input.js +18 -18
- package/dist/components/input/input.styles.js +2 -2
- package/dist/components/input-date/input-date.js +15 -15
- package/dist/components/input-date/input-date.styles.js +3 -3
- package/dist/components/input-mask/input-mask.js +8 -8
- package/dist/components/input-mask/input-mask.styles.js +2 -2
- package/dist/components/input-otp/input-otp.js +9 -9
- package/dist/components/input-otp/input-otp.styles.js +2 -2
- package/dist/components/input-phone/input-phone.configs.js +1 -1
- package/dist/components/input-phone/input-phone.d.ts +1 -0
- package/dist/components/input-phone/input-phone.js +16 -16
- package/dist/components/input-phone/input-phone.styles.js +2 -2
- package/dist/components/input-time/input-time.js +11 -11
- package/dist/components/input-time/input-time.styles.js +3 -3
- package/dist/components/menu-accordion/menu-accordion.d.ts +1 -0
- package/dist/components/menu-accordion/menu-accordion.js +4 -2
- package/dist/components/navbar-menu/navbar-menu.js +3 -2
- package/dist/components/option/option.js +2 -2
- package/dist/components/page-header/page-header.d.ts +31 -0
- package/dist/components/page-header/page-header.js +12 -0
- package/dist/components/page-header/page-header.styles.d.ts +2 -0
- package/dist/components/page-header/page-header.styles.js +8 -0
- package/dist/components/pagination/pagination.js +20 -20
- package/dist/components/pagination-button/pagination-button.js +1 -1
- package/dist/components/profile-button/profile-button.js +4 -4
- package/dist/components/progress-bar/progress-bar.js +3 -2
- package/dist/components/progress-ring/progress-ring.js +2 -1
- package/dist/components/quote/quote.js +3 -2
- package/dist/components/radio-button/radio-button.js +9 -9
- package/dist/components/radio-card/radio-card.js +7 -7
- package/dist/components/radio-group/radio-group.d.ts +3 -0
- package/dist/components/radio-group/radio-group.js +6 -6
- package/dist/components/radio-group/radio-group.styles.js +2 -2
- package/dist/components/range-slider/range-slider.js +2 -1
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/select/select.js +12 -12
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/skip-links/skip-links.js +2 -2
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/split-panel/split-panel.js +2 -2
- package/dist/components/step/step.js +3 -3
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.js +5 -4
- package/dist/components/tab-group/tab-group.d.ts +6 -0
- package/dist/components/tab-group/tab-group.js +6 -5
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/table/table.js +1 -1
- package/dist/components/table-action/table-action.js +2 -2
- package/dist/components/table-body/table-body.js +3 -3
- package/dist/components/table-caption/table-caption.d.ts +1 -0
- package/dist/components/table-caption/table-caption.js +2 -2
- package/dist/components/table-container/table-container.d.ts +5 -0
- package/dist/components/table-container/table-container.js +4 -1
- package/dist/components/table-head/table-head.js +2 -2
- package/dist/components/table-header-cell/table-header-cell.js +2 -2
- package/dist/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/dist/components/table-header-row/table-header-row.js +17 -17
- package/dist/components/table-header-row/table-header-row.styles.js +1 -1
- package/dist/components/table-of-contents/table-of-contents.js +2 -2
- package/dist/components/table-row/table-row.js +12 -12
- package/dist/components/tag/tag.js +6 -5
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.js +7 -7
- package/dist/components/textarea/textarea.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +12 -12
- package/dist/components/tree-item/tree-item.js +11 -11
- package/dist/custom-elements.json +487 -190
- package/dist/design-system.d.ts +1 -0
- package/dist/design-system.js +136 -131
- package/dist/internal/components/form-control/form-control-layout.d.ts +2 -0
- package/dist/internal/components/form-control/form-control-layout.js +17 -1
- package/dist/internal/components/form-toggle-button/form-toggle-button.d.ts +1 -0
- package/dist/internal/components/form-toggle-button/form-toggle-button.js +6 -0
- package/dist/styles/form-control.styles.js +5 -0
- package/dist/themes/dsa-wc-theme.css +124 -31
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +125 -31
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/utilities/date.js +1 -1
- package/dist/utilities/localize.d.ts +2 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +65 -31
- package/dist/web-types.json +238 -84
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.O4MZVDWB.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlLayout
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.JZOEQBF7.js";
|
|
7
7
|
import {
|
|
8
8
|
combobox_styles_default
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.FLMM3C4U.js";
|
|
10
10
|
import {
|
|
11
11
|
scrollIntoView
|
|
12
12
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk.2WRFDMKN.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.VARBZAJP.js";
|
|
33
33
|
import {
|
|
34
34
|
watch
|
|
35
35
|
} from "./chunk.4FQJ3QJK.js";
|
|
@@ -69,6 +69,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
69
69
|
this.selectedOptions = [];
|
|
70
70
|
this.allOptions = [];
|
|
71
71
|
this.filteredOptions = [];
|
|
72
|
+
this.displayedOptionsCount = 0;
|
|
72
73
|
this.debounceTimerId = null;
|
|
73
74
|
this.open = false;
|
|
74
75
|
this.value = "";
|
|
@@ -80,8 +81,9 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
80
81
|
this.items = void 0;
|
|
81
82
|
this.multiple = false;
|
|
82
83
|
this.maxOptionsVisible = 3;
|
|
84
|
+
this.visibleListLength = void 0;
|
|
83
85
|
this.debounceTimeout = 300;
|
|
84
|
-
this.fetchingState = "
|
|
86
|
+
this.fetchingState = "idle";
|
|
85
87
|
this.overrideDefaultFiltering = false;
|
|
86
88
|
}
|
|
87
89
|
/** Gets the validity state object */
|
|
@@ -99,6 +101,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
99
101
|
this.open = false;
|
|
100
102
|
this.allOptions = this.getAllOptions();
|
|
101
103
|
this.filteredOptions = [...this.allOptions];
|
|
104
|
+
this.resetDisplayedOptionsCount();
|
|
102
105
|
}
|
|
103
106
|
/** Input events */
|
|
104
107
|
handleBlur() {
|
|
@@ -120,7 +123,11 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
120
123
|
event.preventDefault();
|
|
121
124
|
this.displayInput.focus({ preventScroll: true });
|
|
122
125
|
this.filterOptions(this.displayLabel);
|
|
123
|
-
|
|
126
|
+
if (!this.open) {
|
|
127
|
+
this.show();
|
|
128
|
+
} else {
|
|
129
|
+
this.hide();
|
|
130
|
+
}
|
|
124
131
|
}
|
|
125
132
|
handleComboboxKeyDown(event) {
|
|
126
133
|
this.filterOptions(this.displayLabel);
|
|
@@ -147,7 +154,6 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
147
154
|
}
|
|
148
155
|
}
|
|
149
156
|
handleInput() {
|
|
150
|
-
var _a;
|
|
151
157
|
this.displayLabel = this.displayInput.value;
|
|
152
158
|
this.show();
|
|
153
159
|
if (this.debounceTimerId !== null) {
|
|
@@ -157,12 +163,6 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
157
163
|
() => this.emit("dsa-input"),
|
|
158
164
|
this.debounceTimeout
|
|
159
165
|
);
|
|
160
|
-
if (!this.multiple) {
|
|
161
|
-
if (this.displayLabel !== ((_a = this.selectedOptions[0]) == null ? void 0 : _a.getTextLabel())) {
|
|
162
|
-
this.value = "";
|
|
163
|
-
this.clearSelectedOptions();
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
166
|
}
|
|
167
167
|
handleClearClick(event) {
|
|
168
168
|
event.stopPropagation();
|
|
@@ -190,6 +190,9 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
+
resetDisplayedOptionsCount() {
|
|
194
|
+
this.displayedOptionsCount = this.visibleListLength ? Math.min(this.visibleListLength, this.filteredOptions.length) : this.filteredOptions.length;
|
|
195
|
+
}
|
|
193
196
|
// Toggles an option's selected state
|
|
194
197
|
toggleOptionSelection(option, force) {
|
|
195
198
|
option.selected = force || !option.selected;
|
|
@@ -199,6 +202,10 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
199
202
|
handleOptionClick(event) {
|
|
200
203
|
const target = event.target;
|
|
201
204
|
const option = target.closest(OPTION_TAG);
|
|
205
|
+
this.setCurrentOption(void 0);
|
|
206
|
+
if (option === this.seeMoreOption) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
202
209
|
if (option !== null && !option.disabled) {
|
|
203
210
|
const oldValue = this.value;
|
|
204
211
|
if (this.multiple) {
|
|
@@ -222,6 +229,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
222
229
|
}
|
|
223
230
|
}
|
|
224
231
|
handleDefaultSlotChange() {
|
|
232
|
+
this.resetDisplayedOptionsCount();
|
|
225
233
|
if (customElements.get(OPTION_TAG)) {
|
|
226
234
|
this.allOptions = this.getAllOptions();
|
|
227
235
|
this.filterOptions(this.displayLabel);
|
|
@@ -266,6 +274,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
266
274
|
optionsNodeList.forEach((option) => {
|
|
267
275
|
const clonedOption = option.cloneNode(true);
|
|
268
276
|
clonedOption.multiple = this.multiple;
|
|
277
|
+
clonedOption.id = clonedOption.value;
|
|
269
278
|
allOptions.push(clonedOption);
|
|
270
279
|
});
|
|
271
280
|
return allOptions;
|
|
@@ -278,7 +287,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
278
287
|
}
|
|
279
288
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
280
289
|
// option may be "current" at a time.
|
|
281
|
-
setCurrentOption(option
|
|
290
|
+
setCurrentOption(option) {
|
|
282
291
|
this.allOptions.forEach((el) => {
|
|
283
292
|
el.current = false;
|
|
284
293
|
el.tabIndex = -1;
|
|
@@ -286,10 +295,6 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
286
295
|
if (option !== void 0) {
|
|
287
296
|
this.currentOption = option;
|
|
288
297
|
option.current = true;
|
|
289
|
-
option.tabIndex = 0;
|
|
290
|
-
if (focus) {
|
|
291
|
-
option.focus();
|
|
292
|
-
}
|
|
293
298
|
} else {
|
|
294
299
|
this.currentOption = void 0;
|
|
295
300
|
}
|
|
@@ -313,7 +318,6 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
313
318
|
var _a, _b, _c, _d;
|
|
314
319
|
if (this.multiple) {
|
|
315
320
|
this.value = this.selectedOptions.map((el) => el.value);
|
|
316
|
-
this.displayLabel = "";
|
|
317
321
|
} else {
|
|
318
322
|
this.value = (_b = (_a = this.selectedOptions[0]) == null ? void 0 : _a.value) != null ? _b : this.value;
|
|
319
323
|
this.displayLabel = (_d = (_c = this.selectedOptions[0]) == null ? void 0 : _c.getTextLabel()) != null ? _d : "";
|
|
@@ -381,7 +385,9 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
381
385
|
this.hide();
|
|
382
386
|
this.displayInput.focus({ preventScroll: true });
|
|
383
387
|
this.hasVisualFocus = true;
|
|
384
|
-
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
if (event.key === "Escape") {
|
|
385
391
|
if (this.multiple && this.displayLabel !== "") {
|
|
386
392
|
event.stopPropagation();
|
|
387
393
|
this.displayLabel = "";
|
|
@@ -393,8 +399,13 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
393
399
|
}
|
|
394
400
|
}
|
|
395
401
|
handleEnterKey(event) {
|
|
402
|
+
var _a;
|
|
396
403
|
const target = event.target;
|
|
397
404
|
const isTag = target.closest("dsa-tag") !== null;
|
|
405
|
+
if ((_a = this.seeMoreOption) == null ? void 0 : _a.current) {
|
|
406
|
+
this.handleSeeMoreClick();
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
398
409
|
if (isTag) {
|
|
399
410
|
return;
|
|
400
411
|
}
|
|
@@ -422,35 +433,69 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
422
433
|
this.setCurrentOption(void 0);
|
|
423
434
|
}
|
|
424
435
|
handleNavigationKeys(event) {
|
|
425
|
-
|
|
426
|
-
|
|
436
|
+
var _a, _b;
|
|
437
|
+
const currentOptionIndex = this.currentOption !== void 0 ? this.filteredOptions.indexOf(this.currentOption) : -1;
|
|
427
438
|
event.preventDefault();
|
|
428
439
|
if (!this.open) {
|
|
429
440
|
this.show();
|
|
430
441
|
}
|
|
431
442
|
switch (event.key) {
|
|
432
443
|
case "ArrowDown":
|
|
433
|
-
if (
|
|
434
|
-
|
|
444
|
+
if ((_a = this.seeMoreOption) == null ? void 0 : _a.current) break;
|
|
445
|
+
else if (currentOptionIndex < this.displayedOptionsCount - 1) {
|
|
446
|
+
this.setCurrentOption(this.filteredOptions[currentOptionIndex + 1]);
|
|
447
|
+
} else if (this.filteredOptions.length > this.displayedOptionsCount) {
|
|
448
|
+
this.setCurrentOption(void 0);
|
|
449
|
+
if (this.seeMoreOption) this.seeMoreOption.current = true;
|
|
435
450
|
}
|
|
436
451
|
break;
|
|
437
452
|
case "ArrowUp":
|
|
438
|
-
if (
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
453
|
+
if ((_b = this.seeMoreOption) == null ? void 0 : _b.current) {
|
|
454
|
+
this.setCurrentOption(
|
|
455
|
+
this.filteredOptions[this.displayedOptionsCount - 1]
|
|
456
|
+
);
|
|
457
|
+
this.seeMoreOption.current = false;
|
|
458
|
+
} else if (currentOptionIndex === -1) {
|
|
459
|
+
this.setCurrentOption(this.filteredOptions[0]);
|
|
460
|
+
} else if (currentOptionIndex > 0) {
|
|
461
|
+
this.setCurrentOption(this.filteredOptions[currentOptionIndex - 1]);
|
|
442
462
|
}
|
|
443
463
|
break;
|
|
444
464
|
case "Home":
|
|
445
|
-
|
|
465
|
+
this.setCurrentOption(this.filteredOptions[0]);
|
|
466
|
+
if (this.seeMoreOption) this.seeMoreOption.current = false;
|
|
446
467
|
break;
|
|
447
468
|
case "End":
|
|
448
|
-
|
|
469
|
+
this.setCurrentOption(
|
|
470
|
+
this.filteredOptions[this.displayedOptionsCount - 1]
|
|
471
|
+
);
|
|
472
|
+
if (this.seeMoreOption) this.seeMoreOption.current = false;
|
|
449
473
|
break;
|
|
450
474
|
}
|
|
451
|
-
this.setCurrentOption(this.filteredOptions[newIndex], true);
|
|
452
475
|
this.hasVisualFocus = false;
|
|
453
476
|
}
|
|
477
|
+
handleSeeMoreClick() {
|
|
478
|
+
var _a;
|
|
479
|
+
this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount]);
|
|
480
|
+
this.displayedOptionsCount = Math.min(
|
|
481
|
+
this.displayedOptionsCount + ((_a = this.visibleListLength) != null ? _a : 0),
|
|
482
|
+
this.filteredOptions.length
|
|
483
|
+
);
|
|
484
|
+
if (this.seeMoreOption) this.seeMoreOption.current = false;
|
|
485
|
+
}
|
|
486
|
+
getDescriptionIds() {
|
|
487
|
+
let ids = [];
|
|
488
|
+
if (this.multiple && this.maxOptionsVisible > 0) {
|
|
489
|
+
const tagList = this.selectedOptions.slice(0, this.maxOptionsVisible).map((option) => `tag-${option.value}`).join(" ");
|
|
490
|
+
ids = [...ids, tagList];
|
|
491
|
+
}
|
|
492
|
+
if (this.multiple && this.selectedOptions.length > this.maxOptionsVisible) {
|
|
493
|
+
ids = [...ids, "tag-remaining"];
|
|
494
|
+
}
|
|
495
|
+
if (this.error) ids = [...ids, "error-text"];
|
|
496
|
+
ids = [...ids, "help-text", "description"];
|
|
497
|
+
return ids.join(" ");
|
|
498
|
+
}
|
|
454
499
|
handleDisabledChange() {
|
|
455
500
|
if (this.disabled) {
|
|
456
501
|
this.open = false;
|
|
@@ -466,6 +511,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
466
511
|
handleItemsChange() {
|
|
467
512
|
var _a;
|
|
468
513
|
(_a = this.items) == null ? void 0 : _a.forEach((item) => {
|
|
514
|
+
item.id = item.id && item.id !== "" ? item.id : item.value;
|
|
469
515
|
item.multiple = this.multiple;
|
|
470
516
|
});
|
|
471
517
|
this.allOptions = this.getAllOptions();
|
|
@@ -477,6 +523,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
477
523
|
if (!this.multiple && this.selectedOptions.length > 0) {
|
|
478
524
|
this.syncOnSelection();
|
|
479
525
|
}
|
|
526
|
+
this.resetDisplayedOptionsCount();
|
|
480
527
|
}
|
|
481
528
|
handleValueChange() {
|
|
482
529
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
@@ -496,7 +543,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
496
543
|
this.popup.active = true;
|
|
497
544
|
this.displayInput.focus({ preventScroll: true });
|
|
498
545
|
requestAnimationFrame(() => {
|
|
499
|
-
this.setCurrentOption(this.currentOption
|
|
546
|
+
this.setCurrentOption(this.currentOption);
|
|
500
547
|
});
|
|
501
548
|
const { keyframes, options } = getAnimation(this, "select.show", {
|
|
502
549
|
dir: this.localize.dir()
|
|
@@ -520,7 +567,12 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
520
567
|
}
|
|
521
568
|
}
|
|
522
569
|
handleDisplayLabelChange() {
|
|
570
|
+
var _a;
|
|
523
571
|
this.filterOptions(this.displayLabel);
|
|
572
|
+
if (!((_a = this.seeMoreOption) == null ? void 0 : _a.current)) {
|
|
573
|
+
this.setCurrentOption(this.filteredOptions[0]);
|
|
574
|
+
}
|
|
575
|
+
this.resetDisplayedOptionsCount();
|
|
524
576
|
}
|
|
525
577
|
handleMultipleChange() {
|
|
526
578
|
this.allOptions.forEach((option) => {
|
|
@@ -529,7 +581,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
529
581
|
}
|
|
530
582
|
/** Shows the listbox. */
|
|
531
583
|
async show() {
|
|
532
|
-
if (this.open || this.disabled || this.readonly) {
|
|
584
|
+
if (this.open || this.disabled || this.readonly || this.allOptions.length === 0 && this.fetchingState === "idle") {
|
|
533
585
|
return void 0;
|
|
534
586
|
}
|
|
535
587
|
this.open = true;
|
|
@@ -581,7 +633,10 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
581
633
|
const isPlaceholderVisible = this.placeholder && this.value.length === 0;
|
|
582
634
|
const selectInputWidth = this.value ? isValueDefined ? this.value.length : 1 : void 0;
|
|
583
635
|
const isDisabledOrReadonly = this.disabled || this.readonly;
|
|
584
|
-
const
|
|
636
|
+
const displayedOptions = this.filteredOptions.slice(
|
|
637
|
+
0,
|
|
638
|
+
this.displayedOptionsCount
|
|
639
|
+
);
|
|
585
640
|
return x`
|
|
586
641
|
<dsa-popup
|
|
587
642
|
class=${e2({
|
|
@@ -652,7 +707,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
652
707
|
hasLabel ? void 0 : this.title
|
|
653
708
|
)}
|
|
654
709
|
aria-disabled=${isDisabledOrReadonly ? "true" : "false"}
|
|
655
|
-
aria-describedby=${
|
|
710
|
+
aria-describedby=${this.getDescriptionIds()}
|
|
656
711
|
aria-activedescendant=${(_b = (_a = this.currentOption) == null ? void 0 : _a.id) != null ? _b : ""}
|
|
657
712
|
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
658
713
|
aria-required=${o(this.required ? "true" : void 0)}
|
|
@@ -732,43 +787,55 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
732
787
|
<dsa-icon name="close" library="system"></dsa-icon>
|
|
733
788
|
</button>
|
|
734
789
|
` : ""}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
790
|
+
${this.allOptions.length > 0 || this.fetchingState !== "idle" ? x`
|
|
791
|
+
<dsa-icon
|
|
792
|
+
class="select__expand-icon"
|
|
793
|
+
name="expand_more"
|
|
794
|
+
library="system"
|
|
795
|
+
></dsa-icon>
|
|
796
|
+
` : ""}
|
|
797
|
+
</div>
|
|
798
|
+
<div class="select__panel" @keydown=${this.handleDefaultKeyDown}>
|
|
799
|
+
<ul
|
|
800
|
+
id="listbox"
|
|
801
|
+
role="listbox"
|
|
802
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
803
|
+
aria-multiselectable="false"
|
|
804
|
+
aria-labelledby="label"
|
|
805
|
+
part="listbox"
|
|
806
|
+
class="select__listbox"
|
|
807
|
+
tabindex="-1"
|
|
808
|
+
@mouseup=${this.handleOptionClick}
|
|
809
|
+
>
|
|
810
|
+
${this.fetchingState === "loading" ? x`
|
|
811
|
+
<div class="select__loading_text">
|
|
812
|
+
<dsa-spinner></dsa-spinner>
|
|
813
|
+
<p>${this.localize.term("optionsLoading")}</p>
|
|
814
|
+
</div>
|
|
815
|
+
` : x``}
|
|
816
|
+
${this.fetchingState === "error" ? x`
|
|
817
|
+
<div class="select__loading_text">
|
|
818
|
+
<p>${this.localize.term("optionsError")}</p>
|
|
819
|
+
</div>
|
|
820
|
+
` : x``}
|
|
821
|
+
${["idle", "success"].includes(this.fetchingState) && this.filteredOptions.length > 0 ? displayedOptions : x``}
|
|
822
|
+
${this.visibleListLength && this.visibleListLength > 0 && this.filteredOptions.length > this.displayedOptionsCount ? x`
|
|
823
|
+
<dsa-option
|
|
824
|
+
class="select__panel-see-more-option"
|
|
825
|
+
id="dsa-seemore-option"
|
|
826
|
+
@click=${this.handleSeeMoreClick}
|
|
827
|
+
><span class="see-more-option-text"
|
|
828
|
+
>${this.localize.term("seeMore")}</span
|
|
829
|
+
></dsa-option
|
|
830
|
+
>
|
|
831
|
+
` : ""}
|
|
832
|
+
${["idle", "success"].includes(this.fetchingState) && this.filteredOptions.length === 0 ? x`
|
|
833
|
+
<div class="select__empty_text">
|
|
834
|
+
<p>${this.localize.term("noMatchFound")}</p>
|
|
835
|
+
</div>
|
|
836
|
+
` : x``}
|
|
837
|
+
</ul>
|
|
741
838
|
</div>
|
|
742
|
-
<ul
|
|
743
|
-
id="listbox"
|
|
744
|
-
role="listbox"
|
|
745
|
-
aria-expanded=${this.open ? "true" : "false"}
|
|
746
|
-
aria-multiselectable="false"
|
|
747
|
-
aria-labelledby="label"
|
|
748
|
-
part="listbox"
|
|
749
|
-
class="select__listbox"
|
|
750
|
-
tabindex="-1"
|
|
751
|
-
@mouseup=${this.handleOptionClick}
|
|
752
|
-
@keydown=${this.handleDefaultKeyDown}
|
|
753
|
-
>
|
|
754
|
-
${this.fetchingState === "loading" ? x`
|
|
755
|
-
<div class="select__loading_text">
|
|
756
|
-
<dsa-spinner></dsa-spinner>
|
|
757
|
-
<p>${this.localize.term("optionsLoading")}</p>
|
|
758
|
-
</div>
|
|
759
|
-
` : x``}
|
|
760
|
-
${this.fetchingState === "error" ? x`
|
|
761
|
-
<div class="select__loading_text">
|
|
762
|
-
<p>${this.localize.term("optionsError")}</p>
|
|
763
|
-
</div>
|
|
764
|
-
` : x``}
|
|
765
|
-
${this.fetchingState === "success" && this.filteredOptions.length > 0 ? this.filteredOptions : x``}
|
|
766
|
-
${this.fetchingState === "success" && this.filteredOptions.length === 0 ? x`
|
|
767
|
-
<div class="select__empty_text">
|
|
768
|
-
<p>${this.localize.term("noMatchFound")}</p>
|
|
769
|
-
</div>
|
|
770
|
-
` : x``}
|
|
771
|
-
</ul>
|
|
772
839
|
|
|
773
840
|
<slot
|
|
774
841
|
class="slot_options"
|
|
@@ -796,6 +863,9 @@ __decorateClass([
|
|
|
796
863
|
__decorateClass([
|
|
797
864
|
e(".select__listbox")
|
|
798
865
|
], DSACombobox.prototype, "listbox", 2);
|
|
866
|
+
__decorateClass([
|
|
867
|
+
e(".select__panel-see-more-option")
|
|
868
|
+
], DSACombobox.prototype, "seeMoreOption", 2);
|
|
799
869
|
__decorateClass([
|
|
800
870
|
r()
|
|
801
871
|
], DSACombobox.prototype, "hasVisualFocus", 2);
|
|
@@ -814,6 +884,9 @@ __decorateClass([
|
|
|
814
884
|
__decorateClass([
|
|
815
885
|
r()
|
|
816
886
|
], DSACombobox.prototype, "filteredOptions", 2);
|
|
887
|
+
__decorateClass([
|
|
888
|
+
r()
|
|
889
|
+
], DSACombobox.prototype, "displayedOptionsCount", 2);
|
|
817
890
|
__decorateClass([
|
|
818
891
|
r()
|
|
819
892
|
], DSACombobox.prototype, "debounceTimerId", 2);
|
|
@@ -858,6 +931,9 @@ __decorateClass([
|
|
|
858
931
|
__decorateClass([
|
|
859
932
|
n({ attribute: "max-options-visible", type: Number })
|
|
860
933
|
], DSACombobox.prototype, "maxOptionsVisible", 2);
|
|
934
|
+
__decorateClass([
|
|
935
|
+
n({ attribute: "visible-list-length", type: Number || void 0 })
|
|
936
|
+
], DSACombobox.prototype, "visibleListLength", 2);
|
|
861
937
|
__decorateClass([
|
|
862
938
|
n({ type: Number, attribute: "debounce-timeout" })
|
|
863
939
|
], DSACombobox.prototype, "debounceTimeout", 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
download_link_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.DROLKHEJ.js";
|
|
4
4
|
import {
|
|
5
5
|
e
|
|
6
6
|
} from "./chunk.IKHG7XGO.js";
|
|
@@ -40,6 +40,7 @@ var DSADownloadLink = class extends ShoelaceElement {
|
|
|
40
40
|
"link--floating-menu": this.variant === "floating",
|
|
41
41
|
"document-link--x-large": this.size === "xlarge",
|
|
42
42
|
"document-link--large": this.size === "large",
|
|
43
|
+
"document-link--medium": this.size === "medium",
|
|
43
44
|
"document-link--small": this.size === "small",
|
|
44
45
|
"document-link--x-small": this.size === "xsmall",
|
|
45
46
|
"document-link--2x-small": this.size === "2xsmall"
|
|
@@ -29,11 +29,10 @@ function isISODate(date) {
|
|
|
29
29
|
}
|
|
30
30
|
function isValidDate(isoDate) {
|
|
31
31
|
const [year, month, day] = isoDate.split("-");
|
|
32
|
-
const d = new Date(Number(year), Number(month) - 1, Number(day));
|
|
33
|
-
d.setUTCFullYear(Number(year));
|
|
34
32
|
if ([year, month, day].includes("")) {
|
|
35
33
|
return false;
|
|
36
34
|
}
|
|
35
|
+
const d = /* @__PURE__ */ new Date(`${isoDate}T00:00`);
|
|
37
36
|
if (d.getFullYear() === Number(year) && d.getMonth() === Number(month) - 1 && d.getDate() === Number(day)) {
|
|
38
37
|
return true;
|
|
39
38
|
}
|
|
@@ -49,10 +48,7 @@ function getISOFormattedDate(date) {
|
|
|
49
48
|
return `${year}-${month}-${day}`;
|
|
50
49
|
}
|
|
51
50
|
function getDateFromISO(isoDate) {
|
|
52
|
-
|
|
53
|
-
const date = new Date(Number(year), Number(month) - 1, Number(day));
|
|
54
|
-
date.setUTCFullYear(Number(year));
|
|
55
|
-
return date;
|
|
51
|
+
return /* @__PURE__ */ new Date(`${isoDate}T00:00`);
|
|
56
52
|
}
|
|
57
53
|
function monthLength(month, year) {
|
|
58
54
|
if (!month) {
|
|
@@ -24,13 +24,16 @@ import {
|
|
|
24
24
|
} from "./chunk.2WRFDMKN.js";
|
|
25
25
|
import {
|
|
26
26
|
LocalizeController
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.VARBZAJP.js";
|
|
28
28
|
import {
|
|
29
29
|
watch
|
|
30
30
|
} from "./chunk.4FQJ3QJK.js";
|
|
31
31
|
import {
|
|
32
32
|
ifDefinedAndNotEmpty
|
|
33
33
|
} from "./chunk.B6GVVW66.js";
|
|
34
|
+
import {
|
|
35
|
+
a11yWarning
|
|
36
|
+
} from "./chunk.PWL7QCVG.js";
|
|
34
37
|
import {
|
|
35
38
|
o
|
|
36
39
|
} from "./chunk.YQLIIKLI.js";
|
|
@@ -241,6 +244,16 @@ var DSADrawer = class extends ShoelaceElement {
|
|
|
241
244
|
return await waitForEvent(this, "dsa-after-hide");
|
|
242
245
|
}
|
|
243
246
|
render() {
|
|
247
|
+
if (!this.label && !this.hasSlotController.test("label")) {
|
|
248
|
+
a11yWarning(
|
|
249
|
+
"<dsa-drawer> requires a label attribute or a label slot for accessibility"
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
if (this.noHeader && !this.label) {
|
|
253
|
+
a11yWarning(
|
|
254
|
+
"<dsa-drawer> requires a label attribute for accessibility when `no-header` is set"
|
|
255
|
+
);
|
|
256
|
+
}
|
|
244
257
|
return x`
|
|
245
258
|
<div
|
|
246
259
|
part="base"
|
|
@@ -295,6 +308,7 @@ var DSADrawer = class extends ShoelaceElement {
|
|
|
295
308
|
label=${this.localize.term("close")}
|
|
296
309
|
@click=${() => this.requestClose("close-button")}
|
|
297
310
|
library="system"
|
|
311
|
+
size="large"
|
|
298
312
|
></dsa-icon-button>
|
|
299
313
|
</div>
|
|
300
314
|
</header>
|
|
@@ -4,6 +4,11 @@ var NationalFrenchPhoneConfig = {
|
|
|
4
4
|
mask: "# ## ## ## ##",
|
|
5
5
|
pattern: "^((\\+)33|(\\+)262|(\\+)590|(\\+)594|(\\+)596)[1-9](\\d{2}){4}$"
|
|
6
6
|
};
|
|
7
|
+
var EightNumbersPhoneConfig = {
|
|
8
|
+
placeholder: "__ __ __ __",
|
|
9
|
+
mask: "## ## ## ##",
|
|
10
|
+
pattern: "^(\\+)689(\\d{2}){4}$"
|
|
11
|
+
};
|
|
7
12
|
var SixNumbersPhoneConfig = {
|
|
8
13
|
placeholder: "__ __ __",
|
|
9
14
|
mask: "## ## ##",
|
|
@@ -14,8 +19,9 @@ function getPhoneConfig(phonePrefix) {
|
|
|
14
19
|
case "+508":
|
|
15
20
|
case "+681":
|
|
16
21
|
case "+687":
|
|
17
|
-
case "+689":
|
|
18
22
|
return SixNumbersPhoneConfig;
|
|
23
|
+
case "+689":
|
|
24
|
+
return EightNumbersPhoneConfig;
|
|
19
25
|
case "+33":
|
|
20
26
|
case "+262":
|
|
21
27
|
case "+590":
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ifDefinedAndNotEmpty
|
|
3
3
|
} from "./chunk.B6GVVW66.js";
|
|
4
|
+
import {
|
|
5
|
+
a11yWarning
|
|
6
|
+
} from "./chunk.PWL7QCVG.js";
|
|
4
7
|
import {
|
|
5
8
|
e
|
|
6
9
|
} from "./chunk.IKHG7XGO.js";
|
|
@@ -11,7 +14,7 @@ import {
|
|
|
11
14
|
} from "./chunk.DZB6XUZ7.js";
|
|
12
15
|
import {
|
|
13
16
|
anchor_tag_styles_default
|
|
14
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.5AF25B3X.js";
|
|
15
18
|
import {
|
|
16
19
|
x
|
|
17
20
|
} from "./chunk.7HUC6BF3.js";
|
|
@@ -35,6 +38,11 @@ var DSAAnchorTag = class extends ShoelaceElement {
|
|
|
35
38
|
this.size = "medium";
|
|
36
39
|
}
|
|
37
40
|
render() {
|
|
41
|
+
if (!this.label) {
|
|
42
|
+
a11yWarning(
|
|
43
|
+
"<dsa-anchor-tag> requires a label attribute for accessibility"
|
|
44
|
+
);
|
|
45
|
+
}
|
|
38
46
|
return x`
|
|
39
47
|
<a
|
|
40
48
|
part="base"
|
|
@@ -17,10 +17,13 @@ import {
|
|
|
17
17
|
} from "./chunk.2WRFDMKN.js";
|
|
18
18
|
import {
|
|
19
19
|
LocalizeController
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.VARBZAJP.js";
|
|
21
21
|
import {
|
|
22
22
|
watch
|
|
23
23
|
} from "./chunk.4FQJ3QJK.js";
|
|
24
|
+
import {
|
|
25
|
+
a11yWarning
|
|
26
|
+
} from "./chunk.PWL7QCVG.js";
|
|
24
27
|
import {
|
|
25
28
|
e as e2
|
|
26
29
|
} from "./chunk.IKHG7XGO.js";
|
|
@@ -161,6 +164,12 @@ var DSANavbarMenu = class extends ShoelaceElement {
|
|
|
161
164
|
return await waitForEvent(this, "dsa-after-hide");
|
|
162
165
|
}
|
|
163
166
|
render() {
|
|
167
|
+
const hasSlotLabel = this.hasSlotController.test("label");
|
|
168
|
+
if (!this.label && !hasSlotLabel) {
|
|
169
|
+
a11yWarning(
|
|
170
|
+
"<dsa-navbar-menu> requires a label attribute or a label slot for accessibility"
|
|
171
|
+
);
|
|
172
|
+
}
|
|
164
173
|
if (this.mobile) {
|
|
165
174
|
return x`
|
|
166
175
|
<div
|
|
@@ -233,7 +242,7 @@ var DSANavbarMenu = class extends ShoelaceElement {
|
|
|
233
242
|
>
|
|
234
243
|
<span
|
|
235
244
|
class="navbar-menu__button__label"
|
|
236
|
-
data-content="${
|
|
245
|
+
data-content="${hasSlotLabel ? this.querySelector('[slot="label"]').innerText : this.label}"
|
|
237
246
|
>
|
|
238
247
|
<slot name="label">${this.label}</slot>
|
|
239
248
|
</span>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSAOption
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.Y5RTMSTB.js";
|
|
4
4
|
import {
|
|
5
5
|
DSAInput
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.UPVAZQNH.js";
|
|
7
7
|
import {
|
|
8
8
|
filter_select_styles_default
|
|
9
9
|
} from "./chunk.57V66KCM.js";
|
|
10
10
|
import {
|
|
11
11
|
FilterBase
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.4ZEHBLJR.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeStr
|
|
15
15
|
} from "./chunk.O4MZVDWB.js";
|