@ds-autonomie/web-components 2.19.0 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/cdn/chunks/chunk.2FAAI4ZJ.js +112 -0
- package/cdn/chunks/{chunk.RNR6P3VA.js → chunk.2MGX3JTR.js} +1 -1
- package/cdn/chunks/chunk.37TJAUZA.js +47 -0
- package/cdn/chunks/{chunk.AZVWRRFP.js → chunk.3YXGLEPK.js} +1 -1
- package/cdn/chunks/{chunk.YDZQVGSP.js → chunk.44RPMYBZ.js} +2 -2
- package/cdn/chunks/{chunk.JR3UZ7RV.js → chunk.4DONSG7S.js} +5 -4
- package/cdn/chunks/{chunk.GFXPRQI6.js → chunk.4IZELNZN.js} +4 -4
- package/cdn/chunks/chunk.4XCZGVYA.js +121 -0
- package/cdn/chunks/{chunk.EFCT4GFV.js → chunk.52THFY6J.js} +1 -0
- package/cdn/chunks/{chunk.KOU7YZ7Z.js → chunk.56JDCX3P.js} +1 -1
- package/cdn/chunks/{chunk.SN7BDOHN.js → chunk.57RCXLSL.js} +12 -35
- package/cdn/chunks/{chunk.YZO4H6DD.js → chunk.5Z62TASD.js} +1 -1
- package/cdn/chunks/{chunk.WRM72LHH.js → chunk.5ZXHNMZU.js} +1 -1
- package/cdn/chunks/{chunk.IDWQZLCM.js → chunk.67T75VHN.js} +8 -8
- package/cdn/chunks/{chunk.CEKPJB4F.js → chunk.6B4U6EHI.js} +7 -13
- package/cdn/chunks/chunk.6JL6NMDO.js +80 -0
- package/cdn/chunks/{chunk.6MYWUUAG.js → chunk.6QUNPG2K.js} +11 -12
- package/cdn/chunks/{chunk.EZQSKUPG.js → chunk.6UXK7G4D.js} +1 -1
- package/cdn/chunks/{chunk.NEWW6U6M.js → chunk.6WO7QCUB.js} +2 -0
- package/cdn/chunks/{chunk.CIFSYLTI.js → chunk.74Q4P5NY.js} +1 -1
- package/cdn/chunks/chunk.7JVAXVTA.js +1 -0
- package/cdn/chunks/{chunk.WWRGGVFZ.js → chunk.7NBAEATD.js} +1 -1
- package/cdn/chunks/chunk.7Y54WEHT.js +85 -0
- package/cdn/chunks/{chunk.6GC5ODVL.js → chunk.AIMBA5HQ.js} +6 -6
- package/cdn/chunks/{chunk.F4EQPWW4.js → chunk.ALDKYE6L.js} +1 -1
- package/cdn/chunks/{chunk.QXMNA43O.js → chunk.BBVHFT7Q.js} +1 -1
- package/cdn/chunks/chunk.BKSG5KWK.js +108 -0
- package/cdn/chunks/{chunk.2EC2JS5U.js → chunk.BMNZ4YMI.js} +1 -1
- package/cdn/chunks/{chunk.JP66XCHO.js → chunk.BNTHEAJN.js} +8 -9
- package/cdn/chunks/{chunk.CWT6MEMU.js → chunk.BZT2GJNM.js} +19 -23
- package/cdn/chunks/{chunk.RGBTVRRP.js → chunk.CDESACOR.js} +10 -12
- package/cdn/chunks/{chunk.3URUFDPU.js → chunk.CNAZZZJL.js} +1 -1
- package/cdn/chunks/{chunk.GPW6JCHZ.js → chunk.CR7CW7MM.js} +1 -1
- package/cdn/chunks/{chunk.ZCITPD2M.js → chunk.DBXX64Q4.js} +1 -1
- package/cdn/chunks/{chunk.TS5WHKH6.js → chunk.DS2JXBOZ.js} +1 -1
- package/cdn/chunks/{chunk.FX5UP23Z.js → chunk.EFB2SY45.js} +1 -1
- package/cdn/chunks/{chunk.M5ND6PIZ.js → chunk.EQQUOYXA.js} +6 -6
- package/cdn/chunks/{chunk.IMDJ7GD2.js → chunk.EV7HZRUS.js} +1 -1
- package/cdn/chunks/chunk.EXQPVGOS.js +1 -0
- package/cdn/chunks/{chunk.KWBL3MII.js → chunk.F4AQSIUW.js} +1 -1
- package/cdn/chunks/{chunk.2MY5TX6M.js → chunk.FDMQXEYE.js} +1 -2
- package/cdn/chunks/{chunk.JLB52ESL.js → chunk.FEPCSTZT.js} +1 -1
- package/cdn/chunks/{chunk.K747WAAP.js → chunk.FSDHPRBJ.js} +9 -13
- package/cdn/chunks/{chunk.2J6VNJAV.js → chunk.FUN7B2IQ.js} +1 -1
- package/cdn/chunks/chunk.G46A6S6B.js +40 -0
- package/cdn/chunks/{chunk.YBVIKP5F.js → chunk.G5H2VKPM.js} +2 -2
- package/cdn/chunks/{chunk.F6P3DA77.js → chunk.GA4W656I.js} +3 -4
- package/cdn/chunks/{chunk.J7MFL7JZ.js → chunk.GEX7B2RZ.js} +1 -1
- package/cdn/chunks/{chunk.7IFO43EM.js → chunk.GHH7XYKB.js} +1 -1
- package/cdn/chunks/{chunk.CIKTPEVX.js → chunk.GLMWJUWZ.js} +2 -0
- package/cdn/chunks/{chunk.GVL377SN.js → chunk.GWF5GFSQ.js} +1 -1
- package/cdn/chunks/chunk.H4I7G2EQ.js +3 -0
- package/cdn/chunks/{chunk.7ZYAJWHQ.js → chunk.H6456THW.js} +1 -1
- package/cdn/chunks/chunk.HR3DGR2Y.js +35 -0
- package/cdn/chunks/{chunk.MK2QCBNO.js → chunk.I2SFPZRT.js} +13 -13
- package/cdn/chunks/chunk.JEOSRXCU.js +123 -0
- package/cdn/chunks/{chunk.A5DTG2XB.js → chunk.JU47KXI6.js} +3 -3
- package/cdn/chunks/{chunk.DR6FOTG4.js → chunk.JUMQSXMT.js} +1 -1
- package/cdn/chunks/{chunk.5PWPU25F.js → chunk.JVEPCKCT.js} +5 -5
- package/cdn/chunks/{chunk.COMV5MJ5.js → chunk.K3JAYUBA.js} +1 -1
- package/cdn/chunks/{chunk.EJ5DXQU3.js → chunk.KIBXAWKS.js} +1 -0
- package/cdn/chunks/{chunk.LOZ2JZLU.js → chunk.KLTVL4KH.js} +12 -15
- package/cdn/chunks/{chunk.MRVUEYXZ.js → chunk.KM72KRA4.js} +1 -1
- package/cdn/chunks/chunk.KVJWSAR3.js +173 -0
- package/cdn/chunks/{chunk.63UE4VAO.js → chunk.LYLTFAFC.js} +4 -4
- package/cdn/chunks/{chunk.AYT5ORA7.js → chunk.M57VWWNA.js} +1 -1
- package/cdn/chunks/{chunk.BDRT5OOU.js → chunk.M66L2D2H.js} +1 -1
- package/cdn/chunks/{chunk.HW5UT2FF.js → chunk.MU36LMLD.js} +3 -3
- package/cdn/chunks/{chunk.2QQVNGQU.js → chunk.NG2DZYRR.js} +1 -1
- package/cdn/chunks/{chunk.JFT7O46L.js → chunk.NH327H72.js} +1 -1
- package/cdn/chunks/{chunk.4VP4RPNY.js → chunk.NVG5W3ED.js} +1 -1
- package/cdn/chunks/chunk.NZKPTTUJ.js +121 -0
- package/cdn/chunks/chunk.O52WFAX7.js +64 -0
- package/cdn/chunks/{chunk.77YRGKFQ.js → chunk.OH7GC6EG.js} +1 -1
- package/cdn/chunks/{chunk.AGA6W4U2.js → chunk.OSB2X3QH.js} +4 -4
- package/cdn/chunks/{chunk.E2GQJ6JW.js → chunk.OSQWNBGB.js} +1 -1
- package/cdn/chunks/{chunk.THWI644G.js → chunk.OSR6DVXB.js} +2 -2
- package/cdn/chunks/{chunk.4IWXGSUM.js → chunk.OTNIMSDB.js} +2 -2
- package/cdn/chunks/{chunk.2JTZGBMF.js → chunk.P7SG42IM.js} +1 -1
- package/cdn/chunks/{chunk.PIWF5VEN.js → chunk.PNTZLR2X.js} +1 -1
- package/cdn/chunks/{chunk.7OMTHUFI.js → chunk.Q2GIRDX3.js} +1 -1
- package/cdn/chunks/{chunk.4A2SP2JA.js → chunk.Q2IGZDBA.js} +1 -1
- package/cdn/chunks/{chunk.LLP7EPAY.js → chunk.Q7GZ4AMX.js} +1 -1
- package/cdn/chunks/chunk.QHQUGZAC.js +1 -0
- package/cdn/chunks/{chunk.43ZUOVN3.js → chunk.QPMWIVIV.js} +8 -5
- package/cdn/chunks/{chunk.7WZQFRLE.js → chunk.QSMVLQKG.js} +1 -1
- package/cdn/chunks/chunk.QXHK62F7.js +1 -0
- package/cdn/chunks/{chunk.VOJKFSPN.js → chunk.RDYBSHLC.js} +1 -1
- package/cdn/chunks/{chunk.C2H2IJ5N.js → chunk.RX76YMGL.js} +1 -1
- package/cdn/chunks/{chunk.BARZKNDN.js → chunk.RXX4NY67.js} +5 -10
- package/cdn/chunks/{chunk.U7X2EV5T.js → chunk.S47ZNKH7.js} +119 -91
- package/cdn/chunks/{chunk.H46NZIZH.js → chunk.S7OUYCK4.js} +1 -1
- package/cdn/chunks/chunk.SBGRTAIJ.js +62 -0
- package/cdn/chunks/{chunk.AB4OF3RS.js → chunk.SLWQRYAW.js} +1 -1
- package/cdn/chunks/{chunk.NJBAMERR.js → chunk.TFTJUTCH.js} +1 -1
- package/cdn/chunks/{chunk.CMPRHBFO.js → chunk.TO3SON22.js} +1 -1
- package/cdn/chunks/{chunk.5OGTGPR7.js → chunk.UDLR3IFA.js} +1 -1
- package/cdn/chunks/{chunk.H6KRGKOT.js → chunk.UFUMCCGR.js} +1 -1
- package/cdn/chunks/{chunk.3FMDB6AF.js → chunk.UPTGFHYO.js} +1 -1
- package/cdn/chunks/chunk.URE4SVTS.js +24 -0
- package/cdn/chunks/chunk.V2HF2VKY.js +59 -0
- package/cdn/chunks/chunk.V6G6DQFY.js +25 -0
- package/cdn/chunks/chunk.VBCBEOZG.js +66 -0
- package/cdn/chunks/{chunk.EG6MMAM3.js → chunk.VM2KBACU.js} +1 -1
- package/cdn/chunks/chunk.VQCDCQ2A.js +3 -0
- package/cdn/chunks/{chunk.VL5LPHV3.js → chunk.VRIJXOVW.js} +1 -1
- package/cdn/chunks/chunk.VZAYP3SG.js +19 -0
- package/cdn/chunks/{chunk.U72UDJIM.js → chunk.WADWJFMR.js} +1 -1
- package/cdn/chunks/chunk.WDYFEO2Q.js +6 -0
- package/cdn/chunks/{chunk.WYKFMOCB.js → chunk.WNYKZ5NJ.js} +1 -1
- package/cdn/chunks/{chunk.HCFW7RW4.js → chunk.WRMXCZIL.js} +33 -37
- package/cdn/chunks/{chunk.JOY25RSZ.js → chunk.X4AWEYYO.js} +0 -5
- package/cdn/chunks/chunk.XHVUNCDG.js +64 -0
- package/cdn/chunks/{chunk.WEWRFZAQ.js → chunk.XKWU5ZJA.js} +1 -1
- package/cdn/chunks/{chunk.6HXGZFOB.js → chunk.XOR6B7CF.js} +1 -1
- package/cdn/chunks/{chunk.M7BLJVGV.js → chunk.XZTHZM2O.js} +1 -1
- package/cdn/chunks/chunk.YCHSWY7W.js +4 -0
- package/cdn/chunks/chunk.YKDQ56UZ.js +27 -0
- package/cdn/chunks/{chunk.RMI7CBAO.js → chunk.YL7QS24Y.js} +4 -4
- package/cdn/chunks/{chunk.WXQKHJC3.js → chunk.YMSC6K32.js} +2 -2
- package/cdn/chunks/{chunk.BS2OSSAE.js → chunk.YOPYBUGE.js} +1 -1
- package/cdn/chunks/{chunk.5KCVCUSX.js → chunk.YQURDTCI.js} +1 -1
- package/cdn/chunks/{chunk.U6OE2WNY.js → chunk.YUIUEJ5Y.js} +5 -5
- package/cdn/chunks/{chunk.FYJYTPOV.js → chunk.ZMRIQCNQ.js} +2 -3
- package/cdn/chunks/chunk.ZNP3XUGI.js +9 -0
- package/cdn/chunks/{chunk.HEWKH2LT.js → chunk.ZZBJJF7J.js} +2 -2
- package/cdn/components/accordion/accordion.js +1 -1
- package/cdn/components/accordion-group/accordion-group.js +1 -1
- package/cdn/components/alert/alert.js +1 -1
- package/cdn/components/avatar/avatar.js +1 -1
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/card-content/card-content.js +1 -1
- package/cdn/components/card-nav-accordion/card-nav-accordion.js +1 -1
- package/cdn/components/card-nav-item/card-nav-item.js +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/checkbox-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.d.ts +3 -0
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/copy-button/copy-button.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/download-card/download-card.js +1 -1
- package/cdn/components/download-link/download-link.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/error-text/error-text.js +1 -1
- package/cdn/components/file-upload/file-upload.d.ts +10 -0
- package/cdn/components/file-upload/file-upload.js +1 -1
- package/cdn/components/file-upload/file-upload.styles.js +1 -1
- package/cdn/components/file-upload-item/file-upload-item.js +1 -1
- package/cdn/components/file-upload-item/file-upload-item.styles.js +1 -1
- package/cdn/components/filter-button/filter-button.js +1 -1
- package/cdn/components/filter-counter/filter-counter.d.ts +2 -0
- package/cdn/components/filter-counter/filter-counter.js +1 -1
- package/cdn/components/filter-date/filter-date.js +1 -1
- package/cdn/components/filter-date/filter-date.styles.js +1 -1
- package/cdn/components/filter-range/filter-range.js +1 -1
- package/cdn/components/filter-select/filter-select.d.ts +3 -0
- package/cdn/components/filter-select/filter-select.js +1 -1
- package/cdn/components/footer/footer.js +1 -1
- package/cdn/components/footer/footer.styles.js +1 -1
- package/cdn/components/footer-mandatory-mentions/footer-mandatory-mentions.js +1 -1
- package/cdn/components/footer-mandatory-mentions/footer-mandatory-mentions.styles.js +1 -1
- package/cdn/components/footer-sitemap/footer-sitemap.js +1 -1
- package/cdn/components/footer-sitemap/footer-sitemap.styles.js +1 -1
- package/cdn/components/footer-sitemap-item/footer-sitemap-item.js +1 -1
- package/cdn/components/footer-sitemap-item/footer-sitemap-item.styles.js +1 -1
- package/cdn/components/format-bytes/format-bytes.js +1 -1
- package/cdn/components/header/header.js +1 -1
- package/cdn/components/header-external-link/header-external-link.js +1 -1
- package/cdn/components/header-modern/header-modern.js +1 -1
- package/cdn/components/header-search/header-search.js +1 -1
- package/cdn/components/icon/icon.js +1 -1
- package/cdn/components/icon-button/icon-button.js +1 -1
- package/cdn/components/icon-button/icon-button.styles.js +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/input-amount/input-amount.js +1 -1
- package/cdn/components/input-amount/input-amount.styles.js +1 -1
- package/cdn/components/input-amount/input-amount.utils.js +1 -1
- package/cdn/components/input-date/input-date.js +1 -1
- package/cdn/components/input-date/input-date.styles.js +1 -1
- package/cdn/components/input-mask/input-mask.configs.js +1 -1
- package/cdn/components/input-mask/input-mask.d.ts +6 -1
- package/cdn/components/input-mask/input-mask.js +1 -1
- package/cdn/components/input-mask/input-mask.styles.js +1 -1
- package/cdn/components/input-mask/input-mask.utils.d.ts +3 -0
- package/cdn/components/input-mask/input-mask.utils.js +1 -1
- package/cdn/components/input-native/input-native.js +1 -1
- package/cdn/components/input-native/input-native.styles.js +1 -1
- package/cdn/components/input-otp/input-otp.js +1 -1
- package/cdn/components/input-otp/input-otp.styles.js +1 -1
- package/cdn/components/input-phone/input-phone.d.ts +6 -2
- package/cdn/components/input-phone/input-phone.js +1 -1
- package/cdn/components/input-phone/input-phone.styles.js +1 -1
- package/cdn/components/input-time/input-time.d.ts +2 -0
- package/cdn/components/input-time/input-time.js +1 -1
- package/cdn/components/input-time/input-time.styles.js +1 -1
- package/cdn/components/menu-accordion/menu-accordion.d.ts +7 -2
- package/cdn/components/menu-accordion/menu-accordion.js +1 -1
- package/cdn/components/menu-accordion/menu-accordion.styles.js +1 -1
- package/cdn/components/menu-item/menu-item.d.ts +1 -0
- package/cdn/components/menu-item/menu-item.js +1 -1
- package/cdn/components/menu-item/menu-item.styles.js +1 -1
- package/cdn/components/menu-navigation/menu-navigation.js +1 -1
- package/cdn/components/mutation-observer/mutation-observer.d.ts +1 -1
- package/cdn/components/mutation-observer/mutation-observer.js +1 -1
- package/cdn/components/navbar/navbar.d.ts +4 -5
- package/cdn/components/navbar/navbar.js +1 -1
- package/cdn/components/navbar/navbar.styles.js +1 -1
- package/cdn/components/navbar-link/navbar-link.js +1 -1
- package/cdn/components/navbar-menu/navbar-menu.d.ts +3 -0
- package/cdn/components/navbar-menu/navbar-menu.js +1 -1
- package/cdn/components/option/option.js +1 -1
- package/cdn/components/page-header/page-header.js +1 -1
- package/cdn/components/page-header/page-header.styles.js +1 -1
- package/cdn/components/pagination/pagination.d.ts +3 -1
- package/cdn/components/pagination/pagination.js +1 -1
- package/cdn/components/pagination/pagination.styles.js +1 -1
- package/cdn/components/pagination-button/pagination-button.js +1 -1
- package/cdn/components/profile-button/profile-button.js +1 -1
- package/cdn/components/progress-bar/progress-bar.js +1 -1
- package/cdn/components/progress-bar/progress-bar.styles.js +1 -1
- package/cdn/components/progress-ring/progress-ring.d.ts +2 -0
- package/cdn/components/progress-ring/progress-ring.js +1 -1
- package/cdn/components/progress-ring/progress-ring.styles.js +1 -1
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio-button/radio-button.js +1 -1
- package/cdn/components/radio-card/radio-card.js +1 -1
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/range-slider/range-slider.d.ts +1 -0
- package/cdn/components/range-slider/range-slider.js +1 -1
- package/cdn/components/relative-time/relative-time.js +1 -1
- package/cdn/components/resize-observer/resize-observer.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/spinner/spinner.js +1 -1
- package/cdn/components/spinner/spinner.styles.js +1 -1
- package/cdn/components/split-panel/split-panel.d.ts +2 -0
- package/cdn/components/split-panel/split-panel.js +1 -1
- package/cdn/components/split-panel/split-panel.styles.js +1 -1
- package/cdn/components/step/step.js +1 -1
- package/cdn/components/success-text/success-text.js +1 -1
- package/cdn/components/switch/switch.js +1 -1
- package/cdn/components/tab/tab.js +1 -1
- package/cdn/components/tab-group/tab-group.js +1 -1
- package/cdn/components/table-action/table-action.js +1 -1
- package/cdn/components/table-container/table-container.js +1 -1
- package/cdn/components/table-header-cell/table-header-cell.js +1 -1
- package/cdn/components/table-header-row/table-header-row.js +1 -1
- package/cdn/components/table-of-contents/table-of-contents.js +1 -1
- package/cdn/components/table-row/table-row.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/components/textarea/textarea.styles.js +1 -1
- package/cdn/components/tree/tree.js +1 -1
- package/cdn/components/tree-item/tree-item.d.ts +1 -2
- package/cdn/components/tree-item/tree-item.js +1 -1
- package/cdn/components/tree-item/tree-item.styles.js +1 -1
- package/cdn/custom-elements.json +639 -258
- package/cdn/design-system.js +1 -1
- package/cdn/internal/components/date-field/date-field.d.ts +1 -0
- package/cdn/internal/components/date-field/date-field.js +24 -8
- package/cdn/internal/components/input-base/input-base.styles.js +6 -6
- package/cdn/templates/utilities/decorator.js +1 -1
- package/cdn/vscode.html-custom-data.json +36 -26
- package/cdn/web-types.json +353 -142
- package/dist/chunks/{chunk.SP2SVH7K.js → chunk.25TWOP6P.js} +15 -9
- package/dist/chunks/{chunk.JKNKFWLE.js → chunk.2I4VZQYC.js} +5 -6
- package/dist/chunks/{chunk.7OLEA3GQ.js → chunk.3D7AGBFQ.js} +55 -28
- package/dist/chunks/{chunk.QEXDSP5Y.js → chunk.47CX6JJX.js} +0 -5
- package/dist/chunks/{chunk.CQR34TNY.js → chunk.4AUOO4K2.js} +9 -13
- package/dist/chunks/{chunk.V3LWOWUB.js → chunk.4FZPTWZ7.js} +1 -1
- package/dist/chunks/{chunk.7MY3WW7C.js → chunk.4JMXY2WI.js} +2 -2
- package/dist/chunks/{chunk.RZRBWZ7K.js → chunk.5S6P5V3F.js} +1 -1
- package/dist/chunks/{chunk.LH65ZIEN.js → chunk.5WXGUCD2.js} +6 -6
- package/dist/chunks/{chunk.RG7MUNLM.js → chunk.6DUG6A52.js} +6 -5
- package/dist/chunks/{chunk.ZFGRB56M.js → chunk.6EOZYFCK.js} +4 -4
- package/dist/chunks/{chunk.K27SKJCO.js → chunk.74CLWWSO.js} +3 -2
- package/dist/chunks/{chunk.ERMNNF77.js → chunk.7I4SBUOE.js} +2 -2
- package/dist/chunks/{chunk.PENDUUVT.js → chunk.A4X3GH4U.js} +46 -41
- package/dist/chunks/{chunk.HYAC2WLH.js → chunk.AAHDC2DF.js} +3 -2
- package/dist/chunks/{chunk.4NY2E4AU.js → chunk.AAZSI6N4.js} +4 -4
- package/dist/chunks/{chunk.767V7QP2.js → chunk.ADV67KWS.js} +5 -10
- package/dist/chunks/{chunk.2DYEXJNV.js → chunk.AI3RKI3P.js} +116 -88
- package/dist/chunks/{chunk.33P7XYHC.js → chunk.B3DDBDEC.js} +1 -1
- package/dist/chunks/{chunk.SXFVCR7O.js → chunk.B6XSS23Y.js} +2 -2
- package/dist/chunks/{chunk.6TDF44UO.js → chunk.BEK4DVCN.js} +1 -1
- package/dist/chunks/{chunk.ZS3JNRJE.js → chunk.BIMSZQRS.js} +2 -2
- package/dist/chunks/{chunk.JTPMSU67.js → chunk.BITIOZGG.js} +6 -6
- package/dist/chunks/{chunk.V26NK6TM.js → chunk.BKCIRG2P.js} +1 -1
- package/dist/chunks/{chunk.BJ76CXBF.js → chunk.BWP55AAX.js} +1 -1
- package/dist/chunks/{chunk.O65OOIT6.js → chunk.BZFZTT6Z.js} +4 -2
- package/dist/chunks/{chunk.72FKNFBS.js → chunk.C6Q4Y7HY.js} +3 -4
- package/dist/chunks/{chunk.6LLDVH7Y.js → chunk.C7XR6TIW.js} +1 -1
- package/dist/chunks/{chunk.7BBNETYY.js → chunk.CRWYFYCK.js} +5 -5
- package/dist/chunks/{chunk.RVUUZ3KA.js → chunk.CY25FZDP.js} +1 -1
- package/dist/chunks/{chunk.QKUUHXNR.js → chunk.CZC3DHY6.js} +5 -5
- package/dist/chunks/{chunk.XL3HVVDK.js → chunk.CZWS5IXY.js} +1 -1
- package/dist/chunks/{chunk.LHKUT7UW.js → chunk.D4VA4USZ.js} +1 -1
- package/dist/chunks/{chunk.WMFEJDPX.js → chunk.DE3HY2DW.js} +2 -2
- package/dist/chunks/{chunk.5R7OHVIP.js → chunk.DM5A44VN.js} +5 -5
- package/dist/chunks/{chunk.6QE4MIXY.js → chunk.E6D26DI7.js} +2 -5
- package/dist/chunks/{chunk.TURUUPFG.js → chunk.EDEPWRFC.js} +1 -1
- package/dist/chunks/{chunk.KPVDLRVV.js → chunk.EE3XCTKZ.js} +1 -1
- package/dist/chunks/{chunk.47AQXN3U.js → chunk.EGXFCQMV.js} +50 -29
- package/dist/chunks/{chunk.KAG2EIKO.js → chunk.EH2DQIPN.js} +9 -10
- package/dist/chunks/{chunk.EGJGLON7.js → chunk.EJUYB3MH.js} +6 -3
- package/dist/chunks/{chunk.2WW7OJZT.js → chunk.ER5S4DQ4.js} +1 -1
- package/dist/chunks/{chunk.RU7L7OSM.js → chunk.ESWLZEFC.js} +12 -15
- package/dist/chunks/{chunk.U4W57NV6.js → chunk.F7XLQM3I.js} +2 -2
- package/dist/chunks/{chunk.TW7OE55S.js → chunk.FA4NHQF4.js} +1 -1
- package/dist/chunks/{chunk.I522XZAV.js → chunk.GMHIXRUV.js} +1 -2
- package/dist/chunks/{chunk.M47KXEXM.js → chunk.HCKPLZT3.js} +28 -6
- package/dist/chunks/{chunk.WO56WJXU.js → chunk.HG526A44.js} +1 -0
- package/dist/chunks/{chunk.6WPKFGU3.js → chunk.HIABUXVS.js} +13 -13
- package/dist/chunks/{chunk.VOKBXFKF.js → chunk.I7MPPCZN.js} +4 -4
- package/dist/chunks/{chunk.JVIWPP43.js → chunk.IEYQPZRM.js} +1 -0
- package/dist/chunks/{chunk.3SAKVK56.js → chunk.IIT2FS67.js} +1 -1
- package/dist/chunks/{chunk.SGRSRDWP.js → chunk.IJLBJ37U.js} +6 -6
- package/dist/chunks/{chunk.SRLGPXHB.js → chunk.IJYHCSO5.js} +1 -1
- package/dist/chunks/{chunk.QUEYKUIS.js → chunk.IRBKALXJ.js} +5 -5
- package/dist/chunks/{chunk.4VSGAJJL.js → chunk.IRPNCLE5.js} +1 -1
- package/dist/chunks/{chunk.Q7YCE4UA.js → chunk.ISEFZON7.js} +7 -2
- package/dist/chunks/{chunk.6RXEQKWZ.js → chunk.ISXV5IHB.js} +1 -1
- package/dist/chunks/{chunk.R3PD3TNK.js → chunk.IWCSAXJN.js} +2 -2
- package/dist/chunks/{chunk.VPBDM3F2.js → chunk.IYAYPQEC.js} +1 -1
- package/dist/chunks/{chunk.WSQ2ZYD4.js → chunk.JC4UHPES.js} +2 -2
- package/dist/chunks/{chunk.UC5S2IUH.js → chunk.JLAQUWWF.js} +1 -1
- package/dist/chunks/{chunk.T6OAGTAP.js → chunk.JTUO6EOR.js} +1 -1
- package/dist/chunks/{chunk.LYVWDO7O.js → chunk.K43LRQVK.js} +8 -7
- package/dist/chunks/{chunk.WFACPRM5.js → chunk.K64V2XZO.js} +5 -1
- package/dist/chunks/{chunk.2AMILV3O.js → chunk.KNXPRETW.js} +30 -5
- package/dist/chunks/{chunk.6Q5DARJM.js → chunk.L5HLKFQW.js} +1 -1
- package/dist/chunks/{chunk.6BCJJGLC.js → chunk.LKSUU7CF.js} +1 -1
- package/dist/chunks/{chunk.5SH25FOL.js → chunk.LN7NDCQU.js} +1 -1
- package/dist/chunks/{chunk.5NSAEDEE.js → chunk.M2QIFDAP.js} +1 -1
- package/dist/chunks/{chunk.UHF3BDIM.js → chunk.M2RDCDKZ.js} +1 -2
- package/dist/chunks/{chunk.GSSDOCVR.js → chunk.M5L3DDVW.js} +4 -4
- package/dist/chunks/{chunk.GUKOZGE3.js → chunk.MJ6DIYWF.js} +1 -1
- package/dist/chunks/{chunk.WNESPUKK.js → chunk.MWPOWC6N.js} +3 -3
- package/dist/chunks/{chunk.YKL22V4E.js → chunk.N2V4KI76.js} +1 -1
- package/dist/chunks/{chunk.YMBSK45L.js → chunk.NBEDK6M4.js} +2 -0
- package/dist/chunks/{chunk.WJFVQRWU.js → chunk.NC6NNDYD.js} +1 -1
- package/dist/chunks/{chunk.XMBQRPGX.js → chunk.NGEL5LW3.js} +7 -7
- package/dist/chunks/{chunk.TCW77JY3.js → chunk.NIBZO5CG.js} +47 -38
- package/dist/chunks/{chunk.CKJJ4MSU.js → chunk.NJQ6BFQQ.js} +10 -6
- package/dist/chunks/{chunk.SAQFLKP7.js → chunk.NPMNFNR7.js} +5 -5
- package/dist/chunks/{chunk.34BCRRRT.js → chunk.NTKYNRVQ.js} +8 -3
- package/dist/chunks/{chunk.4E2FKC3C.js → chunk.ORK75RRY.js} +1 -1
- package/dist/chunks/{chunk.UQ7ZIOBO.js → chunk.OUUFQTMX.js} +1 -1
- package/dist/chunks/{chunk.JBKNTRA7.js → chunk.PFPVUCRD.js} +20 -7
- package/dist/chunks/{chunk.HRZVG552.js → chunk.PPNCOBIW.js} +26 -19
- package/dist/chunks/{chunk.EMPEBDHH.js → chunk.Q76VY2W2.js} +7 -9
- package/dist/chunks/{chunk.GTO6NACR.js → chunk.QAA45XK3.js} +1 -1
- package/dist/chunks/{chunk.ODOHKR6J.js → chunk.QHEMM3XC.js} +18 -16
- package/dist/chunks/{chunk.64EGGLHL.js → chunk.QWPEXQZX.js} +7 -13
- package/dist/chunks/{chunk.SGPAUD26.js → chunk.RPOIITDC.js} +1 -1
- package/dist/chunks/{chunk.JATRBE3H.js → chunk.RRR5BCCP.js} +39 -17
- package/dist/chunks/{chunk.FBY2IM6R.js → chunk.SC6ST3JE.js} +18 -13
- package/dist/chunks/{chunk.CFBX4SXO.js → chunk.SEMHY47B.js} +1 -1
- package/dist/chunks/{chunk.E6D32GY2.js → chunk.SUX4XQKB.js} +2 -2
- package/dist/chunks/{chunk.QKT5LLDM.js → chunk.T4XADGK3.js} +1 -1
- package/dist/chunks/{chunk.J476JEKY.js → chunk.T7O6NKFH.js} +1 -1
- package/dist/chunks/{chunk.YI6BUIUL.js → chunk.TGQQJI2E.js} +24 -8
- package/dist/chunks/{chunk.KIN7BJ2S.js → chunk.TILFUJJ2.js} +3 -4
- package/dist/chunks/{chunk.IMZ2EJ3J.js → chunk.TJ5TUGGE.js} +83 -83
- package/dist/chunks/{chunk.4XPBWICF.js → chunk.TNWA2A3X.js} +1 -1
- package/dist/chunks/{chunk.SAKI57GG.js → chunk.TTV3MIRK.js} +45 -21
- package/dist/chunks/{chunk.CFUNT7FK.js → chunk.TXX2YIZA.js} +6 -7
- package/dist/chunks/{chunk.UESIZCBP.js → chunk.UF7CYOQ4.js} +46 -46
- package/dist/chunks/{chunk.FZFK3D6L.js → chunk.UGLMODK6.js} +21 -30
- package/dist/chunks/{chunk.SZDGGP2Y.js → chunk.UIZ6FPK7.js} +12 -35
- package/dist/chunks/{chunk.KW762SFE.js → chunk.UO6FYSWX.js} +6 -10
- package/dist/chunks/{chunk.EWMFHVNW.js → chunk.UOJ4QKLP.js} +6 -6
- package/dist/chunks/{chunk.PSWGNIVT.js → chunk.UYMQI7J5.js} +2 -2
- package/dist/chunks/{chunk.FLI47BNN.js → chunk.VFJEGCDO.js} +3 -3
- package/dist/chunks/{chunk.XSXVVUKP.js → chunk.VILH76T7.js} +2 -0
- package/dist/chunks/{chunk.IER4ZBFV.js → chunk.VNBYO53K.js} +2 -1
- package/dist/chunks/{chunk.LT44CVRV.js → chunk.WL6AJERE.js} +4 -8
- package/dist/chunks/{chunk.VYX5ZSFI.js → chunk.XM237MHQ.js} +2 -2
- package/dist/chunks/{chunk.XZU6MLWO.js → chunk.XSQDJNFR.js} +14 -8
- package/dist/chunks/{chunk.V4SDZV6L.js → chunk.YBX4TUQG.js} +4 -4
- package/dist/chunks/{chunk.4535HZ7L.js → chunk.YGUB43LS.js} +5 -5
- package/dist/chunks/{chunk.H4WJ64X5.js → chunk.YTAYYSIR.js} +58 -53
- package/dist/chunks/{chunk.5TBGCNJD.js → chunk.Z7QD3YXZ.js} +24 -9
- package/dist/chunks/{chunk.WEPA3NJG.js → chunk.ZJ6WYIG2.js} +1 -1
- package/dist/chunks/{chunk.Q4BEX42U.js → chunk.ZKBTNXGE.js} +3 -3
- package/dist/chunks/{chunk.LFCY7UUJ.js → chunk.ZKCBJ5YM.js} +30 -34
- package/dist/components/accordion/accordion.js +3 -2
- package/dist/components/accordion-group/accordion-group.js +5 -4
- package/dist/components/alert/alert.js +5 -4
- package/dist/components/avatar/avatar.js +3 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -2
- package/dist/components/button/button.js +5 -4
- package/dist/components/card-content/card-content.js +3 -2
- package/dist/components/card-nav-accordion/card-nav-accordion.js +3 -2
- package/dist/components/card-nav-item/card-nav-item.js +3 -2
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/checkbox-button/checkbox-button.js +6 -6
- package/dist/components/checkbox-card/checkbox-card.js +6 -6
- package/dist/components/checkbox-group/checkbox-group.js +4 -3
- package/dist/components/combobox/combobox.d.ts +3 -0
- package/dist/components/combobox/combobox.js +11 -11
- package/dist/components/copy-button/copy-button.js +3 -2
- package/dist/components/dialog/dialog.js +5 -4
- package/dist/components/download-card/download-card.js +3 -2
- package/dist/components/download-link/download-link.js +3 -2
- package/dist/components/drawer/drawer.js +5 -4
- package/dist/components/error-text/error-text.js +3 -2
- package/dist/components/file-upload/file-upload.d.ts +10 -0
- package/dist/components/file-upload/file-upload.js +8 -7
- package/dist/components/file-upload/file-upload.styles.js +1 -1
- package/dist/components/file-upload-item/file-upload-item.js +5 -4
- package/dist/components/file-upload-item/file-upload-item.styles.js +1 -1
- package/dist/components/filter-button/filter-button.js +3 -2
- package/dist/components/filter-counter/filter-counter.d.ts +2 -0
- package/dist/components/filter-counter/filter-counter.js +26 -25
- package/dist/components/filter-date/filter-date.js +12 -11
- package/dist/components/filter-date/filter-date.styles.js +1 -1
- package/dist/components/filter-range/filter-range.js +27 -26
- package/dist/components/filter-select/filter-select.d.ts +3 -0
- package/dist/components/filter-select/filter-select.js +27 -27
- package/dist/components/footer/footer.js +2 -2
- package/dist/components/footer/footer.styles.js +1 -1
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.js +2 -2
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.styles.js +1 -1
- package/dist/components/footer-sitemap/footer-sitemap.js +2 -2
- package/dist/components/footer-sitemap/footer-sitemap.styles.js +1 -1
- package/dist/components/footer-sitemap-item/footer-sitemap-item.js +2 -2
- package/dist/components/footer-sitemap-item/footer-sitemap-item.styles.js +1 -1
- package/dist/components/format-bytes/format-bytes.js +1 -1
- package/dist/components/header/header.js +2 -2
- package/dist/components/header-external-link/header-external-link.js +2 -2
- package/dist/components/header-modern/header-modern.js +2 -2
- package/dist/components/header-search/header-search.js +10 -9
- package/dist/components/icon/icon.js +2 -1
- package/dist/components/icon-button/icon-button.js +4 -3
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.js +20 -19
- package/dist/components/input-amount/input-amount.js +12 -11
- package/dist/components/input-amount/input-amount.styles.js +2 -2
- package/dist/components/input-amount/input-amount.utils.js +1 -1
- package/dist/components/input-date/input-date.js +12 -11
- package/dist/components/input-date/input-date.styles.js +2 -2
- package/dist/components/input-mask/input-mask.configs.js +1 -1
- package/dist/components/input-mask/input-mask.d.ts +6 -1
- package/dist/components/input-mask/input-mask.js +12 -11
- package/dist/components/input-mask/input-mask.styles.js +2 -2
- package/dist/components/input-mask/input-mask.utils.d.ts +3 -0
- package/dist/components/input-mask/input-mask.utils.js +5 -1
- package/dist/components/input-native/input-native.js +11 -10
- package/dist/components/input-native/input-native.styles.js +2 -2
- package/dist/components/input-otp/input-otp.js +8 -7
- package/dist/components/input-otp/input-otp.styles.js +1 -1
- package/dist/components/input-phone/input-phone.d.ts +6 -2
- package/dist/components/input-phone/input-phone.js +14 -14
- package/dist/components/input-phone/input-phone.styles.js +1 -1
- package/dist/components/input-time/input-time.d.ts +2 -0
- package/dist/components/input-time/input-time.js +11 -10
- package/dist/components/input-time/input-time.styles.js +2 -2
- package/dist/components/menu-accordion/menu-accordion.d.ts +7 -2
- package/dist/components/menu-accordion/menu-accordion.js +4 -3
- package/dist/components/menu-accordion/menu-accordion.styles.js +1 -1
- package/dist/components/menu-item/menu-item.d.ts +1 -0
- package/dist/components/menu-item/menu-item.js +2 -2
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-navigation/menu-navigation.js +3 -3
- package/dist/components/mutation-observer/mutation-observer.d.ts +1 -1
- package/dist/components/mutation-observer/mutation-observer.js +1 -1
- package/dist/components/navbar/navbar.d.ts +4 -5
- package/dist/components/navbar/navbar.js +2 -2
- package/dist/components/navbar/navbar.styles.js +1 -1
- package/dist/components/navbar-link/navbar-link.js +6 -5
- package/dist/components/navbar-menu/navbar-menu.d.ts +3 -0
- package/dist/components/navbar-menu/navbar-menu.js +3 -2
- package/dist/components/option/option.js +3 -3
- package/dist/components/page-header/page-header.js +2 -2
- package/dist/components/page-header/page-header.styles.js +1 -1
- package/dist/components/pagination/pagination.d.ts +3 -1
- package/dist/components/pagination/pagination.js +23 -22
- package/dist/components/pagination/pagination.styles.js +1 -1
- package/dist/components/pagination-button/pagination-button.js +1 -1
- package/dist/components/profile-button/profile-button.js +4 -3
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.d.ts +2 -0
- package/dist/components/progress-ring/progress-ring.js +2 -2
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.js +6 -6
- package/dist/components/radio-card/radio-card.js +8 -8
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/range-slider/range-slider.d.ts +1 -0
- package/dist/components/range-slider/range-slider.js +1 -1
- package/dist/components/relative-time/relative-time.js +1 -1
- package/dist/components/resize-observer/resize-observer.js +1 -1
- package/dist/components/search/search.js +6 -5
- package/dist/components/select/select.js +8 -7
- package/dist/components/sidenav/sidenav.js +3 -3
- package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +5 -4
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/split-panel/split-panel.d.ts +2 -0
- package/dist/components/split-panel/split-panel.js +4 -3
- package/dist/components/split-panel/split-panel.styles.js +1 -1
- package/dist/components/step/step.js +3 -3
- package/dist/components/success-text/success-text.js +3 -2
- package/dist/components/switch/switch.js +3 -2
- package/dist/components/tab/tab.js +5 -5
- package/dist/components/tab-group/tab-group.js +5 -5
- package/dist/components/table-action/table-action.js +6 -5
- package/dist/components/table-container/table-container.js +2 -2
- package/dist/components/table-header-cell/table-header-cell.js +3 -2
- package/dist/components/table-header-row/table-header-row.js +11 -11
- package/dist/components/table-of-contents/table-of-contents.js +3 -2
- package/dist/components/table-row/table-row.js +9 -9
- package/dist/components/tag/tag.js +5 -4
- package/dist/components/textarea/textarea.js +6 -5
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tree/tree.js +8 -23
- package/dist/components/tree-item/tree-item.d.ts +1 -2
- package/dist/components/tree-item/tree-item.js +7 -22
- package/dist/components/tree-item/tree-item.styles.js +1 -1
- package/dist/custom-elements.json +639 -258
- package/dist/design-system.js +126 -126
- package/dist/internal/components/date-field/date-field.d.ts +1 -0
- package/dist/internal/components/date-field/date-field.js +24 -8
- package/dist/internal/components/input-base/input-base.styles.js +6 -6
- package/dist/templates/utilities/decorator.js +1 -1
- package/dist/vscode.html-custom-data.json +36 -26
- package/dist/web-types.json +353 -142
- package/package.json +1 -1
- package/cdn/chunks/chunk.4NE2V6DW.js +0 -9
- package/cdn/chunks/chunk.5MXBS7CA.js +0 -62
- package/cdn/chunks/chunk.7TKKYYU2.js +0 -112
- package/cdn/chunks/chunk.7Y7CQMR6.js +0 -3
- package/cdn/chunks/chunk.BOCMAV5D.js +0 -51
- package/cdn/chunks/chunk.DFIOQK4K.js +0 -108
- package/cdn/chunks/chunk.EAWHOXCM.js +0 -24
- package/cdn/chunks/chunk.GDNVDKSZ.js +0 -4
- package/cdn/chunks/chunk.H7CICKO6.js +0 -173
- package/cdn/chunks/chunk.IYPKQQOD.js +0 -35
- package/cdn/chunks/chunk.KD3BHBHK.js +0 -19
- package/cdn/chunks/chunk.KH2JVAEZ.js +0 -3
- package/cdn/chunks/chunk.KTJAW66F.js +0 -73
- package/cdn/chunks/chunk.KVPC6DC4.js +0 -121
- package/cdn/chunks/chunk.MN7GWB3J.js +0 -66
- package/cdn/chunks/chunk.PICWAFB5.js +0 -1
- package/cdn/chunks/chunk.PVV7WADS.js +0 -121
- package/cdn/chunks/chunk.RGOPSYRZ.js +0 -1
- package/cdn/chunks/chunk.RTVNV4IL.js +0 -27
- package/cdn/chunks/chunk.S5XJPLVO.js +0 -51
- package/cdn/chunks/chunk.TPKY6SO3.js +0 -94
- package/cdn/chunks/chunk.U5DYVPGP.js +0 -1
- package/cdn/chunks/chunk.ULWBK7T7.js +0 -40
- package/cdn/chunks/chunk.UXV7IG5J.js +0 -1
- package/cdn/chunks/chunk.VVOUCVXZ.js +0 -123
- package/cdn/chunks/chunk.WFR7MSMI.js +0 -1
- package/cdn/chunks/chunk.XGUKMUW4.js +0 -25
- package/cdn/chunks/chunk.YWOAIOEZ.js +0 -75
- package/cdn/chunks/chunk.Z226LHQY.js +0 -64
- package/dist/chunks/{chunk.WJU4UHF5.js → chunk.24VWWARJ.js} +3 -3
- package/dist/chunks/{chunk.XAYOMJ4X.js → chunk.LWTEEWEF.js} +4 -4
- package/dist/chunks/{chunk.VJMPU2K5.js → chunk.UBVYU5GL.js} +4 -4
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import{a as K}from"./chunk.K3JAYUBA.js";import{a as x}from"./chunk.ZZBJJF7J.js";import{a as z}from"./chunk.VRIJXOVW.js";import{a as A}from"./chunk.CUYQOZPJ.js";import{a as V}from"./chunk.U4TME7DS.js";import{a as T}from"./chunk.TFTJUTCH.js";import{a as P}from"./chunk.CLIKZB5P.js";import{a as k}from"./chunk.7NBAEATD.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.LBAIMDY3.js";import{c as M}from"./chunk.VZAYP3SG.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
|
+
<dsa-popup
|
|
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
|
+
part="popup"
|
|
5
|
+
placement=${this.placement}
|
|
6
|
+
strategy=${this.hoist?"fixed":"absolute"}
|
|
7
|
+
flip
|
|
8
|
+
shift
|
|
9
|
+
sync=${this.noSyncWidth?void 0:"width"}
|
|
10
|
+
auto-size="vertical"
|
|
11
|
+
auto-size-padding="10"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
part="combobox"
|
|
15
|
+
class="select__combobox"
|
|
16
|
+
slot="anchor"
|
|
17
|
+
@click=${this.handleComboboxMouseDown}
|
|
18
|
+
@keydown=${this.handleComboboxKeyDown}
|
|
19
|
+
>
|
|
20
|
+
<slot part="prefix" name="prefix" class="select__prefix"></slot>
|
|
21
|
+
<div
|
|
22
|
+
class=${y({"input-container":!0})}
|
|
23
|
+
>
|
|
24
|
+
<input
|
|
25
|
+
id="input"
|
|
26
|
+
part="display-input"
|
|
27
|
+
class="select__display-input"
|
|
28
|
+
type="text"
|
|
29
|
+
.value=${this.displayLabel}
|
|
30
|
+
placeholder=${u(this.placeholder)}
|
|
31
|
+
.disabled=${this.disabled}
|
|
32
|
+
size=${N}
|
|
33
|
+
autocomplete="off"
|
|
34
|
+
spellcheck="false"
|
|
35
|
+
autocapitalize="off"
|
|
36
|
+
?readonly=${this.readonly}
|
|
37
|
+
title=${u(($=this.accessibleName)!=null?$:this.title)}
|
|
38
|
+
aria-controls="listbox"
|
|
39
|
+
aria-autocomplete="list"
|
|
40
|
+
aria-expanded=${this.open?"true":"false"}
|
|
41
|
+
aria-haspopup="listbox"
|
|
42
|
+
aria-labelledby=${u(i?"label":void 0)}
|
|
43
|
+
aria-label=${u(i?void 0:(I=this.accessibleName)!=null?I:this.title)}
|
|
44
|
+
aria-disabled=${f(this.readonly?"true":void 0)}
|
|
45
|
+
aria-describedby=${this.getDescriptionIds()}
|
|
46
|
+
aria-activedescendant=${(E=(C=this.currentOption)==null?void 0:C.id)!=null?E:""}
|
|
47
|
+
aria-invalid=${f(this.error?"true":void 0)}
|
|
48
|
+
aria-required=${f(this.required?"true":void 0)}
|
|
49
|
+
role="combobox"
|
|
50
|
+
@change=${this.handleChange}
|
|
51
|
+
@input=${this.handleInput}
|
|
52
|
+
@focus=${this.handleFocus}
|
|
53
|
+
@blur=${this.handleBlur}
|
|
54
|
+
@invalid=${this.handleInvalid}
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
${this.multiple&&this.value.length>0?a`
|
|
58
|
+
<div part="tags" class="select__tags">
|
|
59
|
+
${this.selectedOptions.map((c,O)=>O<this.maxOptionsVisible||this.maxOptionsVisible<=0?a`
|
|
60
|
+
<dsa-tag
|
|
61
|
+
part="tag"
|
|
62
|
+
exportparts="
|
|
63
|
+
base:tag__base,
|
|
64
|
+
content:tag__content,
|
|
65
|
+
remove-button:tag__remove-button,
|
|
66
|
+
remove-button__base:tag__remove-button__base
|
|
67
|
+
"
|
|
68
|
+
size=${this.size}
|
|
69
|
+
removable
|
|
70
|
+
?disable-removable-focus=${this.disabled||this.readonly}
|
|
71
|
+
@dsa-remove=${R=>this.handleTagRemove(R,c)}
|
|
72
|
+
label=${c.getTextLabel()}
|
|
73
|
+
>
|
|
74
|
+
</dsa-tag>
|
|
75
|
+
<span
|
|
76
|
+
id=${`tag-${c.value}`}
|
|
77
|
+
class="hidden-tag-label"
|
|
78
|
+
>${c.getTextLabel()},</span
|
|
79
|
+
>
|
|
80
|
+
`:O===this.maxOptionsVisible?a`
|
|
81
|
+
<dsa-tag
|
|
82
|
+
id="tag-remaining"
|
|
83
|
+
size=${this.size}
|
|
84
|
+
label="+${this.selectedOptions.length-O}"
|
|
85
|
+
>
|
|
86
|
+
</dsa-tag>
|
|
87
|
+
`:null)}
|
|
88
|
+
</div>
|
|
89
|
+
`:""}
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<input
|
|
93
|
+
class="select__value-input"
|
|
94
|
+
type="text"
|
|
95
|
+
?disabled=${B}
|
|
96
|
+
?required=${this.required}
|
|
97
|
+
.value=${this.value}
|
|
98
|
+
tabindex="-1"
|
|
99
|
+
aria-hidden="true"
|
|
100
|
+
@focus=${()=>this.focus()}
|
|
101
|
+
@invalid=${this.handleInvalid}
|
|
102
|
+
/>
|
|
103
|
+
|
|
104
|
+
${l?a`
|
|
105
|
+
<button
|
|
106
|
+
part="clear-button"
|
|
107
|
+
class="select__clear"
|
|
108
|
+
type="button"
|
|
109
|
+
aria-label=${this.localize.term("clearEntry")}
|
|
110
|
+
@mousedown=${this.handleClearMouseDown}
|
|
111
|
+
@keydown=${this.handleClearMouseKeyDown}
|
|
112
|
+
@click=${this.handleClearClick}
|
|
113
|
+
>
|
|
114
|
+
<dsa-icon name="close" library="system"></dsa-icon>
|
|
115
|
+
</button>
|
|
116
|
+
`:""}
|
|
117
|
+
${this.allOptions.length>0||this.fetchingState!=="idle"?a`
|
|
118
|
+
<dsa-icon
|
|
119
|
+
class="select__expand-icon"
|
|
120
|
+
name="expand_more"
|
|
121
|
+
library="system"
|
|
122
|
+
></dsa-icon>
|
|
123
|
+
`:""}
|
|
124
|
+
</div>
|
|
125
|
+
<ul
|
|
126
|
+
id="listbox"
|
|
127
|
+
role="listbox"
|
|
128
|
+
aria-expanded=${this.open?"true":"false"}
|
|
129
|
+
aria-multiselectable="false"
|
|
130
|
+
aria-labelledby="label"
|
|
131
|
+
part="listbox"
|
|
132
|
+
class="select__panel"
|
|
133
|
+
tabindex="-1"
|
|
134
|
+
@keydown=${this.handleDefaultKeyDown}
|
|
135
|
+
@mouseup=${this.handleOptionClick}
|
|
136
|
+
>
|
|
137
|
+
${this.fetchingState==="loading"?a`
|
|
138
|
+
<div class="select__loading_text">
|
|
139
|
+
<dsa-spinner></dsa-spinner>
|
|
140
|
+
<p>${this.localize.term("optionsLoading")}</p>
|
|
141
|
+
</div>
|
|
142
|
+
`:a``}
|
|
143
|
+
${this.fetchingState==="error"?a`
|
|
144
|
+
<div class="select__loading_text">
|
|
145
|
+
<p>${this.localize.term("optionsError")}</p>
|
|
146
|
+
</div>
|
|
147
|
+
`:a``}
|
|
148
|
+
${["idle","success"].includes(this.fetchingState)&&this.filteredOptions.length>0?H:a``}
|
|
149
|
+
${this.visibleListLength&&this.visibleListLength>0&&this.filteredOptions.length>this.displayedOptionsCount?a`
|
|
150
|
+
<dsa-option
|
|
151
|
+
class="select__panel-see-more-option"
|
|
152
|
+
id="dsa-seemore-option"
|
|
153
|
+
@click=${this.handleSeeMoreClick}
|
|
154
|
+
><span class="see-more-option-text"
|
|
155
|
+
>${this.localize.term("seeMore")}</span
|
|
156
|
+
></dsa-option
|
|
157
|
+
>
|
|
158
|
+
`:""}
|
|
159
|
+
${["idle","success"].includes(this.fetchingState)&&this.filteredOptions.length===0?a`
|
|
160
|
+
<div class="select__empty_text">
|
|
161
|
+
<p>${this.localize.term("noMatchFound")}</p>
|
|
162
|
+
</div>
|
|
163
|
+
`:a``}
|
|
164
|
+
</ul>
|
|
165
|
+
|
|
166
|
+
<slot
|
|
167
|
+
class="slot_options"
|
|
168
|
+
tabindex="-1"
|
|
169
|
+
@slotchange=${this.handleDefaultSlotChange}
|
|
170
|
+
>
|
|
171
|
+
</slot>
|
|
172
|
+
</dsa-popup>
|
|
173
|
+
`}};s.styles=P,s.dependencies={"dsa-icon":M,"dsa-popup":A,"dsa-tag":K,"dsa-error-text":T,"dsa-spinner":k,"dsa-option":x},n([p(".select")],s.prototype,"popup",2),n([p(".select__combobox")],s.prototype,"combobox",2),n([p(".select__display-input")],s.prototype,"displayInput",2),n([p(".select__value-input")],s.prototype,"valueInput",2),n([p(".select__panel")],s.prototype,"listbox",2),n([p(".select__panel-see-more-option")],s.prototype,"seeMoreOption",2),n([r()],s.prototype,"hasVisualFocus",2),n([r()],s.prototype,"displayLabel",2),n([r()],s.prototype,"currentOption",2),n([r()],s.prototype,"selectedOptions",2),n([r()],s.prototype,"allOptions",2),n([r()],s.prototype,"filteredOptions",2),n([r()],s.prototype,"displayedOptionsCount",2),n([o({type:Boolean,reflect:!0})],s.prototype,"open",2),n([o({converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>typeof e=="string"?e:e.join(" ")}})],s.prototype,"value",2),n([V()],s.prototype,"defaultValue",2),n([o({type:Boolean})],s.prototype,"hoist",2),n([o({reflect:!0})],s.prototype,"placement",2),n([o({type:Boolean})],s.prototype,"clearable",2),n([o({attribute:"no-sync-width",type:Boolean})],s.prototype,"noSyncWidth",2),n([o({type:Array,attribute:!1})],s.prototype,"items",2),n([o({type:Boolean})],s.prototype,"multiple",2),n([o({attribute:"max-options-visible",type:Number})],s.prototype,"maxOptionsVisible",2),n([o({attribute:"visible-list-length",type:Number||void 0})],s.prototype,"visibleListLength",2),n([o({type:Number,attribute:"debounce-timeout"})],s.prototype,"debounceTimeout",2),n([o({attribute:"fetching-state"})],s.prototype,"fetchingState",2),n([o({type:Boolean,attribute:"override-default-filtering"})],s.prototype,"overrideDefaultFiltering",2),n([o({type:Boolean,attribute:"keep-search-after-selection"})],s.prototype,"keepSearchAfterSelection",2),n([h("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),n([h("readonly",{waitUntilFirstUpdate:!0})],s.prototype,"handleReadonlyChange",1),n([h("items")],s.prototype,"handleItemsChange",1),n([h("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),n([h("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),n([h("displayLabel")],s.prototype,"handleDisplayLabelChange",1),n([h("multiple")],s.prototype,"handleMultipleChange",1),s=n([_("dsa-combobox")],s);w("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});w("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{s as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m}from"./chunk.X4AWEYYO.js";import{a as f}from"./chunk.B4KFHYLS.js";import{a as l,b as n}from"./chunk.FDMPUSVV.js";import{a as p}from"./chunk.NIRNX67K.js";import{c as b}from"./chunk.VZAYP3SG.js";import{a}from"./chunk.2RF4WD6T.js";import{d as r}from"./chunk.ZBHHLRFH.js";import{a as d,b as t,c as u,d as c,f as h}from"./chunk.KBZ32KWP.js";import{f as i}from"./chunk.IZ2HVRME.js";var e=class extends h{constructor(){super(...arguments);this.hasFocus=!1;this.disableTabIndex=!1;this.label="";this.description="";this.disabled=!1;this.floating=!1;this.toggle=!1;this.pressed=!1;this.variant="default";this.size="medium"}handleBlur(){this.hasFocus=!1,this.emit("dsa-blur")}handleFocus(){this.hasFocus=!0,this.emit("dsa-focus")}handleClick(s){this.disabled&&(s.preventDefault(),s.stopPropagation()),this.toggle&&(this.pressed=!this.pressed,this.emit("dsa-change"))}click(){this.button.click()}focus(s){this.button.focus(s)}blur(){this.button.blur()}render(){this.label||f("<dsa-icon-button> requires a label attribute for accessibility");let s=!!this.href,o=s?l`a`:l`button`;return n`
|
|
2
2
|
<${o}
|
|
3
3
|
part="base"
|
|
4
4
|
class=${r({"icon-button":!0,"icon-button--on-floating-menu":this.floating,"icon-button--default":this.variant==="default","icon-button--primary":this.variant==="primary","icon-button--secondary":this.variant==="secondary","icon-button--tertiary":this.variant==="tertiary","icon-button--danger":this.variant==="danger","icon-button--disabled":!s&&(this.disabled||this.disableTabIndex),"icon-button--focused":this.hasFocus,"icon-button--toggle":this.toggle,"icon-button--pressed":this.toggle&&this.pressed})}
|
|
@@ -11,8 +11,8 @@ import{a as p}from"./chunk.JOY25RSZ.js";import{a as f}from"./chunk.B4KFHYLS.js";
|
|
|
11
11
|
role=${a(s?void 0:"button")}
|
|
12
12
|
aria-disabled=${a(this.disabled&&s?"true":void 0)}
|
|
13
13
|
aria-pressed=${a(this.toggle?this.pressed:void 0)}
|
|
14
|
-
aria-label=${
|
|
15
|
-
aria-describedby
|
|
14
|
+
aria-label=${p(this.label)}
|
|
15
|
+
aria-describedby=${a(this.description?"description":void 0)}
|
|
16
16
|
tabindex=${this.disableTabIndex||this.disabled?"-1":"0"}
|
|
17
17
|
@blur=${this.handleBlur}
|
|
18
18
|
@focus=${this.handleFocus}
|
|
@@ -33,4 +33,4 @@ import{a as p}from"./chunk.JOY25RSZ.js";import{a as f}from"./chunk.B4KFHYLS.js";
|
|
|
33
33
|
</p>
|
|
34
34
|
`:""}
|
|
35
35
|
|
|
36
|
-
`}};e.styles=
|
|
36
|
+
`}};e.styles=m,e.dependencies={"dsa-icon":b},i([c(".icon-button")],e.prototype,"button",2),i([u()],e.prototype,"hasFocus",2),i([t({type:Boolean,attribute:"disable-tab-index"})],e.prototype,"disableTabIndex",2),i([t()],e.prototype,"name",2),i([t()],e.prototype,"library",2),i([t()],e.prototype,"src",2),i([t()],e.prototype,"href",2),i([t()],e.prototype,"target",2),i([t()],e.prototype,"download",2),i([t()],e.prototype,"label",2),i([t({attribute:"description"})],e.prototype,"description",2),i([t({type:Boolean,reflect:!0})],e.prototype,"disabled",2),i([t({type:Boolean,reflect:!0})],e.prototype,"floating",2),i([t({type:Boolean,reflect:!0})],e.prototype,"toggle",2),i([t({type:Boolean,reflect:!0})],e.prototype,"pressed",2),i([t()],e.prototype,"variant",2),i([t({reflect:!0})],e.prototype,"size",2),e=i([d("dsa-icon-button")],e);export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d}from"./chunk.QHSERCS2.js";import{a as n}from"./chunk.B4KFHYLS.js";import{c}from"./chunk.LBAIMDY3.js";import{c as o}from"./chunk.
|
|
1
|
+
import{a as d}from"./chunk.QHSERCS2.js";import{a as n}from"./chunk.B4KFHYLS.js";import{c}from"./chunk.LBAIMDY3.js";import{c as o}from"./chunk.VZAYP3SG.js";import{a as l}from"./chunk.BWEPOOQP.js";import{a as i,b as a,f as r}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends r{constructor(){super(...arguments);this.localize=new c(this);this.label="";this.selectedOption="";this.selectionCount=0;this.tabindex=0;this.disabled=!1;this.readonly=!1;this.drawer=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button")}handleSelectionCountChange(){this.selectionCount>1?this.setAttribute("aria-label",`${this.label} : ${this.selectionCount} ${this.localize.term("valuesSelected")}`):this.removeAttribute("aria-label")}handleDisabledChange(){this.tabindex=this.disabled?-1:0,this.setAttribute("aria-disabled",this.disabled||this.readonly?"true":"false")}render(){return this.label||n("<dsa-filter-button> require a label attribute for accessibility"),s`
|
|
2
2
|
<span class="label"
|
|
3
3
|
>${`${this.label}${this.selectionCount>0&&!this.drawer?" : ":""}`}</span
|
|
4
4
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m}from"./chunk.6QPTXGCJ.js";import{a as $}from"./chunk.
|
|
1
|
+
import{a as m}from"./chunk.6QPTXGCJ.js";import{a as $}from"./chunk.EQQUOYXA.js";import{a as b}from"./chunk.HN5GRHJU.js";import{a as g}from"./chunk.H6456THW.js";import{a as c}from"./chunk.GWF5GFSQ.js";import{a as v}from"./chunk.ODH67RGS.js";import{a as S}from"./chunk.EV7HZRUS.js";import{a as h}from"./chunk.NIRNX67K.js";import{c as E}from"./chunk.VZAYP3SG.js";import{a as s}from"./chunk.2RF4WD6T.js";import{a as d}from"./chunk.BWEPOOQP.js";import{a as f,b as i,c as o,d as u}from"./chunk.KBZ32KWP.js";import{a as l}from"./chunk.GP725TPQ.js";import{a as p,b as V,f as e}from"./chunk.IZ2HVRME.js";var C=100,t=class extends c{constructor(){super(...arguments);this.currentStartValue="";this.currentEndValue="";this.start="";this.end="";this.defaultStart="";this.defaultEnd="";this.slider=!1}connectedCallback(){super.connectedCallback(),this.handleSliderFromValueChange=this.handleSliderFromValueChange.bind(this),this.handleSliderToValueChange=this.handleSliderToValueChange.bind(this),this.addEventListener("dsa-slider-from-value-change",this.handleSliderFromValueChange),this.addEventListener("dsa-slider-to-value-change",this.handleSliderToValueChange),this.start=this.start===""?this.defaultStart:this.start,this.currentStartValue=this.start,this.end=this.end===""?this.defaultEnd:this.end,this.currentEndValue=this.end,this.value=this.getRangeValue()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dsa-slider-from-value-change",this.handleSliderFromValueChange),this.removeEventListener("dsa-slider-to-value-change",this.handleSliderToValueChange)}handleSliderFromValueChange(r){let a=r.detail.value;this.currentStartValue=a}handleSliderToValueChange(r){let a=r.detail.value;this.currentEndValue=a}handleReset(){var r;this.currentStartValue=this.defaultStart,this.currentEndValue=this.defaultEnd,(r=this.startValueInput)==null||r.focus({preventScroll:!0})}handleSubmit(){this.start=this.currentStartValue,this.end=this.currentEndValue,this.value=this.getRangeValue(),this.emit("dsa-submit"),this.hide(),this.filterTrigger.focus({preventScroll:!0})}handleStartInput(r){let a=r.target.value;this.currentStartValue=a,this.emit("dsa-input")}handleEndInput(r){let a=r.target.value;this.currentEndValue=a,this.emit("dsa-input")}handleStartChange(r){let a=r.target.value,n=parseFloat(this.currentEndValue);parseFloat(a)<=this.min?this.currentStartValue=`${this.min}`:parseFloat(a)<=n?this.currentStartValue=a:parseFloat(a)>n&&(this.currentStartValue=this.currentEndValue),this.emit("dsa-change")}handleEndChange(r){let a=r.target.value,n=parseFloat(this.currentStartValue);parseFloat(a)>=this.max?this.currentEndValue=`${this.max}`:parseFloat(a)>=n?this.currentEndValue=a:parseFloat(a)<n&&(this.currentEndValue=this.currentStartValue),this.emit("dsa-change")}getRangeValue(){return this.start===""&&this.end===""?"":this.start===""?`${this.localize.term("lessThan")} ${this.end}`:this.end===""?`${this.localize.term("moreThan")} ${this.start}`:`${this.start} - ${this.end}`}handleFilterRangeOpenChange(){this.open||(this.currentStartValue=this.start===""?this.defaultStart:this.start,this.currentEndValue=this.end===""?this.defaultEnd:this.end)}handleStartPropChange(){this.currentStartValue!==this.start&&(this.currentStartValue=this.start),this.value=this.getRangeValue()}handleEndPropChange(){this.currentEndValue!==this.end&&(this.currentEndValue=this.end),this.value=this.getRangeValue()}handleCurrentValuesChange(){this.drawer&&(this.start=this.currentStartValue,this.end=this.currentEndValue,this.value=this.getRangeValue())}renderPanelContent(){return l`
|
|
2
2
|
<div class="filter__content">
|
|
3
3
|
${this.slider?l`
|
|
4
4
|
<div class="filter__slider">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as w}from"./chunk.
|
|
1
|
+
import{a as w}from"./chunk.WNYKZ5NJ.js";import{a as f}from"./chunk.S7OUYCK4.js";import{a as v}from"./chunk.ELL45QD3.js";import{b as c}from"./chunk.FDMPUSVV.js";import{c as u}from"./chunk.VZAYP3SG.js";import{b as h,c as p}from"./chunk.QTD6NQFL.js";import{a as o}from"./chunk.2RF4WD6T.js";import{d as i}from"./chunk.ZBHHLRFH.js";import{a as b}from"./chunk.BWEPOOQP.js";import{b as r,d,f as n}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.6G2FNLAV.js";import{f as a}from"./chunk.IZ2HVRME.js";var x=s`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
position: relative;
|
|
@@ -143,7 +143,7 @@ import{a as w}from"./chunk.WYKFMOCB.js";import{a as u}from"./chunk.H46NZIZH.js";
|
|
|
143
143
|
.selectable-card--contrasted-borders {
|
|
144
144
|
border-color: var(--dsa-wc-card-border-color-contrasted);
|
|
145
145
|
}
|
|
146
|
-
`;var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new
|
|
146
|
+
`;var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new v(this,"image");this.checked=!1;this.disabled=!1;this.parentDisabled=!1;this.readonly=!1;this.parentReadonly=!1;this.error=!1;this.layout="horizontal";this.contrastedBorders=!1}handleClick(){}handleBlur(){this.emit("dsa-blur")}handleFocus(){this.emit("dsa-focus")}handleDisabledChange(){this.readonly||this.parentReadonly?h(this.button,"aria-disabled","true"):p(this.button,"aria-disabled")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){let t=this.disabled||this.parentDisabled,l=this.readonly||this.parentReadonly;return c`
|
|
147
147
|
<div part="base">
|
|
148
148
|
<button
|
|
149
149
|
part="${`button${this.checked?" selectable-card--checked":""}`}"
|
|
@@ -202,4 +202,4 @@ import{a as w}from"./chunk.WYKFMOCB.js";import{a as u}from"./chunk.H46NZIZH.js";
|
|
|
202
202
|
</div>
|
|
203
203
|
</button>
|
|
204
204
|
</div>
|
|
205
|
-
`}};e.styles=x,e.dependencies={"dsa-icon":
|
|
205
|
+
`}};e.styles=x,e.dependencies={"dsa-icon":u,"dsa-internal-radio-icon":w,"dsa-internal-checkbox-box":f},a([d(".selectable-card")],e.prototype,"button",2),a([r({type:Boolean,reflect:!0})],e.prototype,"checked",2),a([r()],e.prototype,"value",2),a([r({type:Boolean,reflect:!0})],e.prototype,"disabled",2),a([r({type:Boolean})],e.prototype,"parentDisabled",2),a([r({type:Boolean,reflect:!0})],e.prototype,"readonly",2),a([r({type:Boolean})],e.prototype,"parentReadonly",2),a([r({type:Boolean})],e.prototype,"error",2),a([r()],e.prototype,"layout",2),a([r({type:Boolean,reflect:!0,attribute:"contrasted-borders"})],e.prototype,"contrastedBorders",2),a([b(["readonly","parentReadonly"],{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1);export{e as a};
|
|
@@ -2,7 +2,7 @@ import{a as p}from"./chunk.SZ2RS6ZH.js";import{a}from"./chunk.NIRNX67K.js";impor
|
|
|
2
2
|
<a
|
|
3
3
|
class=${n({"navbar-link":!0,"navbar-link--mobile":this.mobile,"navbar-link--desktop":!this.mobile})}
|
|
4
4
|
href=${this.href}
|
|
5
|
-
target
|
|
5
|
+
target=${l(this.target)}
|
|
6
6
|
rel=${l(this.rel)}
|
|
7
7
|
aria-current=${a(this.current)}
|
|
8
8
|
@focus=${this.handleFocus}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u}from"./chunk.27RSAF7P.js";import{a as f,b as y}from"./chunk.3RLUYXJN.js";import{a as z}from"./chunk.ZJVQ3VQM.js";import{a as k}from"./chunk.ELL45QD3.js";import{a as L}from"./chunk.
|
|
1
|
+
import{a as u}from"./chunk.27RSAF7P.js";import{a as f,b as y}from"./chunk.3RLUYXJN.js";import{a as z}from"./chunk.ZJVQ3VQM.js";import{a as k}from"./chunk.ELL45QD3.js";import{a as L}from"./chunk.LYLTFAFC.js";import{a as p}from"./chunk.KLRPP4NQ.js";import{a as l,c as h}from"./chunk.HHVNQNCC.js";import{a as r,c as n}from"./chunk.TV2TMO2H.js";import{a as m}from"./chunk.B4KFHYLS.js";import{a as E}from"./chunk.NIRNX67K.js";import{c as T}from"./chunk.LBAIMDY3.js";import{a as w}from"./chunk.2RF4WD6T.js";import{d as g}from"./chunk.ZBHHLRFH.js";import{a as _}from"./chunk.BWEPOOQP.js";import{a as b,b as s,d as c,f as C}from"./chunk.KBZ32KWP.js";import{a as d}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var t=class extends C{constructor(){super(...arguments);this.hasSlotController=new k(this,"footer");this.localize=new T(this);this.modal=new u(this);this.open=!1;this.label="";this.hideTitle=!1;this.noCloseButton=!1;this.noHeader=!1;this.size="medium"}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new u(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),f(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),y(this)}requestClose(e){let a=this.emit("dsa-request-close",{cancelable:!0,detail:{source:e}});if(this.noCloseButton&&a.preventDefault(),a.defaultPrevented){let o=n(this,"dialog.denyClose",{dir:this.localize.dir()});l(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(e){if(this.open&&this.modal.isActive()&&e.key==="Escape"){let a=this.querySelectorAll("dsa-tooltip");Array.from(a).some(v=>v.open)||(e.stopPropagation(),this.requestClose("keyboard"))}}async handleOpenChange(){if(this.open){this.emit("dsa-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),f(this);let e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([h(this.dialog),h(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("dsa-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")});let a=n(this,"dialog.show",{dir:this.localize.dir()}),o=n(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([l(this.panel,a.keyframes,a.options),l(this.overlay,o.keyframes,o.options)]),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([h(this.dialog),h(this.overlay)]);let e=n(this,"dialog.hide",{dir:this.localize.dir()}),a=n(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([l(this.overlay,a.keyframes,a.options).then(()=>{this.overlay.hidden=!0}),l(this.panel,e.keyframes,e.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,y(this);let o=this.originalTrigger;typeof(o==null?void 0:o.focus)=="function"&&setTimeout(()=>o.focus()),this.emit("dsa-after-hide")}}async show(){if(!this.open)return this.open=!0,await p(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await p(this,"dsa-after-hide")}render(){let e=!this.noHeader&&!this.hideTitle;return!this.label&&!this.hasSlotController.test("label")&&m("<dsa-dialog> require a label attribute or a label slot for accessibility"),!e&&!this.label&&m("<dsa-dialog> require a label attribute for accessibility when the header or the title are hidden"),d`
|
|
2
2
|
<div
|
|
3
3
|
part="base"
|
|
4
4
|
class=${g({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer"),"dialog--small":this.size==="small","dialog--medium":this.size==="medium","dialog--large":this.size==="large"})}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as v}from"./chunk.DY5MCIEV.js";import{
|
|
1
|
+
import{a as v}from"./chunk.DY5MCIEV.js";import{a as f}from"./chunk.LYLTFAFC.js";import{c as m}from"./chunk.LBAIMDY3.js";import{b as s}from"./chunk.QTD6NQFL.js";import{a as p}from"./chunk.2RF4WD6T.js";import{d as u}from"./chunk.ZBHHLRFH.js";import{a as n}from"./chunk.BWEPOOQP.js";import{a as r,b as o,c as h,d as i,f as b}from"./chunk.KBZ32KWP.js";import{a as d}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var B=0,t=class extends b{constructor(){super(...arguments);this.localize=new m(this);this.attrId=++B;this.componentId=`dsa-tab-${this.attrId}`;this.widthPlaceholderNodes=[];this.panel="";this.active=!1;this.closable=!1;this.disabled=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=this.componentId),s(this,"role","tab")}firstUpdated(){this.updateWidthPlaceholderNodes();let l=this.closeButton;l!==null&&l.updateComplete.then(()=>{let a=this.active?"0":"-1";s(l.button,"tabindex",a)})}handleDefaultSlotChange(){this.updateWidthPlaceholderNodes()}updateWidthPlaceholderNodes(){this.widthPlaceholderNodes=this.defaultSlot?this.defaultSlot.assignedNodes().map(l=>l.cloneNode(!0)):[]}handleCloseClick(l){l.stopPropagation(),this.emit("dsa-close")}handleActiveChange(){var c;let l=this.active?"true":"false";s(this,"aria-selected",l);let a=this.active?"0":"-1";(c=this.closeButton)!=null&&c.button&&s(this.closeButton.button,"tabindex",a)}handleDisabledChange(){let l=this.disabled?"true":"false";s(this,"aria-disabled",l);let a=this.disabled?-1:0;this.tabIndex!==a&&(this.tabIndex=a)}render(){return d`
|
|
2
2
|
<div
|
|
3
3
|
part="base"
|
|
4
4
|
class=${u({tab:!0,"tab--active":this.active,"tab--closable":this.closable,"tab--disabled":this.disabled})}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import{a as L}from"./chunk.RVJ7GEHV.js";import{a as f}from"./chunk.H6456THW.js";import{a as O}from"./chunk.GWF5GFSQ.js";import{c as w}from"./chunk.3RLUYXJN.js";import{a as V}from"./chunk.ZZBJJF7J.js";import{a as _}from"./chunk.PIG773U2.js";import{a as C}from"./chunk.EV7HZRUS.js";import{c as $}from"./chunk.VZAYP3SG.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
|
+
${this.displayedOptions.map(e=>o`<div role="listitem">${e}</div>`)}
|
|
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
|
+
<dsa-button
|
|
5
|
+
slot="anchor"
|
|
6
|
+
class="filter__trigger"
|
|
7
|
+
aria-expanded=${this.open?"true":"false"}
|
|
8
|
+
aria-controls="filter__panel"
|
|
9
|
+
?disabled=${this.disabled}
|
|
10
|
+
@focus=${this.handleFocus}
|
|
11
|
+
@blur=${this.handleBlur}
|
|
12
|
+
@mousedown=${this.handleFilterTriggerMouseDown}
|
|
13
|
+
variant="tertiary"
|
|
14
|
+
caret
|
|
15
|
+
>
|
|
16
|
+
<dsa-icon
|
|
17
|
+
name="view_column"
|
|
18
|
+
slot="prefix"
|
|
19
|
+
library="system"
|
|
20
|
+
></dsa-icon>
|
|
21
|
+
${this.label!==""?this.label:this.localize.term("columns")}
|
|
22
|
+
</dsa-button>
|
|
23
|
+
`;{let e=this.selectedOptions.length;return o`
|
|
24
|
+
<dsa-filter-button
|
|
25
|
+
slot="anchor"
|
|
26
|
+
class="filter__trigger"
|
|
27
|
+
label=${this.label}
|
|
28
|
+
selected-option=${e===1?this.displayLabel:""}
|
|
29
|
+
selection-count=${e}
|
|
30
|
+
aria-expanded=${this.open?"true":"false"}
|
|
31
|
+
aria-controls="filter__panel"
|
|
32
|
+
?disabled=${this.disabled}
|
|
33
|
+
?readonly=${this.readonly}
|
|
34
|
+
?drawer=${this.drawer}
|
|
35
|
+
@focus=${this.handleFocus}
|
|
36
|
+
@blur=${this.handleBlur}
|
|
37
|
+
@mousedown=${this.handleFilterTriggerMouseDown}
|
|
38
|
+
></dsa-filter-button>
|
|
39
|
+
`}}renderDeSelectAll(){let e=this.selectedOptions.length;return o`
|
|
40
|
+
<dsa-button
|
|
41
|
+
class="filter__multiselect-header__deselect-all"
|
|
42
|
+
variant="tertiary"
|
|
43
|
+
size="small"
|
|
44
|
+
@click=${this.handleMultipleHeaderButtonClick}
|
|
45
|
+
>
|
|
46
|
+
${e===0?o` ${this.localize.term("selectAll")} `:o`
|
|
47
|
+
<dsa-icon
|
|
48
|
+
name="restart_alt"
|
|
49
|
+
slot="prefix"
|
|
50
|
+
library="system"
|
|
51
|
+
></dsa-icon>
|
|
52
|
+
${this.localize.term("deselectAll")}
|
|
53
|
+
`}
|
|
54
|
+
</dsa-button>
|
|
55
|
+
`}renderPanelContent(){let e=this.selectedOptions.length;return o`
|
|
56
|
+
${this.multiple&&!this.drawer?o`
|
|
57
|
+
<div class="filter__multiselect-header">
|
|
58
|
+
<span role="status"
|
|
59
|
+
>${this.localize.term("numberSelected",e,this.optionGender)}</span
|
|
60
|
+
>
|
|
61
|
+
${this.renderDeSelectAll()}
|
|
62
|
+
</div>
|
|
63
|
+
`:""}
|
|
64
|
+
${this.searchable?o`
|
|
65
|
+
<dsa-input
|
|
66
|
+
type="search"
|
|
67
|
+
accessible-name=${this.localize.term("search")}
|
|
68
|
+
placeholder=${this.localize.term("search")}
|
|
69
|
+
variant="layer"
|
|
70
|
+
.value=${this.searchValue}
|
|
71
|
+
@input=${this.handleSearchInput}
|
|
72
|
+
clearable
|
|
73
|
+
@dsa-clear=${this.handleSearchClear}
|
|
74
|
+
></dsa-input>
|
|
75
|
+
<dsa-visually-hidden>
|
|
76
|
+
<span
|
|
77
|
+
role="status"
|
|
78
|
+
aria-live="polite"
|
|
79
|
+
aria-relevant="all"
|
|
80
|
+
.live=${this.searchValue}
|
|
81
|
+
>${this.searchValue.length>0?`${this.displayedOptions.length} ${this.localize.term("optionsAvailable")}`:""}</span
|
|
82
|
+
>
|
|
83
|
+
</dsa-visually-hidden>
|
|
84
|
+
`:""}
|
|
85
|
+
|
|
86
|
+
<div
|
|
87
|
+
id="listbox"
|
|
88
|
+
role=${this.multiple?"group":"radiogroup"}
|
|
89
|
+
aria-multiselectable=${v(this.multiple?"true":void 0)}
|
|
90
|
+
aria-label=${this.localize.term("selectValue",this.multiple)}
|
|
91
|
+
part="listbox"
|
|
92
|
+
class="filter__listbox"
|
|
93
|
+
@mouseup=${this.handleOptionClick}
|
|
94
|
+
>
|
|
95
|
+
${this.displayedOptions.length>0?this.getDisplayedOptionsList():o`<div class="filter__empty_text">
|
|
96
|
+
<p>${this.localize.term("noMatchFound")}</p>
|
|
97
|
+
</div>`}
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<div
|
|
101
|
+
class="filter__options"
|
|
102
|
+
tabindex="-1"
|
|
103
|
+
role=${this.multiple?"group":"radiogroup"}
|
|
104
|
+
>
|
|
105
|
+
<slot @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div class="filter-select__footer">
|
|
109
|
+
${this.maxVisibleListLength>0&&this.nbOptions>this.maxVisibleListLength&&!this.seeAll?o`
|
|
110
|
+
<dsa-button
|
|
111
|
+
variant="tertiary"
|
|
112
|
+
size="small"
|
|
113
|
+
class="filter__see-all-button"
|
|
114
|
+
@click=${this.handleSeeAllClick}
|
|
115
|
+
>
|
|
116
|
+
${this.localize.term("seeAll",this.nbOptions)}
|
|
117
|
+
</dsa-button>
|
|
118
|
+
`:""}
|
|
119
|
+
${this.drawer&&this.multiple?this.renderDeSelectAll():""}
|
|
120
|
+
</div>
|
|
121
|
+
`}};i.styles=L,i.dependencies=b(g({},O.dependencies),{"dsa-button":C,"dsa-icon":$,"dsa-input":f,"dsa-visually-hidden":_}),a([u(".filter__multiselect-header__deselect-all")],i.prototype,"deselectAllButton",2),a([u("dsa-input")],i.prototype,"searchInput",2),a([u(".filter__listbox")],i.prototype,"listbox",2),a([u(".filter__see-all-button")],i.prototype,"seeAllButton",2),a([r()],i.prototype,"displayLabel",2),a([r()],i.prototype,"allOptions",2),a([r()],i.prototype,"currentOption",2),a([r()],i.prototype,"selectedOptions",2),a([r()],i.prototype,"displayedOptions",2),a([r()],i.prototype,"searchValue",2),a([r()],i.prototype,"nbOptions",2),a([r()],i.prototype,"seeAll",2),a([r()],i.prototype,"debounceTimerId",2),a([h({converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>typeof e=="string"?e:e.join(" ")}})],i.prototype,"value",2),a([h({type:Boolean,reflect:!0})],i.prototype,"multiple",2),a([h({attribute:"max-visible-list-length",type:Number})],i.prototype,"maxVisibleListLength",2),a([h({type:Boolean})],i.prototype,"searchable",2),a([h({type:Number,attribute:"debounce-timeout"})],i.prototype,"debounceTimeout",2),a([h({attribute:"option-gender"})],i.prototype,"optionGender",2),a([h({type:Boolean,attribute:"columns-filter"})],i.prototype,"columnsFilter",2),a([c("searchValue",{waitUntilFirstUpdate:!0})],i.prototype,"handleSearchValueChange",1),a([c("value",{waitUntilFirstUpdate:!0})],i.prototype,"handleValueChange",1),a([c("seeAll")],i.prototype,"handleSeeAllChange",1),a([c("multiple")],i.prototype,"handleMultipleChange",1),i=a([y("dsa-filter-select")],i);export{i as a};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import{a as x}from"./chunk.57RCXLSL.js";import{d as c,e as w,f as _,g as E,h as R}from"./chunk.WDYFEO2Q.js";import{a as p}from"./chunk.DBXX64Q4.js";import{a as C}from"./chunk.EFB2SY45.js";import{a as $}from"./chunk.LYLTFAFC.js";import{a as u}from"./chunk.NIRNX67K.js";import{c as b}from"./chunk.LBAIMDY3.js";import{a as s}from"./chunk.2RF4WD6T.js";import{d}from"./chunk.ZBHHLRFH.js";import{a as n}from"./chunk.BWEPOOQP.js";import{a as g,b as h,c as y,d as V}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{a as v,b as k,f as a}from"./chunk.IZ2HVRME.js";var t=class extends p{constructor(){super(...arguments);this.localize=new b(this);this.effectiveMask="";this.maskedValue="";this.pattern="";this.mask=""}get validity(){let e=this.value.length>0&&this.patternRegExp?this.patternRegExp.test(c(this.value)):void 0;return E(this.input.validity,e)}connectedCallback(){super.connectedCallback(),this.updateMaskConfig(),this.mask.length>0&&this.mask.length!==this.placeholder.length&&console.warn("For correct usage: add `mask` attribute. It should have the same format than the placeholder."),this.maskedValue=this.rawValueToMaskedValue(this.value)}updateMaskConfig(){this.effectiveMask=this.mask||this.placeholder,this.patternRegExp=this.pattern?new RegExp(this.pattern):void 0}syncMaskedValue(){let e=this.rawValueToMaskedValue(this.value);this.maskedValue!==e&&(this.maskedValue=e),this.input&&this.input.value!==e&&(this.input.value=e)}handleInputValueChange(){let e=this.input,r=c(e.value),l=_(r,this.effectiveMask),i=this.rawValueToMaskedValue(l);this.value===l&&this.maskedValue===i&&e.value===i||(this.value=l,this.maskedValue=i,e.value!==i&&(e.value=i),this.formControlController.updateValidity(),this.emit("dsa-input"))}rawValueToMaskedValue(e){return w(e,this.placeholder)}handleChange(){this.emit("dsa-change")}async handleValueChange(){this.syncMaskedValue(),await this.updateComplete,this.formControlController.updateValidity()}handleMaskConfigChange(){this.updateMaskConfig(),this.syncMaskedValue(),this.formControlController.updateValidity()}setRangeText(e,r,l,i){this.input.setRangeText(e,r,l,i),this.value!==this.input.value&&(this.value=this.input.value)}renderInput(){var m,f;let e=this.hasSlotController.test("label"),r=this.hasSlotController.test("prefix"),l=this.hasSlotController.test("suffix"),i=this.label?!0:!!e,T=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.value=="number"||this.value.length>0);return o`
|
|
2
|
+
<div
|
|
3
|
+
part="base"
|
|
4
|
+
class=${d({"input-mask":!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})}
|
|
5
|
+
>
|
|
6
|
+
<slot
|
|
7
|
+
name="prefix"
|
|
8
|
+
part="prefix"
|
|
9
|
+
id="input__prefix"
|
|
10
|
+
class="input-mask__prefix"
|
|
11
|
+
></slot>
|
|
12
|
+
|
|
13
|
+
${R(this.maskedValue,this.placeholder,"input-mask")}
|
|
14
|
+
|
|
15
|
+
<input
|
|
16
|
+
part="input"
|
|
17
|
+
id="input"
|
|
18
|
+
class=${d({"input-mask__control":!0,"input-mask__control-with-prefix":r})}
|
|
19
|
+
type="text"
|
|
20
|
+
title=${u(i?void 0:(m=this.accessibleName)!=null?m:this.title)}
|
|
21
|
+
name=${u(this.name)}
|
|
22
|
+
?disabled=${this.disabled}
|
|
23
|
+
?readonly=${this.readonly}
|
|
24
|
+
?required=${this.required}
|
|
25
|
+
minlength=${s(this.minlength)}
|
|
26
|
+
maxlength=${s(this.placeholder.length)}
|
|
27
|
+
size=${s(this.placeholder.length)}
|
|
28
|
+
placeholder=${s(this.placeholder)}
|
|
29
|
+
.value=${C(this.maskedValue)}
|
|
30
|
+
autocomplete=${s(this.autocomplete)}
|
|
31
|
+
autocorrect=${s(this.autocorrect)}
|
|
32
|
+
?autofocus=${this.autofocus}
|
|
33
|
+
spellcheck=${this.spellcheck}
|
|
34
|
+
enterkeyhint=${s(this.enterkeyhint)}
|
|
35
|
+
inputmode=${this.inputmode}
|
|
36
|
+
aria-label=${u(i?void 0:(f=this.accessibleName)!=null?f:this.title)}
|
|
37
|
+
aria-describedby=${this.getDescriptionIds()}
|
|
38
|
+
aria-invalid=${s(this.error?"true":void 0)}
|
|
39
|
+
@change=${this.handleChange}
|
|
40
|
+
@invalid=${this.handleInvalid}
|
|
41
|
+
@input=${this.handleInputValueChange}
|
|
42
|
+
@keydown=${this.handleKeyDown}
|
|
43
|
+
@focus=${this.handleFocus}
|
|
44
|
+
@blur=${this.handleBlur}
|
|
45
|
+
/>
|
|
46
|
+
|
|
47
|
+
${l?o`<slot
|
|
48
|
+
name="suffix"
|
|
49
|
+
id="input__suffix"
|
|
50
|
+
class="input-mask__suffix"
|
|
51
|
+
></slot>`:""}
|
|
52
|
+
${T?o`
|
|
53
|
+
<dsa-icon-button
|
|
54
|
+
part="clear-button"
|
|
55
|
+
class="input-mask__clear"
|
|
56
|
+
label=${this.localize.term("clearEntry")}
|
|
57
|
+
@click=${this.handleClearClick}
|
|
58
|
+
name="close"
|
|
59
|
+
library="system"
|
|
60
|
+
>
|
|
61
|
+
</dsa-icon-button>
|
|
62
|
+
`:""}
|
|
63
|
+
</div>
|
|
64
|
+
`}};t.styles=x,t.dependencies=k(v({},p.dependencies),{"dsa-icon-button":$}),a([V(".input-mask__control")],t.prototype,"input",2),a([y()],t.prototype,"maskedValue",2),a([h()],t.prototype,"inputmode",2),a([h()],t.prototype,"pattern",2),a([h({reflect:!0})],t.prototype,"mask",2),a([n("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),a([n("mask",{waitUntilFirstUpdate:!0}),n("pattern",{waitUntilFirstUpdate:!0}),n("placeholder",{waitUntilFirstUpdate:!0})],t.prototype,"handleMaskConfigChange",1),t=a([g("dsa-input-mask")],t);export{t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as M}from"./chunk.RCGUDUP2.js";import{a as H}from"./chunk.27RSAF7P.js";import{a as h,b as p}from"./chunk.3RLUYXJN.js";import{a as E}from"./chunk.ELL45QD3.js";import{a as q}from"./chunk.
|
|
1
|
+
import{a as M}from"./chunk.RCGUDUP2.js";import{a as H}from"./chunk.27RSAF7P.js";import{a as h,b as p}from"./chunk.3RLUYXJN.js";import{a as E}from"./chunk.ELL45QD3.js";import{a as q}from"./chunk.LYLTFAFC.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as n,c as d}from"./chunk.HHVNQNCC.js";import{a as i,c as l}from"./chunk.TV2TMO2H.js";import{a as u}from"./chunk.B4KFHYLS.js";import{a as L}from"./chunk.NIRNX67K.js";import{c as T}from"./chunk.LBAIMDY3.js";import{a as C}from"./chunk.2RF4WD6T.js";import{d as k}from"./chunk.ZBHHLRFH.js";import{a as y}from"./chunk.BWEPOOQP.js";import{a as g,b as s,d as c,f as _}from"./chunk.KBZ32KWP.js";import{a as f}from"./chunk.GP725TPQ.js";import{f as a}from"./chunk.IZ2HVRME.js";function v(m){return m.charAt(0).toUpperCase()+m.slice(1)}var e=class extends _{constructor(){super(...arguments);this.hasSlotController=new E(this,"footer");this.localize=new T(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.filters=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new H(this)}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),h(this)))}disconnectedCallback(){super.disconnectedCallback(),p(this)}requestClose(t){if(this.emit("dsa-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let o=l(this,"drawer.denyClose",{dir:this.localize.dir()});n(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){if(this.open&&!this.contained&&t.key==="Escape"){let r=this.querySelectorAll("dsa-tooltip");Array.from(r).some(b=>b.open)||(t.stopPropagation(),this.requestClose("keyboard"))}}async handleOpenChange(){if(this.open){this.emit("dsa-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),h(this));let t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([d(this.drawer),d(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{this.emit("dsa-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});let r=l(this,`drawer.show${v(this.placement)}`,{dir:this.localize.dir()}),o=l(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,r.keyframes,r.options),n(this.overlay,o.keyframes,o.options)]),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),p(this)),await Promise.all([d(this.drawer),d(this.overlay)]);let t=l(this,`drawer.hide${v(this.placement)}`,{dir:this.localize.dir()}),r=l(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,r.keyframes,r.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;let o=this.originalTrigger;typeof(o==null?void 0:o.focus)=="function"&&setTimeout(()=>o.focus()),this.emit("dsa-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),h(this)),this.open&&this.contained&&(this.modal.deactivate(),p(this))}async show(){if(!this.open)return this.open=!0,await w(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await w(this,"dsa-after-hide")}render(){return!this.label&&!this.hasSlotController.test("label")&&u("<dsa-drawer> requires a label attribute or a label slot for accessibility"),this.noHeader&&!this.label&&u("<dsa-drawer> requires a label attribute for accessibility when `no-header` is set"),f`
|
|
2
2
|
<div
|
|
3
3
|
part="base"
|
|
4
4
|
class=${k({drawer:!0,"drawer--open":this.open,"drawer--top":this.placement==="top","drawer--end":this.placement==="end","drawer--bottom":this.placement==="bottom","drawer--start":this.placement==="start","drawer--contained":this.contained,"drawer--fixed":!this.contained,"drawer--rtl":this.localize.dir()==="rtl","drawer--has-footer":this.hasSlotController.test("footer"),"drawer--filters":this.filters})}
|