@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,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/progress-bar/progress-bar.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var progress_bar_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.progress-bar {
|
|
15
|
+
position: relative;
|
|
16
|
+
background-color: var(--dsa-wc-progress-bar-track-color);
|
|
17
|
+
height: var(--dsa-wc-progress-bar-height);
|
|
18
|
+
border-radius: var(--dsa-wc-progress-bar-border-radius);
|
|
19
|
+
box-shadow: inset var(--dsa-wc-shadow-small);
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.progress-bar__indicator {
|
|
24
|
+
height: 100%;
|
|
25
|
+
font: var(--dsa-wc-progress-bar-font);
|
|
26
|
+
background-color: var(--dsa-wc-progress-bar-indicator-color);
|
|
27
|
+
color: var(--dsa-wc-progress-bar-indicator-label-color);
|
|
28
|
+
text-align: center;
|
|
29
|
+
line-height: var(--dsa-wc-progress-bar-height);
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
transition: 400ms width, 400ms background-color;
|
|
33
|
+
user-select: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Indeterminate */
|
|
37
|
+
.progress-bar--indeterminate .progress-bar__indicator {
|
|
38
|
+
position: absolute;
|
|
39
|
+
animation: indeterminate 2.5s var(--dsa-wc-no-animations-duration, infinite)
|
|
40
|
+
cubic-bezier(0.37, 0, 0.63, 1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.progress-bar--indeterminate.progress-bar--rtl .progress-bar__indicator {
|
|
44
|
+
animation-name: indeterminate-rtl;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (forced-colors: active) {
|
|
48
|
+
.progress-bar {
|
|
49
|
+
outline: solid 1px SelectedItem;
|
|
50
|
+
background-color: var(--dsa-wc-progress-bar-indicator-label-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.progress-bar__indicator {
|
|
54
|
+
outline: solid 1px SelectedItem;
|
|
55
|
+
background-color: SelectedItem;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@keyframes indeterminate {
|
|
60
|
+
0% {
|
|
61
|
+
left: -50%;
|
|
62
|
+
width: 50%;
|
|
63
|
+
}
|
|
64
|
+
75%,
|
|
65
|
+
100% {
|
|
66
|
+
left: 100%;
|
|
67
|
+
width: 50%;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes indeterminate-rtl {
|
|
72
|
+
0% {
|
|
73
|
+
right: -50%;
|
|
74
|
+
width: 50%;
|
|
75
|
+
}
|
|
76
|
+
75%,
|
|
77
|
+
100% {
|
|
78
|
+
right: 100%;
|
|
79
|
+
width: 50%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
export {
|
|
85
|
+
progress_bar_styles_default
|
|
86
|
+
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
// src/components/input-mask/input-mask.utils.ts
|
|
2
|
+
var specialCharPattern = /[\W]+/g;
|
|
3
|
+
var normalCharPattern = /^[_A-z0-9]*((-)*[_A-z0-9])*$/;
|
|
4
|
+
function stripSpecialChars(word) {
|
|
5
|
+
return word.replace(specialCharPattern, "");
|
|
6
|
+
}
|
|
7
|
+
function isSpecialChar(word) {
|
|
8
|
+
return word.match(specialCharPattern) !== null;
|
|
9
|
+
}
|
|
10
|
+
function getMaskedValue(rawValue, mask) {
|
|
11
|
+
const explodedValue = [...rawValue];
|
|
12
|
+
const explodedMask = [...mask];
|
|
13
|
+
let valueIndex = 0;
|
|
14
|
+
let maskedValue = "";
|
|
15
|
+
explodedMask.every((character) => {
|
|
16
|
+
if (explodedValue.length === 0) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
const isCharSpecial = isSpecialChar(character);
|
|
20
|
+
if (!isCharSpecial) {
|
|
21
|
+
maskedValue += explodedValue[valueIndex];
|
|
22
|
+
valueIndex++;
|
|
23
|
+
} else {
|
|
24
|
+
maskedValue += character;
|
|
25
|
+
}
|
|
26
|
+
if (valueIndex === explodedValue.length) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return true;
|
|
30
|
+
});
|
|
31
|
+
return maskedValue;
|
|
32
|
+
}
|
|
33
|
+
var IBANTestValues = [
|
|
34
|
+
"AD1400080001001234567890",
|
|
35
|
+
"AT483200000012345864",
|
|
36
|
+
"BE71096123456769",
|
|
37
|
+
"BG18RZBB91550123456789",
|
|
38
|
+
"HR1723600001101234565",
|
|
39
|
+
"CY21002001950000357001234567",
|
|
40
|
+
"CZ5508000000001234567899",
|
|
41
|
+
"DK9520000123456789",
|
|
42
|
+
"EE471000001020145685",
|
|
43
|
+
"FI1410093000123458",
|
|
44
|
+
"FR7630006000011234567890189",
|
|
45
|
+
"DE75512108001245126199",
|
|
46
|
+
"GI04BARC000001234567890",
|
|
47
|
+
"GR9608100010000001234567890",
|
|
48
|
+
"HU93116000060000000012345676",
|
|
49
|
+
"IS750001121234563108962099",
|
|
50
|
+
"IE64IRCE92050112345678",
|
|
51
|
+
"IT60X0542811101000000123456",
|
|
52
|
+
"LV97HABA0012345678910",
|
|
53
|
+
"LI7408806123456789012",
|
|
54
|
+
"LT601010012345678901",
|
|
55
|
+
"LU120010001234567891",
|
|
56
|
+
"MT31MALT01100000000000000000123",
|
|
57
|
+
"MC5810096180790123456789085",
|
|
58
|
+
"NL02ABNA0123456789",
|
|
59
|
+
"NO8330001234567",
|
|
60
|
+
"PL10105000997603123456789123",
|
|
61
|
+
"PT50002700000001234567833",
|
|
62
|
+
"RO09BCYP0000001234567890",
|
|
63
|
+
"SM76P0854009812123456789123",
|
|
64
|
+
"SK8975000000000012345671",
|
|
65
|
+
"SI56192001234567892",
|
|
66
|
+
"ES7921000813610123456789",
|
|
67
|
+
"SE7280000810340009783242",
|
|
68
|
+
"CH5604835012345678009",
|
|
69
|
+
"GB33BUKB20201555555555",
|
|
70
|
+
"VA59001123000012345678"
|
|
71
|
+
];
|
|
72
|
+
var BICTestValues = [
|
|
73
|
+
"DEKTDE7GXXX",
|
|
74
|
+
"GEBABEBB",
|
|
75
|
+
"BKAUATWW",
|
|
76
|
+
"COBADEFF060",
|
|
77
|
+
"UCJAES2MXXX",
|
|
78
|
+
"ESSEDE5F100",
|
|
79
|
+
"CMCIFRPP",
|
|
80
|
+
"CHASFIHHXXX",
|
|
81
|
+
"PBNKDEFF100",
|
|
82
|
+
"ZUNOCZPP",
|
|
83
|
+
"ABNACHZ8XXX",
|
|
84
|
+
"DNBANOKK",
|
|
85
|
+
"DEUTDEDB101",
|
|
86
|
+
"ARSPBE22",
|
|
87
|
+
"DXIADEBBXXX",
|
|
88
|
+
"SOGEFRPP",
|
|
89
|
+
// Société générale
|
|
90
|
+
"BNPAFRPPXXX",
|
|
91
|
+
//BNP
|
|
92
|
+
"CMCIFR2AXXX",
|
|
93
|
+
// Crédit Mutuel
|
|
94
|
+
"CMCIFRPPXXX",
|
|
95
|
+
//CIC banque
|
|
96
|
+
"PSSTFRPPPAR",
|
|
97
|
+
//Banque postale
|
|
98
|
+
"PSSTFRPPLIL",
|
|
99
|
+
"PSSTFRPPSCE",
|
|
100
|
+
"PSSTFRPPMAR",
|
|
101
|
+
"CMBRFR2BXXX",
|
|
102
|
+
//credit mutuelle
|
|
103
|
+
"CEPAFRPP627",
|
|
104
|
+
//caise d'epargne
|
|
105
|
+
"PSSTFRPPCNE",
|
|
106
|
+
"CEPAFRPP751",
|
|
107
|
+
"AGRIFRPP867",
|
|
108
|
+
"AGRIFRPP878",
|
|
109
|
+
"PSSTFRPPBOR",
|
|
110
|
+
"CEPAFRPP382",
|
|
111
|
+
"PSSTFRPPLYO",
|
|
112
|
+
"AGRIFRPP887",
|
|
113
|
+
"AGRIFRPP891",
|
|
114
|
+
"CEPAFRPP444",
|
|
115
|
+
"PSSTFRPPMON",
|
|
116
|
+
"AGRIFRPP882",
|
|
117
|
+
"AGRIFRPP835",
|
|
118
|
+
"CEPAFRPP513",
|
|
119
|
+
"CEPAFRPP333",
|
|
120
|
+
"PSSTFRPPTOU",
|
|
121
|
+
"AGRIFRPP833",
|
|
122
|
+
"AGRIFRPP802",
|
|
123
|
+
"CEPAFRPP131",
|
|
124
|
+
"AGRIFRPP868",
|
|
125
|
+
"PSSTFRPPROU",
|
|
126
|
+
"CEPAFRPP142",
|
|
127
|
+
"AGRIFRPP847",
|
|
128
|
+
"AGRIFRPP866",
|
|
129
|
+
"CEPAFRPP313",
|
|
130
|
+
"AGRIFRPP879",
|
|
131
|
+
"CEPAFRPP348",
|
|
132
|
+
"AGRIFRPP813",
|
|
133
|
+
"CCBPFRPPGRE",
|
|
134
|
+
"PSSTFRPPNTE",
|
|
135
|
+
"AGRIFRPP848",
|
|
136
|
+
"CEPAFRPP213",
|
|
137
|
+
"CCBPFRPPDJN",
|
|
138
|
+
"AGRIFRPP810",
|
|
139
|
+
"AGRIFRPP881",
|
|
140
|
+
"PSSTFRPPDIJ",
|
|
141
|
+
"AGRIFRPP839",
|
|
142
|
+
"AGRIFRPP883",
|
|
143
|
+
"CCBPFRPPBDX",
|
|
144
|
+
"CEPAFRPP450",
|
|
145
|
+
"BREDFRPPXXX",
|
|
146
|
+
"PSSTFRPPLIM",
|
|
147
|
+
"CCBPFRPPMTZ",
|
|
148
|
+
"AGRIFRPP869",
|
|
149
|
+
"PSSTFRPPCLE",
|
|
150
|
+
"AGRIFRPP812",
|
|
151
|
+
"CCBPFRPPNAN",
|
|
152
|
+
"CCBPFRPPTLS",
|
|
153
|
+
"PSSTFRPPCHA",
|
|
154
|
+
"PSSTFRPPNCY",
|
|
155
|
+
"PSSTFRPPGRE",
|
|
156
|
+
"CEPAFRPP831",
|
|
157
|
+
"CCBPFRPPMTG",
|
|
158
|
+
"AGRIFRPP825",
|
|
159
|
+
"AGRIFRPP845",
|
|
160
|
+
"PSSTFRPPREN",
|
|
161
|
+
"CEPAFRPP871",
|
|
162
|
+
"AGRIFRPP831",
|
|
163
|
+
"CEPAFRPP426",
|
|
164
|
+
"AGRIFRPP861",
|
|
165
|
+
"AGRIFRPP836",
|
|
166
|
+
"AGRIFRPP817",
|
|
167
|
+
"AGRIFRPP894",
|
|
168
|
+
"CCBPFRPPPPG",
|
|
169
|
+
"SOAPFR22XXX",
|
|
170
|
+
"CCBPFRPPVER",
|
|
171
|
+
"AGRIFRPP829",
|
|
172
|
+
"AGRIFRPP824",
|
|
173
|
+
"CCBPFRPPMAR",
|
|
174
|
+
"AGRIFRPP871",
|
|
175
|
+
"AGRIFRPP822",
|
|
176
|
+
"AGRIFRPP844",
|
|
177
|
+
"AGRIFRPP872",
|
|
178
|
+
"CCBPFRPPLIL",
|
|
179
|
+
"AGRIFRPP895",
|
|
180
|
+
"AGRIFRPP860",
|
|
181
|
+
"PSSTFRPPSDR",
|
|
182
|
+
"AXABFRPPXXX",
|
|
183
|
+
"PSSTFRPPSTR",
|
|
184
|
+
"CCOPFRPPXXX",
|
|
185
|
+
"SORMFR2NXXX",
|
|
186
|
+
"CCBPFRPPREN",
|
|
187
|
+
"PSSTFRPPBTE",
|
|
188
|
+
"GPBAFRPPXXX",
|
|
189
|
+
"PSSTFRPPCAY",
|
|
190
|
+
"PRNSFRP1XXX",
|
|
191
|
+
"CMCIFRP1MON",
|
|
192
|
+
"FTNOFRP1XXX",
|
|
193
|
+
"PSSTFRPPFDF",
|
|
194
|
+
"CEPAFRPP670",
|
|
195
|
+
"CMBRFR2BARK"
|
|
196
|
+
];
|
|
197
|
+
var NIRTestValues = ["187089932132113"];
|
|
198
|
+
|
|
199
|
+
export {
|
|
200
|
+
specialCharPattern,
|
|
201
|
+
normalCharPattern,
|
|
202
|
+
stripSpecialChars,
|
|
203
|
+
getMaskedValue,
|
|
204
|
+
IBANTestValues,
|
|
205
|
+
BICTestValues,
|
|
206
|
+
NIRTestValues
|
|
207
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/components/animation/animations.ts
|
|
2
|
+
import * as animations from "@shoelace-style/animations";
|
|
3
|
+
function getAnimationNames() {
|
|
4
|
+
return Object.entries(animations).filter(([name]) => name !== "easings").map(([name]) => name);
|
|
5
|
+
}
|
|
6
|
+
function getEasingNames() {
|
|
7
|
+
return Object.entries(animations.easings).map(([name]) => name);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
animations,
|
|
12
|
+
getAnimationNames,
|
|
13
|
+
getEasingNames
|
|
14
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/styles/component.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var component_styles_default = css`
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host *,
|
|
9
|
+
:host *::before,
|
|
10
|
+
:host *::after {
|
|
11
|
+
box-sizing: inherit;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[hidden] {
|
|
15
|
+
display: none !important;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
component_styles_default
|
|
21
|
+
};
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import {
|
|
2
|
+
accordion_styles_default
|
|
3
|
+
} from "./chunk.LC54322H.js";
|
|
4
|
+
import {
|
|
5
|
+
waitForEvent
|
|
6
|
+
} from "./chunk.B4BZKR24.js";
|
|
7
|
+
import {
|
|
8
|
+
animateTo,
|
|
9
|
+
shimKeyframesHeightAuto,
|
|
10
|
+
stopAnimations
|
|
11
|
+
} from "./chunk.2FK6USFR.js";
|
|
12
|
+
import {
|
|
13
|
+
getAnimation,
|
|
14
|
+
setDefaultAnimation
|
|
15
|
+
} from "./chunk.V7RJROLH.js";
|
|
16
|
+
import {
|
|
17
|
+
LocalizeController
|
|
18
|
+
} from "./chunk.5XL2LZLC.js";
|
|
19
|
+
import {
|
|
20
|
+
watch
|
|
21
|
+
} from "./chunk.D7CATJYB.js";
|
|
22
|
+
import {
|
|
23
|
+
ShoelaceElement
|
|
24
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
25
|
+
import {
|
|
26
|
+
__decorateClass
|
|
27
|
+
} from "./chunk.6M63UXML.js";
|
|
28
|
+
|
|
29
|
+
// src/components/accordion/accordion.ts
|
|
30
|
+
import { html } from "lit";
|
|
31
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
32
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
33
|
+
var DSAAccordion = class extends ShoelaceElement {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
this.localize = new LocalizeController(this);
|
|
37
|
+
this.open = false;
|
|
38
|
+
this.disabled = false;
|
|
39
|
+
this.icon = "chevron";
|
|
40
|
+
}
|
|
41
|
+
firstUpdated() {
|
|
42
|
+
this.body.hidden = !this.open;
|
|
43
|
+
this.body.style.height = this.open ? "auto" : "0";
|
|
44
|
+
}
|
|
45
|
+
handleSummaryClick() {
|
|
46
|
+
if (!this.disabled) {
|
|
47
|
+
if (this.open) {
|
|
48
|
+
this.hide();
|
|
49
|
+
} else {
|
|
50
|
+
this.show();
|
|
51
|
+
}
|
|
52
|
+
this.header.focus();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
handleSummaryKeyDown(event) {
|
|
56
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
57
|
+
event.preventDefault();
|
|
58
|
+
if (this.open) {
|
|
59
|
+
this.hide();
|
|
60
|
+
} else {
|
|
61
|
+
this.show();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (event.key === "ArrowUp" || event.key === "ArrowLeft") {
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
this.hide();
|
|
67
|
+
}
|
|
68
|
+
if (event.key === "ArrowDown" || event.key === "ArrowRight") {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
this.show();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async handleOpenChange() {
|
|
74
|
+
if (this.open) {
|
|
75
|
+
const slShow = this.emit("dsa-show", { cancelable: true });
|
|
76
|
+
if (slShow.defaultPrevented) {
|
|
77
|
+
this.open = false;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
await stopAnimations(this.body);
|
|
81
|
+
this.body.hidden = false;
|
|
82
|
+
const { keyframes, options } = getAnimation(this, "accordion.show", {
|
|
83
|
+
dir: this.localize.dir()
|
|
84
|
+
});
|
|
85
|
+
await animateTo(
|
|
86
|
+
this.body,
|
|
87
|
+
shimKeyframesHeightAuto(keyframes, this.body.scrollHeight),
|
|
88
|
+
options
|
|
89
|
+
);
|
|
90
|
+
this.body.style.height = "auto";
|
|
91
|
+
this.emit("dsa-after-show");
|
|
92
|
+
} else {
|
|
93
|
+
const slHide = this.emit("dsa-hide", { cancelable: true });
|
|
94
|
+
if (slHide.defaultPrevented) {
|
|
95
|
+
this.open = true;
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
await stopAnimations(this.body);
|
|
99
|
+
const { keyframes, options } = getAnimation(this, "accordion.hide", {
|
|
100
|
+
dir: this.localize.dir()
|
|
101
|
+
});
|
|
102
|
+
await animateTo(
|
|
103
|
+
this.body,
|
|
104
|
+
shimKeyframesHeightAuto(keyframes, this.body.scrollHeight),
|
|
105
|
+
options
|
|
106
|
+
);
|
|
107
|
+
this.body.hidden = true;
|
|
108
|
+
this.body.style.height = "auto";
|
|
109
|
+
this.emit("dsa-after-hide");
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/** Shows the accordion. */
|
|
113
|
+
async show() {
|
|
114
|
+
if (this.open || this.disabled) {
|
|
115
|
+
return void 0;
|
|
116
|
+
}
|
|
117
|
+
this.open = true;
|
|
118
|
+
return await waitForEvent(this, "dsa-after-show");
|
|
119
|
+
}
|
|
120
|
+
/** Hides the accordion */
|
|
121
|
+
async hide() {
|
|
122
|
+
if (!this.open || this.disabled) {
|
|
123
|
+
return void 0;
|
|
124
|
+
}
|
|
125
|
+
this.open = false;
|
|
126
|
+
return await waitForEvent(this, "dsa-after-hide");
|
|
127
|
+
}
|
|
128
|
+
render() {
|
|
129
|
+
const isRtl = this.localize.dir() === "rtl";
|
|
130
|
+
const expandIconName = this.icon === "box" ? "add_box" : isRtl ? "chevron_left" : "chevron_right";
|
|
131
|
+
const collapseIconName = this.icon === "box" ? "indeterminate_check_box" : isRtl ? "chevron_left" : "chevron_right";
|
|
132
|
+
return html`
|
|
133
|
+
<div
|
|
134
|
+
part="base"
|
|
135
|
+
class=${classMap({
|
|
136
|
+
accordion: true,
|
|
137
|
+
"accordion--open": this.open,
|
|
138
|
+
"accordion--disabled": this.disabled,
|
|
139
|
+
"accordion--rtl": isRtl,
|
|
140
|
+
"accordion--chevron": this.icon === "chevron"
|
|
141
|
+
})}
|
|
142
|
+
>
|
|
143
|
+
<header
|
|
144
|
+
part="header"
|
|
145
|
+
id="header"
|
|
146
|
+
class="accordion__header"
|
|
147
|
+
role="button"
|
|
148
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
149
|
+
aria-controls="content"
|
|
150
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
151
|
+
tabindex=${this.disabled ? "-1" : "0"}
|
|
152
|
+
@click=${this.handleSummaryClick}
|
|
153
|
+
@keydown=${this.handleSummaryKeyDown}
|
|
154
|
+
>
|
|
155
|
+
<slot name="summary" part="summary" class="accordion__summary"
|
|
156
|
+
>${this.summary}</slot
|
|
157
|
+
>
|
|
158
|
+
|
|
159
|
+
<span part="summary-icon" class="accordion__summary-icon">
|
|
160
|
+
<dsa-icon
|
|
161
|
+
class="accordion__expand-icon"
|
|
162
|
+
name=${expandIconName}
|
|
163
|
+
></dsa-icon>
|
|
164
|
+
|
|
165
|
+
<dsa-icon
|
|
166
|
+
class="accordion__collapse-icon"
|
|
167
|
+
name=${collapseIconName}
|
|
168
|
+
></dsa-icon>
|
|
169
|
+
</span>
|
|
170
|
+
</header>
|
|
171
|
+
|
|
172
|
+
<div class="accordion__body">
|
|
173
|
+
<slot
|
|
174
|
+
part="content"
|
|
175
|
+
id="content"
|
|
176
|
+
class="accordion__content"
|
|
177
|
+
role="region"
|
|
178
|
+
aria-labelledby="header"
|
|
179
|
+
></slot>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
`;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
DSAAccordion.styles = accordion_styles_default;
|
|
186
|
+
__decorateClass([
|
|
187
|
+
query(".accordion")
|
|
188
|
+
], DSAAccordion.prototype, "accordion", 2);
|
|
189
|
+
__decorateClass([
|
|
190
|
+
query(".accordion__header")
|
|
191
|
+
], DSAAccordion.prototype, "header", 2);
|
|
192
|
+
__decorateClass([
|
|
193
|
+
query(".accordion__body")
|
|
194
|
+
], DSAAccordion.prototype, "body", 2);
|
|
195
|
+
__decorateClass([
|
|
196
|
+
property({ type: Boolean, reflect: true })
|
|
197
|
+
], DSAAccordion.prototype, "open", 2);
|
|
198
|
+
__decorateClass([
|
|
199
|
+
property()
|
|
200
|
+
], DSAAccordion.prototype, "summary", 2);
|
|
201
|
+
__decorateClass([
|
|
202
|
+
property({ type: Boolean, reflect: true })
|
|
203
|
+
], DSAAccordion.prototype, "disabled", 2);
|
|
204
|
+
__decorateClass([
|
|
205
|
+
property({ reflect: true })
|
|
206
|
+
], DSAAccordion.prototype, "icon", 2);
|
|
207
|
+
__decorateClass([
|
|
208
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
209
|
+
], DSAAccordion.prototype, "handleOpenChange", 1);
|
|
210
|
+
DSAAccordion = __decorateClass([
|
|
211
|
+
customElement("dsa-accordion")
|
|
212
|
+
], DSAAccordion);
|
|
213
|
+
setDefaultAnimation("accordion.show", {
|
|
214
|
+
keyframes: [
|
|
215
|
+
{ height: "0", opacity: "0" },
|
|
216
|
+
{ height: "auto", opacity: "1" }
|
|
217
|
+
],
|
|
218
|
+
options: { duration: 250, easing: "linear" }
|
|
219
|
+
});
|
|
220
|
+
setDefaultAnimation("accordion.hide", {
|
|
221
|
+
keyframes: [
|
|
222
|
+
{ height: "auto", opacity: "1" },
|
|
223
|
+
{ height: "0", opacity: "0" }
|
|
224
|
+
],
|
|
225
|
+
options: { duration: 250, easing: "linear" }
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
export {
|
|
229
|
+
DSAAccordion
|
|
230
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/dropdown/dropdown.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var dropdown_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dropdown::part(popup) {
|
|
15
|
+
z-index: var(--dsa-wc-z-index-dropdown);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dropdown[data-current-placement^='top']::part(popup) {
|
|
19
|
+
transform-origin: bottom;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.dropdown[data-current-placement^='bottom']::part(popup) {
|
|
23
|
+
transform-origin: top;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dropdown[data-current-placement^='left']::part(popup) {
|
|
27
|
+
transform-origin: right;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dropdown[data-current-placement^='right']::part(popup) {
|
|
31
|
+
transform-origin: left;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dropdown__trigger {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dropdown__panel {
|
|
39
|
+
background-color: var(--dsa-wc-dropdown-panel-background);
|
|
40
|
+
font: var(--dsa-wc-dropdown-font);
|
|
41
|
+
box-shadow: var(--dsa-wc-dropdown-panel-box-shadow);
|
|
42
|
+
border-radius: var(--dsa-wc-dropdown-panel-border-radius);
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dropdown--open .dropdown__panel {
|
|
47
|
+
display: block;
|
|
48
|
+
pointer-events: all;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* When users slot a menu, make sure it conforms to the popup's auto-size */
|
|
52
|
+
::slotted(dsa-menu) {
|
|
53
|
+
max-width: var(--auto-size-available-width) !important;
|
|
54
|
+
max-height: var(--auto-size-available-height) !important;
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
dropdown_styles_default
|
|
60
|
+
};
|