@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,263 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/tag/tag.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var tag_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.tag {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
user-select: none;
|
|
19
|
+
border-radius: var(--dsa-wc-tag-border-radius);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tag__remove::part(base) {
|
|
23
|
+
color: inherit;
|
|
24
|
+
padding: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tag__prefix,
|
|
28
|
+
.tag__suffix {
|
|
29
|
+
flex: 0 0 auto;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tag__prefix {
|
|
36
|
+
margin-inline-end: var(--dsa-wc-tag-icon-spacing);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tag__suffix {
|
|
40
|
+
margin-inline-start: var(--dsa-wc-tag-icon-spacing);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.tag__content {
|
|
44
|
+
display: inline-block;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
text-wrap: nowrap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
* Variant modifiers
|
|
52
|
+
*/
|
|
53
|
+
.tag--purple-100 {
|
|
54
|
+
background: var(--dsa-wc-tag-purple-100-base);
|
|
55
|
+
color: var(--dsa-wc-tag-purple-100-on-base);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tag--purple-200 {
|
|
59
|
+
background: var(--dsa-wc-tag-purple-200-base);
|
|
60
|
+
color: var(--dsa-wc-tag-purple-200-on-base);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tag--purple-300 {
|
|
64
|
+
background: var(--dsa-wc-tag-purple-300-base);
|
|
65
|
+
color: var(--dsa-wc-tag-purple-300-on-base);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tag--purple-400 {
|
|
69
|
+
background: var(--dsa-wc-tag-purple-400-base);
|
|
70
|
+
color: var(--dsa-wc-tag-purple-400-on-base);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tag--purple-500 {
|
|
74
|
+
background: var(--dsa-wc-tag-purple-500-base);
|
|
75
|
+
color: var(--dsa-wc-tag-purple-500-on-base);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.tag--blue-100 {
|
|
79
|
+
background: var(--dsa-wc-tag-blue-100-base);
|
|
80
|
+
color: var(--dsa-wc-tag-blue-100-on-base);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.tag--blue-200 {
|
|
84
|
+
background: var(--dsa-wc-tag-blue-200-base);
|
|
85
|
+
color: var(--dsa-wc-tag-blue-200-on-base);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.tag--blue-300 {
|
|
89
|
+
background: var(--dsa-wc-tag-blue-300-base);
|
|
90
|
+
color: var(--dsa-wc-tag-blue-300-on-base);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.tag--blue-400 {
|
|
94
|
+
background: var(--dsa-wc-tag-blue-400-base);
|
|
95
|
+
color: var(--dsa-wc-tag-blue-400-on-base);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.tag--blue-500 {
|
|
99
|
+
background: var(--dsa-wc-tag-blue-500-base);
|
|
100
|
+
color: var(--dsa-wc-tag-blue-500-on-base);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.tag--blue-600 {
|
|
104
|
+
background: var(--dsa-wc-tag-blue-600-base);
|
|
105
|
+
color: var(--dsa-wc-tag-blue-600-on-base);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.tag--orange-100 {
|
|
109
|
+
background: var(--dsa-wc-tag-orange-100-base);
|
|
110
|
+
color: var(--dsa-wc-tag-orange-100-on-base);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.tag--orange-200 {
|
|
114
|
+
background: var(--dsa-wc-tag-orange-200-base);
|
|
115
|
+
color: var(--dsa-wc-tag-orange-200-on-base);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.tag--orange-300 {
|
|
119
|
+
background: var(--dsa-wc-tag-orange-300-base);
|
|
120
|
+
color: var(--dsa-wc-tag-orange-300-on-base);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.tag--orange-400 {
|
|
124
|
+
background: var(--dsa-wc-tag-orange-400-base);
|
|
125
|
+
color: var(--dsa-wc-tag-orange-400-on-base);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.tag--orange-500 {
|
|
129
|
+
background: var(--dsa-wc-tag-orange-500-base);
|
|
130
|
+
color: var(--dsa-wc-tag-orange-500-on-base);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.tag--orange-600 {
|
|
134
|
+
background: var(--dsa-wc-tag-orange-600-base);
|
|
135
|
+
color: var(--dsa-wc-tag-orange-600-on-base);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.tag--pink-100 {
|
|
139
|
+
background: var(--dsa-wc-tag-pink-100-base);
|
|
140
|
+
color: var(--dsa-wc-tag-pink-100-on-base);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.tag--pink-200 {
|
|
144
|
+
background: var(--dsa-wc-tag-pink-200-base);
|
|
145
|
+
color: var(--dsa-wc-tag-pink-200-on-base);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.tag--pink-300 {
|
|
149
|
+
background: var(--dsa-wc-tag-pink-300-base);
|
|
150
|
+
color: var(--dsa-wc-tag-pink-300-on-base);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.tag--pink-400 {
|
|
154
|
+
background: var(--dsa-wc-tag-pink-400-base);
|
|
155
|
+
color: var(--dsa-wc-tag-pink-400-on-base);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.tag--pink-500 {
|
|
159
|
+
background: var(--dsa-wc-tag-pink-500-base);
|
|
160
|
+
color: var(--dsa-wc-tag-pink-500-on-base);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.tag--yellow-100 {
|
|
164
|
+
background: var(--dsa-wc-tag-yellow-100-base);
|
|
165
|
+
color: var(--dsa-wc-tag-yellow-100-on-base);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.tag--yellow-200 {
|
|
169
|
+
background: var(--dsa-wc-tag-yellow-200-base);
|
|
170
|
+
color: var(--dsa-wc-tag-yellow-200-on-base);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.tag--yellow-300 {
|
|
174
|
+
background: var(--dsa-wc-tag-yellow-300-base);
|
|
175
|
+
color: var(--dsa-wc-tag-yellow-300-on-base);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.tag--yellow-400 {
|
|
179
|
+
background: var(--dsa-wc-tag-yellow-400-base);
|
|
180
|
+
color: var(--dsa-wc-tag-yellow-400-on-base);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.tag--yellow-500 {
|
|
184
|
+
background: var(--dsa-wc-tag-yellow-500-base);
|
|
185
|
+
color: var(--dsa-wc-tag-yellow-500-on-base);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.tag--yellow-600 {
|
|
189
|
+
background: var(--dsa-wc-tag-yellow-600-base);
|
|
190
|
+
color: var(--dsa-wc-tag-yellow-600-on-base);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.tag--yellow-700 {
|
|
194
|
+
background: var(--dsa-wc-tag-yellow-700-base);
|
|
195
|
+
color: var(--dsa-wc-tag-yellow-700-on-base);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.tag--green-100 {
|
|
199
|
+
background: var(--dsa-wc-tag-green-100-base);
|
|
200
|
+
color: var(--dsa-wc-tag-green-100-on-base);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.tag--green-200 {
|
|
204
|
+
background: var(--dsa-wc-tag-green-200-base);
|
|
205
|
+
color: var(--dsa-wc-tag-green-200-on-base);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.tag--green-300 {
|
|
209
|
+
background: var(--dsa-wc-tag-green-300-base);
|
|
210
|
+
color: var(--dsa-wc-tag-green-300-on-base);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.tag--green-400 {
|
|
214
|
+
background: var(--dsa-wc-tag-green-400-base);
|
|
215
|
+
color: var(--dsa-wc-tag-green-400-on-base);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.tag--green-500 {
|
|
219
|
+
background: var(--dsa-wc-tag-green-500-base);
|
|
220
|
+
color: var(--dsa-wc-tag-green-500-on-base);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.tag--green-600 {
|
|
224
|
+
background: var(--dsa-wc-tag-green-600-base);
|
|
225
|
+
color: var(--dsa-wc-tag-green-600-on-base);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.tag--green-700 {
|
|
229
|
+
background: var(--dsa-wc-tag-green-700-base);
|
|
230
|
+
color: var(--dsa-wc-tag-green-700-on-base);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/*
|
|
234
|
+
* Size modifiers
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
.tag--small {
|
|
238
|
+
font: var(--dsa-wc-tag-small-font-size);
|
|
239
|
+
height: var(--dsa-wc-tag-small-height);
|
|
240
|
+
padding: 0 var(--dsa-wc-tag-small-padding-y);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.tag--medium {
|
|
244
|
+
font: var(--dsa-wc-tag-medium-font-size);
|
|
245
|
+
height: var(--dsa-wc-tag-medium-height);
|
|
246
|
+
padding: 0 var(--dsa-wc-tag-medium-padding-y);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.tag--large {
|
|
250
|
+
font: var(--dsa-wc-tag-large-font-size);
|
|
251
|
+
height: var(--dsa-wc-tag-large-height);
|
|
252
|
+
padding: 0 var(--dsa-wc-tag-large-padding-y);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.tag__remove {
|
|
256
|
+
color: inherit;
|
|
257
|
+
margin-inline-start: var(--dsa-wc-tag-icon-spacing);
|
|
258
|
+
}
|
|
259
|
+
`;
|
|
260
|
+
|
|
261
|
+
export {
|
|
262
|
+
tag_styles_default
|
|
263
|
+
};
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defaultValue
|
|
3
|
+
} from "./chunk.GI7VDIWX.js";
|
|
4
|
+
import {
|
|
5
|
+
FormControlController
|
|
6
|
+
} from "./chunk.KIFBWPW5.js";
|
|
7
|
+
import {
|
|
8
|
+
checkbox_styles_default
|
|
9
|
+
} from "./chunk.WE6IG5XG.js";
|
|
10
|
+
import {
|
|
11
|
+
watch
|
|
12
|
+
} from "./chunk.D7CATJYB.js";
|
|
13
|
+
import {
|
|
14
|
+
ShoelaceElement
|
|
15
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
16
|
+
import {
|
|
17
|
+
__decorateClass
|
|
18
|
+
} from "./chunk.6M63UXML.js";
|
|
19
|
+
|
|
20
|
+
// src/components/checkbox/checkbox.ts
|
|
21
|
+
import { html } from "lit";
|
|
22
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
23
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
24
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
25
|
+
import { live } from "lit/directives/live.js";
|
|
26
|
+
var DSACheckbox = class extends ShoelaceElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
this.formControlController = new FormControlController(this, {
|
|
30
|
+
value: (control) => control.checked ? control.value || "on" : void 0,
|
|
31
|
+
defaultValue: (control) => control.defaultChecked,
|
|
32
|
+
setValue: (control, checked) => control.checked = checked
|
|
33
|
+
});
|
|
34
|
+
this.hasFocus = false;
|
|
35
|
+
this.title = "";
|
|
36
|
+
this.name = "";
|
|
37
|
+
this.size = "medium";
|
|
38
|
+
this.disabled = false;
|
|
39
|
+
this.checked = false;
|
|
40
|
+
this.indeterminate = false;
|
|
41
|
+
this.defaultChecked = false;
|
|
42
|
+
this.error = false;
|
|
43
|
+
this.errorMessage = "";
|
|
44
|
+
this.form = "";
|
|
45
|
+
this.required = false;
|
|
46
|
+
}
|
|
47
|
+
/** Gets the validity state object */
|
|
48
|
+
get validity() {
|
|
49
|
+
return this.input.validity;
|
|
50
|
+
}
|
|
51
|
+
/** Gets the validation message */
|
|
52
|
+
get validationMessage() {
|
|
53
|
+
return this.input.validationMessage;
|
|
54
|
+
}
|
|
55
|
+
firstUpdated() {
|
|
56
|
+
this.formControlController.updateValidity();
|
|
57
|
+
}
|
|
58
|
+
handleClick() {
|
|
59
|
+
this.checked = !this.checked;
|
|
60
|
+
this.indeterminate = false;
|
|
61
|
+
this.emit("dsa-change");
|
|
62
|
+
}
|
|
63
|
+
handleBlur() {
|
|
64
|
+
this.hasFocus = false;
|
|
65
|
+
this.emit("dsa-blur");
|
|
66
|
+
}
|
|
67
|
+
handleInput() {
|
|
68
|
+
this.emit("dsa-input");
|
|
69
|
+
}
|
|
70
|
+
handleInvalid(event) {
|
|
71
|
+
this.formControlController.setValidity(false);
|
|
72
|
+
this.formControlController.emitInvalidEvent(event);
|
|
73
|
+
}
|
|
74
|
+
handleFocus() {
|
|
75
|
+
this.hasFocus = true;
|
|
76
|
+
this.emit("dsa-focus");
|
|
77
|
+
}
|
|
78
|
+
handleDisabledChange() {
|
|
79
|
+
this.formControlController.setValidity(this.disabled);
|
|
80
|
+
}
|
|
81
|
+
handleStateChange() {
|
|
82
|
+
this.input.checked = this.checked;
|
|
83
|
+
this.input.indeterminate = this.indeterminate;
|
|
84
|
+
this.formControlController.updateValidity();
|
|
85
|
+
}
|
|
86
|
+
handleErrorChange() {
|
|
87
|
+
if (this.error) {
|
|
88
|
+
this.setAttribute("aria-invalid", "true");
|
|
89
|
+
} else {
|
|
90
|
+
this.removeAttribute("aria-invalid");
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** Simulates a click on the checkbox. */
|
|
94
|
+
click() {
|
|
95
|
+
this.input.click();
|
|
96
|
+
}
|
|
97
|
+
/** Sets focus on the checkbox. */
|
|
98
|
+
focus(options) {
|
|
99
|
+
this.input.focus(options);
|
|
100
|
+
}
|
|
101
|
+
/** Removes focus from the checkbox. */
|
|
102
|
+
blur() {
|
|
103
|
+
this.input.blur();
|
|
104
|
+
}
|
|
105
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
106
|
+
checkValidity() {
|
|
107
|
+
return this.input.checkValidity();
|
|
108
|
+
}
|
|
109
|
+
/** Gets the associated form, if one exists. */
|
|
110
|
+
getForm() {
|
|
111
|
+
return this.formControlController.getForm();
|
|
112
|
+
}
|
|
113
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
114
|
+
reportValidity() {
|
|
115
|
+
return this.input.reportValidity();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear
|
|
119
|
+
* the custom validation message, call this method with an empty string.
|
|
120
|
+
*/
|
|
121
|
+
setCustomValidity(message) {
|
|
122
|
+
this.input.setCustomValidity(message);
|
|
123
|
+
this.formControlController.updateValidity();
|
|
124
|
+
}
|
|
125
|
+
render() {
|
|
126
|
+
return html`
|
|
127
|
+
<div
|
|
128
|
+
part="base"
|
|
129
|
+
class=${classMap({
|
|
130
|
+
"form-control": true,
|
|
131
|
+
"form-control--error": this.error,
|
|
132
|
+
"form-control--small": this.size === "small",
|
|
133
|
+
"form-control--medium": this.size === "medium",
|
|
134
|
+
"form-control--large": this.size === "large"
|
|
135
|
+
})}
|
|
136
|
+
>
|
|
137
|
+
<label
|
|
138
|
+
class=${classMap({
|
|
139
|
+
checkbox: true,
|
|
140
|
+
"checkbox--checked": this.checked,
|
|
141
|
+
"checkbox--error": this.error,
|
|
142
|
+
"checkbox--disabled": this.disabled,
|
|
143
|
+
"checkbox--focused": this.hasFocus,
|
|
144
|
+
"checkbox--indeterminate": this.indeterminate,
|
|
145
|
+
"checkbox--small": this.size === "small",
|
|
146
|
+
"checkbox--medium": this.size === "medium",
|
|
147
|
+
"checkbox--large": this.size === "large"
|
|
148
|
+
})}
|
|
149
|
+
>
|
|
150
|
+
<input
|
|
151
|
+
class="checkbox__input"
|
|
152
|
+
type="checkbox"
|
|
153
|
+
title=${this.title}
|
|
154
|
+
name=${this.name}
|
|
155
|
+
value=${ifDefined(this.value)}
|
|
156
|
+
.indeterminate=${live(this.indeterminate)}
|
|
157
|
+
.checked=${live(this.checked)}
|
|
158
|
+
.disabled=${this.disabled}
|
|
159
|
+
.required=${this.required}
|
|
160
|
+
aria-checked=${this.checked ? "true" : "false"}
|
|
161
|
+
aria-describedby=${ifDefined(this.error ? "error-text" : void 0)}
|
|
162
|
+
@click=${this.handleClick}
|
|
163
|
+
@input=${this.handleInput}
|
|
164
|
+
@invalid=${this.handleInvalid}
|
|
165
|
+
@blur=${this.handleBlur}
|
|
166
|
+
@focus=${this.handleFocus}
|
|
167
|
+
/>
|
|
168
|
+
|
|
169
|
+
<span
|
|
170
|
+
part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}"
|
|
171
|
+
class="checkbox__control"
|
|
172
|
+
>
|
|
173
|
+
${this.checked ? html`
|
|
174
|
+
<dsa-icon
|
|
175
|
+
part="checked-icon"
|
|
176
|
+
class="checkbox__checked-icon"
|
|
177
|
+
name="done"
|
|
178
|
+
></dsa-icon>
|
|
179
|
+
` : ""}
|
|
180
|
+
${!this.checked && this.indeterminate ? html`
|
|
181
|
+
<dsa-icon
|
|
182
|
+
part="indeterminate-icon"
|
|
183
|
+
class="checkbox__indeterminate-icon"
|
|
184
|
+
name="horizontal_rule"
|
|
185
|
+
></dsa-icon>
|
|
186
|
+
` : ""}
|
|
187
|
+
</span>
|
|
188
|
+
|
|
189
|
+
<div part="label" class="checkbox__label">
|
|
190
|
+
<slot></slot>
|
|
191
|
+
${this.required ? html`<span class="checkbox__label-required">*</span>` : ""}
|
|
192
|
+
</div>
|
|
193
|
+
</label>
|
|
194
|
+
${this.error && !this.disabled ? html`<dsa-error-text
|
|
195
|
+
id="error-text"
|
|
196
|
+
class=${classMap({
|
|
197
|
+
"form-control__error-text": true,
|
|
198
|
+
"form-control__text": true
|
|
199
|
+
})}
|
|
200
|
+
>${this.errorMessage}</dsa-error-text
|
|
201
|
+
>` : ""}
|
|
202
|
+
</div>
|
|
203
|
+
`;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
DSACheckbox.styles = checkbox_styles_default;
|
|
207
|
+
__decorateClass([
|
|
208
|
+
query('input[type="checkbox"]')
|
|
209
|
+
], DSACheckbox.prototype, "input", 2);
|
|
210
|
+
__decorateClass([
|
|
211
|
+
state()
|
|
212
|
+
], DSACheckbox.prototype, "hasFocus", 2);
|
|
213
|
+
__decorateClass([
|
|
214
|
+
property()
|
|
215
|
+
], DSACheckbox.prototype, "title", 2);
|
|
216
|
+
__decorateClass([
|
|
217
|
+
property()
|
|
218
|
+
], DSACheckbox.prototype, "name", 2);
|
|
219
|
+
__decorateClass([
|
|
220
|
+
property()
|
|
221
|
+
], DSACheckbox.prototype, "value", 2);
|
|
222
|
+
__decorateClass([
|
|
223
|
+
property({ reflect: true })
|
|
224
|
+
], DSACheckbox.prototype, "size", 2);
|
|
225
|
+
__decorateClass([
|
|
226
|
+
property({ type: Boolean, reflect: true })
|
|
227
|
+
], DSACheckbox.prototype, "disabled", 2);
|
|
228
|
+
__decorateClass([
|
|
229
|
+
property({ type: Boolean, reflect: true })
|
|
230
|
+
], DSACheckbox.prototype, "checked", 2);
|
|
231
|
+
__decorateClass([
|
|
232
|
+
property({ type: Boolean, reflect: true })
|
|
233
|
+
], DSACheckbox.prototype, "indeterminate", 2);
|
|
234
|
+
__decorateClass([
|
|
235
|
+
defaultValue("checked")
|
|
236
|
+
], DSACheckbox.prototype, "defaultChecked", 2);
|
|
237
|
+
__decorateClass([
|
|
238
|
+
property({ type: Boolean })
|
|
239
|
+
], DSACheckbox.prototype, "error", 2);
|
|
240
|
+
__decorateClass([
|
|
241
|
+
property({ attribute: "error-message" })
|
|
242
|
+
], DSACheckbox.prototype, "errorMessage", 2);
|
|
243
|
+
__decorateClass([
|
|
244
|
+
property({ reflect: true })
|
|
245
|
+
], DSACheckbox.prototype, "form", 2);
|
|
246
|
+
__decorateClass([
|
|
247
|
+
property({ type: Boolean, reflect: true })
|
|
248
|
+
], DSACheckbox.prototype, "required", 2);
|
|
249
|
+
__decorateClass([
|
|
250
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
251
|
+
], DSACheckbox.prototype, "handleDisabledChange", 1);
|
|
252
|
+
__decorateClass([
|
|
253
|
+
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
254
|
+
], DSACheckbox.prototype, "handleStateChange", 1);
|
|
255
|
+
__decorateClass([
|
|
256
|
+
watch("error")
|
|
257
|
+
], DSACheckbox.prototype, "handleErrorChange", 1);
|
|
258
|
+
DSACheckbox = __decorateClass([
|
|
259
|
+
customElement("dsa-checkbox")
|
|
260
|
+
], DSACheckbox);
|
|
261
|
+
|
|
262
|
+
export {
|
|
263
|
+
DSACheckbox
|
|
264
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LocalizeController
|
|
3
|
+
} from "./chunk.5XL2LZLC.js";
|
|
4
|
+
import {
|
|
5
|
+
ShoelaceElement
|
|
6
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
7
|
+
import {
|
|
8
|
+
__decorateClass
|
|
9
|
+
} from "./chunk.6M63UXML.js";
|
|
10
|
+
|
|
11
|
+
// src/components/format-date/format-date.ts
|
|
12
|
+
import { html } from "lit";
|
|
13
|
+
import { customElement, property } from "lit/decorators.js";
|
|
14
|
+
var DSAFormatDate = class extends ShoelaceElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.localize = new LocalizeController(this);
|
|
18
|
+
this.date = new Date();
|
|
19
|
+
this.hourFormat = "auto";
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const date = new Date(this.date);
|
|
23
|
+
const hour12 = this.hourFormat === "auto" ? void 0 : this.hourFormat === "12";
|
|
24
|
+
if (isNaN(date.getMilliseconds())) {
|
|
25
|
+
return void 0;
|
|
26
|
+
}
|
|
27
|
+
return html`
|
|
28
|
+
<time datetime=${date.toISOString()}>
|
|
29
|
+
${this.localize.date(date, {
|
|
30
|
+
weekday: this.weekday,
|
|
31
|
+
era: this.era,
|
|
32
|
+
year: this.year,
|
|
33
|
+
month: this.month,
|
|
34
|
+
day: this.day,
|
|
35
|
+
hour: this.hour,
|
|
36
|
+
minute: this.minute,
|
|
37
|
+
second: this.second,
|
|
38
|
+
timeZoneName: this.timeZoneName,
|
|
39
|
+
timeZone: this.timeZone,
|
|
40
|
+
hour12
|
|
41
|
+
})}
|
|
42
|
+
</time>
|
|
43
|
+
`;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
__decorateClass([
|
|
47
|
+
property()
|
|
48
|
+
], DSAFormatDate.prototype, "date", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
property()
|
|
51
|
+
], DSAFormatDate.prototype, "weekday", 2);
|
|
52
|
+
__decorateClass([
|
|
53
|
+
property()
|
|
54
|
+
], DSAFormatDate.prototype, "era", 2);
|
|
55
|
+
__decorateClass([
|
|
56
|
+
property()
|
|
57
|
+
], DSAFormatDate.prototype, "year", 2);
|
|
58
|
+
__decorateClass([
|
|
59
|
+
property()
|
|
60
|
+
], DSAFormatDate.prototype, "month", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
property()
|
|
63
|
+
], DSAFormatDate.prototype, "day", 2);
|
|
64
|
+
__decorateClass([
|
|
65
|
+
property()
|
|
66
|
+
], DSAFormatDate.prototype, "hour", 2);
|
|
67
|
+
__decorateClass([
|
|
68
|
+
property()
|
|
69
|
+
], DSAFormatDate.prototype, "minute", 2);
|
|
70
|
+
__decorateClass([
|
|
71
|
+
property()
|
|
72
|
+
], DSAFormatDate.prototype, "second", 2);
|
|
73
|
+
__decorateClass([
|
|
74
|
+
property({ attribute: "time-zone-name" })
|
|
75
|
+
], DSAFormatDate.prototype, "timeZoneName", 2);
|
|
76
|
+
__decorateClass([
|
|
77
|
+
property({ attribute: "time-zone" })
|
|
78
|
+
], DSAFormatDate.prototype, "timeZone", 2);
|
|
79
|
+
__decorateClass([
|
|
80
|
+
property({ attribute: "hour-format" })
|
|
81
|
+
], DSAFormatDate.prototype, "hourFormat", 2);
|
|
82
|
+
DSAFormatDate = __decorateClass([
|
|
83
|
+
customElement("dsa-format-date")
|
|
84
|
+
], DSAFormatDate);
|
|
85
|
+
|
|
86
|
+
export {
|
|
87
|
+
DSAFormatDate
|
|
88
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HasSlotController
|
|
3
|
+
} from "./chunk.YIY5RM53.js";
|
|
4
|
+
import {
|
|
5
|
+
card_styles_default
|
|
6
|
+
} from "./chunk.Y3ZUFLVS.js";
|
|
7
|
+
import {
|
|
8
|
+
ShoelaceElement
|
|
9
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
10
|
+
import {
|
|
11
|
+
__decorateClass
|
|
12
|
+
} from "./chunk.6M63UXML.js";
|
|
13
|
+
|
|
14
|
+
// src/components/card/card.ts
|
|
15
|
+
import { html } from "lit";
|
|
16
|
+
import { customElement } from "lit/decorators.js";
|
|
17
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
18
|
+
var DSACard = class extends ShoelaceElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.hasSlotController = new HasSlotController(
|
|
22
|
+
this,
|
|
23
|
+
"footer",
|
|
24
|
+
"header",
|
|
25
|
+
"image"
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return html`
|
|
30
|
+
<div
|
|
31
|
+
part="base"
|
|
32
|
+
class=${classMap({
|
|
33
|
+
card: true,
|
|
34
|
+
"card--has-footer": this.hasSlotController.test("footer"),
|
|
35
|
+
"card--has-image": this.hasSlotController.test("image"),
|
|
36
|
+
"card--has-header": this.hasSlotController.test("header")
|
|
37
|
+
})}
|
|
38
|
+
>
|
|
39
|
+
<slot name="header" part="header" class="card__header"></slot>
|
|
40
|
+
<slot name="image" part="image" class="card__image"></slot>
|
|
41
|
+
<slot part="body" class="card__body"></slot>
|
|
42
|
+
<slot name="footer" part="footer" class="card__footer"></slot>
|
|
43
|
+
</div>
|
|
44
|
+
`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
DSACard.styles = card_styles_default;
|
|
48
|
+
DSACard = __decorateClass([
|
|
49
|
+
customElement("dsa-card")
|
|
50
|
+
], DSACard);
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
DSACard
|
|
54
|
+
};
|