@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
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk.COMV5MJ5.js";import{a as x}from"./chunk.HEWKH2LT.js";import{a as P}from"./chunk.VL5LPHV3.js";import{a as K}from"./chunk.CUYQOZPJ.js";import{a as V}from"./chunk.U4TME7DS.js";import{a as L}from"./chunk.QTD6NQFL.js";import{a as T}from"./chunk.NJBAMERR.js";import{a as A}from"./chunk.CLIKZB5P.js";import{a as F}from"./chunk.WWRGGVFZ.js";import{b as k}from"./chunk.FWTZS7LK.js";import{a as b}from"./chunk.KLRPP4NQ.js";import{a as v,c as g}from"./chunk.HHVNQNCC.js";import{a as w,c as $}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.KD3BHBHK.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 P{constructor(){super(...arguments);this.formControlController=new k(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}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=L(e);this.overrideDefaultFiltering?this.filteredOptions=this.allOptions:this.filteredOptions=this.allOptions.filter(i=>L(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)}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.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.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.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 g(this),this.listbox.hidden=!1,this.popup.active=!0,this.displayInput.focus({preventScroll:!0}),requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:i,options:l}=$(this,"select.show",{dir:this.localize.dir()});await v(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 g(this);let{keyframes:i,options:l}=$(this,"select.hide",{dir:this.localize.dir()});await v(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 b(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 b(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 S,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,H=this.disabled||this.readonly,B=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((S=this.accessibleName)!=null?S: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=${H}
|
|
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?B: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=A,s.dependencies={"dsa-icon":M,"dsa-popup":K,"dsa-tag":z,"dsa-error-text":T,"dsa-spinner":F,"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([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,35 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk.FC4RDJJF.js";import{a as P}from"./chunk.JP66XCHO.js";import{c as z}from"./chunk.LBAIMDY3.js";import{c as w}from"./chunk.KD3BHBHK.js";import{a as y}from"./chunk.2RF4WD6T.js";import{a as c}from"./chunk.BWEPOOQP.js";import{a as u,b as h,d as g,f as b}from"./chunk.KBZ32KWP.js";import{a as x}from"./chunk.UMC4I57R.js";import{a as f}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";function T(p,r){function e(o){let a=p.getBoundingClientRect(),s=p.ownerDocument.defaultView,v=a.left+s.pageXOffset,d=a.top+s.pageYOffset,l=o.pageX-v,E=o.pageY-d;r!=null&&r.onMove&&r.onMove(l,E)}function t(){document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",t),r!=null&&r.onStop&&r.onStop()}document.addEventListener("pointermove",e,{passive:!0}),document.addEventListener("pointerup",t),(r==null?void 0:r.initialEvent)instanceof PointerEvent&&e(r.initialEvent)}var i=class extends b{constructor(){super(...arguments);this.localize=new z(this);this.position=50;this.vertical=!1;this.disabled=!1;this.snapThreshold=12}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(e=>this.handleResize(e)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.resizeObserver)==null||e.unobserve(this)}detectSize(){let{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){let t=this.localize.dir()==="rtl";this.disabled||(e.cancelable&&e.preventDefault(),T(this,{onMove:(o,a)=>{let s=this.vertical?a:o;this.primary==="end"&&(s=this.size-s),this.snap&&this.snap.split(" ").forEach(d=>{let l;d.endsWith("%")?l=this.size*(parseFloat(d)/100):l=parseFloat(d),t&&!this.vertical&&(l=this.size-l),s>=l-this.snapThreshold&&s<=l+this.snapThreshold&&(s=l)}),this.position=m(this.pixelsToPercentage(s),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=this.position,o=(e.shiftKey?10:1)*(this.primary==="end"?-1:1);e.preventDefault(),(e.key==="ArrowLeft"&&!this.vertical||e.key==="ArrowUp"&&this.vertical)&&(t-=o),(e.key==="ArrowRight"&&!this.vertical||e.key==="ArrowDown"&&this.vertical)&&(t+=o),e.key==="Home"&&(t=this.primary==="end"?100:0),e.key==="End"&&(t=this.primary==="end"?0:100),this.position=m(t,0,100)}}handleResize(e){let{width:t,height:o}=e[0].contentRect;this.size=this.vertical?o:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute("position-in-pixels")),this.positionInPixels=Number(this.getAttribute("position-in-pixels")),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.positionInPixels=this.percentageToPixels(this.position),this.emit("dsa-reposition")}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){let e=this.vertical?"gridTemplateRows":"gridTemplateColumns",t=this.vertical?"gridTemplateColumns":"gridTemplateRows",o=this.localize.dir()==="rtl",a=`
|
|
2
|
-
clamp(
|
|
3
|
-
0%,
|
|
4
|
-
clamp(
|
|
5
|
-
var(--min),
|
|
6
|
-
${this.position}% - var(--divider-width) / 2,
|
|
7
|
-
var(--max)
|
|
8
|
-
),
|
|
9
|
-
calc(100% - var(--divider-width))
|
|
10
|
-
)
|
|
11
|
-
`,s="auto";return this.primary==="end"?o&&!this.vertical?this.style[e]=`${a} var(--divider-width) ${s}`:this.style[e]=`${s} var(--divider-width) ${a}`:o&&!this.vertical?this.style[e]=`${s} var(--divider-width) ${a}`:this.style[e]=`${a} var(--divider-width) ${s}`,this.style[t]="",f`
|
|
12
|
-
<slot name="start" part="panel start" class="start"></slot>
|
|
13
|
-
|
|
14
|
-
<div
|
|
15
|
-
part="divider"
|
|
16
|
-
class="divider"
|
|
17
|
-
tabindex=${y(this.disabled?void 0:"0")}
|
|
18
|
-
role="separator"
|
|
19
|
-
aria-valuenow=${this.position}
|
|
20
|
-
aria-valuemin="0"
|
|
21
|
-
aria-valuemax="100"
|
|
22
|
-
aria-label=${this.localize.term("resize")}
|
|
23
|
-
@keydown=${this.handleKeyDown}
|
|
24
|
-
@mousedown=${this.handleDrag}
|
|
25
|
-
@touchstart=${this.handleDrag}
|
|
26
|
-
>
|
|
27
|
-
<dsa-icon
|
|
28
|
-
name="drag_indicator"
|
|
29
|
-
class="drag-icon"
|
|
30
|
-
library="system"
|
|
31
|
-
></dsa-icon>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<slot name="end" part="panel end" class="end"></slot>
|
|
35
|
-
`}};i.styles=[x,P],i.dependencies={"dsa-icon":w},n([g(".divider")],i.prototype,"divider",2),n([h({type:Number,reflect:!0})],i.prototype,"position",2),n([h({attribute:"position-in-pixels",type:Number})],i.prototype,"positionInPixels",2),n([h({type:Boolean,reflect:!0})],i.prototype,"vertical",2),n([h({type:Boolean,reflect:!0})],i.prototype,"disabled",2),n([h()],i.prototype,"primary",2),n([h()],i.prototype,"snap",2),n([h({type:Number,attribute:"snap-threshold"})],i.prototype,"snapThreshold",2),n([c("position")],i.prototype,"handlePositionChange",1),n([c("positionInPixels")],i.prototype,"handlePositionInPixelsChange",1),n([c("vertical")],i.prototype,"handleVerticalChange",1),i=n([u("dsa-split-panel")],i);export{i as a};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{a as S,b as T,c as g}from"./chunk.NJOCDP2A.js";import{a as E}from"./chunk.MHIIHFT3.js";import{a as d}from"./chunk.2RF4WD6T.js";import{a as v}from"./chunk.BWEPOOQP.js";import{a as L,b as u,c as _,f as A}from"./chunk.KBZ32KWP.js";import{a as $,f as y}from"./chunk.GP725TPQ.js";import{f as a}from"./chunk.IZ2HVRME.js";var{I:V}=y;var C=(i,o)=>o===void 0?(i==null?void 0:i._$litType$)!==void 0:(i==null?void 0:i._$litType$)===o;var G=i=>i.strings===void 0;var M={},H=(i,o=M)=>i._$AH=o;var m=Symbol(),f=Symbol(),b,R=new Map,s=class extends A{constructor(){super(...arguments);this.initialRender=!1;this.svg=null;this.label="";this.library="default"}async resolveIcon(r,c){var l;let e;if(c!=null&&c.spriteSheet){let t=typeof this.label=="string"&&this.label.length>0;return this.svg=$`
|
|
2
|
-
<svg
|
|
3
|
-
part="svg"
|
|
4
|
-
role=${d(t?"img":void 0)}
|
|
5
|
-
aria-hidden="${d(t?void 0:"true")}"
|
|
6
|
-
aria-label="${d(t?this.label:void 0)}"
|
|
7
|
-
>
|
|
8
|
-
<use part="use" href="${r}"></use>
|
|
9
|
-
</svg>
|
|
10
|
-
`,this.svg}try{if(e=await fetch(r,{mode:"cors"}),!e.ok)return e.status===410?m:f}catch(t){return f}try{let t=document.createElement("div");t.innerHTML=await e.text();let n=t.firstElementChild;if(((l=n==null?void 0:n.tagName)==null?void 0:l.toLowerCase())!=="svg")return m;b||(b=new DOMParser);let p=b.parseFromString(n.outerHTML,"text/html").body.querySelector("svg");return p?(p.part.add("svg"),document.adoptNode(p)):m}catch(t){return m}}connectedCallback(){super.connectedCallback(),S(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),T(this)}getIconSource(){let r=g(this.library);return this.name&&r?{url:r.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}setSvgLabel(){if(!(this.svg instanceof SVGElement))return;typeof this.label=="string"&&this.label.length>0?(this.svg.setAttribute("role","img"),this.svg.setAttribute("aria-label",this.label),this.svg.removeAttribute("aria-hidden")):(this.svg.removeAttribute("role"),this.svg.removeAttribute("aria-label"),this.svg.setAttribute("aria-hidden","true"))}handleLabelChange(){this.setSvgLabel()}async setIcon(){var n;let{url:r,fromLibrary:c}=this.getIconSource(),e=c?g(this.library):void 0;if(!r){this.svg=null;return}let l=R.get(r);if(l||(l=this.resolveIcon(r,e),R.set(r,l)),!this.initialRender)return;let t=await l;if(t===f&&R.delete(r),r===this.getIconSource().url){if(C(t)){if(this.svg=t,e){await this.updateComplete;let h=this.shadowRoot.querySelector("[part='svg']");typeof e.mutator=="function"&&h&&e.mutator(h)}return}switch(t){case f:case m:this.svg=null,this.emit("dsa-error");break;default:this.svg=t.cloneNode(!0),(n=e==null?void 0:e.mutator)==null||n.call(e,this.svg),this.setSvgLabel(),this.emit("dsa-load")}}}render(){return this.svg}};s.styles=E,a([_()],s.prototype,"svg",2),a([u({reflect:!0})],s.prototype,"name",2),a([u()],s.prototype,"src",2),a([u()],s.prototype,"label",2),a([u({reflect:!0})],s.prototype,"library",2),a([v("label")],s.prototype,"handleLabelChange",1),a([v(["name","src","library"])],s.prototype,"setIcon",1),s=a([L("dsa-icon")],s);export{G as a,H as b,s as c};
|
|
11
|
-
/*! Bundled license information:
|
|
12
|
-
|
|
13
|
-
lit-html/directive-helpers.js:
|
|
14
|
-
(**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright 2020 Google LLC
|
|
17
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*)
|
|
19
|
-
*/
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import{a as w}from"./chunk.SN7BDOHN.js";import{d as p,e as x,f as T}from"./chunk.RGOPSYRZ.js";import{a as d}from"./chunk.ZCITPD2M.js";import{a as _}from"./chunk.FX5UP23Z.js";import{a as C}from"./chunk.63UE4VAO.js";import{a as u}from"./chunk.NIRNX67K.js";import{c as V}from"./chunk.LBAIMDY3.js";import{a as i}from"./chunk.2RF4WD6T.js";import{d as h}from"./chunk.ZBHHLRFH.js";import{a as k}from"./chunk.BWEPOOQP.js";import{a as g,b as o,c as b,d as $}from"./chunk.KBZ32KWP.js";import{a as n}from"./chunk.GP725TPQ.js";import{a as v,b as y,f as a}from"./chunk.IZ2HVRME.js";var t=class extends d{constructor(){super(...arguments);this.localize=new V(this);this.maskedValue="";this.pattern="";this.mask=""}get validity(){let e=!0;return this.value.length>0&&this.pattern.length>0&&(e=p(this.value).match(this.pattern)!==null),{badInput:this.input.validity.badInput,customError:this.input.validity.customError,patternMismatch:!e,rangeOverflow:this.input.validity.rangeOverflow,rangeUnderflow:this.input.validity.rangeUnderflow,stepMismatch:this.input.validity.stepMismatch,tooLong:this.input.validity.tooLong,tooShort:this.input.validity.tooShort,typeMismatch:this.input.validity.typeMismatch,valid:this.value.length>0&&this.pattern.length>0?e:this.input.validity.valid,valueMissing:this.input.validity.valueMissing}}connectedCallback(){super.connectedCallback(),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)}handleDocumentKeyUp(){let e=p(this.input.value),s=T(e,this.mask.length>0?this.mask:this.placeholder),l=this.rawValueToMaskedValue(s);this.value=s,this.maskedValue=l,this.input.value=l,this.formControlController.updateValidity(),this.emit("dsa-input")}rawValueToMaskedValue(e){return x(e,this.placeholder)}handleChange(){this.emit("dsa-change")}async handleValueChange(){this.maskedValue=this.rawValueToMaskedValue(this.value),await this.updateComplete,this.formControlController.updateValidity()}setRangeText(e,s,l,r){this.input.setRangeText(e,s,l,r),this.value!==this.input.value&&(this.value=this.input.value)}renderInput(){var m,f;let e=this.hasSlotController.test("label"),s=this.hasSlotController.test("prefix"),l=this.hasSlotController.test("suffix"),r=this.label?!0:!!e,S=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),c=this.placeholder.substring(this.maskedValue.length);return n`
|
|
2
|
-
<div
|
|
3
|
-
part="base"
|
|
4
|
-
class=${h({"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
|
-
<div
|
|
14
|
-
class=${h({"input-mask__placeholder":!0})}
|
|
15
|
-
aria-placeholder=${c}
|
|
16
|
-
aria-hidden="true"
|
|
17
|
-
>
|
|
18
|
-
<span class="input-mask__value" aria-hidden="true"
|
|
19
|
-
>${this.maskedValue}</span
|
|
20
|
-
>
|
|
21
|
-
${c}
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<input
|
|
25
|
-
part="input"
|
|
26
|
-
id="input"
|
|
27
|
-
class=${h({"input-mask__control":!0,"input-mask__control-with-prefix":s})}
|
|
28
|
-
type="text"
|
|
29
|
-
title=${u(r?void 0:(m=this.accessibleName)!=null?m:this.title)}
|
|
30
|
-
name=${u(this.name)}
|
|
31
|
-
?disabled=${this.disabled}
|
|
32
|
-
?readonly=${this.readonly}
|
|
33
|
-
?required=${this.required}
|
|
34
|
-
minlength=${i(this.minlength)}
|
|
35
|
-
maxlength=${i(this.placeholder.length)}
|
|
36
|
-
size=${i(this.placeholder.length)}
|
|
37
|
-
placeholder=${i(this.placeholder)}
|
|
38
|
-
.value=${_(this.maskedValue)}
|
|
39
|
-
autocomplete=${i(this.autocomplete)}
|
|
40
|
-
autocorrect=${i(this.autocorrect)}
|
|
41
|
-
?autofocus=${this.autofocus}
|
|
42
|
-
spellcheck=${this.spellcheck}
|
|
43
|
-
enterkeyhint=${i(this.enterkeyhint)}
|
|
44
|
-
inputmode=${this.inputmode}
|
|
45
|
-
aria-label=${u(r?void 0:(f=this.accessibleName)!=null?f:this.title)}
|
|
46
|
-
aria-describedby=${this.getDescriptionIds()}
|
|
47
|
-
aria-invalid=${i(this.error?"true":void 0)}
|
|
48
|
-
@change=${this.handleChange}
|
|
49
|
-
@invalid=${this.handleInvalid}
|
|
50
|
-
@keyup=${this.handleDocumentKeyUp}
|
|
51
|
-
@keydown=${this.handleKeyDown}
|
|
52
|
-
@focus=${this.handleFocus}
|
|
53
|
-
@blur=${this.handleBlur}
|
|
54
|
-
/>
|
|
55
|
-
|
|
56
|
-
${l?n`<slot
|
|
57
|
-
name="suffix"
|
|
58
|
-
id="input__suffix"
|
|
59
|
-
class="input-mask__suffix"
|
|
60
|
-
></slot>`:""}
|
|
61
|
-
${S?n`
|
|
62
|
-
<dsa-icon-button
|
|
63
|
-
part="clear-button"
|
|
64
|
-
class="input-mask__clear"
|
|
65
|
-
label=${this.localize.term("clearEntry")}
|
|
66
|
-
@click=${this.handleClearClick}
|
|
67
|
-
name="close"
|
|
68
|
-
library="system"
|
|
69
|
-
>
|
|
70
|
-
</dsa-icon-button>
|
|
71
|
-
`:""}
|
|
72
|
-
</div>
|
|
73
|
-
`}};t.styles=w,t.dependencies=y(v({},d.dependencies),{"dsa-icon-button":C}),a([$(".input-mask__control")],t.prototype,"input",2),a([b()],t.prototype,"maskedValue",2),a([o()],t.prototype,"inputmode",2),a([o()],t.prototype,"pattern",2),a([o({reflect:!0})],t.prototype,"mask",2),a([k("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=a([g("dsa-input-mask")],t);export{t as a};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import{a as A}from"./chunk.RVJ7GEHV.js";import{a as f}from"./chunk.7ZYAJWHQ.js";import{a as O}from"./chunk.GVL377SN.js";import{c as x}from"./chunk.3RLUYXJN.js";import{a as w}from"./chunk.HEWKH2LT.js";import{a as m}from"./chunk.QTD6NQFL.js";import{a as _}from"./chunk.PIG773U2.js";import{a as C}from"./chunk.IMDJ7GD2.js";import{c as $}from"./chunk.KD3BHBHK.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}from"./chunk.GP725TPQ.js";import{a as g,b,f as s}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.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()}handleKeyDown(e){super.handleKeyDown(e);let l=e.composedPath(),t=l.some(o=>o instanceof w),n=l.some(o=>o 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 o=this.displayedOptions.indexOf(this.currentOption),d=Math.max(0,o);!(o===0&&e.key==="ArrowUp")&&!(o===this.displayedOptions.length-1&&e.key==="ArrowDown")&&e.preventDefault(),e.key==="ArrowDown"&&o<this.displayedOptions.length-1?d=o+1:e.key==="ArrowUp"&&o>0?d=o-1:e.key==="Home"?d=0:e.key==="End"&&(d=this.displayedOptions.length-1),this.setCurrentOption(this.displayedOptions[d])}n&&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),n=this.value;t&&!t.disabled&&(this.multiple||this.value.includes(t.value)?this.toggleOptionSelection(t):this.setSelectedOptions(t),this.value!==n&&this.updateComplete.then(()=>{this.emit("dsa-change")}),!this.multiple&&!this.drawer&&(this.updateComplete.then(()=>this.filterTrigger.focus({preventScroll:!0})),this.hide(),this.filterTrigger.focus({preventScroll:!0})))}filterOptions(){this.searchValue.length>0?this.displayedOptions=this.allOptions.filter(e=>m(e.innerText).includes(m(this.searchValue))):!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 e.forEach(t=>{t.role=this.multiple?"checkbox":"radio";let n=t.cloneNode(!0);n.selected=t.selected,n.multiple=this.multiple,n.role=this.multiple?"checkbox":"radio",n.classList.add("filter-select__option"),n.onfocus=this.handleOptionFocus.bind(this),l.push(n)}),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=>{t.selected=!0,this.allOptions.find(n=>n.value===t.value).selected=!0}),this.selectionChanged()}toggleOptionSelection(e,l){let t=this.allOptions.find(n=>n.value===e.value);l===!0||l===!1?t.selected=l:t.selected=!e.selected,this.selectionChanged()}selectionChanged(){var e,l;this.selectedOptions=this.allOptions.filter(t=>t.selected),this.filterOptions(),this.displayedOptions.forEach(t=>{t.selected=this.selectedOptions.map(n=>n.value).includes(t.value)}),this.multiple?this.value=this.selectedOptions.map(t=>t.value):this.value=(l=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?l:"",this.selectedOptions[0]?this.selectedOptions[0].updateComplete.then(()=>{var t,n;this.displayLabel=(n=(t=this.selectedOptions[0])==null?void 0:t.getTextLabel())!=null?n:""}):this.displayLabel=""}getDisplayedOptionsList(){return this.multiple?a`<div role="list">
|
|
2
|
-
${this.displayedOptions.map(e=>a`<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&&x(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 a`
|
|
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 a`
|
|
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 a`
|
|
40
|
-
<dsa-button
|
|
41
|
-
class="filter__multiselect-header__deselect-all"
|
|
42
|
-
variant="tertiary"
|
|
43
|
-
size="small"
|
|
44
|
-
@click=${this.handleMultipleHeaderButtonClick}
|
|
45
|
-
>
|
|
46
|
-
${e===0?a` ${this.localize.term("selectAll")} `:a`
|
|
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 a`
|
|
56
|
-
${this.multiple&&!this.drawer?a`
|
|
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?a`
|
|
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():a`<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?a`
|
|
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=A,i.dependencies=b(g({},O.dependencies),{"dsa-button":C,"dsa-icon":$,"dsa-input":f,"dsa-visually-hidden":_}),s([u(".filter__multiselect-header__deselect-all")],i.prototype,"deselectAllButton",2),s([u("dsa-input")],i.prototype,"searchInput",2),s([u(".filter__listbox")],i.prototype,"listbox",2),s([u(".filter__see-all-button")],i.prototype,"seeAllButton",2),s([r()],i.prototype,"displayLabel",2),s([r()],i.prototype,"allOptions",2),s([r()],i.prototype,"currentOption",2),s([r()],i.prototype,"selectedOptions",2),s([r()],i.prototype,"displayedOptions",2),s([r()],i.prototype,"searchValue",2),s([r()],i.prototype,"nbOptions",2),s([r()],i.prototype,"seeAll",2),s([r()],i.prototype,"debounceTimerId",2),s([h({converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>typeof e=="string"?e:e.join(" ")}})],i.prototype,"value",2),s([h({type:Boolean,reflect:!0})],i.prototype,"multiple",2),s([h({attribute:"max-visible-list-length",type:Number})],i.prototype,"maxVisibleListLength",2),s([h({type:Boolean})],i.prototype,"searchable",2),s([h({type:Number,attribute:"debounce-timeout"})],i.prototype,"debounceTimeout",2),s([h({attribute:"option-gender"})],i.prototype,"optionGender",2),s([h({type:Boolean,attribute:"columns-filter"})],i.prototype,"columnsFilter",2),s([c("searchValue",{waitUntilFirstUpdate:!0})],i.prototype,"handleSearchValueChange",1),s([c("value",{waitUntilFirstUpdate:!0})],i.prototype,"handleValueChange",1),s([c("seeAll")],i.prototype,"handleSeeAllChange",1),s([c("multiple")],i.prototype,"handleMultipleChange",1),i=s([y("dsa-filter-select")],i);export{i as a};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import{a as _}from"./chunk.JPOWE7L2.js";import{a as q}from"./chunk.S2RTEOQU.js";import{b as y,c as v}from"./chunk.QTD6NQFL.js";import{a as T}from"./chunk.PIG773U2.js";import{a as M}from"./chunk.NJBAMERR.js";import{a as w}from"./chunk.SWEIVB73.js";import{a as x}from"./chunk.ELL45QD3.js";import{b as E,c as I,d as k,e as B}from"./chunk.FWTZS7LK.js";import{a as b}from"./chunk.B4KFHYLS.js";import{d as R}from"./chunk.ZBHHLRFH.js";import{a as m}from"./chunk.BWEPOOQP.js";import{a as C,b as l,c as f,d as p,f as V}from"./chunk.KBZ32KWP.js";import{a as c}from"./chunk.GP725TPQ.js";import{f as s}from"./chunk.IZ2HVRME.js";var a=class extends V{constructor(){super(...arguments);this.formControlController=new E(this);this.hasSlotController=new x(this,"help-text","label");this.customValidityMessage="";this.customValidityError="";this.hasRadioButtons=!1;this.hasRadioCards=!1;this.readonlyRadioButtonValue=new Map;this.defaultValue="";this.label="";this.helpText="";this.description="";this.name="option";this.value="";this.deselectable=!1;this.form="";this.required=!1;this.disabled=!1;this.readonly=!1;this.horizontal=!1;this.error=!1;this.errorMessage="";this.hideLabel=!1}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?B:t?k:I}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){let t=[...this.querySelectorAll("dsa-radio, dsa-radio-button, dsa-radio-card")];return this.hasRadioButtons=t.some(e=>e.tagName.toLowerCase()==="dsa-radio-button"),this.hasRadioCards=t.some(e=>e.tagName.toLowerCase()==="dsa-radio-card"),t}handleRadioClick(t){let e=t.target.closest("dsa-radio, dsa-radio-button, dsa-radio-card");if(!e||e.disabled||e.readonly||this.disabled||this.readonly)return;let i=this.getAllRadios(),o=this.value;e.value!==o?(this.value=e.value,this.updateCheckedRadio()):this.deselectable&&(this.value="",i.forEach(n=>{n.checked=!1})),this.value!==o&&this.emit("dsa-change"),this.emit("dsa-input")}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key)||this.disabled||this.readonly)return;let e=this.getAllRadios(),i=e.filter(d=>!this.disabled&&!d.disabled&&(!d.readonly||d.checked)),o=i.length;if(o===0)return;let n=i.findIndex(d=>d.matches(":focus")),h=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,u=this.value,r=n+h;if(r=q(r,o),e.forEach(d=>{if(d.checked&&(d.checked=!1),this.hasRadioButtons||this.hasRadioCards){let g=d.button;g.tabIndex!==-1&&(g.tabIndex=-1)}else d.tabIndex!==-1&&(d.tabIndex=-1)}),h===0?(i[r].checked=this.deselectable?i[r].value!==u:!0,this.value=i[r].checked?i[r].value:""):(this.value=i[r].readonly||i[n].readonly&&i[n].checked?this.value:i[r].value,i[r].checked=this.value===i[r].value),!this.hasRadioButtons&&!this.hasRadioCards)i[r].tabIndex=0,i[r].focus();else{let d=i[r];d.button.tabIndex=0,d.button.focus()}this.value!==u&&(this.emit("dsa-change"),this.emit("dsa-input")),t.preventDefault()}handleLabelClick(){this.focus()}handleSlotChange(){if(customElements.get("dsa-radio")||customElements.get("dsa-radio-button")||customElements.get("dsa-radio-card")){let t=this.getAllRadios();this.readonlyRadioButtonValue.clear(),t.forEach(e=>{e.error!==this.error&&(e.error=this.error),this.required?y(e,"aria-required","true"):v(e,"aria-required"),(this.hasRadioButtons||this.hasRadioCards)&&e.readonly&&this.readonlyRadioButtonValue.set(e.value,!0),e.parentDisabled!==this.disabled&&(e.parentDisabled=this.disabled),e.parentReadonly!==this.readonly&&(e.parentReadonly=this.readonly)}),this.updateCheckedRadio()}else customElements.whenDefined("dsa-radio").then(()=>this.handleSlotChange()),customElements.whenDefined("dsa-radio-button").then(()=>this.handleSlotChange()),customElements.whenDefined("dsa-radio-card").then(()=>this.handleSlotChange())}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),setTimeout(()=>{this.focus()},0)}updateCheckedRadio(){this.getAllRadios().forEach(e=>{var o;let i=e.value===this.value;if(e.checked!==i&&(e.checked=i),!this.value&&this.required?y(e,"aria-invalid","true"):v(e,"aria-invalid"),this.hasRadioButtons||this.hasRadioCards){let n=e,h=(o=this.readonlyRadioButtonValue.get(this.value))!=null?o:n.readonly;n.readonly!==h&&(n.readonly=h)}}),this.updateTabIndexes(),this.formControlController.setValidity(this.validity.valid)}getDescriptionIds(){let t=[];return this.error&&(t=["error-text"]),t=[...t,"help-text","description"],t.join(" ")}updateTabIndexes(){let t=this.getAllRadios(),e=t.findIndex(o=>!o.disabled&&(!o.readonly||o.checked)),i=this.value!==""&&t.some(o=>o.value===this.value);t.forEach((o,n)=>{if(this.disabled){o.tabIndex=-1;return}let h=o.checked&&!o.disabled||!i&&n===e&&!this.readonly;if(this.hasRadioButtons||this.hasRadioCards){let u=o;customElements.whenDefined(this.hasRadioButtons?"dsa-radio-button":"dsa-radio-card").then(()=>{let r=h?0:-1;u.button.tabIndex!==r&&(u.button.tabIndex=r)})}else{let u=h?0:-1;o.tabIndex!==u&&(o.tabIndex=u)}})}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}handleErrorChange(){this.getAllRadios().forEach(t=>{t.error!==this.error&&(t.error=this.error)})}handleDisabledChange(){this.getAllRadios().forEach(t=>{t.parentDisabled!==this.disabled&&(t.parentDisabled=this.disabled)})}handleReadonlyChange(){this.getAllRadios().forEach(t=>{t.parentReadonly!==this.readonly&&(t.parentReadonly=this.readonly)}),this.updateTabIndexes()}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.error=!1,this.customValidityError=this.customValidityMessage!==""?this.customValidityMessage:t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){let e=this.getAllRadios(),i=e.find(h=>h.checked),o=e.find(h=>!h.disabled),n=i||o;n&&n.focus(t)}render(){let t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,o=this.helpText?!0:!!e;return i||b("<dsa-radio-group> requires a label attribute or a label slot for accessibility"),this.error&&!this.errorMessage&&b("<dsa-radio-group> requires an error-message attribute for accessibility when the error attribute is set"),c`
|
|
2
|
-
<fieldset
|
|
3
|
-
part="form-control"
|
|
4
|
-
class=${R({"form-control":!0,"form-control--error":this.error,"form-control--medium":!0,"form-control--radio-group":!0,"form-control--has-label":i,"form-control--has-help-text":o,"form-control--has-buttons":this.hasRadioButtons,"form-control--has-cards":this.hasRadioCards,"form-control--options-horizontal":!!this.horizontal})}
|
|
5
|
-
role="radiogroup"
|
|
6
|
-
aria-labelledby="label ${this.getDescriptionIds()}"
|
|
7
|
-
aria-invalid=${this.error}
|
|
8
|
-
>
|
|
9
|
-
${this.hideLabel?c`<dsa-visually-hidden id="label"
|
|
10
|
-
><slot name="label">${this.label}</slot></dsa-visually-hidden
|
|
11
|
-
>`:c`
|
|
12
|
-
<span
|
|
13
|
-
part="form-control-label"
|
|
14
|
-
id="label"
|
|
15
|
-
class="form-control__label"
|
|
16
|
-
aria-hidden=${i?"false":"true"}
|
|
17
|
-
@click=${this.handleLabelClick}
|
|
18
|
-
>
|
|
19
|
-
${this.required?c`<span class="form-control__label-required">*</span>`:""}
|
|
20
|
-
<slot name="label">${this.label}</slot>
|
|
21
|
-
</span>
|
|
22
|
-
`}
|
|
23
|
-
|
|
24
|
-
<slot name="tooltip" class="form-control__tooltip"></slot>
|
|
25
|
-
|
|
26
|
-
<div
|
|
27
|
-
part="form-control-input"
|
|
28
|
-
class="form-control-input form-control__field"
|
|
29
|
-
>
|
|
30
|
-
<dsa-visually-hidden>
|
|
31
|
-
<label class="radio-group__validation">
|
|
32
|
-
<input
|
|
33
|
-
type="text"
|
|
34
|
-
class="radio-group__validation-input"
|
|
35
|
-
?required=${this.required}
|
|
36
|
-
tabindex="-1"
|
|
37
|
-
hidden
|
|
38
|
-
@invalid=${this.handleInvalid}
|
|
39
|
-
/>
|
|
40
|
-
</label>
|
|
41
|
-
</dsa-visually-hidden>
|
|
42
|
-
|
|
43
|
-
<slot
|
|
44
|
-
@click=${this.handleRadioClick}
|
|
45
|
-
@keydown=${this.handleKeyDown}
|
|
46
|
-
@slotchange=${this.handleSlotChange}
|
|
47
|
-
class="form-control__options"
|
|
48
|
-
></slot>
|
|
49
|
-
</div>
|
|
50
|
-
<slot
|
|
51
|
-
name="help-text"
|
|
52
|
-
part="form-control-help-text"
|
|
53
|
-
id="help-text"
|
|
54
|
-
class="form-control__help-text"
|
|
55
|
-
>
|
|
56
|
-
${this.helpText}
|
|
57
|
-
</slot>
|
|
58
|
-
|
|
59
|
-
${this.error?w(this.customValidityError!==""?this.customValidityError:this.errorMessage):""}
|
|
60
|
-
${this.description!==""?c`
|
|
61
|
-
<p id="description" class="form-control__description">
|
|
62
|
-
${this.description}
|
|
63
|
-
</p>
|
|
64
|
-
`:""}
|
|
65
|
-
</fieldset>
|
|
66
|
-
`}};a.styles=_,a.dependencies={"dsa-error-text":M,"dsa-visually-hidden":T},s([p("slot:not([name])")],a.prototype,"defaultSlot",2),s([p(".radio-group__validation-input")],a.prototype,"validationInput",2),s([f()],a.prototype,"hasRadioButtons",2),s([f()],a.prototype,"hasRadioCards",2),s([f()],a.prototype,"readonlyRadioButtonValue",2),s([f()],a.prototype,"defaultValue",2),s([l()],a.prototype,"label",2),s([l({attribute:"help-text"})],a.prototype,"helpText",2),s([l({attribute:"description"})],a.prototype,"description",2),s([l()],a.prototype,"name",2),s([l({reflect:!0})],a.prototype,"value",2),s([l({type:Boolean,reflect:!0})],a.prototype,"deselectable",2),s([l({reflect:!0})],a.prototype,"form",2),s([l({type:Boolean,reflect:!0})],a.prototype,"required",2),s([l({type:Boolean,reflect:!0})],a.prototype,"disabled",2),s([l({type:Boolean,reflect:!0})],a.prototype,"readonly",2),s([l({type:Boolean})],a.prototype,"horizontal",2),s([l({type:Boolean})],a.prototype,"error",2),s([l({attribute:"error-message",converter:{fromAttribute:t=>t?t.split("|"):"",toAttribute:t=>typeof t=="string"?t:t.join("|")}})],a.prototype,"errorMessage",2),s([l({type:Boolean,attribute:"hide-label"})],a.prototype,"hideLabel",2),s([m("value")],a.prototype,"handleValueChange",1),s([m("error")],a.prototype,"handleErrorChange",1),s([m("disabled")],a.prototype,"handleDisabledChange",1),s([m("readonly")],a.prototype,"handleReadonlyChange",1),a=s([C("dsa-radio-group")],a);export{a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as h}from"./chunk.JFKYL74D.js";import{a as r}from"./chunk.BWEPOOQP.js";import{a as l,b as a,f as d}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends d{constructor(){super(...arguments);this.attrOldValue=!1;this.charData=!1;this.charDataOldValue=!1;this.childList=!1;this.disabled=!1}connectedCallback(){super.connectedCallback(),this.handleMutation=this.handleMutation.bind(this),this.mutationObserver=new MutationObserver(this.handleMutation),this.disabled||this.startObserver()}disconnectedCallback(){this.stopObserver()}handleMutation(i){this.emit("dsa-mutation",{detail:{mutationList:i}})}startObserver(){let i=typeof this.attr=="string"&&this.attr.length>0,o=i&&this.attr!=="*"?this.attr.split(" "):void 0;try{this.mutationObserver.observe(this,{subtree:!0,childList:this.childList,attributes:i,attributeFilter:o,attributeOldValue:this.attrOldValue,characterData:this.charData,characterDataOldValue:this.charDataOldValue})}catch(u){}}stopObserver(){this.mutationObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}handleChange(){this.stopObserver(),this.startObserver()}render(){return s` <slot></slot> `}};t.styles=h,e([a({reflect:!0})],t.prototype,"attr",2),e([a({attribute:"attr-old-value",type:Boolean,reflect:!0})],t.prototype,"attrOldValue",2),e([a({attribute:"char-data",type:Boolean,reflect:!0})],t.prototype,"charData",2),e([a({attribute:"char-data-old-value",type:Boolean,reflect:!0})],t.prototype,"charDataOldValue",2),e([a({attribute:"child-list",type:Boolean,reflect:!0})],t.prototype,"childList",2),e([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([r("disabled")],t.prototype,"handleDisabledChange",1),e([r("attr",{waitUntilFirstUpdate:!0}),r("attrOldValue",{waitUntilFirstUpdate:!0}),r("charData",{waitUntilFirstUpdate:!0}),r("charDataOldValue",{waitUntilFirstUpdate:!0}),r("childList",{waitUntilFirstUpdate:!0})],t.prototype,"handleChange",1),t=e([l("dsa-mutation-observer")],t);export{t as a};
|