@ds-autonomie/web-components 2.4.1 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/cdn/chunks/{chunk.SXO3JE2C.js → chunk.2BQQJKFU.js} +20 -112
- package/cdn/chunks/{chunk.Y5RTMSTB.js → chunk.2S3446TB.js} +1 -1
- package/cdn/chunks/{chunk.EZ2CTTR3.js → chunk.3E3HJ2GB.js} +3 -3
- package/cdn/chunks/{chunk.ZCBARTO2.js → chunk.3PDDINNE.js} +6 -0
- package/cdn/chunks/{chunk.A5QRPK4Q.js → chunk.3XJTVFZ2.js} +1 -1
- package/cdn/chunks/{chunk.45DY5Z6P.js → chunk.3XMYYR4P.js} +1 -5
- package/cdn/chunks/{chunk.N7TSHDJG.js → chunk.3YELONZ5.js} +1 -1
- package/cdn/chunks/chunk.4OAG5UWA.js +72 -0
- package/cdn/chunks/{chunk.HBIJX2WM.js → chunk.4Q4LBN6D.js} +1 -1
- package/cdn/chunks/{chunk.YJBMFRB4.js → chunk.4UMO5YHQ.js} +1 -1
- package/cdn/chunks/{chunk.3OSWL542.js → chunk.53DHJKYL.js} +0 -6
- package/cdn/chunks/{chunk.EB3VB5VL.js → chunk.5B3X2KU4.js} +7 -4
- package/cdn/chunks/chunk.5QJ7KDER.js +124 -0
- package/cdn/chunks/chunk.6CVNT3XU.js +108 -0
- package/cdn/chunks/{chunk.5BQ2BGS6.js → chunk.6KSC4CRL.js} +1 -0
- package/cdn/chunks/{chunk.WJDOTH54.js → chunk.6SV5RDDG.js} +1 -1
- package/cdn/chunks/{chunk.5VZE6TSA.js → chunk.6UY5XC7A.js} +1 -1
- package/cdn/chunks/{chunk.MHOWVZXY.js → chunk.7CBNLWGC.js} +41 -155
- package/cdn/chunks/{chunk.CUFMKSEN.js → chunk.7ZJHGFQH.js} +9 -2
- package/cdn/chunks/chunk.A747OEHH.js +145 -0
- package/cdn/chunks/{chunk.OJFCPMJA.js → chunk.BBWKTDH3.js} +1 -1
- package/cdn/chunks/chunk.BDPH2MRN.js +234 -0
- package/cdn/chunks/{chunk.JO52YCNJ.js → chunk.BKSVKEYX.js} +1 -1
- package/cdn/chunks/{chunk.VARBZAJP.js → chunk.BMQ5WSY7.js} +2 -0
- package/cdn/chunks/{chunk.MCSZ2F65.js → chunk.BQ3SI4TM.js} +1 -1
- package/cdn/chunks/{chunk.5UVKMYSG.js → chunk.BQX4GGIU.js} +18 -12
- package/cdn/chunks/{chunk.H2OEFMQC.js → chunk.BWYI3OOJ.js} +0 -6
- package/cdn/chunks/chunk.CAWNJ57J.js +291 -0
- package/cdn/chunks/{chunk.NTOOFOWB.js → chunk.DBJLSCQP.js} +2 -2
- package/cdn/chunks/{chunk.SJM5UCFK.js → chunk.DRUKNJJ5.js} +1 -1
- package/cdn/chunks/{chunk.URME4YZI.js → chunk.E2ERJT5L.js} +4 -121
- package/cdn/chunks/{chunk.CMRQV2SO.js → chunk.EVV7CPIX.js} +3 -3
- package/cdn/chunks/{chunk.ZDF27RIQ.js → chunk.EYKHHWR5.js} +1 -1
- package/cdn/chunks/{chunk.GXQMOXKI.js → chunk.GVTFDL2C.js} +0 -4
- package/cdn/chunks/{chunk.GBGDDTEL.js → chunk.HOIWGDVX.js} +1 -1
- package/cdn/chunks/chunk.I6WQAXU3.js +85 -0
- package/cdn/chunks/{chunk.ICBLN3KB.js → chunk.IPKU2NK6.js} +29 -7
- package/cdn/chunks/{chunk.KSCPGWVT.js → chunk.JEOLRBU6.js} +1 -1
- package/cdn/chunks/{chunk.6FWACI3G.js → chunk.JOVZPGCQ.js} +1 -1
- package/cdn/chunks/{chunk.UM64ZD3C.js → chunk.JUCW3BPM.js} +1 -1
- package/cdn/chunks/{chunk.4ZEHBLJR.js → chunk.KNKNPTGU.js} +1 -1
- package/cdn/chunks/{chunk.WQ3NUYLG.js → chunk.KQJPZZKZ.js} +7 -8
- package/cdn/chunks/{chunk.WYTP4TFA.js → chunk.LEW43Y6P.js} +1 -1
- package/cdn/chunks/{chunk.PK4XXM66.js → chunk.LIJWOM2P.js} +1 -1
- package/cdn/chunks/chunk.LPB2VMCT.js +74 -0
- package/cdn/chunks/{chunk.EF2VOGBL.js → chunk.LYIECKOK.js} +1 -1
- package/cdn/chunks/{chunk.KLIZYLWG.js → chunk.M4YRRHEL.js} +1 -1
- package/cdn/chunks/{chunk.OFWHWMUH.js → chunk.MJMSFEEL.js} +1 -1
- package/cdn/chunks/{chunk.JD7YUYPB.js → chunk.MMT7DZQU.js} +53 -20
- package/cdn/chunks/{chunk.LFBIXLMF.js → chunk.MRBMS4RB.js} +10 -6
- package/cdn/chunks/{chunk.VI5JEKGK.js → chunk.N74GMZQD.js} +1 -1
- package/cdn/chunks/{chunk.2FOGPUI3.js → chunk.NMVBZ537.js} +1 -1
- package/cdn/chunks/{chunk.VRC57YIG.js → chunk.NNXRECFT.js} +1 -1
- package/cdn/chunks/chunk.NON7TU3E.js +15 -0
- package/cdn/chunks/{chunk.E7IRWRZH.js → chunk.NUMKSKYJ.js} +1 -1
- package/cdn/chunks/{chunk.FTI4C7U6.js → chunk.NYK3GS67.js} +1 -1
- package/cdn/chunks/{chunk.L3ZYNSI3.js → chunk.OCDDQJHV.js} +3 -3
- package/cdn/chunks/{chunk.BNLQUWBO.js → chunk.OQUR5UM4.js} +1 -1
- package/cdn/chunks/{chunk.LCA7FDI4.js → chunk.PQ4KTIXS.js} +4 -130
- package/cdn/chunks/{chunk.6HLUBEKO.js → chunk.PQNNELEM.js} +1 -1
- package/cdn/chunks/{chunk.OVBLP5E4.js → chunk.PRP4B2TV.js} +1 -1
- package/cdn/chunks/chunk.PT3QFRYN.js +336 -0
- package/cdn/chunks/{chunk.KYZIL6TB.js → chunk.PZQUQ6DG.js} +1 -1
- package/cdn/chunks/chunk.QCPGBCQ3.js +72 -0
- package/cdn/chunks/{chunk.AJFNFADL.js → chunk.QUA6RD7E.js} +1 -1
- package/cdn/chunks/{chunk.4XTAL3PC.js → chunk.QYS7Y562.js} +3 -3
- package/cdn/chunks/{chunk.QKLRW3JL.js → chunk.RHJUPBW2.js} +4 -4
- package/cdn/chunks/chunk.RNF5H43X.js +199 -0
- package/cdn/chunks/{chunk.P6NF7VUG.js → chunk.RRVYERI6.js} +1 -1
- package/cdn/chunks/{chunk.6XVWAOAW.js → chunk.SDRL7END.js} +1 -1
- package/cdn/chunks/{chunk.FAPQZI57.js → chunk.SMJWBG6U.js} +1 -1
- package/cdn/chunks/{chunk.E36IR3BP.js → chunk.SPK4CXKV.js} +1 -1
- package/cdn/chunks/{chunk.NMGNR4EL.js → chunk.SS3GSU3M.js} +1 -1
- package/cdn/chunks/{chunk.67KNPORK.js → chunk.SUXMTZZQ.js} +1 -1
- package/cdn/chunks/chunk.T4PQY3SD.js +194 -0
- package/cdn/chunks/{chunk.XS7VEXEG.js → chunk.T6APUNAB.js} +22 -114
- package/cdn/chunks/{chunk.VZJGVIXG.js → chunk.UJQUHHXT.js} +2 -0
- package/cdn/chunks/{chunk.2YVHHVLG.js → chunk.UORXHDBJ.js} +3 -2
- package/cdn/chunks/{chunk.OMPBUYUW.js → chunk.UYGSA2IW.js} +5 -5
- package/cdn/chunks/chunk.W6RA2ZKW.js +124 -0
- package/cdn/chunks/{chunk.AZBK27ET.js → chunk.WQLZJXIF.js} +1 -1
- package/cdn/chunks/{chunk.OSJ5I4FK.js → chunk.WWI5IYQY.js} +8 -3
- package/cdn/chunks/{chunk.SMWE3ICX.js → chunk.XGOXFBM5.js} +1 -1
- package/cdn/chunks/{chunk.JVTWZUNG.js → chunk.XODAGFNB.js} +1 -1
- package/cdn/chunks/{chunk.7YE2BWH2.js → chunk.XYXJQSTL.js} +1 -1
- package/cdn/chunks/{chunk.KOWSS3HP.js → chunk.Y2RQJPXD.js} +1 -1
- package/cdn/chunks/{chunk.KPS4A22J.js → chunk.Y4XSMWCI.js} +1 -1
- package/cdn/chunks/{chunk.PIFZYHAW.js → chunk.YAK3QGTM.js} +1 -1
- package/cdn/chunks/chunk.YGJ3KERC.js +290 -0
- package/cdn/chunks/chunk.YGZ44MNV.js +64 -0
- package/cdn/chunks/{chunk.RZUPGCMM.js → chunk.YSKD4LUA.js} +1 -5
- package/cdn/chunks/{chunk.K4B5TCNN.js → chunk.YX277NFA.js} +1 -1
- package/cdn/chunks/{chunk.XHB6RI7B.js → chunk.ZHNP2Z3B.js} +5 -5
- package/cdn/components/accordion/accordion.js +4 -4
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/anchor-tag/anchor-tag.d.ts +2 -1
- package/cdn/components/anchor-tag/anchor-tag.js +1 -1
- package/cdn/components/avatar/avatar.js +2 -2
- package/cdn/components/breadcrumb/breadcrumb.js +4 -4
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/cdn/components/button/button.js +5 -5
- package/cdn/components/calendar/calendar.js +2 -2
- package/cdn/components/callout/callout.js +2 -2
- package/cdn/components/card/card.d.ts +0 -2
- package/cdn/components/card/card.js +1 -1
- package/cdn/components/card-content/card-content.d.ts +51 -0
- package/cdn/components/card-content/card-content.js +28 -0
- package/cdn/components/card-content/card-content.styles.js +10 -0
- package/cdn/components/card-nav/card-nav.d.ts +23 -0
- package/cdn/components/card-nav/card-nav.js +15 -0
- package/cdn/components/{include/include.styles.js → card-nav/card-nav.styles.js} +3 -3
- package/cdn/components/card-nav-accordion/card-nav-accordion.d.ts +49 -0
- package/cdn/components/card-nav-accordion/card-nav-accordion.js +30 -0
- package/cdn/components/card-nav-accordion/card-nav-accordion.styles.js +10 -0
- package/cdn/components/card-nav-item/card-nav-item.d.ts +38 -0
- package/cdn/components/card-nav-item/card-nav-item.js +26 -0
- package/cdn/components/card-nav-item/card-nav-item.styles.js +10 -0
- package/cdn/components/checkbox/checkbox.js +5 -5
- package/cdn/components/checkbox-button/checkbox-button.js +4 -4
- package/cdn/components/checkbox-card/checkbox-card.js +4 -4
- package/cdn/components/checkbox-group/checkbox-group.js +3 -3
- package/cdn/components/combobox/combobox.js +6 -6
- package/cdn/components/dialog/dialog.js +4 -4
- package/cdn/components/download-card/download-card.js +2 -2
- package/cdn/components/download-link/download-link.js +2 -2
- package/cdn/components/drawer/drawer.js +4 -4
- package/cdn/components/dropdown/dropdown.d.ts +0 -5
- 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.js +2 -2
- package/cdn/components/fieldset/fieldset.d.ts +39 -0
- package/cdn/components/fieldset/fieldset.js +17 -0
- package/cdn/components/fieldset/fieldset.styles.d.ts +2 -0
- package/cdn/components/fieldset/fieldset.styles.js +10 -0
- package/cdn/components/file-upload/file-upload.js +4 -4
- package/cdn/components/file-upload-item/file-upload-item.js +2 -2
- package/cdn/components/filter-base/filter-base.js +5 -5
- package/cdn/components/filter-button/filter-button.js +4 -4
- package/cdn/components/filter-counter/filter-counter.js +24 -21
- package/cdn/components/filter-date/filter-date.js +11 -11
- package/cdn/components/filter-range/filter-range.js +24 -21
- package/cdn/components/filter-select/filter-select.js +25 -22
- 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 +3 -3
- package/cdn/components/header/header.styles.js +1 -1
- package/cdn/components/header-search/header-search.js +6 -6
- package/cdn/components/icon/icon.js +2 -2
- package/cdn/components/icon-button/icon-button.js +2 -2
- package/cdn/components/input/input.d.ts +17 -81
- package/cdn/components/input/input.js +17 -14
- package/cdn/components/input-date/input-date.d.ts +4 -42
- package/cdn/components/input-date/input-date.js +11 -10
- package/cdn/components/input-date/input-date.styles.js +2 -2
- package/cdn/components/input-mask/input-mask.d.ts +3 -50
- package/cdn/components/input-mask/input-mask.js +5 -4
- package/cdn/components/input-native/input-native.d.ts +57 -0
- package/cdn/components/input-native/input-native.js +43 -0
- package/cdn/components/input-native/input-native.styles.d.ts +2 -0
- package/cdn/components/{input/input.styles.js → input-native/input-native.styles.js} +4 -3
- package/cdn/components/{input/input.utils.d.ts → input-native/input-native.utils.d.ts} +1 -1
- package/cdn/components/{input/input.utils.js → input-native/input-native.utils.js} +1 -1
- package/cdn/components/input-otp/input-otp.d.ts +6 -50
- package/cdn/components/input-otp/input-otp.js +4 -3
- package/cdn/components/input-phone/input-phone.d.ts +5 -36
- package/cdn/components/input-phone/input-phone.js +8 -7
- package/cdn/components/input-time/input-time.d.ts +8 -53
- package/cdn/components/input-time/input-time.js +7 -6
- package/cdn/components/input-time/input-time.styles.js +2 -2
- package/cdn/components/menu-accordion/menu-accordion.js +4 -4
- package/cdn/components/menu-item/menu-item.d.ts +1 -1
- package/cdn/components/menu-item/menu-item.js +5 -4
- package/cdn/components/menu-item/menu-item.styles.js +1 -1
- package/cdn/components/mutation-observer/mutation-observer.d.ts +1 -3
- package/cdn/components/mutation-observer/mutation-observer.js +1 -1
- package/cdn/components/navbar-link/navbar-link.js +2 -2
- package/cdn/components/navbar-menu/navbar-menu.js +4 -4
- package/cdn/components/option/option.js +4 -4
- package/cdn/components/pagination/pagination.js +18 -15
- package/cdn/components/profile-button/profile-button.js +5 -5
- package/cdn/components/progress-bar/progress-bar.js +2 -2
- package/cdn/components/quote/quote.js +2 -2
- package/cdn/components/radio/radio.js +3 -3
- package/cdn/components/radio-button/radio-button.js +2 -2
- package/cdn/components/radio-card/radio-card.js +4 -4
- package/cdn/components/radio-group/radio-group.js +2 -2
- package/cdn/components/relative-time/relative-time.d.ts +1 -1
- package/cdn/components/relative-time/relative-time.js +2 -2
- package/cdn/components/resize-observer/resize-observer.d.ts +1 -3
- package/cdn/components/select/select.js +5 -5
- 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 +4 -4
- package/cdn/components/step/step.js +4 -4
- package/cdn/components/switch/switch.js +4 -4
- package/cdn/components/tab/tab.js +4 -4
- package/cdn/components/tab-group/tab-group.d.ts +2 -0
- package/cdn/components/tab-group/tab-group.js +4 -4
- package/cdn/components/table/table.js +2 -2
- package/cdn/components/table/table.styles.js +1 -1
- package/cdn/components/table-action/table-action.js +2 -2
- package/cdn/components/table-body/table-body.js +3 -3
- package/cdn/components/table-caption/table-caption.js +2 -2
- package/cdn/components/table-container/table-container.js +2 -2
- package/cdn/components/table-head/table-head.js +3 -3
- package/cdn/components/table-header-cell/table-header-cell.js +4 -4
- package/cdn/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/cdn/components/table-header-row/table-header-row.js +10 -10
- package/cdn/components/table-of-contents/table-of-contents.js +2 -2
- package/cdn/components/table-row/table-row.js +7 -7
- package/cdn/components/tag/tag.js +4 -4
- package/cdn/components/tag-button/tag-button.d.ts +53 -0
- package/cdn/components/tag-button/tag-button.js +18 -0
- package/cdn/components/tag-button/tag-button.styles.d.ts +2 -0
- package/cdn/components/tag-button/tag-button.styles.js +10 -0
- package/cdn/components/textarea/textarea.js +2 -2
- package/cdn/components/tooltip/tooltip.d.ts +2 -0
- package/cdn/components/tooltip/tooltip.js +2 -2
- package/cdn/components/tree/tree.js +10 -10
- package/cdn/components/tree-item/tree-item.js +8 -8
- package/cdn/custom-elements.json +7595 -8126
- package/cdn/design-system.d.ts +7 -2
- package/cdn/design-system.js +176 -148
- package/cdn/internal/components/checkbox-box/checkbox-box.styles.js +0 -6
- package/cdn/internal/components/date-field/date-field.d.ts +11 -0
- package/cdn/internal/components/date-field/date-field.js +23 -1
- package/cdn/internal/components/input-base/input-base.d.ts +118 -0
- package/cdn/internal/components/input-base/input-base.js +313 -0
- package/cdn/internal/components/input-base/input-base.styles.d.ts +2 -0
- package/cdn/internal/components/input-base/input-base.styles.js +302 -0
- package/cdn/internal/components/input-base/input-base.utils.d.ts +1 -0
- package/cdn/internal/components/input-base/input-base.utils.js +1 -0
- package/cdn/internal/components/radio-icon/radio-icon.styles.js +0 -6
- package/cdn/themes/dsa-wc-theme.css +94 -2
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +100 -2
- 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 +1 -0
- package/cdn/utilities/localize.js +1 -1
- package/cdn/vscode.html-custom-data.json +225 -355
- package/cdn/web-types.json +3580 -4067
- package/dist/chunks/{chunk.TKV7I7MM.js → chunk.2655IKKL.js} +9 -2
- package/dist/chunks/chunk.2EO2NJQJ.js +118 -0
- package/dist/chunks/{chunk.QEZ5FSIU.js → chunk.2GAMN72N.js} +1 -1
- package/dist/chunks/{chunk.DNLOBVBE.js → chunk.2JRGVS6D.js} +1 -1
- package/dist/chunks/chunk.3CWUZQRT.js +325 -0
- package/dist/chunks/{chunk.7K5DG6KV.js → chunk.3RMSYRZA.js} +1 -1
- package/dist/chunks/chunk.3XTO3LV5.js +62 -0
- package/dist/chunks/chunk.3YZI5GBX.js +72 -0
- package/dist/chunks/{chunk.KDEA34PP.js → chunk.4JZFGBJP.js} +1 -1
- package/dist/chunks/{chunk.OKUA77L4.js → chunk.4S7APMGY.js} +18 -12
- package/dist/chunks/{chunk.MWWI3AU2.js → chunk.4VHQEXSY.js} +1 -1
- package/dist/chunks/{chunk.PWVYG6XN.js → chunk.4ZAABSYS.js} +0 -6
- package/dist/chunks/{chunk.ZAZPAXHI.js → chunk.54XEUZ55.js} +1 -1
- package/dist/chunks/chunk.5KTLM3MD.js +106 -0
- package/dist/chunks/{chunk.JHA6OLMK.js → chunk.635JP52V.js} +3 -3
- package/dist/chunks/{chunk.O4HVYU6G.js → chunk.63BQQE4G.js} +27 -5
- package/dist/chunks/{chunk.AMTRQ7HP.js → chunk.6AKP5BRZ.js} +1 -1
- package/dist/chunks/{chunk.SRP6V7OW.js → chunk.6KMLQCBG.js} +1 -1
- package/dist/chunks/chunk.6MWXS55V.js +136 -0
- package/dist/chunks/{chunk.KENYJWWA.js → chunk.6NGHRQYD.js} +1 -1
- package/dist/chunks/{chunk.KGZXCKP2.js → chunk.6XCFILBM.js} +1 -1
- package/dist/chunks/{chunk.OWV6XZFR.js → chunk.7QLR3F26.js} +1 -1
- package/dist/chunks/{chunk.UKZA4PJB.js → chunk.AATHH5ZK.js} +1 -1
- package/dist/chunks/{chunk.X4HFQ4MT.js → chunk.AB7T3PSN.js} +1 -1
- package/dist/chunks/chunk.ADUUYLJY.js +79 -0
- package/dist/chunks/{chunk.XVFPRM26.js → chunk.AHHKOQL3.js} +1 -1
- package/dist/chunks/{chunk.JRJB2DFE.js → chunk.AJCLNOPZ.js} +1 -1
- package/dist/chunks/{chunk.4SVX6VCY.js → chunk.ARDX2RVR.js} +1 -1
- package/dist/chunks/{chunk.V4U5XMU7.js → chunk.B7LEFGX4.js} +1 -1
- package/dist/chunks/{chunk.P2LEUT2Q.js → chunk.BYB2ODNQ.js} +4 -121
- package/dist/chunks/{chunk.INFNQBQD.js → chunk.CPBWQ6BE.js} +1 -1
- package/dist/chunks/{chunk.6BOM4P42.js → chunk.DHCXNXX3.js} +5 -5
- package/dist/chunks/chunk.DJNQIAYV.js +283 -0
- package/dist/chunks/{chunk.7MGKJTDJ.js → chunk.DKIEKIV4.js} +4 -130
- package/dist/chunks/{chunk.OHDR6G6J.js → chunk.DMIXIORN.js} +3 -3
- package/dist/chunks/{chunk.SG42FXRA.js → chunk.DUPWIWDC.js} +41 -155
- package/dist/chunks/{chunk.Z2A5AEMU.js → chunk.DXRDCCL4.js} +1 -1
- package/dist/chunks/{chunk.IW4EYF6Z.js → chunk.DZVHKOGO.js} +1 -1
- package/dist/chunks/{chunk.QG62LWYX.js → chunk.EEK6ZGS2.js} +1 -4
- package/dist/chunks/{chunk.EWL56M5H.js → chunk.EQDAZLA2.js} +7 -4
- package/dist/chunks/{chunk.E7S4C6P7.js → chunk.ETG5DAHF.js} +1 -1
- package/dist/chunks/{chunk.SA7GMM2I.js → chunk.EWOJ3XVB.js} +3 -3
- package/dist/chunks/{chunk.6SDBUBGE.js → chunk.FKOYZI2V.js} +2 -0
- package/dist/chunks/{chunk.IHTWK22H.js → chunk.G5ZFFB2V.js} +5 -5
- package/dist/chunks/{chunk.XNVSET6H.js → chunk.I4XFUHWM.js} +1 -1
- package/dist/chunks/{chunk.U2RG7USD.js → chunk.IR5ZDNLY.js} +1 -1
- package/dist/chunks/chunk.J4QE6NJC.js +70 -0
- package/dist/chunks/{chunk.O4ZSTSXZ.js → chunk.JQS5RPAK.js} +1 -5
- package/dist/chunks/{chunk.GNJX6QSO.js → chunk.K4XU6L7E.js} +1 -1
- package/dist/chunks/{chunk.DKTT254G.js → chunk.KFBHQJJP.js} +6 -0
- package/dist/chunks/{chunk.M4H37WUH.js → chunk.L2B7WMWE.js} +8 -3
- package/dist/chunks/{chunk.GRNDTTXR.js → chunk.L7SZMI27.js} +1 -1
- package/dist/chunks/chunk.LGV7OXTA.js +186 -0
- package/dist/chunks/{chunk.NASETPCZ.js → chunk.LXS4P57X.js} +1 -1
- package/dist/chunks/{chunk.UCIFKWMI.js → chunk.MF7KW7MX.js} +1 -1
- package/dist/chunks/{chunk.P7SN3TMY.js → chunk.NJNQX6FX.js} +1 -1
- package/dist/chunks/{chunk.533C7JJH.js → chunk.NKOMMJMK.js} +10 -6
- package/dist/chunks/chunk.NZEV2R75.js +197 -0
- package/dist/chunks/{chunk.IXAKBOI4.js → chunk.ORWJR56M.js} +1 -1
- package/dist/chunks/{chunk.7XUPS5FG.js → chunk.PHSUFADX.js} +1 -0
- package/dist/chunks/chunk.Q2BCYSPM.js +70 -0
- package/dist/chunks/{chunk.PD6ETZGV.js → chunk.Q3II5ELV.js} +1 -1
- package/dist/chunks/{chunk.YWHYMKYI.js → chunk.QADAWCTI.js} +2 -0
- package/dist/chunks/chunk.QFO2VDJ3.js +286 -0
- package/dist/chunks/{chunk.TTZ6Y7GB.js → chunk.QGPBBIGJ.js} +1 -1
- package/dist/chunks/{chunk.XQDC25MI.js → chunk.QJIY2G7A.js} +1 -1
- package/dist/chunks/{chunk.H3X3D747.js → chunk.QLT366CP.js} +1 -5
- package/dist/chunks/{chunk.DFBKUH2U.js → chunk.RGHMS6RU.js} +1 -1
- package/dist/chunks/{chunk.2JCMUNW4.js → chunk.RURHQSLF.js} +1 -1
- package/dist/chunks/{chunk.LUPOBRAQ.js → chunk.SDT5BB26.js} +7 -8
- package/dist/chunks/{chunk.TXMAH3OK.js → chunk.SFD6GJDA.js} +53 -20
- package/dist/chunks/{chunk.ZRW5L2NC.js → chunk.SGKW2DOH.js} +3 -2
- package/dist/chunks/{chunk.IUPSCAN6.js → chunk.SGVMH2WK.js} +1 -1
- package/dist/chunks/{chunk.4URSPC26.js → chunk.SJN7BDOD.js} +1 -1
- package/dist/chunks/{chunk.5VC7IHJ2.js → chunk.STKBEBVL.js} +1 -1
- package/dist/chunks/{chunk.4VJTOIB4.js → chunk.SV6UZ7XX.js} +1 -1
- package/dist/chunks/{chunk.IFDJNZPC.js → chunk.SW6R5A3O.js} +1 -1
- package/dist/chunks/{chunk.H7ZLX7SO.js → chunk.TODRUEYV.js} +3 -3
- package/dist/chunks/chunk.TZVFQDBB.js +122 -0
- package/dist/chunks/chunk.ULPMZDTP.js +13 -0
- package/dist/chunks/{chunk.2BZBH3CX.js → chunk.URDP5HQR.js} +0 -6
- package/dist/chunks/{chunk.S6XG7G6X.js → chunk.VDYAE3MB.js} +2 -2
- package/dist/chunks/{chunk.XG7KR6BI.js → chunk.WDLYTTNO.js} +1 -1
- package/dist/chunks/{chunk.ZH3OZSYO.js → chunk.X6M22EYD.js} +22 -114
- package/dist/chunks/chunk.XAF7DDXJ.js +228 -0
- package/dist/chunks/{chunk.FC7AQRZS.js → chunk.XODWG3UJ.js} +1 -1
- package/dist/chunks/{chunk.GZEVQN6J.js → chunk.Y4CDJYQO.js} +20 -112
- package/dist/chunks/{chunk.RS4S7SAD.js → chunk.Y6XPKQ25.js} +1 -1
- package/dist/chunks/{chunk.7E57JVUE.js → chunk.YCRHX2XL.js} +1 -1
- package/dist/chunks/{chunk.JZYJ2V4F.js → chunk.YGRXSNFC.js} +1 -1
- package/dist/chunks/{chunk.MTOENDDR.js → chunk.YT4ZDRKX.js} +1 -1
- package/dist/chunks/{chunk.Y3I7GUNB.js → chunk.Z42XBNIN.js} +1 -1
- package/dist/chunks/{chunk.DISFQ7ZU.js → chunk.ZMMQOF24.js} +1 -1
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/anchor-tag/anchor-tag.d.ts +2 -1
- package/dist/components/anchor-tag/anchor-tag.js +1 -1
- package/dist/components/avatar/avatar.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +4 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/button/button.js +5 -5
- package/dist/components/calendar/calendar.js +2 -2
- package/dist/components/callout/callout.js +2 -2
- package/dist/components/card/card.d.ts +0 -2
- package/dist/components/card/card.js +1 -1
- package/dist/components/card-content/card-content.d.ts +51 -0
- package/dist/components/card-content/card-content.js +22 -0
- package/dist/components/card-content/card-content.styles.d.ts +2 -0
- package/dist/components/card-content/card-content.styles.js +8 -0
- package/dist/components/card-nav/card-nav.d.ts +23 -0
- package/dist/components/card-nav/card-nav.js +12 -0
- package/dist/components/card-nav/card-nav.styles.d.ts +2 -0
- package/dist/components/card-nav/card-nav.styles.js +8 -0
- package/dist/components/card-nav-accordion/card-nav-accordion.d.ts +49 -0
- package/dist/components/card-nav-accordion/card-nav-accordion.js +25 -0
- package/dist/components/card-nav-accordion/card-nav-accordion.styles.d.ts +2 -0
- package/dist/components/card-nav-accordion/card-nav-accordion.styles.js +8 -0
- package/dist/components/card-nav-item/card-nav-item.d.ts +38 -0
- package/dist/components/card-nav-item/card-nav-item.js +21 -0
- package/dist/components/card-nav-item/card-nav-item.styles.d.ts +2 -0
- package/dist/components/card-nav-item/card-nav-item.styles.js +8 -0
- package/dist/components/checkbox/checkbox.js +5 -5
- package/dist/components/checkbox-button/checkbox-button.js +4 -4
- package/dist/components/checkbox-card/checkbox-card.js +4 -4
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/combobox/combobox.js +6 -6
- package/dist/components/dialog/dialog.js +4 -4
- package/dist/components/download-card/download-card.js +2 -2
- package/dist/components/download-link/download-link.js +2 -2
- package/dist/components/drawer/drawer.js +4 -4
- package/dist/components/dropdown/dropdown.d.ts +0 -5
- 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.js +2 -2
- package/dist/components/fieldset/fieldset.d.ts +39 -0
- package/dist/components/fieldset/fieldset.js +13 -0
- package/dist/components/fieldset/fieldset.styles.d.ts +2 -0
- package/dist/components/fieldset/fieldset.styles.js +8 -0
- package/dist/components/file-upload/file-upload.js +4 -4
- package/dist/components/file-upload-item/file-upload-item.js +2 -2
- package/dist/components/filter-base/filter-base.js +5 -5
- package/dist/components/filter-button/filter-button.js +4 -4
- package/dist/components/filter-counter/filter-counter.js +23 -20
- package/dist/components/filter-date/filter-date.js +10 -10
- package/dist/components/filter-range/filter-range.js +23 -20
- package/dist/components/filter-select/filter-select.js +24 -21
- 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 +3 -3
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/header-search/header-search.js +6 -6
- package/dist/components/icon/icon.js +2 -2
- package/dist/components/icon-button/icon-button.js +2 -2
- package/dist/components/input/input.d.ts +17 -81
- package/dist/components/input/input.js +16 -13
- package/dist/components/input-date/input-date.d.ts +4 -42
- package/dist/components/input-date/input-date.js +10 -9
- package/dist/components/input-date/input-date.styles.js +2 -2
- package/dist/components/input-mask/input-mask.d.ts +3 -50
- package/dist/components/input-mask/input-mask.js +5 -4
- package/dist/components/input-native/input-native.d.ts +57 -0
- package/dist/components/input-native/input-native.js +35 -0
- package/dist/components/input-native/input-native.styles.d.ts +2 -0
- package/dist/components/input-native/input-native.styles.js +10 -0
- package/dist/components/{input/input.utils.d.ts → input-native/input-native.utils.d.ts} +1 -1
- package/dist/components/{input/input.utils.js → input-native/input-native.utils.js} +1 -1
- package/dist/components/input-otp/input-otp.d.ts +6 -50
- package/dist/components/input-otp/input-otp.js +4 -3
- package/dist/components/input-phone/input-phone.d.ts +5 -36
- package/dist/components/input-phone/input-phone.js +8 -7
- package/dist/components/input-time/input-time.d.ts +8 -53
- package/dist/components/input-time/input-time.js +7 -6
- package/dist/components/input-time/input-time.styles.js +2 -2
- package/dist/components/menu-accordion/menu-accordion.js +4 -4
- package/dist/components/menu-item/menu-item.d.ts +1 -1
- package/dist/components/menu-item/menu-item.js +5 -4
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/mutation-observer/mutation-observer.d.ts +1 -3
- package/dist/components/mutation-observer/mutation-observer.js +1 -1
- package/dist/components/navbar-link/navbar-link.js +2 -2
- package/dist/components/navbar-menu/navbar-menu.js +4 -4
- package/dist/components/option/option.js +4 -4
- package/dist/components/pagination/pagination.js +17 -14
- package/dist/components/profile-button/profile-button.js +5 -5
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/quote/quote.js +2 -2
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/radio-button/radio-button.js +2 -2
- package/dist/components/radio-card/radio-card.js +4 -4
- package/dist/components/radio-group/radio-group.js +2 -2
- package/dist/components/relative-time/relative-time.d.ts +1 -1
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/resize-observer/resize-observer.d.ts +1 -3
- package/dist/components/select/select.js +5 -5
- 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 +4 -4
- package/dist/components/step/step.js +4 -4
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/tab/tab.js +4 -4
- package/dist/components/tab-group/tab-group.d.ts +2 -0
- package/dist/components/tab-group/tab-group.js +4 -4
- package/dist/components/table/table.js +2 -2
- package/dist/components/table/table.styles.js +1 -1
- package/dist/components/table-action/table-action.js +2 -2
- package/dist/components/table-body/table-body.js +3 -3
- package/dist/components/table-caption/table-caption.js +2 -2
- package/dist/components/table-container/table-container.js +2 -2
- package/dist/components/table-head/table-head.js +3 -3
- package/dist/components/table-header-cell/table-header-cell.js +4 -4
- package/dist/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/dist/components/table-header-row/table-header-row.js +10 -10
- package/dist/components/table-of-contents/table-of-contents.js +2 -2
- package/dist/components/table-row/table-row.js +7 -7
- package/dist/components/tag/tag.js +4 -4
- package/dist/components/tag-button/tag-button.d.ts +53 -0
- package/dist/components/tag-button/tag-button.js +12 -0
- package/dist/components/tag-button/tag-button.styles.d.ts +2 -0
- package/dist/components/tag-button/tag-button.styles.js +8 -0
- package/dist/components/textarea/textarea.js +2 -2
- package/dist/components/tooltip/tooltip.d.ts +2 -0
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +10 -10
- package/dist/components/tree-item/tree-item.js +8 -8
- package/dist/custom-elements.json +7595 -8126
- package/dist/design-system.d.ts +7 -2
- package/dist/design-system.js +175 -147
- package/dist/internal/components/checkbox-box/checkbox-box.styles.js +0 -6
- package/dist/internal/components/date-field/date-field.d.ts +11 -0
- package/dist/internal/components/date-field/date-field.js +23 -1
- package/dist/internal/components/input-base/input-base.d.ts +118 -0
- package/dist/internal/components/input-base/input-base.js +313 -0
- package/dist/internal/components/input-base/input-base.styles.d.ts +2 -0
- package/dist/internal/components/input-base/input-base.styles.js +302 -0
- package/dist/internal/components/input-base/input-base.utils.d.ts +1 -0
- package/dist/internal/components/input-base/input-base.utils.js +1 -0
- package/dist/internal/components/radio-icon/radio-icon.styles.js +0 -6
- package/dist/themes/dsa-wc-theme.css +94 -2
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +100 -2
- 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 +1 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +225 -355
- package/dist/web-types.json +3580 -4067
- package/package.json +17 -17
- package/cdn/chunks/chunk.7ITBH4NW.js +0 -687
- package/cdn/chunks/chunk.L7DPKZV6.js +0 -82
- package/cdn/chunks/chunk.VTPSYUIU.js +0 -19
- package/cdn/components/include/include.d.ts +0 -32
- package/cdn/components/include/include.js +0 -14
- package/dist/chunks/chunk.GQ4NIFUB.js +0 -674
- package/dist/chunks/chunk.MBQRU4CJ.js +0 -79
- package/dist/chunks/chunk.NNBOLKWI.js +0 -17
- package/dist/components/include/include.d.ts +0 -32
- package/dist/components/include/include.js +0 -12
- package/dist/components/include/include.styles.js +0 -8
- package/dist/components/input/input.styles.js +0 -9
- /package/cdn/components/{include/include.styles.d.ts → card-content/card-content.styles.d.ts} +0 -0
- /package/{dist/components/input/input.styles.d.ts → cdn/components/card-nav/card-nav.styles.d.ts} +0 -0
- /package/cdn/components/{input/input.styles.d.ts → card-nav-accordion/card-nav-accordion.styles.d.ts} +0 -0
- /package/{dist/components/include/include.styles.d.ts → cdn/components/card-nav-item/card-nav-item.styles.d.ts} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FormControlLayout } from '../../internal/components/form-control/form-control-layout';
|
|
1
|
+
import { InputBase } from '../../internal/components/input-base/input-base';
|
|
3
2
|
import type { ShoelaceFormControl } from '../../internal/shoelace-element';
|
|
4
3
|
import '../icon-button/icon-button';
|
|
5
4
|
import '../icon/icon';
|
|
6
|
-
import
|
|
5
|
+
import DSAInputDate from '../input-date/input-date';
|
|
6
|
+
import '../input-native/input-native';
|
|
7
|
+
import type DSAInputNative from '../input-native/input-native';
|
|
8
|
+
import DSAInputTime from '../input-time/input-time';
|
|
7
9
|
/**
|
|
8
10
|
* @summary Inputs collect data from the user.
|
|
9
11
|
*
|
|
@@ -12,6 +14,8 @@ import type { DSAInputTypes } from './input.utils';
|
|
|
12
14
|
* @dependency dsa-icon
|
|
13
15
|
* @dependency dsa-icon-button
|
|
14
16
|
* @dependency dsa-input-date
|
|
17
|
+
* @dependency dsa-input-time
|
|
18
|
+
* @dependency dsa-input-native
|
|
15
19
|
* @dependency dsa-error-text
|
|
16
20
|
*
|
|
17
21
|
* @slot label - The input's label. Alternatively, you can use the `label` attribute.
|
|
@@ -27,67 +31,16 @@ import type { DSAInputTypes } from './input.utils';
|
|
|
27
31
|
* @event dsa-input - Emitted when the control receives input.
|
|
28
32
|
* @event dsa-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
29
33
|
*/
|
|
30
|
-
export default class DSAInput extends
|
|
31
|
-
|
|
32
|
-
private readonly formControlController;
|
|
33
|
-
private readonly localize;
|
|
34
|
-
private standardInput;
|
|
35
|
-
private dateInput;
|
|
36
|
-
private timeInput;
|
|
37
|
-
private input;
|
|
38
|
-
private hasFocus;
|
|
34
|
+
export default class DSAInput extends InputBase implements ShoelaceFormControl {
|
|
35
|
+
inputElement: DSAInputNative | DSAInputDate | DSAInputTime;
|
|
39
36
|
/**
|
|
40
|
-
*
|
|
41
|
-
* to `text`.
|
|
37
|
+
* Input date specific properties
|
|
42
38
|
*/
|
|
43
|
-
type: DSAInputTypes;
|
|
44
|
-
/** The current value of the input, submitted as a name/value pair with form data. */
|
|
45
|
-
value: string;
|
|
46
|
-
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
47
|
-
defaultValue: string;
|
|
48
|
-
/** Adds a clear button when the input is not empty. */
|
|
49
|
-
clearable: boolean;
|
|
50
39
|
lang: string;
|
|
51
|
-
/** Determines whether or not the password is currently visible. Only applies to password input types. */
|
|
52
|
-
passwordVisible: boolean;
|
|
53
|
-
/** A regular expression pattern to validate input against. */
|
|
54
|
-
pattern: string;
|
|
55
|
-
/** The minimum length of input that will be considered valid. */
|
|
56
|
-
minlength: number;
|
|
57
|
-
/** The maximum length of input that will be considered valid. */
|
|
58
|
-
maxlength: number;
|
|
59
|
-
/** Display the counter if maxlength is provided */
|
|
60
|
-
counter: boolean;
|
|
61
|
-
/** The input's minimum value. Only applies to date and number input types. */
|
|
62
|
-
min: number | string;
|
|
63
|
-
/** The input's maximum value. Only applies to date and number input types. */
|
|
64
|
-
max: number | string;
|
|
65
40
|
calendarStartDate: string;
|
|
66
41
|
/**
|
|
67
|
-
*
|
|
68
|
-
* implied, allowing any numeric value. Only applies to date and number input types.
|
|
42
|
+
* Connect methods to underlying input element
|
|
69
43
|
*/
|
|
70
|
-
step: number | 'any';
|
|
71
|
-
/** Controls whether and how text input is automatically capitalized as it is entered by the user. */
|
|
72
|
-
autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
73
|
-
/** Indicates whether the browser's autocorrect feature is on or off. */
|
|
74
|
-
autocorrect: 'off' | 'on';
|
|
75
|
-
/**
|
|
76
|
-
* Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
|
|
77
|
-
* [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
|
|
78
|
-
*/
|
|
79
|
-
autocomplete: string;
|
|
80
|
-
/** Indicates that the input should receive focus on page load. */
|
|
81
|
-
autofocus: boolean;
|
|
82
|
-
/** Used to customize the label or icon of the Enter key on virtual keyboards. */
|
|
83
|
-
enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
84
|
-
/** Enables spell checking on the input. */
|
|
85
|
-
spellcheck: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
|
|
88
|
-
* keyboard on supportive devices.
|
|
89
|
-
*/
|
|
90
|
-
inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
91
44
|
/** Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. */
|
|
92
45
|
get valueAsDate(): Date | null;
|
|
93
46
|
set valueAsDate(newValue: Date | null);
|
|
@@ -98,22 +51,9 @@ export default class DSAInput extends FormControlLayout implements ShoelaceFormC
|
|
|
98
51
|
get validity(): ValidityState;
|
|
99
52
|
/** Gets the validation message */
|
|
100
53
|
get validationMessage(): string;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
private handleChange;
|
|
104
|
-
private handleAmountChange;
|
|
105
|
-
private handleClearClick;
|
|
106
|
-
private handleFocus;
|
|
107
|
-
private handleInput;
|
|
108
|
-
private handleInvalid;
|
|
109
|
-
private handleKeyDown;
|
|
110
|
-
private handleAmountKeydown;
|
|
111
|
-
private getSafeStep;
|
|
112
|
-
private handlePasswordToggle;
|
|
113
|
-
private getDescriptionIds;
|
|
114
|
-
handleDisabledChange(): void;
|
|
54
|
+
protected handleChange(): void;
|
|
55
|
+
protected handleInput(): void;
|
|
115
56
|
handleStepChange(): void;
|
|
116
|
-
handleValueChange(): Promise<void>;
|
|
117
57
|
/** Sets focus on the input. */
|
|
118
58
|
focus(options?: FocusOptions): void;
|
|
119
59
|
/** Removes focus from the input. */
|
|
@@ -128,24 +68,20 @@ export default class DSAInput extends FormControlLayout implements ShoelaceFormC
|
|
|
128
68
|
hideTimePicker(): Promise<void>;
|
|
129
69
|
showDatepicker(): Promise<void>;
|
|
130
70
|
hideDatepicker(): Promise<void>;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
stepDown(): void;
|
|
71
|
+
/** Increments the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
|
|
72
|
+
stepUp(stepNumber?: number): void;
|
|
73
|
+
/** Decrements the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
|
|
74
|
+
stepDown(stepNumber?: number): void;
|
|
136
75
|
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
137
76
|
checkValidity(): boolean;
|
|
138
77
|
/** Gets the associated form, if one exists. */
|
|
139
78
|
getForm(): HTMLFormElement | null;
|
|
140
79
|
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
141
80
|
reportValidity(): boolean;
|
|
142
|
-
private checkAmountValidity;
|
|
143
81
|
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
144
82
|
setCustomValidity(message: string): void;
|
|
145
83
|
getUpdateComplete(): Promise<boolean>;
|
|
146
84
|
render(): import("lit").TemplateResult<1>;
|
|
147
|
-
renderInput(): import("lit").TemplateResult<1>;
|
|
148
|
-
renderCounter(): import("lit").TemplateResult<1>;
|
|
149
85
|
}
|
|
150
86
|
declare global {
|
|
151
87
|
interface HTMLElementTagNameMap {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSAInput
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.CAWNJ57J.js";
|
|
4
|
+
import "../../chunks/chunk.7CBNLWGC.js";
|
|
5
|
+
import "../../chunks/chunk.WWI5IYQY.js";
|
|
5
6
|
import "../../chunks/chunk.IONY2GZF.js";
|
|
6
|
-
import "../../chunks/chunk.
|
|
7
|
-
import "../../chunks/chunk.
|
|
8
|
-
import "../../chunks/chunk.
|
|
9
|
-
import "../../chunks/chunk.
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.
|
|
7
|
+
import "../../chunks/chunk.T6APUNAB.js";
|
|
8
|
+
import "../../chunks/chunk.EVV7CPIX.js";
|
|
9
|
+
import "../../chunks/chunk.PT3QFRYN.js";
|
|
10
|
+
import "../../chunks/chunk.LYIECKOK.js";
|
|
11
|
+
import "../../chunks/chunk.YGJ3KERC.js";
|
|
12
|
+
import "../../chunks/chunk.NON7TU3E.js";
|
|
13
|
+
import "../../chunks/chunk.OCDDQJHV.js";
|
|
14
|
+
import "../../chunks/chunk.IPKU2NK6.js";
|
|
12
15
|
import "../../chunks/chunk.E73QKLNL.js";
|
|
13
16
|
import "../../chunks/chunk.KS7QG726.js";
|
|
14
17
|
import "../../chunks/chunk.IEQULSYY.js";
|
|
15
18
|
import "../../chunks/chunk.EMIT7S33.js";
|
|
16
|
-
import "../../chunks/chunk.WJDOTH54.js";
|
|
17
|
-
import "../../chunks/chunk.VZPL3NCB.js";
|
|
18
|
-
import "../../chunks/chunk.YBWQADCH.js";
|
|
19
19
|
import "../../chunks/chunk.7PPSHHT2.js";
|
|
20
20
|
import "../../chunks/chunk.YY5FKN3H.js";
|
|
21
21
|
import "../../chunks/chunk.SCHNZ3XK.js";
|
|
@@ -24,6 +24,9 @@ import "../../chunks/chunk.POKFLTEE.js";
|
|
|
24
24
|
import "../../chunks/chunk.D3U3NPDM.js";
|
|
25
25
|
import "../../chunks/chunk.EY4WUNAJ.js";
|
|
26
26
|
import "../../chunks/chunk.IWMEHK72.js";
|
|
27
|
+
import "../../chunks/chunk.6SV5RDDG.js";
|
|
28
|
+
import "../../chunks/chunk.VZPL3NCB.js";
|
|
29
|
+
import "../../chunks/chunk.YBWQADCH.js";
|
|
27
30
|
import "../../chunks/chunk.3NWILHZZ.js";
|
|
28
31
|
import "../../chunks/chunk.WOGTGKIT.js";
|
|
29
32
|
import "../../chunks/chunk.YIY5RM53.js";
|
|
@@ -33,15 +36,15 @@ import "../../chunks/chunk.VIVOXZF6.js";
|
|
|
33
36
|
import "../../chunks/chunk.B4BZKR24.js";
|
|
34
37
|
import "../../chunks/chunk.UBKKXGSV.js";
|
|
35
38
|
import "../../chunks/chunk.2WRFDMKN.js";
|
|
36
|
-
import "../../chunks/chunk.
|
|
39
|
+
import "../../chunks/chunk.BMQ5WSY7.js";
|
|
37
40
|
import "../../chunks/chunk.CAMVBH5H.js";
|
|
38
41
|
import "../../chunks/chunk.D5IL5KN6.js";
|
|
39
42
|
import "../../chunks/chunk.CAYHSQZJ.js";
|
|
43
|
+
import "../../chunks/chunk.C2W7WMBY.js";
|
|
44
|
+
import "../../chunks/chunk.HJU52GCK.js";
|
|
40
45
|
import "../../chunks/chunk.23TOS4ZE.js";
|
|
41
46
|
import "../../chunks/chunk.XNEONNEJ.js";
|
|
42
47
|
import "../../chunks/chunk.GNULOP2U.js";
|
|
43
|
-
import "../../chunks/chunk.C2W7WMBY.js";
|
|
44
|
-
import "../../chunks/chunk.HJU52GCK.js";
|
|
45
48
|
import "../../chunks/chunk.4FQJ3QJK.js";
|
|
46
49
|
import "../../chunks/chunk.L633QVVV.js";
|
|
47
50
|
import "../../chunks/chunk.B6GVVW66.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSResultGroup } from 'lit';
|
|
2
2
|
import '../../internal/components/date-field/date-field';
|
|
3
3
|
import type DSAInternalDateField from '../../internal/components/date-field/date-field';
|
|
4
|
-
import {
|
|
4
|
+
import { InputBase } from '../../internal/components/input-base/input-base';
|
|
5
5
|
import type { ShoelaceFormControl } from '../../internal/shoelace-element';
|
|
6
6
|
import '../calendar/calendar';
|
|
7
7
|
import type DSAIconButton from '../icon-button/icon-button';
|
|
@@ -31,39 +31,15 @@ import type DSAPopup from '../popup/popup';
|
|
|
31
31
|
* @event dsa-after-hide - Emitted after the picker closes and all animations are complete.
|
|
32
32
|
|
|
33
33
|
*/
|
|
34
|
-
export default class DSAInputDate extends
|
|
34
|
+
export default class DSAInputDate extends InputBase implements ShoelaceFormControl {
|
|
35
35
|
static styles: CSSResultGroup;
|
|
36
|
-
private readonly formControlController;
|
|
37
36
|
private readonly localize;
|
|
38
|
-
|
|
39
|
-
input: HTMLInputElement;
|
|
37
|
+
input: DSAInternalDateField;
|
|
40
38
|
popup: DSAPopup;
|
|
41
39
|
datepickerButton: DSAIconButton;
|
|
42
40
|
private isDatepickerOpen;
|
|
43
|
-
private dateFieldHasFocus;
|
|
44
|
-
/** The current value of the input, submitted as a name/value pair with form data. */
|
|
45
|
-
value: string;
|
|
46
|
-
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
47
|
-
defaultValue: string;
|
|
48
|
-
/** Adds a clear button when the input is not empty. */
|
|
49
|
-
clearable: boolean;
|
|
50
41
|
lang: string;
|
|
51
|
-
/** The input's minimum value. Only applies to date and number input types. */
|
|
52
|
-
min: number | string;
|
|
53
|
-
/** The input's maximum value. Only applies to date and number input types. */
|
|
54
|
-
max: number | string;
|
|
55
42
|
calendarStartDate: string;
|
|
56
|
-
/** Indicates that the input should receive focus on page load. */
|
|
57
|
-
autofocus: boolean;
|
|
58
|
-
/** Used to customize the label or icon of the Enter key on virtual keyboards. */
|
|
59
|
-
enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
60
|
-
/** Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. */
|
|
61
|
-
get valueAsDate(): Date | null;
|
|
62
|
-
set valueAsDate(newValue: Date | null);
|
|
63
|
-
/** Gets the validity state object */
|
|
64
|
-
get validity(): ValidityState;
|
|
65
|
-
/** Gets the validation message */
|
|
66
|
-
get validationMessage(): string;
|
|
67
43
|
connectedCallback(): void;
|
|
68
44
|
firstUpdated(): Promise<void>;
|
|
69
45
|
private addOpenListeners;
|
|
@@ -72,31 +48,17 @@ export default class DSAInputDate extends FormControlLayout implements ShoelaceF
|
|
|
72
48
|
private handleDocumentFocusIn;
|
|
73
49
|
private handleDocumentMouseDown;
|
|
74
50
|
private handleDocumentKeyDown;
|
|
51
|
+
private handleDateFieldKeydown;
|
|
75
52
|
private handleDateFieldChange;
|
|
76
53
|
private handleDateFieldFocus;
|
|
77
54
|
private handleDateFieldBlur;
|
|
78
|
-
private handleClearClick;
|
|
79
|
-
private handleInvalid;
|
|
80
55
|
private getDateFieldDescription;
|
|
81
56
|
private shouldDisableDate;
|
|
82
|
-
handleDisabledChange(): void;
|
|
83
57
|
handleOpenChange(): Promise<void>;
|
|
84
|
-
/** Sets focus on the input. */
|
|
85
|
-
focus(options?: FocusOptions): void;
|
|
86
|
-
/** Removes focus from the input. */
|
|
87
|
-
blur(): void;
|
|
88
58
|
/** Displays the dsa-calendar picker for an input element. */
|
|
89
59
|
showDatepicker(): Promise<void>;
|
|
90
60
|
/** Hides dsa-calendar. */
|
|
91
61
|
hideDatepicker(): Promise<void>;
|
|
92
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
93
|
-
checkValidity(): boolean;
|
|
94
|
-
/** Gets the associated form, if one exists. */
|
|
95
|
-
getForm(): HTMLFormElement | null;
|
|
96
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
97
|
-
reportValidity(): boolean;
|
|
98
|
-
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
99
|
-
setCustomValidity(message: string): void;
|
|
100
62
|
getUpdateComplete(): Promise<boolean>;
|
|
101
63
|
protected handleLabelClick(): void;
|
|
102
64
|
renderInput(): import("lit").TemplateResult<1>;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSAInputDate
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
6
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.T6APUNAB.js";
|
|
4
|
+
import "../../chunks/chunk.EVV7CPIX.js";
|
|
5
|
+
import "../../chunks/chunk.YGJ3KERC.js";
|
|
6
|
+
import "../../chunks/chunk.OCDDQJHV.js";
|
|
7
|
+
import "../../chunks/chunk.IPKU2NK6.js";
|
|
7
8
|
import "../../chunks/chunk.E73QKLNL.js";
|
|
8
9
|
import "../../chunks/chunk.KS7QG726.js";
|
|
9
10
|
import "../../chunks/chunk.IEQULSYY.js";
|
|
10
|
-
import "../../chunks/chunk.WJDOTH54.js";
|
|
11
|
-
import "../../chunks/chunk.VZPL3NCB.js";
|
|
12
|
-
import "../../chunks/chunk.YBWQADCH.js";
|
|
13
11
|
import "../../chunks/chunk.7PPSHHT2.js";
|
|
14
12
|
import "../../chunks/chunk.YY5FKN3H.js";
|
|
15
13
|
import "../../chunks/chunk.POKFLTEE.js";
|
|
16
14
|
import "../../chunks/chunk.D3U3NPDM.js";
|
|
17
15
|
import "../../chunks/chunk.EY4WUNAJ.js";
|
|
18
16
|
import "../../chunks/chunk.IWMEHK72.js";
|
|
17
|
+
import "../../chunks/chunk.6SV5RDDG.js";
|
|
18
|
+
import "../../chunks/chunk.VZPL3NCB.js";
|
|
19
|
+
import "../../chunks/chunk.YBWQADCH.js";
|
|
19
20
|
import "../../chunks/chunk.3NWILHZZ.js";
|
|
20
21
|
import "../../chunks/chunk.WOGTGKIT.js";
|
|
21
22
|
import "../../chunks/chunk.YIY5RM53.js";
|
|
@@ -25,15 +26,15 @@ import "../../chunks/chunk.VIVOXZF6.js";
|
|
|
25
26
|
import "../../chunks/chunk.B4BZKR24.js";
|
|
26
27
|
import "../../chunks/chunk.UBKKXGSV.js";
|
|
27
28
|
import "../../chunks/chunk.2WRFDMKN.js";
|
|
28
|
-
import "../../chunks/chunk.
|
|
29
|
+
import "../../chunks/chunk.BMQ5WSY7.js";
|
|
29
30
|
import "../../chunks/chunk.CAMVBH5H.js";
|
|
30
31
|
import "../../chunks/chunk.D5IL5KN6.js";
|
|
31
32
|
import "../../chunks/chunk.CAYHSQZJ.js";
|
|
33
|
+
import "../../chunks/chunk.C2W7WMBY.js";
|
|
34
|
+
import "../../chunks/chunk.HJU52GCK.js";
|
|
32
35
|
import "../../chunks/chunk.23TOS4ZE.js";
|
|
33
36
|
import "../../chunks/chunk.XNEONNEJ.js";
|
|
34
37
|
import "../../chunks/chunk.GNULOP2U.js";
|
|
35
|
-
import "../../chunks/chunk.C2W7WMBY.js";
|
|
36
|
-
import "../../chunks/chunk.HJU52GCK.js";
|
|
37
38
|
import "../../chunks/chunk.4FQJ3QJK.js";
|
|
38
39
|
import "../../chunks/chunk.L633QVVV.js";
|
|
39
40
|
import "../../chunks/chunk.B6GVVW66.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input_date_styles_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.EVV7CPIX.js";
|
|
4
|
+
import "../../chunks/chunk.OCDDQJHV.js";
|
|
5
5
|
import "../../chunks/chunk.IWMEHK72.js";
|
|
6
6
|
import "../../chunks/chunk.PSQJDSB2.js";
|
|
7
7
|
import "../../chunks/chunk.4KHZQZ3M.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { InputBase } from '../../internal/components/input-base/input-base';
|
|
3
3
|
import type { ShoelaceFormControl } from '../../internal/shoelace-element';
|
|
4
4
|
/**
|
|
5
5
|
* @summary Input Masks collect data from the user in a masked fashion.
|
|
@@ -21,19 +21,11 @@ import type { ShoelaceFormControl } from '../../internal/shoelace-element';
|
|
|
21
21
|
* @event dsa-input - Emitted when the control receives input.
|
|
22
22
|
* @event dsa-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
23
23
|
*/
|
|
24
|
-
export default class DSAInputMask extends
|
|
24
|
+
export default class DSAInputMask extends InputBase implements ShoelaceFormControl {
|
|
25
25
|
static styles: CSSResultGroup;
|
|
26
|
-
private readonly formControlController;
|
|
27
26
|
private readonly localize;
|
|
28
27
|
input: HTMLInputElement;
|
|
29
|
-
private hasFocus;
|
|
30
28
|
private maskedValue;
|
|
31
|
-
/** The current value of the input, submitted as a name/value pair with form data. */
|
|
32
|
-
value: string;
|
|
33
|
-
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
34
|
-
defaultValue: string;
|
|
35
|
-
/** Adds a clear button when the input is not empty. */
|
|
36
|
-
clearable: boolean;
|
|
37
29
|
/**
|
|
38
30
|
* Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
|
|
39
31
|
* keyboard on supportive devices.
|
|
@@ -41,19 +33,6 @@ export default class DSAInputMask extends FormControlLayout implements ShoelaceF
|
|
|
41
33
|
inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'search';
|
|
42
34
|
/** A regular expression pattern to validate input against. */
|
|
43
35
|
pattern: string;
|
|
44
|
-
/** The minimum length of input that will be considered valid. */
|
|
45
|
-
minlength: number;
|
|
46
|
-
/** Indicates whether the browser's autocorrect feature is on or off. */
|
|
47
|
-
autocorrect: 'off' | 'on';
|
|
48
|
-
/**
|
|
49
|
-
* Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
|
|
50
|
-
* [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
|
|
51
|
-
*/
|
|
52
|
-
autocomplete: string;
|
|
53
|
-
/** Indicates that the input should receive focus on page load. */
|
|
54
|
-
autofocus: boolean;
|
|
55
|
-
/** Used to customize the label or icon of the Enter key on virtual keyboards. */
|
|
56
|
-
enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
57
36
|
/**
|
|
58
37
|
* Used to define the allowed or expected characters within a string or data input. It specifies the permissible characters that can be present at specific positions within a sequence.
|
|
59
38
|
* It should follow the format defined by the placeholder, but with its own permissible characters.
|
|
@@ -79,39 +58,13 @@ export default class DSAInputMask extends FormControlLayout implements ShoelaceF
|
|
|
79
58
|
mask: string;
|
|
80
59
|
/** Gets the validity state object */
|
|
81
60
|
get validity(): ValidityState;
|
|
82
|
-
/** Gets the validation message */
|
|
83
|
-
get validationMessage(): string;
|
|
84
|
-
firstUpdated(): void;
|
|
85
61
|
connectedCallback(): void;
|
|
86
62
|
private handleDocumentKeyUp;
|
|
87
|
-
private handleBlur;
|
|
88
63
|
private rawValueToMaskedValue;
|
|
89
|
-
|
|
90
|
-
private handleFocus;
|
|
91
|
-
private handleChange;
|
|
92
|
-
private handleInvalid;
|
|
93
|
-
private handleKeyDown;
|
|
94
|
-
private getDescriptionIds;
|
|
95
|
-
handleDisabledChange(): void;
|
|
64
|
+
protected handleChange(): void;
|
|
96
65
|
handleValueChange(): Promise<void>;
|
|
97
|
-
/** Sets focus on the input. */
|
|
98
|
-
focus(options?: FocusOptions): void;
|
|
99
|
-
/** Removes focus from the input. */
|
|
100
|
-
blur(): void;
|
|
101
|
-
/** Selects all the text in the input. */
|
|
102
|
-
select(): void;
|
|
103
|
-
/** Sets the start and end positions of the text selection (0-based). */
|
|
104
|
-
setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: 'forward' | 'backward' | 'none'): void;
|
|
105
66
|
/** Replaces a range of text with a new string. */
|
|
106
67
|
setRangeText(replacement: string, start?: number, end?: number, selectMode?: 'select' | 'start' | 'end' | 'preserve'): void;
|
|
107
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
108
|
-
checkValidity(): boolean;
|
|
109
|
-
/** Gets the associated form, if one exists. */
|
|
110
|
-
getForm(): HTMLFormElement | null;
|
|
111
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
112
|
-
reportValidity(): boolean;
|
|
113
|
-
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
114
|
-
setCustomValidity(message: string): void;
|
|
115
68
|
renderInput(): import("lit").TemplateResult<1>;
|
|
116
69
|
}
|
|
117
70
|
declare global {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSAInputMask
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.PQ4KTIXS.js";
|
|
4
4
|
import "../../chunks/chunk.A27ADPHB.js";
|
|
5
5
|
import "../../chunks/chunk.7OLEA3GQ.js";
|
|
6
|
+
import "../../chunks/chunk.YGJ3KERC.js";
|
|
6
7
|
import "../../chunks/chunk.E73QKLNL.js";
|
|
7
8
|
import "../../chunks/chunk.7PPSHHT2.js";
|
|
8
9
|
import "../../chunks/chunk.YY5FKN3H.js";
|
|
@@ -12,15 +13,15 @@ import "../../chunks/chunk.EY4WUNAJ.js";
|
|
|
12
13
|
import "../../chunks/chunk.IWMEHK72.js";
|
|
13
14
|
import "../../chunks/chunk.3NWILHZZ.js";
|
|
14
15
|
import "../../chunks/chunk.YIY5RM53.js";
|
|
15
|
-
import "../../chunks/chunk.
|
|
16
|
+
import "../../chunks/chunk.BMQ5WSY7.js";
|
|
16
17
|
import "../../chunks/chunk.CAMVBH5H.js";
|
|
17
18
|
import "../../chunks/chunk.D5IL5KN6.js";
|
|
18
19
|
import "../../chunks/chunk.CAYHSQZJ.js";
|
|
20
|
+
import "../../chunks/chunk.C2W7WMBY.js";
|
|
21
|
+
import "../../chunks/chunk.HJU52GCK.js";
|
|
19
22
|
import "../../chunks/chunk.23TOS4ZE.js";
|
|
20
23
|
import "../../chunks/chunk.XNEONNEJ.js";
|
|
21
24
|
import "../../chunks/chunk.GNULOP2U.js";
|
|
22
|
-
import "../../chunks/chunk.C2W7WMBY.js";
|
|
23
|
-
import "../../chunks/chunk.HJU52GCK.js";
|
|
24
25
|
import "../../chunks/chunk.4FQJ3QJK.js";
|
|
25
26
|
import "../../chunks/chunk.L633QVVV.js";
|
|
26
27
|
import "../../chunks/chunk.B6GVVW66.js";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { InputBase } from '../../internal/components/input-base/input-base';
|
|
3
|
+
import type { ShoelaceFormControl } from '../../internal/shoelace-element';
|
|
4
|
+
import '../icon-button/icon-button';
|
|
5
|
+
import '../icon/icon';
|
|
6
|
+
/**
|
|
7
|
+
* @summary (Internal) Inputs with native browser behavior.
|
|
8
|
+
* *
|
|
9
|
+
* @dependency dsa-icon
|
|
10
|
+
* @dependency dsa-icon-button
|
|
11
|
+
* @dependency dsa-error-text
|
|
12
|
+
*
|
|
13
|
+
* @slot label - The input's label. Alternatively, you can use the `label` attribute.
|
|
14
|
+
* @slot prefix - Used to prepend a presentational icon or similar element to the input.
|
|
15
|
+
* @slot suffix - Used to postpend a presentational icon or similar element to the input.
|
|
16
|
+
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
17
|
+
* @slot tooltip - The tooltip slot allows additional information to be passed along the label.
|
|
18
|
+
*
|
|
19
|
+
* @event dsa-blur - Emitted when the control loses focus.
|
|
20
|
+
* @event dsa-change - Emitted when an alteration to the control's value is committed by the user.
|
|
21
|
+
* @event dsa-clear - Emitted when the clear button is activated.
|
|
22
|
+
* @event dsa-focus - Emitted when the control gains focus.
|
|
23
|
+
* @event dsa-input - Emitted when the control receives input.
|
|
24
|
+
* @event dsa-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
25
|
+
*/
|
|
26
|
+
export default class DSAInputNative extends InputBase implements ShoelaceFormControl {
|
|
27
|
+
static styles: CSSResultGroup;
|
|
28
|
+
private readonly localize;
|
|
29
|
+
protected input: HTMLInputElement;
|
|
30
|
+
/** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */
|
|
31
|
+
get valueAsNumber(): number;
|
|
32
|
+
set valueAsNumber(newValue: number);
|
|
33
|
+
protected handleChange(): void;
|
|
34
|
+
private handleAmountChange;
|
|
35
|
+
protected handleInput(): void;
|
|
36
|
+
protected handleKeyDown(event: KeyboardEvent): void;
|
|
37
|
+
private handleAmountKeydown;
|
|
38
|
+
private getSafeStep;
|
|
39
|
+
private handlePasswordToggle;
|
|
40
|
+
private adjustAmountValue;
|
|
41
|
+
/** Increments the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
|
|
42
|
+
stepUp(stepNumber?: number): void;
|
|
43
|
+
/** Decrements the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
|
|
44
|
+
stepDown(stepNumber?: number): void;
|
|
45
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
46
|
+
checkValidity(): boolean;
|
|
47
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
48
|
+
reportValidity(): boolean;
|
|
49
|
+
private checkAmountValidity;
|
|
50
|
+
renderInput(): import("lit").TemplateResult<1>;
|
|
51
|
+
renderCounter(): import("lit").TemplateResult<1>;
|
|
52
|
+
}
|
|
53
|
+
declare global {
|
|
54
|
+
interface HTMLElementTagNameMap {
|
|
55
|
+
'dsa-input-native': DSAInputNative;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSAInputNative
|
|
3
|
+
} from "../../chunks/chunk.PT3QFRYN.js";
|
|
4
|
+
import "../../chunks/chunk.LYIECKOK.js";
|
|
5
|
+
import "../../chunks/chunk.YGJ3KERC.js";
|
|
6
|
+
import "../../chunks/chunk.NON7TU3E.js";
|
|
7
|
+
import "../../chunks/chunk.OCDDQJHV.js";
|
|
8
|
+
import "../../chunks/chunk.E73QKLNL.js";
|
|
9
|
+
import "../../chunks/chunk.7PPSHHT2.js";
|
|
10
|
+
import "../../chunks/chunk.YY5FKN3H.js";
|
|
11
|
+
import "../../chunks/chunk.POKFLTEE.js";
|
|
12
|
+
import "../../chunks/chunk.D3U3NPDM.js";
|
|
13
|
+
import "../../chunks/chunk.EY4WUNAJ.js";
|
|
14
|
+
import "../../chunks/chunk.IWMEHK72.js";
|
|
15
|
+
import "../../chunks/chunk.3NWILHZZ.js";
|
|
16
|
+
import "../../chunks/chunk.YIY5RM53.js";
|
|
17
|
+
import "../../chunks/chunk.ZYAFL7BC.js";
|
|
18
|
+
import "../../chunks/chunk.TS2KKUX2.js";
|
|
19
|
+
import "../../chunks/chunk.VIVOXZF6.js";
|
|
20
|
+
import "../../chunks/chunk.BMQ5WSY7.js";
|
|
21
|
+
import "../../chunks/chunk.CAMVBH5H.js";
|
|
22
|
+
import "../../chunks/chunk.D5IL5KN6.js";
|
|
23
|
+
import "../../chunks/chunk.CAYHSQZJ.js";
|
|
24
|
+
import "../../chunks/chunk.C2W7WMBY.js";
|
|
25
|
+
import "../../chunks/chunk.HJU52GCK.js";
|
|
26
|
+
import "../../chunks/chunk.23TOS4ZE.js";
|
|
27
|
+
import "../../chunks/chunk.XNEONNEJ.js";
|
|
28
|
+
import "../../chunks/chunk.GNULOP2U.js";
|
|
29
|
+
import "../../chunks/chunk.4FQJ3QJK.js";
|
|
30
|
+
import "../../chunks/chunk.L633QVVV.js";
|
|
31
|
+
import "../../chunks/chunk.B6GVVW66.js";
|
|
32
|
+
import "../../chunks/chunk.PWL7QCVG.js";
|
|
33
|
+
import "../../chunks/chunk.YQLIIKLI.js";
|
|
34
|
+
import "../../chunks/chunk.IKHG7XGO.js";
|
|
35
|
+
import "../../chunks/chunk.3VUJFXU2.js";
|
|
36
|
+
import "../../chunks/chunk.DZB6XUZ7.js";
|
|
37
|
+
import "../../chunks/chunk.PSQJDSB2.js";
|
|
38
|
+
import "../../chunks/chunk.4KHZQZ3M.js";
|
|
39
|
+
import "../../chunks/chunk.7HUC6BF3.js";
|
|
40
|
+
import "../../chunks/chunk.4ZGVANML.js";
|
|
41
|
+
export {
|
|
42
|
+
DSAInputNative as default
|
|
43
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/chunk.
|
|
2
|
+
input_native_styles_default
|
|
3
|
+
} from "../../chunks/chunk.NON7TU3E.js";
|
|
4
|
+
import "../../chunks/chunk.OCDDQJHV.js";
|
|
4
5
|
import "../../chunks/chunk.IWMEHK72.js";
|
|
5
6
|
import "../../chunks/chunk.PSQJDSB2.js";
|
|
6
7
|
import "../../chunks/chunk.4KHZQZ3M.js";
|
|
7
8
|
import "../../chunks/chunk.7HUC6BF3.js";
|
|
8
9
|
import "../../chunks/chunk.4ZGVANML.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
input_native_styles_default as default
|
|
11
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DSAInputTypes } from '../../internal/components/input-base/input-base.utils';
|
|
2
2
|
export type DSAInputOverridenPrefixIconTypes = Exclude<DSAInputTypes, 'number' | 'time' | 'text' | 'date' | 'datetime-local' | 'tel' | 'url' | 'amount'>;
|
|
3
3
|
export declare function isPrefixIconOverriden(type: DSAInputTypes): type is DSAInputOverridenPrefixIconTypes;
|
|
4
4
|
export declare function getOverridenIconDetails(type: DSAInputOverridenPrefixIconTypes): Record<"ariaLabel" | "iconName" | "partName", string>;
|