@ds-autonomie/web-components 2.7.1 → 2.8.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 +28 -0
- package/cdn/chunks/{chunk.X7VTIYF4.js → chunk.2AGKTM6V.js} +25 -1
- package/cdn/chunks/{chunk.H5LXYWU4.js → chunk.2MMASCIR.js} +2 -2
- package/cdn/chunks/{chunk.QWF2EIS5.js → chunk.32DAUHJ6.js} +11 -2
- package/cdn/chunks/{chunk.2Y5NYPC2.js → chunk.36Y6T57J.js} +1 -1
- package/cdn/chunks/{chunk.HWM7ESSG.js → chunk.3EJ54TS4.js} +85 -28
- package/cdn/chunks/{chunk.VQ6RNAGR.js → chunk.3VGPRUUT.js} +7 -0
- package/cdn/chunks/{chunk.YKUXDSKS.js → chunk.3VYO2UYA.js} +12 -2
- package/cdn/chunks/{chunk.XQSTAOEF.js → chunk.3Z2GKRZW.js} +1 -1
- package/cdn/chunks/{chunk.OA2FMS3O.js → chunk.46MVNLKZ.js} +1 -1
- package/cdn/chunks/chunk.4DEEMH54.js +229 -0
- package/cdn/chunks/{chunk.RIREJ6N6.js → chunk.4XTF2ZKZ.js} +1 -2
- package/cdn/chunks/{chunk.EM2CIX7W.js → chunk.57JI3UNH.js} +6 -0
- package/cdn/chunks/{chunk.JBUTAD7Y.js → chunk.5FH6QU4A.js} +1 -1
- package/cdn/chunks/{chunk.IRKLMCCV.js → chunk.5R2EV6NZ.js} +1 -1
- package/cdn/chunks/{chunk.RPKQJKOJ.js → chunk.653FSYCC.js} +3 -3
- package/cdn/chunks/{chunk.ICB64ITZ.js → chunk.6MHC5DNA.js} +1 -1
- package/cdn/chunks/{chunk.AAIT63AW.js → chunk.6P7WH7AZ.js} +1 -1
- package/cdn/chunks/{chunk.OIIMIRMI.js → chunk.6PLXHBET.js} +1 -1
- package/cdn/chunks/{chunk.OXTOMS7Z.js → chunk.6QCIYDOP.js} +1 -1
- package/cdn/chunks/{chunk.PUGGE6YS.js → chunk.6UXGYL2N.js} +5 -5
- package/cdn/chunks/{chunk.PB3XIUKQ.js → chunk.77VY2UR4.js} +4 -3
- package/cdn/chunks/{chunk.WI43OAV3.js → chunk.7JC3OWVV.js} +1 -1
- package/cdn/chunks/chunk.7LPJZYXA.js +151 -0
- package/cdn/chunks/{chunk.2FLI3YXG.js → chunk.7Y7NWHLB.js} +1 -1
- package/cdn/chunks/{chunk.5SFJEW3X.js → chunk.ANUEXNCN.js} +1 -1
- package/cdn/chunks/{chunk.VGYU72R2.js → chunk.ASVIB6BX.js} +2 -3
- package/cdn/chunks/{chunk.VXKRQ46O.js → chunk.AXJPYPJF.js} +3 -3
- package/cdn/chunks/{chunk.GJ6NPBI5.js → chunk.B2BEAIE7.js} +25 -0
- package/cdn/chunks/{chunk.COU4R52T.js → chunk.B5BIYVZQ.js} +3 -3
- package/cdn/chunks/chunk.B6A5AGBJ.js +37 -0
- package/cdn/chunks/{chunk.EPILD4OF.js → chunk.BKJGWZ2J.js} +1 -1
- package/cdn/chunks/{chunk.UMMRTTO5.js → chunk.C43CVKBG.js} +5 -2
- package/cdn/chunks/{chunk.AFJSWKU3.js → chunk.C4TNUODO.js} +1 -1
- package/cdn/chunks/{chunk.3LYWE5F4.js → chunk.CDM7VX7Q.js} +5 -1
- package/cdn/chunks/{chunk.CGWQEFIA.js → chunk.CRX7KUAK.js} +8 -3
- package/cdn/chunks/{chunk.XUO4ROFZ.js → chunk.CVZBPG2A.js} +35 -21
- package/cdn/chunks/{chunk.U22AXFTO.js → chunk.CWY2H4ZC.js} +1 -1
- package/cdn/chunks/{chunk.YZL5RFYO.js → chunk.DBSXHLX2.js} +8 -3
- package/cdn/chunks/{chunk.MUUNZVY6.js → chunk.DRVOJTJS.js} +8 -4
- package/cdn/chunks/{chunk.JJVGZ76D.js → chunk.DSXA7V54.js} +1 -1
- package/cdn/chunks/{chunk.WY73AW7H.js → chunk.DUANMGYF.js} +1 -1
- package/cdn/chunks/{chunk.K6UN4I5Q.js → chunk.EP2LR57N.js} +21 -92
- package/cdn/chunks/{chunk.727KD4JC.js → chunk.EXKO4BNS.js} +2 -2
- package/cdn/chunks/{chunk.JDMH5Z5K.js → chunk.EXPTHDVJ.js} +1 -1
- package/cdn/chunks/{chunk.5CO3IOJ7.js → chunk.F4WG4HCT.js} +1 -1
- package/cdn/chunks/{chunk.AYE3T37E.js → chunk.FBMGDNRV.js} +2 -16
- package/cdn/chunks/{chunk.XWXOKQFC.js → chunk.FRO6GRVS.js} +4 -2
- package/cdn/chunks/{chunk.TY7XK6UL.js → chunk.FSMUXFAQ.js} +20 -0
- package/cdn/chunks/{chunk.DAZARNOY.js → chunk.FVXLPV3C.js} +1 -1
- package/cdn/chunks/{chunk.DDR5VWG6.js → chunk.FWUVNYIG.js} +1 -1
- package/cdn/chunks/{chunk.DR5NYTMX.js → chunk.FZ6I3S7V.js} +1 -1
- package/cdn/chunks/{chunk.YCM23TDI.js → chunk.G5AZGI3C.js} +1 -1
- package/cdn/chunks/{chunk.WYJYCTJH.js → chunk.HE4K2YDO.js} +3 -3
- package/cdn/chunks/{chunk.NYPRGHOM.js → chunk.HPXPJRHP.js} +8 -3
- package/cdn/chunks/{chunk.SJ2AWS22.js → chunk.HPYTPVEB.js} +5 -0
- package/cdn/chunks/{chunk.HSIGEKL5.js → chunk.IIGRYD5Y.js} +11 -2
- package/cdn/chunks/{chunk.CGI4SZOM.js → chunk.IROQ5KMI.js} +24 -1
- package/cdn/chunks/{chunk.2V3L25KR.js → chunk.J5KUYGZX.js} +1 -1
- package/cdn/chunks/{chunk.WPFRO2F3.js → chunk.JA56VM3Z.js} +1 -1
- package/cdn/chunks/{chunk.CYQIQZJW.js → chunk.JHGJY6PX.js} +1 -1
- package/cdn/chunks/{chunk.OS6HXGQN.js → chunk.K25KURIV.js} +14 -14
- package/cdn/chunks/{chunk.X7IM3QEW.js → chunk.KFEGO6UK.js} +1 -1
- package/cdn/chunks/{chunk.TYFFPF75.js → chunk.KVS4YLOR.js} +7 -2
- package/cdn/chunks/chunk.L43WS4PE.js +199 -0
- package/cdn/chunks/{chunk.6JU5COXK.js → chunk.MDTUJ5PF.js} +2 -0
- package/cdn/chunks/{chunk.4AMUMMHK.js → chunk.MILYWVXX.js} +1 -1
- package/cdn/chunks/{chunk.BA4BKE4Z.js → chunk.NAK3JRLN.js} +1 -1
- package/cdn/chunks/{chunk.6YJMFHXD.js → chunk.NBIZCATT.js} +30 -0
- package/cdn/chunks/{chunk.DQVGUB6W.js → chunk.NMQZUXDC.js} +5 -5
- package/cdn/chunks/{chunk.DHNNNXA5.js → chunk.O23T7ACS.js} +7 -9
- package/cdn/chunks/{chunk.I6GUYLJ5.js → chunk.OG6VURY2.js} +1 -1
- package/cdn/chunks/{chunk.ZZC5FXXS.js → chunk.OMTZHU6Z.js} +3 -3
- package/cdn/chunks/{chunk.TREMKCQL.js → chunk.OR25BIGS.js} +8 -19
- package/cdn/chunks/{chunk.EBONUJNQ.js → chunk.P6AXCAIZ.js} +2 -2
- package/cdn/chunks/{chunk.AGSBC7NG.js → chunk.PHX6FWGI.js} +1 -1
- package/cdn/chunks/{chunk.6LVJAJSU.js → chunk.PI6IDFTT.js} +1 -1
- package/cdn/chunks/{chunk.LLUIABYV.js → chunk.PJEZIRWR.js} +1 -1
- package/cdn/chunks/{chunk.LUW6TISZ.js → chunk.PJYI43NT.js} +3 -3
- package/cdn/chunks/{chunk.NFK3HLNV.js → chunk.PO2MPDC4.js} +2 -2
- package/cdn/chunks/{chunk.HT76M4H6.js → chunk.PUJDUSQL.js} +2 -2
- package/cdn/chunks/{chunk.D3742XUM.js → chunk.PUXPFZCL.js} +1 -1
- package/cdn/chunks/{chunk.RPE5DQV3.js → chunk.PZK4ARTY.js} +3 -2
- package/cdn/chunks/{chunk.F7JDQK4S.js → chunk.Q3L5UFXN.js} +3 -3
- package/cdn/chunks/{chunk.TFKHAQH2.js → chunk.Q47NBYPL.js} +1 -1
- package/cdn/chunks/{chunk.XY23YPTE.js → chunk.QAVFHUTW.js} +1 -1
- package/cdn/chunks/{chunk.UTGGMWFM.js → chunk.QI3Z34F3.js} +1 -1
- package/cdn/chunks/{chunk.NKGRPMTB.js → chunk.QI6C4MCQ.js} +1 -1
- package/cdn/chunks/{chunk.DRFY3ZYD.js → chunk.RBCREK7M.js} +1 -1
- package/cdn/chunks/{chunk.6UZBVLUM.js → chunk.RO655SBI.js} +2 -2
- package/cdn/chunks/{chunk.6GRHC4QP.js → chunk.S442ESGW.js} +42 -1
- package/cdn/chunks/{chunk.JNSLHUG6.js → chunk.SCX733LL.js} +1 -1
- package/cdn/chunks/{chunk.AJTIXDGD.js → chunk.SD5OYXQH.js} +1 -1
- package/cdn/chunks/{chunk.OSDQDIQK.js → chunk.SI2RABQ3.js} +4 -3
- package/cdn/chunks/{chunk.7RUDZBEW.js → chunk.SJYXVRVE.js} +7 -9
- package/cdn/chunks/{chunk.ZHVVHTSA.js → chunk.SM32TV36.js} +1 -1
- package/cdn/chunks/{chunk.ZIGZ3NHX.js → chunk.SWEVWWU3.js} +4 -4
- package/cdn/chunks/chunk.TQA5AU7V.js +186 -0
- package/cdn/chunks/{chunk.SZP4NECR.js → chunk.UIDRD6XW.js} +0 -5
- package/cdn/chunks/{chunk.PSEUH4XD.js → chunk.UIHXF3PF.js} +1 -1
- package/cdn/chunks/{chunk.7JJC4KJM.js → chunk.UMGPQSGY.js} +1 -2
- package/cdn/chunks/{chunk.WZ7EIGZK.js → chunk.VB6ZFHSB.js} +1 -1
- package/cdn/chunks/{chunk.Z67R2PEC.js → chunk.VCFEF4I5.js} +11 -0
- package/cdn/chunks/{chunk.ZKSQCNM3.js → chunk.VFOTKDNC.js} +1 -1
- package/cdn/chunks/chunk.VJ5PVQ2X.js +93 -0
- package/cdn/chunks/{chunk.TTEJCKML.js → chunk.VZ6BTUIZ.js} +1 -1
- package/cdn/chunks/{chunk.PN4WLCJ3.js → chunk.W6E5ULU7.js} +11 -8
- package/cdn/chunks/chunk.WFSNJLGP.js +50 -0
- package/cdn/chunks/{chunk.ITVH52VV.js → chunk.WZMY5NAQ.js} +1 -1
- package/cdn/chunks/{chunk.PYSLOYV4.js → chunk.XGEEGV5B.js} +1 -1
- package/cdn/chunks/{chunk.4GD5XLM6.js → chunk.XPDOQQDL.js} +8 -1
- package/cdn/chunks/{chunk.JXSDPG7W.js → chunk.XTZ2D4IK.js} +1 -1
- package/cdn/chunks/{chunk.LBZAIC7T.js → chunk.YHV2WTJ7.js} +1 -1
- package/cdn/chunks/{chunk.DUVDKUAG.js → chunk.YJD2UDAJ.js} +1 -1
- package/cdn/chunks/{chunk.53B47UTB.js → chunk.YSA4DTJQ.js} +2 -1
- package/cdn/chunks/{chunk.7ZWULAGR.js → chunk.Z6MSABHO.js} +1 -3
- package/cdn/chunks/{chunk.NTBWT2CY.js → chunk.ZHOXGYKI.js} +1 -1
- package/cdn/chunks/{chunk.4NCJ5UUW.js → chunk.ZI6HZEZQ.js} +1 -2
- package/cdn/components/accordion/accordion.js +3 -3
- package/cdn/components/accordion/accordion.styles.js +1 -1
- package/cdn/components/accordion-group/accordion-group.js +4 -4
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/badge/badge.js +2 -2
- package/cdn/components/badge/badge.styles.js +1 -1
- package/cdn/components/breadcrumb/breadcrumb.js +2 -2
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/cdn/components/button/button.js +3 -3
- package/cdn/components/calendar/calendar.js +2 -2
- package/cdn/components/callout/callout.js +2 -2
- package/cdn/components/card-content/card-content.d.ts +1 -1
- package/cdn/components/card-content/card-content.js +2 -2
- package/cdn/components/card-content/card-content.styles.js +1 -1
- package/cdn/components/card-nav-accordion/card-nav-accordion.js +2 -2
- package/cdn/components/checkbox/checkbox.js +8 -8
- package/cdn/components/checkbox/checkbox.styles.js +2 -2
- package/cdn/components/checkbox-button/checkbox-button.js +7 -7
- package/cdn/components/checkbox-group/checkbox-group.js +6 -6
- package/cdn/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/cdn/components/combobox/combobox.js +14 -13
- package/cdn/components/combobox/combobox.styles.js +2 -2
- package/cdn/components/dialog/dialog.js +4 -4
- package/cdn/components/drawer/drawer.js +4 -4
- package/cdn/components/dropdown/dropdown.js +2 -2
- package/cdn/components/error-message-panel/error-message-panel.js +2 -2
- package/cdn/components/error-text/error-text.d.ts +2 -0
- package/cdn/components/error-text/error-text.js +2 -2
- package/cdn/components/error-text/error-text.styles.js +1 -1
- package/cdn/components/error-text/error-text.utils.d.ts +1 -1
- package/cdn/components/error-text/error-text.utils.js +1 -1
- package/cdn/components/fieldset/fieldset.js +1 -1
- package/cdn/components/file-upload/file-upload.js +7 -7
- package/cdn/components/file-upload/file-upload.styles.js +2 -2
- package/cdn/components/file-upload-item/file-upload-item.js +4 -4
- package/cdn/components/filter-button/filter-button.js +4 -4
- package/cdn/components/filter-counter/filter-counter.js +26 -26
- package/cdn/components/filter-date/filter-date.js +11 -11
- package/cdn/components/filter-range/filter-range.js +26 -26
- package/cdn/components/filter-select/filter-select.js +27 -27
- package/cdn/components/footer/footer.js +2 -2
- package/cdn/components/format-bytes/format-bytes.js +2 -2
- package/cdn/components/format-date/format-date.js +2 -2
- package/cdn/components/format-number/format-number.js +2 -2
- package/cdn/components/header/header.js +2 -2
- package/cdn/components/header-search/header-search.d.ts +7 -9
- package/cdn/components/header-search/header-search.js +12 -7
- package/cdn/components/header-search/header-search.styles.js +1 -1
- package/cdn/components/icon-button/icon-button.d.ts +2 -0
- package/cdn/components/icon-button/icon-button.js +2 -2
- package/cdn/components/icon-button/icon-button.styles.js +1 -1
- package/cdn/components/input/input.js +19 -19
- package/cdn/components/input-amount/input-amount.js +12 -12
- package/cdn/components/input-amount/input-amount.styles.js +3 -3
- package/cdn/components/input-date/input-date.d.ts +1 -1
- package/cdn/components/input-date/input-date.js +14 -14
- package/cdn/components/input-date/input-date.styles.js +3 -3
- package/cdn/components/input-mask/input-mask.js +10 -10
- package/cdn/components/input-mask/input-mask.styles.js +3 -3
- package/cdn/components/input-native/input-native.js +12 -12
- package/cdn/components/input-native/input-native.styles.js +3 -3
- package/cdn/components/input-otp/input-otp.js +10 -10
- package/cdn/components/input-otp/input-otp.styles.js +2 -2
- package/cdn/components/input-phone/input-phone.js +17 -16
- package/cdn/components/input-phone/input-phone.styles.js +2 -2
- package/cdn/components/input-time/input-time.d.ts +1 -1
- package/cdn/components/input-time/input-time.js +12 -12
- package/cdn/components/input-time/input-time.styles.js +3 -3
- package/cdn/components/menu-accordion/menu-accordion.d.ts +16 -1
- package/cdn/components/menu-accordion/menu-accordion.js +7 -3
- package/cdn/components/menu-accordion/menu-accordion.styles.js +1 -1
- package/cdn/components/menu-item/menu-item.d.ts +7 -2
- package/cdn/components/menu-item/menu-item.js +11 -8
- package/cdn/components/menu-item/menu-item.styles.js +1 -1
- package/cdn/components/menu-label/menu-label.js +2 -2
- package/cdn/components/menu-label/menu-label.styles.js +1 -1
- package/cdn/components/menu-navigation/menu-navigation.js +1 -1
- package/cdn/components/navbar-link/navbar-link.js +1 -1
- package/cdn/components/navbar-menu/navbar-menu.js +3 -3
- package/cdn/components/option/option.js +2 -2
- package/cdn/components/page-header/page-header.d.ts +2 -0
- package/cdn/components/page-header/page-header.js +2 -2
- package/cdn/components/page-header/page-header.styles.js +1 -1
- package/cdn/components/pagination/pagination.js +20 -20
- package/cdn/components/profile-button/profile-button.js +4 -4
- package/cdn/components/progress-bar/progress-bar.js +2 -2
- package/cdn/components/quote/quote.js +2 -2
- package/cdn/components/radio-button/radio-button.js +7 -7
- package/cdn/components/radio-card/radio-card.js +7 -7
- package/cdn/components/radio-group/radio-group.js +6 -6
- package/cdn/components/radio-group/radio-group.styles.js +2 -2
- package/cdn/components/relative-time/relative-time.js +2 -2
- package/cdn/components/search/search.d.ts +58 -0
- package/cdn/components/search/search.js +33 -0
- package/cdn/components/search/search.styles.d.ts +2 -0
- package/cdn/components/search/search.styles.js +10 -0
- package/cdn/components/select/select.js +13 -12
- package/cdn/components/select/select.styles.js +2 -2
- package/cdn/components/sidenav/sidenav.d.ts +49 -0
- package/cdn/components/sidenav/sidenav.js +32 -0
- package/cdn/components/sidenav/sidenav.styles.d.ts +2 -0
- package/cdn/components/sidenav/sidenav.styles.js +10 -0
- package/cdn/components/skip-links/skip-links.js +2 -2
- package/cdn/components/spinner/spinner.js +2 -2
- package/cdn/components/split-panel/split-panel.js +2 -2
- package/cdn/components/step/step.js +3 -3
- package/cdn/components/switch/switch.d.ts +4 -0
- package/cdn/components/switch/switch.js +4 -4
- package/cdn/components/switch/switch.styles.js +1 -1
- package/cdn/components/tab/tab.js +4 -4
- package/cdn/components/tab-group/tab-group.js +4 -4
- package/cdn/components/table-action/table-action.d.ts +0 -1
- package/cdn/components/table-action/table-action.js +3 -4
- package/cdn/components/table-action/table-action.styles.js +1 -1
- package/cdn/components/table-body/table-body.js +2 -2
- package/cdn/components/table-caption/table-caption.js +2 -2
- package/cdn/components/table-container/table-container.js +3 -3
- package/cdn/components/table-container/table-container.styles.js +1 -1
- package/cdn/components/table-header-cell/table-header-cell.js +2 -2
- package/cdn/components/table-header-row/table-header-row.d.ts +2 -0
- package/cdn/components/table-header-row/table-header-row.js +16 -16
- package/cdn/components/table-of-contents/table-of-contents.js +2 -2
- package/cdn/components/table-row/table-row.js +12 -12
- package/cdn/components/tag/tag-variants.d.ts +2 -0
- package/cdn/components/tag/tag-variants.js +9 -0
- package/cdn/components/tag/tag.d.ts +2 -1
- package/cdn/components/tag/tag.js +6 -5
- package/cdn/components/tag/tag.styles.js +1 -1
- package/cdn/components/textarea/textarea.js +7 -7
- package/cdn/components/textarea/textarea.styles.js +2 -2
- package/cdn/components/tooltip/tooltip.js +2 -2
- package/cdn/components/tree/tree.d.ts +0 -1
- package/cdn/components/tree/tree.js +13 -13
- package/cdn/components/tree-item/tree-item.js +12 -12
- package/cdn/components/tree-item/tree-item.styles.js +1 -1
- package/cdn/custom-elements.json +1264 -580
- package/cdn/design-system.d.ts +2 -0
- package/cdn/design-system.js +168 -157
- package/cdn/internal/components/form-control/form-control-layout.d.ts +1 -1
- package/cdn/internal/components/form-control/form-control-layout.js +2 -1
- package/cdn/internal/components/input-base/input-base.styles.js +41 -0
- package/cdn/styles/form-control.styles.js +11 -0
- package/cdn/themes/dsa-wc-theme.css +229 -131
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +233 -113
- 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/localize.d.ts +3 -0
- package/cdn/utilities/localize.js +1 -1
- package/cdn/vscode.html-custom-data.json +114 -42
- package/cdn/web-types.json +467 -60
- package/dist/chunks/chunk.2BFULL4S.js +91 -0
- package/dist/chunks/{chunk.MIYT3FL6.js → chunk.2X26TEKN.js} +1 -1
- package/dist/chunks/{chunk.L6W3CYD4.js → chunk.3ZD3V2KP.js} +3 -3
- package/dist/chunks/{chunk.JON4U643.js → chunk.42QDYDUA.js} +7 -0
- package/dist/chunks/{chunk.NLA75JL2.js → chunk.4EHJHIX6.js} +1 -1
- package/dist/chunks/chunk.4UJ22ZMT.js +180 -0
- package/dist/chunks/{chunk.2M2IP243.js → chunk.5AUORSHY.js} +3 -3
- package/dist/chunks/{chunk.5R72UMFK.js → chunk.5FNJFIAP.js} +1 -2
- package/dist/chunks/{chunk.22OCLFM3.js → chunk.5NAZU6VJ.js} +1 -1
- package/dist/chunks/{chunk.BND7D2NW.js → chunk.5NUD3TZO.js} +0 -5
- package/dist/chunks/{chunk.XCN5K2XF.js → chunk.5P4H33F3.js} +1 -1
- package/dist/chunks/{chunk.AUFE5P4K.js → chunk.64JDAZJD.js} +1 -1
- package/dist/chunks/{chunk.VQE5HKSZ.js → chunk.6BNYXFNI.js} +42 -1
- package/dist/chunks/{chunk.TMEVQJFZ.js → chunk.6OU7PEJ7.js} +1 -1
- package/dist/chunks/{chunk.IZBHR7GP.js → chunk.6QDM5FUA.js} +3 -2
- package/dist/chunks/{chunk.F5YZY7IA.js → chunk.6WYYBTGI.js} +1 -1
- package/dist/chunks/{chunk.WFE6XYFE.js → chunk.75YDRKLZ.js} +1 -1
- package/dist/chunks/{chunk.4WSA3PVB.js → chunk.7DOBADZS.js} +8 -1
- package/dist/chunks/{chunk.KCCJOS36.js → chunk.7IDXYS74.js} +1 -1
- package/dist/chunks/{chunk.XE4ZWLIV.js → chunk.A3C6TXYJ.js} +1 -1
- package/dist/chunks/{chunk.4W3KHK6H.js → chunk.ACK66ARL.js} +11 -3
- package/dist/chunks/{chunk.F5MJDN3I.js → chunk.APAY54SU.js} +2 -2
- package/dist/chunks/{chunk.UASOW27F.js → chunk.ASXUQYKD.js} +8 -19
- package/dist/chunks/{chunk.V4QSKSKY.js → chunk.AV4NDZ53.js} +3 -3
- package/dist/chunks/{chunk.C7BO57Z2.js → chunk.AZSX7X74.js} +1 -1
- package/dist/chunks/{chunk.X2YGBYH3.js → chunk.B2VWC53K.js} +85 -28
- package/dist/chunks/{chunk.WQ2FYG4C.js → chunk.BGECKQA7.js} +7 -4
- package/dist/chunks/{chunk.F5ZP4HRG.js → chunk.BIOPGPFI.js} +4 -4
- package/dist/chunks/{chunk.S6U34E3B.js → chunk.BKVGENKT.js} +1 -1
- package/dist/chunks/{chunk.5R6YK6UH.js → chunk.BN2N444O.js} +2 -0
- package/dist/chunks/{chunk.YJFPZYLA.js → chunk.BOVPSNQV.js} +3 -3
- package/dist/chunks/{chunk.Q5LSLQYU.js → chunk.CISPPQE6.js} +24 -1
- package/dist/chunks/{chunk.WKVCQRI3.js → chunk.DAJGCL4G.js} +14 -14
- package/dist/chunks/{chunk.TRF5X2OX.js → chunk.DNAC7QQY.js} +1 -1
- package/dist/chunks/{chunk.DRDLQHBU.js → chunk.DRR77YKL.js} +8 -3
- package/dist/chunks/{chunk.HLW42LP2.js → chunk.EH4P2PAK.js} +1 -1
- package/dist/chunks/{chunk.6KQTEZWQ.js → chunk.EHTCYJUT.js} +11 -0
- package/dist/chunks/{chunk.TZTE7NZH.js → chunk.EVZPPU4T.js} +22 -92
- package/dist/chunks/{chunk.TGSYVYXC.js → chunk.EXD4UGIK.js} +8 -3
- package/dist/chunks/{chunk.4TZQFWYO.js → chunk.EXZKCBM2.js} +1 -1
- package/dist/chunks/{chunk.SQKLY4C5.js → chunk.FEJKESAK.js} +25 -1
- package/dist/chunks/{chunk.3DPENH5I.js → chunk.FUWX57HR.js} +1 -2
- package/dist/chunks/{chunk.KEJKTQP6.js → chunk.FX2CWZWY.js} +5 -0
- package/dist/chunks/{chunk.JRNQCQZ6.js → chunk.G2TZ2WRC.js} +2 -1
- package/dist/chunks/{chunk.BSQBGWA5.js → chunk.GZLUKU6W.js} +1 -1
- package/dist/chunks/{chunk.ZF4F6GS4.js → chunk.IY63XRZU.js} +1 -1
- package/dist/chunks/chunk.J7TEQIPK.js +197 -0
- package/dist/chunks/{chunk.DGRP6NIE.js → chunk.JOYIBNCU.js} +1 -1
- package/dist/chunks/{chunk.3XRQRY25.js → chunk.JSOEKBRU.js} +5 -1
- package/dist/chunks/{chunk.GU7M3YZL.js → chunk.KM2R3DVU.js} +1 -1
- package/dist/chunks/{chunk.QS6HEROR.js → chunk.KP4V4E7A.js} +25 -0
- package/dist/chunks/{chunk.4LRLYTU2.js → chunk.KZBMMXBH.js} +20 -0
- package/dist/chunks/{chunk.3VBHRND2.js → chunk.KZYUFD57.js} +35 -21
- package/dist/chunks/{chunk.MIOQ72YC.js → chunk.LF5OW4Q2.js} +1 -1
- package/dist/chunks/{chunk.3VPMYLIQ.js → chunk.LGIV2ORI.js} +1 -1
- package/dist/chunks/{chunk.Q4EYFRM4.js → chunk.LRK3TXL6.js} +1 -1
- package/dist/chunks/{chunk.JMI76HD4.js → chunk.LSXTU3B7.js} +3 -3
- package/dist/chunks/{chunk.4C27VRHP.js → chunk.LT57I36B.js} +1 -1
- package/dist/chunks/{chunk.KF3RQTZS.js → chunk.LTRUDJQX.js} +1 -1
- package/dist/chunks/{chunk.ALER4ICK.js → chunk.MBXPU4IH.js} +3 -3
- package/dist/chunks/{chunk.P6F4V2WC.js → chunk.MC4VR5SF.js} +1 -1
- package/dist/chunks/{chunk.NTZRDWUL.js → chunk.MGUTN2EW.js} +1 -1
- package/dist/chunks/{chunk.GCYENPC4.js → chunk.MHFU7RYF.js} +1 -1
- package/dist/chunks/{chunk.SK3KWU2I.js → chunk.N3JDTZGM.js} +6 -0
- package/dist/chunks/chunk.N3XLPLEX.js +218 -0
- package/dist/chunks/{chunk.7APL3BFH.js → chunk.NJPFD5VP.js} +2 -2
- package/dist/chunks/{chunk.KOVXCQ7N.js → chunk.NPBB5F3W.js} +11 -8
- package/dist/chunks/{chunk.6T2YC247.js → chunk.NUWANZB6.js} +4 -2
- package/dist/chunks/{chunk.YGWSCW2R.js → chunk.NZYYIPXD.js} +7 -2
- package/dist/chunks/{chunk.OXYSNELC.js → chunk.OALTSDOF.js} +1 -1
- package/dist/chunks/{chunk.JMC37GFN.js → chunk.OHHVC2MR.js} +1 -1
- package/dist/chunks/{chunk.G5UGZLXK.js → chunk.OMN7S5EJ.js} +1 -1
- package/dist/chunks/{chunk.RRF5FP5T.js → chunk.P5RLKSS2.js} +1 -1
- package/dist/chunks/{chunk.4H63REQH.js → chunk.PFEA4LHL.js} +4 -3
- package/dist/chunks/{chunk.LQFGKDZ2.js → chunk.PMOOV7DL.js} +5 -5
- package/dist/chunks/{chunk.UVHW7PER.js → chunk.Q6WSFDAH.js} +1 -1
- package/dist/chunks/{chunk.GSKMPYLG.js → chunk.QEXDSP5Y.js} +30 -0
- package/dist/chunks/{chunk.ZCC67O7A.js → chunk.QFLN5YC3.js} +1 -3
- package/dist/chunks/{chunk.KE2YIQBY.js → chunk.QMD3WQ6X.js} +1 -1
- package/dist/chunks/{chunk.O7CMVOYT.js → chunk.R6EZO2TX.js} +2 -16
- package/dist/chunks/{chunk.GAWEZKA4.js → chunk.RFVSJPI2.js} +1 -1
- package/dist/chunks/{chunk.WJVUWDD3.js → chunk.S2T7P35F.js} +1 -1
- package/dist/chunks/chunk.S55U4A2J.js +35 -0
- package/dist/chunks/{chunk.NWCZDJRW.js → chunk.S5KHLSIS.js} +2 -2
- package/dist/chunks/{chunk.3IO4OYE5.js → chunk.SHJWL34V.js} +2 -2
- package/dist/chunks/{chunk.LBL4MF5O.js → chunk.SLK36LT4.js} +11 -2
- package/dist/chunks/{chunk.D5NED4A7.js → chunk.SN6UWYPR.js} +1 -1
- package/dist/chunks/{chunk.5M3PNLFK.js → chunk.SQBBBPCT.js} +1 -1
- package/dist/chunks/{chunk.SQN6J7NO.js → chunk.TI4TWPK4.js} +12 -2
- package/dist/chunks/{chunk.SO24QHVD.js → chunk.TIOKAREG.js} +2 -2
- package/dist/chunks/{chunk.64WIFBWM.js → chunk.TRL4P2I3.js} +1 -1
- package/dist/chunks/{chunk.U4YHIBOA.js → chunk.TTKJ6GEE.js} +1 -1
- package/dist/chunks/{chunk.DIPKIYCI.js → chunk.U7YRSU64.js} +1 -1
- package/dist/chunks/chunk.UCEUZIH3.js +149 -0
- package/dist/chunks/{chunk.SWGCRIQY.js → chunk.UHB6OMQ5.js} +1 -1
- package/dist/chunks/{chunk.PKLEQQED.js → chunk.UJA4LKHS.js} +1 -1
- package/dist/chunks/{chunk.TL57GYVH.js → chunk.UXRWPABH.js} +5 -2
- package/dist/chunks/{chunk.2IZN2PB2.js → chunk.V4DBHCM5.js} +1 -1
- package/dist/chunks/{chunk.M4QIQSRQ.js → chunk.VIHLSHXH.js} +3 -3
- package/dist/chunks/{chunk.ECEBZG4J.js → chunk.VNSUZ3DB.js} +1 -1
- package/dist/chunks/{chunk.TQVU3XMF.js → chunk.VS3EEOTM.js} +1 -1
- package/dist/chunks/{chunk.T6GMY73C.js → chunk.WFPXD3HS.js} +5 -5
- package/dist/chunks/chunk.WFSNJLGP.js +50 -0
- package/dist/chunks/{chunk.HO5SDSRD.js → chunk.WKWUSTM5.js} +4 -3
- package/dist/chunks/{chunk.MZF3NKUN.js → chunk.WSUEW3PY.js} +1 -1
- package/dist/chunks/{chunk.4URWC2X6.js → chunk.WXIWEJWG.js} +1 -1
- package/dist/chunks/{chunk.IRB6RKPB.js → chunk.X62TO5PD.js} +7 -9
- package/dist/chunks/{chunk.CKLF64MV.js → chunk.XSOVJYEE.js} +8 -3
- package/dist/chunks/{chunk.NZK2GET6.js → chunk.XUF2TGYG.js} +2 -3
- package/dist/chunks/{chunk.Q554T7OG.js → chunk.XZ3J3IG7.js} +2 -2
- package/dist/chunks/{chunk.7Y6EREAO.js → chunk.Y5ZRM5BM.js} +1 -1
- package/dist/chunks/{chunk.QNSYKNEY.js → chunk.Y73QDSJF.js} +1 -2
- package/dist/chunks/{chunk.EI5YI3SN.js → chunk.YITLAHPM.js} +7 -9
- package/dist/chunks/{chunk.FFOGTR5J.js → chunk.YKFBADA2.js} +1 -1
- package/dist/chunks/{chunk.P4RIY6RD.js → chunk.Z6Q46NWH.js} +1 -1
- package/dist/chunks/{chunk.EUAQCNT2.js → chunk.ZEDZQGWQ.js} +1 -1
- package/dist/chunks/{chunk.GM2K57YA.js → chunk.ZNBZAGXP.js} +1 -1
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/accordion-group/accordion-group.js +4 -4
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/badge/badge.styles.js +1 -1
- 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/callout/callout.js +2 -2
- package/dist/components/card-content/card-content.d.ts +1 -1
- package/dist/components/card-content/card-content.js +2 -2
- package/dist/components/card-content/card-content.styles.js +1 -1
- package/dist/components/card-nav-accordion/card-nav-accordion.js +2 -2
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/checkbox-button/checkbox-button.js +7 -7
- package/dist/components/checkbox-group/checkbox-group.js +6 -6
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/combobox/combobox.js +14 -13
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/dialog/dialog.js +4 -4
- package/dist/components/drawer/drawer.js +4 -4
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +2 -2
- package/dist/components/error-text/error-text.d.ts +2 -0
- package/dist/components/error-text/error-text.js +2 -2
- package/dist/components/error-text/error-text.styles.js +1 -1
- package/dist/components/error-text/error-text.utils.d.ts +1 -1
- package/dist/components/error-text/error-text.utils.js +1 -1
- package/dist/components/fieldset/fieldset.js +1 -1
- package/dist/components/file-upload/file-upload.js +7 -7
- package/dist/components/file-upload/file-upload.styles.js +2 -2
- package/dist/components/file-upload-item/file-upload-item.js +4 -4
- package/dist/components/filter-button/filter-button.js +4 -4
- package/dist/components/filter-counter/filter-counter.js +26 -26
- package/dist/components/filter-date/filter-date.js +11 -11
- package/dist/components/filter-range/filter-range.js +26 -26
- package/dist/components/filter-select/filter-select.js +27 -27
- 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.js +2 -2
- package/dist/components/header-search/header-search.d.ts +7 -9
- package/dist/components/header-search/header-search.js +12 -7
- package/dist/components/header-search/header-search.styles.js +1 -1
- package/dist/components/icon-button/icon-button.d.ts +2 -0
- package/dist/components/icon-button/icon-button.js +2 -2
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.js +19 -19
- package/dist/components/input-amount/input-amount.js +12 -12
- package/dist/components/input-amount/input-amount.styles.js +3 -3
- package/dist/components/input-date/input-date.d.ts +1 -1
- package/dist/components/input-date/input-date.js +14 -14
- package/dist/components/input-date/input-date.styles.js +3 -3
- package/dist/components/input-mask/input-mask.js +10 -10
- package/dist/components/input-mask/input-mask.styles.js +3 -3
- package/dist/components/input-native/input-native.js +12 -12
- package/dist/components/input-native/input-native.styles.js +3 -3
- package/dist/components/input-otp/input-otp.js +10 -10
- package/dist/components/input-otp/input-otp.styles.js +2 -2
- package/dist/components/input-phone/input-phone.js +17 -16
- package/dist/components/input-phone/input-phone.styles.js +2 -2
- package/dist/components/input-time/input-time.d.ts +1 -1
- package/dist/components/input-time/input-time.js +12 -12
- package/dist/components/input-time/input-time.styles.js +3 -3
- package/dist/components/menu-accordion/menu-accordion.d.ts +16 -1
- package/dist/components/menu-accordion/menu-accordion.js +7 -3
- package/dist/components/menu-accordion/menu-accordion.styles.js +1 -1
- package/dist/components/menu-item/menu-item.d.ts +7 -2
- package/dist/components/menu-item/menu-item.js +10 -8
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-label/menu-label.js +2 -2
- package/dist/components/menu-label/menu-label.styles.js +1 -1
- package/dist/components/menu-navigation/menu-navigation.js +1 -1
- package/dist/components/navbar-link/navbar-link.js +1 -1
- package/dist/components/navbar-menu/navbar-menu.js +3 -3
- package/dist/components/option/option.js +2 -2
- package/dist/components/page-header/page-header.d.ts +2 -0
- package/dist/components/page-header/page-header.js +2 -2
- package/dist/components/page-header/page-header.styles.js +1 -1
- package/dist/components/pagination/pagination.js +20 -20
- package/dist/components/profile-button/profile-button.js +4 -4
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/quote/quote.js +2 -2
- package/dist/components/radio-button/radio-button.js +7 -7
- package/dist/components/radio-card/radio-card.js +7 -7
- package/dist/components/radio-group/radio-group.js +6 -6
- package/dist/components/radio-group/radio-group.styles.js +2 -2
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/search/search.d.ts +58 -0
- package/dist/components/search/search.js +26 -0
- package/dist/components/search/search.styles.d.ts +2 -0
- package/dist/components/search/search.styles.js +8 -0
- package/dist/components/select/select.js +13 -12
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/sidenav/sidenav.d.ts +49 -0
- package/dist/components/sidenav/sidenav.js +28 -0
- package/dist/components/sidenav/sidenav.styles.d.ts +2 -0
- package/dist/components/sidenav/sidenav.styles.js +8 -0
- 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 +3 -3
- package/dist/components/switch/switch.d.ts +4 -0
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.js +4 -4
- package/dist/components/tab-group/tab-group.js +4 -4
- package/dist/components/table-action/table-action.d.ts +0 -1
- package/dist/components/table-action/table-action.js +3 -4
- package/dist/components/table-action/table-action.styles.js +1 -1
- package/dist/components/table-body/table-body.js +2 -2
- package/dist/components/table-caption/table-caption.js +2 -2
- package/dist/components/table-container/table-container.js +3 -3
- package/dist/components/table-container/table-container.styles.js +1 -1
- package/dist/components/table-header-cell/table-header-cell.js +2 -2
- package/dist/components/table-header-row/table-header-row.d.ts +2 -0
- package/dist/components/table-header-row/table-header-row.js +16 -16
- package/dist/components/table-of-contents/table-of-contents.js +2 -2
- package/dist/components/table-row/table-row.js +12 -12
- package/dist/components/tag/tag-variants.d.ts +2 -0
- package/dist/components/tag/tag-variants.js +9 -0
- package/dist/components/tag/tag.d.ts +2 -1
- package/dist/components/tag/tag.js +6 -5
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.js +7 -7
- package/dist/components/textarea/textarea.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.d.ts +0 -1
- package/dist/components/tree/tree.js +13 -13
- package/dist/components/tree-item/tree-item.js +12 -12
- package/dist/components/tree-item/tree-item.styles.js +1 -1
- package/dist/custom-elements.json +1264 -580
- package/dist/design-system.d.ts +2 -0
- package/dist/design-system.js +168 -157
- package/dist/internal/components/form-control/form-control-layout.d.ts +1 -1
- package/dist/internal/components/form-control/form-control-layout.js +2 -1
- package/dist/internal/components/input-base/input-base.styles.js +41 -0
- package/dist/styles/form-control.styles.js +11 -0
- package/dist/themes/dsa-wc-theme.css +229 -131
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +233 -113
- 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/localize.d.ts +3 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +114 -42
- package/dist/web-types.json +467 -60
- package/package.json +2 -2
- package/cdn/chunks/chunk.4NTCF65I.js +0 -91
- package/cdn/chunks/chunk.BPTOLQO5.js +0 -94
- package/dist/chunks/chunk.HRIAHWFV.js +0 -89
- package/dist/chunks/chunk.JGDAZAC5.js +0 -92
- package/cdn/chunks/{chunk.RUOVZAV3.js → chunk.PPXDIPEB.js} +3 -3
- package/cdn/chunks/{chunk.UTRP3G7E.js → chunk.QMXNHAS2.js} +3 -3
- package/dist/chunks/{chunk.GEWIMBEO.js → chunk.7QLR3F26.js} +3 -3
- package/dist/chunks/{chunk.CYT2OFOL.js → chunk.BHYZVOLJ.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
menu_accordion_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.UCEUZIH3.js";
|
|
4
4
|
import {
|
|
5
5
|
HasSlotController
|
|
6
6
|
} from "./chunk.YIY5RM53.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk.PWL7QCVG.js";
|
|
22
22
|
import {
|
|
23
23
|
LocalizeController
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.N3JDTZGM.js";
|
|
25
25
|
import {
|
|
26
26
|
watch
|
|
27
27
|
} from "./chunk.NOMN6DGD.js";
|
|
@@ -40,19 +40,23 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super(...arguments);
|
|
42
42
|
this.localize = new LocalizeController(this);
|
|
43
|
-
this.hasSlotController = new HasSlotController(
|
|
43
|
+
this.hasSlotController = new HasSlotController(
|
|
44
|
+
this,
|
|
45
|
+
"prefix",
|
|
46
|
+
"summary"
|
|
47
|
+
);
|
|
44
48
|
this.open = false;
|
|
49
|
+
this.size = "medium";
|
|
45
50
|
this.level = 1;
|
|
51
|
+
this.collapsed = false;
|
|
46
52
|
}
|
|
47
53
|
connectedCallback() {
|
|
48
54
|
super.connectedCallback();
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
menuNavigation == null ? void 0 : menuNavigation.classList.add("level-2");
|
|
55
|
-
}
|
|
55
|
+
const menuNavigation = this.querySelector(
|
|
56
|
+
"dsa-menu-navigation"
|
|
57
|
+
);
|
|
58
|
+
if (menuNavigation !== null) {
|
|
59
|
+
menuNavigation == null ? void 0 : menuNavigation.classList.add(this.level === 2 ? "level-2" : "level-1");
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
firstUpdated() {
|
|
@@ -85,6 +89,16 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
85
89
|
this.show();
|
|
86
90
|
}
|
|
87
91
|
}
|
|
92
|
+
/** Returns a text label based on the contents of the summary slot. */
|
|
93
|
+
getTextSummary() {
|
|
94
|
+
var _a, _b;
|
|
95
|
+
const nodes = (_b = (_a = this.summarySlot) == null ? void 0 : _a.assignedNodes({ flatten: true })) != null ? _b : [];
|
|
96
|
+
let text = "";
|
|
97
|
+
[...nodes].forEach((node) => {
|
|
98
|
+
text += node.textContent;
|
|
99
|
+
});
|
|
100
|
+
return text;
|
|
101
|
+
}
|
|
88
102
|
async handleOpenChange() {
|
|
89
103
|
if (this.open) {
|
|
90
104
|
const slShow = this.emit("dsa-show", { cancelable: true });
|
|
@@ -94,6 +108,7 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
94
108
|
}
|
|
95
109
|
await stopAnimations(this.body);
|
|
96
110
|
this.body.hidden = false;
|
|
111
|
+
await this.updateComplete;
|
|
97
112
|
const { keyframes, options } = getAnimation(this, "accordion.show", {
|
|
98
113
|
dir: this.localize.dir()
|
|
99
114
|
});
|
|
@@ -136,6 +151,10 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
136
151
|
}
|
|
137
152
|
}
|
|
138
153
|
}
|
|
154
|
+
async handleExpandedChange() {
|
|
155
|
+
await this.updateComplete;
|
|
156
|
+
this.firstUpdated();
|
|
157
|
+
}
|
|
139
158
|
/** Shows the accordion. */
|
|
140
159
|
async show() {
|
|
141
160
|
if (this.open) {
|
|
@@ -152,7 +171,17 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
152
171
|
this.open = false;
|
|
153
172
|
return await waitForEvent(this, "dsa-after-hide");
|
|
154
173
|
}
|
|
174
|
+
focus(options) {
|
|
175
|
+
this.headerButton.focus(options);
|
|
176
|
+
}
|
|
177
|
+
blur() {
|
|
178
|
+
this.headerButton.blur();
|
|
179
|
+
}
|
|
180
|
+
click() {
|
|
181
|
+
this.headerButton.click();
|
|
182
|
+
}
|
|
155
183
|
render() {
|
|
184
|
+
var _a;
|
|
156
185
|
if (!this.summary && !this.hasSlotController.test("summary")) {
|
|
157
186
|
a11yWarning(
|
|
158
187
|
"<dsa-menu-accordion> requires a summary attribute or a summary slot for accessibility"
|
|
@@ -165,31 +194,47 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
165
194
|
"menu-accordion": true,
|
|
166
195
|
"menu-accordion--open": this.open,
|
|
167
196
|
"menu-accordion--chevron": true,
|
|
168
|
-
"menu-accordion--
|
|
197
|
+
"menu-accordion--small": this.size === "small",
|
|
198
|
+
"menu-accordion--medium": this.size === "medium",
|
|
199
|
+
"menu-accordion--large": this.size === "large",
|
|
200
|
+
"menu-accordion--level-2": this.level === 2,
|
|
201
|
+
"menu-accordion--collapsed": this.collapsed
|
|
169
202
|
})}
|
|
170
203
|
>
|
|
171
204
|
<div part="header" id="header" class="menu-accordion__header">
|
|
172
|
-
<
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
@click=${this.handleSummaryClick}
|
|
177
|
-
@keydown=${this.handleSummaryKeyDown}
|
|
178
|
-
class="menu-accordion__header-button"
|
|
179
|
-
tabindex="0"
|
|
205
|
+
<dsa-tooltip
|
|
206
|
+
placement="right"
|
|
207
|
+
?disabled=${!this.collapsed}
|
|
208
|
+
content=${(_a = this.getTextSummary()) != null ? _a : this.summary}
|
|
180
209
|
>
|
|
181
|
-
<
|
|
182
|
-
|
|
210
|
+
<span
|
|
211
|
+
role="button"
|
|
212
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
213
|
+
aria-controls="content"
|
|
214
|
+
@click=${this.handleSummaryClick}
|
|
215
|
+
@keydown=${this.handleSummaryKeyDown}
|
|
216
|
+
class="menu-accordion__header-button"
|
|
217
|
+
tabindex="0"
|
|
183
218
|
>
|
|
219
|
+
<slot
|
|
220
|
+
name="prefix"
|
|
221
|
+
part="prefix"
|
|
222
|
+
class="menu-accordion__prefix"
|
|
223
|
+
></slot>
|
|
224
|
+
<slot name="summary" class="menu-accordion__summary"
|
|
225
|
+
>${this.summary}</slot
|
|
226
|
+
>
|
|
227
|
+
<slot name="badge" class="menu-accordion__badge"></slot>
|
|
184
228
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
229
|
+
<span part="summary-icon" class="menu-accordion__summary-icon">
|
|
230
|
+
<dsa-icon
|
|
231
|
+
class="menu-accordion__expand-icon"
|
|
232
|
+
name="expand_more"
|
|
233
|
+
library="system"
|
|
234
|
+
></dsa-icon>
|
|
235
|
+
</span>
|
|
191
236
|
</span>
|
|
192
|
-
</
|
|
237
|
+
</dsa-tooltip>
|
|
193
238
|
</div>
|
|
194
239
|
|
|
195
240
|
<div class="menu-accordion__body">
|
|
@@ -205,6 +250,9 @@ var DSAMenuAccordion = class extends ShoelaceElement {
|
|
|
205
250
|
}
|
|
206
251
|
};
|
|
207
252
|
DSAMenuAccordion.styles = menu_accordion_styles_default;
|
|
253
|
+
__decorateClass([
|
|
254
|
+
query("slot[name=summary]")
|
|
255
|
+
], DSAMenuAccordion.prototype, "summarySlot", 2);
|
|
208
256
|
__decorateClass([
|
|
209
257
|
query(".menu-accordion")
|
|
210
258
|
], DSAMenuAccordion.prototype, "accordion", 2);
|
|
@@ -220,15 +268,24 @@ __decorateClass([
|
|
|
220
268
|
__decorateClass([
|
|
221
269
|
property()
|
|
222
270
|
], DSAMenuAccordion.prototype, "summary", 2);
|
|
271
|
+
__decorateClass([
|
|
272
|
+
property({ reflect: true })
|
|
273
|
+
], DSAMenuAccordion.prototype, "size", 2);
|
|
223
274
|
__decorateClass([
|
|
224
275
|
property({ type: Number })
|
|
225
276
|
], DSAMenuAccordion.prototype, "level", 2);
|
|
277
|
+
__decorateClass([
|
|
278
|
+
property({ type: Boolean, reflect: true })
|
|
279
|
+
], DSAMenuAccordion.prototype, "collapsed", 2);
|
|
226
280
|
__decorateClass([
|
|
227
281
|
watch("open", { waitUntilFirstUpdate: true })
|
|
228
282
|
], DSAMenuAccordion.prototype, "handleOpenChange", 1);
|
|
229
283
|
__decorateClass([
|
|
230
284
|
watch("level", { waitUntilFirstUpdate: true })
|
|
231
285
|
], DSAMenuAccordion.prototype, "handleLevelChange", 1);
|
|
286
|
+
__decorateClass([
|
|
287
|
+
watch("expanded", { waitUntilFirstUpdate: true })
|
|
288
|
+
], DSAMenuAccordion.prototype, "handleExpandedChange", 1);
|
|
232
289
|
DSAMenuAccordion = __decorateClass([
|
|
233
290
|
customElement("dsa-menu-accordion")
|
|
234
291
|
], DSAMenuAccordion);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSATableRow
|
|
3
|
+
} from "./chunk.OALTSDOF.js";
|
|
1
4
|
import {
|
|
2
5
|
table_header_row_styles_default
|
|
3
6
|
} from "./chunk.GI3JNOHH.js";
|
|
4
|
-
import {
|
|
5
|
-
DSATableRow
|
|
6
|
-
} from "./chunk.OXYSNELC.js";
|
|
7
7
|
import {
|
|
8
8
|
__decorateClass
|
|
9
9
|
} from "./chunk.S3NI7NKU.js";
|
|
10
10
|
|
|
11
11
|
// src/components/table-header-row/table-header-row.ts
|
|
12
12
|
import { html } from "lit";
|
|
13
|
-
import { customElement } from "lit/decorators.js";
|
|
13
|
+
import { customElement, query } from "lit/decorators.js";
|
|
14
14
|
var DSATableHeaderRow = class extends DSATableRow {
|
|
15
15
|
handleCheckboxChange() {
|
|
16
16
|
this.selected = this.checkbox.checked;
|
|
@@ -52,6 +52,9 @@ var DSATableHeaderRow = class extends DSATableRow {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
DSATableHeaderRow.styles = table_header_row_styles_default;
|
|
55
|
+
__decorateClass([
|
|
56
|
+
query(".checkbox")
|
|
57
|
+
], DSATableHeaderRow.prototype, "selectAllCheckbox", 2);
|
|
55
58
|
DSATableHeaderRow = __decorateClass([
|
|
56
59
|
customElement("dsa-table-header-row")
|
|
57
60
|
], DSATableHeaderRow);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getStepIcon
|
|
3
|
-
} from "./chunk.CCTWXABH.js";
|
|
4
1
|
import {
|
|
5
2
|
step_styles_default
|
|
6
3
|
} from "./chunk.Q35Y6PN4.js";
|
|
4
|
+
import {
|
|
5
|
+
getStepIcon
|
|
6
|
+
} from "./chunk.CCTWXABH.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.YIY5RM53.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.PWL7QCVG.js";
|
|
13
13
|
import {
|
|
14
14
|
LocalizeController
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.N3JDTZGM.js";
|
|
16
16
|
import {
|
|
17
17
|
ShoelaceElement
|
|
18
18
|
} from "./chunk.XZ5FE34T.js";
|
|
@@ -63,6 +63,7 @@ var badge_styles_default = css`
|
|
|
63
63
|
font: var(--dsa-wc-badge-small-font);
|
|
64
64
|
padding: var(--dsa-wc-badge-text-small-padding);
|
|
65
65
|
min-width: var(--dsa-wc-badge-text-small-min-width);
|
|
66
|
+
line-height: 1;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
.badge--medium {
|
|
@@ -72,6 +73,7 @@ var badge_styles_default = css`
|
|
|
72
73
|
font: var(--dsa-wc-badge-medium-font);
|
|
73
74
|
padding: var(--dsa-wc-badge-text-medium-padding);
|
|
74
75
|
min-width: var(--dsa-wc-badge-text-medium-min-width);
|
|
76
|
+
line-height: 1;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
/* Pulse modifier */
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
} from "./chunk.ODOHKR6J.js";
|
|
7
7
|
import {
|
|
8
8
|
input_amount_styles_default
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.A3C6TXYJ.js";
|
|
10
10
|
import {
|
|
11
11
|
InputBase
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.AZSX7X74.js";
|
|
13
13
|
import {
|
|
14
14
|
ifDefinedAndNotEmpty
|
|
15
15
|
} from "./chunk.ZQJVCRB2.js";
|
|
16
16
|
import {
|
|
17
17
|
LocalizeController
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.N3JDTZGM.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.S3NI7NKU.js";
|
|
@@ -90,8 +90,11 @@ var card_content_styles_default = css`
|
|
|
90
90
|
-webkit-overflow-scrolling: touch;
|
|
91
91
|
font: var(--dsa-wc-card-body-font);
|
|
92
92
|
}
|
|
93
|
+
.card-content--medium .card-content__body {
|
|
94
|
+
padding: var(--dsa-wc-card-content-medium-body-padding);
|
|
95
|
+
}
|
|
93
96
|
.card-content--small .card-content__body {
|
|
94
|
-
padding: var(--dsa-wc-card-small-
|
|
97
|
+
padding: var(--dsa-wc-card-content-small-body-padding);
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
.card-content__header {
|
|
@@ -111,6 +114,9 @@ var card_content_styles_default = css`
|
|
|
111
114
|
display: flex;
|
|
112
115
|
gap: var(--dsa-spacing-12);
|
|
113
116
|
}
|
|
117
|
+
.card-content--medium .card-content__title_block, .card-content--small .card-content__title_block {
|
|
118
|
+
gap: var(--dsa-spacing-8);
|
|
119
|
+
}
|
|
114
120
|
|
|
115
121
|
/* Title text block */
|
|
116
122
|
.card-content__title-block-text {
|
|
@@ -128,6 +134,9 @@ var card_content_styles_default = css`
|
|
|
128
134
|
font: var(--dsa-wc-card-content-large-title-font);
|
|
129
135
|
}
|
|
130
136
|
|
|
137
|
+
.card-content--medium .card-content__title-block-text .card-content__title {
|
|
138
|
+
font: var(--dsa-wc-card-content-medium-title-font);
|
|
139
|
+
}
|
|
131
140
|
.card-content--small .card-content__title-block-text .card-content__title {
|
|
132
141
|
font: var(--dsa-wc-card-content-small-title-font);
|
|
133
142
|
}
|
|
@@ -137,6 +146,9 @@ var card_content_styles_default = css`
|
|
|
137
146
|
font: var(--dsa-wc-card-content-subtitle-font);
|
|
138
147
|
color: var(--dsa-wc-card-content-subtitle-text-color);
|
|
139
148
|
}
|
|
149
|
+
.card-content--small .card-content__title-block-text .card-content__subtitle {
|
|
150
|
+
font: var(--dsa-wc-card-content-small-subtitle-font);
|
|
151
|
+
}
|
|
140
152
|
|
|
141
153
|
/* Title icon */
|
|
142
154
|
.card-content__title-icon::slotted(*) {
|
|
@@ -144,6 +156,10 @@ var card_content_styles_default = css`
|
|
|
144
156
|
width: var(--dsa-wc-card-content-title-icon-size);
|
|
145
157
|
height: var(--dsa-wc-card-content-title-icon-size);
|
|
146
158
|
}
|
|
159
|
+
.card-content--medium .card-content__title-icon::slotted(*) {
|
|
160
|
+
width: var(--dsa-wc-card-content-medium-title-icon-size);
|
|
161
|
+
height: var(--dsa-wc-card-content-medium-title-icon-size);
|
|
162
|
+
}
|
|
147
163
|
.card-content--small .card-content__title-icon::slotted(*) {
|
|
148
164
|
width: var(--dsa-wc-card-content-small-title-icon-size);
|
|
149
165
|
height: var(--dsa-wc-card-content-small-title-icon-size);
|
|
@@ -158,6 +174,9 @@ var card_content_styles_default = css`
|
|
|
158
174
|
color: var(--dsa-wc-card-content-content-color);
|
|
159
175
|
font: var(--dsa-wc-card-content-content-font)
|
|
160
176
|
}
|
|
177
|
+
.card-content--small .card-content__content {
|
|
178
|
+
font: var(--dsa-wc-card-content-small-content-font)
|
|
179
|
+
}
|
|
161
180
|
|
|
162
181
|
/* Footer */
|
|
163
182
|
.card-content__footer {
|
|
@@ -180,6 +199,10 @@ var card_content_styles_default = css`
|
|
|
180
199
|
padding: var(--dsa-wc-card-content-link-icon-padding);
|
|
181
200
|
color: var(--dsa-wc-card-content-chevron-color);
|
|
182
201
|
}
|
|
202
|
+
.card-content--medium .card-content__link-icon {
|
|
203
|
+
width: var(--dsa-wc-card-content-link-medium-icon-size);
|
|
204
|
+
height: var(--dsa-wc-card-content-link-medium-icon-size);
|
|
205
|
+
}
|
|
183
206
|
.card-content--small .card-content__link-icon {
|
|
184
207
|
width: var(--dsa-wc-card-content-link-small-icon-size);
|
|
185
208
|
height: var(--dsa-wc-card-content-link-small-icon-size);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
form_control_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EHTCYJUT.js";
|
|
4
4
|
import {
|
|
5
5
|
component_styles_default
|
|
6
6
|
} from "./chunk.TUVJKY7S.js";
|
|
@@ -128,7 +128,7 @@ var file_upload_styles_default = css`
|
|
|
128
128
|
position: relative;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
/* Button (Copy of button
|
|
131
|
+
/* Button (Copy of button secondary styles) */
|
|
132
132
|
.button {
|
|
133
133
|
display: inline-flex;
|
|
134
134
|
align-items: stretch;
|
|
@@ -148,9 +148,9 @@ var file_upload_styles_default = css`
|
|
|
148
148
|
var(--dsa-wc-transition-x-fast) border,
|
|
149
149
|
var(--dsa-wc-transition-x-fast) box-shadow;
|
|
150
150
|
cursor: pointer;
|
|
151
|
-
background-color: var(--dsa-wc-button-
|
|
152
|
-
border-color: var(--dsa-wc-button-
|
|
153
|
-
color: var(--dsa-wc-button-
|
|
151
|
+
background-color: var(--dsa-wc-button-secondary-on-base-color);
|
|
152
|
+
border-color: var(--dsa-wc-button-secondary-on-base-color);
|
|
153
|
+
color: var(--dsa-wc-button-secondary-on-base-font-color);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.button::-moz-focus-inner {
|
|
@@ -175,19 +175,19 @@ var file_upload_styles_default = css`
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.button:hover:not(.button--disabled) {
|
|
178
|
-
background-color: var(--dsa-wc-button-
|
|
179
|
-
border-color: var(--dsa-wc-button-
|
|
180
|
-
color: var(--dsa-wc-button-
|
|
178
|
+
background-color: var(--dsa-wc-button-secondary-on-base-hover-color);
|
|
179
|
+
border-color: var(--dsa-wc-button-secondary-on-base-hover-color);
|
|
180
|
+
color: var(--dsa-wc-button-secondary-on-base-hover-font-color);
|
|
181
181
|
}
|
|
182
182
|
.button:active:not(.button--disabled) {
|
|
183
|
-
background-color: var(--dsa-wc-button-
|
|
184
|
-
border-color: var(--dsa-wc-button-
|
|
185
|
-
color: var(--dsa-wc-button-
|
|
183
|
+
background-color: var(--dsa-wc-button-secondary-on-base-active-color);
|
|
184
|
+
border-color: var(--dsa-wc-button-secondary-on-base-active-color);
|
|
185
|
+
color: var(--dsa-wc-button-secondary-on-base-active-font-color);
|
|
186
186
|
}
|
|
187
187
|
.button.button--disabled {
|
|
188
|
-
background-color: var(--dsa-wc-button-
|
|
189
|
-
border-color: var(--dsa-wc-button-
|
|
190
|
-
color: var(--dsa-wc-button-
|
|
188
|
+
background-color: var(--dsa-wc-button-secondary-on-base-disabled-color);
|
|
189
|
+
border-color: var(--dsa-wc-button-secondary-on-base-disabled-color);
|
|
190
|
+
color: var(--dsa-wc-button-secondary-on-base-disabled-font-color);
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.button--small {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
form_control_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EHTCYJUT.js";
|
|
4
4
|
import {
|
|
5
5
|
component_styles_default
|
|
6
6
|
} from "./chunk.TUVJKY7S.js";
|
|
@@ -133,8 +133,13 @@ var select_styles_default = css`
|
|
|
133
133
|
padding: 0 var(--dsa-wc-multiselect-tag-padding-inline);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.select--disabled .select__tags
|
|
137
|
-
|
|
136
|
+
.select--disabled .select__tags dsa-tag::part(base) {
|
|
137
|
+
background: var(--dsa-wc-multiselect-tag-disabled-background) !important;
|
|
138
|
+
color: var(--dsa-wc-multiselect-tag-disabled-color) !important;
|
|
139
|
+
border: solid 1px var(--dsa-wc-multiselect-tag-disabled-border-color);
|
|
140
|
+
cursor: not-allowed !important;
|
|
141
|
+
}
|
|
142
|
+
.select--readonly .select__tags dsa-tag::part(base) {
|
|
138
143
|
cursor: not-allowed !important;
|
|
139
144
|
}
|
|
140
145
|
|
|
@@ -196,6 +196,17 @@ var form_control_styles_default = css`
|
|
|
196
196
|
animation-duration: 1s;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
/* On Floating Menu */
|
|
200
|
+
.form-control--on-floating-menu .form-control__label {
|
|
201
|
+
color: var(--dsa-wc-input-on-floating-label-color);
|
|
202
|
+
}
|
|
203
|
+
.form-control--on-floating-menu.form-control--error .form-control__label {
|
|
204
|
+
color: var(--dsa-wc-input-on-floating-label-color-error);
|
|
205
|
+
}
|
|
206
|
+
.form-control--on-floating-menu .form-control__help-text {
|
|
207
|
+
color: var(--dsa-wc-input-on-floating-helper);
|
|
208
|
+
}
|
|
209
|
+
|
|
199
210
|
/* Description text for screen readers */
|
|
200
211
|
.form-control__description {
|
|
201
212
|
display: none;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
header_search_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.S55U4A2J.js";
|
|
4
4
|
import {
|
|
5
5
|
LocalizeController
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.N3JDTZGM.js";
|
|
7
7
|
import {
|
|
8
8
|
ShoelaceElement
|
|
9
9
|
} from "./chunk.XZ5FE34T.js";
|
|
@@ -13,14 +13,13 @@ import {
|
|
|
13
13
|
|
|
14
14
|
// src/components/header-search/header-search.ts
|
|
15
15
|
import { html } from "lit";
|
|
16
|
-
import { customElement, property, query
|
|
16
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
17
17
|
import { classMap } from "lit/directives/class-map.js";
|
|
18
18
|
import { live } from "lit/directives/live.js";
|
|
19
19
|
var DSAHeaderSearch = class extends ShoelaceElement {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.localize = new LocalizeController(this);
|
|
23
|
-
this.hasFocus = false;
|
|
24
23
|
this.value = "";
|
|
25
24
|
this.expanded = false;
|
|
26
25
|
this.alwaysOpen = false;
|
|
@@ -37,42 +36,10 @@ var DSAHeaderSearch = class extends ShoelaceElement {
|
|
|
37
36
|
this.input.focus();
|
|
38
37
|
}
|
|
39
38
|
handleChange() {
|
|
40
|
-
this.value = this.
|
|
41
|
-
this.emit("dsa-change");
|
|
39
|
+
this.value = this.search.value;
|
|
42
40
|
}
|
|
43
41
|
handleInput() {
|
|
44
|
-
this.value = this.
|
|
45
|
-
this.emit("dsa-input");
|
|
46
|
-
}
|
|
47
|
-
handleInputFocus() {
|
|
48
|
-
this.hasFocus = true;
|
|
49
|
-
this.emit("dsa-focus");
|
|
50
|
-
}
|
|
51
|
-
handleInputBlur() {
|
|
52
|
-
this.hasFocus = false;
|
|
53
|
-
this.emit("dsa-blur");
|
|
54
|
-
}
|
|
55
|
-
handleClearClick(event) {
|
|
56
|
-
this.value = "";
|
|
57
|
-
this.emit("dsa-clear");
|
|
58
|
-
this.emit("dsa-input");
|
|
59
|
-
this.emit("dsa-change");
|
|
60
|
-
this.input.focus();
|
|
61
|
-
event.stopPropagation();
|
|
62
|
-
}
|
|
63
|
-
handleKeyDown(event) {
|
|
64
|
-
event.stopPropagation();
|
|
65
|
-
const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
66
|
-
if (event.key === "Enter" && !hasModifier) {
|
|
67
|
-
setTimeout(() => {
|
|
68
|
-
if (!event.defaultPrevented && !event.isComposing) {
|
|
69
|
-
this.handleSubmitClick();
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
handleSubmitClick() {
|
|
75
|
-
this.emit("dsa-submit");
|
|
42
|
+
this.value = this.search.value;
|
|
76
43
|
}
|
|
77
44
|
async handleCancelClick() {
|
|
78
45
|
this.emit("dsa-collapse");
|
|
@@ -80,6 +47,15 @@ var DSAHeaderSearch = class extends ShoelaceElement {
|
|
|
80
47
|
await this.updateComplete;
|
|
81
48
|
this.expandButton.focus();
|
|
82
49
|
}
|
|
50
|
+
get input() {
|
|
51
|
+
return this.search.input;
|
|
52
|
+
}
|
|
53
|
+
get submitButton() {
|
|
54
|
+
return this.search.submitButton;
|
|
55
|
+
}
|
|
56
|
+
get clearButton() {
|
|
57
|
+
return this.search.clearButton;
|
|
58
|
+
}
|
|
83
59
|
render() {
|
|
84
60
|
if (!this.expanded && !this.alwaysOpen) {
|
|
85
61
|
if (this.mobile) {
|
|
@@ -100,7 +76,6 @@ var DSAHeaderSearch = class extends ShoelaceElement {
|
|
|
100
76
|
id="expand-button"
|
|
101
77
|
variant="navigation"
|
|
102
78
|
part="button button--navigation"
|
|
103
|
-
}
|
|
104
79
|
@click=${this.handleExpandClick}
|
|
105
80
|
>
|
|
106
81
|
<dsa-icon name="search" library="system"></dsa-icon>
|
|
@@ -117,48 +92,12 @@ var DSAHeaderSearch = class extends ShoelaceElement {
|
|
|
117
92
|
"search-bar--desktop": !this.mobile
|
|
118
93
|
})}
|
|
119
94
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"input__control--mobile": this.mobile,
|
|
127
|
-
"input__control--desktop": !this.mobile
|
|
128
|
-
})}
|
|
129
|
-
type="search"
|
|
130
|
-
placeholder=${this.localize.term("search")}
|
|
131
|
-
aria-label=${this.localize.term("search")}
|
|
132
|
-
title=${this.localize.term("search")}
|
|
133
|
-
.value=${live(this.value)}
|
|
134
|
-
@change=${this.handleChange}
|
|
135
|
-
@input=${this.handleInput}
|
|
136
|
-
@focus=${this.handleInputFocus}
|
|
137
|
-
@blur=${this.handleInputBlur}
|
|
138
|
-
@keydown=${this.handleKeyDown}
|
|
139
|
-
/>
|
|
140
|
-
${this.value.length > 0 ? html`
|
|
141
|
-
<dsa-icon-button
|
|
142
|
-
id="clear-button"
|
|
143
|
-
part="clear-button"
|
|
144
|
-
name="cancel"
|
|
145
|
-
label=${this.localize.term("clearEntry")}
|
|
146
|
-
@click=${this.handleClearClick}
|
|
147
|
-
library="system"
|
|
148
|
-
></dsa-icon-button>
|
|
149
|
-
` : ""}
|
|
150
|
-
</div>
|
|
151
|
-
|
|
152
|
-
<dsa-icon-button
|
|
153
|
-
id="submit-button"
|
|
154
|
-
name="search"
|
|
155
|
-
library="system"
|
|
156
|
-
label=${this.localize.term("search")}
|
|
157
|
-
variant="primary"
|
|
158
|
-
size=${this.mobile ? "large" : "xlarge"}
|
|
159
|
-
@click=${this.handleSubmitClick}
|
|
160
|
-
>
|
|
161
|
-
</dsa-icon-button>
|
|
95
|
+
<dsa-search
|
|
96
|
+
size=${this.mobile ? "small" : "medium"}
|
|
97
|
+
.value=${live(this.value)}
|
|
98
|
+
@dsa-change=${this.handleChange}
|
|
99
|
+
@dsa-input=${this.handleInput}
|
|
100
|
+
></dsa-search>
|
|
162
101
|
|
|
163
102
|
${!this.alwaysOpen ? html`
|
|
164
103
|
<dsa-button
|
|
@@ -176,23 +115,14 @@ var DSAHeaderSearch = class extends ShoelaceElement {
|
|
|
176
115
|
};
|
|
177
116
|
DSAHeaderSearch.styles = header_search_styles_default;
|
|
178
117
|
__decorateClass([
|
|
179
|
-
query("
|
|
180
|
-
], DSAHeaderSearch.prototype, "
|
|
118
|
+
query("dsa-search")
|
|
119
|
+
], DSAHeaderSearch.prototype, "search", 2);
|
|
181
120
|
__decorateClass([
|
|
182
121
|
query("#expand-button")
|
|
183
122
|
], DSAHeaderSearch.prototype, "expandButton", 2);
|
|
184
|
-
__decorateClass([
|
|
185
|
-
query("#submit-button")
|
|
186
|
-
], DSAHeaderSearch.prototype, "submitButton", 2);
|
|
187
123
|
__decorateClass([
|
|
188
124
|
query("#cancel-button")
|
|
189
125
|
], DSAHeaderSearch.prototype, "cancelButton", 2);
|
|
190
|
-
__decorateClass([
|
|
191
|
-
query("#clear-button")
|
|
192
|
-
], DSAHeaderSearch.prototype, "clearButton", 2);
|
|
193
|
-
__decorateClass([
|
|
194
|
-
state()
|
|
195
|
-
], DSAHeaderSearch.prototype, "hasFocus", 2);
|
|
196
126
|
__decorateClass([
|
|
197
127
|
property()
|
|
198
128
|
], DSAHeaderSearch.prototype, "value", 2);
|