@synergy-design-system/components 2.4.3 → 2.6.0
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.277APOW3.js +277 -0
- package/dist/chunks/chunk.277APOW3.js.map +7 -0
- package/dist/chunks/{chunk.QZNPL6WK.js → chunk.27HWF7JY.js} +12 -2
- package/dist/chunks/{chunk.QZNPL6WK.js.map → chunk.27HWF7JY.js.map} +2 -2
- package/dist/chunks/{chunk.Y4LO5L6L.js → chunk.2IEYCSI6.js} +4 -4
- package/dist/chunks/{chunk.NH5UF5W4.js → chunk.2TVDQYJX.js} +12 -12
- package/dist/chunks/{chunk.XVFSTDCI.js → chunk.2VMSUMKU.js} +2 -2
- package/dist/chunks/{chunk.KP7ABNMV.js → chunk.3HG7LHI7.js} +8 -8
- package/dist/chunks/{chunk.MIF4NFFN.js → chunk.3I5JDTGT.js} +3 -3
- package/dist/chunks/{chunk.MIF4NFFN.js.map → chunk.3I5JDTGT.js.map} +1 -1
- package/dist/chunks/{chunk.BCREP7HQ.js → chunk.3SWRT4AL.js} +2 -2
- package/dist/chunks/{chunk.OPAVUSG6.js → chunk.4DCKHPZX.js} +6 -6
- package/dist/chunks/{chunk.DOHCZXOF.js → chunk.4PD74CS6.js} +2 -2
- package/dist/chunks/{chunk.5CL6DHME.js → chunk.4SSPQ66Z.js} +4 -4
- package/dist/chunks/{chunk.GJPZZH76.js → chunk.536NCWEA.js} +2 -2
- package/dist/chunks/{chunk.AV56MW4Q.js → chunk.543GQUFN.js} +4 -4
- package/dist/chunks/{chunk.AD7URUHH.js → chunk.63P7MT4J.js} +2 -2
- package/dist/chunks/{chunk.VA5J6CGG.js → chunk.6BJDFV76.js} +2 -2
- package/dist/chunks/{chunk.VNQF6LEZ.js → chunk.6RTGL3PP.js} +2 -2
- package/dist/chunks/{chunk.FO3NV7MY.js → chunk.72I324LK.js} +12 -10
- package/dist/chunks/{chunk.FO3NV7MY.js.map → chunk.72I324LK.js.map} +1 -1
- package/dist/chunks/{chunk.SDQC32B3.js → chunk.AINKZEUX.js} +3 -1
- package/dist/chunks/{chunk.SDQC32B3.js.map → chunk.AINKZEUX.js.map} +2 -2
- package/dist/chunks/{chunk.5BUBL7JY.js → chunk.AMAMIZIA.js} +2 -2
- package/dist/chunks/{chunk.H4EFGKKT.js → chunk.AQ3OGEJ7.js} +2 -2
- package/dist/chunks/{chunk.NUHI5YB7.js → chunk.AQJKRHVT.js} +11 -11
- package/dist/chunks/{chunk.ZBYQDVMH.js → chunk.AZVHDONN.js} +15 -13
- package/dist/chunks/{chunk.ZBYQDVMH.js.map → chunk.AZVHDONN.js.map} +1 -1
- package/dist/chunks/chunk.C2ENQBPM.js +17 -0
- package/dist/chunks/chunk.C2ENQBPM.js.map +7 -0
- package/dist/chunks/{chunk.MVZJDKSR.js → chunk.CFXNQ5IS.js} +9 -9
- package/dist/chunks/{chunk.KOZGQJ42.js → chunk.CGOHWVSA.js} +3 -3
- package/dist/chunks/{chunk.PMC3VAD6.js → chunk.CRU7ZSDO.js} +2 -2
- package/dist/chunks/{chunk.6JHUWKC2.js → chunk.D3FO6WR5.js} +6 -6
- package/dist/chunks/{chunk.SMPYVOTL.js → chunk.D3NSCKGB.js} +2 -2
- package/dist/chunks/{chunk.JBW7QDPF.js → chunk.D65RJIQG.js} +2 -2
- package/dist/chunks/{chunk.4H3F5YVU.js → chunk.DRA2UZ77.js} +4 -4
- package/dist/chunks/{chunk.W2S2MTUW.js → chunk.E35IIEQ7.js} +2 -2
- package/dist/chunks/{chunk.NMM47RXC.js → chunk.EIKNGXXK.js} +2 -2
- package/dist/chunks/{chunk.4HSU3RZA.js → chunk.EJNLN3CX.js} +2 -2
- package/dist/chunks/{chunk.J47HF5GZ.js → chunk.F6HHFAPB.js} +6 -6
- package/dist/chunks/{chunk.UWNJQDZP.js → chunk.FIIQJSVJ.js} +5 -5
- package/dist/chunks/{chunk.CX4QZVGR.js → chunk.FKKJBKYL.js} +3 -6
- package/dist/chunks/{chunk.CX4QZVGR.js.map → chunk.FKKJBKYL.js.map} +2 -2
- package/dist/chunks/{chunk.PYLHI2JQ.js → chunk.FMSA5VHT.js} +3 -17
- package/dist/chunks/{chunk.PYLHI2JQ.js.map → chunk.FMSA5VHT.js.map} +3 -3
- package/dist/chunks/{chunk.TFC66SL6.js → chunk.FRELNK6W.js} +12 -10
- package/dist/chunks/{chunk.TFC66SL6.js.map → chunk.FRELNK6W.js.map} +1 -1
- package/dist/chunks/{chunk.B4PYRXCV.js → chunk.GKKENNQE.js} +13 -11
- package/dist/chunks/{chunk.B4PYRXCV.js.map → chunk.GKKENNQE.js.map} +1 -1
- package/dist/chunks/{chunk.4HBNKWDI.js → chunk.GQMLBFF3.js} +2 -2
- package/dist/chunks/{chunk.ZBJXFMXI.js → chunk.GVPQNGY3.js} +9 -9
- package/dist/chunks/{chunk.2BKN4SVL.js → chunk.H43NLW3K.js} +2 -2
- package/dist/chunks/{chunk.SW3NDC4L.js → chunk.HE4KPEL6.js} +2 -2
- package/dist/chunks/{chunk.R7FWD6IV.js → chunk.HIIXDCGP.js} +4 -4
- package/dist/chunks/{chunk.QNDC5KWA.js → chunk.HLQ75E45.js} +27 -1
- package/dist/chunks/{chunk.GCI7QWTQ.js → chunk.HVKRSLBD.js} +9 -9
- package/dist/chunks/{chunk.RILCNQ7U.js → chunk.I6ROVIIB.js} +2 -2
- package/dist/chunks/chunk.I6YARDHH.js +39 -0
- package/dist/chunks/chunk.I6YARDHH.js.map +7 -0
- package/dist/chunks/chunk.IJ67S5B6.js +12 -0
- package/dist/chunks/chunk.IJ67S5B6.js.map +7 -0
- package/dist/chunks/chunk.IKZOQ7AE.js +184 -0
- package/dist/chunks/chunk.IKZOQ7AE.js.map +7 -0
- package/dist/chunks/{chunk.TQMD3CRX.js → chunk.INQ5T33N.js} +2 -2
- package/dist/chunks/{chunk.QJMO7V5R.js → chunk.ITKS5ZOS.js} +2 -2
- package/dist/chunks/{chunk.VHASVP7B.js → chunk.ITW4C543.js} +8 -8
- package/dist/chunks/{chunk.Z2XKAE7D.js → chunk.ITWCPUOB.js} +13 -11
- package/dist/chunks/{chunk.Z2XKAE7D.js.map → chunk.ITWCPUOB.js.map} +1 -1
- package/dist/chunks/{chunk.XMS3V7AX.js → chunk.J2EUQLBR.js} +5 -5
- package/dist/chunks/{chunk.A54YJOJZ.js → chunk.J5H7WYNF.js} +2 -2
- package/dist/chunks/{chunk.EHZE3CKH.js → chunk.JUZCWVBF.js} +8 -8
- package/dist/chunks/{chunk.LITNZ5UP.js → chunk.K26XKBB4.js} +4 -4
- package/dist/chunks/{chunk.YLRQUWVH.js → chunk.K5OP4LDM.js} +2 -2
- package/dist/chunks/{chunk.Q63T23NX.js → chunk.KCVQQRVW.js} +2 -2
- package/dist/chunks/{chunk.MSUX23ZJ.js → chunk.KL7CAPPJ.js} +2 -2
- package/dist/chunks/chunk.LGCK4I4E.js +12 -0
- package/dist/chunks/chunk.LGCK4I4E.js.map +7 -0
- package/dist/chunks/{chunk.7MRLMCDG.js → chunk.LH75WEHB.js} +16 -14
- package/dist/chunks/{chunk.7MRLMCDG.js.map → chunk.LH75WEHB.js.map} +1 -1
- package/dist/chunks/{chunk.QGODDF6V.js → chunk.LQCQI2F4.js} +2 -2
- package/dist/chunks/{chunk.WM3ZKNS4.js → chunk.M2JYB7TN.js} +2 -2
- package/dist/chunks/chunk.MCWFKLR3.js +49 -0
- package/dist/chunks/chunk.MCWFKLR3.js.map +7 -0
- package/dist/chunks/{chunk.2FHYURSV.js → chunk.MM55BLFM.js} +3 -3
- package/dist/chunks/{chunk.FZKUXUK6.js → chunk.NCXSLHHQ.js} +7 -7
- package/dist/chunks/{chunk.TJADLTCQ.js → chunk.NFYLQHRP.js} +17 -15
- package/dist/chunks/{chunk.TJADLTCQ.js.map → chunk.NFYLQHRP.js.map} +1 -1
- package/dist/chunks/{chunk.QH5LWFIU.js → chunk.NPHJNN2T.js} +3 -3
- package/dist/chunks/{chunk.LVMOATGP.js → chunk.NREQNXC6.js} +5 -5
- package/dist/chunks/chunk.OOFVD7M5.js +483 -0
- package/dist/chunks/chunk.OOFVD7M5.js.map +7 -0
- package/dist/chunks/{chunk.5UWGWBIX.js → chunk.OQQ3RUCC.js} +2 -2
- package/dist/chunks/{chunk.KBUOEYFD.js → chunk.OUEA3H7P.js} +6 -6
- package/dist/chunks/{chunk.DXNSNACZ.js → chunk.OZGGB3YU.js} +2 -2
- package/dist/chunks/{chunk.XHVDKQO2.js → chunk.PAFCMQM4.js} +2 -2
- package/dist/chunks/{chunk.XRRZVMQT.js → chunk.PN2B3HKP.js} +2 -2
- package/dist/chunks/{chunk.KDBBMF6R.js → chunk.PPKWM5KJ.js} +7 -7
- package/dist/chunks/{chunk.E3KW3KQM.js → chunk.QQ3HY3YJ.js} +2 -2
- package/dist/chunks/{chunk.E3KW3KQM.js.map → chunk.QQ3HY3YJ.js.map} +1 -1
- package/dist/chunks/{chunk.MXCWG2OM.js → chunk.R4Y2EU76.js} +2 -2
- package/dist/chunks/{chunk.JBSLSPA4.js → chunk.R6T4FYGP.js} +2 -2
- package/dist/chunks/{chunk.DFR3UNMT.js → chunk.RU5QGDNJ.js} +7 -7
- package/dist/chunks/{chunk.5C2N3OG3.js → chunk.S35OARTV.js} +2 -2
- package/dist/chunks/{chunk.4ZAIWKYK.js → chunk.T2BHFREJ.js} +4 -4
- package/dist/chunks/{chunk.DNYMFI4T.js → chunk.TOWZTCAT.js} +2 -2
- package/dist/chunks/{chunk.R2MO73SN.js → chunk.U7XXAVXV.js} +2 -2
- package/dist/chunks/{chunk.MQMVF4PW.js → chunk.UCZUWSO5.js} +8 -8
- package/dist/chunks/{chunk.5KE7YYYL.js → chunk.ULJBPLL6.js} +3 -3
- package/dist/chunks/{chunk.PD4GEYPT.js → chunk.UQOWSCP3.js} +2 -2
- package/dist/chunks/{chunk.4UGAAIOV.js → chunk.UYCIME52.js} +8 -8
- package/dist/chunks/{chunk.AVNL6XBJ.js → chunk.UYMVCZFD.js} +5 -5
- package/dist/chunks/{chunk.PVBLEKYQ.js → chunk.VB7U5SK7.js} +2 -2
- package/dist/chunks/{chunk.CN4QRO22.js → chunk.VXAM5HPM.js} +2 -2
- package/dist/chunks/chunk.WO6VXGWQ.js +34 -0
- package/dist/chunks/chunk.WO6VXGWQ.js.map +7 -0
- package/dist/chunks/chunk.WYQ7ZY3X.js +12 -0
- package/dist/chunks/chunk.WYQ7ZY3X.js.map +7 -0
- package/dist/chunks/{chunk.DCILBP5O.js → chunk.WZ3DZS4C.js} +2 -2
- package/dist/chunks/chunk.X7LEPG3A.js +681 -0
- package/dist/chunks/chunk.X7LEPG3A.js.map +7 -0
- package/dist/chunks/{chunk.STPTOC6W.js → chunk.X7TL7T7R.js} +2 -2
- package/dist/chunks/{chunk.IUBRJUHB.js → chunk.XE5OK2UE.js} +2 -2
- package/dist/chunks/{chunk.MLTJKLDB.js → chunk.XG3XBCNU.js} +2 -2
- package/dist/chunks/{chunk.2BVNVTCJ.js → chunk.XL5RSJ3V.js} +2 -2
- package/dist/chunks/{chunk.LLNHJVT6.js → chunk.XVUJKP6I.js} +4 -4
- package/dist/chunks/{chunk.NCS3KNSS.js → chunk.Y3LKXZKA.js} +3 -3
- package/dist/chunks/{chunk.6EXC65JJ.js → chunk.YCNVMJNR.js} +9 -2
- package/dist/chunks/{chunk.6EXC65JJ.js.map → chunk.YCNVMJNR.js.map} +2 -2
- package/dist/chunks/{chunk.F5LLLIE5.js → chunk.YOHLIT2Z.js} +4 -4
- package/dist/chunks/{chunk.KU3GIITB.js → chunk.ZXXT7QGH.js} +2 -2
- package/dist/components/accordion/accordion.component.js +4 -4
- package/dist/components/accordion/accordion.js +5 -5
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.component.js +14 -13
- package/dist/components/alert/alert.custom.styles.js +1 -1
- package/dist/components/alert/alert.js +15 -14
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +5 -5
- package/dist/components/badge/badge.custom.styles.js +1 -1
- package/dist/components/badge/badge.js +6 -6
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +10 -10
- package/dist/components/breadcrumb/breadcrumb.custom.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +11 -11
- package/dist/components/breadcrumb/breadcrumb.styles.js +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.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.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.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.js +10 -10
- package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +11 -11
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/details/details.component.js +13 -12
- package/dist/components/details/details.custom.styles.js +1 -1
- package/dist/components/details/details.js +14 -13
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.js +15 -14
- package/dist/components/dialog/dialog.custom.styles.js +1 -1
- package/dist/components/dialog/dialog.js +16 -15
- package/dist/components/dialog/dialog.styles.js +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.js +15 -14
- package/dist/components/drawer/drawer.custom.styles.js +1 -1
- package/dist/components/drawer/drawer.js +16 -15
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.component.js +10 -9
- package/dist/components/dropdown/dropdown.custom.styles.js +1 -1
- package/dist/components/dropdown/dropdown.js +11 -10
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/file/file.component.d.ts +195 -0
- package/dist/components/file/file.component.js +32 -0
- package/dist/components/file/file.component.js.map +7 -0
- package/dist/components/file/file.d.ts +8 -0
- package/dist/components/file/file.js +33 -0
- package/dist/components/file/file.js.map +7 -0
- package/dist/components/file/file.styles.d.ts +2 -0
- package/dist/components/file/file.styles.js +8 -0
- package/dist/components/file/file.styles.js.map +7 -0
- package/dist/components/header/header.component.js +11 -11
- package/dist/components/header/header.js +12 -12
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icon/icon.component.js +7 -7
- package/dist/components/icon/icon.custom.styles.js +1 -1
- package/dist/components/icon/icon.js +8 -8
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.default.js +1 -1
- package/dist/components/icon/library.js +3 -3
- package/dist/components/icon/library.system.js +2 -2
- package/dist/components/icon-button/icon-button.component.js +8 -8
- package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
- package/dist/components/icon-button/icon-button.js +9 -9
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.component.js +14 -14
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +15 -15
- package/dist/components/input/input.styles.js +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.js +13 -13
- package/dist/components/menu-item/menu-item.custom.styles.js +1 -1
- package/dist/components/menu-item/menu-item.js +14 -14
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-item/submenu-controller.js +3 -3
- 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.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.component.js +10 -10
- package/dist/components/option/option.custom.styles.js +1 -1
- package/dist/components/option/option.js +11 -11
- package/dist/components/option/option.styles.js +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.js +18 -17
- package/dist/components/prio-nav/prio-nav.js +19 -18
- 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.js +5 -5
- package/dist/components/progress-bar/progress-bar.custom.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +6 -6
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.component.js +5 -5
- package/dist/components/progress-ring/progress-ring.custom.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.js +6 -6
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/radio/radio.component.js +8 -8
- package/dist/components/radio/radio.custom.styles.js +1 -1
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.js +4 -4
- package/dist/components/radio-button/radio-button.js +5 -5
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +7 -7
- package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
- package/dist/components/radio-group/radio-group.js +8 -8
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.d.ts +125 -0
- package/dist/components/range/range.component.js +26 -0
- package/dist/components/range/range.component.js.map +7 -0
- package/dist/components/range/range.d.ts +8 -0
- package/dist/components/range/range.js +27 -0
- package/dist/components/range/range.js.map +7 -0
- package/dist/components/range/range.styles.d.ts +2 -0
- package/dist/components/range/range.styles.js +8 -0
- package/dist/components/range/range.styles.js.map +7 -0
- package/dist/components/range/utility.d.ts +9 -0
- package/dist/components/range/utility.js +12 -0
- package/dist/components/range/utility.js.map +7 -0
- package/dist/components/range-tick/range-tick.component.d.ts +24 -0
- package/dist/components/range-tick/range-tick.component.js +10 -0
- package/dist/components/range-tick/range-tick.component.js.map +7 -0
- package/dist/components/range-tick/range-tick.d.ts +8 -0
- package/dist/components/range-tick/range-tick.js +11 -0
- package/dist/components/range-tick/range-tick.js.map +7 -0
- package/dist/components/range-tick/range-tick.styles.d.ts +2 -0
- package/dist/components/range-tick/range-tick.styles.js +8 -0
- package/dist/components/range-tick/range-tick.styles.js.map +7 -0
- package/dist/components/select/select.component.js +19 -18
- package/dist/components/select/select.custom.styles.js +1 -1
- package/dist/components/select/select.js +20 -19
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/side-nav/side-nav.component.js +17 -16
- package/dist/components/side-nav/side-nav.js +18 -17
- package/dist/components/side-nav/side-nav.styles.js +1 -1
- package/dist/components/spinner/spinner.component.js +5 -5
- package/dist/components/spinner/spinner.custom.styles.js +1 -1
- package/dist/components/spinner/spinner.js +6 -6
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.js +7 -7
- package/dist/components/switch/switch.custom.styles.js +1 -1
- package/dist/components/switch/switch.js +8 -8
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.js +11 -11
- package/dist/components/tab/tab.custom.styles.js +1 -1
- package/dist/components/tab/tab.js +12 -12
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.component.js +12 -12
- package/dist/components/tab-group/tab-group.custom.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +13 -13
- package/dist/components/tab-group/tab-group.styles.js +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.js +12 -12
- package/dist/components/tag/tag.custom.styles.js +1 -1
- package/dist/components/tag/tag.js +13 -13
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.js +6 -6
- package/dist/components/textarea/textarea.custom.styles.js +1 -1
- package/dist/components/textarea/textarea.js +7 -7
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +11 -10
- package/dist/components/tooltip/tooltip.custom.styles.js +1 -1
- package/dist/components/tooltip/tooltip.js +12 -11
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/custom-elements.json +1810 -279
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-move.d.ts +9 -0
- package/dist/styles/fouc.css +3 -0
- package/dist/styles/index.css +4 -1
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy.d.ts +3 -0
- package/dist/synergy.js +155 -135
- package/dist/translations/de.js +14 -4
- package/dist/translations/de.js.map +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/utilities/animation-registry.js +2 -2
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/form.js +3 -3
- package/dist/utilities/icon-library.js +3 -3
- package/dist/utilities/localize.d.ts +6 -0
- package/dist/utilities/localize.js +3 -3
- package/dist/vscode.html-custom-data.json +183 -0
- package/package.json +4 -4
- /package/dist/chunks/{chunk.Y4LO5L6L.js.map → chunk.2IEYCSI6.js.map} +0 -0
- /package/dist/chunks/{chunk.NH5UF5W4.js.map → chunk.2TVDQYJX.js.map} +0 -0
- /package/dist/chunks/{chunk.XVFSTDCI.js.map → chunk.2VMSUMKU.js.map} +0 -0
- /package/dist/chunks/{chunk.KP7ABNMV.js.map → chunk.3HG7LHI7.js.map} +0 -0
- /package/dist/chunks/{chunk.BCREP7HQ.js.map → chunk.3SWRT4AL.js.map} +0 -0
- /package/dist/chunks/{chunk.OPAVUSG6.js.map → chunk.4DCKHPZX.js.map} +0 -0
- /package/dist/chunks/{chunk.DOHCZXOF.js.map → chunk.4PD74CS6.js.map} +0 -0
- /package/dist/chunks/{chunk.5CL6DHME.js.map → chunk.4SSPQ66Z.js.map} +0 -0
- /package/dist/chunks/{chunk.GJPZZH76.js.map → chunk.536NCWEA.js.map} +0 -0
- /package/dist/chunks/{chunk.AV56MW4Q.js.map → chunk.543GQUFN.js.map} +0 -0
- /package/dist/chunks/{chunk.AD7URUHH.js.map → chunk.63P7MT4J.js.map} +0 -0
- /package/dist/chunks/{chunk.VA5J6CGG.js.map → chunk.6BJDFV76.js.map} +0 -0
- /package/dist/chunks/{chunk.VNQF6LEZ.js.map → chunk.6RTGL3PP.js.map} +0 -0
- /package/dist/chunks/{chunk.5BUBL7JY.js.map → chunk.AMAMIZIA.js.map} +0 -0
- /package/dist/chunks/{chunk.H4EFGKKT.js.map → chunk.AQ3OGEJ7.js.map} +0 -0
- /package/dist/chunks/{chunk.NUHI5YB7.js.map → chunk.AQJKRHVT.js.map} +0 -0
- /package/dist/chunks/{chunk.MVZJDKSR.js.map → chunk.CFXNQ5IS.js.map} +0 -0
- /package/dist/chunks/{chunk.KOZGQJ42.js.map → chunk.CGOHWVSA.js.map} +0 -0
- /package/dist/chunks/{chunk.PMC3VAD6.js.map → chunk.CRU7ZSDO.js.map} +0 -0
- /package/dist/chunks/{chunk.6JHUWKC2.js.map → chunk.D3FO6WR5.js.map} +0 -0
- /package/dist/chunks/{chunk.SMPYVOTL.js.map → chunk.D3NSCKGB.js.map} +0 -0
- /package/dist/chunks/{chunk.JBW7QDPF.js.map → chunk.D65RJIQG.js.map} +0 -0
- /package/dist/chunks/{chunk.4H3F5YVU.js.map → chunk.DRA2UZ77.js.map} +0 -0
- /package/dist/chunks/{chunk.W2S2MTUW.js.map → chunk.E35IIEQ7.js.map} +0 -0
- /package/dist/chunks/{chunk.NMM47RXC.js.map → chunk.EIKNGXXK.js.map} +0 -0
- /package/dist/chunks/{chunk.4HSU3RZA.js.map → chunk.EJNLN3CX.js.map} +0 -0
- /package/dist/chunks/{chunk.J47HF5GZ.js.map → chunk.F6HHFAPB.js.map} +0 -0
- /package/dist/chunks/{chunk.UWNJQDZP.js.map → chunk.FIIQJSVJ.js.map} +0 -0
- /package/dist/chunks/{chunk.4HBNKWDI.js.map → chunk.GQMLBFF3.js.map} +0 -0
- /package/dist/chunks/{chunk.ZBJXFMXI.js.map → chunk.GVPQNGY3.js.map} +0 -0
- /package/dist/chunks/{chunk.2BKN4SVL.js.map → chunk.H43NLW3K.js.map} +0 -0
- /package/dist/chunks/{chunk.SW3NDC4L.js.map → chunk.HE4KPEL6.js.map} +0 -0
- /package/dist/chunks/{chunk.R7FWD6IV.js.map → chunk.HIIXDCGP.js.map} +0 -0
- /package/dist/chunks/{chunk.QNDC5KWA.js.map → chunk.HLQ75E45.js.map} +0 -0
- /package/dist/chunks/{chunk.GCI7QWTQ.js.map → chunk.HVKRSLBD.js.map} +0 -0
- /package/dist/chunks/{chunk.RILCNQ7U.js.map → chunk.I6ROVIIB.js.map} +0 -0
- /package/dist/chunks/{chunk.TQMD3CRX.js.map → chunk.INQ5T33N.js.map} +0 -0
- /package/dist/chunks/{chunk.QJMO7V5R.js.map → chunk.ITKS5ZOS.js.map} +0 -0
- /package/dist/chunks/{chunk.VHASVP7B.js.map → chunk.ITW4C543.js.map} +0 -0
- /package/dist/chunks/{chunk.XMS3V7AX.js.map → chunk.J2EUQLBR.js.map} +0 -0
- /package/dist/chunks/{chunk.A54YJOJZ.js.map → chunk.J5H7WYNF.js.map} +0 -0
- /package/dist/chunks/{chunk.EHZE3CKH.js.map → chunk.JUZCWVBF.js.map} +0 -0
- /package/dist/chunks/{chunk.LITNZ5UP.js.map → chunk.K26XKBB4.js.map} +0 -0
- /package/dist/chunks/{chunk.YLRQUWVH.js.map → chunk.K5OP4LDM.js.map} +0 -0
- /package/dist/chunks/{chunk.Q63T23NX.js.map → chunk.KCVQQRVW.js.map} +0 -0
- /package/dist/chunks/{chunk.MSUX23ZJ.js.map → chunk.KL7CAPPJ.js.map} +0 -0
- /package/dist/chunks/{chunk.QGODDF6V.js.map → chunk.LQCQI2F4.js.map} +0 -0
- /package/dist/chunks/{chunk.WM3ZKNS4.js.map → chunk.M2JYB7TN.js.map} +0 -0
- /package/dist/chunks/{chunk.2FHYURSV.js.map → chunk.MM55BLFM.js.map} +0 -0
- /package/dist/chunks/{chunk.FZKUXUK6.js.map → chunk.NCXSLHHQ.js.map} +0 -0
- /package/dist/chunks/{chunk.QH5LWFIU.js.map → chunk.NPHJNN2T.js.map} +0 -0
- /package/dist/chunks/{chunk.LVMOATGP.js.map → chunk.NREQNXC6.js.map} +0 -0
- /package/dist/chunks/{chunk.5UWGWBIX.js.map → chunk.OQQ3RUCC.js.map} +0 -0
- /package/dist/chunks/{chunk.KBUOEYFD.js.map → chunk.OUEA3H7P.js.map} +0 -0
- /package/dist/chunks/{chunk.DXNSNACZ.js.map → chunk.OZGGB3YU.js.map} +0 -0
- /package/dist/chunks/{chunk.XHVDKQO2.js.map → chunk.PAFCMQM4.js.map} +0 -0
- /package/dist/chunks/{chunk.XRRZVMQT.js.map → chunk.PN2B3HKP.js.map} +0 -0
- /package/dist/chunks/{chunk.KDBBMF6R.js.map → chunk.PPKWM5KJ.js.map} +0 -0
- /package/dist/chunks/{chunk.MXCWG2OM.js.map → chunk.R4Y2EU76.js.map} +0 -0
- /package/dist/chunks/{chunk.JBSLSPA4.js.map → chunk.R6T4FYGP.js.map} +0 -0
- /package/dist/chunks/{chunk.DFR3UNMT.js.map → chunk.RU5QGDNJ.js.map} +0 -0
- /package/dist/chunks/{chunk.5C2N3OG3.js.map → chunk.S35OARTV.js.map} +0 -0
- /package/dist/chunks/{chunk.4ZAIWKYK.js.map → chunk.T2BHFREJ.js.map} +0 -0
- /package/dist/chunks/{chunk.DNYMFI4T.js.map → chunk.TOWZTCAT.js.map} +0 -0
- /package/dist/chunks/{chunk.R2MO73SN.js.map → chunk.U7XXAVXV.js.map} +0 -0
- /package/dist/chunks/{chunk.MQMVF4PW.js.map → chunk.UCZUWSO5.js.map} +0 -0
- /package/dist/chunks/{chunk.5KE7YYYL.js.map → chunk.ULJBPLL6.js.map} +0 -0
- /package/dist/chunks/{chunk.PD4GEYPT.js.map → chunk.UQOWSCP3.js.map} +0 -0
- /package/dist/chunks/{chunk.4UGAAIOV.js.map → chunk.UYCIME52.js.map} +0 -0
- /package/dist/chunks/{chunk.AVNL6XBJ.js.map → chunk.UYMVCZFD.js.map} +0 -0
- /package/dist/chunks/{chunk.PVBLEKYQ.js.map → chunk.VB7U5SK7.js.map} +0 -0
- /package/dist/chunks/{chunk.CN4QRO22.js.map → chunk.VXAM5HPM.js.map} +0 -0
- /package/dist/chunks/{chunk.DCILBP5O.js.map → chunk.WZ3DZS4C.js.map} +0 -0
- /package/dist/chunks/{chunk.STPTOC6W.js.map → chunk.X7TL7T7R.js.map} +0 -0
- /package/dist/chunks/{chunk.IUBRJUHB.js.map → chunk.XE5OK2UE.js.map} +0 -0
- /package/dist/chunks/{chunk.MLTJKLDB.js.map → chunk.XG3XBCNU.js.map} +0 -0
- /package/dist/chunks/{chunk.2BVNVTCJ.js.map → chunk.XL5RSJ3V.js.map} +0 -0
- /package/dist/chunks/{chunk.LLNHJVT6.js.map → chunk.XVUJKP6I.js.map} +0 -0
- /package/dist/chunks/{chunk.NCS3KNSS.js.map → chunk.Y3LKXZKA.js.map} +0 -0
- /package/dist/chunks/{chunk.F5LLLIE5.js.map → chunk.YOHLIT2Z.js.map} +0 -0
- /package/dist/chunks/{chunk.KU3GIITB.js.map → chunk.ZXXT7QGH.js.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/range/range.component.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable complexity */\nimport type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, queryAll } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController, customErrorValidityState, validValidityState } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { LocalizeController } from '../../utilities/localize.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 SynTooltip from '../tooltip/tooltip.component.js';\nimport {\n arraysDiffer,\n getNormalizedValueFromClientX,\n numericSort,\n} from './utility.js';\nimport styles from './range.styles.js';\n\n/**\n * @summary Ranges allow the user to select values within a given range using one or two thumbs.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-range--docs\n * @status stable\n *\n * @dependency syn-tooltip\n *\n * @slot label - The range's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the range.\n * @slot suffix - Used to append a presentational icon or similar element to the range.\n * @slot help-text - Text that describes how to use the range.\n * Alternatively, you can use the `help-text` attribute.\n * @slot ticks - Used to display tick marks at specific intervals along the range.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity\n * and its constraints aren't satisfied.\n * @event syn-move - Emitted when the user moves a thumb, either via touch or keyboard.\n * Use `Event.preventDefault()` to prevent movement.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the input track and ticks.\n * @csspart track-wrapper - The wrapper for the track.\n * @csspart track - The inactive track.\n * @csspart active-track - The active track.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart ticks - The container that wraps the tick marks.\n * @csspart thumb - The thumb(s) that the user can drag to change the range.\n *\n * @cssproperty --thumb-size - The size of a thumb.\n * @cssproperty --thumb-hit-area-size - The clickable area around the thumb.\n * Per default this is set to 140% of the thumb size. Must be a scale css value (defaults to 1.4).\n * @cssproperty --track-hit-area-size - The clickable area around the track (top and left).\n * @cssproperty --track-color-active - Color of the track representing the current value.\n * @cssproperty --track-color-inactive - Color of the track that represents the remaining value.\n * @cssproperty --track-height - The height of the track.\n * @cssproperty --track-active-offset - The point of origin of the active track,\n * starting at the left side of the range.\n */\nexport default class SynRange extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [\n componentStyles,\n formControlStyles,\n formControlCustomStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-tooltip': SynTooltip,\n };\n\n /** The name of the range, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The range's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The range's help text. If you need to display HTML, use the help-text slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Disables the range. */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /** The minimum acceptable value of the range. */\n @property({ type: Number }) min = 0;\n\n /** The maximum acceptable value of the range. */\n @property({ type: Number }) max = 100;\n\n /** The interval at which the range will increase and decrease. */\n @property({ type: Number }) step = 1;\n\n /** The range's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The preferred placement of the range's tooltip. Use \"none\" to disable the tooltip */\n @property({ attribute: 'tooltip-placement', type: String }) tooltipPlacement: 'top' | 'bottom' | 'none' = 'top';\n\n /** The current values of the input (in ascending order) as a string of space separated values */\n @property({ type: String })\n set value(value: string | null) {\n this.#value = value ? value.split(' ').map(n => +n).sort(numericSort) : [];\n }\n\n get value() {\n return this.#value.slice().sort(numericSort).join(' ');\n }\n\n /** Gets or sets the current values of the range as an array of numbers */\n set valueAsArray(value: readonly number[] | null) {\n const oldValue = this.#value;\n this.#value = Array.isArray(value) ? value.slice().sort(numericSort) : value || [];\n if (arraysDiffer(oldValue, this.#value)) {\n this.requestUpdate('value', oldValue.join(' '));\n }\n }\n\n get valueAsArray() {\n return [...this.#value].sort(numericSort);\n }\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '0';\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element.\n * This attribute allows you to place the form control outside of a form\n * and associate it with the form that has this `id`.\n * The form must be in the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /**\n * A function used to format the tooltip's value.\n * The value of the thumb is passed as the only argument.\n * The function should return a string to display in the tooltip.\n */\n @property({ attribute: false }) tooltipFormatter: (value: number) => string;\n\n @query('.input__wrapper') baseDiv: HTMLDivElement;\n\n @query('.active-track') activeTrack: HTMLDivElement;\n\n @queryAll('.thumb') thumbs: NodeListOf<HTMLDivElement>;\n\n @query('.range__validation-input') validationInput: HTMLInputElement;\n\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label', 'prefix', 'suffix', 'ticks');\n\n private readonly formControlController = new FormControlController(this, { assumeInteractionOn: ['syn-change'] });\n\n private localize = new LocalizeController(this);\n\n #value: readonly number[] = [0];\n\n #rangeValues = new Map<number, number>();\n\n #hasFocus = false;\n\n #validationError = '';\n\n #validationTimeout: NodeJS.Timeout;\n\n #nextId = 1;\n\n #lastChangeValue: number [] = [];\n\n get #rtl() {\n return this.localize.dir() === 'rtl';\n }\n\n constructor() {\n super();\n this.tooltipFormatter = this.localize.number.bind(this.localize);\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n // initialize the lastChangeValue with the initial value\n this.#lastChangeValue = Array.from(this.#value);\n /**\n * Silence the screen reader for the tooltip.\n * Otherwise it will read the new value on change multiple times instead of just one time.\n * The aria-hidden needs to be set where the aria-live attribute is set, to silence it.\n */\n this.thumbs.forEach((thumb) => {\n const tooltip = thumb.parentElement as SynTooltip;\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n tooltip.updateComplete.then(() => {\n const tooltipBody = tooltip.shadowRoot!.querySelector('.tooltip__body');\n tooltipBody?.setAttribute('aria-hidden', 'true');\n });\n });\n }\n\n protected override willUpdate(changedProperties: PropertyValues) {\n super.willUpdate(changedProperties);\n\n if (this.min > this.max) {\n [this.min, this.max] = [this.max, this.min];\n }\n\n if (this.step > this.max - this.min) {\n this.step = this.max - this.min;\n }\n\n if (this.step <= 0) {\n this.step = 1;\n }\n\n const adjustedValue = this.#value\n .map(value => {\n if (value <= this.min) return this.min;\n if (value >= this.max) return this.max;\n const nextValue = this.min + this.step * Math.round((value - this.min) / this.step);\n if (nextValue > this.max) return this.max;\n return nextValue;\n });\n\n if (arraysDiffer(this.#value, adjustedValue)) {\n this.#value = adjustedValue;\n }\n }\n\n protected override updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n // eslint-disable-next-line no-restricted-syntax\n for (const thumb of this.thumbs) {\n const rangeId = +thumb.dataset.rangeId!;\n // eslint-disable-next-line no-continue\n if (!this.#rangeValues.has(rangeId)) continue;\n this.#moveThumb(thumb, this.#rangeValues.get(rangeId)!);\n }\n this.#updateActiveTrack();\n }\n\n override focus(options?: FocusOptions) {\n const firstThumb = this.thumbs.item(0);\n if (firstThumb) {\n firstThumb.focus(options);\n } else {\n super.focus(options);\n }\n }\n\n /**\n * Checks for validity but does not show a validation message.\n * Returns `true` when valid and `false` when invalid.\n */\n public checkValidity() {\n if (this.disabled) return true;\n const isValid = !this.#validationError;\n\n if (!isValid) {\n this.formControlController.emitInvalidEvent();\n }\n\n return isValid;\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n public reportValidity() {\n if (this.disabled) return true;\n\n const isValid = this.validity.valid;\n\n this.formControlController.setValidity(isValid);\n this.validationInput.hidden = true;\n clearTimeout(this.#validationTimeout);\n\n if (!isValid) {\n // Show the browser's constraint validation message\n this.validationInput.hidden = false;\n this.validationInput.reportValidity();\n this.#validationTimeout = setTimeout(() => {\n this.validationInput.hidden = true;\n }, 10000);\n }\n\n return isValid;\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n public setCustomValidity(message: string) {\n this.#validationError = message;\n this.validationInput.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n /** Gets the associated form, if one exists. */\n public getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Gets the validity state object */\n public get validity(): ValidityState {\n if (this.#validationError) return customErrorValidityState;\n\n return validValidityState;\n }\n\n /** Gets the validation message */\n public get validationMessage() {\n return this.#validationError;\n }\n\n #onClickTrack(event: PointerEvent) {\n if (this.disabled) return;\n const { clientX } = event;\n\n const thumbs = Array.from(this.thumbs);\n const pos = getNormalizedValueFromClientX(this.baseDiv, clientX, this.#rtl);\n const unit = this.step / (this.max - this.min);\n const nextValue = this.min + this.step * Math.round(pos / unit);\n\n // Get the thumb that is placed closest to the click position\n const thumb = thumbs.reduce((prev, curr) => {\n const currValue = this.#rangeValues.get(+curr.dataset.rangeId!)!;\n const prevValue = this.#rangeValues.get(+prev.dataset.rangeId!)!;\n\n return Math.abs(currValue - nextValue) <= Math.abs(prevValue - nextValue) ? curr : prev;\n });\n\n const rangeId = +thumb.dataset.rangeId!;\n\n if (!rangeId) return;\n\n this.#rangeValues.set(rangeId, nextValue);\n this.#moveThumb(thumb, nextValue);\n\n const prevValue = this.#value;\n this.#value = Array.from(this.#rangeValues.values());\n this.#updateActiveTrack();\n\n if (arraysDiffer(prevValue, this.#value)) {\n this.#lastChangeValue = Array.from(this.#value);\n this.emit('syn-input');\n this.emit('syn-change');\n }\n }\n\n async #onClickThumb(event: PointerEvent) {\n if (this.disabled) return;\n const thumb = event.target as HTMLDivElement;\n this.#updateTooltip(thumb);\n\n if (thumb.dataset.pointerId) {\n thumb.releasePointerCapture(+thumb.dataset.pointerId);\n }\n\n thumb.dataset.pointerId = event.pointerId.toString();\n thumb.setPointerCapture(event.pointerId);\n thumb.classList.add('grabbed');\n\n await (thumb.parentElement as SynTooltip).show();\n }\n\n #onDragThumb(event: PointerEvent) {\n if (this.disabled) return;\n\n const thumb = event.target as HTMLDivElement;\n const rangeId = +thumb.dataset.rangeId!;\n if (!this.#rangeValues.has(rangeId)) return;\n\n const pointerId = thumb.dataset.pointerId ? +thumb.dataset.pointerId : null;\n if (pointerId !== event.pointerId) return;\n\n const pos = getNormalizedValueFromClientX(this.baseDiv, event.clientX, this.#rtl);\n const unit = this.step / (this.max - this.min);\n const value = this.min + this.step * Math.round(pos / unit);\n\n const synMove = this.emit('syn-move', {\n cancelable: true,\n detail: {\n element: thumb,\n value,\n },\n });\n\n if (synMove.defaultPrevented) {\n return;\n }\n\n this.#rangeValues.set(rangeId, value);\n this.#moveThumb(thumb, value);\n\n const prevValue = this.#value;\n this.#value = Array.from(this.#rangeValues.values());\n this.#updateActiveTrack();\n\n if (arraysDiffer(prevValue, this.#value)) {\n this.emit('syn-input');\n }\n }\n\n async #onReleaseThumb(event: PointerEvent) {\n const thumb = event.target as HTMLDivElement;\n if (!thumb.dataset.pointerId || event.pointerId !== +thumb.dataset.pointerId) return;\n\n thumb.classList.remove('grabbed');\n thumb.releasePointerCapture(event.pointerId);\n delete thumb.dataset.pointerId;\n\n if (arraysDiffer(this.#lastChangeValue, this.#value)) {\n this.#lastChangeValue = Array.from(this.#value);\n this.emit('syn-change');\n }\n\n await (thumb.parentElement as SynTooltip).hide();\n }\n\n #moveThumb(thumb: HTMLDivElement, value: number) {\n thumb.setAttribute('aria-valuenow', value.toString());\n thumb.setAttribute('aria-valuetext', this.tooltipFormatter(value));\n const pos = (value - this.min) / (this.max - this.min);\n // eslint-disable-next-line no-param-reassign\n thumb.style.insetInlineStart = `calc( ${100 * pos}% - var(--full-thumb-size) / 2 )`;\n this.#updateTooltip(thumb);\n }\n\n #updateActiveTrack() {\n const { activeTrack } = this;\n if (!activeTrack) return;\n\n // Special case: User set min and max to the same values.\n // To not show the active track in this case.\n if (this.min === this.max) {\n activeTrack.style.insetInlineStart = '0%';\n activeTrack.style.insetInlineEnd = '0%';\n return;\n }\n\n // If there is only one thumb, the active track should start at the beginning\n // and end at the thumb\n if (this.#value.length === 1) {\n const start = getComputedStyle(this).getPropertyValue('--track-active-offset') || '0%';\n const end = (100 * (this.#value[0] - this.min)) / (this.max - this.min);\n\n activeTrack.style.insetInlineStart = `min(${start}, ${end}%)`;\n activeTrack.style.insetInlineEnd = `min(calc(100% - ${start}), calc(100% - ${end}%))`;\n\n return;\n }\n\n // The render order of the thumbs is not guaranteed to be the same as the value order.\n const sortedValues = this.#value.slice().sort(numericSort);\n\n // Multi thumb: Place the active track between the first and last thumb\n const start = (100 * (sortedValues[0] - this.min)) / (this.max - this.min);\n const end = (100 * (sortedValues[sortedValues.length - 1] - this.min)) / (this.max - this.min);\n\n activeTrack.style.insetInlineStart = `${start}%`;\n activeTrack.style.insetInlineEnd = `calc(100% - ${end}%)`;\n }\n\n #onKeyPress(event: KeyboardEvent) {\n const thumb = event.target as HTMLDivElement;\n const rangeId = +thumb.dataset.rangeId!;\n\n const currentValue = this.#rangeValues.get(rangeId);\n if (currentValue === undefined) return;\n\n let value = currentValue;\n\n switch (event.key) {\n case 'ArrowUp':\n case 'Up':\n value = Math.min(currentValue + this.step, this.max);\n break;\n case 'ArrowDown':\n case 'Down':\n value = Math.max(currentValue - this.step, this.min);\n break;\n case 'ArrowLeft':\n case 'Left':\n value = this.#rtl\n ? Math.min(currentValue + this.step, this.max)\n : Math.max(currentValue - this.step, this.min);\n break;\n case 'ArrowRight':\n case 'Right':\n value = this.#rtl\n ? Math.max(currentValue - this.step, this.min)\n : Math.min(currentValue + this.step, this.max);\n break;\n case 'PageUp':\n value = Math.min(\n currentValue + ((this.max - this.min) / 5),\n this.max,\n );\n break;\n case 'PageDown':\n value = Math.max(\n (currentValue - (this.max - this.min) / 5),\n this.min,\n );\n break;\n case 'Home':\n value = this.min;\n break;\n case 'End':\n value = this.max;\n break;\n default:\n return;\n }\n\n if (value !== currentValue) {\n // Make sure the user is able to intercept movement\n const synMove = this.emit('syn-move', {\n cancelable: true,\n detail: {\n element: thumb,\n value,\n },\n });\n\n if (synMove.defaultPrevented) {\n return;\n }\n\n this.#moveThumb(thumb, value);\n\n this.#rangeValues.set(rangeId, value);\n this.#value = Array.from(this.#rangeValues.values());\n\n this.#updateActiveTrack();\n this.#updateTooltip(thumb);\n\n this.#lastChangeValue = Array.from(this.#value);\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n event.stopPropagation();\n event.preventDefault();\n }\n\n #onBlur(event: FocusEvent) {\n if (event.relatedTarget && this.shadowRoot?.contains(event.relatedTarget as Node)) return;\n this.emit('syn-blur');\n this.#hasFocus = false;\n }\n\n #updateTooltip(thumb: HTMLDivElement) {\n if (this.tooltipPlacement === 'none') return;\n const rangeId = +thumb.dataset.rangeId!;\n if (!this.#rangeValues.has(rangeId)) return;\n const value = this.#rangeValues.get(rangeId)!;\n const tooltip = thumb.parentElement as SynTooltip;\n tooltip.content = this.tooltipFormatter(value);\n }\n\n #onFocusThumb(event: FocusEvent) {\n if (this.disabled) return;\n if (!this.#hasFocus) {\n this.#hasFocus = true;\n this.emit('syn-focus');\n }\n const thumb = event.target as HTMLDivElement;\n if (!thumb?.dataset?.rangeId) return;\n this.#updateTooltip(thumb);\n }\n\n #handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n #updatePrefixSuffixPosition() {\n const hasTicksSlot = this.hasSlotController.test('ticks');\n const hasPrefixSlot = this.hasSlotController.test('prefix');\n const hasSuffixSlot = this.hasSlotController.test('suffix');\n\n if (!hasTicksSlot) {\n return;\n }\n\n let ticksHeight = this.shadowRoot?.querySelector('.ticks')?.clientHeight;\n if (ticksHeight) {\n // Add two pixels as the 1px margin on top and bottom are not included in the clientHeight\n ticksHeight += 2;\n\n ticksHeight /= 2;\n\n if (hasPrefixSlot) {\n const prefix = this.shadowRoot?.querySelector('.input__prefix') as HTMLElement;\n prefix.style.transform = `translateY(-${ticksHeight}px)`;\n }\n\n if (hasSuffixSlot) {\n const suffix = this.shadowRoot?.querySelector('.input__suffix') as HTMLElement;\n suffix.style.transform = `translateY(-${ticksHeight}px)`;\n }\n }\n }\n\n /* eslint-disable @typescript-eslint/unbound-method */\n private renderThumbs(hasLabel: boolean) {\n // Aria special handling:\n // 1. When there is only one label: Use the provided label as the aria-label for the thumb\n // 2. When we have multiple label: Set the label for the first and last item to itself\n const isMultiple = this.#value.length > 1;\n\n this.#rangeValues.clear();\n return this.#value.map((value, index) => {\n this.#nextId += 1;\n const rangeId = this.#nextId;\n this.#rangeValues.set(rangeId, value);\n\n const id = `thumb-${rangeId}`;\n\n let ariaLabel = '';\n let ariaLabeledBy = '';\n\n if (!isMultiple) {\n ariaLabeledBy = hasLabel ? 'label aria-label-hidden' : '';\n } else {\n ariaLabeledBy = hasLabel ? `label aria-label-hidden ${id}` : `aria-label-hidden ${id}`;\n\n if (index === 0) {\n ariaLabel = `${this.localize.term('rangeMin')} (${this.tooltipFormatter(value)})`;\n } else if (index === this.#value.length - 1) {\n ariaLabel = `${this.localize.term('rangeMax')} (${this.tooltipFormatter(value)})`;\n } else {\n ariaLabel = this.tooltipFormatter(value);\n }\n }\n\n return html`\n <syn-tooltip\n hoist\n .disabled=${this.tooltipPlacement === 'none' || this.disabled}\n .placement=${this.tooltipPlacement as 'top' | 'bottom'}\n trigger=\"focus\"\n >\n <div\n aria-disabled=${ifDefined(this.disabled ? 'true' : undefined)}\n aria-labelledby=${ariaLabeledBy}\n aria-label=${ariaLabel}\n aria-valuemax=\"${this.max}\"\n aria-valuemin=\"${this.min}\"\n aria-valuenow=\"${value}\"\n aria-valuetext=\"${this.tooltipFormatter(value)}\"\n class=\"thumb\"\n data-range-id=\"${rangeId}\"\n id=${id}\n part=\"thumb\"\n role=\"slider\"\n tabindex=\"${this.disabled ? -1 : 0}\"\n @pointerdown=${this.#onClickThumb}\n @pointermove=${this.#onDragThumb}\n @pointerup=${this.#onReleaseThumb}\n @pointercancel=${this.#onReleaseThumb}\n @keydown=${this.#onKeyPress}\n @focus=${this.#onFocusThumb}\n ></div>\n </syn-tooltip>\n `;\n });\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n override render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasPrefixSlot = this.hasSlotController.test('prefix');\n const hasSuffixSlot = this.hasSlotController.test('suffix');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n this.#updatePrefixSuffixPosition();\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-label': hasLabel,\n 'form-control--has-prefix': hasPrefixSlot,\n 'form-control--has-suffix': hasSuffixSlot,\n 'form-control--is-disabled': this.disabled,\n 'form-control--large': this.size === 'large',\n 'form-control--medium': this.size === 'medium',\n 'form-control--small': this.size === 'small',\n })}\n @focusout=${this.#onBlur}\n >\n <label\n id=\"label\"\n part=\"form-control-label\"\n class=\"form-control__label\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n @click=${this.focus}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <label id=\"aria-label-hidden\" class=\"visually-hidden\">\n (${this.#value.map(this.tooltipFormatter).join(' - ')})\n </label>\n\n <div class=\"base input__control\" part=\"base\">\n <span part=\"prefix\" class=\"input__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n <div class=\"input__wrapper\" part=\"input-wrapper\">\n <input\n class=\"range__validation-input visually-hidden\"\n tabindex=\"-1\"\n hidden\n @invalid=${this.#handleInvalid}\n />\n\n <div\n class=\"track__wrapper\"\n @click=${this.#onClickTrack}\n part=\"track-wrapper\"\n role=\"presentation\"\n >\n <div class=\"track__click-helper\"></div>\n <div class=\"track\" part=\"track\"></div>\n <div class=\"active-track\" part=\"active-track\"></div>\n </div>\n\n ${this.renderThumbs(hasLabel)}\n\n <div\n class=\"ticks\"\n part=\"ticks\"\n @click=${this.#onClickTrack}\n role=\"presentation\"\n >\n <slot name=\"ticks\"></slot>\n </div>\n </div>\n\n <span part=\"suffix\" class=\"input__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n </div>\n\n <div\n part=\"form-control-help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU,OAAO,gBAAgB;AAC1C,SAAS,gBAAgB;AALzB;AAqEA,IAAqB,WAArB,cAAsC,eAA6C;AAAA,EAgHjF,cAAc;AACZ,UAAM;AALR,uBAAI;AA2IJ;AAmCA,uBAAM;AAgBN;AAsCA,uBAAM;AAgBN;AASA;AAmCA;AAmFA;AAMA;AASA;AAWA;AAKA;AAjfY,gBAAO;AAGP,iBAAQ;AAGkB,oBAAW;AAGL,oBAAW;AAG3B,eAAM;AAGN,eAAM;AAGN,gBAAO;AAGN,gBAAqC;AAGN,4BAA8C;AA0B1F,wBAAe;AAQF,gBAAO;AAiBpC,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,SAAS,UAAU,UAAU,OAAO;AAElH,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM,EAAE,qBAAqB,CAAC,YAAY,EAAE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DH;AAQa;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAvER,SAuEU;AAOG;AAAA,EAA/B,SAAS,EAAE,WAAW,MAAM,CAAC;AAAA,GA9EX,SA8Ea;AAEN;AAAA,EAAzB,MAAM,iBAAiB;AAAA,GAhFL,SAgFO;AAEF;AAAA,EAAvB,MAAM,eAAe;AAAA,GAlFH,SAkFK;AAEJ;AAAA,EAAnB,SAAS,QAAQ;AAAA,GApFC,SAoFC;AAEe;AAAA,EAAlC,MAAM,0BAA0B;AAAA,GAtFd,SAsFgB;",
|
|
6
|
+
"names": ["prevValue", "start", "end"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.DRA2UZ77.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-button/radio-button.ts
|
|
6
6
|
var radio_button_default = SynRadioButton;
|
|
@@ -9,4 +9,4 @@ SynRadioButton.define("syn-radio-button");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.X7TL7T7R.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDrawer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ITWCPUOB.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.XE5OK2UE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSideNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.GVPQNGY3.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.XG3XBCNU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenu
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.MM55BLFM.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu/menu.ts
|
|
6
6
|
var menu_default = SynMenu;
|
|
@@ -9,4 +9,4 @@ SynMenu.define("syn-menu");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.XL5RSJ3V.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk.RMIDAEF5.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.QQ3HY3YJ.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.3I5JDTGT.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.HLQ75E45.js";
|
|
17
17
|
|
|
18
18
|
// src/components/progress-ring/progress-ring.component.ts
|
|
19
19
|
import { html } from "lit";
|
|
@@ -74,4 +74,4 @@ __decorateClass([
|
|
|
74
74
|
export {
|
|
75
75
|
SynProgressRing
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk.
|
|
77
|
+
//# sourceMappingURL=chunk.XVUJKP6I.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk.JLXCLATV.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.QQ3HY3YJ.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.3I5JDTGT.js";
|
|
14
14
|
|
|
15
15
|
// src/components/spinner/spinner.component.ts
|
|
16
16
|
import { html } from "lit";
|
|
@@ -33,4 +33,4 @@ SynSpinner.styles = [component_styles_default, spinner_styles_default, spinner_c
|
|
|
33
33
|
export {
|
|
34
34
|
SynSpinner
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=chunk.
|
|
36
|
+
//# sourceMappingURL=chunk.Y3LKXZKA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadProps,
|
|
3
3
|
__spreadValues
|
|
4
|
-
} from "./chunk.
|
|
4
|
+
} from "./chunk.HLQ75E45.js";
|
|
5
5
|
|
|
6
6
|
// src/internal/form.ts
|
|
7
7
|
var formCollections = /* @__PURE__ */ new WeakMap();
|
|
@@ -17,6 +17,13 @@ var FormControlController = class {
|
|
|
17
17
|
const value = this.options.value(this.host);
|
|
18
18
|
const isButton = this.host.tagName.toLowerCase() === "syn-button";
|
|
19
19
|
if (this.host.isConnected && !disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
20
|
+
if (value instanceof FileList) {
|
|
21
|
+
const file = value;
|
|
22
|
+
for (const f of file) {
|
|
23
|
+
event.formData.append(name, f, f.name);
|
|
24
|
+
}
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
20
27
|
if (Array.isArray(value)) {
|
|
21
28
|
value.forEach((val) => {
|
|
22
29
|
event.formData.append(name, val.toString());
|
|
@@ -301,4 +308,4 @@ export {
|
|
|
301
308
|
valueMissingValidityState,
|
|
302
309
|
customErrorValidityState
|
|
303
310
|
};
|
|
304
|
-
//# sourceMappingURL=chunk.
|
|
311
|
+
//# sourceMappingURL=chunk.YCNVMJNR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/internal/form.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 type { ReactiveController, ReactiveControllerHost } from 'lit';\nimport type { SynergyFormControl } from '../internal/synergy-element.js';\nimport type SynButton from '../components/button/button.js';\n\n//\n// We store a WeakMap of forms + controls so we can keep references to all Synergy controls within a given form. As\n// elements connect and disconnect to/from the DOM, their containing form is used as the key and the form control is\n// added and removed from the form's set, respectively.\n//\nexport const formCollections: WeakMap<HTMLFormElement, Set<SynergyFormControl>> = new WeakMap();\n\n//\n// We store a WeakMap of reportValidity() overloads so we can override it when form controls connect to the DOM and\n// restore the original behavior when they disconnect.\n//\nconst reportValidityOverloads: WeakMap<HTMLFormElement, () => boolean> = new WeakMap();\nconst checkValidityOverloads: WeakMap<HTMLFormElement, () => boolean> = new WeakMap();\n\n//\n// We store a Set of controls that users have interacted with. This allows us to determine the interaction state\n// without littering the DOM with additional data attributes.\n//\nconst userInteractedControls: WeakSet<SynergyFormControl> = new WeakSet();\n\n//\n// We store a WeakMap of interactions for each form control so we can track when all conditions are met for validation.\n//\nconst interactions = new WeakMap<SynergyFormControl, string[]>();\n\nexport interface FormControlControllerOptions {\n /** A function that returns the form containing the form control. */\n form: (input: SynergyFormControl) => HTMLFormElement | null;\n /** A function that returns the form control's name, which will be submitted with the form data. */\n name: (input: SynergyFormControl) => string;\n /** A function that returns the form control's current value. */\n value: (input: SynergyFormControl) => unknown | unknown[];\n /** A function that returns the form control's default value. */\n defaultValue: (input: SynergyFormControl) => unknown | unknown[];\n /** A function that returns the form control's current disabled state. If disabled, the value won't be submitted. */\n disabled: (input: SynergyFormControl) => boolean;\n /**\n * A function that maps to the form control's reportValidity() function. When the control is invalid, this will\n * prevent submission and trigger the browser's constraint violation warning.\n */\n reportValidity: (input: SynergyFormControl) => boolean;\n\n /**\n * A function that maps to the form control's `checkValidity()` function. When the control is invalid, this will return false.\n * this is helpful is you want to check validation without triggering the native browser constraint violation warning.\n */\n checkValidity: (input: SynergyFormControl) => boolean;\n /** A function that sets the form control's value */\n setValue: (input: SynergyFormControl, value: unknown) => void;\n /**\n * An array of event names to listen to. When all events in the list are emitted, the control will receive validity\n * states such as user-valid and user-invalid.user interacted validity states. */\n assumeInteractionOn: string[];\n}\n\n/** A reactive controller to allow form controls to participate in form submission, validation, etc. */\nexport class FormControlController implements ReactiveController {\n host: SynergyFormControl & ReactiveControllerHost;\n form?: HTMLFormElement | null;\n options: FormControlControllerOptions;\n\n constructor(host: ReactiveControllerHost & SynergyFormControl, options?: Partial<FormControlControllerOptions>) {\n (this.host = host).addController(this);\n this.options = {\n form: input => {\n // If there's a form attribute, use it to find the target form by id\n // Controls may not always reflect the 'form' property. For example, `<syn-button>` doesn't reflect.\n const formId = input.form;\n\n if (formId) {\n const root = input.getRootNode() as Document | ShadowRoot | HTMLElement;\n const form = root.querySelector(`#${formId}`);\n\n if (form) {\n return form as HTMLFormElement;\n }\n }\n\n return input.closest('form');\n },\n name: input => input.name,\n value: input => input.value,\n defaultValue: input => input.defaultValue,\n disabled: input => input.disabled ?? false,\n reportValidity: input => (typeof input.reportValidity === 'function' ? input.reportValidity() : true),\n checkValidity: input => (typeof input.checkValidity === 'function' ? input.checkValidity() : true),\n setValue: (input, value: string) => (input.value = value),\n assumeInteractionOn: ['syn-input'],\n ...options\n };\n }\n\n hostConnected() {\n const form = this.options.form(this.host);\n\n if (form) {\n this.attachForm(form);\n }\n\n // Listen for interactions\n interactions.set(this.host, []);\n this.options.assumeInteractionOn.forEach(event => {\n this.host.addEventListener(event, this.handleInteraction);\n });\n }\n\n hostDisconnected() {\n this.detachForm();\n\n // Clean up interactions\n interactions.delete(this.host);\n this.options.assumeInteractionOn.forEach(event => {\n this.host.removeEventListener(event, this.handleInteraction);\n });\n }\n\n hostUpdated() {\n const form = this.options.form(this.host);\n\n // Detach if the form no longer exists\n if (!form) {\n this.detachForm();\n }\n\n // If the form has changed, reattach it\n if (form && this.form !== form) {\n this.detachForm();\n this.attachForm(form);\n }\n\n if (this.host.hasUpdated) {\n this.setValidity(this.host.validity.valid);\n }\n }\n\n private attachForm(form?: HTMLFormElement) {\n if (form) {\n this.form = form;\n\n // Add this element to the form's collection\n if (formCollections.has(this.form)) {\n formCollections.get(this.form)!.add(this.host);\n } else {\n formCollections.set(this.form, new Set<SynergyFormControl>([this.host]));\n }\n\n this.form.addEventListener('formdata', this.handleFormData);\n this.form.addEventListener('submit', this.handleFormSubmit);\n this.form.addEventListener('reset', this.handleFormReset);\n\n // Overload the form's reportValidity() method so it looks at Synergy form controls\n if (!reportValidityOverloads.has(this.form)) {\n reportValidityOverloads.set(this.form, this.form.reportValidity);\n this.form.reportValidity = () => this.reportFormValidity();\n }\n\n // Overload the form's checkValidity() method so it looks at Synergy form controls\n if (!checkValidityOverloads.has(this.form)) {\n checkValidityOverloads.set(this.form, this.form.checkValidity);\n this.form.checkValidity = () => this.checkFormValidity();\n }\n } else {\n this.form = undefined;\n }\n }\n\n private detachForm() {\n if (!this.form) return;\n\n const formCollection = formCollections.get(this.form);\n\n if (!formCollection) {\n return;\n }\n\n // Remove this host from the form's collection\n formCollection.delete(this.host);\n\n // Check to make sure there's no other form controls in the collection. If we do this\n // without checking if any other controls are still in the collection, then we will wipe out the\n // validity checks for all other elements.\n // see: https://github.com/synergy-design-system/synergy/issues/1703\n if (formCollection.size <= 0) {\n this.form.removeEventListener('formdata', this.handleFormData);\n this.form.removeEventListener('submit', this.handleFormSubmit);\n this.form.removeEventListener('reset', this.handleFormReset);\n\n // Remove the overload and restore the original method\n if (reportValidityOverloads.has(this.form)) {\n this.form.reportValidity = reportValidityOverloads.get(this.form)!;\n reportValidityOverloads.delete(this.form);\n }\n\n if (checkValidityOverloads.has(this.form)) {\n this.form.checkValidity = checkValidityOverloads.get(this.form)!;\n checkValidityOverloads.delete(this.form);\n }\n\n // So it looks weird here to not always set the form to undefined. But I _think_ if we unattach this.form here,\n // we end up in this fun spot where future validity checks don't have a reference to the form validity handler.\n // First form element in sets the validity handler. So we can't clean up `this.form` until there are no other form elements in the form.\n this.form = undefined;\n }\n }\n\n private handleFormData = (event: FormDataEvent) => {\n const disabled = this.options.disabled(this.host);\n const name = this.options.name(this.host);\n const value = this.options.value(this.host);\n\n // For buttons, we only submit the value if they were the submitter. This is currently done in doAction() by\n // injecting the name/value on a temporary button, so we can just skip them here.\n const isButton = this.host.tagName.toLowerCase() === 'syn-button';\n\n if (\n this.host.isConnected &&\n !disabled &&\n !isButton &&\n typeof name === 'string' &&\n name.length > 0 &&\n typeof value !== 'undefined'\n ) {\n if (Array.isArray(value)) {\n (value as unknown[]).forEach(val => {\n event.formData.append(name, (val as string | number | boolean).toString());\n });\n } else {\n event.formData.append(name, (value as string | number | boolean).toString());\n }\n }\n };\n\n private handleFormSubmit = (event: Event) => {\n const disabled = this.options.disabled(this.host);\n const reportValidity = this.options.reportValidity;\n\n // Update the interacted state for all controls when the form is submitted\n if (this.form && !this.form.noValidate) {\n formCollections.get(this.form)?.forEach(control => {\n this.setUserInteracted(control, true);\n });\n }\n\n if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n\n private handleFormReset = () => {\n this.options.setValue(this.host, this.options.defaultValue(this.host));\n this.setUserInteracted(this.host, false);\n interactions.set(this.host, []);\n };\n\n private handleInteraction = (event: Event) => {\n const emittedEvents = interactions.get(this.host)!;\n\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n\n // Mark it as user-interacted as soon as all associated events have been emitted\n if (emittedEvents.length === this.options.assumeInteractionOn.length) {\n this.setUserInteracted(this.host, true);\n }\n };\n\n private checkFormValidity = () => {\n //\n // This is very similar to the `reportFormValidity` function, but it does not trigger native constraint validation\n // Allow the user to simply check if the form is valid and handling validity in their own way.\n //\n // We preserve the original method in a WeakMap, but we don't call it from the overload because that would trigger\n // validations in an unexpected order. When the element disconnects, we revert to the original behavior. This won't\n // be necessary once we can use ElementInternals.\n //\n // Note that we're also honoring the form's novalidate attribute.\n //\n if (this.form && !this.form.noValidate) {\n // This seems sloppy, but checking all elements will cover native inputs, Synergy inputs, and other custom\n // elements that support the constraint validation API.\n const elements = this.form.querySelectorAll<HTMLInputElement>('*');\n\n for (const element of elements) {\n if (typeof element.checkValidity === 'function') {\n if (!element.checkValidity()) {\n return false;\n }\n }\n }\n }\n\n return true;\n };\n\n private reportFormValidity = () => {\n //\n // Synergy form controls work hard to act like regular form controls. They support the Constraint Validation API\n // and its associated methods such as setCustomValidity() and reportValidity(). However, the HTMLFormElement also\n // has a reportValidity() method that will trigger validation on all child controls. Since we're not yet using\n // ElementInternals, we need to overload this method so it looks for any element with the reportValidity() method.\n //\n // We preserve the original method in a WeakMap, but we don't call it from the overload because that would trigger\n // validations in an unexpected order. When the element disconnects, we revert to the original behavior. This won't\n // be necessary once we can use ElementInternals.\n //\n // Note that we're also honoring the form's novalidate attribute.\n //\n if (this.form && !this.form.noValidate) {\n // This seems sloppy, but checking all elements will cover native inputs, Synergy inputs, and other custom\n // elements that support the constraint validation API.\n const elements = this.form.querySelectorAll<HTMLInputElement>('*');\n\n for (const element of elements) {\n if (typeof element.reportValidity === 'function') {\n if (!element.reportValidity()) {\n return false;\n }\n }\n }\n }\n\n return true;\n };\n\n private setUserInteracted(el: SynergyFormControl, hasInteracted: boolean) {\n if (hasInteracted) {\n userInteractedControls.add(el);\n } else {\n userInteractedControls.delete(el);\n }\n\n el.requestUpdate();\n }\n\n private doAction(type: 'submit' | 'reset', submitter?: HTMLInputElement | SynButton) {\n if (this.form) {\n const button = document.createElement('button');\n button.type = type;\n button.style.position = 'absolute';\n button.style.width = '0';\n button.style.height = '0';\n button.style.clipPath = 'inset(50%)';\n button.style.overflow = 'hidden';\n button.style.whiteSpace = 'nowrap';\n\n // Pass name, value, and form attributes through to the temporary button\n if (submitter) {\n button.name = submitter.name;\n button.value = submitter.value;\n\n ['formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget'].forEach(attr => {\n if (submitter.hasAttribute(attr)) {\n button.setAttribute(attr, submitter.getAttribute(attr)!);\n }\n });\n }\n\n this.form.append(button);\n button.click();\n button.remove();\n }\n }\n\n /** Returns the associated `<form>` element, if one exists. */\n getForm() {\n return this.form ?? null;\n }\n\n /** Resets the form, restoring all the control to their default value */\n reset(submitter?: HTMLInputElement | SynButton) {\n this.doAction('reset', submitter);\n }\n\n /** Submits the form, triggering validation and form data injection. */\n submit(submitter?: HTMLInputElement | SynButton) {\n // Calling form.submit() bypasses the submit event and constraint validation. To prevent this, we can inject a\n // native submit button into the form, \"click\" it, then remove it to simulate a standard form submission.\n this.doAction('submit', submitter);\n }\n\n /**\n * Synchronously sets the form control's validity. Call this when you know the future validity but need to update\n * the host element immediately, i.e. before Lit updates the component in the next update.\n */\n setValidity(isValid: boolean) {\n const host = this.host;\n const hasInteracted = Boolean(userInteractedControls.has(host));\n const required = Boolean(host.required);\n\n //\n // We're mapping the following \"states\" to data attributes. In the future, we can use ElementInternals.states to\n // create a similar mapping, but instead of [data-invalid] it will look like :--invalid.\n //\n // See this RFC for more details: https://github.com/synergy-design-system/synergy/issues/1011\n //\n host.toggleAttribute('data-required', required);\n host.toggleAttribute('data-optional', !required);\n host.toggleAttribute('data-invalid', !isValid);\n host.toggleAttribute('data-valid', isValid);\n host.toggleAttribute('data-user-invalid', !isValid && hasInteracted);\n host.toggleAttribute('data-user-valid', isValid && hasInteracted);\n }\n\n /**\n * Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything\n * that affects constraint validation changes so the component receives the correct validity states.\n */\n updateValidity() {\n const host = this.host;\n this.setValidity(host.validity.valid);\n }\n\n /**\n * Dispatches a non-bubbling, cancelable custom event of type `syn-invalid`.\n * If the `syn-invalid` event will be cancelled then the original `invalid`\n * event (which may have been passed as argument) will also be cancelled.\n * If no original `invalid` event has been passed then the `syn-invalid`\n * event will be cancelled before being dispatched.\n */\n emitInvalidEvent(originalInvalidEvent?: Event) {\n const slInvalidEvent = new CustomEvent<Record<PropertyKey, never>>('syn-invalid', {\n bubbles: false,\n composed: false,\n cancelable: true,\n detail: {}\n });\n\n if (!originalInvalidEvent) {\n slInvalidEvent.preventDefault();\n }\n\n if (!this.host.dispatchEvent(slInvalidEvent)) {\n originalInvalidEvent?.preventDefault();\n }\n }\n}\n\n/*\n * Predefined common validity states.\n * All of them are read-only.\n */\n\n// A validity state object that represents `valid`\nexport const validValidityState: ValidityState = Object.freeze({\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: true,\n valueMissing: false\n});\n\n// A validity state object that represents `value missing`\nexport const valueMissingValidityState: ValidityState = Object.freeze({\n ...validValidityState,\n valid: false,\n valueMissing: true\n});\n\n// A validity state object that represents a custom error\nexport const customErrorValidityState: ValidityState = Object.freeze({\n ...validValidityState,\n valid: false,\n customError: true\n});\n"],
|
|
5
|
-
"mappings": ";;;;;;AAiBO,IAAM,kBAAqE,oBAAI,QAAQ;AAM9F,IAAM,0BAAmE,oBAAI,QAAQ;AACrF,IAAM,yBAAkE,oBAAI,QAAQ;AAMpF,IAAM,yBAAsD,oBAAI,QAAQ;AAKxE,IAAM,eAAe,oBAAI,QAAsC;AAiCxD,IAAM,wBAAN,MAA0D;AAAA,EAK/D,YAAY,MAAmD,SAAiD;AAgJhH,SAAQ,iBAAiB,CAAC,UAAyB;AACjD,YAAM,WAAW,KAAK,QAAQ,SAAS,KAAK,IAAI;AAChD,YAAM,OAAO,KAAK,QAAQ,KAAK,KAAK,IAAI;AACxC,YAAM,QAAQ,KAAK,QAAQ,MAAM,KAAK,IAAI;AAI1C,YAAM,WAAW,KAAK,KAAK,QAAQ,YAAY,MAAM;AAErD,UACE,KAAK,KAAK,eACV,CAAC,YACD,CAAC,YACD,OAAO,SAAS,YAChB,KAAK,SAAS,KACd,OAAO,UAAU,aACjB;AACA,YAAI,MAAM,QAAQ,KAAK,GAAG;AACxB,UAAC,MAAoB,QAAQ,SAAO;AAClC,kBAAM,SAAS,OAAO,MAAO,IAAkC,SAAS,CAAC;AAAA,UAC3E,CAAC;AAAA,QACH,OAAO;AACL,gBAAM,SAAS,OAAO,MAAO,MAAoC,SAAS,CAAC;AAAA,QAC7E;AAAA,MACF;AAAA,IACF;AAEA,SAAQ,mBAAmB,CAAC,UAAiB;
|
|
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 type { ReactiveController, ReactiveControllerHost } from 'lit';\nimport type { SynergyFormControl } from '../internal/synergy-element.js';\nimport type SynButton from '../components/button/button.js';\n\n//\n// We store a WeakMap of forms + controls so we can keep references to all Synergy controls within a given form. As\n// elements connect and disconnect to/from the DOM, their containing form is used as the key and the form control is\n// added and removed from the form's set, respectively.\n//\nexport const formCollections: WeakMap<HTMLFormElement, Set<SynergyFormControl>> = new WeakMap();\n\n//\n// We store a WeakMap of reportValidity() overloads so we can override it when form controls connect to the DOM and\n// restore the original behavior when they disconnect.\n//\nconst reportValidityOverloads: WeakMap<HTMLFormElement, () => boolean> = new WeakMap();\nconst checkValidityOverloads: WeakMap<HTMLFormElement, () => boolean> = new WeakMap();\n\n//\n// We store a Set of controls that users have interacted with. This allows us to determine the interaction state\n// without littering the DOM with additional data attributes.\n//\nconst userInteractedControls: WeakSet<SynergyFormControl> = new WeakSet();\n\n//\n// We store a WeakMap of interactions for each form control so we can track when all conditions are met for validation.\n//\nconst interactions = new WeakMap<SynergyFormControl, string[]>();\n\nexport interface FormControlControllerOptions {\n /** A function that returns the form containing the form control. */\n form: (input: SynergyFormControl) => HTMLFormElement | null;\n /** A function that returns the form control's name, which will be submitted with the form data. */\n name: (input: SynergyFormControl) => string;\n /** A function that returns the form control's current value. */\n value: (input: SynergyFormControl) => unknown | unknown[];\n /** A function that returns the form control's default value. */\n defaultValue: (input: SynergyFormControl) => unknown | unknown[];\n /** A function that returns the form control's current disabled state. If disabled, the value won't be submitted. */\n disabled: (input: SynergyFormControl) => boolean;\n /**\n * A function that maps to the form control's reportValidity() function. When the control is invalid, this will\n * prevent submission and trigger the browser's constraint violation warning.\n */\n reportValidity: (input: SynergyFormControl) => boolean;\n\n /**\n * A function that maps to the form control's `checkValidity()` function. When the control is invalid, this will return false.\n * this is helpful is you want to check validation without triggering the native browser constraint violation warning.\n */\n checkValidity: (input: SynergyFormControl) => boolean;\n /** A function that sets the form control's value */\n setValue: (input: SynergyFormControl, value: unknown) => void;\n /**\n * An array of event names to listen to. When all events in the list are emitted, the control will receive validity\n * states such as user-valid and user-invalid.user interacted validity states. */\n assumeInteractionOn: string[];\n}\n\n/** A reactive controller to allow form controls to participate in form submission, validation, etc. */\nexport class FormControlController implements ReactiveController {\n host: SynergyFormControl & ReactiveControllerHost;\n form?: HTMLFormElement | null;\n options: FormControlControllerOptions;\n\n constructor(host: ReactiveControllerHost & SynergyFormControl, options?: Partial<FormControlControllerOptions>) {\n (this.host = host).addController(this);\n this.options = {\n form: input => {\n // If there's a form attribute, use it to find the target form by id\n // Controls may not always reflect the 'form' property. For example, `<syn-button>` doesn't reflect.\n const formId = input.form;\n\n if (formId) {\n const root = input.getRootNode() as Document | ShadowRoot | HTMLElement;\n const form = root.querySelector(`#${formId}`);\n\n if (form) {\n return form as HTMLFormElement;\n }\n }\n\n return input.closest('form');\n },\n name: input => input.name,\n value: input => input.value,\n defaultValue: input => input.defaultValue,\n disabled: input => input.disabled ?? false,\n reportValidity: input => (typeof input.reportValidity === 'function' ? input.reportValidity() : true),\n checkValidity: input => (typeof input.checkValidity === 'function' ? input.checkValidity() : true),\n setValue: (input, value: string) => (input.value = value),\n assumeInteractionOn: ['syn-input'],\n ...options\n };\n }\n\n hostConnected() {\n const form = this.options.form(this.host);\n\n if (form) {\n this.attachForm(form);\n }\n\n // Listen for interactions\n interactions.set(this.host, []);\n this.options.assumeInteractionOn.forEach(event => {\n this.host.addEventListener(event, this.handleInteraction);\n });\n }\n\n hostDisconnected() {\n this.detachForm();\n\n // Clean up interactions\n interactions.delete(this.host);\n this.options.assumeInteractionOn.forEach(event => {\n this.host.removeEventListener(event, this.handleInteraction);\n });\n }\n\n hostUpdated() {\n const form = this.options.form(this.host);\n\n // Detach if the form no longer exists\n if (!form) {\n this.detachForm();\n }\n\n // If the form has changed, reattach it\n if (form && this.form !== form) {\n this.detachForm();\n this.attachForm(form);\n }\n\n if (this.host.hasUpdated) {\n this.setValidity(this.host.validity.valid);\n }\n }\n\n private attachForm(form?: HTMLFormElement) {\n if (form) {\n this.form = form;\n\n // Add this element to the form's collection\n if (formCollections.has(this.form)) {\n formCollections.get(this.form)!.add(this.host);\n } else {\n formCollections.set(this.form, new Set<SynergyFormControl>([this.host]));\n }\n\n this.form.addEventListener('formdata', this.handleFormData);\n this.form.addEventListener('submit', this.handleFormSubmit);\n this.form.addEventListener('reset', this.handleFormReset);\n\n // Overload the form's reportValidity() method so it looks at Synergy form controls\n if (!reportValidityOverloads.has(this.form)) {\n reportValidityOverloads.set(this.form, this.form.reportValidity);\n this.form.reportValidity = () => this.reportFormValidity();\n }\n\n // Overload the form's checkValidity() method so it looks at Synergy form controls\n if (!checkValidityOverloads.has(this.form)) {\n checkValidityOverloads.set(this.form, this.form.checkValidity);\n this.form.checkValidity = () => this.checkFormValidity();\n }\n } else {\n this.form = undefined;\n }\n }\n\n private detachForm() {\n if (!this.form) return;\n\n const formCollection = formCollections.get(this.form);\n\n if (!formCollection) {\n return;\n }\n\n // Remove this host from the form's collection\n formCollection.delete(this.host);\n\n // Check to make sure there's no other form controls in the collection. If we do this\n // without checking if any other controls are still in the collection, then we will wipe out the\n // validity checks for all other elements.\n // see: https://github.com/synergy-design-system/synergy/issues/1703\n if (formCollection.size <= 0) {\n this.form.removeEventListener('formdata', this.handleFormData);\n this.form.removeEventListener('submit', this.handleFormSubmit);\n this.form.removeEventListener('reset', this.handleFormReset);\n\n // Remove the overload and restore the original method\n if (reportValidityOverloads.has(this.form)) {\n this.form.reportValidity = reportValidityOverloads.get(this.form)!;\n reportValidityOverloads.delete(this.form);\n }\n\n if (checkValidityOverloads.has(this.form)) {\n this.form.checkValidity = checkValidityOverloads.get(this.form)!;\n checkValidityOverloads.delete(this.form);\n }\n\n // So it looks weird here to not always set the form to undefined. But I _think_ if we unattach this.form here,\n // we end up in this fun spot where future validity checks don't have a reference to the form validity handler.\n // First form element in sets the validity handler. So we can't clean up `this.form` until there are no other form elements in the form.\n this.form = undefined;\n }\n }\n\n private handleFormData = (event: FormDataEvent) => {\n const disabled = this.options.disabled(this.host);\n const name = this.options.name(this.host);\n const value = this.options.value(this.host);\n\n // For buttons, we only submit the value if they were the submitter. This is currently done in doAction() by\n // injecting the name/value on a temporary button, so we can just skip them here.\n const isButton = this.host.tagName.toLowerCase() === 'syn-button';\n\n if (\n this.host.isConnected &&\n !disabled &&\n !isButton &&\n typeof name === 'string' &&\n name.length > 0 &&\n typeof value !== 'undefined'\n ) {\n // Add support for file inputs\n if (value instanceof FileList) {\n const file = value as FileList;\n for (const f of file) {\n event.formData.append(name, f, f.name);\n }\n return;\n }\n \n if (Array.isArray(value)) {\n (value as unknown[]).forEach(val => {\n event.formData.append(name, (val as string | number | boolean).toString());\n });\n } else {\n event.formData.append(name, (value as string | number | boolean).toString());\n }\n }\n };\n\n private handleFormSubmit = (event: Event) => {\n const disabled = this.options.disabled(this.host);\n const reportValidity = this.options.reportValidity;\n\n // Update the interacted state for all controls when the form is submitted\n if (this.form && !this.form.noValidate) {\n formCollections.get(this.form)?.forEach(control => {\n this.setUserInteracted(control, true);\n });\n }\n\n if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n\n private handleFormReset = () => {\n this.options.setValue(this.host, this.options.defaultValue(this.host));\n this.setUserInteracted(this.host, false);\n interactions.set(this.host, []);\n };\n\n private handleInteraction = (event: Event) => {\n const emittedEvents = interactions.get(this.host)!;\n\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n\n // Mark it as user-interacted as soon as all associated events have been emitted\n if (emittedEvents.length === this.options.assumeInteractionOn.length) {\n this.setUserInteracted(this.host, true);\n }\n };\n\n private checkFormValidity = () => {\n //\n // This is very similar to the `reportFormValidity` function, but it does not trigger native constraint validation\n // Allow the user to simply check if the form is valid and handling validity in their own way.\n //\n // We preserve the original method in a WeakMap, but we don't call it from the overload because that would trigger\n // validations in an unexpected order. When the element disconnects, we revert to the original behavior. This won't\n // be necessary once we can use ElementInternals.\n //\n // Note that we're also honoring the form's novalidate attribute.\n //\n if (this.form && !this.form.noValidate) {\n // This seems sloppy, but checking all elements will cover native inputs, Synergy inputs, and other custom\n // elements that support the constraint validation API.\n const elements = this.form.querySelectorAll<HTMLInputElement>('*');\n\n for (const element of elements) {\n if (typeof element.checkValidity === 'function') {\n if (!element.checkValidity()) {\n return false;\n }\n }\n }\n }\n\n return true;\n };\n\n private reportFormValidity = () => {\n //\n // Synergy form controls work hard to act like regular form controls. They support the Constraint Validation API\n // and its associated methods such as setCustomValidity() and reportValidity(). However, the HTMLFormElement also\n // has a reportValidity() method that will trigger validation on all child controls. Since we're not yet using\n // ElementInternals, we need to overload this method so it looks for any element with the reportValidity() method.\n //\n // We preserve the original method in a WeakMap, but we don't call it from the overload because that would trigger\n // validations in an unexpected order. When the element disconnects, we revert to the original behavior. This won't\n // be necessary once we can use ElementInternals.\n //\n // Note that we're also honoring the form's novalidate attribute.\n //\n if (this.form && !this.form.noValidate) {\n // This seems sloppy, but checking all elements will cover native inputs, Synergy inputs, and other custom\n // elements that support the constraint validation API.\n const elements = this.form.querySelectorAll<HTMLInputElement>('*');\n\n for (const element of elements) {\n if (typeof element.reportValidity === 'function') {\n if (!element.reportValidity()) {\n return false;\n }\n }\n }\n }\n\n return true;\n };\n\n private setUserInteracted(el: SynergyFormControl, hasInteracted: boolean) {\n if (hasInteracted) {\n userInteractedControls.add(el);\n } else {\n userInteractedControls.delete(el);\n }\n\n el.requestUpdate();\n }\n\n private doAction(type: 'submit' | 'reset', submitter?: HTMLInputElement | SynButton) {\n if (this.form) {\n const button = document.createElement('button');\n button.type = type;\n button.style.position = 'absolute';\n button.style.width = '0';\n button.style.height = '0';\n button.style.clipPath = 'inset(50%)';\n button.style.overflow = 'hidden';\n button.style.whiteSpace = 'nowrap';\n\n // Pass name, value, and form attributes through to the temporary button\n if (submitter) {\n button.name = submitter.name;\n button.value = submitter.value;\n\n ['formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget'].forEach(attr => {\n if (submitter.hasAttribute(attr)) {\n button.setAttribute(attr, submitter.getAttribute(attr)!);\n }\n });\n }\n\n this.form.append(button);\n button.click();\n button.remove();\n }\n }\n\n /** Returns the associated `<form>` element, if one exists. */\n getForm() {\n return this.form ?? null;\n }\n\n /** Resets the form, restoring all the control to their default value */\n reset(submitter?: HTMLInputElement | SynButton) {\n this.doAction('reset', submitter);\n }\n\n /** Submits the form, triggering validation and form data injection. */\n submit(submitter?: HTMLInputElement | SynButton) {\n // Calling form.submit() bypasses the submit event and constraint validation. To prevent this, we can inject a\n // native submit button into the form, \"click\" it, then remove it to simulate a standard form submission.\n this.doAction('submit', submitter);\n }\n\n /**\n * Synchronously sets the form control's validity. Call this when you know the future validity but need to update\n * the host element immediately, i.e. before Lit updates the component in the next update.\n */\n setValidity(isValid: boolean) {\n const host = this.host;\n const hasInteracted = Boolean(userInteractedControls.has(host));\n const required = Boolean(host.required);\n\n //\n // We're mapping the following \"states\" to data attributes. In the future, we can use ElementInternals.states to\n // create a similar mapping, but instead of [data-invalid] it will look like :--invalid.\n //\n // See this RFC for more details: https://github.com/synergy-design-system/synergy/issues/1011\n //\n host.toggleAttribute('data-required', required);\n host.toggleAttribute('data-optional', !required);\n host.toggleAttribute('data-invalid', !isValid);\n host.toggleAttribute('data-valid', isValid);\n host.toggleAttribute('data-user-invalid', !isValid && hasInteracted);\n host.toggleAttribute('data-user-valid', isValid && hasInteracted);\n }\n\n /**\n * Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything\n * that affects constraint validation changes so the component receives the correct validity states.\n */\n updateValidity() {\n const host = this.host;\n this.setValidity(host.validity.valid);\n }\n\n /**\n * Dispatches a non-bubbling, cancelable custom event of type `syn-invalid`.\n * If the `syn-invalid` event will be cancelled then the original `invalid`\n * event (which may have been passed as argument) will also be cancelled.\n * If no original `invalid` event has been passed then the `syn-invalid`\n * event will be cancelled before being dispatched.\n */\n emitInvalidEvent(originalInvalidEvent?: Event) {\n const slInvalidEvent = new CustomEvent<Record<PropertyKey, never>>('syn-invalid', {\n bubbles: false,\n composed: false,\n cancelable: true,\n detail: {}\n });\n\n if (!originalInvalidEvent) {\n slInvalidEvent.preventDefault();\n }\n\n if (!this.host.dispatchEvent(slInvalidEvent)) {\n originalInvalidEvent?.preventDefault();\n }\n }\n}\n\n/*\n * Predefined common validity states.\n * All of them are read-only.\n */\n\n// A validity state object that represents `valid`\nexport const validValidityState: ValidityState = Object.freeze({\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: true,\n valueMissing: false\n});\n\n// A validity state object that represents `value missing`\nexport const valueMissingValidityState: ValidityState = Object.freeze({\n ...validValidityState,\n valid: false,\n valueMissing: true\n});\n\n// A validity state object that represents a custom error\nexport const customErrorValidityState: ValidityState = Object.free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,GAAG;AAC5C,mEAAsB;AAAA,IACxB;AAAA,EACF;AACF;AAQO,IAAM,qBAAoC,OAAO,OAAO;AAAA,EAC7D,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AAAA,EACP,cAAc;AAChB,CAAC;AAGM,IAAM,4BAA2C,OAAO,OAAO,iCACjE,qBADiE;AAAA,EAEpE,OAAO;AAAA,EACP,cAAc;AAChB,EAAC;AAGM,IAAM,2BAA0C,OAAO,OAAO,iCAChE,qBADgE;AAAA,EAEnE,OAAO;AAAA,EACP,aAAa;AACf,EAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk.DZ7YIR5N.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.UYCIME52.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.3I5JDTGT.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.HLQ75E45.js";
|
|
17
17
|
|
|
18
18
|
// src/components/icon-button/icon-button.component.ts
|
|
19
19
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -138,4 +138,4 @@ __decorateClass([
|
|
|
138
138
|
export {
|
|
139
139
|
SynIconButton
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk.
|
|
141
|
+
//# sourceMappingURL=chunk.YOHLIT2Z.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBadge
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.HIIXDCGP.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.ZXXT7QGH.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAccordion
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.QJMO7V5R.js";
|
|
5
|
-
import "../../chunks/chunk.MIF4NFFN.js";
|
|
3
|
+
} from "../../chunks/chunk.PPKWM5KJ.js";
|
|
6
4
|
import "../../chunks/chunk.WNUZ6LH4.js";
|
|
7
|
-
import "../../chunks/chunk.
|
|
5
|
+
import "../../chunks/chunk.ITKS5ZOS.js";
|
|
6
|
+
import "../../chunks/chunk.3I5JDTGT.js";
|
|
7
|
+
import "../../chunks/chunk.HLQ75E45.js";
|
|
8
8
|
export {
|
|
9
9
|
SynAccordion as default
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.QJMO7V5R.js";
|
|
6
|
-
import "../../chunks/chunk.MIF4NFFN.js";
|
|
3
|
+
} from "../../chunks/chunk.LQCQI2F4.js";
|
|
4
|
+
import "../../chunks/chunk.PPKWM5KJ.js";
|
|
7
5
|
import "../../chunks/chunk.WNUZ6LH4.js";
|
|
8
|
-
import "../../chunks/chunk.
|
|
6
|
+
import "../../chunks/chunk.ITKS5ZOS.js";
|
|
7
|
+
import "../../chunks/chunk.3I5JDTGT.js";
|
|
8
|
+
import "../../chunks/chunk.HLQ75E45.js";
|
|
9
9
|
export {
|
|
10
10
|
accordion_default as default
|
|
11
11
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAlert
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.NFYLQHRP.js";
|
|
4
|
+
import "../../chunks/chunk.YOHLIT2Z.js";
|
|
5
5
|
import "../../chunks/chunk.ZHH2AHOZ.js";
|
|
6
6
|
import "../../chunks/chunk.DZ7YIR5N.js";
|
|
7
|
-
import "../../chunks/chunk.
|
|
8
|
-
import "../../chunks/chunk.
|
|
7
|
+
import "../../chunks/chunk.C2ENQBPM.js";
|
|
8
|
+
import "../../chunks/chunk.FMSA5VHT.js";
|
|
9
|
+
import "../../chunks/chunk.KL7CAPPJ.js";
|
|
9
10
|
import "../../chunks/chunk.WVVQK5TE.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.AV56MW4Q.js";
|
|
12
|
-
import "../../chunks/chunk.SDQC32B3.js";
|
|
13
|
-
import "../../chunks/chunk.PJO6TM3T.js";
|
|
11
|
+
import "../../chunks/chunk.UYCIME52.js";
|
|
14
12
|
import "../../chunks/chunk.ZBW4ZSZ7.js";
|
|
13
|
+
import "../../chunks/chunk.543GQUFN.js";
|
|
15
14
|
import "../../chunks/chunk.YTEJW7IF.js";
|
|
16
|
-
import "../../chunks/chunk.
|
|
17
|
-
import "../../chunks/chunk.
|
|
15
|
+
import "../../chunks/chunk.AINKZEUX.js";
|
|
16
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
17
|
+
import "../../chunks/chunk.QQ3HY3YJ.js";
|
|
18
|
+
import "../../chunks/chunk.27HWF7JY.js";
|
|
18
19
|
import "../../chunks/chunk.234ERFCE.js";
|
|
20
|
+
import "../../chunks/chunk.ITKS5ZOS.js";
|
|
21
|
+
import "../../chunks/chunk.3I5JDTGT.js";
|
|
19
22
|
import "../../chunks/chunk.JRYXECAY.js";
|
|
20
23
|
import "../../chunks/chunk.KG73YUXI.js";
|
|
21
|
-
import "../../chunks/chunk.
|
|
22
|
-
import "../../chunks/chunk.MIF4NFFN.js";
|
|
23
|
-
import "../../chunks/chunk.QNDC5KWA.js";
|
|
24
|
+
import "../../chunks/chunk.HLQ75E45.js";
|
|
24
25
|
export {
|
|
25
26
|
SynAlert as default
|
|
26
27
|
};
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
alert_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.WZ3DZS4C.js";
|
|
4
|
+
import "../../chunks/chunk.NFYLQHRP.js";
|
|
5
|
+
import "../../chunks/chunk.YOHLIT2Z.js";
|
|
6
6
|
import "../../chunks/chunk.ZHH2AHOZ.js";
|
|
7
7
|
import "../../chunks/chunk.DZ7YIR5N.js";
|
|
8
|
-
import "../../chunks/chunk.
|
|
9
|
-
import "../../chunks/chunk.
|
|
8
|
+
import "../../chunks/chunk.C2ENQBPM.js";
|
|
9
|
+
import "../../chunks/chunk.FMSA5VHT.js";
|
|
10
|
+
import "../../chunks/chunk.KL7CAPPJ.js";
|
|
10
11
|
import "../../chunks/chunk.WVVQK5TE.js";
|
|
11
|
-
import "../../chunks/chunk.
|
|
12
|
-
import "../../chunks/chunk.AV56MW4Q.js";
|
|
13
|
-
import "../../chunks/chunk.SDQC32B3.js";
|
|
14
|
-
import "../../chunks/chunk.PJO6TM3T.js";
|
|
12
|
+
import "../../chunks/chunk.UYCIME52.js";
|
|
15
13
|
import "../../chunks/chunk.ZBW4ZSZ7.js";
|
|
14
|
+
import "../../chunks/chunk.543GQUFN.js";
|
|
16
15
|
import "../../chunks/chunk.YTEJW7IF.js";
|
|
17
|
-
import "../../chunks/chunk.
|
|
18
|
-
import "../../chunks/chunk.
|
|
16
|
+
import "../../chunks/chunk.AINKZEUX.js";
|
|
17
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
18
|
+
import "../../chunks/chunk.QQ3HY3YJ.js";
|
|
19
|
+
import "../../chunks/chunk.27HWF7JY.js";
|
|
19
20
|
import "../../chunks/chunk.234ERFCE.js";
|
|
21
|
+
import "../../chunks/chunk.ITKS5ZOS.js";
|
|
22
|
+
import "../../chunks/chunk.3I5JDTGT.js";
|
|
20
23
|
import "../../chunks/chunk.JRYXECAY.js";
|
|
21
24
|
import "../../chunks/chunk.KG73YUXI.js";
|
|
22
|
-
import "../../chunks/chunk.
|
|
23
|
-
import "../../chunks/chunk.MIF4NFFN.js";
|
|
24
|
-
import "../../chunks/chunk.QNDC5KWA.js";
|
|
25
|
+
import "../../chunks/chunk.HLQ75E45.js";
|
|
25
26
|
export {
|
|
26
27
|
alert_default as default
|
|
27
28
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBadge
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.HIIXDCGP.js";
|
|
4
4
|
import "../../chunks/chunk.WQJRBFZA.js";
|
|
5
5
|
import "../../chunks/chunk.Y5TMYX2L.js";
|
|
6
|
-
import "../../chunks/chunk.
|
|
7
|
-
import "../../chunks/chunk.
|
|
8
|
-
import "../../chunks/chunk.
|
|
9
|
-
import "../../chunks/chunk.
|
|
6
|
+
import "../../chunks/chunk.QQ3HY3YJ.js";
|
|
7
|
+
import "../../chunks/chunk.27HWF7JY.js";
|
|
8
|
+
import "../../chunks/chunk.3I5JDTGT.js";
|
|
9
|
+
import "../../chunks/chunk.HLQ75E45.js";
|
|
10
10
|
export {
|
|
11
11
|
SynBadge as default
|
|
12
12
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badge_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.ZXXT7QGH.js";
|
|
4
|
+
import "../../chunks/chunk.HIIXDCGP.js";
|
|
5
5
|
import "../../chunks/chunk.WQJRBFZA.js";
|
|
6
6
|
import "../../chunks/chunk.Y5TMYX2L.js";
|
|
7
|
-
import "../../chunks/chunk.
|
|
8
|
-
import "../../chunks/chunk.
|
|
9
|
-
import "../../chunks/chunk.
|
|
10
|
-
import "../../chunks/chunk.
|
|
7
|
+
import "../../chunks/chunk.QQ3HY3YJ.js";
|
|
8
|
+
import "../../chunks/chunk.27HWF7JY.js";
|
|
9
|
+
import "../../chunks/chunk.3I5JDTGT.js";
|
|
10
|
+
import "../../chunks/chunk.HLQ75E45.js";
|
|
11
11
|
export {
|
|
12
12
|
badge_default as default
|
|
13
13
|
};
|