@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRangeTick
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.YMXGU2DZ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/range-tick/range-tick.ts
|
|
6
6
|
var range_tick_default = SynRangeTick;
|
|
@@ -9,4 +9,4 @@ SynRangeTick.define("syn-range-tick");
|
|
|
9
9
|
export {
|
|
10
10
|
range_tick_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.HVGL244L.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRange
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.43EAE2QI.js";
|
|
4
4
|
|
|
5
5
|
// src/components/range/range.ts
|
|
6
6
|
var range_default = SynRange;
|
|
@@ -9,4 +9,4 @@ SynRange.define("syn-range");
|
|
|
9
9
|
export {
|
|
10
10
|
range_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.IA6JFXGQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCombobox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.GI2NYM36.js";
|
|
4
4
|
|
|
5
5
|
// src/components/combobox/combobox.ts
|
|
6
6
|
var combobox_default = SynCombobox;
|
|
@@ -9,4 +9,4 @@ SynCombobox.define("syn-combobox");
|
|
|
9
9
|
export {
|
|
10
10
|
combobox_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.IAX5P4YW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynOption
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.HQCHFTWQ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/option/option.ts
|
|
6
6
|
var option_default = SynOption;
|
|
@@ -9,4 +9,4 @@ SynOption.define("syn-option");
|
|
|
9
9
|
export {
|
|
10
10
|
option_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.INJM3DAJ.js.map
|
|
@@ -2,9 +2,11 @@ import {
|
|
|
2
2
|
popup_styles_default
|
|
3
3
|
} from "./chunk.AZ3N5IOO.js";
|
|
4
4
|
import {
|
|
5
|
-
SynergyElement,
|
|
6
5
|
component_styles_default
|
|
7
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.NLYVOJGK.js";
|
|
7
|
+
import {
|
|
8
|
+
SynergyElement
|
|
9
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
8
10
|
import {
|
|
9
11
|
__decorateClass,
|
|
10
12
|
__spreadProps,
|
|
@@ -409,4 +411,4 @@ __decorateClass([
|
|
|
409
411
|
export {
|
|
410
412
|
SynPopup
|
|
411
413
|
};
|
|
412
|
-
//# sourceMappingURL=chunk.
|
|
414
|
+
//# sourceMappingURL=chunk.IOYGNDRB.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/popup/popup.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 { arrow, autoUpdate, computePosition, flip, offset, platform, shift, size } from '@floating-ui/dom';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { offsetParent } from 'composed-offset-position';\nimport { property, query } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './popup.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nexport interface VirtualElement {\n getBoundingClientRect: () => DOMRect;\n contextElement?: Element;\n}\n\nfunction isVirtualElement(e: unknown): e is VirtualElement {\n return (\n e !== null &&\n typeof e === 'object' &&\n 'getBoundingClientRect' in e &&\n ('contextElement' in e ? e instanceof Element : true)\n );\n}\n\n/**\n * @summary Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n * @documentation https://synergy.style/components/popup\n * @status stable\n * @since 2.0\n *\n * @event syn-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive\n * operations in your listener or consider debouncing it.\n *\n * @slot - The popup's content.\n * @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the\n * `anchor` attribute or property instead.\n *\n * @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are\n * assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and\n * maybe a border or box shadow.\n * @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.\n * @csspart hover-bridge - The hover bridge element. Only available when the `hover-bridge` option is enabled.\n *\n * @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`\n * attribute is used.\n * @cssproperty [--arrow-color=var(--syn-color-neutral-0)] - The color of the arrow.\n * @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n * @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n */\nexport default class SynPopup extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n private anchorEl: Element | VirtualElement | null;\n private cleanup: ReturnType<typeof autoUpdate> | undefined;\n\n /** A reference to the internal popup container. Useful for animating and styling the popup with JavaScript. */\n @query('.popup') popup: HTMLElement;\n @query('.popup__arrow') private arrowEl: HTMLElement;\n\n /**\n * The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor\n * element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the\n * `anchor` slot instead.\n */\n @property() anchor: Element | string | VirtualElement;\n\n /**\n * Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\n * down and the popup will be hidden.\n */\n @property({ type: Boolean, reflect: true }) active = false;\n\n /**\n * The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\n * panel inside of the viewport.\n */\n @property({ reflect: true }) placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'top';\n\n /**\n * Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is\n * clipped, using a `fixed` position strategy can often workaround it.\n */\n @property({ reflect: true }) strategy: 'absolute' | 'fixed' = 'absolute';\n\n /** The distance in pixels from which to offset the panel away from its anchor. */\n @property({ type: Number }) distance = 0;\n\n /** The distance in pixels from which to offset the panel along its anchor. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n * `--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n * `::part(arrow)` in your stylesheet.\n */\n @property({ type: Boolean }) arrow = false;\n\n /**\n * The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\n * anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\n * align the arrow to the start, end, or center of the popover instead.\n */\n @property({ attribute: 'arrow-placement' }) arrowPlacement: 'start' | 'end' | 'center' | 'anchor' = 'anchor';\n\n /**\n * The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\n * this will prevent it from overflowing the corners.\n */\n @property({ attribute: 'arrow-padding', type: Number }) arrowPadding = 10;\n\n /**\n * When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n * `flipFallbackPlacements` to further configure how the fallback placement is determined.\n */\n @property({ type: Boolean }) flip = false;\n\n /**\n * If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\n * string of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\n * fallback strategy will be used instead.\n * */\n @property({\n attribute: 'flip-fallback-placements',\n converter: {\n fromAttribute: (value: string) => {\n return value\n .split(' ')\n .map(p => p.trim())\n .filter(p => p !== '');\n },\n toAttribute: (value: []) => {\n return value.join(' ');\n }\n }\n })\n flipFallbackPlacements = '';\n\n /**\n * When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\n * the popup should be positioned using the best available fit based on available space or as it was initially\n * preferred.\n */\n @property({ attribute: 'flip-fallback-strategy' }) flipFallbackStrategy: 'best-fit' | 'initial' = 'best-fit';\n\n /**\n * The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) flipBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the flip behavior will occur. */\n @property({ attribute: 'flip-padding', type: Number }) flipPadding = 0;\n\n /** Moves the popup along the axis to keep it in view when clipped. */\n @property({ type: Boolean }) shift = false;\n\n /**\n * The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) shiftBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the shift behavior will occur. */\n @property({ attribute: 'shift-padding', type: Number }) shiftPadding = 0;\n\n /** When set, this will cause the popup to automatically resize itself to prevent it from overflowing. */\n @property({ attribute: 'auto-size' }) autoSize: 'horizontal' | 'vertical' | 'both';\n\n /** Syncs the popup's width or height to that of the anchor element. */\n @property() sync: 'width' | 'height' | 'both';\n\n /**\n * The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) autoSizeBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the auto-size behavior will occur. */\n @property({ attribute: 'auto-size-padding', type: Number }) autoSizePadding = 0;\n\n /**\n * When a gap exists between the anchor and the popup element, this option will add a \"hover bridge\" that fills the\n * gap using an invisible element. This makes listening for events such as `mouseenter` and `mouseleave` more sane\n * because the pointer never technically leaves the element. The hover bridge will only be drawn when the popover is\n * active.\n */\n @property({ attribute: 'hover-bridge', type: Boolean }) hoverBridge = false;\n\n async connectedCallback() {\n super.connectedCallback();\n\n // Start the positioner after the first update\n await this.updateComplete;\n this.start();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.stop();\n }\n\n async updated(changedProps: Map<string, unknown>) {\n super.updated(changedProps);\n\n // Start or stop the positioner when active changes\n if (changedProps.has('active')) {\n if (this.active) {\n this.start();\n } else {\n this.stop();\n }\n }\n\n // Update the anchor when anchor changes\n if (changedProps.has('anchor')) {\n this.handleAnchorChange();\n }\n\n // All other properties will trigger a reposition when active\n if (this.active) {\n await this.updateComplete;\n this.reposition();\n }\n }\n\n private async handleAnchorChange() {\n await this.stop();\n\n if (this.anchor && typeof this.anchor === 'string') {\n // Locate the anchor by id\n const root = this.getRootNode() as Document | ShadowRoot;\n this.anchorEl = root.getElementById(this.anchor);\n } else if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {\n // Use the anchor's reference\n this.anchorEl = this.anchor;\n } else {\n // Look for a slotted anchor\n this.anchorEl = this.querySelector<HTMLElement>('[slot=\"anchor\"]');\n }\n\n // If the anchor is a <slot>, we'll use the first assigned element as the target since slots use `display: contents`\n // and positioning can't be calculated on them\n if (this.anchorEl instanceof HTMLSlotElement) {\n this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0] as HTMLElement;\n }\n\n // If the anchor is valid, start it up\n if (this.anchorEl && this.active) {\n this.start();\n }\n }\n\n private start() {\n // We can't start the positioner without an anchor\n if (!this.anchorEl) {\n return;\n }\n\n this.cleanup = autoUpdate(this.anchorEl, this.popup, () => {\n this.reposition();\n });\n }\n\n private async stop(): Promise<void> {\n return new Promise(resolve => {\n if (this.cleanup) {\n this.cleanup();\n this.cleanup = undefined;\n this.removeAttribute('data-current-placement');\n this.style.removeProperty('--auto-size-available-width');\n this.style.removeProperty('--auto-size-available-height');\n requestAnimationFrame(() => resolve());\n } else {\n resolve();\n }\n });\n }\n\n /** Forces the popup to recalculate and reposition itself. */\n reposition() {\n // Nothing to do if the popup is inactive or the anchor doesn't exist\n if (!this.active || !this.anchorEl) {\n return;\n }\n\n //\n // NOTE: Floating UI middlewares are order dependent: https://floating-ui.com/docs/middleware\n //\n const middleware = [\n // The offset middleware goes first\n offset({ mainAxis: this.distance, crossAxis: this.skidding })\n ];\n\n // First we sync width/height\n if (this.sync) {\n middleware.push(\n size({\n apply: ({ rects }) => {\n const syncWidth = this.sync === 'width' || this.sync === 'both';\n const syncHeight = this.sync === 'height' || this.sync === 'both';\n this.popup.style.width = syncWidth ? `${rects.reference.width}px` : '';\n this.popup.style.height = syncHeight ? `${rects.reference.height}px` : '';\n }\n })\n );\n } else {\n // Cleanup styles if we're not matching width/height\n this.popup.style.width = '';\n this.popup.style.height = '';\n }\n\n // Then we flip\n if (this.flip) {\n middleware.push(\n flip({\n boundary: this.flipBoundary,\n // @ts-expect-error - We're converting a string attribute to an array here\n fallbackPlacements: this.flipFallbackPlacements,\n fallbackStrategy: this.flipFallbackStrategy === 'best-fit' ? 'bestFit' : 'initialPlacement',\n padding: this.flipPadding\n })\n );\n }\n\n // Then we shift\n if (this.shift) {\n middleware.push(\n shift({\n boundary: this.shiftBoundary,\n padding: this.shiftPadding\n })\n );\n }\n\n // Now we adjust the size as needed\n if (this.autoSize) {\n middleware.push(\n size({\n boundary: this.autoSizeBoundary,\n padding: this.autoSizePadding,\n apply: ({ availableWidth, availableHeight }) => {\n if (this.autoSize === 'vertical' || this.autoSize === 'both') {\n this.style.setProperty('--auto-size-available-height', `${availableHeight}px`);\n } else {\n this.style.removeProperty('--auto-size-available-height');\n }\n\n if (this.autoSize === 'horizontal' || this.autoSize === 'both') {\n this.style.setProperty('--auto-size-available-width', `${availableWidth}px`);\n } else {\n this.style.removeProperty('--auto-size-available-width');\n }\n }\n })\n );\n } else {\n // Cleanup styles if we're no longer using auto-size\n this.style.removeProperty('--auto-size-available-width');\n this.style.removeProperty('--auto-size-available-height');\n }\n\n // Finally, we add an arrow\n if (this.arrow) {\n middleware.push(\n arrow({\n element: this.arrowEl,\n padding: this.arrowPadding\n })\n );\n }\n\n //\n // Use custom positioning logic if the strategy is absolute. Otherwise, fall back to the default logic.\n //\n // More info: https://github.com/synergy-design-system/synergy/issues/1135\n //\n const getOffsetParent =\n this.strategy === 'absolute'\n ? (element: Element) => platform.getOffsetParent(element, offsetParent)\n : platform.getOffsetParent;\n\n computePosition(this.anchorEl, this.popup, {\n placement: this.placement,\n middleware,\n strategy: this.strategy,\n platform: {\n ...platform,\n getOffsetParent\n }\n }).then(({ x, y, middlewareData, placement }) => {\n //\n // Even though we have our own localization utility, it uses different heuristics to determine RTL. Because of\n // that, we'll use the same approach that Floating UI uses.\n //\n // Source: https://github.com/floating-ui/floating-ui/blob/cb3b6ab07f95275730d3e6e46c702f8d4908b55c/packages/dom/src/utils/getDocumentRect.ts#L31\n //\n const isRtl = this.matches(':dir(rtl)');\n const staticSide = { top: 'bottom', right: 'left', bottom: 'top', left: 'right' }[placement.split('-')[0]]!;\n\n this.setAttribute('data-current-placement', placement);\n\n Object.assign(this.popup.style, {\n left: `${x}px`,\n top: `${y}px`\n });\n\n if (this.arrow) {\n const arrowX = middlewareData.arrow!.x;\n const arrowY = middlewareData.arrow!.y;\n let top = '';\n let right = '';\n let bottom = '';\n let left = '';\n\n if (this.arrowPlacement === 'start') {\n // Start\n const value = typeof arrowX === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n top = typeof arrowY === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n right = isRtl ? value : '';\n left = isRtl ? '' : value;\n } else if (this.arrowPlacement === 'end') {\n // End\n const value = typeof arrowX === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n right = isRtl ? '' : value;\n left = isRtl ? value : '';\n bottom = typeof arrowY === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n } else if (this.arrowPlacement === 'center') {\n // Center\n left = typeof arrowX === 'number' ? `calc(50% - var(--arrow-size-diagonal))` : '';\n top = typeof arrowY === 'number' ? `calc(50% - var(--arrow-size-diagonal))` : '';\n } else {\n // Anchor (default)\n left = typeof arrowX === 'number' ? `${arrowX}px` : '';\n top = typeof arrowY === 'number' ? `${arrowY}px` : '';\n }\n\n Object.assign(this.arrowEl.style, {\n top,\n right,\n bottom,\n left,\n [staticSide]: 'calc(var(--arrow-size-diagonal) * -1)'\n });\n }\n });\n\n // Wait until the new position is drawn before updating the hover bridge, otherwise it can get out of sync\n requestAnimationFrame(() => this.updateHoverBridge());\n\n this.emit('syn-reposition');\n }\n\n private updateHoverBridge = () => {\n if (this.hoverBridge && this.anchorEl) {\n const anchorRect = this.anchorEl.getBoundingClientRect();\n const popupRect = this.popup.getBoundingClientRect();\n const isVertical = this.placement.includes('top') || this.placement.includes('bottom');\n let topLeftX = 0;\n let topLeftY = 0;\n let topRightX = 0;\n let topRightY = 0;\n let bottomLeftX = 0;\n let bottomLeftY = 0;\n let bottomRightX = 0;\n let bottomRightY = 0;\n\n if (isVertical) {\n if (anchorRect.top < popupRect.top) {\n // Anchor is above\n topLeftX = anchorRect.left;\n topLeftY = anchorRect.bottom;\n topRightX = anchorRect.right;\n topRightY = anchorRect.bottom;\n\n bottomLeftX = popupRect.left;\n bottomLeftY = popupRect.top;\n bottomRightX = popupRect.right;\n bottomRightY = popupRect.top;\n } else {\n // Anchor is below\n topLeftX = popupRect.left;\n topLeftY = popupRect.bottom;\n topRightX = popupRect.right;\n topRightY = popupRect.bottom;\n\n bottomLeftX = anchorRect.left;\n bottomLeftY = anchorRect.top;\n bottomRightX = anchorRect.right;\n bottomRightY = anchorRect.top;\n }\n } else {\n if (anchorRect.left < popupRect.left) {\n // Anchor is on the left\n topLeftX = anchorRect.right;\n topLeftY = anchorRect.top;\n topRightX = popupRect.left;\n topRightY = popupRect.top;\n\n bottomLeftX = anchorRect.right;\n bottomLeftY = anchorRect.bottom;\n bottomRightX = popupRect.left;\n bottomRightY = popupRect.bottom;\n } else {\n // Anchor is on the right\n topLeftX = popupRect.right;\n topLeftY = popupRect.top;\n topRightX = anchorRect.left;\n topRightY = anchorRect.top;\n\n bottomLeftX = popupRect.right;\n bottomLeftY = popupRect.bottom;\n bottomRightX = anchorRect.left;\n bottomRightY = anchorRect.bottom;\n }\n }\n\n this.style.setProperty('--hover-bridge-top-left-x', `${topLeftX}px`);\n this.style.setProperty('--hover-bridge-top-left-y', `${topLeftY}px`);\n this.style.setProperty('--hover-bridge-top-right-x', `${topRightX}px`);\n this.style.setProperty('--hover-bridge-top-right-y', `${topRightY}px`);\n this.style.setProperty('--hover-bridge-bottom-left-x', `${bottomLeftX}px`);\n this.style.setProperty('--hover-bridge-bottom-left-y', `${bottomLeftY}px`);\n this.style.setProperty('--hover-bridge-bottom-right-x', `${bottomRightX}px`);\n this.style.setProperty('--hover-bridge-bottom-right-y', `${bottomRightY}px`);\n }\n };\n\n render() {\n return html`\n <slot name=\"anchor\" @slotchange=${this.handleAnchorChange}></slot>\n\n <span\n part=\"hover-bridge\"\n class=${classMap({\n 'popup-hover-bridge': true,\n 'popup-hover-bridge--visible': this.hoverBridge && this.active\n })}\n ></span>\n\n <div\n part=\"popup\"\n class=${classMap({\n popup: true,\n 'popup--active': this.active,\n 'popup--fixed': this.strategy === 'fixed',\n 'popup--has-arrow': this.arrow\n })}\n >\n <slot></slot>\n ${this.arrow ? html`<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>` : ''}\n </div>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAQA,SAAS,OAAO,YAAY,iBAAiB,MAAM,QAAQ,UAAU,OAAO,YAAY;AACxF,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAC7B,SAAS,UAAU,aAAa;AAWhC,SAAS,iBAAiB,GAAiC;AACzD,SACE,MAAM,QACN,OAAO,MAAM,YACb,2BAA2B,MAC1B,oBAAoB,IAAI,aAAa,UAAU;AAEpD;AA+BA,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAqB8C,kBAAS;AAMxB,qBAYZ;AAMY,oBAAiC;AAGlC,oBAAW;AAGX,oBAAW;AAOV,iBAAQ;AAOO,0BAAwD;AAM5C,wBAAe;AAM1C,gBAAO;AAqBpC,kCAAyB;AAO0B,gCAA+C;AAU3C,uBAAc;AAGxC,iBAAQ;AAUmB,wBAAe;AAgBX,2BAAkB;AAQtB,uBAAc;AA0QtE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MAAM,OAAO,CAAC;AAAA,GAhInC,SAgIqC;AAGlB;AAAA,EAArC,SAAS,EAAE,WAAW,YAAY,CAAC;AAAA,GAnIjB,SAmImB;AAG1B;AAAA,EAAX,SAAS;AAAA,GAtIS,SAsIP;AAOgB;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GA7IP,SA6IS;AAGgC;AAAA,EAA3D,SAAS,EAAE,WAAW,qBAAqB,MAAM,OAAO,CAAC;AAAA,GAhJvC,SAgJyC;AAQJ;AAAA,EAAvD,SAAS,EAAE,WAAW,gBAAgB,MAAM,QAAQ,CAAC;AAAA,GAxJnC,SAwJqC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -9,23 +9,25 @@ import {
|
|
|
9
9
|
} from "./chunk.74N5WLM5.js";
|
|
10
10
|
import {
|
|
11
11
|
SynNavItem
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.4ZAJFDDB.js";
|
|
13
13
|
import {
|
|
14
14
|
SynMenu
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.EHY5LVO7.js";
|
|
16
16
|
import {
|
|
17
17
|
SynDropdown
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.AFGBDQAO.js";
|
|
19
19
|
import {
|
|
20
20
|
SynIcon
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.6IPI5YJJ.js";
|
|
22
22
|
import {
|
|
23
23
|
LocalizeController
|
|
24
24
|
} from "./chunk.GIU3H3J3.js";
|
|
25
25
|
import {
|
|
26
|
-
SynergyElement,
|
|
27
26
|
component_styles_default
|
|
28
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.NLYVOJGK.js";
|
|
28
|
+
import {
|
|
29
|
+
SynergyElement
|
|
30
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
29
31
|
import {
|
|
30
32
|
__decorateClass
|
|
31
33
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -207,4 +209,4 @@ __decorateClass([
|
|
|
207
209
|
export {
|
|
208
210
|
SynPrioNav
|
|
209
211
|
};
|
|
210
|
-
//# sourceMappingURL=chunk.
|
|
212
|
+
//# sourceMappingURL=chunk.JVIDZKUX.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/prio-nav/prio-nav.component.ts"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable no-param-reassign */\nimport type { CSSResultGroup } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit/static-html.js';\nimport { query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './prio-nav.styles.js';\nimport SynDropdown from '../dropdown/dropdown.component.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynMenu from '../menu/menu.component.js';\nimport SynNavItem from '../nav-item/nav-item.component.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport {\n filterOnlyNavItems,\n getAssignedElementsForSlot,\n hideNavigationItem,\n showNavigationItem,\n} from './utils.js';\n\n/**\n * @summary The `<syn-prio-nav />` element provides a generic navigation bar\n * that can be used to group multiple navigation items (usually horizontal `<syn-nav-item />`s)\n * together. It will automatically group all items not visible in the viewport into a custom\n * priority menu.\n *\n * @example\n * <syn-prio-nav>\n * <syn-nav-item current horizontal>Item 1</syn-nav-item>\n * <button role=\"menuitem\">Item 2 (custom)</button>\n * <syn-nav-item horizontal>Item 3</syn-nav-item>\n * </syn-prio-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-prio-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-dropdown\n * @dependency syn-icon\n * @dependency syn-menu\n * @dependency syn-nav-item\n *\n * @slot - The given navigation items. Must be horizontal `<syn-nav-item>`s\n * or have a role of \"menuitem\"\n *\n * @csspart base - The component's base wrapper.\n * @csspart priority-menu - The wrapper around the priority menu\n * @csspart priority-menu-nav-item - The navigation item for the priority menu\n * @csspart priority-menu-label - The label for the priority menu\n * @csspart priority-menu-icon - The icon for the priority menu\n * @csspart priority-menu-container - The container for the shifted navigation items,\n * if there is not enough space.\n *\n */\nexport default class SynPrioNav extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-dropdown': SynDropdown,\n 'syn-icon': SynIcon,\n 'syn-menu': SynMenu,\n 'syn-nav-item': SynNavItem,\n };\n\n /**\n * Internal resize observer\n */\n private resizeObserver: ResizeObserver;\n\n private readonly localize = new LocalizeController(this);\n\n /**\n * Reference to the rendered children slot\n */\n @query('slot:not([name])') private defaultSlot: HTMLSlotElement;\n\n /**\n * Reference to the slot where priority menu items are placed\n */\n @query('slot[name=menu]') private menuSlot: HTMLSlotElement;\n\n /**\n * The wrapper that holds the horizontal navigation items\n */\n @query('.horizontal-nav') private horizontalNav: HTMLDivElement;\n\n /**\n * The priority menu dropdown\n */\n @query('.priority-menu') private priorityMenu: SynDropdown;\n\n /**\n * Internal state reflecting if the item positions have been cached\n */\n @state() private itemPositionsCached = false;\n\n /**\n * The amount of nav items that are currently slotted\n */\n @state() private amountOfNavItems = 0;\n\n /**\n * The amount of items that are currently visible\n */\n @state() private amountOfVisibleItems = 0;\n\n /**\n * Internal state reflecting if there are items in the priority menu\n */\n @state() private hasItemsInDropdown = false;\n\n /**\n * Get a list of all slotted `<syn-nav-item />` elements\n * that are either in the main slot or the priority menu slot\n */\n private getSlottedNavItems() {\n const navItemsInDefaultSlot = filterOnlyNavItems(getAssignedElementsForSlot(this.defaultSlot));\n const navItemsInMenuSlot = filterOnlyNavItems(getAssignedElementsForSlot(this.menuSlot));\n return navItemsInDefaultSlot.concat(navItemsInMenuSlot);\n }\n\n /**\n * Cache the items right offset position to make faster checks placement into priority menu\n * @param items The items to cache the position for\n */\n private cacheItemPositions(items: SynNavItem[]) {\n const { left } = this.horizontalNav.getBoundingClientRect();\n items.forEach(item => {\n // We have to measure while the items are in the primary slot,\n // else we will just get the placement in the priority menu\n item.removeAttribute('slot');\n const { right } = item.getBoundingClientRect();\n // We also need to consider the location of the parent\n item.dataset.right = (right - left).toString();\n });\n\n this.itemPositionsCached = true;\n }\n\n /**\n * Determines which items should be shown or hidden, depending on the current width\n */\n private handlePriorityMenu() {\n const navItems = this.getSlottedNavItems();\n\n if (!this.itemPositionsCached) {\n this.cacheItemPositions(navItems);\n }\n\n // Get the widths of the horizontal nav and the priority menu\n // We subtract the width of the priority menu to get the final width\n const { width } = this.horizontalNav.getBoundingClientRect();\n\n // #651: Do not take the size of the priority menu\n // into account when it is hidden\n const reservedPrioMenuSize = this.priorityMenu.classList.contains('priority-menu--hidden')\n ? 0\n : this.priorityMenu.clientWidth;\n\n const finalWidth = width - reservedPrioMenuSize;\n\n // Cache the first item that should be hidden\n let firstHiddenItemRightPos: number | undefined;\n\n // Cache the last item so we can decide to use the finalWidth or just the width\n // later on. This is needed as otherwise the last item will be hidden when using finalWidth\n const lastNavItem = navItems.at(-1);\n\n const itemVisibilities = navItems.map(item => {\n const measureWidth = item === lastNavItem ? width : finalWidth;\n const isHidden = !!(\n firstHiddenItemRightPos\n || parseFloat(item.dataset.right!) > measureWidth\n );\n\n // Get the position of the first item\n // Will get used to position the priority menu\n if (isHidden && !firstHiddenItemRightPos) {\n firstHiddenItemRightPos = parseFloat(item.dataset.right!);\n }\n\n return {\n isHidden,\n item,\n };\n });\n\n const visibleItems = itemVisibilities.filter(({ isHidden }) => !isHidden).length;\n const hasOnlyOneItem = visibleItems === 1;\n\n // Finally, hide or show the items based on the visibility\n // As requested in #410, we hide all items if there is only one item\n itemVisibilities.forEach(({ item, isHidden }) => {\n if (isHidden || hasOnlyOneItem) {\n hideNavigationItem(item);\n } else {\n showNavigationItem(item);\n }\n });\n\n // Tell the render call that we have items in the priority menu\n // and toggle the visibility of the priority menu label\n this.hasItemsInDropdown = visibleItems !== navItems.length;\n this.amountOfVisibleItems = hasOnlyOneItem ? 0 : visibleItems;\n }\n\n private renderPriorityMenu() {\n return html`\n <syn-dropdown\n class=${classMap({\n 'priority-menu': true,\n 'priority-menu--has-visible-items': this.amountOfVisibleItems !== 0,\n 'priority-menu--hidden': !this.hasItemsInDropdown,\n })}\n part=\"priority-menu\"\n placement=\"bottom-end\"\n >\n <syn-nav-item class=\"priority-menu__nav-item\" slot=\"trigger\" horizontal part=\"priority-menu-nav-item\">\n <syn-icon \n class=\"priority-menu__icon\"\n label=\"More\"\n library=\"system\"\n name=\"more\"\n part=\"priority-menu-icon\"\n slot=\"prefix\"\n >\n </syn-icon>\n <span\n class=${classMap({\n 'priority-menu__label': true,\n 'priority-menu__label--visible': this.amountOfVisibleItems === 0,\n })}\n part=\"priority-menu-label\"\n >\n ${this.localize.term('menu')}\n </span>\n </syn-nav-item>\n\n <syn-menu part=\"priority-menu-container\">\n <slot name=\"menu\"></slot>\n </syn-menu>\n\n </syn-dropdown>\n `;\n }\n\n private slotChange() {\n const slottedItems = this.getSlottedNavItems();\n\n // Make sure to trigger a recalculation of the item positions if we a new list of slotted items\n if (slottedItems.length !== this.amountOfNavItems) {\n this.cacheItemPositions(slottedItems);\n this.handlePriorityMenu();\n this.amountOfNavItems = slottedItems.length;\n }\n }\n\n protected firstUpdated() {\n // Cache the original role of the items so we can reset it if needed.\n this.getSlottedNavItems().forEach(item => {\n item.dataset.originalRole = item.getAttribute('role') ?? '';\n });\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(() => this.handlePriorityMenu());\n this.resizeObserver.observe(this);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver.unobserve(this);\n }\n\n render() {\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <nav class=\"horizontal-nav\" part=\"base\">\n <slot @slotchange=${this.slotChange}></slot>\n ${this.renderPriorityMenu()}\n </nav>\n `;\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings":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
|
+
} from "./chunk.AMIQC3O7.js";
|
|
17
17
|
import {
|
|
18
18
|
HasSlotController
|
|
19
19
|
} from "./chunk.WVVQK5TE.js";
|
|
@@ -21,9 +21,11 @@ import {
|
|
|
21
21
|
watch
|
|
22
22
|
} from "./chunk.74IOULXM.js";
|
|
23
23
|
import {
|
|
24
|
-
SynergyElement,
|
|
25
24
|
component_styles_default
|
|
26
|
-
} from "./chunk.
|
|
25
|
+
} from "./chunk.NLYVOJGK.js";
|
|
26
|
+
import {
|
|
27
|
+
SynergyElement
|
|
28
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
27
29
|
import {
|
|
28
30
|
__decorateClass
|
|
29
31
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -247,4 +249,4 @@ __decorateClass([
|
|
|
247
249
|
export {
|
|
248
250
|
SynSwitch
|
|
249
251
|
};
|
|
250
|
-
//# sourceMappingURL=chunk.
|
|
252
|
+
//# sourceMappingURL=chunk.KDMX4Q33.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/switch/switch.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 './switch.styles.js';\nimport customStyles from './switch.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Switches allow the user to toggle an option on or off.\n * @documentation https://synergy.style/components/switch\n * @status stable\n * @since 2.0\n *\n * @slot - The switch's label.\n * @slot help-text - Text that describes how to use the switch. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when the control's checked state changes.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The control that houses the switch's thumb.\n * @csspart thumb - The switch's thumb.\n * @csspart label - The switch's label.\n * @csspart form-control-help-text - The help text's wrapper.\n *\n * @cssproperty --width - The width of the switch.\n * @cssproperty --height - The height of the switch.\n * @cssproperty --thumb-size - The size of the thumb.\n */\nexport default class SynSwitch extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n\n private readonly formControlController = new FormControlController(this, {\n value: (control: SynSwitch) => (control.checked ? control.value || 'on' : undefined),\n defaultValue: (control: SynSwitch) => control.defaultChecked,\n setValue: (control: SynSwitch, checked: boolean) => (control.checked = checked)\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text');\n\n @query('input[type=\"checkbox\"]') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n @property() title = ''; // make reactive to pass through\n\n /** The name of the switch, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the switch, submitted as a name/value pair with form data. */\n @property() value: string;\n\n /** The switch's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the switch. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the switch in a checked state. */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue('checked') defaultChecked = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the switch a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The switch's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleInput() {\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleClick() {\n this.checked = !this.checked;\n this.emit('syn-change');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.checked = false;\n this.emit('syn-change');\n this.emit('syn-input');\n }\n\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.checked = true;\n this.emit('syn-change');\n this.emit('syn-input');\n }\n }\n\n @watch('checked', { waitUntilFirstUpdate: true })\n handleCheckedChange() {\n this.input.checked = this.checked; // force a sync update\n this.formControlController.updateValidity();\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(true);\n }\n\n /** Simulates a click on the switch. */\n click() {\n this.input.click();\n }\n\n /** Sets focus on the switch. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the switch. */\n blur() {\n this.input.blur();\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n\n return html`\n <div\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-help-text': hasHelpText\n })}\n >\n <label\n part=\"base\"\n class=${classMap({\n switch: true,\n 'switch--checked': this.checked,\n 'switch--disabled': this.disabled,\n 'switch--focused': this.hasFocus,\n 'switch--small': this.size === 'small',\n 'switch--medium': this.size === 'medium',\n 'switch--large': this.size === 'large'\n })}\n >\n <input\n class=\"switch__input\"\n type=\"checkbox\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${this.name}\n value=${ifDefined(this.value)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n role=\"switch\"\n aria-checked=${this.checked ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n @click=${this.handleClick}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @keydown=${this.handleKeyDown}\n />\n\n <span part=\"control\" class=\"switch__control\">\n <span part=\"thumb\" class=\"switch__thumb\"></span>\n </span>\n\n <div part=\"label\" class=\"switch__label\">\n <slot></slot>\n </div>\n </label>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElement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UAmBP;AAGiB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAtBR,UAsBU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAzBvB,UAyByB;AAGA;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA5BvB,UA4ByB;AAGnB;AAAA,EAAxB,aAAa,SAAS;AAAA,GA/BJ,UA+BM;AAOI;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAtCR,UAsCU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAzCvB,UAyCyB;AAGN;AAAA,EAArC,SAAS,EAAE,WAAW,YAAY,CAAC;AAAA,GA5CjB,UA4CmB;AAyDtC;AAAA,EADC,MAAM,WAAW,EAAE,sBAAsB,KAAK,CAAC;AAAA,GApG7B,UAqGnB;AAMA;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1G9B,UA2GnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSelect
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.CROIIGEK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/select/select.ts
|
|
6
6
|
var select_default = SynSelect;
|
|
@@ -9,4 +9,4 @@ SynSelect.define("syn-select");
|
|
|
9
9
|
export {
|
|
10
10
|
select_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.KDS34DYH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBadge
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.3JB36AXI.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.KP2IPT7J.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.QACXXGS7.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-group/radio-group.ts
|
|
6
6
|
var radio_group_default = SynRadioGroup;
|
|
@@ -9,4 +9,4 @@ SynRadioGroup.define("syn-radio-group");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_group_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.KVU5RDXR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAccordion
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4WXSVFZF.js";
|
|
4
4
|
|
|
5
5
|
// src/components/accordion/accordion.ts
|
|
6
6
|
var accordion_default = SynAccordion;
|
|
@@ -9,4 +9,4 @@ SynAccordion.define("syn-accordion");
|
|
|
9
9
|
export {
|
|
10
10
|
accordion_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.L6YDUFFT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDropdown
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.AFGBDQAO.js";
|
|
4
4
|
|
|
5
5
|
// src/components/dropdown/dropdown.ts
|
|
6
6
|
var dropdown_default = SynDropdown;
|
|
@@ -9,4 +9,4 @@ SynDropdown.define("syn-dropdown");
|
|
|
9
9
|
export {
|
|
10
10
|
dropdown_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.LG2S5EYQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynNavItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4ZAJFDDB.js";
|
|
4
4
|
|
|
5
5
|
// src/components/nav-item/nav-item.ts
|
|
6
6
|
var nav_item_default = SynNavItem;
|
|
@@ -9,4 +9,4 @@ SynNavItem.define("syn-nav-item");
|
|
|
9
9
|
export {
|
|
10
10
|
nav_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.LHFNBKMZ.js.map
|
|
@@ -5,9 +5,11 @@ import {
|
|
|
5
5
|
watch
|
|
6
6
|
} from "./chunk.74IOULXM.js";
|
|
7
7
|
import {
|
|
8
|
-
SynergyElement,
|
|
9
8
|
component_styles_default
|
|
10
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.NLYVOJGK.js";
|
|
10
|
+
import {
|
|
11
|
+
SynergyElement
|
|
12
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
11
13
|
import {
|
|
12
14
|
__decorateClass
|
|
13
15
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -76,4 +78,4 @@ __decorateClass([
|
|
|
76
78
|
export {
|
|
77
79
|
SynResizeObserver
|
|
78
80
|
};
|
|
79
|
-
//# sourceMappingURL=chunk.
|
|
81
|
+
//# sourceMappingURL=chunk.LKAZQJ5Y.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/resize-observer/resize-observer.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 { property } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './resize-observer.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary The Resize Observer component offers a thin, declarative interface to the [`ResizeObserver API`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver).\n * @documentation https://synergy.style/components/resize-observer\n * @status stable\n * @since 2.0\n *\n * @slot - One or more elements to watch for resizing.\n *\n * @event {{ entries: ResizeObserverEntry[] }} syn-resize - Emitted when the element is resized.\n */\nexport default class SynResizeObserver extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n private resizeObserver: ResizeObserver;\n private observedElements: HTMLElement[] = [];\n\n /** Disables the observer. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver((entries: ResizeObserverEntry[]) => {\n this.emit('syn-resize', { detail: { entries } });\n });\n\n if (!this.disabled) {\n this.startObserver();\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.stopObserver();\n }\n\n private handleSlotChange() {\n if (!this.disabled) {\n this.startObserver();\n }\n }\n\n private startObserver() {\n const slot = this.shadowRoot!.querySelector('slot');\n\n if (slot !== null) {\n const elements = slot.assignedElements({ flatten: true }) as HTMLElement[];\n\n // Unwatch previous elements\n this.observedElements.forEach(el => this.resizeObserver.unobserve(el));\n this.observedElements = [];\n\n // Watch new elements\n elements.forEach(el => {\n this.resizeObserver.observe(el);\n this.observedElements.push(el);\n });\n }\n }\n\n private stopObserver() {\n this.resizeObserver.disconnect();\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n if (this.disabled) {\n this.stopObserver();\n } else {\n this.startObserver();\n }\n }\n\n render() {\n return html` <slot @slotchange=${this.handleSlotChange}></slot> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-resize-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A,EACxD;AACF;AAjEqB,kBACZ,SAAyB,CAAC,0BAAiB,8BAAM;AAMZ;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAPvB,kBAOyB;AA+C5C;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GArD9B,kBAsDnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,13 +3,15 @@ var icons = {
|
|
|
3
3
|
"add": `
|
|
4
4
|
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z"/></svg>`,
|
|
5
5
|
"caret": `
|
|
6
|
-
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M16.59 8.
|
|
6
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M16.59 8.29501L12 12.875L7.41 8.29501L6 9.70501L12 15.705L18 9.70501L16.59 8.29501Z"/></svg>`,
|
|
7
7
|
"check": `
|
|
8
|
-
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M8.79496 15.875L4.62496 11.705L3.20496 13.115L8.79496 18.705L20.795 6.
|
|
8
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M8.79496 15.875L4.62496 11.705L3.20496 13.115L8.79496 18.705L20.795 6.70501L19.385 5.29501L8.79496 15.875Z"/></svg>`,
|
|
9
9
|
"chevron-down": `
|
|
10
|
-
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M16.59 8.
|
|
10
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M16.59 8.29501L12 12.875L7.41 8.29501L6 9.70501L12 15.705L18 9.70501L16.59 8.29501Z"/></svg>`,
|
|
11
11
|
"chevron-right": `
|
|
12
12
|
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M9.70504 6L8.29504 7.41L12.875 12L8.29504 16.59L9.70504 18L15.705 12L9.70504 6Z"/></svg>`,
|
|
13
|
+
"error": `
|
|
14
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z"/></svg>`,
|
|
13
15
|
"eye-slash": `
|
|
14
16
|
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M12.005 6.5C14.765 6.5 17.005 8.74 17.005 11.5C17.005 12.15 16.875 12.76 16.645 13.33L19.565 16.25C21.075 14.99 22.265 13.36 22.995 11.5C21.265 7.11 16.995 4 11.995 4C10.595 4 9.255 4.25 8.01501 4.7L10.175 6.86C10.745 6.63 11.355 6.5 12.005 6.5ZM2.005 3.77L4.745 6.51C3.085 7.8 1.785 9.52 1.005 11.5C2.735 15.89 7.005 19 12.005 19C13.555 19 15.035 18.7 16.385 18.16L16.805 18.58L19.735 21.5L21.005 20.23L3.275 2.5L2.005 3.77ZM7.53501 9.3L9.085 10.85C9.035 11.06 9.005 11.28 9.005 11.5C9.005 13.16 10.345 14.5 12.005 14.5C12.225 14.5 12.445 14.47 12.655 14.42L14.205 15.97C13.535 16.3 12.795 16.5 12.005 16.5C9.245 16.5 7.005 14.26 7.005 11.5C7.005 10.71 7.20501 9.97 7.53501 9.3ZM11.845 8.52L14.995 11.67L15.015 11.51C15.015 9.85 13.675 8.51 12.015 8.51L11.845 8.52Z"/></svg>`,
|
|
15
17
|
"eye": `
|
|
@@ -47,4 +49,4 @@ var library_system_default = systemLibrary;
|
|
|
47
49
|
export {
|
|
48
50
|
library_system_default
|
|
49
51
|
};
|
|
50
|
-
//# sourceMappingURL=chunk.
|
|
52
|
+
//# sourceMappingURL=chunk.LUXDS4EY.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/icon/library.system.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable */\nimport type { IconLibrary } from './library.js';\n\n//\n// System icons are a separate library to ensure they're always available, regardless of how the default icon library is\n// configured or if its icons resolve properly.\n//\n// All Synergy components must use the system library instead of the default library. For visual consistency, system\n// icons are a subset of Bootstrap Icons.\n//\n// **Start system icons**\nconst icons = {\n\t'add': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z\"/></svg>`,\n\t'caret': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M16.59 8.29501L12 12.875L7.41 8.29501L6 9.70501L12 15.705L18 9.70501L16.59 8.29501Z\"/></svg>`,\n\t'check': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M8.79496 15.875L4.62496 11.705L3.20496 13.115L8.79496 18.705L20.795 6.70501L19.385 5.29501L8.79496 15.875Z\"/></svg>`,\n\t'chevron-down': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M16.59 8.29501L12 12.875L7.41 8.29501L6 9.70501L12 15.705L18 9.70501L16.59 8.29501Z\"/></svg>`,\n\t'chevron-right': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M9.70504 6L8.29504 7.41L12.875 12L8.29504 16.59L9.70504 18L15.705 12L9.70504 6Z\"/></svg>`,\n\t'error': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z\"/></svg>`,\n\t'eye-slash': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12.005 6.5C14.765 6.5 17.005 8.74 17.005 11.5C17.005 12.15 16.875 12.76 16.645 13.33L19.565 16.25C21.075 14.99 22.265 13.36 22.995 11.5C21.265 7.11 16.995 4 11.995 4C10.595 4 9.255 4.25 8.01501 4.7L10.175 6.86C10.745 6.63 11.355 6.5 12.005 6.5ZM2.005 3.77L4.745 6.51C3.085 7.8 1.785 9.52 1.005 11.5C2.735 15.89 7.005 19 12.005 19C13.555 19 15.035 18.7 16.385 18.16L16.805 18.58L19.735 21.5L21.005 20.23L3.275 2.5L2.005 3.77ZM7.53501 9.3L9.085 10.85C9.035 11.06 9.005 11.28 9.005 11.5C9.005 13.16 10.345 14.5 12.005 14.5C12.225 14.5 12.445 14.47 12.655 14.42L14.205 15.97C13.535 16.3 12.795 16.5 12.005 16.5C9.245 16.5 7.005 14.26 7.005 11.5C7.005 10.71 7.20501 9.97 7.53501 9.3ZM11.845 8.52L14.995 11.67L15.015 11.51C15.015 9.85 13.675 8.51 12.015 8.51L11.845 8.52Z\"/></svg>`,\n\t'eye': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z\"/></svg>`,\n\t'indeterminate': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 13H5V11H19V13Z\"/></svg>`,\n\t'logo-color': `\n\t\t<svg width=\"295\" height=\"94\" viewBox=\"0 0 295 94\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><g clip-path=\"url(#clip0_9951_9907)\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M207.961 69.0591C200.132 83.8898 184.613 93.983 166.804 93.983C141.096 93.983 120.257 72.9431 120.257 46.9915C120.257 21.0399 141.096 0 166.804 0C184.439 0 199.775 9.89295 207.674 24.4885L188.602 34.7821C184.335 26.9182 176.088 21.6757 166.804 21.6757C153.262 21.6757 141.932 32.8139 141.932 46.9915C141.932 61.1691 153.262 72.3074 166.804 72.3074C176.279 72.3074 184.726 66.8558 188.907 58.7133L207.961 69.0591ZM111.078 1.66335H89.7768V91.8668H111.078V1.66335ZM26.0822 91.8669C13.9511 91.8669 0.592136 85.318 0.592136 70.1128C0.592136 70.1128 47.1743 70.1128 54.5941 70.1215C62.4927 68.5453 61.6132 58.5826 54.5941 57.2067H26.8746C12.1223 57.2067 0.444092 44.6141 0.444092 29.6092C0.444092 15.1791 11.234 1.67206 26.8746 1.67206H57.285C69.8254 1.67206 78.7778 11.0599 78.7778 22.9645H26.8746C19.8991 23.9573 19.4549 34.6602 26.8746 35.8707H54.5157C69.6773 36.28 81.7735 48.3501 81.7735 63.6336C81.7735 77.7154 69.8254 91.8669 54.5853 91.8669H26.0822ZM215.99 91.8668V1.66335H237.535V37.8388H245.826L268.224 1.66335H294.716L264.192 47.3399L294.272 91.8668H267.771L245.103 56.9193H237.535V91.8668H215.99Z\"/></g><defs><clipPath id=\"clip0_9951_9907\"><rect width=\"295\" height=\"94\"/></clipPath></defs></svg>`,\n\t'menu': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z\"/></svg>`,\n\t'more-vert': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z\"/></svg>`,\n\t'more': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z\"/></svg>`,\n\t'radio': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z\"/></svg>`,\n\t'upload-file': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H18C19.1 22 20 21.1 20 20V8L14 2ZM18 20H6V4H13V9H18V20ZM8 15.01L9.41 16.42L11 14.84V19H13V14.84L14.59 16.43L16 15.01L12.01 11L8 15.01Z\"/></svg>`,\n\t'x-circle-fill': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59Z\"/></svg>`,\n\t'x-lg': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/></svg>`\n};\n// **End system icons**\n\nconst systemLibrary: IconLibrary = {\n name: 'system',\n resolver: (name: keyof typeof icons) => {\n if (name in icons) {\n return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;\n }\n return '';\n }\n};\n\nexport default systemLibrary;\n"],
|
|
5
|
+
"mappings": ";AAWA,IAAM,QAAQ;AAAA,EACb,OAAO;AAAA;AAAA,EAEP,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,gBAAgB;AAAA;AAAA,EAEhB,iBAAiB;AAAA;AAAA,EAEjB,SAAS;AAAA;AAAA,EAET,aAAa;AAAA;AAAA,EAEb,OAAO;AAAA;AAAA,EAEP,iBAAiB;AAAA;AAAA,EAEjB,cAAc;AAAA;AAAA,EAEd,QAAQ;AAAA;AAAA,EAER,aAAa;AAAA;AAAA,EAEb,QAAQ;AAAA;AAAA,EAER,SAAS;AAAA;AAAA,EAET,eAAe;AAAA;AAAA,EAEf,iBAAiB;AAAA;AAAA,EAEjB,QAAQ;AAAA;AAET;AAGA,IAAM,gBAA6B;AAAA,EACjC,MAAM;AAAA,EACN,UAAU,CAAC,SAA6B;AACtC,QAAI,QAAQ,OAAO;AACjB,aAAO,sBAAsB,mBAAmB,MAAM,IAAI,CAAC,CAAC;AAAA,IAC9D;AACA,WAAO;AAAA,EACT;AACF;AAEA,IAAO,yBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk.FKKJBKYL.js";
|
|
14
14
|
import {
|
|
15
15
|
FormControlController
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.AMIQC3O7.js";
|
|
17
17
|
import {
|
|
18
18
|
HasSlotController
|
|
19
19
|
} from "./chunk.WVVQK5TE.js";
|
|
@@ -21,9 +21,11 @@ import {
|
|
|
21
21
|
watch
|
|
22
22
|
} from "./chunk.74IOULXM.js";
|
|
23
23
|
import {
|
|
24
|
-
SynergyElement,
|
|
25
24
|
component_styles_default
|
|
26
|
-
} from "./chunk.
|
|
25
|
+
} from "./chunk.NLYVOJGK.js";
|
|
26
|
+
import {
|
|
27
|
+
SynergyElement
|
|
28
|
+
} from "./chunk.RZI6FTCQ.js";
|
|
27
29
|
import {
|
|
28
30
|
__decorateClass
|
|
29
31
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -361,4 +363,4 @@ __decorateClass([
|
|
|
361
363
|
export {
|
|
362
364
|
SynTextarea
|
|
363
365
|
};
|
|
364
|
-
//# sourceMappingURL=chunk.
|
|
366
|
+
//# sourceMappingURL=chunk.M5JWXYAN.js.map
|