@ds-autonomie/web-components 2.17.0 → 2.19.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 +34 -0
- package/cdn/chunks/chunk.2EC2JS5U.js +60 -0
- package/cdn/chunks/{chunk.3G5TZAEL.js → chunk.2J6VNJAV.js} +2 -2
- package/cdn/chunks/chunk.2JTZGBMF.js +1 -0
- package/cdn/chunks/chunk.3D5VBTZM.js +6 -0
- package/cdn/chunks/chunk.3FMDB6AF.js +19 -0
- package/cdn/chunks/{chunk.SPZ3HJLD.js → chunk.3FYOZ6BI.js} +5 -5
- package/cdn/chunks/chunk.3URUFDPU.js +44 -0
- package/cdn/chunks/chunk.4A2SP2JA.js +68 -0
- package/cdn/chunks/{chunk.2RZZILUX.js → chunk.4IWXGSUM.js} +7 -7
- package/cdn/chunks/chunk.4NE2V6DW.js +9 -0
- package/cdn/chunks/chunk.4VP4RPNY.js +25 -0
- package/cdn/chunks/{chunk.QLA42ORC.js → chunk.535I3ZDX.js} +6 -6
- package/cdn/chunks/{chunk.ZPW2DSUP.js → chunk.5KCVCUSX.js} +1 -1
- package/cdn/chunks/{chunk.L7SDBPGB.js → chunk.5MXBS7CA.js} +1 -1
- package/cdn/chunks/chunk.5OGTGPR7.js +1 -0
- package/cdn/chunks/{chunk.S5TQGB4V.js → chunk.5PWPU25F.js} +1 -1
- package/cdn/chunks/{chunk.W25NCUPA.js → chunk.5V6ZBY2X.js} +7 -8
- package/cdn/chunks/{chunk.VE5CSYN4.js → chunk.67UP3FZD.js} +1 -1
- package/cdn/chunks/chunk.6HXGZFOB.js +68 -0
- package/cdn/chunks/{chunk.F5LRDLVV.js → chunk.77YRGKFQ.js} +1 -1
- package/cdn/chunks/{chunk.VO4NFG2W.js → chunk.7OMTHUFI.js} +1 -1
- package/cdn/chunks/{chunk.FHS54ZO7.js → chunk.7RWZ2YNR.js} +1 -1
- package/cdn/chunks/{chunk.N7EFYGZ6.js → chunk.7TKKYYU2.js} +13 -13
- package/cdn/chunks/{chunk.LFI7CMVX.js → chunk.7WZQFRLE.js} +1 -1
- package/cdn/chunks/chunk.7YNQVYS2.js +13 -0
- package/cdn/chunks/{chunk.D5S2YDML.js → chunk.7ZYAJWHQ.js} +1 -1
- package/cdn/chunks/{chunk.YXR5X3ZH.js → chunk.AB4OF3RS.js} +1 -1
- package/cdn/chunks/{chunk.CJZS4FSB.js → chunk.AGA6W4U2.js} +1 -1
- package/cdn/chunks/chunk.AGX2JVB6.js +1 -0
- package/cdn/chunks/{chunk.LSD5NIU2.js → chunk.AYT5ORA7.js} +1 -1
- package/cdn/chunks/{chunk.2MLSQPMY.js → chunk.AZVWRRFP.js} +1 -1
- package/cdn/chunks/{chunk.465G6RHI.js → chunk.BDRT5OOU.js} +1 -1
- package/cdn/chunks/{chunk.OTTGEQF6.js → chunk.BOCMAV5D.js} +1 -1
- package/cdn/chunks/{chunk.M2JVAL5G.js → chunk.BRP4WPSN.js} +5 -5
- package/cdn/chunks/{chunk.2S76L6WY.js → chunk.BXY7ZIT5.js} +5 -5
- package/cdn/chunks/{chunk.2DV64XU7.js → chunk.CCKFL63L.js} +1 -1
- package/cdn/chunks/{chunk.4HSGYXFW.js → chunk.CLIKZB5P.js} +8 -14
- package/cdn/chunks/chunk.CMPRHBFO.js +1 -0
- package/cdn/chunks/{chunk.QSJXNN7N.js → chunk.COMV5MJ5.js} +1 -1
- package/cdn/chunks/chunk.CWHPCCQQ.js +33 -0
- package/cdn/chunks/{chunk.LA5W25UC.js → chunk.CWT6MEMU.js} +1 -1
- package/cdn/chunks/{chunk.ILCY7FNR.js → chunk.DFIOQK4K.js} +1 -1
- package/cdn/chunks/chunk.DR6FOTG4.js +1 -0
- package/cdn/chunks/{chunk.A45JZ63N.js → chunk.DRNNBI43.js} +1 -1
- package/cdn/chunks/{chunk.V3N4CMN7.js → chunk.DY5MCIEV.js} +3 -3
- package/cdn/chunks/chunk.E2BYQFB7.js +11 -0
- package/cdn/chunks/{chunk.PZ6VFJYI.js → chunk.EAWHOXCM.js} +1 -1
- package/cdn/chunks/{chunk.ZPQE4HH4.js → chunk.EJ5DXQU3.js} +1 -9
- package/cdn/chunks/chunk.EZQSKUPG.js +20 -0
- package/cdn/chunks/{chunk.3HXQ2XPS.js → chunk.F4EQPWW4.js} +4 -4
- package/cdn/chunks/{chunk.A6MZKELV.js → chunk.F6YFQ3GB.js} +1 -2
- package/cdn/chunks/{chunk.MWGVWSH3.js → chunk.GDNVDKSZ.js} +2 -2
- package/cdn/chunks/chunk.GPW6JCHZ.js +13 -0
- package/cdn/chunks/{chunk.VE2TTZQA.js → chunk.GQ75QMJG.js} +12 -4
- package/cdn/chunks/{chunk.KC2NESXB.js → chunk.GVL377SN.js} +1 -1
- package/cdn/chunks/{chunk.JO6IBXF3.js → chunk.H6KRGKOT.js} +1 -1
- package/cdn/chunks/chunk.H7CICKO6.js +173 -0
- package/cdn/chunks/chunk.HEWKH2LT.js +44 -0
- package/cdn/chunks/{chunk.ZFWCNYR2.js → chunk.HGNNGE53.js} +1 -1
- package/cdn/chunks/chunk.HLG5HGVW.js +11 -0
- package/cdn/chunks/{chunk.2LF6OMUV.js → chunk.HW5UT2FF.js} +15 -15
- package/cdn/chunks/{chunk.NIH3WB32.js → chunk.IDTMD6WQ.js} +1 -1
- package/cdn/chunks/{chunk.GYURCDPD.js → chunk.IMDJ7GD2.js} +1 -1
- package/cdn/chunks/{chunk.3FHGJRJ3.js → chunk.IMVLXBHS.js} +9 -10
- package/cdn/chunks/{chunk.YRJIHG6T.js → chunk.IUOHXTHC.js} +1 -1
- package/cdn/chunks/{chunk.SLTCOGOD.js → chunk.IYPKQQOD.js} +1 -1
- package/cdn/chunks/chunk.J7MFL7JZ.js +11 -0
- package/cdn/chunks/{chunk.GEV6DKVB.js → chunk.JFLIH5L5.js} +2 -22
- package/cdn/chunks/{chunk.NEWNV55I.js → chunk.JFT7O46L.js} +1 -1
- package/cdn/chunks/chunk.JLB52ESL.js +130 -0
- package/cdn/chunks/chunk.KOU7YZ7Z.js +32 -0
- package/cdn/chunks/{chunk.3LUZLW6F.js → chunk.KSJJM4LY.js} +3 -3
- package/cdn/chunks/{chunk.YZK4IVQW.js → chunk.KTJAW66F.js} +1 -1
- package/cdn/chunks/{chunk.IKPDLLWM.js → chunk.KVPC6DC4.js} +1 -1
- package/cdn/chunks/{chunk.GHHMVWM2.js → chunk.KWBL3MII.js} +4 -4
- package/cdn/chunks/{chunk.YRQ4GUXM.js → chunk.KX5QV54N.js} +1 -1
- package/cdn/chunks/{chunk.GM4KTNXL.js → chunk.LBAIMDY3.js} +1 -1
- package/cdn/chunks/chunk.M7BLJVGV.js +28 -0
- package/cdn/chunks/chunk.MC7ZQO6Z.js +1 -0
- package/cdn/chunks/chunk.MN7GWB3J.js +66 -0
- package/cdn/chunks/{chunk.F3UE7567.js → chunk.MRVUEYXZ.js} +1 -1
- package/cdn/chunks/{chunk.LLKFUARE.js → chunk.OFITABL5.js} +10 -10
- package/cdn/chunks/{chunk.X4UXKXMO.js → chunk.PVV7WADS.js} +6 -6
- package/cdn/chunks/chunk.QEODND2O.js +8 -0
- package/cdn/chunks/chunk.QOIUR37X.js +1 -0
- package/cdn/chunks/chunk.QTD6NQFL.js +1 -0
- package/cdn/chunks/{chunk.FEXCFMDC.js → chunk.RMI7CBAO.js} +5 -5
- package/cdn/chunks/{chunk.AAEIE3M2.js → chunk.RNR6P3VA.js} +3 -4
- package/cdn/chunks/{chunk.QQLTDM2A.js → chunk.RTVNV4IL.js} +1 -1
- package/cdn/chunks/{chunk.ZKV4BJLY.js → chunk.S4UDOENW.js} +3 -3
- package/cdn/chunks/{chunk.UAGWSEWC.js → chunk.STCKZYIM.js} +6 -6
- package/cdn/chunks/chunk.THWI644G.js +54 -0
- package/cdn/chunks/{chunk.23NGYECZ.js → chunk.TPKY6SO3.js} +1 -1
- package/cdn/chunks/chunk.U6OE2WNY.js +51 -0
- package/cdn/chunks/{chunk.J5EBYKBM.js → chunk.UXV7IG5J.js} +1 -1
- package/cdn/chunks/{chunk.NE525Q3J.js → chunk.VMY3LI3D.js} +8 -8
- package/cdn/chunks/{chunk.PSXSWQCS.js → chunk.VOJKFSPN.js} +1 -1
- package/cdn/chunks/{chunk.H5XLHNHE.js → chunk.VVOUCVXZ.js} +1 -1
- package/cdn/chunks/{chunk.UWBADC7U.js → chunk.WMOV27WV.js} +5 -2
- package/cdn/chunks/chunk.WQIMDJJX.js +101 -0
- package/cdn/chunks/{chunk.OTNGFYHL.js → chunk.WWRGGVFZ.js} +1 -1
- package/cdn/chunks/{chunk.HO6LFH7Z.js → chunk.WXQKHJC3.js} +1 -1
- package/cdn/chunks/chunk.YBVIKP5F.js +41 -0
- package/cdn/chunks/chunk.YDZQVGSP.js +47 -0
- package/cdn/chunks/{chunk.D3BOAL4N.js → chunk.YWOAIOEZ.js} +1 -1
- package/cdn/chunks/chunk.YZO4H6DD.js +57 -0
- package/cdn/chunks/chunk.Z226LHQY.js +64 -0
- package/cdn/chunks/{chunk.2QOKOUSD.js → chunk.ZMEW7RFS.js} +1 -1
- package/cdn/components/accordion/accordion.js +1 -1
- package/cdn/components/accordion-group/accordion-group.js +1 -1
- package/cdn/components/alert/alert.js +1 -1
- package/cdn/components/breadcrumb/breadcrumb.js +1 -1
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/calendar/calendar.js +1 -1
- package/cdn/components/card-nav-accordion/card-nav-accordion.js +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/checkbox/checkbox.styles.js +1 -1
- package/cdn/components/checkbox-button/checkbox-button.js +1 -1
- package/cdn/components/checkbox-card/checkbox-card.js +1 -1
- package/cdn/components/checkbox-group/checkbox-group.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/combobox/combobox.styles.js +1 -1
- package/cdn/components/copy-button/copy-button.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/error-message-panel/error-message-panel.js +1 -1
- package/cdn/components/file-upload/file-upload.js +1 -1
- package/cdn/components/filter-button/filter-button.js +1 -1
- package/cdn/components/filter-counter/filter-counter.js +1 -1
- package/cdn/components/filter-date/filter-date.js +1 -1
- package/cdn/components/filter-range/filter-range.js +1 -1
- package/cdn/components/filter-select/filter-select.js +1 -1
- package/cdn/components/footer/footer.js +1 -1
- package/cdn/components/format-bytes/format-bytes.js +1 -1
- package/cdn/components/format-date/format-date.js +1 -1
- package/cdn/components/format-number/format-number.js +1 -1
- package/cdn/components/header/header.d.ts +1 -0
- 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.d.ts +1 -0
- package/cdn/components/header-modern/header-modern.js +1 -1
- package/cdn/components/header-search/header-search.d.ts +2 -0
- package/cdn/components/header-search/header-search.js +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/input-amount/input-amount.js +1 -1
- package/cdn/components/input-date/input-date.d.ts +3 -0
- package/cdn/components/input-date/input-date.js +1 -1
- package/cdn/components/input-mask/input-mask.js +1 -1
- package/cdn/components/input-native/input-native.js +1 -1
- package/cdn/components/input-phone/input-phone.js +1 -1
- package/cdn/components/input-time/input-time.js +1 -1
- package/cdn/components/menu-accordion/menu-accordion.js +1 -1
- package/cdn/components/menu-item/menu-item.js +1 -1
- package/cdn/components/menu-navigation/menu-navigation.d.ts +0 -4
- package/cdn/components/menu-navigation/menu-navigation.js +1 -1
- package/cdn/components/navbar/navbar.d.ts +0 -4
- package/cdn/components/navbar/navbar.js +1 -1
- package/cdn/components/navbar-link/navbar-link.js +1 -1
- package/cdn/components/navbar-menu/navbar-menu.js +1 -1
- package/cdn/components/option/option.d.ts +2 -0
- package/cdn/components/option/option.js +1 -1
- package/cdn/components/option/option.styles.js +1 -1
- package/cdn/components/pagination/pagination.js +1 -1
- package/cdn/components/profile-button/profile-button.js +1 -1
- package/cdn/components/progress-bar/progress-bar.js +1 -1
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio/radio.styles.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/relative-time/relative-time.js +1 -1
- package/cdn/components/search/search.js +1 -1
- package/cdn/components/search/search.styles.js +1 -1
- package/cdn/components/select/select.d.ts +3 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/select/select.styles.js +1 -1
- package/cdn/components/sidenav/sidenav.d.ts +4 -1
- package/cdn/components/sidenav/sidenav.js +1 -1
- package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
- package/cdn/components/skip-link-item/skip-link-item.js +1 -1
- package/cdn/components/skip-links/skip-links.js +1 -1
- package/cdn/components/spinner/spinner.js +1 -1
- package/cdn/components/split-panel/split-panel.js +1 -1
- package/cdn/components/step/step.js +1 -1
- package/cdn/components/step/step.styles.js +1 -1
- package/cdn/components/stepper/stepper.d.ts +4 -1
- package/cdn/components/stepper/stepper.js +1 -1
- package/cdn/components/switch/switch.js +1 -1
- package/cdn/components/switch/switch.styles.js +1 -1
- package/cdn/components/tab/tab.d.ts +3 -0
- package/cdn/components/tab/tab.js +1 -1
- package/cdn/components/tab/tab.styles.js +1 -1
- package/cdn/components/tab-group/tab-group.d.ts +1 -0
- package/cdn/components/tab-group/tab-group.js +1 -1
- package/cdn/components/tab-group/tab-group.styles.js +1 -1
- package/cdn/components/tab-panel/tab-panel.js +1 -1
- package/cdn/components/table/table.d.ts +29 -0
- package/cdn/components/table/table.js +1 -1
- package/cdn/components/table-action/table-action.js +1 -1
- package/cdn/components/table-action/table-action.styles.js +1 -1
- package/cdn/components/table-body/table-body.js +1 -1
- package/cdn/components/table-caption/table-caption.js +1 -1
- package/cdn/components/table-caption/table-caption.styles.js +1 -1
- package/cdn/components/table-container/table-container.d.ts +2 -0
- package/cdn/components/table-container/table-container.js +1 -1
- package/cdn/components/table-container/table-container.styles.js +1 -1
- package/cdn/components/table-expanded-row/table-expanded-row.d.ts +1 -1
- package/cdn/components/table-head/table-head.js +1 -1
- package/cdn/components/table-header-cell/table-header-cell.js +1 -1
- package/cdn/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/cdn/components/table-header-row/table-header-row.d.ts +2 -0
- package/cdn/components/table-header-row/table-header-row.js +1 -1
- package/cdn/components/table-header-row/table-header-row.styles.js +1 -1
- package/cdn/components/table-of-contents/table-of-contents.d.ts +4 -5
- package/cdn/components/table-of-contents/table-of-contents.js +1 -1
- package/cdn/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/cdn/components/table-row/table-row-base.styles.d.ts +2 -0
- package/cdn/components/table-row/table-row-base.styles.js +1 -0
- package/cdn/components/table-row/table-row.d.ts +22 -0
- package/cdn/components/table-row/table-row.js +1 -1
- package/cdn/components/table-row/table-row.styles.js +1 -1
- package/cdn/components/table-toolbar/table-toolbar.js +1 -1
- package/cdn/components/table-toolbar/table-toolbar.styles.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/components/tree/tree.d.ts +4 -4
- package/cdn/components/tree/tree.js +1 -1
- 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 +1058 -122
- package/cdn/design-system.js +1 -1
- package/cdn/events/dsa-table-row-reordered.d.ts +14 -0
- package/cdn/events/dsa-table-row-reordered.js +1 -0
- package/cdn/events/events.d.ts +1 -0
- package/cdn/internal/components/date-field/date-field.styles.js +2 -2
- package/cdn/internal/components/form-selectable-card/form-selectable-card.js +3 -2
- package/cdn/internal/components/form-selectable-card/form-selectable-card.styles.js +4 -4
- package/cdn/internal/components/form-toggle-button/form-toggle-button.js +3 -2
- package/cdn/internal/components/form-toggle-button/form-toggle-button.styles.js +2 -2
- package/cdn/themes/dsa-wc-theme.css +20 -45
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +20 -46
- package/cdn/translations/en-gb.js +1 -1
- package/cdn/translations/en.js +1 -1
- package/cdn/translations/fr.js +1 -1
- package/cdn/utilities/helpers.d.ts +2 -0
- package/cdn/utilities/helpers.js +1 -1
- package/cdn/utilities/localize.d.ts +2 -0
- package/cdn/utilities/localize.js +1 -1
- package/cdn/utilities/storybook.js +1 -1
- package/cdn/vscode.html-custom-data.json +60 -10
- package/cdn/web-types.json +537 -49
- package/dist/chunks/{chunk.TNZEC73D.js → chunk.2AMILV3O.js} +1 -1
- package/dist/chunks/{chunk.TZZRAR42.js → chunk.2GJ46J7Q.js} +1 -1
- package/dist/chunks/{chunk.C6UENJ2Y.js → chunk.2WW7OJZT.js} +1 -1
- package/dist/chunks/{chunk.3W6ROVW2.js → chunk.33P7XYHC.js} +32 -4
- package/dist/chunks/{chunk.WHHYA5VY.js → chunk.34HS7ICN.js} +4 -0
- package/dist/chunks/{chunk.SLXERY4H.js → chunk.4535HZ7L.js} +8 -4
- package/dist/chunks/{chunk.MGW4E3VW.js → chunk.47AQXN3U.js} +2 -2
- package/dist/chunks/{chunk.EXHYWKQB.js → chunk.4E2FKC3C.js} +1 -1
- package/dist/chunks/{chunk.MPV4OPIK.js → chunk.4K6WZ7K7.js} +9 -3
- package/dist/chunks/{chunk.2VZ4MMR5.js → chunk.4NY2E4AU.js} +14 -5
- package/dist/chunks/{chunk.X6SEIMM4.js → chunk.4VSGAJJL.js} +2 -2
- package/dist/chunks/{chunk.ANV74452.js → chunk.5R7OHVIP.js} +3 -3
- package/dist/chunks/{chunk.NMU6DWUH.js → chunk.5SH25FOL.js} +27 -6
- package/dist/chunks/{chunk.EXGB2DIR.js → chunk.5TBGCNJD.js} +46 -25
- package/dist/chunks/{chunk.TRVKPMDO.js → chunk.6BCJJGLC.js} +1 -1
- package/dist/chunks/{chunk.OKTHM7J2.js → chunk.6RXEQKWZ.js} +15 -45
- package/dist/chunks/{chunk.P2KNRWE5.js → chunk.72FKNFBS.js} +1 -1
- package/dist/chunks/{chunk.FF67XKLP.js → chunk.75USPA7U.js} +26 -18
- package/dist/chunks/{chunk.V5GAH4HU.js → chunk.7BBNETYY.js} +3 -3
- package/dist/chunks/{chunk.AFSUKPIV.js → chunk.7MY3WW7C.js} +5 -3
- package/dist/chunks/{chunk.BTEEMPDS.js → chunk.A42VA6HE.js} +8 -4
- package/dist/chunks/{chunk.73XRFTV7.js → chunk.B3QEXOQE.js} +2 -1
- package/dist/chunks/{chunk.ANOLAL4B.js → chunk.BUGXYS34.js} +1 -1
- package/dist/chunks/chunk.D5YUY5BG.js +608 -0
- package/dist/chunks/{chunk.5A6XLOZY.js → chunk.DN3K2GHZ.js} +1 -1
- package/dist/chunks/{chunk.SN5JW345.js → chunk.E6D32GY2.js} +20 -8
- package/dist/chunks/{chunk.TP5XEQ2O.js → chunk.ELOLGOFM.js} +1 -1
- package/dist/chunks/{chunk.M5X6QE4H.js → chunk.ERMNNF77.js} +1 -1
- package/dist/chunks/{chunk.ORFYYGB2.js → chunk.FBY2IM6R.js} +3 -3
- package/dist/chunks/{chunk.N2SYQR7M.js → chunk.FLI47BNN.js} +1 -1
- package/dist/chunks/{chunk.3WHBR6ML.js → chunk.FLRNIL37.js} +1 -1
- package/dist/chunks/chunk.FOZRSNGL.js +111 -0
- package/dist/chunks/{chunk.OAJEHJJO.js → chunk.FZFK3D6L.js} +1 -1
- package/dist/chunks/{chunk.CABJDFOO.js → chunk.GMHRN23H.js} +6 -6
- package/dist/chunks/{chunk.ZBTNV3E7.js → chunk.GSSDOCVR.js} +42 -14
- package/dist/chunks/{chunk.LQAWGV5K.js → chunk.GTO6NACR.js} +1 -1
- package/dist/chunks/{chunk.WRFA56CD.js → chunk.H26XMOUA.js} +1 -1
- package/dist/chunks/{chunk.LPQTWKYW.js → chunk.HKP752UH.js} +2 -1
- package/dist/chunks/{chunk.3RFVW3FP.js → chunk.HRZVG552.js} +2 -2
- package/dist/chunks/{chunk.PEWNJNAP.js → chunk.HYAC2WLH.js} +1 -1
- package/dist/chunks/{chunk.5FNJFIAP.js → chunk.IDBAIF3R.js} +8 -8
- package/dist/chunks/{chunk.DT6Y5ZUB.js → chunk.IMZ2EJ3J.js} +2 -2
- package/dist/chunks/{chunk.VA2ASBUR.js → chunk.JATRBE3H.js} +7 -7
- package/dist/chunks/{chunk.XGZ4IJ57.js → chunk.JTPMSU67.js} +51 -33
- package/dist/chunks/{chunk.JUOYMIGK.js → chunk.KD27MP6C.js} +5 -2
- package/dist/chunks/{chunk.5NUD3TZO.js → chunk.KD5YM72X.js} +12 -4
- package/dist/chunks/{chunk.A6WS4GML.js → chunk.KPVDLRVV.js} +2 -2
- package/dist/chunks/{chunk.QOW4B54V.js → chunk.KW762SFE.js} +8 -19
- package/dist/chunks/chunk.LH65ZIEN.js +412 -0
- package/dist/chunks/{chunk.7NJP4D2X.js → chunk.LLOSO7FC.js} +5 -5
- package/dist/chunks/{chunk.ZJEACN47.js → chunk.LT44CVRV.js} +1 -1
- package/dist/chunks/{chunk.6K3AZQXP.js → chunk.LYVWDO7O.js} +1 -1
- package/dist/chunks/{chunk.6JFNUOJL.js → chunk.M47KXEXM.js} +1 -1
- package/dist/chunks/{chunk.MXQ5RSBS.js → chunk.MDQDWJCR.js} +1 -2
- package/dist/chunks/{chunk.QBVIZ55Q.js → chunk.POR4SJ2I.js} +5 -5
- package/dist/chunks/{chunk.PGXKP7ME.js → chunk.PSWGNIVT.js} +18 -6
- package/dist/chunks/{chunk.FLRB45SF.js → chunk.PSYTLBRK.js} +12 -0
- package/dist/chunks/{chunk.2LWUWDHO.js → chunk.Q3SL7AWD.js} +3 -3
- package/dist/chunks/{chunk.AECIJYFZ.js → chunk.Q4BEX42U.js} +49 -33
- package/dist/chunks/{chunk.HPAWBSR5.js → chunk.Q7YCE4UA.js} +1 -1
- package/dist/chunks/{chunk.ABJLUGLR.js → chunk.QKUUHXNR.js} +65 -25
- package/dist/chunks/{chunk.VBUVNNMA.js → chunk.QUEYKUIS.js} +4 -4
- package/dist/chunks/{chunk.XJCHW2GZ.js → chunk.RG7MUNLM.js} +27 -17
- package/dist/chunks/{chunk.6NRREKDF.js → chunk.RK2WN36C.js} +1 -1
- package/dist/chunks/{chunk.ZZ67C4V2.js → chunk.RZRBWZ7K.js} +14 -5
- package/dist/chunks/{chunk.QZC7F7NX.js → chunk.SAKI57GG.js} +2 -2
- package/dist/chunks/{chunk.H7L4YNKB.js → chunk.SAQFLKP7.js} +40 -16
- package/dist/chunks/{chunk.UKH2D4DL.js → chunk.SGPAUD26.js} +32 -14
- package/dist/chunks/{chunk.7WQZIM7N.js → chunk.SGRSRDWP.js} +17 -9
- package/dist/chunks/{chunk.57DTA5ZP.js → chunk.SP2SVH7K.js} +3 -3
- package/dist/chunks/{chunk.UNDVQ2N3.js → chunk.SXFVCR7O.js} +2 -2
- package/dist/chunks/{chunk.2O3KAV2X.js → chunk.T6OAGTAP.js} +2 -2
- package/dist/chunks/{chunk.BO3GUSFS.js → chunk.TCW77JY3.js} +1 -1
- package/dist/chunks/{chunk.IAJLX5AF.js → chunk.TPO64PVN.js} +11 -5
- package/dist/chunks/{chunk.XDW2FM6B.js → chunk.TURUUPFG.js} +3 -3
- package/dist/chunks/{chunk.ZQ56PQ6F.js → chunk.U4W57NV6.js} +6 -3
- package/dist/chunks/{chunk.DMSUKPJE.js → chunk.UESIZCBP.js} +1 -1
- package/dist/chunks/{chunk.LZOGVU7B.js → chunk.UQ7ZIOBO.js} +1 -1
- package/dist/chunks/{chunk.SGKW2DOH.js → chunk.UXJPFBV5.js} +3 -3
- package/dist/chunks/{chunk.2K5QPKBA.js → chunk.V26NK6TM.js} +5 -4
- package/dist/chunks/{chunk.APWZSSG6.js → chunk.V2HQ7IVJ.js} +1 -1
- package/dist/chunks/{chunk.VHSA53PH.js → chunk.V3LWOWUB.js} +1 -1
- package/dist/chunks/{chunk.WDPZ4NSH.js → chunk.V4SDZV6L.js} +1 -1
- package/dist/chunks/{chunk.DC6KKJOX.js → chunk.VJMPU2K5.js} +65 -33
- package/dist/chunks/{chunk.HFTU6LUQ.js → chunk.VNGKMC5T.js} +1 -1
- package/dist/chunks/chunk.VO73SGIU.js +23 -0
- package/dist/chunks/{chunk.FQZVV2TO.js → chunk.VOKBXFKF.js} +8 -4
- package/dist/chunks/{chunk.2SQ6UBOQ.js → chunk.VPBDM3F2.js} +11 -4
- package/dist/chunks/{chunk.LZPAAWTZ.js → chunk.VPZ2H23V.js} +0 -20
- package/dist/chunks/{chunk.MXDGKTTH.js → chunk.VYX5ZSFI.js} +5 -5
- package/dist/chunks/{chunk.ACM36IFE.js → chunk.WAEFCPAX.js} +6 -6
- package/dist/chunks/{chunk.UHSLPBTG.js → chunk.WEPA3NJG.js} +1 -1
- package/dist/chunks/{chunk.JEWVIFAO.js → chunk.WJU4UHF5.js} +4 -1
- package/dist/chunks/{chunk.UEVTKGMG.js → chunk.WO56WJXU.js} +1 -9
- package/dist/chunks/{chunk.O3SPGNIU.js → chunk.WSQ2ZYD4.js} +9 -5
- package/dist/chunks/{chunk.LAPA4KOO.js → chunk.WYLT5ZNJ.js} +2 -2
- package/dist/chunks/{chunk.4NZ25HB6.js → chunk.XAYOMJ4X.js} +27 -17
- package/dist/chunks/{chunk.SOF3BQCV.js → chunk.XMBQRPGX.js} +10 -6
- package/dist/chunks/{chunk.YC2VYNCD.js → chunk.XTVVSORU.js} +1 -1
- package/dist/chunks/{chunk.6RDA3XLH.js → chunk.YF2V46J3.js} +9 -10
- package/dist/chunks/{chunk.HHVXZJUU.js → chunk.YI6BUIUL.js} +35 -4
- package/dist/chunks/{chunk.OW6RUTZA.js → chunk.YS4HYV3F.js} +3 -3
- package/dist/chunks/{chunk.FB4KLQQL.js → chunk.YYKAI7FO.js} +6 -12
- package/dist/chunks/{chunk.VKBTTWXW.js → chunk.ZFGRB56M.js} +94 -38
- package/dist/chunks/chunk.ZHPIA4F4.js +43 -0
- package/dist/chunks/{chunk.HBYJN6RA.js → chunk.ZS3JNRJE.js} +2 -2
- package/dist/chunks/{chunk.NCN4I6KX.js → chunk.ZYGCOBUE.js} +6 -6
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/accordion-group/accordion-group.js +4 -4
- package/dist/components/alert/alert.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/button/button.js +3 -3
- package/dist/components/calendar/calendar.js +2 -2
- package/dist/components/card-nav-accordion/card-nav-accordion.js +2 -2
- package/dist/components/checkbox/checkbox.js +4 -3
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/checkbox-button/checkbox-button.js +4 -3
- package/dist/components/checkbox-card/checkbox-card.js +3 -2
- package/dist/components/checkbox-group/checkbox-group.js +1 -1
- package/dist/components/combobox/combobox.js +9 -9
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/copy-button/copy-button.js +3 -3
- package/dist/components/dialog/dialog.js +2 -2
- package/dist/components/drawer/drawer.js +2 -2
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +2 -2
- package/dist/components/file-upload/file-upload.js +3 -3
- package/dist/components/filter-button/filter-button.js +2 -2
- package/dist/components/filter-counter/filter-counter.js +13 -13
- package/dist/components/filter-date/filter-date.js +8 -8
- package/dist/components/filter-range/filter-range.js +13 -13
- package/dist/components/filter-select/filter-select.js +16 -16
- package/dist/components/footer/footer.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/header/header.d.ts +1 -0
- package/dist/components/header/header.js +3 -2
- package/dist/components/header-external-link/header-external-link.js +2 -1
- package/dist/components/header-modern/header-modern.d.ts +1 -0
- package/dist/components/header-modern/header-modern.js +3 -2
- package/dist/components/header-search/header-search.d.ts +2 -0
- package/dist/components/header-search/header-search.js +6 -6
- package/dist/components/input/input.js +8 -8
- package/dist/components/input-amount/input-amount.js +2 -2
- package/dist/components/input-date/input-date.d.ts +3 -0
- package/dist/components/input-date/input-date.js +4 -4
- package/dist/components/input-mask/input-mask.js +2 -2
- package/dist/components/input-native/input-native.js +2 -2
- package/dist/components/input-phone/input-phone.js +9 -8
- package/dist/components/input-time/input-time.js +2 -2
- package/dist/components/menu-accordion/menu-accordion.js +3 -3
- package/dist/components/menu-item/menu-item.js +3 -3
- package/dist/components/menu-navigation/menu-navigation.d.ts +0 -4
- package/dist/components/menu-navigation/menu-navigation.js +4 -4
- package/dist/components/navbar/navbar.d.ts +0 -4
- package/dist/components/navbar-link/navbar-link.js +4 -4
- package/dist/components/navbar-menu/navbar-menu.js +2 -2
- package/dist/components/option/option.d.ts +2 -0
- package/dist/components/option/option.js +4 -3
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/pagination/pagination.js +9 -9
- package/dist/components/profile-button/profile-button.js +3 -3
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/radio/radio.js +3 -2
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.js +4 -3
- package/dist/components/radio-card/radio-card.js +4 -3
- package/dist/components/radio-group/radio-group.js +2 -1
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/search/search.js +3 -3
- package/dist/components/search/search.styles.js +1 -1
- package/dist/components/select/select.d.ts +3 -1
- package/dist/components/select/select.js +5 -5
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/sidenav/sidenav.d.ts +4 -1
- package/dist/components/sidenav/sidenav.js +4 -4
- package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +4 -4
- package/dist/components/skip-link-item/skip-link-item.js +2 -1
- package/dist/components/skip-links/skip-links.js +2 -2
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/split-panel/split-panel.js +2 -2
- package/dist/components/step/step.js +4 -3
- package/dist/components/step/step.styles.js +1 -1
- package/dist/components/stepper/stepper.d.ts +4 -1
- package/dist/components/stepper/stepper.js +1 -1
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.d.ts +3 -0
- package/dist/components/tab/tab.js +4 -3
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.d.ts +1 -0
- package/dist/components/tab-group/tab-group.js +4 -3
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.js +2 -1
- package/dist/components/table/table.d.ts +29 -0
- package/dist/components/table/table.js +2 -1
- package/dist/components/table-action/table-action.js +5 -5
- package/dist/components/table-action/table-action.styles.js +1 -1
- package/dist/components/table-body/table-body.js +3 -2
- package/dist/components/table-caption/table-caption.js +3 -3
- package/dist/components/table-caption/table-caption.styles.js +1 -1
- package/dist/components/table-container/table-container.d.ts +2 -0
- package/dist/components/table-container/table-container.js +4 -3
- package/dist/components/table-container/table-container.styles.js +1 -1
- package/dist/components/table-expanded-row/table-expanded-row.d.ts +1 -1
- package/dist/components/table-head/table-head.js +3 -2
- package/dist/components/table-header-cell/table-header-cell.js +2 -2
- package/dist/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/dist/components/table-header-row/table-header-row.d.ts +2 -0
- package/dist/components/table-header-row/table-header-row.js +12 -10
- package/dist/components/table-header-row/table-header-row.styles.js +2 -1
- package/dist/components/table-of-contents/table-of-contents.d.ts +4 -5
- package/dist/components/table-of-contents/table-of-contents.js +3 -3
- package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/dist/components/table-row/table-row-base.styles.d.ts +2 -0
- package/dist/components/table-row/table-row-base.styles.js +8 -0
- package/dist/components/table-row/table-row.d.ts +22 -0
- package/dist/components/table-row/table-row.js +13 -6
- package/dist/components/table-row/table-row.styles.js +2 -1
- package/dist/components/table-toolbar/table-toolbar.js +2 -2
- package/dist/components/table-toolbar/table-toolbar.styles.js +1 -1
- package/dist/components/tag/tag.js +3 -3
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.d.ts +4 -4
- package/dist/components/tree/tree.js +9 -8
- package/dist/components/tree-item/tree-item.js +8 -7
- package/dist/components/tree-item/tree-item.styles.js +1 -1
- package/dist/custom-elements.json +1058 -122
- package/dist/design-system.js +110 -109
- package/dist/events/dsa-table-row-reordered.d.ts +14 -0
- package/dist/events/dsa-table-row-reordered.js +1 -0
- package/dist/events/events.d.ts +1 -0
- package/dist/internal/components/date-field/date-field.styles.js +2 -2
- package/dist/internal/components/form-selectable-card/form-selectable-card.js +3 -2
- package/dist/internal/components/form-selectable-card/form-selectable-card.styles.js +4 -4
- package/dist/internal/components/form-toggle-button/form-toggle-button.js +3 -2
- package/dist/internal/components/form-toggle-button/form-toggle-button.styles.js +2 -2
- package/dist/themes/dsa-wc-theme.css +20 -45
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +20 -46
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/utilities/helpers.d.ts +2 -0
- package/dist/utilities/helpers.js +7 -3
- package/dist/utilities/localize.d.ts +2 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/utilities/storybook.js +2 -2
- package/dist/vscode.html-custom-data.json +60 -10
- package/dist/web-types.json +537 -49
- package/package.json +1 -1
- package/cdn/chunks/chunk.2PN56GC6.js +0 -1
- package/cdn/chunks/chunk.2UUQJVQI.js +0 -1
- package/cdn/chunks/chunk.4RIUPE2O.js +0 -1
- package/cdn/chunks/chunk.63QVJAPP.js +0 -11
- package/cdn/chunks/chunk.6GAHBGOF.js +0 -47
- package/cdn/chunks/chunk.6TFK3HZG.js +0 -43
- package/cdn/chunks/chunk.ABNF7OWB.js +0 -11
- package/cdn/chunks/chunk.ADTGGBWH.js +0 -72
- package/cdn/chunks/chunk.AEBG7WOW.js +0 -20
- package/cdn/chunks/chunk.AKVKEBPE.js +0 -13
- package/cdn/chunks/chunk.BXV6H4J7.js +0 -1
- package/cdn/chunks/chunk.CBNY3KDR.js +0 -60
- package/cdn/chunks/chunk.DYSLQ6GC.js +0 -68
- package/cdn/chunks/chunk.EL4NZRIR.js +0 -26
- package/cdn/chunks/chunk.FGDBYD7N.js +0 -41
- package/cdn/chunks/chunk.GGGLGLGP.js +0 -38
- package/cdn/chunks/chunk.IJNUBDIJ.js +0 -1
- package/cdn/chunks/chunk.IOIBAXOU.js +0 -9
- package/cdn/chunks/chunk.IYKXS5B3.js +0 -66
- package/cdn/chunks/chunk.JNOQLPCE.js +0 -8
- package/cdn/chunks/chunk.JZMIS7DF.js +0 -7
- package/cdn/chunks/chunk.K6YUVAOE.js +0 -6
- package/cdn/chunks/chunk.LIYDVH7Q.js +0 -48
- package/cdn/chunks/chunk.MQFH5TMZ.js +0 -1
- package/cdn/chunks/chunk.N4VN25E6.js +0 -44
- package/cdn/chunks/chunk.QNAPY67H.js +0 -73
- package/cdn/chunks/chunk.QO3O2UNB.js +0 -68
- package/cdn/chunks/chunk.QVF2D4NC.js +0 -1
- package/cdn/chunks/chunk.RVQUT7ZY.js +0 -26
- package/cdn/chunks/chunk.SIT3GCR7.js +0 -173
- package/cdn/chunks/chunk.TFJB3OT3.js +0 -19
- package/cdn/chunks/chunk.UEYALIC7.js +0 -25
- package/cdn/chunks/chunk.W7AY6BP2.js +0 -130
- package/cdn/chunks/chunk.W7S553SV.js +0 -50
- package/cdn/chunks/chunk.WJLFKSRJ.js +0 -51
- package/cdn/chunks/chunk.X2G2BFIN.js +0 -1
- package/dist/chunks/chunk.7S4HUOC7.js +0 -206
- package/dist/chunks/chunk.GI3JNOHH.js +0 -58
- package/dist/chunks/chunk.HALYTFYA.js +0 -282
- package/dist/chunks/chunk.SHNAUO5J.js +0 -82
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import{a as I}from"./chunk.JPOWE7L2.js";import{a as M}from"./chunk.S2RTEOQU.js";import{a as B}from"./chunk.PIG773U2.js";import{a as x}from"./chunk.NJBAMERR.js";import{a as k}from"./chunk.SWEIVB73.js";import{a as g}from"./chunk.ELL45QD3.js";import{b as C,c as R,d as V,e as E}from"./chunk.FWTZS7LK.js";import{a as p}from"./chunk.B4KFHYLS.js";import{d as y}from"./chunk.ZBHHLRFH.js";import{a as m}from"./chunk.BWEPOOQP.js";import{a as b,b as l,c,d as f,f as v}from"./chunk.KBZ32KWP.js";import{a as u}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var a=class extends v{constructor(){super(...arguments);this.formControlController=new C(this);this.hasSlotController=new g(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!==""?E:t?V:R}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 o=this.getAllRadios(),s=this.value;e.value!==s?(this.value=e.value,this.updateCheckedRadio()):this.deselectable&&(this.value="",o.forEach(d=>{d.checked=!1})),this.value!==s&&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().filter(n=>!this.disabled&&!n.disabled&&(!n.readonly||n.checked)),o=e.length,s=e.findIndex(n=>n.matches(":focus")),d=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,h=this.value,r=s+d;if(r=M(r,o),this.getAllRadios().forEach(n=>{n.checked=!1,this.hasRadioButtons||this.hasRadioCards?n.button.tabIndex=-1:n.tabIndex=-1}),d===0?(e[r].checked=this.deselectable?e[r].value!==h:!0,this.value=e[r].checked?e[r].value:""):(this.value=e[r].readonly||e[s].readonly&&e[s].checked?this.value:e[r].value,e[r].checked=this.value===e[r].value),!this.hasRadioButtons&&!this.hasRadioCards)e[r].tabIndex=0,e[r].focus();else{let n=e[r];n.button.tabIndex=0,n.button.focus()}this.value!==h&&(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(),e=!1;t.forEach(o=>{o.error=this.error,this.required?o.setAttribute("aria-required","true"):o.removeAttribute("aria-required"),(this.hasRadioButtons||this.hasRadioCards)&&o.readonly&&this.readonlyRadioButtonValue.set(o.value,!0),e=o.checked||e,o.parentDisabled=this.disabled,o.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;if(e.checked=e.value===this.value,!this.value&&this.required?e.setAttribute("aria-invalid","true"):e.removeAttribute("aria-invalid"),this.hasRadioButtons||this.hasRadioCards){let s=e;s.readonly=(o=this.readonlyRadioButtonValue.get(this.value))!=null?o:s.readonly}}),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(s=>!s.disabled&&(!s.readonly||s.checked)),o=this.value!==""&&t.some(s=>s.value===this.value);t.forEach((s,d)=>{if(this.disabled){s.tabIndex=-1;return}let h=s.checked&&!s.disabled||!o&&d===e&&!this.readonly;if(this.hasRadioButtons||this.hasRadioCards){let r=s;customElements.whenDefined(this.hasRadioButtons?"dsa-radio-button":"dsa-radio-card").then(()=>{r.button.tabIndex=h?0:-1})}else s.tabIndex=h?0:-1})}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}handleErrorChange(){this.getAllRadios().forEach(t=>t.error=this.error)}handleDisabledChange(){this.getAllRadios().forEach(t=>t.parentDisabled=this.disabled)}handleReadonlyChange(){this.getAllRadios().forEach(t=>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(),o=e.find(h=>h.checked),s=e.find(h=>!h.disabled),d=o||s;d&&d.focus(t)}render(){let t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),o=this.label?!0:!!t,s=this.helpText?!0:!!e;return o||p("<dsa-radio-group> requires a label attribute or a label slot for accessibility"),this.error&&!this.errorMessage&&p("<dsa-radio-group> requires an error-message attribute for accessibility when the error attribute is set"),u`
|
|
2
|
-
<fieldset
|
|
3
|
-
part="form-control"
|
|
4
|
-
class=${y({"form-control":!0,"form-control--error":this.error,"form-control--medium":!0,"form-control--radio-group":!0,"form-control--has-label":o,"form-control--has-help-text":s,"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?u`<dsa-visually-hidden id="label"
|
|
10
|
-
><slot name="label">${this.label}</slot></dsa-visually-hidden
|
|
11
|
-
>`:u`
|
|
12
|
-
<span
|
|
13
|
-
part="form-control-label"
|
|
14
|
-
id="label"
|
|
15
|
-
class="form-control__label"
|
|
16
|
-
aria-hidden=${o?"false":"true"}
|
|
17
|
-
@click=${this.handleLabelClick}
|
|
18
|
-
>
|
|
19
|
-
${this.required?u`<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?k(this.customValidityError!==""?this.customValidityError:this.errorMessage):""}
|
|
60
|
-
${this.description!==""?u`
|
|
61
|
-
<p id="description" class="form-control__description">
|
|
62
|
-
${this.description}
|
|
63
|
-
</p>
|
|
64
|
-
`:""}
|
|
65
|
-
</fieldset>
|
|
66
|
-
`}};a.styles=I,a.dependencies={"dsa-error-text":x,"dsa-visually-hidden":B},i([f("slot:not([name])")],a.prototype,"defaultSlot",2),i([f(".radio-group__validation-input")],a.prototype,"validationInput",2),i([c()],a.prototype,"hasRadioButtons",2),i([c()],a.prototype,"hasRadioCards",2),i([c()],a.prototype,"readonlyRadioButtonValue",2),i([c()],a.prototype,"defaultValue",2),i([l()],a.prototype,"label",2),i([l({attribute:"help-text"})],a.prototype,"helpText",2),i([l({attribute:"description"})],a.prototype,"description",2),i([l()],a.prototype,"name",2),i([l({reflect:!0})],a.prototype,"value",2),i([l({type:Boolean,reflect:!0})],a.prototype,"deselectable",2),i([l({reflect:!0})],a.prototype,"form",2),i([l({type:Boolean,reflect:!0})],a.prototype,"required",2),i([l({type:Boolean,reflect:!0})],a.prototype,"disabled",2),i([l({type:Boolean,reflect:!0})],a.prototype,"readonly",2),i([l({type:Boolean})],a.prototype,"horizontal",2),i([l({type:Boolean})],a.prototype,"error",2),i([l({attribute:"error-message",converter:{fromAttribute:t=>t?t.split("|"):"",toAttribute:t=>typeof t=="string"?t:t.join("|")}})],a.prototype,"errorMessage",2),i([l({type:Boolean,attribute:"hide-label"})],a.prototype,"hideLabel",2),i([m("value")],a.prototype,"handleValueChange",1),i([m("error")],a.prototype,"handleErrorChange",1),i([m("disabled")],a.prototype,"handleDisabledChange",1),i([m("readonly")],a.prototype,"handleReadonlyChange",1),a=i([b("dsa-radio-group")],a);export{a};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk.YQPLXJOH.js";import{d as h}from"./chunk.ZBHHLRFH.js";import{a as r}from"./chunk.BWEPOOQP.js";import{a as c,b as i,f as p}from"./chunk.KBZ32KWP.js";import{a as n}from"./chunk.GP725TPQ.js";import{f as l}from"./chunk.IZ2HVRME.js";var o="dsa-step",e=class extends p{constructor(){super(...arguments);this.hideLabel=!1;this.vertical=!1}connectedCallback(){super.connectedCallback()}getAllSteps(){return[...this.querySelectorAll(o)]}handleDefaultSlotChange(){let a=this.getAllSteps();customElements.get(o)?a.forEach((t,s)=>{t.index=this.hideLabel?void 0:s,t.vertical=this.vertical}):customElements.whenDefined(o).then(()=>this.handleDefaultSlotChange())}handleHideLabelChange(){this.getAllSteps().forEach((t,s)=>{t.index=this.hideLabel?void 0:s})}handleVerticalChange(){this.getAllSteps().forEach(t=>{t.vertical=this.vertical})}render(){return n`
|
|
2
|
-
<div
|
|
3
|
-
role="list"
|
|
4
|
-
class=${h({stepper:!0,stepper__vertical:this.vertical})}
|
|
5
|
-
>
|
|
6
|
-
<slot @slotchange=${this.handleDefaultSlotChange}> </slot>
|
|
7
|
-
</div>
|
|
8
|
-
`}};e.styles=d,l([i({type:Boolean,attribute:"hide-label"})],e.prototype,"hideLabel",2),l([i({type:Boolean})],e.prototype,"vertical",2),l([r("hideLabel",{waitUntilFirstUpdate:!0})],e.prototype,"handleHideLabelChange",1),l([r("vertical",{waitUntilFirstUpdate:!0})],e.prototype,"handleVerticalChange",1),e=l([c("dsa-stepper")],e);export{e as a};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk.M2JVAL5G.js";import{a as l,f as s}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends s{render(){return r`
|
|
2
|
-
<slot part="filters" name="filters"></slot>
|
|
3
|
-
<div class="table-toolbar__right">
|
|
4
|
-
<slot part="columns-filter" name="columns-filter"></slot>
|
|
5
|
-
<slot part="search" name="search"></slot>
|
|
6
|
-
</div>
|
|
7
|
-
`}};t.styles=o,t=e([l("dsa-table-toolbar")],t);export{t as a};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk.27TNQFPN.js";import{d as s}from"./chunk.ZBHHLRFH.js";import{a as o}from"./chunk.BWEPOOQP.js";import{a as i,b as r,f as l}from"./chunk.KBZ32KWP.js";import{a}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var c=0,t=class extends l{constructor(){super(...arguments);this.attrId=++c;this.componentId=`dsa-tab-panel-${this.attrId}`;this.name="";this.tabindex=0;this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return a`
|
|
2
|
-
<slot
|
|
3
|
-
part="base"
|
|
4
|
-
class=${s({"tab-panel":!0,"tab-panel--active":this.active})}
|
|
5
|
-
></slot>
|
|
6
|
-
`}};t.styles=p,e([r({reflect:!0})],t.prototype,"name",2),e([r({reflect:!0})],t.prototype,"tabindex",2),e([r({type:Boolean,reflect:!0})],t.prototype,"active",2),e([o("active")],t.prototype,"handleActiveChange",1),t=e([i("dsa-tab-panel")],t);export{t as a};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk.UMC4I57R.js";import{a as e}from"./chunk.6G2FNLAV.js";var o=e`
|
|
2
|
-
${a}
|
|
3
|
-
|
|
4
|
-
:host {
|
|
5
|
-
display: table-row;
|
|
6
|
-
outline: none;
|
|
7
|
-
font: var(--dsa-wc-table-header-row-font);
|
|
8
|
-
background: var(--dsa-wc-table-header-row-background);
|
|
9
|
-
color: var(--dsa-wc-table-header-row-color);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* Sizes */
|
|
13
|
-
:host([size='small']) {
|
|
14
|
-
block-size: var(--dsa-wc-table-row-small-height);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:host([size='medium']) {
|
|
18
|
-
block-size: var(--dsa-wc-table-row-medium-height);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([size='large']) {
|
|
22
|
-
block-size: var(--dsa-wc-table-row-large-height);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[part~='column-checkbox'] {
|
|
26
|
-
display: table-cell;
|
|
27
|
-
vertical-align: middle;
|
|
28
|
-
text-align: center;
|
|
29
|
-
min-width: var(--dsa-wc-table-row-selectable-cell-width);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.column-checkbox--content {
|
|
33
|
-
display: flex;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host(:not([loading])) [part~='column-checkbox']:hover {
|
|
39
|
-
background: var(--dsa-wc-table-header-cell-background-hover);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.column-expand-button {
|
|
43
|
-
display: table-cell;
|
|
44
|
-
vertical-align: middle;
|
|
45
|
-
text-align: center;
|
|
46
|
-
min-width: var(--dsa-wc-table-row-expandable-cell-width);
|
|
47
|
-
}
|
|
48
|
-
`;export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as R}from"./chunk.V75PDQVT.js";import{a as i}from"./chunk.BWEPOOQP.js";import{a as w,b as n,f as b}from"./chunk.KBZ32KWP.js";import{a as h}from"./chunk.GP725TPQ.js";import{f as s}from"./chunk.IZ2HVRME.js";var t=class extends b{constructor(){super(...arguments);this.role="table";this.size="medium";this.alignment="left"}connectedCallback(){super.connectedCallback(),this.handleRowSelect=this.handleRowSelect.bind(this),this.handleAllRowsSelect=this.handleAllRowsSelect.bind(this)}async firstUpdated(){if(!this.selectable)return;let e=this.querySelector(this.selectorHeaderRow);if(e){await e.updateComplete;let l=[...this.querySelectorAll(this.selectorAllRows)];if(e!=null&&e.selected)l.forEach(a=>a.selected=e.selected);else{let o=l.filter(c=>c.selected).length,r=o===l.length;e.checkbox.checked=o>0&&r,e.checkbox.indeterminate=o>0&&!r}}}addRowSelectionListeners(){this.addEventListener("dsa-table-row-change-selection",this.handleRowSelect),this.addEventListener("dsa-table-row-all-change-selection",this.handleAllRowsSelect)}removeRowSelectionListeners(){this.removeEventListener("dsa-table-row-change-selection",this.handleRowSelect),this.removeEventListener("dsa-table-row-all-change-selection",this.handleAllRowsSelect)}handleAllRowsSelect(){let e=this.querySelector(this.selectorHeaderRow);if(e===null)return;let l=[...this.querySelectorAll(this.selectorAllRows)];l.forEach(o=>o.selected=e.selected);let a=l.filter(o=>o.selected);this.emit("dsa-table-row-all-selected",{detail:{selectedRows:a}})}handleRowSelect(e){let{target:l}=e,a=[...this.querySelectorAll(this.selectorAllRows)],o=a.filter(p=>p.selected),r=o.length,c=this.querySelector(this.selectorHeaderRow),d=r===a.length;c!==null&&(c.checkbox.checked=r>0&&d,c.checkbox.indeterminate=r>0&&!d),this.emit("dsa-table-row-selected",{detail:{selectedRow:l,selectedRows:o}})}handleRowExpandable(){[...this.querySelectorAll(this.selectorAllRows)].forEach(l=>{this.expandable?l.setAttribute("expandable","true"):l.removeAttribute("expandable")})}handleHeaderRowExpandable(){let e=this.querySelector(this.selectorHeaderRow);e!==null&&(this.expandable?e.setAttribute("expandable","true"):e.removeAttribute("expandable"))}handleRowSelectable(){[...this.querySelectorAll(this.selectorAllRows)].forEach((l,a)=>{this.selectable===!0&&l.getAttribute("selection-name")===""?l.setAttribute("selection-name",`row-${a}`):this.selectable||l.setAttribute("selection-name","")})}handleHeaderRowSelectable(){let e=this.querySelector(this.selectorHeaderRow);e&&e.setAttribute("selection-name",this.selectable?"header":"")}handleSizeChange(){[...this.querySelectorAll(this.selectorAllRows),...this.querySelectorAll(this.selectorHeaderRow)].forEach(l=>{l.setAttribute("size",this.size)})}handleExpandableChange(){this.handleRowExpandable(),this.handleHeaderRowExpandable()}handleHeaderCellsCount(){let l=[...this.querySelectorAll(this.selectorHeaderCell)].length+ +!!this.expandable+ +!!this.selectable;[...this.querySelectorAll(this.selectorAllExpandedRows)].forEach(r=>{r.setAttribute("colspan",String(l))}),[...this.querySelectorAll(this.selectorAllSingleCellRows)].forEach(r=>{r.setAttribute("colspan",String(l))})}handleSortableChange(){this.querySelectorAll(this.selectorHeaderCell).forEach(l=>{this.sortable?l.setAttribute("sortable","true"):l.removeAttribute("sortable")})}handleSelectableChange(){this.selectable?this.addRowSelectionListeners():this.removeRowSelectionListeners(),this.handleRowSelectable(),this.handleHeaderRowSelectable()}handleAlignmentChange(){this.querySelectorAll(this.selectorHeaderCell).forEach(l=>{l.setAttribute("alignment",this.alignment)})}render(){return h` <slot></slot> `}get selectorHeaderCell(){return"dsa-table-header-cell"}get selectorHeaderRow(){return"dsa-table-header-row"}get selectorAllRows(){return"dsa-table-row"}get selectorAllExpandedRows(){return"dsa-table-expanded-row"}get selectorAllSingleCellRows(){return"dsa-table-single-cell-row"}};t.styles=R,s([n({reflect:!0})],t.prototype,"role",2),s([n({reflect:!0})],t.prototype,"size",2),s([n({type:Boolean,reflect:!0})],t.prototype,"sortable",2),s([n({type:Boolean,reflect:!0})],t.prototype,"selectable",2),s([n({type:Boolean,reflect:!0})],t.prototype,"expandable",2),s([n()],t.prototype,"alignment",2),s([i("size")],t.prototype,"handleSizeChange",1),s([i("expandable")],t.prototype,"handleExpandableChange",1),s([i(["expandable","selectable"])],t.prototype,"handleHeaderCellsCount",1),s([i("sortable")],t.prototype,"handleSortableChange",1),s([i("selectable")],t.prototype,"handleSelectableChange",1),s([i("alignment")],t.prototype,"handleAlignmentChange",1),t=s([w("dsa-table")],t);export{t as a};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk.2S76L6WY.js";import{a as m}from"./chunk.PIG773U2.js";import{c as u}from"./chunk.GM4KTNXL.js";import{c as d}from"./chunk.KD3BHBHK.js";import{d as c}from"./chunk.ZBHHLRFH.js";import{a as i}from"./chunk.BWEPOOQP.js";import{a as o,b as a,c as r,d as n,f as h}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends h{constructor(){super(...arguments);this.localize=new u(this);this.current=!1;this.selected=!1;this.hasHover=!1;this.value="";this.disabled=!1;this.size="medium";this.error=!1;this.role="option";this.multiple=!1}connectedCallback(){super.connectedCallback(),this.role==="option"?this.setAttribute("aria-selected","false"):(this.setAttribute("aria-checked","false"),this.removeAttribute("aria-selected"))}handleDefaultSlotChange(){let l=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=l;return}l!==this.cachedTextLabel&&(this.cachedTextLabel=l,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute(this.role==="option"?"aria-selected":"aria-checked",this.selected?"true":"false")}handleErrorChange(){this.setAttribute("aria-invalid",this.error?"true":"false")}handleValueChange(){typeof this.value!="string"&&(this.value=String(this.value)),this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var l;return((l=this.textContent)!=null?l:"").trim()}render(){return s`
|
|
2
|
-
<div
|
|
3
|
-
part="base"
|
|
4
|
-
class=${c({option:!0,"option--small":this.size==="small","option--medium":this.size==="medium","option--large":this.size==="large","option--current":this.current,"option--disabled":this.disabled,"option--selected":this.selected,"option--hover":this.hasHover,"option--error":this.error,"option--multiple":this.multiple})}
|
|
5
|
-
@mouseenter=${this.handleMouseEnter}
|
|
6
|
-
@mouseleave=${this.handleMouseLeave}
|
|
7
|
-
>
|
|
8
|
-
${this.multiple?s`
|
|
9
|
-
<span class="checkbox__control">
|
|
10
|
-
${this.selected?s`
|
|
11
|
-
<dsa-icon
|
|
12
|
-
name="done"
|
|
13
|
-
class="checkbox__checked-icon"
|
|
14
|
-
library="system"
|
|
15
|
-
></dsa-icon>
|
|
16
|
-
`:""}
|
|
17
|
-
</span>
|
|
18
|
-
`:s`
|
|
19
|
-
<dsa-icon
|
|
20
|
-
part="checked-icon"
|
|
21
|
-
class="option__check"
|
|
22
|
-
name="check"
|
|
23
|
-
aria-hidden="true"
|
|
24
|
-
library="system"
|
|
25
|
-
></dsa-icon>
|
|
26
|
-
`}
|
|
27
|
-
${this.error?s`<dsa-icon
|
|
28
|
-
class="option__error-icon"
|
|
29
|
-
name="error"
|
|
30
|
-
library="system"
|
|
31
|
-
></dsa-icon>`:""}
|
|
32
|
-
<slot part="prefix" name="prefix" class="option__prefix"></slot>
|
|
33
|
-
<slot
|
|
34
|
-
part="label"
|
|
35
|
-
class="option__label"
|
|
36
|
-
@slotchange=${this.handleDefaultSlotChange}
|
|
37
|
-
></slot>
|
|
38
|
-
${this.amount?s`
|
|
39
|
-
<dsa-visually-hidden>:</dsa-visually-hidden>
|
|
40
|
-
<span class="option__amount">${this.amount}</span>
|
|
41
|
-
`:""}
|
|
42
|
-
<slot part="suffix" name="suffix" class="option__suffix"></slot>
|
|
43
|
-
</div>
|
|
44
|
-
`}};e.styles=p,e.dependencies={"dsa-icon":d,"dsa-visually-hidden":m},t([n(".option__label")],e.prototype,"defaultSlot",2),t([r()],e.prototype,"current",2),t([r()],e.prototype,"selected",2),t([r()],e.prototype,"hasHover",2),t([a({reflect:!0})],e.prototype,"value",2),t([a({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([a()],e.prototype,"size",2),t([a({type:Boolean})],e.prototype,"error",2),t([a()],e.prototype,"amount",2),t([a({reflect:!0})],e.prototype,"role",2),t([a({type:Boolean})],e.prototype,"multiple",2),t([i("disabled")],e.prototype,"handleDisabledChange",1),t([i("selected")],e.prototype,"handleSelectedChange",1),t([i("error")],e.prototype,"handleErrorChange",1),t([i("value")],e.prototype,"handleValueChange",1),e=t([o("dsa-option")],e);export{e as a};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import{a as L}from"./chunk.ZPQE4HH4.js";import{a as z}from"./chunk.WJLFKSRJ.js";import{a as E}from"./chunk.FX5UP23Z.js";import{a as w}from"./chunk.OTNGFYHL.js";import{a as p,c as m,d as f}from"./chunk.HHVNQNCC.js";import{a as u,c as b}from"./chunk.TV2TMO2H.js";import{c as v}from"./chunk.GM4KTNXL.js";import{c as C}from"./chunk.KD3BHBHK.js";import{d as c}from"./chunk.ZBHHLRFH.js";import{a as s}from"./chunk.BWEPOOQP.js";import{a as g,b as d,c as r,d as n,f as x}from"./chunk.KBZ32KWP.js";import{a as l}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";function o(h,y,t){return h?y(h):t==null?void 0:t(h)}var e=class extends x{constructor(){super(...arguments);this.localize=new v(this);this.indeterminate=!1;this.isLeaf=!1;this.loading=!1;this.selectable=!1;this.expanded=!1;this.selected=!1;this.disabled=!1;this.lazy=!1}static isTreeItem(t){return t instanceof Element&&t.getAttribute("role")==="treeitem"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","treeitem"),this.setAttribute("tabindex","-1"),this.isNestedItem()&&(this.slot="children")}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?"auto":"0",this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit("dsa-collapse"),await m(this.childrenContainer);let{keyframes:t,options:a}=b(this,"tree-item.collapse",{dir:this.localize.dir()});await p(this.childrenContainer,f(t,this.childrenContainer.scrollHeight),a),this.childrenContainer.hidden=!0,this.emit("dsa-after-collapse")}isNestedItem(){let t=this.parentElement;return!!t&&e.isTreeItem(t)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(t){t.has("selected")&&!t.has("indeterminate")&&(this.indeterminate=!1)}async animateExpand(){this.emit("dsa-expand"),await m(this.childrenContainer),this.childrenContainer.hidden=!1;let{keyframes:t,options:a}=b(this,"tree-item.expand",{dir:this.localize.dir()});await p(this.childrenContainer,f(t,this.childrenContainer.scrollHeight),a),this.childrenContainer.style.height="auto",this.emit("dsa-after-expand")}handleLoadingChange(){this.setAttribute("aria-busy",this.loading?"true":"false"),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleExpandedChange(){this.isLeaf?this.removeAttribute("aria-expanded"):this.setAttribute("aria-expanded",this.expanded?"true":"false")}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit("dsa-lazy-load")):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit("dsa-lazy-change")}getChildrenItems({includeDisabled:t=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(a=>e.isTreeItem(a)&&(t||!a.disabled)):[]}render(){let t=this.localize.dir()==="rtl",a=!this.loading&&(!this.isLeaf||this.lazy);return l`
|
|
2
|
-
<div
|
|
3
|
-
part="base"
|
|
4
|
-
class="${c({"tree-item":!0,"tree-item--expanded":this.expanded,"tree-item--selected":this.selected,"tree-item--disabled":this.disabled,"tree-item--leaf":this.isLeaf,"tree-item--has-expand-button":a,"tree-item--rtl":this.localize.dir()==="rtl"})}"
|
|
5
|
-
>
|
|
6
|
-
<div
|
|
7
|
-
class="tree-item__item"
|
|
8
|
-
part="
|
|
9
|
-
item
|
|
10
|
-
${this.disabled?"item--disabled":""}
|
|
11
|
-
${this.expanded?"item--expanded":""}
|
|
12
|
-
${this.indeterminate?"item--indeterminate":""}
|
|
13
|
-
${this.selected?"item--selected":""}
|
|
14
|
-
"
|
|
15
|
-
>
|
|
16
|
-
<div class="tree-item__indentation" part="indentation"></div>
|
|
17
|
-
|
|
18
|
-
<div
|
|
19
|
-
part="expand-button"
|
|
20
|
-
class=${c({"tree-item__expand-button":!0,"tree-item__expand-button--visible":a})}
|
|
21
|
-
aria-hidden="true"
|
|
22
|
-
>
|
|
23
|
-
${o(this.loading,()=>l` <dsa-spinner></dsa-spinner> `)}
|
|
24
|
-
<dsa-icon
|
|
25
|
-
class="tree-item__expand-icon"
|
|
26
|
-
name=${t?"chevron_left":"chevron_right"}
|
|
27
|
-
library="system"
|
|
28
|
-
></dsa-icon>
|
|
29
|
-
|
|
30
|
-
<dsa-icon
|
|
31
|
-
class="tree-item__collapse-icon"
|
|
32
|
-
name=${t?"chevron_left":"chevron_right"}
|
|
33
|
-
library="system"
|
|
34
|
-
></dsa-icon>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
${o(this.selectable,()=>l`
|
|
38
|
-
<dsa-checkbox
|
|
39
|
-
tabindex="-1"
|
|
40
|
-
class="tree-item__checkbox"
|
|
41
|
-
?disabled="${this.disabled}"
|
|
42
|
-
?checked="${E(this.selected)}"
|
|
43
|
-
?indeterminate="${this.indeterminate}"
|
|
44
|
-
></dsa-checkbox>
|
|
45
|
-
`)}
|
|
46
|
-
|
|
47
|
-
<slot class="tree-item__label" part="label"></slot>
|
|
48
|
-
|
|
49
|
-
${o(!this.selectable&&this.selected,()=>l` <dsa-icon
|
|
50
|
-
class="tree-item__selected-icon"
|
|
51
|
-
name="check"
|
|
52
|
-
library="system"
|
|
53
|
-
></dsa-icon>`)}
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<div class="tree-item__children" role="group">
|
|
57
|
-
<slot
|
|
58
|
-
name="children"
|
|
59
|
-
part="children"
|
|
60
|
-
@slotchange="${this.handleChildrenSlotChange}"
|
|
61
|
-
></slot>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
`}};e.styles=L,e.dependencies={"dsa-icon":C,"dsa-checkbox":z,"dsa-spinner":w},i([r()],e.prototype,"indeterminate",2),i([r()],e.prototype,"isLeaf",2),i([r()],e.prototype,"loading",2),i([r()],e.prototype,"selectable",2),i([d({type:Boolean,reflect:!0})],e.prototype,"expanded",2),i([d({type:Boolean,reflect:!0})],e.prototype,"selected",2),i([d({type:Boolean,reflect:!0})],e.prototype,"disabled",2),i([d({type:Boolean,reflect:!0})],e.prototype,"lazy",2),i([n("slot:not([name])")],e.prototype,"defaultSlot",2),i([n("slot[name=children]")],e.prototype,"childrenSlot",2),i([n(".tree-item__item")],e.prototype,"itemElement",2),i([n(".tree-item__children")],e.prototype,"childrenContainer",2),i([n(".tree-item__expand-button slot")],e.prototype,"expandButtonSlot",2),i([s("loading",{waitUntilFirstUpdate:!0})],e.prototype,"handleLoadingChange",1),i([s("disabled")],e.prototype,"handleDisabledChange",1),i([s("selected")],e.prototype,"handleSelectedChange",1),i([s("expanded",{waitUntilFirstUpdate:!0})],e.prototype,"handleExpandedChange",1),i([s("expanded",{waitUntilFirstUpdate:!0})],e.prototype,"handleExpandAnimation",1),i([s("lazy",{waitUntilFirstUpdate:!0})],e.prototype,"handleLazyChange",1),e=i([g("dsa-tree-item")],e);u("tree-item.expand",{keyframes:[{height:"0",opacity:"0",overflow:"hidden"},{height:"auto",opacity:"1",overflow:"hidden"}],options:{duration:250,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}});u("tree-item.collapse",{keyframes:[{height:"auto",opacity:"1",overflow:"hidden"},{height:"0",opacity:"0",overflow:"hidden"}],options:{duration:200,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}});export{e as a};
|
|
65
|
-
/*! Bundled license information:
|
|
66
|
-
|
|
67
|
-
lit-html/directives/when.js:
|
|
68
|
-
(**
|
|
69
|
-
* @license
|
|
70
|
-
* Copyright 2021 Google LLC
|
|
71
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
*)
|
|
73
|
-
*/
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import{a as E}from"./chunk.II4JQ433.js";import{a as x}from"./chunk.PIG773U2.js";import{a as C}from"./chunk.NJBAMERR.js";import{a as k}from"./chunk.SWEIVB73.js";import{a as p}from"./chunk.ELL45QD3.js";import{b,c as g,d as y,e as v}from"./chunk.FWTZS7LK.js";import{a as c}from"./chunk.B4KFHYLS.js";import{d as m}from"./chunk.ZBHHLRFH.js";import{a as d}from"./chunk.BWEPOOQP.js";import{a as u,b as i,c as n,d as h,f}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as l}from"./chunk.IZ2HVRME.js";var o=class extends f{constructor(){super(...arguments);this.formControlController=new b(this);this.hasSlotController=new p(this,"help-text","label");this.customValidityMessage="";this.hasCheckboxButtons=!1;this.hasCheckboxCards=!1;this.defaultValue=[];this.label="";this.helpText="";this.description="";this.name="option";this.value=[];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.length===0;return this.customValidityMessage!==""?v:t?y:g}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()}getAllCheckboxes(){return[...this.querySelectorAll("dsa-checkbox, dsa-checkbox-button, dsa-checkbox-card")]}handleCheckboxClick(t){if(t.target.tagName.toLowerCase()==="a")return;let e=t.target.closest("dsa-checkbox, dsa-checkbox-button, dsa-checkbox-card");if(t.preventDefault(),t.stopPropagation(),!e||e.disabled||e.readonly||this.disabled||this.readonly)return;this.value.includes(e.value)?this.value=this.value.filter(s=>s!==e.value):this.value=[...this.value,e.value],this.getAllCheckboxes().forEach(s=>{s.checked=this.value.includes(s.value)}),this.emit("dsa-change"),this.emit("dsa-input")}handleKeyDown(t){if(t.target.tagName.toLowerCase()==="a")return;let e=t.target;if(t.key===" "){if(t.preventDefault(),this.disabled||this.readonly||e.disabled||e.readonly)return;e.checked=!e.checked;let a=this.getAllCheckboxes().filter(s=>s.checked);this.value=a.map(s=>s.value),this.emit("dsa-input"),this.emit("dsa-change")}t.key==="Enter"&&(this.disabled||this.readonly||e.disabled||e.readonly)&&t.preventDefault()}handleLabelClick(){this.focus()}handleSlotChange(){if(customElements.get("dsa-checkbox")||customElements.get("dsa-checkbox-button")||customElements.get("dsa-checkbox-card")){let t=this.getAllCheckboxes();t.forEach(e=>{e.checked=this.value.includes(e.value),e.parentDisabled=this.disabled,e.parentReadonly=this.readonly}),this.hasCheckboxButtons=t.some(e=>e.tagName.toLowerCase()==="dsa-checkbox-button"),this.hasCheckboxCards=t.some(e=>e.tagName.toLowerCase()==="dsa-checkbox-card")}else customElements.whenDefined("dsa-checkbox").then(()=>this.handleSlotChange()),customElements.whenDefined("dsa-checkbox-button").then(()=>this.handleSlotChange()),customElements.whenDefined("dsa-checkbox-card").then(()=>this.handleSlotChange())}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),setTimeout(()=>{this.focus()},0)}getDescriptionIds(){let t=[];return this.error&&(t=["error-text"]),t=[...t,"help-text","description"],t.join(" ")}handleValueChange(){this.getAllCheckboxes().forEach(t=>t.checked=this.value.includes(t.value)),this.formControlController.setValidity(this.validity.valid)}handleDisabledChange(){this.getAllCheckboxes().forEach(t=>t.parentDisabled=this.disabled)}handleReadonlyChange(){this.getAllCheckboxes().forEach(t=>t.parentReadonly=this.readonly)}checkValidity(){let t=this.required&&this.value.length===0,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return 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.getAllCheckboxes().filter(s=>!s.disabled&&!s.readonly),a=e.find(s=>s.checked)||e[0];a&&a.focus(t)}render(){let t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),a=this.label?!0:!!t,s=this.helpText?!0:!!e;return a||c("<dsa-checkbox-group> requires a label attribute or a label slot for accessibility"),this.error&&!this.errorMessage&&c("<dsa-checkbox-group> requires an error-message attribute for accessibility when the error attribute is set"),r`
|
|
2
|
-
<fieldset
|
|
3
|
-
part="form-control"
|
|
4
|
-
class=${m({"form-control":!0,"form-control--error":this.error,"form-control--medium":!0,"form-control--checkbox-group":!0,"form-control--has-label":a,"form-control--has-help-text":s,"form-control--has-buttons":this.hasCheckboxButtons,"form-control--has-cards":this.hasCheckboxCards,"form-control--options-horizontal":!!this.horizontal})}
|
|
5
|
-
role="group"
|
|
6
|
-
aria-labelledby="label ${this.getDescriptionIds()}"
|
|
7
|
-
>
|
|
8
|
-
${this.hideLabel?r`<dsa-visually-hidden id="label"
|
|
9
|
-
><slot name="label">${this.label}</slot></dsa-visually-hidden
|
|
10
|
-
>`:r`
|
|
11
|
-
<span
|
|
12
|
-
part="form-control-label"
|
|
13
|
-
id="label"
|
|
14
|
-
class="form-control__label"
|
|
15
|
-
aria-hidden=${a?"false":"true"}
|
|
16
|
-
@click=${this.handleLabelClick}
|
|
17
|
-
>
|
|
18
|
-
${this.required?r`<span class="form-control__label-required">*</span>`:""}
|
|
19
|
-
<slot name="label">${this.label}</slot>
|
|
20
|
-
</span>
|
|
21
|
-
`}
|
|
22
|
-
|
|
23
|
-
<slot name="tooltip" class="form-control__tooltip"></slot>
|
|
24
|
-
|
|
25
|
-
<div
|
|
26
|
-
part="form-control-input"
|
|
27
|
-
class="form-control-input form-control__field"
|
|
28
|
-
>
|
|
29
|
-
<dsa-visually-hidden>
|
|
30
|
-
<label class="checkbox-group__validation">
|
|
31
|
-
<input
|
|
32
|
-
class="checkbox-group__validation-input"
|
|
33
|
-
type="text"
|
|
34
|
-
?required=${this.required}
|
|
35
|
-
tabindex="-1"
|
|
36
|
-
hidden
|
|
37
|
-
@invalid=${this.handleInvalid}
|
|
38
|
-
/>
|
|
39
|
-
</label>
|
|
40
|
-
</dsa-visually-hidden>
|
|
41
|
-
|
|
42
|
-
<div
|
|
43
|
-
role="list"
|
|
44
|
-
class="form-control__options"
|
|
45
|
-
@click=${this.handleCheckboxClick}
|
|
46
|
-
@keydown=${this.handleKeyDown}
|
|
47
|
-
>
|
|
48
|
-
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
<div
|
|
52
|
-
id="help-text"
|
|
53
|
-
class="form-control__help-text"
|
|
54
|
-
aria-hidden=${s?"false":"true"}
|
|
55
|
-
>
|
|
56
|
-
<slot name="help-text" part="form-control-help-text">
|
|
57
|
-
${this.helpText}
|
|
58
|
-
</slot>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
${this.error?k(this.errorMessage):""}
|
|
62
|
-
${this.description?r`
|
|
63
|
-
<p id="description" class="form-control__description">
|
|
64
|
-
${this.description}
|
|
65
|
-
</p>
|
|
66
|
-
`:""}
|
|
67
|
-
</fieldset>
|
|
68
|
-
`}};o.styles=E,o.dependencies={"dsa-error-text":C,"dsa-visually-hidden":x},l([h("slot:not([name])")],o.prototype,"defaultSlot",2),l([h(".checkbox-group__validation-input")],o.prototype,"validationInput",2),l([n()],o.prototype,"hasCheckboxButtons",2),l([n()],o.prototype,"hasCheckboxCards",2),l([n()],o.prototype,"defaultValue",2),l([i()],o.prototype,"label",2),l([i({attribute:"help-text"})],o.prototype,"helpText",2),l([i({attribute:"description"})],o.prototype,"description",2),l([i()],o.prototype,"name",2),l([i({converter:{fromAttribute:t=>t.split(","),toAttribute:t=>typeof t=="string"?t:t.join(",")}})],o.prototype,"value",2),l([i({reflect:!0})],o.prototype,"form",2),l([i({type:Boolean,reflect:!0})],o.prototype,"required",2),l([i({type:Boolean,reflect:!0})],o.prototype,"disabled",2),l([i({type:Boolean,reflect:!0})],o.prototype,"readonly",2),l([i({type:Boolean})],o.prototype,"horizontal",2),l([i({type:Boolean})],o.prototype,"error",2),l([i({attribute:"error-message",converter:{fromAttribute:t=>t?t.split("|"):"",toAttribute:t=>typeof t=="string"?t:t.join("|")}})],o.prototype,"errorMessage",2),l([i({type:Boolean,attribute:"hide-label"})],o.prototype,"hideLabel",2),l([d("value",{waitUntilFirstUpdate:!0})],o.prototype,"handleValueChange",1),l([d("disabled")],o.prototype,"handleDisabledChange",1),l([d("readonly")],o.prototype,"handleReadonlyChange",1),o=l([u("dsa-checkbox-group")],o);export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk.FEXCFMDC.js";import{a}from"./chunk.QO3O2UNB.js";import{a as i}from"./chunk.BWEPOOQP.js";import{a as r}from"./chunk.KBZ32KWP.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends o{constructor(){super(...arguments);this.type="checkbox"}connectedCallback(){super.connectedCallback();let s=this.parentElement;!this.hasAttribute("role")&&s instanceof a&&this.setAttribute("role","listitem")}handleClick(){this.readonly||this.disabled||this.parentDisabled||this.parentReadonly||(this.checked=!this.checked)}handleErrorChange(){this.error?this.button.setAttribute("aria-invalid","true"):this.button.removeAttribute("aria-invalid")}};e([i("error",{waitUntilFirstUpdate:!0})],t.prototype,"handleErrorChange",1),t=e([r("dsa-checkbox-button")],t);export{t as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk.GGGLGLGP.js";import{a as h}from"./chunk.AAEIE3M2.js";import{a as n}from"./chunk.LIYDVH7Q.js";import{a as d}from"./chunk.PIG773U2.js";import{a as i,d as o}from"./chunk.KBZ32KWP.js";import{a as t}from"./chunk.GP725TPQ.js";import{a as s,b as c,f as l}from"./chunk.IZ2HVRME.js";var e=class extends a{handleCheckboxChange(){this.selected=this.checkbox.checked,this.emit("dsa-table-row-all-change-selection")}renderFirstCell(){return this.selectionName?t`
|
|
2
|
-
<dsa-table-header-cell part="column-checkbox" aria-hidden=${this.loading}>
|
|
3
|
-
<div class="column-checkbox--content">
|
|
4
|
-
<dsa-checkbox
|
|
5
|
-
class="checkbox"
|
|
6
|
-
size="small"
|
|
7
|
-
name=${this.selectionName}
|
|
8
|
-
accessible-name=${this.selectionLabel!==""?this.selectionLabel:this.localize.term("selectAllTableRows")}
|
|
9
|
-
value=${this.selectionValue}
|
|
10
|
-
?checked=${this.selected}
|
|
11
|
-
@click=${r=>r.stopPropagation()}
|
|
12
|
-
@dsa-change=${this.handleCheckboxChange}
|
|
13
|
-
?disabled=${this.loading}
|
|
14
|
-
></dsa-checkbox>
|
|
15
|
-
</div>
|
|
16
|
-
</dsa-table-header-cell>
|
|
17
|
-
`:t``}renderExpandButton(){return t`
|
|
18
|
-
<dsa-table-header-cell
|
|
19
|
-
class="column-expand-button"
|
|
20
|
-
aria-hidden=${this.loading}
|
|
21
|
-
>
|
|
22
|
-
<dsa-visually-hidden>
|
|
23
|
-
${this.localize.term("showExpandedTableRowHeader")}
|
|
24
|
-
</dsa-visually-hidden>
|
|
25
|
-
</dsa-table-header-cell>
|
|
26
|
-
`}};e.styles=n,e.dependencies=c(s({},a.dependencies),{"dsa-table-header-cell":h,"dsa-visually-hidden":d}),l([o(".checkbox")],e.prototype,"selectAllCheckbox",2),e=l([i("dsa-table-header-row")],e);export{e as a};
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk.QSJXNN7N.js";import{a as L}from"./chunk.2PN56GC6.js";import{a as x}from"./chunk.N4VN25E6.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 F}from"./chunk.NJBAMERR.js";import{a as A}from"./chunk.4HSGYXFW.js";import{a as T}from"./chunk.OTNGFYHL.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 d}from"./chunk.NIRNX67K.js";import{c as D}from"./chunk.GM4KTNXL.js";import{c as M}from"./chunk.KD3BHBHK.js";import{a as c}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 f="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=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){this.overrideDefaultFiltering?this.filteredOptions=this.allOptions:this.filteredOptions=this.allOptions.filter(t=>L(t.innerText).includes(L(e)))}resetDisplayedOptionsCount(){this.displayedOptionsCount=this.visibleListLength?Math.min(this.visibleListLength,this.filteredOptions.length):this.filteredOptions.length}toggleOptionSelection(e,t){e.selected=t||!e.selected,this.selectedOptions=this.allOptions.filter(i=>i.selected),this.syncOnSelection()}handleOptionClick(e){let i=e.target.closest(f);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(f)){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(f).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(f),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=!1})}setCurrentOption(e){this.allOptions.forEach(t=>{t.current=!1}),e!==void 0?(this.currentOption=e,e.current=!0,e.tabIndex=0,e.focus()):this.currentOption=void 0}setSelectedOptions(e){let t=Array.isArray(e)?e:[e];this.clearSelectedOptions(),t.forEach(i=>{i.selected=!0}),this.selectedOptions=this.allOptions.filter(i=>i.selected)}handleClearMouseDown(e){e.stopPropagation(),e.preventDefault()}syncOnSelection(){var e,t,i,l;this.multiple?this.value=this.selectedOptions.map(m=>m.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})}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,E,I,C;let e=this.value.length>0,t=this.hasSlotController.test("label"),i=this.label?!0:!!t,l=this.clearable&&!this.disabled&&!this.readonly&&e,m=this.placeholder&&this.value.length===0,N=this.value?e?this.value.length:1:void 0,H=this.disabled||this.readonly,R=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":m,"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=${d(this.placeholder)}
|
|
31
|
-
.disabled=${this.disabled}
|
|
32
|
-
size=${N}
|
|
33
|
-
autocomplete="off"
|
|
34
|
-
spellcheck="false"
|
|
35
|
-
autocapitalize="off"
|
|
36
|
-
?readonly=${this.readonly}
|
|
37
|
-
title=${d((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=${d(i?"label":void 0)}
|
|
43
|
-
aria-label=${d(i?void 0:(E=this.accessibleName)!=null?E:this.title)}
|
|
44
|
-
aria-disabled=${c(this.readonly?"true":void 0)}
|
|
45
|
-
aria-describedby=${this.getDescriptionIds()}
|
|
46
|
-
aria-activedescendant=${(C=(I=this.currentOption)==null?void 0:I.id)!=null?C:""}
|
|
47
|
-
aria-invalid=${c(this.error?"true":void 0)}
|
|
48
|
-
aria-required=${c(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((u,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=${U=>this.handleTagRemove(U,u)}
|
|
72
|
-
label=${u.getTextLabel()}
|
|
73
|
-
>
|
|
74
|
-
</dsa-tag>
|
|
75
|
-
<span
|
|
76
|
-
id=${`tag-${u.value}`}
|
|
77
|
-
class="hidden-tag-label"
|
|
78
|
-
>${u.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?R: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":F,"dsa-spinner":T,"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([r()],s.prototype,"debounceTimerId",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};
|