@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,61 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Tab groups organize content into a container that shows one section at a time.
|
|
5
|
+
* @documentation https://shoelace.style/components/tab-group
|
|
6
|
+
*
|
|
7
|
+
* @dependency dsa-icon-button
|
|
8
|
+
*
|
|
9
|
+
* @slot - Used for grouping tab panels in the tab group. Must be `<dsa-tab-panel>` elements.
|
|
10
|
+
* @slot nav - Used for grouping tabs in the tab group. Must be `<dsa-tab>` elements.
|
|
11
|
+
*
|
|
12
|
+
* @event {{ name: String }} dsa-tab-show - Emitted when a tab is shown.
|
|
13
|
+
* @event {{ name: String }} dsa-tab-hide - Emitted when a tab is hidden.
|
|
14
|
+
*/
|
|
15
|
+
export default class DSATabGroup extends ShoelaceElement {
|
|
16
|
+
static styles: CSSResultGroup;
|
|
17
|
+
private readonly localize;
|
|
18
|
+
private activeTab?;
|
|
19
|
+
private mutationObserver;
|
|
20
|
+
private resizeObserver;
|
|
21
|
+
private tabs;
|
|
22
|
+
private panels;
|
|
23
|
+
tabGroup: HTMLElement;
|
|
24
|
+
body: HTMLSlotElement;
|
|
25
|
+
nav: HTMLElement;
|
|
26
|
+
indicator: HTMLElement;
|
|
27
|
+
private hasScrollControls;
|
|
28
|
+
/**
|
|
29
|
+
* The placement of the tabs.
|
|
30
|
+
* 2023-05-09: `top` placement is the only supported option.
|
|
31
|
+
*/
|
|
32
|
+
private placement;
|
|
33
|
+
/**
|
|
34
|
+
* When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to
|
|
35
|
+
* manual, the tab will receive focus but will not show until the user presses spacebar or enter.
|
|
36
|
+
*/
|
|
37
|
+
activation: 'auto' | 'manual';
|
|
38
|
+
connectedCallback(): void;
|
|
39
|
+
disconnectedCallback(): void;
|
|
40
|
+
private getAllTabs;
|
|
41
|
+
private getAllPanels;
|
|
42
|
+
private getActiveTab;
|
|
43
|
+
private handleClick;
|
|
44
|
+
private handleKeyDown;
|
|
45
|
+
private handleScrollToStart;
|
|
46
|
+
private handleScrollToEnd;
|
|
47
|
+
private setActiveTab;
|
|
48
|
+
private setAriaLabels;
|
|
49
|
+
private repositionIndicator;
|
|
50
|
+
private syncTabsAndPanels;
|
|
51
|
+
updateScrollControls(): void;
|
|
52
|
+
syncIndicator(): void;
|
|
53
|
+
/** Shows the specified tab panel. */
|
|
54
|
+
show(panel: string): void;
|
|
55
|
+
render(): import("lit").TemplateResult<1>;
|
|
56
|
+
}
|
|
57
|
+
declare global {
|
|
58
|
+
interface HTMLElementTagNameMap {
|
|
59
|
+
'dsa-tab-group': DSATabGroup;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSATabGroup
|
|
3
|
+
} from "../../chunks/chunk.UZLQVFDR.js";
|
|
4
|
+
import "../../chunks/chunk.4A57I2HX.js";
|
|
5
|
+
import "../../chunks/chunk.EMIT7S33.js";
|
|
6
|
+
import "../../chunks/chunk.5XL2LZLC.js";
|
|
7
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
8
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
9
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
10
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
11
|
+
export {
|
|
12
|
+
DSATabGroup as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Tab panels are used inside [tab groups](/components/tab-group) to display tabbed content.
|
|
5
|
+
* @documentation https://shoelace.style/components/tab-panel
|
|
6
|
+
*
|
|
7
|
+
* @slot - The tab panel's content.
|
|
8
|
+
*/
|
|
9
|
+
export default class DSATabPanel extends ShoelaceElement {
|
|
10
|
+
static styles: CSSResultGroup;
|
|
11
|
+
private readonly attrId;
|
|
12
|
+
private readonly componentId;
|
|
13
|
+
/** The tab panel's name. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** When true, the tab panel will be shown. */
|
|
16
|
+
active: boolean;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
handleActiveChange(): void;
|
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
'dsa-tab-panel': DSATabPanel;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSATabPanel
|
|
3
|
+
} from "../../chunks/chunk.MOWTZFON.js";
|
|
4
|
+
import "../../chunks/chunk.5WAZTHII.js";
|
|
5
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
6
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
7
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
8
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
9
|
+
export {
|
|
10
|
+
DSATabPanel as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
import '../icon-button/icon-button';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Tags are used as labels to organize things or to indicate a selection.
|
|
6
|
+
* @documentation https://dsa.service-public-autonomie.fr/062dac5f6/p/51823d-tag
|
|
7
|
+
*
|
|
8
|
+
* @dependency dsa-icon-button
|
|
9
|
+
*
|
|
10
|
+
* @slot prefix - Used to prepend a presentational icon or similar element to the input.
|
|
11
|
+
* @slot suffix - Used to append a presentational icon or similar element to the input.
|
|
12
|
+
*
|
|
13
|
+
* @event dsa-remove - Emitted when the remove button is activated.
|
|
14
|
+
*/
|
|
15
|
+
export default class DSATag extends ShoelaceElement {
|
|
16
|
+
static styles: CSSResultGroup;
|
|
17
|
+
private readonly localize;
|
|
18
|
+
/** @internal */
|
|
19
|
+
disableRemovableFocus: boolean;
|
|
20
|
+
/** The tag's theme variant. */
|
|
21
|
+
variant: 'purple-100' | 'purple-200' | 'purple-300' | 'purple-400' | 'purple-500' | 'blue-100' | 'blue-200' | 'blue-300' | 'blue-400' | 'blue-500' | 'blue-600' | 'orange-100' | 'orange-200' | 'orange-300' | 'orange-400' | 'orange-500' | 'orange-600' | 'pink-100' | 'pink-200' | 'pink-300' | 'pink-400' | 'pink-500' | 'yellow-100' | 'yellow-200' | 'yellow-300' | 'yellow-400' | 'yellow-500' | 'yellow-600' | 'yellow-700' | 'green-100' | 'green-200' | 'green-300' | 'green-400' | 'green-500' | 'green-600' | 'green-700';
|
|
22
|
+
/** The tag's size. */
|
|
23
|
+
size: 'small' | 'medium' | 'large';
|
|
24
|
+
/** Makes the tag removable and shows a remove button. */
|
|
25
|
+
removable: boolean;
|
|
26
|
+
label: string;
|
|
27
|
+
private handleRemoveClick;
|
|
28
|
+
render(): import("lit").TemplateResult<1>;
|
|
29
|
+
}
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
'dsa-tag': DSATag;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSATag
|
|
3
|
+
} from "../../chunks/chunk.N6VVY6XD.js";
|
|
4
|
+
import "../../chunks/chunk.WFHOSUOX.js";
|
|
5
|
+
import "../../chunks/chunk.XSCX6TC5.js";
|
|
6
|
+
import "../../chunks/chunk.QFJA3MTV.js";
|
|
7
|
+
import "../../chunks/chunk.5XL2LZLC.js";
|
|
8
|
+
import "../../chunks/chunk.G7AELPSO.js";
|
|
9
|
+
import "../../chunks/chunk.LMJPQPQT.js";
|
|
10
|
+
import "../../chunks/chunk.7J7CS3BK.js";
|
|
11
|
+
import "../../chunks/chunk.RDGMZ5XB.js";
|
|
12
|
+
import "../../chunks/chunk.I33L3NO6.js";
|
|
13
|
+
import "../../chunks/chunk.23TOS4ZE.js";
|
|
14
|
+
import "../../chunks/chunk.XNEONNEJ.js";
|
|
15
|
+
import "../../chunks/chunk.FDYFSRSX.js";
|
|
16
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
17
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
18
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
19
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
20
|
+
export {
|
|
21
|
+
DSATag as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
import type { ShoelaceFormControl } from '../../internal/shoelace-element';
|
|
4
|
+
import '../error-text/error-text';
|
|
5
|
+
/**
|
|
6
|
+
* @summary Textareas collect data from the user and allow multiple lines of text.
|
|
7
|
+
* @documentation https://dsa.service-public-autonomie.fr/062dac5f6/p/001049-textarea
|
|
8
|
+
*
|
|
9
|
+
* @dependency dsa-error-text
|
|
10
|
+
*
|
|
11
|
+
* @slot label - The textarea's label. Alternatively, you can use the `label` attribute.
|
|
12
|
+
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
13
|
+
*
|
|
14
|
+
* @event dsa-blur - Emitted when the control loses focus.
|
|
15
|
+
* @event dsa-change - Emitted when an alteration to the control's value is committed by the user.
|
|
16
|
+
* @event dsa-focus - Emitted when the control gains focus.
|
|
17
|
+
* @event dsa-input - Emitted when the control receives input.
|
|
18
|
+
* @event dsa-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
19
|
+
*/
|
|
20
|
+
export default class DSATextarea extends ShoelaceElement implements ShoelaceFormControl {
|
|
21
|
+
static styles: CSSResultGroup;
|
|
22
|
+
private readonly formControlController;
|
|
23
|
+
private readonly hasSlotController;
|
|
24
|
+
private resizeObserver;
|
|
25
|
+
input: HTMLTextAreaElement;
|
|
26
|
+
private hasFocus;
|
|
27
|
+
title: string;
|
|
28
|
+
/** The name of the textarea, submitted as a name/value pair with form data. */
|
|
29
|
+
name: string;
|
|
30
|
+
/** The current value of the textarea, submitted as a name/value pair with form data. */
|
|
31
|
+
value: string;
|
|
32
|
+
/** The textarea's size. */
|
|
33
|
+
size: 'small' | 'medium' | 'large';
|
|
34
|
+
/** The textarea's variant. */
|
|
35
|
+
variant: 'base' | 'layer';
|
|
36
|
+
/** Indicates whether the textarea should be in error state */
|
|
37
|
+
error: boolean;
|
|
38
|
+
/** An error message that is shown when `error` is set to true */
|
|
39
|
+
errorMessage: string;
|
|
40
|
+
/** The textarea's label. If you need to display HTML, use the `label` slot instead. */
|
|
41
|
+
label: string;
|
|
42
|
+
/** The textarea's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
43
|
+
helpText: string;
|
|
44
|
+
/** Placeholder text to show as a hint when the input is empty. */
|
|
45
|
+
placeholder: string;
|
|
46
|
+
/** The number of rows to display by default. */
|
|
47
|
+
rows: number;
|
|
48
|
+
/** Controls how the textarea can be resized. */
|
|
49
|
+
resize: 'none' | 'vertical' | 'auto';
|
|
50
|
+
/** Disables the textarea. */
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
/** Makes the textarea readonly. */
|
|
53
|
+
readonly: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
56
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
57
|
+
* the same document or shadow root for this to work.
|
|
58
|
+
*/
|
|
59
|
+
form: string;
|
|
60
|
+
/** Makes the textarea a required field. */
|
|
61
|
+
required: boolean;
|
|
62
|
+
/** The minimum length of input that will be considered valid. */
|
|
63
|
+
minlength: number;
|
|
64
|
+
/** The maximum length of input that will be considered valid. */
|
|
65
|
+
maxlength: number;
|
|
66
|
+
/** Controls whether and how text input is automatically capitalized as it is entered by the user. */
|
|
67
|
+
autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
68
|
+
/** Indicates whether the browser's autocorrect feature is on or off. */
|
|
69
|
+
autocorrect: string;
|
|
70
|
+
/**
|
|
71
|
+
* Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
|
|
72
|
+
* [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
|
|
73
|
+
*/
|
|
74
|
+
autocomplete: string;
|
|
75
|
+
/** Indicates that the input should receive focus on page load. */
|
|
76
|
+
autofocus: boolean;
|
|
77
|
+
/** Used to customize the label or icon of the Enter key on virtual keyboards. */
|
|
78
|
+
enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
79
|
+
/** Enables spell checking on the textarea. */
|
|
80
|
+
spellcheck: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
|
|
83
|
+
* keyboard on supportive devices.
|
|
84
|
+
*/
|
|
85
|
+
inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
86
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
87
|
+
defaultValue: string;
|
|
88
|
+
/** Gets the validity state object */
|
|
89
|
+
get validity(): ValidityState;
|
|
90
|
+
/** Gets the validation message */
|
|
91
|
+
get validationMessage(): string;
|
|
92
|
+
connectedCallback(): void;
|
|
93
|
+
firstUpdated(): void;
|
|
94
|
+
disconnectedCallback(): void;
|
|
95
|
+
private handleBlur;
|
|
96
|
+
private handleChange;
|
|
97
|
+
private handleFocus;
|
|
98
|
+
private handleInput;
|
|
99
|
+
private handleInvalid;
|
|
100
|
+
private setTextareaHeight;
|
|
101
|
+
handleErrorChange(): void;
|
|
102
|
+
handleDisabledChange(): void;
|
|
103
|
+
handleRowsChange(): void;
|
|
104
|
+
handleValueChange(): Promise<void>;
|
|
105
|
+
/** Sets focus on the textarea. */
|
|
106
|
+
focus(options?: FocusOptions): void;
|
|
107
|
+
/** Removes focus from the textarea. */
|
|
108
|
+
blur(): void;
|
|
109
|
+
/** Selects all the text in the textarea. */
|
|
110
|
+
select(): void;
|
|
111
|
+
/** Gets or sets the textarea's scroll position. */
|
|
112
|
+
scrollPosition(position?: {
|
|
113
|
+
top?: number;
|
|
114
|
+
left?: number;
|
|
115
|
+
}): {
|
|
116
|
+
top: number;
|
|
117
|
+
left: number;
|
|
118
|
+
} | undefined;
|
|
119
|
+
/** Sets the start and end positions of the text selection (0-based). */
|
|
120
|
+
setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: 'forward' | 'backward' | 'none'): void;
|
|
121
|
+
/** Replaces a range of text with a new string. */
|
|
122
|
+
setRangeText(replacement: string, start?: number, end?: number, selectMode?: 'select' | 'start' | 'end' | 'preserve'): void;
|
|
123
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
124
|
+
checkValidity(): boolean;
|
|
125
|
+
/** Gets the associated form, if one exists. */
|
|
126
|
+
getForm(): HTMLFormElement | null;
|
|
127
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
128
|
+
reportValidity(): boolean;
|
|
129
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
130
|
+
setCustomValidity(message: string): void;
|
|
131
|
+
render(): import("lit").TemplateResult<1>;
|
|
132
|
+
}
|
|
133
|
+
declare global {
|
|
134
|
+
interface HTMLElementTagNameMap {
|
|
135
|
+
'dsa-textarea': DSATextarea;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSATextarea
|
|
3
|
+
} from "../../chunks/chunk.NDEZEB3Z.js";
|
|
4
|
+
import "../../chunks/chunk.VRY3E2XG.js";
|
|
5
|
+
import "../../chunks/chunk.GI7VDIWX.js";
|
|
6
|
+
import "../../chunks/chunk.CPXD6UYZ.js";
|
|
7
|
+
import "../../chunks/chunk.EYZGEU3G.js";
|
|
8
|
+
import "../../chunks/chunk.KIFBWPW5.js";
|
|
9
|
+
import "../../chunks/chunk.YIY5RM53.js";
|
|
10
|
+
import "../../chunks/chunk.3RBCYA4F.js";
|
|
11
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
12
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
13
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
14
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
15
|
+
export {
|
|
16
|
+
DSATextarea as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
import '../popup/popup';
|
|
4
|
+
import type DSAPopup from '../popup/popup';
|
|
5
|
+
/**
|
|
6
|
+
* @summary Tooltips display additional information based on a specific action.
|
|
7
|
+
* @documentation https://dsa.service-public-autonomie.fr/062dac5f6/p/06f8ea-tooltip
|
|
8
|
+
*
|
|
9
|
+
* @dependency dsa-popup
|
|
10
|
+
*
|
|
11
|
+
* @slot - The tooltip's target element. Avoid slotting in more than one element, as subsequent ones will be ignored.
|
|
12
|
+
* @slot content - The content to render in the tooltip. Alternatively, you can use the `content` attribute.
|
|
13
|
+
*
|
|
14
|
+
* @event dsa-show - Emitted when the tooltip begins to show.
|
|
15
|
+
* @event dsa-after-show - Emitted after the tooltip has shown and all animations are complete.
|
|
16
|
+
* @event dsa-hide - Emitted when the tooltip begins to hide.
|
|
17
|
+
* @event dsa-after-hide - Emitted after the tooltip has hidden and all animations are complete.
|
|
18
|
+
*
|
|
19
|
+
* @cssproperty --max-width - The maximum width of the tooltip before its content will wrap.
|
|
20
|
+
* @cssproperty --hide-delay - The amount of time to wait before hiding the tooltip when hovering.
|
|
21
|
+
* @cssproperty --show-delay - The amount of time to wait before showing the tooltip when hovering.
|
|
22
|
+
*/
|
|
23
|
+
export default class DSATooltip extends ShoelaceElement {
|
|
24
|
+
static styles: CSSResultGroup;
|
|
25
|
+
private hoverTimeout;
|
|
26
|
+
private readonly localize;
|
|
27
|
+
defaultSlot: HTMLSlotElement;
|
|
28
|
+
body: HTMLElement;
|
|
29
|
+
popup: DSAPopup;
|
|
30
|
+
/** The tooltip's content. If you need to display HTML, use the `content` slot instead. */
|
|
31
|
+
content: string;
|
|
32
|
+
/**
|
|
33
|
+
* The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip
|
|
34
|
+
* inside of the viewport.
|
|
35
|
+
*/
|
|
36
|
+
placement: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
37
|
+
/** Disables the tooltip so it won't show when triggered. */
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
/** The distance in pixels from which to offset the tooltip away from its target. */
|
|
40
|
+
distance: number;
|
|
41
|
+
/** Indicates whether or not the tooltip is open. You can use this in lieu of the show/hide methods. */
|
|
42
|
+
open: boolean;
|
|
43
|
+
/** The distance in pixels from which to offset the tooltip along its target. */
|
|
44
|
+
skidding: number;
|
|
45
|
+
/**
|
|
46
|
+
* Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple
|
|
47
|
+
* options can be passed by separating them with a space. When manual is used, the tooltip must be activated
|
|
48
|
+
* programmatically.
|
|
49
|
+
*/
|
|
50
|
+
trigger: string;
|
|
51
|
+
/**
|
|
52
|
+
* Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with
|
|
53
|
+
* `overflow: auto|hidden|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all,
|
|
54
|
+
* scenarios.
|
|
55
|
+
*/
|
|
56
|
+
hoist: boolean;
|
|
57
|
+
connectedCallback(): void;
|
|
58
|
+
firstUpdated(): void;
|
|
59
|
+
disconnectedCallback(): void;
|
|
60
|
+
private handleBlur;
|
|
61
|
+
private handleClick;
|
|
62
|
+
private handleFocus;
|
|
63
|
+
private handleKeyDown;
|
|
64
|
+
private handleMouseOver;
|
|
65
|
+
private handleMouseOut;
|
|
66
|
+
private hasTrigger;
|
|
67
|
+
handleOpenChange(): Promise<void>;
|
|
68
|
+
handleOptionsChange(): Promise<void>;
|
|
69
|
+
handleDisabledChange(): void;
|
|
70
|
+
/** Shows the tooltip. */
|
|
71
|
+
show(): Promise<void>;
|
|
72
|
+
/** Hides the tooltip */
|
|
73
|
+
hide(): Promise<void>;
|
|
74
|
+
render(): import("lit").TemplateResult<1>;
|
|
75
|
+
}
|
|
76
|
+
declare global {
|
|
77
|
+
interface HTMLElementTagNameMap {
|
|
78
|
+
'dsa-tooltip': DSATooltip;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSATooltip
|
|
3
|
+
} from "../../chunks/chunk.BEB47LM2.js";
|
|
4
|
+
import "../../chunks/chunk.EMJZLQCL.js";
|
|
5
|
+
import "../../chunks/chunk.ENKP2IFW.js";
|
|
6
|
+
import "../../chunks/chunk.6PS5KB3O.js";
|
|
7
|
+
import "../../chunks/chunk.B4BZKR24.js";
|
|
8
|
+
import "../../chunks/chunk.2FK6USFR.js";
|
|
9
|
+
import "../../chunks/chunk.V7RJROLH.js";
|
|
10
|
+
import "../../chunks/chunk.5XL2LZLC.js";
|
|
11
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
12
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
13
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
14
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
15
|
+
export {
|
|
16
|
+
DSATooltip as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import { ShoelaceElement } from '../../internal/shoelace-element';
|
|
3
|
+
import DSATreeItem from '../tree-item/tree-item';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Trees allow you to display a hierarchical list of selectable [tree items](/components/tree-item). Items with children can be expanded and collapsed as desired by the user.
|
|
6
|
+
* @documentation https://shoelace.style/components/tree
|
|
7
|
+
*
|
|
8
|
+
* @event {{ selection: DSATreeItem[] }} dsa-selection-change - Emitted when a tree item is selected or deselected.
|
|
9
|
+
*
|
|
10
|
+
* @slot - The default slot.
|
|
11
|
+
* @csspart base - The component's base wrapper.
|
|
12
|
+
*/
|
|
13
|
+
export default class DSATree extends ShoelaceElement {
|
|
14
|
+
static styles: CSSResultGroup;
|
|
15
|
+
defaultSlot: HTMLSlotElement;
|
|
16
|
+
expandedIconSlot: HTMLSlotElement;
|
|
17
|
+
collapsedIconSlot: HTMLSlotElement;
|
|
18
|
+
/**
|
|
19
|
+
* The selection behavior of the tree. Single selection allows only one node to be selected at a time. Multiple
|
|
20
|
+
* displays checkboxes and allows more than one node to be selected. Leaf allows only leaf nodes to be selected.
|
|
21
|
+
*/
|
|
22
|
+
selection: 'single' | 'multiple' | 'leaf';
|
|
23
|
+
private lastFocusedItem;
|
|
24
|
+
private readonly localize;
|
|
25
|
+
private mutationObserver;
|
|
26
|
+
private clickTarget;
|
|
27
|
+
connectedCallback(): Promise<void>;
|
|
28
|
+
disconnectedCallback(): void;
|
|
29
|
+
private getExpandButtonIcon;
|
|
30
|
+
private initTreeItem;
|
|
31
|
+
private handleTreeChanged;
|
|
32
|
+
private syncTreeItems;
|
|
33
|
+
private selectItem;
|
|
34
|
+
private getAllTreeItems;
|
|
35
|
+
private focusItem;
|
|
36
|
+
private handleKeyDown;
|
|
37
|
+
private handleClick;
|
|
38
|
+
handleMouseDown(event: MouseEvent): void;
|
|
39
|
+
private handleFocusOut;
|
|
40
|
+
private handleFocusIn;
|
|
41
|
+
private handleSlotChange;
|
|
42
|
+
handleSelectionChange(): Promise<void>;
|
|
43
|
+
/** @internal Returns the list of tree items that are selected in the tree. */
|
|
44
|
+
get selectedItems(): DSATreeItem[];
|
|
45
|
+
/** @internal Gets focusable tree items in the tree. */
|
|
46
|
+
getFocusableItems(): DSATreeItem[];
|
|
47
|
+
render(): import("lit").TemplateResult<1>;
|
|
48
|
+
}
|
|
49
|
+
declare global {
|
|
50
|
+
interface HTMLElementTagNameMap {
|
|
51
|
+
'dsa-tree': DSATree;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DSATree
|
|
3
|
+
} from "../../chunks/chunk.QKNNLZ2M.js";
|
|
4
|
+
import "../../chunks/chunk.73T7TU6S.js";
|
|
5
|
+
import "../../chunks/chunk.7ZCCXTFG.js";
|
|
6
|
+
import "../../chunks/chunk.EKWYMXQO.js";
|
|
7
|
+
import "../../chunks/chunk.WHK7EFIM.js";
|
|
8
|
+
import "../../chunks/chunk.GI7VDIWX.js";
|
|
9
|
+
import "../../chunks/chunk.CPXD6UYZ.js";
|
|
10
|
+
import "../../chunks/chunk.EYZGEU3G.js";
|
|
11
|
+
import "../../chunks/chunk.K6WCEYZI.js";
|
|
12
|
+
import "../../chunks/chunk.S4ATPBQN.js";
|
|
13
|
+
import "../../chunks/chunk.KIFBWPW5.js";
|
|
14
|
+
import "../../chunks/chunk.WE6IG5XG.js";
|
|
15
|
+
import "../../chunks/chunk.3RBCYA4F.js";
|
|
16
|
+
import "../../chunks/chunk.2FK6USFR.js";
|
|
17
|
+
import "../../chunks/chunk.V7RJROLH.js";
|
|
18
|
+
import "../../chunks/chunk.5XL2LZLC.js";
|
|
19
|
+
import "../../chunks/chunk.G7AELPSO.js";
|
|
20
|
+
import "../../chunks/chunk.LMJPQPQT.js";
|
|
21
|
+
import "../../chunks/chunk.7J7CS3BK.js";
|
|
22
|
+
import "../../chunks/chunk.RDGMZ5XB.js";
|
|
23
|
+
import "../../chunks/chunk.I33L3NO6.js";
|
|
24
|
+
import "../../chunks/chunk.23TOS4ZE.js";
|
|
25
|
+
import "../../chunks/chunk.XNEONNEJ.js";
|
|
26
|
+
import "../../chunks/chunk.FDYFSRSX.js";
|
|
27
|
+
import "../../chunks/chunk.D7CATJYB.js";
|
|
28
|
+
import "../../chunks/chunk.YCXTCVAZ.js";
|
|
29
|
+
import "../../chunks/chunk.TUVJKY7S.js";
|
|
30
|
+
import "../../chunks/chunk.6M63UXML.js";
|
|
31
|
+
export {
|
|
32
|
+
DSATree as default
|
|
33
|
+
};
|