@ds-autonomie/web-components 1.0.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 +318 -0
- package/LICENSE +8 -0
- package/README.md +3 -0
- package/dist/chunks/chunk.23TOS4ZE.js +29 -0
- package/dist/chunks/chunk.2FK6USFR.js +63 -0
- package/dist/chunks/chunk.2HUORR44.js +76 -0
- package/dist/chunks/chunk.3BL7JA77.js +59 -0
- package/dist/chunks/chunk.3RBCYA4F.js +147 -0
- package/dist/chunks/chunk.3XRQRY25.js +25 -0
- package/dist/chunks/chunk.42W4S2HN.js +145 -0
- package/dist/chunks/chunk.4A3WMGMZ.js +79 -0
- package/dist/chunks/chunk.4A57I2HX.js +241 -0
- package/dist/chunks/chunk.4XT2OJD2.js +75 -0
- package/dist/chunks/chunk.5LT3B7MI.js +372 -0
- package/dist/chunks/chunk.5WAZTHII.js +37 -0
- package/dist/chunks/chunk.5XL2LZLC.js +100 -0
- package/dist/chunks/chunk.5XUV3SRW.js +420 -0
- package/dist/chunks/chunk.6FAUBLR3.js +84 -0
- package/dist/chunks/chunk.6M63UXML.js +35 -0
- package/dist/chunks/chunk.6PS5KB3O.js +53 -0
- package/dist/chunks/chunk.6ZQ4OQ2C.js +51 -0
- package/dist/chunks/chunk.73T7TU6S.js +24 -0
- package/dist/chunks/chunk.7J7CS3BK.js +43 -0
- package/dist/chunks/chunk.7NWAYDYI.js +168 -0
- package/dist/chunks/chunk.7ZCCXTFG.js +301 -0
- package/dist/chunks/chunk.A2PAK6VF.js +206 -0
- package/dist/chunks/chunk.ABGBXXKA.js +164 -0
- package/dist/chunks/chunk.AQRNB4GJ.js +33 -0
- package/dist/chunks/chunk.AR5HJD7F.js +111 -0
- package/dist/chunks/chunk.B4BZKR24.js +16 -0
- package/dist/chunks/chunk.BD63GRU5.js +132 -0
- package/dist/chunks/chunk.BEB47LM2.js +278 -0
- package/dist/chunks/chunk.BLPP3Q5H.js +555 -0
- package/dist/chunks/chunk.CJIL3BLA.js +45 -0
- package/dist/chunks/chunk.CPXD6UYZ.js +34 -0
- package/dist/chunks/chunk.D7CATJYB.js +36 -0
- package/dist/chunks/chunk.DC6CT5PU.js +109 -0
- package/dist/chunks/chunk.DRGGQ4WL.js +9 -0
- package/dist/chunks/chunk.DSGUQNN4.js +26 -0
- package/dist/chunks/chunk.DURVPB6M.js +391 -0
- package/dist/chunks/chunk.DXVNWE2M.js +166 -0
- package/dist/chunks/chunk.EFQHAGXP.js +26 -0
- package/dist/chunks/chunk.EHVJT7BH.js +215 -0
- package/dist/chunks/chunk.EKWYMXQO.js +166 -0
- package/dist/chunks/chunk.EMIT7S33.js +71 -0
- package/dist/chunks/chunk.EMJZLQCL.js +60 -0
- package/dist/chunks/chunk.ENKP2IFW.js +361 -0
- package/dist/chunks/chunk.EU56EW33.js +91 -0
- package/dist/chunks/chunk.EYZGEU3G.js +45 -0
- package/dist/chunks/chunk.FDYFSRSX.js +33 -0
- package/dist/chunks/chunk.FIGO7UV2.js +77 -0
- package/dist/chunks/chunk.G7AELPSO.js +131 -0
- package/dist/chunks/chunk.GI7VDIWX.js +24 -0
- package/dist/chunks/chunk.GYTA2LJC.js +145 -0
- package/dist/chunks/chunk.HAL7R4WT.js +0 -0
- package/dist/chunks/chunk.HC5BO5YV.js +405 -0
- package/dist/chunks/chunk.HH63FIEF.js +122 -0
- package/dist/chunks/chunk.HLYGKGDG.js +308 -0
- package/dist/chunks/chunk.I33L3NO6.js +122 -0
- package/dist/chunks/chunk.IGYXUK7A.js +19 -0
- package/dist/chunks/chunk.INCGVIAQ.js +61 -0
- package/dist/chunks/chunk.IOFPPNUO.js +25 -0
- package/dist/chunks/chunk.IRQOFNJE.js +317 -0
- package/dist/chunks/chunk.ISAFRNR2.js +112 -0
- package/dist/chunks/chunk.J2XNYTTZ.js +715 -0
- package/dist/chunks/chunk.JETXIC4F.js +150 -0
- package/dist/chunks/chunk.JT7UJED5.js +33 -0
- package/dist/chunks/chunk.K6WCEYZI.js +52 -0
- package/dist/chunks/chunk.KBT2EKLF.js +25 -0
- package/dist/chunks/chunk.KDAK2GXX.js +58 -0
- package/dist/chunks/chunk.KHIMMW3T.js +33 -0
- package/dist/chunks/chunk.KIFBWPW5.js +298 -0
- package/dist/chunks/chunk.KOH5V4C6.js +552 -0
- package/dist/chunks/chunk.LC54322H.js +99 -0
- package/dist/chunks/chunk.LMJPQPQT.js +26 -0
- package/dist/chunks/chunk.LT7JMZ3T.js +371 -0
- package/dist/chunks/chunk.M245ZGRR.js +80 -0
- package/dist/chunks/chunk.MOWTZFON.js +63 -0
- package/dist/chunks/chunk.MY434P47.js +125 -0
- package/dist/chunks/chunk.N6VVY6XD.js +91 -0
- package/dist/chunks/chunk.NDEZEB3Z.js +402 -0
- package/dist/chunks/chunk.NHRDZGLI.js +81 -0
- package/dist/chunks/chunk.NKKVGICB.js +114 -0
- package/dist/chunks/chunk.NNBOLKWI.js +17 -0
- package/dist/chunks/chunk.O73OYTYJ.js +319 -0
- package/dist/chunks/chunk.OBU65KDL.js +29 -0
- package/dist/chunks/chunk.ODSCDJDO.js +91 -0
- package/dist/chunks/chunk.OVK7QCA7.js +441 -0
- package/dist/chunks/chunk.PQWQ42E2.js +150 -0
- package/dist/chunks/chunk.PULHNCDM.js +98 -0
- package/dist/chunks/chunk.PWWER3ZK.js +806 -0
- package/dist/chunks/chunk.QFJA3MTV.js +66 -0
- package/dist/chunks/chunk.QKNNLZ2M.js +361 -0
- package/dist/chunks/chunk.QL5C2XOW.js +0 -0
- package/dist/chunks/chunk.RDGMZ5XB.js +24 -0
- package/dist/chunks/chunk.RIJQGADY.js +108 -0
- package/dist/chunks/chunk.RMCOWJOW.js +17 -0
- package/dist/chunks/chunk.RY4QCT3T.js +29 -0
- package/dist/chunks/chunk.S4ATPBQN.js +89 -0
- package/dist/chunks/chunk.SGIGGO5M.js +86 -0
- package/dist/chunks/chunk.SQMWMSBA.js +207 -0
- package/dist/chunks/chunk.TJOP7HQP.js +14 -0
- package/dist/chunks/chunk.TUVJKY7S.js +21 -0
- package/dist/chunks/chunk.UA32LJYW.js +230 -0
- package/dist/chunks/chunk.UEUTSYIH.js +60 -0
- package/dist/chunks/chunk.UPYCV66H.js +111 -0
- package/dist/chunks/chunk.UV53JTE3.js +128 -0
- package/dist/chunks/chunk.UZLQVFDR.js +386 -0
- package/dist/chunks/chunk.V7RJROLH.js +48 -0
- package/dist/chunks/chunk.VFYKLPN2.js +144 -0
- package/dist/chunks/chunk.VRY3E2XG.js +196 -0
- package/dist/chunks/chunk.WE6IG5XG.js +164 -0
- package/dist/chunks/chunk.WFHOSUOX.js +263 -0
- package/dist/chunks/chunk.WHK7EFIM.js +264 -0
- package/dist/chunks/chunk.WIEJJS3W.js +88 -0
- package/dist/chunks/chunk.WK7RWLAK.js +54 -0
- package/dist/chunks/chunk.WNHQYL5W.js +298 -0
- package/dist/chunks/chunk.WSVP75MH.js +102 -0
- package/dist/chunks/chunk.XNEONNEJ.js +23 -0
- package/dist/chunks/chunk.XSCX6TC5.js +127 -0
- package/dist/chunks/chunk.XWUQFDIN.js +15 -0
- package/dist/chunks/chunk.Y3ZUFLVS.js +90 -0
- package/dist/chunks/chunk.YCXTCVAZ.js +30 -0
- package/dist/chunks/chunk.YIY5RM53.js +66 -0
- package/dist/chunks/chunk.YL3TSWVM.js +17 -0
- package/dist/chunks/chunk.YS7MY5CH.js +512 -0
- package/dist/chunks/chunk.YY6AEXJK.js +33 -0
- package/dist/chunks/chunk.YZHDFJWJ.js +17 -0
- package/dist/chunks/chunk.Z6TBD2AC.js +125 -0
- package/dist/chunks/chunk.ZKYSHEVZ.js +22 -0
- package/dist/chunks/chunk.ZVGZDTBF.js +104 -0
- package/dist/components/accordion/accordion.d.ts +49 -0
- package/dist/components/accordion/accordion.js +23 -0
- package/dist/components/accordion/accordion.styles.d.ts +2 -0
- package/dist/components/accordion/accordion.styles.js +8 -0
- package/dist/components/alert/alert.d.ts +52 -0
- package/dist/components/alert/alert.js +25 -0
- package/dist/components/alert/alert.styles.d.ts +2 -0
- package/dist/components/alert/alert.styles.js +8 -0
- package/dist/components/animation/animation.d.ts +81 -0
- package/dist/components/animation/animation.js +12 -0
- package/dist/components/animation/animation.styles.d.ts +2 -0
- package/dist/components/animation/animation.styles.js +8 -0
- package/dist/components/animation/animations.d.ts +6 -0
- package/dist/components/animation/animations.js +11 -0
- package/dist/components/avatar/avatar.d.ts +42 -0
- package/dist/components/avatar/avatar.js +19 -0
- package/dist/components/avatar/avatar.styles.d.ts +2 -0
- package/dist/components/avatar/avatar.styles.js +8 -0
- package/dist/components/avatar-group/avatar-group.d.ts +21 -0
- package/dist/components/avatar-group/avatar-group.js +9 -0
- package/dist/components/avatar-group/avatar-group.styles.d.ts +2 -0
- package/dist/components/avatar-group/avatar-group.styles.js +7 -0
- package/dist/components/badge/badge.d.ts +23 -0
- package/dist/components/badge/badge.js +10 -0
- package/dist/components/badge/badge.styles.d.ts +2 -0
- package/dist/components/badge/badge.styles.js +8 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +23 -0
- package/dist/components/breadcrumb/breadcrumb.js +20 -0
- package/dist/components/breadcrumb/breadcrumb.styles.d.ts +2 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +30 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js +12 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +8 -0
- package/dist/components/button/button.d.ts +120 -0
- package/dist/components/button/button.js +24 -0
- package/dist/components/button/button.styles.d.ts +2 -0
- package/dist/components/button/button.styles.js +8 -0
- package/dist/components/card/card.d.ts +22 -0
- package/dist/components/card/card.js +11 -0
- package/dist/components/card/card.styles.d.ts +2 -0
- package/dist/components/card/card.styles.js +8 -0
- package/dist/components/checkbox/checkbox.d.ts +93 -0
- package/dist/components/checkbox/checkbox.js +24 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.styles.js +9 -0
- package/dist/components/checkbox-button/checkbox-button.d.ts +48 -0
- package/dist/components/checkbox-button/checkbox-button.js +21 -0
- package/dist/components/checkbox-button/checkbox-button.styles.d.ts +2 -0
- package/dist/components/checkbox-button/checkbox-button.styles.js +9 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +85 -0
- package/dist/components/checkbox-group/checkbox-group.js +16 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.styles.js +9 -0
- package/dist/components/dialog/dialog.d.ts +70 -0
- package/dist/components/dialog/dialog.js +28 -0
- package/dist/components/dialog/dialog.styles.d.ts +2 -0
- package/dist/components/dialog/dialog.styles.js +8 -0
- package/dist/components/divider/divider.d.ts +17 -0
- package/dist/components/divider/divider.js +10 -0
- package/dist/components/divider/divider.styles.d.ts +2 -0
- package/dist/components/divider/divider.styles.js +8 -0
- package/dist/components/drawer/drawer.d.ts +77 -0
- package/dist/components/drawer/drawer.js +28 -0
- package/dist/components/drawer/drawer.styles.d.ts +2 -0
- package/dist/components/drawer/drawer.styles.js +8 -0
- package/dist/components/dropdown/dropdown.d.ts +87 -0
- package/dist/components/dropdown/dropdown.js +15 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +2 -0
- package/dist/components/dropdown/dropdown.styles.js +8 -0
- package/dist/components/error-text/error-text.d.ts +18 -0
- package/dist/components/error-text/error-text.js +9 -0
- package/dist/components/error-text/error-text.styles.d.ts +2 -0
- package/dist/components/error-text/error-text.styles.js +7 -0
- package/dist/components/format-bytes/format-bytes.d.ts +22 -0
- package/dist/components/format-bytes/format-bytes.js +9 -0
- package/dist/components/format-date/format-date.d.ts +42 -0
- package/dist/components/format-date/format-date.js +9 -0
- package/dist/components/format-number/format-number.d.ts +36 -0
- package/dist/components/format-number/format-number.js +9 -0
- package/dist/components/icon/icon.d.ts +40 -0
- package/dist/components/icon/icon.js +17 -0
- package/dist/components/icon/icon.styles.d.ts +2 -0
- package/dist/components/icon/icon.styles.js +8 -0
- package/dist/components/icon/library.d.ts +21 -0
- package/dist/components/icon/library.default.d.ts +3 -0
- package/dist/components/icon/library.default.js +8 -0
- package/dist/components/icon/library.js +18 -0
- package/dist/components/icon/library.system.d.ts +3 -0
- package/dist/components/icon/library.system.js +7 -0
- package/dist/components/icon/request.d.ts +11 -0
- package/dist/components/icon/request.js +8 -0
- package/dist/components/icon-button/icon-button.d.ts +59 -0
- package/dist/components/icon-button/icon-button.js +19 -0
- package/dist/components/icon-button/icon-button.styles.d.ts +2 -0
- package/dist/components/icon-button/icon-button.styles.js +8 -0
- package/dist/components/include/include.d.ts +32 -0
- package/dist/components/include/include.js +12 -0
- package/dist/components/include/include.styles.d.ts +2 -0
- package/dist/components/include/include.styles.js +8 -0
- package/dist/components/include/request.d.ts +8 -0
- package/dist/components/include/request.js +7 -0
- package/dist/components/input/input.d.ts +165 -0
- package/dist/components/input/input.js +27 -0
- package/dist/components/input/input.styles.d.ts +2 -0
- package/dist/components/input/input.styles.js +9 -0
- package/dist/components/input/input.utils.d.ts +4 -0
- package/dist/components/input/input.utils.js +9 -0
- package/dist/components/input-mask/input-mask.configs.d.ts +42 -0
- package/dist/components/input-mask/input-mask.configs.js +11 -0
- package/dist/components/input-mask/input-mask.d.ts +127 -0
- package/dist/components/input-mask/input-mask.js +19 -0
- package/dist/components/input-mask/input-mask.styles.d.ts +2 -0
- package/dist/components/input-mask/input-mask.styles.js +9 -0
- package/dist/components/input-mask/input-mask.utils.d.ts +7 -0
- package/dist/components/input-mask/input-mask.utils.js +19 -0
- package/dist/components/input-phone/input-phone.configs.d.ts +14 -0
- package/dist/components/input-phone/input-phone.configs.js +7 -0
- package/dist/components/input-phone/input-phone.d.ts +138 -0
- package/dist/components/input-phone/input-phone.js +49 -0
- package/dist/components/input-phone/input-phone.styles.d.ts +2 -0
- package/dist/components/input-phone/input-phone.styles.js +9 -0
- package/dist/components/input-phone/input-phone.utils.d.ts +9 -0
- package/dist/components/input-phone/input-phone.utils.js +13 -0
- package/dist/components/menu/menu.d.ts +43 -0
- package/dist/components/menu/menu.js +10 -0
- package/dist/components/menu/menu.styles.d.ts +2 -0
- package/dist/components/menu/menu.styles.js +8 -0
- package/dist/components/menu-item/menu-item.d.ts +44 -0
- package/dist/components/menu-item/menu-item.js +20 -0
- package/dist/components/menu-item/menu-item.styles.d.ts +2 -0
- package/dist/components/menu-item/menu-item.styles.js +8 -0
- package/dist/components/menu-label/menu-label.d.ts +17 -0
- package/dist/components/menu-label/menu-label.js +10 -0
- package/dist/components/menu-label/menu-label.styles.d.ts +2 -0
- package/dist/components/menu-label/menu-label.styles.js +8 -0
- package/dist/components/mutation-observer/mutation-observer.d.ts +44 -0
- package/dist/components/mutation-observer/mutation-observer.js +11 -0
- package/dist/components/mutation-observer/mutation-observer.styles.d.ts +2 -0
- package/dist/components/mutation-observer/mutation-observer.styles.js +8 -0
- package/dist/components/option/option.d.ts +50 -0
- package/dist/components/option/option.js +20 -0
- package/dist/components/option/option.styles.d.ts +2 -0
- package/dist/components/option/option.styles.js +8 -0
- package/dist/components/popup/popup.d.ts +123 -0
- package/dist/components/popup/popup.js +10 -0
- package/dist/components/popup/popup.styles.d.ts +2 -0
- package/dist/components/popup/popup.styles.js +8 -0
- package/dist/components/progress-bar/progress-bar.d.ts +23 -0
- package/dist/components/progress-bar/progress-bar.js +11 -0
- package/dist/components/progress-bar/progress-bar.styles.d.ts +2 -0
- package/dist/components/progress-bar/progress-bar.styles.js +8 -0
- package/dist/components/progress-ring/progress-ring.d.ts +25 -0
- package/dist/components/progress-ring/progress-ring.js +11 -0
- package/dist/components/progress-ring/progress-ring.styles.d.ts +2 -0
- package/dist/components/progress-ring/progress-ring.styles.js +8 -0
- package/dist/components/radio/radio.d.ts +46 -0
- package/dist/components/radio/radio.js +19 -0
- package/dist/components/radio/radio.styles.d.ts +2 -0
- package/dist/components/radio/radio.styles.js +8 -0
- package/dist/components/radio-button/radio-button.d.ts +47 -0
- package/dist/components/radio-button/radio-button.js +13 -0
- package/dist/components/radio-button/radio-button.styles.d.ts +2 -0
- package/dist/components/radio-button/radio-button.styles.js +9 -0
- package/dist/components/radio-group/radio-group.d.ts +91 -0
- package/dist/components/radio-group/radio-group.js +16 -0
- package/dist/components/radio-group/radio-group.styles.d.ts +2 -0
- package/dist/components/radio-group/radio-group.styles.js +9 -0
- package/dist/components/relative-time/relative-time.d.ts +34 -0
- package/dist/components/relative-time/relative-time.js +9 -0
- package/dist/components/resize-observer/resize-observer.d.ts +31 -0
- package/dist/components/resize-observer/resize-observer.js +11 -0
- package/dist/components/resize-observer/resize-observer.styles.d.ts +2 -0
- package/dist/components/resize-observer/resize-observer.styles.js +8 -0
- package/dist/components/select/select.d.ts +166 -0
- package/dist/components/select/select.js +36 -0
- package/dist/components/select/select.styles.d.ts +2 -0
- package/dist/components/select/select.styles.js +9 -0
- package/dist/components/skeleton/skeleton.d.ts +21 -0
- package/dist/components/skeleton/skeleton.js +10 -0
- package/dist/components/skeleton/skeleton.styles.d.ts +2 -0
- package/dist/components/skeleton/skeleton.styles.js +8 -0
- package/dist/components/spinner/spinner.d.ts +21 -0
- package/dist/components/spinner/spinner.js +11 -0
- package/dist/components/spinner/spinner.styles.d.ts +2 -0
- package/dist/components/spinner/spinner.styles.js +8 -0
- package/dist/components/tab/tab.d.ts +44 -0
- package/dist/components/tab/tab.js +12 -0
- package/dist/components/tab/tab.styles.d.ts +2 -0
- package/dist/components/tab/tab.styles.js +8 -0
- package/dist/components/tab-group/tab-group.d.ts +61 -0
- package/dist/components/tab-group/tab-group.js +13 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +2 -0
- package/dist/components/tab-group/tab-group.styles.js +8 -0
- package/dist/components/tab-panel/tab-panel.d.ts +25 -0
- package/dist/components/tab-panel/tab-panel.js +11 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.styles.js +8 -0
- package/dist/components/tag/tag.d.ts +34 -0
- package/dist/components/tag/tag.js +22 -0
- package/dist/components/tag/tag.styles.d.ts +2 -0
- package/dist/components/tag/tag.styles.js +8 -0
- package/dist/components/textarea/textarea.d.ts +137 -0
- package/dist/components/textarea/textarea.js +17 -0
- package/dist/components/textarea/textarea.styles.d.ts +2 -0
- package/dist/components/textarea/textarea.styles.js +9 -0
- package/dist/components/tooltip/tooltip.d.ts +80 -0
- package/dist/components/tooltip/tooltip.js +17 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +2 -0
- package/dist/components/tooltip/tooltip.styles.js +8 -0
- package/dist/components/tree/tree.d.ts +53 -0
- package/dist/components/tree/tree.js +33 -0
- package/dist/components/tree/tree.styles.d.ts +2 -0
- package/dist/components/tree/tree.styles.js +8 -0
- package/dist/components/tree-item/tree-item.d.ts +69 -0
- package/dist/components/tree-item/tree-item.js +31 -0
- package/dist/components/tree-item/tree-item.styles.d.ts +2 -0
- package/dist/components/tree-item/tree-item.styles.js +8 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +17 -0
- package/dist/components/visually-hidden/visually-hidden.js +10 -0
- package/dist/components/visually-hidden/visually-hidden.styles.d.ts +2 -0
- package/dist/components/visually-hidden/visually-hidden.styles.js +8 -0
- package/dist/custom-elements.json +14628 -0
- package/dist/design-system-autoloader.d.ts +4 -0
- package/dist/design-system-autoloader.js +46 -0
- package/dist/design-system.d.ts +58 -0
- package/dist/design-system.js +309 -0
- package/dist/events/dsa-after-collapse.d.ts +7 -0
- package/dist/events/dsa-after-collapse.js +1 -0
- package/dist/events/dsa-after-expand.d.ts +7 -0
- package/dist/events/dsa-after-expand.js +1 -0
- package/dist/events/dsa-after-hide.d.ts +7 -0
- package/dist/events/dsa-after-hide.js +1 -0
- package/dist/events/dsa-after-show.d.ts +7 -0
- package/dist/events/dsa-after-show.js +1 -0
- package/dist/events/dsa-blur.d.ts +7 -0
- package/dist/events/dsa-blur.js +1 -0
- package/dist/events/dsa-cancel.d.ts +7 -0
- package/dist/events/dsa-cancel.js +1 -0
- package/dist/events/dsa-change.d.ts +7 -0
- package/dist/events/dsa-change.js +1 -0
- package/dist/events/dsa-clear.d.ts +7 -0
- package/dist/events/dsa-clear.js +1 -0
- package/dist/events/dsa-close.d.ts +7 -0
- package/dist/events/dsa-close.js +1 -0
- package/dist/events/dsa-collapse.d.ts +7 -0
- package/dist/events/dsa-collapse.js +1 -0
- package/dist/events/dsa-error.d.ts +9 -0
- package/dist/events/dsa-error.js +1 -0
- package/dist/events/dsa-expand.d.ts +7 -0
- package/dist/events/dsa-expand.js +1 -0
- package/dist/events/dsa-finish.d.ts +7 -0
- package/dist/events/dsa-finish.js +1 -0
- package/dist/events/dsa-focus.d.ts +7 -0
- package/dist/events/dsa-focus.js +1 -0
- package/dist/events/dsa-hide.d.ts +7 -0
- package/dist/events/dsa-hide.js +1 -0
- package/dist/events/dsa-hover.d.ts +10 -0
- package/dist/events/dsa-hover.js +1 -0
- package/dist/events/dsa-initial-focus.d.ts +7 -0
- package/dist/events/dsa-initial-focus.js +1 -0
- package/dist/events/dsa-input.d.ts +7 -0
- package/dist/events/dsa-input.js +1 -0
- package/dist/events/dsa-invalid.d.ts +7 -0
- package/dist/events/dsa-invalid.js +1 -0
- package/dist/events/dsa-lazy-change.d.ts +7 -0
- package/dist/events/dsa-lazy-change.js +1 -0
- package/dist/events/dsa-lazy-load.d.ts +7 -0
- package/dist/events/dsa-lazy-load.js +1 -0
- package/dist/events/dsa-load.d.ts +7 -0
- package/dist/events/dsa-load.js +1 -0
- package/dist/events/dsa-mutation.d.ts +9 -0
- package/dist/events/dsa-mutation.js +1 -0
- package/dist/events/dsa-remove.d.ts +7 -0
- package/dist/events/dsa-remove.js +1 -0
- package/dist/events/dsa-reposition.d.ts +7 -0
- package/dist/events/dsa-reposition.js +1 -0
- package/dist/events/dsa-request-close.d.ts +9 -0
- package/dist/events/dsa-request-close.js +1 -0
- package/dist/events/dsa-resize.d.ts +9 -0
- package/dist/events/dsa-resize.js +1 -0
- package/dist/events/dsa-select.d.ts +10 -0
- package/dist/events/dsa-select.js +1 -0
- package/dist/events/dsa-selection-change.d.ts +10 -0
- package/dist/events/dsa-selection-change.js +1 -0
- package/dist/events/dsa-show.d.ts +7 -0
- package/dist/events/dsa-show.js +1 -0
- package/dist/events/dsa-start.d.ts +7 -0
- package/dist/events/dsa-start.js +1 -0
- package/dist/events/dsa-tab-hide.d.ts +9 -0
- package/dist/events/dsa-tab-hide.js +1 -0
- package/dist/events/dsa-tab-show.d.ts +9 -0
- package/dist/events/dsa-tab-show.js +1 -0
- package/dist/events/events.d.ts +32 -0
- package/dist/events/events.js +1 -0
- package/dist/internal/animate.d.ts +22 -0
- package/dist/internal/animate.js +56 -0
- package/dist/internal/components/button-group/button-group.d.ts +34 -0
- package/dist/internal/components/button-group/button-group.js +110 -0
- package/dist/internal/components/button-group/button-group.styles.d.ts +2 -0
- package/dist/internal/components/button-group/button-group.styles.js +19 -0
- package/dist/internal/debounce.d.ts +1 -0
- package/dist/internal/debounce.js +26 -0
- package/dist/internal/default-value.d.ts +2 -0
- package/dist/internal/default-value.js +38 -0
- package/dist/internal/drag.d.ts +15 -0
- package/dist/internal/drag.js +27 -0
- package/dist/internal/event.d.ts +2 -0
- package/dist/internal/event.js +12 -0
- package/dist/internal/form.d.ts +73 -0
- package/dist/internal/form.js +328 -0
- package/dist/internal/math.d.ts +2 -0
- package/dist/internal/math.js +11 -0
- package/dist/internal/modal.d.ts +12 -0
- package/dist/internal/modal.js +51 -0
- package/dist/internal/offset.d.ts +11 -0
- package/dist/internal/offset.js +13 -0
- package/dist/internal/scroll.d.ts +11 -0
- package/dist/internal/scroll.js +63 -0
- package/dist/internal/shoelace-element.d.ts +43 -0
- package/dist/internal/shoelace-element.js +21 -0
- package/dist/internal/slot.d.ts +23 -0
- package/dist/internal/slot.js +84 -0
- package/dist/internal/string.d.ts +2 -0
- package/dist/internal/string.js +4 -0
- package/dist/internal/tabbable.d.ts +8 -0
- package/dist/internal/tabbable.js +79 -0
- package/dist/internal/test/data-testid-helpers.d.ts +12 -0
- package/dist/internal/test/data-testid-helpers.js +14 -0
- package/dist/internal/test/element-visible-overflow.d.ts +11 -0
- package/dist/internal/test/element-visible-overflow.js +18 -0
- package/dist/internal/test/form-control-base-tests.d.ts +7 -0
- package/dist/internal/test/form-control-base-tests.js +262 -0
- package/dist/internal/test/wait-for-scrolling.d.ts +9 -0
- package/dist/internal/test/wait-for-scrolling.js +34 -0
- package/dist/internal/test.d.ts +20 -0
- package/dist/internal/test.js +71 -0
- package/dist/internal/watch.d.ts +26 -0
- package/dist/internal/watch.js +38 -0
- package/dist/styles/component.styles.d.ts +2 -0
- package/dist/styles/component.styles.js +16 -0
- package/dist/styles/form-control.styles.d.ts +2 -0
- package/dist/styles/form-control.styles.js +142 -0
- package/dist/themes/dsa-wc-theme.css +1218 -0
- package/dist/themes/dsa-wc-theme.min.css +1 -0
- package/dist/themes/dsa-wc-theme.styles.js +1229 -0
- package/dist/translations/en-gb.d.ts +3 -0
- package/dist/translations/en-gb.js +21 -0
- package/dist/translations/en.d.ts +3 -0
- package/dist/translations/en.js +7 -0
- package/dist/translations/fr.d.ts +3 -0
- package/dist/translations/fr.js +7 -0
- package/dist/utilities/animation-registry.d.ts +24 -0
- package/dist/utilities/animation-registry.js +11 -0
- package/dist/utilities/animation.d.ts +1 -0
- package/dist/utilities/animation.js +10 -0
- package/dist/utilities/base-path.d.ts +18 -0
- package/dist/utilities/base-path.js +9 -0
- package/dist/utilities/form.d.ts +11 -0
- package/dist/utilities/form.js +43 -0
- package/dist/utilities/icon-library.d.ts +1 -0
- package/dist/utilities/icon-library.js +13 -0
- package/dist/utilities/localize.d.ts +39 -0
- package/dist/utilities/localize.js +9 -0
- package/dist/utilities/storybook.d.ts +46 -0
- package/dist/utilities/storybook.js +54 -0
- package/dist/vscode.html-custom-data.json +2392 -0
- package/dist/web-types.json +8687 -0
- package/package.json +109 -0
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import {
|
|
2
|
+
input_mask_styles_default
|
|
3
|
+
} from "./chunk.O73OYTYJ.js";
|
|
4
|
+
import {
|
|
5
|
+
getMaskedValue,
|
|
6
|
+
stripSpecialChars
|
|
7
|
+
} from "./chunk.SQMWMSBA.js";
|
|
8
|
+
import {
|
|
9
|
+
defaultValue
|
|
10
|
+
} from "./chunk.GI7VDIWX.js";
|
|
11
|
+
import {
|
|
12
|
+
FormControlController
|
|
13
|
+
} from "./chunk.KIFBWPW5.js";
|
|
14
|
+
import {
|
|
15
|
+
HasSlotController
|
|
16
|
+
} from "./chunk.YIY5RM53.js";
|
|
17
|
+
import {
|
|
18
|
+
LocalizeController
|
|
19
|
+
} from "./chunk.5XL2LZLC.js";
|
|
20
|
+
import {
|
|
21
|
+
watch
|
|
22
|
+
} from "./chunk.D7CATJYB.js";
|
|
23
|
+
import {
|
|
24
|
+
ShoelaceElement
|
|
25
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
26
|
+
import {
|
|
27
|
+
__decorateClass
|
|
28
|
+
} from "./chunk.6M63UXML.js";
|
|
29
|
+
|
|
30
|
+
// src/components/input-mask/input-mask.ts
|
|
31
|
+
import { html } from "lit";
|
|
32
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
33
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
34
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
35
|
+
import { live } from "lit/directives/live.js";
|
|
36
|
+
var DSAInputMask = class extends ShoelaceElement {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.formControlController = new FormControlController(this, {
|
|
40
|
+
assumeInteractionOn: ["dsa-blur", "dsa-input"]
|
|
41
|
+
});
|
|
42
|
+
this.hasSlotController = new HasSlotController(
|
|
43
|
+
this,
|
|
44
|
+
"help-text",
|
|
45
|
+
"label",
|
|
46
|
+
"prefix"
|
|
47
|
+
);
|
|
48
|
+
this.localize = new LocalizeController(this);
|
|
49
|
+
this.hasFocus = false;
|
|
50
|
+
this.title = "";
|
|
51
|
+
this.name = "";
|
|
52
|
+
this.value = "";
|
|
53
|
+
this.defaultValue = "";
|
|
54
|
+
this.size = "medium";
|
|
55
|
+
this.variant = "base";
|
|
56
|
+
this.label = "";
|
|
57
|
+
this.helpText = "";
|
|
58
|
+
this.clearable = false;
|
|
59
|
+
this.disabled = false;
|
|
60
|
+
this.placeholder = "";
|
|
61
|
+
this.readonly = false;
|
|
62
|
+
this.validate = false;
|
|
63
|
+
this.error = false;
|
|
64
|
+
this.errorMessage = "";
|
|
65
|
+
this.form = "";
|
|
66
|
+
this.required = false;
|
|
67
|
+
}
|
|
68
|
+
/** Gets the validity state object */
|
|
69
|
+
get validity() {
|
|
70
|
+
if (this.validate) {
|
|
71
|
+
if (this.value.length > 0) {
|
|
72
|
+
const strippedValue = stripSpecialChars(this.value);
|
|
73
|
+
const matches = strippedValue.match(this.pattern);
|
|
74
|
+
this.error = matches === null;
|
|
75
|
+
} else {
|
|
76
|
+
this.error = false;
|
|
77
|
+
}
|
|
78
|
+
const validityState = {
|
|
79
|
+
badInput: false,
|
|
80
|
+
customError: false,
|
|
81
|
+
patternMismatch: this.error,
|
|
82
|
+
rangeOverflow: false,
|
|
83
|
+
rangeUnderflow: false,
|
|
84
|
+
stepMismatch: false,
|
|
85
|
+
tooLong: false,
|
|
86
|
+
tooShort: false,
|
|
87
|
+
typeMismatch: false,
|
|
88
|
+
valid: !this.error,
|
|
89
|
+
valueMissing: false
|
|
90
|
+
};
|
|
91
|
+
return validityState;
|
|
92
|
+
}
|
|
93
|
+
return this.input.validity;
|
|
94
|
+
}
|
|
95
|
+
/** Gets the validation message */
|
|
96
|
+
get validationMessage() {
|
|
97
|
+
return this.input.validationMessage;
|
|
98
|
+
}
|
|
99
|
+
firstUpdated() {
|
|
100
|
+
this.formControlController.updateValidity();
|
|
101
|
+
}
|
|
102
|
+
handleBlur() {
|
|
103
|
+
this.hasFocus = false;
|
|
104
|
+
this.emit("dsa-blur");
|
|
105
|
+
}
|
|
106
|
+
handleChange() {
|
|
107
|
+
const strippedValue = stripSpecialChars(this.input.value);
|
|
108
|
+
this.value = strippedValue;
|
|
109
|
+
this.emit("dsa-change");
|
|
110
|
+
}
|
|
111
|
+
getMaskedValue(inputValue) {
|
|
112
|
+
return getMaskedValue(inputValue, this.placeholder);
|
|
113
|
+
}
|
|
114
|
+
handleClearClick(event) {
|
|
115
|
+
this.value = "";
|
|
116
|
+
this.emit("dsa-clear");
|
|
117
|
+
this.emit("dsa-input");
|
|
118
|
+
this.emit("dsa-change");
|
|
119
|
+
this.input.focus();
|
|
120
|
+
event.stopPropagation();
|
|
121
|
+
}
|
|
122
|
+
handleFocus() {
|
|
123
|
+
this.hasFocus = true;
|
|
124
|
+
this.emit("dsa-focus");
|
|
125
|
+
}
|
|
126
|
+
handleInput() {
|
|
127
|
+
const strippedValue = stripSpecialChars(this.input.value);
|
|
128
|
+
this.value = strippedValue;
|
|
129
|
+
this.formControlController.updateValidity();
|
|
130
|
+
this.emit("dsa-input");
|
|
131
|
+
}
|
|
132
|
+
handleInvalid(event) {
|
|
133
|
+
this.formControlController.setValidity(false);
|
|
134
|
+
this.formControlController.emitInvalidEvent(event);
|
|
135
|
+
}
|
|
136
|
+
handleKeyDown(event) {
|
|
137
|
+
const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
138
|
+
if (event.key === "Enter" && !hasModifier) {
|
|
139
|
+
setTimeout(() => {
|
|
140
|
+
if (!event.defaultPrevented && !event.isComposing) {
|
|
141
|
+
this.formControlController.submit();
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
handleDisabledChange() {
|
|
147
|
+
this.formControlController.setValidity(this.disabled);
|
|
148
|
+
}
|
|
149
|
+
async handleValueChange() {
|
|
150
|
+
await this.updateComplete;
|
|
151
|
+
this.formControlController.updateValidity();
|
|
152
|
+
}
|
|
153
|
+
handleErrorChange() {
|
|
154
|
+
if (this.error) {
|
|
155
|
+
this.setAttribute("aria-invalid", "true");
|
|
156
|
+
} else {
|
|
157
|
+
this.removeAttribute("aria-invalid");
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
/** Sets focus on the input. */
|
|
161
|
+
focus(options) {
|
|
162
|
+
this.input.focus(options);
|
|
163
|
+
}
|
|
164
|
+
/** Removes focus from the input. */
|
|
165
|
+
blur() {
|
|
166
|
+
this.input.blur();
|
|
167
|
+
}
|
|
168
|
+
/** Selects all the text in the input. */
|
|
169
|
+
select() {
|
|
170
|
+
this.input.select();
|
|
171
|
+
}
|
|
172
|
+
/** Sets the start and end positions of the text selection (0-based). */
|
|
173
|
+
setSelectionRange(selectionStart, selectionEnd, selectionDirection = "none") {
|
|
174
|
+
this.input.setSelectionRange(
|
|
175
|
+
selectionStart,
|
|
176
|
+
selectionEnd,
|
|
177
|
+
selectionDirection
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
/** Replaces a range of text with a new string. */
|
|
181
|
+
setRangeText(replacement, start, end, selectMode) {
|
|
182
|
+
this.input.setRangeText(replacement, start, end, selectMode);
|
|
183
|
+
if (this.value !== this.input.value) {
|
|
184
|
+
this.value = this.input.value;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
188
|
+
checkValidity() {
|
|
189
|
+
return this.input.checkValidity();
|
|
190
|
+
}
|
|
191
|
+
/** Gets the associated form, if one exists. */
|
|
192
|
+
getForm() {
|
|
193
|
+
return this.formControlController.getForm();
|
|
194
|
+
}
|
|
195
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
196
|
+
reportValidity() {
|
|
197
|
+
return this.input.reportValidity();
|
|
198
|
+
}
|
|
199
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
200
|
+
setCustomValidity(message) {
|
|
201
|
+
if (this.validate) {
|
|
202
|
+
this.input.setCustomValidity(this.error ? this.errorMessage : "");
|
|
203
|
+
} else {
|
|
204
|
+
this.input.setCustomValidity(message);
|
|
205
|
+
}
|
|
206
|
+
this.formControlController.updateValidity();
|
|
207
|
+
}
|
|
208
|
+
render() {
|
|
209
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
210
|
+
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
211
|
+
const hasPrefixIcon = this.hasSlotController.test("prefix");
|
|
212
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
213
|
+
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
214
|
+
const hasClearIcon = this.clearable && !this.disabled && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
|
215
|
+
const maskedValue = this.getMaskedValue(this.value);
|
|
216
|
+
const placeholder = this.placeholder.substring(maskedValue.length);
|
|
217
|
+
return html`
|
|
218
|
+
<div
|
|
219
|
+
part="form-control"
|
|
220
|
+
class=${classMap({
|
|
221
|
+
"form-control": true,
|
|
222
|
+
"form-control--error": this.error,
|
|
223
|
+
"form-control--small": this.size === "small",
|
|
224
|
+
"form-control--medium": this.size === "medium",
|
|
225
|
+
"form-control--large": this.size === "large",
|
|
226
|
+
"form-control--has-label": hasLabel,
|
|
227
|
+
"form-control--has-help-text": hasHelpText
|
|
228
|
+
})}
|
|
229
|
+
>
|
|
230
|
+
<label
|
|
231
|
+
part="form-control-label"
|
|
232
|
+
class='form-control__label'
|
|
233
|
+
for="input-mask"
|
|
234
|
+
aria-hidden=${hasLabel ? "false" : "true"}
|
|
235
|
+
|
|
236
|
+
>
|
|
237
|
+
${this.required ? html`<span class="form-control__label-required">*</span>` : ""}
|
|
238
|
+
<slot name="label">${this.label}</slot>
|
|
239
|
+
</label>
|
|
240
|
+
<slot name="tooltip" class="form-control__tooltip"></slot>
|
|
241
|
+
|
|
242
|
+
<div part="form-control-input" class="form-control-input form-control__field">
|
|
243
|
+
<div
|
|
244
|
+
part="base"
|
|
245
|
+
class=${classMap({
|
|
246
|
+
"input-mask": true,
|
|
247
|
+
// Sizes
|
|
248
|
+
"input-mask--small": this.size === "small",
|
|
249
|
+
"input-mask--medium": this.size === "medium",
|
|
250
|
+
"input-mask--large": this.size === "large",
|
|
251
|
+
// States
|
|
252
|
+
"input-mask--error": this.error,
|
|
253
|
+
"input-mask--on-layer": this.variant === "layer",
|
|
254
|
+
"input-mask--on-base": this.variant === "base",
|
|
255
|
+
"input-mask--disabled": this.disabled,
|
|
256
|
+
"input-mask--readonly": this.readonly,
|
|
257
|
+
"input-mask--focused": this.hasFocus,
|
|
258
|
+
"input-mask--empty": !this.value
|
|
259
|
+
})}
|
|
260
|
+
>
|
|
261
|
+
<slot name="prefix" part="prefix" class="input-mask__prefix"></slot>
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
<div class=${classMap({
|
|
265
|
+
"input-mask__placeholder": true
|
|
266
|
+
})} aria-placeholder=${placeholder} aria-hidden="true"
|
|
267
|
+
>
|
|
268
|
+
<span class="input-mask__value" aria-hidden="true">${maskedValue}</span>
|
|
269
|
+
${placeholder}</div
|
|
270
|
+
>
|
|
271
|
+
|
|
272
|
+
<input
|
|
273
|
+
part="input"
|
|
274
|
+
id="input-mask"
|
|
275
|
+
class=${classMap({
|
|
276
|
+
"input-mask__control": true,
|
|
277
|
+
"input-mask__control-with-prefix": hasPrefixIcon
|
|
278
|
+
})}
|
|
279
|
+
type="text"
|
|
280
|
+
title=${hasLabel ? void 0 : this.title}
|
|
281
|
+
name=${ifDefined(this.name)}
|
|
282
|
+
?disabled=${this.disabled}
|
|
283
|
+
?readonly=${this.readonly}
|
|
284
|
+
?required=${this.required}
|
|
285
|
+
minlength=${ifDefined(this.minlength)}
|
|
286
|
+
maxlength=${ifDefined(this.placeholder.length)}
|
|
287
|
+
size=${ifDefined(this.placeholder.length)}
|
|
288
|
+
pattern=${ifDefined(this.pattern)}
|
|
289
|
+
placeholder=${ifDefined(this.placeholder)}
|
|
290
|
+
.value=${live(maskedValue)}
|
|
291
|
+
autocomplete=${ifDefined(this.autocomplete)}
|
|
292
|
+
autocorrect=${ifDefined(this.autocorrect)}
|
|
293
|
+
?autofocus=${this.autofocus}
|
|
294
|
+
spellcheck=${this.spellcheck}
|
|
295
|
+
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
296
|
+
inputmode=${this.inputmode}
|
|
297
|
+
aria-label=${hasLabel ? void 0 : this.title}
|
|
298
|
+
aria-describedby=${this.error ? "error-text help-text" : "help-text"}
|
|
299
|
+
@change=${this.handleChange}
|
|
300
|
+
@input=${this.handleInput}
|
|
301
|
+
@invalid=${this.handleInvalid}
|
|
302
|
+
@keydown=${this.handleKeyDown}
|
|
303
|
+
@focus=${this.handleFocus}
|
|
304
|
+
@blur=${this.handleBlur}
|
|
305
|
+
/>
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
${hasClearIcon ? html`
|
|
310
|
+
<button
|
|
311
|
+
part="clear-button"
|
|
312
|
+
class="input-mask__clear"
|
|
313
|
+
type="button"
|
|
314
|
+
aria-label=${this.localize.term("clearEntry")}
|
|
315
|
+
@click=${this.handleClearClick}
|
|
316
|
+
tabindex="-1"
|
|
317
|
+
>
|
|
318
|
+
<slot name="clear-icon">
|
|
319
|
+
<dsa-icon name="close"></dsa-icon>
|
|
320
|
+
</slot>
|
|
321
|
+
</button>
|
|
322
|
+
` : ""}
|
|
323
|
+
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
<slot
|
|
328
|
+
name="help-text"
|
|
329
|
+
part="form-control-help-text"
|
|
330
|
+
id="help-text"
|
|
331
|
+
class="form-control__help-text"
|
|
332
|
+
aria-hidden=${hasHelpText ? "false" : "true"}
|
|
333
|
+
>
|
|
334
|
+
${this.helpText}
|
|
335
|
+
</slot>
|
|
336
|
+
|
|
337
|
+
${this.error && !this.disabled ? html`<dsa-error-text
|
|
338
|
+
id="error-text"
|
|
339
|
+
class="form-control__error-text"
|
|
340
|
+
>${this.errorMessage}</dsa-error-text
|
|
341
|
+
>` : ""}
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
`;
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
DSAInputMask.styles = input_mask_styles_default;
|
|
348
|
+
__decorateClass([
|
|
349
|
+
query(".input-mask__control")
|
|
350
|
+
], DSAInputMask.prototype, "input", 2);
|
|
351
|
+
__decorateClass([
|
|
352
|
+
state()
|
|
353
|
+
], DSAInputMask.prototype, "hasFocus", 2);
|
|
354
|
+
__decorateClass([
|
|
355
|
+
property()
|
|
356
|
+
], DSAInputMask.prototype, "title", 2);
|
|
357
|
+
__decorateClass([
|
|
358
|
+
property()
|
|
359
|
+
], DSAInputMask.prototype, "name", 2);
|
|
360
|
+
__decorateClass([
|
|
361
|
+
property()
|
|
362
|
+
], DSAInputMask.prototype, "value", 2);
|
|
363
|
+
__decorateClass([
|
|
364
|
+
defaultValue()
|
|
365
|
+
], DSAInputMask.prototype, "defaultValue", 2);
|
|
366
|
+
__decorateClass([
|
|
367
|
+
property({ reflect: true })
|
|
368
|
+
], DSAInputMask.prototype, "size", 2);
|
|
369
|
+
__decorateClass([
|
|
370
|
+
property({ reflect: true })
|
|
371
|
+
], DSAInputMask.prototype, "variant", 2);
|
|
372
|
+
__decorateClass([
|
|
373
|
+
property()
|
|
374
|
+
], DSAInputMask.prototype, "label", 2);
|
|
375
|
+
__decorateClass([
|
|
376
|
+
property({ attribute: "help-text" })
|
|
377
|
+
], DSAInputMask.prototype, "helpText", 2);
|
|
378
|
+
__decorateClass([
|
|
379
|
+
property({ type: Boolean })
|
|
380
|
+
], DSAInputMask.prototype, "clearable", 2);
|
|
381
|
+
__decorateClass([
|
|
382
|
+
property({ type: Boolean, reflect: true })
|
|
383
|
+
], DSAInputMask.prototype, "disabled", 2);
|
|
384
|
+
__decorateClass([
|
|
385
|
+
property()
|
|
386
|
+
], DSAInputMask.prototype, "placeholder", 2);
|
|
387
|
+
__decorateClass([
|
|
388
|
+
property({ type: Boolean, reflect: true })
|
|
389
|
+
], DSAInputMask.prototype, "readonly", 2);
|
|
390
|
+
__decorateClass([
|
|
391
|
+
property({ type: Boolean, reflect: true })
|
|
392
|
+
], DSAInputMask.prototype, "validate", 2);
|
|
393
|
+
__decorateClass([
|
|
394
|
+
property({ type: Boolean, reflect: true })
|
|
395
|
+
], DSAInputMask.prototype, "error", 2);
|
|
396
|
+
__decorateClass([
|
|
397
|
+
property({ attribute: "error-message" })
|
|
398
|
+
], DSAInputMask.prototype, "errorMessage", 2);
|
|
399
|
+
__decorateClass([
|
|
400
|
+
property()
|
|
401
|
+
], DSAInputMask.prototype, "inputmode", 2);
|
|
402
|
+
__decorateClass([
|
|
403
|
+
property({ reflect: true })
|
|
404
|
+
], DSAInputMask.prototype, "form", 2);
|
|
405
|
+
__decorateClass([
|
|
406
|
+
property({ type: Boolean, reflect: true })
|
|
407
|
+
], DSAInputMask.prototype, "required", 2);
|
|
408
|
+
__decorateClass([
|
|
409
|
+
property()
|
|
410
|
+
], DSAInputMask.prototype, "pattern", 2);
|
|
411
|
+
__decorateClass([
|
|
412
|
+
property({ type: Number })
|
|
413
|
+
], DSAInputMask.prototype, "minlength", 2);
|
|
414
|
+
__decorateClass([
|
|
415
|
+
property()
|
|
416
|
+
], DSAInputMask.prototype, "autocorrect", 2);
|
|
417
|
+
__decorateClass([
|
|
418
|
+
property()
|
|
419
|
+
], DSAInputMask.prototype, "autocomplete", 2);
|
|
420
|
+
__decorateClass([
|
|
421
|
+
property({ type: Boolean })
|
|
422
|
+
], DSAInputMask.prototype, "autofocus", 2);
|
|
423
|
+
__decorateClass([
|
|
424
|
+
property()
|
|
425
|
+
], DSAInputMask.prototype, "enterkeyhint", 2);
|
|
426
|
+
__decorateClass([
|
|
427
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
428
|
+
], DSAInputMask.prototype, "handleDisabledChange", 1);
|
|
429
|
+
__decorateClass([
|
|
430
|
+
watch("value", { waitUntilFirstUpdate: true })
|
|
431
|
+
], DSAInputMask.prototype, "handleValueChange", 1);
|
|
432
|
+
__decorateClass([
|
|
433
|
+
watch("error")
|
|
434
|
+
], DSAInputMask.prototype, "handleErrorChange", 1);
|
|
435
|
+
DSAInputMask = __decorateClass([
|
|
436
|
+
customElement("dsa-input-mask")
|
|
437
|
+
], DSAInputMask);
|
|
438
|
+
|
|
439
|
+
export {
|
|
440
|
+
DSAInputMask
|
|
441
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/dialog/dialog.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var dialog_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
--header-spacing: var(--dsa-wc-dialog-spacing);
|
|
12
|
+
--body-spacing: var(--dsa-wc-dialog-spacing);
|
|
13
|
+
--footer-spacing: var(--dsa-wc-dialog-spacing);
|
|
14
|
+
display: contents;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dialog {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
position: fixed;
|
|
22
|
+
top: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
z-index: var(--dsa-wc-z-index-dialog);
|
|
27
|
+
font: var(--dsa-wc-dialog-font);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dialog__panel {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
z-index: 2;
|
|
34
|
+
width: var(--dsa-wc-dialog-size);
|
|
35
|
+
max-width: calc(100% - var(--dsa-wc-dialog-panel-gutter));
|
|
36
|
+
max-height: calc(100% - var(--dsa-wc-dialog-panel-gutter));
|
|
37
|
+
background-color: var(--dsa-wc-dialog-panel-color);
|
|
38
|
+
border-radius: var(--dsa-wc-dialog-panel-border-radius);
|
|
39
|
+
box-shadow: var(--dsa-wc-dialog-panel-box-shadow);
|
|
40
|
+
}
|
|
41
|
+
.dialog--small .dialog__panel {
|
|
42
|
+
width: var(--dsa-wc-dialog-size-small);
|
|
43
|
+
}
|
|
44
|
+
.dialog--large .dialog__panel {
|
|
45
|
+
width: var(--dsa-wc-dialog-size-large);
|
|
46
|
+
}
|
|
47
|
+
.dialog__panel:focus {
|
|
48
|
+
outline: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
|
|
52
|
+
@media screen and (max-width: 420px) {
|
|
53
|
+
.dialog__panel {
|
|
54
|
+
max-height: 80vh;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.dialog--open .dialog__panel {
|
|
59
|
+
display: flex;
|
|
60
|
+
opacity: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.dialog__header {
|
|
64
|
+
flex: 0 0 auto;
|
|
65
|
+
display: flex;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dialog__title {
|
|
69
|
+
flex: 1 1 auto;
|
|
70
|
+
font: var(--dsa-wc-dialog-header-title-font);
|
|
71
|
+
padding: var(--header-spacing);
|
|
72
|
+
margin: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dialog__header-actions {
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
justify-content: end;
|
|
80
|
+
font: var(--dsa-wc-dialog-header-title-font);
|
|
81
|
+
gap: var(--dsa-wc-dialog-header-actions-gap);
|
|
82
|
+
padding: 0 var(--header-spacing);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dialog__header-actions dsa-icon-button,
|
|
86
|
+
.dialog__header-actions ::slotted(dsa-icon-button) {
|
|
87
|
+
flex: 0 0 auto;
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
font-size: var(--dsa-wc-dialog-header-icon-size);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dialog__body {
|
|
94
|
+
flex: 1 1 auto;
|
|
95
|
+
display: block;
|
|
96
|
+
padding: var(--body-spacing);
|
|
97
|
+
overflow: auto;
|
|
98
|
+
-webkit-overflow-scrolling: touch;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/*Add padding to scrollbar*/
|
|
102
|
+
.dialog__body-container {
|
|
103
|
+
margin: 4px;
|
|
104
|
+
display: block;
|
|
105
|
+
overflow: auto;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dialog__body-container:focus-visible {
|
|
109
|
+
outline: var(--dsa-wc-focus-ring);
|
|
110
|
+
border-radius: var(--dsa-wc-focus-ring-radius);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.dialog__footer {
|
|
114
|
+
display: flex;
|
|
115
|
+
gap: 16px;
|
|
116
|
+
flex-direction: row;
|
|
117
|
+
justify-content: flex-end;
|
|
118
|
+
text-align: right;
|
|
119
|
+
padding: var(--footer-spacing);
|
|
120
|
+
border-top: var(--dsa-wc-dialog-footer-border);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.dialog__footer ::slotted(dsa-button:not(:first-of-type)) {
|
|
124
|
+
margin-inline-start: var(--dsa-wc-dialog-footer-content-margin);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.dialog:not(.dialog--has-footer) .dialog__footer {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.dialog__overlay {
|
|
132
|
+
position: fixed;
|
|
133
|
+
top: 0;
|
|
134
|
+
right: 0;
|
|
135
|
+
bottom: 0;
|
|
136
|
+
left: 0;
|
|
137
|
+
background-color: var(--dsa-wc-dialog-overlay);
|
|
138
|
+
opacity: 0.4;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (forced-colors: active) {
|
|
142
|
+
.dialog__panel {
|
|
143
|
+
border: solid 1px var(--dsa-wc-dialog-panel-color);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
`;
|
|
147
|
+
|
|
148
|
+
export {
|
|
149
|
+
dialog_styles_default
|
|
150
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/breadcrumb-item/breadcrumb-item.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var breadcrumb_item_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.breadcrumb-item {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
font: var(--dsa-wc-breadcrumb-item-font);
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.breadcrumb-item__label {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
font-family: inherit;
|
|
24
|
+
font-size: inherit;
|
|
25
|
+
font-weight: inherit;
|
|
26
|
+
line-height: inherit;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
color: inherit;
|
|
29
|
+
background: none;
|
|
30
|
+
border: none;
|
|
31
|
+
padding: 0;
|
|
32
|
+
margin: 0;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
transition: var(--dsa-wc-transition-fast) --color;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host(:not(:last-of-type)) .breadcrumb-item__label {
|
|
38
|
+
color: var(--dsa-wc-breadcrumb-item-color);
|
|
39
|
+
text-decoration-line: underline;
|
|
40
|
+
text-underline-offset: var(--dsa-wc-breadcrumb-item-text-underline-offset);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host(:not(:last-of-type)) .breadcrumb-item__label:hover {
|
|
44
|
+
color: var(--dsa-wc-breadcrumb-item-hover-color);
|
|
45
|
+
text-decoration-line: underline;
|
|
46
|
+
text-decoration-thickness: var(
|
|
47
|
+
--dsa-wc-breadcrumb-item-text-decoration-thickness
|
|
48
|
+
);
|
|
49
|
+
text-underline-offset: var(--dsa-wc-breadcrumb-item-text-underline-offset);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host(:not(:last-of-type)) .breadcrumb-item__label:active {
|
|
53
|
+
color: var(--dsa-wc-breadcrumb-item-active-color);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.breadcrumb-item__label:focus {
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.breadcrumb-item__label:focus-visible {
|
|
61
|
+
outline: var(--dsa-wc-focus-ring);
|
|
62
|
+
outline-offset: var(--dsa-wc-breadcrumb-item-outline-offset);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.breadcrumb-item__prefix,
|
|
66
|
+
.breadcrumb-item__suffix {
|
|
67
|
+
display: none;
|
|
68
|
+
flex: 0 0 auto;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.breadcrumb-item--has-prefix .breadcrumb-item__prefix {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
margin-inline-end: var(--dsa-wc-breadcrumb-item-spacing);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.breadcrumb-item--has-suffix .breadcrumb-item__suffix {
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
margin-inline-start: var(--dsa-wc-breadcrumb-item-spacing);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host(:last-of-type) .breadcrumb-item__separator {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.breadcrumb-item__separator {
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
margin: 0 var(--dsa-wc-breadcrumb-item-separator-margin-y);
|
|
91
|
+
user-select: none;
|
|
92
|
+
color: var(--dsa-wc-breadcrumb-item-icon-color);
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
breadcrumb_item_styles_default
|
|
98
|
+
};
|