@ds-autonomie/web-components 2.20.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- 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.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.F4AQSIUW.js → chunk.353PHEPC.js} +1 -1
- package/cdn/chunks/{chunk.ZMEW7RFS.js → chunk.3I36IGZA.js} +1 -1
- package/cdn/chunks/{chunk.SBGRTAIJ.js → chunk.3NZ4VRJF.js} +1 -1
- package/cdn/chunks/{chunk.DRNNBI43.js → chunk.3Z6ANWYS.js} +1 -1
- package/cdn/chunks/{chunk.OSB2X3QH.js → chunk.4HFX2WWN.js} +1 -1
- package/cdn/chunks/{chunk.YQURDTCI.js → chunk.5VZFKPSK.js} +1 -1
- package/cdn/chunks/{chunk.QXHK62F7.js → chunk.5YSNZTMZ.js} +1 -1
- package/cdn/chunks/{chunk.DBXX64Q4.js → chunk.6DSY52TF.js} +5 -5
- package/cdn/chunks/{chunk.NH327H72.js → chunk.6DVHKT6J.js} +1 -1
- package/cdn/chunks/{chunk.UDLR3IFA.js → chunk.6ETSOBAB.js} +1 -1
- package/cdn/chunks/{chunk.3YXGLEPK.js → chunk.6XSWDZ3K.js} +1 -1
- package/cdn/chunks/{chunk.HR3DGR2Y.js → chunk.75OMKNKV.js} +1 -1
- package/cdn/chunks/{chunk.FEPCSTZT.js → chunk.7DI4X2VG.js} +1 -1
- package/cdn/chunks/{chunk.UFUMCCGR.js → chunk.7T3GRSME.js} +1 -1
- package/cdn/chunks/{chunk.WMOV27WV.js → chunk.7U5JEAWJ.js} +1 -1
- package/cdn/chunks/{chunk.QSMVLQKG.js → chunk.A7WF23I3.js} +1 -1
- package/cdn/chunks/{chunk.RDYBSHLC.js → chunk.AGV4A3YT.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.WNYKZ5NJ.js → chunk.AQOO2T52.js} +1 -1
- package/cdn/chunks/{chunk.H6456THW.js → chunk.AWM5EZRY.js} +1 -1
- package/cdn/chunks/{chunk.BZT2GJNM.js → chunk.B6OZRSZK.js} +1 -1
- package/cdn/chunks/{chunk.4XCZGVYA.js → chunk.BFOG2B56.js} +1 -1
- package/cdn/chunks/{chunk.VBCBEOZG.js → chunk.BWWABV2J.js} +1 -1
- package/cdn/chunks/{chunk.IUOHXTHC.js → chunk.C6L5URBB.js} +1 -1
- package/cdn/chunks/chunk.CFJ4QXH4.js +19 -0
- package/cdn/chunks/{chunk.YUIUEJ5Y.js → chunk.CT4MJF6T.js} +1 -1
- package/cdn/chunks/{chunk.KX5QV54N.js → chunk.CWRA4UT2.js} +1 -1
- package/cdn/chunks/chunk.DBVKBRPG.js +47 -0
- 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.TO3SON22.js → chunk.DGEG6HVV.js} +1 -1
- package/cdn/chunks/{chunk.OSR6DVXB.js → chunk.DZNXUAKA.js} +1 -1
- 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.SLWQRYAW.js → chunk.FASLFYND.js} +1 -1
- package/cdn/chunks/{chunk.7NBAEATD.js → chunk.FVTT4MMC.js} +1 -1
- package/cdn/chunks/chunk.G4QC72M3.js +90 -0
- package/cdn/chunks/chunk.GGN6W46J.js +33 -0
- package/cdn/chunks/{chunk.5Z62TASD.js → chunk.GL7V5QFT.js} +1 -1
- package/cdn/chunks/{chunk.6JL6NMDO.js → chunk.GNP3HUWO.js} +1 -1
- package/cdn/chunks/{chunk.KM72KRA4.js → chunk.GSE4BYLS.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.XOEINTMR.js → chunk.HPYWAFMA.js} +8 -11
- package/cdn/chunks/{chunk.CDESACOR.js → chunk.HTMFQPE5.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.HGNNGE53.js → chunk.I4AEWSTQ.js} +5 -5
- package/cdn/chunks/chunk.I6KH3RXW.js +31 -0
- package/cdn/chunks/{chunk.OTNIMSDB.js → chunk.IJ4EFTP2.js} +1 -1
- package/cdn/chunks/{chunk.T5OLUN3T.js → chunk.IZDRYSJI.js} +8 -8
- package/cdn/chunks/chunk.J34FMZ22.js +20 -0
- package/cdn/chunks/{chunk.NZKPTTUJ.js → chunk.J5KWRJTH.js} +1 -1
- package/cdn/chunks/{chunk.CR7CW7MM.js → chunk.K6LO352V.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.XHVUNCDG.js → chunk.LCXOBOTQ.js} +1 -1
- package/cdn/chunks/{chunk.5V6ZBY2X.js → chunk.LPXI2TGU.js} +1 -1
- package/cdn/chunks/{chunk.P7SG42IM.js → chunk.LXVTY3UZ.js} +1 -1
- package/cdn/chunks/{chunk.FUN7B2IQ.js → chunk.M4NNGNSF.js} +1 -1
- package/cdn/chunks/{chunk.37TJAUZA.js → chunk.MIF4MK3R.js} +1 -1
- package/cdn/chunks/{chunk.XOR6B7CF.js → chunk.MPOEF2AD.js} +1 -1
- package/cdn/chunks/{chunk.DS2JXBOZ.js → chunk.N35G45JG.js} +1 -1
- package/cdn/chunks/{chunk.2MGX3JTR.js → chunk.NWYSJOVO.js} +1 -1
- package/cdn/chunks/{chunk.S7OUYCK4.js → chunk.O7SAIPOG.js} +1 -1
- package/cdn/chunks/{chunk.G46A6S6B.js → chunk.OE4QGAVP.js} +1 -1
- package/cdn/chunks/{chunk.G5H2VKPM.js → chunk.OHC3KP3N.js} +1 -1
- package/cdn/chunks/{chunk.YCHSWY7W.js → chunk.OR4BPTYF.js} +1 -1
- package/cdn/chunks/{chunk.JVEPCKCT.js → chunk.OX4H5VZP.js} +1 -1
- package/cdn/chunks/{chunk.44RPMYBZ.js → chunk.OZUBIMSO.js} +1 -1
- package/cdn/chunks/{chunk.YL7QS24Y.js → chunk.P5OHHVIZ.js} +1 -1
- package/cdn/chunks/{chunk.O52WFAX7.js → chunk.POOZWGH5.js} +1 -1
- package/cdn/chunks/chunk.Q54GPNUS.js +1 -0
- package/cdn/chunks/{chunk.4GV3WJET.js → chunk.QXQFA2PL.js} +2 -2
- package/cdn/chunks/{chunk.JEOSRXCU.js → chunk.QZ7M6OGO.js} +1 -1
- package/cdn/chunks/{chunk.RCGUDUP2.js → chunk.R2SAERUV.js} +14 -15
- package/cdn/chunks/{chunk.6UXK7G4D.js → chunk.RKAXCU2K.js} +1 -1
- package/cdn/chunks/{chunk.Q2IGZDBA.js → chunk.RMHUEO6M.js} +1 -1
- package/cdn/chunks/{chunk.Q7GZ4AMX.js → chunk.RUMRXWLX.js} +1 -1
- package/cdn/chunks/{chunk.NJOCDP2A.js → chunk.SARJ4UB5.js} +1 -1
- package/cdn/chunks/{chunk.BKSG5KWK.js → chunk.SCA6KI3Y.js} +1 -1
- package/cdn/chunks/{chunk.FDMQXEYE.js → chunk.SK27PJHT.js} +1 -1
- package/cdn/chunks/{chunk.JUMQSXMT.js → chunk.TBAF2O5H.js} +1 -1
- package/cdn/chunks/{chunk.KVJWSAR3.js → chunk.THBCP6LI.js} +1 -1
- package/cdn/chunks/{chunk.II4JQ433.js → chunk.U5TCFENL.js} +1 -1
- package/cdn/chunks/{chunk.MU36LMLD.js → chunk.UB73V5BI.js} +1 -1
- package/cdn/chunks/{chunk.V2HF2VKY.js → chunk.UIEL566X.js} +1 -1
- package/cdn/chunks/{chunk.S47ZNKH7.js → chunk.UIKL7DR3.js} +1 -1
- package/cdn/chunks/{chunk.56JDCX3P.js → chunk.UPUWTQY3.js} +1 -1
- package/cdn/chunks/{chunk.CNAZZZJL.js → chunk.UQC4FZQO.js} +1 -1
- package/cdn/chunks/{chunk.K3JAYUBA.js → chunk.UREKS7QR.js} +1 -1
- package/cdn/chunks/{chunk.AIMBA5HQ.js → chunk.UVI76N5N.js} +1 -1
- package/cdn/chunks/{chunk.GWF5GFSQ.js → chunk.VBIJSQJQ.js} +1 -1
- package/cdn/chunks/chunk.VCAUYLU6.js +53 -0
- package/cdn/chunks/chunk.VEWOSPRC.js +19 -0
- 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.2FAAI4ZJ.js → chunk.VRETONIU.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.TFTJUTCH.js → chunk.WFPILKOS.js} +1 -1
- package/cdn/chunks/{chunk.XZTHZM2O.js → chunk.XBO6BPEL.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.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.YEEGO6X3.js} +1 -1
- package/cdn/chunks/{chunk.YKDQ56UZ.js → chunk.YG7EIWOO.js} +1 -1
- package/cdn/chunks/{chunk.67UP3FZD.js → chunk.Z33ITBWZ.js} +5 -5
- package/cdn/chunks/{chunk.F6YFQ3GB.js → chunk.ZEMA7TWY.js} +15 -2
- package/cdn/chunks/{chunk.URE4SVTS.js → chunk.ZNUQSSRL.js} +1 -1
- package/cdn/chunks/{chunk.M66L2D2H.js → chunk.ZQPFBR34.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/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/card-content/card-content.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/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/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-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/pagination/pagination.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 +418 -223
- 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/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-gb.js +1 -1
- package/cdn/translations/en.js +1 -1
- package/cdn/translations/fr.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 -122
- 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.MFGYIAUT.js → chunk.3TAGND37.js} +1 -1
- package/dist/chunks/{chunk.YBX4TUQG.js → chunk.4IDR4RJI.js} +7 -7
- package/dist/chunks/{chunk.K43LRQVK.js → chunk.5DVIZLXZ.js} +1 -1
- package/dist/chunks/{chunk.YGUB43LS.js → chunk.5ESJXERV.js} +1 -1
- package/dist/chunks/{chunk.M2QIFDAP.js → chunk.5NGXTSAJ.js} +1 -1
- 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.L5HLKFQW.js → chunk.6ZVGYVEL.js} +1 -1
- package/dist/chunks/{chunk.BKCIRG2P.js → chunk.73XHVQNA.js} +1 -1
- package/dist/chunks/{chunk.JTUO6EOR.js → chunk.7EVHJ2OT.js} +3 -3
- package/dist/chunks/{chunk.DE3HY2DW.js → chunk.7HMEK2ND.js} +6 -5
- package/dist/chunks/{chunk.4JMXY2WI.js → chunk.7PE2PORN.js} +2 -2
- package/dist/chunks/{chunk.TGQQJI2E.js → chunk.7WMOPNN5.js} +6 -6
- package/dist/chunks/{chunk.T4XADGK3.js → chunk.7YNHLXVZ.js} +1 -1
- package/dist/chunks/chunk.7Z3P7ZIT.js +100 -0
- package/dist/chunks/{chunk.LKSUU7CF.js → chunk.ABXTXNT4.js} +2 -2
- package/dist/chunks/{chunk.Q76VY2W2.js → chunk.ADVAWXPE.js} +1 -1
- package/dist/chunks/{chunk.VNGKMC5T.js → chunk.AEU5B6YK.js} +1 -1
- package/dist/chunks/{chunk.6DUG6A52.js → chunk.AL6PYL6U.js} +4 -4
- package/dist/chunks/{chunk.VFJEGCDO.js → chunk.BAWCVSXY.js} +1 -1
- package/dist/chunks/{chunk.BIMSZQRS.js → chunk.BIB7IJGE.js} +4 -4
- package/dist/chunks/{chunk.UOJ4QKLP.js → chunk.C4SE3ULG.js} +1 -1
- package/dist/chunks/{chunk.IRBKALXJ.js → chunk.C6BC46KV.js} +7 -7
- package/dist/chunks/{chunk.KD27MP6C.js → chunk.D7HT35YE.js} +1 -1
- package/dist/chunks/{chunk.RRR5BCCP.js → chunk.DEEMRWEE.js} +7 -7
- package/dist/chunks/{chunk.NC6NNDYD.js → chunk.DIRVCY5C.js} +1 -1
- package/dist/chunks/{chunk.LWTEEWEF.js → chunk.DJFSPHO4.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.ZJ6WYIG2.js → chunk.DZLEAEG5.js} +61 -61
- package/dist/chunks/chunk.E2AA6JZR.js +102 -0
- package/dist/chunks/{chunk.F7XLQM3I.js → chunk.EPG5ZB4T.js} +2 -2
- package/dist/chunks/{chunk.XM237MHQ.js → chunk.EQNOUAQ6.js} +8 -4
- package/dist/chunks/{chunk.PPNCOBIW.js → chunk.EX63QI6Z.js} +3 -3
- package/dist/chunks/{chunk.IJLBJ37U.js → chunk.F4DMZGND.js} +7 -7
- package/dist/chunks/{chunk.QAA45XK3.js → chunk.FLCLDNUC.js} +2 -2
- 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.EGXFCQMV.js → chunk.GOVTNZ72.js} +3 -3
- package/dist/chunks/{chunk.2GJ46J7Q.js → chunk.GQZAFXU6.js} +1 -1
- package/dist/chunks/{chunk.HCKPLZT3.js → chunk.GSRQID3H.js} +7 -7
- package/dist/chunks/{chunk.TJ5TUGGE.js → chunk.H5G2LRCX.js} +8 -8
- package/dist/chunks/{chunk.ORK75RRY.js → chunk.H7QHCUBR.js} +2 -2
- package/dist/chunks/{chunk.WL6AJERE.js → chunk.H7TB3KTK.js} +3 -3
- package/dist/chunks/{chunk.LO42XUHN.js → chunk.HAWD2P5K.js} +12 -13
- package/dist/chunks/{chunk.ER5S4DQ4.js → chunk.IDMG3YLC.js} +1 -1
- package/dist/chunks/{chunk.25TWOP6P.js → chunk.IQY2ZVAV.js} +6 -6
- package/dist/chunks/{chunk.TTV3MIRK.js → chunk.ITBFUL7J.js} +7 -7
- package/dist/chunks/{chunk.EDEPWRFC.js → chunk.ITD5BZEA.js} +1 -1
- package/dist/chunks/{chunk.UYMQI7J5.js → chunk.ITFYDUMM.js} +3 -3
- package/dist/chunks/{chunk.DM5A44VN.js → chunk.IYGSQFGQ.js} +4 -4
- package/dist/chunks/{chunk.AAZSI6N4.js → chunk.JBFJWJUF.js} +5 -5
- package/dist/chunks/{chunk.JC4UHPES.js → chunk.JMA3VRB4.js} +2 -2
- 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.YTAYYSIR.js → chunk.KGP2JSZ7.js} +2 -2
- package/dist/chunks/{chunk.FLRNIL37.js → chunk.KN6JQY6O.js} +1 -1
- package/dist/chunks/{chunk.IRPNCLE5.js → chunk.KOO2JWHZ.js} +2 -2
- package/dist/chunks/{chunk.XSQDJNFR.js → chunk.LBLBASKK.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.CRWYFYCK.js → chunk.M347TELO.js} +7 -7
- package/dist/chunks/{chunk.CZWS5IXY.js → chunk.M47YUO2L.js} +1 -1
- package/dist/chunks/{chunk.6HSTAJNR.js → chunk.M6X2ZDO6.js} +2 -2
- package/dist/chunks/{chunk.DN3K2GHZ.js → chunk.MRGJKLE3.js} +1 -1
- package/dist/chunks/{chunk.OUUFQTMX.js → chunk.N2XNANRE.js} +2 -2
- package/dist/chunks/{chunk.7I4SBUOE.js → chunk.ORAH2BHK.js} +3 -3
- package/dist/chunks/{chunk.IIT2FS67.js → chunk.P57KFF6A.js} +12 -7
- package/dist/chunks/{chunk.Z7QD3YXZ.js → chunk.PCTIMH5D.js} +8 -8
- package/dist/chunks/{chunk.ZYGCOBUE.js → chunk.PT2BKEDG.js} +1 -1
- package/dist/chunks/{chunk.ISEFZON7.js → chunk.Q45EA7A6.js} +1 -1
- package/dist/chunks/{chunk.CZC3DHY6.js → chunk.Q6GPBRDV.js} +2 -2
- package/dist/chunks/{chunk.MDQDWJCR.js → chunk.QCVOP7JL.js} +13 -0
- package/dist/chunks/{chunk.EE3XCTKZ.js → chunk.QLJNW3TZ.js} +3 -3
- package/dist/chunks/{chunk.NIBZO5CG.js → chunk.RJAOB66Y.js} +6 -6
- package/dist/chunks/{chunk.CY25FZDP.js → chunk.RLLACUYR.js} +27 -15
- package/dist/chunks/{chunk.5WXGUCD2.js → chunk.RMOUFLCI.js} +3 -3
- package/dist/chunks/{chunk.S5FAXONJ.js → chunk.RVOALTE4.js} +5 -5
- package/dist/chunks/{chunk.XTVVSORU.js → chunk.S4ZCJOC5.js} +16 -14
- package/dist/chunks/{chunk.C7XR6TIW.js → chunk.SJNFRQKU.js} +1 -1
- package/dist/chunks/{chunk.SC6ST3JE.js → chunk.SKY7526Z.js} +1 -1
- package/dist/chunks/{chunk.5S6P5V3F.js → chunk.SPIKJZGM.js} +1 -1
- package/dist/chunks/{chunk.QGSBICBZ.js → chunk.SWKXQDKB.js} +1 -1
- package/dist/chunks/{chunk.I7MPPCZN.js → chunk.SYQNO5B4.js} +2 -2
- package/dist/chunks/{chunk.RPOIITDC.js → chunk.SYZVBVOX.js} +4 -4
- package/dist/chunks/{chunk.CKEB7DWU.js → chunk.T43D4ETK.js} +32 -34
- package/dist/chunks/{chunk.4FZPTWZ7.js → chunk.TAMFIHNV.js} +2 -2
- package/dist/chunks/{chunk.AI3RKI3P.js → chunk.TJNOM7IR.js} +1 -1
- package/dist/chunks/{chunk.UO6FYSWX.js → chunk.TOXFYUP5.js} +3 -3
- package/dist/chunks/{chunk.UBVYU5GL.js → chunk.U5AWZEM5.js} +1 -1
- package/dist/chunks/{chunk.AAHDC2DF.js → chunk.U6SFJUEX.js} +1 -1
- package/dist/chunks/{chunk.ELOLGOFM.js → chunk.UBA2H662.js} +1 -1
- package/dist/chunks/{chunk.UIZ6FPK7.js → chunk.VDZUSRNI.js} +1 -1
- package/dist/chunks/{chunk.EJUYB3MH.js → chunk.VRUSJUXU.js} +1 -1
- package/dist/chunks/{chunk.C6Q4Y7HY.js → chunk.VTNFE6PI.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.KNXPRETW.js → chunk.WQMUNZSA.js} +2 -2
- package/dist/chunks/{chunk.YYKAI7FO.js → chunk.WZBEL7FC.js} +1 -1
- package/dist/chunks/{chunk.IYAYPQEC.js → chunk.X3H6MOUU.js} +1 -1
- package/dist/chunks/{chunk.RK2WN36C.js → chunk.XBQTTKJU.js} +1 -1
- package/dist/chunks/{chunk.BITIOZGG.js → chunk.XCSAMBUB.js} +3 -3
- package/dist/chunks/{chunk.ZKBTNXGE.js → chunk.XGEWLFBF.js} +8 -8
- package/dist/chunks/{chunk.BEK4DVCN.js → chunk.XHZ5CCR7.js} +1 -1
- package/dist/chunks/{chunk.UF7CYOQ4.js → chunk.Y4KCVPIC.js} +6 -6
- package/dist/chunks/{chunk.V2HQ7IVJ.js → chunk.Y7UR2ZKQ.js} +8 -7
- package/dist/chunks/{chunk.NJQ6BFQQ.js → chunk.YPBLUIU7.js} +4 -4
- 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.SUX4XQKB.js → chunk.ZDRQOJI6.js} +4 -4
- package/dist/chunks/{chunk.QS7BPH3Y.js → chunk.ZSPNI52I.js} +9 -18
- package/dist/chunks/{chunk.NGEL5LW3.js → chunk.ZUG2HYP5.js} +3 -3
- package/dist/components/accordion/accordion.js +6 -6
- 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/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 +6 -6
- package/dist/components/button/button.js +7 -7
- package/dist/components/calendar/calendar.js +2 -2
- package/dist/components/card-content/card-content.js +5 -5
- package/dist/components/card-nav-accordion/card-nav-accordion.js +6 -6
- package/dist/components/card-nav-item/card-nav-item.js +5 -5
- package/dist/components/checkbox/checkbox.js +11 -11
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/checkbox-button/checkbox-button.js +10 -10
- package/dist/components/checkbox-card/checkbox-card.js +8 -8
- package/dist/components/checkbox-group/checkbox-group.js +8 -8
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/combobox/combobox.js +15 -15
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/copy-button/copy-button.js +7 -7
- package/dist/components/dialog/dialog.js +7 -7
- 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 +8 -8
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +3 -3
- 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 +2 -2
- package/dist/components/fieldset/fieldset.styles.js +1 -1
- package/dist/components/file-upload/file-upload.js +11 -11
- 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 +30 -30
- package/dist/components/filter-date/filter-date.js +14 -14
- package/dist/components/filter-range/filter-range.js +29 -29
- package/dist/components/filter-select/filter-select.js +30 -30
- package/dist/components/footer/footer.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/header/header.js +3 -3
- package/dist/components/header-modern/header-modern.js +2 -2
- package/dist/components/header-search/header-search.js +11 -11
- 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 +24 -24
- package/dist/components/input-amount/input-amount.js +14 -14
- package/dist/components/input-amount/input-amount.styles.js +3 -3
- package/dist/components/input-date/input-date.js +16 -16
- package/dist/components/input-date/input-date.styles.js +3 -3
- package/dist/components/input-mask/input-mask.js +14 -14
- package/dist/components/input-mask/input-mask.styles.js +3 -3
- package/dist/components/input-native/input-native.js +14 -14
- package/dist/components/input-native/input-native.styles.js +3 -3
- package/dist/components/input-otp/input-otp.js +11 -11
- package/dist/components/input-otp/input-otp.styles.js +2 -2
- package/dist/components/input-phone/input-phone.js +19 -19
- package/dist/components/input-phone/input-phone.styles.js +2 -2
- package/dist/components/input-time/input-time.js +15 -15
- package/dist/components/input-time/input-time.styles.js +3 -3
- package/dist/components/menu-accordion/menu-accordion.js +7 -7
- package/dist/components/menu-item/menu-item.js +3 -3
- package/dist/components/menu-navigation/menu-navigation.js +5 -5
- package/dist/components/navbar-link/navbar-link.js +9 -9
- package/dist/components/navbar-menu/navbar-menu.js +6 -6
- package/dist/components/option/option.js +6 -6
- package/dist/components/pagination/pagination.js +25 -25
- package/dist/components/profile-button/profile-button.js +8 -8
- 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 +10 -10
- package/dist/components/radio-card/radio-card.js +12 -12
- package/dist/components/radio-group/radio-group.js +8 -8
- 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 +8 -8
- package/dist/components/select/select.js +14 -14
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/sidenav/sidenav.js +7 -7
- package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +8 -8
- 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 +6 -6
- 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 +2 -2
- package/dist/components/table-container/table-container.js +2 -2
- package/dist/components/table-header-cell/table-header-cell.js +5 -5
- package/dist/components/table-header-row/table-header-row.js +18 -18
- 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 +14 -14
- package/dist/components/tag/tag.js +8 -8
- package/dist/components/textarea/textarea.js +9 -9
- package/dist/components/textarea/textarea.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +9 -9
- package/dist/components/tree-item/tree-item.js +8 -8
- package/dist/custom-elements.json +418 -223
- package/dist/design-system.d.ts +1 -0
- package/dist/design-system.js +214 -209
- 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/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-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- 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 +2 -2
- package/dist/vscode.html-custom-data.json +53 -26
- package/dist/web-types.json +230 -122
- package/package.json +18 -18
- 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.LBAIMDY3.js +0 -1
- package/cdn/chunks/chunk.OH7GC6EG.js +0 -53
- package/cdn/chunks/chunk.RX76YMGL.js +0 -19
- package/cdn/chunks/chunk.VQCDCQ2A.js +0 -3
- package/cdn/chunks/chunk.VRIJXOVW.js +0 -47
- package/dist/chunks/{chunk.GBZY2OWL.js → chunk.BIDMVL7F.js} +3 -3
|
@@ -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
|
-
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,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};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk.WWTHUDXI.js";import{c as m}from"./chunk.VZAYP3SG.js";import{a as r,b as i,f as o}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends o{constructor(){super(...arguments);this.href=""}handleFocus(){this.emit("dsa-focus")}handleBlur(){this.emit("dsa-blur")}render(){return s`
|
|
2
|
-
<a
|
|
3
|
-
part="link"
|
|
4
|
-
download=${this.filename}
|
|
5
|
-
href=${this.href}
|
|
6
|
-
@focus=${this.handleFocus}
|
|
7
|
-
@blur=${this.handleBlur}
|
|
8
|
-
>
|
|
9
|
-
<slot name="image" part="image"></slot>
|
|
10
|
-
<div part="content">
|
|
11
|
-
<slot></slot>
|
|
12
|
-
${this.description?s` <p part="description">${this.description}</p> `:""}
|
|
13
|
-
<p part="document-info">
|
|
14
|
-
${this.format}${this.format&&this.documentSize?" - ":""}${this.documentSize}
|
|
15
|
-
</p>
|
|
16
|
-
</div>
|
|
17
|
-
<dsa-icon part="icon" name="download" library="system"></dsa-icon>
|
|
18
|
-
</a>
|
|
19
|
-
`}};t.styles=n,t.dependencies={"dsa-icon":m},e([i()],t.prototype,"href",2),e([i()],t.prototype,"description",2),e([i()],t.prototype,"format",2),e([i({attribute:"documentsize"})],t.prototype,"documentSize",2),e([i()],t.prototype,"filename",2),t=e([r("dsa-download-card")],t);export{t as a};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk.TFTJUTCH.js";import{a as d}from"./chunk.SWEIVB73.js";import{a as p}from"./chunk.ELL45QD3.js";import{a}from"./chunk.B4KFHYLS.js";import{a as o}from"./chunk.2RF4WD6T.js";import{d as n}from"./chunk.ZBHHLRFH.js";import{b as r,f as c}from"./chunk.KBZ32KWP.js";import{a as i}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends c{constructor(){super(...arguments);this.hasSlotController=new p(this,"help-text","label","prefix","suffix","tooltip");this.title="";this.name="";this.size="medium";this.variant="base";this.label="";this.helpText="";this.disabled=!1;this.placeholder="";this.readonly=!1;this.error=!1;this.errorMessage="";this.form="";this.required=!1;this.description="";this.success=!1;this.successMessage=""}renderInput(){return i``}renderCounter(){return i``}renderSuccessMessage(){return i``}handleLabelClick(){}render(){let s=this.hasSlotController.test("label"),h=this.hasSlotController.test("help-text"),l=this.label?!0:!!s,m=this.helpText?!0:!!h;return this.title&&console.warn("The `title` attribute is deprecated since it can cause redundant enunciation by screen readers, and will be removed in the next major release. Please use the accessible-name attribute instead."),!l&&!this.accessibleName&&!this.title&&a("Form controls require a label attribute or a label slot for accessibility"),this.error&&!this.errorMessage&&a("Form controls requires an error-message attribute for accessibility when the error attribute is set"),i`
|
|
2
|
-
<div
|
|
3
|
-
part="form-control"
|
|
4
|
-
class=${n({"form-control":!0,"form-control--error":this.error,"form-control--success":this.success&&!this.error,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":l,"form-control--has-help-text":m,"form-control--on-floating-menu":this.variant==="floating"})}
|
|
5
|
-
>
|
|
6
|
-
<label
|
|
7
|
-
id="label"
|
|
8
|
-
part="form-control-label"
|
|
9
|
-
class='form-control__label'
|
|
10
|
-
for="input"
|
|
11
|
-
aria-hidden=${o(l?void 0:"true")}
|
|
12
|
-
@click=${this.handleLabelClick}
|
|
13
|
-
>
|
|
14
|
-
${this.required?i`<span class="form-control__label-required">*</span>`:""}
|
|
15
|
-
<slot name="label">${this.label}</slot>
|
|
16
|
-
</label>
|
|
17
|
-
<slot name="tooltip" class="form-control__tooltip"></slot>
|
|
18
|
-
|
|
19
|
-
<div part="form-control-input" class="form-control-input form-control__field">
|
|
20
|
-
${this.renderInput()}
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div
|
|
24
|
-
id="help-text"
|
|
25
|
-
class="form-control__help-text"
|
|
26
|
-
>
|
|
27
|
-
<slot
|
|
28
|
-
name="help-text"
|
|
29
|
-
part="form-control-help-text"
|
|
30
|
-
>
|
|
31
|
-
${this.helpText}
|
|
32
|
-
</slot>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
${this.renderCounter()}
|
|
36
|
-
|
|
37
|
-
${this.description!==""?i`
|
|
38
|
-
<p id="description" class="form-control__description">
|
|
39
|
-
${this.description}
|
|
40
|
-
</p>
|
|
41
|
-
`:""}
|
|
42
|
-
|
|
43
|
-
${this.error&&!this.disabled&&this.errorMessage!==""?d(this.errorMessage,this.variant):""}
|
|
44
|
-
${this.success?this.renderSuccessMessage():""}
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
`}};e.dependencies={"dsa-error-text":f},t([r()],e.prototype,"title",2),t([r({attribute:"accessible-name",reflect:!0})],e.prototype,"accessibleName",2),t([r()],e.prototype,"name",2),t([r({reflect:!0})],e.prototype,"size",2),t([r({reflect:!0})],e.prototype,"variant",2),t([r()],e.prototype,"label",2),t([r({attribute:"help-text"})],e.prototype,"helpText",2),t([r({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([r()],e.prototype,"placeholder",2),t([r({type:Boolean,reflect:!0})],e.prototype,"readonly",2),t([r({type:Boolean})],e.prototype,"error",2),t([r({attribute:"error-message",converter:{fromAttribute:s=>s?s.split("|"):"",toAttribute:s=>typeof s=="string"?s:s.join("|")}})],e.prototype,"errorMessage",2),t([r({reflect:!0})],e.prototype,"form",2),t([r({type:Boolean,reflect:!0})],e.prototype,"required",2),t([r({attribute:"description"})],e.prototype,"description",2),t([r({type:Boolean})],e.prototype,"success",2),t([r({attribute:"success-message",converter:{fromAttribute:s=>s?s.split("|"):"",toAttribute:s=>typeof s=="string"?s:s.join("|")}})],e.prototype,"successMessage",2);export{e as a};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
systemLibrary
|
|
3
|
-
} from "./chunk.AG4HZDJV.js";
|
|
4
1
|
import {
|
|
5
2
|
library_default_default
|
|
6
3
|
} from "./chunk.C2W7WMBY.js";
|
|
4
|
+
import {
|
|
5
|
+
systemLibrary
|
|
6
|
+
} from "./chunk.AG4HZDJV.js";
|
|
7
7
|
|
|
8
8
|
// src/components/icon/library.ts
|
|
9
9
|
var registry = [library_default_default, systemLibrary];
|