@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,420 @@
|
|
|
1
|
+
import {
|
|
2
|
+
drawer_styles_default
|
|
3
|
+
} from "./chunk.DXVNWE2M.js";
|
|
4
|
+
import {
|
|
5
|
+
Modal
|
|
6
|
+
} from "./chunk.ISAFRNR2.js";
|
|
7
|
+
import {
|
|
8
|
+
lockBodyScrolling,
|
|
9
|
+
unlockBodyScrolling
|
|
10
|
+
} from "./chunk.EMIT7S33.js";
|
|
11
|
+
import {
|
|
12
|
+
HasSlotController
|
|
13
|
+
} from "./chunk.YIY5RM53.js";
|
|
14
|
+
import {
|
|
15
|
+
waitForEvent
|
|
16
|
+
} from "./chunk.B4BZKR24.js";
|
|
17
|
+
import {
|
|
18
|
+
animateTo,
|
|
19
|
+
stopAnimations
|
|
20
|
+
} from "./chunk.2FK6USFR.js";
|
|
21
|
+
import {
|
|
22
|
+
getAnimation,
|
|
23
|
+
setDefaultAnimation
|
|
24
|
+
} from "./chunk.V7RJROLH.js";
|
|
25
|
+
import {
|
|
26
|
+
LocalizeController
|
|
27
|
+
} from "./chunk.5XL2LZLC.js";
|
|
28
|
+
import {
|
|
29
|
+
watch
|
|
30
|
+
} from "./chunk.D7CATJYB.js";
|
|
31
|
+
import {
|
|
32
|
+
ShoelaceElement
|
|
33
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
34
|
+
import {
|
|
35
|
+
__decorateClass
|
|
36
|
+
} from "./chunk.6M63UXML.js";
|
|
37
|
+
|
|
38
|
+
// src/components/drawer/drawer.ts
|
|
39
|
+
import { html } from "lit";
|
|
40
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
41
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
42
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
43
|
+
|
|
44
|
+
// src/internal/string.ts
|
|
45
|
+
function uppercaseFirstLetter(string) {
|
|
46
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// src/components/drawer/drawer.ts
|
|
50
|
+
var DSADrawer = class extends ShoelaceElement {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(...arguments);
|
|
53
|
+
this.hasSlotController = new HasSlotController(this, "footer");
|
|
54
|
+
this.localize = new LocalizeController(this);
|
|
55
|
+
this.open = false;
|
|
56
|
+
this.label = "";
|
|
57
|
+
this.placement = "end";
|
|
58
|
+
this.contained = false;
|
|
59
|
+
this.noHeader = false;
|
|
60
|
+
}
|
|
61
|
+
connectedCallback() {
|
|
62
|
+
super.connectedCallback();
|
|
63
|
+
this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
|
|
64
|
+
this.modal = new Modal(this);
|
|
65
|
+
}
|
|
66
|
+
firstUpdated() {
|
|
67
|
+
this.drawer.hidden = !this.open;
|
|
68
|
+
if (this.open) {
|
|
69
|
+
this.addOpenListeners();
|
|
70
|
+
if (!this.contained) {
|
|
71
|
+
this.modal.activate();
|
|
72
|
+
lockBodyScrolling(this);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
disconnectedCallback() {
|
|
77
|
+
super.disconnectedCallback();
|
|
78
|
+
unlockBodyScrolling(this);
|
|
79
|
+
}
|
|
80
|
+
requestClose(source) {
|
|
81
|
+
const dsaRequestClose = this.emit("dsa-request-close", {
|
|
82
|
+
cancelable: true,
|
|
83
|
+
detail: { source }
|
|
84
|
+
});
|
|
85
|
+
if (dsaRequestClose.defaultPrevented) {
|
|
86
|
+
const animation = getAnimation(this, "drawer.denyClose", {
|
|
87
|
+
dir: this.localize.dir()
|
|
88
|
+
});
|
|
89
|
+
animateTo(this.panel, animation.keyframes, animation.options);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this.hide();
|
|
93
|
+
}
|
|
94
|
+
addOpenListeners() {
|
|
95
|
+
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
96
|
+
}
|
|
97
|
+
removeOpenListeners() {
|
|
98
|
+
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
99
|
+
}
|
|
100
|
+
handleDocumentKeyDown(event) {
|
|
101
|
+
if (this.open && !this.contained && event.key === "Escape") {
|
|
102
|
+
event.stopPropagation();
|
|
103
|
+
this.requestClose("keyboard");
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
async handleOpenChange() {
|
|
107
|
+
if (this.open) {
|
|
108
|
+
this.emit("dsa-show");
|
|
109
|
+
this.addOpenListeners();
|
|
110
|
+
this.originalTrigger = document.activeElement;
|
|
111
|
+
if (!this.contained) {
|
|
112
|
+
this.modal.activate();
|
|
113
|
+
lockBodyScrolling(this);
|
|
114
|
+
}
|
|
115
|
+
const autoFocusTarget = this.querySelector("[autofocus]");
|
|
116
|
+
if (autoFocusTarget) {
|
|
117
|
+
autoFocusTarget.removeAttribute("autofocus");
|
|
118
|
+
}
|
|
119
|
+
await Promise.all([
|
|
120
|
+
stopAnimations(this.drawer),
|
|
121
|
+
stopAnimations(this.overlay)
|
|
122
|
+
]);
|
|
123
|
+
this.drawer.hidden = false;
|
|
124
|
+
requestAnimationFrame(() => {
|
|
125
|
+
const dsaInitialFocus = this.emit("dsa-initial-focus", {
|
|
126
|
+
cancelable: true
|
|
127
|
+
});
|
|
128
|
+
if (!dsaInitialFocus.defaultPrevented) {
|
|
129
|
+
if (autoFocusTarget) {
|
|
130
|
+
autoFocusTarget.focus({
|
|
131
|
+
preventScroll: true
|
|
132
|
+
});
|
|
133
|
+
} else {
|
|
134
|
+
this.panel.focus({ preventScroll: true });
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (autoFocusTarget) {
|
|
138
|
+
autoFocusTarget.setAttribute("autofocus", "");
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
const panelAnimation = getAnimation(
|
|
142
|
+
this,
|
|
143
|
+
`drawer.show${uppercaseFirstLetter(this.placement)}`,
|
|
144
|
+
{
|
|
145
|
+
dir: this.localize.dir()
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
const overlayAnimation = getAnimation(this, "drawer.overlay.show", {
|
|
149
|
+
dir: this.localize.dir()
|
|
150
|
+
});
|
|
151
|
+
await Promise.all([
|
|
152
|
+
animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options),
|
|
153
|
+
animateTo(
|
|
154
|
+
this.overlay,
|
|
155
|
+
overlayAnimation.keyframes,
|
|
156
|
+
overlayAnimation.options
|
|
157
|
+
)
|
|
158
|
+
]);
|
|
159
|
+
this.emit("dsa-after-show");
|
|
160
|
+
} else {
|
|
161
|
+
this.emit("dsa-hide");
|
|
162
|
+
this.removeOpenListeners();
|
|
163
|
+
if (!this.contained) {
|
|
164
|
+
this.modal.deactivate();
|
|
165
|
+
unlockBodyScrolling(this);
|
|
166
|
+
}
|
|
167
|
+
await Promise.all([
|
|
168
|
+
stopAnimations(this.drawer),
|
|
169
|
+
stopAnimations(this.overlay)
|
|
170
|
+
]);
|
|
171
|
+
const panelAnimation = getAnimation(
|
|
172
|
+
this,
|
|
173
|
+
`drawer.hide${uppercaseFirstLetter(this.placement)}`,
|
|
174
|
+
{
|
|
175
|
+
dir: this.localize.dir()
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
const overlayAnimation = getAnimation(this, "drawer.overlay.hide", {
|
|
179
|
+
dir: this.localize.dir()
|
|
180
|
+
});
|
|
181
|
+
await Promise.all([
|
|
182
|
+
animateTo(
|
|
183
|
+
this.overlay,
|
|
184
|
+
overlayAnimation.keyframes,
|
|
185
|
+
overlayAnimation.options
|
|
186
|
+
).then(() => {
|
|
187
|
+
this.overlay.hidden = true;
|
|
188
|
+
}),
|
|
189
|
+
animateTo(
|
|
190
|
+
this.panel,
|
|
191
|
+
panelAnimation.keyframes,
|
|
192
|
+
panelAnimation.options
|
|
193
|
+
).then(() => {
|
|
194
|
+
this.panel.hidden = true;
|
|
195
|
+
})
|
|
196
|
+
]);
|
|
197
|
+
this.drawer.hidden = true;
|
|
198
|
+
this.overlay.hidden = false;
|
|
199
|
+
this.panel.hidden = false;
|
|
200
|
+
const trigger = this.originalTrigger;
|
|
201
|
+
if (typeof (trigger == null ? void 0 : trigger.focus) === "function") {
|
|
202
|
+
setTimeout(() => trigger.focus());
|
|
203
|
+
}
|
|
204
|
+
this.emit("dsa-after-hide");
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
handleNoModalChange() {
|
|
208
|
+
if (this.open && !this.contained) {
|
|
209
|
+
this.modal.activate();
|
|
210
|
+
lockBodyScrolling(this);
|
|
211
|
+
}
|
|
212
|
+
if (this.open && this.contained) {
|
|
213
|
+
this.modal.deactivate();
|
|
214
|
+
unlockBodyScrolling(this);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
/** Shows the drawer. */
|
|
218
|
+
async show() {
|
|
219
|
+
if (this.open) {
|
|
220
|
+
return void 0;
|
|
221
|
+
}
|
|
222
|
+
this.open = true;
|
|
223
|
+
return await waitForEvent(this, "dsa-after-show");
|
|
224
|
+
}
|
|
225
|
+
/** Hides the drawer */
|
|
226
|
+
async hide() {
|
|
227
|
+
if (!this.open) {
|
|
228
|
+
return void 0;
|
|
229
|
+
}
|
|
230
|
+
this.open = false;
|
|
231
|
+
return await waitForEvent(this, "dsa-after-hide");
|
|
232
|
+
}
|
|
233
|
+
render() {
|
|
234
|
+
return html`
|
|
235
|
+
<div
|
|
236
|
+
part="base"
|
|
237
|
+
class=${classMap({
|
|
238
|
+
drawer: true,
|
|
239
|
+
"drawer--open": this.open,
|
|
240
|
+
"drawer--top": this.placement === "top",
|
|
241
|
+
"drawer--end": this.placement === "end",
|
|
242
|
+
"drawer--bottom": this.placement === "bottom",
|
|
243
|
+
"drawer--start": this.placement === "start",
|
|
244
|
+
"drawer--contained": this.contained,
|
|
245
|
+
"drawer--fixed": !this.contained,
|
|
246
|
+
"drawer--rtl": this.localize.dir() === "rtl",
|
|
247
|
+
"drawer--has-footer": this.hasSlotController.test("footer")
|
|
248
|
+
})}
|
|
249
|
+
>
|
|
250
|
+
<div
|
|
251
|
+
part="overlay"
|
|
252
|
+
class="drawer__overlay"
|
|
253
|
+
@click=${() => this.requestClose("overlay")}
|
|
254
|
+
tabindex="-1"
|
|
255
|
+
></div>
|
|
256
|
+
|
|
257
|
+
<div
|
|
258
|
+
part="panel"
|
|
259
|
+
class="drawer__panel"
|
|
260
|
+
role="dialog"
|
|
261
|
+
aria-modal="true"
|
|
262
|
+
aria-hidden=${this.open ? "false" : "true"}
|
|
263
|
+
aria-label=${ifDefined(this.noHeader ? this.label : void 0)}
|
|
264
|
+
aria-labelledby=${ifDefined(!this.noHeader ? "title" : void 0)}
|
|
265
|
+
tabindex="0"
|
|
266
|
+
>
|
|
267
|
+
${!this.noHeader ? html`
|
|
268
|
+
<header part="header" class="drawer__header">
|
|
269
|
+
<h1 part="title" class="drawer__title" id="title">
|
|
270
|
+
<!-- If there's no label, use an invisible character to prevent the header from collapsing -->
|
|
271
|
+
<slot name="label">
|
|
272
|
+
${this.label.length > 0 ? this.label : String.fromCharCode(65279)}
|
|
273
|
+
</slot>
|
|
274
|
+
</h1>
|
|
275
|
+
<div part="header-actions" class="drawer__header-actions">
|
|
276
|
+
<slot name="header-actions"></slot>
|
|
277
|
+
<dsa-icon-button
|
|
278
|
+
part="close-button"
|
|
279
|
+
exportparts="base:close-button__base"
|
|
280
|
+
class="drawer__close"
|
|
281
|
+
name="close"
|
|
282
|
+
label=${this.localize.term("close")}
|
|
283
|
+
@click=${() => this.requestClose("close-button")}
|
|
284
|
+
></dsa-icon-button>
|
|
285
|
+
</div>
|
|
286
|
+
</header>
|
|
287
|
+
` : ""}
|
|
288
|
+
|
|
289
|
+
<slot part="body" class="drawer__body"></slot>
|
|
290
|
+
|
|
291
|
+
<footer part="footer" class="drawer__footer">
|
|
292
|
+
<slot name="footer"></slot>
|
|
293
|
+
</footer>
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
`;
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
DSADrawer.styles = drawer_styles_default;
|
|
300
|
+
__decorateClass([
|
|
301
|
+
query(".drawer")
|
|
302
|
+
], DSADrawer.prototype, "drawer", 2);
|
|
303
|
+
__decorateClass([
|
|
304
|
+
query(".drawer__panel")
|
|
305
|
+
], DSADrawer.prototype, "panel", 2);
|
|
306
|
+
__decorateClass([
|
|
307
|
+
query(".drawer__overlay")
|
|
308
|
+
], DSADrawer.prototype, "overlay", 2);
|
|
309
|
+
__decorateClass([
|
|
310
|
+
property({ type: Boolean, reflect: true })
|
|
311
|
+
], DSADrawer.prototype, "open", 2);
|
|
312
|
+
__decorateClass([
|
|
313
|
+
property({ reflect: true })
|
|
314
|
+
], DSADrawer.prototype, "label", 2);
|
|
315
|
+
__decorateClass([
|
|
316
|
+
property({ reflect: true })
|
|
317
|
+
], DSADrawer.prototype, "placement", 2);
|
|
318
|
+
__decorateClass([
|
|
319
|
+
property({ type: Boolean, reflect: true })
|
|
320
|
+
], DSADrawer.prototype, "contained", 2);
|
|
321
|
+
__decorateClass([
|
|
322
|
+
property({ attribute: "no-header", type: Boolean, reflect: true })
|
|
323
|
+
], DSADrawer.prototype, "noHeader", 2);
|
|
324
|
+
__decorateClass([
|
|
325
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
326
|
+
], DSADrawer.prototype, "handleOpenChange", 1);
|
|
327
|
+
__decorateClass([
|
|
328
|
+
watch("contained", { waitUntilFirstUpdate: true })
|
|
329
|
+
], DSADrawer.prototype, "handleNoModalChange", 1);
|
|
330
|
+
DSADrawer = __decorateClass([
|
|
331
|
+
customElement("dsa-drawer")
|
|
332
|
+
], DSADrawer);
|
|
333
|
+
setDefaultAnimation("drawer.showTop", {
|
|
334
|
+
keyframes: [
|
|
335
|
+
{ opacity: 0, translate: "0 -100%" },
|
|
336
|
+
{ opacity: 1, translate: "0 0" }
|
|
337
|
+
],
|
|
338
|
+
options: { duration: 250, easing: "ease" }
|
|
339
|
+
});
|
|
340
|
+
setDefaultAnimation("drawer.hideTop", {
|
|
341
|
+
keyframes: [
|
|
342
|
+
{ opacity: 1, translate: "0 0" },
|
|
343
|
+
{ opacity: 0, translate: "0 -100%" }
|
|
344
|
+
],
|
|
345
|
+
options: { duration: 250, easing: "ease" }
|
|
346
|
+
});
|
|
347
|
+
setDefaultAnimation("drawer.showEnd", {
|
|
348
|
+
keyframes: [
|
|
349
|
+
{ opacity: 0, translate: "100%" },
|
|
350
|
+
{ opacity: 1, translate: "0" }
|
|
351
|
+
],
|
|
352
|
+
rtlKeyframes: [
|
|
353
|
+
{ opacity: 0, translate: "-100%" },
|
|
354
|
+
{ opacity: 1, translate: "0" }
|
|
355
|
+
],
|
|
356
|
+
options: { duration: 250, easing: "ease" }
|
|
357
|
+
});
|
|
358
|
+
setDefaultAnimation("drawer.hideEnd", {
|
|
359
|
+
keyframes: [
|
|
360
|
+
{ opacity: 1, translate: "0" },
|
|
361
|
+
{ opacity: 0, translate: "100%" }
|
|
362
|
+
],
|
|
363
|
+
rtlKeyframes: [
|
|
364
|
+
{ opacity: 1, translate: "0" },
|
|
365
|
+
{ opacity: 0, translate: "-100%" }
|
|
366
|
+
],
|
|
367
|
+
options: { duration: 250, easing: "ease" }
|
|
368
|
+
});
|
|
369
|
+
setDefaultAnimation("drawer.showBottom", {
|
|
370
|
+
keyframes: [
|
|
371
|
+
{ opacity: 0, translate: "0 100%" },
|
|
372
|
+
{ opacity: 1, translate: "0 0" }
|
|
373
|
+
],
|
|
374
|
+
options: { duration: 250, easing: "ease" }
|
|
375
|
+
});
|
|
376
|
+
setDefaultAnimation("drawer.hideBottom", {
|
|
377
|
+
keyframes: [
|
|
378
|
+
{ opacity: 1, translate: "0 0" },
|
|
379
|
+
{ opacity: 0, translate: "0 100%" }
|
|
380
|
+
],
|
|
381
|
+
options: { duration: 250, easing: "ease" }
|
|
382
|
+
});
|
|
383
|
+
setDefaultAnimation("drawer.showStart", {
|
|
384
|
+
keyframes: [
|
|
385
|
+
{ opacity: 0, translate: "-100%" },
|
|
386
|
+
{ opacity: 1, translate: "0" }
|
|
387
|
+
],
|
|
388
|
+
rtlKeyframes: [
|
|
389
|
+
{ opacity: 0, translate: "100%" },
|
|
390
|
+
{ opacity: 1, translate: "0" }
|
|
391
|
+
],
|
|
392
|
+
options: { duration: 250, easing: "ease" }
|
|
393
|
+
});
|
|
394
|
+
setDefaultAnimation("drawer.hideStart", {
|
|
395
|
+
keyframes: [
|
|
396
|
+
{ opacity: 1, translate: "0" },
|
|
397
|
+
{ opacity: 0, translate: "-100%" }
|
|
398
|
+
],
|
|
399
|
+
rtlKeyframes: [
|
|
400
|
+
{ opacity: 1, translate: "0" },
|
|
401
|
+
{ opacity: 0, translate: "100%" }
|
|
402
|
+
],
|
|
403
|
+
options: { duration: 250, easing: "ease" }
|
|
404
|
+
});
|
|
405
|
+
setDefaultAnimation("drawer.denyClose", {
|
|
406
|
+
keyframes: [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }],
|
|
407
|
+
options: { duration: 250 }
|
|
408
|
+
});
|
|
409
|
+
setDefaultAnimation("drawer.overlay.show", {
|
|
410
|
+
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
411
|
+
options: { duration: 250 }
|
|
412
|
+
});
|
|
413
|
+
setDefaultAnimation("drawer.overlay.hide", {
|
|
414
|
+
keyframes: [{ opacity: 1 }, { opacity: 0 }],
|
|
415
|
+
options: { duration: 250 }
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
export {
|
|
419
|
+
DSADrawer
|
|
420
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resize_observer_styles_default
|
|
3
|
+
} from "./chunk.RMCOWJOW.js";
|
|
4
|
+
import {
|
|
5
|
+
watch
|
|
6
|
+
} from "./chunk.D7CATJYB.js";
|
|
7
|
+
import {
|
|
8
|
+
ShoelaceElement
|
|
9
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
10
|
+
import {
|
|
11
|
+
__decorateClass
|
|
12
|
+
} from "./chunk.6M63UXML.js";
|
|
13
|
+
|
|
14
|
+
// src/components/resize-observer/resize-observer.ts
|
|
15
|
+
import { html } from "lit";
|
|
16
|
+
import { customElement, property } from "lit/decorators.js";
|
|
17
|
+
var DSAResizeObserver = class extends ShoelaceElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.observedElements = [];
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
}
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
super.connectedCallback();
|
|
25
|
+
this.resizeObserver = new ResizeObserver(
|
|
26
|
+
(entries) => {
|
|
27
|
+
this.emit("dsa-resize", { detail: { entries } });
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
if (!this.disabled) {
|
|
31
|
+
this.startObserver();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
disconnectedCallback() {
|
|
35
|
+
super.disconnectedCallback();
|
|
36
|
+
this.stopObserver();
|
|
37
|
+
}
|
|
38
|
+
handleSlotChange() {
|
|
39
|
+
if (!this.disabled) {
|
|
40
|
+
this.startObserver();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
startObserver() {
|
|
44
|
+
const slot = this.shadowRoot.querySelector("slot");
|
|
45
|
+
if (slot !== null) {
|
|
46
|
+
const elements = slot.assignedElements({
|
|
47
|
+
flatten: true
|
|
48
|
+
});
|
|
49
|
+
this.observedElements.forEach((el) => this.resizeObserver.unobserve(el));
|
|
50
|
+
this.observedElements = [];
|
|
51
|
+
elements.forEach((el) => {
|
|
52
|
+
this.resizeObserver.observe(el);
|
|
53
|
+
this.observedElements.push(el);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
stopObserver() {
|
|
58
|
+
this.resizeObserver.disconnect();
|
|
59
|
+
}
|
|
60
|
+
handleDisabledChange() {
|
|
61
|
+
if (this.disabled) {
|
|
62
|
+
this.stopObserver();
|
|
63
|
+
} else {
|
|
64
|
+
this.startObserver();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return html` <slot @slotchange=${this.handleSlotChange}></slot> `;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
DSAResizeObserver.styles = resize_observer_styles_default;
|
|
72
|
+
__decorateClass([
|
|
73
|
+
property({ type: Boolean, reflect: true })
|
|
74
|
+
], DSAResizeObserver.prototype, "disabled", 2);
|
|
75
|
+
__decorateClass([
|
|
76
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
77
|
+
], DSAResizeObserver.prototype, "handleDisabledChange", 1);
|
|
78
|
+
DSAResizeObserver = __decorateClass([
|
|
79
|
+
customElement("dsa-resize-observer")
|
|
80
|
+
], DSAResizeObserver);
|
|
81
|
+
|
|
82
|
+
export {
|
|
83
|
+
DSAResizeObserver
|
|
84
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
22
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
23
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
24
|
+
if (decorator = decorators[i])
|
|
25
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
26
|
+
if (kind && result)
|
|
27
|
+
__defProp(target, key, result);
|
|
28
|
+
return result;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
__spreadValues,
|
|
33
|
+
__spreadProps,
|
|
34
|
+
__decorateClass
|
|
35
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/popup/popup.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var popup_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
--arrow-color: var(--dsa-color-primitives-neutral-900);
|
|
12
|
+
--arrow-size: 6px;
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
|
|
16
|
+
* 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.
|
|
17
|
+
*/
|
|
18
|
+
--arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
|
|
19
|
+
--arrow-padding-offset: calc(
|
|
20
|
+
var(--arrow-size-diagonal) - var(--arrow-size)
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
display: contents;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.popup {
|
|
27
|
+
position: absolute;
|
|
28
|
+
isolation: isolate;
|
|
29
|
+
max-width: var(--auto-size-available-width, none);
|
|
30
|
+
max-height: var(--auto-size-available-height, none);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.popup--fixed {
|
|
34
|
+
position: fixed;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.popup:not(.popup--active) {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.popup__arrow {
|
|
42
|
+
position: absolute;
|
|
43
|
+
width: calc(var(--arrow-size-diagonal) * 2);
|
|
44
|
+
height: calc(var(--arrow-size-diagonal) * 2);
|
|
45
|
+
rotate: 45deg;
|
|
46
|
+
background: var(--arrow-color);
|
|
47
|
+
z-index: -1;
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
popup_styles_default
|
|
53
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// src/components/input-phone/input-phone.utils.ts
|
|
2
|
+
import { html } from "lit";
|
|
3
|
+
var frenchNumberPrefix = [
|
|
4
|
+
"+33",
|
|
5
|
+
"+590",
|
|
6
|
+
"+594",
|
|
7
|
+
"+596",
|
|
8
|
+
"+262"
|
|
9
|
+
];
|
|
10
|
+
var phoneInputValidityRegex = /^((\+)33|(\+)590|(\+)594|(\+)596|(\+)262)([a-zA-Z0-9_.]{0,})$/;
|
|
11
|
+
var phonePrefixOptions = [
|
|
12
|
+
{ value: "+33", label: "fr_FR" },
|
|
13
|
+
{ value: "+590", label: "fr_GP" },
|
|
14
|
+
{ value: "+594", label: "fr_GF" },
|
|
15
|
+
{ value: "+596", label: "fr_MQ" },
|
|
16
|
+
{ value: "+262", label: "fr_RE" }
|
|
17
|
+
];
|
|
18
|
+
var frenchFlag = html`<svg
|
|
19
|
+
slot="prefix"
|
|
20
|
+
width="20"
|
|
21
|
+
height="20"
|
|
22
|
+
fill="none"
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
>
|
|
25
|
+
<rect
|
|
26
|
+
x=".25"
|
|
27
|
+
y=".25"
|
|
28
|
+
width="19.5"
|
|
29
|
+
height="19.5"
|
|
30
|
+
rx="1.75"
|
|
31
|
+
fill="#fff"
|
|
32
|
+
stroke="#F5F5F5"
|
|
33
|
+
stroke-width=".5"
|
|
34
|
+
/>
|
|
35
|
+
<g mask="url(#mask0_3871_53356)">
|
|
36
|
+
<path fill="#F44653" d="M13.334 0h6.667v20h-6.667z" />
|
|
37
|
+
<path
|
|
38
|
+
fill-rule="evenodd"
|
|
39
|
+
clip-rule="evenodd"
|
|
40
|
+
d="M0 20h6.667V0H0v20Z"
|
|
41
|
+
fill="#1035BB"
|
|
42
|
+
/>
|
|
43
|
+
</g>
|
|
44
|
+
</svg>`;
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
frenchNumberPrefix,
|
|
48
|
+
phoneInputValidityRegex,
|
|
49
|
+
phonePrefixOptions,
|
|
50
|
+
frenchFlag
|
|
51
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/tree/tree.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var tree_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: block;
|
|
12
|
+
isolation: isolate;
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Tree item indentation uses the "em" unit to increment its width on each level, so setting the font size to zero
|
|
16
|
+
* here removes the indentation for all the nodes on the first level.
|
|
17
|
+
*/
|
|
18
|
+
font-size: 0;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
tree_styles_default
|
|
24
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
library_default_default
|
|
3
|
+
} from "./chunk.RDGMZ5XB.js";
|
|
4
|
+
import {
|
|
5
|
+
library_system_default
|
|
6
|
+
} from "./chunk.I33L3NO6.js";
|
|
7
|
+
|
|
8
|
+
// src/components/icon/library.ts
|
|
9
|
+
var registry = [library_default_default, library_system_default];
|
|
10
|
+
var watchedIcons = [];
|
|
11
|
+
function watchIcon(icon) {
|
|
12
|
+
watchedIcons.push(icon);
|
|
13
|
+
}
|
|
14
|
+
function unwatchIcon(icon) {
|
|
15
|
+
watchedIcons = watchedIcons.filter((el) => el !== icon);
|
|
16
|
+
}
|
|
17
|
+
function getIconLibrary(name) {
|
|
18
|
+
return registry.find((lib) => lib.name === name);
|
|
19
|
+
}
|
|
20
|
+
function registerIconLibrary(name, options) {
|
|
21
|
+
unregisterIconLibrary(name);
|
|
22
|
+
registry.push({
|
|
23
|
+
name,
|
|
24
|
+
resolver: options.resolver,
|
|
25
|
+
mutator: options.mutator
|
|
26
|
+
});
|
|
27
|
+
watchedIcons.forEach((icon) => {
|
|
28
|
+
if (icon.library === name) {
|
|
29
|
+
icon.setIcon();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function unregisterIconLibrary(name) {
|
|
34
|
+
registry = registry.filter((lib) => lib.name !== name);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
watchIcon,
|
|
39
|
+
unwatchIcon,
|
|
40
|
+
getIconLibrary,
|
|
41
|
+
registerIconLibrary,
|
|
42
|
+
unregisterIconLibrary
|
|
43
|
+
};
|