@synergy-design-system/components 2.31.0-numeric.1 → 2.31.0-numeric.3
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.QWO6FDBH.js → chunk.2USZJC3L.js} +2 -2
- package/dist/chunks/{chunk.W42P6ZZU.js → chunk.36B3LAIV.js} +9 -9
- package/dist/chunks/{chunk.7YATRHZN.js → chunk.3BM4IYC5.js} +2 -2
- package/dist/chunks/{chunk.RPIHGLAB.js → chunk.3MKDEHUA.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.YJJGWT72.js → chunk.4J2NV5SS.js} +8 -8
- package/dist/chunks/{chunk.ZIDEDWYN.js → chunk.52P5J77M.js} +3 -3
- package/dist/chunks/chunk.52P5J77M.js.map +7 -0
- package/dist/chunks/{chunk.KXU56SNB.js → chunk.5BUU5BCH.js} +2 -2
- package/dist/chunks/{chunk.TB7FVSDL.js → chunk.5LC3JCV4.js} +3 -3
- package/dist/chunks/chunk.5LC3JCV4.js.map +7 -0
- package/dist/chunks/{chunk.RCZVZKH3.js → chunk.5QUFKOPO.js} +2 -2
- package/dist/chunks/{chunk.N42HYZ3J.js → chunk.5T4FMEG4.js} +8 -8
- package/dist/chunks/chunk.5T4FMEG4.js.map +7 -0
- package/dist/chunks/{chunk.DSW34EOY.js → chunk.5UKAMFXK.js} +2 -2
- package/dist/chunks/{chunk.7BMEQKZX.js → chunk.5Y44IODU.js} +95 -32
- package/dist/chunks/chunk.5Y44IODU.js.map +7 -0
- package/dist/chunks/{chunk.5F6A2J5X.js → chunk.6KVCQIPW.js} +2 -2
- package/dist/chunks/{chunk.63XQMHFQ.js → chunk.7227JLJF.js} +2 -2
- package/dist/chunks/{chunk.57AK7CVM.js → chunk.7DGBHZU2.js} +2 -2
- package/dist/chunks/{chunk.CEVNM6DM.js → chunk.7JCTL47Z.js} +5 -5
- package/dist/chunks/chunk.7JCTL47Z.js.map +7 -0
- package/dist/chunks/{chunk.HQ6QUSK7.js → chunk.7JGKUB4A.js} +2 -2
- package/dist/chunks/{chunk.EDVAO5KD.js → chunk.7US7QSZB.js} +2 -2
- package/dist/chunks/{chunk.EDVAO5KD.js.map → chunk.7US7QSZB.js.map} +1 -1
- package/dist/chunks/{chunk.XZFEDMD4.js → chunk.7Z4PGOTU.js} +11 -11
- package/dist/chunks/chunk.7Z4PGOTU.js.map +7 -0
- package/dist/chunks/{chunk.UZFE4ZK6.js → chunk.7ZFDGJ4L.js} +2 -2
- package/dist/chunks/{chunk.E257OZYA.js → chunk.AJ73FM3N.js} +2 -2
- package/dist/chunks/{chunk.FEKYKC4C.js → chunk.AVJHCISC.js} +2 -2
- package/dist/chunks/{chunk.2LYOMDFO.js → chunk.AYAX7BG7.js} +2 -2
- package/dist/chunks/{chunk.MRQZD5TX.js → chunk.BQORIQ74.js} +2 -2
- package/dist/chunks/{chunk.74IOULXM.js → chunk.BVZQ6QSY.js} +2 -2
- package/dist/chunks/{chunk.GRA6PMZZ.js → chunk.BX4XJHF6.js} +4 -4
- package/dist/chunks/{chunk.GRA6PMZZ.js.map → chunk.BX4XJHF6.js.map} +1 -1
- package/dist/chunks/{chunk.7RHGZPLP.js → chunk.C3B4XHOF.js} +2 -2
- package/dist/chunks/{chunk.CSBK2UIN.js → chunk.C64MJQAT.js} +7 -7
- package/dist/chunks/chunk.C64MJQAT.js.map +7 -0
- package/dist/chunks/{chunk.IO36YFGG.js → chunk.CFBIOFE3.js} +2 -2
- package/dist/chunks/{chunk.RFWHBKPI.js → chunk.D7UHBX3B.js} +2 -2
- package/dist/chunks/{chunk.UKCQF4MT.js → chunk.DRKA3RET.js} +2 -2
- package/dist/chunks/{chunk.2IWVCAEF.js → chunk.DY3RUP6T.js} +2 -2
- package/dist/chunks/{chunk.QVS5TYTR.js → chunk.EGNDSUID.js} +5 -5
- package/dist/chunks/chunk.EGNDSUID.js.map +7 -0
- package/dist/chunks/{chunk.IJ7VHZFK.js → chunk.F4HR34MV.js} +2 -2
- package/dist/chunks/{chunk.WBSH7WXZ.js → chunk.F4YZ6CNS.js} +2 -2
- package/dist/chunks/{chunk.B6TTKFK2.js → chunk.FASIIYDO.js} +4 -4
- package/dist/chunks/chunk.FASIIYDO.js.map +7 -0
- package/dist/chunks/{chunk.PGRPK5CM.js → chunk.FRI6SBLL.js} +2 -2
- package/dist/chunks/{chunk.A67AAALJ.js → chunk.G4QCVDAA.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.PJSCG4YE.js → chunk.GMMFGZP6.js} +9 -9
- package/dist/chunks/chunk.GMMFGZP6.js.map +7 -0
- package/dist/chunks/{chunk.U3WTJD4D.js → chunk.GOMKPLJA.js} +4 -4
- package/dist/chunks/chunk.GOMKPLJA.js.map +7 -0
- package/dist/chunks/{chunk.6EJPCDSL.js → chunk.HA7BLR63.js} +9 -9
- package/dist/chunks/chunk.HA7BLR63.js.map +7 -0
- package/dist/chunks/{chunk.TLCX6C3Y.js → chunk.HBEIGBOH.js} +2 -2
- package/dist/chunks/{chunk.5OYRCRNV.js → chunk.HDXDWES2.js} +2 -2
- package/dist/chunks/{chunk.M25XYM73.js → chunk.HNMO7OGI.js} +2 -2
- 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.OLPCSVVL.js → chunk.INZSW7NE.js} +2 -2
- package/dist/chunks/{chunk.BWZMY7HG.js → chunk.IQPPSHKW.js} +3 -3
- package/dist/chunks/{chunk.BWZMY7HG.js.map → chunk.IQPPSHKW.js.map} +1 -1
- package/dist/chunks/{chunk.6ETN74WB.js → chunk.IVZ3CJUE.js} +2 -2
- package/dist/chunks/{chunk.THIOHUU2.js → chunk.IW6X3LFW.js} +3 -3
- package/dist/chunks/chunk.IW6X3LFW.js.map +7 -0
- package/dist/chunks/{chunk.2YBP4WEH.js → chunk.JKSJEW72.js} +3 -3
- package/dist/chunks/chunk.JKSJEW72.js.map +7 -0
- package/dist/chunks/{chunk.NYCKYU42.js → chunk.JN7MXTVN.js} +2 -2
- package/dist/chunks/{chunk.BTS57O4V.js → chunk.JOX4HOS3.js} +7 -7
- package/dist/chunks/chunk.JOX4HOS3.js.map +7 -0
- package/dist/chunks/{chunk.WFR4RMWT.js → chunk.JWND2GFN.js} +8 -8
- package/dist/chunks/chunk.JWND2GFN.js.map +7 -0
- package/dist/chunks/{chunk.N7EVNHYR.js → chunk.JXLTDOJR.js} +2 -2
- package/dist/chunks/{chunk.S5LABDRE.js → chunk.JYM2KBX2.js} +3 -3
- package/dist/chunks/chunk.JYM2KBX2.js.map +7 -0
- package/dist/chunks/{chunk.33EV4VCU.js → chunk.KFUASL6I.js} +3 -3
- package/dist/chunks/{chunk.SFECHRNT.js → chunk.KM35YPU6.js} +4 -4
- package/dist/chunks/{chunk.J75DWM6J.js → chunk.L3QIFBZN.js} +4 -4
- package/dist/chunks/chunk.L3QIFBZN.js.map +7 -0
- package/dist/chunks/{chunk.Z63ESAY4.js → chunk.L5DDQZJL.js} +2 -2
- package/dist/chunks/{chunk.A4RVOFFP.js → chunk.LKAB6SQ7.js} +10 -10
- package/dist/chunks/{chunk.FAVMXFQL.js → chunk.LMT5B3HR.js} +5 -5
- package/dist/chunks/chunk.LMT5B3HR.js.map +7 -0
- package/dist/chunks/{chunk.PK3IARAB.js → chunk.LYH5JTYU.js} +2 -2
- package/dist/chunks/{chunk.AQWT2EI4.js → chunk.MA4RY7ZA.js} +5 -5
- package/dist/chunks/chunk.MA4RY7ZA.js.map +7 -0
- package/dist/chunks/{chunk.D7ZU5UFL.js → chunk.MHPQA44T.js} +2 -2
- package/dist/chunks/{chunk.RZ4YAAAL.js → chunk.MNODNPKF.js} +2 -2
- package/dist/chunks/{chunk.JJI5CPOB.js → chunk.MRUEYMZJ.js} +6 -6
- package/dist/chunks/chunk.MRUEYMZJ.js.map +7 -0
- package/dist/chunks/{chunk.UTJJJQMA.js → chunk.MTN5NM4A.js} +2 -2
- package/dist/chunks/{chunk.VE2GLMIO.js → chunk.MV27WLAS.js} +2 -2
- package/dist/chunks/{chunk.HIF4ZQ35.js → chunk.NGWCUJL3.js} +14 -14
- package/dist/chunks/chunk.NGWCUJL3.js.map +7 -0
- package/dist/chunks/{chunk.FO5F6LKG.js → chunk.NOBEUBIX.js} +2 -2
- package/dist/chunks/{chunk.AKBNSAMF.js → chunk.NQQYAAJ5.js} +31 -30
- package/dist/chunks/chunk.NQQYAAJ5.js.map +7 -0
- package/dist/chunks/{chunk.UT46BUBN.js → chunk.NZFBQFBJ.js} +2 -2
- package/dist/chunks/{chunk.CACKIXTX.js → chunk.ODUSEMOT.js} +2 -2
- package/dist/chunks/{chunk.SEMT32CO.js → chunk.ONXI25VD.js} +4 -4
- package/dist/chunks/{chunk.SEMT32CO.js.map → chunk.ONXI25VD.js.map} +1 -1
- package/dist/chunks/{chunk.KMAFFDJZ.js → chunk.OQF62MOH.js} +8 -8
- package/dist/chunks/chunk.OQF62MOH.js.map +7 -0
- package/dist/chunks/{chunk.5CAP3G3X.js → chunk.PCYVMZQM.js} +2 -2
- package/dist/chunks/{chunk.ZKHYDNLC.js → chunk.PJ77QULT.js} +4 -4
- package/dist/chunks/{chunk.ZKHYDNLC.js.map → chunk.PJ77QULT.js.map} +1 -1
- package/dist/chunks/{chunk.DNNV6VLW.js → chunk.PMU62FIY.js} +2 -2
- package/dist/chunks/{chunk.U23YWMIX.js → chunk.PRN3I42I.js} +10 -10
- package/dist/chunks/chunk.PRN3I42I.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.OM47S5WL.js → chunk.Q7OBEUJP.js} +7 -7
- package/dist/chunks/{chunk.K3XDXZW2.js → chunk.QW75RDVZ.js} +3 -3
- package/dist/chunks/{chunk.K3XDXZW2.js.map → chunk.QW75RDVZ.js.map} +1 -1
- package/dist/chunks/{chunk.UBAW2LID.js → chunk.RB2JR2ND.js} +2 -2
- package/dist/chunks/{chunk.UBAW2LID.js.map → chunk.RB2JR2ND.js.map} +1 -1
- package/dist/chunks/{chunk.POR4YXBM.js → chunk.RDUNTOLI.js} +2 -2
- package/dist/chunks/{chunk.IB6CAJFE.js → chunk.S3NLAHQN.js} +2 -2
- package/dist/chunks/{chunk.HZHIIS2I.js → chunk.SOOOSOI2.js} +6 -6
- package/dist/chunks/chunk.SOOOSOI2.js.map +7 -0
- package/dist/chunks/{chunk.Q3DVGFDB.js → chunk.SUC6BMB5.js} +2 -2
- package/dist/chunks/{chunk.5NGEDTDD.js → chunk.SXYORVJ4.js} +12 -12
- package/dist/chunks/chunk.SXYORVJ4.js.map +7 -0
- package/dist/chunks/chunk.T4QJUSQQ.js +52 -0
- package/dist/chunks/chunk.T4QJUSQQ.js.map +7 -0
- package/dist/chunks/{chunk.GCQLCTYL.js → chunk.TFJD4QKG.js} +2 -2
- package/dist/chunks/{chunk.LW362SOH.js → chunk.TIZSO7FR.js} +11 -11
- package/dist/chunks/chunk.TIZSO7FR.js.map +7 -0
- package/dist/chunks/{chunk.JJ3OBG7Q.js → chunk.TOVTZIPZ.js} +2 -2
- package/dist/chunks/{chunk.ILHF3ABL.js → chunk.TR2YSRMW.js} +2 -2
- package/dist/chunks/{chunk.ZK7XTPJN.js → chunk.UAGQQMKI.js} +49 -20
- package/dist/chunks/chunk.UAGQQMKI.js.map +7 -0
- package/dist/chunks/{chunk.Q7BW6KKX.js → chunk.VBXOOYJE.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.EZDB5RU7.js → chunk.VUZDQVIA.js} +9 -9
- package/dist/chunks/chunk.VUZDQVIA.js.map +7 -0
- package/dist/chunks/{chunk.GD33VPEE.js → chunk.WHD6U3UX.js} +2 -2
- package/dist/chunks/{chunk.IDS32BVD.js → chunk.WVN7TE6P.js} +13 -13
- package/dist/chunks/chunk.WVN7TE6P.js.map +7 -0
- package/dist/chunks/{chunk.EC3AIWPK.js → chunk.XCRIYHZ6.js} +6 -6
- package/dist/chunks/{chunk.EC3AIWPK.js.map → chunk.XCRIYHZ6.js.map} +1 -1
- package/dist/chunks/{chunk.WIVZPX4Q.js → chunk.YCDB7TVS.js} +11 -11
- package/dist/chunks/chunk.YCDB7TVS.js.map +7 -0
- package/dist/chunks/{chunk.32CPGKWW.js → chunk.YMPDZZMX.js} +14 -14
- package/dist/chunks/chunk.YMPDZZMX.js.map +7 -0
- package/dist/chunks/{chunk.4X3HY2V5.js → chunk.YT5SHGUK.js} +6 -1
- package/dist/chunks/{chunk.4X3HY2V5.js.map → chunk.YT5SHGUK.js.map} +2 -2
- package/dist/chunks/{chunk.2GFK6XTO.js → chunk.Z4XV3SMG.js} +14 -1
- package/dist/chunks/{chunk.KITRO6XO.js → chunk.Z67XVHET.js} +4 -4
- package/dist/chunks/{chunk.KITRO6XO.js.map → chunk.Z67XVHET.js.map} +1 -1
- package/dist/chunks/{chunk.KTCGXZQ4.js → chunk.ZBRWKI2I.js} +11 -11
- package/dist/chunks/chunk.ZBRWKI2I.js.map +7 -0
- package/dist/chunks/{chunk.PQFT5ON4.js → chunk.ZGQ4FVQW.js} +2 -2
- package/dist/chunks/{chunk.OQHYWXRI.js → chunk.ZIKZWHEJ.js} +2 -2
- package/dist/chunks/{chunk.CVSFD3LB.js → chunk.ZO2YPPQX.js} +3 -3
- package/dist/chunks/chunk.ZO2YPPQX.js.map +7 -0
- package/dist/components/accordion/accordion.component.js +8 -8
- package/dist/components/accordion/accordion.js +9 -9
- 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 +13 -13
- package/dist/components/alert/alert.custom.styles.js +1 -1
- package/dist/components/alert/alert.js +14 -14
- 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.d.ts +2 -0
- package/dist/components/combobox/combobox.component.js +19 -19
- package/dist/components/combobox/combobox.custom.styles.js +1 -1
- package/dist/components/combobox/combobox.js +20 -20
- 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 +15 -15
- package/dist/components/dialog/dialog.custom.styles.js +1 -1
- package/dist/components/dialog/dialog.js +16 -16
- 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 +15 -15
- package/dist/components/drawer/drawer.custom.styles.js +1 -1
- package/dist/components/drawer/drawer.js +16 -16
- 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 +18 -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 +1 -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 +14 -14
- package/dist/components/prio-nav/prio-nav.js +15 -15
- 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 +15 -15
- package/dist/components/range/range.js +16 -16
- 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 +7 -1
- package/dist/components/select/select.component.js +19 -19
- package/dist/components/select/select.custom.styles.js +2 -2
- package/dist/components/select/select.js +20 -20
- 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 +17 -17
- package/dist/components/side-nav/side-nav.js +18 -18
- 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 +8 -8
- package/dist/components/tooltip/tooltip.custom.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +9 -9
- 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 +15 -15
- package/dist/components/validate/validate.js +16 -16
- package/dist/components/validate/validate.styles.js +1 -1
- package/dist/custom-elements.json +720 -623
- 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 +155 -154
- 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 +133 -123
- 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.AKBNSAMF.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.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.QWO6FDBH.js.map → chunk.2USZJC3L.js.map} +0 -0
- /package/dist/chunks/{chunk.W42P6ZZU.js.map → chunk.36B3LAIV.js.map} +0 -0
- /package/dist/chunks/{chunk.7YATRHZN.js.map → chunk.3BM4IYC5.js.map} +0 -0
- /package/dist/chunks/{chunk.RPIHGLAB.js.map → chunk.3MKDEHUA.js.map} +0 -0
- /package/dist/chunks/{chunk.YJJGWT72.js.map → chunk.4J2NV5SS.js.map} +0 -0
- /package/dist/chunks/{chunk.KXU56SNB.js.map → chunk.5BUU5BCH.js.map} +0 -0
- /package/dist/chunks/{chunk.RCZVZKH3.js.map → chunk.5QUFKOPO.js.map} +0 -0
- /package/dist/chunks/{chunk.DSW34EOY.js.map → chunk.5UKAMFXK.js.map} +0 -0
- /package/dist/chunks/{chunk.5F6A2J5X.js.map → chunk.6KVCQIPW.js.map} +0 -0
- /package/dist/chunks/{chunk.63XQMHFQ.js.map → chunk.7227JLJF.js.map} +0 -0
- /package/dist/chunks/{chunk.57AK7CVM.js.map → chunk.7DGBHZU2.js.map} +0 -0
- /package/dist/chunks/{chunk.HQ6QUSK7.js.map → chunk.7JGKUB4A.js.map} +0 -0
- /package/dist/chunks/{chunk.UZFE4ZK6.js.map → chunk.7ZFDGJ4L.js.map} +0 -0
- /package/dist/chunks/{chunk.E257OZYA.js.map → chunk.AJ73FM3N.js.map} +0 -0
- /package/dist/chunks/{chunk.FEKYKC4C.js.map → chunk.AVJHCISC.js.map} +0 -0
- /package/dist/chunks/{chunk.2LYOMDFO.js.map → chunk.AYAX7BG7.js.map} +0 -0
- /package/dist/chunks/{chunk.MRQZD5TX.js.map → chunk.BQORIQ74.js.map} +0 -0
- /package/dist/chunks/{chunk.74IOULXM.js.map → chunk.BVZQ6QSY.js.map} +0 -0
- /package/dist/chunks/{chunk.7RHGZPLP.js.map → chunk.C3B4XHOF.js.map} +0 -0
- /package/dist/chunks/{chunk.IO36YFGG.js.map → chunk.CFBIOFE3.js.map} +0 -0
- /package/dist/chunks/{chunk.RFWHBKPI.js.map → chunk.D7UHBX3B.js.map} +0 -0
- /package/dist/chunks/{chunk.UKCQF4MT.js.map → chunk.DRKA3RET.js.map} +0 -0
- /package/dist/chunks/{chunk.2IWVCAEF.js.map → chunk.DY3RUP6T.js.map} +0 -0
- /package/dist/chunks/{chunk.IJ7VHZFK.js.map → chunk.F4HR34MV.js.map} +0 -0
- /package/dist/chunks/{chunk.WBSH7WXZ.js.map → chunk.F4YZ6CNS.js.map} +0 -0
- /package/dist/chunks/{chunk.PGRPK5CM.js.map → chunk.FRI6SBLL.js.map} +0 -0
- /package/dist/chunks/{chunk.A67AAALJ.js.map → chunk.G4QCVDAA.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.TLCX6C3Y.js.map → chunk.HBEIGBOH.js.map} +0 -0
- /package/dist/chunks/{chunk.5OYRCRNV.js.map → chunk.HDXDWES2.js.map} +0 -0
- /package/dist/chunks/{chunk.M25XYM73.js.map → chunk.HNMO7OGI.js.map} +0 -0
- /package/dist/chunks/{chunk.OLPCSVVL.js.map → chunk.INZSW7NE.js.map} +0 -0
- /package/dist/chunks/{chunk.6ETN74WB.js.map → chunk.IVZ3CJUE.js.map} +0 -0
- /package/dist/chunks/{chunk.NYCKYU42.js.map → chunk.JN7MXTVN.js.map} +0 -0
- /package/dist/chunks/{chunk.N7EVNHYR.js.map → chunk.JXLTDOJR.js.map} +0 -0
- /package/dist/chunks/{chunk.33EV4VCU.js.map → chunk.KFUASL6I.js.map} +0 -0
- /package/dist/chunks/{chunk.SFECHRNT.js.map → chunk.KM35YPU6.js.map} +0 -0
- /package/dist/chunks/{chunk.Z63ESAY4.js.map → chunk.L5DDQZJL.js.map} +0 -0
- /package/dist/chunks/{chunk.A4RVOFFP.js.map → chunk.LKAB6SQ7.js.map} +0 -0
- /package/dist/chunks/{chunk.PK3IARAB.js.map → chunk.LYH5JTYU.js.map} +0 -0
- /package/dist/chunks/{chunk.D7ZU5UFL.js.map → chunk.MHPQA44T.js.map} +0 -0
- /package/dist/chunks/{chunk.RZ4YAAAL.js.map → chunk.MNODNPKF.js.map} +0 -0
- /package/dist/chunks/{chunk.UTJJJQMA.js.map → chunk.MTN5NM4A.js.map} +0 -0
- /package/dist/chunks/{chunk.VE2GLMIO.js.map → chunk.MV27WLAS.js.map} +0 -0
- /package/dist/chunks/{chunk.FO5F6LKG.js.map → chunk.NOBEUBIX.js.map} +0 -0
- /package/dist/chunks/{chunk.UT46BUBN.js.map → chunk.NZFBQFBJ.js.map} +0 -0
- /package/dist/chunks/{chunk.CACKIXTX.js.map → chunk.ODUSEMOT.js.map} +0 -0
- /package/dist/chunks/{chunk.5CAP3G3X.js.map → chunk.PCYVMZQM.js.map} +0 -0
- /package/dist/chunks/{chunk.DNNV6VLW.js.map → chunk.PMU62FIY.js.map} +0 -0
- /package/dist/chunks/{chunk.OM47S5WL.js.map → chunk.Q7OBEUJP.js.map} +0 -0
- /package/dist/chunks/{chunk.POR4YXBM.js.map → chunk.RDUNTOLI.js.map} +0 -0
- /package/dist/chunks/{chunk.IB6CAJFE.js.map → chunk.S3NLAHQN.js.map} +0 -0
- /package/dist/chunks/{chunk.Q3DVGFDB.js.map → chunk.SUC6BMB5.js.map} +0 -0
- /package/dist/chunks/{chunk.GCQLCTYL.js.map → chunk.TFJD4QKG.js.map} +0 -0
- /package/dist/chunks/{chunk.JJ3OBG7Q.js.map → chunk.TOVTZIPZ.js.map} +0 -0
- /package/dist/chunks/{chunk.ILHF3ABL.js.map → chunk.TR2YSRMW.js.map} +0 -0
- /package/dist/chunks/{chunk.Q7BW6KKX.js.map → chunk.VBXOOYJE.js.map} +0 -0
- /package/dist/chunks/{chunk.GD33VPEE.js.map → chunk.WHD6U3UX.js.map} +0 -0
- /package/dist/chunks/{chunk.2GFK6XTO.js.map → chunk.Z4XV3SMG.js.map} +0 -0
- /package/dist/chunks/{chunk.PQFT5ON4.js.map → chunk.ZGQ4FVQW.js.map} +0 -0
- /package/dist/chunks/{chunk.OQHYWXRI.js.map → chunk.ZIKZWHEJ.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRangeTick
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.IQPPSHKW.js";
|
|
4
4
|
|
|
5
5
|
// src/components/range-tick/range-tick.ts
|
|
6
6
|
var range_tick_default = SynRangeTick;
|
|
@@ -9,4 +9,4 @@ SynRangeTick.define("syn-range-tick");
|
|
|
9
9
|
export {
|
|
10
10
|
range_tick_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.SUC6BMB5.js.map
|
|
@@ -3,36 +3,36 @@ import {
|
|
|
3
3
|
} from "./chunk.WXVOTRW5.js";
|
|
4
4
|
import {
|
|
5
5
|
SynIconButton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.EGNDSUID.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.
|
|
18
|
-
import {
|
|
19
|
-
HasSlotController
|
|
20
|
-
} from "./chunk.WVVQK5TE.js";
|
|
17
|
+
} from "./chunk.7JGKUB4A.js";
|
|
21
18
|
import {
|
|
22
19
|
LocalizeController
|
|
23
20
|
} from "./chunk.GIU3H3J3.js";
|
|
24
21
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./chunk.
|
|
22
|
+
HasSlotController
|
|
23
|
+
} from "./chunk.WVVQK5TE.js";
|
|
27
24
|
import {
|
|
28
25
|
enableDefaultSettings
|
|
29
|
-
} from "./chunk.
|
|
26
|
+
} from "./chunk.KFUASL6I.js";
|
|
27
|
+
import {
|
|
28
|
+
watch
|
|
29
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
30
30
|
import {
|
|
31
31
|
component_styles_default
|
|
32
32
|
} from "./chunk.NLYVOJGK.js";
|
|
33
33
|
import {
|
|
34
34
|
SynergyElement
|
|
35
|
-
} from "./chunk.
|
|
35
|
+
} from "./chunk.QW75RDVZ.js";
|
|
36
36
|
import {
|
|
37
37
|
alert_custom_styles_default
|
|
38
38
|
} from "./chunk.QBHZAR4C.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk.BXY667C7.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.SXYORVJ4.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;AACxB,SAAK,sBAAsB;AAC3B,iBAAa,KAAK,eAAe;AACjC,kBAAc,KAAK,qBAAqB;AACxC,QAAI,KAAK,QAAQ,KAAK,WAAW,UAAU;AACzC,WAAK,kBAAkB,OAAO,WAAW,MAAM,KAAK,KAAK,GAAG,KAAK,QAAQ;AACzE,WAAK,gBAAgB,KAAK;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SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAhCvB,SAgCyB;AAGf;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAnCR,SAmCU;AAOD;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GA1CP,SA0CS;AAQX;AAAA,EAAhB,MAAM;AAAA,GAlDY,SAkDF;AAoDX;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GArG1B,SAsGb;AAiCN;AAAA,EADC,MAAM,UAAU;AAAA,GAtIE,SAuInB;AAvImB,WAArB;AAAA,EADC,sBAAsB,UAAU;AAAA,GACZ;AAiQrB,oBAAoB,cAAc;AAAA,EAChC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,cAAc;AAAA,EAChC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
5
|
+
|
|
6
|
+
// src/components/input/formatter.ts
|
|
7
|
+
var formatNumber = (value, step, numberFormatterOptions = {}) => {
|
|
8
|
+
var _b;
|
|
9
|
+
const _a = numberFormatterOptions, {
|
|
10
|
+
maximumFractionDigits: providedMaxFractionDigits,
|
|
11
|
+
minimumFractionDigits: providedMinFractionDigits
|
|
12
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
13
|
+
"maximumFractionDigits",
|
|
14
|
+
"minimumFractionDigits"
|
|
15
|
+
]);
|
|
16
|
+
const stepToUse = step === "any" || !step ? 1 : +step;
|
|
17
|
+
const stepFractionDigits = ((_b = stepToUse.toString().split(".")[1]) == null ? void 0 : _b.length) || 0;
|
|
18
|
+
let minimumFractionDigits;
|
|
19
|
+
let maximumFractionDigits;
|
|
20
|
+
if (providedMinFractionDigits && !providedMaxFractionDigits) {
|
|
21
|
+
minimumFractionDigits = providedMinFractionDigits;
|
|
22
|
+
maximumFractionDigits = providedMinFractionDigits;
|
|
23
|
+
} else if (providedMaxFractionDigits && !providedMinFractionDigits) {
|
|
24
|
+
minimumFractionDigits = providedMaxFractionDigits;
|
|
25
|
+
maximumFractionDigits = providedMaxFractionDigits;
|
|
26
|
+
} else if (providedMaxFractionDigits && providedMinFractionDigits) {
|
|
27
|
+
minimumFractionDigits = Math.min(providedMinFractionDigits, providedMaxFractionDigits);
|
|
28
|
+
maximumFractionDigits = Math.max(providedMinFractionDigits, providedMaxFractionDigits);
|
|
29
|
+
}
|
|
30
|
+
if (stepFractionDigits > (minimumFractionDigits || 0)) {
|
|
31
|
+
minimumFractionDigits = stepFractionDigits;
|
|
32
|
+
}
|
|
33
|
+
if (stepFractionDigits > (maximumFractionDigits || 0)) {
|
|
34
|
+
maximumFractionDigits = stepFractionDigits;
|
|
35
|
+
}
|
|
36
|
+
if (typeof minimumFractionDigits !== "undefined" && minimumFractionDigits > 100) {
|
|
37
|
+
minimumFractionDigits = 100;
|
|
38
|
+
}
|
|
39
|
+
if (typeof maximumFractionDigits !== "undefined" && maximumFractionDigits > 100) {
|
|
40
|
+
maximumFractionDigits = 100;
|
|
41
|
+
}
|
|
42
|
+
const formatter = new Intl.NumberFormat("en-US", __spreadValues({
|
|
43
|
+
maximumFractionDigits,
|
|
44
|
+
minimumFractionDigits
|
|
45
|
+
}, otherOptions));
|
|
46
|
+
return formatter.format(value);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
formatNumber
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=chunk.T4QJUSQQ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/input/formatter.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable complexity */\n/**\n * Formats a number using the Intl.NumberFormat API.\n * @param value The value to format\n * @param step The step value to use for formatting. Used if no minimumFractionDigits is provided.\n * @param numberFormatterOptions Additional parameters to pass to the number formatter.\n * @returns The formatted value\n */\nexport const formatNumber = (\n value: number,\n step: number | string | undefined,\n numberFormatterOptions: Intl.NumberFormatOptions = {},\n) => {\n const {\n maximumFractionDigits: providedMaxFractionDigits,\n minimumFractionDigits: providedMinFractionDigits,\n ...otherOptions\n } = numberFormatterOptions;\n\n // There may be times where the user sets something like this:\n // <syn-input min-fraction-digits=\"0\" step=\"0.3\">\n // In this case, we need to use the step value to determine the fraction digits\n // to use for the formatter.\n const stepToUse = step === 'any' || !step ? 1 : +step;\n const stepFractionDigits = stepToUse.toString().split('.')[1]?.length || 0;\n\n let minimumFractionDigits;\n let maximumFractionDigits;\n\n if (providedMinFractionDigits && !providedMaxFractionDigits) {\n // If only min is set, use the min both min and max\n minimumFractionDigits = providedMinFractionDigits;\n maximumFractionDigits = providedMinFractionDigits;\n } else if (providedMaxFractionDigits && !providedMinFractionDigits) {\n // If only max is set, use the max both min and max\n minimumFractionDigits = providedMaxFractionDigits;\n maximumFractionDigits = providedMaxFractionDigits;\n } else if (providedMaxFractionDigits && providedMinFractionDigits) {\n // If both are set, use the provided values, but make sure to sort them first\n minimumFractionDigits = Math.min(providedMinFractionDigits, providedMaxFractionDigits);\n maximumFractionDigits = Math.max(providedMinFractionDigits, providedMaxFractionDigits);\n }\n\n // Make sure to use the step fraction digits\n // if they are greater than the provided min or max values\n if (stepFractionDigits > (minimumFractionDigits || 0)) {\n minimumFractionDigits = stepFractionDigits;\n }\n if (stepFractionDigits > (maximumFractionDigits || 0)) {\n maximumFractionDigits = stepFractionDigits;\n }\n\n // min and max fraction digits have a hard cap of 100 decimal places\n // If provided a bigger value, the numberformat will throw an error.\n // Therefore, we make sure to cap the values to 100.\n // https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits\n if (typeof minimumFractionDigits !== 'undefined' && minimumFractionDigits > 100) {\n minimumFractionDigits = 100;\n }\n if (typeof maximumFractionDigits !== 'undefined' && maximumFractionDigits > 100) {\n maximumFractionDigits = 100;\n }\n\n const formatter = new Intl.NumberFormat('en-US', {\n maximumFractionDigits,\n minimumFractionDigits,\n ...otherOptions,\n });\n\n return formatter.format(value);\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;AAQO,IAAM,eAAe,CAC1B,OACA,MACA,yBAAmD,CAAC,MACjD;AAZL;AAaE,QAII,6BAHF;AAAA,2BAAuB;AAAA,IACvB,uBAAuB;AAAA,EAf3B,IAiBM,IADC,yBACD,IADC;AAAA,IAFH;AAAA,IACA;AAAA;AAQF,QAAM,YAAY,SAAS,SAAS,CAAC,OAAO,IAAI,CAAC;AACjD,QAAM,uBAAqB,eAAU,SAAS,EAAE,MAAM,GAAG,EAAE,CAAC,MAAjC,mBAAoC,WAAU;AAEzE,MAAI;AACJ,MAAI;AAEJ,MAAI,6BAA6B,CAAC,2BAA2B;AAE3D,4BAAwB;AACxB,4BAAwB;AAAA,EAC1B,WAAW,6BAA6B,CAAC,2BAA2B;AAElE,4BAAwB;AACxB,4BAAwB;AAAA,EAC1B,WAAW,6BAA6B,2BAA2B;AAEjE,4BAAwB,KAAK,IAAI,2BAA2B,yBAAyB;AACrF,4BAAwB,KAAK,IAAI,2BAA2B,yBAAyB;AAAA,EACvF;AAIA,MAAI,sBAAsB,yBAAyB,IAAI;AACrD,4BAAwB;AAAA,EAC1B;AACA,MAAI,sBAAsB,yBAAyB,IAAI;AACrD,4BAAwB;AAAA,EAC1B;AAMA,MAAI,OAAO,0BAA0B,eAAe,wBAAwB,KAAK;AAC/E,4BAAwB;AAAA,EAC1B;AACA,MAAI,OAAO,0BAA0B,eAAe,wBAAwB,KAAK;AAC/E,4BAAwB;AAAA,EAC1B;AAEA,QAAM,YAAY,IAAI,KAAK,aAAa,SAAS;AAAA,IAC/C;AAAA,IACA;AAAA,KACG,aACJ;AAED,SAAO,UAAU,OAAO,KAAK;AAC/B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTabPanel
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PJ77QULT.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tab-panel/tab-panel.ts
|
|
6
6
|
var tab_panel_default = SynTabPanel;
|
|
@@ -9,4 +9,4 @@ SynTabPanel.define("syn-tab-panel");
|
|
|
9
9
|
export {
|
|
10
10
|
tab_panel_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.TFJD4QKG.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.I4FIU7FA.js";
|
|
7
7
|
import {
|
|
8
8
|
Modal
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.AYAX7BG7.js";
|
|
10
10
|
import {
|
|
11
11
|
lockBodyScrolling,
|
|
12
12
|
unlockBodyScrolling
|
|
@@ -16,36 +16,36 @@ import {
|
|
|
16
16
|
} from "./chunk.WXVOTRW5.js";
|
|
17
17
|
import {
|
|
18
18
|
SynIconButton
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.EGNDSUID.js";
|
|
20
20
|
import {
|
|
21
21
|
waitForEvent
|
|
22
22
|
} from "./chunk.C2ENQBPM.js";
|
|
23
23
|
import {
|
|
24
24
|
animateTo,
|
|
25
25
|
stopAnimations
|
|
26
|
-
} from "./chunk.
|
|
26
|
+
} from "./chunk.G6ITZTTW.js";
|
|
27
27
|
import {
|
|
28
28
|
getAnimation,
|
|
29
29
|
setDefaultAnimation
|
|
30
|
-
} from "./chunk.
|
|
31
|
-
import {
|
|
32
|
-
HasSlotController
|
|
33
|
-
} from "./chunk.WVVQK5TE.js";
|
|
30
|
+
} from "./chunk.7JGKUB4A.js";
|
|
34
31
|
import {
|
|
35
32
|
LocalizeController
|
|
36
33
|
} from "./chunk.GIU3H3J3.js";
|
|
34
|
+
import {
|
|
35
|
+
HasSlotController
|
|
36
|
+
} from "./chunk.WVVQK5TE.js";
|
|
37
37
|
import {
|
|
38
38
|
watch
|
|
39
|
-
} from "./chunk.
|
|
39
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
40
40
|
import {
|
|
41
41
|
component_styles_default
|
|
42
42
|
} from "./chunk.NLYVOJGK.js";
|
|
43
43
|
import {
|
|
44
44
|
SynergyElement
|
|
45
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.QW75RDVZ.js";
|
|
46
46
|
import {
|
|
47
47
|
__decorateClass
|
|
48
|
-
} from "./chunk.
|
|
48
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
49
49
|
|
|
50
50
|
// src/components/drawer/drawer.component.ts
|
|
51
51
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -398,4 +398,4 @@ setDefaultAnimation("drawer.overlay.hide", {
|
|
|
398
398
|
export {
|
|
399
399
|
SynDrawer
|
|
400
400
|
};
|
|
401
|
-
//# sourceMappingURL=chunk.
|
|
401
|
+
//# sourceMappingURL=chunk.TIZSO7FR.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/drawer/drawer.component.ts", "../../src/internal/string.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 { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../internal/scroll.js';\nimport { property, query } from 'lit/decorators.js';\nimport { uppercaseFirstLetter } from '../../internal/string.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport Modal from '../../internal/modal.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './drawer.styles.js';\nimport customStyles from './drawer.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Drawers slide in from a container to expose additional options and information.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-drawer--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The drawer's main content.\n * @slot label - The drawer's label. Alternatively, you can use the `label` attribute.\n * @slot header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @slot footer - The drawer's footer, usually one or more buttons representing various options.\n *\n * @event syn-show - Emitted when the drawer opens.\n * @event syn-after-show - Emitted after the drawer opens and all animations are complete.\n * @event syn-hide - Emitted when the drawer closes.\n * @event syn-after-hide - Emitted after the drawer closes and all animations are complete.\n * @event syn-initial-focus - Emitted when the drawer opens and is ready to receive focus. Calling\n * `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n * @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} syn-request-close - Emitted when the user attempts to\n * close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling\n * `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in\n * destructive behavior such as data loss.\n *\n * @csspart base - The component's base wrapper.\n * @csspart overlay - The overlay that covers the screen behind the drawer.\n * @csspart panel - The drawer's panel (where the drawer and its content are rendered).\n * @csspart header - The drawer's header. This element wraps the title and header actions.\n * @csspart header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @csspart title - The drawer's title.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n * @csspart body - The drawer's body.\n * @csspart footer - The drawer's footer.\n *\n * @cssproperty --size - The preferred size of the drawer. This will be applied to the drawer's width or height\n * depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens.\n * @cssproperty --header-spacing - The amount of padding to use for the header.\n * @cssproperty --body-spacing - The amount of padding to use for the body.\n * @cssproperty --footer-spacing - The amount of padding to use for the footer.\n *\n * @animation drawer.showTop - The animation to use when showing a drawer with `top` placement.\n * @animation drawer.showEnd - The animation to use when showing a drawer with `end` placement.\n * @animation drawer.showBottom - The animation to use when showing a drawer with `bottom` placement.\n * @animation drawer.showStart - The animation to use when showing a drawer with `start` placement.\n * @animation drawer.hideTop - The animation to use when hiding a drawer with `top` placement.\n * @animation drawer.hideEnd - The animation to use when hiding a drawer with `end` placement.\n * @animation drawer.hideBottom - The animation to use when hiding a drawer with `bottom` placement.\n * @animation drawer.hideStart - The animation to use when hiding a drawer with `start` placement.\n * @animation drawer.denyClose - The animation to use when a request to close the drawer is denied.\n * @animation drawer.overlay.show - The animation to use when showing the drawer's overlay.\n * @animation drawer.overlay.hide - The animation to use when hiding the drawer's overlay.\n *\n * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus\n * trapping and allow third-party modals spawned from an active Synergy modal, call `modal.activateExternal()` when\n * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Synergy's focus trapping.\n */\nexport default class SynDrawer extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private readonly hasSlotController = new HasSlotController(this, 'footer');\n private readonly localize = new LocalizeController(this);\n private originalTrigger: HTMLElement | null;\n public modal = new Modal(this);\n private closeWatcher: CloseWatcher | null;\n\n @query('.drawer') drawer: HTMLElement;\n @query('.drawer__panel') panel: HTMLElement;\n @query('.drawer__overlay') overlay: HTMLElement;\n\n /**\n * Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * The drawer's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.\n */\n @property({ reflect: true }) label = '';\n\n /** The direction from which the drawer will open. */\n @property({ reflect: true }) placement: 'top' | 'end' | 'bottom' | 'start' = 'end';\n\n /**\n * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\n * its parent element, set this attribute and add `position: relative` to the parent.\n */\n @property({ type: Boolean, reflect: true }) contained = false;\n\n /**\n * Removes the header. This will also remove the default close button, so please ensure you provide an easy,\n * accessible way for users to dismiss the drawer.\n */\n @property({ attribute: 'no-header', type: Boolean, reflect: true }) noHeader = false;\n\n firstUpdated() {\n this.drawer.hidden = !this.open;\n\n if (this.open) {\n this.addOpenListeners();\n\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n unlockBodyScrolling(this);\n this.removeOpenListeners();\n }\n\n private requestClose(source: 'close-button' | 'keyboard' | 'overlay') {\n const slRequestClose = this.emit('syn-request-close', {\n cancelable: true,\n detail: { source }\n });\n\n if (slRequestClose.defaultPrevented) {\n const animation = getAnimation(this, 'drawer.denyClose', { dir: this.localize.dir() });\n animateTo(this.panel, animation.keyframes, animation.options);\n return;\n }\n\n this.hide();\n }\n\n private addOpenListeners() {\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n if (!this.contained) {\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => this.requestClose('keyboard');\n }\n } else {\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n }\n }\n\n private removeOpenListeners() {\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n this.closeWatcher?.destroy();\n }\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n // Contained drawers aren't modal and don't response to the escape key\n if (this.contained) {\n return;\n }\n\n if (event.key === 'Escape' && this.modal.isActive() && this.open) {\n event.stopImmediatePropagation();\n this.requestClose('keyboard');\n }\n };\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n this.originalTrigger = document.activeElement as HTMLElement;\n\n // Lock body scrolling only if the drawer isn't contained\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n\n // When the drawer is shown, Safari will attempt to set focus on whatever element has autofocus. This causes the\n // drawer's animation to jitter, so we'll temporarily remove the attribute, call `focus({ preventScroll: true })`\n // ourselves, and add the attribute back afterwards.\n //\n // Related: https://github.com/shoelace-style/shoelace/issues/693\n //\n const autoFocusTarget = this.querySelector('[autofocus]');\n if (autoFocusTarget) {\n autoFocusTarget.removeAttribute('autofocus');\n }\n\n await Promise.all([stopAnimations(this.drawer), stopAnimations(this.overlay)]);\n this.drawer.hidden = false;\n\n // Set initial focus\n requestAnimationFrame(() => {\n const slInitialFocus = this.emit('syn-initial-focus', { cancelable: true });\n\n if (!slInitialFocus.defaultPrevented) {\n // Set focus to the autofocus target and restore the attribute\n if (autoFocusTarget) {\n (autoFocusTarget as HTMLInputElement).focus({ preventScroll: true });\n } else {\n this.panel.focus({ preventScroll: true });\n }\n }\n\n // Restore the autofocus attribute\n if (autoFocusTarget) {\n autoFocusTarget.setAttribute('autofocus', '');\n }\n });\n\n const panelAnimation = getAnimation(this, `drawer.show${uppercaseFirstLetter(this.placement)}`, {\n dir: this.localize.dir()\n });\n const overlayAnimation = getAnimation(this, 'drawer.overlay.show', { dir: this.localize.dir() });\n await Promise.all([\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options),\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options)\n ]);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n blurActiveElement(this);\n this.emit('syn-hide');\n this.removeOpenListeners();\n\n if (!this.contained) {\n this.modal.deactivate();\n unlockBodyScrolling(this);\n }\n\n await Promise.all([stopAnimations(this.drawer), stopAnimations(this.overlay)]);\n const panelAnimation = getAnimation(this, `drawer.hide${uppercaseFirstLetter(this.placement)}`, {\n dir: this.localize.dir()\n });\n const overlayAnimation = getAnimation(this, 'drawer.overlay.hide', { dir: this.localize.dir() });\n\n // Animate the overlay and the panel at the same time. Because animation durations might be different, we need to\n // hide each one individually when the animation finishes, otherwise the first one that finishes will reappear\n // unexpectedly. We'll unhide them after all animations have completed.\n await Promise.all([\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options).then(() => {\n this.overlay.hidden = true;\n }),\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options).then(() => {\n this.panel.hidden = true;\n })\n ]);\n\n this.drawer.hidden = true;\n\n // Now that the dialog is hidden, restore the overlay and panel for next time\n this.overlay.hidden = false;\n this.panel.hidden = false;\n\n // Restore focus to the original trigger\n const trigger = this.originalTrigger;\n if (typeof trigger?.focus === 'function') {\n setTimeout(() => trigger.focus());\n }\n\n this.emit('syn-after-hide');\n }\n }\n\n @watch('contained', { waitUntilFirstUpdate: true })\n handleNoModalChange() {\n if (this.open && !this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n\n if (this.open && this.contained) {\n this.modal.deactivate();\n unlockBodyScrolling(this);\n }\n }\n\n /** Shows the drawer. */\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 drawer */\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 render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n drawer: true,\n 'drawer--open': this.open,\n 'drawer--top': this.placement === 'top',\n 'drawer--end': this.placement === 'end',\n 'drawer--bottom': this.placement === 'bottom',\n 'drawer--start': this.placement === 'start',\n 'drawer--contained': this.contained,\n 'drawer--fixed': !this.contained,\n 'drawer--rtl': this.localize.dir() === 'rtl',\n 'drawer--has-footer': this.hasSlotController.test('footer')\n })}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" @click=${() => this.requestClose('overlay')} tabindex=\"-1\"></div>\n\n <div\n part=\"panel\"\n class=\"drawer__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden=${this.open ? 'false' : 'true'}\n aria-label=${ifDefined(this.noHeader ? this.label : undefined)}\n aria-labelledby=${ifDefined(!this.noHeader ? 'title' : undefined)}\n tabindex=\"0\"\n >\n ${!this.noHeader\n ? html`\n <header part=\"header\" class=\"drawer__header\">\n <h2 part=\"title\" class=\"drawer__title\" id=\"title\">\n <!-- If there's no label, use an invisible character to prevent the header from collapsing -->\n <slot name=\"label\"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>\n </h2>\n <div part=\"header-actions\" class=\"drawer__header-actions\">\n <slot name=\"header-actions\"></slot>\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"drawer__close\"\n name=\"x-lg\"\n label=${this.localize.term('close')}\n library=\"system\"\n @click=${() => this.requestClose('close-button')}\n ></syn-icon-button>\n </div>\n </header>\n `\n : ''}\n\n <slot part=\"body\" class=\"drawer__body\"></slot>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n}\n\n// Top\nsetDefaultAnimation('drawer.showTop', {\n keyframes: [\n { opacity: 0, translate: '0 -100%' },\n { opacity: 1, translate: '0 0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideTop', {\n keyframes: [\n { opacity: 1, translate: '0 0' },\n { opacity: 0, translate: '0 -100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// End\nsetDefaultAnimation('drawer.showEnd', {\n keyframes: [\n { opacity: 0, translate: '100%' },\n { opacity: 1, translate: '0' }\n ],\n rtlKeyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideEnd', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '100%' }\n ],\n rtlKeyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Bottom\nsetDefaultAnimation('drawer.showBottom', {\n keyframes: [\n { opacity: 0, translate: '0 100%' },\n { opacity: 1, translate: '0 0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideBottom', {\n keyframes: [\n { opacity: 1, translate: '0 0' },\n { opacity: 0, translate: '0 100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Start\nsetDefaultAnimation('drawer.showStart', {\n keyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' }\n ],\n rtlKeyframes: [\n { opacity: 0, translate: '100%' },\n { opacity: 1, translate: '0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideStart', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' }\n ],\n rtlKeyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Deny close\nsetDefaultAnimation('drawer.denyClose', {\n keyframes: [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }],\n options: { duration: 250 }\n});\n\n// Overlay\nsetDefaultAnimation('drawer.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('drawer.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n", "/**\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 */\n/** Converts the first letter of a string to uppercase */\nexport function uppercaseFirstLetter(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;;;ACRzB,SAAS,qBAAqB,QAAgB;AACnD,SAAO,OAAO,OAAO,CAAC,EAAE,YAAY,IAAI,OAAO,MAAM,CAAC;AACxD;;;AD2EA,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAIE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AACzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAEvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAWe,gBAAO;AAMtB,iBAAQ;AAGR,qBAAgD;AAMjC,qBAAY;AAMY,oBAAW;AAqD/E,SAAQ,wBAAwB,CAAC,UAAyB;AAExD,UAAI,KAAK,WAAW;AAClB;AAAA,MACF;AAEA,UAAI,MAAM,QAAQ,YAAY,KAAK,MAAM,SAAS,KAAK,KAAK,MAAM;AAChE,cAAM,yBAAyB;AAC/B,aAAK,aAAa,UAAU;AAAA,MAC9B;AAAA,IACF;AAAA;AAAA,EA7DA,eAAe;AACb,SAAK,OAAO,SAAS,CAAC,KAAK;AAE3B,QAAI,KAAK,MAAM;AACb,WAAK,iBAAiB;AAEtB,UAAI,CAAC,KAAK,WAAW;AACnB,aAAK,MAAM,S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AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAGD,oBAAoB,oBAAoB;AAAA,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO,EAAE,CAAC;AAAA,EACvD,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAGD,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDrawer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.TIZSO7FR.js";
|
|
4
4
|
|
|
5
5
|
// src/components/drawer/drawer.ts
|
|
6
6
|
var drawer_default = SynDrawer;
|
|
@@ -9,4 +9,4 @@ SynDrawer.define("syn-drawer");
|
|
|
9
9
|
export {
|
|
10
10
|
drawer_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.TOVTZIPZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIcon
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.GOMKPLJA.js";
|
|
4
4
|
|
|
5
5
|
// src/components/icon/icon.ts
|
|
6
6
|
var icon_default = SynIcon;
|
|
@@ -9,4 +9,4 @@ SynIcon.define("syn-icon");
|
|
|
9
9
|
export {
|
|
10
10
|
icon_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.TR2YSRMW.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTag
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.MRUEYMZJ.js";
|
|
4
4
|
import {
|
|
5
5
|
select_custom_styles_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.4DW7CR6A.js";
|
|
7
7
|
import {
|
|
8
8
|
select_styles_default
|
|
9
9
|
} from "./chunk.XTWO6ZZW.js";
|
|
@@ -12,52 +12,52 @@ import {
|
|
|
12
12
|
} from "./chunk.LUQR4NNU.js";
|
|
13
13
|
import {
|
|
14
14
|
SynPopup
|
|
15
|
-
} from "./chunk.
|
|
16
|
-
import {
|
|
17
|
-
scrollIntoView
|
|
18
|
-
} from "./chunk.5732DMBC.js";
|
|
15
|
+
} from "./chunk.JYM2KBX2.js";
|
|
19
16
|
import {
|
|
20
17
|
form_control_custom_styles_default,
|
|
21
18
|
form_control_styles_default
|
|
22
19
|
} from "./chunk.AERTEAG5.js";
|
|
20
|
+
import {
|
|
21
|
+
scrollIntoView
|
|
22
|
+
} from "./chunk.5732DMBC.js";
|
|
23
23
|
import {
|
|
24
24
|
FormControlController
|
|
25
|
-
} from "./chunk.
|
|
25
|
+
} from "./chunk.HP2LEQRU.js";
|
|
26
26
|
import {
|
|
27
27
|
waitForEvent
|
|
28
28
|
} from "./chunk.C2ENQBPM.js";
|
|
29
29
|
import {
|
|
30
30
|
animateTo,
|
|
31
31
|
stopAnimations
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.G6ITZTTW.js";
|
|
33
33
|
import {
|
|
34
34
|
getAnimation,
|
|
35
35
|
setDefaultAnimation
|
|
36
|
-
} from "./chunk.
|
|
37
|
-
import {
|
|
38
|
-
HasSlotController
|
|
39
|
-
} from "./chunk.WVVQK5TE.js";
|
|
36
|
+
} from "./chunk.7JGKUB4A.js";
|
|
40
37
|
import {
|
|
41
38
|
SynIcon
|
|
42
|
-
} from "./chunk.
|
|
39
|
+
} from "./chunk.GOMKPLJA.js";
|
|
43
40
|
import {
|
|
44
41
|
LocalizeController
|
|
45
42
|
} from "./chunk.GIU3H3J3.js";
|
|
46
43
|
import {
|
|
47
|
-
|
|
48
|
-
} from "./chunk.
|
|
44
|
+
HasSlotController
|
|
45
|
+
} from "./chunk.WVVQK5TE.js";
|
|
49
46
|
import {
|
|
50
47
|
enableDefaultSettings
|
|
51
|
-
} from "./chunk.
|
|
48
|
+
} from "./chunk.KFUASL6I.js";
|
|
49
|
+
import {
|
|
50
|
+
watch
|
|
51
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
52
52
|
import {
|
|
53
53
|
component_styles_default
|
|
54
54
|
} from "./chunk.NLYVOJGK.js";
|
|
55
55
|
import {
|
|
56
56
|
SynergyElement
|
|
57
|
-
} from "./chunk.
|
|
57
|
+
} from "./chunk.QW75RDVZ.js";
|
|
58
58
|
import {
|
|
59
59
|
__decorateClass
|
|
60
|
-
} from "./chunk.
|
|
60
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
61
61
|
|
|
62
62
|
// src/components/select/select.component.ts
|
|
63
63
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -242,6 +242,15 @@ var SynSelect = class extends SynergyElement {
|
|
|
242
242
|
get validationMessage() {
|
|
243
243
|
return this.valueInput.validationMessage;
|
|
244
244
|
}
|
|
245
|
+
enableResizeObserver() {
|
|
246
|
+
if (this.multiple) {
|
|
247
|
+
this.resizeObserver = new ResizeObserver((entries) => {
|
|
248
|
+
const entry = entries.at(0);
|
|
249
|
+
this.tagContainer.style.setProperty("--syn-select-tag-max-width", `${entry.contentRect.width}px`);
|
|
250
|
+
});
|
|
251
|
+
this.resizeObserver.observe(this.tagContainer);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
245
254
|
connectedCallback() {
|
|
246
255
|
super.connectedCallback();
|
|
247
256
|
setTimeout(() => {
|
|
@@ -249,6 +258,11 @@ var SynSelect = class extends SynergyElement {
|
|
|
249
258
|
});
|
|
250
259
|
this.open = false;
|
|
251
260
|
}
|
|
261
|
+
disconnectedCallback() {
|
|
262
|
+
var _a;
|
|
263
|
+
super.disconnectedCallback();
|
|
264
|
+
(_a = this.resizeObserver) == null ? void 0 : _a.disconnect();
|
|
265
|
+
}
|
|
252
266
|
addOpenListeners() {
|
|
253
267
|
var _a;
|
|
254
268
|
document.addEventListener("focusin", this.handleDocumentFocusIn);
|
|
@@ -473,6 +487,17 @@ var SynSelect = class extends SynergyElement {
|
|
|
473
487
|
firstUpdated() {
|
|
474
488
|
this.isInitialized = true;
|
|
475
489
|
}
|
|
490
|
+
updated(changedProperties) {
|
|
491
|
+
var _a;
|
|
492
|
+
super.updated(changedProperties);
|
|
493
|
+
if (changedProperties.has("multiple")) {
|
|
494
|
+
if (!this.multiple) {
|
|
495
|
+
(_a = this.resizeObserver) == null ? void 0 : _a.disconnect();
|
|
496
|
+
} else {
|
|
497
|
+
this.enableResizeObserver();
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
476
501
|
willUpdate(changedProperties) {
|
|
477
502
|
super.willUpdate(changedProperties);
|
|
478
503
|
if (!this.isInitialized && !this.defaultValue && this.value) {
|
|
@@ -620,13 +645,14 @@ var SynSelect = class extends SynergyElement {
|
|
|
620
645
|
"select--medium": this.size === "medium",
|
|
621
646
|
"select--large": this.size === "large"
|
|
622
647
|
})}
|
|
623
|
-
placement=${this.placement}
|
|
648
|
+
placement=${this.placement + "-start"}
|
|
624
649
|
strategy=${this.hoist ? "fixed" : "absolute"}
|
|
625
650
|
flip
|
|
626
651
|
shift
|
|
627
652
|
sync="width"
|
|
628
653
|
auto-size="vertical"
|
|
629
654
|
auto-size-padding="10"
|
|
655
|
+
exportparts="popup"
|
|
630
656
|
>
|
|
631
657
|
<div
|
|
632
658
|
part="combobox"
|
|
@@ -747,6 +773,9 @@ __decorateClass([
|
|
|
747
773
|
__decorateClass([
|
|
748
774
|
query(".select__listbox")
|
|
749
775
|
], SynSelect.prototype, "listbox", 2);
|
|
776
|
+
__decorateClass([
|
|
777
|
+
query(".select__tags")
|
|
778
|
+
], SynSelect.prototype, "tagContainer", 2);
|
|
750
779
|
__decorateClass([
|
|
751
780
|
state()
|
|
752
781
|
], SynSelect.prototype, "hasFocus", 2);
|
|
@@ -849,4 +878,4 @@ setDefaultAnimation("select.hide", {
|
|
|
849
878
|
export {
|
|
850
879
|
SynSelect
|
|
851
880
|
};
|
|
852
|
-
//# sourceMappingURL=chunk.
|
|
881
|
+
//# sourceMappingURL=chunk.UAGQQMKI.js.map
|