@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,85 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { FormControlController } from '../../internal/form';
|
|
3
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
4
|
+
import type { ShoelaceFormControl } from '../../internal/shoelace-element';
|
|
5
|
+
import '../error-text/error-text';
|
|
6
|
+
/**
|
|
7
|
+
* @summary Checkbox groups are used to group multiple [checkbox](/components/checkbox) or [checkbox buttons](/components/checkbox-button) so they function as a single form control.
|
|
8
|
+
* @documentation https://dsa.service-public-autonomie.fr/062dac5f6/p/262df4-checkbox-group
|
|
9
|
+
*
|
|
10
|
+
* @dependency dsa-error-text
|
|
11
|
+
*
|
|
12
|
+
* @slot - The default slot where `<dsa-checkbox>` or `<dsa-checkbox-button>` elements are placed.
|
|
13
|
+
* @slot label - The checkbox group's label. Required for proper accessibility. Alternatively, you can use the `label`
|
|
14
|
+
* attribute.
|
|
15
|
+
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
16
|
+
*
|
|
17
|
+
* @event dsa-change - Emitted when the checkbox group's selected value changes.
|
|
18
|
+
* @event dsa-input - Emitted when the checkbox group receives user input.
|
|
19
|
+
* @event dsa-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
20
|
+
*/
|
|
21
|
+
export default class DSACheckboxGroup extends ShoelaceElement implements ShoelaceFormControl {
|
|
22
|
+
static styles: CSSResultGroup;
|
|
23
|
+
protected readonly formControlController: FormControlController;
|
|
24
|
+
private readonly hasSlotController;
|
|
25
|
+
private customValidityMessage;
|
|
26
|
+
private validationTimeout;
|
|
27
|
+
defaultSlot: HTMLSlotElement;
|
|
28
|
+
validationInput: HTMLInputElement;
|
|
29
|
+
private hasCheckboxButtons;
|
|
30
|
+
defaultValue: string[];
|
|
31
|
+
/**
|
|
32
|
+
* The checkbox group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
33
|
+
* instead.
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
/** The checkbox groups's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
37
|
+
helpText: string;
|
|
38
|
+
/** The name of the checkbox group, submitted as a name/value pair with form data. */
|
|
39
|
+
name: string;
|
|
40
|
+
/** The current value of the checkbox group, submitted as a name/value pair with form data. The value is a comma-delimited list of values based on the checked checkboxes. */
|
|
41
|
+
value: string[];
|
|
42
|
+
/**
|
|
43
|
+
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
44
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
45
|
+
* the same document or shadow root for this to work.
|
|
46
|
+
*/
|
|
47
|
+
form: string;
|
|
48
|
+
/** Ensures a child checkbox is checked before allowing the containing form to submit. */
|
|
49
|
+
required: boolean;
|
|
50
|
+
/** Sets the orientation of the checkbox options */
|
|
51
|
+
horizontal: boolean;
|
|
52
|
+
/** Indicates whether the group should be in error state */
|
|
53
|
+
error: boolean;
|
|
54
|
+
/** An error message that is shown when `error` is set to true */
|
|
55
|
+
errorMessage: string;
|
|
56
|
+
/** Gets the validity state object */
|
|
57
|
+
get validity(): ValidityState;
|
|
58
|
+
/** Gets the validation message */
|
|
59
|
+
get validationMessage(): string;
|
|
60
|
+
connectedCallback(): void;
|
|
61
|
+
firstUpdated(): void;
|
|
62
|
+
private getAllCheckboxes;
|
|
63
|
+
private handleCheckboxClick;
|
|
64
|
+
private handleKeyDown;
|
|
65
|
+
private handleLabelClick;
|
|
66
|
+
private handleSlotChange;
|
|
67
|
+
private handleInvalid;
|
|
68
|
+
private updateCheckedCheckbox;
|
|
69
|
+
handleValueChange(): void;
|
|
70
|
+
handleErrorChange(): void;
|
|
71
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
72
|
+
checkValidity(): boolean;
|
|
73
|
+
/** Gets the associated form, if one exists. */
|
|
74
|
+
getForm(): HTMLFormElement | null;
|
|
75
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
76
|
+
reportValidity(): boolean;
|
|
77
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
78
|
+
setCustomValidity(message?: string): void;
|
|
79
|
+
render(): import("lit").TemplateResult<1>;
|
|
80
|
+
}
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
'dsa-checkbox-group': DSACheckboxGroup;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSACheckboxGroup
|
|
3
|
+
} from "../../chunks/chunk.5LT3B7MI.js";
|
|
4
|
+
import "../../chunks/chunk.CPXD6UYZ.js";
|
|
5
|
+
import "../../chunks/chunk.EYZGEU3G.js";
|
|
6
|
+
import "../../chunks/chunk.YY6AEXJK.js";
|
|
7
|
+
import "../../chunks/chunk.KIFBWPW5.js";
|
|
8
|
+
import "../../chunks/chunk.YIY5RM53.js";
|
|
9
|
+
import "../../chunks/chunk.3RBCYA4F.js";
|
|
10
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
11
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
12
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
13
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
14
|
+
export {
|
|
15
|
+
DSACheckboxGroup as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
checkbox_group_styles_default
|
|
3
|
+
} from "../../chunks/chunk.YY6AEXJK.js";
|
|
4
|
+
import "../../chunks/chunk.3RBCYA4F.js";
|
|
5
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
6
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
7
|
+
export {
|
|
8
|
+
checkbox_group_styles_default as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
import '../icon-button/icon-button';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Dialogs, sometimes called "modals", appear above the page and require the user's immediate attention.
|
|
6
|
+
* @documentation https://dsa.service-public-autonomie.fr/062dac5f6/p/491e4e-dialog
|
|
7
|
+
*
|
|
8
|
+
* @dependency dsa-icon-button
|
|
9
|
+
*
|
|
10
|
+
* @slot - The dialog's main content.
|
|
11
|
+
* @slot label - The dialog's label. Alternatively, you can use the `label` attribute.
|
|
12
|
+
* @slot header-actions - Optional actions to add to the header. Works best with `<dsa-icon-button>`.
|
|
13
|
+
* @slot footer - The dialog's footer, usually one or more buttons representing various options.
|
|
14
|
+
*
|
|
15
|
+
* @event dsa-show - Emitted when the dialog opens.
|
|
16
|
+
* @event dsa-after-show - Emitted after the dialog opens and all animations are complete.
|
|
17
|
+
* @event dsa-hide - Emitted when the dialog closes.
|
|
18
|
+
* @event dsa-after-hide - Emitted after the dialog closes and all animations are complete.
|
|
19
|
+
* @event dsa-initial-focus - Emitted when the dialog opens and is ready to receive focus. Calling
|
|
20
|
+
* `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.
|
|
21
|
+
* @event dsa-request-close {{ source: 'close-button' | 'keyboard' | 'overlay' }} - Emitted when the user attempts to
|
|
22
|
+
* close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling
|
|
23
|
+
* `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in
|
|
24
|
+
* destructive behavior such as data loss.
|
|
25
|
+
*/
|
|
26
|
+
export default class DSADialog extends ShoelaceElement {
|
|
27
|
+
static styles: CSSResultGroup;
|
|
28
|
+
private readonly hasSlotController;
|
|
29
|
+
private readonly localize;
|
|
30
|
+
private modal;
|
|
31
|
+
private originalTrigger;
|
|
32
|
+
dialog: HTMLElement;
|
|
33
|
+
panel: HTMLElement;
|
|
34
|
+
overlay: HTMLElement;
|
|
35
|
+
/**
|
|
36
|
+
* Indicates whether or not the dialog is open. You can toggle this attribute to show and hide the dialog, or you can
|
|
37
|
+
* use the `show()` and `hide()` methods and this attribute will reflect the dialog's open state.
|
|
38
|
+
*/
|
|
39
|
+
open: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The dialog's label as displayed in the header. You should always include a relevant label even when using
|
|
42
|
+
* `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
|
|
43
|
+
*/
|
|
44
|
+
label: string;
|
|
45
|
+
/**
|
|
46
|
+
* Disables the header. This will also remove the default close button, so please ensure you provide an easy,
|
|
47
|
+
* accessible way for users to dismiss the dialog.
|
|
48
|
+
*/
|
|
49
|
+
noHeader: boolean;
|
|
50
|
+
/** The dialog's size. */
|
|
51
|
+
size: 'small' | 'medium' | 'large';
|
|
52
|
+
connectedCallback(): void;
|
|
53
|
+
firstUpdated(): void;
|
|
54
|
+
disconnectedCallback(): void;
|
|
55
|
+
private requestClose;
|
|
56
|
+
private addOpenListeners;
|
|
57
|
+
private removeOpenListeners;
|
|
58
|
+
private handleDocumentKeyDown;
|
|
59
|
+
handleOpenChange(): Promise<void>;
|
|
60
|
+
/** Shows the dialog. */
|
|
61
|
+
show(): Promise<void>;
|
|
62
|
+
/** Hides the dialog */
|
|
63
|
+
hide(): Promise<void>;
|
|
64
|
+
render(): import("lit").TemplateResult<1>;
|
|
65
|
+
}
|
|
66
|
+
declare global {
|
|
67
|
+
interface HTMLElementTagNameMap {
|
|
68
|
+
'dsa-dialog': DSADialog;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSADialog
|
|
3
|
+
} from "../../chunks/chunk.IRQOFNJE.js";
|
|
4
|
+
import "../../chunks/chunk.ISAFRNR2.js";
|
|
5
|
+
import "../../chunks/chunk.EMIT7S33.js";
|
|
6
|
+
import "../../chunks/chunk.PQWQ42E2.js";
|
|
7
|
+
import "../../chunks/chunk.YIY5RM53.js";
|
|
8
|
+
import "../../chunks/chunk.XSCX6TC5.js";
|
|
9
|
+
import "../../chunks/chunk.QFJA3MTV.js";
|
|
10
|
+
import "../../chunks/chunk.B4BZKR24.js";
|
|
11
|
+
import "../../chunks/chunk.2FK6USFR.js";
|
|
12
|
+
import "../../chunks/chunk.V7RJROLH.js";
|
|
13
|
+
import "../../chunks/chunk.5XL2LZLC.js";
|
|
14
|
+
import "../../chunks/chunk.G7AELPSO.js";
|
|
15
|
+
import "../../chunks/chunk.LMJPQPQT.js";
|
|
16
|
+
import "../../chunks/chunk.7J7CS3BK.js";
|
|
17
|
+
import "../../chunks/chunk.RDGMZ5XB.js";
|
|
18
|
+
import "../../chunks/chunk.I33L3NO6.js";
|
|
19
|
+
import "../../chunks/chunk.23TOS4ZE.js";
|
|
20
|
+
import "../../chunks/chunk.XNEONNEJ.js";
|
|
21
|
+
import "../../chunks/chunk.FDYFSRSX.js";
|
|
22
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
23
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
24
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
25
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
26
|
+
export {
|
|
27
|
+
DSADialog as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Dividers are used to visually separate or group elements.
|
|
5
|
+
* @documentation https://shoelace.style/components/divider
|
|
6
|
+
*/
|
|
7
|
+
export default class DSADivider extends ShoelaceElement {
|
|
8
|
+
static styles: CSSResultGroup;
|
|
9
|
+
/** Draws the divider in a vertical orientation. */
|
|
10
|
+
vertical: boolean;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
'dsa-divider': DSADivider;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSADivider
|
|
3
|
+
} from "../../chunks/chunk.AQRNB4GJ.js";
|
|
4
|
+
import "../../chunks/chunk.RY4QCT3T.js";
|
|
5
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
6
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
7
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
8
|
+
export {
|
|
9
|
+
DSADivider as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
import '../icon-button/icon-button';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Drawers slide in from a container to expose additional options and information.
|
|
6
|
+
* @documentation https://dsa.service-public-autonomie.fr/062dac5f6/p/11b4c2-drawer
|
|
7
|
+
*
|
|
8
|
+
* @dependency dsa-icon-button
|
|
9
|
+
*
|
|
10
|
+
* @slot - The drawer's main content.
|
|
11
|
+
* @slot label - The drawer's label. Alternatively, you can use the `label` attribute.
|
|
12
|
+
* @slot header-actions - Optional actions to add to the header. Works best with `<dsa-icon-button>`.
|
|
13
|
+
* @slot footer - The drawer's footer, usually one or more buttons representing various options.
|
|
14
|
+
*
|
|
15
|
+
* @event dsa-show - Emitted when the drawer opens.
|
|
16
|
+
* @event dsa-after-show - Emitted after the drawer opens and all animations are complete.
|
|
17
|
+
* @event dsa-hide - Emitted when the drawer closes.
|
|
18
|
+
* @event dsa-after-hide - Emitted after the drawer closes and all animations are complete.
|
|
19
|
+
* @event dsa-initial-focus - Emitted when the drawer opens and is ready to receive focus. Calling
|
|
20
|
+
* `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.
|
|
21
|
+
* @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} dsa-request-close - Emitted when the user attempts to
|
|
22
|
+
* close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling
|
|
23
|
+
* `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in
|
|
24
|
+
* destructive behavior such as data loss.
|
|
25
|
+
|
|
26
|
+
*/
|
|
27
|
+
export default class DSADrawer extends ShoelaceElement {
|
|
28
|
+
static styles: CSSResultGroup;
|
|
29
|
+
private readonly hasSlotController;
|
|
30
|
+
private readonly localize;
|
|
31
|
+
private modal;
|
|
32
|
+
private originalTrigger;
|
|
33
|
+
drawer: HTMLElement;
|
|
34
|
+
panel: HTMLElement;
|
|
35
|
+
overlay: HTMLElement;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can
|
|
38
|
+
* use the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.
|
|
39
|
+
*/
|
|
40
|
+
open: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The drawer's label as displayed in the header. You should always include a relevant label even when using
|
|
43
|
+
* `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
|
|
44
|
+
*/
|
|
45
|
+
label: string;
|
|
46
|
+
/** The direction from which the drawer will open. */
|
|
47
|
+
placement: 'top' | 'end' | 'bottom' | 'start';
|
|
48
|
+
/**
|
|
49
|
+
* By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of
|
|
50
|
+
* its parent element, set this attribute and add `position: relative` to the parent.
|
|
51
|
+
*/
|
|
52
|
+
contained: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Removes the header. This will also remove the default close button, so please ensure you provide an easy,
|
|
55
|
+
* accessible way for users to dismiss the drawer.
|
|
56
|
+
*/
|
|
57
|
+
noHeader: boolean;
|
|
58
|
+
connectedCallback(): void;
|
|
59
|
+
firstUpdated(): void;
|
|
60
|
+
disconnectedCallback(): void;
|
|
61
|
+
private requestClose;
|
|
62
|
+
private addOpenListeners;
|
|
63
|
+
private removeOpenListeners;
|
|
64
|
+
private handleDocumentKeyDown;
|
|
65
|
+
handleOpenChange(): Promise<void>;
|
|
66
|
+
handleNoModalChange(): void;
|
|
67
|
+
/** Shows the drawer. */
|
|
68
|
+
show(): Promise<void>;
|
|
69
|
+
/** Hides the drawer */
|
|
70
|
+
hide(): Promise<void>;
|
|
71
|
+
render(): import("lit").TemplateResult<1>;
|
|
72
|
+
}
|
|
73
|
+
declare global {
|
|
74
|
+
interface HTMLElementTagNameMap {
|
|
75
|
+
'dsa-drawer': DSADrawer;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSADrawer
|
|
3
|
+
} from "../../chunks/chunk.5XUV3SRW.js";
|
|
4
|
+
import "../../chunks/chunk.DXVNWE2M.js";
|
|
5
|
+
import "../../chunks/chunk.ISAFRNR2.js";
|
|
6
|
+
import "../../chunks/chunk.EMIT7S33.js";
|
|
7
|
+
import "../../chunks/chunk.YIY5RM53.js";
|
|
8
|
+
import "../../chunks/chunk.XSCX6TC5.js";
|
|
9
|
+
import "../../chunks/chunk.QFJA3MTV.js";
|
|
10
|
+
import "../../chunks/chunk.B4BZKR24.js";
|
|
11
|
+
import "../../chunks/chunk.2FK6USFR.js";
|
|
12
|
+
import "../../chunks/chunk.V7RJROLH.js";
|
|
13
|
+
import "../../chunks/chunk.5XL2LZLC.js";
|
|
14
|
+
import "../../chunks/chunk.G7AELPSO.js";
|
|
15
|
+
import "../../chunks/chunk.LMJPQPQT.js";
|
|
16
|
+
import "../../chunks/chunk.7J7CS3BK.js";
|
|
17
|
+
import "../../chunks/chunk.RDGMZ5XB.js";
|
|
18
|
+
import "../../chunks/chunk.I33L3NO6.js";
|
|
19
|
+
import "../../chunks/chunk.23TOS4ZE.js";
|
|
20
|
+
import "../../chunks/chunk.XNEONNEJ.js";
|
|
21
|
+
import "../../chunks/chunk.FDYFSRSX.js";
|
|
22
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
23
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
24
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
25
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
26
|
+
export {
|
|
27
|
+
DSADrawer as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
import type DSAPopup from '../popup/popup';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Dropdowns expose additional content that "drops down" in a panel.
|
|
6
|
+
* @documentation https://dsa.service-public-autonomie.fr/062dac5f6/p/769df7-dropdown
|
|
7
|
+
*
|
|
8
|
+
* @dependency dsa-popup
|
|
9
|
+
*
|
|
10
|
+
* @slot - The dropdown's main content.
|
|
11
|
+
* @slot trigger - The dropdown's trigger, usually a `<dsa-button>` element.
|
|
12
|
+
*
|
|
13
|
+
* @event dsa-show - Emitted when the dropdown opens.
|
|
14
|
+
* @event dsa-after-show - Emitted after the dropdown opens and all animations are complete.
|
|
15
|
+
* @event dsa-hide - Emitted when the dropdown closes.
|
|
16
|
+
* @event dsa-after-hide - Emitted after the dropdown closes and all animations are complete.
|
|
17
|
+
*/
|
|
18
|
+
export default class DSADropdown extends ShoelaceElement {
|
|
19
|
+
static styles: CSSResultGroup;
|
|
20
|
+
popup: DSAPopup;
|
|
21
|
+
trigger: HTMLSlotElement;
|
|
22
|
+
panel: HTMLSlotElement;
|
|
23
|
+
private readonly localize;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you
|
|
26
|
+
* can use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.
|
|
27
|
+
*/
|
|
28
|
+
open: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel
|
|
31
|
+
* inside of the viewport.
|
|
32
|
+
*/
|
|
33
|
+
placement: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
34
|
+
/** Disables the dropdown so the panel will not open. */
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for
|
|
38
|
+
* dropdowns that allow for multiple interactions.
|
|
39
|
+
*/
|
|
40
|
+
stayOpenOnSelect: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The dropdown will close when the user interacts outside of this element (e.g. clicking). Useful for composing other
|
|
43
|
+
* components that use a dropdown internally.
|
|
44
|
+
*/
|
|
45
|
+
containingElement?: HTMLElement;
|
|
46
|
+
/** The distance in pixels from which to offset the panel along its trigger. */
|
|
47
|
+
skidding: number;
|
|
48
|
+
/**
|
|
49
|
+
* Enable this option to prevent the panel from being clipped when the component is placed inside a container with
|
|
50
|
+
* `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.
|
|
51
|
+
*/
|
|
52
|
+
hoist: boolean;
|
|
53
|
+
connectedCallback(): void;
|
|
54
|
+
firstUpdated(): void;
|
|
55
|
+
disconnectedCallback(): void;
|
|
56
|
+
private focusOnTrigger;
|
|
57
|
+
private getMenu;
|
|
58
|
+
private handleKeyDown;
|
|
59
|
+
private handleDocumentKeyDown;
|
|
60
|
+
private handleDocumentMouseDown;
|
|
61
|
+
private handlePanelSelect;
|
|
62
|
+
private handleTriggerClick;
|
|
63
|
+
private handleTriggerKeyDown;
|
|
64
|
+
private handleTriggerKeyUp;
|
|
65
|
+
private handleTriggerSlotChange;
|
|
66
|
+
private getTrigger;
|
|
67
|
+
handleDisabledChange(): void;
|
|
68
|
+
updateAccessibleTrigger(): void;
|
|
69
|
+
/** Shows the dropdown panel. */
|
|
70
|
+
show(): Promise<void>;
|
|
71
|
+
/** Hides the dropdown panel */
|
|
72
|
+
hide(): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu
|
|
75
|
+
* is activated.
|
|
76
|
+
*/
|
|
77
|
+
reposition(): void;
|
|
78
|
+
private addOpenListeners;
|
|
79
|
+
private removeOpenListeners;
|
|
80
|
+
handleOpenChange(): Promise<void>;
|
|
81
|
+
render(): import("lit").TemplateResult<1>;
|
|
82
|
+
}
|
|
83
|
+
declare global {
|
|
84
|
+
interface HTMLElementTagNameMap {
|
|
85
|
+
'dsa-dropdown': DSADropdown;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSADropdown
|
|
3
|
+
} from "../../chunks/chunk.LT7JMZ3T.js";
|
|
4
|
+
import "../../chunks/chunk.UEUTSYIH.js";
|
|
5
|
+
import "../../chunks/chunk.B4BZKR24.js";
|
|
6
|
+
import "../../chunks/chunk.2FK6USFR.js";
|
|
7
|
+
import "../../chunks/chunk.V7RJROLH.js";
|
|
8
|
+
import "../../chunks/chunk.5XL2LZLC.js";
|
|
9
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
10
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
11
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
12
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
13
|
+
export {
|
|
14
|
+
DSADropdown as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Error Text can be used to display an error message under an input or a fieldset
|
|
5
|
+
*
|
|
6
|
+
* @dependency dsa-icon
|
|
7
|
+
*
|
|
8
|
+
* @slot - The error-text's main content.
|
|
9
|
+
*/
|
|
10
|
+
export default class DSAErrorText extends ShoelaceElement {
|
|
11
|
+
static styles: CSSResultGroup;
|
|
12
|
+
render(): import("lit").TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'dsa-error-text': DSAErrorText;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Formats a number as a human readable bytes value.
|
|
4
|
+
* @documentation https://shoelace.style/components/format-bytes
|
|
5
|
+
* @status stable
|
|
6
|
+
* @since 2.0
|
|
7
|
+
*/
|
|
8
|
+
export default class DSAFormatBytes extends ShoelaceElement {
|
|
9
|
+
private readonly localize;
|
|
10
|
+
/** The number to format in bytes. */
|
|
11
|
+
value: number;
|
|
12
|
+
/** The type of unit to display. */
|
|
13
|
+
unit: 'byte' | 'bit';
|
|
14
|
+
/** Determines how to display the result, e.g. "100 bytes", "100 b", or "100b". */
|
|
15
|
+
display: 'long' | 'short' | 'narrow';
|
|
16
|
+
render(): string;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'dsa-format-bytes': DSAFormatBytes;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Formats a date/time using the specified locale and options.
|
|
4
|
+
* @documentation https://shoelace.style/components/format-date
|
|
5
|
+
*/
|
|
6
|
+
export default class DSAFormatDate extends ShoelaceElement {
|
|
7
|
+
private readonly localize;
|
|
8
|
+
/**
|
|
9
|
+
* The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly
|
|
10
|
+
* recommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format
|
|
11
|
+
* in JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).
|
|
12
|
+
*/
|
|
13
|
+
date: Date | string;
|
|
14
|
+
/** The format for displaying the weekday. */
|
|
15
|
+
weekday: 'narrow' | 'short' | 'long';
|
|
16
|
+
/** The format for displaying the era. */
|
|
17
|
+
era: 'narrow' | 'short' | 'long';
|
|
18
|
+
/** The format for displaying the year. */
|
|
19
|
+
year: 'numeric' | '2-digit';
|
|
20
|
+
/** The format for displaying the month. */
|
|
21
|
+
month: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long';
|
|
22
|
+
/** The format for displaying the day. */
|
|
23
|
+
day: 'numeric' | '2-digit';
|
|
24
|
+
/** The format for displaying the hour. */
|
|
25
|
+
hour: 'numeric' | '2-digit';
|
|
26
|
+
/** The format for displaying the minute. */
|
|
27
|
+
minute: 'numeric' | '2-digit';
|
|
28
|
+
/** The format for displaying the second. */
|
|
29
|
+
second: 'numeric' | '2-digit';
|
|
30
|
+
/** The format for displaying the time. */
|
|
31
|
+
timeZoneName: 'short' | 'long';
|
|
32
|
+
/** The time zone to express the time in. */
|
|
33
|
+
timeZone: string;
|
|
34
|
+
/** The format for displaying the hour. */
|
|
35
|
+
hourFormat: 'auto' | '12' | '24';
|
|
36
|
+
render(): import("lit").TemplateResult<1> | undefined;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElementTagNameMap {
|
|
40
|
+
'dsa-format-date': DSAFormatDate;
|
|
41
|
+
}
|
|
42
|
+
}
|