@ds-autonomie/web-components 2.20.0 → 2.21.1
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 +32 -0
- package/cdn/chunks/{chunk.YQURDTCI.js → chunk.24NXLHSI.js} +1 -1
- package/cdn/chunks/{chunk.44RPMYBZ.js → chunk.2ER3NBC5.js} +1 -1
- package/cdn/chunks/{chunk.LYLTFAFC.js → chunk.2FPBPQUJ.js} +4 -6
- package/cdn/chunks/chunk.2OLHSSGN.js +60 -0
- package/cdn/chunks/{chunk.ZZBJJF7J.js → chunk.2OZWUNZO.js} +1 -1
- package/cdn/chunks/{chunk.UFUMCCGR.js → chunk.2PBEBWOP.js} +1 -1
- package/cdn/chunks/{chunk.EFB2SY45.js → chunk.2TZ4LFPJ.js} +1 -1
- package/cdn/chunks/{chunk.WWTHUDXI.js → chunk.2V4YCZ2W.js} +5 -2
- package/cdn/chunks/chunk.2YKQ7H24.js +3 -0
- package/cdn/chunks/{chunk.OSR6DVXB.js → chunk.37M4BXLK.js} +1 -1
- package/cdn/chunks/{chunk.ZMEW7RFS.js → chunk.3I36IGZA.js} +1 -1
- package/cdn/chunks/{chunk.JVEPCKCT.js → chunk.3Q73BJS5.js} +1 -1
- package/cdn/chunks/{chunk.DRNNBI43.js → chunk.3Z6ANWYS.js} +1 -1
- package/cdn/chunks/{chunk.SBGRTAIJ.js → chunk.4SRRFJ5K.js} +1 -1
- package/cdn/chunks/{chunk.KVJWSAR3.js → chunk.4VPKUUYI.js} +1 -1
- package/cdn/chunks/{chunk.4XCZGVYA.js → chunk.5BVWK6K3.js} +1 -1
- package/cdn/chunks/{chunk.QXHK62F7.js → chunk.5YSNZTMZ.js} +1 -1
- package/cdn/chunks/{chunk.JU47KXI6.js → chunk.64XZMZ77.js} +1 -1
- package/cdn/chunks/{chunk.6Y5FKCNR.js → chunk.6B4UFELP.js} +7 -7
- package/cdn/chunks/{chunk.HGNNGE53.js → chunk.6EJNSZJR.js} +5 -5
- package/cdn/chunks/{chunk.AHAZYWZF.js → chunk.6VYL37C4.js} +1 -1
- package/cdn/chunks/{chunk.HR3DGR2Y.js → chunk.75OMKNKV.js} +1 -1
- package/cdn/chunks/{chunk.56JDCX3P.js → chunk.7HT5EWGA.js} +1 -1
- package/cdn/chunks/chunk.7RARSIUW.js +38 -0
- package/cdn/chunks/{chunk.KX5QV54N.js → chunk.7RM7VDGX.js} +1 -1
- package/cdn/chunks/{chunk.WMOV27WV.js → chunk.7U5JEAWJ.js} +1 -1
- package/cdn/chunks/{chunk.VM2KBACU.js → chunk.AAYMCYCU.js} +1 -1
- package/cdn/chunks/{chunk.KHGWE5IX.js → chunk.ALIA5R6V.js} +32 -34
- package/cdn/chunks/{chunk.VZAYP3SG.js → chunk.AM2ZR2Y2.js} +1 -1
- package/cdn/chunks/{chunk.P7SG42IM.js → chunk.AMOSE5HG.js} +1 -1
- package/cdn/chunks/{chunk.NLFHV3ZO.js → chunk.APXTIKVI.js} +1 -1
- package/cdn/chunks/{chunk.WNYKZ5NJ.js → chunk.AQOO2T52.js} +1 -1
- package/cdn/chunks/{chunk.XVTFPCEL.js → chunk.BTHWDYRM.js} +6 -5
- package/cdn/chunks/{chunk.IUOHXTHC.js → chunk.C6L5URBB.js} +1 -1
- package/cdn/chunks/{chunk.BKSG5KWK.js → chunk.D52GGKLJ.js} +1 -1
- package/cdn/chunks/{chunk.57RCXLSL.js → chunk.DEILGCUT.js} +1 -1
- package/cdn/chunks/{chunk.74Q4P5NY.js → chunk.DFZPEZNV.js} +1 -1
- package/cdn/chunks/chunk.DIMD2VOY.js +23 -0
- package/cdn/chunks/{chunk.NZKPTTUJ.js → chunk.DLQV224B.js} +1 -1
- package/cdn/chunks/{chunk.GHH7XYKB.js → chunk.DOFWGC23.js} +1 -1
- package/cdn/chunks/chunk.DQCCNCWD.js +56 -0
- package/cdn/chunks/{chunk.DBXX64Q4.js → chunk.DYFOZ46Z.js} +5 -5
- package/cdn/chunks/chunk.E2MXTZP6.js +65 -0
- package/cdn/chunks/{chunk.QPMWIVIV.js → chunk.EMVVCZ7J.js} +1 -1
- package/cdn/chunks/{chunk.STCKZYIM.js → chunk.EV47H3BZ.js} +1 -1
- package/cdn/chunks/{chunk.FEPCSTZT.js → chunk.EYRLG5PX.js} +1 -1
- package/cdn/chunks/chunk.EZJFC4HU.js +53 -0
- package/cdn/chunks/{chunk.TO3SON22.js → chunk.F2JIMT3T.js} +1 -1
- package/cdn/chunks/{chunk.WDYFEO2Q.js → chunk.FAW4PEMU.js} +3 -3
- package/cdn/chunks/{chunk.7NBAEATD.js → chunk.FVTT4MMC.js} +1 -1
- package/cdn/chunks/chunk.FWFZG7TN.js +47 -0
- package/cdn/chunks/chunk.G4QC72M3.js +90 -0
- package/cdn/chunks/{chunk.YUIUEJ5Y.js → chunk.GI2AQXQB.js} +1 -1
- package/cdn/chunks/{chunk.5Z62TASD.js → chunk.GL7V5QFT.js} +1 -1
- package/cdn/chunks/{chunk.YCHSWY7W.js → chunk.H56SHMXX.js} +1 -1
- package/cdn/chunks/{chunk.27RSAF7P.js → chunk.H63LC2FP.js} +1 -1
- package/cdn/chunks/{chunk.XKWU5ZJA.js → chunk.HACTOR3N.js} +1 -1
- package/cdn/chunks/{chunk.WRMXCZIL.js → chunk.HJIBYZA7.js} +1 -1
- package/cdn/chunks/{chunk.ZMRIQCNQ.js → chunk.HLXIBAA3.js} +1 -1
- package/cdn/chunks/{chunk.5V6ZBY2X.js → chunk.HN7OEKVB.js} +1 -1
- package/cdn/chunks/{chunk.XOEINTMR.js → chunk.HPYWAFMA.js} +8 -11
- package/cdn/chunks/{chunk.CDESACOR.js → chunk.HTMFQPE5.js} +1 -1
- package/cdn/chunks/{chunk.MU36LMLD.js → chunk.HYHQBG6T.js} +1 -1
- package/cdn/chunks/{chunk.2FAAI4ZJ.js → chunk.HYQVCAH7.js} +1 -1
- package/cdn/chunks/{chunk.VIXRVYB7.js → chunk.HZV5COH7.js} +1 -1
- package/cdn/chunks/chunk.I2EMSNY5.js +3 -0
- package/cdn/chunks/{chunk.QSMVLQKG.js → chunk.IBACM3KM.js} +1 -1
- package/cdn/chunks/{chunk.XZWROQBU.js → chunk.IDZ2RBHS.js} +5 -2
- package/cdn/chunks/chunk.IXAKCI7U.js +19 -0
- package/cdn/chunks/{chunk.T5OLUN3T.js → chunk.IZDRYSJI.js} +8 -8
- package/cdn/chunks/{chunk.6JL6NMDO.js → chunk.IZFWLGVN.js} +1 -1
- package/cdn/chunks/{chunk.CR7CW7MM.js → chunk.IZFZSMNL.js} +1 -1
- package/cdn/chunks/{chunk.NVG5W3ED.js → chunk.KDJOQQSW.js} +1 -1
- package/cdn/chunks/{chunk.M57VWWNA.js → chunk.KUSB4WKX.js} +1 -1
- package/cdn/chunks/{chunk.IDTMD6WQ.js → chunk.KZKCBYIC.js} +1 -1
- package/cdn/chunks/{chunk.FUN7B2IQ.js → chunk.L4PDR2XQ.js} +1 -1
- package/cdn/chunks/{chunk.DS2JXBOZ.js → chunk.L7V323CK.js} +1 -1
- package/cdn/chunks/{chunk.XHVUNCDG.js → chunk.LCXOBOTQ.js} +1 -1
- package/cdn/chunks/{chunk.F4AQSIUW.js → chunk.LIHGH26S.js} +1 -1
- package/cdn/chunks/{chunk.XOR6B7CF.js → chunk.MPOEF2AD.js} +1 -1
- package/cdn/chunks/chunk.MU332V37.js +42 -0
- package/cdn/chunks/{chunk.O52WFAX7.js → chunk.MYN44Z6S.js} +1 -1
- package/cdn/chunks/chunk.NHMFB7ET.js +1 -0
- package/cdn/chunks/{chunk.OTNIMSDB.js → chunk.NUADNBQV.js} +1 -1
- package/cdn/chunks/{chunk.VBCBEOZG.js → chunk.NVJC2QTS.js} +1 -1
- package/cdn/chunks/{chunk.2MGX3JTR.js → chunk.NWYSJOVO.js} +1 -1
- package/cdn/chunks/{chunk.37TJAUZA.js → chunk.NYTHY7TB.js} +1 -1
- package/cdn/chunks/{chunk.S7OUYCK4.js → chunk.O7SAIPOG.js} +1 -1
- package/cdn/chunks/{chunk.Q2IGZDBA.js → chunk.OB2C6PTR.js} +1 -1
- package/cdn/chunks/{chunk.ELL45QD3.js → chunk.ODDQO2HD.js} +1 -1
- package/cdn/chunks/{chunk.67UP3FZD.js → chunk.ONUDFMLG.js} +8 -8
- package/cdn/chunks/{chunk.JUMQSXMT.js → chunk.OTYLTVBL.js} +1 -1
- package/cdn/chunks/chunk.PAYML2WU.js +20 -0
- package/cdn/chunks/{chunk.G46A6S6B.js → chunk.PRKWQXS3.js} +1 -1
- package/cdn/chunks/chunk.Q54GPNUS.js +1 -0
- package/cdn/chunks/{chunk.SLWQRYAW.js → chunk.Q5SVZYIN.js} +1 -1
- package/cdn/chunks/{chunk.YL7QS24Y.js → chunk.QRLWNZCU.js} +1 -1
- package/cdn/chunks/chunk.QTXLNRFI.js +31 -0
- package/cdn/chunks/{chunk.4GV3WJET.js → chunk.QXQFA2PL.js} +2 -2
- package/cdn/chunks/{chunk.RCGUDUP2.js → chunk.R2SAERUV.js} +14 -15
- package/cdn/chunks/{chunk.G5H2VKPM.js → chunk.RC2F2CPY.js} +1 -1
- package/cdn/chunks/{chunk.OSQWNBGB.js → chunk.RCVYUT4P.js} +1 -1
- package/cdn/chunks/{chunk.6UXK7G4D.js → chunk.RKAXCU2K.js} +1 -1
- package/cdn/chunks/{chunk.BZT2GJNM.js → chunk.RSIWBM4T.js} +1 -1
- package/cdn/chunks/chunk.S3CAREPN.js +18 -0
- package/cdn/chunks/{chunk.NJOCDP2A.js → chunk.SARJ4UB5.js} +1 -1
- package/cdn/chunks/{chunk.FDMQXEYE.js → chunk.SK27PJHT.js} +1 -1
- package/cdn/chunks/{chunk.YKDQ56UZ.js → chunk.TLQIAQRC.js} +1 -1
- package/cdn/chunks/{chunk.H6456THW.js → chunk.TMUGGTVF.js} +1 -1
- package/cdn/chunks/{chunk.V2HF2VKY.js → chunk.TNPDX6EX.js} +1 -1
- package/cdn/chunks/chunk.TY4KYVHJ.js +27 -0
- package/cdn/chunks/{chunk.II4JQ433.js → chunk.U5TCFENL.js} +1 -1
- package/cdn/chunks/{chunk.S47ZNKH7.js → chunk.UIKL7DR3.js} +1 -1
- package/cdn/chunks/{chunk.OSB2X3QH.js → chunk.UKO4J7PG.js} +1 -1
- package/cdn/chunks/{chunk.AIMBA5HQ.js → chunk.UVI76N5N.js} +1 -1
- package/cdn/chunks/{chunk.RDYBSHLC.js → chunk.UXEA6PSC.js} +1 -1
- package/cdn/chunks/{chunk.CNAZZZJL.js → chunk.UXYCUMRZ.js} +1 -1
- package/cdn/chunks/chunk.VEWOSPRC.js +19 -0
- package/cdn/chunks/{chunk.JEOSRXCU.js → chunk.VILF2M2M.js} +1 -1
- package/cdn/chunks/{chunk.YMSC6K32.js → chunk.VK2CO5ZK.js} +1 -1
- package/cdn/chunks/{chunk.76OQZSVD.js → chunk.VPHVZMUY.js} +1 -1
- package/cdn/chunks/{chunk.K3JAYUBA.js → chunk.VPTZFEPZ.js} +1 -1
- package/cdn/chunks/{chunk.Q2GIRDX3.js → chunk.VSTKTCJY.js} +1 -1
- package/cdn/chunks/{chunk.7RWZ2YNR.js → chunk.VVBLZBT2.js} +1 -1
- package/cdn/chunks/{chunk.EV7HZRUS.js → chunk.W6E7LGND.js} +1 -1
- package/cdn/chunks/{chunk.M66L2D2H.js → chunk.WCHNPFSL.js} +1 -1
- package/cdn/chunks/{chunk.TFTJUTCH.js → chunk.WFPILKOS.js} +1 -1
- package/cdn/chunks/chunk.XDSXN7TT.js +17 -0
- package/cdn/chunks/{chunk.ALDKYE6L.js → chunk.XP43FQ5R.js} +3 -3
- package/cdn/chunks/{chunk.XZTHZM2O.js → chunk.XUW6MAEV.js} +1 -1
- package/cdn/chunks/{chunk.GEX7B2RZ.js → chunk.XXFCN6MW.js} +1 -1
- package/cdn/chunks/{chunk.JPOWE7L2.js → chunk.YDZDEOUX.js} +1 -1
- package/cdn/chunks/{chunk.7Y54WEHT.js → chunk.YIFMUGSO.js} +1 -1
- package/cdn/chunks/{chunk.GWF5GFSQ.js → chunk.YQETGEXV.js} +1 -1
- package/cdn/chunks/{chunk.F6YFQ3GB.js → chunk.ZEMA7TWY.js} +15 -2
- package/cdn/chunks/chunk.ZGGW2XG7.js +33 -0
- package/cdn/chunks/{chunk.URE4SVTS.js → chunk.ZNUQSSRL.js} +1 -1
- package/cdn/chunks/{chunk.UDLR3IFA.js → chunk.ZOGTB7J7.js} +1 -1
- package/cdn/chunks/{chunk.CLIKZB5P.js → chunk.ZZEMBF7E.js} +1 -1
- package/cdn/components/accordion/accordion.js +1 -1
- package/cdn/components/accordion-group/accordion-group.js +1 -1
- package/cdn/components/alert/alert.js +1 -1
- package/cdn/components/avatar/avatar.js +1 -1
- package/cdn/components/badge/badge.js +1 -1
- package/cdn/components/banner/banner.d.ts +36 -0
- package/cdn/components/banner/banner.js +1 -0
- package/cdn/components/banner/banner.styles.d.ts +2 -0
- package/cdn/components/banner/banner.styles.js +1 -0
- package/cdn/components/breadcrumb/breadcrumb.js +1 -1
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/calendar/calendar.js +1 -1
- package/cdn/components/calendar/calendar.styles.js +1 -1
- package/cdn/components/callout/callout.js +1 -1
- package/cdn/components/callout/callout.styles.js +1 -1
- package/cdn/components/card/card.js +1 -1
- package/cdn/components/card-content/card-content.js +1 -1
- package/cdn/components/card-nav/card-nav.js +1 -1
- package/cdn/components/card-nav-accordion/card-nav-accordion.js +1 -1
- package/cdn/components/card-nav-item/card-nav-item.js +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/checkbox/checkbox.styles.js +1 -1
- package/cdn/components/checkbox-button/checkbox-button.js +1 -1
- package/cdn/components/checkbox-card/checkbox-card.js +1 -1
- package/cdn/components/checkbox-group/checkbox-group.js +1 -1
- package/cdn/components/checkbox-group/checkbox-group.styles.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/combobox/combobox.styles.js +1 -1
- package/cdn/components/copy-button/copy-button.js +1 -1
- package/cdn/components/copy-button/copy-button.styles.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/download-card/download-card.d.ts +3 -1
- package/cdn/components/download-card/download-card.js +1 -1
- package/cdn/components/download-card/download-card.styles.js +1 -1
- package/cdn/components/download-link/download-link.d.ts +3 -1
- package/cdn/components/download-link/download-link.js +1 -1
- package/cdn/components/download-link/download-link.styles.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/drawer/drawer.styles.js +1 -1
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/error-message-panel/error-message-panel.js +1 -1
- package/cdn/components/error-message-panel/error-message-panel.styles.js +1 -1
- package/cdn/components/error-text/error-text.js +1 -1
- package/cdn/components/fieldset/fieldset.js +1 -1
- package/cdn/components/fieldset/fieldset.styles.js +1 -1
- package/cdn/components/file-upload/file-upload.js +1 -1
- package/cdn/components/file-upload/file-upload.styles.js +1 -1
- package/cdn/components/file-upload-item/file-upload-item.js +1 -1
- package/cdn/components/filter-button/filter-button.js +1 -1
- package/cdn/components/filter-counter/filter-counter.js +1 -1
- package/cdn/components/filter-date/filter-date.js +1 -1
- package/cdn/components/filter-range/filter-range.js +1 -1
- package/cdn/components/filter-select/filter-select.js +1 -1
- package/cdn/components/footer/footer.js +1 -1
- package/cdn/components/footer-content-block/footer-content-block.js +1 -1
- package/cdn/components/footer-mandatory-mentions/footer-mandatory-mentions.js +1 -1
- package/cdn/components/footer-sitemap/footer-sitemap.js +1 -1
- package/cdn/components/format-bytes/format-bytes.js +1 -1
- package/cdn/components/format-date/format-date.js +1 -1
- package/cdn/components/format-number/format-number.js +1 -1
- package/cdn/components/graphic-element/graphic-element.js +1 -1
- package/cdn/components/graphic-element/graphic-element.library.js +1 -1
- package/cdn/components/header/header.js +1 -1
- package/cdn/components/header-modern/header-modern.js +1 -1
- package/cdn/components/header-search/header-search.js +1 -1
- package/cdn/components/icon/icon.js +1 -1
- package/cdn/components/icon/library.js +1 -1
- package/cdn/components/icon-button/icon-button.js +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/input-amount/input-amount.js +1 -1
- package/cdn/components/input-amount/input-amount.styles.js +1 -1
- package/cdn/components/input-date/input-date.js +1 -1
- package/cdn/components/input-date/input-date.styles.js +1 -1
- package/cdn/components/input-mask/input-mask.js +1 -1
- package/cdn/components/input-mask/input-mask.styles.js +1 -1
- package/cdn/components/input-mask/input-mask.utils.d.ts +0 -1
- package/cdn/components/input-mask/input-mask.utils.js +1 -1
- package/cdn/components/input-native/input-native.js +1 -1
- package/cdn/components/input-native/input-native.styles.js +1 -1
- package/cdn/components/input-otp/input-otp.js +1 -1
- package/cdn/components/input-otp/input-otp.styles.js +1 -1
- package/cdn/components/input-phone/input-phone.configs.js +1 -1
- package/cdn/components/input-phone/input-phone.js +1 -1
- package/cdn/components/input-phone/input-phone.styles.js +1 -1
- package/cdn/components/input-time/input-time.js +1 -1
- package/cdn/components/input-time/input-time.styles.js +1 -1
- package/cdn/components/menu-accordion/menu-accordion.js +1 -1
- package/cdn/components/menu-item/menu-item.js +1 -1
- package/cdn/components/menu-navigation/menu-navigation.js +1 -1
- package/cdn/components/navbar-link/navbar-link.js +1 -1
- package/cdn/components/navbar-menu/navbar-menu.js +1 -1
- package/cdn/components/option/option.js +1 -1
- package/cdn/components/page-header/page-header.js +1 -1
- package/cdn/components/pagination/pagination.js +1 -1
- package/cdn/components/pagination-button/pagination-button.js +1 -1
- package/cdn/components/popup/popup.js +1 -1
- package/cdn/components/profile-button/profile-button.js +1 -1
- package/cdn/components/progress-bar/progress-bar.js +1 -1
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio-button/radio-button.js +1 -1
- package/cdn/components/radio-card/radio-card.js +1 -1
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/radio-group/radio-group.styles.js +1 -1
- package/cdn/components/relative-time/relative-time.js +1 -1
- package/cdn/components/search/search.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/select/select.styles.js +1 -1
- package/cdn/components/sidenav/sidenav.js +1 -1
- package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
- package/cdn/components/skip-links/skip-links.js +1 -1
- package/cdn/components/spinner/spinner.js +1 -1
- package/cdn/components/split-panel/split-panel.js +1 -1
- package/cdn/components/step/step.js +1 -1
- package/cdn/components/success-text/success-text.js +1 -1
- package/cdn/components/switch/switch.js +1 -1
- package/cdn/components/tab/tab.js +1 -1
- package/cdn/components/tab-group/tab-group.js +1 -1
- package/cdn/components/table-action/table-action.d.ts +2 -0
- package/cdn/components/table-action/table-action.js +1 -1
- package/cdn/components/table-caption/table-caption.js +1 -1
- package/cdn/components/table-container/table-container.js +1 -1
- package/cdn/components/table-header-cell/table-header-cell.js +1 -1
- package/cdn/components/table-header-row/table-header-row.js +1 -1
- package/cdn/components/table-of-contents/table-of-contents.js +1 -1
- package/cdn/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/cdn/components/table-row/table-row.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/components/textarea/textarea.styles.js +1 -1
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/components/tree/tree.js +1 -1
- package/cdn/components/tree-item/tree-item.js +1 -1
- package/cdn/custom-elements.json +542 -407
- package/cdn/design-system.d.ts +1 -0
- package/cdn/design-system.js +1 -1
- package/cdn/internal/components/form-control/form-control-layout.js +16 -15
- package/cdn/internal/components/input-base/input-base.js +4 -3
- package/cdn/internal/slot.d.ts +0 -5
- package/cdn/internal/slot.js +0 -20
- package/cdn/internal/tabbable.d.ts +0 -8
- package/cdn/internal/tabbable.js +0 -12
- package/cdn/styles/form-control.styles.js +32 -34
- package/cdn/templates/utilities/header.js +1 -1
- package/cdn/templates/utilities/template-story-config.js +0 -3
- package/cdn/themes/dsa-wc-theme.css +2 -4
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +2 -4
- package/cdn/translations/en.js +1 -1
- package/cdn/translations/fr.js +1 -1
- package/cdn/utilities/date.d.ts +0 -2
- package/cdn/utilities/date.js +1 -1
- package/cdn/utilities/icon-library.js +1 -1
- package/cdn/utilities/localize.d.ts +1 -0
- package/cdn/utilities/localize.js +1 -1
- package/cdn/utilities/storybook.js +2 -2
- package/cdn/vscode.html-custom-data.json +53 -26
- package/cdn/web-types.json +230 -137
- package/dist/chunks/{chunk.B6XSS23Y.js → chunk.2G35OVLZ.js} +3 -3
- package/dist/chunks/{chunk.MWPOWC6N.js → chunk.2GTXVMMC.js} +2 -4
- package/dist/chunks/{chunk.BKCIRG2P.js → chunk.32T5435Z.js} +2 -2
- package/dist/chunks/{chunk.TJ5TUGGE.js → chunk.32ZGNEEA.js} +7 -7
- package/dist/chunks/{chunk.MFGYIAUT.js → chunk.3TAGND37.js} +1 -1
- package/dist/chunks/{chunk.4FZPTWZ7.js → chunk.4DRUU356.js} +30 -38
- package/dist/chunks/{chunk.QHNPNQXO.js → chunk.4TRXHBIO.js} +9 -11
- package/dist/chunks/{chunk.SEMHY47B.js → chunk.5GTWUU56.js} +1 -1
- package/dist/chunks/{chunk.M2QIFDAP.js → chunk.5NGXTSAJ.js} +1 -1
- package/dist/chunks/{chunk.XSQDJNFR.js → chunk.623OV6KT.js} +2 -2
- package/dist/chunks/{chunk.GMHIXRUV.js → chunk.65EFQZ4A.js} +1 -1
- package/dist/chunks/{chunk.TLQMWL6I.js → chunk.67J6LDJW.js} +5 -2
- package/dist/chunks/{chunk.MJ6DIYWF.js → chunk.6EU6GX26.js} +1 -1
- package/dist/chunks/{chunk.B3DDBDEC.js → chunk.6KY7LP6G.js} +5 -3
- package/dist/chunks/{chunk.M2RDCDKZ.js → chunk.6PI2M6R6.js} +1 -1
- package/dist/chunks/{chunk.IYAYPQEC.js → chunk.6XF7Y5OQ.js} +1 -1
- package/dist/chunks/{chunk.L5HLKFQW.js → chunk.6ZVGYVEL.js} +1 -1
- package/dist/chunks/{chunk.HCKPLZT3.js → chunk.7AB3AL2Z.js} +7 -7
- package/dist/chunks/{chunk.T4XADGK3.js → chunk.7YNHLXVZ.js} +1 -1
- package/dist/chunks/chunk.7Z3P7ZIT.js +100 -0
- package/dist/chunks/{chunk.CZWS5IXY.js → chunk.A63V45OW.js} +2 -2
- package/dist/chunks/{chunk.Q76VY2W2.js → chunk.ADVAWXPE.js} +1 -1
- package/dist/chunks/{chunk.QS7BPH3Y.js → chunk.AEGKKYZ4.js} +10 -19
- package/dist/chunks/{chunk.VNGKMC5T.js → chunk.AEU5B6YK.js} +1 -1
- package/dist/chunks/{chunk.K43LRQVK.js → chunk.AGQDJZXG.js} +2 -2
- package/dist/chunks/{chunk.I7MPPCZN.js → chunk.BADNDBKF.js} +3 -3
- package/dist/chunks/{chunk.VFJEGCDO.js → chunk.BAWCVSXY.js} +1 -1
- package/dist/chunks/{chunk.TTV3MIRK.js → chunk.BBH5JFVX.js} +8 -8
- package/dist/chunks/{chunk.WL6AJERE.js → chunk.BKW7OOII.js} +3 -3
- package/dist/chunks/{chunk.UOJ4QKLP.js → chunk.C4SE3ULG.js} +1 -1
- package/dist/chunks/{chunk.YBX4TUQG.js → chunk.CP3HQO7Z.js} +7 -7
- package/dist/chunks/{chunk.KD27MP6C.js → chunk.D7HT35YE.js} +1 -1
- package/dist/chunks/{chunk.ELOLGOFM.js → chunk.DI4J6YRC.js} +2 -2
- package/dist/chunks/{chunk.NC6NNDYD.js → chunk.DIRVCY5C.js} +1 -1
- package/dist/chunks/{chunk.34HS7ICN.js → chunk.DVIHNMQQ.js} +4 -2
- package/dist/chunks/{chunk.H26XMOUA.js → chunk.DX7525EY.js} +1 -1
- package/dist/chunks/{chunk.3D7AGBFQ.js → chunk.DYV7U6UU.js} +0 -2
- package/dist/chunks/{chunk.AAZSI6N4.js → chunk.E6UAGCKS.js} +5 -5
- package/dist/chunks/{chunk.DE3HY2DW.js → chunk.E7CTAIEF.js} +6 -5
- package/dist/chunks/{chunk.ZYGCOBUE.js → chunk.EC6ZMNDK.js} +2 -2
- package/dist/chunks/{chunk.RPPERQYB.js → chunk.ECHY7YBZ.js} +1 -1
- package/dist/chunks/{chunk.BZFZTT6Z.js → chunk.EH7ABWD6.js} +1 -1
- package/dist/chunks/{chunk.MOTDL3I3.js → chunk.ENRVP5HO.js} +5 -5
- package/dist/chunks/{chunk.XM237MHQ.js → chunk.EQNOUAQ6.js} +8 -4
- package/dist/chunks/{chunk.UF7CYOQ4.js → chunk.EWAET5DR.js} +5 -5
- package/dist/chunks/{chunk.GYWU4AAB.js → chunk.EWO55RR2.js} +41 -49
- package/dist/chunks/{chunk.QAA45XK3.js → chunk.FLCLDNUC.js} +2 -2
- package/dist/chunks/{chunk.BIMSZQRS.js → chunk.FOZ6VW33.js} +5 -5
- package/dist/chunks/{chunk.RRR5BCCP.js → chunk.FTIQ3KCK.js} +9 -9
- package/dist/chunks/{chunk.AC6UE3V5.js → chunk.FV626ULR.js} +7 -6
- package/dist/chunks/{chunk.D4VA4USZ.js → chunk.GDRWZRCN.js} +16 -9
- package/dist/chunks/{chunk.LN7NDCQU.js → chunk.GM3QM4YJ.js} +3 -3
- package/dist/chunks/{chunk.2GJ46J7Q.js → chunk.GQZAFXU6.js} +1 -1
- package/dist/chunks/{chunk.LO42XUHN.js → chunk.HAWD2P5K.js} +12 -13
- package/dist/chunks/{chunk.NGEL5LW3.js → chunk.HD75OK3X.js} +4 -4
- package/dist/chunks/{chunk.PPNCOBIW.js → chunk.HTBUOA43.js} +5 -5
- package/dist/chunks/{chunk.NIBZO5CG.js → chunk.HTSDHYY3.js} +4 -4
- package/dist/chunks/{chunk.IRPNCLE5.js → chunk.HTXWT3CI.js} +3 -3
- package/dist/chunks/{chunk.ER5S4DQ4.js → chunk.IDMG3YLC.js} +1 -1
- package/dist/chunks/{chunk.SUX4XQKB.js → chunk.IRJKFO7O.js} +2 -2
- package/dist/chunks/{chunk.EDEPWRFC.js → chunk.ITD5BZEA.js} +1 -1
- package/dist/chunks/{chunk.IRBKALXJ.js → chunk.JP47EKO5.js} +7 -7
- package/dist/chunks/{chunk.ZKCBJ5YM.js → chunk.JZAQYPUX.js} +1 -1
- package/dist/chunks/{chunk.WAEFCPAX.js → chunk.KC2ZHNPC.js} +1 -1
- package/dist/chunks/{chunk.RPOIITDC.js → chunk.KDDTJP4K.js} +5 -5
- package/dist/chunks/{chunk.FLRNIL37.js → chunk.KN6JQY6O.js} +1 -1
- package/dist/chunks/{chunk.UYMQI7J5.js → chunk.KR4VFINH.js} +4 -4
- package/dist/chunks/{chunk.Z7QD3YXZ.js → chunk.L365K634.js} +9 -9
- package/dist/chunks/{chunk.4JMXY2WI.js → chunk.LB3ZEOQX.js} +2 -2
- package/dist/chunks/{chunk.LJ2VCS7Q.js → chunk.LKLBHDXL.js} +5 -2
- package/dist/chunks/chunk.LN4SRWKC.js +102 -0
- package/dist/chunks/{chunk.SC6ST3JE.js → chunk.LNSYUTNL.js} +2 -2
- package/dist/chunks/{chunk.UGLMODK6.js → chunk.LUN6HLAE.js} +2 -2
- package/dist/chunks/{chunk.6EOZYFCK.js → chunk.LVSZUO34.js} +2 -2
- package/dist/chunks/{chunk.6HSTAJNR.js → chunk.M6X2ZDO6.js} +2 -2
- package/dist/chunks/{chunk.JC4UHPES.js → chunk.MMROE4ER.js} +2 -2
- package/dist/chunks/{chunk.5WXGUCD2.js → chunk.N6RV7TJA.js} +3 -3
- package/dist/chunks/{chunk.F7XLQM3I.js → chunk.OMSTY3Y5.js} +2 -2
- package/dist/chunks/{chunk.7I4SBUOE.js → chunk.ORAH2BHK.js} +3 -3
- package/dist/chunks/{chunk.BWP55AAX.js → chunk.OYJ4CG6J.js} +1 -1
- package/dist/chunks/{chunk.IIT2FS67.js → chunk.P57KFF6A.js} +12 -7
- package/dist/chunks/{chunk.EGXFCQMV.js → chunk.PPNCR6KJ.js} +4 -4
- package/dist/chunks/{chunk.ISEFZON7.js → chunk.Q45EA7A6.js} +1 -1
- package/dist/chunks/{chunk.MDQDWJCR.js → chunk.QCVOP7JL.js} +13 -0
- package/dist/chunks/{chunk.C6Q4Y7HY.js → chunk.QHW2OXLX.js} +2 -2
- package/dist/chunks/{chunk.N2V4KI76.js → chunk.QJC7AVKZ.js} +1 -1
- package/dist/chunks/{chunk.IJLBJ37U.js → chunk.QM6A2OJ6.js} +8 -8
- package/dist/chunks/{chunk.KNXPRETW.js → chunk.RANW22ZB.js} +4 -4
- package/dist/chunks/{chunk.CZC3DHY6.js → chunk.RHRIPLA3.js} +3 -3
- package/dist/chunks/{chunk.CRWYFYCK.js → chunk.RKGIZ4JZ.js} +6 -6
- package/dist/chunks/{chunk.UBVYU5GL.js → chunk.RTBQXZDB.js} +2 -2
- package/dist/chunks/{chunk.S5FAXONJ.js → chunk.RVOALTE4.js} +5 -5
- package/dist/chunks/{chunk.C7XR6TIW.js → chunk.SJNFRQKU.js} +1 -1
- package/dist/chunks/{chunk.TGQQJI2E.js → chunk.SKYFDHVP.js} +8 -8
- package/dist/chunks/{chunk.5S6P5V3F.js → chunk.SPIKJZGM.js} +1 -1
- package/dist/chunks/{chunk.RIJIUMG2.js → chunk.SPVKFHUZ.js} +5 -4
- package/dist/chunks/{chunk.MTRAJSQ5.js → chunk.SWIKAUKG.js} +4 -3
- package/dist/chunks/{chunk.QGSBICBZ.js → chunk.SWKXQDKB.js} +1 -1
- package/dist/chunks/{chunk.BEK4DVCN.js → chunk.SYWMXJ3H.js} +21 -19
- package/dist/chunks/{chunk.CKEB7DWU.js → chunk.T43D4ETK.js} +32 -34
- package/dist/chunks/{chunk.OYVF3HNG.js → chunk.TIM2RCEB.js} +0 -23
- package/dist/chunks/{chunk.AI3RKI3P.js → chunk.TJNOM7IR.js} +1 -1
- package/dist/chunks/{chunk.ORK75RRY.js → chunk.TKJ72YYU.js} +3 -3
- package/dist/chunks/{chunk.UO6FYSWX.js → chunk.TOXFYUP5.js} +3 -3
- package/dist/chunks/{chunk.BITIOZGG.js → chunk.TXZ4S7T7.js} +4 -4
- package/dist/chunks/{chunk.AAHDC2DF.js → chunk.U6SFJUEX.js} +1 -1
- package/dist/chunks/{chunk.CY25FZDP.js → chunk.U73GKQGJ.js} +28 -16
- package/dist/chunks/{chunk.6DUG6A52.js → chunk.UPMUUECF.js} +5 -5
- package/dist/chunks/{chunk.V2HQ7IVJ.js → chunk.UR3NX4ST.js} +9 -8
- package/dist/chunks/{chunk.LKSUU7CF.js → chunk.USCIRPV5.js} +24 -21
- package/dist/chunks/{chunk.EE3XCTKZ.js → chunk.UXHQARJW.js} +3 -3
- package/dist/chunks/{chunk.DN3K2GHZ.js → chunk.UZZ34Z5W.js} +26 -21
- package/dist/chunks/{chunk.DM5A44VN.js → chunk.VCO46TJT.js} +4 -4
- package/dist/chunks/{chunk.UIZ6FPK7.js → chunk.VDZUSRNI.js} +1 -1
- package/dist/chunks/{chunk.JTUO6EOR.js → chunk.VPAEURPO.js} +42 -27
- package/dist/chunks/{chunk.EJUYB3MH.js → chunk.VRUSJUXU.js} +1 -1
- package/dist/chunks/{chunk.M5L3DDVW.js → chunk.W2GBRU2D.js} +2 -2
- package/dist/chunks/{chunk.NPMNFNR7.js → chunk.WEWJQ2AA.js} +2 -2
- package/dist/chunks/{chunk.FA4NHQF4.js → chunk.WQA4XJEW.js} +1 -1
- package/dist/chunks/{chunk.YYKAI7FO.js → chunk.WZBEL7FC.js} +1 -1
- package/dist/chunks/{chunk.ZJ6WYIG2.js → chunk.X7QQZ42A.js} +63 -63
- package/dist/chunks/{chunk.ZKBTNXGE.js → chunk.X7RPGUOS.js} +9 -9
- package/dist/chunks/{chunk.RK2WN36C.js → chunk.XBQTTKJU.js} +1 -1
- package/dist/chunks/{chunk.OUUFQTMX.js → chunk.XEHLIOJ2.js} +3 -3
- package/dist/chunks/{chunk.LWTEEWEF.js → chunk.XQ3BCGWA.js} +2 -2
- package/dist/chunks/{chunk.YGUB43LS.js → chunk.YKBHVARA.js} +2 -2
- package/dist/chunks/{chunk.25TWOP6P.js → chunk.YOK7OXBS.js} +6 -6
- package/dist/chunks/{chunk.NJQ6BFQQ.js → chunk.YPBLUIU7.js} +4 -4
- package/dist/chunks/{chunk.RDHPV744.js → chunk.YSEIF6AP.js} +1 -1
- package/dist/chunks/{chunk.ISXV5IHB.js → chunk.Z4TGH2YA.js} +3 -3
- package/dist/chunks/{chunk.KUXAIXES.js → chunk.ZAYEYBAY.js} +8 -11
- package/dist/chunks/{chunk.XTVVSORU.js → chunk.ZOFJITKA.js} +17 -15
- package/dist/chunks/{chunk.YTAYYSIR.js → chunk.ZWZ72KXY.js} +2 -2
- package/dist/components/accordion/accordion.js +7 -7
- package/dist/components/accordion-group/accordion-group.js +8 -8
- package/dist/components/alert/alert.js +7 -7
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/banner/banner.d.ts +36 -0
- package/dist/components/banner/banner.js +24 -0
- package/dist/components/banner/banner.styles.d.ts +2 -0
- package/dist/components/banner/banner.styles.js +8 -0
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +7 -7
- package/dist/components/button/button.js +7 -7
- package/dist/components/calendar/calendar.js +4 -4
- package/dist/components/calendar/calendar.styles.js +1 -1
- package/dist/components/callout/callout.js +2 -2
- package/dist/components/callout/callout.styles.js +1 -1
- package/dist/components/card/card.js +2 -2
- package/dist/components/card-content/card-content.js +6 -6
- package/dist/components/card-nav/card-nav.js +2 -2
- package/dist/components/card-nav-accordion/card-nav-accordion.js +7 -7
- package/dist/components/card-nav-item/card-nav-item.js +6 -6
- package/dist/components/checkbox/checkbox.js +12 -12
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/checkbox-button/checkbox-button.js +11 -11
- package/dist/components/checkbox-card/checkbox-card.js +9 -9
- package/dist/components/checkbox-group/checkbox-group.js +9 -9
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/combobox/combobox.js +17 -17
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/copy-button/copy-button.js +9 -9
- package/dist/components/copy-button/copy-button.styles.js +1 -1
- package/dist/components/dialog/dialog.js +9 -9
- package/dist/components/download-card/download-card.d.ts +3 -1
- package/dist/components/download-card/download-card.js +6 -6
- package/dist/components/download-card/download-card.styles.js +1 -1
- package/dist/components/download-link/download-link.d.ts +3 -1
- package/dist/components/download-link/download-link.js +6 -6
- package/dist/components/download-link/download-link.styles.js +1 -1
- package/dist/components/drawer/drawer.js +10 -10
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.js +3 -3
- package/dist/components/error-message-panel/error-message-panel.js +4 -4
- package/dist/components/error-message-panel/error-message-panel.styles.js +1 -1
- package/dist/components/error-text/error-text.js +5 -5
- package/dist/components/fieldset/fieldset.js +3 -3
- package/dist/components/fieldset/fieldset.styles.js +1 -1
- package/dist/components/file-upload/file-upload.js +12 -12
- package/dist/components/file-upload/file-upload.styles.js +2 -2
- package/dist/components/file-upload-item/file-upload-item.js +5 -5
- package/dist/components/filter-button/filter-button.js +6 -6
- package/dist/components/filter-counter/filter-counter.js +34 -34
- package/dist/components/filter-date/filter-date.js +16 -16
- package/dist/components/filter-range/filter-range.js +33 -33
- package/dist/components/filter-select/filter-select.js +35 -35
- package/dist/components/footer/footer.js +3 -3
- package/dist/components/footer-content-block/footer-content-block.js +2 -2
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.js +2 -2
- package/dist/components/footer-sitemap/footer-sitemap.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 +4 -4
- package/dist/components/header-modern/header-modern.js +3 -3
- package/dist/components/header-search/header-search.js +12 -12
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/input/input.js +28 -28
- package/dist/components/input-amount/input-amount.js +15 -15
- package/dist/components/input-amount/input-amount.styles.js +3 -3
- package/dist/components/input-date/input-date.js +20 -20
- package/dist/components/input-date/input-date.styles.js +3 -3
- package/dist/components/input-mask/input-mask.js +16 -16
- package/dist/components/input-mask/input-mask.styles.js +3 -3
- package/dist/components/input-mask/input-mask.utils.d.ts +0 -1
- package/dist/components/input-mask/input-mask.utils.js +1 -3
- package/dist/components/input-native/input-native.js +15 -15
- package/dist/components/input-native/input-native.styles.js +3 -3
- package/dist/components/input-otp/input-otp.js +12 -12
- package/dist/components/input-otp/input-otp.styles.js +2 -2
- package/dist/components/input-phone/input-phone.js +22 -22
- package/dist/components/input-phone/input-phone.styles.js +2 -2
- package/dist/components/input-time/input-time.js +17 -17
- package/dist/components/input-time/input-time.styles.js +3 -3
- package/dist/components/menu-accordion/menu-accordion.js +9 -9
- package/dist/components/menu-item/menu-item.js +5 -5
- package/dist/components/menu-navigation/menu-navigation.js +6 -6
- package/dist/components/navbar-link/navbar-link.js +10 -10
- package/dist/components/navbar-menu/navbar-menu.js +8 -8
- package/dist/components/option/option.js +6 -6
- package/dist/components/page-header/page-header.js +2 -2
- package/dist/components/pagination/pagination.js +30 -30
- package/dist/components/pagination-button/pagination-button.js +2 -2
- package/dist/components/popup/popup.js +1 -1
- package/dist/components/profile-button/profile-button.js +10 -10
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio-button/radio-button.js +11 -11
- package/dist/components/radio-card/radio-card.js +13 -13
- package/dist/components/radio-group/radio-group.js +9 -9
- package/dist/components/radio-group/radio-group.styles.js +2 -2
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/search/search.js +9 -9
- package/dist/components/select/select.js +16 -16
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/sidenav/sidenav.js +9 -9
- package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +10 -10
- 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 +6 -6
- package/dist/components/step/step.js +7 -7
- package/dist/components/success-text/success-text.js +5 -5
- package/dist/components/switch/switch.js +7 -7
- package/dist/components/tab/tab.js +7 -7
- package/dist/components/tab-group/tab-group.js +7 -7
- package/dist/components/table-action/table-action.d.ts +2 -0
- package/dist/components/table-action/table-action.js +8 -8
- package/dist/components/table-caption/table-caption.js +3 -3
- package/dist/components/table-container/table-container.js +3 -3
- package/dist/components/table-header-cell/table-header-cell.js +5 -5
- package/dist/components/table-header-row/table-header-row.js +17 -17
- package/dist/components/table-of-contents/table-of-contents.js +7 -7
- package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/dist/components/table-row/table-row.js +15 -15
- package/dist/components/tag/tag.js +9 -9
- package/dist/components/textarea/textarea.js +10 -10
- package/dist/components/textarea/textarea.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/components/tree/tree.js +10 -10
- package/dist/components/tree-item/tree-item.js +8 -8
- package/dist/custom-elements.json +542 -407
- package/dist/design-system.d.ts +1 -0
- package/dist/design-system.js +216 -211
- package/dist/internal/components/form-control/form-control-layout.js +16 -15
- package/dist/internal/components/input-base/input-base.js +4 -3
- package/dist/internal/slot.d.ts +0 -5
- package/dist/internal/slot.js +0 -20
- package/dist/internal/tabbable.d.ts +0 -8
- package/dist/internal/tabbable.js +0 -12
- package/dist/styles/form-control.styles.js +32 -34
- package/dist/templates/utilities/header.js +1 -1
- package/dist/templates/utilities/template-story-config.js +0 -3
- package/dist/themes/dsa-wc-theme.css +2 -4
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +2 -4
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/utilities/date.d.ts +0 -2
- package/dist/utilities/date.js +1 -5
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +1 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/utilities/storybook.js +3 -3
- package/dist/vscode.html-custom-data.json +53 -26
- package/dist/web-types.json +230 -137
- package/package.json +18 -18
- package/cdn/chunks/chunk.3YXGLEPK.js +0 -42
- package/cdn/chunks/chunk.AU7QYOWT.js +0 -27
- package/cdn/chunks/chunk.BBVHFT7Q.js +0 -19
- package/cdn/chunks/chunk.BMNZ4YMI.js +0 -60
- package/cdn/chunks/chunk.CCKFL63L.js +0 -31
- package/cdn/chunks/chunk.CUYQOZPJ.js +0 -20
- package/cdn/chunks/chunk.H4I7G2EQ.js +0 -3
- package/cdn/chunks/chunk.HCJCL2UD.js +0 -23
- package/cdn/chunks/chunk.IFSGAJQ4.js +0 -1
- package/cdn/chunks/chunk.KM72KRA4.js +0 -38
- package/cdn/chunks/chunk.LBAIMDY3.js +0 -1
- package/cdn/chunks/chunk.NH327H72.js +0 -56
- package/cdn/chunks/chunk.OH7GC6EG.js +0 -53
- package/cdn/chunks/chunk.Q7GZ4AMX.js +0 -65
- package/cdn/chunks/chunk.RX76YMGL.js +0 -19
- package/cdn/chunks/chunk.SXMGNTD4.js +0 -18
- package/cdn/chunks/chunk.U2HDZAQO.js +0 -23
- package/cdn/chunks/chunk.VQCDCQ2A.js +0 -3
- package/cdn/chunks/chunk.VRIJXOVW.js +0 -47
- package/cdn/components/include/request.d.ts +0 -8
- package/cdn/components/include/request.js +0 -1
- package/cdn/components/table/types.d.ts +0 -5
- package/cdn/components/table/types.js +0 -1
- package/cdn/events/dsa-focus-in.d.ts +0 -7
- package/cdn/events/dsa-focus-in.js +0 -1
- package/cdn/events/dsa-focus-out.d.ts +0 -7
- package/cdn/events/dsa-focus-out.js +0 -1
- package/cdn/translations/en-gb.d.ts +0 -3
- package/cdn/translations/en-gb.js +0 -1
- package/dist/components/include/request.d.ts +0 -8
- package/dist/components/include/request.js +0 -24
- package/dist/components/table/types.d.ts +0 -5
- package/dist/components/table/types.js +0 -12
- package/dist/events/dsa-focus-in.d.ts +0 -7
- package/dist/events/dsa-focus-in.js +0 -1
- package/dist/events/dsa-focus-out.d.ts +0 -7
- package/dist/events/dsa-focus-out.js +0 -1
- package/dist/translations/en-gb.d.ts +0 -3
- package/dist/translations/en-gb.js +0 -21
- package/dist/chunks/{chunk.STZAPPWR.js → chunk.7Y2PLLDT.js} +0 -0
- package/dist/chunks/{chunk.GBZY2OWL.js → chunk.BIDMVL7F.js} +3 -3
- /package/dist/chunks/{chunk.YIY5RM53.js → chunk.XMFD37RX.js} +0 -0
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import{a as k}from"./chunk.RUVWVGYN.js";import{a as _}from"./chunk.ELL45QD3.js";import{a as l}from"./chunk.KLRPP4NQ.js";import{a as n,c as d,d as h}from"./chunk.HHVNQNCC.js";import{a as c,c as m}from"./chunk.TV2TMO2H.js";import{a as g}from"./chunk.B4KFHYLS.js";import{c as v}from"./chunk.LBAIMDY3.js";import{c as b}from"./chunk.VZAYP3SG.js";import{d as u}from"./chunk.ZBHHLRFH.js";import{a as w}from"./chunk.BWEPOOQP.js";import{a as y,b as i,d as o,f}from"./chunk.KBZ32KWP.js";import{a as p}from"./chunk.GP725TPQ.js";import{f as a}from"./chunk.IZ2HVRME.js";var e=class extends f{constructor(){super(...arguments);this.localize=new v(this);this.hasSlotController=new _(this,"summary");this.open=!1;this.role="listitem"}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0"}handleSummaryClick(){this.open?this.hide():this.show(),this.headerButton.focus()}handleSummaryKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.open?this.hide():this.show()),(t.key==="ArrowUp"||t.key==="ArrowLeft")&&(t.preventDefault(),this.hide()),(t.key==="ArrowDown"||t.key==="ArrowRight")&&(t.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.emit("dsa-show",{cancelable:!0}).defaultPrevented){this.open=!1;return}await d(this.body),this.body.hidden=!1;let{keyframes:s,options:r}=m(this,"accordion.show",{dir:this.localize.dir()});await n(this.body,h(s,this.body.scrollHeight),r),this.body.style.height="auto",this.emit("dsa-after-show")}else{if(this.emit("dsa-hide",{cancelable:!0}).defaultPrevented){this.open=!0;return}await d(this.body);let{keyframes:s,options:r}=m(this,"accordion.hide",{dir:this.localize.dir()});await n(this.body,h(s,this.body.scrollHeight),r),this.body.hidden=!0,this.body.style.height="auto",this.emit("dsa-after-hide")}}async show(){if(!this.open)return this.open=!0,await l(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await l(this,"dsa-after-hide")}render(){return!this.summary&&!this.hasSlotController.test("summary")&&g("<dsa-card-nav-accordion> requires a summary attribute or a summary slot for accessibility"),p`
|
|
2
|
-
<div
|
|
3
|
-
part="base"
|
|
4
|
-
class=${u({"card-nav-accordion":!0,"card-nav-accordion--open":this.open,"card-nav-accordion--chevron":!0})}
|
|
5
|
-
>
|
|
6
|
-
<div part="header" id="header" class="card-nav-accordion__header">
|
|
7
|
-
<span
|
|
8
|
-
role="button"
|
|
9
|
-
aria-expanded=${this.open?"true":"false"}
|
|
10
|
-
aria-controls="content"
|
|
11
|
-
@click=${this.handleSummaryClick}
|
|
12
|
-
@keydown=${this.handleSummaryKeyDown}
|
|
13
|
-
class="card-nav-accordion__header-button"
|
|
14
|
-
tabindex="0"
|
|
15
|
-
>
|
|
16
|
-
<slot name="summary" class="card-nav-accordion__summary"
|
|
17
|
-
>${this.summary}</slot
|
|
18
|
-
>
|
|
19
|
-
|
|
20
|
-
<span part="summary-icon" class="card-nav-accordion__summary-icon">
|
|
21
|
-
<dsa-icon
|
|
22
|
-
class="card-nav-accordion__expand-icon"
|
|
23
|
-
name="expand_more"
|
|
24
|
-
library="system"
|
|
25
|
-
></dsa-icon>
|
|
26
|
-
</span>
|
|
27
|
-
</span>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<div
|
|
31
|
-
class="card-nav-accordion__body"
|
|
32
|
-
role="list"
|
|
33
|
-
aria-labelledby="header"
|
|
34
|
-
>
|
|
35
|
-
<slot
|
|
36
|
-
part="content"
|
|
37
|
-
id="content"
|
|
38
|
-
class="card-nav-accordion__content"
|
|
39
|
-
></slot>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
`}};e.styles=k,e.dependencies={"dsa-icon":b},a([o(".card-nav-accordion")],e.prototype,"accordion",2),a([o(".card-nav-accordion__header-button")],e.prototype,"headerButton",2),a([o(".card-nav-accordion__body")],e.prototype,"body",2),a([i({type:Boolean,reflect:!0})],e.prototype,"open",2),a([i()],e.prototype,"summary",2),a([i({reflect:!0})],e.prototype,"role",2),a([w("open",{waitUntilFirstUpdate:!0})],e.prototype,"handleOpenChange",1),e=a([y("dsa-card-nav-accordion")],e);c("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"linear"}});c("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"linear"}});export{e as a};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk.3QGRYFX6.js";import{a as n}from"./chunk.ELL45QD3.js";import{a as e}from"./chunk.NIRNX67K.js";import{d as a}from"./chunk.ZBHHLRFH.js";import{a as o,b as r,f as i}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as l}from"./chunk.IZ2HVRME.js";var t=class extends i{constructor(){super(...arguments);this.hasSlotController=new n(this,"[default]","media","title-icon","title","subtitle");this.contrastedBorders=!1}render(){return s`
|
|
2
|
-
<div
|
|
3
|
-
part="base"
|
|
4
|
-
class=${a({"card-nav":!0,"card-nav--contrasted-borders":this.contrastedBorders})}
|
|
5
|
-
>
|
|
6
|
-
<slot name="media" part="media" class="card-nav__media"></slot>
|
|
7
|
-
<div class="card-nav__title-block">
|
|
8
|
-
<slot
|
|
9
|
-
name="title-icon"
|
|
10
|
-
class=${e(this.hasSlotController.test("title-icon")?"card-nav__title_icon":void 0)}
|
|
11
|
-
></slot>
|
|
12
|
-
<div class="title-block-text">
|
|
13
|
-
<slot
|
|
14
|
-
name="title"
|
|
15
|
-
class=${e(this.hasSlotController.test("title")?"title":void 0)}
|
|
16
|
-
></slot>
|
|
17
|
-
<slot
|
|
18
|
-
name="subtitle"
|
|
19
|
-
class=${e(this.hasSlotController.test("subtitle")?"subtitle":void 0)}
|
|
20
|
-
></slot>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="card-nav__content" role="list">
|
|
24
|
-
<slot></slot>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
`}};t.styles=d,l([r({type:Boolean,reflect:!0,attribute:"contrasted-borders"})],t.prototype,"contrastedBorders",2),t=l([o("dsa-card-nav")],t);export{t as a};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk.4GV3WJET.js";import{c as n}from"./chunk.VZAYP3SG.js";import{d as a}from"./chunk.ZBHHLRFH.js";import{a as r,b as i,f as l}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends l{constructor(){super(...arguments);this.variant="base";this.size="medium"}handleFocus(){this.emit("dsa-focus")}handleBlur(){this.emit("dsa-blur")}render(){return this.variant==="contrasted"&&console.warn("The `contrasted` variant is deprecated, and will be removed in the next major release."),s`
|
|
2
|
-
<a
|
|
3
|
-
part="link"
|
|
4
|
-
class=${a({link:!0,"link--on-layer":this.variant==="layer","link--on-contrasted":this.variant==="contrasted","link--floating-menu":this.variant==="floating","document-link--x-large":this.size==="xlarge","document-link--large":this.size==="large","document-link--medium":this.size==="medium","document-link--small":this.size==="small","document-link--x-small":this.size==="xsmall","document-link--2x-small":this.size==="2xsmall"})}
|
|
5
|
-
download=${this.filename}
|
|
6
|
-
href=${this.href}
|
|
7
|
-
@focus=${this.handleFocus}
|
|
8
|
-
@blur=${this.handleBlur}
|
|
9
|
-
>
|
|
10
|
-
<slot></slot>
|
|
11
|
-
<dsa-icon name="download" library="system"></dsa-icon>
|
|
12
|
-
<p
|
|
13
|
-
id="document-info"
|
|
14
|
-
class=${a({"document-info":!0,"document-info--on-layer":this.variant==="layer","document-info--on-contrasted":this.variant==="contrasted","document-info--floating-menu":this.variant==="floating"})}
|
|
15
|
-
>
|
|
16
|
-
${this.format}${this.format&&this.documentSize?" - ":""}${this.documentSize}
|
|
17
|
-
</p>
|
|
18
|
-
</a>
|
|
19
|
-
`}};t.styles=m,t.dependencies={"dsa-icon":n},e([i()],t.prototype,"href",2),e([i()],t.prototype,"format",2),e([i({attribute:"documentsize"})],t.prototype,"documentSize",2),e([i()],t.prototype,"variant",2),e([i()],t.prototype,"size",2),e([i()],t.prototype,"filename",2),t=e([r("dsa-download-link")],t);export{t as a};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk.F6YFQ3GB.js";import{a as $}from"./chunk.LRR4YZGW.js";import{a as b}from"./chunk.KLRPP4NQ.js";import{a as m,c as v,d as f}from"./chunk.HHVNQNCC.js";import{a as y,c as g}from"./chunk.TV2TMO2H.js";import{c as E}from"./chunk.LBAIMDY3.js";import{c as L}from"./chunk.VZAYP3SG.js";import{a as r}from"./chunk.2RF4WD6T.js";import{d as u}from"./chunk.ZBHHLRFH.js";import{a as p}from"./chunk.BWEPOOQP.js";import{a as w,b as d,c,d as h,f as k}from"./chunk.KBZ32KWP.js";import{a}from"./chunk.GP725TPQ.js";import{f as s}from"./chunk.IZ2HVRME.js";var i=class extends k{constructor(){super(...arguments);this.localize=new E(this);this.mutationObserver=null;this.resizeObserver=null;this.mobile=!1;this.open=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this)}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.removeOpenListeners(),(e=this.mutationObserver)==null||e.disconnect(),(t=this.resizeObserver)==null||t.disconnect()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async firstUpdated(){this.observeAttributeChanges(),this.observeIndicatorChanges(),this.mobile&&(this.content.hidden=!this.open,this.content.style.height=this.open?"auto":"0",this.open&&this.addOpenListeners()),await this.updateComplete,this.repositionIndicator()}observeAttributeChanges(){var e;(e=this.mutationObserver)==null||e.disconnect(),this.mutationObserver=new MutationObserver(t=>{t.some(n=>n.type==="attributes")&&(this.allLinks=this.cloneSlottedLinks(),this.updateCurrentSection())}),[...this.defaultSlot.assignedElements({flatten:!0})].forEach(t=>{this.mutationObserver.observe(t,{attributes:!0})})}observeIndicatorChanges(){this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator()}),this.resizeObserver.observe(this.content)}cloneSlottedLinks(){let e=[...this.defaultSlot.assignedElements({flatten:!0})],t=[];return e.forEach(n=>{let o=n.cloneNode(!0);t.push(o)}),t}async updateCurrentSection(){let e=this.allLinks.findIndex(t=>t.getAttribute("aria-current")==="true");this.currentSectionLink=this.allLinks[e],this.progress=(e+1)/this.allLinks.length*100,await this.updateComplete,this.repositionIndicator()}repositionIndicator(){if(!this.currentSectionLink){this.indicator.style.display="none";return}this.indicator.style.display="block";let e=this.currentSectionLink.clientHeight,n=this.allLinks.slice(0,this.allLinks.indexOf(this.currentSectionLink)).reduce((o,l)=>o+l.clientHeight,0);this.indicator.style.width="auto",this.indicator.style.height=`${e}px`,this.indicator.style.translate=`0 ${n}px`}handleSlotChange(){this.allLinks=this.cloneSlottedLinks(),this.updateCurrentSection(),this.observeAttributeChanges()}handleHeaderKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.open?this.hide():this.show())}handleDocumentKeyDown(e){this.open&&e.key==="Escape"&&(e.preventDefault(),this.hide(),this.headerButton.focus({preventScroll:!0})),this.open&&e.key==="Tab"&&setTimeout(()=>{var n,o;let t=(this==null?void 0:this.getRootNode())instanceof ShadowRoot?(o=(n=document.activeElement)==null?void 0:n.shadowRoot)==null?void 0:o.activeElement:document.activeElement;(!this||(t==null?void 0:t.closest(this.tagName.toLowerCase()))!==this)&&(this.hide(),this.headerButton.focus({preventScroll:!0}))})}handleDocumentMouseDown(e){let t=e.composedPath();this&&!t.includes(this)&&this.hide()}handleHeaderClick(){this.open?this.hide():this.show(),this.headerButton.focus()}handleLinkClick(){this.hide()}async handleOpenChange(){if(this.mobile)if(this.open){if(this.emit("dsa-show",{cancelable:!0}).defaultPrevented){this.open=!1;return}this.addOpenListeners(),await v(this.content),this.content.hidden=!1;let{keyframes:t,options:n}=g(this,"content.show",{dir:this.localize.dir()});await m(this.content,f(t,this.content.scrollHeight),n),this.content.style.height="auto",this.repositionIndicator(),this.emit("dsa-after-show")}else{if(this.emit("dsa-hide",{cancelable:!0}).defaultPrevented){this.open=!0;return}this.removeOpenListeners(),await v(this.content);let{keyframes:t,options:n}=g(this,"content.hide",{dir:this.localize.dir()});await m(this.content,f(t,this.content.scrollHeight),n),this.content.hidden=!0,this.content.style.height="auto",this.emit("dsa-after-hide")}}handleMobileChange(){this.mobile?(this.content.hidden=!this.open,this.content.style.height=this.open?"auto":"0",this.open&&this.addOpenListeners()):(this.content.removeAttribute("hidden"),this.content.removeAttribute("style"),this.removeOpenListeners())}async show(){if(!this.open)return this.open=!0,await b(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await b(this,"dsa-after-hide")}render(){var e,t,n,o,l;return a`
|
|
2
|
-
<nav
|
|
3
|
-
role="navigation"
|
|
4
|
-
class=${u({toc:!0,"toc--mobile":this.mobile,"toc--desktop":!this.mobile,"toc--open":!this.open})}
|
|
5
|
-
aria-labelledby="label"
|
|
6
|
-
>
|
|
7
|
-
<div
|
|
8
|
-
role=${r(this.mobile?"button":void 0)}
|
|
9
|
-
tabindex=${r(this.mobile?"0":void 0)}
|
|
10
|
-
aria-expanded=${r(this.mobile?this.open:void 0)}
|
|
11
|
-
aria-controls=${r(this.mobile?"content":void 0)}
|
|
12
|
-
class="header"
|
|
13
|
-
@click=${r(this.mobile?this.handleHeaderClick:void 0)}
|
|
14
|
-
@keydown=${r(this.mobile?this.handleHeaderKeydown:void 0)}
|
|
15
|
-
>
|
|
16
|
-
<slot id="label" name="label" class="label"
|
|
17
|
-
>${(e=this.label)!=null?e:this.localize.term("tableOfContents")}</slot
|
|
18
|
-
>
|
|
19
|
-
${this.mobile?a`<span class="header__current-section"
|
|
20
|
-
>${(n=(t=this.currentSectionLink)==null?void 0:t.textContent)!=null?n:""}</span
|
|
21
|
-
>
|
|
22
|
-
<dsa-icon
|
|
23
|
-
name="expand_more"
|
|
24
|
-
class="header__icon"
|
|
25
|
-
library="system"
|
|
26
|
-
></dsa-icon>`:""}
|
|
27
|
-
</div>
|
|
28
|
-
${this.mobile?a`
|
|
29
|
-
<div
|
|
30
|
-
part="progress-bar"
|
|
31
|
-
role="progressbar"
|
|
32
|
-
class="progress-bar"
|
|
33
|
-
aria-hidden="true"
|
|
34
|
-
>
|
|
35
|
-
<div
|
|
36
|
-
class="progress-bar__indicator"
|
|
37
|
-
style=${$({width:`${(o=this.progress)!=null?o:0}%`})}
|
|
38
|
-
></div>
|
|
39
|
-
</div>
|
|
40
|
-
`:""}
|
|
41
|
-
|
|
42
|
-
<div
|
|
43
|
-
id="content"
|
|
44
|
-
class=${u({content:!0,"content--mobile":this.mobile})}
|
|
45
|
-
>
|
|
46
|
-
<div class="content__indicator"></div>
|
|
47
|
-
<div
|
|
48
|
-
role="list"
|
|
49
|
-
@click=${r(this.mobile?this.handleLinkClick:void 0)}
|
|
50
|
-
>
|
|
51
|
-
${a`${(l=this.allLinks)==null?void 0:l.map(H=>a`<div role="listitem">${H}</div>`)}`}
|
|
52
|
-
</div>
|
|
53
|
-
<slot
|
|
54
|
-
part="items"
|
|
55
|
-
class="slotted__items"
|
|
56
|
-
@slotchange=${this.handleSlotChange}
|
|
57
|
-
></slot>
|
|
58
|
-
</div>
|
|
59
|
-
</nav>
|
|
60
|
-
`}};i.styles=M,i.dependencies={"dsa-icon":L},s([h(".header")],i.prototype,"headerButton",2),s([h(".content")],i.prototype,"content",2),s([h(".content__indicator")],i.prototype,"indicator",2),s([h('[part="items"]')],i.prototype,"defaultSlot",2),s([c()],i.prototype,"allLinks",2),s([c()],i.prototype,"currentSectionLink",2),s([c()],i.prototype,"progress",2),s([d()],i.prototype,"label",2),s([d({type:Boolean,reflect:!0})],i.prototype,"mobile",2),s([d({type:Boolean,reflect:!0})],i.prototype,"open",2),s([p("open",{waitUntilFirstUpdate:!0})],i.prototype,"handleOpenChange",1),s([p("mobile",{waitUntilFirstUpdate:!0})],i.prototype,"handleMobileChange",1),i=s([w("dsa-table-of-contents")],i);y("content.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"linear"}});y("content.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"linear"}});export{i as a};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import{a as v}from"./chunk.NPIFJCS3.js";import{a as E}from"./chunk.CUYQOZPJ.js";import{a as d}from"./chunk.KLRPP4NQ.js";import{a as r,c as l}from"./chunk.HHVNQNCC.js";import{a as h,c as p}from"./chunk.TV2TMO2H.js";import{c as w}from"./chunk.LBAIMDY3.js";import{d as y}from"./chunk.ZBHHLRFH.js";import{a}from"./chunk.BWEPOOQP.js";import{a as f,b as s,d as o,f as b}from"./chunk.KBZ32KWP.js";import{a as g}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";var t=class extends b{constructor(){super(...arguments);this.localize=new w(this);this.open=!1;this.placement="bottom-start";this.disabled=!1;this.skidding=0;this.hoist=!1;this.closePanelOnClick=!1}connectedCallback(){super.connectedCallback(),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){let e=this.trigger.assignedElements({flatten:!0})[0];typeof(e==null?void 0:e.focus)=="function"&&e.focus()}handleKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(e){if(e.key==="Escape"&&this.open){e.stopPropagation(),this.focusOnTrigger(),this.hide();return}e.key==="Tab"&&setTimeout(()=>{var c,u,m;let i=((c=this.containingElement)==null?void 0:c.getRootNode())instanceof ShadowRoot?(m=(u=document.activeElement)==null?void 0:u.shadowRoot)==null?void 0:m.activeElement:document.activeElement;(!this.containingElement||(i==null?void 0:i.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}handleDocumentMouseDown(e){let i=e.composedPath();this.containingElement&&!i.includes(this.containingElement)&&this.hide()}handleTriggerClick(){this.open?this.hide():(this.show(),this.focusOnTrigger())}handleTriggerKeyDown(e){[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.handleTriggerClick())}handleTriggerKeyUp(e){e.key===" "&&e.preventDefault()}handleTriggerSlotChange(){this.handleDisabledChange(),this.updateAccessibleTrigger()}handlePanelClick(){this.closePanelOnClick&&(this.open=!1)}getTrigger(){return this.trigger.assignedElements({flatten:!0})[0]}handleDisabledChange(){let e=this.getTrigger();(e.tagName.toLowerCase()==="dsa-button"||e.tagName.toLowerCase()==="dsa-icon-button")&&(e.disabled=this.disabled)}updateAccessibleTrigger(){let e=this.getTrigger(),i;if(e){switch(e.tagName.toLowerCase()){case"dsa-button":case"dsa-icon-button":case"dsa-profile-button":i=e.button;break;default:i=e}i.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,await d(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await d(this,"dsa-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&this.panel.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("dsa-show"),this.addOpenListeners(),await l(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:e,options:i}=p(this,"dropdown.show",{dir:this.localize.dir()});await r(this.popup.popup,e,i),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),await l(this);let{keyframes:e,options:i}=p(this,"dropdown.hide",{dir:this.localize.dir()});await r(this.popup.popup,e,i),this.panel.hidden=!0,this.popup.active=!1,this.emit("dsa-after-hide")}}render(){return g`
|
|
2
|
-
<dsa-popup
|
|
3
|
-
part="base"
|
|
4
|
-
placement=${this.placement}
|
|
5
|
-
skidding=${this.skidding}
|
|
6
|
-
strategy=${this.hoist?"fixed":"absolute"}
|
|
7
|
-
distance="4"
|
|
8
|
-
flip
|
|
9
|
-
shift
|
|
10
|
-
auto-size="vertical"
|
|
11
|
-
auto-size-padding="10"
|
|
12
|
-
class=${y({dropdown:!0,"dropdown--open":this.open,"dropdown--disabled":this.disabled})}
|
|
13
|
-
>
|
|
14
|
-
<slot
|
|
15
|
-
name="trigger"
|
|
16
|
-
slot="anchor"
|
|
17
|
-
part="trigger"
|
|
18
|
-
class="dropdown__trigger"
|
|
19
|
-
@click=${this.handleTriggerClick}
|
|
20
|
-
@keydown=${this.handleTriggerKeyDown}
|
|
21
|
-
@keyup=${this.handleTriggerKeyUp}
|
|
22
|
-
@slotchange=${this.handleTriggerSlotChange}
|
|
23
|
-
></slot>
|
|
24
|
-
|
|
25
|
-
<slot
|
|
26
|
-
part="panel"
|
|
27
|
-
class="dropdown__panel"
|
|
28
|
-
@click=${this.handlePanelClick}
|
|
29
|
-
></slot>
|
|
30
|
-
</dsa-popup>
|
|
31
|
-
`}};t.styles=v,t.dependencies={"dsa-popup":E},n([o(".dropdown")],t.prototype,"popup",2),n([o(".dropdown__trigger")],t.prototype,"trigger",2),n([o(".dropdown__panel")],t.prototype,"panel",2),n([s({type:Boolean,reflect:!0})],t.prototype,"open",2),n([s({reflect:!0})],t.prototype,"placement",2),n([s({type:Boolean,reflect:!0})],t.prototype,"disabled",2),n([s({attribute:!1})],t.prototype,"containingElement",2),n([s({type:Number})],t.prototype,"skidding",2),n([s({type:Boolean})],t.prototype,"hoist",2),n([s({type:Boolean,attribute:"close-panel-on-click"})],t.prototype,"closePanelOnClick",2),n([a("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),n([a("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=n([f("dsa-dropdown")],t);h("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});h("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{t as a};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{a as zt}from"./chunk.TYYYX2PR.js";import{d as St}from"./chunk.ZBHHLRFH.js";import{a as Mt,b as R,d as At,f as Nt}from"./chunk.KBZ32KWP.js";import{a as Ct}from"./chunk.GP725TPQ.js";import{a as C,b as B,d as pt,f as v}from"./chunk.IZ2HVRME.js";var D=Math.min,S=Math.max,ft=Math.round,ut=Math.floor,F=t=>({x:t,y:t}),ye={left:"right",right:"left",bottom:"top",top:"bottom"},we={start:"end",end:"start"};function yt(t,e,n){return S(t,D(e,n))}function Z(t,e){return typeof t=="function"?t(e):t}function I(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function wt(t){return t==="y"?"height":"width"}var xe=new Set(["top","bottom"]);function j(t){return xe.has(I(t))?"y":"x"}function xt(t){return Pt(j(t))}function Wt(t,e,n){n===void 0&&(n=!1);let o=tt(t),i=xt(t),s=wt(i),r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=at(r)),[r,at(r)]}function Vt(t){let e=at(t);return[gt(t),e,gt(e)]}function gt(t){return t.replace(/start|end/g,e=>we[e])}var Ft=["left","right"],Ht=["right","left"],be=["top","bottom"],ve=["bottom","top"];function Re(t,e,n){switch(t){case"top":case"bottom":return n?e?Ht:Ft:e?Ft:Ht;case"left":case"right":return e?be:ve;default:return[]}}function _t(t,e,n,o){let i=tt(t),s=Re(I(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(gt)))),s}function at(t){return t.replace(/left|right|bottom|top/g,e=>ye[e])}function Oe(t){return C({top:0,right:0,bottom:0,left:0},t)}function Lt(t){return typeof t!="number"?Oe(t):{top:t,right:t,bottom:t,left:t}}function et(t){let{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Dt(t,e,n){let{reference:o,floating:i}=t,s=j(e),r=xt(e),l=wt(r),c=I(e),f=s==="y",a=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2,h;switch(c){case"top":h={x:a,y:o.y-i.height};break;case"bottom":h={x:a,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(tt(e)){case"start":h[r]-=d*(n&&f?-1:1);break;case"end":h[r]+=d*(n&&f?-1:1);break}return h}var jt=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=s.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e)),f=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:u}=Dt(f,o,c),d=o,h={},m=0;for(let p=0;p<l.length;p++){let{name:g,fn:y}=l[p],{x:w,y:b,data:O,reset:E}=await y({x:a,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:f,platform:r,elements:{reference:t,floating:e}});a=w!=null?w:a,u=b!=null?b:u,h=B(C({},h),{[g]:C(C({},h[g]),O)}),E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(f=E.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:a,y:u}=Dt(f,d,c)),p=-1)}return{x:a,y:u,placement:d,strategy:i,middlewareData:h}};async function bt(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:d=!1,padding:h=0}=Z(e,t),m=Lt(h),g=l[d?u==="floating"?"reference":"floating":u],y=et(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:f,rootBoundary:a,strategy:c})),w=u==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),O=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},E=et(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:b,strategy:c}):w);return{top:(y.top-E.top+m.top)/O.y,bottom:(E.bottom-y.bottom+m.bottom)/O.y,left:(y.left-E.left+m.left)/O.x,right:(E.right-y.right+m.right)/O.x}}var Xt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:i,rects:s,platform:r,elements:l,middlewareData:c}=e,{element:f,padding:a=0}=Z(t,e)||{};if(f==null)return{};let u=Lt(a),d={x:n,y:o},h=xt(i),m=wt(h),p=await r.getDimensions(f),g=h==="y",y=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",O=s.reference[m]+s.reference[h]-d[h]-s.floating[m],E=d[h]-s.reference[h],M=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f)),A=M?M[b]:0;(!A||!await(r.isElement==null?void 0:r.isElement(M)))&&(A=l.floating[b]||s.floating[m]);let X=O/2-E/2,V=A/2-p[m]/2-1,T=D(u[y],V),U=D(u[w],V),_=T,G=A-p[m]-U,L=A/2-p[m]/2+X,N=yt(_,L,G),J=!c.arrow&&tt(i)!=null&&L!==N&&s.reference[m]/2-(L<_?T:U)-p[m]/2<0,Y=J?L<_?L-_:L-G:0;return{[h]:d[h]+Y,data:C({[h]:N,centerOffset:L-N-Y},J&&{alignmentOffset:Y}),reset:J}}});var Yt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;let{placement:i,middlewareData:s,rects:r,initialPlacement:l,platform:c,elements:f}=e,L=Z(t,e),{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0}=L,g=pt(L,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=s.arrow)!=null&&n.alignmentOffset)return{};let y=I(i),w=j(l),b=I(l)===l,O=await(c.isRTL==null?void 0:c.isRTL(f.floating)),E=d||(b||!p?[at(l)]:Vt(l)),M=m!=="none";!d&&M&&E.push(..._t(l,p,m,O));let A=[l,...E],X=await bt(e,g),V=[],T=((o=s.flip)==null?void 0:o.overflows)||[];if(a&&V.push(X[y]),u){let N=Wt(i,r,O);V.push(X[N[0]],X[N[1]])}if(T=[...T,{placement:i,overflows:V}],!V.every(N=>N<=0)){var U,_;let N=(((U=s.flip)==null?void 0:U.index)||0)+1,J=A[N];if(J&&(!(u==="alignment"?w!==j(J):!1)||T.every(z=>j(z.placement)===w?z.overflows[0]>0:!0)))return{data:{index:N,overflows:T},reset:{placement:J}};let Y=(_=T.filter(Q=>Q.overflows[0]<=0).sort((Q,z)=>Q.overflows[1]-z.overflows[1])[0])==null?void 0:_.placement;if(!Y)switch(h){case"bestFit":{var G;let Q=(G=T.filter(z=>{if(M){let K=j(z.placement);return K===w||K==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(K=>K>0).reduce((K,ge)=>K+ge,0)]).sort((z,K)=>z[1]-K[1])[0])==null?void 0:G[0];Q&&(Y=Q);break}case"initialPlacement":Y=l;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};var Ee=new Set(["left","top"]);async function Ce(t,e){let{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=I(n),l=tt(n),c=j(n)==="y",f=Ee.has(r)?-1:1,a=s&&c?-1:1,u=Z(e,t),{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof m=="number"&&(h=l==="end"?m*-1:m),c?{x:h*a,y:d*f}:{x:d*f,y:h*a}}var It=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;let{x:i,y:s,placement:r,middlewareData:l}=e,c=await Ce(e,t);return r===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:B(C({},c),{placement:r})}}}},qt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,g=Z(t,e),{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:y=>{let{x:w,y:b}=y;return{x:w,y:b}}}}=g,c=pt(g,["mainAxis","crossAxis","limiter"]),f={x:n,y:o},a=await bt(e,c),u=j(I(i)),d=Pt(u),h=f[d],m=f[u];if(s){let y=d==="y"?"top":"left",w=d==="y"?"bottom":"right",b=h+a[y],O=h-a[w];h=yt(b,h,O)}if(r){let y=u==="y"?"top":"left",w=u==="y"?"bottom":"right",b=m+a[y],O=m-a[w];m=yt(b,m,O)}let p=l.fn(B(C({},e),{[d]:h,[u]:m}));return B(C({},p),{data:{x:p.x-n,y:p.y-o,enabled:{[d]:s,[u]:r}}})}}};var Ut=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;let{placement:i,rects:s,platform:r,elements:l}=e,T=Z(t,e),{apply:c=()=>{}}=T,f=pt(T,["apply"]),a=await bt(e,f),u=I(i),d=tt(i),h=j(i)==="y",{width:m,height:p}=s.floating,g,y;u==="top"||u==="bottom"?(g=u,y=d===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(y=u,g=d==="end"?"top":"bottom");let w=p-a.top-a.bottom,b=m-a.left-a.right,O=D(p-a[g],w),E=D(m-a[y],b),M=!e.middlewareData.shift,A=O,X=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(X=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(A=w),M&&!d){let U=S(a.left,0),_=S(a.right,0),G=S(a.top,0),L=S(a.bottom,0);h?X=m-2*(U!==0||_!==0?U+_:S(a.left,a.right)):A=p-2*(G!==0||L!==0?G+L:S(a.top,a.bottom))}await c(B(C({},e),{availableWidth:X,availableHeight:A}));let V=await r.getDimensions(l.floating);return m!==V.width||p!==V.height?{reset:{rects:!0}}:{}}}};function vt(){return typeof window!="undefined"}function nt(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return vt()?t instanceof Node||t instanceof P(t).Node:!1}function $(t){return vt()?t instanceof Element||t instanceof P(t).Element:!1}function W(t){return vt()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Gt(t){return!vt()||typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}var Ae=new Set(["inline","contents"]);function st(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=k(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ae.has(i)}var Se=new Set(["table","td","th"]);function Jt(t){return Se.has(nt(t))}var Pe=[":popover-open",":modal"];function ht(t){return Pe.some(e=>{try{return t.matches(e)}catch(n){return!1}})}var Le=["transform","translate","scale","rotate","perspective"],Te=["transform","translate","scale","rotate","perspective","filter"],Be=["paint","layout","strict","content"];function lt(t){let e=Rt(),n=$(t)?k(t):t;return Le.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Te.some(o=>(n.willChange||"").includes(o))||Be.some(o=>(n.contain||"").includes(o))}function Qt(t){let e=q(t);for(;W(e)&&!ot(e);){if(lt(e))return e;if(ht(e))return null;e=q(e)}return null}function Rt(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var $e=new Set(["html","body","#document"]);function ot(t){return $e.has(nt(t))}function k(t){return P(t).getComputedStyle(t)}function dt(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function q(t){if(nt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Gt(t)&&t.host||H(t);return Gt(e)?e.host:e}function Zt(t){let e=q(t);return ot(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&st(e)?e:Zt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Zt(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=P(i);if(s){let l=Ot(r);return e.concat(r,r.visualViewport||[],st(i)?i:[],l&&n?rt(l):[])}return e.concat(i,rt(i,[],n))}function Ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function oe(t){let e=k(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=W(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,l=ft(n)!==s||ft(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function Bt(t){return $(t)?t:t.contextElement}function ct(t){let e=Bt(t);if(!W(e))return F(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:s}=oe(e),r=(s?ft(n.width):n.width)/o,l=(s?ft(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}var ke=F(0);function ie(t){let e=P(t);return!Rt()||!e.visualViewport?ke:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Me(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function it(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),s=Bt(t),r=F(1);e&&(o?$(o)&&(r=ct(o)):r=ct(t));let l=Me(s,n,o)?ie(s):F(0),c=(i.left+l.x)/r.x,f=(i.top+l.y)/r.y,a=i.width/r.x,u=i.height/r.y;if(s){let d=P(s),h=o&&$(o)?P(o):o,m=d,p=Ot(m);for(;p&&o&&h!==m;){let g=ct(p),y=p.getBoundingClientRect(),w=k(p),b=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*g.x,O=y.top+(p.clientTop+parseFloat(w.paddingTop))*g.y;c*=g.x,f*=g.y,a*=g.x,u*=g.y,c+=b,f+=O,m=P(p),p=Ot(m)}}return et({width:a,height:u,x:c,y:f})}function Et(t,e){let n=dt(t).scrollLeft;return e?e.left+n:it(H(t)).left+n}function re(t,e){let n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-Et(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function Ne(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t,s=i==="fixed",r=H(o),l=e?ht(e.floating):!1;if(o===r||l&&s)return n;let c={scrollLeft:0,scrollTop:0},f=F(1),a=F(0),u=W(o);if((u||!u&&!s)&&((nt(o)!=="body"||st(r))&&(c=dt(o)),W(o))){let h=it(o);f=ct(o),a.x=h.x+o.clientLeft,a.y=h.y+o.clientTop}let d=r&&!u&&!s?re(r,c):F(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+a.x+d.x,y:n.y*f.y-c.scrollTop*f.y+a.y+d.y}}function ze(t){return Array.from(t.getClientRects())}function Fe(t){let e=H(t),n=dt(t),o=t.ownerDocument.body,i=S(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=S(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),r=-n.scrollLeft+Et(t),l=-n.scrollTop;return k(o).direction==="rtl"&&(r+=S(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:l}}var te=25;function He(t,e){let n=P(t),o=H(t),i=n.visualViewport,s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;let a=Rt();(!a||a&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}let f=Et(o);if(f<=0){let a=o.ownerDocument,u=a.body,d=getComputedStyle(u),h=a.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-h);m<=te&&(s-=m)}else f<=te&&(s+=f);return{width:s,height:r,x:l,y:c}}var We=new Set(["absolute","fixed"]);function Ve(t,e){let n=it(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=W(t)?ct(t):F(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,f=o*s.y;return{width:r,height:l,x:c,y:f}}function ee(t,e,n){let o;if(e==="viewport")o=He(t,n);else if(e==="document")o=Fe(H(t));else if($(e))o=Ve(e,n);else{let i=ie(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return et(o)}function se(t,e){let n=q(t);return n===e||!$(n)||ot(n)?!1:k(n).position==="fixed"||se(n,e)}function _e(t,e){let n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(l=>$(l)&&nt(l)!=="body"),i=null,s=k(t).position==="fixed",r=s?q(t):t;for(;$(r)&&!ot(r);){let l=k(r),c=lt(r);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&We.has(i.position)||st(r)&&!c&&se(t,r))?o=o.filter(a=>a!==r):i=l,r=q(r)}return e.set(t,o),o}function De(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,r=[...n==="clippingAncestors"?ht(e)?[]:_e(e,this._c):[].concat(n),o],l=r[0],c=r.reduce((f,a)=>{let u=ee(e,a,i);return f.top=S(u.top,f.top),f.right=D(u.right,f.right),f.bottom=D(u.bottom,f.bottom),f.left=S(u.left,f.left),f},ee(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function je(t){let{width:e,height:n}=oe(t);return{width:e,height:n}}function Xe(t,e,n){let o=W(e),i=H(e),s=n==="fixed",r=it(t,!0,s,e),l={scrollLeft:0,scrollTop:0},c=F(0);function f(){c.x=Et(i)}if(o||!o&&!s)if((nt(e)!=="body"||st(i))&&(l=dt(e)),o){let h=it(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else i&&f();s&&!o&&i&&f();let a=i&&!o&&!s?re(i,l):F(0),u=r.left+l.scrollLeft-c.x-a.x,d=r.top+l.scrollTop-c.y-a.y;return{x:u,y:d,width:r.width,height:r.height}}function Tt(t){return k(t).position==="static"}function ne(t,e){if(!W(t)||k(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function le(t,e){let n=P(t);if(ht(t))return n;if(!W(t)){let i=q(t);for(;i&&!ot(i);){if($(i)&&!Tt(i))return i;i=q(i)}return n}let o=ne(t,e);for(;o&&Jt(o)&&Tt(o);)o=ne(o,e);return o&&ot(o)&&Tt(o)&&!lt(o)?n:o||Qt(t)||n}var Ye=async function(t){let e=this.getOffsetParent||le,n=this.getDimensions,o=await n(t.floating);return{reference:Xe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ie(t){return k(t).direction==="rtl"}var mt={convertOffsetParentRelativeRectToViewportRelativeRect:Ne,getDocumentElement:H,getClippingRect:De,getOffsetParent:le,getElementRects:Ye,getClientRects:ze,getDimensions:je,getScale:ct,isElement:$,isRTL:Ie};function ce(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function qe(t,e){let n=null,o,i=H(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function r(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();let f=t.getBoundingClientRect(),{left:a,top:u,width:d,height:h}=f;if(l||e(),!d||!h)return;let m=ut(u),p=ut(i.clientWidth-(a+d)),g=ut(i.clientHeight-(u+h)),y=ut(a),b={rootMargin:-m+"px "+-p+"px "+-g+"px "+-y+"px",threshold:S(0,D(1,c))||1},O=!0;function E(M){let A=M[0].intersectionRatio;if(A!==c){if(!O)return r();A?r(!1,A):o=setTimeout(()=>{r(!1,1e-7)},1e3)}A===1&&!ce(f,t.getBoundingClientRect())&&r(),O=!1}try{n=new IntersectionObserver(E,B(C({},b),{root:i.ownerDocument}))}catch(M){n=new IntersectionObserver(E,b)}n.observe(t)}return r(!0),s}function ae(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Bt(t),a=i||s?[...f?rt(f):[],...rt(e)]:[];a.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});let u=f&&l?qe(f,n):null,d=-1,h=null;r&&(h=new ResizeObserver(y=>{let[w]=y;w&&w.target===f&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(e)})),n()}),f&&!c&&h.observe(f),h.observe(e));let m,p=c?it(t):null;c&&g();function g(){let y=it(t);p&&!ce(p,y)&&n(),p=y,m=requestAnimationFrame(g)}return n(),()=>{var y;a.forEach(w=>{i&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),u==null||u(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}var fe=It;var ue=qt,he=Yt,$t=Ut;var de=Xt;var me=(t,e,n)=>{let o=new Map,i=C({platform:mt},n),s=B(C({},i.platform),{_c:o});return jt(t,e,B(C({},i),{platform:s}))};function pe(t){return Ue(t)}function kt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ue(t){for(let e=t;e;e=kt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=kt(t);e;e=kt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||lt(n)||e.tagName==="BODY"))return e}return null}var x=class extends Nt{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=!1;this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let n=this.anchorEl.getBoundingClientRect(),o=this.popup.getBoundingClientRect(),i=this.placement.includes("top")||this.placement.includes("bottom"),s=0,r=0,l=0,c=0,f=0,a=0,u=0,d=0;i?n.top<o.top?(s=n.left,r=n.bottom,l=n.right,c=n.bottom,f=o.left,a=o.top,u=o.right,d=o.top):(s=o.left,r=o.bottom,l=o.right,c=o.bottom,f=n.left,a=n.top,u=n.right,d=n.top):n.left<o.left?(s=n.right,r=n.top,l=o.left,c=o.top,f=n.right,a=n.bottom,u=o.left,d=o.bottom):(s=o.right,r=o.top,l=n.left,c=n.top,f=o.right,a=o.bottom,u=n.left,d=n.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${s}px`),this.style.setProperty("--hover-bridge-top-left-y",`${r}px`),this.style.setProperty("--hover-bridge-top-right-x",`${l}px`),this.style.setProperty("--hover-bridge-top-right-y",`${c}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${f}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${a}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${u}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${d}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){this.stop()}async updated(n){super.updated(n),n.has("active")&&(this.active?this.start():this.stop()),n.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let n=this.getRootNode();this.anchorEl=n.getElementById(this.anchor)}else this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=ae(this.anchorEl,this.popup,()=>{this.reposition()}))}stop(){return new Promise(n=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>n())):n()})}reposition(){if(!this.active||!this.anchorEl)return;let n=[fe({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?n.push($t({apply:({rects:i})=>{let s=this.sync==="width"||this.sync==="both",r=this.sync==="height"||this.sync==="both";this.popup.style.width=s?`${i.reference.width}px`:"",this.popup.style.height=r?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(he({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(ue({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push($t({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:s})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${s}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&n.push(de({element:this.arrowEl,padding:this.arrowPadding}));let o=this.strategy==="absolute"?i=>mt.getOffsetParent(i,pe):mt.getOffsetParent;me(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy,platform:B(C({},mt),{getOffsetParent:o})}).then(({x:i,y:s,middlewareData:r,placement:l})=>{let c=getComputedStyle(this).direction==="rtl",f={top:"bottom",right:"left",bottom:"top",left:"right"}[l.split("-")[0]];if(this.setAttribute("data-current-placement",l),Object.assign(this.popup.style,{left:`${i}px`,top:`${s}px`}),this.arrow){let a=r.arrow.x,u=r.arrow.y,d="",h="",m="",p="";if(this.arrowPlacement==="start"){let g=typeof a=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";d=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",h=c?g:"",p=c?"":g}else if(this.arrowPlacement==="end"){let g=typeof a=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";h=c?"":g,p=c?g:"",m=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(p=typeof a=="number"?"calc(50% - var(--arrow-size-diagonal))":"",d=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(p=typeof a=="number"?`${a}px`:"",d=typeof u=="number"?`${u}px`:"");Object.assign(this.arrowEl.style,{top:d,right:h,bottom:m,left:p,[f]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.emit("dsa-reposition")}render(){return Ct`
|
|
2
|
-
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
3
|
-
|
|
4
|
-
<span
|
|
5
|
-
part="hover-bridge"
|
|
6
|
-
class=${St({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
|
|
7
|
-
></span>
|
|
8
|
-
|
|
9
|
-
<div
|
|
10
|
-
part="popup"
|
|
11
|
-
class=${St({popup:!0,"popup--active":this.active,"popup--fixed":this.strategy==="fixed","popup--has-arrow":this.arrow})}
|
|
12
|
-
>
|
|
13
|
-
<slot></slot>
|
|
14
|
-
${this.arrow?Ct`<div
|
|
15
|
-
part="arrow"
|
|
16
|
-
class="popup__arrow"
|
|
17
|
-
role="presentation"
|
|
18
|
-
></div>`:""}
|
|
19
|
-
</div>
|
|
20
|
-
`}};x.styles=zt,v([At(".popup")],x.prototype,"popup",2),v([At(".popup__arrow")],x.prototype,"arrowEl",2),v([R()],x.prototype,"anchor",2),v([R({type:Boolean,reflect:!0})],x.prototype,"active",2),v([R({reflect:!0})],x.prototype,"placement",2),v([R({reflect:!0})],x.prototype,"strategy",2),v([R({type:Number})],x.prototype,"distance",2),v([R({type:Number})],x.prototype,"skidding",2),v([R({type:Boolean})],x.prototype,"arrow",2),v([R({attribute:"arrow-placement"})],x.prototype,"arrowPlacement",2),v([R({attribute:"arrow-padding",type:Number})],x.prototype,"arrowPadding",2),v([R({type:Boolean})],x.prototype,"flip",2),v([R({attribute:"flip-fallback-placements",converter:{fromAttribute:n=>n.split(" ").map(o=>o.trim()).filter(o=>o!==""),toAttribute:n=>n.join(" ")}})],x.prototype,"flipFallbackPlacements",2),v([R({attribute:"flip-fallback-strategy"})],x.prototype,"flipFallbackStrategy",2),v([R({type:Object})],x.prototype,"flipBoundary",2),v([R({attribute:"flip-padding",type:Number})],x.prototype,"flipPadding",2),v([R({type:Boolean})],x.prototype,"shift",2),v([R({type:Object})],x.prototype,"shiftBoundary",2),v([R({attribute:"shift-padding",type:Number})],x.prototype,"shiftPadding",2),v([R({attribute:"auto-size"})],x.prototype,"autoSize",2),v([R()],x.prototype,"sync",2),v([R({type:Object})],x.prototype,"autoSizeBoundary",2),v([R({attribute:"auto-size-padding",type:Number})],x.prototype,"autoSizePadding",2),v([R({attribute:"hover-bridge",type:Boolean})],x.prototype,"hoverBridge",2),x=v([Mt("dsa-popup")],x);export{x as a};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk.T5OLUN3T.js";import{a as g}from"./chunk.ELL45QD3.js";import{a as b}from"./chunk.B4KFHYLS.js";import{d as n}from"./chunk.ZBHHLRFH.js";import{a as h}from"./chunk.BWEPOOQP.js";import{a as r,b as l,d,f}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends f{constructor(){super(...arguments);this.hasSlotController=new g(this,"legend-title");this.legendTitle="";this.variant="base";this.disabled=!1;this.horizontal=!1;this.contrastedBorders=!1}updateChildrenDisabledState(){var a;let s=(a=this.defaultSlot)==null?void 0:a.assignedElements();s==null||s.forEach(i=>{"disabled"in i&&!i.disabled&&(i.disabled=this.disabled)})}handleSlotChange(){this.updateChildrenDisabledState()}handleDisabledChange(){this.updateChildrenDisabledState()}render(){let s=this.hasSlotController.test("label");return this.legendTitle||s||b("<dsa-fieldset> requires a legend-title attribute or a legend-title slot for accessibility"),o`
|
|
2
|
-
<fieldset
|
|
3
|
-
role="group"
|
|
4
|
-
class=${n({fieldset:!0,"fieldset--on-base":this.variant==="base","fieldset--on-layer":this.variant==="layer","fieldset--horizontal":this.horizontal,"fieldset--vertical":!this.horizontal,"fieldset--contrasted-borders":this.contrastedBorders})}
|
|
5
|
-
aria-labelledby="legend"
|
|
6
|
-
>
|
|
7
|
-
<div id="legend" class="fieldset__legend">
|
|
8
|
-
<div class="fieldset__first-line">
|
|
9
|
-
<slot name="legend-title" class="fieldset__legend-title"
|
|
10
|
-
>${this.legendTitle}</slot
|
|
11
|
-
>
|
|
12
|
-
<slot name="tooltip" class="fieldset__tooltip"></slot>
|
|
13
|
-
</div>
|
|
14
|
-
<slot name="legend-subtitle" class="fieldset__legend-subtitle">
|
|
15
|
-
${this.legendSubtitle}
|
|
16
|
-
</slot>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div class="fieldset__content">
|
|
20
|
-
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
21
|
-
</div>
|
|
22
|
-
</fieldset>
|
|
23
|
-
`}};e.styles=m,t([d("slot:not([name])")],e.prototype,"defaultSlot",2),t([l({attribute:"legend-title"})],e.prototype,"legendTitle",2),t([l({attribute:"legend-subtitle"})],e.prototype,"legendSubtitle",2),t([l({reflect:!0})],e.prototype,"variant",2),t([l({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([l({type:Boolean})],e.prototype,"horizontal",2),t([l({type:Boolean,reflect:!0,attribute:"contrasted-borders"})],e.prototype,"contrastedBorders",2),t([h("disabled")],e.prototype,"handleDisabledChange",1),e=t([r("dsa-fieldset")],e);export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function c(t,e){let n=new Intl.DateTimeFormat(e,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date).filter(o=>["day","month","year"].includes(o.type)).map(o=>o.type),r=t.split(/[-/]/);if(r.length!==3)return null;let i={};n.forEach((o,s)=>{i[o]=parseInt(r[s],10)}),i.month-=1;let u=new Date(i.year,i.month,i.day);return isNaN(u.getTime())?null:u}function f(t,e){return t===""?"":g(t).toLocaleDateString(e!==""?e:"")}function d(t){return/^\d{4}-\d{2}-\d{2}$/.test(t)}function l(t){let[e,a,n]=t.split("-");if([e,a,n].includes(""))return!1;let r=new Date(`${t}T00:00`);return r.getFullYear()===Number(e)&&r.getMonth()===Number(a)-1&&r.getDate()===Number(n)}function m(t){if(t===void 0)return"";let e=String(t.getFullYear()).padStart(4,"0"),a=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return`${e}-${a}-${n}`}function g(t){return new Date(`${t}T00:00`)}function p(t,e){return t?e?new Date(e,t,0).getDate():new Date(2024,t,0).getDate():31}function D(t){return t.split(",")}function y(t,e){return t===""&&e===""?"":`${t},${e}`}export{c as a,f as b,d as c,l as d,m as e,g as f,p as g,D as h,y as i};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import{a as I}from"./chunk.KX5QV54N.js";import{a as L}from"./chunk.XVTFPCEL.js";import{a as d,c as h}from"./chunk.TV2TMO2H.js";import{c as w}from"./chunk.LBAIMDY3.js";import{c as g}from"./chunk.VZAYP3SG.js";import{d as b}from"./chunk.ZBHHLRFH.js";import{a as y,b as i,c as p,d as n,f}from"./chunk.KBZ32KWP.js";import{a as u}from"./chunk.GP725TPQ.js";import{f as s}from"./chunk.IZ2HVRME.js";var t=class extends f{constructor(){super(...arguments);this.localize=new w(this);this.isCopying=!1;this.status="rest";this.value="";this.from="";this.disabled=!1;this.copyLabel="";this.successLabel="";this.errorLabel="";this.tooltipPlacement="top";this.hoist=!1;this.size="medium"}async handleCopy(){if(this.disabled||this.isCopying)return;this.isCopying=!0;let e=this.value;if(this.from){let o=this.getRootNode(),a=this.from.includes("."),r=this.from.includes("[")&&this.from.includes("]"),l=this.from,c="";a?[l,c]=this.from.trim().split("."):r&&([l,c]=this.from.trim().replace(/\]$/,"").split("["));let m="getElementById"in o?o.getElementById(l):null;m?r?e=m.getAttribute(c)||"":a?e=m[c]||"":e=m.textContent||"":(this.showStatus("error"),this.emit("dsa-error"))}if(!e)this.showStatus("error"),this.emit("dsa-error");else try{await navigator.clipboard.writeText(e),this.showStatus("success"),this.emit("dsa-copy",{detail:{value:e}})}catch(o){this.showStatus("error"),this.emit("dsa-error")}}async showStatus(e){let o=this.successLabel||this.localize.term("copied"),a=this.errorLabel||this.localize.term("copyError"),r=e==="success"?this.successIcon:this.errorIcon,l=h(this,"copy.in",{dir:"ltr"}),c=h(this,"copy.out",{dir:"ltr"});this.tooltip.content=e==="success"?o:a,await this.copyIcon.animate(c.keyframes,c.options).finished,this.copyIcon.hidden=!0,this.status=e,r.hidden=!1,await r.animate(l.keyframes,l.options).finished,this.isCopying=!1}async resetStatus(){if(this.status!=="rest"){let e=this.copyLabel||this.localize.term("copy"),o=this.status==="success"?this.successIcon:this.errorIcon,a=h(this,"copy.in",{dir:"ltr"}),r=h(this,"copy.out",{dir:"ltr"});await o.animate(r.keyframes,r.options).finished,o.hidden=!0,this.status="rest",this.copyIcon.hidden=!1,await this.copyIcon.animate(a.keyframes,a.options).finished,this.tooltip.content=e}}render(){let e=this.copyLabel||this.localize.term("copy");return u`
|
|
2
|
-
<dsa-tooltip
|
|
3
|
-
class=${b({"copy-button":!0,"copy-button--success":this.status==="success","copy-button--error":this.status==="error","copy-button--disabled":this.disabled,"copy-button--small":this.size==="small","copy-button--medium":this.size==="medium","copy-button--large":this.size==="large"})}
|
|
4
|
-
content=${e}
|
|
5
|
-
placement=${this.tooltipPlacement}
|
|
6
|
-
?disabled=${this.disabled}
|
|
7
|
-
?hoist=${this.hoist}
|
|
8
|
-
@mouseleave=${this.resetStatus}
|
|
9
|
-
>
|
|
10
|
-
<button
|
|
11
|
-
class="copy-button__button"
|
|
12
|
-
part="button"
|
|
13
|
-
type="button"
|
|
14
|
-
?disabled=${this.disabled}
|
|
15
|
-
@click=${this.handleCopy}
|
|
16
|
-
aria-label=${e}
|
|
17
|
-
@focusout=${this.resetStatus}
|
|
18
|
-
>
|
|
19
|
-
<dsa-icon
|
|
20
|
-
library="system"
|
|
21
|
-
name="copy"
|
|
22
|
-
class="copy-button__icon copy-icon"
|
|
23
|
-
></dsa-icon>
|
|
24
|
-
<dsa-icon
|
|
25
|
-
library="system"
|
|
26
|
-
name="check"
|
|
27
|
-
hidden
|
|
28
|
-
class="copy-button__icon success-icon"
|
|
29
|
-
></dsa-icon>
|
|
30
|
-
<dsa-icon
|
|
31
|
-
library="system"
|
|
32
|
-
name="close"
|
|
33
|
-
hidden
|
|
34
|
-
class="copy-button__icon error-icon"
|
|
35
|
-
></dsa-icon>
|
|
36
|
-
</button>
|
|
37
|
-
</dsa-tooltip>
|
|
38
|
-
`}};t.styles=L,t.dependencies={"dsa-icon":g,"dsa-tooltip":I},s([n(".copy-icon")],t.prototype,"copyIcon",2),s([n(".success-icon")],t.prototype,"successIcon",2),s([n(".error-icon")],t.prototype,"errorIcon",2),s([n("dsa-tooltip")],t.prototype,"tooltip",2),s([n(".copy-button__button")],t.prototype,"button",2),s([p()],t.prototype,"isCopying",2),s([p()],t.prototype,"status",2),s([i()],t.prototype,"value",2),s([i()],t.prototype,"from",2),s([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),s([i({attribute:"copy-label"})],t.prototype,"copyLabel",2),s([i({attribute:"success-label"})],t.prototype,"successLabel",2),s([i({attribute:"error-label"})],t.prototype,"errorLabel",2),s([i({attribute:"tooltip-placement"})],t.prototype,"tooltipPlacement",2),s([i({type:Boolean})],t.prototype,"hoist",2),s([i({reflect:!0})],t.prototype,"size",2),t=s([y("dsa-copy-button")],t);d("copy.in",{keyframes:[{scale:".25",opacity:".25"},{scale:"1",opacity:"1"}],options:{duration:100}});d("copy.out",{keyframes:[{scale:"1",opacity:"1"},{scale:".25",opacity:"0"}],options:{duration:100}});export{t as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i,b as s}from"./chunk.HJGLYEWV.js";var o={$code:"fr",$name:"Fran\xE7ais",$dir:"ltr",carousel:"Carrousel",clearEntry:"Effacer l'entr\xE9e",close:"Fermer",copy:"Copier",youAreHere:"Vous \xEAtes ici :",countryCallingCode:"Indicatif t\xE9l\xE9phonique international",currentValue:"Valeur actuelle",goToSlide:(e,r)=>`Aller \xE0 la diapositive ${e} de ${r}`,hidePassword:"Masquer le mot de passe",loading:"Chargement",nextSlide:"Diapositive suivante",previousSlide:"Diapositive pr\xE9c\xE9dente",progress:"Progr\xE8s",remove:"Retirer",resize:"Redimensionner",scrollToEnd:"Faire d\xE9filer jusqu'\xE0 la fin",scrollToStart:"Faire d\xE9filer jusqu'au d\xE9but",selectAColorFromTheScreen:"S\xE9lectionnez une couleur \xE0 l'\xE9cran",selectATime:"S\xE9lectionnez une heure",showPassword:"Montrer le mot de passe",slideNum:e=>`Diapositive ${e}`,toggleColorFormat:"Changer le format de couleur",noMatchFound:"Aucune correspondance trouv\xE9e",optionsLoading:"Chargement des options",optionsError:"Une erreur est survenue",step:"\xC9tape",stepActive:"\xC9tape active",stepCompleted:"\xC9tape valid\xE9e",stepInProgress:"\xC9tape en cours",stepError:"\xC9tape en erreur",skipLinksAriaLabel:"Liens d'acc\xE8s rapide",errorMessagePanelCodePrefix:"Code d'erreur: ",fileSelect:(e,r)=>e?"Choisir un dossier":r?"Choisir des fichiers":"Choisir un fichier",fileDropHere:e=>e?"Glissez et d\xE9posez vos fichiers ici":"Glissez et d\xE9posez votre fichier ici",onlySingleFileAllowed:"Un seul fichier est autoris\xE9",fileTypeNotAccepted:e=>e.length>1?"Les fichiers suivants ne sont pas du format attendu : ":"Le fichier suivant n'est pas du format attendu : ",fileSizeExceeded:e=>e.length>1?"Les fichiers suivants d\xE9passent la taille maximale autoris\xE9e : ":"Le fichier suivant d\xE9passe la taille maximale autoris\xE9e : ",clearFile:e=>`Retirer le fichier : ${e}`,uploadFileProgressBar:"Barre de progression pour le t\xE9l\xE9chargement de fichiers",pagination:"Pagination",paginationResults:(e,r,n,t)=>`${e}-${r} sur ${n} ${t!=null?t:"r\xE9sultats"}`,paginationResultsAriaLabel:(e,r,n,t)=>`Affichage de ${e} \xE0 ${r} sur ${n} ${t!=null?t:"r\xE9sultats"}`,linesPerPage:"Lignes par page",page:"page",ofTotal:e=>`sur ${e}`,previousPage:"Page pr\xE9c\xE9dente",nextPage:"Page suivante",results:"r\xE9sultats",cnsa:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie",spa:"Service public de l'autonomie",cnsaGoToHomepage:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie, aller \xE0 la page d'accueil",spaGoToHomepage:"Service public de l'autonomie, aller \xE0 la page d'accueil",search:"Rechercher",cancel:"Annuler",showTableActionsAnnouncement:"Une barre d'actions est d\xE9sormais disponible au-dessus du tableau.",selectAllTableRows:"S\xE9lectionner toutes les lignes du tableau",selectRow:"S\xE9lectionner la ligne",showExpandedTableRowHeader:"Afficher les d\xE9tails des lignes du tableau",showExpandedTableRow:"Afficher d\xE9tails",hideExpandedTableRow:"Masquer d\xE9tails",reorderTableRowsHeader:"R\xE9organiser les lignes du tableau. Activez le mode formulaire pour utiliser les boutons de r\xE9organisation. Utilisez la touche ESPACE ou ENTR\xC9E sur les boutons pour activer la r\xE9organisation. Utilisez les fl\xE8ches HAUT et BAS pour r\xE9organiser la ligne. Utilisez la touche ESPACE ou ENTR\xC9E pour valider la nouvelle position de la ligne. Quittez le mode formulaire pour naviguer entre les autres \xE9l\xE9ments du tableau.",startReorderTableRow:"R\xE9organiser la ligne",cnsaFooterLogoLabel:"Service public de l'autonomie",openAll:"Tout ouvrir",closeAll:"Tout fermer",numberSelected:(e,r)=>`${e} s\xE9lectionn\xE9${r==="feminine"?"e":""}${e>1?"s":""}`,deselectAll:"Tout d\xE9s\xE9lectionner",selectAll:"Tout s\xE9lectionner",seeAll:e=>`Voir tout (${e})`,seeMore:"Voir plus",columns:"Colonnes",increase:"Augmenter",decrease:"Diminuer",reinitialize:"R\xE9initialiser",validate:"Valider",filterReset:"R\xE9initialiser",filterSubmit:"Valider",valuesSelected:"valeurs s\xE9lectionn\xE9es",optionsAvailable:"options disponibles",selectValue:e=>`S\xE9lectionner ${e?"des valeurs":"une valeur"}`,lessThan:"inf\xE9rieur \xE0",moreThan:"sup\xE9rieur \xE0",min:"Min",max:"Max",clearButton:"Effacer valeur",hours:e=>`${e} Heure${Number(e)>1?"s":""}`,minutes:e=>`${e} Minute${Number(e)>1?"s":""}`,seconds:e=>`${e} Seconde${Number(e)>1?"s":""}`,milliseconds:e=>`${e} Milliseconde${Number(e)>1?"s":""}`,selectedTime:"Heure s\xE9lectionn\xE9e :",day:"Jour",month:"Mois",year:"Ann\xE9e",dayPlaceholder:"JJ",monthPlaceholder:"MM",yearPlaceholder:"AAAA",selectedDate:"Date s\xE9lectionn\xE9e : ",selectedDates:"Dates s\xE9lectionn\xE9es : ",enhancedMonth:e=>{switch(e){case 1:return"1 - Janvier";case 2:return"2 - F\xE9vrier";case 3:return"3 - Mars";case 4:return"4 - Avril";case 5:return"5 - Mai";case 6:return"6 - Juin";case 7:return"7 - Juillet";case 8:return"8 - Ao\xFBt";case 9:return"9 - Septembre";case 10:return"10 - Octobre";case 11:return"11 - Novembre";case 12:return"12 - D\xE9cembre";default:return""}},monthSelect:"S\xE9lectionner le mois",nextMonthButton:"Mois suivant",nextYearButton:"Ann\xE9e suivante",picker:"Choisir une date",pickerRange:"Choisir une plage de dates",previousMonthButton:"Mois pr\xE9c\xE9dent",previousYearButton:"Ann\xE9e pr\xE9c\xE9dente",todayButton:"Afficher la date du jour",yearSelect:"S\xE9lectionner l'ann\xE9e",startDate:"Date de d\xE9but",endDate:"Date de fin",invalidDate:"Date non valide",invalidStartDate:"Date de d\xE9but non valide",invalidEndDate:"Date de fin non valide",tableOfContents:"Sommaire :",userMenu:"Menu utilisateur",switchOn:"Activ\xE9",switchOff:"D\xE9sactiv\xE9",sidenav:"Navigation lat\xE9rale",toggleSidenav:"D\xE9velopper/R\xE9duire la navigation lat\xE9rale",copied:"Texte copi\xE9 dans le presse-papiers",copyError:"Echec de la copie",info:"Information",warning:"Attention",error:"Erreur",success:"Succ\xE8s",fr_FR:"France",fr_GP:"Guadeloupe, Saint-Barth\xE9lemy et Saint-Martin",fr_GF:"Guyane",fr_MQ:"Martinique",fr_NC:"Nouvelle-Cal\xE9donie",fr_PF:"Polyn\xE9sie fran\xE7aise",fr_PM:"Saint-Pierre-et-Miquelon",fr_RE:"R\xE9union et Mayotte",fr_WF:"Wallis-et-Futuna"};i(o);var d=o;var a=class extends s{};var l={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copy:"Copy",youAreHere:"You are here:",countryCallingCode:"Country calling code",currentValue:"Current value",goToSlide:(e,r)=>`Go to slide ${e} of ${r}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectATime:"Select a time",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format",noMatchFound:"No match found",optionsLoading:"Options loading",optionsError:"An error has occurred",step:"Step",stepActive:"Active step",stepCompleted:"Step completed",stepInProgress:"Step in progress",stepError:"Step in error",skipLinksAriaLabel:"Skip links",errorMessagePanelCodePrefix:"Error code: ",fileSelect:(e,r)=>e?"Select a directory":r?"Choose files":"Choose a file",fileDropHere:e=>e?"Drag and drop your files here":"Drag and drop your file here",onlySingleFileAllowed:"Only a single file is allowed",fileTypeNotAccepted:e=>e.length>1?"The following files are not of the expected format: ":"The following file is not of the expected format: ",fileSizeExceeded:e=>e.length>1?"The following files exceed the maximum allowed size: ":"The following file exceeds the maximum allowed size: ",clearFile:e=>`Remove file : ${e}`,uploadFileProgressBar:"Upload file progress bar",pagination:"Pagination",paginationResults:(e,r,n,t)=>`${e}-${r} of ${n} ${t!=null?t:"results"}`,paginationResultsAriaLabel:(e,r,n,t)=>`Showing ${e} to ${r} of ${n} ${t!=null?t:"results"}`,linesPerPage:"Lines per page",page:"page",ofTotal:e=>`of ${e}`,previousPage:"Previous page",nextPage:"Next page",results:"results",cnsa:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie",spa:"Service public de l'autonomie",cnsaGoToHomepage:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie, go to homepage",spaGoToHomepage:"Service public de l'autonomie, go to homepage",search:"Search",cancel:"Cancel",showTableActionsAnnouncement:"An action bar is now available above the table",selectAllTableRows:"Select all table rows",selectRow:"Select row",showExpandedTableRowHeader:"Show details of table rows",showExpandedTableRow:"Show details",hideExpandedTableRow:"Hide details",reorderTableRowsHeader:"Reorder table rows. Activate form mode to use the rearrange buttons. Press the SPACE or ENTER key on the buttons to activate rearranging. Use the UP and DOWN arrow keys to rearrange the row. Press the SPACE or ENTER key to confirm the new row position. Exit form mode to navigate between other table elements.",startReorderTableRow:"Reorder row",cnsaFooterLogoLabel:"Service public de l'autonomie",openAll:"Open all",closeAll:"Close all",numberSelected:e=>`${e} selected`,deselectAll:"Deselect all",selectAll:"Select all",seeAll:e=>`See all (${e})`,seeMore:"See more",columns:"Columns",increase:"Increase",decrease:"Decrease",reinitialize:"Reinitialize",validate:"Validate",filterReset:"Reinitialize",filterSubmit:"Validate",valuesSelected:"values selected",optionsAvailable:"options available",selectValue:e=>`Select ${e?"values":"a value"}`,lessThan:"less than",moreThan:"more than",min:"Min",max:"Max",clearButton:"Clear value",hours:e=>`${e} Hour${Number(e)>1?"s":""}`,minutes:e=>`${e} Minute${Number(e)>1?"s":""}`,seconds:e=>`${e} Second${Number(e)>1?"s":""}`,milliseconds:e=>`${e} Millisecond${Number(e)>1?"s":""}`,selectedTime:"Selected time :",day:"Day",month:"Month",year:"Year",dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY",selectedDate:"Selected date : ",selectedDates:"Selected dates : ",enhancedMonth:e=>{switch(e){case 1:return"1 - January";case 2:return"2 - February";case 3:return"3 - March";case 4:return"4 - April";case 5:return"5 - May";case 6:return"6 - June";case 7:return"7 - July";case 8:return"8 - August";case 9:return"9 - September";case 10:return"10 - October";case 11:return"11 - November";case 12:return"12 - December";default:return""}},monthSelect:"Select month",nextMonthButton:"Next month",nextYearButton:"Next year",picker:"Choose date",pickerRange:"Choose a date range",previousMonthButton:"Previous month",previousYearButton:"Previous year",todayButton:"Show today",yearSelect:"Select year",startDate:"Start date",endDate:"End date",invalidDate:"Invalid date",invalidStartDate:"Invalid start date",invalidEndDate:"Invalide end date",tableOfContents:"Table of contents :",userMenu:"User Menu",switchOn:"On",switchOff:"Off",sidenav:"Side navigation",toggleSidenav:"Toggle side navigation",copied:"Copied",copyError:"Copy error",info:"Information",warning:"Warning",error:"Error",success:"Success",fr_FR:"France",fr_GP:"Guadeloupe",fr_GF:"Guiana",fr_MQ:"Martinique",fr_NC:"New Caledonia",fr_PF:"French Polynesia",fr_PM:"Saint-Pierre-et-Miquelon",fr_RE:"R\xE9union and Mayotte",fr_WF:"Wallis and Futuna"};i(l);var v=l;export{v as a,d as b,a as c};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk.27RSAF7P.js";import{a as f,b as y}from"./chunk.3RLUYXJN.js";import{a as z}from"./chunk.ZJVQ3VQM.js";import{a as k}from"./chunk.ELL45QD3.js";import{a as L}from"./chunk.LYLTFAFC.js";import{a as p}from"./chunk.KLRPP4NQ.js";import{a as l,c as h}from"./chunk.HHVNQNCC.js";import{a as r,c as n}from"./chunk.TV2TMO2H.js";import{a as m}from"./chunk.B4KFHYLS.js";import{a as E}from"./chunk.NIRNX67K.js";import{c as T}from"./chunk.LBAIMDY3.js";import{a as w}from"./chunk.2RF4WD6T.js";import{d as g}from"./chunk.ZBHHLRFH.js";import{a as _}from"./chunk.BWEPOOQP.js";import{a as b,b as s,d as c,f as C}from"./chunk.KBZ32KWP.js";import{a as d}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var t=class extends C{constructor(){super(...arguments);this.hasSlotController=new k(this,"footer");this.localize=new T(this);this.modal=new u(this);this.open=!1;this.label="";this.hideTitle=!1;this.noCloseButton=!1;this.noHeader=!1;this.size="medium"}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new u(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),f(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),y(this)}requestClose(e){let a=this.emit("dsa-request-close",{cancelable:!0,detail:{source:e}});if(this.noCloseButton&&a.preventDefault(),a.defaultPrevented){let o=n(this,"dialog.denyClose",{dir:this.localize.dir()});l(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(e){if(this.open&&this.modal.isActive()&&e.key==="Escape"){let a=this.querySelectorAll("dsa-tooltip");Array.from(a).some(v=>v.open)||(e.stopPropagation(),this.requestClose("keyboard"))}}async handleOpenChange(){if(this.open){this.emit("dsa-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),f(this);let e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([h(this.dialog),h(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("dsa-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")});let a=n(this,"dialog.show",{dir:this.localize.dir()}),o=n(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([l(this.panel,a.keyframes,a.options),l(this.overlay,o.keyframes,o.options)]),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([h(this.dialog),h(this.overlay)]);let e=n(this,"dialog.hide",{dir:this.localize.dir()}),a=n(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([l(this.overlay,a.keyframes,a.options).then(()=>{this.overlay.hidden=!0}),l(this.panel,e.keyframes,e.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,y(this);let o=this.originalTrigger;typeof(o==null?void 0:o.focus)=="function"&&setTimeout(()=>o.focus()),this.emit("dsa-after-hide")}}async show(){if(!this.open)return this.open=!0,await p(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await p(this,"dsa-after-hide")}render(){let e=!this.noHeader&&!this.hideTitle;return!this.label&&!this.hasSlotController.test("label")&&m("<dsa-dialog> require a label attribute or a label slot for accessibility"),!e&&!this.label&&m("<dsa-dialog> require a label attribute for accessibility when the header or the title are hidden"),d`
|
|
2
|
-
<div
|
|
3
|
-
part="base"
|
|
4
|
-
class=${g({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer"),"dialog--small":this.size==="small","dialog--medium":this.size==="medium","dialog--large":this.size==="large"})}
|
|
5
|
-
>
|
|
6
|
-
<div
|
|
7
|
-
part="overlay"
|
|
8
|
-
class="dialog__overlay"
|
|
9
|
-
@click=${()=>this.requestClose("overlay")}
|
|
10
|
-
></div>
|
|
11
|
-
|
|
12
|
-
<div
|
|
13
|
-
part="panel"
|
|
14
|
-
class="dialog__panel"
|
|
15
|
-
role="dialog"
|
|
16
|
-
aria-modal="true"
|
|
17
|
-
aria-hidden=${this.open?"false":"true"}
|
|
18
|
-
aria-label=${E(e?void 0:this.label)}
|
|
19
|
-
aria-labelledby=${w(e?"title":void 0)}
|
|
20
|
-
tabindex="-1"
|
|
21
|
-
>
|
|
22
|
-
${this.noHeader?"":d`
|
|
23
|
-
<header part="header" class="dialog__header">
|
|
24
|
-
${this.hideTitle?"":d`
|
|
25
|
-
<h1 part="title" class="dialog__title" id="title">
|
|
26
|
-
<slot name="label">
|
|
27
|
-
${this.label.length>0?this.label:"\uFEFF"}
|
|
28
|
-
</slot>
|
|
29
|
-
</h1>
|
|
30
|
-
`}
|
|
31
|
-
<div part="header-actions" class="dialog__header-actions">
|
|
32
|
-
<slot name="header-actions"></slot>
|
|
33
|
-
${this.noCloseButton?"":d`
|
|
34
|
-
<dsa-icon-button
|
|
35
|
-
part="close-button"
|
|
36
|
-
exportparts="base:close-button__base"
|
|
37
|
-
class="dialog__close"
|
|
38
|
-
name="close"
|
|
39
|
-
label=${this.localize.term("close")}
|
|
40
|
-
@click="${()=>this.requestClose("close-button")}"
|
|
41
|
-
library="system"
|
|
42
|
-
size="xlarge"
|
|
43
|
-
></dsa-icon-button>
|
|
44
|
-
`}
|
|
45
|
-
</div>
|
|
46
|
-
</header>
|
|
47
|
-
`}
|
|
48
|
-
<div class="dialog__body-container">
|
|
49
|
-
<slot part="body" class="dialog__body"></slot>
|
|
50
|
-
</div>
|
|
51
|
-
<footer part="footer" class="dialog__footer">
|
|
52
|
-
<slot name="footer"></slot>
|
|
53
|
-
</footer>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
`}};t.styles=z,t.dependencies={"dsa-icon-button":L},i([c(".dialog")],t.prototype,"dialog",2),i([c(".dialog__panel")],t.prototype,"panel",2),i([c(".dialog__overlay")],t.prototype,"overlay",2),i([s({type:Boolean,reflect:!0})],t.prototype,"open",2),i([s({reflect:!0})],t.prototype,"label",2),i([s({attribute:"hide-title",type:Boolean,reflect:!0})],t.prototype,"hideTitle",2),i([s({attribute:"no-close-button",type:Boolean,reflect:!0})],t.prototype,"noCloseButton",2),i([s({attribute:"no-header",type:Boolean,reflect:!0})],t.prototype,"noHeader",2),i([s({reflect:!0})],t.prototype,"size",2),i([_("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=i([b("dsa-dialog")],t);r("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});r("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});r("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});r("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:"var(--dsa-wc-dialog-overlay-opacity)"}],options:{duration:250}});r("dialog.overlay.hide",{keyframes:[{opacity:"var(--dsa-wc-dialog-overlay-opacity)"},{opacity:0}],options:{duration:250}});export{t as a};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk.RCGUDUP2.js";import{a as H}from"./chunk.27RSAF7P.js";import{a as h,b as p}from"./chunk.3RLUYXJN.js";import{a as E}from"./chunk.ELL45QD3.js";import{a as q}from"./chunk.LYLTFAFC.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as n,c as d}from"./chunk.HHVNQNCC.js";import{a as i,c as l}from"./chunk.TV2TMO2H.js";import{a as u}from"./chunk.B4KFHYLS.js";import{a as L}from"./chunk.NIRNX67K.js";import{c as T}from"./chunk.LBAIMDY3.js";import{a as C}from"./chunk.2RF4WD6T.js";import{d as k}from"./chunk.ZBHHLRFH.js";import{a as y}from"./chunk.BWEPOOQP.js";import{a as g,b as s,d as c,f as _}from"./chunk.KBZ32KWP.js";import{a as f}from"./chunk.GP725TPQ.js";import{f as a}from"./chunk.IZ2HVRME.js";function v(m){return m.charAt(0).toUpperCase()+m.slice(1)}var e=class extends _{constructor(){super(...arguments);this.hasSlotController=new E(this,"footer");this.localize=new T(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.filters=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new H(this)}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),h(this)))}disconnectedCallback(){super.disconnectedCallback(),p(this)}requestClose(t){if(this.emit("dsa-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let o=l(this,"drawer.denyClose",{dir:this.localize.dir()});n(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){if(this.open&&!this.contained&&t.key==="Escape"){let r=this.querySelectorAll("dsa-tooltip");Array.from(r).some(b=>b.open)||(t.stopPropagation(),this.requestClose("keyboard"))}}async handleOpenChange(){if(this.open){this.emit("dsa-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),h(this));let t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([d(this.drawer),d(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{this.emit("dsa-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});let r=l(this,`drawer.show${v(this.placement)}`,{dir:this.localize.dir()}),o=l(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,r.keyframes,r.options),n(this.overlay,o.keyframes,o.options)]),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),p(this)),await Promise.all([d(this.drawer),d(this.overlay)]);let t=l(this,`drawer.hide${v(this.placement)}`,{dir:this.localize.dir()}),r=l(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,r.keyframes,r.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;let o=this.originalTrigger;typeof(o==null?void 0:o.focus)=="function"&&setTimeout(()=>o.focus()),this.emit("dsa-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),h(this)),this.open&&this.contained&&(this.modal.deactivate(),p(this))}async show(){if(!this.open)return this.open=!0,await w(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await w(this,"dsa-after-hide")}render(){return!this.label&&!this.hasSlotController.test("label")&&u("<dsa-drawer> requires a label attribute or a label slot for accessibility"),this.noHeader&&!this.label&&u("<dsa-drawer> requires a label attribute for accessibility when `no-header` is set"),f`
|
|
2
|
-
<div
|
|
3
|
-
part="base"
|
|
4
|
-
class=${k({drawer:!0,"drawer--open":this.open,"drawer--top":this.placement==="top","drawer--end":this.placement==="end","drawer--bottom":this.placement==="bottom","drawer--start":this.placement==="start","drawer--contained":this.contained,"drawer--fixed":!this.contained,"drawer--rtl":this.localize.dir()==="rtl","drawer--has-footer":this.hasSlotController.test("footer"),"drawer--filters":this.filters})}
|
|
5
|
-
>
|
|
6
|
-
<div
|
|
7
|
-
part="overlay"
|
|
8
|
-
class="drawer__overlay"
|
|
9
|
-
@click=${()=>this.requestClose("overlay")}
|
|
10
|
-
></div>
|
|
11
|
-
|
|
12
|
-
<div
|
|
13
|
-
part="panel"
|
|
14
|
-
class="drawer__panel"
|
|
15
|
-
role="dialog"
|
|
16
|
-
aria-modal="true"
|
|
17
|
-
aria-hidden=${this.open?"false":"true"}
|
|
18
|
-
aria-label=${L(this.noHeader?this.label:void 0)}
|
|
19
|
-
aria-labelledby=${C(this.noHeader?void 0:"title")}
|
|
20
|
-
tabindex="-1"
|
|
21
|
-
>
|
|
22
|
-
${this.noHeader?"":f`
|
|
23
|
-
<header part="header" class="drawer__header">
|
|
24
|
-
<h1 part="title" class="drawer__title" id="title">
|
|
25
|
-
<!-- If there's no label, use an invisible character to prevent the header from collapsing -->
|
|
26
|
-
<slot name="label">
|
|
27
|
-
${this.label.length>0?this.label:"\uFEFF"}
|
|
28
|
-
</slot>
|
|
29
|
-
</h1>
|
|
30
|
-
<div part="header-actions" class="drawer__header-actions">
|
|
31
|
-
<slot name="header-actions"></slot>
|
|
32
|
-
<dsa-icon-button
|
|
33
|
-
part="close-button"
|
|
34
|
-
exportparts="base:close-button__base"
|
|
35
|
-
class="drawer__close"
|
|
36
|
-
name="close"
|
|
37
|
-
label=${this.localize.term("close")}
|
|
38
|
-
@click=${()=>this.requestClose("close-button")}
|
|
39
|
-
library="system"
|
|
40
|
-
size="large"
|
|
41
|
-
></dsa-icon-button>
|
|
42
|
-
</div>
|
|
43
|
-
</header>
|
|
44
|
-
`}
|
|
45
|
-
|
|
46
|
-
<slot part="body" class="drawer__body"></slot>
|
|
47
|
-
|
|
48
|
-
<footer part="footer" class="drawer__footer">
|
|
49
|
-
<slot name="footer"></slot>
|
|
50
|
-
</footer>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
`}};e.styles=M,e.dependencies={"dsa-icon-button":q},a([c(".drawer")],e.prototype,"drawer",2),a([c(".drawer__panel")],e.prototype,"panel",2),a([c(".drawer__overlay")],e.prototype,"overlay",2),a([s({type:Boolean,reflect:!0})],e.prototype,"open",2),a([s({reflect:!0})],e.prototype,"label",2),a([s({reflect:!0})],e.prototype,"placement",2),a([s({type:Boolean,reflect:!0})],e.prototype,"contained",2),a([s({attribute:"no-header",type:Boolean,reflect:!0})],e.prototype,"noHeader",2),a([s({type:Boolean,reflect:!0})],e.prototype,"filters",2),a([y("open",{waitUntilFirstUpdate:!0})],e.prototype,"handleOpenChange",1),a([y("contained",{waitUntilFirstUpdate:!0})],e.prototype,"handleNoModalChange",1),e=a([g("dsa-drawer")],e);i("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});i("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});i("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});i("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});i("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});i("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});i("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});i("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});i("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});i("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:"var(--dsa-wc-drawer-overlay-opacity)"}],options:{duration:250}});i("drawer.overlay.hide",{keyframes:[{opacity:"var(--dsa-wc-drawer-overlay-opacity)"},{opacity:0}],options:{duration:250}});export{e as a};
|