@synergy-design-system/components 2.11.8 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk.F4MRQLNL.js → chunk.32LFHSM5.js} +7 -5
- package/dist/chunks/chunk.32LFHSM5.js.map +7 -0
- package/dist/chunks/{chunk.PYXGDZO2.js → chunk.3FNWITES.js} +7 -5
- package/dist/chunks/{chunk.PYXGDZO2.js.map → chunk.3FNWITES.js.map} +1 -1
- package/dist/chunks/{chunk.GQIUTJM5.js → chunk.3IFWX7E3.js} +2 -2
- package/dist/chunks/{chunk.W5EZFWUS.js → chunk.3JB36AXI.js} +10 -8
- package/dist/chunks/{chunk.W5EZFWUS.js.map → chunk.3JB36AXI.js.map} +1 -1
- package/dist/chunks/{chunk.PELVVM7V.js → chunk.3KRROCNB.js} +2 -2
- package/dist/chunks/{chunk.GCB4Y6VR.js → chunk.3LCKJNDI.js} +2 -2
- package/dist/chunks/{chunk.KDBAMJ7H.js → chunk.3YNFXB4T.js} +2 -2
- package/dist/chunks/{chunk.C7OU636Z.js → chunk.43EAE2QI.js} +7 -5
- package/dist/chunks/{chunk.C7OU636Z.js.map → chunk.43EAE2QI.js.map} +1 -1
- package/dist/chunks/{chunk.A5UWHPQ3.js → chunk.4WXSVFZF.js} +8 -6
- package/dist/chunks/{chunk.A5UWHPQ3.js.map → chunk.4WXSVFZF.js.map} +1 -1
- package/dist/chunks/{chunk.RIZ3OICD.js → chunk.4ZAJFDDB.js} +6 -4
- package/dist/chunks/{chunk.RIZ3OICD.js.map → chunk.4ZAJFDDB.js.map} +1 -1
- package/dist/chunks/{chunk.GFW6NZQB.js → chunk.5XTRBW6I.js} +2 -2
- package/dist/chunks/chunk.6FVSBWBR.js +12 -0
- package/dist/chunks/chunk.6FVSBWBR.js.map +7 -0
- package/dist/chunks/{chunk.KB4LHFCJ.js → chunk.6IPI5YJJ.js} +6 -4
- package/dist/chunks/{chunk.KB4LHFCJ.js.map → chunk.6IPI5YJJ.js.map} +1 -1
- package/dist/chunks/{chunk.A4GBTCHA.js → chunk.6K2KYJ27.js} +2 -2
- package/dist/chunks/{chunk.UGTJCM2I.js → chunk.6TR53QJH.js} +3 -3
- package/dist/chunks/{chunk.4XBZOW3G.js → chunk.7IQ7ST4F.js} +8 -6
- package/dist/chunks/{chunk.4XBZOW3G.js.map → chunk.7IQ7ST4F.js.map} +1 -1
- package/dist/chunks/{chunk.J7WHKDJL.js → chunk.7VB6V33J.js} +7 -5
- package/dist/chunks/{chunk.J7WHKDJL.js.map → chunk.7VB6V33J.js.map} +1 -1
- package/dist/chunks/{chunk.4QIBC54B.js → chunk.ACSAJN57.js} +9 -7
- package/dist/chunks/{chunk.4QIBC54B.js.map → chunk.ACSAJN57.js.map} +1 -1
- package/dist/chunks/{chunk.RJ2FFIQS.js → chunk.AFGBDQAO.js} +9 -7
- package/dist/chunks/{chunk.RJ2FFIQS.js.map → chunk.AFGBDQAO.js.map} +1 -1
- package/dist/chunks/{chunk.BBNQVEPD.js → chunk.AMIQC3O7.js} +8 -2
- package/dist/chunks/chunk.AMIQC3O7.js.map +7 -0
- package/dist/chunks/{chunk.FVTRWUGA.js → chunk.AONHNKC7.js} +2 -2
- package/dist/chunks/{chunk.C4GXUMW4.js → chunk.AVNMFX5X.js} +2 -2
- package/dist/chunks/{chunk.JGKF4SHV.js → chunk.BTXTLVCD.js} +11 -9
- package/dist/chunks/{chunk.JGKF4SHV.js.map → chunk.BTXTLVCD.js.map} +1 -1
- package/dist/chunks/{chunk.S5WQTT5P.js → chunk.BV76KPA7.js} +2 -2
- package/dist/chunks/{chunk.MJKQGREK.js → chunk.C6HMB33J.js} +2 -2
- package/dist/chunks/{chunk.IBHCGBFT.js → chunk.CN4426X7.js} +2 -2
- package/dist/chunks/{chunk.LKK53ROU.js → chunk.CROIIGEK.js} +12 -10
- package/dist/chunks/{chunk.LKK53ROU.js.map → chunk.CROIIGEK.js.map} +1 -1
- package/dist/chunks/{chunk.BEWDGV6L.js → chunk.D44UFEGJ.js} +9 -7
- package/dist/chunks/{chunk.BEWDGV6L.js.map → chunk.D44UFEGJ.js.map} +1 -1
- package/dist/chunks/{chunk.OULRXKKF.js → chunk.DTVX4TKW.js} +2 -2
- package/dist/chunks/{chunk.KVTBTAR7.js → chunk.DXUNCEPL.js} +11 -9
- package/dist/chunks/{chunk.KVTBTAR7.js.map → chunk.DXUNCEPL.js.map} +1 -1
- package/dist/chunks/{chunk.FMP3QKPO.js → chunk.E2DM7XQK.js} +2 -2
- package/dist/chunks/{chunk.7FTH6MTB.js → chunk.EHY5LVO7.js} +5 -3
- package/dist/chunks/{chunk.7FTH6MTB.js.map → chunk.EHY5LVO7.js.map} +1 -1
- package/dist/chunks/{chunk.WW4R4RVW.js → chunk.ETBT2YG4.js} +9 -7
- package/dist/chunks/{chunk.WW4R4RVW.js.map → chunk.ETBT2YG4.js.map} +1 -1
- package/dist/chunks/{chunk.W5R6JVI6.js → chunk.EZGQE2Y4.js} +10 -8
- package/dist/chunks/{chunk.W5R6JVI6.js.map → chunk.EZGQE2Y4.js.map} +1 -1
- package/dist/chunks/{chunk.NMDEJANS.js → chunk.GFDW6BKM.js} +2 -2
- package/dist/chunks/{chunk.PYNYDLMG.js → chunk.GI2NYM36.js} +11 -9
- package/dist/chunks/{chunk.PYNYDLMG.js.map → chunk.GI2NYM36.js.map} +1 -1
- package/dist/chunks/{chunk.543GQUFN.js → chunk.HA5UYBEI.js} +2 -2
- package/dist/chunks/{chunk.LIC7AOOH.js → chunk.HFXDDKUQ.js} +5 -3
- package/dist/chunks/{chunk.LIC7AOOH.js.map → chunk.HFXDDKUQ.js.map} +1 -1
- package/dist/chunks/{chunk.D6WAL6UA.js → chunk.HQCHFTWQ.js} +9 -7
- package/dist/chunks/{chunk.D6WAL6UA.js.map → chunk.HQCHFTWQ.js.map} +1 -1
- package/dist/chunks/{chunk.542NKF5M.js → chunk.HVGL244L.js} +2 -2
- package/dist/chunks/{chunk.NG4FGTJV.js → chunk.IA6JFXGQ.js} +2 -2
- package/dist/chunks/{chunk.R4526FJB.js → chunk.IAX5P4YW.js} +2 -2
- package/dist/chunks/{chunk.P6ZEPHHU.js → chunk.INJM3DAJ.js} +2 -2
- package/dist/chunks/{chunk.VHDQ5336.js → chunk.IOYGNDRB.js} +5 -3
- package/dist/chunks/{chunk.VHDQ5336.js.map → chunk.IOYGNDRB.js.map} +1 -1
- package/dist/chunks/{chunk.ETUGGGA3.js → chunk.JVIDZKUX.js} +9 -7
- package/dist/chunks/{chunk.ETUGGGA3.js.map → chunk.JVIDZKUX.js.map} +1 -1
- package/dist/chunks/{chunk.ZULYG2RD.js → chunk.KDMX4Q33.js} +6 -4
- package/dist/chunks/{chunk.ZULYG2RD.js.map → chunk.KDMX4Q33.js.map} +1 -1
- package/dist/chunks/{chunk.CUP2GDTO.js → chunk.KDS34DYH.js} +2 -2
- package/dist/chunks/{chunk.BSJZ6U76.js → chunk.KP2IPT7J.js} +2 -2
- package/dist/chunks/{chunk.KALYMTPW.js → chunk.KVU5RDXR.js} +2 -2
- package/dist/chunks/{chunk.BVTARVRR.js → chunk.L6YDUFFT.js} +2 -2
- package/dist/chunks/{chunk.CTJCCRDS.js → chunk.LG2S5EYQ.js} +2 -2
- package/dist/chunks/{chunk.BTV2TDGA.js → chunk.LHFNBKMZ.js} +2 -2
- package/dist/chunks/{chunk.WKVPIQN6.js → chunk.LKAZQJ5Y.js} +5 -3
- package/dist/chunks/{chunk.WKVPIQN6.js.map → chunk.LKAZQJ5Y.js.map} +1 -1
- package/dist/chunks/{chunk.AINKZEUX.js → chunk.LUXDS4EY.js} +6 -4
- package/dist/chunks/chunk.LUXDS4EY.js.map +7 -0
- package/dist/chunks/{chunk.EMLJTW54.js → chunk.M5JWXYAN.js} +6 -4
- package/dist/chunks/{chunk.EMLJTW54.js.map → chunk.M5JWXYAN.js.map} +1 -1
- package/dist/chunks/{chunk.DMS25RNS.js → chunk.MFD4ZXHO.js} +2 -2
- package/dist/chunks/{chunk.LGJBHX6A.js → chunk.MGX7SU3U.js} +6 -4
- package/dist/chunks/{chunk.LGJBHX6A.js.map → chunk.MGX7SU3U.js.map} +1 -1
- package/dist/chunks/{chunk.T2266GEL.js → chunk.MKHPO7MC.js} +9 -7
- package/dist/chunks/{chunk.T2266GEL.js.map → chunk.MKHPO7MC.js.map} +1 -1
- package/dist/chunks/chunk.MVM3NN6Y.js +14 -0
- package/dist/chunks/chunk.MVM3NN6Y.js.map +7 -0
- package/dist/chunks/{chunk.ILW7HGXV.js → chunk.N4NBMVHY.js} +9 -7
- package/dist/chunks/{chunk.ILW7HGXV.js.map → chunk.N4NBMVHY.js.map} +1 -1
- package/dist/chunks/chunk.N4ZA77ZV.js +289 -0
- package/dist/chunks/chunk.N4ZA77ZV.js.map +7 -0
- package/dist/chunks/{chunk.NABDH7AM.js → chunk.NBBH4EMX.js} +2 -2
- package/dist/chunks/{chunk.IFXH7TS2.js → chunk.NGD3FJHJ.js} +2 -2
- package/dist/chunks/chunk.NLYVOJGK.js +23 -0
- package/dist/chunks/chunk.NLYVOJGK.js.map +7 -0
- package/dist/chunks/{chunk.U4M2MZGL.js → chunk.NNCEZT6I.js} +2 -2
- package/dist/chunks/{chunk.M6ZU4ROZ.js → chunk.OL5L2SWG.js} +5 -3
- package/dist/chunks/{chunk.M6ZU4ROZ.js.map → chunk.OL5L2SWG.js.map} +1 -1
- package/dist/chunks/{chunk.733QK4CG.js → chunk.OMI4XYXD.js} +5 -3
- package/dist/chunks/{chunk.733QK4CG.js.map → chunk.OMI4XYXD.js.map} +1 -1
- package/dist/chunks/{chunk.RGRP4UPT.js → chunk.OMVVPU3N.js} +14 -12
- package/dist/chunks/{chunk.RGRP4UPT.js.map → chunk.OMVVPU3N.js.map} +1 -1
- package/dist/chunks/{chunk.EFY4HIY5.js → chunk.PKH7RUCS.js} +2 -2
- package/dist/chunks/{chunk.UYC7HFUR.js → chunk.PLNTJP3L.js} +5 -3
- package/dist/chunks/{chunk.UYC7HFUR.js.map → chunk.PLNTJP3L.js.map} +1 -1
- package/dist/chunks/chunk.PLRLC2PG.js +36 -0
- package/dist/chunks/chunk.PLRLC2PG.js.map +7 -0
- package/dist/chunks/{chunk.RZUSPMLI.js → chunk.QACXXGS7.js} +8 -6
- package/dist/chunks/{chunk.RZUSPMLI.js.map → chunk.QACXXGS7.js.map} +1 -1
- package/dist/chunks/{chunk.KKGBDRNO.js → chunk.QEPIKL2O.js} +5 -3
- package/dist/chunks/{chunk.KKGBDRNO.js.map → chunk.QEPIKL2O.js.map} +1 -1
- package/dist/chunks/{chunk.HL5G5I73.js → chunk.QH3D6IHF.js} +2 -2
- package/dist/chunks/{chunk.76F2JPAB.js → chunk.QJBEBMI4.js} +2 -2
- package/dist/chunks/{chunk.NE2ORRAH.js → chunk.R2B42WQK.js} +9 -7
- package/dist/chunks/{chunk.NE2ORRAH.js.map → chunk.R2B42WQK.js.map} +1 -1
- package/dist/chunks/{chunk.V433PDP3.js → chunk.RAAMOR6I.js} +2 -2
- package/dist/chunks/{chunk.AVXZX623.js → chunk.RTEKLXU3.js} +2 -2
- package/dist/chunks/{chunk.W3KWWIOY.js → chunk.RUJ3ANMM.js} +2 -2
- package/dist/chunks/{chunk.NAL5K4VA.js → chunk.RWQ7UK2Z.js} +2 -2
- package/dist/chunks/{chunk.L7GQX3OV.js → chunk.RZI6FTCQ.js} +3 -23
- package/dist/chunks/{chunk.L7GQX3OV.js.map → chunk.RZI6FTCQ.js.map} +3 -3
- package/dist/chunks/{chunk.GJ4TX4CQ.js → chunk.T66H2JXK.js} +2 -2
- package/dist/chunks/{chunk.V3Y6BG3X.js → chunk.TCK2OZIA.js} +2 -2
- package/dist/chunks/{chunk.IR4XTCB5.js → chunk.TNVBUUDO.js} +2 -2
- package/dist/chunks/{chunk.QAYEUQYU.js → chunk.TZC4IPT3.js} +2 -2
- package/dist/chunks/{chunk.QHIYAAOK.js → chunk.U3FPKF7P.js} +6 -4
- package/dist/chunks/{chunk.QHIYAAOK.js.map → chunk.U3FPKF7P.js.map} +1 -1
- package/dist/chunks/{chunk.JHWCBSRQ.js → chunk.UNKM3AR6.js} +5 -3
- package/dist/chunks/{chunk.JHWCBSRQ.js.map → chunk.UNKM3AR6.js.map} +1 -1
- package/dist/chunks/{chunk.DRLBTO2U.js → chunk.UTJJJQMA.js} +2 -2
- package/dist/chunks/{chunk.V6VND4OF.js → chunk.UUB3PWNM.js} +24 -9
- package/dist/chunks/chunk.UUB3PWNM.js.map +7 -0
- package/dist/chunks/{chunk.S7WPODC5.js → chunk.V26UKAYH.js} +2 -2
- package/dist/chunks/{chunk.EWWPH2HQ.js → chunk.V3UNHLRQ.js} +2 -2
- package/dist/chunks/{chunk.NEF5MMN5.js → chunk.V6VHMR46.js} +5 -3
- package/dist/chunks/{chunk.NEF5MMN5.js.map → chunk.V6VHMR46.js.map} +1 -1
- package/dist/chunks/{chunk.YCXG7KSZ.js → chunk.VQPF22HI.js} +11 -9
- package/dist/chunks/{chunk.YCXG7KSZ.js.map → chunk.VQPF22HI.js.map} +1 -1
- package/dist/chunks/{chunk.GB7MKJKF.js → chunk.W5FJR66T.js} +6 -4
- package/dist/chunks/{chunk.GB7MKJKF.js.map → chunk.W5FJR66T.js.map} +1 -1
- package/dist/chunks/{chunk.5JHL4BNI.js → chunk.W5TWI64A.js} +8 -6
- package/dist/chunks/{chunk.5JHL4BNI.js.map → chunk.W5TWI64A.js.map} +1 -1
- package/dist/chunks/{chunk.TI5RKSNH.js → chunk.WKPG4Y6A.js} +2 -2
- package/dist/chunks/{chunk.Q72AFOXT.js → chunk.WNOYE7FJ.js} +5 -3
- package/dist/chunks/{chunk.Q72AFOXT.js.map → chunk.WNOYE7FJ.js.map} +1 -1
- package/dist/chunks/{chunk.QHXZDWJ6.js → chunk.X5BIF4J6.js} +2 -2
- package/dist/chunks/{chunk.DSY3ZF3J.js → chunk.XJ6J5MAG.js} +2 -2
- package/dist/chunks/{chunk.GLLSMQ3B.js → chunk.YMXGU2DZ.js} +5 -3
- package/dist/chunks/{chunk.GLLSMQ3B.js.map → chunk.YMXGU2DZ.js.map} +1 -1
- package/dist/chunks/{chunk.2WDJUG6Y.js → chunk.Z3YHPV62.js} +5 -3
- package/dist/chunks/{chunk.2WDJUG6Y.js.map → chunk.Z3YHPV62.js.map} +1 -1
- package/dist/chunks/{chunk.YH3O4D2Y.js → chunk.ZDLBTJKY.js} +2 -2
- package/dist/chunks/{chunk.W4OTSXB2.js → chunk.ZMHLJPJN.js} +10 -8
- package/dist/chunks/{chunk.W4OTSXB2.js.map → chunk.ZMHLJPJN.js.map} +1 -1
- package/dist/components/accordion/accordion.component.js +4 -3
- package/dist/components/accordion/accordion.js +5 -4
- package/dist/components/alert/alert.component.js +11 -10
- package/dist/components/alert/alert.js +12 -11
- package/dist/components/badge/badge.component.js +5 -4
- package/dist/components/badge/badge.js +6 -5
- package/dist/components/breadcrumb/breadcrumb.component.js +10 -9
- package/dist/components/breadcrumb/breadcrumb.js +11 -10
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +3 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +4 -3
- package/dist/components/button/button.component.js +10 -9
- package/dist/components/button/button.js +11 -10
- package/dist/components/button-group/button-group.component.js +3 -2
- package/dist/components/button-group/button-group.js +4 -3
- package/dist/components/card/card.component.js +3 -2
- package/dist/components/card/card.js +4 -3
- package/dist/components/checkbox/checkbox.component.js +7 -6
- package/dist/components/checkbox/checkbox.js +8 -7
- package/dist/components/combobox/combobox.component.js +10 -9
- package/dist/components/combobox/combobox.js +11 -10
- package/dist/components/details/details.component.js +8 -7
- package/dist/components/details/details.js +9 -8
- package/dist/components/dialog/dialog.component.js +9 -8
- package/dist/components/dialog/dialog.js +10 -9
- package/dist/components/divider/divider.component.js +3 -2
- package/dist/components/divider/divider.js +4 -3
- package/dist/components/drawer/drawer.component.js +9 -8
- package/dist/components/drawer/drawer.js +10 -9
- package/dist/components/dropdown/dropdown.component.js +5 -4
- package/dist/components/dropdown/dropdown.js +6 -5
- package/dist/components/file/file.component.js +11 -10
- package/dist/components/file/file.js +12 -11
- package/dist/components/header/header.component.js +9 -8
- package/dist/components/header/header.js +10 -9
- package/dist/components/icon/icon.component.js +5 -4
- package/dist/components/icon/icon.js +6 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.js +6 -5
- package/dist/components/icon-button/icon-button.js +7 -6
- package/dist/components/input/input.component.js +10 -9
- package/dist/components/input/input.js +11 -10
- package/dist/components/menu/menu.component.js +3 -2
- package/dist/components/menu/menu.js +4 -3
- package/dist/components/menu-item/menu-item.component.js +10 -9
- package/dist/components/menu-item/menu-item.js +11 -10
- package/dist/components/menu-label/menu-label.component.js +4 -3
- package/dist/components/menu-label/menu-label.js +5 -4
- package/dist/components/nav-item/nav-item.component.js +4 -3
- package/dist/components/nav-item/nav-item.js +5 -4
- package/dist/components/optgroup/optgroup.component.js +4 -3
- package/dist/components/optgroup/optgroup.js +5 -4
- package/dist/components/option/option.component.js +8 -7
- package/dist/components/option/option.js +9 -8
- package/dist/components/popup/popup.component.js +3 -2
- package/dist/components/popup/popup.js +4 -3
- package/dist/components/prio-nav/prio-nav.component.js +13 -12
- package/dist/components/prio-nav/prio-nav.js +14 -13
- package/dist/components/progress-bar/progress-bar.component.js +3 -2
- package/dist/components/progress-bar/progress-bar.js +4 -3
- package/dist/components/progress-ring/progress-ring.component.js +3 -2
- package/dist/components/progress-ring/progress-ring.js +4 -3
- package/dist/components/radio/radio.component.js +7 -6
- package/dist/components/radio/radio.custom.styles.js +1 -1
- package/dist/components/radio/radio.js +8 -7
- package/dist/components/radio-button/radio-button.component.js +3 -2
- package/dist/components/radio-button/radio-button.js +4 -3
- package/dist/components/radio-group/radio-group.component.js +6 -5
- package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
- package/dist/components/radio-group/radio-group.js +7 -6
- package/dist/components/range/range.component.js +7 -6
- package/dist/components/range/range.js +8 -7
- package/dist/components/range-tick/range-tick.component.js +3 -2
- package/dist/components/range-tick/range-tick.js +4 -3
- package/dist/components/resize-observer/resize-observer.component.js +3 -2
- package/dist/components/select/select.component.js +12 -11
- package/dist/components/select/select.js +13 -12
- package/dist/components/side-nav/side-nav.component.js +11 -10
- package/dist/components/side-nav/side-nav.js +12 -11
- package/dist/components/spinner/spinner.component.js +3 -2
- package/dist/components/spinner/spinner.js +4 -3
- package/dist/components/switch/switch.component.js +4 -3
- package/dist/components/switch/switch.js +5 -4
- package/dist/components/tab/tab.component.js +9 -8
- package/dist/components/tab/tab.js +10 -9
- package/dist/components/tab-group/tab-group.component.js +10 -9
- package/dist/components/tab-group/tab-group.js +11 -10
- package/dist/components/tab-panel/tab-panel.component.js +3 -2
- package/dist/components/tab-panel/tab-panel.js +4 -3
- package/dist/components/tag/tag.component.js +9 -8
- package/dist/components/tag/tag.js +10 -9
- package/dist/components/textarea/textarea.component.js +4 -3
- package/dist/components/textarea/textarea.js +5 -4
- package/dist/components/tooltip/tooltip.component.js +5 -4
- package/dist/components/tooltip/tooltip.js +6 -5
- package/dist/components/validate/utility.d.ts +27 -0
- package/dist/components/validate/utility.js +17 -0
- package/dist/components/validate/utility.js.map +7 -0
- package/dist/components/validate/validate.component.d.ts +126 -0
- package/dist/components/validate/validate.component.js +32 -0
- package/dist/components/validate/validate.component.js.map +7 -0
- package/dist/components/validate/validate.d.ts +8 -0
- package/dist/components/validate/validate.js +33 -0
- package/dist/components/validate/validate.js.map +7 -0
- package/dist/components/validate/validate.styles.d.ts +2 -0
- package/dist/components/validate/validate.styles.js +8 -0
- package/dist/components/validate/validate.styles.js.map +7 -0
- package/dist/custom-elements.json +407 -77
- package/dist/styles/fouc.css +2 -1
- package/dist/styles/index.css +3 -2
- package/dist/synergy.d.ts +1 -0
- package/dist/synergy.js +118 -110
- package/dist/utilities/form.js +2 -2
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +60 -23
- package/package.json +4 -4
- package/dist/chunks/chunk.AINKZEUX.js.map +0 -7
- package/dist/chunks/chunk.BBNQVEPD.js.map +0 -7
- package/dist/chunks/chunk.F4MRQLNL.js.map +0 -7
- package/dist/chunks/chunk.V6VND4OF.js.map +0 -7
- /package/dist/chunks/{chunk.GQIUTJM5.js.map → chunk.3IFWX7E3.js.map} +0 -0
- /package/dist/chunks/{chunk.PELVVM7V.js.map → chunk.3KRROCNB.js.map} +0 -0
- /package/dist/chunks/{chunk.GCB4Y6VR.js.map → chunk.3LCKJNDI.js.map} +0 -0
- /package/dist/chunks/{chunk.KDBAMJ7H.js.map → chunk.3YNFXB4T.js.map} +0 -0
- /package/dist/chunks/{chunk.GFW6NZQB.js.map → chunk.5XTRBW6I.js.map} +0 -0
- /package/dist/chunks/{chunk.A4GBTCHA.js.map → chunk.6K2KYJ27.js.map} +0 -0
- /package/dist/chunks/{chunk.UGTJCM2I.js.map → chunk.6TR53QJH.js.map} +0 -0
- /package/dist/chunks/{chunk.FVTRWUGA.js.map → chunk.AONHNKC7.js.map} +0 -0
- /package/dist/chunks/{chunk.C4GXUMW4.js.map → chunk.AVNMFX5X.js.map} +0 -0
- /package/dist/chunks/{chunk.S5WQTT5P.js.map → chunk.BV76KPA7.js.map} +0 -0
- /package/dist/chunks/{chunk.MJKQGREK.js.map → chunk.C6HMB33J.js.map} +0 -0
- /package/dist/chunks/{chunk.IBHCGBFT.js.map → chunk.CN4426X7.js.map} +0 -0
- /package/dist/chunks/{chunk.OULRXKKF.js.map → chunk.DTVX4TKW.js.map} +0 -0
- /package/dist/chunks/{chunk.FMP3QKPO.js.map → chunk.E2DM7XQK.js.map} +0 -0
- /package/dist/chunks/{chunk.NMDEJANS.js.map → chunk.GFDW6BKM.js.map} +0 -0
- /package/dist/chunks/{chunk.543GQUFN.js.map → chunk.HA5UYBEI.js.map} +0 -0
- /package/dist/chunks/{chunk.542NKF5M.js.map → chunk.HVGL244L.js.map} +0 -0
- /package/dist/chunks/{chunk.NG4FGTJV.js.map → chunk.IA6JFXGQ.js.map} +0 -0
- /package/dist/chunks/{chunk.R4526FJB.js.map → chunk.IAX5P4YW.js.map} +0 -0
- /package/dist/chunks/{chunk.P6ZEPHHU.js.map → chunk.INJM3DAJ.js.map} +0 -0
- /package/dist/chunks/{chunk.CUP2GDTO.js.map → chunk.KDS34DYH.js.map} +0 -0
- /package/dist/chunks/{chunk.BSJZ6U76.js.map → chunk.KP2IPT7J.js.map} +0 -0
- /package/dist/chunks/{chunk.KALYMTPW.js.map → chunk.KVU5RDXR.js.map} +0 -0
- /package/dist/chunks/{chunk.BVTARVRR.js.map → chunk.L6YDUFFT.js.map} +0 -0
- /package/dist/chunks/{chunk.CTJCCRDS.js.map → chunk.LG2S5EYQ.js.map} +0 -0
- /package/dist/chunks/{chunk.BTV2TDGA.js.map → chunk.LHFNBKMZ.js.map} +0 -0
- /package/dist/chunks/{chunk.DMS25RNS.js.map → chunk.MFD4ZXHO.js.map} +0 -0
- /package/dist/chunks/{chunk.NABDH7AM.js.map → chunk.NBBH4EMX.js.map} +0 -0
- /package/dist/chunks/{chunk.IFXH7TS2.js.map → chunk.NGD3FJHJ.js.map} +0 -0
- /package/dist/chunks/{chunk.U4M2MZGL.js.map → chunk.NNCEZT6I.js.map} +0 -0
- /package/dist/chunks/{chunk.EFY4HIY5.js.map → chunk.PKH7RUCS.js.map} +0 -0
- /package/dist/chunks/{chunk.HL5G5I73.js.map → chunk.QH3D6IHF.js.map} +0 -0
- /package/dist/chunks/{chunk.76F2JPAB.js.map → chunk.QJBEBMI4.js.map} +0 -0
- /package/dist/chunks/{chunk.V433PDP3.js.map → chunk.RAAMOR6I.js.map} +0 -0
- /package/dist/chunks/{chunk.AVXZX623.js.map → chunk.RTEKLXU3.js.map} +0 -0
- /package/dist/chunks/{chunk.W3KWWIOY.js.map → chunk.RUJ3ANMM.js.map} +0 -0
- /package/dist/chunks/{chunk.NAL5K4VA.js.map → chunk.RWQ7UK2Z.js.map} +0 -0
- /package/dist/chunks/{chunk.GJ4TX4CQ.js.map → chunk.T66H2JXK.js.map} +0 -0
- /package/dist/chunks/{chunk.V3Y6BG3X.js.map → chunk.TCK2OZIA.js.map} +0 -0
- /package/dist/chunks/{chunk.IR4XTCB5.js.map → chunk.TNVBUUDO.js.map} +0 -0
- /package/dist/chunks/{chunk.QAYEUQYU.js.map → chunk.TZC4IPT3.js.map} +0 -0
- /package/dist/chunks/{chunk.DRLBTO2U.js.map → chunk.UTJJJQMA.js.map} +0 -0
- /package/dist/chunks/{chunk.S7WPODC5.js.map → chunk.V26UKAYH.js.map} +0 -0
- /package/dist/chunks/{chunk.EWWPH2HQ.js.map → chunk.V3UNHLRQ.js.map} +0 -0
- /package/dist/chunks/{chunk.TI5RKSNH.js.map → chunk.WKPG4Y6A.js.map} +0 -0
- /package/dist/chunks/{chunk.QHXZDWJ6.js.map → chunk.X5BIF4J6.js.map} +0 -0
- /package/dist/chunks/{chunk.DSY3ZF3J.js.map → chunk.XJ6J5MAG.js.map} +0 -0
- /package/dist/chunks/{chunk.YH3O4D2Y.js.map → chunk.ZDLBTJKY.js.map} +0 -0
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/textarea/textarea.component.ts"],
|
|
4
4
|
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './textarea.styles.js';\nimport customStyles from './textarea.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://synergy.style/components/textarea\n * @status stable\n * @since 2.0\n *\n * @slot label - The textarea's label. Alternatively, you can use the `label` attribute.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when 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 and its constraints aren't satisfied.\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-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart textarea - The internal `<textarea>` control.\n */\nexport default class SynTextarea extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input']\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n private resizeObserver: ResizeObserver;\n\n @query('.textarea__control') input: HTMLTextAreaElement;\n\n @state() private hasFocus = false;\n @property() title = ''; // make reactive to pass through\n\n /** The name of the textarea, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the textarea, submitted as a name/value pair with form data. */\n @property() value = '';\n\n /** The textarea's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The textarea's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The textarea's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Placeholder text to show as a hint when the input is empty. */\n @property() placeholder = '';\n\n /** The number of rows to display by default. */\n @property({ type: Number }) rows = 4;\n\n /** Controls how the textarea can be resized. */\n @property() resize: 'none' | 'vertical' | 'auto' = 'vertical';\n\n /** Disables the textarea. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Makes the textarea readonly. */\n @property({ type: Boolean, reflect: true }) readonly = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the textarea a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The minimum length of input that will be considered valid. */\n @property({ type: Number }) minlength: number;\n\n /** The maximum length of input that will be considered valid. */\n @property({ type: Number }) maxlength: number;\n\n /** Controls whether and how text input is automatically capitalized as it is entered by the user. */\n @property() autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';\n\n /** Indicates whether the browser's autocorrect feature is on or off. */\n @property() autocorrect: string;\n\n /**\n * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.\n */\n @property() autocomplete: string;\n\n /** Indicates that the input should receive focus on page load. */\n @property({ type: Boolean }) autofocus: boolean;\n\n /** Used to customize the label or icon of the Enter key on virtual keyboards. */\n @property() enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n\n /** Enables spell checking on the textarea. */\n @property({\n type: Boolean,\n converter: {\n // Allow \"true|false\" attribute values but keep the property boolean\n fromAttribute: value => (!value || value === 'false' ? false : true),\n toAttribute: value => (value ? 'true' : 'false')\n }\n })\n spellcheck = true;\n\n /**\n * Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\n * keyboard on supportive devices.\n */\n @property() inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(() => this.setTextareaHeight());\n\n this.updateComplete.then(() => {\n this.setTextareaHeight();\n this.resizeObserver.observe(this.input);\n });\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n if (this.input) {\n this.resizeObserver?.unobserve(this.input);\n }\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleChange() {\n this.value = this.input.value;\n this.setTextareaHeight();\n this.emit('syn-change');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleInput() {\n this.value = this.input.value;\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private setTextareaHeight() {\n if (this.resize === 'auto') {\n this.input.style.height = 'auto';\n this.input.style.height = `${this.input.scrollHeight}px`;\n } else {\n (this.input.style.height as string | undefined) = undefined;\n }\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch('rows', { waitUntilFirstUpdate: true })\n handleRowsChange() {\n this.setTextareaHeight();\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n this.setTextareaHeight();\n }\n\n /** Sets focus on the textarea. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the textarea. */\n blur() {\n this.input.blur();\n }\n\n /** Selects all the text in the textarea. */\n select() {\n this.input.select();\n }\n\n /** Gets or sets the textarea's scroll position. */\n scrollPosition(position?: { top?: number; left?: number }): { top: number; left: number } | undefined {\n if (position) {\n if (typeof position.top === 'number') this.input.scrollTop = position.top;\n if (typeof position.left === 'number') this.input.scrollLeft = position.left;\n return undefined;\n }\n\n return {\n top: this.input.scrollTop,\n left: this.input.scrollTop\n };\n }\n\n /** Sets the start and end positions of the text selection (0-based). */\n setSelectionRange(\n selectionStart: number,\n selectionEnd: number,\n selectionDirection: 'forward' | 'backward' | 'none' = 'none'\n ) {\n this.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);\n }\n\n /** Replaces a range of text with a new string. */\n setRangeText(\n replacement: string,\n start?: number,\n end?: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n const selectionStart = start ?? this.input.selectionStart;\n const selectionEnd = end ?? this.input.selectionEnd;\n\n this.input.setRangeText(replacement, selectionStart, selectionEnd, selectMode);\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n this.setTextareaHeight();\n }\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText\n })}\n >\n <label\n part=\"form-control-label\"\n class=\"form-control__label\"\n for=\"input\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <div\n part=\"base\"\n class=${classMap({\n textarea: true,\n 'textarea--small': this.size === 'small',\n 'textarea--medium': this.size === 'medium',\n 'textarea--large': this.size === 'large',\n 'textarea--standard': !this.readonly,\n 'textarea--readonly': this.readonly,\n 'textarea--disabled': this.disabled,\n 'textarea--focused': this.hasFocus,\n 'textarea--empty': !this.value,\n 'textarea--resize-none': this.resize === 'none',\n 'textarea--resize-vertical': this.resize === 'vertical',\n 'textarea--resize-auto': this.resize === 'auto'\n })}\n >\n <textarea\n part=\"textarea\"\n id=\"input\"\n class=\"textarea__control\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(this.name)}\n .value=${live(this.value)}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n placeholder=${ifDefined(this.placeholder)}\n rows=${ifDefined(this.rows)}\n minlength=${ifDefined(this.minlength)}\n maxlength=${ifDefined(this.maxlength)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocorrect=${ifDefined(this.autocorrect)}\n ?autofocus=${this.autofocus}\n spellcheck=${ifDefined(this.spellcheck)}\n enterkeyhint=${ifDefined(this.enterkeyhint)}\n inputmode=${ifDefined(this.inputmode)}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n ></textarea>\n </div>\n </div>\n\n <div\n part=\"form-control-help-text\"\n id=\"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}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,S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A;AAAA,EAAX,SAAS;AAAA,GAhES,YAgEP;AAMA;AAAA,EAAX,SAAS;AAAA,GAtES,YAsEP;AAGiB;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAzER,YAyEU;AAGjB;AAAA,EAAX,SAAS;AAAA,GA5ES,YA4EP;AAWZ;AAAA,EARC,SAAS;AAAA,IACR,MAAM;AAAA,IACN,WAAW;AAAA;AAAA,MAET,eAAe,WAAU,CAAC,SAAS,UAAU,UAAU,QAAQ;AAAA,MAC/D,aAAa,WAAU,QAAQ,SAAS;AAAA,IAC1C;AAAA,EACF,CAAC;AAAA,GAtFkB,YAuFnB;AAMY;AAAA,EAAX,SAAS;AAAA,GA7FS,YA6FP;AAGI;AAAA,EAAf,aAAa;AAAA,GAhGK,YAgGH;AAqEhB;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GApK9B,YAqKnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1K1B,YA2KnB;AAKM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA/K3B,YAgLb;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynFile
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BTXTLVCD.js";
|
|
4
4
|
|
|
5
5
|
// src/components/file/file.ts
|
|
6
6
|
var file_default = SynFile;
|
|
@@ -9,4 +9,4 @@ SynFile.define("syn-file");
|
|
|
9
9
|
export {
|
|
10
10
|
file_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.MFD4ZXHO.js.map
|
|
@@ -6,11 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk.RAOPZXJL.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDivider
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.UNKM3AR6.js";
|
|
10
10
|
import {
|
|
11
|
-
SynergyElement,
|
|
12
11
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.NLYVOJGK.js";
|
|
13
|
+
import {
|
|
14
|
+
SynergyElement
|
|
15
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
14
16
|
|
|
15
17
|
// src/components/menu-label/menu-label.component.ts
|
|
16
18
|
import { html } from "lit";
|
|
@@ -32,4 +34,4 @@ SynMenuLabel.dependencies = {
|
|
|
32
34
|
export {
|
|
33
35
|
SynMenuLabel
|
|
34
36
|
};
|
|
35
|
-
//# sourceMappingURL=chunk.
|
|
37
|
+
//# sourceMappingURL=chunk.MGX7SU3U.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/menu-label/menu-label.component.ts"],
|
|
4
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 { html } from 'lit';\nimport SynDivider from '../divider/divider.component.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './menu-label.styles.js';\nimport customStyles from './menu-label.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Menu labels are used to describe a group of menu items.\n * @documentation https://synergy.style/components/menu-label\n * @status stable\n * @since 2.0\n *\n * @dependency syn-divider\n *\n * @slot - The menu label's content.\n *\n * @csspart base - The component's base wrapper.\n * @csspart divider - The divider that is displayed above the content\n * @csspart label - The label that is displayed below the divider\n *\n * @cssproperty --display-divider - Display property of the divider. Defaults to \"block\"\n */\nexport default class SynMenuLabel extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n static dependencies = {\n 'syn-divider': SynDivider,\n };\n \n render() {\n return html`\n <div part=\"base\" class=\"menu-label-wrapper\">\n <syn-divider class=\"menu-label__divider\" part=\"divider\"></syn-divider>\n <slot part=\"label\" class=\"menu-label\"></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-menu-label': SynMenuLabel;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAQA,SAAS,YAAY;AAwBrB,IAAqB,eAArB,cAA0C,eAAe;AAAA,EAOvD,SAAS;AACP,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMT;AACF;AAfqB,aACZ,SAAyB,CAAC,0BAAiB,2BAAQ,gCAAY;AADnD,aAGZ,eAAe;AAAA,EACpB,eAAe;AACjB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,20 +3,22 @@ import {
|
|
|
3
3
|
} from "./chunk.GVNVZMMM.js";
|
|
4
4
|
import {
|
|
5
5
|
icon_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.3IFWX7E3.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.WVVQK5TE.js";
|
|
10
|
-
import {
|
|
11
|
-
watch
|
|
12
|
-
} from "./chunk.74IOULXM.js";
|
|
13
10
|
import {
|
|
14
11
|
LocalizeController
|
|
15
12
|
} from "./chunk.GIU3H3J3.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.74IOULXM.js";
|
|
16
|
+
import {
|
|
18
17
|
component_styles_default
|
|
19
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.NLYVOJGK.js";
|
|
19
|
+
import {
|
|
20
|
+
SynergyElement
|
|
21
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
20
22
|
import {
|
|
21
23
|
__decorateClass
|
|
22
24
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -180,4 +182,4 @@ __decorateClass([
|
|
|
180
182
|
export {
|
|
181
183
|
SynHeader
|
|
182
184
|
};
|
|
183
|
-
//# sourceMappingURL=chunk.
|
|
185
|
+
//# sourceMappingURL=chunk.MKHPO7MC.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/header/header.component.ts"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit/static-html.js';\nimport { property, state } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './header.styles.js';\nimport SynIcon from '../icon/icon.js';\nimport type SynSideNav from '../side-nav/side-nav.component.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { watch } from '../../internal/watch.js';\n\n/**\n * @summary The <syn-header /> element provides a generic application header\n * that can be used to add applications name, toolbar and primary navigation.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-header--docs\n * @status stable\n * @since 1.10.0\n *\n * @slot label - The label for the header\n * @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided\n * @slot meta-navigation - The meta-navigation is used to add various application toolbar icons\n * Best used with `<syn-icon-button />` and `<syn-drop-down />`\n * @slot navigation - This slot can be used to add an optional horizontal navigation\n * @slot open-burger-menu-icon - An icon to use in lieu of the default burger-menu=open state.\n * The default close icon is a 'x'.\n * @slot closed-burger-menu-icon - An icon to use in lieu of the default burger-menu=closed state.\n * The default open icon is a burger menu.\n *\n * @event syn-burger-menu-closed - Emitted when the burger menu is toggled to closed\n * @event syn-burger-menu-hidden - Emitted when the burger menu is toggled to hidden\n * @event syn-burger-menu-open - Emitted when the burger menu is toggled to open\n *\n * @csspart base - The component's base wrapper\n * @csspart content - The wrapper most content items reside\n * @csspart logo - The wrapper the application logo resides in\n * @csspart label - The element wrapping the application name\n * @csspart meta-navigation - The Item wrapping the optional application menu\n * @csspart navigation - The wrapper that is holding the optional top navigation section\n * @csspart burger-menu-toggle-button - The button that toggles the burger menu\n */\nexport default class SynHeader extends SynergyElement {\n static styles: CSSResultGroup = [\n componentStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-icon': SynIcon,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'logo', 'label', 'meta-navigation', 'navigation');\n\n private readonly localize = new LocalizeController(this);\n\n /**\n * Internal mutation observer\n */\n private mutationObserver: MutationObserver;\n\n /**\n * The headers label. If you need to display HTML, use the `label` slot instead.\n */\n @property() label = '';\n\n /**\n * Defines the current visibility and icon of the burger-menu icon.\n * The menu button is added automatically if the component finds a syn-side-nav in non-rail mode.\n * The following values can be used:\n * - hidden: The burger menu is not visible\n * - open: The burger menu is visible and shows the close icon\n * - closed: The burger menu is visible and shows the open icon\n */\n @property({ attribute: 'burger-menu', reflect: true }) burgerMenu: 'hidden' | 'open' | 'closed' = 'hidden';\n\n /**\n * The side nav\n */\n @state() private sideNav: SynSideNav | null;\n\n private toggleBurgerMenu() {\n switch (this.burgerMenu) {\n case 'closed': this.burgerMenu = 'open'; break;\n case 'open': this.burgerMenu = 'closed'; break;\n default: break;\n }\n }\n\n private handleBurgerMenuToggle() {\n // If there is a side-nav in non-rail mode, toggle the open state!\n if (this.sideNav && !this.sideNav.rail) {\n this.sideNav.open = !this.sideNav.open;\n }\n this.toggleBurgerMenu();\n }\n\n /**\n * Automatically update the burger menu icon based\n * on the state of the side-nav, if one is connected.\n */\n private updateBurgerMenuBasedOnSideNav() {\n if (this.sideNav) {\n // Hide the burger menu icon if the side-nav is in rail mode\n if (this.sideNav.rail) {\n this.burgerMenu = 'hidden';\n } else {\n this.burgerMenu = this.sideNav.open ? 'open' : 'closed';\n }\n }\n }\n\n @watch('burgerMenu', { waitUntilFirstUpdate: true })\n handleBurgerMenu() {\n const myEvt: keyof GlobalEventHandlersEventMap = `syn-burger-menu-${this.burgerMenu}`;\n this.emit(myEvt);\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n this.mutationObserver = new MutationObserver(() => this.updateBurgerMenuBasedOnSideNav());\n }\n\n firstUpdated() {\n // Search for a side-nav and use the first found in case of the connectSideNavigation method\n // is not used by the user.\n const sideNav = document.querySelector('syn-side-nav');\n this.connectSideNavigation(sideNav);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // Remove observer\n this.mutationObserver.disconnect();\n }\n\n /**\n * Connect a `syn-side-nav` to add automatic interaction of the header with the side navigation\n * like showing the burger menu icon and open / close handling.\n *\n * If no side navigation is connected, the header will use the first `syn-side-nav` element it\n * finds.\n *\n * @param sideNav The side navigation to connect to the header\n */\n connectSideNavigation(sideNav: SynSideNav | null) {\n this.mutationObserver.disconnect();\n\n this.sideNav = sideNav || document.querySelector('syn-side-nav');\n if (this.sideNav) {\n // Need to call the method initially, if the side-nav is not open on connect time.\n // Otherwise the mutation observer won`t trigger the method.\n this.updateBurgerMenuBasedOnSideNav();\n this.mutationObserver.observe(this.sideNav, { attributeFilter: ['open', 'rail'], attributes: true });\n }\n }\n\n render() {\n const hasNavigation = this.hasSlotController.test('navigation');\n const showBurgerMenu = this.burgerMenu !== 'hidden';\n return html`\n <header\n class=${classMap({\n header: true,\n 'header--has-burger-menu': showBurgerMenu,\n 'header--has-navigation': hasNavigation,\n })}\n part=\"base\"\n >\n <!-- .header__content -->\n <div part=\"content\" class=\"header__content\">\n\n ${showBurgerMenu\n ? html`\n <button\n aria-label=${this.localize.term(this.burgerMenu === 'closed' ? 'openMenu' : 'closeMenu')}\n class=\"header__burger-menu-toggle\"\n @click=${this.handleBurgerMenuToggle}\n part=\"burger-menu-toggle-button\"\n type=\"button\"\n >\n ${this.burgerMenu === 'open'\n ? html`\n <slot name=\"open-burger-menu-icon\">\n <syn-icon name=\"x-lg\" library=\"system\"></syn-icon>\n </slot>\n `\n : html`\n <slot name=\"closed-burger-menu-icon\">\n <syn-icon name=\"menu\" library=\"system\"></syn-icon>\n </slot>\n `}\n </button>\n `\n : ''}\n\n <div part=\"logo\" class=\"header__logo\">\n <slot name=\"logo\">\n <syn-icon name=\"logo-color\" library=\"system\" label=\"SICK Sensor Intelligence\"></syn-icon>\n </slot>\n </div>\n\n <div part=\"label\" class=\"header__label\">\n <slot name=\"label\">\n ${this.label}\n </slot>\n </div>\n\n <div part=\"meta-navigation\" class=\"header__meta-navigation\">\n <slot name=\"meta-navigation\"></slot>\n </div>\n </div>\n <!-- /.header__content -->\n\n <div part=\"navigation\" class=\"header__navigation\">\n <slot name=\"navigation\"></slot>\n </div>\n </header>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,UAAU,aAAa;AAyChC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAUE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,QAAQ,SAAS,mBAAmB,YAAY;AAE9H,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAU3C,iBAAQ;AAUmC,sBAA2C;AAAA;AAAA,EAO1F,mBAAmB;AACzB,YAAQ,KAAK,YAAY;AAAA,MACzB,KAAK;AAAU,aAAK,aAAa;AAAQ;AAAA,MACzC,KAAK;AAAQ,aAAK,aAAa;AAAU;AAAA,MACzC;AAAS;AAAA,IACT;AAAA,EACF;AAAA,EAEQ,yBAAyB;AAE/B,QAAI,KAAK,WAAW,CAAC,KAAK,QAAQ,MAAM;AACtC,WAAK,QAAQ,OAAO,CAAC,KAAK,QAAQ;AAAA,IACpC;AACA,SAAK,iBAAiB;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMQ,iCAAiC;AACvC,QAAI,KAAK,SAAS;AAEhB,UAAI,KAAK,QAAQ,MAAM;AACrB,aAAK,aAAa;AAAA,MACpB,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AAA,4BAKA;AAAA;AAAA;AAAA;AAAA,yBAIC;AAAA;AAAA,oBAGT,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAUF,KAAK,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAexB;AACF;AApLqB,UACZ,SAAyB;AAAA,EAC9B;AAAA,EACA;AACF;AAJmB,UAMZ,eAAe;AAAA,EACpB,YAAY;AACd;AAcY;AAAA,EAAX,SAAS;AAAA,GAtBS,UAsBP;AAU2C;AAAA,EAAtD,SAAS,EAAE,WAAW,eAAe,SAAS,KAAK,CAAC;AAAA,GAhClC,UAgCoC;AAKtC;AAAA,EAAhB,MAAM;AAAA,GArCY,UAqCF;AAkCjB;AAAA,EADC,MAAM,cAAc,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAtEhC,UAuEnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/components/validate/validate.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var validate_styles_default = css`
|
|
4
|
+
.validate {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--syn-spacing-small);
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
validate_styles_default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=chunk.MVM3NN6Y.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/validate/validate.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n .validate {\n display: flex;\n flex-direction: column;\n gap: var(--syn-spacing-small);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -18,17 +18,19 @@ import {
|
|
|
18
18
|
} from "./chunk.HQ6QUSK7.js";
|
|
19
19
|
import {
|
|
20
20
|
SynIcon
|
|
21
|
-
} from "./chunk.
|
|
22
|
-
import {
|
|
23
|
-
watch
|
|
24
|
-
} from "./chunk.74IOULXM.js";
|
|
21
|
+
} from "./chunk.6IPI5YJJ.js";
|
|
25
22
|
import {
|
|
26
23
|
LocalizeController
|
|
27
24
|
} from "./chunk.GIU3H3J3.js";
|
|
28
25
|
import {
|
|
29
|
-
|
|
26
|
+
watch
|
|
27
|
+
} from "./chunk.74IOULXM.js";
|
|
28
|
+
import {
|
|
30
29
|
component_styles_default
|
|
31
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.NLYVOJGK.js";
|
|
31
|
+
import {
|
|
32
|
+
SynergyElement
|
|
33
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
32
34
|
import {
|
|
33
35
|
__decorateClass
|
|
34
36
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -239,4 +241,4 @@ setDefaultAnimation("details.hide", {
|
|
|
239
241
|
export {
|
|
240
242
|
SynDetails
|
|
241
243
|
};
|
|
242
|
-
//# sourceMappingURL=chunk.
|
|
244
|
+
//# sourceMappingURL=chunk.N4NBMVHY.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/details/details.component.ts"],
|
|
4
4
|
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { animateTo, shimKeyframesHeightAuto, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './details.styles.js';\nimport customStyles from './details.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Details show a brief summary and expand to show additional content.\n * @documentation https://synergy.style/components/details\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The details' main content.\n * @slot summary - The details' summary. Alternatively, you can use the `summary` attribute.\n * @slot expand-icon - Optional expand icon to use instead of the default. Works best with `<syn-icon>`.\n * @slot collapse-icon - Optional collapse icon to use instead of the default. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the details opens.\n * @event syn-after-show - Emitted after the details opens and all animations are complete.\n * @event syn-hide - Emitted when the details closes.\n * @event syn-after-hide - Emitted after the details closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart header - The header that wraps both the summary and the expand/collapse icon.\n * @csspart summary - The container that wraps the summary.\n * @csspart summary-icon - The container that wraps the expand/collapse icons.\n * @csspart content - The details content.\n *\n * @animation details.show - The animation to use when showing details. You can use `height: auto` with this animation.\n * @animation details.hide - The animation to use when hiding details. You can use `height: auto` with this animation.\n */\nexport default class SynDetails extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n static dependencies = {\n 'syn-icon': SynIcon\n };\n\n private readonly localize = new LocalizeController(this);\n\n @query('.details') details: HTMLDetailsElement;\n @query('.details__header') header: HTMLElement;\n @query('.details__body') body: HTMLElement;\n @query('.details__expand-icon-slot') expandIconSlot: HTMLSlotElement;\n\n detailsObserver: MutationObserver;\n\n /**\n * Indicates whether or not the details is open. You can toggle this attribute to show and hide the details, or you\n * can use the `show()` and `hide()` methods and this attribute will reflect the details' open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** The summary to show in the header. If you need to display HTML, use the `summary` slot instead. */\n @property() summary: string;\n\n /** Disables the details so it can't be toggled. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the details as contained element. */\n @property({ type: Boolean, reflect: true }) contained = false;\n\n /** The details's size. */\n @property({ reflect: true }) size: 'medium' | 'large' = 'medium';\n\n firstUpdated() {\n this.body.style.height = this.open ? 'auto' : '0';\n if (this.open) {\n this.details.open = true;\n }\n\n this.detailsObserver = new MutationObserver(changes => {\n for (const change of changes) {\n if (change.type === 'attributes' && change.attributeName === 'open') {\n if (this.details.open) {\n this.show();\n } else {\n this.hide();\n }\n }\n }\n });\n this.detailsObserver.observe(this.details, { attributes: true });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.detailsObserver?.disconnect();\n }\n\n private handleSummaryClick(event: MouseEvent) {\n event.preventDefault();\n\n if (!this.disabled) {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n this.header.focus();\n }\n }\n\n private handleSummaryKeyDown(event: KeyboardEvent) {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.hide();\n }\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {\n event.preventDefault();\n this.show();\n }\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n this.details.open = true;\n // Show\n const slShow = this.emit('syn-show', { cancelable: true });\n if (slShow.defaultPrevented) {\n this.open = false;\n this.details.open = false;\n return;\n }\n\n await stopAnimations(this.body);\n\n const { keyframes, options } = getAnimation(this, 'details.show', { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = 'auto';\n\n this.emit('syn-after-show');\n } else {\n // Hide\n const slHide = this.emit('syn-hide', { cancelable: true });\n if (slHide.defaultPrevented) {\n this.details.open = true;\n this.open = true;\n return;\n }\n\n await stopAnimations(this.body);\n\n const { keyframes, options } = getAnimation(this, 'details.hide', { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = 'auto';\n\n this.details.open = false;\n this.emit('syn-after-hide');\n }\n }\n\n /** Shows the details. */\n async show() {\n if (this.open || this.disabled) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the details */\n async hide() {\n if (!this.open || this.disabled) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n render() {\n return html`\n <details\n part=\"base\"\n class=${classMap({\n details: true,\n 'details--size-medium': this.size === 'medium',\n 'details--size-large': this.size === 'large',\n 'details--open': this.open,\n 'details--disabled': this.disabled,\n 'details--contained': this.contained,\n })}\n >\n <summary\n part=\"header\"\n id=\"header\"\n class=\"details__header\"\n role=\"button\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-controls=\"content\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n tabindex=${this.disabled ? '-1' : '0'}\n @click=${this.handleSummaryClick}\n @keydown=${this.handleSummaryKeyDown}\n >\n <slot name=\"summary\" part=\"summary\" class=\"details__summary\">${this.summary}</slot>\n\n <span part=\"summary-icon\" class=\"details__summary-icon\">\n <slot name=\"expand-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n <slot name=\"collapse-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n </span>\n </summary>\n\n <div class=\"details__body\" role=\"region\" aria-labelledby=\"header\">\n <slot part=\"content\" id=\"content\" class=\"details__content\"></slot>\n </div>\n </details>\n `;\n }\n}\n\nsetDefaultAnimation('details.show', {\n keyframes: [\n { height: '0', opacity: '0' },\n { height: 'auto', opacity: '1' }\n ],\n options: { duration: 250, easing: 'linear' }\n});\n\nsetDefaultAnimation('details.hide', {\n keyframes: [\n { height: 'auto', opacity: '1' },\n { height: '0', opacity: '0' }\n ],\n options: { duration: 250, easing: 'linear' }\n});\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;AAqChC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAAvD;AAAA;AAOE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAaX,gBAAO;AAMP,oBAAW;AAGX,qBAAY;AAG3B,gBAA2B;AAAA;AAAA,EAExD,eAAe;AACb,SAAK,KAAK,MAAM,SAAS,KAAK,OAAO,SAAS;AAC9C,QAAI,KAAK,MAAM;AACb,WAAK,QAAQ,OAAO;AAAA,IACtB;AAEA,SAAK,kBAAkB,IAAI,iBAAiB,aAAW;AACrD,iBAAW,UAAU,SAAS;AAC5B,YAAI,OAAO,SAAS,gBAAgB,OAAO,kBAAkB,QAAQ;AACnE,cAAI,KAAK,QAAQ,MAAM;AACrB,iBAAK,KAAK;AAAA,UACZ,OAAO;AACL,iBAAK,KAAK;AAAA,UACZ;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAC;AACD,SAAK,gBAAgB,QAAQ,KAAK,SAAS,EAAE,YAAY,KAAK,CAAC;AAAA,EACjE;AAAA,EAEA,uBAAuB;AAxGzB;AAyGI,UAAM,qBAAqB;AAC3B,eAAK,oBAAL,mBAAsB;AAAA,EACxB;AAAA,EAEQ,mBAAmB,OAAmB;AAC5C,UAAM,eAAe;AAErB,QAAI,CAAC,KAAK,UAAU;AAClB,UAAI,KAAK,MAAM;AACb,aAAK,KAAK;AAAA,MACZ,OAAO;AACL,aAAK,KAAK;AAAA,MACZ;AACA,WAAK,OAAO,MAAM;AAAA,IACpB;AAAA,EACF;AAAA,EAEQ,qBAAqB,OAAsB;AACjD,QAA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|
|
10
|
+
import {
|
|
11
|
+
SynAlert
|
|
12
|
+
} from "./chunk.OMVVPU3N.js";
|
|
13
|
+
import {
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.74IOULXM.js";
|
|
16
|
+
import {
|
|
17
|
+
component_styles_default
|
|
18
|
+
} from "./chunk.NLYVOJGK.js";
|
|
19
|
+
import {
|
|
20
|
+
SynergyElement
|
|
21
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
22
|
+
import {
|
|
23
|
+
__decorateClass
|
|
24
|
+
} from "./chunk.2GFK6XTO.js";
|
|
25
|
+
|
|
26
|
+
// src/components/validate/validate.component.ts
|
|
27
|
+
import { html } from "lit";
|
|
28
|
+
import { property, queryAssignedElements, state } from "lit/decorators.js";
|
|
29
|
+
var SynValidate = class extends SynergyElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.controller = new AbortController();
|
|
33
|
+
this.validationMessage = "";
|
|
34
|
+
this.eagerFirstMount = true;
|
|
35
|
+
this.isInternalTriggeredInvalid = false;
|
|
36
|
+
this.isValid = true;
|
|
37
|
+
this.variant = "native";
|
|
38
|
+
this.hideIcon = false;
|
|
39
|
+
this.on = "";
|
|
40
|
+
this.customValidationMessage = "";
|
|
41
|
+
this.eager = false;
|
|
42
|
+
/**
|
|
43
|
+
* Set the validation message from the input element
|
|
44
|
+
* @param e The event that was received
|
|
45
|
+
*/
|
|
46
|
+
this.internalRevalidate = (e) => {
|
|
47
|
+
var _a;
|
|
48
|
+
const input = e.currentTarget;
|
|
49
|
+
if ((_a = input.validity) == null ? void 0 : _a.valid) {
|
|
50
|
+
this.validationMessage = "";
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Triggers a validation run, showing the validation message if needed.
|
|
55
|
+
*/
|
|
56
|
+
// eslint-disable-next-line complexity
|
|
57
|
+
this.validate = (e) => {
|
|
58
|
+
var _a;
|
|
59
|
+
if (isInvalidEvent(e.type) && this.variant === "native" && this.isInternalTriggeredInvalid === true) {
|
|
60
|
+
this.isInternalTriggeredInvalid = false;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (isInvalidEvent(e.type) && this.variant !== "native") {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
e.stopPropagation();
|
|
66
|
+
}
|
|
67
|
+
const input = e.currentTarget;
|
|
68
|
+
this.isValid = (_a = input.validity) == null ? void 0 : _a.valid;
|
|
69
|
+
if (this.eager && this.eagerFirstMount) {
|
|
70
|
+
this.eagerFirstMount = false;
|
|
71
|
+
this.setValidationMessage(input);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (!this.isValid && !isBlurEvent(e.type)) {
|
|
75
|
+
this.handleFocus(input);
|
|
76
|
+
}
|
|
77
|
+
this.setValidationMessage(input);
|
|
78
|
+
if (!isBlurEvent(e.type) && this.variant === "native") {
|
|
79
|
+
this.updateComplete.then(() => {
|
|
80
|
+
this.isInternalTriggeredInvalid = true;
|
|
81
|
+
input.reportValidity();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
handleListenerChange() {
|
|
87
|
+
this.updateEvents();
|
|
88
|
+
}
|
|
89
|
+
async handleEagerChange() {
|
|
90
|
+
if (this.eager) {
|
|
91
|
+
const input = this.getInput();
|
|
92
|
+
await this.updateComplete;
|
|
93
|
+
input == null ? void 0 : input.reportValidity();
|
|
94
|
+
this.eagerFirstMount = true;
|
|
95
|
+
} else {
|
|
96
|
+
this.eagerFirstMount = false;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
handleCustomValidationMessageChange() {
|
|
100
|
+
const input = this.getInput();
|
|
101
|
+
if (input) {
|
|
102
|
+
this.setCustomValidationMessage(input);
|
|
103
|
+
this.setValidationMessage(input);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Returns the validity state of the input component.
|
|
108
|
+
* `true` for valid and `false` for invalid.
|
|
109
|
+
*/
|
|
110
|
+
getValidity() {
|
|
111
|
+
return this.isValid;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Get the input element to validate. Defined as the first slotted element
|
|
115
|
+
* @returns The input element or undefined if not found
|
|
116
|
+
*/
|
|
117
|
+
getInput() {
|
|
118
|
+
const input = this.slottedChildren[0];
|
|
119
|
+
return input ? input : void 0;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Get the event names to listen for.
|
|
123
|
+
* If the input is a synergy element, will use syn- prefixes.
|
|
124
|
+
* @returns The event names to listen for
|
|
125
|
+
*/
|
|
126
|
+
// eslint-disable-next-line complexity
|
|
127
|
+
getUsedEventNames() {
|
|
128
|
+
const input = this.getInput();
|
|
129
|
+
if (!input) {
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
132
|
+
const on = normalizeEventAttribute(this.on);
|
|
133
|
+
const [...events] = on.filter(Boolean);
|
|
134
|
+
if (!events.includes("invalid")) {
|
|
135
|
+
events.push("invalid");
|
|
136
|
+
}
|
|
137
|
+
if (events.includes("live")) {
|
|
138
|
+
events.push("input");
|
|
139
|
+
events.push("blur");
|
|
140
|
+
}
|
|
141
|
+
return Array.from(new Set(
|
|
142
|
+
events.filter((e) => e !== "live").map((e) => getEventNameForElement(input, e))
|
|
143
|
+
));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Update the events on the input element.
|
|
147
|
+
*/
|
|
148
|
+
updateEvents() {
|
|
149
|
+
this.controller.abort();
|
|
150
|
+
this.controller = new AbortController();
|
|
151
|
+
const input = this.getInput();
|
|
152
|
+
if (!input) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const events = this.getUsedEventNames();
|
|
156
|
+
events.forEach((eventName) => {
|
|
157
|
+
input.addEventListener(eventName, this.validate, {
|
|
158
|
+
capture: isInvalidEvent(eventName),
|
|
159
|
+
signal: this.controller.signal
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
const usedChangeEvent = getEventNameForElement(input, "change");
|
|
163
|
+
if (!events.includes(usedChangeEvent)) {
|
|
164
|
+
input.addEventListener(usedChangeEvent, this.internalRevalidate, {
|
|
165
|
+
signal: this.controller.signal
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
setValidationMessage(input) {
|
|
170
|
+
const { customValidationMessage } = this;
|
|
171
|
+
const validationMessage = customValidationMessage || input.validationMessage;
|
|
172
|
+
this.validationMessage = validationMessage;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Set the custom validation message to the input. This will make sure to either:
|
|
176
|
+
* - use the custom message if one is set or
|
|
177
|
+
* - use the default message if the custom message is empty
|
|
178
|
+
*/
|
|
179
|
+
setCustomValidationMessage(input) {
|
|
180
|
+
input.setCustomValidity(this.customValidationMessage);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Handle the blur event during validation
|
|
184
|
+
*/
|
|
185
|
+
// eslint-disable-next-line class-methods-use-this
|
|
186
|
+
handleFocus(input) {
|
|
187
|
+
var _a;
|
|
188
|
+
const activeElement = document.activeElement;
|
|
189
|
+
const activeElementIsWrapped = activeElement.closest("syn-validate");
|
|
190
|
+
if (!((_a = activeElement.validity) == null ? void 0 : _a.valid) && activeElementIsWrapped) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
input.scrollIntoView({ block: "nearest" });
|
|
194
|
+
input.focus();
|
|
195
|
+
}
|
|
196
|
+
async firstUpdated() {
|
|
197
|
+
var _a, _b;
|
|
198
|
+
this.updateEvents();
|
|
199
|
+
if (this.eager) {
|
|
200
|
+
const input = this.getInput();
|
|
201
|
+
await this.updateComplete;
|
|
202
|
+
this.isValid = (_b = (_a = input == null ? void 0 : input.validity) == null ? void 0 : _a.valid) != null ? _b : false;
|
|
203
|
+
input == null ? void 0 : input.reportValidity();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
disconnectedCallback() {
|
|
207
|
+
super.disconnectedCallback();
|
|
208
|
+
this.controller.abort();
|
|
209
|
+
}
|
|
210
|
+
renderInlineValidation() {
|
|
211
|
+
if (this.variant !== "inline" || !this.validationMessage) {
|
|
212
|
+
return "";
|
|
213
|
+
}
|
|
214
|
+
return html`
|
|
215
|
+
<syn-alert
|
|
216
|
+
open
|
|
217
|
+
exportparts="base:alert__base,message:alert__message,icon:alert__icon"
|
|
218
|
+
part="alert"
|
|
219
|
+
variant="danger"
|
|
220
|
+
>
|
|
221
|
+
${!this.hideIcon ? html`<syn-icon slot="icon" name="error" library="system"></syn-icon>` : ""}
|
|
222
|
+
${this.validationMessage}
|
|
223
|
+
</syn-alert>
|
|
224
|
+
`;
|
|
225
|
+
}
|
|
226
|
+
render() {
|
|
227
|
+
return html`
|
|
228
|
+
<div
|
|
229
|
+
class="validate"
|
|
230
|
+
part="base"
|
|
231
|
+
>
|
|
232
|
+
<slot
|
|
233
|
+
class="validate__input-wrapper"
|
|
234
|
+
part="input-wrapper"
|
|
235
|
+
></slot>
|
|
236
|
+
|
|
237
|
+
${this.renderInlineValidation()}
|
|
238
|
+
</div>
|
|
239
|
+
`;
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
SynValidate.styles = [component_styles_default, validate_styles_default];
|
|
243
|
+
SynValidate.dependencies = {
|
|
244
|
+
"syn-alert": SynAlert
|
|
245
|
+
};
|
|
246
|
+
__decorateClass([
|
|
247
|
+
queryAssignedElements()
|
|
248
|
+
], SynValidate.prototype, "slottedChildren", 2);
|
|
249
|
+
__decorateClass([
|
|
250
|
+
state()
|
|
251
|
+
], SynValidate.prototype, "validationMessage", 2);
|
|
252
|
+
__decorateClass([
|
|
253
|
+
state()
|
|
254
|
+
], SynValidate.prototype, "eagerFirstMount", 2);
|
|
255
|
+
__decorateClass([
|
|
256
|
+
state()
|
|
257
|
+
], SynValidate.prototype, "isInternalTriggeredInvalid", 2);
|
|
258
|
+
__decorateClass([
|
|
259
|
+
state()
|
|
260
|
+
], SynValidate.prototype, "isValid", 2);
|
|
261
|
+
__decorateClass([
|
|
262
|
+
property({ reflect: true })
|
|
263
|
+
], SynValidate.prototype, "variant", 2);
|
|
264
|
+
__decorateClass([
|
|
265
|
+
property({ attribute: "hide-icon", reflect: true, type: Boolean })
|
|
266
|
+
], SynValidate.prototype, "hideIcon", 2);
|
|
267
|
+
__decorateClass([
|
|
268
|
+
property({ reflect: true })
|
|
269
|
+
], SynValidate.prototype, "on", 2);
|
|
270
|
+
__decorateClass([
|
|
271
|
+
property({ attribute: "custom-validation-message", type: String })
|
|
272
|
+
], SynValidate.prototype, "customValidationMessage", 2);
|
|
273
|
+
__decorateClass([
|
|
274
|
+
property({ type: Boolean })
|
|
275
|
+
], SynValidate.prototype, "eager", 2);
|
|
276
|
+
__decorateClass([
|
|
277
|
+
watch("on", { waitUntilFirstUpdate: true })
|
|
278
|
+
], SynValidate.prototype, "handleListenerChange", 1);
|
|
279
|
+
__decorateClass([
|
|
280
|
+
watch("eager", { waitUntilFirstUpdate: false })
|
|
281
|
+
], SynValidate.prototype, "handleEagerChange", 1);
|
|
282
|
+
__decorateClass([
|
|
283
|
+
watch("customValidationMessage", { waitUntilFirstUpdate: true })
|
|
284
|
+
], SynValidate.prototype, "handleCustomValidationMessageChange", 1);
|
|
285
|
+
|
|
286
|
+
export {
|
|
287
|
+
SynValidate
|
|
288
|
+
};
|
|
289
|
+
//# sourceMappingURL=chunk.N4ZA77ZV.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/validate/validate.component.ts"],
|
|
4
|
+
"sourcesContent": ["import type { CSSResultGroup } from 'lit';\nimport { html } from 'lit';\nimport { property, queryAssignedElements, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { watch } from '../../internal/watch.js';\nimport SynAlert from '../alert/alert.component.js';\nimport {\n getEventNameForElement,\n isBlurEvent,\n isInvalidEvent,\n normalizeEventAttribute,\n} from './utility.js';\nimport styles from './validate.styles.js';\n\n/**\n * @summary Validate provides form field validation messages in a unified way.\n * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and showing the validation message in a consistent, user defined way.\n *\n * @dependency syn-alert\n *\n * @slot - The form field that should be validated.\n * Avoid slotting in more than one element, as subsequent ones will be ignored.\n *\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the form field.\n * @csspart alert - The syn-alert that is shown when the variant is set to \"inline\".\n * @csspart alert__base - The container that wraps the alert.\n * @csspart alert__message - The container that wraps the alert message.\n * @csspart alert__icon - The container that wraps the alert icon.\n */\nexport default class SynValidate extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-alert': SynAlert,\n };\n\n controller = new AbortController();\n\n @queryAssignedElements() private slottedChildren: HTMLElement[];\n\n @state() validationMessage = '';\n\n @state() eagerFirstMount = true;\n\n @state() isInternalTriggeredInvalid = false;\n\n @state() isValid = true;\n\n /**\n * The variant that should be used to show validation alerts.\n *\n * The following variants are supported:\n * - **native** (default): Uses the native browser validation, usually a browser tooltip.\n * - **inline**: Show the validation message underneath the element, using a `<syn-alert>`\n */\n @property({ reflect: true }) variant: 'native' | 'inline' = 'native';\n\n /** Do not show the error icon when using the inline variant validation */\n @property({ attribute: 'hide-icon', reflect: true, type: Boolean }) hideIcon = false;\n\n /**\n * Defines the events that trigger the validation.\n * `invalid` will always automatically be included.\n * You may also use the `live` keyword to validate on every input change.\n * `live` will make sure to listen to the `invalid`, `input` and `blur` events.\n *\n * Please have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.\n *\n * @example ```html\n * <!-- Validate on invalid and change events (invalid, change) -->\n * <syn-validate on=\"invalid change\"></syn-validate>\n *\n * <!-- Validate on live events (invalid, blur, input)-->\n * <syn-validate on=\"live\"></syn-validate>\n *\n * <!-- Validate on live and custom events (invalid, blur, input, focus, change) -->\n * <syn-validate on=\"live focus change\"></syn-validate>\n * ```\n */\n @property({ reflect: true }) on: string = '';\n\n /**\n * Custom validation message to be displayed when the input is invalid.\n * Will override the default browser validation message.\n * Set to an empty string to reset the validation message.\n */\n @property({ attribute: 'custom-validation-message', type: String }) customValidationMessage = '';\n\n /**\n * Set this to true to validate the input immediately when it is rendered.\n * Best used with a `variant` of `inline`.\n * When setting eager, the input will not be focused automatically.\n *\n * When using a `variant` of `native` the browser will focus\n * the last eager field as it is using a tooltip.\n * In this case it is better to just provide one eager field.\n */\n @property({ type: Boolean }) eager = false;\n\n // Automatically refresh all event listeners when the on property changes.\n @watch('on', { waitUntilFirstUpdate: true })\n handleListenerChange() {\n this.updateEvents();\n }\n\n @watch('eager', { waitUntilFirstUpdate: false })\n async handleEagerChange() {\n if (this.eager) {\n const input = this.getInput();\n await this.updateComplete;\n input?.reportValidity();\n this.eagerFirstMount = true;\n } else {\n this.eagerFirstMount = false;\n }\n }\n\n // Synchronize the validation message on the wrapped input with the custom message\n @watch('customValidationMessage', { waitUntilFirstUpdate: true })\n handleCustomValidationMessageChange() {\n const input = this.getInput();\n if (input) {\n this.setCustomValidationMessage(input);\n this.setValidationMessage(input);\n }\n }\n\n /**\n * Returns the validity state of the input component.\n * `true` for valid and `false` for invalid.\n */\n getValidity() {\n return this.isValid;\n }\n\n /**\n * Get the input element to validate. Defined as the first slotted element\n * @returns The input element or undefined if not found\n */\n private getInput() {\n const input = this.slottedChildren[0];\n return input ? input as HTMLInputElement : undefined;\n }\n\n /**\n * Get the event names to listen for.\n * If the input is a synergy element, will use syn- prefixes.\n * @returns The event names to listen for\n */\n // eslint-disable-next-line complexity\n private getUsedEventNames() {\n const input = this.getInput();\n\n // If there is no input, skip before doing any harm\n if (!input) {\n return [];\n }\n\n // Make sure to always use an array of events\n // This is needed because on may be a special value like \"live\"\n const on = normalizeEventAttribute(this.on);\n\n // Filter makes sure to remove empty values, e.g.\n // <syn-validate on=\"\"></syn-validate>\n const [...events] = on.filter(Boolean);\n\n // Make sure to always have an invalid event\n if (!events.includes('invalid')) {\n events.push('invalid');\n }\n\n // Special handling for the live keyword:\n // live always means on input and blur\n if (events.includes('live')) {\n events.push('input');\n events.push('blur');\n }\n\n // Make sure to remove duplicated events and the live property\n // and map the events to the correct event names\n return Array.from(new Set(\n events\n .filter(e => e !== 'live')\n .map(e => getEventNameForElement(input, e)),\n ));\n }\n\n /**\n * Update the events on the input element.\n */\n private updateEvents() {\n this.controller.abort();\n this.controller = new AbortController();\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const events = this.getUsedEventNames();\n events.forEach(eventName => {\n input.addEventListener(eventName, this.validate, {\n capture: isInvalidEvent(eventName),\n signal: this.controller.signal,\n });\n });\n\n // If the change event is not included,\n // make sure to attach a custom listener that resets the validation message\n // This is needed as the custom message may be set on change\n const usedChangeEvent = getEventNameForElement(input, 'change');\n if (!events.includes(usedChangeEvent)) {\n input.addEventListener(usedChangeEvent, this.internalRevalidate, {\n signal: this.controller.signal,\n });\n }\n }\n\n private setValidationMessage(input: HTMLInputElement) {\n const { customValidationMessage } = this;\n const validationMessage = customValidationMessage || input.validationMessage;\n this.validationMessage = validationMessage;\n }\n\n /**\n * Set the custom validation message to the input. This will make sure to either:\n * - use the custom message if one is set or\n * - use the default message if the custom message is empty\n */\n private setCustomValidationMessage(input: HTMLInputElement) {\n // Set the custom validation message on the input only once, when the customValidationMessage\n // is changed. Otherwise there could be problems with `variant=\"native\"` and `on=\"live\"` or\n // `on=\"blur\"`, because the browser popup will never disappear even if clicking somewhere else.\n input.setCustomValidity(this.customValidationMessage);\n }\n\n /**\n * Set the validation message from the input element\n * @param e The event that was received\n */\n private internalRevalidate = (e: Event) => {\n const input = e.currentTarget as HTMLInputElement;\n if (input.validity?.valid) {\n this.validationMessage = '';\n }\n };\n\n /**\n * Handle the blur event during validation\n */\n // eslint-disable-next-line class-methods-use-this\n private handleFocus(input: HTMLInputElement) {\n const activeElement = document.activeElement! as HTMLInputElement;\n const activeElementIsWrapped = activeElement.closest('syn-validate');\n\n if (!activeElement.validity?.valid && activeElementIsWrapped) {\n // The active element is invalid do not scroll\n return;\n }\n\n input.scrollIntoView({ block: 'nearest' });\n input.focus();\n }\n\n /**\n * Triggers a validation run, showing the validation message if needed.\n */\n // eslint-disable-next-line complexity\n private validate = (e: Event) => {\n // Make sure to stop the validate component from going into an endless cycle of triggering\n if (isInvalidEvent(e.type) && this.variant === 'native' && this.isInternalTriggeredInvalid === true) {\n this.isInternalTriggeredInvalid = false;\n return;\n }\n\n // Make sure to always prevent the invalid event when not using native validation\n if (isInvalidEvent(e.type) && this.variant !== 'native') {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const input = e.currentTarget as HTMLInputElement;\n this.isValid = input.validity?.valid;\n\n // When we are using eager, make sure to skip focus on the first mount\n if (this.eager && this.eagerFirstMount) {\n this.eagerFirstMount = false;\n this.setValidationMessage(input);\n return;\n }\n\n // If the active element that has focus is placed in a validate component,\n // make sure to not loose focus.\n if (!this.isValid && !isBlurEvent(e.type)) {\n this.handleFocus(input);\n }\n\n this.setValidationMessage(input);\n\n // Trigger reportValidity when using native validation, so the browser popup is also shown\n // for other events than `invalid`. All events except the blur event, should trigger this.\n if (!isBlurEvent(e.type) && this.variant === 'native') {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.isInternalTriggeredInvalid = true;\n input.reportValidity();\n });\n }\n };\n\n async firstUpdated() {\n this.updateEvents();\n\n // Make sure to run validation on mount if eager is set\n if (this.eager) {\n const input = this.getInput();\n await this.updateComplete;\n this.isValid = input?.validity?.valid ?? false;\n input?.reportValidity();\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.controller.abort();\n }\n\n private renderInlineValidation() {\n if (this.variant !== 'inline' || !this.validationMessage) {\n return '';\n }\n\n return html`\n <syn-alert\n open\n exportparts=\"base:alert__base,message:alert__message,icon:alert__icon\"\n part=\"alert\"\n variant=\"danger\"\n >\n ${!this.hideIcon\n ? html`<syn-icon slot=\"icon\" name=\"error\" library=\"system\"></syn-icon>`\n : ''\n }\n ${this.validationMessage}\n </syn-alert>\n `;\n }\n\n render() {\n return html`\n <div\n class=\"validate\"\n part=\"base\"\n >\n <slot\n class=\"validate__input-wrapper\"\n part=\"input-wrapper\"\n ></slot>\n \n ${this.renderInlineValidation()}\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,YAAY;AACrB,SAAS,UAAU,uBAAuB,aAAa;AA8BvD,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAAA;AAOE,sBAAa,IAAI,gBAAgB;AAIxB,6BAAoB;AAEpB,2BAAkB;AAElB,sCAA6B;AAE7B,mBAAU;AASU,mBAA+B;AAGQ,oBAAW;AAsBlD,cAAa;AAO0B,mCAA0B;AAWjE,iBAAQ;AA+IrC;AAAA;AAAA;AAAA;AAAA,SAAQ,qBAAqB,CAAC,MAAa;AApP7C;AAqPI,YAAM,QAAQ,EAAE;AAChB,WAAI,WAAM,aAAN,mBAAgB,OAAO;AACzB,aAAK,oBAAoB;AAAA,MAC3B;AAAA,IACF;AAuBA;AAAA;AAAA;AAAA;AAAA,SAAQ,WAAW,CAAC,MAAa;AAhRnC;AAkRI,UAAI,eAAe,EAAE,IAAI,KAAK,KAAK,YAAY,YAAY,KAAK,+BAA+B,MAAM;AACnG,aAAK,6BAA6B;AAClC;AAAA,MACF;AAGA,UAAI,eAAe,EAAE,IAAI,KAAK,KAAK,YAAY,UAAU;AACvD,UAAE,eAAe;AACjB,UAAE,gBAAgB;AAAA,MACpB;AAEA,YAAM,QAAQ,EAAE;AAChB,WAAK,WAAU,WAAM,aAAN,mBAAgB;AAG/B,UAAI,KAAK,SAAS,KAAK,iBAAiB;AACtC,aAAK,kBAAkB;AACvB,aAAK,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D;AAsBvC;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAnDR,YAmDU;AAOuC;AAAA,EAAnE,SAAS,EAAE,WAAW,6BAA6B,MAAM,OAAO,CAAC;AAAA,GA1D/C,YA0DiD;AAWvC;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GArER,YAqEU;AAI7B;AAAA,EADC,MAAM,MAAM,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAxExB,YAyEnB;AAKM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,MAAM,CAAC;AAAA,GA7E5B,YA8Eb;AAaN;AAAA,EADC,MAAM,2BAA2B,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1F7C,YA2FnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTooltip
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ACSAJN57.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tooltip/tooltip.ts
|
|
6
6
|
var tooltip_default = SynTooltip;
|
|
@@ -9,4 +9,4 @@ SynTooltip.define("syn-tooltip");
|
|
|
9
9
|
export {
|
|
10
10
|
tooltip_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.NBBH4EMX.js.map
|