@ds-autonomie/web-components 2.12.0 → 2.14.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 +31 -0
- package/cdn/chunks/{chunk.ZTSFBM3Z.js → chunk.27QL4IYU.js} +1 -1
- package/cdn/chunks/{chunk.F2AI7O4R.js → chunk.2BS4FDS7.js} +1 -1
- package/cdn/chunks/{chunk.BUKM2N6B.js → chunk.3EGQN2WU.js} +1 -1
- package/cdn/chunks/{chunk.Z7ZDVATP.js → chunk.3N5SP55U.js} +11 -8
- package/cdn/chunks/{chunk.653MPFUT.js → chunk.3N7ZDDUL.js} +3 -3
- package/cdn/chunks/{chunk.QSIQSHSN.js → chunk.3UIZ5RTK.js} +2 -2
- package/cdn/chunks/{chunk.L57YXDBH.js → chunk.3ZGSESNP.js} +2 -1
- package/cdn/chunks/{chunk.XHR7MVV6.js → chunk.5HLGCYCW.js} +4 -4
- package/cdn/chunks/{chunk.CEDKHQ6Y.js → chunk.5KQYKK7F.js} +1 -1
- package/cdn/chunks/{chunk.SVSNIKRJ.js → chunk.5OXHY35T.js} +1 -1
- package/cdn/chunks/{chunk.E6U524GP.js → chunk.5YWOUFLR.js} +1 -1
- package/cdn/chunks/{chunk.MYUDDEC5.js → chunk.6OI6TY62.js} +5 -5
- package/cdn/chunks/{chunk.4Q2WUHBV.js → chunk.6T4NTP5P.js} +1 -1
- package/cdn/chunks/{chunk.UBWOOLWW.js → chunk.6TEFOHBI.js} +47 -30
- package/cdn/chunks/{chunk.UANNVQFM.js → chunk.6TP5MV24.js} +1 -1
- package/cdn/chunks/{chunk.NZFBTFCB.js → chunk.7H3HPSRF.js} +1 -1
- package/cdn/chunks/{chunk.Y3VIEPP4.js → chunk.7OHJ4IWG.js} +1 -1
- package/cdn/chunks/{chunk.HPXPJRHP.js → chunk.AP47GURR.js} +1 -1
- package/cdn/chunks/{chunk.IUTJLFMA.js → chunk.AXLGDJN5.js} +14 -2
- package/cdn/chunks/{chunk.QVKLZ6B5.js → chunk.BFFPRKRY.js} +1 -1
- package/cdn/chunks/{chunk.IIVSSOAU.js → chunk.BKYKGPRF.js} +5 -5
- package/cdn/chunks/{chunk.7AU43JKE.js → chunk.C6YOQGP3.js} +1 -0
- package/cdn/chunks/{chunk.OTEYQ4OU.js → chunk.C77KPVOT.js} +3 -3
- package/cdn/chunks/{chunk.VDNWYNYL.js → chunk.CMJGPUHA.js} +1 -1
- package/cdn/chunks/{chunk.3K2PJ2XE.js → chunk.CSILWGEZ.js} +1 -1
- package/cdn/chunks/{chunk.UDSRZSUI.js → chunk.CTL6ZCUT.js} +1 -1
- package/cdn/chunks/{chunk.L2J7SIIL.js → chunk.D4SGUF6U.js} +3 -7
- package/cdn/chunks/{chunk.KVKLGFVO.js → chunk.DBFO36BO.js} +1 -1
- 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.KM4KITZK.js → chunk.DZNKN7UG.js} +1 -1
- package/cdn/chunks/{chunk.K62J6GEH.js → chunk.E7NEC6I7.js} +1 -0
- package/cdn/chunks/{chunk.VX3USOBX.js → chunk.EWW2BZ55.js} +1 -1
- package/cdn/chunks/{chunk.FK753ZOL.js → chunk.FAUBDRT4.js} +1 -1
- package/cdn/chunks/{chunk.KOCETN2L.js → chunk.G2SVIJQS.js} +33 -6
- package/cdn/chunks/{chunk.FMMA36UF.js → chunk.GSJB73YG.js} +6 -8
- package/cdn/chunks/{chunk.R76IUUIR.js → chunk.HBQ2CUEK.js} +6 -6
- package/cdn/chunks/{chunk.SPF4JEAI.js → chunk.I6BMKPEG.js} +2 -2
- package/cdn/chunks/chunk.I6O5BUMW.js +193 -0
- package/cdn/chunks/{chunk.MQLSZR7A.js → chunk.IIYHRPGQ.js} +2 -2
- package/cdn/chunks/{chunk.JJZU37TO.js → chunk.IJCMZSUR.js} +1 -1
- package/cdn/chunks/{chunk.KDCTYM4V.js → chunk.IW2FTSST.js} +1 -0
- package/cdn/chunks/{chunk.3YZ3B66O.js → chunk.IXYMG74O.js} +1 -1
- package/cdn/chunks/{chunk.5ZUX2FMF.js → chunk.J2572HZK.js} +2 -2
- package/cdn/chunks/{chunk.MYQ5E7XD.js → chunk.JK2FCATP.js} +1 -1
- package/cdn/chunks/{chunk.KNXOB4UE.js → chunk.JRRGTRHM.js} +2 -2
- package/cdn/chunks/{chunk.SY3EVBNT.js → chunk.JTLVEFWT.js} +3 -0
- package/cdn/chunks/{chunk.L2UYHE4C.js → chunk.KGCF4GE3.js} +2 -2
- package/cdn/chunks/{chunk.X2EDAUXX.js → chunk.KJEDKAAU.js} +2 -2
- package/cdn/chunks/{chunk.J7IAZRFK.js → chunk.L2BUQDZM.js} +1 -1
- package/cdn/chunks/{chunk.CNA5HI7Z.js → chunk.LS2PBFC6.js} +1 -0
- package/cdn/chunks/{chunk.ALIVM5IK.js → chunk.M4JIV4Y5.js} +2 -2
- package/cdn/chunks/{chunk.XFBBCWDH.js → chunk.MF7YPS4H.js} +2 -2
- package/cdn/chunks/{chunk.3NEUPBWJ.js → chunk.MUSSBYDR.js} +1 -0
- package/cdn/chunks/{chunk.LAHTYN7O.js → chunk.MY7IDU47.js} +1 -1
- package/cdn/chunks/{chunk.TRBARQEX.js → chunk.NP4PGPAG.js} +1 -1
- package/cdn/chunks/{chunk.CPYSCXYB.js → chunk.NR7XWVN5.js} +1 -1
- package/cdn/chunks/{chunk.XCDQSN4K.js → chunk.NRSRHNP4.js} +2 -2
- package/cdn/chunks/chunk.NXQMWO3B.js +266 -0
- package/cdn/chunks/{chunk.VN25W2LD.js → chunk.O4UP6LFM.js} +47 -20
- package/cdn/chunks/{chunk.ZF3LJFGB.js → chunk.OBQI5SCI.js} +2 -2
- package/cdn/chunks/{chunk.CE4QX5GY.js → chunk.OOJHJQ3U.js} +16 -1
- package/cdn/chunks/{chunk.VJJMI4E3.js → chunk.OTTJPZLF.js} +2 -2
- package/cdn/chunks/{chunk.H55UBRU5.js → chunk.PA54RLEK.js} +23 -7
- package/cdn/chunks/{chunk.XI4SZBXQ.js → chunk.PJMLZBRQ.js} +4 -4
- package/cdn/chunks/{chunk.FSMUXFAQ.js → chunk.PSBVXVMH.js} +21 -0
- package/cdn/chunks/{chunk.ANY4UVWZ.js → chunk.PWRGRVWK.js} +2 -2
- package/cdn/chunks/{chunk.4ZYC455I.js → chunk.Q32YUSGV.js} +2 -2
- package/cdn/chunks/{chunk.SKCM6IIU.js → chunk.Q7GSCDIH.js} +1 -1
- package/cdn/chunks/{chunk.ZE5OBVSN.js → chunk.QCPPB4JM.js} +3 -3
- package/cdn/chunks/{chunk.XUMSOEU7.js → chunk.QQDMDNG6.js} +2 -2
- package/cdn/chunks/{chunk.5BXI46NB.js → chunk.SALIDVU2.js} +3 -4
- package/cdn/chunks/{chunk.JSZ62MET.js → chunk.SFB5GQLQ.js} +5 -5
- package/cdn/chunks/{chunk.RO6E3CHM.js → chunk.SV2UWNMS.js} +1 -1
- package/cdn/chunks/{chunk.OVCET4YX.js → chunk.TUANFMEV.js} +1 -1
- package/cdn/chunks/{chunk.LF2FSSES.js → chunk.TZJNCBSI.js} +1 -1
- package/cdn/chunks/{chunk.6SX2PVBZ.js → chunk.UB6PQVJQ.js} +37 -10
- 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.7X3L3UKI.js → chunk.VC4NFGNB.js} +1 -1
- package/cdn/chunks/{chunk.4UH2GNFC.js → chunk.VO5QJNZB.js} +1 -1
- package/cdn/chunks/{chunk.3RLCSIOS.js → chunk.VRHOQBOT.js} +2 -6
- package/cdn/chunks/{chunk.GCZKQEK3.js → chunk.VZKLPHWL.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.BPBQ7RLQ.js → chunk.X4ROOYZQ.js} +2 -2
- package/cdn/chunks/{chunk.H4JTQC7T.js → chunk.XBIJAUV4.js} +1 -1
- package/cdn/chunks/{chunk.RRHJQF74.js → chunk.XTTQ5UPY.js} +6 -0
- package/cdn/chunks/{chunk.R3NC5YZH.js → chunk.Y4S7SM27.js} +1 -1
- package/cdn/chunks/{chunk.G6BQ2WKP.js → chunk.YDZHK6RM.js} +2 -2
- package/cdn/chunks/{chunk.PX75GZGD.js → chunk.YUKVCPXW.js} +25 -2
- package/cdn/chunks/{chunk.B6A5AGBJ.js → chunk.ZED3URBR.js} +1 -0
- package/cdn/chunks/{chunk.FOB2ZQTP.js → chunk.ZFTN4BWG.js} +2 -2
- package/cdn/chunks/{chunk.6MHC5DNA.js → chunk.ZFWPHGWV.js} +1 -0
- package/cdn/chunks/{chunk.A36W5FG6.js → chunk.ZKESFKS5.js} +1 -1
- package/cdn/components/accordion/accordion.js +4 -4
- package/cdn/components/accordion-group/accordion-group.js +6 -6
- package/cdn/components/alert/alert.d.ts +1 -0
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/avatar/avatar.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.js +4 -4
- 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 +5 -5
- package/cdn/components/calendar/calendar.js +2 -2
- package/cdn/components/callout/callout.js +3 -3
- package/cdn/components/card-content/card-content.js +2 -2
- package/cdn/components/card-nav-accordion/card-nav-accordion.js +4 -4
- package/cdn/components/card-nav-item/card-nav-item.js +2 -2
- package/cdn/components/checkbox/checkbox.js +6 -6
- package/cdn/components/checkbox-button/checkbox-button.js +3 -3
- package/cdn/components/checkbox-card/checkbox-card.js +2 -2
- package/cdn/components/checkbox-group/checkbox-group.js +3 -3
- package/cdn/components/combobox/combobox.d.ts +1 -0
- package/cdn/components/combobox/combobox.js +12 -8
- package/cdn/components/combobox/combobox.styles.js +1 -1
- package/cdn/components/copy-button/copy-button.js +5 -5
- package/cdn/components/dialog/dialog.js +5 -5
- package/cdn/components/dialog/dialog.styles.js +1 -1
- package/cdn/components/download-card/download-card.js +2 -2
- package/cdn/components/download-link/download-link.js +2 -2
- package/cdn/components/drawer/drawer.js +5 -5
- package/cdn/components/drawer/drawer.styles.js +1 -1
- 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/file-upload/file-upload.js +4 -4
- package/cdn/components/file-upload-item/file-upload-item.js +2 -2
- package/cdn/components/filter-button/filter-button.js +4 -4
- package/cdn/components/filter-counter/filter-counter.js +20 -20
- package/cdn/components/filter-counter/filter-counter.styles.js +2 -2
- package/cdn/components/filter-date/filter-date.js +11 -11
- package/cdn/components/filter-date/filter-date.styles.js +2 -2
- package/cdn/components/filter-range/filter-range.js +20 -20
- package/cdn/components/filter-range/filter-range.styles.js +2 -2
- package/cdn/components/filter-select/filter-select.js +21 -21
- package/cdn/components/filter-select/filter-select.styles.js +2 -2
- 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.assets.d.ts +2 -1
- package/cdn/components/header/header.assets.js +5 -3
- package/cdn/components/header/header.d.ts +1 -0
- package/cdn/components/header/header.js +4 -4
- package/cdn/components/header/header.styles.js +1 -1
- package/cdn/components/header-modern/header-modern.d.ts +42 -0
- package/cdn/components/header-modern/header-modern.js +20 -0
- package/cdn/components/header-modern/header-modern.styles.d.ts +2 -0
- package/cdn/components/header-modern/header-modern.styles.js +10 -0
- package/cdn/components/header-search/header-search.d.ts +0 -1
- package/cdn/components/header-search/header-search.js +9 -9
- package/cdn/components/header-search/header-search.styles.js +1 -1
- package/cdn/components/icon/icon.js +2 -2
- package/cdn/components/icon-button/icon-button.js +2 -2
- package/cdn/components/input/input.js +13 -13
- package/cdn/components/input-amount/input-amount.js +5 -5
- package/cdn/components/input-date/input-date.js +8 -8
- package/cdn/components/input-date/input-date.styles.js +1 -1
- package/cdn/components/input-mask/input-mask.js +6 -6
- package/cdn/components/input-native/input-native.js +5 -5
- package/cdn/components/input-otp/input-otp.js +4 -4
- package/cdn/components/input-phone/input-phone.js +15 -13
- package/cdn/components/input-time/input-time.js +7 -7
- package/cdn/components/menu-accordion/menu-accordion.js +5 -5
- package/cdn/components/menu-item/menu-item.js +2 -2
- package/cdn/components/menu-navigation/menu-navigation.js +2 -2
- package/cdn/components/navbar-link/navbar-link.js +4 -4
- package/cdn/components/navbar-menu/navbar-menu.js +5 -5
- package/cdn/components/option/option.js +4 -4
- package/cdn/components/pagination/pagination.js +14 -14
- package/cdn/components/profile-button/profile-button.js +7 -7
- package/cdn/components/profile-button/profile-button.styles.js +1 -1
- package/cdn/components/progress-bar/progress-bar.js +2 -2
- 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 +2 -2
- package/cdn/components/radio/radio.js +2 -2
- package/cdn/components/radio-button/radio-button.js +5 -5
- package/cdn/components/radio-card/radio-card.js +5 -5
- package/cdn/components/radio-group/radio-group.js +4 -4
- package/cdn/components/relative-time/relative-time.js +2 -2
- package/cdn/components/search/search.js +5 -5
- package/cdn/components/select/select.d.ts +1 -2
- package/cdn/components/select/select.js +11 -7
- package/cdn/components/select/select.styles.js +1 -1
- package/cdn/components/sidenav/sidenav.js +7 -7
- package/cdn/components/sidenav/sidenav.styles.js +1 -1
- package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +5 -5
- package/cdn/components/skip-link-item/skip-link-item.js +2 -2
- package/cdn/components/skip-link-item/skip-link-item.styles.js +1 -1
- 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 +4 -4
- package/cdn/components/step/step.js +5 -5
- package/cdn/components/success-text/success-text.js +2 -2
- package/cdn/components/switch/switch.js +5 -5
- package/cdn/components/tab/tab.js +4 -4
- package/cdn/components/tab-group/tab-group.js +5 -5
- 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.js +2 -2
- package/cdn/components/table-body/table-body.js +2 -2
- package/cdn/components/table-caption/table-caption.js +2 -2
- package/cdn/components/table-container/table-container.js +2 -2
- package/cdn/components/table-header-cell/table-header-cell.js +2 -2
- package/cdn/components/table-header-row/table-header-row.js +11 -11
- package/cdn/components/table-of-contents/table-of-contents.js +3 -3
- package/cdn/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/cdn/components/table-row/table-row.js +8 -8
- package/cdn/components/tag/tag.d.ts +10 -0
- package/cdn/components/tag/tag.js +14 -5
- package/cdn/components/tag/tag.styles.js +1 -1
- package/cdn/components/textarea/textarea.js +4 -4
- package/cdn/components/tooltip/tooltip.js +2 -2
- package/cdn/components/tree/tree.d.ts +1 -1
- package/cdn/components/tree/tree.js +11 -11
- package/cdn/components/tree-item/tree-item.js +9 -9
- package/cdn/custom-elements.json +714 -444
- package/cdn/design-system.d.ts +1 -0
- package/cdn/design-system.js +163 -158
- package/cdn/internal/components/filter-base/filter-base.styles.js +1 -0
- package/cdn/themes/dsa-wc-theme.css +42 -2
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +42 -2
- 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/localize.d.ts +7 -1
- package/cdn/utilities/localize.js +1 -1
- package/cdn/utilities/storybook.js +2 -2
- package/cdn/vscode.html-custom-data.json +53 -20
- package/cdn/web-types.json +312 -170
- package/dist/chunks/{chunk.KYZD4HDJ.js → chunk.2IQGSC6O.js} +2 -2
- package/dist/chunks/{chunk.WIJ5PZTL.js → chunk.2LB4AUIL.js} +1 -1
- package/dist/chunks/{chunk.YU4MKWNH.js → chunk.2OOQ2NCR.js} +2 -2
- package/dist/chunks/{chunk.D5R3P43B.js → chunk.2SEZCGJ3.js} +1 -1
- package/dist/chunks/{chunk.7TG3DZTW.js → chunk.36NZDHSV.js} +1 -1
- package/dist/chunks/{chunk.44PC44MV.js → chunk.46IV7V5Z.js} +2 -1
- package/dist/chunks/{chunk.PQQ3VJ6P.js → chunk.46JZ4IOR.js} +2 -2
- package/dist/chunks/{chunk.M5BZYGOO.js → chunk.47UW24KJ.js} +47 -30
- package/dist/chunks/{chunk.A2YTGQ5P.js → chunk.4RIYXW6H.js} +1 -1
- package/dist/chunks/{chunk.5SH2NDGR.js → chunk.5SWZPGRD.js} +2 -2
- package/dist/chunks/{chunk.LGVJZXUH.js → chunk.6G6RGA23.js} +1 -0
- package/dist/chunks/{chunk.OBK2DHZB.js → chunk.6R2AWNKQ.js} +4 -4
- package/dist/chunks/{chunk.I26LWXXM.js → chunk.6WSD7QPH.js} +1 -1
- package/dist/chunks/{chunk.MO2DF64H.js → chunk.7532DR34.js} +2 -2
- package/dist/chunks/{chunk.7EXTAE26.js → chunk.7AUS6TUM.js} +1 -1
- package/dist/chunks/{chunk.6KJSL5LS.js → chunk.7NXV3VF3.js} +1 -1
- package/dist/chunks/{chunk.TWQ2VS2U.js → chunk.7T4JFEP3.js} +1 -1
- package/dist/chunks/{chunk.JSNVYESF.js → chunk.7TLERCGA.js} +25 -2
- package/dist/chunks/{chunk.EXD4UGIK.js → chunk.A3SHXMQF.js} +1 -1
- package/dist/chunks/{chunk.GDLRITRX.js → chunk.A6JPNFVS.js} +1 -1
- package/dist/chunks/{chunk.OBIOX2QK.js → chunk.AJ6TVRRB.js} +1 -1
- package/dist/chunks/{chunk.PSY6BXI7.js → chunk.AXDAWBNN.js} +3 -0
- package/dist/chunks/{chunk.6VBPJWGT.js → chunk.C42D5RKV.js} +3 -3
- package/dist/chunks/{chunk.OM7W63ZQ.js → chunk.CCULDZ5X.js} +1 -1
- package/dist/chunks/{chunk.SHMCRSQN.js → chunk.D5655OGD.js} +4 -4
- package/dist/chunks/{chunk.BR2432LA.js → chunk.DONQDIEN.js} +6 -0
- package/dist/chunks/{chunk.ZRTIZ2ZU.js → chunk.DZIULIME.js} +1 -1
- package/dist/chunks/{chunk.S4KNUHFV.js → chunk.EKKVLF7E.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.F4IP53FN.js} +23 -7
- package/dist/chunks/{chunk.5SU4CCQO.js → chunk.F7ZGTKYJ.js} +2 -2
- package/dist/chunks/{chunk.CKP37TED.js → chunk.FFVQTNFR.js} +2 -2
- package/dist/chunks/{chunk.4CT4OG3U.js → chunk.FIA35WYC.js} +1 -1
- package/dist/chunks/{chunk.37SIR5NH.js → chunk.FUL6NUHM.js} +1 -1
- package/dist/chunks/{chunk.6A2PTTMJ.js → chunk.GLDOSWES.js} +2 -2
- package/dist/chunks/{chunk.LXAPUOCB.js → chunk.GO2YJX4Q.js} +31 -5
- package/dist/chunks/{chunk.DHIOIHB2.js → chunk.GXST43AN.js} +2 -2
- package/dist/chunks/{chunk.P5HQ7ESJ.js → chunk.H7FOSCQV.js} +1 -1
- package/dist/chunks/{chunk.HH6M5ISS.js → chunk.HJMA4FPP.js} +1 -1
- package/dist/chunks/{chunk.7LOQIP5T.js → chunk.HMTZWLCV.js} +11 -8
- package/dist/chunks/{chunk.UIUYLHPM.js → chunk.HNYLJTPB.js} +1 -1
- package/dist/chunks/{chunk.QDXFBING.js → chunk.I5ODFJO6.js} +2 -2
- package/dist/chunks/{chunk.AVFXGN5E.js → chunk.ILHVGOFN.js} +1 -1
- package/dist/chunks/chunk.ISWWNUGH.js +264 -0
- package/dist/chunks/{chunk.7EMAFCV4.js → chunk.J5XUN4RX.js} +1 -1
- package/dist/chunks/{chunk.U6FYLS3C.js → chunk.J6RPTAQI.js} +1 -1
- package/dist/chunks/{chunk.X23V3C6R.js → chunk.JDHDSPED.js} +1 -1
- package/dist/chunks/{chunk.K2UXH6ZD.js → chunk.JDHNGWIH.js} +2 -6
- package/dist/chunks/{chunk.UXNALBWT.js → chunk.JKZSEYGF.js} +1 -1
- package/dist/chunks/{chunk.JF47WNHN.js → chunk.JTJBX4QS.js} +1 -1
- package/dist/chunks/{chunk.LOM2QK4T.js → chunk.KIN7BJ2S.js} +1 -0
- package/dist/chunks/{chunk.FGPLOCXU.js → chunk.KWPO3EDM.js} +4 -4
- package/dist/chunks/{chunk.IUD6WB66.js → chunk.L6NDVRCR.js} +5 -5
- package/dist/chunks/{chunk.DRR77YKL.js → chunk.LCNXSDAI.js} +1 -1
- package/dist/chunks/{chunk.WID2OCNV.js → chunk.LDGTSFQV.js} +1 -1
- package/dist/chunks/{chunk.652GG3AU.js → chunk.LKL435K3.js} +1 -1
- package/dist/chunks/{chunk.COM2MNGD.js → chunk.LZPAAWTZ.js} +1 -0
- package/dist/chunks/{chunk.6HTDKIVC.js → chunk.MMEFZDPJ.js} +1 -1
- package/dist/chunks/{chunk.QOTRG3SW.js → chunk.N5HIPUUE.js} +6 -8
- package/dist/chunks/{chunk.TEHV57S2.js → chunk.NLQQDGEL.js} +16 -1
- package/dist/chunks/{chunk.N36MBM2Q.js → chunk.O42OVLHD.js} +1 -1
- package/dist/chunks/{chunk.N6N5PXAU.js → chunk.OOJRFXKM.js} +1 -1
- package/dist/chunks/{chunk.7M5CM6FS.js → chunk.Q2YIXYWB.js} +1 -1
- package/dist/chunks/{chunk.GXXH57EX.js → chunk.QCSAZGXA.js} +2 -2
- package/dist/chunks/{chunk.IW2YJ6FJ.js → chunk.QKV2UFTU.js} +1 -1
- package/dist/chunks/{chunk.WQVKSBYD.js → chunk.QXRV6D3A.js} +1 -0
- package/dist/chunks/{chunk.7BLYNLBH.js → chunk.QY3AIGLE.js} +14 -2
- package/dist/chunks/{chunk.PL7FGR6O.js → chunk.RBRPIIUZ.js} +2 -3
- package/dist/chunks/{chunk.ULC7VUCJ.js → chunk.RCKLGFQP.js} +1 -1
- package/dist/chunks/{chunk.25GTO3QB.js → chunk.RH2CIWCE.js} +1 -1
- package/dist/chunks/{chunk.6PBTRK6C.js → chunk.RHI7PHVF.js} +3 -3
- package/dist/chunks/{chunk.KQCEZOVH.js → chunk.ROCLZVBA.js} +37 -10
- package/dist/chunks/{chunk.5WAZTHII.js → chunk.S3E2SSO2.js} +1 -0
- package/dist/chunks/chunk.TCTJKHNY.js +187 -0
- package/dist/chunks/{chunk.NHMU76XR.js → chunk.TRGRP3EU.js} +47 -20
- package/dist/chunks/{chunk.CJIVNPKU.js → chunk.TSWE7TKY.js} +1 -1
- package/dist/chunks/{chunk.55QIIYQY.js → chunk.TYBH3WM7.js} +2 -6
- package/dist/chunks/{chunk.FJUIXT7L.js → chunk.U6XEEEIG.js} +1 -1
- package/dist/chunks/{chunk.MWZRCNNO.js → chunk.VGW52PNG.js} +1 -1
- package/dist/chunks/{chunk.YQUUPYEO.js → chunk.WBB5EJ2R.js} +1 -1
- package/dist/chunks/{chunk.ZK6Y3PH5.js → chunk.WH3C6KS6.js} +1 -1
- package/dist/chunks/{chunk.MJDFYFBT.js → chunk.WNYVRNKA.js} +5 -5
- package/dist/chunks/{chunk.DVKGL7IF.js → chunk.X3ZR4IMO.js} +1 -1
- package/dist/chunks/{chunk.EOBDJFKX.js → chunk.XH64BF6I.js} +4 -4
- package/dist/chunks/{chunk.AXRKD7DS.js → chunk.XPNRSOJY.js} +1 -1
- package/dist/chunks/{chunk.PVXX2LT7.js → chunk.YSCXTTQZ.js} +1 -1
- package/dist/chunks/{chunk.S55U4A2J.js → chunk.YVMIUPK5.js} +1 -0
- package/dist/chunks/{chunk.72WPMH2C.js → chunk.Z5WPCFQ2.js} +1 -1
- package/dist/chunks/{chunk.VS6H6IPF.js → chunk.ZCI3JIOP.js} +1 -1
- package/dist/chunks/{chunk.VQ2ZMSUF.js → chunk.ZTQFL5KG.js} +2 -2
- package/dist/chunks/{chunk.KZBMMXBH.js → chunk.ZTQL6LV2.js} +21 -0
- package/dist/chunks/{chunk.75YDRKLZ.js → chunk.ZWLVZ5XN.js} +1 -0
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/accordion-group/accordion-group.js +6 -6
- package/dist/components/alert/alert.d.ts +1 -0
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/avatar/avatar.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.js +4 -4
- 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 +5 -5
- package/dist/components/calendar/calendar.js +2 -2
- package/dist/components/callout/callout.js +3 -3
- package/dist/components/card-content/card-content.js +2 -2
- package/dist/components/card-nav-accordion/card-nav-accordion.js +4 -4
- package/dist/components/card-nav-item/card-nav-item.js +2 -2
- package/dist/components/checkbox/checkbox.js +5 -5
- package/dist/components/checkbox-button/checkbox-button.js +3 -3
- package/dist/components/checkbox-card/checkbox-card.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/combobox/combobox.d.ts +1 -0
- package/dist/components/combobox/combobox.js +12 -8
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/copy-button/copy-button.js +5 -5
- package/dist/components/dialog/dialog.js +5 -5
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/download-card/download-card.js +2 -2
- package/dist/components/download-link/download-link.js +2 -2
- package/dist/components/drawer/drawer.js +5 -5
- package/dist/components/drawer/drawer.styles.js +1 -1
- 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/file-upload/file-upload.js +4 -4
- package/dist/components/file-upload-item/file-upload-item.js +2 -2
- package/dist/components/filter-button/filter-button.js +4 -4
- package/dist/components/filter-counter/filter-counter.js +19 -19
- package/dist/components/filter-counter/filter-counter.styles.js +2 -2
- package/dist/components/filter-date/filter-date.js +10 -10
- package/dist/components/filter-date/filter-date.styles.js +2 -2
- package/dist/components/filter-range/filter-range.js +19 -19
- package/dist/components/filter-range/filter-range.styles.js +2 -2
- package/dist/components/filter-select/filter-select.js +20 -20
- package/dist/components/filter-select/filter-select.styles.js +2 -2
- 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.assets.d.ts +2 -1
- package/dist/components/header/header.assets.js +5 -3
- package/dist/components/header/header.d.ts +1 -0
- package/dist/components/header/header.js +4 -4
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/header-modern/header-modern.d.ts +42 -0
- package/dist/components/header-modern/header-modern.js +16 -0
- package/dist/components/header-modern/header-modern.styles.d.ts +2 -0
- package/dist/components/header-modern/header-modern.styles.js +8 -0
- package/dist/components/header-search/header-search.d.ts +0 -1
- package/dist/components/header-search/header-search.js +8 -8
- package/dist/components/header-search/header-search.styles.js +1 -1
- package/dist/components/icon/icon.js +2 -2
- package/dist/components/icon-button/icon-button.js +2 -2
- package/dist/components/input/input.js +12 -12
- package/dist/components/input-amount/input-amount.js +4 -4
- package/dist/components/input-date/input-date.js +7 -7
- package/dist/components/input-date/input-date.styles.js +1 -1
- package/dist/components/input-mask/input-mask.js +5 -5
- package/dist/components/input-native/input-native.js +4 -4
- package/dist/components/input-otp/input-otp.js +2 -2
- package/dist/components/input-phone/input-phone.js +14 -12
- package/dist/components/input-time/input-time.js +6 -6
- package/dist/components/menu-accordion/menu-accordion.js +5 -5
- package/dist/components/menu-item/menu-item.js +2 -2
- package/dist/components/menu-navigation/menu-navigation.js +2 -2
- package/dist/components/navbar-link/navbar-link.js +4 -4
- package/dist/components/navbar-menu/navbar-menu.js +5 -5
- package/dist/components/option/option.js +4 -4
- package/dist/components/pagination/pagination.js +13 -13
- package/dist/components/profile-button/profile-button.js +7 -7
- package/dist/components/profile-button/profile-button.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +2 -2
- 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 +2 -2
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/radio-button/radio-button.js +5 -5
- package/dist/components/radio-card/radio-card.js +5 -5
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/search/search.js +4 -4
- package/dist/components/select/select.d.ts +1 -2
- package/dist/components/select/select.js +11 -7
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/sidenav/sidenav.js +7 -7
- package/dist/components/sidenav/sidenav.styles.js +1 -1
- package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +5 -5
- package/dist/components/skip-link-item/skip-link-item.js +2 -2
- package/dist/components/skip-link-item/skip-link-item.styles.js +1 -1
- 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 +4 -4
- package/dist/components/step/step.js +5 -5
- package/dist/components/success-text/success-text.js +2 -2
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/tab/tab.js +4 -4
- package/dist/components/tab-group/tab-group.js +5 -5
- 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.js +2 -2
- package/dist/components/table-body/table-body.js +2 -2
- package/dist/components/table-caption/table-caption.js +2 -2
- package/dist/components/table-container/table-container.js +2 -2
- package/dist/components/table-header-cell/table-header-cell.js +2 -2
- package/dist/components/table-header-row/table-header-row.js +10 -10
- package/dist/components/table-of-contents/table-of-contents.js +3 -3
- package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/dist/components/table-row/table-row.js +7 -7
- package/dist/components/tag/tag.d.ts +10 -0
- package/dist/components/tag/tag.js +14 -5
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.js +2 -2
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.d.ts +1 -1
- package/dist/components/tree/tree.js +10 -10
- package/dist/components/tree-item/tree-item.js +8 -8
- package/dist/custom-elements.json +714 -444
- package/dist/design-system.d.ts +1 -0
- package/dist/design-system.js +160 -155
- package/dist/internal/components/filter-base/filter-base.styles.js +1 -0
- package/dist/themes/dsa-wc-theme.css +42 -2
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +42 -2
- 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/localize.d.ts +7 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/utilities/storybook.js +2 -2
- package/dist/vscode.html-custom-data.json +53 -20
- package/dist/web-types.json +312 -170
- 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/cdn/chunks/{chunk.JS5WYOPH.js → chunk.LSTE53DJ.js} +3 -3
- package/cdn/chunks/{chunk.MECNKUMI.js → chunk.PWXXK3CE.js} +3 -3
- package/cdn/chunks/{chunk.ZRTVJE3I.js → chunk.RNIIRHX6.js} +3 -3
- package/dist/chunks/{chunk.WBUREDTC.js → chunk.AKYLOFUZ.js} +1 -1
- package/dist/chunks/{chunk.CHYPZO53.js → chunk.B65HMRYD.js} +3 -3
- package/dist/chunks/{chunk.5JVUW5SF.js → chunk.MXQ5RSBS.js} +1 -1
- package/dist/chunks/{chunk.6SOP54V7.js → chunk.U54VTW5T.js} +3 -3
- package/dist/chunks/{chunk.TNUH3IEK.js → chunk.WUA5D6EA.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
select_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LCNXSDAI.js";
|
|
4
4
|
import {
|
|
5
5
|
scrollIntoView
|
|
6
6
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk.ZQJVCRB2.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.QY3AIGLE.js";
|
|
33
33
|
import {
|
|
34
34
|
watch
|
|
35
35
|
} from "./chunk.7627FYPL.js";
|
|
@@ -143,7 +143,7 @@ var DSASelect = class extends FormControlLayout {
|
|
|
143
143
|
}
|
|
144
144
|
if (["ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
145
145
|
const allOptions = this.getAllOptions();
|
|
146
|
-
const currentIndex = allOptions.indexOf(this.currentOption);
|
|
146
|
+
const currentIndex = this.currentOption ? allOptions.indexOf(this.currentOption) : -1;
|
|
147
147
|
let newIndex = Math.max(0, currentIndex);
|
|
148
148
|
event.preventDefault();
|
|
149
149
|
if (!this.open) {
|
|
@@ -294,10 +294,6 @@ var DSASelect = class extends FormControlLayout {
|
|
|
294
294
|
getAllOptions() {
|
|
295
295
|
return [...this.querySelectorAll("dsa-option")];
|
|
296
296
|
}
|
|
297
|
-
// Gets the first <dsa-option> element
|
|
298
|
-
getFirstOption() {
|
|
299
|
-
return this.querySelector("dsa-option");
|
|
300
|
-
}
|
|
301
297
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
302
298
|
// option may be "current" at a time.
|
|
303
299
|
setCurrentOption(option) {
|
|
@@ -311,6 +307,8 @@ var DSASelect = class extends FormControlLayout {
|
|
|
311
307
|
option.current = true;
|
|
312
308
|
option.tabIndex = 0;
|
|
313
309
|
option.focus();
|
|
310
|
+
} else {
|
|
311
|
+
this.currentOption = void 0;
|
|
314
312
|
}
|
|
315
313
|
}
|
|
316
314
|
// Sets the selected option(s)
|
|
@@ -373,7 +371,6 @@ var DSASelect = class extends FormControlLayout {
|
|
|
373
371
|
}
|
|
374
372
|
async handleOpenChange() {
|
|
375
373
|
if (this.open && !this.disabled && !this.readonly) {
|
|
376
|
-
this.setCurrentOption(this.selectedOptions[0] || this.getFirstOption());
|
|
377
374
|
this.emit("dsa-show");
|
|
378
375
|
this.addOpenListeners();
|
|
379
376
|
await stopAnimations(this);
|
|
@@ -400,6 +397,7 @@ var DSASelect = class extends FormControlLayout {
|
|
|
400
397
|
await animateTo(this.popup.popup, keyframes, options);
|
|
401
398
|
this.listbox.hidden = true;
|
|
402
399
|
this.popup.active = false;
|
|
400
|
+
this.setCurrentOption(void 0);
|
|
403
401
|
this.emit("dsa-after-hide");
|
|
404
402
|
}
|
|
405
403
|
}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk.PWL7QCVG.js";
|
|
15
15
|
import {
|
|
16
16
|
LocalizeController
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.QY3AIGLE.js";
|
|
18
18
|
import {
|
|
19
19
|
watch
|
|
20
20
|
} from "./chunk.7627FYPL.js";
|
|
@@ -79,6 +79,20 @@ var DSAAlert = class extends ShoelaceElement {
|
|
|
79
79
|
return "info";
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
getIconLabel() {
|
|
83
|
+
switch (this.variant) {
|
|
84
|
+
case "danger":
|
|
85
|
+
return this.localize.term("error");
|
|
86
|
+
case "neutral":
|
|
87
|
+
return void 0;
|
|
88
|
+
case "success":
|
|
89
|
+
return this.localize.term("success");
|
|
90
|
+
case "warning":
|
|
91
|
+
return this.localize.term("warning");
|
|
92
|
+
default:
|
|
93
|
+
return this.localize.term("info");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
82
96
|
async handleOpenChange() {
|
|
83
97
|
if (this.open) {
|
|
84
98
|
this.emit("dsa-show");
|
|
@@ -183,6 +197,7 @@ var DSAAlert = class extends ShoelaceElement {
|
|
|
183
197
|
class="alert__icon"
|
|
184
198
|
name=${this.getPrefixIconName()}
|
|
185
199
|
library="system"
|
|
200
|
+
label=${ifDefined(this.getIconLabel())}
|
|
186
201
|
></dsa-icon>
|
|
187
202
|
<div class="alert__text">
|
|
188
203
|
${this.title || this.alertTitle ? html`
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.I5IKEQES.js";
|
|
4
4
|
import {
|
|
5
5
|
FilterBase
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.Q2YIXYWB.js";
|
|
7
7
|
import {
|
|
8
8
|
filter_range_styles_default
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.VGW52PNG.js";
|
|
10
10
|
import {
|
|
11
11
|
ifDefinedAndNotEmpty
|
|
12
12
|
} from "./chunk.ZQJVCRB2.js";
|
|
@@ -54,8 +54,10 @@ var translation = {
|
|
|
54
54
|
previousPage: "Page pr\xE9c\xE9dente",
|
|
55
55
|
nextPage: "Page suivante",
|
|
56
56
|
results: "r\xE9sultats",
|
|
57
|
+
cnsa: "CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie",
|
|
58
|
+
spa: "Service public de l'autonomie",
|
|
57
59
|
cnsaGoToHomepage: "CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie, aller \xE0 la page d'accueil",
|
|
58
|
-
|
|
60
|
+
spaGoToHomepage: "Service public de l'autonomie, aller \xE0 la page d'accueil",
|
|
59
61
|
search: "Rechercher",
|
|
60
62
|
cancel: "Annuler",
|
|
61
63
|
showTableActionsAnnouncement: "Une barre d'actions est d\xE9sormais disponible au-dessus du tableau.",
|
|
@@ -152,6 +154,10 @@ var translation = {
|
|
|
152
154
|
toggleSidenav: "D\xE9velopper/R\xE9duire la navigation lat\xE9rale",
|
|
153
155
|
copied: "Texte copi\xE9 dans le presse-papiers",
|
|
154
156
|
copyError: "Echec de la copie",
|
|
157
|
+
info: "Information",
|
|
158
|
+
warning: "Attention",
|
|
159
|
+
error: "Erreur",
|
|
160
|
+
success: "Succ\xE8s",
|
|
155
161
|
// countries and regions
|
|
156
162
|
fr_FR: "France",
|
|
157
163
|
fr_GP: "Guadeloupe, Saint-Barth\xE9lemy et Saint-Martin",
|
|
@@ -224,8 +230,10 @@ var translation2 = {
|
|
|
224
230
|
previousPage: "Previous page",
|
|
225
231
|
nextPage: "Next page",
|
|
226
232
|
results: "results",
|
|
233
|
+
cnsa: "CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie",
|
|
234
|
+
spa: "Service public de l'autonomie",
|
|
227
235
|
cnsaGoToHomepage: "CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie, go to homepage",
|
|
228
|
-
|
|
236
|
+
spaGoToHomepage: "Service public de l'autonomie, go to homepage",
|
|
229
237
|
search: "Search",
|
|
230
238
|
cancel: "Cancel",
|
|
231
239
|
showTableActionsAnnouncement: "An action bar is now available above the table",
|
|
@@ -322,6 +330,10 @@ var translation2 = {
|
|
|
322
330
|
toggleSidenav: "Toggle side navigation",
|
|
323
331
|
copied: "Copied",
|
|
324
332
|
copyError: "Copy error",
|
|
333
|
+
info: "Information",
|
|
334
|
+
warning: "Warning",
|
|
335
|
+
error: "Error",
|
|
336
|
+
success: "Success",
|
|
325
337
|
// countries and regions
|
|
326
338
|
fr_FR: "France",
|
|
327
339
|
fr_GP: "Guadeloupe",
|
|
@@ -160,7 +160,7 @@ var DSACheckbox = class extends ShoelaceElement {
|
|
|
160
160
|
this.formControlController.updateValidity();
|
|
161
161
|
}
|
|
162
162
|
render() {
|
|
163
|
-
var _a, _b, _c
|
|
163
|
+
var _a, _b, _c;
|
|
164
164
|
const hasLabelSlot = this.hasSlotController.test("[default]");
|
|
165
165
|
const isDisabled = this.disabled || this.parentDisabled;
|
|
166
166
|
const isReadonly = this.readonly || this.parentReadonly;
|
|
@@ -231,7 +231,6 @@ var DSACheckbox = class extends ShoelaceElement {
|
|
|
231
231
|
?disabled=${isDisabled}
|
|
232
232
|
?readonly=${isReadonly}
|
|
233
233
|
?error=${this.error}
|
|
234
|
-
title=${ifDefinedAndNotEmpty((_c = this.accessibleName) != null ? _c : this.title)}
|
|
235
234
|
aria-hidden="true"
|
|
236
235
|
></dsa-internal-checkbox-box>
|
|
237
236
|
|
|
@@ -239,7 +238,7 @@ var DSACheckbox = class extends ShoelaceElement {
|
|
|
239
238
|
${this.required ? html`<span class="checkbox__label-required">*</span>` : ""}
|
|
240
239
|
<slot
|
|
241
240
|
><dsa-visually-hidden
|
|
242
|
-
>${(
|
|
241
|
+
>${(_c = this.accessibleName) != null ? _c : this.title}</dsa-visually-hidden
|
|
243
242
|
></slot
|
|
244
243
|
>
|
|
245
244
|
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filter_counter_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.YSCXTTQZ.js";
|
|
4
4
|
import {
|
|
5
5
|
FilterBase
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.Q2YIXYWB.js";
|
|
7
7
|
import {
|
|
8
8
|
watch
|
|
9
9
|
} from "./chunk.7627FYPL.js";
|
|
@@ -90,7 +90,7 @@ var DSAFilterCounter = class extends FilterBase {
|
|
|
90
90
|
min=${this.min}
|
|
91
91
|
max=${this.max}
|
|
92
92
|
variant=${this.drawer ? "layer" : "base"}
|
|
93
|
-
|
|
93
|
+
accessible-name=${this.label}
|
|
94
94
|
></dsa-input>
|
|
95
95
|
<dsa-icon-button
|
|
96
96
|
name="add"
|
|
@@ -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";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk.ZQJVCRB2.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.QY3AIGLE.js";
|
|
33
33
|
import {
|
|
34
34
|
watch
|
|
35
35
|
} from "./chunk.7627FYPL.js";
|
|
@@ -142,6 +142,9 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
142
142
|
handleInput() {
|
|
143
143
|
this.displayLabel = this.displayInput.value;
|
|
144
144
|
this.show();
|
|
145
|
+
if (!this.multiple && this.displayLabel === "") {
|
|
146
|
+
this.clearSelection();
|
|
147
|
+
}
|
|
145
148
|
if (this.debounceTimerId !== null) {
|
|
146
149
|
clearTimeout(this.debounceTimerId);
|
|
147
150
|
}
|
|
@@ -280,7 +283,8 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
280
283
|
if (option !== void 0) {
|
|
281
284
|
this.currentOption = option;
|
|
282
285
|
option.current = true;
|
|
283
|
-
option.
|
|
286
|
+
option.tabIndex = 0;
|
|
287
|
+
option.focus();
|
|
284
288
|
} else {
|
|
285
289
|
this.currentOption = void 0;
|
|
286
290
|
}
|
|
@@ -348,6 +352,9 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
348
352
|
event.stopPropagation();
|
|
349
353
|
this.handleEnterKey(event);
|
|
350
354
|
break;
|
|
355
|
+
case " ":
|
|
356
|
+
this.handleSpaceKey(event);
|
|
357
|
+
break;
|
|
351
358
|
case "ArrowLeft":
|
|
352
359
|
case "ArrowRight":
|
|
353
360
|
event.stopPropagation();
|
|
@@ -362,6 +369,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
362
369
|
break;
|
|
363
370
|
default:
|
|
364
371
|
event.stopPropagation();
|
|
372
|
+
this.focus();
|
|
365
373
|
break;
|
|
366
374
|
}
|
|
367
375
|
}
|
|
@@ -413,6 +421,25 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
413
421
|
});
|
|
414
422
|
}
|
|
415
423
|
}
|
|
424
|
+
handleSpaceKey(event) {
|
|
425
|
+
if (this.open && this.currentOption !== void 0 && !this.currentOption.disabled) {
|
|
426
|
+
event.preventDefault();
|
|
427
|
+
event.stopImmediatePropagation();
|
|
428
|
+
if (this.multiple) {
|
|
429
|
+
this.toggleOptionSelection(this.currentOption);
|
|
430
|
+
} else {
|
|
431
|
+
this.setSelectedOptions(this.currentOption);
|
|
432
|
+
this.syncOnSelection();
|
|
433
|
+
this.hide();
|
|
434
|
+
this.hasVisualFocus = true;
|
|
435
|
+
this.displayInput.focus({ preventScroll: true });
|
|
436
|
+
}
|
|
437
|
+
this.updateComplete.then(() => {
|
|
438
|
+
this.emit("dsa-input");
|
|
439
|
+
this.emit("dsa-change");
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
}
|
|
416
443
|
handleArrowKeys() {
|
|
417
444
|
this.hasVisualFocus = true;
|
|
418
445
|
this.displayInput.focus({ preventScroll: true });
|
|
@@ -444,8 +471,9 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
444
471
|
this.filteredOptions[this.displayedOptionsCount - 1]
|
|
445
472
|
);
|
|
446
473
|
this.seeMoreOption.current = false;
|
|
447
|
-
} else if (currentOptionIndex ===
|
|
448
|
-
this.setCurrentOption(
|
|
474
|
+
} else if (currentOptionIndex === 0) {
|
|
475
|
+
this.setCurrentOption(void 0);
|
|
476
|
+
this.focus();
|
|
449
477
|
} else if (currentOptionIndex > 0) {
|
|
450
478
|
this.setCurrentOption(this.filteredOptions[currentOptionIndex - 1]);
|
|
451
479
|
}
|
|
@@ -524,8 +552,8 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
524
552
|
}
|
|
525
553
|
}
|
|
526
554
|
async handleOpenChange() {
|
|
555
|
+
var _a, _b;
|
|
527
556
|
if (this.open && !this.disabled && !this.readonly) {
|
|
528
|
-
this.setCurrentOption(this.selectedOptions[0] || this.filteredOptions[0]);
|
|
529
557
|
this.emit("dsa-show");
|
|
530
558
|
this.addOpenListeners();
|
|
531
559
|
await stopAnimations(this);
|
|
@@ -543,6 +571,9 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
543
571
|
} else {
|
|
544
572
|
this.emit("dsa-hide");
|
|
545
573
|
this.removeOpenListeners();
|
|
574
|
+
if (!this.multiple) {
|
|
575
|
+
this.displayLabel = (_b = (_a = this.selectedOptions[0]) == null ? void 0 : _a.getTextLabel()) != null ? _b : "";
|
|
576
|
+
}
|
|
546
577
|
await stopAnimations(this);
|
|
547
578
|
const { keyframes, options } = getAnimation(this, "select.hide", {
|
|
548
579
|
dir: this.localize.dir()
|
|
@@ -554,11 +585,7 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
554
585
|
}
|
|
555
586
|
}
|
|
556
587
|
handleDisplayLabelChange() {
|
|
557
|
-
var _a;
|
|
558
588
|
this.filterOptions(this.displayLabel);
|
|
559
|
-
if (!((_a = this.seeMoreOption) == null ? void 0 : _a.current)) {
|
|
560
|
-
this.setCurrentOption(this.filteredOptions[0]);
|
|
561
|
-
}
|
|
562
589
|
this.resetDisplayedOptionsCount();
|
|
563
590
|
}
|
|
564
591
|
handleMultipleChange() {
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cnsaLogoNoSubtextSvg,
|
|
3
|
+
spaLogoSvg
|
|
4
|
+
} from "./chunk.7TLERCGA.js";
|
|
5
|
+
import {
|
|
6
|
+
header_modern_styles_default
|
|
7
|
+
} from "./chunk.ISWWNUGH.js";
|
|
8
|
+
import {
|
|
9
|
+
HasSlotController
|
|
10
|
+
} from "./chunk.YIY5RM53.js";
|
|
11
|
+
import {
|
|
12
|
+
LocalizeController
|
|
13
|
+
} from "./chunk.QY3AIGLE.js";
|
|
14
|
+
import {
|
|
15
|
+
watch
|
|
16
|
+
} from "./chunk.7627FYPL.js";
|
|
17
|
+
import {
|
|
18
|
+
ShoelaceElement
|
|
19
|
+
} from "./chunk.KPJCYT4S.js";
|
|
20
|
+
import {
|
|
21
|
+
__decorateClass
|
|
22
|
+
} from "./chunk.5GB6F3WA.js";
|
|
23
|
+
|
|
24
|
+
// src/components/header-modern/header-modern.ts
|
|
25
|
+
import { html } from "lit";
|
|
26
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
27
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
28
|
+
var DSAHeaderModern = class extends ShoelaceElement {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.hasSlotController = new HasSlotController(
|
|
32
|
+
this,
|
|
33
|
+
"external-links",
|
|
34
|
+
"second-logo",
|
|
35
|
+
"site-name",
|
|
36
|
+
"search",
|
|
37
|
+
"navbar"
|
|
38
|
+
);
|
|
39
|
+
this.localize = new LocalizeController(this);
|
|
40
|
+
this.firstLogo = "public";
|
|
41
|
+
this.searchExpanded = false;
|
|
42
|
+
this.mobile = false;
|
|
43
|
+
}
|
|
44
|
+
connectedCallback() {
|
|
45
|
+
super.connectedCallback();
|
|
46
|
+
this.handleSearchExpandEvent = this.handleSearchExpandEvent.bind(this);
|
|
47
|
+
this.handleSearchCollapseEvent = this.handleSearchCollapseEvent.bind(this);
|
|
48
|
+
this.addEventListener("dsa-expand", this.handleSearchExpandEvent);
|
|
49
|
+
this.addEventListener("dsa-collapse", this.handleSearchCollapseEvent);
|
|
50
|
+
}
|
|
51
|
+
disconnectedCallback() {
|
|
52
|
+
super.disconnectedCallback();
|
|
53
|
+
this.removeEventListener("dsa-expand", this.handleSearchExpandEvent);
|
|
54
|
+
this.removeEventListener("dsa-collapse", this.handleSearchCollapseEvent);
|
|
55
|
+
}
|
|
56
|
+
handleSearchExpandEvent() {
|
|
57
|
+
this.searchExpanded = true;
|
|
58
|
+
}
|
|
59
|
+
handleSearchCollapseEvent() {
|
|
60
|
+
this.searchExpanded = false;
|
|
61
|
+
}
|
|
62
|
+
getFirtLogo() {
|
|
63
|
+
if (this.firstLogo === "pro") {
|
|
64
|
+
return spaLogoSvg(this.localize.term("spa"));
|
|
65
|
+
}
|
|
66
|
+
return cnsaLogoNoSubtextSvg(this.localize.term("cnsa"));
|
|
67
|
+
}
|
|
68
|
+
handleSearchExpanded() {
|
|
69
|
+
if (this.hasSlotController.test("search")) {
|
|
70
|
+
const search = this.querySelector("dsa-header-search");
|
|
71
|
+
if (search !== null) {
|
|
72
|
+
search.expanded = this.searchExpanded;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
handleMobile() {
|
|
77
|
+
if (this.hasSlotController.test("search")) {
|
|
78
|
+
const search = this.querySelector("dsa-header-search");
|
|
79
|
+
if (search !== null && this.mobile !== void 0) {
|
|
80
|
+
search.mobile = this.mobile;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
if (!this.hasSlotController.test("site-name")) {
|
|
86
|
+
console.warn(
|
|
87
|
+
"(DSA) The <site-name> slot is required. Please use a link to your homepage in the <site-name> slot."
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
return html`
|
|
91
|
+
<header
|
|
92
|
+
part="base"
|
|
93
|
+
role="banner"
|
|
94
|
+
class=${classMap({
|
|
95
|
+
header: true,
|
|
96
|
+
"header--mobile": this.mobile === true,
|
|
97
|
+
"header--desktop": this.mobile === false,
|
|
98
|
+
"header--spa": this.firstLogo === "pro",
|
|
99
|
+
"header--cnsa": this.firstLogo === "public",
|
|
100
|
+
"header--with-external-links": this.hasSlotController.test("external-links"),
|
|
101
|
+
"header--with-second-logo": this.hasSlotController.test("second-logo"),
|
|
102
|
+
"header--with-navbar": this.hasSlotController.test("navbar")
|
|
103
|
+
})}
|
|
104
|
+
>
|
|
105
|
+
<ul class="external-links__container">
|
|
106
|
+
<slot name="external-links" part="external-links"></slot>
|
|
107
|
+
</ul>
|
|
108
|
+
|
|
109
|
+
<div class="header__main-container">
|
|
110
|
+
<section
|
|
111
|
+
part="main"
|
|
112
|
+
class=${classMap({
|
|
113
|
+
header__main: true,
|
|
114
|
+
"header--search-expanded": this.hasSlotController.test("search") && this.searchExpanded
|
|
115
|
+
})}
|
|
116
|
+
>
|
|
117
|
+
<div class="header__brand-top">
|
|
118
|
+
<slot
|
|
119
|
+
name="first-logo"
|
|
120
|
+
part="first-logo"
|
|
121
|
+
class=${classMap({
|
|
122
|
+
logo: true
|
|
123
|
+
})}
|
|
124
|
+
>
|
|
125
|
+
${this.getFirtLogo()}
|
|
126
|
+
</slot>
|
|
127
|
+
${!this.mobile ? html`
|
|
128
|
+
<div class="header__brand">
|
|
129
|
+
<slot
|
|
130
|
+
id="second-logo"
|
|
131
|
+
name="second-logo"
|
|
132
|
+
class="logo"
|
|
133
|
+
></slot>
|
|
134
|
+
<slot name="site-name" part="site-name"></slot>
|
|
135
|
+
</div>
|
|
136
|
+
` : ""}
|
|
137
|
+
</div>
|
|
138
|
+
<div class="header__actions">
|
|
139
|
+
<slot name="search" part="search"></slot>
|
|
140
|
+
<slot part="navigation"></slot>
|
|
141
|
+
</div>
|
|
142
|
+
${this.mobile ? html`
|
|
143
|
+
<div class="header__brand">
|
|
144
|
+
<slot
|
|
145
|
+
id="second-logo"
|
|
146
|
+
name="second-logo"
|
|
147
|
+
class="logo"
|
|
148
|
+
></slot>
|
|
149
|
+
<slot name="site-name" part="site-name"></slot>
|
|
150
|
+
</div>
|
|
151
|
+
` : ""}
|
|
152
|
+
</section>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
155
|
+
<div class="header__navbar-container">
|
|
156
|
+
<slot name="navbar" part="navbar"></slot>
|
|
157
|
+
</div>
|
|
158
|
+
</header>
|
|
159
|
+
`;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
DSAHeaderModern.styles = header_modern_styles_default;
|
|
163
|
+
__decorateClass([
|
|
164
|
+
query('[part="external-links"]')
|
|
165
|
+
], DSAHeaderModern.prototype, "externalLinks", 2);
|
|
166
|
+
__decorateClass([
|
|
167
|
+
property({ reflect: true, attribute: "first-logo" })
|
|
168
|
+
], DSAHeaderModern.prototype, "firstLogo", 2);
|
|
169
|
+
__decorateClass([
|
|
170
|
+
property({ reflect: true, type: Boolean, attribute: "search-expanded" })
|
|
171
|
+
], DSAHeaderModern.prototype, "searchExpanded", 2);
|
|
172
|
+
__decorateClass([
|
|
173
|
+
property({ type: Boolean })
|
|
174
|
+
], DSAHeaderModern.prototype, "mobile", 2);
|
|
175
|
+
__decorateClass([
|
|
176
|
+
watch("searchExpanded")
|
|
177
|
+
], DSAHeaderModern.prototype, "handleSearchExpanded", 1);
|
|
178
|
+
__decorateClass([
|
|
179
|
+
watch("mobile")
|
|
180
|
+
], DSAHeaderModern.prototype, "handleMobile", 1);
|
|
181
|
+
DSAHeaderModern = __decorateClass([
|
|
182
|
+
customElement("dsa-header-modern")
|
|
183
|
+
], DSAHeaderModern);
|
|
184
|
+
|
|
185
|
+
export {
|
|
186
|
+
DSAHeaderModern
|
|
187
|
+
};
|