@ds-autonomie/web-components 2.21.0 → 2.21.2
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 +17 -0
- package/cdn/chunks/{chunk.OZUBIMSO.js → chunk.2ER3NBC5.js} +1 -1
- package/cdn/chunks/{chunk.7T3GRSME.js → chunk.2PBEBWOP.js} +1 -1
- package/cdn/chunks/{chunk.DZNXUAKA.js → chunk.37M4BXLK.js} +1 -1
- package/cdn/chunks/{chunk.3NZ4VRJF.js → chunk.4SRRFJ5K.js} +1 -1
- package/cdn/chunks/{chunk.THBCP6LI.js → chunk.4VPKUUYI.js} +1 -1
- package/cdn/chunks/{chunk.BFOG2B56.js → chunk.5BVWK6K3.js} +1 -1
- package/cdn/chunks/chunk.5KKFNICD.js +121 -0
- package/cdn/chunks/{chunk.JU47KXI6.js → chunk.64XZMZ77.js} +1 -1
- package/cdn/chunks/{chunk.6Y5FKCNR.js → chunk.6B4UFELP.js} +7 -7
- package/cdn/chunks/{chunk.I4AEWSTQ.js → chunk.6EJNSZJR.js} +1 -1
- package/cdn/chunks/{chunk.AHAZYWZF.js → chunk.6VYL37C4.js} +1 -1
- package/cdn/chunks/{chunk.UPUWTQY3.js → chunk.7HT5EWGA.js} +1 -1
- package/cdn/chunks/chunk.7RARSIUW.js +38 -0
- package/cdn/chunks/{chunk.CWRA4UT2.js → chunk.7RM7VDGX.js} +1 -1
- package/cdn/chunks/{chunk.VM2KBACU.js → chunk.AAYMCYCU.js} +1 -1
- package/cdn/chunks/{chunk.LXVTY3UZ.js → chunk.AMOSE5HG.js} +1 -1
- package/cdn/chunks/{chunk.NLFHV3ZO.js → chunk.APXTIKVI.js} +1 -1
- package/cdn/chunks/{chunk.XVTFPCEL.js → chunk.BTHWDYRM.js} +6 -5
- package/cdn/chunks/{chunk.SCA6KI3Y.js → chunk.D52GGKLJ.js} +1 -1
- package/cdn/chunks/chunk.DIMD2VOY.js +23 -0
- package/cdn/chunks/{chunk.GHH7XYKB.js → chunk.DOFWGC23.js} +1 -1
- package/cdn/chunks/chunk.DQCCNCWD.js +56 -0
- package/cdn/chunks/{chunk.6DSY52TF.js → chunk.DYFOZ46Z.js} +1 -1
- package/cdn/chunks/chunk.E2MXTZP6.js +65 -0
- package/cdn/chunks/{chunk.XXFCN6MW.js → chunk.EBMR5RUP.js} +1 -1
- package/cdn/chunks/{chunk.7DI4X2VG.js → chunk.EYRLG5PX.js} +1 -1
- package/cdn/chunks/{chunk.VCAUYLU6.js → chunk.EZJFC4HU.js} +1 -1
- package/cdn/chunks/{chunk.DGEG6HVV.js → chunk.F2JIMT3T.js} +1 -1
- package/cdn/chunks/{chunk.WDYFEO2Q.js → chunk.FAW4PEMU.js} +3 -3
- package/cdn/chunks/{chunk.DBVKBRPG.js → chunk.FWFZG7TN.js} +1 -1
- package/cdn/chunks/{chunk.CT4MJF6T.js → chunk.GI2AQXQB.js} +1 -1
- package/cdn/chunks/{chunk.OR4BPTYF.js → chunk.H56SHMXX.js} +1 -1
- package/cdn/chunks/{chunk.27RSAF7P.js → chunk.H63LC2FP.js} +1 -1
- package/cdn/chunks/{chunk.LPXI2TGU.js → chunk.HN7OEKVB.js} +1 -1
- package/cdn/chunks/{chunk.UB73V5BI.js → chunk.HYHQBG6T.js} +1 -1
- package/cdn/chunks/{chunk.VRETONIU.js → chunk.HYQVCAH7.js} +1 -1
- package/cdn/chunks/{chunk.A7WF23I3.js → chunk.IBACM3KM.js} +1 -1
- package/cdn/chunks/{chunk.XZWROQBU.js → chunk.IDZ2RBHS.js} +5 -2
- package/cdn/chunks/{chunk.CFJ4QXH4.js → chunk.IXAKCI7U.js} +1 -1
- package/cdn/chunks/{chunk.GNP3HUWO.js → chunk.IZFWLGVN.js} +1 -1
- package/cdn/chunks/{chunk.K6LO352V.js → chunk.IZFZSMNL.js} +1 -1
- package/cdn/chunks/{chunk.M4NNGNSF.js → chunk.L4PDR2XQ.js} +1 -1
- package/cdn/chunks/{chunk.N35G45JG.js → chunk.L7V323CK.js} +1 -1
- package/cdn/chunks/{chunk.353PHEPC.js → chunk.LIHGH26S.js} +1 -1
- package/cdn/chunks/chunk.MU332V37.js +42 -0
- package/cdn/chunks/{chunk.POOZWGH5.js → chunk.MYN44Z6S.js} +1 -1
- package/cdn/chunks/chunk.NHMFB7ET.js +1 -0
- package/cdn/chunks/{chunk.IJ4EFTP2.js → chunk.NUADNBQV.js} +1 -1
- package/cdn/chunks/{chunk.BWWABV2J.js → chunk.NVJC2QTS.js} +1 -1
- package/cdn/chunks/{chunk.MIF4MK3R.js → chunk.NYTHY7TB.js} +1 -1
- package/cdn/chunks/{chunk.RMHUEO6M.js → chunk.OB2C6PTR.js} +1 -1
- package/cdn/chunks/{chunk.ELL45QD3.js → chunk.ODDQO2HD.js} +1 -1
- package/cdn/chunks/{chunk.Z33ITBWZ.js → chunk.ONUDFMLG.js} +8 -8
- package/cdn/chunks/{chunk.TBAF2O5H.js → chunk.OTYLTVBL.js} +1 -1
- package/cdn/chunks/chunk.PAYML2WU.js +20 -0
- package/cdn/chunks/{chunk.OE4QGAVP.js → chunk.PRKWQXS3.js} +1 -1
- package/cdn/chunks/{chunk.FASLFYND.js → chunk.Q5SVZYIN.js} +1 -1
- package/cdn/chunks/{chunk.P5OHHVIZ.js → chunk.QRLWNZCU.js} +1 -1
- package/cdn/chunks/{chunk.I6KH3RXW.js → chunk.QTXLNRFI.js} +1 -1
- package/cdn/chunks/{chunk.OHC3KP3N.js → chunk.RC2F2CPY.js} +1 -1
- package/cdn/chunks/{chunk.OSQWNBGB.js → chunk.RCVYUT4P.js} +1 -1
- package/cdn/chunks/{chunk.B6OZRSZK.js → chunk.RSIWBM4T.js} +1 -1
- package/cdn/chunks/chunk.S3CAREPN.js +18 -0
- package/cdn/chunks/{chunk.YG7EIWOO.js → chunk.TLQIAQRC.js} +1 -1
- package/cdn/chunks/{chunk.AWM5EZRY.js → chunk.TMUGGTVF.js} +1 -1
- package/cdn/chunks/{chunk.UIEL566X.js → chunk.TNPDX6EX.js} +1 -1
- package/cdn/chunks/chunk.TY4KYVHJ.js +27 -0
- package/cdn/chunks/{chunk.5VZFKPSK.js → chunk.U4A36HDQ.js} +1 -1
- package/cdn/chunks/{chunk.4HFX2WWN.js → chunk.UKO4J7PG.js} +1 -1
- package/cdn/chunks/{chunk.OX4H5VZP.js → chunk.UUN3KGYB.js} +1 -1
- package/cdn/chunks/{chunk.AGV4A3YT.js → chunk.UXEA6PSC.js} +1 -1
- package/cdn/chunks/{chunk.UQC4FZQO.js → chunk.UXYCUMRZ.js} +1 -1
- package/cdn/chunks/{chunk.QZ7M6OGO.js → chunk.VILF2M2M.js} +1 -1
- package/cdn/chunks/{chunk.UREKS7QR.js → chunk.VPTZFEPZ.js} +1 -1
- package/cdn/chunks/{chunk.ZQPFBR34.js → chunk.WCHNPFSL.js} +1 -1
- package/cdn/chunks/{chunk.XBO6BPEL.js → chunk.XUW6MAEV.js} +1 -1
- package/cdn/chunks/{chunk.YEEGO6X3.js → chunk.YIFMUGSO.js} +1 -1
- package/cdn/chunks/{chunk.VBIJSQJQ.js → chunk.YQETGEXV.js} +1 -1
- package/cdn/chunks/{chunk.GGN6W46J.js → chunk.ZGGW2XG7.js} +1 -1
- package/cdn/chunks/{chunk.6ETSOBAB.js → chunk.ZOGTB7J7.js} +1 -1
- package/cdn/components/accordion/accordion.js +1 -1
- package/cdn/components/badge/badge.js +1 -1
- package/cdn/components/banner/banner.js +1 -1
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
- package/cdn/components/calendar/calendar.js +1 -1
- package/cdn/components/calendar/calendar.styles.js +1 -1
- package/cdn/components/callout/callout.js +1 -1
- package/cdn/components/callout/callout.styles.js +1 -1
- package/cdn/components/card/card.js +1 -1
- package/cdn/components/card-content/card-content.js +1 -1
- package/cdn/components/card-nav/card-nav.js +1 -1
- package/cdn/components/card-nav-accordion/card-nav-accordion.js +1 -1
- package/cdn/components/card-nav-item/card-nav-item.js +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/checkbox-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/combobox/combobox.js +1 -1
- package/cdn/components/copy-button/copy-button.js +1 -1
- package/cdn/components/copy-button/copy-button.styles.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/drawer/drawer.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/fieldset/fieldset.js +1 -1
- package/cdn/components/file-upload/file-upload.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.d.ts +0 -1
- package/cdn/components/filter-select/filter-select.js +1 -1
- package/cdn/components/footer/footer.js +1 -1
- package/cdn/components/footer-content-block/footer-content-block.js +1 -1
- package/cdn/components/footer-mandatory-mentions/footer-mandatory-mentions.js +1 -1
- package/cdn/components/footer-sitemap/footer-sitemap.js +1 -1
- package/cdn/components/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/input/input.js +1 -1
- package/cdn/components/input-amount/input-amount.js +1 -1
- package/cdn/components/input-date/input-date.js +1 -1
- package/cdn/components/input-mask/input-mask.js +1 -1
- package/cdn/components/input-mask/input-mask.utils.d.ts +0 -1
- package/cdn/components/input-mask/input-mask.utils.js +1 -1
- package/cdn/components/input-native/input-native.js +1 -1
- package/cdn/components/input-otp/input-otp.js +1 -1
- package/cdn/components/input-phone/input-phone.js +1 -1
- package/cdn/components/input-time/input-time.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/page-header/page-header.js +1 -1
- package/cdn/components/pagination/pagination.js +1 -1
- package/cdn/components/pagination-button/pagination-button.js +1 -1
- package/cdn/components/popup/popup.js +1 -1
- package/cdn/components/profile-button/profile-button.js +1 -1
- package/cdn/components/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/search/search.js +1 -1
- package/cdn/components/select/select.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/step/step.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-row/table-header-row.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/tooltip/tooltip.js +1 -1
- package/cdn/components/tree/tree.js +1 -1
- package/cdn/custom-elements.json +260 -326
- package/cdn/design-system.js +1 -1
- package/cdn/internal/slot.d.ts +0 -5
- package/cdn/internal/slot.js +0 -20
- package/cdn/internal/tabbable.d.ts +0 -8
- package/cdn/internal/tabbable.js +0 -12
- package/cdn/utilities/date.d.ts +0 -2
- package/cdn/utilities/date.js +1 -1
- package/cdn/utilities/storybook.js +1 -1
- package/cdn/vscode.html-custom-data.json +41 -41
- package/cdn/web-types.json +144 -163
- package/dist/chunks/{chunk.73XHVQNA.js → chunk.32T5435Z.js} +2 -2
- package/dist/chunks/{chunk.H5G2LRCX.js → chunk.32ZGNEEA.js} +6 -6
- package/dist/chunks/{chunk.TAMFIHNV.js → chunk.4DRUU356.js} +28 -36
- package/dist/chunks/{chunk.IQY2ZVAV.js → chunk.4EG67OAK.js} +2 -2
- package/dist/chunks/{chunk.QHNPNQXO.js → chunk.4TRXHBIO.js} +9 -11
- package/dist/chunks/{chunk.SEMHY47B.js → chunk.5GTWUU56.js} +1 -1
- package/dist/chunks/{chunk.LBLBASKK.js → chunk.623OV6KT.js} +1 -1
- package/dist/chunks/{chunk.X3H6MOUU.js → chunk.6XF7Y5OQ.js} +1 -1
- package/dist/chunks/{chunk.GSRQID3H.js → chunk.7AB3AL2Z.js} +2 -2
- package/dist/chunks/{chunk.M47YUO2L.js → chunk.A63V45OW.js} +1 -1
- package/dist/chunks/{chunk.ZSPNI52I.js → chunk.AEGKKYZ4.js} +1 -1
- package/dist/chunks/{chunk.5DVIZLXZ.js → chunk.AGQDJZXG.js} +2 -2
- package/dist/chunks/{chunk.SYQNO5B4.js → chunk.BADNDBKF.js} +1 -1
- package/dist/chunks/{chunk.ITBFUL7J.js → chunk.BBH5JFVX.js} +1 -1
- package/dist/chunks/{chunk.M347TELO.js → chunk.BJPQ42FM.js} +3 -3
- package/dist/chunks/{chunk.H7TB3KTK.js → chunk.BKW7OOII.js} +1 -1
- package/dist/chunks/{chunk.4IDR4RJI.js → chunk.CP3HQO7Z.js} +1 -1
- package/dist/chunks/{chunk.UBA2H662.js → chunk.DI4J6YRC.js} +1 -1
- package/dist/chunks/{chunk.3D7AGBFQ.js → chunk.DYV7U6UU.js} +0 -2
- package/dist/chunks/{chunk.JBFJWJUF.js → chunk.E6UAGCKS.js} +1 -1
- package/dist/chunks/{chunk.7HMEK2ND.js → chunk.E7CTAIEF.js} +1 -1
- package/dist/chunks/{chunk.PT2BKEDG.js → chunk.EC6ZMNDK.js} +1 -1
- package/dist/chunks/{chunk.RPPERQYB.js → chunk.ECHY7YBZ.js} +1 -1
- package/dist/chunks/{chunk.BZFZTT6Z.js → chunk.EH7ABWD6.js} +1 -1
- package/dist/chunks/{chunk.MOTDL3I3.js → chunk.ENRVP5HO.js} +5 -5
- package/dist/chunks/{chunk.Y4KCVPIC.js → chunk.EWAET5DR.js} +5 -5
- package/dist/chunks/{chunk.GYWU4AAB.js → chunk.EWO55RR2.js} +41 -49
- package/dist/chunks/{chunk.BIB7IJGE.js → chunk.FOZ6VW33.js} +2 -2
- package/dist/chunks/{chunk.AC6UE3V5.js → chunk.FV626ULR.js} +7 -6
- package/dist/chunks/{chunk.DEEMRWEE.js → chunk.H7FCKWK4.js} +11 -23
- package/dist/chunks/{chunk.ZUG2HYP5.js → chunk.HD75OK3X.js} +1 -1
- package/dist/chunks/{chunk.EX63QI6Z.js → chunk.HTBUOA43.js} +3 -3
- package/dist/chunks/{chunk.RJAOB66Y.js → chunk.HTSDHYY3.js} +4 -4
- package/dist/chunks/{chunk.KOO2JWHZ.js → chunk.HTXWT3CI.js} +1 -1
- package/dist/chunks/{chunk.ZDRQOJI6.js → chunk.IRJKFO7O.js} +3 -3
- package/dist/chunks/{chunk.C6BC46KV.js → chunk.JP47EKO5.js} +5 -5
- package/dist/chunks/{chunk.SYZVBVOX.js → chunk.KDDTJP4K.js} +1 -1
- package/dist/chunks/{chunk.ITFYDUMM.js → chunk.KR4VFINH.js} +1 -1
- package/dist/chunks/{chunk.PCTIMH5D.js → chunk.L365K634.js} +3 -3
- package/dist/chunks/{chunk.7PE2PORN.js → chunk.LB3ZEOQX.js} +2 -2
- package/dist/chunks/{chunk.LJ2VCS7Q.js → chunk.LKLBHDXL.js} +5 -2
- package/dist/chunks/{chunk.E2AA6JZR.js → chunk.LN4SRWKC.js} +1 -1
- package/dist/chunks/{chunk.SKY7526Z.js → chunk.LNSYUTNL.js} +1 -1
- package/dist/chunks/{chunk.JMA3VRB4.js → chunk.MMROE4ER.js} +2 -2
- package/dist/chunks/{chunk.RMOUFLCI.js → chunk.N6RV7TJA.js} +1 -1
- package/dist/chunks/{chunk.EPG5ZB4T.js → chunk.OMSTY3Y5.js} +2 -2
- package/dist/chunks/{chunk.BWP55AAX.js → chunk.OYJ4CG6J.js} +1 -1
- package/dist/chunks/{chunk.GOVTNZ72.js → chunk.PPNCR6KJ.js} +2 -2
- package/dist/chunks/{chunk.VTNFE6PI.js → chunk.QHW2OXLX.js} +1 -1
- package/dist/chunks/{chunk.N2V4KI76.js → chunk.QJC7AVKZ.js} +1 -1
- package/dist/chunks/{chunk.F4DMZGND.js → chunk.QM6A2OJ6.js} +2 -2
- package/dist/chunks/{chunk.WQMUNZSA.js → chunk.RANW22ZB.js} +2 -2
- package/dist/chunks/{chunk.Q6GPBRDV.js → chunk.RHRIPLA3.js} +1 -1
- package/dist/chunks/{chunk.U5AWZEM5.js → chunk.RTBQXZDB.js} +1 -1
- package/dist/chunks/{chunk.7WMOPNN5.js → chunk.SKYFDHVP.js} +5 -5
- package/dist/chunks/{chunk.RIJIUMG2.js → chunk.SPVKFHUZ.js} +5 -4
- package/dist/chunks/{chunk.MTRAJSQ5.js → chunk.SWIKAUKG.js} +4 -3
- package/dist/chunks/{chunk.XHZ5CCR7.js → chunk.SYWMXJ3H.js} +20 -18
- package/dist/chunks/{chunk.OYVF3HNG.js → chunk.TIM2RCEB.js} +0 -23
- package/dist/chunks/{chunk.H7QHCUBR.js → chunk.TKJ72YYU.js} +1 -1
- package/dist/chunks/{chunk.XCSAMBUB.js → chunk.TXZ4S7T7.js} +2 -2
- package/dist/chunks/{chunk.RLLACUYR.js → chunk.U73GKQGJ.js} +1 -1
- package/dist/chunks/{chunk.AL6PYL6U.js → chunk.UPMUUECF.js} +1 -1
- package/dist/chunks/{chunk.Y7UR2ZKQ.js → chunk.UR3NX4ST.js} +1 -1
- package/dist/chunks/{chunk.ABXTXNT4.js → chunk.USCIRPV5.js} +22 -19
- package/dist/chunks/{chunk.QLJNW3TZ.js → chunk.UXHQARJW.js} +1 -1
- package/dist/chunks/{chunk.MRGJKLE3.js → chunk.UZZ34Z5W.js} +25 -20
- package/dist/chunks/{chunk.IYGSQFGQ.js → chunk.VCO46TJT.js} +2 -2
- package/dist/chunks/{chunk.7EVHJ2OT.js → chunk.VPAEURPO.js} +40 -25
- package/dist/chunks/{chunk.DZLEAEG5.js → chunk.X7QQZ42A.js} +2 -2
- package/dist/chunks/{chunk.XGEWLFBF.js → chunk.X7RPGUOS.js} +3 -3
- package/dist/chunks/{chunk.N2XNANRE.js → chunk.XEHLIOJ2.js} +1 -1
- package/dist/chunks/{chunk.DJFSPHO4.js → chunk.XQ3BCGWA.js} +1 -1
- package/dist/chunks/{chunk.5ESJXERV.js → chunk.YKBHVARA.js} +1 -1
- package/dist/chunks/{chunk.RDHPV744.js → chunk.YSEIF6AP.js} +1 -1
- package/dist/chunks/{chunk.S4ZCJOC5.js → chunk.ZOFJITKA.js} +1 -1
- package/dist/chunks/{chunk.KGP2JSZ7.js → chunk.ZWZ72KXY.js} +1 -1
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/banner/banner.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/calendar/calendar.js +3 -3
- package/dist/components/calendar/calendar.styles.js +1 -1
- package/dist/components/callout/callout.js +2 -2
- package/dist/components/callout/callout.styles.js +1 -1
- package/dist/components/card/card.js +2 -2
- package/dist/components/card-content/card-content.js +2 -2
- package/dist/components/card-nav/card-nav.js +2 -2
- package/dist/components/card-nav-accordion/card-nav-accordion.js +2 -2
- package/dist/components/card-nav-item/card-nav-item.js +2 -2
- package/dist/components/checkbox/checkbox.js +3 -3
- package/dist/components/checkbox-button/checkbox-button.js +4 -4
- package/dist/components/checkbox-card/checkbox-card.js +3 -3
- package/dist/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/components/combobox/combobox.js +6 -6
- package/dist/components/copy-button/copy-button.js +4 -4
- package/dist/components/copy-button/copy-button.styles.js +1 -1
- package/dist/components/dialog/dialog.js +3 -3
- package/dist/components/drawer/drawer.js +3 -3
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +2 -2
- package/dist/components/fieldset/fieldset.js +2 -2
- package/dist/components/file-upload/file-upload.js +2 -2
- package/dist/components/filter-counter/filter-counter.js +16 -16
- package/dist/components/filter-date/filter-date.js +7 -7
- package/dist/components/filter-range/filter-range.js +16 -16
- package/dist/components/filter-select/filter-select.d.ts +0 -1
- package/dist/components/filter-select/filter-select.js +16 -16
- package/dist/components/footer/footer.js +2 -2
- package/dist/components/footer-content-block/footer-content-block.js +2 -2
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.js +2 -2
- package/dist/components/footer-sitemap/footer-sitemap.js +2 -2
- package/dist/components/header/header.js +2 -2
- package/dist/components/header-modern/header-modern.js +2 -2
- package/dist/components/header-search/header-search.js +3 -3
- package/dist/components/input/input.js +14 -14
- package/dist/components/input-amount/input-amount.js +5 -5
- package/dist/components/input-date/input-date.js +9 -9
- package/dist/components/input-mask/input-mask.js +5 -5
- package/dist/components/input-mask/input-mask.utils.d.ts +0 -1
- package/dist/components/input-mask/input-mask.utils.js +1 -3
- package/dist/components/input-native/input-native.js +4 -4
- package/dist/components/input-otp/input-otp.js +4 -4
- package/dist/components/input-phone/input-phone.js +10 -10
- package/dist/components/input-time/input-time.js +5 -5
- package/dist/components/menu-accordion/menu-accordion.js +4 -4
- package/dist/components/menu-item/menu-item.js +4 -4
- package/dist/components/menu-navigation/menu-navigation.js +6 -6
- package/dist/components/navbar-link/navbar-link.js +6 -6
- package/dist/components/navbar-menu/navbar-menu.js +3 -3
- package/dist/components/page-header/page-header.js +2 -2
- package/dist/components/pagination/pagination.js +16 -16
- package/dist/components/pagination-button/pagination-button.js +2 -2
- package/dist/components/popup/popup.js +1 -1
- package/dist/components/profile-button/profile-button.js +4 -4
- package/dist/components/radio-button/radio-button.js +4 -4
- package/dist/components/radio-card/radio-card.js +4 -4
- package/dist/components/radio-group/radio-group.js +2 -2
- package/dist/components/search/search.js +2 -2
- package/dist/components/select/select.js +6 -6
- package/dist/components/sidenav/sidenav.js +4 -4
- package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +5 -5
- package/dist/components/step/step.js +2 -2
- package/dist/components/table-caption/table-caption.js +2 -2
- package/dist/components/table-container/table-container.js +2 -2
- package/dist/components/table-header-row/table-header-row.js +8 -8
- package/dist/components/table-row/table-row.js +4 -4
- package/dist/components/tag/tag.js +3 -3
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +2 -2
- package/dist/custom-elements.json +260 -326
- package/dist/design-system.js +117 -117
- package/dist/internal/slot.d.ts +0 -5
- package/dist/internal/slot.js +0 -20
- package/dist/internal/tabbable.d.ts +0 -8
- package/dist/internal/tabbable.js +0 -12
- package/dist/utilities/date.d.ts +0 -2
- package/dist/utilities/date.js +1 -5
- package/dist/utilities/storybook.js +2 -2
- package/dist/vscode.html-custom-data.json +41 -41
- package/dist/web-types.json +144 -163
- package/package.json +1 -1
- package/cdn/chunks/chunk.6DVHKT6J.js +0 -56
- package/cdn/chunks/chunk.6XSWDZ3K.js +0 -42
- package/cdn/chunks/chunk.AU7QYOWT.js +0 -27
- package/cdn/chunks/chunk.GSE4BYLS.js +0 -38
- package/cdn/chunks/chunk.IFSGAJQ4.js +0 -1
- package/cdn/chunks/chunk.J34FMZ22.js +0 -20
- package/cdn/chunks/chunk.J5KWRJTH.js +0 -121
- package/cdn/chunks/chunk.RUMRXWLX.js +0 -65
- package/cdn/chunks/chunk.SXMGNTD4.js +0 -18
- package/cdn/chunks/chunk.U2HDZAQO.js +0 -23
- package/cdn/components/include/request.d.ts +0 -8
- package/cdn/components/include/request.js +0 -1
- package/cdn/components/table/types.d.ts +0 -5
- package/cdn/components/table/types.js +0 -1
- package/cdn/events/dsa-focus-in.d.ts +0 -7
- package/cdn/events/dsa-focus-in.js +0 -1
- package/cdn/events/dsa-focus-out.d.ts +0 -7
- package/cdn/events/dsa-focus-out.js +0 -1
- package/cdn/translations/en-gb.d.ts +0 -3
- package/cdn/translations/en-gb.js +0 -1
- package/dist/components/include/request.d.ts +0 -8
- package/dist/components/include/request.js +0 -24
- package/dist/components/table/types.d.ts +0 -5
- package/dist/components/table/types.js +0 -12
- package/dist/events/dsa-focus-in.d.ts +0 -7
- package/dist/events/dsa-focus-in.js +0 -1
- package/dist/events/dsa-focus-out.d.ts +0 -7
- package/dist/events/dsa-focus-out.js +0 -1
- package/dist/translations/en-gb.d.ts +0 -3
- package/dist/translations/en-gb.js +0 -21
- package/dist/chunks/{chunk.STZAPPWR.js → chunk.7Y2PLLDT.js} +0 -0
- package/dist/chunks/{chunk.YIY5RM53.js → chunk.XMFD37RX.js} +0 -0
- package/dist/chunks/{chunk.Z4TGH2YA.js → chunk.XSZCCDGA.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Modal
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.7Y2PLLDT.js";
|
|
4
4
|
import {
|
|
5
5
|
lockBodyScrolling,
|
|
6
6
|
unlockBodyScrolling
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk.M55HS2NY.js";
|
|
11
11
|
import {
|
|
12
12
|
HasSlotController
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.XMFD37RX.js";
|
|
14
14
|
import {
|
|
15
15
|
DSAIconButton
|
|
16
16
|
} from "./chunk.2GTXVMMC.js";
|
|
@@ -87,10 +87,11 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
87
87
|
});
|
|
88
88
|
if (this.noCloseButton) dsaRequestClose.preventDefault();
|
|
89
89
|
if (dsaRequestClose.defaultPrevented) {
|
|
90
|
+
const { localize, panel } = this;
|
|
90
91
|
const animation = getAnimation(this, "dialog.denyClose", {
|
|
91
|
-
dir:
|
|
92
|
+
dir: localize.dir()
|
|
92
93
|
});
|
|
93
|
-
animateTo(
|
|
94
|
+
animateTo(panel, animation.keyframes, animation.options);
|
|
94
95
|
return;
|
|
95
96
|
}
|
|
96
97
|
this.hide();
|
|
@@ -103,10 +104,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
103
104
|
}
|
|
104
105
|
handleDocumentKeyDown(event) {
|
|
105
106
|
if (this.open && this.modal.isActive() && event.key === "Escape") {
|
|
106
|
-
const
|
|
107
|
-
const isTooltipOpen = Array.from(tooltipChildren).some(
|
|
108
|
-
(tooltip) => tooltip.open
|
|
109
|
-
);
|
|
107
|
+
const isTooltipOpen = !!this.querySelector("dsa-tooltip[open]");
|
|
110
108
|
if (!isTooltipOpen) {
|
|
111
109
|
event.stopPropagation();
|
|
112
110
|
this.requestClose("keyboard");
|
|
@@ -119,16 +117,14 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
119
117
|
this.addOpenListeners();
|
|
120
118
|
this.originalTrigger = document.activeElement;
|
|
121
119
|
this.modal.activate();
|
|
120
|
+
const { dialog, panel, overlay, localize } = this;
|
|
122
121
|
lockBodyScrolling(this);
|
|
123
122
|
const autoFocusTarget = this.querySelector("[autofocus]");
|
|
124
123
|
if (autoFocusTarget) {
|
|
125
124
|
autoFocusTarget.removeAttribute("autofocus");
|
|
126
125
|
}
|
|
127
|
-
await Promise.all([
|
|
128
|
-
|
|
129
|
-
stopAnimations(this.overlay)
|
|
130
|
-
]);
|
|
131
|
-
this.dialog.hidden = false;
|
|
126
|
+
await Promise.all([stopAnimations(dialog), stopAnimations(overlay)]);
|
|
127
|
+
dialog.hidden = false;
|
|
132
128
|
requestAnimationFrame(() => {
|
|
133
129
|
const dsaInitialFocus = this.emit("dsa-initial-focus", {
|
|
134
130
|
cancelable: true
|
|
@@ -139,7 +135,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
139
135
|
preventScroll: true
|
|
140
136
|
});
|
|
141
137
|
} else {
|
|
142
|
-
|
|
138
|
+
panel.focus({ preventScroll: true });
|
|
143
139
|
}
|
|
144
140
|
}
|
|
145
141
|
if (autoFocusTarget) {
|
|
@@ -147,15 +143,15 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
147
143
|
}
|
|
148
144
|
});
|
|
149
145
|
const panelAnimation = getAnimation(this, "dialog.show", {
|
|
150
|
-
dir:
|
|
146
|
+
dir: localize.dir()
|
|
151
147
|
});
|
|
152
148
|
const overlayAnimation = getAnimation(this, "dialog.overlay.show", {
|
|
153
|
-
dir:
|
|
149
|
+
dir: localize.dir()
|
|
154
150
|
});
|
|
155
151
|
await Promise.all([
|
|
156
|
-
animateTo(
|
|
152
|
+
animateTo(panel, panelAnimation.keyframes, panelAnimation.options),
|
|
157
153
|
animateTo(
|
|
158
|
-
|
|
154
|
+
overlay,
|
|
159
155
|
overlayAnimation.keyframes,
|
|
160
156
|
overlayAnimation.options
|
|
161
157
|
)
|
|
@@ -165,35 +161,31 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
165
161
|
this.emit("dsa-hide");
|
|
166
162
|
this.removeOpenListeners();
|
|
167
163
|
this.modal.deactivate();
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
stopAnimations(this.overlay)
|
|
171
|
-
]);
|
|
164
|
+
const { dialog, panel, overlay, localize } = this;
|
|
165
|
+
await Promise.all([stopAnimations(dialog), stopAnimations(overlay)]);
|
|
172
166
|
const panelAnimation = getAnimation(this, "dialog.hide", {
|
|
173
|
-
dir:
|
|
167
|
+
dir: localize.dir()
|
|
174
168
|
});
|
|
175
169
|
const overlayAnimation = getAnimation(this, "dialog.overlay.hide", {
|
|
176
|
-
dir:
|
|
170
|
+
dir: localize.dir()
|
|
177
171
|
});
|
|
178
172
|
await Promise.all([
|
|
179
173
|
animateTo(
|
|
180
|
-
|
|
174
|
+
overlay,
|
|
181
175
|
overlayAnimation.keyframes,
|
|
182
176
|
overlayAnimation.options
|
|
183
177
|
).then(() => {
|
|
184
|
-
|
|
178
|
+
overlay.hidden = true;
|
|
185
179
|
}),
|
|
186
|
-
animateTo(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
)
|
|
191
|
-
this.panel.hidden = true;
|
|
192
|
-
})
|
|
180
|
+
animateTo(panel, panelAnimation.keyframes, panelAnimation.options).then(
|
|
181
|
+
() => {
|
|
182
|
+
panel.hidden = true;
|
|
183
|
+
}
|
|
184
|
+
)
|
|
193
185
|
]);
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
186
|
+
dialog.hidden = true;
|
|
187
|
+
overlay.hidden = false;
|
|
188
|
+
panel.hidden = false;
|
|
197
189
|
unlockBodyScrolling(this);
|
|
198
190
|
const trigger = this.originalTrigger;
|
|
199
191
|
if (typeof (trigger == null ? void 0 : trigger.focus) === "function") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callout_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ENRVP5HO.js";
|
|
4
4
|
import {
|
|
5
5
|
ShoelaceElement
|
|
6
6
|
} from "./chunk.SVWU6JW4.js";
|
|
@@ -20,29 +20,27 @@ var DSACallout = class extends ShoelaceElement {
|
|
|
20
20
|
this.calloutTitle = "";
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
+
const { calloutTitle, title, headerLevel } = this;
|
|
24
|
+
const label = calloutTitle || title;
|
|
23
25
|
return html`
|
|
24
26
|
<div
|
|
25
27
|
part="base"
|
|
26
28
|
class=${classMap({
|
|
27
29
|
callout: true
|
|
28
30
|
})}
|
|
29
|
-
role=${ifDefined(
|
|
30
|
-
|
|
31
|
-
)}
|
|
32
|
-
aria-labelledby=${ifDefined(
|
|
33
|
-
this.calloutTitle || this.title ? "header" : void 0
|
|
34
|
-
)}
|
|
31
|
+
role=${ifDefined(label ? "region" : void 0)}
|
|
32
|
+
aria-labelledby=${ifDefined(label ? "header" : void 0)}
|
|
35
33
|
>
|
|
36
34
|
<div class="callout__text">
|
|
37
|
-
${
|
|
35
|
+
${label ? html`
|
|
38
36
|
<div
|
|
39
37
|
part="header"
|
|
40
38
|
id="header"
|
|
41
|
-
aria-level=${ifDefined(
|
|
42
|
-
role=${ifDefined(
|
|
39
|
+
aria-level=${ifDefined(headerLevel)}
|
|
40
|
+
role=${ifDefined(headerLevel ? "heading" : void 0)}
|
|
43
41
|
class="callout__title"
|
|
44
42
|
>
|
|
45
|
-
${
|
|
43
|
+
${label}
|
|
46
44
|
</div>
|
|
47
45
|
` : ""}
|
|
48
46
|
<slot part="message" class="callout__message"></slot>
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./chunk.IONY2GZF.js";
|
|
9
9
|
import {
|
|
10
10
|
InputBase
|
|
11
|
-
} from "./chunk.
|
|
11
|
+
} from "./chunk.E7CTAIEF.js";
|
|
12
12
|
import {
|
|
13
13
|
DSAPopup
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.EWO55RR2.js";
|
|
15
15
|
import {
|
|
16
16
|
scrollIntoView
|
|
17
17
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk.QWPEXQZX.js";
|
|
4
4
|
import {
|
|
5
5
|
DSATooltip
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.DI4J6YRC.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController,
|
|
9
9
|
getTextContent
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.XMFD37RX.js";
|
|
11
11
|
import {
|
|
12
12
|
ifDefinedAndNotEmpty
|
|
13
13
|
} from "./chunk.ZQJVCRB2.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.IJYHCSO5.js";
|
|
4
4
|
import {
|
|
5
5
|
FilterBase
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.HTXWT3CI.js";
|
|
7
7
|
import {
|
|
8
8
|
DSACalendar
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.UZZ34Z5W.js";
|
|
10
10
|
import {
|
|
11
11
|
formatDateRange,
|
|
12
12
|
getDateFromISO,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getLocaleDateFromISO,
|
|
15
15
|
isValidDate,
|
|
16
16
|
parseDateRange
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.TIM2RCEB.js";
|
|
18
18
|
import {
|
|
19
19
|
DSAButton
|
|
20
20
|
} from "./chunk.2G35OVLZ.js";
|
|
@@ -5,7 +5,6 @@ var specialCharMatcher = /[^a-zA-Z0-9#?_]/;
|
|
|
5
5
|
var alphaCharPattern = /[A-Z]/i;
|
|
6
6
|
var digitCharPattern = /\d/;
|
|
7
7
|
var maskCharsCache = /* @__PURE__ */ new Map();
|
|
8
|
-
var normalCharPattern = /^[_A-z0-9]*((-)*[_A-z0-9])*$/;
|
|
9
8
|
var maskOptions = {
|
|
10
9
|
allChar: "_",
|
|
11
10
|
numericChar: "#dDmMyYaA09",
|
|
@@ -251,7 +250,6 @@ var NIRTestValues = ["187089932132113"];
|
|
|
251
250
|
|
|
252
251
|
export {
|
|
253
252
|
specialCharPattern,
|
|
254
|
-
normalCharPattern,
|
|
255
253
|
maskOptions,
|
|
256
254
|
stripSpecialChars,
|
|
257
255
|
rawValueToMaskedValue,
|
|
@@ -27,14 +27,14 @@ var callout_styles_default = css`
|
|
|
27
27
|
background-color: var(--dsa-wc-callout-default-background-color);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.callout__title
|
|
31
|
-
|
|
30
|
+
.callout__title,
|
|
31
|
+
.callout__message {
|
|
32
32
|
overflow-wrap: break-word;
|
|
33
|
-
color: var(--dsa-wc-callout-title-color);
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
.
|
|
37
|
-
|
|
35
|
+
.callout__title {
|
|
36
|
+
font: var(--dsa-wc-callout-title-font);
|
|
37
|
+
color: var(--dsa-wc-callout-title-color);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.callout__text {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
input_mask_styles_default
|
|
3
|
+
} from "./chunk.VDZUSRNI.js";
|
|
1
4
|
import {
|
|
2
5
|
buildValidityState,
|
|
3
6
|
maskedValueToRawValue,
|
|
4
7
|
rawValueToMaskedValue,
|
|
5
8
|
renderMaskOverlay,
|
|
6
9
|
stripSpecialChars
|
|
7
|
-
} from "./chunk.
|
|
8
|
-
import {
|
|
9
|
-
input_mask_styles_default
|
|
10
|
-
} from "./chunk.VDZUSRNI.js";
|
|
10
|
+
} from "./chunk.DYV7U6UU.js";
|
|
11
11
|
import {
|
|
12
12
|
InputBase
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.E7CTAIEF.js";
|
|
14
14
|
import {
|
|
15
15
|
DSAIconButton
|
|
16
16
|
} from "./chunk.2GTXVMMC.js";
|
|
@@ -45,9 +45,10 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
45
45
|
this.autoSizePadding = 0;
|
|
46
46
|
this.hoverBridge = false;
|
|
47
47
|
this.updateHoverBridge = () => {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const
|
|
48
|
+
const { anchorEl, popup, style } = this;
|
|
49
|
+
if (this.hoverBridge && anchorEl) {
|
|
50
|
+
const anchorRect = anchorEl.getBoundingClientRect();
|
|
51
|
+
const popupRect = popup.getBoundingClientRect();
|
|
51
52
|
const isVertical = this.placement.includes("top") || this.placement.includes("bottom");
|
|
52
53
|
let topLeftX = 0;
|
|
53
54
|
let topLeftY = 0;
|
|
@@ -98,26 +99,14 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
98
99
|
bottomRightY = anchorRect.bottom;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
);
|
|
109
|
-
this.style.setProperty(
|
|
110
|
-
"--hover-bridge-bottom-left-y",
|
|
111
|
-
`${bottomLeftY}px`
|
|
112
|
-
);
|
|
113
|
-
this.style.setProperty(
|
|
114
|
-
"--hover-bridge-bottom-right-x",
|
|
115
|
-
`${bottomRightX}px`
|
|
116
|
-
);
|
|
117
|
-
this.style.setProperty(
|
|
118
|
-
"--hover-bridge-bottom-right-y",
|
|
119
|
-
`${bottomRightY}px`
|
|
120
|
-
);
|
|
102
|
+
style.setProperty("--hover-bridge-top-left-x", `${topLeftX}px`);
|
|
103
|
+
style.setProperty("--hover-bridge-top-left-y", `${topLeftY}px`);
|
|
104
|
+
style.setProperty("--hover-bridge-top-right-x", `${topRightX}px`);
|
|
105
|
+
style.setProperty("--hover-bridge-top-right-y", `${topRightY}px`);
|
|
106
|
+
style.setProperty("--hover-bridge-bottom-left-x", `${bottomLeftX}px`);
|
|
107
|
+
style.setProperty("--hover-bridge-bottom-left-y", `${bottomLeftY}px`);
|
|
108
|
+
style.setProperty("--hover-bridge-bottom-right-x", `${bottomRightX}px`);
|
|
109
|
+
style.setProperty("--hover-bridge-bottom-right-y", `${bottomRightY}px`);
|
|
121
110
|
}
|
|
122
111
|
};
|
|
123
112
|
}
|
|
@@ -195,6 +184,7 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
195
184
|
if (!this.active || !this.anchorEl) {
|
|
196
185
|
return;
|
|
197
186
|
}
|
|
187
|
+
const { anchorEl, popup, arrowEl, style } = this;
|
|
198
188
|
const middleware = [
|
|
199
189
|
// The offset middleware goes first
|
|
200
190
|
offset({ mainAxis: this.distance, crossAxis: this.skidding })
|
|
@@ -205,14 +195,14 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
205
195
|
apply: ({ rects }) => {
|
|
206
196
|
const syncWidth = this.sync === "width" || this.sync === "both";
|
|
207
197
|
const syncHeight = this.sync === "height" || this.sync === "both";
|
|
208
|
-
|
|
209
|
-
|
|
198
|
+
popup.style.width = syncWidth ? `${rects.reference.width}px` : "";
|
|
199
|
+
popup.style.height = syncHeight ? `${rects.reference.height}px` : "";
|
|
210
200
|
}
|
|
211
201
|
})
|
|
212
202
|
);
|
|
213
203
|
} else {
|
|
214
|
-
|
|
215
|
-
|
|
204
|
+
popup.style.width = "";
|
|
205
|
+
popup.style.height = "";
|
|
216
206
|
}
|
|
217
207
|
if (this.flip) {
|
|
218
208
|
middleware.push(
|
|
@@ -240,38 +230,38 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
240
230
|
padding: this.autoSizePadding,
|
|
241
231
|
apply: ({ availableWidth, availableHeight }) => {
|
|
242
232
|
if (this.autoSize === "vertical" || this.autoSize === "both") {
|
|
243
|
-
|
|
233
|
+
style.setProperty(
|
|
244
234
|
"--auto-size-available-height",
|
|
245
235
|
`${availableHeight}px`
|
|
246
236
|
);
|
|
247
237
|
} else {
|
|
248
|
-
|
|
238
|
+
style.removeProperty("--auto-size-available-height");
|
|
249
239
|
}
|
|
250
240
|
if (this.autoSize === "horizontal" || this.autoSize === "both") {
|
|
251
|
-
|
|
241
|
+
style.setProperty(
|
|
252
242
|
"--auto-size-available-width",
|
|
253
243
|
`${availableWidth}px`
|
|
254
244
|
);
|
|
255
245
|
} else {
|
|
256
|
-
|
|
246
|
+
style.removeProperty("--auto-size-available-width");
|
|
257
247
|
}
|
|
258
248
|
}
|
|
259
249
|
})
|
|
260
250
|
);
|
|
261
251
|
} else {
|
|
262
|
-
|
|
263
|
-
|
|
252
|
+
style.removeProperty("--auto-size-available-width");
|
|
253
|
+
style.removeProperty("--auto-size-available-height");
|
|
264
254
|
}
|
|
265
255
|
if (this.arrow) {
|
|
266
256
|
middleware.push(
|
|
267
257
|
arrow({
|
|
268
|
-
element:
|
|
258
|
+
element: arrowEl,
|
|
269
259
|
padding: this.arrowPadding
|
|
270
260
|
})
|
|
271
261
|
);
|
|
272
262
|
}
|
|
273
263
|
const getOffsetParent = this.strategy === "absolute" ? (element) => platform.getOffsetParent(element, offsetParent) : platform.getOffsetParent;
|
|
274
|
-
computePosition(
|
|
264
|
+
computePosition(anchorEl, popup, {
|
|
275
265
|
placement: this.placement,
|
|
276
266
|
middleware,
|
|
277
267
|
strategy: this.strategy,
|
|
@@ -287,35 +277,36 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
287
277
|
left: "right"
|
|
288
278
|
}[placement.split("-")[0]];
|
|
289
279
|
this.setAttribute("data-current-placement", placement);
|
|
290
|
-
Object.assign(
|
|
280
|
+
Object.assign(popup.style, {
|
|
291
281
|
left: `${x}px`,
|
|
292
282
|
top: `${y}px`
|
|
293
283
|
});
|
|
294
284
|
if (this.arrow) {
|
|
285
|
+
const { arrowPadding, arrowPlacement } = this;
|
|
295
286
|
const arrowX = middlewareData.arrow.x;
|
|
296
287
|
const arrowY = middlewareData.arrow.y;
|
|
297
288
|
let top = "";
|
|
298
289
|
let right = "";
|
|
299
290
|
let bottom = "";
|
|
300
291
|
let left = "";
|
|
301
|
-
if (
|
|
302
|
-
const value = typeof arrowX === "number" ? `calc(${
|
|
303
|
-
top = typeof arrowY === "number" ? `calc(${
|
|
292
|
+
if (arrowPlacement === "start") {
|
|
293
|
+
const value = typeof arrowX === "number" ? `calc(${arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
294
|
+
top = typeof arrowY === "number" ? `calc(${arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
304
295
|
right = isRtl ? value : "";
|
|
305
296
|
left = isRtl ? "" : value;
|
|
306
|
-
} else if (
|
|
307
|
-
const value = typeof arrowX === "number" ? `calc(${
|
|
297
|
+
} else if (arrowPlacement === "end") {
|
|
298
|
+
const value = typeof arrowX === "number" ? `calc(${arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
308
299
|
right = isRtl ? "" : value;
|
|
309
300
|
left = isRtl ? value : "";
|
|
310
|
-
bottom = typeof arrowY === "number" ? `calc(${
|
|
311
|
-
} else if (
|
|
301
|
+
bottom = typeof arrowY === "number" ? `calc(${arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
302
|
+
} else if (arrowPlacement === "center") {
|
|
312
303
|
left = typeof arrowX === "number" ? `calc(50% - var(--arrow-size-diagonal))` : "";
|
|
313
304
|
top = typeof arrowY === "number" ? `calc(50% - var(--arrow-size-diagonal))` : "";
|
|
314
305
|
} else {
|
|
315
306
|
left = typeof arrowX === "number" ? `${arrowX}px` : "";
|
|
316
307
|
top = typeof arrowY === "number" ? `${arrowY}px` : "";
|
|
317
308
|
}
|
|
318
|
-
Object.assign(
|
|
309
|
+
Object.assign(arrowEl.style, {
|
|
319
310
|
top,
|
|
320
311
|
right,
|
|
321
312
|
bottom,
|
|
@@ -328,6 +319,7 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
328
319
|
this.emit("dsa-reposition");
|
|
329
320
|
}
|
|
330
321
|
render() {
|
|
322
|
+
const { active, strategy, arrow: hasArrow, hoverBridge } = this;
|
|
331
323
|
return html`
|
|
332
324
|
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
333
325
|
|
|
@@ -335,7 +327,7 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
335
327
|
part="hover-bridge"
|
|
336
328
|
class=${classMap({
|
|
337
329
|
"popup-hover-bridge": true,
|
|
338
|
-
"popup-hover-bridge--visible":
|
|
330
|
+
"popup-hover-bridge--visible": hoverBridge && active
|
|
339
331
|
})}
|
|
340
332
|
></span>
|
|
341
333
|
|
|
@@ -343,13 +335,13 @@ var DSAPopup = class extends ShoelaceElement {
|
|
|
343
335
|
part="popup"
|
|
344
336
|
class=${classMap({
|
|
345
337
|
popup: true,
|
|
346
|
-
"popup--active":
|
|
347
|
-
"popup--fixed":
|
|
348
|
-
"popup--has-arrow":
|
|
338
|
+
"popup--active": active,
|
|
339
|
+
"popup--fixed": strategy === "fixed",
|
|
340
|
+
"popup--has-arrow": hasArrow
|
|
349
341
|
})}
|
|
350
342
|
>
|
|
351
343
|
<slot></slot>
|
|
352
|
-
${
|
|
344
|
+
${hasArrow ? html`<div
|
|
353
345
|
part="arrow"
|
|
354
346
|
class="popup__arrow"
|
|
355
347
|
role="presentation"
|