@ds-autonomie/web-components 2.21.0 → 2.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/cdn/chunks/{chunk.5VZFKPSK.js → chunk.24NXLHSI.js} +1 -1
- 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.OX4H5VZP.js → chunk.3Q73BJS5.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.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.J5KWRJTH.js → chunk.DLQV224B.js} +1 -1
- package/cdn/chunks/{chunk.GHH7XYKB.js → chunk.DOFWGC23.js} +1 -1
- package/cdn/chunks/chunk.DQCCNCWD.js +56 -0
- package/cdn/chunks/{chunk.6DSY52TF.js → chunk.DYFOZ46Z.js} +1 -1
- package/cdn/chunks/chunk.E2MXTZP6.js +65 -0
- 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.4HFX2WWN.js → chunk.UKO4J7PG.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.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 +1 -61
- 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/web-types.json +1 -16
- 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.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.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.DEEMRWEE.js → chunk.FTIQ3KCK.js} +4 -4
- package/dist/chunks/{chunk.AC6UE3V5.js → chunk.FV626ULR.js} +7 -6
- 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.M347TELO.js → chunk.RKGIZ4JZ.js} +5 -5
- 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.IQY2ZVAV.js → chunk.YOK7OXBS.js} +5 -5
- 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 +17 -17
- package/dist/components/filter-date/filter-date.js +8 -8
- package/dist/components/filter-range/filter-range.js +16 -16
- package/dist/components/filter-select/filter-select.js +17 -17
- 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 +1 -1
- package/dist/custom-elements.json +1 -61
- package/dist/design-system.js +134 -134
- 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/web-types.json +1 -16
- 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.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 2.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dc2b10d: calendar : application des bonnes pratiques d'écoconception
|
|
8
|
+
- e1c3414: callout : application des bonnes pratiques d'écoconception
|
|
9
|
+
- 8fb2efa: card, card-content, card-nav, card-nav-accordion, card-nav-item : application des bonnes pratiques d'écoconception
|
|
10
|
+
- af3834a: copy-button : application des bonnes pratiques d'écoconception
|
|
11
|
+
- 33a6771: dialog, popup : application des bonnes pratiques d'écoconception
|
|
12
|
+
- 32b11ec: utilitaires et composants : suppression des exports et fichiers non utilisés (RWEB-0001)
|
|
13
|
+
|
|
3
14
|
## 2.21.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as y}from"./chunk.YQETGEXV.js";import{a as O}from"./chunk.WADWJFMR.js";import{a as I}from"./chunk.2TZ4LFPJ.js";import{a as T}from"./chunk.ONUDFMLG.js";import{a as $,b as D,c as E,d as u,f as l,g as x}from"./chunk.NHMFB7ET.js";import{a as L}from"./chunk.W6E7LGND.js";import{a as _}from"./chunk.2FPBPQUJ.js";import{a as v}from"./chunk.B4KFHYLS.js";import{a as m}from"./chunk.NIRNX67K.js";import{c as w}from"./chunk.AM2ZR2Y2.js";import{a as h}from"./chunk.2RF4WD6T.js";import{d as f}from"./chunk.ZBHHLRFH.js";import{a as g}from"./chunk.BWEPOOQP.js";import{a as S,b as r,c as p,d as o}from"./chunk.KBZ32KWP.js";import{a as d}from"./chunk.GP725TPQ.js";import{a as B,b as C,f as e}from"./chunk.IZ2HVRME.js";var t=class extends y{constructor(){super(...arguments);this.isIconButtonFocused=!1;this.isStartDateValid=!0;this.isEndDateValid=!0;this.value="";this.buttonLabel="";this.range=!1;this.placeholder="";this.hideCalendarButton=!1}connectedCallback(){super.connectedCallback(),this.handleSelectedDate=this.handleSelectedDate.bind(this),this.shouldDisableDate=this.shouldDisableDate.bind(this),this.handleLangChange(),this.currentLocale=this.lang||this.localize.lang()}firstUpdated(){super.firstUpdated(),this.updateComplete.then(()=>{!this.drawer&&this.filterTrigger&&this.filterTrigger.button.setAttribute("aria-expanded","false")})}handleSelectedDate(a){let{detail:i}=a;(!this.range||i.dates.length!==1)&&(this.value=i.dates.map(s=>E(s)).join(","),this.drawer||(this.hide(),this.filterTrigger.focus()),this.emit("dsa-change"))}addOpenListeners(){super.addOpenListeners(),this.addEventListener("dsa-date-selected",this.handleSelectedDate)}removeOpenListeners(){super.removeOpenListeners(),this.removeEventListener("dsa-date-selected",this.handleSelectedDate)}handleChange(){var b,n;let a="",i="";this.isStartDateValid=this.filterInputStart.validity.valid,this.isEndDateValid=(n=(b=this.filterInputEnd)==null?void 0:b.validity.valid)!=null?n:!0;let s=D(this.filterInputStart.value)&&u(this.filterInputStart.value);if(s&&this.shouldDisableDate(s)&&(this.isStartDateValid=!1),a=this.filterInputStart.value,this.range){let c=D(this.filterInputEnd.value)&&u(this.filterInputEnd.value);(c&&this.shouldDisableDate(c)||s&&c<s)&&(this.isEndDateValid=!1),i=this.filterInputEnd.value}this.errorMessages=[...this.isStartDateValid?[]:[this.localize.term(this.range?"invalidStartDate":"invalidDate")],...this.isEndDateValid?[]:[this.localize.term("invalidEndDate")]],this.value=this.range?x(a,i):a,this.emit("dsa-change")}handleChangeInDrawer(){var a,i;this.value=(i=(a=this.drawerFilter)==null?void 0:a.value)!=null?i:""}handleIconButtonFocus(){this.isIconButtonFocused=!0,this.emit("dsa-focus")}handleIconButtonBlur(){this.isIconButtonFocused=!1,this.emit("dsa-blur")}handleReset(){this.value="",this.drawerFilter.filterInputStart.clear(),this.drawerFilter.filterInputEnd.clear(),this.errorMessages=[],this.drawerFilter.filterInputStart.focus({preventScroll:!0}),this.emit("dsa-change")}getFullDateFromISO(a){return u(a).toLocaleDateString(this.lang||this.localize.lang(),{year:"numeric",month:"long",day:"numeric"})}getDescriptionText(a){let i=this.errorMessages.join(", "),s="";if(this.value!=="")if(a==="calendarButton"&&this.range){let n=l(this.value)[0],c=l(this.value)[1];s=`${this.localize.term("selectedDates")}${this.getFullDateFromISO(n)} - ${this.getFullDateFromISO(c)}`}else{let n="";a==="end"?n=l(this.value)[1]:n=this.range?l(this.value)[0]:this.value,s=`${this.localize.term("selectedDate")}${this.getFullDateFromISO(n)}`}return[...this.errorMessages.length>0?[i]:[],...this.value?[s]:[]].join(", ")}shouldDisableDate(a){let i=typeof this.min=="string"&&a<u(this.min),s=typeof this.max=="string"&&a>u(this.max);return i||s}handleFilterDateOpenChange(){this.drawer||(this.open?this.filterTrigger.button.setAttribute("aria-expanded","true"):this.filterTrigger.button.setAttribute("aria-expanded","false"))}handleLangChange(){this.currentLocale=this.lang||this.localize.lang()}handleHideCalendarButtonChange(){!this.drawer&&this.hideCalendarButton&&this.hide()}renderTrigger(){var i;if(this.label||v("<dsa-filter-date> require a label attribute for accessibility"),this.buttonLabel||v("<dsa-filter-date> require a button-label attribute for accessibility"),this.drawer){let s=this.value?`
|
|
2
2
|
${$(this.range?l(this.value)[0]:this.value,this.currentLocale)}
|
|
3
3
|
${this.range?" - ":""}
|
|
4
4
|
${this.range?$(l(this.value)[1],this.currentLocale):""}`:"";return d` <dsa-filter-button
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as v}from"./chunk.5OHTEVHW.js";import{a as f,c as g}from"./chunk.W2H63I6U.js";import{a as p}from"./chunk.
|
|
1
|
+
import{a as v}from"./chunk.5OHTEVHW.js";import{a as f,c as g}from"./chunk.W2H63I6U.js";import{a as p}from"./chunk.ODDQO2HD.js";import{c as m}from"./chunk.Q54GPNUS.js";import{b as l,c as n}from"./chunk.QTD6NQFL.js";import{d as s}from"./chunk.ZBHHLRFH.js";import{a as o}from"./chunk.BWEPOOQP.js";import{a as h,b as r,d,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,"external-links","second-logo","site-name","baseline","search","navbar");this.localize=new m(this);this.firstLogo="public";this.logoHref="/";this.logoSize="default";this.searchExpanded=!1;this.mobile=!1}connectedCallback(){super.connectedCallback(),this.handleSearchExpandEvent=this.handleSearchExpandEvent.bind(this),this.handleSearchCollapseEvent=this.handleSearchCollapseEvent.bind(this),this.addEventListener("dsa-expand",this.handleSearchExpandEvent),this.addEventListener("dsa-collapse",this.handleSearchCollapseEvent)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dsa-expand",this.handleSearchExpandEvent),this.removeEventListener("dsa-collapse",this.handleSearchCollapseEvent)}handleSearchExpandEvent(){this.searchExpanded=!0}handleSearchCollapseEvent(){this.searchExpanded=!1}getFirtLogo(){return this.firstLogo==="pro"?g(this.localize.term("spaGoToHomepage")):f(this.localize.term("cnsaGoToHomepage"))}getHeaderSearch(){return this.hasSlotController.test("search")?this.querySelector("dsa-header-search"):null}handleSearchExpanded(){let a=this.getHeaderSearch();a&&(this.searchExpanded?l(a,"expanded","true"):n(a,"expanded"))}handleMobile(){let a=this.getHeaderSearch();a&&(this.mobile?l(a,"mobile","true"):n(a,"mobile"))}render(){let a=this.hasSlotController.test("second-logo")||this.hasSlotController.test("site-name");return i`
|
|
2
2
|
<header
|
|
3
3
|
part="base"
|
|
4
4
|
role="banner"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m}from"./chunk.O5EYVQYT.js";import{a as f}from"./chunk.
|
|
1
|
+
import{a as m}from"./chunk.O5EYVQYT.js";import{a as f}from"./chunk.ODDQO2HD.js";import{c as p}from"./chunk.Q54GPNUS.js";import{c as n}from"./chunk.AM2ZR2Y2.js";import{a as i}from"./chunk.2RF4WD6T.js";import{d as l}from"./chunk.ZBHHLRFH.js";import{a,b as s,f as o}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends o{constructor(){super(...arguments);this.localize=new p(this);this.hasSlotController=new f(this,"prefix","suffix");this.rel="noreferrer noopener"}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}render(){let c=!!this.href;return r`
|
|
2
2
|
<div
|
|
3
3
|
part="base"
|
|
4
4
|
class=${l({"breadcrumb-item":!0,"breadcrumb-item--has-prefix":this.hasSlotController.test("prefix"),"breadcrumb-item--has-suffix":this.hasSlotController.test("suffix")})}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as C}from"./chunk.WQIMDJJX.js";import{a as E}from"./chunk.MMVWNVZX.js";import{a as f}from"./chunk.
|
|
1
|
+
import{a as C}from"./chunk.WQIMDJJX.js";import{a as E}from"./chunk.MMVWNVZX.js";import{a as f}from"./chunk.GI2AQXQB.js";import{a as x}from"./chunk.2FPBPQUJ.js";import{c as b}from"./chunk.Q54GPNUS.js";import{b as m,c as h}from"./chunk.QTD6NQFL.js";import{d as c}from"./chunk.ZBHHLRFH.js";import{a as l}from"./chunk.BWEPOOQP.js";import{a as p,b as n,c as u,d,f as g}from"./chunk.KBZ32KWP.js";import{a as i}from"./chunk.GP725TPQ.js";import{f as a}from"./chunk.IZ2HVRME.js";var t=class extends g{constructor(){super(...arguments);this.localize=new b(this);this.showExpandButton=!1;this.ignoreReorderClick=!1;this.dragImageCloneContainer=null;this.role="row";this.size="medium";this.selected=!1;this.expandable=!1;this.reorderable=!1;this.rearranging=!1;this.expanded=!1;this.showExpandedLabel="";this.hideExpandedLabel="";this.selectionLabel="";this.selectionName="";this.selectionValue="";this.reorderLabel="";this.loading=!1}get isFirefox(){return navigator.userAgent.includes("Firefox")}connectedCallback(){super.connectedCallback(),this.handleRowClick=this.handleRowClick.bind(this),this.handleCheckboxChange=this.handleCheckboxChange.bind(this),this.handleReorderDragStart=this.handleReorderDragStart.bind(this),this.handleReorderDragEnd=this.handleReorderDragEnd.bind(this),this.addEventListener("click",this.handleRowClick),this.addEventListener("dragstart",this.handleReorderDragStart),this.addEventListener("dragend",this.handleReorderDragEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleRowClick),this.removeEventListener("dragstart",this.handleReorderDragStart),this.removeEventListener("dragend",this.handleReorderDragEnd),h(this,"drag-preview"),this.cleanupDragImageClone()}handleRowClick(){this.emit("dsa-table-row-click")}handleCheckboxChange(e){e.stopPropagation(),this.selected=this.checkbox.checked}emitReorderToggle(){this.dispatchEvent(new CustomEvent("dsa-table-row-reorder-toggle",{bubbles:!0,composed:!0,detail:{row:this}}))}emitReorderMove(e){this.dispatchEvent(new CustomEvent("dsa-table-row-reorder-move",{bubbles:!0,composed:!0,detail:{row:this,direction:e}}))}handleReorderKeyDown(e){let{key:r}=e;if(r==="Enter"||r===" "){e.preventDefault(),e.stopPropagation(),this.ignoreReorderClick=!0,this.emitReorderToggle();return}if(this.rearranging){if(r==="Tab"){this.emitReorderToggle();return}r==="ArrowUp"&&(e.preventDefault(),e.stopPropagation(),this.emitReorderMove("up")),r==="ArrowDown"&&(e.preventDefault(),e.stopPropagation(),this.emitReorderMove("down")),r==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.emitReorderToggle())}}handleReorderClick(e){if(e.stopPropagation(),this.ignoreReorderClick||this.loading){this.ignoreReorderClick=!1;return}this.emitReorderToggle()}handleReorderBlur(){this.rearranging&&requestAnimationFrame(()=>{if(!this.rearranging)return;let e=document.activeElement;e===this.reorderButton||e instanceof Node&&this.contains(e)||this.emitReorderToggle()})}handleReorderDragStart(e){var r;if(this.reorderable){if(this.ignoreReorderClick=!0,e.stopPropagation(),e.dataTransfer){e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",this.selectionValue||((r=this.textContent)==null?void 0:r.trim())||"dsa-table-row");let o=this.getBoundingClientRect(),s=Math.max(0,e.clientX-o.left),v=Math.max(0,e.clientY-o.top);if(m(this,"drag-preview","true"),requestAnimationFrame(()=>{h(this,"drag-preview")}),this.isFirefox){this.cleanupDragImageClone();let k=this.createDragImageClone();e.dataTransfer.setDragImage(k,s,v)}}this.dispatchEvent(new CustomEvent("dsa-table-row-reorder-drag-start",{bubbles:!0,composed:!0,detail:{row:this}}))}}handleReorderDragEnd(e){this.reorderable&&(e.stopPropagation(),setTimeout(()=>{this.ignoreReorderClick=!1}),h(this,"drag-preview"),this.cleanupDragImageClone(),this.dispatchEvent(new CustomEvent("dsa-table-row-reorder-drag-end",{bubbles:!0,composed:!0,detail:{row:this}})))}createDragImageClone(){let e=this.getBoundingClientRect(),r=document.createElement("table"),o=document.createElement("tbody"),s=this.cloneNode(!0);return r.style.position="fixed",r.style.inset="0 auto auto 0",r.style.transform="translate(-9999px, -9999px)",r.style.pointerEvents="none",r.style.borderCollapse="collapse",r.style.tableLayout="fixed",r.style.width=`${e.width}px`,r.style.zIndex="2147483647",o.appendChild(s),r.appendChild(o),document.body.appendChild(r),this.dragImageCloneContainer=r,s}cleanupDragImageClone(){var e;(e=this.dragImageCloneContainer)==null||e.remove(),this.dragImageCloneContainer=null}renderReorderButton(){return this.reorderable?i`
|
|
2
2
|
<dsa-table-cell class="column-reorder-button" aria-hidden=${this.loading}>
|
|
3
3
|
<dsa-icon-button
|
|
4
4
|
class="reorder-button"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as c}from"./chunk.CFBXGDPS.js";import{a as o}from"./chunk.TMUGGTVF.js";import{a as n}from"./chunk.YQETGEXV.js";import{a as m}from"./chunk.W6E7LGND.js";import{a as p}from"./chunk.2FPBPQUJ.js";import{a as s}from"./chunk.BWEPOOQP.js";import{a as h,b as i,c as d,d as a}from"./chunk.KBZ32KWP.js";import{a as l}from"./chunk.GP725TPQ.js";import{a as u,b as r,f as e}from"./chunk.IZ2HVRME.js";var t=class extends n{constructor(){super(...arguments);this.value="";this.defaultValue=""}get hasMinBound(){return this.min!==void 0}get hasMaxBound(){return this.max!==void 0}connectedCallback(){super.connectedCallback(),this.tempValue=this.value===""?this.defaultValue:this.value}handleInput(f){f.stopPropagation(),this.tempValue=this.filterInput.value}handleDecrease(){this.tempValue===""?this.tempValue=this.defaultValue!==""?this.defaultValue:"0":(!this.hasMinBound||parseFloat(this.tempValue)>this.min)&&(this.tempValue=`${parseFloat(this.tempValue)-1}`,this.emit("dsa-input"))}handleIncrease(){this.tempValue===""?this.tempValue=this.defaultValue!==""?this.defaultValue:"0":(!this.hasMaxBound||parseFloat(this.tempValue)<this.max)&&(this.tempValue=`${parseFloat(this.tempValue)+1}`,this.emit("dsa-input"))}handleReset(){this.tempValue=this.defaultValue,this.emit("dsa-input"),this.filterInput.focus({preventScroll:!0})}handleSubmit(){this.value=this.tempValue,this.emit("dsa-submit"),this.hide(),this.filterTrigger.focus({preventScroll:!0})}handleValueChange(){this.value!==""&&(this.tempValue=this.value===""?this.defaultValue:this.value)}handleTempValueChange(){this.drawer&&(this.value=this.tempValue)}handleFilterCounterOpenChange(){this.open||(this.tempValue=this.value===""?this.defaultValue:this.value)}renderPanelContent(){return l`
|
|
2
2
|
<div class="filter__content">
|
|
3
3
|
<dsa-icon-button
|
|
4
4
|
name="remove"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m,b as C,c as f,d as h,e as b}from"./chunk.EXQPVGOS.js";import{a as d}from"./chunk.DYFOZ46Z.js";import{a as V}from"./chunk.2YKQ7H24.js";import{a as N}from"./chunk.2TZ4LFPJ.js";import{a as w}from"./chunk.2FPBPQUJ.js";import{a as p}from"./chunk.NIRNX67K.js";import{c as g}from"./chunk.Q54GPNUS.js";import{a as r}from"./chunk.2RF4WD6T.js";import{d as S}from"./chunk.ZBHHLRFH.js";import{a as $,d as x}from"./chunk.KBZ32KWP.js";import{a as u}from"./chunk.GP725TPQ.js";import{a as y,b as v,f as c}from"./chunk.IZ2HVRME.js";var l=class extends d{constructor(){super(...arguments);this.localize=new g(this)}get valueAsNumber(){return parseFloat(this.value.replace(",","."))}set valueAsNumber(t){super.valueAsNumber=t}handleChange(){let t=this.input.value;if(t===""||t==="-"){this.input.value="";return}let e=this.getSafeStep(),a=f(t),i=parseFloat(`${this.min}`),s=parseFloat(`${this.max}`),n=b(a,e);!isNaN(i)&&n<i?n=i:!isNaN(s)&&n>s&&(n=s);let o=h(n);this.input.value=o,this.value=o.replace(",","."),this.emit("dsa-change")}handleInput(){this.value=this.input.value.replace(",","."),this.formControlController.updateValidity(),this.emit("dsa-input")}handleKeyDown(t){let e=t.key;e==="Dead"&&(this.input.blur(),setTimeout(()=>this.input.focus()));let a=this.input.selectionStart;if(C(t)||e==="-"&&a!==null&&a>0||e===","&&this.input.value.includes(",")){t.preventDefault();return}let i=e==="ArrowDown",s=e==="ArrowUp";i?this.stepDown():s&&this.stepUp(),(i||s)&&(this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.input.dispatchEvent(new Event("change",{bubbles:!0}))),super.handleKeyDown(t)}getSafeStep(){if(this.step==="any")return this.step;let t=parseFloat(`${this.step}`);return isNaN(t)||t===0?1:t}adjustAmountValue(t){let e=this.getSafeStep(),a=new m(e==="any"?1:e),i=new m(f(this.input.value)),s=(t==="up"?i.plus(a):i.minus(a)).toNumber(),n=h(s);this.input.value=n,this.value=n.replace(",",".")}stepUp(){this.adjustAmountValue("up")}stepDown(){this.adjustAmountValue("down")}checkValidity(){return this.input.checkValidity()&&this.checkAmountValidity()}reportValidity(){return this.input.reportValidity()&&this.checkAmountValidity()}checkAmountValidity(){let t=this.value;if(t==="")return!0;let e=parseFloat(t);if(isNaN(e))return!1;let a=parseFloat(`${this.min}`);if(!isNaN(a)&&e<a)return!1;let i=parseFloat(`${this.max}`);if(!isNaN(i)&&e>i)return!1;let s=this.getSafeStep();return s==="any"||b(e,s)===e}renderInput(){var n,o;let t=this.hasSlotController.test("label"),e=this.hasSlotController.test("prefix"),a=this.hasSlotController.test("suffix"),i=this.label?!0:!!t,s=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.value=="number"||this.value.length>0);return u`
|
|
2
2
|
<div
|
|
3
3
|
part="base"
|
|
4
4
|
class=${S({input:!0,"input--small":this.size==="small","input--medium":this.size==="medium","input--large":this.size==="large","input--error":this.error,"input--success":this.success&&!this.error,"input--on-layer":this.variant==="layer","input--on-base":this.variant==="base","input--disabled":this.disabled,"input--readonly":this.readonly,"input--focused":this.hasFocus,"input--empty":!this.value,"form-control--has-prefix-icon":e})}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as K}from"./chunk.UREKS7QR.js";import{a as x}from"./chunk.2OZWUNZO.js";import{a as z}from"./chunk.DBVKBRPG.js";import{a as A}from"./chunk.J34FMZ22.js";import{a as V}from"./chunk.U4TME7DS.js";import{a as T}from"./chunk.WFPILKOS.js";import{a as P}from"./chunk.ZZEMBF7E.js";import{a as k}from"./chunk.FVTT4MMC.js";import{b as F}from"./chunk.FWTZS7LK.js";import{a as S}from"./chunk.KLRPP4NQ.js";import{a as g,c as b}from"./chunk.HHVNQNCC.js";import{a as w,c as L}from"./chunk.TV2TMO2H.js";import{a as u}from"./chunk.NIRNX67K.js";import{c as D}from"./chunk.Q54GPNUS.js";import{c as M}from"./chunk.AM2ZR2Y2.js";import{a as v}from"./chunk.QTD6NQFL.js";import{a as f}from"./chunk.2RF4WD6T.js";import{d as y}from"./chunk.ZBHHLRFH.js";import{a as h}from"./chunk.BWEPOOQP.js";import{a as _,b as o,c as r,d as p}from"./chunk.KBZ32KWP.js";import{a}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";var m="dsa-option",s=class extends z{constructor(){super(...arguments);this.formControlController=new F(this,{assumeInteractionOn:["dsa-blur","dsa-input"]});this.localize=new D(this);this.hasVisualFocus=!1;this.displayLabel="";this.selectedOptions=[];this.allOptions=[];this.filteredOptions=[];this.displayedOptionsCount=0;this.debounceTimerId=null;this.open=!1;this.value="";this.defaultValue="";this.hoist=!1;this.placement="bottom";this.clearable=!1;this.noSyncWidth=!1;this.items=void 0;this.multiple=!1;this.maxOptionsVisible=3;this.visibleListLength=void 0;this.debounceTimeout=300;this.fetchingState="idle";this.overrideDefaultFiltering=!1;this.keepSearchAfterSelection=!1}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.handleDocumentFocusIn=this.handleDocumentFocusIn.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.open=!1,this.allOptions=this.getAllOptions(),this.filteredOptions=[...this.allOptions],this.resetDisplayedOptionsCount()}handleBlur(){this.hasVisualFocus=!1,this.emit("dsa-blur")}handleFocus(){this.hasVisualFocus=!0,this.emit("dsa-focus")}handleComboboxMouseDown(e){let i=e.composedPath().some(l=>l instanceof Element&&l.tagName.toLowerCase()==="dsa-tag");this.readonly||this.disabled||i||(e.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.filterOptions(this.displayLabel),this.open?this.hide():this.show())}handleComboboxKeyDown(e){this.filterOptions(this.displayLabel),this.handleDefaultKeyDown(e)}handleClearMouseKeyDown(e){switch(e.stopPropagation(),e.key){case"Enter":case"Escape":this.clearSelection(),this.displayInput.focus({preventScroll:!0});break}}handleChange(){var e;this.displayLabel=this.displayInput.value,this.emit("dsa-change"),this.multiple||this.displayLabel!==((e=this.selectedOptions[0])==null?void 0:e.getTextLabel())&&this.clearSelectedOptions()}handleInput(){this.displayLabel=this.displayInput.value,this.show(),!this.multiple&&this.displayLabel===""&&this.clearSelection(),this.debounceTimerId!==null&&clearTimeout(this.debounceTimerId),this.debounceTimerId=window.setTimeout(()=>this.emit("dsa-input"),this.debounceTimeout)}handleClearClick(e){e.stopPropagation(),this.value!==""&&(this.displayInput.focus({preventScroll:!0}),this.clearSelection())}clearSelection(){this.clearSelectedOptions(),this.value="",this.syncOnSelection(),this.updateComplete.then(()=>{this.emit("dsa-clear"),this.emit("dsa-input"),this.emit("dsa-change")})}filterOptions(e){let t=v(e);this.overrideDefaultFiltering?this.filteredOptions=this.allOptions:this.filteredOptions=this.allOptions.filter(i=>v(i.innerText).includes(t))}resetDisplayedOptionsCount(){let e=this.visibleListLength?Math.min(this.visibleListLength,this.filteredOptions.length):this.filteredOptions.length;this.displayedOptionsCount!==e&&(this.displayedOptionsCount=e)}resetSearchAfterSelection(){!this.multiple||this.keepSearchAfterSelection||this.displayLabel!==""&&(this.displayLabel="")}toggleOptionSelection(e,t){let i=t===void 0?!e.selected:t;e.selected!==i&&(e.selected=i),this.selectedOptions=this.allOptions.filter(l=>l.selected),this.syncOnSelection()}handleOptionClick(e){let i=e.target.closest(m);if(this.setCurrentOption(void 0),i!==this.seeMoreOption&&i!==null&&!i.disabled){let l=this.value;this.multiple?(this.toggleOptionSelection(i),this.resetSearchAfterSelection()):(this.setSelectedOptions(i),this.syncOnSelection(),this.filterOptions(this.displayLabel)),this.updateComplete.then(()=>{this.value!==l&&(this.emit("dsa-input"),this.emit("dsa-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}),this.hasVisualFocus=!0)}}handleDefaultSlotChange(){if(customElements.get(m)){this.allOptions=this.getAllOptions(),this.filterOptions(this.displayLabel);let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(t=>e.includes(t.value))),!this.multiple&&this.selectedOptions.length>0&&this.syncOnSelection()}else customElements.whenDefined(m).then(()=>this.handleDefaultSlotChange());this.resetDisplayedOptionsCount()}handleTagRemove(e,t){e.stopPropagation(),!this.disabled&&!this.readonly&&(this.focusNextTagOrInput(t),this.toggleOptionSelection(t,!1),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")}))}focusNextTagOrInput(e){let t=this.selectedOptions.findIndex(l=>l===e),i=this.selectedOptions[t+1];i?i.focus():this.displayInput.focus({preventScroll:!0})}getAllOptions(){if(this.items!==void 0)return this.items;let e=this.querySelectorAll(m),t=[];return e.forEach(i=>{let l=i.cloneNode(!0);l.multiple=this.multiple,l.id=l.value,t.push(l)}),t}clearSelectedOptions(){this.selectedOptions=[],this.allOptions.forEach(e=>{e.selected&&(e.selected=!1)})}setCurrentOption(e){let t=this.currentOption;t&&t!==e&&(t.current&&(t.current=!1),t.tabIndex!==-1&&(t.tabIndex=-1)),e!==void 0?(this.currentOption=e,e.current||(e.current=!0),e.tabIndex!==0&&(e.tabIndex=0),e.focus()):this.currentOption=void 0}setSelectedOptions(e){let t=Array.isArray(e)?e:[e],i=new Set(t);this.allOptions.forEach(l=>{let d=i.has(l);l.selected!==d&&(l.selected=d)}),this.selectedOptions=this.allOptions.filter(l=>l.selected)}handleClearMouseDown(e){e.stopPropagation(),e.preventDefault()}syncOnSelection(){var e,t,i,l;this.multiple?this.value=this.selectedOptions.map(d=>d.value):(this.value=(t=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?t:this.value,this.displayLabel=(l=(i=this.selectedOptions[0])==null?void 0:i.getTextLabel())!=null?l:""),this.updateComplete.then(()=>{this.formControlController.updateValidity(),this.filterOptions(this.displayLabel)})}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleDocumentFocusIn(e){let t=e.composedPath();this&&!t.includes(this)&&this.hide()}handleDocumentMouseDown(e){let t=e.composedPath();this&&!t.includes(this)&&this.hide()}handleDefaultKeyDown(e){switch(e.key){case"Escape":case"Tab":this.handleEscapeAndTabKeys(e);break;case"Enter":e.stopPropagation(),this.handleEnterKey(e);break;case" ":this.handleSpaceKey(e);break;case"ArrowLeft":case"ArrowRight":e.stopPropagation(),this.handleArrowKeys();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":e.stopPropagation(),this.handleNavigationKeys(e);break;default:e.stopPropagation(),this.focus();break}}handleEscapeAndTabKeys(e){if(this.open){e.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0}),this.hasVisualFocus=!0;return}e.key==="Escape"&&(this.multiple&&this.displayLabel!==""&&(e.stopPropagation(),this.displayLabel=""),!this.multiple&&this.selectedOptions.length>0&&(e.stopPropagation(),this.clearSelection()))}handleEnterKey(e){var l;let i=e.target.closest("dsa-tag")!==null;if((l=this.seeMoreOption)!=null&&l.current){this.handleSeeMoreClick();return}i||(e.preventDefault(),e.stopImmediatePropagation(),this.open&&this.currentOption!==void 0&&!this.currentOption.disabled&&(this.multiple?(this.toggleOptionSelection(this.currentOption),this.resetSearchAfterSelection()):(this.setSelectedOptions(this.currentOption),this.syncOnSelection(),this.hide(),this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0})),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")})))}handleSpaceKey(e){this.open&&this.currentOption!==void 0&&!this.currentOption.disabled&&(e.preventDefault(),e.stopImmediatePropagation(),this.multiple?(this.toggleOptionSelection(this.currentOption),this.resetSearchAfterSelection()):(this.setSelectedOptions(this.currentOption),this.syncOnSelection(),this.hide(),this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0})),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")}))}handleArrowKeys(){this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0}),this.setCurrentOption(void 0)}handleNavigationKeys(e){var i,l;let t=this.currentOption!==void 0?this.filteredOptions.indexOf(this.currentOption):-1;switch(e.preventDefault(),this.open||this.show(),e.key){case"ArrowDown":if((i=this.seeMoreOption)!=null&&i.current)break;t<this.displayedOptionsCount-1?this.setCurrentOption(this.filteredOptions[t+1]):this.filteredOptions.length>this.displayedOptionsCount&&(this.seeMoreOption?this.setCurrentOption(this.seeMoreOption):this.setCurrentOption(void 0));break;case"ArrowUp":(l=this.seeMoreOption)!=null&&l.current?(this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount-1]),this.seeMoreOption.current=!1):t===0?(this.setCurrentOption(void 0),this.focus()):t>0&&this.setCurrentOption(this.filteredOptions[t-1]);break;case"Home":this.setCurrentOption(this.filteredOptions[0]),this.seeMoreOption&&(this.seeMoreOption.current=!1);break;case"End":this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount-1]),this.seeMoreOption&&(this.seeMoreOption.current=!1);break}this.hasVisualFocus=!1}handleSeeMoreClick(){var e;this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount]),this.displayedOptionsCount=Math.min(this.displayedOptionsCount+((e=this.visibleListLength)!=null?e:0),this.filteredOptions.length),this.seeMoreOption&&(this.seeMoreOption.current=!1)}getDescriptionIds(){let e=[];if(this.multiple&&this.maxOptionsVisible>0){let t=this.selectedOptions.slice(0,this.maxOptionsVisible).map(i=>`tag-${i.value}`).join(" ");e=[...e,t]}return this.multiple&&this.selectedOptions.length>this.maxOptionsVisible&&(e=[...e,"tag-remaining"]),this.error&&(e=[...e,"error-text"]),e=[...e,"help-text","description"],e.join(" ")}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleReadonlyChange(){this.readonly&&(this.open=!1,this.handleOpenChange())}handleItemsChange(){var t;(t=this.items)==null||t.forEach(i=>{i.id=i.id&&i.id!==""?i.id:i.value,i.multiple=this.multiple}),this.allOptions=this.getAllOptions(),this.filterOptions(this.displayLabel);let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(i=>e.includes(i.value))),!this.multiple&&this.selectedOptions.length>0&&this.syncOnSelection(),this.resetDisplayedOptionsCount()}handleValueChange(){let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(t=>e.includes(t.value))),this.multiple||this.syncOnSelection()}async handleOpenChange(){var e,t;if(this.open&&!this.disabled&&!this.readonly){this.emit("dsa-show"),this.addOpenListeners(),await b(this),this.listbox.hidden=!1,this.popup.active=!0,this.displayInput.focus({preventScroll:!0}),requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:i,options:l}=L(this,"select.show",{dir:this.localize.dir()});await g(this.popup.popup,i,l),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),this.multiple||(this.displayLabel=(t=(e=this.selectedOptions[0])==null?void 0:e.getTextLabel())!=null?t:""),await b(this);let{keyframes:i,options:l}=L(this,"select.hide",{dir:this.localize.dir()});await g(this.popup.popup,i,l),this.listbox.hidden=!0,this.popup.active=!1,this.emit("dsa-after-hide")}}handleDisplayLabelChange(){this.filterOptions(this.displayLabel),this.resetDisplayedOptionsCount()}handleMultipleChange(){this.allOptions.forEach(e=>{e.multiple!==this.multiple&&(e.multiple=this.multiple)})}async show(){if(!(this.open||this.disabled||this.readonly||this.allOptions.length===0&&this.fetchingState==="idle"))return this.open=!0,await S(this,"dsa-after-show")}async hide(){if(!this.open||this.disabled||this.readonly){this.open=!1;return}return this.open=!1,this.currentOption=void 0,await S(this,"dsa-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(e){this.valueInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){this.hasVisualFocus=!0,this.displayInput.focus(e)}blur(){this.hasVisualFocus=!1,this.displayInput.blur()}renderInput(){var $,I,C,E;let e=this.value.length>0,t=this.hasSlotController.test("label"),i=this.label?!0:!!t,l=this.clearable&&!this.disabled&&!this.readonly&&e,d=this.placeholder&&this.value.length===0,N=this.value?e?this.value.length:1:void 0,B=this.disabled||this.readonly,H=this.filteredOptions.slice(0,this.displayedOptionsCount);return a`
|
|
1
|
+
import{a as K}from"./chunk.VPTZFEPZ.js";import{a as x}from"./chunk.2OZWUNZO.js";import{a as z}from"./chunk.FWFZG7TN.js";import{a as A}from"./chunk.PAYML2WU.js";import{a as V}from"./chunk.U4TME7DS.js";import{a as T}from"./chunk.WFPILKOS.js";import{a as P}from"./chunk.ZZEMBF7E.js";import{a as k}from"./chunk.FVTT4MMC.js";import{b as F}from"./chunk.FWTZS7LK.js";import{a as S}from"./chunk.KLRPP4NQ.js";import{a as g,c as b}from"./chunk.HHVNQNCC.js";import{a as w,c as L}from"./chunk.TV2TMO2H.js";import{a as u}from"./chunk.NIRNX67K.js";import{c as D}from"./chunk.Q54GPNUS.js";import{c as M}from"./chunk.AM2ZR2Y2.js";import{a as v}from"./chunk.QTD6NQFL.js";import{a as f}from"./chunk.2RF4WD6T.js";import{d as y}from"./chunk.ZBHHLRFH.js";import{a as h}from"./chunk.BWEPOOQP.js";import{a as _,b as o,c as r,d as p}from"./chunk.KBZ32KWP.js";import{a}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";var m="dsa-option",s=class extends z{constructor(){super(...arguments);this.formControlController=new F(this,{assumeInteractionOn:["dsa-blur","dsa-input"]});this.localize=new D(this);this.hasVisualFocus=!1;this.displayLabel="";this.selectedOptions=[];this.allOptions=[];this.filteredOptions=[];this.displayedOptionsCount=0;this.debounceTimerId=null;this.open=!1;this.value="";this.defaultValue="";this.hoist=!1;this.placement="bottom";this.clearable=!1;this.noSyncWidth=!1;this.items=void 0;this.multiple=!1;this.maxOptionsVisible=3;this.visibleListLength=void 0;this.debounceTimeout=300;this.fetchingState="idle";this.overrideDefaultFiltering=!1;this.keepSearchAfterSelection=!1}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.handleDocumentFocusIn=this.handleDocumentFocusIn.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.open=!1,this.allOptions=this.getAllOptions(),this.filteredOptions=[...this.allOptions],this.resetDisplayedOptionsCount()}handleBlur(){this.hasVisualFocus=!1,this.emit("dsa-blur")}handleFocus(){this.hasVisualFocus=!0,this.emit("dsa-focus")}handleComboboxMouseDown(e){let i=e.composedPath().some(l=>l instanceof Element&&l.tagName.toLowerCase()==="dsa-tag");this.readonly||this.disabled||i||(e.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.filterOptions(this.displayLabel),this.open?this.hide():this.show())}handleComboboxKeyDown(e){this.filterOptions(this.displayLabel),this.handleDefaultKeyDown(e)}handleClearMouseKeyDown(e){switch(e.stopPropagation(),e.key){case"Enter":case"Escape":this.clearSelection(),this.displayInput.focus({preventScroll:!0});break}}handleChange(){var e;this.displayLabel=this.displayInput.value,this.emit("dsa-change"),this.multiple||this.displayLabel!==((e=this.selectedOptions[0])==null?void 0:e.getTextLabel())&&this.clearSelectedOptions()}handleInput(){this.displayLabel=this.displayInput.value,this.show(),!this.multiple&&this.displayLabel===""&&this.clearSelection(),this.debounceTimerId!==null&&clearTimeout(this.debounceTimerId),this.debounceTimerId=window.setTimeout(()=>this.emit("dsa-input"),this.debounceTimeout)}handleClearClick(e){e.stopPropagation(),this.value!==""&&(this.displayInput.focus({preventScroll:!0}),this.clearSelection())}clearSelection(){this.clearSelectedOptions(),this.value="",this.syncOnSelection(),this.updateComplete.then(()=>{this.emit("dsa-clear"),this.emit("dsa-input"),this.emit("dsa-change")})}filterOptions(e){let t=v(e);this.overrideDefaultFiltering?this.filteredOptions=this.allOptions:this.filteredOptions=this.allOptions.filter(i=>v(i.innerText).includes(t))}resetDisplayedOptionsCount(){let e=this.visibleListLength?Math.min(this.visibleListLength,this.filteredOptions.length):this.filteredOptions.length;this.displayedOptionsCount!==e&&(this.displayedOptionsCount=e)}resetSearchAfterSelection(){!this.multiple||this.keepSearchAfterSelection||this.displayLabel!==""&&(this.displayLabel="")}toggleOptionSelection(e,t){let i=t===void 0?!e.selected:t;e.selected!==i&&(e.selected=i),this.selectedOptions=this.allOptions.filter(l=>l.selected),this.syncOnSelection()}handleOptionClick(e){let i=e.target.closest(m);if(this.setCurrentOption(void 0),i!==this.seeMoreOption&&i!==null&&!i.disabled){let l=this.value;this.multiple?(this.toggleOptionSelection(i),this.resetSearchAfterSelection()):(this.setSelectedOptions(i),this.syncOnSelection(),this.filterOptions(this.displayLabel)),this.updateComplete.then(()=>{this.value!==l&&(this.emit("dsa-input"),this.emit("dsa-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}),this.hasVisualFocus=!0)}}handleDefaultSlotChange(){if(customElements.get(m)){this.allOptions=this.getAllOptions(),this.filterOptions(this.displayLabel);let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(t=>e.includes(t.value))),!this.multiple&&this.selectedOptions.length>0&&this.syncOnSelection()}else customElements.whenDefined(m).then(()=>this.handleDefaultSlotChange());this.resetDisplayedOptionsCount()}handleTagRemove(e,t){e.stopPropagation(),!this.disabled&&!this.readonly&&(this.focusNextTagOrInput(t),this.toggleOptionSelection(t,!1),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")}))}focusNextTagOrInput(e){let t=this.selectedOptions.findIndex(l=>l===e),i=this.selectedOptions[t+1];i?i.focus():this.displayInput.focus({preventScroll:!0})}getAllOptions(){if(this.items!==void 0)return this.items;let e=this.querySelectorAll(m),t=[];return e.forEach(i=>{let l=i.cloneNode(!0);l.multiple=this.multiple,l.id=l.value,t.push(l)}),t}clearSelectedOptions(){this.selectedOptions=[],this.allOptions.forEach(e=>{e.selected&&(e.selected=!1)})}setCurrentOption(e){let t=this.currentOption;t&&t!==e&&(t.current&&(t.current=!1),t.tabIndex!==-1&&(t.tabIndex=-1)),e!==void 0?(this.currentOption=e,e.current||(e.current=!0),e.tabIndex!==0&&(e.tabIndex=0),e.focus()):this.currentOption=void 0}setSelectedOptions(e){let t=Array.isArray(e)?e:[e],i=new Set(t);this.allOptions.forEach(l=>{let d=i.has(l);l.selected!==d&&(l.selected=d)}),this.selectedOptions=this.allOptions.filter(l=>l.selected)}handleClearMouseDown(e){e.stopPropagation(),e.preventDefault()}syncOnSelection(){var e,t,i,l;this.multiple?this.value=this.selectedOptions.map(d=>d.value):(this.value=(t=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?t:this.value,this.displayLabel=(l=(i=this.selectedOptions[0])==null?void 0:i.getTextLabel())!=null?l:""),this.updateComplete.then(()=>{this.formControlController.updateValidity(),this.filterOptions(this.displayLabel)})}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleDocumentFocusIn(e){let t=e.composedPath();this&&!t.includes(this)&&this.hide()}handleDocumentMouseDown(e){let t=e.composedPath();this&&!t.includes(this)&&this.hide()}handleDefaultKeyDown(e){switch(e.key){case"Escape":case"Tab":this.handleEscapeAndTabKeys(e);break;case"Enter":e.stopPropagation(),this.handleEnterKey(e);break;case" ":this.handleSpaceKey(e);break;case"ArrowLeft":case"ArrowRight":e.stopPropagation(),this.handleArrowKeys();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":e.stopPropagation(),this.handleNavigationKeys(e);break;default:e.stopPropagation(),this.focus();break}}handleEscapeAndTabKeys(e){if(this.open){e.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0}),this.hasVisualFocus=!0;return}e.key==="Escape"&&(this.multiple&&this.displayLabel!==""&&(e.stopPropagation(),this.displayLabel=""),!this.multiple&&this.selectedOptions.length>0&&(e.stopPropagation(),this.clearSelection()))}handleEnterKey(e){var l;let i=e.target.closest("dsa-tag")!==null;if((l=this.seeMoreOption)!=null&&l.current){this.handleSeeMoreClick();return}i||(e.preventDefault(),e.stopImmediatePropagation(),this.open&&this.currentOption!==void 0&&!this.currentOption.disabled&&(this.multiple?(this.toggleOptionSelection(this.currentOption),this.resetSearchAfterSelection()):(this.setSelectedOptions(this.currentOption),this.syncOnSelection(),this.hide(),this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0})),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")})))}handleSpaceKey(e){this.open&&this.currentOption!==void 0&&!this.currentOption.disabled&&(e.preventDefault(),e.stopImmediatePropagation(),this.multiple?(this.toggleOptionSelection(this.currentOption),this.resetSearchAfterSelection()):(this.setSelectedOptions(this.currentOption),this.syncOnSelection(),this.hide(),this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0})),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")}))}handleArrowKeys(){this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0}),this.setCurrentOption(void 0)}handleNavigationKeys(e){var i,l;let t=this.currentOption!==void 0?this.filteredOptions.indexOf(this.currentOption):-1;switch(e.preventDefault(),this.open||this.show(),e.key){case"ArrowDown":if((i=this.seeMoreOption)!=null&&i.current)break;t<this.displayedOptionsCount-1?this.setCurrentOption(this.filteredOptions[t+1]):this.filteredOptions.length>this.displayedOptionsCount&&(this.seeMoreOption?this.setCurrentOption(this.seeMoreOption):this.setCurrentOption(void 0));break;case"ArrowUp":(l=this.seeMoreOption)!=null&&l.current?(this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount-1]),this.seeMoreOption.current=!1):t===0?(this.setCurrentOption(void 0),this.focus()):t>0&&this.setCurrentOption(this.filteredOptions[t-1]);break;case"Home":this.setCurrentOption(this.filteredOptions[0]),this.seeMoreOption&&(this.seeMoreOption.current=!1);break;case"End":this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount-1]),this.seeMoreOption&&(this.seeMoreOption.current=!1);break}this.hasVisualFocus=!1}handleSeeMoreClick(){var e;this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount]),this.displayedOptionsCount=Math.min(this.displayedOptionsCount+((e=this.visibleListLength)!=null?e:0),this.filteredOptions.length),this.seeMoreOption&&(this.seeMoreOption.current=!1)}getDescriptionIds(){let e=[];if(this.multiple&&this.maxOptionsVisible>0){let t=this.selectedOptions.slice(0,this.maxOptionsVisible).map(i=>`tag-${i.value}`).join(" ");e=[...e,t]}return this.multiple&&this.selectedOptions.length>this.maxOptionsVisible&&(e=[...e,"tag-remaining"]),this.error&&(e=[...e,"error-text"]),e=[...e,"help-text","description"],e.join(" ")}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleReadonlyChange(){this.readonly&&(this.open=!1,this.handleOpenChange())}handleItemsChange(){var t;(t=this.items)==null||t.forEach(i=>{i.id=i.id&&i.id!==""?i.id:i.value,i.multiple=this.multiple}),this.allOptions=this.getAllOptions(),this.filterOptions(this.displayLabel);let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(i=>e.includes(i.value))),!this.multiple&&this.selectedOptions.length>0&&this.syncOnSelection(),this.resetDisplayedOptionsCount()}handleValueChange(){let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(t=>e.includes(t.value))),this.multiple||this.syncOnSelection()}async handleOpenChange(){var e,t;if(this.open&&!this.disabled&&!this.readonly){this.emit("dsa-show"),this.addOpenListeners(),await b(this),this.listbox.hidden=!1,this.popup.active=!0,this.displayInput.focus({preventScroll:!0}),requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:i,options:l}=L(this,"select.show",{dir:this.localize.dir()});await g(this.popup.popup,i,l),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),this.multiple||(this.displayLabel=(t=(e=this.selectedOptions[0])==null?void 0:e.getTextLabel())!=null?t:""),await b(this);let{keyframes:i,options:l}=L(this,"select.hide",{dir:this.localize.dir()});await g(this.popup.popup,i,l),this.listbox.hidden=!0,this.popup.active=!1,this.emit("dsa-after-hide")}}handleDisplayLabelChange(){this.filterOptions(this.displayLabel),this.resetDisplayedOptionsCount()}handleMultipleChange(){this.allOptions.forEach(e=>{e.multiple!==this.multiple&&(e.multiple=this.multiple)})}async show(){if(!(this.open||this.disabled||this.readonly||this.allOptions.length===0&&this.fetchingState==="idle"))return this.open=!0,await S(this,"dsa-after-show")}async hide(){if(!this.open||this.disabled||this.readonly){this.open=!1;return}return this.open=!1,this.currentOption=void 0,await S(this,"dsa-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(e){this.valueInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){this.hasVisualFocus=!0,this.displayInput.focus(e)}blur(){this.hasVisualFocus=!1,this.displayInput.blur()}renderInput(){var $,I,C,E;let e=this.value.length>0,t=this.hasSlotController.test("label"),i=this.label?!0:!!t,l=this.clearable&&!this.disabled&&!this.readonly&&e,d=this.placeholder&&this.value.length===0,N=this.value?e?this.value.length:1:void 0,B=this.disabled||this.readonly,H=this.filteredOptions.slice(0,this.displayedOptionsCount);return a`
|
|
2
2
|
<dsa-popup
|
|
3
3
|
class=${y({select:!0,"select--error":this.error,"select--open":this.open,"select--disabled":this.disabled,"select--readonly":this.readonly,"select--multiple":this.multiple,"select--focused":this.hasVisualFocus,"select--placeholder-visible":d,"select--top":["top","top-start","top-end"].includes(this.placement),"select--bottom":["bottom","bottom-start","bottom-end"].includes(this.placement),"select--small":this.size==="small","select--medium":this.size==="medium","select--large":this.size==="large","select--on-base":this.variant==="base","select--on-layer":this.variant==="layer"})}
|
|
4
4
|
part="popup"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as I}from"./chunk.2TZ4LFPJ.js";import{a as K}from"./chunk.U4TME7DS.js";import{
|
|
1
|
+
import{a as I}from"./chunk.2TZ4LFPJ.js";import{a as K}from"./chunk.U4TME7DS.js";import{b as O,d as b,e as H}from"./chunk.NHMFB7ET.js";import{b as L}from"./chunk.FWTZS7LK.js";import{a as N}from"./chunk.NIRNX67K.js";import{c as _}from"./chunk.Q54GPNUS.js";import{a as d}from"./chunk.2RF4WD6T.js";import{a as v}from"./chunk.BWEPOOQP.js";import{a as E,b as s,c as l,d as f,f as M}from"./chunk.KBZ32KWP.js";import{a as V}from"./chunk.6G2FNLAV.js";import{a as w}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";var P=V`
|
|
2
2
|
.input-date__value-input {
|
|
3
3
|
position: absolute;
|
|
4
4
|
top: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m}from"./chunk.4E7MNGOV.js";import{a as p}from"./chunk.PIG773U2.js";import{a as d}from"./chunk.
|
|
1
|
+
import{a as m}from"./chunk.4E7MNGOV.js";import{a as p}from"./chunk.PIG773U2.js";import{a as d}from"./chunk.ODDQO2HD.js";import{a as r}from"./chunk.2RF4WD6T.js";import{d as n}from"./chunk.ZBHHLRFH.js";import{a as i,b as l,d as o,f as u}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends u{constructor(){super(...arguments);this.hasSlotController=new d(this,"[default]","prefix","suffix");this.value=0;this.selected=!1;this.disabled=!1;this.navigationType="button";this.compact=!1}getAriaCurrent(){if(this.selected)return this.navigationType==="link"?"page":"true"}render(){let f=this.hasSlotController.test("[default]"),a=this.selected||this.value===-1,b=this.getAriaCurrent();return s`
|
|
2
2
|
<button
|
|
3
3
|
role=${r(this.navigationType==="link"?"link":void 0)}
|
|
4
4
|
part="base"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
${
|
|
1
|
+
import{a as t}from"./chunk.UMC4I57R.js";import{a}from"./chunk.6G2FNLAV.js";var r=a`
|
|
2
|
+
${t}
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
5
|
display: contents;
|
|
@@ -21,14 +21,14 @@ import{a as o}from"./chunk.UMC4I57R.js";import{a}from"./chunk.6G2FNLAV.js";var r
|
|
|
21
21
|
background-color: var(--dsa-wc-callout-default-background-color);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.callout__title
|
|
25
|
-
|
|
24
|
+
.callout__title,
|
|
25
|
+
.callout__message {
|
|
26
26
|
overflow-wrap: break-word;
|
|
27
|
-
color: var(--dsa-wc-callout-title-color);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
.
|
|
31
|
-
|
|
29
|
+
.callout__title {
|
|
30
|
+
font: var(--dsa-wc-callout-title-font);
|
|
31
|
+
color: var(--dsa-wc-callout-title-color);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.callout__text {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d}from"./chunk.HPYWAFMA.js";import{a as p}from"./chunk.
|
|
1
|
+
import{a as d}from"./chunk.HPYWAFMA.js";import{a as p}from"./chunk.ODDQO2HD.js";import{c as n}from"./chunk.Q54GPNUS.js";import{d as l}from"./chunk.ZBHHLRFH.js";import{a,b as i,f as c}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends c{constructor(){super(...arguments);this.localize=new n(this);this.hasSlotController=new p(this,"description","action","error-code");this.errorCode=""}render(){let{errorCode:o,hasSlotController:r,localize:m}=this,h=r.test("description"),v=r.test("action"),f=o?!0:r.test("error-code");return s`
|
|
2
2
|
<div part="base">
|
|
3
3
|
<div class="top-left-quarter-circle">
|
|
4
4
|
<svg viewBox="0 0 150 60" width="150" height="60" aria-hidden="true">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m}from"./chunk.VZW43GJJ.js";import{a as o}from"./chunk.
|
|
1
|
+
import{a as m}from"./chunk.VZW43GJJ.js";import{a as o}from"./chunk.ODDQO2HD.js";import{d as l}from"./chunk.ZBHHLRFH.js";import{a as s,b as r,f as i}from"./chunk.KBZ32KWP.js";import{a}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends i{constructor(){super(...arguments);this.hasSlotController=new o(this,"[default]");this.variant="primary";this.size="medium";this.pulse=!1}render(){return a`
|
|
2
2
|
<div
|
|
3
3
|
part="base"
|
|
4
4
|
class=${l({badge:!0,"badge--primary":this.variant==="primary","badge--success":this.variant==="success","badge--neutral":this.variant==="neutral","badge--warning":this.variant==="warning","badge--danger":this.variant==="danger","badge--medium":this.size==="medium","badge--small":this.size==="small","badge--pulse":this.pulse,"badge--has-text":this.hasSlotController.test("[default]")})}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk.37M4BXLK.js";import{a as r}from"./chunk.NWYSJOVO.js";import{a as h}from"./chunk.7YNQVYS2.js";import{a as o}from"./chunk.PIG773U2.js";import{a as c,d as i}from"./chunk.KBZ32KWP.js";import{a as l}from"./chunk.GP725TPQ.js";import{a as s,b as d,f as t}from"./chunk.IZ2HVRME.js";var e=class extends a{handleCheckboxChange(){this.selected=this.checkbox.checked,this.emit("dsa-table-row-all-change-selection")}renderFirstCell(){return this.selectionName?l`
|
|
2
2
|
<dsa-table-header-cell
|
|
3
3
|
class="column-checkbox"
|
|
4
4
|
aria-hidden=${this.loading}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import{a as z}from"./chunk.7RM7VDGX.js";import{a as T}from"./chunk.BTHWDYRM.js";import{a as f,c as b}from"./chunk.TV2TMO2H.js";import{c as v}from"./chunk.Q54GPNUS.js";import{c as $}from"./chunk.AM2ZR2Y2.js";import{d as L}from"./chunk.ZBHHLRFH.js";import{a as I,b as r,c as y,d as p,f as _}from"./chunk.KBZ32KWP.js";import{a as w}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends _{constructor(){super(...arguments);this.localize=new v(this);this.isCopying=!1;this.status="rest";this.value="";this.from="";this.disabled=!1;this.copyLabel="";this.successLabel="";this.errorLabel="";this.tooltipPlacement="top";this.hoist=!1;this.size="medium"}async handleCopy(){let{disabled:s,isCopying:u,from:o,value:h}=this;if(s||u)return;this.isCopying=!0;let i=h;if(o){let l=this.getRootNode(),m=o.includes("."),d=o.includes("[")&&o.includes("]"),n=o,a="";m?[n,a]=o.trim().split("."):d&&([n,a]=o.trim().replace(/\]$/,"").split("["));let c="getElementById"in l?l.getElementById(n):null;c?d?i=c.getAttribute(a)||"":m?i=c[a]||"":i=c.textContent||"":(this.showStatus("error"),this.emit("dsa-error"))}if(!i)this.showStatus("error"),this.emit("dsa-error");else try{await navigator.clipboard.writeText(i),this.showStatus("success"),this.emit("dsa-copy",{detail:{value:i}})}catch(l){this.showStatus("error"),this.emit("dsa-error")}}async showStatus(s){let{successLabel:u,errorLabel:o,successIcon:h,errorIcon:i,copyIcon:l,tooltip:m,localize:d}=this,n=s==="success"?u||d.term("copied"):o||d.term("copyError"),a=s==="success"?h:i,c=b(this,"copy.in",{dir:"ltr"}),g=b(this,"copy.out",{dir:"ltr"});m.content=n,await l.animate(g.keyframes,g.options).finished,l.hidden=!0,this.status=s,a.hidden=!1,await a.animate(c.keyframes,c.options).finished,this.isCopying=!1}async resetStatus(){let{status:s,copyLabel:u,successIcon:o,errorIcon:h,copyIcon:i,tooltip:l,localize:m}=this;if(s!=="rest"){let d=u||m.term("copy"),n=s==="success"?o:h,a=b(this,"copy.in",{dir:"ltr"}),c=b(this,"copy.out",{dir:"ltr"});await n.animate(c.keyframes,c.options).finished,n.hidden=!0,this.status="rest",i.hidden=!1,await i.animate(a.keyframes,a.options).finished,l.content=d}}render(){let s=this.copyLabel||this.localize.term("copy");return w`
|
|
2
|
+
<dsa-tooltip
|
|
3
|
+
class=${L({"copy-button":!0,"copy-button--success":this.status==="success","copy-button--error":this.status==="error","copy-button--disabled":this.disabled,"copy-button--small":this.size==="small","copy-button--medium":this.size==="medium","copy-button--large":this.size==="large"})}
|
|
4
|
+
content=${s}
|
|
5
|
+
placement=${this.tooltipPlacement}
|
|
6
|
+
?disabled=${this.disabled}
|
|
7
|
+
?hoist=${this.hoist}
|
|
8
|
+
@mouseleave=${this.resetStatus}
|
|
9
|
+
>
|
|
10
|
+
<button
|
|
11
|
+
class="copy-button__button"
|
|
12
|
+
part="button"
|
|
13
|
+
type="button"
|
|
14
|
+
?disabled=${this.disabled}
|
|
15
|
+
@click=${this.handleCopy}
|
|
16
|
+
aria-label=${s}
|
|
17
|
+
@focusout=${this.resetStatus}
|
|
18
|
+
>
|
|
19
|
+
<dsa-icon
|
|
20
|
+
library="system"
|
|
21
|
+
name="copy"
|
|
22
|
+
class="copy-button__icon copy-icon"
|
|
23
|
+
></dsa-icon>
|
|
24
|
+
<dsa-icon
|
|
25
|
+
library="system"
|
|
26
|
+
name="check"
|
|
27
|
+
hidden
|
|
28
|
+
class="copy-button__icon success-icon"
|
|
29
|
+
></dsa-icon>
|
|
30
|
+
<dsa-icon
|
|
31
|
+
library="system"
|
|
32
|
+
name="close"
|
|
33
|
+
hidden
|
|
34
|
+
class="copy-button__icon error-icon"
|
|
35
|
+
></dsa-icon>
|
|
36
|
+
</button>
|
|
37
|
+
</dsa-tooltip>
|
|
38
|
+
`}};t.styles=T,t.dependencies={"dsa-icon":$,"dsa-tooltip":z},e([p(".copy-icon")],t.prototype,"copyIcon",2),e([p(".success-icon")],t.prototype,"successIcon",2),e([p(".error-icon")],t.prototype,"errorIcon",2),e([p("dsa-tooltip")],t.prototype,"tooltip",2),e([p(".copy-button__button")],t.prototype,"button",2),e([y()],t.prototype,"isCopying",2),e([y()],t.prototype,"status",2),e([r()],t.prototype,"value",2),e([r()],t.prototype,"from",2),e([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([r({attribute:"copy-label"})],t.prototype,"copyLabel",2),e([r({attribute:"success-label"})],t.prototype,"successLabel",2),e([r({attribute:"error-label"})],t.prototype,"errorLabel",2),e([r({attribute:"tooltip-placement"})],t.prototype,"tooltipPlacement",2),e([r({type:Boolean})],t.prototype,"hoist",2),e([r({reflect:!0})],t.prototype,"size",2),t=e([I("dsa-copy-button")],t);f("copy.in",{keyframes:[{scale:".25",opacity:".25"},{scale:"1",opacity:"1"}],options:{duration:100}});f("copy.out",{keyframes:[{scale:"1",opacity:"1"},{scale:".25",opacity:"0"}],options:{duration:100}});export{t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as w}from"./chunk.5B4NN6DN.js";import{a as b}from"./chunk.
|
|
1
|
+
import{a as w}from"./chunk.5B4NN6DN.js";import{a as b}from"./chunk.PAYML2WU.js";import{a as p}from"./chunk.KLRPP4NQ.js";import{a as r,b as h,c as d}from"./chunk.HHVNQNCC.js";import{a as l,c as u}from"./chunk.TV2TMO2H.js";import{a as v}from"./chunk.B4KFHYLS.js";import{c as g}from"./chunk.Q54GPNUS.js";import{d as f}from"./chunk.ZBHHLRFH.js";import{a}from"./chunk.BWEPOOQP.js";import{a as m,b as s,d as n,f as y}from"./chunk.KBZ32KWP.js";import{a as c}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var t=class extends y{constructor(){super(...arguments);this.localize=new g(this);this.content="";this.placement="top";this.disabled=!1;this.distance=8;this.open=!1;this.skidding=0;this.trigger="hover focus";this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleDocumentKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.show()}handleDocumentKeyDown(e){e.key==="Escape"&&(e.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let e=h(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}}handleMouseOut(){if(this.hasTrigger("hover")){let e=h(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("dsa-show"),document.addEventListener("keydown",this.handleDocumentKeyDown),await d(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:e,options:o}=u(this,"tooltip.show",{dir:this.localize.dir()});await r(this.popup.popup,e,o),this.popup.reposition(),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),document.removeEventListener("keydown",this.handleDocumentKeyDown),await d(this.body);let{keyframes:e,options:o}=u(this,"tooltip.hide",{dir:this.localize.dir()});await r(this.popup.popup,e,o),this.popup.active=!1,this.body.hidden=!0,this.emit("dsa-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,await p(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await p(this,"dsa-after-hide")}handleDefaultSlotChange(){let e=this.querySelector("dsa-button, dsa-icon-button, .tag__trigger");e==null||e.setAttribute("description",this.content),e||v("The target element of the tooltip (in its default slot) must be a dsa-button or dsa-icon-button.")}render(){return c`
|
|
2
2
|
<dsa-popup
|
|
3
3
|
part="base"
|
|
4
4
|
exportparts="
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as n}from"./chunk.52THFY6J.js";import{a as i}from"./chunk.
|
|
1
|
+
import{a as n}from"./chunk.52THFY6J.js";import{a as i}from"./chunk.ODDQO2HD.js";import{d as a}from"./chunk.ZBHHLRFH.js";import{a as r,b as l,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.hasSlotController=new i(this,"label");this.vertical=!1;this.alignLinks="left"}connectedCallback(){super.connectedCallback(),this.hasSlotController.test("label")&&this.setAttribute("role","region")}render(){let c=this.hasSlotController.test("label");return s`
|
|
2
2
|
<div
|
|
3
3
|
class=${a({"footer-sitemap":!0,"footer-sitemap--align-links-center":this.alignLinks==="center","footer-sitemap--align-links-right":this.alignLinks==="right","footer-sitemap--has-label":c,"footer-sitemap--has-vertical":this.vertical})}
|
|
4
4
|
>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk.
|
|
1
|
+
import{a as n}from"./chunk.NVJC2QTS.js";import{a as i}from"./chunk.QRLWNZCU.js";import{a as d}from"./chunk.BWEPOOQP.js";import{a as r}from"./chunk.KBZ32KWP.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends i{constructor(){super(...arguments);this.type="radio"}handleClick(){this.disabled||this.readonly||this.parentDisabled||this.parentReadonly||this.checked||(this.checked=!0)}handleDeactivatedChange(){let a=this.parentElement;a instanceof n&&a.updateTabIndexes()}};t([d(["disabled","readonly","parentDisabled","parentReadonly"],{waitUntilFirstUpdate:!0})],e.prototype,"handleDeactivatedChange",1),e=t([r("dsa-radio-button")],e);export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as n}from"./chunk.MM6IW466.js";import{a as s}from"./chunk.
|
|
1
|
+
import{a as n}from"./chunk.MM6IW466.js";import{a as s}from"./chunk.ODDQO2HD.js";import{a as e}from"./chunk.2RF4WD6T.js";import{a as i,f as a}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as o}from"./chunk.IZ2HVRME.js";var t=class extends a{constructor(){super(...arguments);this.hasSlotController=new s(this,"title","content")}render(){let l=this.hasSlotController.test("title");return r`
|
|
2
2
|
<div
|
|
3
3
|
part="base"
|
|
4
4
|
role=${e(l?"region":void 0)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";var
|
|
1
|
+
import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";var c=o`
|
|
2
2
|
${t}
|
|
3
3
|
|
|
4
4
|
:host {
|
|
@@ -40,17 +40,18 @@ import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";
|
|
|
40
40
|
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
.copy-button__icon {
|
|
44
|
+
aspect-ratio: 1;
|
|
45
|
+
height: unset;
|
|
46
|
+
}
|
|
43
47
|
.copy-button--small .copy-button__icon {
|
|
44
48
|
width: var(--dsa-wc-icon-button-size--small);
|
|
45
|
-
height: var(--dsa-wc-icon-button-size--small);
|
|
46
49
|
}
|
|
47
50
|
.copy-button--medium .copy-button__icon {
|
|
48
51
|
width: var(--dsa-wc-icon-button-size--medium);
|
|
49
|
-
height: var(--dsa-wc-icon-button-size--medium);
|
|
50
52
|
}
|
|
51
53
|
.copy-button--large .copy-button__icon {
|
|
52
54
|
width: var(--dsa-wc-icon-button-size--large);
|
|
53
|
-
height: var(--dsa-wc-icon-button-size--large);
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
/* Colors */
|
|
@@ -60,4 +61,4 @@ import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";
|
|
|
60
61
|
.copy-button--error .copy-button__button {
|
|
61
62
|
color: var(--dsa-color-primitive-colors-feedback-error-500);
|
|
62
63
|
}
|
|
63
|
-
`;export{
|
|
64
|
+
`;export{c as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as L}from"./chunk.VMXJHVRU.js";import{a as _}from"./chunk.HJIBYZA7.js";import{a as x}from"./chunk.U4TME7DS.js";import{a as F}from"./chunk.WFPILKOS.js";import{a as T}from"./chunk.SWEIVB73.js";import{a as z}from"./chunk.
|
|
1
|
+
import{a as L}from"./chunk.VMXJHVRU.js";import{a as _}from"./chunk.HJIBYZA7.js";import{a as x}from"./chunk.U4TME7DS.js";import{a as F}from"./chunk.WFPILKOS.js";import{a as T}from"./chunk.SWEIVB73.js";import{a as z}from"./chunk.ODDQO2HD.js";import{b as $}from"./chunk.FWTZS7LK.js";import{a as E}from"./chunk.VSTKTCJY.js";import{a as f}from"./chunk.B4KFHYLS.js";import{a as I}from"./chunk.NIRNX67K.js";import{c as C}from"./chunk.Q54GPNUS.js";import{c as y}from"./chunk.AM2ZR2Y2.js";import{a as c}from"./chunk.2RF4WD6T.js";import{d as m}from"./chunk.ZBHHLRFH.js";import{a as u}from"./chunk.BWEPOOQP.js";import{a as b,b as l,c as v,d as h,f as g}from"./chunk.KBZ32KWP.js";import{a as n}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var t=class extends g{constructor(){super(...arguments);this.formControlController=new $(this,{assumeInteractionOn:["dsa-blur","dsa-file-upload"],value:()=>[...this.fileUploadInput.files]});this.hasSlotController=new z(this,"help-text","label","button-label","description");this.localize=new C(this);this.storedFiles=[];this.acceptedTypesCache=[];this.internalError="";this.size="medium";this.label="";this.type="button";this.buttonLabel="";this.description="";this.helpText="";this.disabled=!1;this.required=!1;this.accept="";this.multiple=!1;this.appendFiles=!1;this.error=!1;this.directory=!1;this.name="";this.value="";this.defaultValue="";this.errorMessage=""}get validity(){return this.fileUploadInput.validity}get validationMessage(){return this.fileUploadInput.validationMessage}get files(){return this.fileUploadInput.files}checkValidity(){return this.fileUploadInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){let e=this.fileUploadInput.reportValidity();return e||this.fileUploadButton.focus(),e}setCustomValidity(e){this.fileUploadInput.setCustomValidity(e),this.formControlController.updateValidity()}removeFile(e){this.storedFiles.splice(e,1),this.syncInputFilesFromStore(),this.value=this.fileUploadInput.value,this.emit("dsa-file-upload",{detail:{files:this.storedFiles}})}connectedCallback(){super.connectedCallback(),this.acceptedTypesCache=this.accept?this.accept.split(",").map(e=>e.trim()):[],this.updateFileItemsSize()}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){e.stopPropagation(),this.fileUploadInput.click()}handleInvalid(e){this.internalError="",this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}getAllFileElements(){return[...this.querySelectorAll("dsa-file-upload-item")]}updateFileItemsSize(){this.getAllFileElements().forEach(e=>e.setAttribute("size",this.size))}syncInputFilesFromStore(){let e=new DataTransfer;this.storedFiles.forEach(r=>e.items.add(r)),this.fileUploadInput.files=e.files}handleDefaultSlotChange(){this.updateFileItemsSize()}handleBlur(){this.emit("dsa-blur")}handleFocus(){this.emit("dsa-focus")}addFiles(e){this.internalError="";let r=this.filterValidFiles(e);this.multiple?this.appendFiles?this.storedFiles=[...this.storedFiles,...r]:this.storedFiles=r:this.storedFiles=r,this.syncInputFilesFromStore(),this.value=this.fileUploadInput.value,this.formControlController.updateValidity(),this.emit("dsa-file-upload",{detail:{files:this.storedFiles}})}isAcceptedFileType(e){var a;if(!this.accept)return!0;let r=this.acceptedTypesCache,o=e.type,d=`.${(a=e.name.split(".").pop())!=null?a:""}`;return r.some(s=>{if(s.startsWith("."))return d===s;if(s.endsWith("/*")){let p=s.split("/")[0];return o.startsWith(p+"/")}else return o===s})}isAcceptedFileSize(e){return this.fileSizeLimit?e.size<=this.fileSizeLimit:!0}filterValidFiles(e){let r=[],o=[],d=e.filter(a=>{let s=this.isAcceptedFileType(a);s||r.push(a.name);let p=this.isAcceptedFileSize(a);return p||o.push(a.name),s&&p});if(r.length>0||o.length>0){let a=[];r.length>0&&a.push(n`${this.localize.term("fileTypeNotAccepted",r)}
|
|
2
2
|
<ul>
|
|
3
3
|
${r.map(s=>n`<li>${s}</li>`)}
|
|
4
4
|
</ul>`),o.length>0&&a.push(n`${this.localize.term("fileSizeExceeded",o)}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import{a as n}from"./chunk.6B4UFELP.js";import{a as l}from"./chunk.2RF4WD6T.js";import{d as c}from"./chunk.ZBHHLRFH.js";import{a as o,b as a,d,f as m}from"./chunk.KBZ32KWP.js";import{a as i}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends m{constructor(){super(...arguments);this.title="";this.calloutTitle=""}render(){let{calloutTitle:p,title:u,headerLevel:s}=this,r=p||u;return i`
|
|
2
|
+
<div
|
|
3
|
+
part="base"
|
|
4
|
+
class=${c({callout:!0})}
|
|
5
|
+
role=${l(r?"region":void 0)}
|
|
6
|
+
aria-labelledby=${l(r?"header":void 0)}
|
|
7
|
+
>
|
|
8
|
+
<div class="callout__text">
|
|
9
|
+
${r?i`
|
|
10
|
+
<div
|
|
11
|
+
part="header"
|
|
12
|
+
id="header"
|
|
13
|
+
aria-level=${l(s)}
|
|
14
|
+
role=${l(s?"heading":void 0)}
|
|
15
|
+
class="callout__title"
|
|
16
|
+
>
|
|
17
|
+
${r}
|
|
18
|
+
</div>
|
|
19
|
+
`:""}
|
|
20
|
+
<slot part="message" class="callout__message"></slot>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
`}};e.styles=n,t([d('[part~="base"]')],e.prototype,"base",2),t([a()],e.prototype,"title",2),t([a({attribute:"callout-title"})],e.prototype,"calloutTitle",2),t([a({attribute:"header-level",reflect:!0})],e.prototype,"headerLevel",2),e=t([o("dsa-callout")],e);export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as f}from"./chunk.TMUGGTVF.js";import{a as L}from"./chunk.RVJ7GEHV.js";import{a as O}from"./chunk.YQETGEXV.js";import{a as V}from"./chunk.2OZWUNZO.js";import{c as w}from"./chunk.3RLUYXJN.js";import{a as _}from"./chunk.PIG773U2.js";import{a as C}from"./chunk.W6E7LGND.js";import{c as $}from"./chunk.AM2ZR2Y2.js";import{a as m}from"./chunk.QTD6NQFL.js";import{a as v}from"./chunk.2RF4WD6T.js";import{a as c}from"./chunk.BWEPOOQP.js";import{a as y,b as h,c as r,d as u}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{a as g,b,f as a}from"./chunk.IZ2HVRME.js";var p="dsa-option",i=class extends O{constructor(){super(...arguments);this.displayLabel="";this.allOptions=[];this.selectedOptions=[];this.displayedOptions=[];this.searchValue="";this.nbOptions=0;this.seeAll=!1;this.debounceTimerId=null;this.optionsByValue=new Map;this.normalizedLabelsByValue=new Map;this.value="";this.multiple=!1;this.maxVisibleListLength=5;this.searchable=!1;this.debounceTimeout=300;this.optionGender="masculine";this.columnsFilter=!1}connectedCallback(){super.connectedCallback(),this.allOptions=this.getAllOptions(),this.nbOptions=this.allOptions.length,this.filterOptions()}disconnectedCallback(){super.disconnectedCallback(),this.debounceTimerId!==null&&(clearTimeout(this.debounceTimerId),this.debounceTimerId=null)}handleKeyDown(e){super.handleKeyDown(e);let l=e.composedPath(),t=l.some(n=>n instanceof V),s=l.some(n=>n instanceof f);if((e.key==="Enter"||e.key===" ")&&t&&this.currentOption&&!this.currentOption.disabled&&(e.preventDefault(),this.multiple||this.value.includes(this.currentOption.value)?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("dsa-change")}),!this.multiple&&!this.drawer&&(this.hide(),this.filterTrigger.focus({preventScroll:!0}))),!this.multiple&&t&&["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let n=this.displayedOptions.indexOf(this.currentOption),d=Math.max(0,n);!(n===0&&e.key==="ArrowUp")&&!(n===this.displayedOptions.length-1&&e.key==="ArrowDown")&&e.preventDefault(),e.key==="ArrowDown"&&n<this.displayedOptions.length-1?d=n+1:e.key==="ArrowUp"&&n>0?d=n-1:e.key==="Home"?d=0:e.key==="End"&&(d=this.displayedOptions.length-1),this.setCurrentOption(this.displayedOptions[d])}s&&e.stopPropagation()}handleSearchInput(e){e.stopPropagation(),this.searchValue=this.searchInput.value,this.debounceTimerId!==null&&clearTimeout(this.debounceTimerId),this.debounceTimerId=setTimeout(()=>{this.emit("dsa-input")},this.debounceTimeout)}handleOptionFocus(e){let t=e.target.closest(p);t&&this.setCurrentOption(t)}handleOptionClick(e){let t=e.target.closest(p),s=this.value;t&&!t.disabled&&(this.multiple||this.value.includes(t.value)?this.toggleOptionSelection(t):this.setSelectedOptions(t),this.value!==s&&this.updateComplete.then(()=>{this.emit("dsa-change")}),!this.multiple&&!this.drawer&&(this.updateComplete.then(()=>this.filterTrigger.focus({preventScroll:!0})),this.hide()))}filterOptions(){if(this.searchValue.length>0){let e=m(this.searchValue);this.displayedOptions=this.allOptions.filter(l=>{var s;return((s=this.normalizedLabelsByValue.get(l.value))!=null?s:m(l.innerText)).includes(e)})}else!this.seeAll&&this.maxVisibleListLength>0?this.displayedOptions=this.allOptions.slice(0,this.maxVisibleListLength):this.displayedOptions=this.allOptions;this.displayedOptions.forEach(e=>e.tabIndex=0)}handleMultipleHeaderButtonClick(){this.selectedOptions.length>0?this.allOptions.forEach(e=>e.selected=!1):this.allOptions.forEach(e=>e.selected=!0),this.selectionChanged(),this.updateComplete.then(()=>{this.emit("dsa-change")})}handleSearchClear(){this.searchValue=""}handleSeeAllClick(){this.seeAll=!0,this.filterOptions()}handleDefaultSlotChange(){if(customElements.get(p)){this.allOptions=this.getAllOptions(),this.nbOptions=this.allOptions.length;let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(l=>e.includes(l.value))),this.filterOptions()}else customElements.whenDefined(p).then(()=>this.handleDefaultSlotChange())}getAllOptions(){let e=this.querySelectorAll(p),l=[];return this.optionsByValue.clear(),this.normalizedLabelsByValue.clear(),e.forEach(t=>{t.role=this.multiple?"checkbox":"radio";let s=t.cloneNode(!0);s.selected=t.selected,s.multiple=this.multiple,s.role=this.multiple?"checkbox":"radio",s.classList.add("filter-select__option"),s.onfocus=this.handleOptionFocus.bind(this),l.push(s),this.optionsByValue.set(t.value,t),this.normalizedLabelsByValue.set(t.value,m(s.innerText))}),l}getFirstOption(){return this.querySelector(p)}setCurrentOption(e){this.displayedOptions.forEach(l=>{l.current=!1}),e&&(this.currentOption=e,e.current=!0,e.focus())}setSelectedOptions(e){let l=Array.isArray(e)?e:[e];this.allOptions.forEach(t=>t.selected=!1),l.length&&l.forEach(t=>{let s=this.optionsByValue.get(t.value);s&&(t.selected=!0,s.selected=!0)}),this.selectionChanged()}toggleOptionSelection(e,l){let t=this.optionsByValue.get(e.value);t&&(l===!0||l===!1?t.selected=l:t.selected=!e.selected,this.selectionChanged())}selectionChanged(){var l,t;this.selectedOptions=this.allOptions.filter(s=>s.selected),this.filterOptions();let e=new Set(this.selectedOptions.map(s=>s.value));this.displayedOptions.forEach(s=>{s.selected=e.has(s.value)}),this.multiple?this.value=this.selectedOptions.map(s=>s.value):this.value=(t=(l=this.selectedOptions[0])==null?void 0:l.value)!=null?t:"",this.selectedOptions[0]?this.selectedOptions[0].updateComplete.then(()=>{var s,n;this.displayLabel=(n=(s=this.selectedOptions[0])==null?void 0:s.getTextLabel())!=null?n:""}):this.displayLabel=""}getDisplayedOptionsList(){return this.multiple?o`<div role="list">
|
|
2
2
|
${this.displayedOptions.map(e=>o`<div role="listitem">${e}</div>`)}
|
|
3
3
|
</div>`:this.displayedOptions}handleSearchValueChange(){this.searchValue.length>0&&(this.seeAll=!0),this.filterOptions()}handleValueChange(){let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(l=>e.includes(l.value)))}async handleOpenChange(){this.open&&(this.selectedOptions.length>0&&(this.seeAll=!0),this.filterOptions(),this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption())),await super.handleOpenChange(),this.open&&(requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)}),this.currentOption&&w(this.currentOption,this.listbox,"vertical","auto"))}handleSeeAllChange(){this.seeAll&&this.displayedOptions[this.maxVisibleListLength]!==void 0&&setTimeout(()=>this.displayedOptions[this.maxVisibleListLength].focus())}handleMultipleChange(){this.handleDefaultSlotChange()}async hide(){await super.hide(),this.searchValue=""}renderTrigger(){if(this.columnsFilter)return o`
|
|
4
4
|
<dsa-button
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a}from"./chunk.4DONSG7S.js";import{a as s}from"./chunk.ODH67RGS.js";import{a as o}from"./chunk.
|
|
1
|
+
import{a}from"./chunk.4DONSG7S.js";import{a as s}from"./chunk.ODH67RGS.js";import{a as o}from"./chunk.ODDQO2HD.js";import{a as l,f as i}from"./chunk.KBZ32KWP.js";import{a as e}from"./chunk.GP725TPQ.js";import{f as r}from"./chunk.IZ2HVRME.js";var t=class extends i{constructor(){super(...arguments);this.hasSlotController=new o(this,"text-left","text-right")}render(){return e`
|
|
2
2
|
<div part="base">
|
|
3
3
|
<slot part="text-left" name="text-left"></slot>
|
|
4
4
|
${this.hasSlotController.test("text-left")&&this.hasSlotController.test("text-right")?e`<dsa-divider part="divider" vertical></dsa-divider>`:""}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import{a as v}from"./chunk.H63LC2FP.js";import{a as g,b as w}from"./chunk.3RLUYXJN.js";import{a as $}from"./chunk.ZJVQ3VQM.js";import{a as L}from"./chunk.ODDQO2HD.js";import{a as H}from"./chunk.2FPBPQUJ.js";import{a as b}from"./chunk.KLRPP4NQ.js";import{a as d,c as u}from"./chunk.HHVNQNCC.js";import{a as c,c as h}from"./chunk.TV2TMO2H.js";import{a as y}from"./chunk.B4KFHYLS.js";import{a as z}from"./chunk.NIRNX67K.js";import{c as q}from"./chunk.Q54GPNUS.js";import{a as k}from"./chunk.2RF4WD6T.js";import{d as _}from"./chunk.ZBHHLRFH.js";import{a as E}from"./chunk.BWEPOOQP.js";import{a as C,b as n,d as f,f as T}from"./chunk.KBZ32KWP.js";import{a as p}from"./chunk.GP725TPQ.js";import{f as o}from"./chunk.IZ2HVRME.js";var e=class extends T{constructor(){super(...arguments);this.hasSlotController=new L(this,"footer");this.localize=new q(this);this.modal=new v(this);this.open=!1;this.label="";this.hideTitle=!1;this.noCloseButton=!1;this.noHeader=!1;this.size="medium"}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new v(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),g(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),w(this)}requestClose(t){let a=this.emit("dsa-request-close",{cancelable:!0,detail:{source:t}});if(this.noCloseButton&&a.preventDefault(),a.defaultPrevented){let{localize:s,panel:l}=this,i=h(this,"dialog.denyClose",{dir:s.dir()});d(l,i.keyframes,i.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&this.modal.isActive()&&t.key==="Escape"&&(this.querySelector("dsa-tooltip[open]")||(t.stopPropagation(),this.requestClose("keyboard")))}async handleOpenChange(){if(this.open){this.emit("dsa-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate();let{dialog:t,panel:a,overlay:s,localize:l}=this;g(this);let i=this.querySelector("[autofocus]");i&&i.removeAttribute("autofocus"),await Promise.all([u(t),u(s)]),t.hidden=!1,requestAnimationFrame(()=>{this.emit("dsa-initial-focus",{cancelable:!0}).defaultPrevented||(i?i.focus({preventScroll:!0}):a.focus({preventScroll:!0})),i&&i.setAttribute("autofocus","")});let m=h(this,"dialog.show",{dir:l.dir()}),r=h(this,"dialog.overlay.show",{dir:l.dir()});await Promise.all([d(a,m.keyframes,m.options),d(s,r.keyframes,r.options)]),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),this.modal.deactivate();let{dialog:t,panel:a,overlay:s,localize:l}=this;await Promise.all([u(t),u(s)]);let i=h(this,"dialog.hide",{dir:l.dir()}),m=h(this,"dialog.overlay.hide",{dir:l.dir()});await Promise.all([d(s,m.keyframes,m.options).then(()=>{s.hidden=!0}),d(a,i.keyframes,i.options).then(()=>{a.hidden=!0})]),t.hidden=!0,s.hidden=!1,a.hidden=!1,w(this);let r=this.originalTrigger;typeof(r==null?void 0:r.focus)=="function"&&setTimeout(()=>r.focus()),this.emit("dsa-after-hide")}}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(){let t=!this.noHeader&&!this.hideTitle;return!this.label&&!this.hasSlotController.test("label")&&y("<dsa-dialog> require a label attribute or a label slot for accessibility"),!t&&!this.label&&y("<dsa-dialog> require a label attribute for accessibility when the header or the title are hidden"),p`
|
|
2
|
+
<div
|
|
3
|
+
part="base"
|
|
4
|
+
class=${_({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer"),"dialog--small":this.size==="small","dialog--medium":this.size==="medium","dialog--large":this.size==="large"})}
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
part="overlay"
|
|
8
|
+
class="dialog__overlay"
|
|
9
|
+
@click=${()=>this.requestClose("overlay")}
|
|
10
|
+
></div>
|
|
11
|
+
|
|
12
|
+
<div
|
|
13
|
+
part="panel"
|
|
14
|
+
class="dialog__panel"
|
|
15
|
+
role="dialog"
|
|
16
|
+
aria-modal="true"
|
|
17
|
+
aria-hidden=${this.open?"false":"true"}
|
|
18
|
+
aria-label=${z(t?void 0:this.label)}
|
|
19
|
+
aria-labelledby=${k(t?"title":void 0)}
|
|
20
|
+
tabindex="-1"
|
|
21
|
+
>
|
|
22
|
+
${this.noHeader?"":p`
|
|
23
|
+
<header part="header" class="dialog__header">
|
|
24
|
+
${this.hideTitle?"":p`
|
|
25
|
+
<h1 part="title" class="dialog__title" id="title">
|
|
26
|
+
<slot name="label">
|
|
27
|
+
${this.label.length>0?this.label:"\uFEFF"}
|
|
28
|
+
</slot>
|
|
29
|
+
</h1>
|
|
30
|
+
`}
|
|
31
|
+
<div part="header-actions" class="dialog__header-actions">
|
|
32
|
+
<slot name="header-actions"></slot>
|
|
33
|
+
${this.noCloseButton?"":p`
|
|
34
|
+
<dsa-icon-button
|
|
35
|
+
part="close-button"
|
|
36
|
+
exportparts="base:close-button__base"
|
|
37
|
+
class="dialog__close"
|
|
38
|
+
name="close"
|
|
39
|
+
label=${this.localize.term("close")}
|
|
40
|
+
@click="${()=>this.requestClose("close-button")}"
|
|
41
|
+
library="system"
|
|
42
|
+
size="xlarge"
|
|
43
|
+
></dsa-icon-button>
|
|
44
|
+
`}
|
|
45
|
+
</div>
|
|
46
|
+
</header>
|
|
47
|
+
`}
|
|
48
|
+
<div class="dialog__body-container">
|
|
49
|
+
<slot part="body" class="dialog__body"></slot>
|
|
50
|
+
</div>
|
|
51
|
+
<footer part="footer" class="dialog__footer">
|
|
52
|
+
<slot name="footer"></slot>
|
|
53
|
+
</footer>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
`}};e.styles=$,e.dependencies={"dsa-icon-button":H},o([f(".dialog")],e.prototype,"dialog",2),o([f(".dialog__panel")],e.prototype,"panel",2),o([f(".dialog__overlay")],e.prototype,"overlay",2),o([n({type:Boolean,reflect:!0})],e.prototype,"open",2),o([n({reflect:!0})],e.prototype,"label",2),o([n({attribute:"hide-title",type:Boolean,reflect:!0})],e.prototype,"hideTitle",2),o([n({attribute:"no-close-button",type:Boolean,reflect:!0})],e.prototype,"noCloseButton",2),o([n({attribute:"no-header",type:Boolean,reflect:!0})],e.prototype,"noHeader",2),o([n({reflect:!0})],e.prototype,"size",2),o([E("open",{waitUntilFirstUpdate:!0})],e.prototype,"handleOpenChange",1),e=o([C("dsa-dialog")],e);c("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});c("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});c("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});c("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:"var(--dsa-wc-dialog-overlay-opacity)"}],options:{duration:250}});c("dialog.overlay.hide",{keyframes:[{opacity:"var(--dsa-wc-dialog-overlay-opacity)"},{opacity:0}],options:{duration:250}});export{e as a};
|