@ds-autonomie/web-components 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/cdn/chunks/{chunk.MJMSFEEL.js → chunk.2HSB4FKT.js} +4 -4
- package/cdn/chunks/{chunk.JEOLRBU6.js → chunk.2UZFU2XH.js} +5 -7
- package/cdn/chunks/{chunk.T4PQY3SD.js → chunk.3THCO5QR.js} +35 -32
- package/cdn/chunks/{chunk.DRUKNJJ5.js → chunk.3WNNAMF2.js} +1 -1
- package/cdn/chunks/{chunk.3KJHZGAI.js → chunk.47JEFO44.js} +7 -7
- package/cdn/chunks/{chunk.PQNNELEM.js → chunk.4B6C6RKU.js} +1 -1
- package/cdn/chunks/{chunk.WQLZJXIF.js → chunk.4DYMQADB.js} +4 -4
- package/cdn/chunks/{chunk.CMRQV2SO.js → chunk.4QI5ENGU.js} +18 -3
- package/cdn/chunks/{chunk.3OSWL542.js → chunk.53DHJKYL.js} +0 -6
- package/cdn/chunks/{chunk.YAK3QGTM.js → chunk.5C4NDUFI.js} +9 -9
- package/cdn/chunks/{chunk.3AT66TOX.js → chunk.6G4K7SN3.js} +6 -6
- package/cdn/chunks/{chunk.5BQ2BGS6.js → chunk.6KSC4CRL.js} +1 -0
- package/{dist/chunks/chunk.HJU52GCK.js → cdn/chunks/chunk.6SKKEPNG.js} +1 -0
- package/cdn/chunks/{chunk.LZCR7P7U.js → chunk.7GLHOALV.js} +9 -135
- package/cdn/chunks/{chunk.D5IL5KN6.js → chunk.7LXBRZAC.js} +7 -7
- package/cdn/chunks/{chunk.NUMKSKYJ.js → chunk.7SRBGGAF.js} +1 -1
- package/cdn/chunks/{chunk.URME4YZI.js → chunk.7VV4KNYL.js} +7 -124
- package/cdn/chunks/{chunk.UM64ZD3C.js → chunk.AS6BETKF.js} +11 -11
- package/cdn/chunks/{chunk.JVTWZUNG.js → chunk.AXDWT6FB.js} +2 -2
- package/cdn/chunks/{chunk.BKVL3A5I.js → chunk.AZM34DOK.js} +10 -6
- package/cdn/chunks/{chunk.5UVKMYSG.js → chunk.B4XPUIDA.js} +21 -15
- package/cdn/chunks/{chunk.NYK3GS67.js → chunk.BITEAHXV.js} +1 -1
- package/cdn/chunks/{chunk.RRVYERI6.js → chunk.BW3UYZN7.js} +1 -1
- package/cdn/chunks/{chunk.H2OEFMQC.js → chunk.BWYI3OOJ.js} +0 -6
- package/cdn/chunks/{chunk.4UMO5YHQ.js → chunk.CJDBO3CO.js} +10 -10
- package/cdn/chunks/{chunk.YX277NFA.js → chunk.CTDFVSOP.js} +15 -8
- package/cdn/chunks/{chunk.WLND36JK.js → chunk.CWYABWVW.js} +52 -14
- package/cdn/chunks/{chunk.SMJWBG6U.js → chunk.DJR3ADR4.js} +1 -1
- package/cdn/chunks/{chunk.5B3X2KU4.js → chunk.E2P76T2G.js} +9 -9
- package/cdn/chunks/{chunk.57V66KCM.js → chunk.E45KUAKX.js} +1 -1
- package/cdn/chunks/{chunk.LIJWOM2P.js → chunk.EBZUYY3T.js} +4 -4
- package/cdn/chunks/{chunk.BMQ5WSY7.js → chunk.EM2CIX7W.js} +4 -0
- package/cdn/chunks/{chunk.BBWKTDH3.js → chunk.EVSGVQEL.js} +4 -4
- package/cdn/chunks/{chunk.4Q4LBN6D.js → chunk.F46SOIMF.js} +8 -19
- package/cdn/chunks/{chunk.TY7NQYTC.js → chunk.FEKXPEIL.js} +64 -150
- package/cdn/chunks/{chunk.JNYFWYEK.js → chunk.FF5FOREV.js} +5 -1
- package/cdn/chunks/{chunk.HOIWGDVX.js → chunk.G43R3KET.js} +4 -4
- package/cdn/chunks/chunk.G5XJFGB7.js +299 -0
- package/cdn/chunks/{chunk.6SV5RDDG.js → chunk.GDIEIS6B.js} +4 -4
- package/cdn/chunks/{chunk.Z3BBDSTK.js → chunk.GQ32IEJJ.js} +13 -10
- package/cdn/chunks/{chunk.UYGSA2IW.js → chunk.GQX7M5AG.js} +4 -4
- package/cdn/chunks/{chunk.YSKD4LUA.js → chunk.GZC77QJ2.js} +4 -4
- package/cdn/chunks/{chunk.373WDEVW.js → chunk.H6OWTQYW.js} +7 -1
- package/cdn/chunks/{chunk.3YELONZ5.js → chunk.HDRKPRUA.js} +1 -1
- package/cdn/chunks/{chunk.2S3446TB.js → chunk.HHCBFRDK.js} +4 -4
- package/cdn/chunks/{chunk.Y2RQJPXD.js → chunk.HPRHLYFN.js} +7 -7
- package/cdn/chunks/chunk.I5IKEQES.js +17 -0
- package/cdn/chunks/{chunk.NOI6NFVL.js → chunk.IITHS63H.js} +2 -2
- package/cdn/chunks/{chunk.NMVBZ537.js → chunk.IJXVW3NO.js} +1 -1
- package/cdn/chunks/{chunk.I6WQAXU3.js → chunk.IMC5I6EI.js} +4 -4
- package/cdn/chunks/{chunk.XGOXFBM5.js → chunk.JX2MFFJA.js} +1 -1
- package/cdn/chunks/{chunk.JG2GJKT5.js → chunk.KCXGUZTZ.js} +2 -2
- package/cdn/chunks/{chunk.Y4XSMWCI.js → chunk.KFT3VHUN.js} +4 -4
- package/cdn/chunks/{chunk.KQJPZZKZ.js → chunk.LECF7BRI.js} +11 -1
- package/cdn/chunks/{chunk.BNLQUWBO.js → chunk.LVFCBYOP.js} +3 -3
- package/cdn/chunks/{chunk.EF2VOGBL.js → chunk.LYIECKOK.js} +1 -1
- package/cdn/chunks/{chunk.PA2DSNXY.js → chunk.LYYAJ64E.js} +7 -0
- package/cdn/chunks/{chunk.SUXMTZZQ.js → chunk.M5YV2KJW.js} +1 -1
- package/cdn/chunks/{chunk.SDRL7END.js → chunk.M7VINMMA.js} +1 -1
- package/cdn/chunks/{chunk.Z3VIP662.js → chunk.ME4WWFWF.js} +1 -1
- package/cdn/chunks/{chunk.6EZUQLDJ.js → chunk.MORE7UFO.js} +1 -1
- package/cdn/chunks/{chunk.6UY5XC7A.js → chunk.MPVVJ3AS.js} +4 -4
- package/cdn/chunks/{chunk.LEW43Y6P.js → chunk.MZO2DOUP.js} +4 -4
- package/cdn/chunks/{chunk.7WXOGHV7.js → chunk.NABVM26Z.js} +1 -1
- package/cdn/chunks/{chunk.AJFNFADL.js → chunk.NEXIJNSX.js} +1 -1
- package/cdn/chunks/{chunk.WSY5WWRS.js → chunk.NIHWWUIR.js} +8 -1
- package/cdn/chunks/chunk.NON7TU3E.js +15 -0
- package/cdn/chunks/{chunk.BKSVKEYX.js → chunk.O63JMJPQ.js} +4 -4
- package/cdn/chunks/{chunk.L3ZYNSI3.js → chunk.OCDDQJHV.js} +3 -3
- package/{dist/chunks/chunk.CAYHSQZJ.js → cdn/chunks/chunk.OG5RS3BX.js} +1 -1
- package/cdn/chunks/{chunk.EYKHHWR5.js → chunk.OP5J3PRS.js} +7 -7
- package/cdn/chunks/{chunk.2N65UIM6.js → chunk.P3WP3KVE.js} +29 -7
- package/cdn/chunks/{chunk.N74GMZQD.js → chunk.PCHTHBWD.js} +7 -7
- package/cdn/chunks/{chunk.SS3GSU3M.js → chunk.PU3TNGX6.js} +6 -6
- package/cdn/chunks/{chunk.BQ3SI4TM.js → chunk.Q3F37NRE.js} +6 -6
- package/cdn/chunks/chunk.QRMLW4M6.js +126 -0
- package/cdn/chunks/{chunk.QYS7Y562.js → chunk.QTE3EE2M.js} +2 -2
- package/cdn/chunks/{chunk.XYXJQSTL.js → chunk.QV27SQPK.js} +4 -4
- package/cdn/chunks/{chunk.PRP4B2TV.js → chunk.QYVAWZ5T.js} +21 -10
- package/cdn/chunks/{chunk.J5KWVZHL.js → chunk.R5RWEWJW.js} +29 -121
- package/cdn/chunks/{chunk.4GWNV3R4.js → chunk.ROY6JYYV.js} +80 -18
- package/cdn/chunks/{chunk.RNF5H43X.js → chunk.RUX5DD2U.js} +5 -0
- package/cdn/chunks/{chunk.PZQUQ6DG.js → chunk.SIWIVWB6.js} +3 -3
- package/cdn/chunks/{chunk.KNKNPTGU.js → chunk.SQJSODCD.js} +4 -4
- package/cdn/chunks/{chunk.SPK4CXKV.js → chunk.TGBPUFCG.js} +1 -1
- package/cdn/chunks/{chunk.3XMYYR4P.js → chunk.TWSC46MA.js} +4 -4
- package/cdn/chunks/{chunk.DBJLSCQP.js → chunk.U553QLEV.js} +4 -4
- package/cdn/chunks/{chunk.2YVHHVLG.js → chunk.UORXHDBJ.js} +3 -2
- package/cdn/chunks/{chunk.M4YRRHEL.js → chunk.USMQGM2L.js} +4 -4
- package/cdn/chunks/chunk.USMVUNJX.js +21 -0
- package/cdn/chunks/{chunk.7ZJHGFQH.js → chunk.WADUVBS7.js} +4 -4
- package/cdn/chunks/chunk.WGEMCKGP.js +336 -0
- package/cdn/chunks/{chunk.HG4TPK7J.js → chunk.WMYZCWFM.js} +23 -161
- package/cdn/chunks/{chunk.2FF44G4Y.js → chunk.WWI5IYQY.js} +3 -3
- package/cdn/chunks/{chunk.RHJUPBW2.js → chunk.XYLKN7CI.js} +42 -26
- package/cdn/chunks/{chunk.JOVZPGCQ.js → chunk.YB5PFWRG.js} +6 -6
- package/cdn/chunks/chunk.YGJ3KERC.js +290 -0
- package/cdn/chunks/{chunk.BDPH2MRN.js → chunk.Z3BBWYGS.js} +6 -6
- package/cdn/chunks/{chunk.VRC57YIG.js → chunk.Z7KKR6AK.js} +4 -4
- package/cdn/chunks/{chunk.BLJRNU3Y.js → chunk.ZNEIDC5S.js} +1 -1
- package/cdn/chunks/{chunk.A5QRPK4Q.js → chunk.ZWNQFLCW.js} +21 -1
- package/cdn/components/accordion/accordion.d.ts +4 -0
- package/cdn/components/accordion/accordion.js +10 -10
- package/cdn/components/accordion/accordion.styles.js +1 -1
- package/cdn/components/accordion-group/accordion-group.d.ts +37 -0
- package/cdn/components/accordion-group/accordion-group.js +34 -0
- package/cdn/components/accordion-group/accordion-group.styles.js +9 -0
- package/cdn/components/alert/alert.js +13 -13
- package/cdn/components/anchor-tag/anchor-tag.js +3 -3
- package/cdn/components/avatar/avatar.js +8 -8
- package/cdn/components/breadcrumb/breadcrumb.js +8 -8
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/cdn/components/button/button.js +10 -10
- package/cdn/components/calendar/calendar.js +3 -3
- package/cdn/components/callout/callout.d.ts +1 -1
- package/cdn/components/callout/callout.js +9 -9
- package/cdn/components/card/card.js +2 -2
- package/cdn/components/card-content/card-content.d.ts +1 -1
- package/cdn/components/card-content/card-content.js +10 -10
- package/cdn/components/card-content/card-content.styles.js +1 -1
- package/cdn/components/card-nav/card-nav.d.ts +1 -1
- package/cdn/components/card-nav-accordion/card-nav-accordion.d.ts +1 -1
- package/cdn/components/card-nav-accordion/card-nav-accordion.js +9 -9
- package/cdn/components/card-nav-item/card-nav-item.d.ts +1 -1
- package/cdn/components/card-nav-item/card-nav-item.js +8 -8
- package/cdn/components/checkbox/checkbox.js +13 -13
- package/cdn/components/checkbox-button/checkbox-button.js +10 -10
- package/cdn/components/checkbox-card/checkbox-card.js +10 -10
- package/cdn/components/checkbox-group/checkbox-group.js +8 -8
- package/cdn/components/combobox/combobox.js +15 -15
- package/cdn/components/dialog/dialog.js +12 -12
- package/cdn/components/download-card/download-card.js +6 -6
- package/cdn/components/download-link/download-link.js +6 -6
- package/cdn/components/drawer/drawer.js +13 -13
- package/cdn/components/dropdown/dropdown.js +3 -3
- package/cdn/components/error-message-panel/error-message-panel.js +2 -2
- package/cdn/components/error-text/error-text.js +6 -6
- package/cdn/components/fieldset/fieldset.js +2 -2
- package/cdn/components/file-upload/file-upload.d.ts +3 -0
- package/cdn/components/file-upload/file-upload.js +10 -10
- package/cdn/components/file-upload-item/file-upload-item.js +9 -9
- package/cdn/components/filter-base/filter-base.js +10 -10
- package/cdn/components/filter-base/filter-base.styles.js +1 -1
- package/cdn/components/filter-button/filter-button.js +9 -9
- package/cdn/components/filter-counter/filter-counter.js +35 -32
- package/cdn/components/filter-counter/filter-counter.styles.js +2 -2
- package/cdn/components/filter-date/filter-date.d.ts +3 -1
- package/cdn/components/filter-date/filter-date.js +22 -22
- package/cdn/components/filter-date/filter-date.styles.js +2 -2
- package/cdn/components/filter-range/filter-range.js +38 -34
- package/cdn/components/filter-range/filter-range.styles.js +2 -2
- package/cdn/components/filter-select/filter-select.js +36 -33
- package/cdn/components/filter-select/filter-select.styles.js +2 -2
- package/cdn/components/footer/footer.js +2 -2
- package/cdn/components/footer-sitemap/footer-sitemap.d.ts +2 -0
- package/cdn/components/footer-sitemap/footer-sitemap.js +2 -2
- package/cdn/components/footer-sitemap/footer-sitemap.styles.js +1 -1
- 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-search/header-search.js +13 -13
- package/cdn/components/icon/icon.js +6 -6
- package/cdn/components/icon/library.js +2 -2
- package/cdn/components/icon/library.system.js +1 -1
- package/cdn/components/icon-button/icon-button.js +9 -9
- package/cdn/components/input/input.d.ts +14 -77
- package/cdn/components/input/input.js +27 -24
- package/cdn/components/input-date/input-date.d.ts +5 -42
- package/cdn/components/input-date/input-date.js +19 -18
- 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 +12 -11
- 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/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 +7 -51
- package/cdn/components/input-otp/input-otp.js +12 -11
- package/cdn/components/input-phone/input-phone.d.ts +5 -36
- package/cdn/components/input-phone/input-phone.js +20 -19
- package/cdn/components/input-time/input-time.d.ts +5 -54
- package/cdn/components/input-time/input-time.js +18 -17
- package/cdn/components/input-time/input-time.styles.js +2 -2
- package/cdn/components/menu-accordion/menu-accordion.d.ts +1 -1
- package/cdn/components/menu-accordion/menu-accordion.js +9 -9
- package/cdn/components/menu-item/menu-item.js +9 -9
- package/cdn/components/menu-item/menu-item.styles.js +1 -1
- package/cdn/components/menu-navigation/menu-navigation.d.ts +1 -1
- package/cdn/components/mutation-observer/mutation-observer.d.ts +1 -1
- package/cdn/components/navbar/navbar.d.ts +1 -1
- package/cdn/components/navbar-link/navbar-link.d.ts +3 -1
- package/cdn/components/navbar-link/navbar-link.js +9 -8
- package/cdn/components/navbar-link/navbar-link.styles.js +1 -1
- package/cdn/components/navbar-menu/navbar-menu.d.ts +1 -1
- package/cdn/components/navbar-menu/navbar-menu.js +10 -10
- package/cdn/components/navbar-menu/navbar-menu.styles.js +1 -1
- package/cdn/components/option/option.js +8 -8
- package/cdn/components/page-header/page-header.d.ts +1 -1
- package/cdn/components/pagination/pagination.js +30 -27
- package/cdn/components/profile-button/profile-button.js +11 -11
- package/cdn/components/progress-bar/progress-bar.js +4 -4
- package/cdn/components/progress-ring/progress-ring.js +2 -2
- package/cdn/components/quote/quote.d.ts +1 -1
- package/cdn/components/quote/quote.js +9 -9
- package/cdn/components/radio/radio.js +8 -8
- package/cdn/components/radio-button/radio-button.js +10 -10
- package/cdn/components/radio-card/radio-card.js +12 -12
- package/cdn/components/radio-group/radio-group.js +8 -8
- package/cdn/components/range-slider/range-slider.js +3 -3
- 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 -1
- package/cdn/components/select/select.js +13 -13
- 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.d.ts +1 -1
- package/cdn/components/split-panel/split-panel.js +8 -8
- package/cdn/components/step/step.js +10 -10
- package/cdn/components/stepper/stepper.js +2 -2
- package/cdn/components/switch/switch.d.ts +1 -1
- package/cdn/components/switch/switch.js +8 -8
- package/cdn/components/tab/tab.js +11 -11
- package/cdn/components/tab-group/tab-group.d.ts +7 -1
- package/cdn/components/tab-group/tab-group.js +12 -11
- package/cdn/components/tab-panel/tab-panel.js +2 -2
- package/cdn/components/table/table.d.ts +1 -0
- 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 +3 -3
- package/cdn/components/table-cell/table-cell.js +1 -1
- package/cdn/components/table-container/table-container.js +3 -3
- package/cdn/components/table-head/table-head.js +3 -3
- package/cdn/components/table-header-cell/table-header-cell.js +8 -8
- package/cdn/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/cdn/components/table-header-row/table-header-row.js +20 -20
- package/cdn/components/table-of-contents/table-of-contents.d.ts +1 -1
- package/cdn/components/table-of-contents/table-of-contents.js +3 -3
- package/cdn/components/table-row/table-row.js +16 -16
- package/cdn/components/tag/tag.js +11 -11
- package/cdn/components/tag-button/tag-button.js +2 -2
- package/cdn/components/textarea/textarea.js +10 -10
- package/cdn/components/tooltip/tooltip.js +3 -3
- package/cdn/components/tree/tree.js +18 -18
- package/cdn/components/tree-item/tree-item.js +17 -17
- package/cdn/custom-elements.json +1166 -2356
- package/cdn/design-system.d.ts +1 -0
- package/cdn/design-system.js +261 -252
- 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 +23 -7
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +23 -7
- 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/icon-library.js +2 -2
- package/cdn/utilities/localize.d.ts +2 -0
- package/cdn/utilities/localize.js +1 -1
- package/cdn/vscode.html-custom-data.json +63 -319
- package/cdn/web-types.json +579 -1406
- package/dist/chunks/{chunk.YCRHX2XL.js → chunk.233PXUXE.js} +1 -1
- package/dist/chunks/{chunk.VDYAE3MB.js → chunk.24M2N3DZ.js} +1 -1
- package/dist/chunks/{chunk.XVFPRM26.js → chunk.2IYNHZTZ.js} +2 -2
- package/dist/chunks/{chunk.OOZC4AR2.js → chunk.2Q5YPHWE.js} +1 -1
- package/dist/chunks/{chunk.H7ZLX7SO.js → chunk.2QXYMNBB.js} +18 -3
- package/dist/chunks/{chunk.P2LEUT2Q.js → chunk.2T63OXZQ.js} +6 -123
- package/dist/chunks/{chunk.3DQTD6B2.js → chunk.37LS7J2I.js} +13 -10
- package/dist/chunks/chunk.3B7QLYUC.js +325 -0
- package/dist/chunks/{chunk.SJN7BDOD.js → chunk.3HG52QSF.js} +7 -7
- package/dist/chunks/{chunk.G5ZFFB2V.js → chunk.3VBHRND2.js} +4 -4
- package/dist/chunks/{chunk.ERN34WYC.js → chunk.3VRHTVWV.js} +4 -4
- package/dist/chunks/{chunk.QFC4API2.js → chunk.4R7M4F5N.js} +2 -2
- package/dist/chunks/{chunk.DZVHKOGO.js → chunk.4TZQFWYO.js} +1 -1
- package/dist/chunks/{chunk.PWVYG6XN.js → chunk.4ZAABSYS.js} +0 -6
- package/dist/chunks/{chunk.DISFQ7ZU.js → chunk.574BP5Q2.js} +1 -1
- package/dist/chunks/{chunk.DFBKUH2U.js → chunk.57LY4OTF.js} +3 -3
- package/dist/chunks/{chunk.ARDX2RVR.js → chunk.5TY2UQ4A.js} +41 -25
- package/dist/chunks/{chunk.AATHH5ZK.js → chunk.6PKHRHXE.js} +1 -1
- package/{cdn/chunks/chunk.HJU52GCK.js → dist/chunks/chunk.6SKKEPNG.js} +1 -0
- package/dist/chunks/{chunk.RS4S7SAD.js → chunk.6ZZKMZXV.js} +10 -10
- package/dist/chunks/chunk.77CG6NAN.js +291 -0
- package/dist/chunks/{chunk.3ZF3W6DC.js → chunk.7EXBKGNH.js} +4 -4
- package/dist/chunks/{chunk.OWV6XZFR.js → chunk.7QLR3F26.js} +1 -1
- package/dist/chunks/{chunk.Y3I7GUNB.js → chunk.A6QMMCE7.js} +21 -1
- package/dist/chunks/{chunk.EQDAZLA2.js → chunk.BS4SLBMG.js} +7 -7
- package/dist/chunks/{chunk.SGVMH2WK.js → chunk.BVHC4RYT.js} +4 -4
- package/dist/chunks/{chunk.WODSQYKQ.js → chunk.BZTMQKB3.js} +1 -1
- package/dist/chunks/{chunk.YGRXSNFC.js → chunk.CFYQUX72.js} +1 -1
- package/dist/chunks/{chunk.CPBWQ6BE.js → chunk.CSB67RRY.js} +1 -1
- package/dist/chunks/{chunk.SV6UZ7XX.js → chunk.CU62O7MI.js} +1 -1
- package/dist/chunks/{chunk.2RDTQ7RT.js → chunk.CZPEHPWO.js} +7 -1
- package/dist/chunks/{chunk.6AKP5BRZ.js → chunk.D5NED4A7.js} +1 -1
- package/dist/chunks/{chunk.SW6R5A3O.js → chunk.DDVVYJES.js} +4 -4
- package/dist/chunks/{chunk.OHDR6G6J.js → chunk.DMIXIORN.js} +3 -3
- package/dist/chunks/{chunk.Z2A5AEMU.js → chunk.DXRDCCL4.js} +1 -1
- package/dist/chunks/{chunk.2655IKKL.js → chunk.ECEBZG4J.js} +1 -1
- package/dist/chunks/{chunk.XODWG3UJ.js → chunk.EUAQCNT2.js} +1 -1
- package/dist/chunks/{chunk.EWOJ3XVB.js → chunk.FURDO6CT.js} +2 -2
- package/dist/chunks/{chunk.B7LEFGX4.js → chunk.G5UGZLXK.js} +1 -1
- package/dist/chunks/{chunk.I4XFUHWM.js → chunk.GCYENPC4.js} +1 -1
- package/dist/chunks/{chunk.62WXVS5Q.js → chunk.GCZLWK6W.js} +10 -6
- package/dist/chunks/{chunk.K4XU6L7E.js → chunk.GXDSHB6M.js} +1 -1
- package/dist/chunks/chunk.HLW42LP2.js +121 -0
- package/dist/chunks/{chunk.SWWPGGIS.js → chunk.HSMAEOMJ.js} +1 -1
- package/dist/chunks/chunk.I5IKEQES.js +17 -0
- package/dist/chunks/{chunk.FWVIQUG4.js → chunk.IGYB77FH.js} +4 -4
- package/dist/chunks/{chunk.ETG5DAHF.js → chunk.IXC4PES2.js} +1 -1
- package/dist/chunks/{chunk.EY2LRNGD.js → chunk.J4OSBZ7R.js} +61 -147
- package/dist/chunks/{chunk.LGV7OXTA.js → chunk.JRNQCQZ6.js} +33 -30
- package/dist/chunks/{chunk.DY7O23OC.js → chunk.JVIWPP43.js} +7 -0
- package/dist/chunks/{chunk.2GAMN72N.js → chunk.KCCJOS36.js} +1 -1
- package/dist/chunks/{chunk.6XCFILBM.js → chunk.KDLBY67V.js} +2 -4
- package/dist/chunks/{chunk.MF7KW7MX.js → chunk.KF3RQTZS.js} +1 -1
- package/dist/chunks/{chunk.JQS5RPAK.js → chunk.KT2VQ7UP.js} +1 -1
- package/dist/chunks/{chunk.54CFE45F.js → chunk.L2B7WMWE.js} +3 -3
- package/dist/chunks/{chunk.AJCLNOPZ.js → chunk.MIYT3FL6.js} +1 -1
- package/dist/chunks/{chunk.IICLN6L3.js → chunk.MIZCSRX3.js} +19 -157
- package/dist/chunks/{chunk.ADUUYLJY.js → chunk.MTE4ETST.js} +1 -1
- package/dist/chunks/{chunk.IE7IGJZB.js → chunk.MZ2WOF7B.js} +27 -5
- package/dist/chunks/chunk.N54TKSON.js +18 -0
- package/dist/chunks/{chunk.VYYQ6KPE.js → chunk.N6NGPIR3.js} +5 -1
- package/dist/chunks/{chunk.XAF7DDXJ.js → chunk.NTZRDWUL.js} +4 -4
- package/dist/chunks/{chunk.2JRGVS6D.js → chunk.NZK2GET6.js} +7 -7
- package/{cdn/chunks/chunk.CAYHSQZJ.js → dist/chunks/chunk.OG5RS3BX.js} +1 -1
- package/dist/chunks/{chunk.LXS4P57X.js → chunk.OW7LY6Q4.js} +19 -8
- package/dist/chunks/{chunk.RURHQSLF.js → chunk.OXYSNELC.js} +1 -1
- package/dist/chunks/{chunk.ORWJR56M.js → chunk.P4RIY6RD.js} +1 -1
- package/dist/chunks/{chunk.7XUPS5FG.js → chunk.PHSUFADX.js} +1 -0
- package/dist/chunks/{chunk.6NGHRQYD.js → chunk.PSLQI77G.js} +4 -4
- package/dist/chunks/{chunk.DRFXWCPL.js → chunk.PU3G2J4O.js} +6 -132
- package/dist/chunks/{chunk.NZEV2R75.js → chunk.Q5LSLQYU.js} +5 -0
- package/dist/chunks/chunk.QFO2VDJ3.js +286 -0
- package/dist/chunks/{chunk.QJIY2G7A.js → chunk.QNSYKNEY.js} +10 -10
- package/dist/chunks/{chunk.WDLYTTNO.js → chunk.R7OI2TAU.js} +15 -8
- package/dist/chunks/{chunk.OMUELARQ.js → chunk.RBFGDR3F.js} +26 -118
- package/dist/chunks/{chunk.3RMSYRZA.js → chunk.RRF5FP5T.js} +1 -1
- package/dist/chunks/{chunk.YXCCM5NC.js → chunk.RSGMJZGX.js} +80 -18
- package/dist/chunks/{chunk.LRBVQHKX.js → chunk.S3JXNHCY.js} +1 -1
- package/dist/chunks/{chunk.ZRW5L2NC.js → chunk.SGKW2DOH.js} +3 -2
- package/dist/chunks/{chunk.QADAWCTI.js → chunk.SK3KWU2I.js} +4 -0
- package/dist/chunks/{chunk.SDT5BB26.js → chunk.SQKLY4C5.js} +11 -1
- package/dist/chunks/{chunk.QLT366CP.js → chunk.SQN6J7NO.js} +1 -1
- package/dist/chunks/{chunk.3SMOVUNI.js → chunk.TFIXTW2V.js} +1 -1
- package/dist/chunks/{chunk.6KMLQCBG.js → chunk.TMEVQJFZ.js} +1 -1
- package/dist/chunks/{chunk.4JZFGBJP.js → chunk.TSGEM2N5.js} +8 -21
- package/dist/chunks/{chunk.AB7T3PSN.js → chunk.TZTE7NZH.js} +1 -1
- package/dist/chunks/{chunk.Q3II5ELV.js → chunk.UCONR7YO.js} +6 -6
- package/dist/chunks/chunk.ULPMZDTP.js +13 -0
- package/dist/chunks/{chunk.2BZBH3CX.js → chunk.URDP5HQR.js} +0 -6
- package/dist/chunks/{chunk.YT4ZDRKX.js → chunk.WDFUZTK2.js} +4 -4
- package/dist/chunks/{chunk.IR5ZDNLY.js → chunk.WHHOMKN3.js} +4 -4
- package/dist/chunks/{chunk.L7SZMI27.js → chunk.WJVUWDD3.js} +1 -1
- package/dist/chunks/{chunk.NJNQX6FX.js → chunk.WQ2FYG4C.js} +3 -3
- package/dist/chunks/{chunk.OKUA77L4.js → chunk.XZ6X7G47.js} +21 -15
- package/dist/chunks/{chunk.ORLKMJIV.js → chunk.Y7VJKTZ3.js} +49 -11
- package/dist/chunks/{chunk.54XEUZ55.js → chunk.YP3DBGDD.js} +1 -1
- package/dist/chunks/{chunk.QGPBBIGJ.js → chunk.Z3INQBDQ.js} +4 -4
- package/dist/chunks/{chunk.QS6BH5AW.js → chunk.Z5NDJTMI.js} +8 -1
- package/dist/chunks/{chunk.STKBEBVL.js → chunk.ZCC67O7A.js} +5 -5
- package/dist/chunks/{chunk.4VHQEXSY.js → chunk.ZPKQZGFW.js} +4 -4
- package/dist/components/accordion/accordion.d.ts +4 -0
- package/dist/components/accordion/accordion.js +9 -9
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/accordion-group/accordion-group.d.ts +37 -0
- package/dist/components/accordion-group/accordion-group.js +27 -0
- package/dist/components/accordion-group/accordion-group.styles.d.ts +2 -0
- package/dist/components/accordion-group/accordion-group.styles.js +7 -0
- package/dist/components/alert/alert.js +10 -10
- package/dist/components/anchor-tag/anchor-tag.js +3 -3
- package/dist/components/avatar/avatar.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.js +7 -7
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/button/button.js +9 -9
- package/dist/components/calendar/calendar.js +2 -2
- package/dist/components/callout/callout.d.ts +1 -1
- package/dist/components/callout/callout.js +8 -8
- package/dist/components/card-content/card-content.d.ts +1 -1
- package/dist/components/card-content/card-content.js +9 -9
- package/dist/components/card-content/card-content.styles.js +1 -1
- package/dist/components/card-nav/card-nav.d.ts +1 -1
- package/dist/components/card-nav-accordion/card-nav-accordion.d.ts +1 -1
- package/dist/components/card-nav-accordion/card-nav-accordion.js +8 -8
- package/dist/components/card-nav-item/card-nav-item.d.ts +1 -1
- package/dist/components/card-nav-item/card-nav-item.js +7 -7
- package/dist/components/checkbox/checkbox.js +12 -12
- package/dist/components/checkbox-button/checkbox-button.js +9 -9
- package/dist/components/checkbox-card/checkbox-card.js +7 -7
- package/dist/components/checkbox-group/checkbox-group.js +7 -7
- package/dist/components/combobox/combobox.js +13 -13
- package/dist/components/dialog/dialog.js +10 -10
- package/dist/components/download-card/download-card.js +5 -5
- package/dist/components/download-link/download-link.js +5 -5
- package/dist/components/drawer/drawer.js +11 -11
- 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 +5 -5
- package/dist/components/fieldset/fieldset.js +2 -2
- package/dist/components/file-upload/file-upload.d.ts +3 -0
- package/dist/components/file-upload/file-upload.js +9 -9
- package/dist/components/file-upload-item/file-upload-item.js +8 -8
- package/dist/components/filter-base/filter-base.js +9 -9
- package/dist/components/filter-base/filter-base.styles.js +1 -1
- package/dist/components/filter-button/filter-button.js +8 -8
- package/dist/components/filter-counter/filter-counter.js +32 -29
- package/dist/components/filter-counter/filter-counter.styles.js +2 -2
- package/dist/components/filter-date/filter-date.d.ts +3 -1
- package/dist/components/filter-date/filter-date.js +19 -19
- package/dist/components/filter-date/filter-date.styles.js +2 -2
- package/dist/components/filter-range/filter-range.js +35 -31
- package/dist/components/filter-range/filter-range.styles.js +2 -2
- package/dist/components/filter-select/filter-select.js +33 -30
- package/dist/components/filter-select/filter-select.styles.js +2 -2
- package/dist/components/footer/footer.js +2 -2
- package/dist/components/footer-sitemap/footer-sitemap.d.ts +2 -0
- package/dist/components/footer-sitemap/footer-sitemap.js +2 -2
- package/dist/components/footer-sitemap/footer-sitemap.styles.js +1 -1
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/header/header.js +2 -2
- package/dist/components/header-search/header-search.js +12 -12
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.js +8 -8
- package/dist/components/input/input.d.ts +14 -77
- package/dist/components/input/input.js +24 -21
- package/dist/components/input-date/input-date.d.ts +5 -42
- package/dist/components/input-date/input-date.js +16 -15
- 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 +10 -9
- 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 +7 -51
- package/dist/components/input-otp/input-otp.js +10 -9
- package/dist/components/input-phone/input-phone.d.ts +5 -36
- package/dist/components/input-phone/input-phone.js +17 -16
- package/dist/components/input-time/input-time.d.ts +5 -54
- package/dist/components/input-time/input-time.js +15 -14
- package/dist/components/input-time/input-time.styles.js +2 -2
- package/dist/components/menu-accordion/menu-accordion.d.ts +1 -1
- package/dist/components/menu-accordion/menu-accordion.js +8 -8
- package/dist/components/menu-item/menu-item.js +8 -8
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-navigation/menu-navigation.d.ts +1 -1
- package/dist/components/mutation-observer/mutation-observer.d.ts +1 -1
- package/dist/components/navbar/navbar.d.ts +1 -1
- package/dist/components/navbar-link/navbar-link.d.ts +3 -1
- package/dist/components/navbar-link/navbar-link.js +8 -7
- package/dist/components/navbar-link/navbar-link.styles.js +1 -1
- package/dist/components/navbar-menu/navbar-menu.d.ts +1 -1
- package/dist/components/navbar-menu/navbar-menu.js +9 -9
- package/dist/components/navbar-menu/navbar-menu.styles.js +1 -1
- package/dist/components/option/option.js +7 -7
- package/dist/components/page-header/page-header.d.ts +1 -1
- package/dist/components/pagination/pagination.js +27 -24
- package/dist/components/profile-button/profile-button.js +10 -10
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.js +2 -2
- package/dist/components/quote/quote.d.ts +1 -1
- package/dist/components/quote/quote.js +8 -8
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio-button/radio-button.js +9 -9
- package/dist/components/radio-card/radio-card.js +10 -10
- package/dist/components/radio-group/radio-group.js +7 -7
- package/dist/components/range-slider/range-slider.js +3 -3
- 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 -1
- package/dist/components/select/select.js +11 -11
- 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.d.ts +1 -1
- package/dist/components/split-panel/split-panel.js +7 -7
- package/dist/components/step/step.js +9 -9
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +7 -7
- package/dist/components/tab/tab.js +10 -10
- package/dist/components/tab-group/tab-group.d.ts +7 -1
- package/dist/components/tab-group/tab-group.js +11 -10
- package/dist/components/table/table.d.ts +1 -0
- 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 +7 -7
- package/dist/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/dist/components/table-header-row/table-header-row.js +19 -19
- package/dist/components/table-of-contents/table-of-contents.d.ts +1 -1
- package/dist/components/table-of-contents/table-of-contents.js +2 -2
- package/dist/components/table-row/table-row.js +15 -15
- package/dist/components/tag/tag.js +10 -10
- package/dist/components/tag-button/tag-button.js +2 -2
- package/dist/components/textarea/textarea.js +8 -8
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +16 -16
- package/dist/components/tree-item/tree-item.js +15 -15
- package/dist/custom-elements.json +1166 -2356
- package/dist/design-system.d.ts +1 -0
- package/dist/design-system.js +249 -240
- 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 +23 -7
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +23 -7
- 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/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +2 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +63 -319
- package/dist/web-types.json +579 -1406
- package/package.json +18 -18
- package/cdn/chunks/chunk.5F7AUS4F.js +0 -703
- package/dist/chunks/chunk.JJT6FP7U.js +0 -690
- package/dist/components/input/input.styles.js +0 -9
- package/cdn/chunks/{chunk.3PDDINNE.js → chunk.2ZOYRU5M.js} +5 -5
- package/cdn/chunks/{chunk.GVTFDL2C.js → chunk.4CAAOFHW.js} +3 -3
- package/cdn/chunks/{chunk.HNGA66FR.js → chunk.4ZFSZJZI.js} +5 -5
- package/cdn/chunks/{chunk.BPP37CID.js → chunk.6TPY7I7N.js} +3 -3
- package/cdn/chunks/{chunk.QHU2DUDS.js → chunk.CJNB57EY.js} +6 -6
- package/cdn/chunks/{chunk.NEMJUCMZ.js → chunk.DEG7473C.js} +3 -3
- package/cdn/chunks/{chunk.NBAUIHQ4.js → chunk.EB3FXLYQ.js} +3 -3
- package/cdn/chunks/{chunk.ZYAFL7BC.js → chunk.G4O22KO7.js} +3 -3
- package/cdn/chunks/{chunk.3XJMTCX6.js → chunk.HAD6WIKN.js} +4 -4
- package/cdn/chunks/{chunk.BGP2ITQD.js → chunk.KKJM4B7K.js} +6 -6
- package/cdn/chunks/{chunk.5QJ7KDER.js → chunk.PVLM5W2M.js} +3 -3
- package/cdn/chunks/{chunk.6BPVPY42.js → chunk.SW5XVMTS.js} +3 -3
- package/cdn/chunks/{chunk.EZAK6TIK.js → chunk.T5ZFLLFL.js} +1 -1
- package/cdn/chunks/{chunk.ATHVFSQX.js → chunk.TR7NAESK.js} +3 -3
- package/cdn/chunks/{chunk.F6BCRVNV.js → chunk.WY4UKTES.js} +3 -3
- package/cdn/chunks/{chunk.A747OEHH.js → chunk.ZVFNHET6.js} +3 -3
- package/cdn/components/{input/input.styles.d.ts → accordion-group/accordion-group.styles.d.ts} +0 -0
- package/{dist/components/input/input.styles.d.ts → cdn/components/input-native/input-native.styles.d.ts} +0 -0
- package/dist/chunks/{chunk.2EO2NJQJ.js → chunk.2IZN2PB2.js} +3 -3
- package/dist/chunks/{chunk.GFXISORD.js → chunk.6Z2BY6Y7.js} +3 -3
- package/dist/chunks/{chunk.37I5GPBX.js → chunk.BMVQEF7N.js} +3 -3
- package/dist/chunks/{chunk.WCJ3TXH5.js → chunk.BUYU5USK.js} +3 -3
- package/dist/chunks/{chunk.KNPGT6SV.js → chunk.IBBMS6BU.js} +3 -3
- package/dist/chunks/{chunk.6MWXS55V.js → chunk.MF7A7AFT.js} +3 -3
- package/dist/chunks/{chunk.JG4PBHLV.js → chunk.ODUHVMOZ.js} +4 -4
- package/dist/chunks/{chunk.GLJ65Z2P.js → chunk.QZQO5YY7.js} +1 -1
- package/dist/chunks/{chunk.KFBHQJJP.js → chunk.TR26WJPX.js} +5 -5
- package/dist/chunks/{chunk.2TYHIVTN.js → chunk.WCGWBVEZ.js} +3 -3
- package/dist/chunks/{chunk.VZHVRVYC.js → chunk.YGWSCW2R.js} +3 -3
|
@@ -1,703 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DSAInputTime
|
|
3
|
-
} from "./chunk.HG4TPK7J.js";
|
|
4
|
-
import {
|
|
5
|
-
big_default,
|
|
6
|
-
getOverridenIconDetails,
|
|
7
|
-
isInvalidAmountKey,
|
|
8
|
-
isPrefixIconOverriden,
|
|
9
|
-
numberToFrAmount,
|
|
10
|
-
parseFrAmount,
|
|
11
|
-
roundToStep
|
|
12
|
-
} from "./chunk.EF2VOGBL.js";
|
|
13
|
-
import {
|
|
14
|
-
DSAInputDate
|
|
15
|
-
} from "./chunk.TY7NQYTC.js";
|
|
16
|
-
import {
|
|
17
|
-
input_styles_default
|
|
18
|
-
} from "./chunk.L3ZYNSI3.js";
|
|
19
|
-
import {
|
|
20
|
-
FormControlLayout
|
|
21
|
-
} from "./chunk.E73QKLNL.js";
|
|
22
|
-
import {
|
|
23
|
-
l
|
|
24
|
-
} from "./chunk.7PPSHHT2.js";
|
|
25
|
-
import {
|
|
26
|
-
defaultValue
|
|
27
|
-
} from "./chunk.YY5FKN3H.js";
|
|
28
|
-
import {
|
|
29
|
-
FormControlController
|
|
30
|
-
} from "./chunk.3NWILHZZ.js";
|
|
31
|
-
import {
|
|
32
|
-
LocalizeController
|
|
33
|
-
} from "./chunk.BMQ5WSY7.js";
|
|
34
|
-
import {
|
|
35
|
-
watch
|
|
36
|
-
} from "./chunk.4FQJ3QJK.js";
|
|
37
|
-
import {
|
|
38
|
-
ifDefinedAndNotEmpty
|
|
39
|
-
} from "./chunk.B6GVVW66.js";
|
|
40
|
-
import {
|
|
41
|
-
o
|
|
42
|
-
} from "./chunk.YQLIIKLI.js";
|
|
43
|
-
import {
|
|
44
|
-
e as e2
|
|
45
|
-
} from "./chunk.IKHG7XGO.js";
|
|
46
|
-
import {
|
|
47
|
-
e,
|
|
48
|
-
n,
|
|
49
|
-
r,
|
|
50
|
-
t
|
|
51
|
-
} from "./chunk.DZB6XUZ7.js";
|
|
52
|
-
import {
|
|
53
|
-
x
|
|
54
|
-
} from "./chunk.7HUC6BF3.js";
|
|
55
|
-
import {
|
|
56
|
-
__decorateClass
|
|
57
|
-
} from "./chunk.4ZGVANML.js";
|
|
58
|
-
|
|
59
|
-
// src/components/input/input.ts
|
|
60
|
-
var DSAInput = class extends FormControlLayout {
|
|
61
|
-
constructor() {
|
|
62
|
-
super(...arguments);
|
|
63
|
-
this.formControlController = new FormControlController(this, {
|
|
64
|
-
assumeInteractionOn: ["dsa-blur", "dsa-input"]
|
|
65
|
-
});
|
|
66
|
-
this.localize = new LocalizeController(this);
|
|
67
|
-
this.hasFocus = false;
|
|
68
|
-
this.type = "text";
|
|
69
|
-
this.value = "";
|
|
70
|
-
this.defaultValue = "";
|
|
71
|
-
this.clearable = false;
|
|
72
|
-
this.passwordVisible = false;
|
|
73
|
-
this.counter = false;
|
|
74
|
-
this.spellcheck = true;
|
|
75
|
-
}
|
|
76
|
-
/** Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. */
|
|
77
|
-
get valueAsDate() {
|
|
78
|
-
var _a, _b;
|
|
79
|
-
if (this.input instanceof DSAInputTime) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
return (_b = (_a = this.input) == null ? void 0 : _a.valueAsDate) != null ? _b : null;
|
|
83
|
-
}
|
|
84
|
-
set valueAsDate(newValue) {
|
|
85
|
-
const input = document.createElement("input");
|
|
86
|
-
input.type = "date";
|
|
87
|
-
input.valueAsDate = newValue;
|
|
88
|
-
this.value = input.value;
|
|
89
|
-
}
|
|
90
|
-
/** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */
|
|
91
|
-
get valueAsNumber() {
|
|
92
|
-
var _a, _b;
|
|
93
|
-
if (this.type === "amount") {
|
|
94
|
-
return parseFloat(this.value.replace(",", "."));
|
|
95
|
-
} else {
|
|
96
|
-
return (_b = (_a = this.standardInput) == null ? void 0 : _a.valueAsNumber) != null ? _b : parseFloat(this.value);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
set valueAsNumber(newValue) {
|
|
100
|
-
const input = document.createElement("input");
|
|
101
|
-
input.type = "number";
|
|
102
|
-
input.valueAsNumber = newValue;
|
|
103
|
-
this.value = input.value;
|
|
104
|
-
}
|
|
105
|
-
/** Gets the validity state object */
|
|
106
|
-
get validity() {
|
|
107
|
-
var _a, _b;
|
|
108
|
-
return (_b = (_a = this.input) == null ? void 0 : _a.validity) != null ? _b : true;
|
|
109
|
-
}
|
|
110
|
-
/** Gets the validation message */
|
|
111
|
-
get validationMessage() {
|
|
112
|
-
return this.input.validationMessage;
|
|
113
|
-
}
|
|
114
|
-
async firstUpdated() {
|
|
115
|
-
await this.updateComplete;
|
|
116
|
-
if (this.type === "date") {
|
|
117
|
-
this.input = this.dateInput;
|
|
118
|
-
} else if (this.type === "time") {
|
|
119
|
-
this.input = this.timeInput;
|
|
120
|
-
} else {
|
|
121
|
-
this.input = this.standardInput;
|
|
122
|
-
}
|
|
123
|
-
this.formControlController.updateValidity();
|
|
124
|
-
}
|
|
125
|
-
handleBlur(event) {
|
|
126
|
-
if (["date", "time"].includes(this.type)) {
|
|
127
|
-
event.stopPropagation();
|
|
128
|
-
}
|
|
129
|
-
this.hasFocus = false;
|
|
130
|
-
this.emit("dsa-blur");
|
|
131
|
-
}
|
|
132
|
-
handleChange(event) {
|
|
133
|
-
if (["date", "time"].includes(this.type)) {
|
|
134
|
-
event.stopPropagation();
|
|
135
|
-
}
|
|
136
|
-
if (this.type === "amount") {
|
|
137
|
-
this.handleAmountChange();
|
|
138
|
-
this.value = this.input.value.replace(",", ".");
|
|
139
|
-
} else {
|
|
140
|
-
this.value = this.input.value;
|
|
141
|
-
}
|
|
142
|
-
this.emit("dsa-change");
|
|
143
|
-
}
|
|
144
|
-
handleAmountChange() {
|
|
145
|
-
if (this.input.value === "" || this.input.value === "-") {
|
|
146
|
-
this.input.value = "";
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
const parsedValue = parseFrAmount(this.input.value);
|
|
150
|
-
const parsedMin = parseFloat(`${this.min}`);
|
|
151
|
-
const parsedMax = parseFloat(`${this.max}`);
|
|
152
|
-
this.input.value = numberToFrAmount(
|
|
153
|
-
roundToStep(parsedValue, this.getSafeStep())
|
|
154
|
-
);
|
|
155
|
-
if (!isNaN(parsedMin) && parsedValue < parsedMin) {
|
|
156
|
-
this.input.value = numberToFrAmount(this.min);
|
|
157
|
-
}
|
|
158
|
-
if (!isNaN(parsedMax) && parsedValue > parsedMax) {
|
|
159
|
-
this.input.value = numberToFrAmount(this.max);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
handleClearClick(event) {
|
|
163
|
-
this.value = "";
|
|
164
|
-
this.emit("dsa-clear");
|
|
165
|
-
this.emit("dsa-input");
|
|
166
|
-
this.emit("dsa-change");
|
|
167
|
-
this.input.focus();
|
|
168
|
-
event.stopPropagation();
|
|
169
|
-
}
|
|
170
|
-
handleFocus(event) {
|
|
171
|
-
if (["date", "time"].includes(this.type)) {
|
|
172
|
-
event.stopPropagation();
|
|
173
|
-
}
|
|
174
|
-
this.hasFocus = true;
|
|
175
|
-
this.emit("dsa-focus");
|
|
176
|
-
}
|
|
177
|
-
handleInput(event) {
|
|
178
|
-
if (["date", "time"].includes(this.type)) {
|
|
179
|
-
event.stopPropagation();
|
|
180
|
-
}
|
|
181
|
-
if (this.type === "amount") {
|
|
182
|
-
this.value = this.input.value.replace(",", ".");
|
|
183
|
-
} else {
|
|
184
|
-
this.value = this.input.value;
|
|
185
|
-
}
|
|
186
|
-
this.formControlController.updateValidity();
|
|
187
|
-
this.emit("dsa-input");
|
|
188
|
-
}
|
|
189
|
-
handleInvalid(event) {
|
|
190
|
-
this.formControlController.setValidity(false);
|
|
191
|
-
this.formControlController.emitInvalidEvent(event);
|
|
192
|
-
}
|
|
193
|
-
handleKeyDown(event) {
|
|
194
|
-
const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
195
|
-
if (this.type === "amount") {
|
|
196
|
-
this.handleAmountKeydown(event);
|
|
197
|
-
}
|
|
198
|
-
if (event.key === "Enter" && !hasModifier) {
|
|
199
|
-
setTimeout(() => {
|
|
200
|
-
if (!event.defaultPrevented && !event.isComposing) {
|
|
201
|
-
this.formControlController.submit();
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
handleAmountKeydown(event) {
|
|
207
|
-
if (event.key === "Dead") {
|
|
208
|
-
this.input.blur();
|
|
209
|
-
setTimeout(() => this.input.focus());
|
|
210
|
-
}
|
|
211
|
-
if (isInvalidAmountKey(event) || event.key === "-" && this.standardInput.selectionStart !== null && this.standardInput.selectionStart > 0 || event.key === "," && this.input.value.includes(",")) {
|
|
212
|
-
event.preventDefault();
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
if (event.key === "ArrowDown") {
|
|
216
|
-
this.stepDown();
|
|
217
|
-
}
|
|
218
|
-
if (event.key === "ArrowUp") {
|
|
219
|
-
this.stepUp();
|
|
220
|
-
}
|
|
221
|
-
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
222
|
-
const inputEvent = new Event("input", { bubbles: true });
|
|
223
|
-
const changeEvent = new Event("change", { bubbles: true });
|
|
224
|
-
this.input.dispatchEvent(inputEvent);
|
|
225
|
-
this.input.dispatchEvent(changeEvent);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
getSafeStep() {
|
|
229
|
-
if (this.step === "any") {
|
|
230
|
-
return this.step;
|
|
231
|
-
}
|
|
232
|
-
const parsedStep = parseFloat(`${this.step}`);
|
|
233
|
-
if (isNaN(parsedStep) || parsedStep === 0) {
|
|
234
|
-
return 1;
|
|
235
|
-
} else {
|
|
236
|
-
return parsedStep;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
handlePasswordToggle() {
|
|
240
|
-
this.passwordVisible = !this.passwordVisible;
|
|
241
|
-
}
|
|
242
|
-
getDescriptionIds() {
|
|
243
|
-
let ids = ["input__prefix", "input__suffix"];
|
|
244
|
-
if (this.error) ids = [...ids, "error-text"];
|
|
245
|
-
ids = [...ids, "help-text"];
|
|
246
|
-
if (this.maxlength && this.counter) ids = [...ids, "counter"];
|
|
247
|
-
ids = [...ids, "description"];
|
|
248
|
-
return ids.join(" ");
|
|
249
|
-
}
|
|
250
|
-
handleDisabledChange() {
|
|
251
|
-
this.formControlController.setValidity(this.disabled);
|
|
252
|
-
}
|
|
253
|
-
handleStepChange() {
|
|
254
|
-
if (this.input instanceof DSAInputTime) {
|
|
255
|
-
this.input.step = typeof this.step === "number" ? this.step : 60;
|
|
256
|
-
} else this.standardInput.step = String(this.step);
|
|
257
|
-
this.formControlController.updateValidity();
|
|
258
|
-
}
|
|
259
|
-
async handleValueChange() {
|
|
260
|
-
await this.updateComplete;
|
|
261
|
-
this.formControlController.updateValidity();
|
|
262
|
-
}
|
|
263
|
-
/** Sets focus on the input. */
|
|
264
|
-
focus(options) {
|
|
265
|
-
this.input.focus(options);
|
|
266
|
-
}
|
|
267
|
-
/** Removes focus from the input. */
|
|
268
|
-
blur() {
|
|
269
|
-
this.input.blur();
|
|
270
|
-
}
|
|
271
|
-
/** Selects all the text in the input. */
|
|
272
|
-
select() {
|
|
273
|
-
if (this.input instanceof HTMLInputElement) {
|
|
274
|
-
this.input.select();
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
/** Sets the start and end positions of the text selection (0-based). */
|
|
278
|
-
setSelectionRange(selectionStart, selectionEnd, selectionDirection = "none") {
|
|
279
|
-
if (this.input instanceof HTMLInputElement) {
|
|
280
|
-
this.input.setSelectionRange(
|
|
281
|
-
selectionStart,
|
|
282
|
-
selectionEnd,
|
|
283
|
-
selectionDirection
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
/** Replaces a range of text with a new string. */
|
|
288
|
-
setRangeText(replacement, start, end, selectMode) {
|
|
289
|
-
if (this.input instanceof HTMLInputElement) {
|
|
290
|
-
this.input.setRangeText(replacement, start, end, selectMode);
|
|
291
|
-
if (this.value !== this.input.value) {
|
|
292
|
-
this.value = this.input.value;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
async showTimePicker() {
|
|
297
|
-
if (this.input instanceof DSAInputTime) {
|
|
298
|
-
await this.input.showTimePicker();
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
async hideTimePicker() {
|
|
302
|
-
if (this.input instanceof DSAInputTime) {
|
|
303
|
-
await this.input.hideTimePicker();
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
async showDatepicker() {
|
|
307
|
-
if (this.input instanceof DSAInputDate) {
|
|
308
|
-
await this.input.showDatepicker();
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
async hideDatepicker() {
|
|
312
|
-
await this.dateInput.hideDatepicker();
|
|
313
|
-
}
|
|
314
|
-
adjustAmountValue(direction) {
|
|
315
|
-
const safeStep = this.getSafeStep();
|
|
316
|
-
const numberStep = new big_default(safeStep === "any" ? 1 : safeStep);
|
|
317
|
-
const parsedValue = new big_default(parseFrAmount(this.input.value));
|
|
318
|
-
const newValue = direction === "up" ? parsedValue.plus(numberStep).toNumber() : parsedValue.minus(numberStep).toNumber();
|
|
319
|
-
this.input.value = numberToFrAmount(newValue);
|
|
320
|
-
this.value = this.input.value.replace(",", ".");
|
|
321
|
-
}
|
|
322
|
-
/** Increments the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
|
|
323
|
-
stepUp(stepNumber) {
|
|
324
|
-
switch (this.type) {
|
|
325
|
-
case "date":
|
|
326
|
-
return;
|
|
327
|
-
case "time":
|
|
328
|
-
if (!(this.input instanceof DSAInputTime)) return;
|
|
329
|
-
this.input.stepUp(stepNumber);
|
|
330
|
-
this.value = this.input.value;
|
|
331
|
-
return;
|
|
332
|
-
case "amount":
|
|
333
|
-
this.adjustAmountValue("up");
|
|
334
|
-
return;
|
|
335
|
-
default:
|
|
336
|
-
this.standardInput.stepUp(stepNumber);
|
|
337
|
-
if (this.value !== this.standardInput.value) {
|
|
338
|
-
this.value = this.standardInput.value;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
/** Decrements the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
|
|
343
|
-
stepDown(stepNumber) {
|
|
344
|
-
switch (this.type) {
|
|
345
|
-
case "date":
|
|
346
|
-
return;
|
|
347
|
-
case "time":
|
|
348
|
-
if (!(this.input instanceof DSAInputTime)) return;
|
|
349
|
-
this.input.stepDown(stepNumber);
|
|
350
|
-
this.value = this.input.value;
|
|
351
|
-
return;
|
|
352
|
-
case "amount":
|
|
353
|
-
this.adjustAmountValue("down");
|
|
354
|
-
return;
|
|
355
|
-
default:
|
|
356
|
-
this.standardInput.stepDown(stepNumber);
|
|
357
|
-
if (this.value !== this.standardInput.value) {
|
|
358
|
-
this.value = this.standardInput.value;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
363
|
-
checkValidity() {
|
|
364
|
-
if (this.type === "amount") {
|
|
365
|
-
return this.input.checkValidity() && this.checkAmountValidity();
|
|
366
|
-
}
|
|
367
|
-
return this.input.checkValidity();
|
|
368
|
-
}
|
|
369
|
-
/** Gets the associated form, if one exists. */
|
|
370
|
-
getForm() {
|
|
371
|
-
return this.formControlController.getForm();
|
|
372
|
-
}
|
|
373
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
374
|
-
reportValidity() {
|
|
375
|
-
if (this.type === "amount") {
|
|
376
|
-
return this.input.reportValidity() && this.checkAmountValidity();
|
|
377
|
-
}
|
|
378
|
-
return this.input.reportValidity();
|
|
379
|
-
}
|
|
380
|
-
checkAmountValidity() {
|
|
381
|
-
if (this.value === "") {
|
|
382
|
-
return true;
|
|
383
|
-
}
|
|
384
|
-
const parsedValue = parseFloat(this.value);
|
|
385
|
-
const parsedMin = parseFloat(`${this.min}`);
|
|
386
|
-
const parsedMax = parseFloat(`${this.max}`);
|
|
387
|
-
const safeStep = this.getSafeStep();
|
|
388
|
-
return !isNaN(parsedValue) && (isNaN(parsedMin) || parsedValue >= parsedMin) && (isNaN(parsedMax) || parsedValue <= parsedMax) && (safeStep === "any" || roundToStep(parsedValue, safeStep) === parsedValue);
|
|
389
|
-
}
|
|
390
|
-
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
391
|
-
setCustomValidity(message) {
|
|
392
|
-
this.input.setCustomValidity(message);
|
|
393
|
-
this.formControlController.updateValidity();
|
|
394
|
-
}
|
|
395
|
-
async getUpdateComplete() {
|
|
396
|
-
let result;
|
|
397
|
-
if (this.input instanceof DSAInputDate || this.input instanceof DSAInputTime) {
|
|
398
|
-
result = await this.input.updateComplete;
|
|
399
|
-
} else {
|
|
400
|
-
result = await super.getUpdateComplete();
|
|
401
|
-
}
|
|
402
|
-
return result;
|
|
403
|
-
}
|
|
404
|
-
render() {
|
|
405
|
-
if (this.type === "date") {
|
|
406
|
-
return x`
|
|
407
|
-
<dsa-input-date
|
|
408
|
-
name=${o(this.name)}
|
|
409
|
-
title=${o(this.title)}
|
|
410
|
-
value=${this.value}
|
|
411
|
-
.defaultValue=${o(this.defaultValue)}
|
|
412
|
-
size=${o(this.size)}
|
|
413
|
-
variant=${o(this.variant)}
|
|
414
|
-
label=${o(this.label)}
|
|
415
|
-
help-text=${o(this.helpText)}
|
|
416
|
-
?clearable=${this.clearable}
|
|
417
|
-
?disabled=${this.disabled}
|
|
418
|
-
lang=${o(this.lang)}
|
|
419
|
-
placeholder=${o(this.placeholder)}
|
|
420
|
-
?readonly=${this.readonly}
|
|
421
|
-
?error=${this.error}
|
|
422
|
-
.errorMessage=${o(this.errorMessage)}
|
|
423
|
-
form=${o(this.form)}
|
|
424
|
-
?required=${this.required}
|
|
425
|
-
min=${o(this.min)}
|
|
426
|
-
max=${o(this.max)}
|
|
427
|
-
calendar-start-date=${o(this.calendarStartDate)}
|
|
428
|
-
?autofocus=${this.autofocus}
|
|
429
|
-
enterkeyhint=${o(this.enterkeyhint)}
|
|
430
|
-
@dsa-change=${this.handleChange}
|
|
431
|
-
@dsa-input=${this.handleInput}
|
|
432
|
-
@dsa-focus=${this.handleFocus}
|
|
433
|
-
@dsa-blur=${this.handleBlur}
|
|
434
|
-
description=${o(this.description)}
|
|
435
|
-
>
|
|
436
|
-
${this.hasSlotController.test("label") ? x` <slot name="label" slot="label"></slot> ` : ""}
|
|
437
|
-
${this.hasSlotController.test("prefix") ? x` <slot name="prefix" slot="prefix"></slot> ` : ""}
|
|
438
|
-
${this.hasSlotController.test("help-text") ? x` <slot name="help-text" slot="help-text"></slot> ` : ""}
|
|
439
|
-
${this.hasSlotController.test("tooltip") ? x` <slot name="tooltip" slot="tooltip"></slot> ` : ""}
|
|
440
|
-
</dsa-input-date>
|
|
441
|
-
`;
|
|
442
|
-
} else if (this.type === "time") {
|
|
443
|
-
return x`
|
|
444
|
-
<dsa-input-time
|
|
445
|
-
name=${o(this.name)}
|
|
446
|
-
title=${o(this.title)}
|
|
447
|
-
value=${this.value}
|
|
448
|
-
.defaultValue=${o(this.defaultValue)}
|
|
449
|
-
size=${o(this.size)}
|
|
450
|
-
variant=${o(this.variant)}
|
|
451
|
-
label=${o(this.label)}
|
|
452
|
-
help-text=${o(this.helpText)}
|
|
453
|
-
?clearable=${this.clearable}
|
|
454
|
-
?disabled=${this.disabled}
|
|
455
|
-
?readonly=${this.readonly}
|
|
456
|
-
?error=${this.error}
|
|
457
|
-
.errorMessage=${o(this.errorMessage)}
|
|
458
|
-
form=${o(this.form)}
|
|
459
|
-
?required=${this.required}
|
|
460
|
-
min=${o(this.min)}
|
|
461
|
-
max=${o(this.max)}
|
|
462
|
-
step=${o(this.step)}
|
|
463
|
-
?autofocus=${this.autofocus}
|
|
464
|
-
enterkeyhint=${o(this.enterkeyhint)}
|
|
465
|
-
@dsa-change=${this.handleChange}
|
|
466
|
-
@dsa-input=${this.handleInput}
|
|
467
|
-
@dsa-focus=${this.handleFocus}
|
|
468
|
-
@dsa-blur=${this.handleBlur}
|
|
469
|
-
description=${o(this.description)}
|
|
470
|
-
>
|
|
471
|
-
${this.hasSlotController.test("label") ? x` <slot name="label" slot="label"></slot> ` : ""}
|
|
472
|
-
${this.hasSlotController.test("prefix") ? x` <slot name="prefix" slot="prefix"></slot> ` : ""}
|
|
473
|
-
${this.hasSlotController.test("suffix") ? x` <slot name="suffix" slot="suffix"></slot> ` : ""}
|
|
474
|
-
${this.hasSlotController.test("help-text") ? x` <slot name="help-text" slot="help-text"></slot> ` : ""}
|
|
475
|
-
${this.hasSlotController.test("tooltip") ? x` <slot name="tooltip" slot="tooltip"></slot> ` : ""}
|
|
476
|
-
</dsa-input-time>
|
|
477
|
-
`;
|
|
478
|
-
} else {
|
|
479
|
-
return super.render();
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
renderInput() {
|
|
483
|
-
const hasLabelSlot = this.hasSlotController.test("label");
|
|
484
|
-
const overridenPrefixIcon = isPrefixIconOverriden(this.type) ? getOverridenIconDetails(this.type) : void 0;
|
|
485
|
-
const hasPrefixIcon = overridenPrefixIcon !== void 0 || this.hasSlotController.test("prefix");
|
|
486
|
-
const hasSuffixIcon = this.hasSlotController.test("suffix");
|
|
487
|
-
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
488
|
-
const hasClearIcon = this.clearable && !this.disabled && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
|
489
|
-
const hasHideIcon = this.type === "password" && !this.disabled;
|
|
490
|
-
let nativeType;
|
|
491
|
-
if (this.type === "password" && this.passwordVisible || this.type === "amount") {
|
|
492
|
-
nativeType = "text";
|
|
493
|
-
} else {
|
|
494
|
-
nativeType = this.type;
|
|
495
|
-
}
|
|
496
|
-
return x`
|
|
497
|
-
<div
|
|
498
|
-
part="base"
|
|
499
|
-
class=${e2({
|
|
500
|
-
input: true,
|
|
501
|
-
// Sizes
|
|
502
|
-
"input--small": this.size === "small",
|
|
503
|
-
"input--medium": this.size === "medium",
|
|
504
|
-
"input--large": this.size === "large",
|
|
505
|
-
// States
|
|
506
|
-
"input--error": this.error,
|
|
507
|
-
"input--on-layer": this.variant === "layer",
|
|
508
|
-
"input--on-base": this.variant === "base",
|
|
509
|
-
"input--disabled": this.disabled,
|
|
510
|
-
"input--readonly": this.readonly,
|
|
511
|
-
"input--focused": this.hasFocus,
|
|
512
|
-
"input--empty": !this.value,
|
|
513
|
-
"form-control--has-prefix-icon": hasPrefixIcon
|
|
514
|
-
})}
|
|
515
|
-
>
|
|
516
|
-
${overridenPrefixIcon ? x`<dsa-icon
|
|
517
|
-
name=${overridenPrefixIcon.iconName}
|
|
518
|
-
class="input__prefix"
|
|
519
|
-
library="system"
|
|
520
|
-
></dsa-icon>` : x` <slot
|
|
521
|
-
name="prefix"
|
|
522
|
-
part="prefix"
|
|
523
|
-
id="input__prefix"
|
|
524
|
-
class="input__prefix"
|
|
525
|
-
></slot>`}
|
|
526
|
-
|
|
527
|
-
<input
|
|
528
|
-
part="input"
|
|
529
|
-
id="input"
|
|
530
|
-
class="input__control"
|
|
531
|
-
type=${nativeType}
|
|
532
|
-
title=${ifDefinedAndNotEmpty(hasLabel ? void 0 : this.title)}
|
|
533
|
-
name=${ifDefinedAndNotEmpty(this.name)}
|
|
534
|
-
?disabled=${this.disabled}
|
|
535
|
-
?readonly=${this.readonly}
|
|
536
|
-
?required=${this.required}
|
|
537
|
-
placeholder=${o(this.placeholder)}
|
|
538
|
-
minlength=${o(this.minlength)}
|
|
539
|
-
maxlength=${o(this.maxlength)}
|
|
540
|
-
min=${o(this.min)}
|
|
541
|
-
max=${o(this.max)}
|
|
542
|
-
step=${o(this.step)}
|
|
543
|
-
.value=${l(
|
|
544
|
-
this.type === "amount" ? numberToFrAmount(this.value) : this.value
|
|
545
|
-
)}
|
|
546
|
-
autocapitalize=${o(this.autocapitalize)}
|
|
547
|
-
autocomplete=${o(this.autocomplete)}
|
|
548
|
-
autocorrect=${o(this.autocorrect)}
|
|
549
|
-
?autofocus=${this.autofocus}
|
|
550
|
-
spellcheck=${this.spellcheck}
|
|
551
|
-
pattern=${o(this.pattern)}
|
|
552
|
-
enterkeyhint=${o(this.enterkeyhint)}
|
|
553
|
-
inputmode=${o(this.inputmode)}
|
|
554
|
-
aria-label=${ifDefinedAndNotEmpty(hasLabel ? void 0 : this.title)}
|
|
555
|
-
aria-describedby=${this.getDescriptionIds()}
|
|
556
|
-
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
557
|
-
@change=${this.handleChange}
|
|
558
|
-
@input=${this.handleInput}
|
|
559
|
-
@invalid=${this.handleInvalid}
|
|
560
|
-
@keydown=${this.handleKeyDown}
|
|
561
|
-
@focus=${this.handleFocus}
|
|
562
|
-
@blur=${this.handleBlur}
|
|
563
|
-
/>
|
|
564
|
-
|
|
565
|
-
${hasSuffixIcon ? x`<slot
|
|
566
|
-
name="suffix"
|
|
567
|
-
id="input__suffix"
|
|
568
|
-
class="input__suffix"
|
|
569
|
-
></slot>` : ""}
|
|
570
|
-
${hasClearIcon ? x`
|
|
571
|
-
<dsa-icon-button
|
|
572
|
-
part="clear-button"
|
|
573
|
-
class="input__action-button"
|
|
574
|
-
name="clear"
|
|
575
|
-
label=${this.localize.term("clearEntry")}
|
|
576
|
-
@click=${this.handleClearClick}
|
|
577
|
-
library="system"
|
|
578
|
-
></dsa-icon-button>
|
|
579
|
-
` : ""}
|
|
580
|
-
${hasHideIcon ? x`<dsa-icon-button
|
|
581
|
-
part="password-toggle-button"
|
|
582
|
-
class="input__action-button"
|
|
583
|
-
label=${this.localize.term(
|
|
584
|
-
this.passwordVisible ? "hidePassword" : "showPassword"
|
|
585
|
-
)}
|
|
586
|
-
name=${this.passwordVisible ? "visibility_off" : "visibility"}
|
|
587
|
-
@click=${this.handlePasswordToggle}
|
|
588
|
-
library="system"
|
|
589
|
-
></dsa-icon-button>` : ""}
|
|
590
|
-
</div>
|
|
591
|
-
`;
|
|
592
|
-
}
|
|
593
|
-
renderCounter() {
|
|
594
|
-
const counterText = this.maxlength && this.counter ? `${this.value.length}/${this.maxlength}` : void 0;
|
|
595
|
-
return counterText !== void 0 ? x`<span
|
|
596
|
-
id="counter"
|
|
597
|
-
class=${e2({
|
|
598
|
-
"form-control__counter": true,
|
|
599
|
-
"form-control__counter--animated": this.value.length === this.maxlength
|
|
600
|
-
})}
|
|
601
|
-
>${counterText}</span
|
|
602
|
-
>` : x``;
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
|
-
DSAInput.styles = input_styles_default;
|
|
606
|
-
__decorateClass([
|
|
607
|
-
e("input")
|
|
608
|
-
], DSAInput.prototype, "standardInput", 2);
|
|
609
|
-
__decorateClass([
|
|
610
|
-
e("dsa-input-date")
|
|
611
|
-
], DSAInput.prototype, "dateInput", 2);
|
|
612
|
-
__decorateClass([
|
|
613
|
-
e("dsa-input-time")
|
|
614
|
-
], DSAInput.prototype, "timeInput", 2);
|
|
615
|
-
__decorateClass([
|
|
616
|
-
r()
|
|
617
|
-
], DSAInput.prototype, "hasFocus", 2);
|
|
618
|
-
__decorateClass([
|
|
619
|
-
n({ reflect: true })
|
|
620
|
-
], DSAInput.prototype, "type", 2);
|
|
621
|
-
__decorateClass([
|
|
622
|
-
n()
|
|
623
|
-
], DSAInput.prototype, "value", 2);
|
|
624
|
-
__decorateClass([
|
|
625
|
-
defaultValue()
|
|
626
|
-
], DSAInput.prototype, "defaultValue", 2);
|
|
627
|
-
__decorateClass([
|
|
628
|
-
n({ type: Boolean })
|
|
629
|
-
], DSAInput.prototype, "clearable", 2);
|
|
630
|
-
__decorateClass([
|
|
631
|
-
n()
|
|
632
|
-
], DSAInput.prototype, "lang", 2);
|
|
633
|
-
__decorateClass([
|
|
634
|
-
n({ attribute: "password-visible", type: Boolean })
|
|
635
|
-
], DSAInput.prototype, "passwordVisible", 2);
|
|
636
|
-
__decorateClass([
|
|
637
|
-
n()
|
|
638
|
-
], DSAInput.prototype, "pattern", 2);
|
|
639
|
-
__decorateClass([
|
|
640
|
-
n({ type: Number })
|
|
641
|
-
], DSAInput.prototype, "minlength", 2);
|
|
642
|
-
__decorateClass([
|
|
643
|
-
n({ type: Number })
|
|
644
|
-
], DSAInput.prototype, "maxlength", 2);
|
|
645
|
-
__decorateClass([
|
|
646
|
-
n({ type: Boolean })
|
|
647
|
-
], DSAInput.prototype, "counter", 2);
|
|
648
|
-
__decorateClass([
|
|
649
|
-
n()
|
|
650
|
-
], DSAInput.prototype, "min", 2);
|
|
651
|
-
__decorateClass([
|
|
652
|
-
n()
|
|
653
|
-
], DSAInput.prototype, "max", 2);
|
|
654
|
-
__decorateClass([
|
|
655
|
-
n({ attribute: "calendar-start-date" })
|
|
656
|
-
], DSAInput.prototype, "calendarStartDate", 2);
|
|
657
|
-
__decorateClass([
|
|
658
|
-
n()
|
|
659
|
-
], DSAInput.prototype, "step", 2);
|
|
660
|
-
__decorateClass([
|
|
661
|
-
n()
|
|
662
|
-
], DSAInput.prototype, "autocapitalize", 2);
|
|
663
|
-
__decorateClass([
|
|
664
|
-
n()
|
|
665
|
-
], DSAInput.prototype, "autocorrect", 2);
|
|
666
|
-
__decorateClass([
|
|
667
|
-
n()
|
|
668
|
-
], DSAInput.prototype, "autocomplete", 2);
|
|
669
|
-
__decorateClass([
|
|
670
|
-
n({ type: Boolean })
|
|
671
|
-
], DSAInput.prototype, "autofocus", 2);
|
|
672
|
-
__decorateClass([
|
|
673
|
-
n()
|
|
674
|
-
], DSAInput.prototype, "enterkeyhint", 2);
|
|
675
|
-
__decorateClass([
|
|
676
|
-
n({
|
|
677
|
-
type: Boolean,
|
|
678
|
-
converter: {
|
|
679
|
-
// Allow "true|false" attribute values but keep the property boolean
|
|
680
|
-
fromAttribute: (value) => !value || value === "false" ? false : true,
|
|
681
|
-
toAttribute: (value) => value ? "true" : "false"
|
|
682
|
-
}
|
|
683
|
-
})
|
|
684
|
-
], DSAInput.prototype, "spellcheck", 2);
|
|
685
|
-
__decorateClass([
|
|
686
|
-
n()
|
|
687
|
-
], DSAInput.prototype, "inputmode", 2);
|
|
688
|
-
__decorateClass([
|
|
689
|
-
watch("disabled", { waitUntilFirstUpdate: true })
|
|
690
|
-
], DSAInput.prototype, "handleDisabledChange", 1);
|
|
691
|
-
__decorateClass([
|
|
692
|
-
watch("step", { waitUntilFirstUpdate: true })
|
|
693
|
-
], DSAInput.prototype, "handleStepChange", 1);
|
|
694
|
-
__decorateClass([
|
|
695
|
-
watch("value", { waitUntilFirstUpdate: true })
|
|
696
|
-
], DSAInput.prototype, "handleValueChange", 1);
|
|
697
|
-
DSAInput = __decorateClass([
|
|
698
|
-
t("dsa-input")
|
|
699
|
-
], DSAInput);
|
|
700
|
-
|
|
701
|
-
export {
|
|
702
|
-
DSAInput
|
|
703
|
-
};
|