@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
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import {
|
|
2
|
+
big_default,
|
|
3
|
+
getOverridenIconDetails,
|
|
4
|
+
isInvalidAmountKey,
|
|
5
|
+
isPrefixIconOverriden,
|
|
6
|
+
numberToFrAmount,
|
|
7
|
+
parseFrAmount,
|
|
8
|
+
roundToStep
|
|
9
|
+
} from "./chunk.LYIECKOK.js";
|
|
10
|
+
import {
|
|
11
|
+
InputBase
|
|
12
|
+
} from "./chunk.YGJ3KERC.js";
|
|
13
|
+
import {
|
|
14
|
+
input_native_styles_default
|
|
15
|
+
} from "./chunk.NON7TU3E.js";
|
|
16
|
+
import {
|
|
17
|
+
l
|
|
18
|
+
} from "./chunk.7PPSHHT2.js";
|
|
19
|
+
import {
|
|
20
|
+
LocalizeController
|
|
21
|
+
} from "./chunk.BMQ5WSY7.js";
|
|
22
|
+
import {
|
|
23
|
+
ifDefinedAndNotEmpty
|
|
24
|
+
} from "./chunk.B6GVVW66.js";
|
|
25
|
+
import {
|
|
26
|
+
o
|
|
27
|
+
} from "./chunk.YQLIIKLI.js";
|
|
28
|
+
import {
|
|
29
|
+
e as e2
|
|
30
|
+
} from "./chunk.IKHG7XGO.js";
|
|
31
|
+
import {
|
|
32
|
+
e,
|
|
33
|
+
t
|
|
34
|
+
} from "./chunk.DZB6XUZ7.js";
|
|
35
|
+
import {
|
|
36
|
+
x
|
|
37
|
+
} from "./chunk.7HUC6BF3.js";
|
|
38
|
+
import {
|
|
39
|
+
__decorateClass
|
|
40
|
+
} from "./chunk.4ZGVANML.js";
|
|
41
|
+
|
|
42
|
+
// src/components/input-native/input-native.ts
|
|
43
|
+
var DSAInputNative = class extends InputBase {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
|
+
this.localize = new LocalizeController(this);
|
|
47
|
+
}
|
|
48
|
+
/** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */
|
|
49
|
+
get valueAsNumber() {
|
|
50
|
+
var _a;
|
|
51
|
+
if (this.type === "amount") {
|
|
52
|
+
return parseFloat(this.value.replace(",", "."));
|
|
53
|
+
} else {
|
|
54
|
+
return (_a = this.input.valueAsNumber) != null ? _a : parseFloat(this.value);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
set valueAsNumber(newValue) {
|
|
58
|
+
super.valueAsNumber = newValue;
|
|
59
|
+
}
|
|
60
|
+
handleChange() {
|
|
61
|
+
if (this.type === "amount") {
|
|
62
|
+
this.handleAmountChange();
|
|
63
|
+
this.value = this.input.value.replace(",", ".");
|
|
64
|
+
} else {
|
|
65
|
+
this.value = this.input.value;
|
|
66
|
+
}
|
|
67
|
+
this.emit("dsa-change");
|
|
68
|
+
}
|
|
69
|
+
handleAmountChange() {
|
|
70
|
+
if (this.input.value === "" || this.input.value === "-") {
|
|
71
|
+
this.input.value = "";
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const parsedValue = parseFrAmount(this.input.value);
|
|
75
|
+
const parsedMin = parseFloat(`${this.min}`);
|
|
76
|
+
const parsedMax = parseFloat(`${this.max}`);
|
|
77
|
+
this.input.value = numberToFrAmount(
|
|
78
|
+
roundToStep(parsedValue, this.getSafeStep())
|
|
79
|
+
);
|
|
80
|
+
if (!isNaN(parsedMin) && parsedValue < parsedMin) {
|
|
81
|
+
this.input.value = numberToFrAmount(this.min);
|
|
82
|
+
}
|
|
83
|
+
if (!isNaN(parsedMax) && parsedValue > parsedMax) {
|
|
84
|
+
this.input.value = numberToFrAmount(this.max);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
handleInput() {
|
|
88
|
+
if (this.type === "amount") {
|
|
89
|
+
this.value = this.input.value.replace(",", ".");
|
|
90
|
+
} else {
|
|
91
|
+
this.value = this.input.value;
|
|
92
|
+
}
|
|
93
|
+
this.formControlController.updateValidity();
|
|
94
|
+
this.emit("dsa-input");
|
|
95
|
+
}
|
|
96
|
+
handleKeyDown(event) {
|
|
97
|
+
const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
98
|
+
if (this.type === "amount") {
|
|
99
|
+
this.handleAmountKeydown(event);
|
|
100
|
+
}
|
|
101
|
+
if (event.key === "Enter" && !hasModifier) {
|
|
102
|
+
setTimeout(() => {
|
|
103
|
+
if (!event.defaultPrevented && !event.isComposing) {
|
|
104
|
+
this.formControlController.submit();
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
handleAmountKeydown(event) {
|
|
110
|
+
if (event.key === "Dead") {
|
|
111
|
+
this.input.blur();
|
|
112
|
+
setTimeout(() => this.input.focus());
|
|
113
|
+
}
|
|
114
|
+
if (isInvalidAmountKey(event) || event.key === "-" && this.input.selectionStart !== null && this.input.selectionStart > 0 || event.key === "," && this.input.value.includes(",")) {
|
|
115
|
+
event.preventDefault();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (event.key === "ArrowDown") {
|
|
119
|
+
this.stepDown();
|
|
120
|
+
}
|
|
121
|
+
if (event.key === "ArrowUp") {
|
|
122
|
+
this.stepUp();
|
|
123
|
+
}
|
|
124
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
125
|
+
const inputEvent = new Event("input", { bubbles: true });
|
|
126
|
+
const changeEvent = new Event("change", { bubbles: true });
|
|
127
|
+
this.input.dispatchEvent(inputEvent);
|
|
128
|
+
this.input.dispatchEvent(changeEvent);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
getSafeStep() {
|
|
132
|
+
if (this.step === "any") {
|
|
133
|
+
return this.step;
|
|
134
|
+
}
|
|
135
|
+
const parsedStep = parseFloat(`${this.step}`);
|
|
136
|
+
if (isNaN(parsedStep) || parsedStep === 0) {
|
|
137
|
+
return 1;
|
|
138
|
+
} else {
|
|
139
|
+
return parsedStep;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
handlePasswordToggle() {
|
|
143
|
+
this.passwordVisible = !this.passwordVisible;
|
|
144
|
+
}
|
|
145
|
+
adjustAmountValue(direction) {
|
|
146
|
+
const safeStep = this.getSafeStep();
|
|
147
|
+
const numberStep = new big_default(safeStep === "any" ? 1 : safeStep);
|
|
148
|
+
const parsedValue = new big_default(parseFrAmount(this.input.value));
|
|
149
|
+
const newValue = direction === "up" ? parsedValue.plus(numberStep).toNumber() : parsedValue.minus(numberStep).toNumber();
|
|
150
|
+
this.input.value = numberToFrAmount(newValue);
|
|
151
|
+
this.value = this.input.value.replace(",", ".");
|
|
152
|
+
}
|
|
153
|
+
/** Increments the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
|
|
154
|
+
stepUp(stepNumber) {
|
|
155
|
+
switch (this.type) {
|
|
156
|
+
case "amount":
|
|
157
|
+
this.adjustAmountValue("up");
|
|
158
|
+
return;
|
|
159
|
+
default:
|
|
160
|
+
this.input.stepUp(stepNumber);
|
|
161
|
+
if (this.value !== this.input.value) {
|
|
162
|
+
this.value = this.input.value;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/** Decrements the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
|
|
167
|
+
stepDown(stepNumber) {
|
|
168
|
+
switch (this.type) {
|
|
169
|
+
case "amount":
|
|
170
|
+
this.adjustAmountValue("down");
|
|
171
|
+
return;
|
|
172
|
+
default:
|
|
173
|
+
this.input.stepDown(stepNumber);
|
|
174
|
+
if (this.value !== this.input.value) {
|
|
175
|
+
this.value = this.input.value;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
180
|
+
checkValidity() {
|
|
181
|
+
if (this.type === "amount") {
|
|
182
|
+
return this.input.checkValidity() && this.checkAmountValidity();
|
|
183
|
+
}
|
|
184
|
+
return this.input.checkValidity();
|
|
185
|
+
}
|
|
186
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
187
|
+
reportValidity() {
|
|
188
|
+
if (this.type === "amount") {
|
|
189
|
+
return this.input.reportValidity() && this.checkAmountValidity();
|
|
190
|
+
}
|
|
191
|
+
return this.input.reportValidity();
|
|
192
|
+
}
|
|
193
|
+
checkAmountValidity() {
|
|
194
|
+
if (this.value === "") {
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
const parsedValue = parseFloat(this.value);
|
|
198
|
+
const parsedMin = parseFloat(`${this.min}`);
|
|
199
|
+
const parsedMax = parseFloat(`${this.max}`);
|
|
200
|
+
const safeStep = this.getSafeStep();
|
|
201
|
+
return !isNaN(parsedValue) && (isNaN(parsedMin) || parsedValue >= parsedMin) && (isNaN(parsedMax) || parsedValue <= parsedMax) && (safeStep === "any" || roundToStep(parsedValue, safeStep) === parsedValue);
|
|
202
|
+
}
|
|
203
|
+
renderInput() {
|
|
204
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
205
|
+
const overridenPrefixIcon = isPrefixIconOverriden(this.type) ? getOverridenIconDetails(this.type) : void 0;
|
|
206
|
+
const hasPrefixIcon = overridenPrefixIcon !== void 0 || this.hasSlotController.test("prefix");
|
|
207
|
+
const hasSuffixIcon = this.hasSlotController.test("suffix");
|
|
208
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
209
|
+
const hasClearIcon = this.clearable && !this.disabled && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
|
210
|
+
const hasHideIcon = this.type === "password" && !this.disabled;
|
|
211
|
+
let nativeType;
|
|
212
|
+
if (this.type === "password" && this.passwordVisible || this.type === "amount") {
|
|
213
|
+
nativeType = "text";
|
|
214
|
+
} else {
|
|
215
|
+
nativeType = this.type;
|
|
216
|
+
}
|
|
217
|
+
return x`
|
|
218
|
+
<div
|
|
219
|
+
part="base"
|
|
220
|
+
class=${e2({
|
|
221
|
+
input: true,
|
|
222
|
+
// Sizes
|
|
223
|
+
"input--small": this.size === "small",
|
|
224
|
+
"input--medium": this.size === "medium",
|
|
225
|
+
"input--large": this.size === "large",
|
|
226
|
+
// States
|
|
227
|
+
"input--error": this.error,
|
|
228
|
+
"input--on-layer": this.variant === "layer",
|
|
229
|
+
"input--on-base": this.variant === "base",
|
|
230
|
+
"input--disabled": this.disabled,
|
|
231
|
+
"input--readonly": this.readonly,
|
|
232
|
+
"input--focused": this.hasFocus,
|
|
233
|
+
"input--empty": !this.value,
|
|
234
|
+
"form-control--has-prefix-icon": hasPrefixIcon
|
|
235
|
+
})}
|
|
236
|
+
>
|
|
237
|
+
${overridenPrefixIcon ? x`<dsa-icon
|
|
238
|
+
name=${overridenPrefixIcon.iconName}
|
|
239
|
+
class="input__prefix"
|
|
240
|
+
library="system"
|
|
241
|
+
></dsa-icon>` : x` <slot
|
|
242
|
+
name="prefix"
|
|
243
|
+
part="prefix"
|
|
244
|
+
id="input__prefix"
|
|
245
|
+
class="input__prefix"
|
|
246
|
+
></slot>`}
|
|
247
|
+
|
|
248
|
+
<input
|
|
249
|
+
part="input"
|
|
250
|
+
id="input"
|
|
251
|
+
class="input__control"
|
|
252
|
+
type=${nativeType}
|
|
253
|
+
title=${ifDefinedAndNotEmpty(hasLabel ? void 0 : this.title)}
|
|
254
|
+
name=${ifDefinedAndNotEmpty(this.name)}
|
|
255
|
+
?disabled=${this.disabled}
|
|
256
|
+
?readonly=${this.readonly}
|
|
257
|
+
?required=${this.required}
|
|
258
|
+
placeholder=${o(this.placeholder)}
|
|
259
|
+
minlength=${o(this.minlength)}
|
|
260
|
+
maxlength=${o(this.maxlength)}
|
|
261
|
+
min=${o(this.min)}
|
|
262
|
+
max=${o(this.max)}
|
|
263
|
+
step=${o(this.step)}
|
|
264
|
+
.value=${l(
|
|
265
|
+
this.type === "amount" ? numberToFrAmount(this.value) : this.value
|
|
266
|
+
)}
|
|
267
|
+
autocapitalize=${o(this.autocapitalize)}
|
|
268
|
+
autocomplete=${o(this.autocomplete)}
|
|
269
|
+
autocorrect=${o(this.autocorrect)}
|
|
270
|
+
?autofocus=${this.autofocus}
|
|
271
|
+
spellcheck=${this.spellcheck}
|
|
272
|
+
pattern=${o(this.pattern)}
|
|
273
|
+
enterkeyhint=${o(this.enterkeyhint)}
|
|
274
|
+
inputmode=${o(this.inputmode)}
|
|
275
|
+
aria-label=${ifDefinedAndNotEmpty(hasLabel ? void 0 : this.title)}
|
|
276
|
+
aria-describedby=${this.getDescriptionIds()}
|
|
277
|
+
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
278
|
+
@change=${this.handleChange}
|
|
279
|
+
@input=${this.handleInput}
|
|
280
|
+
@invalid=${this.handleInvalid}
|
|
281
|
+
@keydown=${this.handleKeyDown}
|
|
282
|
+
@focus=${this.handleFocus}
|
|
283
|
+
@blur=${this.handleBlur}
|
|
284
|
+
/>
|
|
285
|
+
|
|
286
|
+
${hasSuffixIcon ? x`<slot
|
|
287
|
+
name="suffix"
|
|
288
|
+
id="input__suffix"
|
|
289
|
+
class="input__suffix"
|
|
290
|
+
></slot>` : ""}
|
|
291
|
+
${hasClearIcon ? x`
|
|
292
|
+
<dsa-icon-button
|
|
293
|
+
part="clear-button"
|
|
294
|
+
class="input__action-button"
|
|
295
|
+
name="clear"
|
|
296
|
+
label=${this.localize.term("clearEntry")}
|
|
297
|
+
@click=${this.handleClearClick}
|
|
298
|
+
library="system"
|
|
299
|
+
></dsa-icon-button>
|
|
300
|
+
` : ""}
|
|
301
|
+
${hasHideIcon ? x`<dsa-icon-button
|
|
302
|
+
part="password-toggle-button"
|
|
303
|
+
class="input__action-button"
|
|
304
|
+
label=${this.localize.term(
|
|
305
|
+
this.passwordVisible ? "hidePassword" : "showPassword"
|
|
306
|
+
)}
|
|
307
|
+
name=${this.passwordVisible ? "visibility_off" : "visibility"}
|
|
308
|
+
@click=${this.handlePasswordToggle}
|
|
309
|
+
library="system"
|
|
310
|
+
></dsa-icon-button>` : ""}
|
|
311
|
+
</div>
|
|
312
|
+
`;
|
|
313
|
+
}
|
|
314
|
+
renderCounter() {
|
|
315
|
+
const counterText = this.maxlength && this.counter ? `${this.value.length}/${this.maxlength}` : void 0;
|
|
316
|
+
return counterText !== void 0 ? x`<span
|
|
317
|
+
id="counter"
|
|
318
|
+
class=${e2({
|
|
319
|
+
"form-control__counter": true,
|
|
320
|
+
"form-control__counter--animated": this.value.length === this.maxlength
|
|
321
|
+
})}
|
|
322
|
+
>${counterText}</span
|
|
323
|
+
>` : x``;
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
DSAInputNative.styles = input_native_styles_default;
|
|
327
|
+
__decorateClass([
|
|
328
|
+
e("input")
|
|
329
|
+
], DSAInputNative.prototype, "input", 2);
|
|
330
|
+
DSAInputNative = __decorateClass([
|
|
331
|
+
t("dsa-input-native")
|
|
332
|
+
], DSAInputNative);
|
|
333
|
+
|
|
334
|
+
export {
|
|
335
|
+
DSAInputNative
|
|
336
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.PSQJDSB2.js";
|
|
4
|
+
import {
|
|
5
|
+
i
|
|
6
|
+
} from "./chunk.4KHZQZ3M.js";
|
|
7
|
+
|
|
8
|
+
// src/components/fieldset/fieldset.styles.ts
|
|
9
|
+
var fieldset_styles_default = i`
|
|
10
|
+
${component_styles_default}
|
|
11
|
+
|
|
12
|
+
:host {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.fieldset {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: var(--dsa-spacing-24);
|
|
20
|
+
|
|
21
|
+
background-color: var(--dsa-wc-fieldset-background);
|
|
22
|
+
padding: var(--dsa-spacing-24);
|
|
23
|
+
border-radius: var(--dsa-radius-8);
|
|
24
|
+
border-width: 1px;
|
|
25
|
+
border-style: solid;
|
|
26
|
+
}
|
|
27
|
+
.fieldset--on-base {
|
|
28
|
+
border-color: var(--dsa-wc-fieldset-border-color);
|
|
29
|
+
}
|
|
30
|
+
.fieldset--on-layer {
|
|
31
|
+
border-color: transparent;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fieldset__legend {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: var(--dsa-spacing-12);
|
|
38
|
+
color: var(--dsa-wc-fieldset-legend-color);
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.fieldset__first-line {
|
|
43
|
+
display: flex;
|
|
44
|
+
gap: var(--dsa-spacing-4);
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
.fieldset__legend-title {
|
|
48
|
+
font: var(--dsa-wc-fieldset-title-font);
|
|
49
|
+
}
|
|
50
|
+
.fieldset__tooltip {
|
|
51
|
+
--dsa-wc-internal-icon-button-padding: var(--dsa-spacing-2);
|
|
52
|
+
}
|
|
53
|
+
.fieldset__legend-subtitle {
|
|
54
|
+
font: var(--dsa-font-small-normal);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.fieldset__content {
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: var(--dsa-spacing-16);
|
|
60
|
+
flex-wrap: wrap;
|
|
61
|
+
}
|
|
62
|
+
.fieldset--vertical .fieldset__content {
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
.fieldset--horizontal .fieldset__content {
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
fieldset_styles_default
|
|
72
|
+
};
|
|
@@ -7,16 +7,16 @@ import {
|
|
|
7
7
|
} from "./chunk.DQI2JTKU.js";
|
|
8
8
|
import {
|
|
9
9
|
FilterBase
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.KNKNPTGU.js";
|
|
11
|
+
import {
|
|
12
|
+
l
|
|
13
|
+
} from "./chunk.7PPSHHT2.js";
|
|
11
14
|
import {
|
|
12
15
|
getDateFromISO,
|
|
13
16
|
getISOFormattedDate,
|
|
14
17
|
getLocaleDateFromISO,
|
|
15
18
|
isValidDate
|
|
16
19
|
} from "./chunk.YBWQADCH.js";
|
|
17
|
-
import {
|
|
18
|
-
l
|
|
19
|
-
} from "./chunk.7PPSHHT2.js";
|
|
20
20
|
import {
|
|
21
21
|
watch
|
|
22
22
|
} from "./chunk.4FQJ3QJK.js";
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.PSQJDSB2.js";
|
|
4
|
+
import {
|
|
5
|
+
i
|
|
6
|
+
} from "./chunk.4KHZQZ3M.js";
|
|
7
|
+
|
|
8
|
+
// src/components/card-content/card-content.styles.ts
|
|
9
|
+
var card_content_styles_default = i`
|
|
10
|
+
${component_styles_default}
|
|
11
|
+
|
|
12
|
+
:host {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Resetting slotted elements styles */
|
|
17
|
+
::slotted(*) {
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
font-size: 100%;
|
|
21
|
+
font: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Main card container */
|
|
25
|
+
.card-content {
|
|
26
|
+
position: relative;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
background-color: var(--dsa-wc-card-background);
|
|
30
|
+
border: var(--dsa-wc-card-border);
|
|
31
|
+
border-radius: var(--dsa-radius-8);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Layout variants */
|
|
36
|
+
.card-content--left-align {
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
}
|
|
39
|
+
.card-content--right-align {
|
|
40
|
+
flex-direction: row-reverse;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Style variant */
|
|
44
|
+
.card-content--filled {
|
|
45
|
+
background-color: var(--dsa-wc-card-content-filled-background-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Link styling */
|
|
49
|
+
.card-content--link {
|
|
50
|
+
transition: var(--dsa-wc-transition-x-fast) background-color,
|
|
51
|
+
var(--dsa-wc-transition-x-fast) border,
|
|
52
|
+
var(--dsa-wc-transition-x-fast) box-shadow;
|
|
53
|
+
var(--dsa-wc-transition-x-fast) transform;
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
color: inherit;
|
|
56
|
+
}
|
|
57
|
+
.card-content--link:focus-within {
|
|
58
|
+
outline: var(--dsa-wc-focus-ring);
|
|
59
|
+
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
60
|
+
}
|
|
61
|
+
.card-content--link:hover, .card-content--link:focus-within {
|
|
62
|
+
background-color: var(--dsa-wc-card-link-background-active);
|
|
63
|
+
border-color: var(--dsa-wc-card-link-border-color-hover);
|
|
64
|
+
}
|
|
65
|
+
.card-content--link a {
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
}
|
|
68
|
+
.card-content--link a:focus {
|
|
69
|
+
outline: none;
|
|
70
|
+
}
|
|
71
|
+
.card-content--link a::after{
|
|
72
|
+
position: absolute;
|
|
73
|
+
left: 0;
|
|
74
|
+
width: 100%;
|
|
75
|
+
top: 0;
|
|
76
|
+
bottom: 0;
|
|
77
|
+
content: '';
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Card media */
|
|
81
|
+
.card-content__media {
|
|
82
|
+
display: flex;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Card body */
|
|
86
|
+
.card-content__body {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex:1;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
padding: var(--dsa-wc-card-content-body-padding);
|
|
91
|
+
overflow: auto;
|
|
92
|
+
-webkit-overflow-scrolling: touch;
|
|
93
|
+
font: var(--dsa-wc-card-body-font);
|
|
94
|
+
}
|
|
95
|
+
.card-content--small .card-content__body {
|
|
96
|
+
padding: var(--dsa-wc-card-small-content-body-padding);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Tags */
|
|
100
|
+
.card-content__tags {
|
|
101
|
+
display: flex;
|
|
102
|
+
gap: var(--dsa-spacing-8);
|
|
103
|
+
margin-bottom: var(--dsa-wc-card-content-tags-margin-bottom);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Title block */
|
|
107
|
+
.card-content__title_block {
|
|
108
|
+
display: flex;
|
|
109
|
+
gap: var(--dsa-spacing-12);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Title text block */
|
|
113
|
+
.card-content__title-block-text {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
gap: var(--dsa-wc-card-content-title-block-gap);
|
|
117
|
+
justify-content: center;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Title */
|
|
121
|
+
.card-content__title, .card-content__title-icon {
|
|
122
|
+
color: var(--dsa-wc-card-content-title-color);
|
|
123
|
+
}
|
|
124
|
+
.card-content__title-block-text .card-content__title {
|
|
125
|
+
font: var(--dsa-wc-card-content-large-title-font);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.card-content--small .card-content__title-block-text .card-content__title {
|
|
129
|
+
font: var(--dsa-wc-card-content-small-title-font);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Subtitle */
|
|
133
|
+
.card-content__title-block-text .card-content__subtitle {
|
|
134
|
+
font: var(--dsa-wc-card-content-subtitle-font);
|
|
135
|
+
color: var(--dsa-wc-card-content-subtitle-text-color);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Title icon */
|
|
139
|
+
.card-content__title-icon::slotted(*) {
|
|
140
|
+
flex-shrink: 0;
|
|
141
|
+
width: var(--dsa-wc-card-content-title-icon-size);
|
|
142
|
+
height: var(--dsa-wc-card-content-title-icon-size);
|
|
143
|
+
}
|
|
144
|
+
.card-content--small .card-content__title-icon::slotted(*) {
|
|
145
|
+
width: var(--dsa-wc-card-content-small-title-icon-size);
|
|
146
|
+
height: var(--dsa-wc-card-content-small-title-icon-size);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Main slotted content */
|
|
150
|
+
.card-content__content {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: var(--dsa-spacing-32);
|
|
154
|
+
margin-top: var(--dsa-wc-card-content-margin-top);
|
|
155
|
+
color: var(--dsa-wc-card-content-content-color);
|
|
156
|
+
font: var(--dsa-wc-card-content-content-font)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Footer */
|
|
160
|
+
.card-content__footer {
|
|
161
|
+
display: flex;
|
|
162
|
+
gap: var(--dsa-spacing-16);
|
|
163
|
+
flex-direction: row;
|
|
164
|
+
justify-content: flex-end;
|
|
165
|
+
text-align: right;
|
|
166
|
+
margin-top: auto;
|
|
167
|
+
padding-top: var(--dsa-wc-card-content-footer-padding-top);
|
|
168
|
+
}
|
|
169
|
+
.card-content--link .card-content__footer {
|
|
170
|
+
pointer-events: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Link card chevron icon */
|
|
174
|
+
.card-content__link-icon {
|
|
175
|
+
width: var(--dsa-wc-card-content-link-large-icon-size);
|
|
176
|
+
height: var(--dsa-wc-card-content-link-large-icon-size);
|
|
177
|
+
padding: var(--dsa-wc-card-content-link-icon-padding);
|
|
178
|
+
color: var(--dsa-wc-card-content-chevron-color);
|
|
179
|
+
}
|
|
180
|
+
.card-content--small .card-content__link-icon {
|
|
181
|
+
width: var(--dsa-wc-card-content-link-small-icon-size);
|
|
182
|
+
height: var(--dsa-wc-card-content-link-small-icon-size);
|
|
183
|
+
}
|
|
184
|
+
.card-content__link-bottom-icon-container {
|
|
185
|
+
display: flex;
|
|
186
|
+
margin-left: auto;
|
|
187
|
+
margin-top: auto;
|
|
188
|
+
padding-top: var(--dsa-wc-card-content-footer-padding-top);
|
|
189
|
+
}
|
|
190
|
+
.card-content__link-icon-container {
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
margin-inline-start: auto
|
|
194
|
+
}
|
|
195
|
+
`;
|
|
196
|
+
|
|
197
|
+
export {
|
|
198
|
+
card_content_styles_default
|
|
199
|
+
};
|