@synergy-design-system/components 2.31.0-numeric.1 → 2.31.0-numeric.2
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/dist/chunks/{chunk.POR4YXBM.js → chunk.23KNPBFB.js} +2 -2
- package/dist/chunks/{chunk.GRA6PMZZ.js → chunk.2J3C2R4R.js} +4 -4
- package/dist/chunks/{chunk.GRA6PMZZ.js.map → chunk.2J3C2R4R.js.map} +1 -1
- package/dist/chunks/{chunk.D7ZU5UFL.js → chunk.2K6NQLEV.js} +2 -2
- package/dist/chunks/{chunk.ZK7XTPJN.js → chunk.2L5JW3W5.js} +44 -16
- package/dist/chunks/chunk.2L5JW3W5.js.map +7 -0
- package/dist/chunks/{chunk.M25XYM73.js → chunk.2NWEQCDE.js} +2 -2
- package/dist/chunks/{chunk.KXU56SNB.js → chunk.2XOHNYC5.js} +2 -2
- package/dist/chunks/{chunk.YJJGWT72.js → chunk.34MJRDEM.js} +8 -8
- package/dist/chunks/{chunk.BWZMY7HG.js → chunk.353K4PON.js} +3 -3
- package/dist/chunks/{chunk.BWZMY7HG.js.map → chunk.353K4PON.js.map} +1 -1
- package/dist/chunks/{chunk.JJI5CPOB.js → chunk.3764RHNZ.js} +6 -6
- package/dist/chunks/chunk.3764RHNZ.js.map +7 -0
- package/dist/chunks/{chunk.FEKYKC4C.js → chunk.3JEL6TFC.js} +2 -2
- package/dist/chunks/{chunk.OQHYWXRI.js → chunk.3ZKI5OTR.js} +2 -2
- package/dist/chunks/{chunk.B6HFSIU2.js → chunk.4DW7CR6A.js} +28 -1
- package/dist/chunks/{chunk.B6HFSIU2.js.map → chunk.4DW7CR6A.js.map} +2 -2
- package/dist/chunks/{chunk.FO5F6LKG.js → chunk.4I3A2FAT.js} +2 -2
- package/dist/chunks/{chunk.U3WTJD4D.js → chunk.4WTEYK2Y.js} +4 -4
- package/dist/chunks/chunk.4WTEYK2Y.js.map +7 -0
- package/dist/chunks/{chunk.B6TTKFK2.js → chunk.53RGIEWF.js} +4 -4
- package/dist/chunks/chunk.53RGIEWF.js.map +7 -0
- package/dist/chunks/chunk.53T54MDF.js +30 -0
- package/dist/chunks/chunk.53T54MDF.js.map +7 -0
- package/dist/chunks/{chunk.TB7FVSDL.js → chunk.56NTE7JW.js} +3 -3
- package/dist/chunks/chunk.56NTE7JW.js.map +7 -0
- package/dist/chunks/{chunk.EC3AIWPK.js → chunk.5VQ3S2XE.js} +6 -6
- package/dist/chunks/{chunk.EC3AIWPK.js.map → chunk.5VQ3S2XE.js.map} +1 -1
- package/dist/chunks/{chunk.PGRPK5CM.js → chunk.66H23HMI.js} +2 -2
- package/dist/chunks/{chunk.2YBP4WEH.js → chunk.6XA7QZZL.js} +3 -3
- package/dist/chunks/chunk.6XA7QZZL.js.map +7 -0
- package/dist/chunks/{chunk.HQ6QUSK7.js → chunk.7JGKUB4A.js} +2 -2
- package/dist/chunks/{chunk.AKBNSAMF.js → chunk.A7BSGQUQ.js} +16 -16
- package/dist/chunks/{chunk.KITRO6XO.js → chunk.AVC4OCSZ.js} +4 -4
- package/dist/chunks/{chunk.KITRO6XO.js.map → chunk.AVC4OCSZ.js.map} +1 -1
- package/dist/chunks/{chunk.2LYOMDFO.js → chunk.AYAX7BG7.js} +2 -2
- package/dist/chunks/{chunk.ZKHYDNLC.js → chunk.B27C5RF6.js} +4 -4
- package/dist/chunks/{chunk.ZKHYDNLC.js.map → chunk.B27C5RF6.js.map} +1 -1
- package/dist/chunks/{chunk.RPIHGLAB.js → chunk.BGBML4AJ.js} +2 -2
- package/dist/chunks/{chunk.E257OZYA.js → chunk.BKHCRIMU.js} +2 -2
- package/dist/chunks/{chunk.UT46BUBN.js → chunk.BPD4SAWW.js} +2 -2
- package/dist/chunks/{chunk.Q3DVGFDB.js → chunk.BRG3RLN3.js} +2 -2
- package/dist/chunks/{chunk.74IOULXM.js → chunk.BVZQ6QSY.js} +2 -2
- package/dist/chunks/{chunk.IJ7VHZFK.js → chunk.CEQYPACD.js} +2 -2
- package/dist/chunks/{chunk.J75DWM6J.js → chunk.CGP72BVA.js} +4 -4
- package/dist/chunks/chunk.CGP72BVA.js.map +7 -0
- package/dist/chunks/{chunk.57AK7CVM.js → chunk.CGQHRVXQ.js} +2 -2
- package/dist/chunks/{chunk.EZDB5RU7.js → chunk.DOIMWGFS.js} +9 -9
- package/dist/chunks/chunk.DOIMWGFS.js.map +7 -0
- package/dist/chunks/{chunk.CEVNM6DM.js → chunk.DSM54YAD.js} +5 -5
- package/dist/chunks/chunk.DSM54YAD.js.map +7 -0
- package/dist/chunks/{chunk.2IWVCAEF.js → chunk.E3EDE5EN.js} +2 -2
- package/dist/chunks/{chunk.GD33VPEE.js → chunk.EC3TBECW.js} +2 -2
- package/dist/chunks/{chunk.5NGEDTDD.js → chunk.EK2I2ETM.js} +17 -17
- package/dist/chunks/chunk.EK2I2ETM.js.map +7 -0
- package/dist/chunks/{chunk.TLCX6C3Y.js → chunk.FI2CRQ7Y.js} +2 -2
- package/dist/chunks/{chunk.IO36YFGG.js → chunk.FUXHSYEA.js} +2 -2
- package/dist/chunks/{chunk.A3OYJILJ.js → chunk.G6ITZTTW.js} +2 -2
- package/dist/chunks/{chunk.JCIM6NE3.js → chunk.G76BKD7B.js} +2 -2
- package/dist/chunks/{chunk.OLPCSVVL.js → chunk.GCIPCYGA.js} +2 -2
- package/dist/chunks/{chunk.AQWT2EI4.js → chunk.GG2RRZVJ.js} +5 -5
- package/dist/chunks/chunk.GG2RRZVJ.js.map +7 -0
- package/dist/chunks/{chunk.WBSH7WXZ.js → chunk.GNAG7ZC2.js} +2 -2
- package/dist/chunks/{chunk.SEMT32CO.js → chunk.GQBSDITD.js} +4 -4
- package/dist/chunks/{chunk.SEMT32CO.js.map → chunk.GQBSDITD.js.map} +1 -1
- package/dist/chunks/{chunk.WIVZPX4Q.js → chunk.HCOKZQTP.js} +11 -11
- package/dist/chunks/chunk.HCOKZQTP.js.map +7 -0
- package/dist/chunks/{chunk.ZIDEDWYN.js → chunk.HNDAREEH.js} +3 -3
- package/dist/chunks/chunk.HNDAREEH.js.map +7 -0
- package/dist/chunks/{chunk.AMIQC3O7.js → chunk.HP2LEQRU.js} +2 -2
- package/dist/chunks/{chunk.AMIQC3O7.js.map → chunk.HP2LEQRU.js.map} +1 -1
- package/dist/chunks/{chunk.Q7BW6KKX.js → chunk.HX7JLYDF.js} +2 -2
- package/dist/chunks/{chunk.CSBK2UIN.js → chunk.HY3NOR7D.js} +7 -7
- package/dist/chunks/chunk.HY3NOR7D.js.map +7 -0
- package/dist/chunks/{chunk.RZ4YAAAL.js → chunk.HZO7PBWS.js} +2 -2
- package/dist/chunks/{chunk.RFWHBKPI.js → chunk.IFV2P53O.js} +2 -2
- package/dist/chunks/{chunk.QVS5TYTR.js → chunk.IKCNW223.js} +5 -5
- package/dist/chunks/chunk.IKCNW223.js.map +7 -0
- package/dist/chunks/{chunk.N7EVNHYR.js → chunk.J6WNJGIB.js} +2 -2
- package/dist/chunks/{chunk.XZFEDMD4.js → chunk.JAP2ROD6.js} +14 -14
- package/dist/chunks/chunk.JAP2ROD6.js.map +7 -0
- package/dist/chunks/{chunk.5CAP3G3X.js → chunk.JB6TLEKH.js} +2 -2
- package/dist/chunks/{chunk.EDVAO5KD.js → chunk.JHGIU4HZ.js} +2 -2
- package/dist/chunks/{chunk.EDVAO5KD.js.map → chunk.JHGIU4HZ.js.map} +1 -1
- package/dist/chunks/{chunk.FAVMXFQL.js → chunk.JQDPM6DF.js} +5 -5
- package/dist/chunks/chunk.JQDPM6DF.js.map +7 -0
- package/dist/chunks/{chunk.U23YWMIX.js → chunk.JYYVZLIU.js} +10 -10
- package/dist/chunks/chunk.JYYVZLIU.js.map +7 -0
- package/dist/chunks/{chunk.7RHGZPLP.js → chunk.K3PX643U.js} +2 -2
- package/dist/chunks/{chunk.CVSFD3LB.js → chunk.K5DRZGPZ.js} +3 -3
- package/dist/chunks/chunk.K5DRZGPZ.js.map +7 -0
- package/dist/chunks/{chunk.W42P6ZZU.js → chunk.KAR4IGHT.js} +9 -9
- package/dist/chunks/{chunk.A67AAALJ.js → chunk.KJBCZJ6K.js} +2 -2
- package/dist/chunks/{chunk.32CPGKWW.js → chunk.LPZXZR3T.js} +14 -14
- package/dist/chunks/chunk.LPZXZR3T.js.map +7 -0
- package/dist/chunks/{chunk.LW362SOH.js → chunk.MAIIRSXZ.js} +14 -14
- package/dist/chunks/chunk.MAIIRSXZ.js.map +7 -0
- package/dist/chunks/{chunk.UTJJJQMA.js → chunk.MTN5NM4A.js} +2 -2
- package/dist/chunks/{chunk.IDS32BVD.js → chunk.MY2ALVF7.js} +13 -13
- package/dist/chunks/chunk.MY2ALVF7.js.map +7 -0
- package/dist/chunks/{chunk.UKCQF4MT.js → chunk.N3KLCG35.js} +2 -2
- package/dist/chunks/{chunk.7BMEQKZX.js → chunk.NKMYBNM5.js} +73 -32
- package/dist/chunks/chunk.NKMYBNM5.js.map +7 -0
- package/dist/chunks/{chunk.ILHF3ABL.js → chunk.NQH6IYCA.js} +2 -2
- package/dist/chunks/{chunk.THIOHUU2.js → chunk.NRLJB73P.js} +3 -3
- package/dist/chunks/chunk.NRLJB73P.js.map +7 -0
- package/dist/chunks/{chunk.OM47S5WL.js → chunk.NTTXYDYX.js} +9 -9
- package/dist/chunks/{chunk.K3XDXZW2.js → chunk.NUQBPC6D.js} +3 -3
- package/dist/chunks/{chunk.K3XDXZW2.js.map → chunk.NUQBPC6D.js.map} +1 -1
- package/dist/chunks/{chunk.6ETN74WB.js → chunk.OMZMY7WY.js} +2 -2
- package/dist/chunks/{chunk.KMAFFDJZ.js → chunk.OQVWVZ4P.js} +7 -7
- package/dist/chunks/chunk.OQVWVZ4P.js.map +7 -0
- package/dist/chunks/{chunk.KTCGXZQ4.js → chunk.OUISPKO2.js} +11 -11
- package/dist/chunks/chunk.OUISPKO2.js.map +7 -0
- package/dist/chunks/{chunk.UZFE4ZK6.js → chunk.PE3G4I5L.js} +2 -2
- package/dist/chunks/{chunk.JJ3OBG7Q.js → chunk.PKPTTKQA.js} +2 -2
- package/dist/chunks/{chunk.HIF4ZQ35.js → chunk.PMYJ4WQL.js} +14 -14
- package/dist/chunks/chunk.PMYJ4WQL.js.map +7 -0
- package/dist/chunks/{chunk.6EJPCDSL.js → chunk.PR66KI74.js} +9 -9
- package/dist/chunks/chunk.PR66KI74.js.map +7 -0
- package/dist/chunks/{chunk.V4SIKF4X.js → chunk.PY4VOF4Y.js} +28 -1
- package/dist/chunks/{chunk.V4SIKF4X.js.map → chunk.PY4VOF4Y.js.map} +2 -2
- package/dist/chunks/{chunk.DSW34EOY.js → chunk.QAQINAAG.js} +2 -2
- package/dist/chunks/{chunk.UBAW2LID.js → chunk.RDYAIG65.js} +4 -2
- package/dist/chunks/chunk.RDYAIG65.js.map +7 -0
- package/dist/chunks/{chunk.5F6A2J5X.js → chunk.RK6NECYK.js} +2 -2
- package/dist/chunks/{chunk.A4RVOFFP.js → chunk.RTQJFZK3.js} +10 -10
- package/dist/chunks/{chunk.Z63ESAY4.js → chunk.S3ABDHZT.js} +2 -2
- package/dist/chunks/{chunk.PK3IARAB.js → chunk.SIWLLQTA.js} +2 -2
- package/dist/chunks/{chunk.IB6CAJFE.js → chunk.SLFOWP34.js} +2 -2
- package/dist/chunks/{chunk.RCZVZKH3.js → chunk.SWCD3CKX.js} +2 -2
- package/dist/chunks/{chunk.NYCKYU42.js → chunk.TJPUKKXT.js} +2 -2
- package/dist/chunks/{chunk.QWO6FDBH.js → chunk.U5UY5Y2W.js} +2 -2
- package/dist/chunks/{chunk.HZHIIS2I.js → chunk.UHVW6WAA.js} +6 -6
- package/dist/chunks/chunk.UHVW6WAA.js.map +7 -0
- package/dist/chunks/{chunk.5OYRCRNV.js → chunk.UIFJKTEU.js} +2 -2
- package/dist/chunks/{chunk.GCQLCTYL.js → chunk.UODJAGU2.js} +2 -2
- package/dist/chunks/{chunk.33EV4VCU.js → chunk.V4H475OR.js} +3 -3
- package/dist/chunks/{chunk.PQFT5ON4.js → chunk.V4K35JJY.js} +2 -2
- package/dist/chunks/{chunk.B6R3IVGO.js → chunk.VN2PSQ4U.js} +17 -1
- package/dist/chunks/chunk.VN2PSQ4U.js.map +7 -0
- package/dist/chunks/{chunk.SFECHRNT.js → chunk.VTWC6SZF.js} +4 -4
- package/dist/chunks/{chunk.S5LABDRE.js → chunk.WUSN4QJH.js} +3 -3
- package/dist/chunks/chunk.WUSN4QJH.js.map +7 -0
- package/dist/chunks/{chunk.WFR4RMWT.js → chunk.XAUVRHWG.js} +8 -8
- package/dist/chunks/chunk.XAUVRHWG.js.map +7 -0
- package/dist/chunks/{chunk.DNNV6VLW.js → chunk.XIAITA3R.js} +2 -2
- package/dist/chunks/{chunk.N42HYZ3J.js → chunk.XYVSORCI.js} +8 -8
- package/dist/chunks/chunk.XYVSORCI.js.map +7 -0
- package/dist/chunks/{chunk.MRQZD5TX.js → chunk.Y34UAFAN.js} +2 -2
- package/dist/chunks/{chunk.BTS57O4V.js → chunk.YDYA7L2E.js} +7 -7
- package/dist/chunks/chunk.YDYA7L2E.js.map +7 -0
- package/dist/chunks/{chunk.63XQMHFQ.js → chunk.YF6FRUKX.js} +2 -2
- package/dist/chunks/{chunk.PJSCG4YE.js → chunk.YSZZ3XZE.js} +9 -9
- package/dist/chunks/chunk.YSZZ3XZE.js.map +7 -0
- package/dist/chunks/{chunk.VE2GLMIO.js → chunk.YYAC6H6O.js} +2 -2
- package/dist/chunks/{chunk.2GFK6XTO.js → chunk.Z4XV3SMG.js} +14 -1
- package/dist/chunks/{chunk.7YATRHZN.js → chunk.Z634ODXV.js} +2 -2
- package/dist/chunks/{chunk.CACKIXTX.js → chunk.Z6TU6HAF.js} +2 -2
- package/dist/components/accordion/accordion.component.js +9 -9
- package/dist/components/accordion/accordion.js +10 -10
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.component.d.ts +1 -1
- package/dist/components/alert/alert.component.js +14 -14
- package/dist/components/alert/alert.custom.styles.js +1 -1
- package/dist/components/alert/alert.js +15 -15
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.d.ts +1 -1
- package/dist/components/badge/badge.component.js +7 -7
- package/dist/components/badge/badge.custom.styles.js +1 -1
- package/dist/components/badge/badge.js +8 -8
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +5 -5
- package/dist/components/breadcrumb/breadcrumb.custom.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +4 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.custom.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/dist/components/button/button.component.d.ts +1 -1
- package/dist/components/button/button.component.js +12 -12
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +13 -13
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.d.ts +1 -1
- package/dist/components/button-group/button-group.component.js +3 -3
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/button-group/button-group.styles.js +1 -1
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/card/card.component.js +3 -3
- package/dist/components/card/card.custom.styles.js +1 -1
- package/dist/components/card/card.js +4 -4
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +1 -1
- package/dist/components/checkbox/checkbox.component.js +11 -11
- package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +12 -12
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/combobox/combobox.component.js +16 -16
- package/dist/components/combobox/combobox.custom.styles.js +1 -1
- package/dist/components/combobox/combobox.js +17 -17
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/combobox/option-renderer.js +1 -1
- package/dist/components/combobox/utils.js +1 -1
- package/dist/components/details/details.component.d.ts +1 -1
- package/dist/components/details/details.component.js +12 -12
- package/dist/components/details/details.custom.styles.js +1 -1
- package/dist/components/details/details.js +13 -13
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.d.ts +1 -1
- package/dist/components/dialog/dialog.component.js +16 -16
- package/dist/components/dialog/dialog.custom.styles.js +1 -1
- package/dist/components/dialog/dialog.js +17 -17
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/divider/divider.component.d.ts +1 -1
- package/dist/components/divider/divider.component.js +4 -4
- package/dist/components/divider/divider.custom.styles.js +1 -1
- package/dist/components/divider/divider.js +5 -5
- package/dist/components/divider/divider.styles.js +1 -1
- package/dist/components/drawer/drawer.component.d.ts +1 -1
- package/dist/components/drawer/drawer.component.js +16 -16
- package/dist/components/drawer/drawer.custom.styles.js +1 -1
- package/dist/components/drawer/drawer.js +17 -17
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.component.d.ts +1 -1
- package/dist/components/dropdown/dropdown.component.js +8 -8
- package/dist/components/dropdown/dropdown.custom.styles.js +1 -1
- package/dist/components/dropdown/dropdown.js +9 -9
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/file/file.component.d.ts +1 -0
- package/dist/components/file/file.component.js +15 -15
- package/dist/components/file/file.js +16 -16
- package/dist/components/file/file.styles.js +1 -1
- package/dist/components/header/header.component.js +7 -7
- package/dist/components/header/header.js +8 -8
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icon/icon.component.d.ts +1 -1
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.custom.styles.js +1 -1
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.default.js +1 -1
- package/dist/components/icon/library.js +1 -1
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.d.ts +1 -1
- package/dist/components/icon-button/icon-button.component.js +9 -9
- package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
- package/dist/components/icon-button/icon-button.js +10 -10
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/formatter.d.ts +8 -0
- package/dist/components/input/formatter.js +8 -0
- package/dist/components/input/formatter.js.map +7 -0
- package/dist/components/input/input.component.d.ts +19 -1
- package/dist/components/input/input.component.js +13 -12
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +14 -13
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/input/strategies.d.ts +7 -1
- package/dist/components/input/strategies.js +2 -2
- package/dist/components/menu/menu.component.d.ts +1 -1
- package/dist/components/menu/menu.component.js +3 -3
- package/dist/components/menu/menu.custom.styles.js +1 -1
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/menu/menu.styles.js +1 -1
- package/dist/components/menu-item/menu-item.component.d.ts +1 -1
- package/dist/components/menu-item/menu-item.component.js +8 -8
- package/dist/components/menu-item/menu-item.custom.styles.js +1 -1
- package/dist/components/menu-item/menu-item.js +9 -9
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-item/submenu-controller.js +1 -1
- package/dist/components/menu-label/menu-label.component.d.ts +1 -1
- package/dist/components/menu-label/menu-label.component.js +6 -6
- package/dist/components/menu-label/menu-label.custom.styles.js +1 -1
- package/dist/components/menu-label/menu-label.js +7 -7
- package/dist/components/menu-label/menu-label.styles.js +1 -1
- package/dist/components/nav-item/nav-item.component.d.ts +1 -0
- package/dist/components/nav-item/nav-item.component.js +5 -5
- package/dist/components/nav-item/nav-item.js +6 -6
- package/dist/components/nav-item/nav-item.styles.js +1 -1
- package/dist/components/optgroup/optgroup.component.js +5 -5
- package/dist/components/optgroup/optgroup.js +6 -6
- package/dist/components/optgroup/optgroup.styles.js +1 -1
- package/dist/components/option/option-size.styles.js +1 -1
- package/dist/components/option/option.component.d.ts +1 -1
- package/dist/components/option/option.component.js +5 -5
- package/dist/components/option/option.custom.styles.js +1 -1
- package/dist/components/option/option.js +6 -6
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/option/utility.js +1 -1
- package/dist/components/popup/popup.component.d.ts +1 -1
- package/dist/components/popup/popup.component.js +3 -3
- package/dist/components/popup/popup.js +4 -4
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.d.ts +1 -0
- package/dist/components/prio-nav/prio-nav.component.js +16 -16
- package/dist/components/prio-nav/prio-nav.js +17 -17
- package/dist/components/prio-nav/prio-nav.styles.js +1 -1
- package/dist/components/prio-nav/utils.js +1 -1
- package/dist/components/progress-bar/progress-bar.component.d.ts +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +3 -3
- package/dist/components/progress-bar/progress-bar.custom.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +4 -4
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.component.d.ts +1 -1
- package/dist/components/progress-ring/progress-ring.component.js +3 -3
- package/dist/components/progress-ring/progress-ring.custom.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.js +4 -4
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/radio/radio.component.d.ts +1 -1
- package/dist/components/radio/radio.component.js +9 -9
- package/dist/components/radio/radio.custom.styles.js +1 -1
- package/dist/components/radio/radio.js +10 -10
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.d.ts +1 -1
- package/dist/components/radio-button/radio-button.component.js +8 -8
- package/dist/components/radio-button/radio-button.js +9 -9
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.component.d.ts +1 -1
- package/dist/components/radio-group/radio-group.component.js +10 -10
- package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
- package/dist/components/radio-group/radio-group.js +11 -11
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.js +14 -14
- package/dist/components/range/range.js +15 -15
- package/dist/components/range/range.styles.js +1 -1
- package/dist/components/range/utility.js +1 -1
- package/dist/components/range-tick/range-tick.component.d.ts +1 -1
- package/dist/components/range-tick/range-tick.component.js +3 -3
- package/dist/components/range-tick/range-tick.js +4 -4
- package/dist/components/range-tick/range-tick.styles.js +1 -1
- package/dist/components/resize-observer/resize-observer.component.d.ts +1 -1
- package/dist/components/resize-observer/resize-observer.component.js +4 -4
- package/dist/components/resize-observer/resize-observer.styles.js +1 -1
- package/dist/components/select/select.component.d.ts +6 -1
- package/dist/components/select/select.component.js +18 -18
- package/dist/components/select/select.custom.styles.js +2 -2
- package/dist/components/select/select.js +19 -19
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/select/utility.js +1 -1
- package/dist/components/side-nav/side-nav.component.js +18 -18
- package/dist/components/side-nav/side-nav.js +19 -19
- package/dist/components/side-nav/side-nav.styles.js +1 -1
- package/dist/components/spinner/spinner.component.d.ts +1 -1
- package/dist/components/spinner/spinner.component.js +3 -3
- package/dist/components/spinner/spinner.custom.styles.js +1 -1
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.d.ts +1 -1
- package/dist/components/switch/switch.component.js +9 -9
- package/dist/components/switch/switch.custom.styles.js +1 -1
- package/dist/components/switch/switch.js +10 -10
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.d.ts +1 -1
- package/dist/components/tab/tab.component.js +10 -10
- package/dist/components/tab/tab.custom.styles.js +1 -1
- package/dist/components/tab/tab.js +11 -11
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.component.d.ts +1 -1
- package/dist/components/tab-group/tab-group.component.js +11 -11
- package/dist/components/tab-group/tab-group.custom.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +12 -12
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +4 -4
- package/dist/components/tab-panel/tab-panel.custom.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.js +5 -5
- package/dist/components/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/tag/tag.component.d.ts +1 -1
- package/dist/components/tag/tag.component.js +11 -11
- package/dist/components/tag/tag.custom.styles.js +2 -2
- package/dist/components/tag/tag.js +12 -12
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.d.ts +1 -1
- package/dist/components/textarea/textarea.component.js +9 -9
- package/dist/components/textarea/textarea.custom.styles.js +1 -1
- package/dist/components/textarea/textarea.js +10 -10
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.d.ts +1 -1
- package/dist/components/tooltip/tooltip.component.js +7 -7
- package/dist/components/tooltip/tooltip.custom.styles.js +1 -1
- package/dist/components/tooltip/tooltip.js +8 -8
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/validate/utility.js +3 -3
- package/dist/components/validate/validate.component.d.ts +1 -1
- package/dist/components/validate/validate.component.js +16 -16
- package/dist/components/validate/validate.js +17 -17
- package/dist/components/validate/validate.styles.js +1 -1
- package/dist/custom-elements.json +827 -741
- package/dist/events/syn-clamp.d.ts +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy.js +162 -161
- package/dist/translations/de.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/utilities/animation-registry.js +2 -2
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/defaultSettings/base.js +3 -3
- package/dist/utilities/defaultSettings/decorator.js +5 -5
- package/dist/utilities/defaultSettings/functions.js +4 -4
- package/dist/utilities/defaultSettings/index.js +5 -5
- package/dist/utilities/form.js +3 -3
- package/dist/utilities/icon-library.js +1 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +150 -140
- package/package.json +1 -1
- package/dist/chunks/chunk.2YBP4WEH.js.map +0 -7
- package/dist/chunks/chunk.32CPGKWW.js.map +0 -7
- package/dist/chunks/chunk.5NGEDTDD.js.map +0 -7
- package/dist/chunks/chunk.6EJPCDSL.js.map +0 -7
- package/dist/chunks/chunk.7BMEQKZX.js.map +0 -7
- package/dist/chunks/chunk.AQWT2EI4.js.map +0 -7
- package/dist/chunks/chunk.B6R3IVGO.js.map +0 -7
- package/dist/chunks/chunk.B6TTKFK2.js.map +0 -7
- package/dist/chunks/chunk.BTS57O4V.js.map +0 -7
- package/dist/chunks/chunk.CEVNM6DM.js.map +0 -7
- package/dist/chunks/chunk.CSBK2UIN.js.map +0 -7
- package/dist/chunks/chunk.CVSFD3LB.js.map +0 -7
- package/dist/chunks/chunk.EZDB5RU7.js.map +0 -7
- package/dist/chunks/chunk.FAVMXFQL.js.map +0 -7
- package/dist/chunks/chunk.HIF4ZQ35.js.map +0 -7
- package/dist/chunks/chunk.HZHIIS2I.js.map +0 -7
- package/dist/chunks/chunk.IDS32BVD.js.map +0 -7
- package/dist/chunks/chunk.J75DWM6J.js.map +0 -7
- package/dist/chunks/chunk.JJI5CPOB.js.map +0 -7
- package/dist/chunks/chunk.KMAFFDJZ.js.map +0 -7
- package/dist/chunks/chunk.KTCGXZQ4.js.map +0 -7
- package/dist/chunks/chunk.LW362SOH.js.map +0 -7
- package/dist/chunks/chunk.N42HYZ3J.js.map +0 -7
- package/dist/chunks/chunk.PJSCG4YE.js.map +0 -7
- package/dist/chunks/chunk.QVS5TYTR.js.map +0 -7
- package/dist/chunks/chunk.S5LABDRE.js.map +0 -7
- package/dist/chunks/chunk.TB7FVSDL.js.map +0 -7
- package/dist/chunks/chunk.THIOHUU2.js.map +0 -7
- package/dist/chunks/chunk.U23YWMIX.js.map +0 -7
- package/dist/chunks/chunk.U3WTJD4D.js.map +0 -7
- package/dist/chunks/chunk.UBAW2LID.js.map +0 -7
- package/dist/chunks/chunk.WFR4RMWT.js.map +0 -7
- package/dist/chunks/chunk.WIVZPX4Q.js.map +0 -7
- package/dist/chunks/chunk.XZFEDMD4.js.map +0 -7
- package/dist/chunks/chunk.ZIDEDWYN.js.map +0 -7
- package/dist/chunks/chunk.ZK7XTPJN.js.map +0 -7
- /package/dist/chunks/{chunk.POR4YXBM.js.map → chunk.23KNPBFB.js.map} +0 -0
- /package/dist/chunks/{chunk.D7ZU5UFL.js.map → chunk.2K6NQLEV.js.map} +0 -0
- /package/dist/chunks/{chunk.M25XYM73.js.map → chunk.2NWEQCDE.js.map} +0 -0
- /package/dist/chunks/{chunk.KXU56SNB.js.map → chunk.2XOHNYC5.js.map} +0 -0
- /package/dist/chunks/{chunk.YJJGWT72.js.map → chunk.34MJRDEM.js.map} +0 -0
- /package/dist/chunks/{chunk.FEKYKC4C.js.map → chunk.3JEL6TFC.js.map} +0 -0
- /package/dist/chunks/{chunk.OQHYWXRI.js.map → chunk.3ZKI5OTR.js.map} +0 -0
- /package/dist/chunks/{chunk.FO5F6LKG.js.map → chunk.4I3A2FAT.js.map} +0 -0
- /package/dist/chunks/{chunk.PGRPK5CM.js.map → chunk.66H23HMI.js.map} +0 -0
- /package/dist/chunks/{chunk.HQ6QUSK7.js.map → chunk.7JGKUB4A.js.map} +0 -0
- /package/dist/chunks/{chunk.AKBNSAMF.js.map → chunk.A7BSGQUQ.js.map} +0 -0
- /package/dist/chunks/{chunk.2LYOMDFO.js.map → chunk.AYAX7BG7.js.map} +0 -0
- /package/dist/chunks/{chunk.RPIHGLAB.js.map → chunk.BGBML4AJ.js.map} +0 -0
- /package/dist/chunks/{chunk.E257OZYA.js.map → chunk.BKHCRIMU.js.map} +0 -0
- /package/dist/chunks/{chunk.UT46BUBN.js.map → chunk.BPD4SAWW.js.map} +0 -0
- /package/dist/chunks/{chunk.Q3DVGFDB.js.map → chunk.BRG3RLN3.js.map} +0 -0
- /package/dist/chunks/{chunk.74IOULXM.js.map → chunk.BVZQ6QSY.js.map} +0 -0
- /package/dist/chunks/{chunk.IJ7VHZFK.js.map → chunk.CEQYPACD.js.map} +0 -0
- /package/dist/chunks/{chunk.57AK7CVM.js.map → chunk.CGQHRVXQ.js.map} +0 -0
- /package/dist/chunks/{chunk.2IWVCAEF.js.map → chunk.E3EDE5EN.js.map} +0 -0
- /package/dist/chunks/{chunk.GD33VPEE.js.map → chunk.EC3TBECW.js.map} +0 -0
- /package/dist/chunks/{chunk.TLCX6C3Y.js.map → chunk.FI2CRQ7Y.js.map} +0 -0
- /package/dist/chunks/{chunk.IO36YFGG.js.map → chunk.FUXHSYEA.js.map} +0 -0
- /package/dist/chunks/{chunk.A3OYJILJ.js.map → chunk.G6ITZTTW.js.map} +0 -0
- /package/dist/chunks/{chunk.JCIM6NE3.js.map → chunk.G76BKD7B.js.map} +0 -0
- /package/dist/chunks/{chunk.OLPCSVVL.js.map → chunk.GCIPCYGA.js.map} +0 -0
- /package/dist/chunks/{chunk.WBSH7WXZ.js.map → chunk.GNAG7ZC2.js.map} +0 -0
- /package/dist/chunks/{chunk.Q7BW6KKX.js.map → chunk.HX7JLYDF.js.map} +0 -0
- /package/dist/chunks/{chunk.RZ4YAAAL.js.map → chunk.HZO7PBWS.js.map} +0 -0
- /package/dist/chunks/{chunk.RFWHBKPI.js.map → chunk.IFV2P53O.js.map} +0 -0
- /package/dist/chunks/{chunk.N7EVNHYR.js.map → chunk.J6WNJGIB.js.map} +0 -0
- /package/dist/chunks/{chunk.5CAP3G3X.js.map → chunk.JB6TLEKH.js.map} +0 -0
- /package/dist/chunks/{chunk.7RHGZPLP.js.map → chunk.K3PX643U.js.map} +0 -0
- /package/dist/chunks/{chunk.W42P6ZZU.js.map → chunk.KAR4IGHT.js.map} +0 -0
- /package/dist/chunks/{chunk.A67AAALJ.js.map → chunk.KJBCZJ6K.js.map} +0 -0
- /package/dist/chunks/{chunk.UTJJJQMA.js.map → chunk.MTN5NM4A.js.map} +0 -0
- /package/dist/chunks/{chunk.UKCQF4MT.js.map → chunk.N3KLCG35.js.map} +0 -0
- /package/dist/chunks/{chunk.ILHF3ABL.js.map → chunk.NQH6IYCA.js.map} +0 -0
- /package/dist/chunks/{chunk.OM47S5WL.js.map → chunk.NTTXYDYX.js.map} +0 -0
- /package/dist/chunks/{chunk.6ETN74WB.js.map → chunk.OMZMY7WY.js.map} +0 -0
- /package/dist/chunks/{chunk.UZFE4ZK6.js.map → chunk.PE3G4I5L.js.map} +0 -0
- /package/dist/chunks/{chunk.JJ3OBG7Q.js.map → chunk.PKPTTKQA.js.map} +0 -0
- /package/dist/chunks/{chunk.DSW34EOY.js.map → chunk.QAQINAAG.js.map} +0 -0
- /package/dist/chunks/{chunk.5F6A2J5X.js.map → chunk.RK6NECYK.js.map} +0 -0
- /package/dist/chunks/{chunk.A4RVOFFP.js.map → chunk.RTQJFZK3.js.map} +0 -0
- /package/dist/chunks/{chunk.Z63ESAY4.js.map → chunk.S3ABDHZT.js.map} +0 -0
- /package/dist/chunks/{chunk.PK3IARAB.js.map → chunk.SIWLLQTA.js.map} +0 -0
- /package/dist/chunks/{chunk.IB6CAJFE.js.map → chunk.SLFOWP34.js.map} +0 -0
- /package/dist/chunks/{chunk.RCZVZKH3.js.map → chunk.SWCD3CKX.js.map} +0 -0
- /package/dist/chunks/{chunk.NYCKYU42.js.map → chunk.TJPUKKXT.js.map} +0 -0
- /package/dist/chunks/{chunk.QWO6FDBH.js.map → chunk.U5UY5Y2W.js.map} +0 -0
- /package/dist/chunks/{chunk.5OYRCRNV.js.map → chunk.UIFJKTEU.js.map} +0 -0
- /package/dist/chunks/{chunk.GCQLCTYL.js.map → chunk.UODJAGU2.js.map} +0 -0
- /package/dist/chunks/{chunk.33EV4VCU.js.map → chunk.V4H475OR.js.map} +0 -0
- /package/dist/chunks/{chunk.PQFT5ON4.js.map → chunk.V4K35JJY.js.map} +0 -0
- /package/dist/chunks/{chunk.SFECHRNT.js.map → chunk.VTWC6SZF.js.map} +0 -0
- /package/dist/chunks/{chunk.DNNV6VLW.js.map → chunk.XIAITA3R.js.map} +0 -0
- /package/dist/chunks/{chunk.MRQZD5TX.js.map → chunk.Y34UAFAN.js.map} +0 -0
- /package/dist/chunks/{chunk.63XQMHFQ.js.map → chunk.YF6FRUKX.js.map} +0 -0
- /package/dist/chunks/{chunk.VE2GLMIO.js.map → chunk.YYAC6H6O.js.map} +0 -0
- /package/dist/chunks/{chunk.2GFK6XTO.js.map → chunk.Z4XV3SMG.js.map} +0 -0
- /package/dist/chunks/{chunk.7YATRHZN.js.map → chunk.Z634ODXV.js.map} +0 -0
- /package/dist/chunks/{chunk.CACKIXTX.js.map → chunk.Z6TU6HAF.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynProgressBar
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.56NTE7JW.js";
|
|
4
4
|
|
|
5
5
|
// src/components/progress-bar/progress-bar.ts
|
|
6
6
|
var progress_bar_default = SynProgressBar;
|
|
@@ -9,4 +9,4 @@ SynProgressBar.define("syn-progress-bar");
|
|
|
9
9
|
export {
|
|
10
10
|
progress_bar_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.CGQHRVXQ.js.map
|
|
@@ -13,25 +13,25 @@ import {
|
|
|
13
13
|
} from "./chunk.AERTEAG5.js";
|
|
14
14
|
import {
|
|
15
15
|
FormControlController
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.HP2LEQRU.js";
|
|
17
17
|
import {
|
|
18
18
|
HasSlotController
|
|
19
19
|
} from "./chunk.WVVQK5TE.js";
|
|
20
|
-
import {
|
|
21
|
-
watch
|
|
22
|
-
} from "./chunk.74IOULXM.js";
|
|
23
20
|
import {
|
|
24
21
|
enableDefaultSettings
|
|
25
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.V4H475OR.js";
|
|
23
|
+
import {
|
|
24
|
+
watch
|
|
25
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
26
26
|
import {
|
|
27
27
|
component_styles_default
|
|
28
28
|
} from "./chunk.NLYVOJGK.js";
|
|
29
29
|
import {
|
|
30
30
|
SynergyElement
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.NUQBPC6D.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass
|
|
34
|
-
} from "./chunk.
|
|
34
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
35
35
|
|
|
36
36
|
// src/components/switch/switch.component.ts
|
|
37
37
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -213,7 +213,7 @@ __decorateClass([
|
|
|
213
213
|
state()
|
|
214
214
|
], SynSwitch.prototype, "hasFocus", 2);
|
|
215
215
|
__decorateClass([
|
|
216
|
-
property()
|
|
216
|
+
property({ reflect: true })
|
|
217
217
|
], SynSwitch.prototype, "title", 2);
|
|
218
218
|
__decorateClass([
|
|
219
219
|
property()
|
|
@@ -255,4 +255,4 @@ SynSwitch = __decorateClass([
|
|
|
255
255
|
export {
|
|
256
256
|
SynSwitch
|
|
257
257
|
};
|
|
258
|
-
//# sourceMappingURL=chunk.
|
|
258
|
+
//# sourceMappingURL=chunk.DOIMWGFS.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/switch/switch.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './switch.styles.js';\nimport customStyles from './switch.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Switches allow the user to toggle an option on or off.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-switch--docs\n * @status stable\n * @since 2.0\n *\n * @slot - The switch's label.\n * @slot help-text - Text that describes how to use the switch. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when the control's checked state changes.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The control that houses the switch's thumb.\n * @csspart thumb - The switch's thumb.\n * @csspart label - The switch's label.\n * @csspart form-control-help-text - The help text's wrapper.\n *\n * @cssproperty --width - The width of the switch.\n * @cssproperty --height - The height of the switch.\n * @cssproperty --thumb-size - The size of the thumb.\n */\n@enableDefaultSettings('SynSwitch')\nexport default class SynSwitch extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n\n private readonly formControlController = new FormControlController(this, {\n value: (control: SynSwitch) => (control.checked ? control.value || 'on' : undefined),\n defaultValue: (control: SynSwitch) => control.defaultChecked,\n setValue: (control: SynSwitch, checked: boolean) => (control.checked = checked)\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text');\n\n @query('input[type=\"checkbox\"]') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n @property({ reflect: true }) title = ''; // make reactive to pass through\n\n /** The name of the switch, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the switch, submitted as a name/value pair with form data. */\n @property() value: string;\n\n /** The switch's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the switch. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the switch in a checked state. */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue('checked') defaultChecked = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the switch a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The switch's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleInput() {\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleClick() {\n this.checked = !this.checked;\n this.emit('syn-change');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.checked = false;\n this.emit('syn-change');\n this.emit('syn-input');\n }\n\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.checked = true;\n this.emit('syn-change');\n this.emit('syn-input');\n }\n }\n\n @watch('checked', { waitUntilFirstUpdate: true })\n handleCheckedChange() {\n this.input.checked = this.checked; // force a sync update\n this.formControlController.updateValidity();\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(true);\n }\n\n /** Simulates a click on the switch. */\n click() {\n this.input.click();\n }\n\n /** Sets focus on the switch. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the switch. */\n blur() {\n this.input.blur();\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n\n return html`\n <div\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-help-text': hasHelpText\n })}\n >\n <label\n part=\"base\"\n class=${classMap({\n switch: true,\n 'switch--checked': this.checked,\n 'switch--disabled': this.disabled,\n 'switch--focused': this.hasFocus,\n 'switch--small': this.size === 'small',\n 'switch--medium': this.size === 'medium',\n 'switch--large': this.size === 'large'\n })}\n >\n <input\n class=\"switch__input\"\n type=\"checkbox\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${this.name}\n value=${ifDefined(this.value)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n role=\"switch\"\n aria-checked=${this.checked ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n @click=${this.handleClick}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @keydown=${this.handleKeyDown}\n />\n\n <span part=\"control\" class=\"switch__control\">\n <span part=\"thumb\" class=\"switch__thumb\"></span>\n </span>\n\n <div part=\"label\" class=\"switch__label\">\n <slot></slot>\n </div>\n </label>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-switch': SynSwitch;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAsCvC,IAAqB,YAArB,cAAuC,eAA6C;AAAA,EAApF;AAAA;AAGE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,OAAO,CAAC,YAAwB,QAAQ,UAAU,QAAQ,SAAS,OAAO;AAAA,MAC1E,cAAc,CAAC,YAAuB,QAAQ;AAAA,MAC9C,UAAU,CAAC,SAAoB,YAAsB,QAAQ,UAAU;AAAA,IACzE,CAAC;AACD,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,WAAW;AAInE,SAAQ,WAAW;AACC,iBAAQ;AAGzB,gBAAO;AAMU,gBAAqC;AAGtB,oBAAW;AAGX,mBAAU;AAG7B,0BAAiB;AAOb,gBAAO;AAGQ,oBAAW;AAGjB,oBAAW;AAAA;AAAA;AAAA,EAGjD,IAAI,WAAW;AACb,WAAO,KAAK,MAAM;AAAA,EACpB;AAAA;AAAA,EAGA,IAAI,oBAAoB;AACtB,WAAO,KAAK,MAAM;AAAA,EACpB;AAAA,EAEA,eAAe;AACb,SAAK,sBAAsB,eAAe;AAAA,EAC5C;AAAA,EAEQ,aAAa;AACnB,SAAK,WAAW;AAChB,SAAK,KAAK,UAAU;AAAA,EACtB;AAAA,EA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14
14
|
LocalizeController
|
|
15
15
|
} from "./chunk.GIU3H3J3.js";
|
|
16
16
|
import {
|
|
17
17
|
watch
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
19
19
|
import {
|
|
20
20
|
component_styles_default
|
|
21
21
|
} from "./chunk.NLYVOJGK.js";
|
|
22
22
|
import {
|
|
23
23
|
SynergyElement
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.NUQBPC6D.js";
|
|
25
25
|
import {
|
|
26
26
|
__decorateClass
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
28
28
|
|
|
29
29
|
// src/components/option/option.component.ts
|
|
30
30
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -165,4 +165,4 @@ __decorateClass([
|
|
|
165
165
|
export {
|
|
166
166
|
SynOption
|
|
167
167
|
};
|
|
168
|
-
//# sourceMappingURL=chunk.
|
|
168
|
+
//# sourceMappingURL=chunk.DSM54YAD.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/option/option.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './option.styles.js';\nimport customStyles from './option.custom.styles.js';\nimport { delimiterToWhiteSpace } from './utility.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Options define the selectable items within various form controls such as [select](/components/select).\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-option--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The option's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n *\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart base - The component's base wrapper.\n * @csspart label - The option's label.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n */\nexport default class SynOption extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n // @ts-expect-error - Controller is currently unused\n private readonly localize = new LocalizeController(this);\n\n private isInitialized = false;\n\n @query('.option__label') defaultSlot: HTMLSlotElement;\n\n // the delimiter used to separate multiple values in a select\n // This is provided by the wrapping syn-select\n @state() delimiter = ' ';\n\n @state() current = false; // the user has keyed into the option, but hasn't selected it yet (shows a highlight)\n @state() selected = false; // the option is selected and has aria-selected=\"true\"\n @state() hasHover = false; // we need this because Safari doesn't honor :hover styles while dragging\n\n /**\n * The option's value. When selected, the containing form control will receive this value. The value must be unique\n * from other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\n * multiple values.\n */\n @property({ reflect: true }) value: string | number = '';\n\n /** Draws the option in a disabled state, preventing selection. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'option');\n this.setAttribute('aria-selected', 'false');\n }\n\n private handleDefaultSlotChange() {\n if (this.isInitialized) {\n // When the label changes, tell the controller to update\n customElements.whenDefined('syn-combobox').then(() => {\n const controller = this.closest('syn-combobox');\n if (controller) {\n controller.handleDefaultSlotChange();\n }\n });\n customElements.whenDefined('syn-select').then(() => {\n const controller = this.closest('syn-select');\n if (controller) {\n controller.handleDefaultSlotChange();\n }\n });\n } else {\n this.isInitialized = true;\n }\n }\n\n private handleMouseEnter() {\n this.hasHover = true;\n }\n\n private handleMouseLeave() {\n this.hasHover = false;\n }\n\n @watch('disabled')\n handleDisabledChange() {\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n @watch('selected')\n handleSelectedChange() {\n this.setAttribute('aria-selected', this.selected ? 'true' : 'false');\n }\n\n @watch('value')\n handleValueChange() {\n if (typeof this.value === 'number') {\n return;\n }\n\n // Ensure the value is a string. This ensures the next line doesn't error and allows framework users to pass numbers\n // instead of requiring them to cast the value to a string.\n if (typeof this.value !== 'string') {\n this.value = String(this.value);\n }\n\n const { delimiter } = this;\n\n if (this.value.includes(delimiter)) {\n console.error(`Option values cannot include \"${delimiter}\". All occurrences of \"${delimiter}\" have been replaced with \"_\".`, this);\n this.value = delimiterToWhiteSpace(this.value, this.delimiter);\n }\n }\n\n /** Returns a plain text label based on the option's content. */\n getTextLabel() {\n const nodes = this.childNodes;\n let label = '';\n\n [...nodes].forEach(node => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n if (!(node as HTMLElement).hasAttribute('slot')) {\n label += (node as HTMLElement).textContent;\n }\n }\n\n if (node.nodeType === Node.TEXT_NODE) {\n label += node.textContent;\n }\n });\n\n return label.trim();\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n option: true,\n 'option--current': this.current,\n 'option--disabled': this.disabled,\n 'option--selected': this.selected,\n 'option--hover': this.hasHover\n })}\n @mouseenter=${this.handleMouseEnter}\n @mouseleave=${this.handleMouseLeave}\n >\n <syn-icon part=\"checked-icon\" class=\"option__check\" name=\"check\" library=\"system\" aria-hidden=\"true\"></syn-icon>\n <slot part=\"prefix\" name=\"prefix\" class=\"option__prefix\"></slot>\n <slot part=\"label\" class=\"option__label\" @slotchange=${this.handleDefaultSlotChange}></slot>\n <slot part=\"suffix\" name=\"suffix\" class=\"option__suffix\"></slot>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACz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AAS,KAAK,CAAC;AAAA,GAxBR,UAwBU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA3BvB,UA2ByB;AAqC5C;AAAA,EADC,MAAM,UAAU;AAAA,GA/DE,UAgEnB;AAKA;AAAA,EADC,MAAM,UAAU;AAAA,GApEE,UAqEnB;AAKA;AAAA,EADC,MAAM,OAAO;AAAA,GAzEK,UA0EnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDivider
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.AVC4OCSZ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/divider/divider.ts
|
|
6
6
|
var divider_default = SynDivider;
|
|
@@ -9,4 +9,4 @@ SynDivider.define("syn-divider");
|
|
|
9
9
|
export {
|
|
10
10
|
divider_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.E3EDE5EN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBreadcrumb
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.53RGIEWF.js";
|
|
4
4
|
|
|
5
5
|
// src/components/breadcrumb/breadcrumb.ts
|
|
6
6
|
var breadcrumb_default = SynBreadcrumb;
|
|
@@ -9,4 +9,4 @@ SynBreadcrumb.define("syn-breadcrumb");
|
|
|
9
9
|
export {
|
|
10
10
|
breadcrumb_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.EC3TBECW.js.map
|
|
@@ -3,45 +3,45 @@ import {
|
|
|
3
3
|
} from "./chunk.WXVOTRW5.js";
|
|
4
4
|
import {
|
|
5
5
|
SynIconButton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.IKCNW223.js";
|
|
7
7
|
import {
|
|
8
8
|
waitForEvent
|
|
9
9
|
} from "./chunk.C2ENQBPM.js";
|
|
10
10
|
import {
|
|
11
11
|
animateTo,
|
|
12
12
|
stopAnimations
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.G6ITZTTW.js";
|
|
14
14
|
import {
|
|
15
15
|
getAnimation,
|
|
16
16
|
setDefaultAnimation
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.7JGKUB4A.js";
|
|
18
|
+
import {
|
|
19
|
+
LocalizeController
|
|
20
|
+
} from "./chunk.GIU3H3J3.js";
|
|
18
21
|
import {
|
|
19
22
|
HasSlotController
|
|
20
23
|
} from "./chunk.WVVQK5TE.js";
|
|
21
24
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./chunk.
|
|
25
|
+
alert_custom_styles_default
|
|
26
|
+
} from "./chunk.QBHZAR4C.js";
|
|
24
27
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./chunk.
|
|
28
|
+
alert_styles_default
|
|
29
|
+
} from "./chunk.BXY667C7.js";
|
|
27
30
|
import {
|
|
28
31
|
enableDefaultSettings
|
|
29
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.V4H475OR.js";
|
|
33
|
+
import {
|
|
34
|
+
watch
|
|
35
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
30
36
|
import {
|
|
31
37
|
component_styles_default
|
|
32
38
|
} from "./chunk.NLYVOJGK.js";
|
|
33
39
|
import {
|
|
34
40
|
SynergyElement
|
|
35
|
-
} from "./chunk.
|
|
36
|
-
import {
|
|
37
|
-
alert_custom_styles_default
|
|
38
|
-
} from "./chunk.QBHZAR4C.js";
|
|
39
|
-
import {
|
|
40
|
-
alert_styles_default
|
|
41
|
-
} from "./chunk.BXY667C7.js";
|
|
41
|
+
} from "./chunk.NUQBPC6D.js";
|
|
42
42
|
import {
|
|
43
43
|
__decorateClass
|
|
44
|
-
} from "./chunk.
|
|
44
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
45
45
|
|
|
46
46
|
// src/components/alert/alert.component.ts
|
|
47
47
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -288,4 +288,4 @@ setDefaultAnimation("alert.hide", {
|
|
|
288
288
|
export {
|
|
289
289
|
SynAlert
|
|
290
290
|
};
|
|
291
|
-
//# sourceMappingURL=chunk.
|
|
291
|
+
//# sourceMappingURL=chunk.EK2I2ETM.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/alert/alert.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './alert.styles.js';\nimport customStyles from './alert.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Alerts are used to display important messages inline or as toast notifications.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-alert--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The alert's main content.\n * @slot icon - An icon to show in the alert. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the alert opens.\n * @event syn-after-show - Emitted after the alert opens and all animations are complete.\n * @event syn-hide - Emitted when the alert closes.\n * @event syn-after-hide - Emitted after the alert closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The container that wraps the optional icon.\n * @csspart message - The container that wraps the alert's main content.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n *\n * @animation alert.show - The animation to use when showing the alert.\n * @animation alert.hide - The animation to use when hiding the alert.\n */\n@enableDefaultSettings('SynAlert')\nexport default class SynAlert extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private autoHideTimeout: number;\n private remainingTimeInterval: number;\n private countdownAnimation?: Animation;\n private readonly hasSlotController = new HasSlotController(this, 'icon', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n private static currentToastStack: HTMLDivElement;\n\n private static get toastStack() {\n if (!this.currentToastStack) {\n this.currentToastStack = Object.assign(document.createElement('div'), {\n className: 'syn-toast-stack'\n });\n }\n return this.currentToastStack;\n }\n\n @query('[part~=\"base\"]') base: HTMLElement;\n\n @query('.alert__countdown-elapsed') countdownElement: HTMLElement;\n\n /**\n * Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the alert's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Enables a close button that allows the user to dismiss the alert. */\n @property({ type: Boolean, reflect: true }) closable = false;\n\n /** The alert's theme variant. */\n @property({ reflect: true }) variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with\n * the alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning\n * the alert will not close on its own.\n */\n @property({ type: Number }) duration = Infinity;\n\n /**\n * Enables a countdown that indicates the remaining time the alert will be displayed.\n * Typically used to indicate the remaining time before a whole app refresh.\n */\n private countdown? : 'rtl' | 'ltr';\n\n @state() private remainingTime = this.duration;\n\n firstUpdated() {\n this.base.hidden = !this.open;\n }\n\n private restartAutoHide() {\n this.handleCountdownChange();\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n this.remainingTime = this.duration;\n this.remainingTimeInterval = window.setInterval(() => {\n this.remainingTime -= 100;\n }, 100);\n }\n }\n\n private pauseAutoHide() {\n this.countdownAnimation?.pause();\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n }\n\n private resumeAutoHide() {\n if (this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.remainingTime);\n this.remainingTimeInterval = window.setInterval(() => {\n this.remainingTime -= 100;\n }, 100);\n this.countdownAnimation?.play();\n }\n }\n\n private handleCountdownChange() {\n if (this.open && this.duration < Infinity && this.countdown) {\n const { countdownElement } = this;\n const start = '100%';\n const end = '0';\n this.countdownAnimation = countdownElement.animate([{ width: start }, { width: end }], {\n duration: this.duration,\n easing: 'linear'\n });\n }\n }\n\n private handleCloseClick() {\n this.hide();\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n // Show\n this.emit('syn-show');\n\n if (this.duration < Infinity) {\n this.restartAutoHide();\n }\n\n await stopAnimations(this.base);\n this.base.hidden = false;\n const { keyframes, options } = getAnimation(this, 'alert.show', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n blurActiveElement(this);\n this.emit('syn-hide');\n\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n\n await stopAnimations(this.base);\n const { keyframes, options } = getAnimation(this, 'alert.hide', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n this.base.hidden = true;\n\n this.emit('syn-after-hide');\n }\n }\n\n @watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Shows the alert. */\n async show() {\n if (this.open) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the alert */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n */\n async toast() {\n return new Promise<void>(resolve => {\n this.handleCountdownChange();\n if (SynAlert.toastStack.parentElement === null) {\n document.body.append(SynAlert.toastStack);\n }\n\n SynAlert.toastStack.appendChild(this);\n\n // Wait for the toast stack to render\n requestAnimationFrame(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- force a reflow for the initial transition\n this.clientWidth;\n this.show();\n });\n\n this.addEventListener(\n 'syn-after-hide',\n () => {\n SynAlert.toastStack.removeChild(this);\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (SynAlert.toastStack.querySelector('syn-alert') === null) {\n SynAlert.toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n alert: true,\n 'alert--open': this.open,\n 'alert--closable': this.closable,\n 'alert--has-icon': this.hasSlotController.test('icon'),\n 'alert--primary': this.variant === 'primary',\n 'alert--success': this.variant === 'success',\n 'alert--neutral': this.variant === 'neutral',\n 'alert--warning': this.variant === 'warning',\n 'alert--danger': this.variant === 'danger'\n })}\n role=\"alert\"\n aria-hidden=${this.open ? 'false' : 'true'}\n @mouseenter=${this.pauseAutoHide}\n @mouseleave=${this.resumeAutoHide}\n >\n <div part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\"></slot>\n </div>\n\n <div part=\"message\" class=\"alert__message\" aria-live=\"polite\">\n <slot></slot>\n </div>\n\n ${this.closable\n ? html`\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"alert__close-button\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term('close')}\n @click=${this.handleCloseClick}\n ></syn-icon-button>\n `\n : ''}\n\n <div role=\"timer\" class=\"alert__timer\">${this.remainingTime}</div>\n\n ${this.countdown\n ? html`\n <div\n class=${classMap({\n alert__countdown: true,\n 'alert__countdown--ltr': this.countdown === 'ltr'\n })}\n >\n <div class=\"alert__countdown-elapsed\"></div>\n </div>\n `\n : ''}\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('alert.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('alert.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AAqCvC,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ,QAAQ;AACjF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAqBX,gBAAO;AAGP,oBAAW;AAG1B,mBAAoE;AAOrE,oBAAW;AAQ9B,SAAQ,gBAAgB,KAAK;AAAA;AAAA,EAtCtC,WAAmB,aAAa;AAC9B,QAAI,CAAC,KAAK,mBAAmB;AAC3B,WAAK,oBAAoB,OAAO,OAAO,SAAS,cAAc,KAAK,GAAG;AAAA,QACpE,WAAW;AAAA,MACb,CAAC;AAAA,IACH;AACA,WAAO,KAAK;AAAA,EACd;AAAA,EAiCA,eAAe;AACb,SAAK,KAAK,SAAS,CAAC,KAAK;AAAA,EAC3B;AAAA,EAEQ,kBAAkB;A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
|
6
6
|
var alert_default = SynAlert;
|
|
@@ -9,4 +9,4 @@ SynAlert.define("syn-alert");
|
|
|
9
9
|
export {
|
|
10
10
|
alert_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.FI2CRQ7Y.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSideNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.RTQJFZK3.js";
|
|
4
4
|
|
|
5
5
|
// src/components/side-nav/side-nav.ts
|
|
6
6
|
var side_nav_default = SynSideNav;
|
|
@@ -9,4 +9,4 @@ SynSideNav.define("syn-side-nav");
|
|
|
9
9
|
export {
|
|
10
10
|
side_nav_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.FUXHSYEA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadProps,
|
|
3
3
|
__spreadValues
|
|
4
|
-
} from "./chunk.
|
|
4
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
5
5
|
|
|
6
6
|
// src/internal/animate.ts
|
|
7
7
|
function animateTo(el, keyframes, options) {
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
stopAnimations,
|
|
53
53
|
shimKeyframesHeightAuto
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk.
|
|
55
|
+
//# sourceMappingURL=chunk.G6ITZTTW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__yieldStar
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
4
4
|
|
|
5
5
|
// src/internal/active-elements.ts
|
|
6
6
|
function* activeElements(activeElement = document.activeElement) {
|
|
@@ -154,4 +154,4 @@ export {
|
|
|
154
154
|
getTabbableBoundary,
|
|
155
155
|
getTabbableElements
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=chunk.
|
|
157
|
+
//# sourceMappingURL=chunk.G76BKD7B.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBadge
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.GQBSDITD.js";
|
|
4
4
|
|
|
5
5
|
// src/components/badge/badge.ts
|
|
6
6
|
var badge_default = SynBadge;
|
|
@@ -9,4 +9,4 @@ SynBadge.define("syn-badge");
|
|
|
9
9
|
export {
|
|
10
10
|
badge_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.GCIPCYGA.js.map
|
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
} from "./chunk.43YNZAWL.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIconButton
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.IKCNW223.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.GIU3H3J3.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
16
16
|
import {
|
|
17
17
|
component_styles_default
|
|
18
18
|
} from "./chunk.NLYVOJGK.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.NUQBPC6D.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
25
25
|
|
|
26
26
|
// src/components/tab/tab.component.ts
|
|
27
27
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -118,4 +118,4 @@ __decorateClass([
|
|
|
118
118
|
export {
|
|
119
119
|
SynTab
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk.
|
|
121
|
+
//# sourceMappingURL=chunk.GG2RRZVJ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/tab/tab.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './tab.styles.js';\nimport customStyles from './tab.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nlet id = 0;\n\n/**\n * @summary Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel).\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-tab--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The tab's label.\n *\n * @event syn-close - Emitted when the tab is closable and the close button is activated.\n *\n * @csspart base - The component's base wrapper.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n */\nexport default class SynTab extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private readonly localize = new LocalizeController(this);\n\n private readonly attrId = ++id;\n private readonly componentId = `syn-tab-${this.attrId}`;\n\n @query('.tab') tab: HTMLElement;\n\n /** The name of the tab panel this tab is associated with. The panel must be located in the same tab group. */\n @property({ reflect: true }) panel = '';\n\n /** Draws the tab in an active state. */\n @property({ type: Boolean, reflect: true }) active = false;\n\n /** Makes the tab closable and shows a close button. */\n @property({ type: Boolean, reflect: true }) closable = false;\n\n /** Disables the tab and prevents selection. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * @internal\n * Need to wrap in a `@property()` otherwise CustomElement throws a \"The result must not have attributes\" runtime error.\n */\n @property({ type: Number, reflect: true }) tabIndex = 0;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'tab');\n }\n\n private handleCloseClick(event: Event) {\n event.stopPropagation();\n this.emit('syn-close');\n }\n\n @watch('active')\n handleActiveChange() {\n this.setAttribute('aria-selected', this.active ? 'true' : 'false');\n }\n\n @watch('disabled')\n handleDisabledChange() {\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n\n if (this.disabled && !this.active) {\n this.tabIndex = -1;\n } else {\n this.tabIndex = 0;\n }\n }\n\n render() {\n // If the user didn't provide an ID, we'll set one so we can link tabs and tab panels with aria labels\n this.id = this.id.length > 0 ? this.id : this.componentId;\n\n return html`\n <div\n part=\"base\"\n class=${classMap({\n tab: true,\n 'tab--active': this.active,\n 'tab--closable': this.closable,\n 'tab--disabled': this.disabled\n })}\n >\n <slot></slot>\n ${this.closable\n ? html`\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term('close')}\n class=\"tab__close-button\"\n @click=${this.handleCloseClick}\n tabindex=\"-1\"\n ></syn-icon-button>\n `\n : ''}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-tab': SynTab;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;AAShC,IAAI,KAAK;AAkBT,IAAqB,SAArB,cAAoC,eAAe;AAAA,EAAnD;AAAA;AAIE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAEvD,SAAiB,SAAS,EAAE;AAC5B,SAAiB,cAAc,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,SAAS,KAAK,CAAC;AAAA,GAfvB,OAeyB;AAGA;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAlBvB,OAkByB;AAGA;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GArBvB,OAqByB;AAMD;AAAA,EAA1C,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GA3BtB,OA2BwB;AAa3C;AAAA,EADC,MAAM,QAAQ;AAAA,GAvCI,OAwCnB;AAKA;AAAA,EADC,MAAM,UAAU;AAAA,GA5CE,OA6CnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynHeader
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.34MJRDEM.js";
|
|
4
4
|
|
|
5
5
|
// src/components/header/header.ts
|
|
6
6
|
var header_default = SynHeader;
|
|
@@ -9,4 +9,4 @@ SynHeader.define("syn-header");
|
|
|
9
9
|
export {
|
|
10
10
|
header_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.GNAG7ZC2.js.map
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
} from "./chunk.GIU3H3J3.js";
|
|
10
10
|
import {
|
|
11
11
|
enableDefaultSettings
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.V4H475OR.js";
|
|
13
13
|
import {
|
|
14
14
|
component_styles_default
|
|
15
15
|
} from "./chunk.NLYVOJGK.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.NUQBPC6D.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
22
22
|
|
|
23
23
|
// src/components/badge/badge.component.ts
|
|
24
24
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -66,4 +66,4 @@ SynBadge = __decorateClass([
|
|
|
66
66
|
export {
|
|
67
67
|
SynBadge
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=chunk.
|
|
69
|
+
//# sourceMappingURL=chunk.GQBSDITD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/badge/badge.component.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport styles from './badge.styles.js';\nimport customStyles from './badge.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Badges are used to draw attention and display statuses or counts.\n * @documentation https://synergy.
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport styles from './badge.styles.js';\nimport customStyles from './badge.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Badges are used to draw attention and display statuses or counts.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-badge--docs\n * @status stable\n * @since 2.0\n *\n * @slot - The badge's content.\n *\n * @csspart base - The component's base wrapper.\n */\n@enableDefaultSettings('SynBadge')\nexport default class SynBadge extends SynergyElement {\n \n private readonly localize = new LocalizeController(this);\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n /** The badge's theme variant. */\n @property({ reflect: true }) variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' = 'primary';\n\n render() {\n return html`\n <span\n part=\"base\"\n class=${classMap({\n badge: true,\n 'badge--primary': this.variant === 'primary',\n 'badge--success': this.variant === 'success',\n 'badge--neutral': this.variant === 'neutral',\n 'badge--warning': this.variant === 'warning',\n 'badge--danger': this.variant === 'danger',\n })}\n role=\"status\"\n >\n <slot>\n <span class=\"visually-hidden\">\n ${this.localize.term(\n (this.variant === 'primary' || this.variant === 'neutral')\n ? 'notification'\n : this.variant\n )}\n </span>\n </slot>\n </span>\n `;\n }\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAoBzB,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAEE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAI1B,mBAAoE;AAAA;AAAA,EAEjG,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,OAAO;AAAA,MACP,kBAAkB,KAAK,YAAY;AAAA,MACnC,kBAAkB,KAAK,YAAY;AAAA,MACnC,kBAAkB,KAAK,YAAY;AAAA,MACnC,kBAAkB,KAAK,YAAY;AAAA,MACnC,iBAAiB,KAAK,YAAY;AAAA,IACpC,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,cAKI,KAAK,SAAS;AAAA,MACb,KAAK,YAAY,aAAa,KAAK,YAAY,YAC5C,iBACA,KAAK;AAAA,IACT,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKb;AACF;AAlCqB,SAGZ,SAAyB,CAAC,0BAAiB,sBAAQ,2BAAY;AAGzC;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GANR,SAMU;AANV,WAArB;AAAA,EADC,sBAAsB,UAAU;AAAA,GACZ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -9,36 +9,36 @@ import {
|
|
|
9
9
|
} from "./chunk.V4HPWQE7.js";
|
|
10
10
|
import {
|
|
11
11
|
SynPopup
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.WUSN4QJH.js";
|
|
13
13
|
import {
|
|
14
14
|
SynSpinner
|
|
15
|
-
} from "./chunk.
|
|
16
|
-
import {
|
|
17
|
-
HasSlotController,
|
|
18
|
-
getTextContent
|
|
19
|
-
} from "./chunk.WVVQK5TE.js";
|
|
15
|
+
} from "./chunk.JHGIU4HZ.js";
|
|
20
16
|
import {
|
|
21
17
|
SynIcon
|
|
22
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.4WTEYK2Y.js";
|
|
23
19
|
import {
|
|
24
20
|
LocalizeController
|
|
25
21
|
} from "./chunk.GIU3H3J3.js";
|
|
22
|
+
import {
|
|
23
|
+
HasSlotController,
|
|
24
|
+
getTextContent
|
|
25
|
+
} from "./chunk.WVVQK5TE.js";
|
|
26
26
|
import {
|
|
27
27
|
watch
|
|
28
|
-
} from "./chunk.
|
|
28
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
29
29
|
import {
|
|
30
30
|
component_styles_default
|
|
31
31
|
} from "./chunk.NLYVOJGK.js";
|
|
32
32
|
import {
|
|
33
33
|
SynergyElement
|
|
34
|
-
} from "./chunk.
|
|
34
|
+
} from "./chunk.NUQBPC6D.js";
|
|
35
35
|
import {
|
|
36
36
|
__decorateClass,
|
|
37
37
|
__privateAdd,
|
|
38
38
|
__privateGet,
|
|
39
39
|
__privateSet,
|
|
40
40
|
__spreadValues
|
|
41
|
-
} from "./chunk.
|
|
41
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
42
42
|
|
|
43
43
|
// src/components/menu-item/menu-item.component.ts
|
|
44
44
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -241,4 +241,4 @@ SynMenuItem = __decorateClass([
|
|
|
241
241
|
export {
|
|
242
242
|
SynMenuItem
|
|
243
243
|
};
|
|
244
|
-
//# sourceMappingURL=chunk.
|
|
244
|
+
//# sourceMappingURL=chunk.HCOKZQTP.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/menu-item/menu-item.component.ts", "../../src/internal/watchEvent.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getTextContent, HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query } from 'lit/decorators.js';\nimport { SubmenuController } from './submenu-controller.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynPopup from '../popup/popup.component.js';\nimport SynSpinner from '../spinner/spinner.component.js';\nimport styles from './menu-item.styles.js';\nimport customStyles from './menu-item.custom.styles.js';\nimport { emitEventForPropertyUpdates } from '../../internal/watchEvent.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Menu items provide options for the user to pick from in a menu.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-menu-item--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-popup\n * @dependency syn-spinner\n *\n * @slot - The menu item's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n * @slot submenu - Used to denote a nested menu.\n *\n * @csspart base - The component's base wrapper.\n * @csspart checked-icon - The checked icon, which is only visible when the menu item is checked.\n * @csspart prefix - The prefix container.\n * @csspart label - The menu item label.\n * @csspart suffix - The suffix container.\n * @csspart spinner - The spinner that shows when the menu item is in the loading state.\n * @csspart spinner__base - The spinner's base part.\n * @csspart submenu-icon - The submenu icon, visible only when the menu item has a submenu (not yet implemented).\n *\n * @cssproperty [--submenu-offset=-2px] - The distance submenus shift to overlap the parent menu.\n */\n@emitEventForPropertyUpdates(['type', 'loading'], {\n waitUntilFirstUpdated: true,\n})\nexport default class SynMenuItem extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-popup': SynPopup,\n 'syn-spinner': SynSpinner\n };\n\n private cachedTextLabel: string;\n private readonly localize = new LocalizeController(this);\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n @query('.menu-item') menuItem: HTMLElement;\n\n /** The type of menu item to render. To use `checked`, this value must be set to `checkbox`. */\n @property() type: 'normal' | 'checkbox' = 'normal';\n\n /** Draws the item in a checked state. */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */\n @property() value = '';\n\n /** Draws the menu item in a loading state. */\n @property({ type: Boolean, reflect: true }) loading = false;\n\n /** Draws the menu item in a disabled state, preventing selection. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n private readonly hasSlotController = new HasSlotController(this, 'submenu');\n private submenuController: SubmenuController = new SubmenuController(this, this.hasSlotController);\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('click', this.handleHostClick);\n this.addEventListener('mouseover', this.handleMouseOver);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.handleHostClick);\n this.removeEventListener('mouseover', this.handleMouseOver);\n }\n\n private handleDefaultSlotChange() {\n const textLabel = this.getTextLabel();\n\n // Ignore the first time the label is set\n if (typeof this.cachedTextLabel === 'undefined') {\n this.cachedTextLabel = textLabel;\n return;\n }\n\n // When the label changes, emit a slotchange event so parent controls see it\n if (textLabel !== this.cachedTextLabel) {\n this.cachedTextLabel = textLabel;\n this.emit('slotchange', { bubbles: true, composed: false, cancelable: false });\n }\n }\n\n private handleHostClick = (event: MouseEvent) => {\n // Prevent the click event from being emitted when the button is disabled or loading\n if (this.disabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n\n private handleMouseOver = (event: MouseEvent) => {\n this.focus();\n event.stopPropagation();\n };\n\n @watch('checked')\n handleCheckedChange() {\n // For proper accessibility, users have to use type=\"checkbox\" to use the checked attribute\n if (this.checked && this.type !== 'checkbox') {\n this.checked = false;\n console.error('The checked attribute can only be used on menu items with type=\"checkbox\"', this);\n return;\n }\n\n // Only checkbox types can receive the aria-checked attribute\n if (this.type === 'checkbox') {\n this.setAttribute('aria-checked', this.checked ? 'true' : 'false');\n } else {\n this.removeAttribute('aria-checked');\n }\n }\n\n @watch('disabled')\n handleDisabledChange() {\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n @watch('type')\n handleTypeChange() {\n if (this.type === 'checkbox') {\n this.setAttribute('role', 'menuitemcheckbox');\n this.setAttribute('aria-checked', this.checked ? 'true' : 'false');\n } else {\n this.setAttribute('role', 'menuitem');\n this.removeAttribute('aria-checked');\n }\n }\n\n /** Returns a text label based on the contents of the menu item's default slot. */\n getTextLabel() {\n return getTextContent(this.defaultSlot);\n }\n\n isSubmenu() {\n return this.hasSlotController.test('submenu');\n }\n\n render() {\n const isRtl = this.localize.dir() === 'rtl';\n const isSubmenuExpanded = this.submenuController.isExpanded();\n\n return html`\n <div\n id=\"anchor\"\n part=\"base\"\n class=${classMap({\n 'menu-item': true,\n 'menu-item--rtl': isRtl,\n 'menu-item--checked': this.checked,\n 'menu-item--disabled': this.disabled,\n 'menu-item--loading': this.loading,\n 'menu-item--has-submenu': this.isSubmenu(),\n 'menu-item--submenu-expanded': isSubmenuExpanded\n })}\n ?aria-haspopup=\"${this.isSubmenu()}\"\n ?aria-expanded=\"${isSubmenuExpanded ? true : false}\"\n >\n <span part=\"checked-icon\" class=\"menu-item__check\">\n <syn-icon name=\"check\" library=\"system\" aria-hidden=\"true\"></syn-icon>\n </span>\n\n <slot name=\"prefix\" part=\"prefix\" class=\"menu-item__prefix\"></slot>\n\n <slot part=\"label\" class=\"menu-item__label\" @slotchange=${this.handleDefaultSlotChange}></slot>\n\n <slot name=\"suffix\" part=\"suffix\" class=\"menu-item__suffix\"></slot>\n\n <span part=\"submenu-icon\" class=\"menu-item__chevron\">\n <syn-icon name=\"chevron-down\" library=\"system\" aria-hidden=\"true\"></syn-icon>\n </span>\n\n ${this.submenuController.renderSubmenu()}\n ${this.loading ? html` <syn-spinner part=\"spinner\" exportparts=\"base:spinner__base\"></syn-spinner> ` : ''}\n </div>\n `;\n }\n}\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { PropertyValues } from 'lit';\nimport type SynergyElement from './synergy-element.js';\n\ntype Constructor<T = object> = new (...args: any[]) => T;\n\ninterface DecoratorOptions {\n /**\n * If true, will only start watching after the initial updated call\n */\n waitUntilFirstUpdated?: boolean;\n}\n\n/**\n * Class decorator that automatically emits a `syn-attributes-changed` event\n * when at least one of the provided attributes have changed.\n * The event will contain an array of all changed properties, including their\n * - attribute name\n * - old value and\n * - new value.\n *\n * @example\n * ```ts\n * class OriginalClass extends SynergyElement {}\n * export const MyComponent = emitEventForPropertyUpdates(['attribute1', 'attribute2'])(BaseClass);\n *\n * // Create the component, providing initial values for the changed attribute list\n * const myComponent = document.createElement('my-component');\n * myComponent.attribute1 = 'initial value for attribute 1';\n * myComponent.attribute2 = 'initial value for attribute 2';\n *\n * // Create a container and listen for the event\n * const container = document.createElement('div');\n * container.addEventListener('syn-attributes-changed', (event: SynAttributesChangedEvent) => {\n * // We do not want to propagate the event further\n * event.stopImmidiatePropagation();\n *\n * console.log(event.detail);\n * });\n *\n * // Add the component to the container\n * container.appendChild(myComponent);\n *\n * // Change the attributes\n * myComponent.attribute1 = 'value for attribute 1';\n * myComponent.attribute2 = 'value for attribute 2';\n *\n * // Output:\n * // [\n * // {\n * // attribute: 'attribute1',\n * // oldValue: 'initial value for attribute 1',\n * // newValue: 'value for attribute 1'\n * // },\n * // {\n * // attribute: 'attribute2',\n * // oldValue: 'initial value for attribute 2',\n * // newValue: 'value for attribute 2'\n * // }\n * // ]\n * ```\n */\nexport function emitEventForPropertyUpdates(\n watchedProperties: string[],\n options?: DecoratorOptions,\n) {\n const resolvedOptions: Required<DecoratorOptions> = {\n waitUntilFirstUpdated: false,\n ...options,\n };\n\n return <T extends Constructor<SynergyElement>>(Proto: T): T => class extends Proto {\n // True if the event was emitted, false otherwise\n #synPrivateFirstChangeHasBeenEmitted = !resolvedOptions.waitUntilFirstUpdated;\n\n updated(changedProps: PropertyValues) {\n if (!this.#synPrivateFirstChangeHasBeenEmitted) {\n this.#synPrivateFirstChangeHasBeenEmitted = true;\n return;\n }\n\n // Get the list of all changed properties\n const monitoredChangedProperties = Array\n .from(changedProps)\n .filter(([key]) => watchedProperties.includes(key as string));\n\n // If there are no changed properties, return before sending anything\n if (monitoredChangedProperties.length === 0) {\n super.updated(changedProps);\n return;\n }\n\n // Send out the event with all changed properties\n const detail = monitoredChangedProperties.map(([key, value]) => ({\n attribute: key,\n newValue: this[key as keyof this],\n oldValue: value,\n }));\n\n this.emit('syn-attributes-changed', {\n detail,\n });\n super.updated(changedProps);\n }\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;;;ACkDzB,SAAS,4BACd,mBACA,SACA;AACA,QAAM,kBAA8C;AAAA,IAClD,uBAAuB;AAAA,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G,YA0EnB;AAiBA;AAAA,EADC,MAAM,UAAU;AAAA,GA1FE,YA2FnB;AAKA;AAAA,EADC,MAAM,MAAM;AAAA,GA/FM,YAgGnB;AAhGmB,cAArB;AAAA,EAHC,4BAA4B,CAAC,QAAQ,SAAS,GAAG;AAAA,IAChD,uBAAuB;AAAA,EACzB,CAAC;AAAA,GACoB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk.NLYVOJGK.js";
|
|
7
7
|
import {
|
|
8
8
|
SynergyElement
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.NUQBPC6D.js";
|
|
10
10
|
import {
|
|
11
11
|
__decorateClass
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
13
13
|
|
|
14
14
|
// src/components/button-group/button-group.component.ts
|
|
15
15
|
import { html } from "lit";
|
|
@@ -89,4 +89,4 @@ function findButton(el) {
|
|
|
89
89
|
export {
|
|
90
90
|
SynButtonGroup
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk.
|
|
92
|
+
//# sourceMappingURL=chunk.HNDAREEH.js.map
|