@synergy-design-system/components 2.30.1 → 2.30.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk.5PKVCNHM.js → chunk.2BF2ZBSM.js} +8 -8
- package/dist/chunks/chunk.2BF2ZBSM.js.map +7 -0
- package/dist/chunks/{chunk.SZ73NMRJ.js → chunk.2NS2E3LJ.js} +2 -2
- package/dist/chunks/{chunk.DG6GXAVF.js → chunk.2W4MHJAM.js} +6 -6
- package/dist/chunks/chunk.2W4MHJAM.js.map +7 -0
- package/dist/chunks/{chunk.3TOKEYJ6.js → chunk.3EPDSEI7.js} +2 -2
- package/dist/chunks/{chunk.2X3APD3V.js → chunk.3OUFLG7V.js} +6 -6
- package/dist/chunks/chunk.3OUFLG7V.js.map +7 -0
- package/dist/chunks/{chunk.WASTXK4A.js → chunk.3QPOD3RO.js} +6 -6
- package/dist/chunks/chunk.3QPOD3RO.js.map +7 -0
- package/dist/chunks/{chunk.QOP6ET4B.js → chunk.3TECDOBS.js} +2 -2
- package/dist/chunks/{chunk.JCJ64TPZ.js → chunk.43UZR7JA.js} +2 -2
- package/dist/chunks/{chunk.UTPP6KE2.js → chunk.45RYQJWS.js} +2 -2
- package/dist/chunks/{chunk.AQHRP3JF.js → chunk.4FYUNOAF.js} +2 -2
- package/dist/chunks/{chunk.2GXRGBN3.js → chunk.4KUAEC3S.js} +2 -2
- package/dist/chunks/{chunk.GAN4SEH5.js → chunk.4XC7NAJH.js} +2 -2
- package/dist/chunks/{chunk.QJPMVHQX.js → chunk.5U2JN5LA.js} +2 -2
- package/dist/chunks/chunk.5U2JN5LA.js.map +7 -0
- package/dist/chunks/{chunk.BMR7V4GF.js → chunk.67BZVLOD.js} +2 -2
- package/dist/chunks/{chunk.UTJJJQMA.js → chunk.6GBQX53P.js} +2 -2
- package/dist/chunks/{chunk.NHGNW7PA.js → chunk.6HKWYUE5.js} +6 -6
- package/dist/chunks/chunk.6HKWYUE5.js.map +7 -0
- package/dist/chunks/{chunk.USSHF6CO.js → chunk.7PPS4IJJ.js} +2 -2
- package/dist/chunks/{chunk.KLZ5NK2C.js → chunk.7YYNY2ZX.js} +2 -2
- package/dist/chunks/{chunk.FHND52A3.js → chunk.A77V4OPP.js} +3 -3
- package/dist/chunks/chunk.A77V4OPP.js.map +7 -0
- package/dist/chunks/{chunk.HWNTLXRL.js → chunk.ARJFVRBM.js} +3 -3
- package/dist/chunks/chunk.ARJFVRBM.js.map +7 -0
- package/dist/chunks/{chunk.IZBTM55D.js → chunk.BG6L74VC.js} +2 -2
- package/dist/chunks/{chunk.2RAC47FN.js → chunk.BXAD2FTL.js} +2 -2
- package/dist/chunks/chunk.BXAD2FTL.js.map +7 -0
- package/dist/chunks/{chunk.2RXN2SCD.js → chunk.C4JBMUTM.js} +6 -6
- package/dist/chunks/chunk.C4JBMUTM.js.map +7 -0
- package/dist/chunks/{chunk.JP4QSX7M.js → chunk.CFUIAMHI.js} +2 -2
- package/dist/chunks/{chunk.RAU2GK6I.js → chunk.CXRCFXZR.js} +8 -8
- package/dist/chunks/chunk.CXRCFXZR.js.map +7 -0
- package/dist/chunks/{chunk.U3CL2TPE.js → chunk.CZG2SMYG.js} +2 -2
- package/dist/chunks/{chunk.762G3PEJ.js → chunk.D3UJRRO6.js} +6 -6
- package/dist/chunks/chunk.D3UJRRO6.js.map +7 -0
- package/dist/chunks/{chunk.5ZRFAVKG.js → chunk.DCDK3EXG.js} +2 -2
- package/dist/chunks/{chunk.SFIQJMJV.js → chunk.DMB7Z2ZQ.js} +2 -2
- package/dist/chunks/{chunk.YSRREAXX.js → chunk.E5IDSSSD.js} +3 -3
- package/dist/chunks/{chunk.YSRREAXX.js.map → chunk.E5IDSSSD.js.map} +1 -1
- package/dist/chunks/{chunk.FITEZWTQ.js → chunk.FA4T7QQM.js} +2 -2
- package/dist/chunks/{chunk.FITEZWTQ.js.map → chunk.FA4T7QQM.js.map} +1 -1
- package/dist/chunks/{chunk.X3CFZAHW.js → chunk.FQYBA7T7.js} +2 -2
- package/dist/chunks/{chunk.X3CFZAHW.js.map → chunk.FQYBA7T7.js.map} +1 -1
- package/dist/chunks/{chunk.532L4VKN.js → chunk.FT3M2BTH.js} +2 -2
- package/dist/chunks/{chunk.SWCGPDHW.js → chunk.FULJSSFR.js} +2 -2
- package/dist/chunks/{chunk.TX2PDRBM.js → chunk.G2JP7HEH.js} +7 -7
- package/dist/chunks/chunk.G2JP7HEH.js.map +7 -0
- package/dist/chunks/{chunk.WA7EKCMV.js → chunk.G2TWKVVP.js} +2 -2
- package/dist/chunks/{chunk.BOBXDVSO.js → chunk.GA2HU6II.js} +6 -6
- package/dist/chunks/chunk.GA2HU6II.js.map +7 -0
- package/dist/chunks/{chunk.AJW2D63L.js → chunk.GE3DTZIM.js} +2 -2
- package/dist/chunks/{chunk.NUYZREPZ.js → chunk.GEV5TYRZ.js} +4 -4
- package/dist/chunks/{chunk.R3THZVHP.js → chunk.IC3XQ2EB.js} +2 -2
- package/dist/chunks/chunk.IC3XQ2EB.js.map +7 -0
- package/dist/chunks/{chunk.PRJ3FJGJ.js → chunk.ICGTNBIJ.js} +3 -3
- package/dist/chunks/{chunk.QX2JOWGH.js → chunk.IGLOIZ2W.js} +5 -5
- package/dist/chunks/chunk.IGLOIZ2W.js.map +7 -0
- package/dist/chunks/{chunk.ZDYMO5XT.js → chunk.IHQEDOAX.js} +2 -2
- package/dist/chunks/{chunk.FGAEUKVN.js → chunk.IUY4D7U3.js} +2 -2
- package/dist/chunks/{chunk.B3D627OD.js → chunk.JIELXBUU.js} +2 -2
- package/dist/chunks/chunk.JIELXBUU.js.map +7 -0
- package/dist/chunks/{chunk.E6OUQFF4.js → chunk.JU7GGWDE.js} +2 -2
- package/dist/chunks/{chunk.K36FG4W2.js → chunk.K4EBTKOS.js} +9 -9
- package/dist/chunks/chunk.K4EBTKOS.js.map +7 -0
- package/dist/chunks/{chunk.GYSYAXFI.js → chunk.KSWTSMEX.js} +8 -8
- package/dist/chunks/chunk.KSWTSMEX.js.map +7 -0
- package/dist/chunks/{chunk.A4FID4OH.js → chunk.KUQ6N3FH.js} +2 -2
- package/dist/chunks/{chunk.BRFSQ5UO.js → chunk.KWMZ63WC.js} +2 -2
- package/dist/chunks/chunk.KWMZ63WC.js.map +7 -0
- package/dist/chunks/{chunk.T4IRZQY2.js → chunk.KXDWM25J.js} +2 -2
- package/dist/chunks/{chunk.T4IRZQY2.js.map → chunk.KXDWM25J.js.map} +1 -1
- package/dist/chunks/{chunk.GOYGD46T.js → chunk.MVBAJTOF.js} +7 -7
- package/dist/chunks/{chunk.6ZCQFVOC.js → chunk.NC57MFGC.js} +2 -2
- package/dist/chunks/{chunk.3ZXMZDAX.js → chunk.NECBJEDG.js} +2 -2
- package/dist/chunks/{chunk.E4QLMZHL.js → chunk.NFEMXBDN.js} +2 -2
- package/dist/chunks/{chunk.YU2PZ5EK.js → chunk.NGIPAGC4.js} +2 -2
- package/dist/chunks/{chunk.UKUUCUD7.js → chunk.NLYJFOZZ.js} +6 -6
- package/dist/chunks/{chunk.RYQHOPIY.js → chunk.NTSN7KDQ.js} +2 -2
- package/dist/chunks/chunk.NTSN7KDQ.js.map +7 -0
- package/dist/chunks/{chunk.AMIQC3O7.js → chunk.OLRA37R5.js} +1 -1
- package/dist/chunks/{chunk.AMIQC3O7.js.map → chunk.OLRA37R5.js.map} +1 -1
- package/dist/chunks/{chunk.6AKLDG33.js → chunk.OPSPWNFD.js} +2 -2
- package/dist/chunks/{chunk.6AKLDG33.js.map → chunk.OPSPWNFD.js.map} +1 -1
- package/dist/chunks/{chunk.PDDQXWQR.js → chunk.OSJ3WQFD.js} +2 -2
- package/dist/chunks/{chunk.Y5RGUISY.js → chunk.PCHN7UNX.js} +2 -2
- package/dist/chunks/{chunk.Y5RGUISY.js.map → chunk.PCHN7UNX.js.map} +1 -1
- package/dist/chunks/{chunk.CILTVCBQ.js → chunk.PJF3RP7Q.js} +7 -7
- package/dist/chunks/chunk.PJF3RP7Q.js.map +7 -0
- package/dist/chunks/{chunk.IQGYOOWV.js → chunk.PLRHUWDP.js} +2 -2
- package/dist/chunks/{chunk.EFJD5CZ6.js → chunk.PQGDR57N.js} +2 -2
- package/dist/chunks/{chunk.D36G42T7.js → chunk.PZSENCZE.js} +7 -7
- package/dist/chunks/chunk.PZSENCZE.js.map +7 -0
- package/dist/chunks/{chunk.NDIBJ6JI.js → chunk.QCGPJAQF.js} +6 -6
- package/dist/chunks/chunk.QCGPJAQF.js.map +7 -0
- package/dist/chunks/{chunk.ZUQIXELH.js → chunk.QFS6KGDB.js} +2 -2
- package/dist/chunks/{chunk.QHPOPKTJ.js → chunk.R2CZGOPZ.js} +6 -6
- package/dist/chunks/chunk.R2CZGOPZ.js.map +7 -0
- package/dist/chunks/{chunk.HLQWQZQU.js → chunk.R3VV2JKB.js} +5 -5
- package/dist/chunks/chunk.R3VV2JKB.js.map +7 -0
- package/dist/chunks/{chunk.FJSVF4A2.js → chunk.RCM2ZMZA.js} +2 -2
- package/dist/chunks/{chunk.D6UYGOT5.js → chunk.RM54PPPR.js} +2 -2
- package/dist/chunks/{chunk.3A4IZ7IM.js → chunk.RMDAJPSI.js} +9 -9
- package/dist/chunks/chunk.RMDAJPSI.js.map +7 -0
- package/dist/chunks/{chunk.UOY56ORY.js → chunk.RVEOI5HV.js} +2 -2
- package/dist/chunks/{chunk.UKYLRMT2.js → chunk.RXJYIHMS.js} +2 -2
- package/dist/chunks/{chunk.JQADLKNT.js → chunk.S3JOQPQH.js} +8 -8
- package/dist/chunks/chunk.S3JOQPQH.js.map +7 -0
- package/dist/chunks/{chunk.6OVQULWC.js → chunk.SFKDMJXY.js} +8 -8
- package/dist/chunks/{chunk.6OVQULWC.js.map → chunk.SFKDMJXY.js.map} +1 -1
- package/dist/chunks/{chunk.MDKD6I5N.js → chunk.SV2YRXTN.js} +9 -9
- package/dist/chunks/chunk.SV2YRXTN.js.map +7 -0
- package/dist/chunks/{chunk.3JKMMYX3.js → chunk.THRS75O2.js} +2 -2
- package/dist/chunks/{chunk.5WZOBIEX.js → chunk.TYEVZCIC.js} +9 -9
- package/dist/chunks/{chunk.KBBZYAPL.js → chunk.UMJHRTE5.js} +9 -9
- package/dist/chunks/chunk.UMJHRTE5.js.map +7 -0
- package/dist/chunks/{chunk.EEMCXA5G.js → chunk.VHXR6VJU.js} +2 -2
- package/dist/chunks/{chunk.GTFKE4JG.js → chunk.VP73GNNH.js} +2 -2
- package/dist/chunks/{chunk.AP55JRQ3.js → chunk.VXYIZUDW.js} +2 -2
- package/dist/chunks/{chunk.QVRCVDGA.js → chunk.WJR72FH5.js} +2 -2
- package/dist/chunks/{chunk.XA4EOA25.js → chunk.WPIWR6GG.js} +8 -8
- package/dist/chunks/{chunk.HI3CSD4O.js → chunk.WTUKJGCV.js} +2 -2
- package/dist/chunks/{chunk.63LZB375.js → chunk.WZSMJ2WD.js} +2 -2
- package/dist/chunks/chunk.WZSMJ2WD.js.map +7 -0
- package/dist/chunks/{chunk.2HPEABF4.js → chunk.XHQTVQU6.js} +2 -2
- package/dist/chunks/{chunk.QQ26YV6J.js → chunk.XV6MIV3R.js} +7 -7
- package/dist/chunks/chunk.XV6MIV3R.js.map +7 -0
- package/dist/chunks/{chunk.IXSDGMHS.js → chunk.YJ5O6SUI.js} +2 -2
- package/dist/chunks/{chunk.574KKJH2.js → chunk.YTCOW742.js} +2 -2
- package/dist/chunks/{chunk.M6OBVNV5.js → chunk.ZFDM6C6S.js} +2 -2
- package/dist/chunks/{chunk.OJFEU2LY.js → chunk.ZHBRF2U3.js} +2 -2
- package/dist/chunks/{chunk.OJFEU2LY.js.map → chunk.ZHBRF2U3.js.map} +1 -1
- package/dist/chunks/{chunk.WIZJDLTC.js → chunk.ZHGCYOV2.js} +2 -2
- package/dist/chunks/chunk.ZHGCYOV2.js.map +7 -0
- package/dist/chunks/{chunk.46CKMKX5.js → chunk.ZJ43C76S.js} +3 -3
- package/dist/chunks/chunk.ZJ43C76S.js.map +7 -0
- package/dist/chunks/{chunk.NPAGHPJZ.js → chunk.ZOLZENHH.js} +2 -2
- package/dist/components/accordion/accordion.component.js +4 -4
- package/dist/components/accordion/accordion.js +5 -5
- package/dist/components/alert/alert.component.d.ts +1 -1
- package/dist/components/alert/alert.component.js +8 -8
- package/dist/components/alert/alert.js +9 -9
- package/dist/components/badge/badge.component.d.ts +1 -1
- package/dist/components/badge/badge.component.js +4 -4
- package/dist/components/badge/badge.js +5 -5
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.js +8 -8
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.d.ts +1 -1
- package/dist/components/button/button.component.js +7 -7
- package/dist/components/button/button.js +8 -8
- package/dist/components/button-group/button-group.component.d.ts +1 -1
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/checkbox/checkbox.component.d.ts +1 -1
- package/dist/components/checkbox/checkbox.component.js +5 -5
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/combobox/combobox.component.js +8 -8
- package/dist/components/combobox/combobox.js +9 -9
- package/dist/components/details/details.component.d.ts +1 -1
- package/dist/components/details/details.component.js +5 -5
- package/dist/components/details/details.js +6 -6
- package/dist/components/dialog/dialog.component.d.ts +1 -1
- package/dist/components/dialog/dialog.component.js +6 -6
- package/dist/components/dialog/dialog.js +7 -7
- package/dist/components/divider/divider.component.d.ts +1 -1
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.d.ts +1 -1
- package/dist/components/drawer/drawer.component.js +6 -6
- package/dist/components/drawer/drawer.js +7 -7
- package/dist/components/dropdown/dropdown.component.d.ts +1 -1
- package/dist/components/dropdown/dropdown.component.js +4 -4
- package/dist/components/dropdown/dropdown.js +5 -5
- package/dist/components/file/file.component.d.ts +1 -0
- package/dist/components/file/file.component.js +8 -8
- package/dist/components/file/file.js +9 -9
- package/dist/components/header/header.component.js +6 -6
- package/dist/components/header/header.js +7 -7
- package/dist/components/icon/icon.component.d.ts +1 -1
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.d.ts +1 -1
- package/dist/components/icon-button/icon-button.component.js +4 -4
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/input/input.component.d.ts +1 -1
- package/dist/components/input/input.component.js +7 -7
- package/dist/components/input/input.js +8 -8
- package/dist/components/menu/menu.component.d.ts +1 -1
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.d.ts +1 -1
- package/dist/components/menu-item/menu-item.component.js +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- package/dist/components/menu-label/menu-label.component.d.ts +1 -1
- package/dist/components/menu-label/menu-label.component.js +3 -3
- package/dist/components/menu-label/menu-label.js +4 -4
- package/dist/components/nav-item/nav-item.component.d.ts +1 -0
- package/dist/components/nav-item/nav-item.component.js +3 -3
- package/dist/components/nav-item/nav-item.js +4 -4
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.d.ts +1 -1
- package/dist/components/option/option.component.js +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/popup/popup.component.d.ts +1 -1
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/prio-nav/prio-nav.component.d.ts +1 -0
- package/dist/components/prio-nav/prio-nav.component.js +10 -10
- package/dist/components/prio-nav/prio-nav.js +11 -11
- package/dist/components/progress-bar/progress-bar.component.d.ts +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.d.ts +1 -1
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/radio/radio.component.d.ts +1 -1
- package/dist/components/radio/radio.component.js +4 -4
- package/dist/components/radio/radio.js +5 -5
- package/dist/components/radio-button/radio-button.component.d.ts +1 -1
- package/dist/components/radio-button/radio-button.component.js +3 -3
- package/dist/components/radio-button/radio-button.js +4 -4
- package/dist/components/radio-group/radio-group.component.d.ts +1 -1
- package/dist/components/radio-group/radio-group.component.js +5 -5
- package/dist/components/radio-group/radio-group.js +6 -6
- package/dist/components/range/range.component.js +6 -6
- package/dist/components/range/range.js +7 -7
- package/dist/components/range-tick/range-tick.component.d.ts +1 -1
- package/dist/components/range-tick/range-tick.component.js +2 -2
- package/dist/components/range-tick/range-tick.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.d.ts +1 -1
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/select/select.component.d.ts +1 -1
- package/dist/components/select/select.component.js +9 -9
- package/dist/components/select/select.js +10 -10
- package/dist/components/side-nav/side-nav.component.js +8 -8
- package/dist/components/side-nav/side-nav.js +9 -9
- package/dist/components/spinner/spinner.component.d.ts +1 -1
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/switch/switch.component.d.ts +1 -1
- package/dist/components/switch/switch.component.js +4 -4
- package/dist/components/switch/switch.js +5 -5
- package/dist/components/tab/tab.component.d.ts +1 -1
- package/dist/components/tab/tab.component.js +6 -6
- package/dist/components/tab/tab.js +7 -7
- package/dist/components/tab-group/tab-group.component.d.ts +1 -1
- package/dist/components/tab-group/tab-group.component.js +7 -7
- package/dist/components/tab-group/tab-group.js +8 -8
- package/dist/components/tab-panel/tab-panel.component.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tag/tag.component.d.ts +1 -1
- package/dist/components/tag/tag.component.js +6 -6
- package/dist/components/tag/tag.js +7 -7
- package/dist/components/textarea/textarea.component.d.ts +1 -1
- package/dist/components/textarea/textarea.component.js +4 -4
- package/dist/components/textarea/textarea.js +5 -5
- package/dist/components/tooltip/tooltip.component.d.ts +1 -1
- package/dist/components/tooltip/tooltip.component.js +4 -4
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/components/validate/utility.js +2 -2
- package/dist/components/validate/validate.component.d.ts +1 -1
- package/dist/components/validate/validate.component.js +10 -10
- package/dist/components/validate/validate.js +11 -11
- package/dist/custom-elements.json +93 -85
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +109 -109
- package/dist/utilities/form.js +2 -2
- package/dist/vscode.html-custom-data.json +48 -48
- package/package.json +1 -1
- package/dist/chunks/chunk.2RAC47FN.js.map +0 -7
- package/dist/chunks/chunk.2RXN2SCD.js.map +0 -7
- package/dist/chunks/chunk.2X3APD3V.js.map +0 -7
- package/dist/chunks/chunk.3A4IZ7IM.js.map +0 -7
- package/dist/chunks/chunk.46CKMKX5.js.map +0 -7
- package/dist/chunks/chunk.5PKVCNHM.js.map +0 -7
- package/dist/chunks/chunk.63LZB375.js.map +0 -7
- package/dist/chunks/chunk.762G3PEJ.js.map +0 -7
- package/dist/chunks/chunk.B3D627OD.js.map +0 -7
- package/dist/chunks/chunk.BOBXDVSO.js.map +0 -7
- package/dist/chunks/chunk.BRFSQ5UO.js.map +0 -7
- package/dist/chunks/chunk.CILTVCBQ.js.map +0 -7
- package/dist/chunks/chunk.D36G42T7.js.map +0 -7
- package/dist/chunks/chunk.DG6GXAVF.js.map +0 -7
- package/dist/chunks/chunk.FHND52A3.js.map +0 -7
- package/dist/chunks/chunk.GYSYAXFI.js.map +0 -7
- package/dist/chunks/chunk.HLQWQZQU.js.map +0 -7
- package/dist/chunks/chunk.HWNTLXRL.js.map +0 -7
- package/dist/chunks/chunk.JQADLKNT.js.map +0 -7
- package/dist/chunks/chunk.K36FG4W2.js.map +0 -7
- package/dist/chunks/chunk.KBBZYAPL.js.map +0 -7
- package/dist/chunks/chunk.MDKD6I5N.js.map +0 -7
- package/dist/chunks/chunk.NDIBJ6JI.js.map +0 -7
- package/dist/chunks/chunk.NHGNW7PA.js.map +0 -7
- package/dist/chunks/chunk.QHPOPKTJ.js.map +0 -7
- package/dist/chunks/chunk.QJPMVHQX.js.map +0 -7
- package/dist/chunks/chunk.QQ26YV6J.js.map +0 -7
- package/dist/chunks/chunk.QX2JOWGH.js.map +0 -7
- package/dist/chunks/chunk.R3THZVHP.js.map +0 -7
- package/dist/chunks/chunk.RAU2GK6I.js.map +0 -7
- package/dist/chunks/chunk.RYQHOPIY.js.map +0 -7
- package/dist/chunks/chunk.TX2PDRBM.js.map +0 -7
- package/dist/chunks/chunk.WASTXK4A.js.map +0 -7
- package/dist/chunks/chunk.WIZJDLTC.js.map +0 -7
- /package/dist/chunks/{chunk.SZ73NMRJ.js.map → chunk.2NS2E3LJ.js.map} +0 -0
- /package/dist/chunks/{chunk.3TOKEYJ6.js.map → chunk.3EPDSEI7.js.map} +0 -0
- /package/dist/chunks/{chunk.QOP6ET4B.js.map → chunk.3TECDOBS.js.map} +0 -0
- /package/dist/chunks/{chunk.JCJ64TPZ.js.map → chunk.43UZR7JA.js.map} +0 -0
- /package/dist/chunks/{chunk.UTPP6KE2.js.map → chunk.45RYQJWS.js.map} +0 -0
- /package/dist/chunks/{chunk.AQHRP3JF.js.map → chunk.4FYUNOAF.js.map} +0 -0
- /package/dist/chunks/{chunk.2GXRGBN3.js.map → chunk.4KUAEC3S.js.map} +0 -0
- /package/dist/chunks/{chunk.GAN4SEH5.js.map → chunk.4XC7NAJH.js.map} +0 -0
- /package/dist/chunks/{chunk.BMR7V4GF.js.map → chunk.67BZVLOD.js.map} +0 -0
- /package/dist/chunks/{chunk.UTJJJQMA.js.map → chunk.6GBQX53P.js.map} +0 -0
- /package/dist/chunks/{chunk.USSHF6CO.js.map → chunk.7PPS4IJJ.js.map} +0 -0
- /package/dist/chunks/{chunk.KLZ5NK2C.js.map → chunk.7YYNY2ZX.js.map} +0 -0
- /package/dist/chunks/{chunk.IZBTM55D.js.map → chunk.BG6L74VC.js.map} +0 -0
- /package/dist/chunks/{chunk.JP4QSX7M.js.map → chunk.CFUIAMHI.js.map} +0 -0
- /package/dist/chunks/{chunk.U3CL2TPE.js.map → chunk.CZG2SMYG.js.map} +0 -0
- /package/dist/chunks/{chunk.5ZRFAVKG.js.map → chunk.DCDK3EXG.js.map} +0 -0
- /package/dist/chunks/{chunk.SFIQJMJV.js.map → chunk.DMB7Z2ZQ.js.map} +0 -0
- /package/dist/chunks/{chunk.532L4VKN.js.map → chunk.FT3M2BTH.js.map} +0 -0
- /package/dist/chunks/{chunk.SWCGPDHW.js.map → chunk.FULJSSFR.js.map} +0 -0
- /package/dist/chunks/{chunk.WA7EKCMV.js.map → chunk.G2TWKVVP.js.map} +0 -0
- /package/dist/chunks/{chunk.AJW2D63L.js.map → chunk.GE3DTZIM.js.map} +0 -0
- /package/dist/chunks/{chunk.NUYZREPZ.js.map → chunk.GEV5TYRZ.js.map} +0 -0
- /package/dist/chunks/{chunk.PRJ3FJGJ.js.map → chunk.ICGTNBIJ.js.map} +0 -0
- /package/dist/chunks/{chunk.ZDYMO5XT.js.map → chunk.IHQEDOAX.js.map} +0 -0
- /package/dist/chunks/{chunk.FGAEUKVN.js.map → chunk.IUY4D7U3.js.map} +0 -0
- /package/dist/chunks/{chunk.E6OUQFF4.js.map → chunk.JU7GGWDE.js.map} +0 -0
- /package/dist/chunks/{chunk.A4FID4OH.js.map → chunk.KUQ6N3FH.js.map} +0 -0
- /package/dist/chunks/{chunk.GOYGD46T.js.map → chunk.MVBAJTOF.js.map} +0 -0
- /package/dist/chunks/{chunk.6ZCQFVOC.js.map → chunk.NC57MFGC.js.map} +0 -0
- /package/dist/chunks/{chunk.3ZXMZDAX.js.map → chunk.NECBJEDG.js.map} +0 -0
- /package/dist/chunks/{chunk.E4QLMZHL.js.map → chunk.NFEMXBDN.js.map} +0 -0
- /package/dist/chunks/{chunk.YU2PZ5EK.js.map → chunk.NGIPAGC4.js.map} +0 -0
- /package/dist/chunks/{chunk.UKUUCUD7.js.map → chunk.NLYJFOZZ.js.map} +0 -0
- /package/dist/chunks/{chunk.PDDQXWQR.js.map → chunk.OSJ3WQFD.js.map} +0 -0
- /package/dist/chunks/{chunk.IQGYOOWV.js.map → chunk.PLRHUWDP.js.map} +0 -0
- /package/dist/chunks/{chunk.EFJD5CZ6.js.map → chunk.PQGDR57N.js.map} +0 -0
- /package/dist/chunks/{chunk.ZUQIXELH.js.map → chunk.QFS6KGDB.js.map} +0 -0
- /package/dist/chunks/{chunk.FJSVF4A2.js.map → chunk.RCM2ZMZA.js.map} +0 -0
- /package/dist/chunks/{chunk.D6UYGOT5.js.map → chunk.RM54PPPR.js.map} +0 -0
- /package/dist/chunks/{chunk.UOY56ORY.js.map → chunk.RVEOI5HV.js.map} +0 -0
- /package/dist/chunks/{chunk.UKYLRMT2.js.map → chunk.RXJYIHMS.js.map} +0 -0
- /package/dist/chunks/{chunk.3JKMMYX3.js.map → chunk.THRS75O2.js.map} +0 -0
- /package/dist/chunks/{chunk.5WZOBIEX.js.map → chunk.TYEVZCIC.js.map} +0 -0
- /package/dist/chunks/{chunk.EEMCXA5G.js.map → chunk.VHXR6VJU.js.map} +0 -0
- /package/dist/chunks/{chunk.GTFKE4JG.js.map → chunk.VP73GNNH.js.map} +0 -0
- /package/dist/chunks/{chunk.AP55JRQ3.js.map → chunk.VXYIZUDW.js.map} +0 -0
- /package/dist/chunks/{chunk.QVRCVDGA.js.map → chunk.WJR72FH5.js.map} +0 -0
- /package/dist/chunks/{chunk.XA4EOA25.js.map → chunk.WPIWR6GG.js.map} +0 -0
- /package/dist/chunks/{chunk.HI3CSD4O.js.map → chunk.WTUKJGCV.js.map} +0 -0
- /package/dist/chunks/{chunk.2HPEABF4.js.map → chunk.XHQTVQU6.js.map} +0 -0
- /package/dist/chunks/{chunk.IXSDGMHS.js.map → chunk.YJ5O6SUI.js.map} +0 -0
- /package/dist/chunks/{chunk.574KKJH2.js.map → chunk.YTCOW742.js.map} +0 -0
- /package/dist/chunks/{chunk.M6OBVNV5.js.map → chunk.ZFDM6C6S.js.map} +0 -0
- /package/dist/chunks/{chunk.NPAGHPJZ.js.map → chunk.ZOLZENHH.js.map} +0 -0
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.FA4T7QQM.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -64,4 +64,4 @@ __decorateClass([
|
|
|
64
64
|
export {
|
|
65
65
|
SynTabPanel
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=chunk.
|
|
67
|
+
//# sourceMappingURL=chunk.FQYBA7T7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/tab-panel/tab-panel.component.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './tab-panel.styles.js';\nimport customStyles from './tab-panel.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nlet id = 0;\n\n/**\n * @summary Tab panels are used inside [tab groups](/components/tab-group) to display tabbed content.\n * @documentation https://synergy.
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './tab-panel.styles.js';\nimport customStyles from './tab-panel.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nlet id = 0;\n\n/**\n * @summary Tab panels are used inside [tab groups](/components/tab-group) to display tabbed content.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-tab-panel--docs\n * @status stable\n * @since 2.0\n *\n * @slot - The tab panel's content.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --padding - The tab panel's padding.\n */\nexport default class SynTabPanel extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private readonly attrId = ++id;\n private readonly componentId = `syn-tab-panel-${this.attrId}`;\n\n /** The tab panel's name. */\n @property({ reflect: true }) name = '';\n\n /** When true, the tab panel will be shown. */\n @property({ type: Boolean, reflect: true }) active = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.id = this.id.length > 0 ? this.id : this.componentId;\n this.setAttribute('role', 'tabpanel');\n }\n\n @watch('active')\n handleActiveChange() {\n this.setAttribute('aria-hidden', this.active ? 'false' : 'true');\n }\n\n render() {\n return html`\n <slot\n part=\"base\"\n class=${classMap({\n 'tab-panel': true,\n 'tab-panel--active': this.active\n })}\n ></slot>\n `;\n }\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAQzB,IAAI,KAAK;AAcT,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAAA;AAGE,SAAiB,SAAS,EAAE;AAC5B,SAAiB,cAAc,iBAAiB,KAAK,MAAM;AAG9B,gBAAO;AAGQ,kBAAS;AAAA;AAAA,EAErD,oBAAoB;AAClB,UAAM,kBAAkB;AACxB,SAAK,KAAK,KAAK,GAAG,SAAS,IAAI,KAAK,KAAK,KAAK;AAC9C,SAAK,aAAa,QAAQ,UAAU;AAAA,EACtC;AAAA,EAGA,qBAAqB;AACnB,SAAK,aAAa,eAAe,KAAK,SAAS,UAAU,MAAM;AAAA,EACjE;AAAA,EAEA,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,aAAa;AAAA,MACb,qBAAqB,KAAK;AAAA,IAC5B,CAAC,CAAC;AAAA;AAAA;AAAA,EAGR;AACF;AAlCqB,YACZ,SAAyB,CAAC,0BAAiB,0BAAQ,+BAAY;AAMzC;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAPR,YAOU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAVvB,YAUyB;AAS5C;AAAA,EADC,MAAM,QAAQ;AAAA,GAlBI,YAmBnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynProgressRing
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KWMZ63WC.js";
|
|
4
4
|
|
|
5
5
|
// src/components/progress-ring/progress-ring.ts
|
|
6
6
|
var progress_ring_default = SynProgressRing;
|
|
@@ -9,4 +9,4 @@ SynProgressRing.define("syn-progress-ring");
|
|
|
9
9
|
export {
|
|
10
10
|
progress_ring_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.FT3M2BTH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTextarea
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KSWTSMEX.js";
|
|
4
4
|
|
|
5
5
|
// src/components/textarea/textarea.ts
|
|
6
6
|
var textarea_default = SynTextarea;
|
|
@@ -9,4 +9,4 @@ SynTextarea.define("syn-textarea");
|
|
|
9
9
|
export {
|
|
10
10
|
textarea_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.FULJSSFR.js.map
|
|
@@ -13,22 +13,22 @@ import {
|
|
|
13
13
|
} from "./chunk.AERTEAG5.js";
|
|
14
14
|
import {
|
|
15
15
|
FormControlController
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.OLRA37R5.js";
|
|
17
17
|
import {
|
|
18
18
|
HasSlotController
|
|
19
19
|
} from "./chunk.WVVQK5TE.js";
|
|
20
|
-
import {
|
|
21
|
-
watch
|
|
22
|
-
} from "./chunk.74IOULXM.js";
|
|
23
20
|
import {
|
|
24
21
|
enableDefaultSettings
|
|
25
22
|
} from "./chunk.NUIJATJY.js";
|
|
23
|
+
import {
|
|
24
|
+
watch
|
|
25
|
+
} from "./chunk.74IOULXM.js";
|
|
26
26
|
import {
|
|
27
27
|
component_styles_default
|
|
28
28
|
} from "./chunk.NLYVOJGK.js";
|
|
29
29
|
import {
|
|
30
30
|
SynergyElement
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.FA4T7QQM.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass
|
|
34
34
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -213,7 +213,7 @@ __decorateClass([
|
|
|
213
213
|
state()
|
|
214
214
|
], SynSwitch.prototype, "hasFocus", 2);
|
|
215
215
|
__decorateClass([
|
|
216
|
-
property()
|
|
216
|
+
property({ reflect: true })
|
|
217
217
|
], SynSwitch.prototype, "title", 2);
|
|
218
218
|
__decorateClass([
|
|
219
219
|
property()
|
|
@@ -255,4 +255,4 @@ SynSwitch = __decorateClass([
|
|
|
255
255
|
export {
|
|
256
256
|
SynSwitch
|
|
257
257
|
};
|
|
258
|
-
//# sourceMappingURL=chunk.
|
|
258
|
+
//# sourceMappingURL=chunk.G2JP7HEH.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/switch/switch.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './switch.styles.js';\nimport customStyles from './switch.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Switches allow the user to toggle an option on or off.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-switch--docs\n * @status stable\n * @since 2.0\n *\n * @slot - The switch's label.\n * @slot help-text - Text that describes how to use the switch. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when the control's checked state changes.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The control that houses the switch's thumb.\n * @csspart thumb - The switch's thumb.\n * @csspart label - The switch's label.\n * @csspart form-control-help-text - The help text's wrapper.\n *\n * @cssproperty --width - The width of the switch.\n * @cssproperty --height - The height of the switch.\n * @cssproperty --thumb-size - The size of the thumb.\n */\n@enableDefaultSettings('SynSwitch')\nexport default class SynSwitch extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n\n private readonly formControlController = new FormControlController(this, {\n value: (control: SynSwitch) => (control.checked ? control.value || 'on' : undefined),\n defaultValue: (control: SynSwitch) => control.defaultChecked,\n setValue: (control: SynSwitch, checked: boolean) => (control.checked = checked)\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text');\n\n @query('input[type=\"checkbox\"]') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n @property({ reflect: true }) title = ''; // make reactive to pass through\n\n /** The name of the switch, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the switch, submitted as a name/value pair with form data. */\n @property() value: string;\n\n /** The switch's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the switch. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the switch in a checked state. */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue('checked') defaultChecked = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the switch a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The switch's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleInput() {\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleClick() {\n this.checked = !this.checked;\n this.emit('syn-change');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.checked = false;\n this.emit('syn-change');\n this.emit('syn-input');\n }\n\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.checked = true;\n this.emit('syn-change');\n this.emit('syn-input');\n }\n }\n\n @watch('checked', { waitUntilFirstUpdate: true })\n handleCheckedChange() {\n this.input.checked = this.checked; // force a sync update\n this.formControlController.updateValidity();\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(true);\n }\n\n /** Simulates a click on the switch. */\n click() {\n this.input.click();\n }\n\n /** Sets focus on the switch. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the switch. */\n blur() {\n this.input.blur();\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n\n return html`\n <div\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-help-text': hasHelpText\n })}\n >\n <label\n part=\"base\"\n class=${classMap({\n switch: true,\n 'switch--checked': this.checked,\n 'switch--disabled': this.disabled,\n 'switch--focused': this.hasFocus,\n 'switch--small': this.size === 'small',\n 'switch--medium': this.size === 'medium',\n 'switch--large': this.size === 'large'\n })}\n >\n <input\n class=\"switch__input\"\n type=\"checkbox\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${this.name}\n value=${ifDefined(this.value)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n role=\"switch\"\n aria-checked=${this.checked ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n @click=${this.handleClick}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @keydown=${this.handleKeyDown}\n />\n\n <span part=\"control\" class=\"switch__control\">\n <span part=\"thumb\" class=\"switch__thumb\"></span>\n </span>\n\n <div part=\"label\" class=\"switch__label\">\n <slot></slot>\n </div>\n </label>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-switch': SynSwitch;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAsCvC,IAAqB,YAArB,cAAuC,eAA6C;AAAA,EAApF;AAAA;AAGE,SAAiB,wBAAwB,IAAI,sBAAsB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A+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;AA3GmB,YAArB;AAAA,EADC,sBAAsB,WAAW;AAAA,GACb;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCombobox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.TYEVZCIC.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.G2TWKVVP.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk.WXVOTRW5.js";
|
|
17
17
|
import {
|
|
18
18
|
SynIconButton
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.A77V4OPP.js";
|
|
20
20
|
import {
|
|
21
21
|
waitForEvent
|
|
22
22
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
HasSlotController
|
|
33
33
|
} from "./chunk.WVVQK5TE.js";
|
|
34
|
-
import {
|
|
35
|
-
watch
|
|
36
|
-
} from "./chunk.74IOULXM.js";
|
|
37
34
|
import {
|
|
38
35
|
LocalizeController
|
|
39
36
|
} from "./chunk.GIU3H3J3.js";
|
|
37
|
+
import {
|
|
38
|
+
watch
|
|
39
|
+
} from "./chunk.74IOULXM.js";
|
|
40
40
|
import {
|
|
41
41
|
component_styles_default
|
|
42
42
|
} from "./chunk.NLYVOJGK.js";
|
|
43
43
|
import {
|
|
44
44
|
SynergyElement
|
|
45
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.FA4T7QQM.js";
|
|
46
46
|
import {
|
|
47
47
|
__decorateClass
|
|
48
48
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -292,4 +292,4 @@ setDefaultAnimation("dialog.overlay.hide", {
|
|
|
292
292
|
export {
|
|
293
293
|
SynDialog
|
|
294
294
|
};
|
|
295
|
-
//# sourceMappingURL=chunk.
|
|
295
|
+
//# sourceMappingURL=chunk.GA2HU6II.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/dialog/dialog.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../internal/scroll.js';\nimport { property, query } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport Modal from '../../internal/modal.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './dialog.styles.js';\nimport customStyles from './dialog.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Dialogs, sometimes called \"modals\", appear above the page and require the user's immediate attention.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-dialog--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The dialog's main content.\n * @slot label - The dialog's label. Alternatively, you can use the `label` attribute.\n * @slot header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @event syn-show - Emitted when the dialog opens.\n * @event syn-after-show - Emitted after the dialog opens and all animations are complete.\n * @event syn-hide - Emitted when the dialog closes.\n * @event syn-after-hide - Emitted after the dialog closes and all animations are complete.\n * @event syn-initial-focus - Emitted when the dialog opens and is ready to receive focus. Calling\n * `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n * @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} syn-request-close - Emitted when the user attempts to\n * close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling\n * `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in\n * destructive behavior such as data loss.\n *\n * @csspart base - The component's base wrapper.\n * @csspart overlay - The overlay that covers the screen behind the dialog.\n * @csspart panel - The dialog's panel (where the dialog and its content are rendered).\n * @csspart header - The dialog's header. This element wraps the title and header actions.\n * @csspart header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @csspart title - The dialog's title.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n * @csspart body - The dialog's body.\n * @csspart footer - The dialog's footer.\n *\n * @cssproperty --width - The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.\n * @cssproperty --header-spacing - The amount of padding to use for the header.\n * @cssproperty --body-spacing - The amount of padding to use for the body.\n * @cssproperty --footer-spacing - The amount of padding to use for the footer.\n *\n * @animation dialog.show - The animation to use when showing the dialog.\n * @animation dialog.hide - The animation to use when hiding the dialog.\n * @animation dialog.denyClose - The animation to use when a request to close the dialog is denied.\n * @animation dialog.overlay.show - The animation to use when showing the dialog's overlay.\n * @animation dialog.overlay.hide - The animation to use when hiding the dialog's overlay.\n *\n * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus\n * trapping and allow third-party modals spawned from an active Synergy modal, call `modal.activateExternal()` when\n * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Synergy's focus trapping.\n */\nexport default class SynDialog extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = {\n 'syn-icon-button': SynIconButton\n };\n\n private readonly hasSlotController = new HasSlotController(this, 'footer');\n private readonly localize = new LocalizeController(this);\n private originalTrigger: HTMLElement | null;\n public modal = new Modal(this);\n private closeWatcher: CloseWatcher | null;\n\n @query('.dialog') dialog: HTMLElement;\n @query('.dialog__panel') panel: HTMLElement;\n @query('.dialog__overlay') overlay: HTMLElement;\n\n /**\n * Indicates whether or not the dialog is open. You can toggle this attribute to show and hide the dialog, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the dialog's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * The dialog's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.\n */\n @property({ reflect: true }) label = '';\n\n /**\n * Disables the header. This will also remove the default close button, so please ensure you provide an easy,\n * accessible way for users to dismiss the dialog.\n */\n @property({ attribute: 'no-header', type: Boolean, reflect: true }) noHeader = false;\n\n firstUpdated() {\n this.dialog.hidden = !this.open;\n\n if (this.open) {\n this.addOpenListeners();\n this.modal.activate();\n lockBodyScrolling(this);\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.modal.deactivate();\n unlockBodyScrolling(this);\n this.removeOpenListeners();\n }\n\n private requestClose(source: 'close-button' | 'keyboard' | 'overlay') {\n const slRequestClose = this.emit('syn-request-close', {\n cancelable: true,\n detail: { source }\n });\n\n if (slRequestClose.defaultPrevented) {\n const animation = getAnimation(this, 'dialog.denyClose', { dir: this.localize.dir() });\n animateTo(this.panel, animation.keyframes, animation.options);\n return;\n }\n\n this.hide();\n }\n\n private addOpenListeners() {\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => this.requestClose('keyboard');\n } else {\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n }\n }\n\n private removeOpenListeners() {\n this.closeWatcher?.destroy();\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n }\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape' && this.modal.isActive() && this.open) {\n event.stopPropagation();\n this.requestClose('keyboard');\n }\n };\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n this.originalTrigger = document.activeElement as HTMLElement;\n this.modal.activate();\n\n lockBodyScrolling(this);\n\n // When the dialog is shown, Safari will attempt to set focus on whatever element has autofocus. This can cause\n // the dialogs's animation to jitter (if it starts offscreen), so we'll temporarily remove the attribute, call\n // `focus({ preventScroll: true })` ourselves, and add the attribute back afterwards.\n //\n // Related: https://github.com/shoelace-style/shoelace/issues/693\n //\n const autoFocusTarget = this.querySelector('[autofocus]');\n if (autoFocusTarget) {\n autoFocusTarget.removeAttribute('autofocus');\n }\n\n await Promise.all([stopAnimations(this.dialog), stopAnimations(this.overlay)]);\n this.dialog.hidden = false;\n\n // Set initial focus\n requestAnimationFrame(() => {\n const slInitialFocus = this.emit('syn-initial-focus', { cancelable: true });\n\n if (!slInitialFocus.defaultPrevented) {\n // Set focus to the autofocus target and restore the attribute\n if (autoFocusTarget) {\n (autoFocusTarget as HTMLInputElement).focus({ preventScroll: true });\n } else {\n this.panel.focus({ preventScroll: true });\n }\n }\n\n // Restore the autofocus attribute\n if (autoFocusTarget) {\n autoFocusTarget.setAttribute('autofocus', '');\n }\n });\n\n const panelAnimation = getAnimation(this, 'dialog.show', { dir: this.localize.dir() });\n const overlayAnimation = getAnimation(this, 'dialog.overlay.show', { dir: this.localize.dir() });\n await Promise.all([\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options),\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options)\n ]);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n blurActiveElement(this);\n this.emit('syn-hide');\n this.removeOpenListeners();\n this.modal.deactivate();\n\n await Promise.all([stopAnimations(this.dialog), stopAnimations(this.overlay)]);\n const panelAnimation = getAnimation(this, 'dialog.hide', { dir: this.localize.dir() });\n const overlayAnimation = getAnimation(this, 'dialog.overlay.hide', { dir: this.localize.dir() });\n\n // Animate the overlay and the panel at the same time. Because animation durations might be different, we need to\n // hide each one individually when the animation finishes, otherwise the first one that finishes will reappear\n // unexpectedly. We'll unhide them after all animations have completed.\n await Promise.all([\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options).then(() => {\n this.overlay.hidden = true;\n }),\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options).then(() => {\n this.panel.hidden = true;\n })\n ]);\n\n this.dialog.hidden = true;\n\n // Now that the dialog is hidden, restore the overlay and panel for next time\n this.overlay.hidden = false;\n this.panel.hidden = false;\n\n unlockBodyScrolling(this);\n\n // Restore focus to the original trigger\n const trigger = this.originalTrigger;\n if (typeof trigger?.focus === 'function') {\n setTimeout(() => trigger.focus());\n }\n\n this.emit('syn-after-hide');\n }\n }\n\n /** Shows the dialog. */\n async show() {\n if (this.open) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the dialog */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n dialog: true,\n 'dialog--open': this.open,\n 'dialog--has-footer': this.hasSlotController.test('footer')\n })}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" @click=${() => this.requestClose('overlay')} tabindex=\"-1\"></div>\n\n <div\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden=${this.open ? 'false' : 'true'}\n aria-label=${ifDefined(this.noHeader ? this.label : undefined)}\n aria-labelledby=${ifDefined(!this.noHeader ? 'title' : undefined)}\n tabindex=\"-1\"\n >\n ${!this.noHeader\n ? html`\n <header part=\"header\" class=\"dialog__header\">\n <h2 part=\"title\" class=\"dialog__title\" id=\"title\">\n <slot name=\"label\"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>\n </h2>\n <div part=\"header-actions\" class=\"dialog__header-actions\">\n <slot name=\"header-actions\"></slot>\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"dialog__close\"\n name=\"x-lg\"\n label=${this.localize.term('close')}\n library=\"system\"\n @click=\"${() => this.requestClose('close-button')}\"\n ></syn-icon-button>\n </div>\n </header>\n `\n : ''}\n ${\n '' /* The tabindex=\"-1\" is here because the body is technically scrollable if overflowing. However, if there's no focusable elements inside, you won't actually be able to scroll it via keyboard. Previously this was just a <slot>, but tabindex=\"-1\" on the slot causes children to not be focusable. https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277 */\n }\n <div part=\"body\" class=\"dialog__body\" tabindex=\"-1\"><slot></slot></div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('dialog.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('dialog.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('dialog.denyClose', {\n keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('dialog.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('dialog.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;AA6DhC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAME,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AACzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAEvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAWe,gBAAO;AAMtB,iBAAQ;AAM+B,oBAAW;AAiD/E,SAAQ,wBAAwB,CAAC,UAAyB;AACxD,UAAI,MAAM,QAAQ,YAAY,KAAK,MAAM,SAAS,KAAK,KAAK,MAAM;AAChE,cAAM,gBAAgB;AACtB,aAAK,aAAa,UAAU;AAAA,MAC9B;AAAA,IACF;AAAA;AAAA,EApDA,eAAe;AACb,SAAK,OAAO,SAAS,CAAC,KAAK;AAE3B,QAAI,KAAK,MAAM;AACb,WAAK,iBAAiB;AACtB,WAAK,MAAM,SAAS;AACpB,wBAAkB,IAAI;AAAA,IACxB;AAAA,EACF;AAAA,EAEA,uBAAuB;AACrB,UAAM,qBAAqB;AAC3B,SAAK,MAAM,WAAW;AACtB,wBAAoB,IAAI;AACxB,SAAK,oBAAoB;AAAA,EAC3B;AAAA,EAEQ,aAAa,QAAiD;AACpE,UAAM,iBAAiB,KAAK,KAAK,qBAAqB;AAAA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AS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynFile
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2BF2ZBSM.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.GE3DTZIM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTooltip
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.C4JBMUTM.js";
|
|
4
4
|
import {
|
|
5
5
|
arraysDiffer,
|
|
6
6
|
getNormalizedValueFromClientX,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
FormControlController,
|
|
21
21
|
customErrorValidityState,
|
|
22
22
|
validValidityState
|
|
23
|
-
} from "./chunk.
|
|
23
|
+
} from "./chunk.OLRA37R5.js";
|
|
24
24
|
import {
|
|
25
25
|
HasSlotController
|
|
26
26
|
} from "./chunk.WVVQK5TE.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./chunk.NLYVOJGK.js";
|
|
36
36
|
import {
|
|
37
37
|
SynergyElement
|
|
38
|
-
} from "./chunk.
|
|
38
|
+
} from "./chunk.FA4T7QQM.js";
|
|
39
39
|
import {
|
|
40
40
|
__decorateClass,
|
|
41
41
|
__privateAdd,
|
|
@@ -716,4 +716,4 @@ SynRange = __decorateClass([
|
|
|
716
716
|
export {
|
|
717
717
|
SynRange
|
|
718
718
|
};
|
|
719
|
-
//# sourceMappingURL=chunk.
|
|
719
|
+
//# sourceMappingURL=chunk.GEV5TYRZ.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk.NLYVOJGK.js";
|
|
18
18
|
import {
|
|
19
19
|
SynergyElement
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.FA4T7QQM.js";
|
|
21
21
|
import {
|
|
22
22
|
__decorateClass
|
|
23
23
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -191,4 +191,4 @@ __decorateClass([
|
|
|
191
191
|
export {
|
|
192
192
|
SynIcon
|
|
193
193
|
};
|
|
194
|
-
//# sourceMappingURL=chunk.
|
|
194
|
+
//# sourceMappingURL=chunk.IC3XQ2EB.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/icon/icon.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { getIconLibrary, type IconLibrary, unwatchIcon, watchIcon } from './library.js';\nimport { html } from 'lit';\nimport { isTemplateResult } from 'lit/directive-helpers.js';\nimport { property, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './icon.styles.js';\nimport customStyles from './icon.custom.styles.js';\nimport type { CSSResultGroup, HTMLTemplateResult } from 'lit';\n\nconst CACHEABLE_ERROR = Symbol();\nconst RETRYABLE_ERROR = Symbol();\ntype SVGResult = HTMLTemplateResult | SVGSVGElement | typeof RETRYABLE_ERROR | typeof CACHEABLE_ERROR;\n\nlet parser: DOMParser;\nconst iconCache = new Map<string, Promise<SVGResult>>();\n\ninterface IconSource {\n url?: string;\n fromLibrary: boolean;\n}\n\n/**\n * @summary Icons are symbols that can be used to represent various options within an application.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-icon--docs\n * @status stable\n * @since 2.0\n *\n * @event syn-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.\n * @event syn-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.\n *\n * @csspart svg - The internal SVG element.\n * @csspart use - The <use> element generated when using `spriteSheet: true`\n */\nexport default class SynIcon extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private initialRender = false;\n\n /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */\n private async resolveIcon(url: string, library?: IconLibrary): Promise<SVGResult> {\n let fileData: Response;\n\n if (library?.spriteSheet) {\n this.svg = html`<svg part=\"svg\">\n <use part=\"use\" href=\"${url}\" width=\"100%\" height=\"100%\"></use>\n </svg>`;\n\n return this.svg;\n }\n\n // #806: Make sure to not fetch system icons\n // as they are part of the bundle anyways.\n // This speeds up the loading of the icon.\n if (this.library === 'system') {\n // Skip the icon if the URL is empty\n if (!url) {\n return CACHEABLE_ERROR;\n }\n\n // If the URL is a system icon, we can just return it\n fileData = new Response(url, {\n status: 200,\n });\n } else {\n try {\n fileData = await fetch(url, { mode: 'cors' });\n if (!fileData.ok) return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;\n } catch {\n return RETRYABLE_ERROR;\n }\n }\n\n try {\n const div = document.createElement('div');\n div.innerHTML = await fileData.text();\n\n const svg = div.firstElementChild;\n if (svg?.tagName?.toLowerCase() !== 'svg') return CACHEABLE_ERROR;\n\n if (!parser) parser = new DOMParser();\n const doc = parser.parseFromString(svg.outerHTML, 'text/html');\n\n const svgEl = doc.body.querySelector('svg');\n if (!svgEl) return CACHEABLE_ERROR;\n\n svgEl.part.add('svg');\n return document.adoptNode(svgEl);\n } catch {\n return CACHEABLE_ERROR;\n }\n }\n\n @state() private svg: SVGElement | HTMLTemplateResult | null = null;\n\n /** The name of the icon to draw. Available names depend on the icon library being used. */\n @property({ reflect: true }) name?: string;\n\n /**\n * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\n * can result in XSS attacks.\n */\n @property() src?: string;\n\n /**\n * An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and\n * ignored by assistive devices.\n */\n @property() label = '';\n\n /** The name of a registered custom icon library. */\n @property({ reflect: true }) library = 'default';\n\n connectedCallback() {\n super.connectedCallback();\n watchIcon(this);\n }\n\n firstUpdated() {\n this.initialRender = true;\n this.setIcon();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n unwatchIcon(this);\n }\n\n private getIconSource(): IconSource {\n const library = getIconLibrary(this.library);\n if (this.name && library) {\n return {\n url: library.resolver(this.name),\n fromLibrary: true\n };\n }\n\n return {\n url: this.src,\n fromLibrary: false\n };\n }\n\n @watch('label')\n handleLabelChange() {\n const hasLabel = typeof this.label === 'string' && this.label.length > 0;\n\n if (hasLabel) {\n this.setAttribute('role', 'img');\n this.setAttribute('aria-label', this.label);\n this.removeAttribute('aria-hidden');\n } else {\n this.removeAttribute('role');\n this.removeAttribute('aria-label');\n this.setAttribute('aria-hidden', 'true');\n }\n }\n\n @watch(['name', 'src', 'library'])\n async setIcon() {\n const { url, fromLibrary } = this.getIconSource();\n const library = fromLibrary ? getIconLibrary(this.library) : undefined;\n\n if (!url) {\n this.svg = null;\n return;\n }\n\n let iconResolver = iconCache.get(url);\n if (!iconResolver) {\n iconResolver = this.resolveIcon(url, library);\n iconCache.set(url, iconResolver);\n }\n\n // If we haven't rendered yet, exit early. This avoids unnecessary work due to watching multiple props.\n if (!this.initialRender) {\n return;\n }\n\n const svg = await iconResolver;\n\n if (svg === RETRYABLE_ERROR) {\n iconCache.delete(url);\n }\n\n if (url !== this.getIconSource().url) {\n // If the url has changed while fetching the icon, ignore this request\n return;\n }\n\n if (isTemplateResult(svg)) {\n this.svg = svg;\n\n if (library) {\n // Using a templateResult requires the SVG to be written to the DOM first before we can grab the SVGElement\n // to be passed to the library's mutator function.\n await this.updateComplete;\n\n const shadowSVG = this.shadowRoot!.querySelector(\"[part='svg']\")!;\n\n if (typeof library.mutator === 'function' && shadowSVG) {\n library.mutator(shadowSVG as SVGElement);\n }\n }\n\n return;\n }\n\n switch (svg) {\n case RETRYABLE_ERROR:\n case CACHEABLE_ERROR:\n this.svg = null;\n this.emit('syn-error');\n break;\n default:\n this.svg = svg.cloneNode(true) as SVGElement;\n library?.mutator?.(this.svg);\n this.emit('syn-load');\n }\n }\n\n render() {\n return this.svg;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,UAAU,aAAa;AAQhC,IAAM,kBAAkB,OAAO;AAC/B,IAAM,kBAAkB,OAAO;AAG/B,IAAI;AACJ,IAAM,YAAY,oBAAI,IAAgC;AAmBtD,IAAqB,UAArB,cAAqC,eAAe;AAAA,EAApD;AAAA;AAGE,SAAQ,gBAAgB;AAwDf,SAAQ,MAA8C;AAenD,iBAAQ;AAGS,mBAAU;AAAA;AAAA;AAAA,EAvEvC,MAAc,YAAY,KAAa,SAA2C;AAjDpF;AAkDI,QAAI;AAEJ,QAAI,mCAAS,aAAa;AACxB,WAAK,MAAM;AAAA,gCACe,GAAG;AAAA;AAG7B,aAAO,KAAK;AAAA,IACd;AAKA,QAAI,KAAK,YAAY,UAAU;AAE7B,UAAI,CAAC,KAAK;AACR,eAAO;AAAA,MACT;AAGA,iBAAW,IAAI,SAAS,KAAK;AAAA,QAC3B,QAAQ;AAAA,MACV,CAAC;AAAA,IACH,OAAO;AACL,UAAI;AACF,mBAAW,MAAM,MAAM,KAAK,EAAE,MAAM,OAAO,CAAC;AAC5C,YAAI,CAAC,SAAS,GAAI,QAAO,SAAS,WAAW,MAAM,kBAAkB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E,SAAS,KAAK,CAAC;AAAA,GA9DR,QA8DU;AAMjB;AAAA,EAAX,SAAS;AAAA,GApES,QAoEP;AAMA;AAAA,EAAX,SAAS;AAAA,GA1ES,QA0EP;AAGiB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA7ER,QA6EU;AAiC7B;AAAA,EADC,MAAM,OAAO;AAAA,GA7GK,QA8GnB;AAeM;AAAA,EADL,MAAM,CAAC,QAAQ,OAAO,SAAS,CAAC;AAAA,GA5Hd,QA6Hb;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.MJ7R4QQT.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.ZHBRF2U3.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.WVVQK5TE.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.FA4T7QQM.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -131,4 +131,4 @@ __decorateClass([
|
|
|
131
131
|
export {
|
|
132
132
|
SynOptgroup
|
|
133
133
|
};
|
|
134
|
-
//# sourceMappingURL=chunk.
|
|
134
|
+
//# sourceMappingURL=chunk.ICGTNBIJ.js.map
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
HasSlotController
|
|
6
6
|
} from "./chunk.WVVQK5TE.js";
|
|
7
|
-
import {
|
|
8
|
-
watch
|
|
9
|
-
} from "./chunk.74IOULXM.js";
|
|
10
7
|
import {
|
|
11
8
|
enableDefaultSettings
|
|
12
9
|
} from "./chunk.NUIJATJY.js";
|
|
10
|
+
import {
|
|
11
|
+
watch
|
|
12
|
+
} from "./chunk.74IOULXM.js";
|
|
13
13
|
import {
|
|
14
14
|
component_styles_default
|
|
15
15
|
} from "./chunk.NLYVOJGK.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.FA4T7QQM.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -138,4 +138,4 @@ SynRadioButton = __decorateClass([
|
|
|
138
138
|
export {
|
|
139
139
|
SynRadioButton
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk.
|
|
141
|
+
//# sourceMappingURL=chunk.IGLOIZ2W.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/radio-button/radio-button.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit/static-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './radio-button.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Radios buttons allow the user to select a single option from a group using a button-like control.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-radio-button--docs\n * @status stable\n * @since 2.0\n *\n * @slot - The radio button's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n *\n * @csspart base - The component's base wrapper.\n * @csspart button - The internal `<button>` element.\n * @csspart button--checked - The internal button element when the radio button is checked.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart label - The container that wraps the radio button's label.\n * @csspart suffix - The container that wraps the suffix.\n */\n@enableDefaultSettings('SynRadioButton')\nexport default class SynRadioButton extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'prefix', 'suffix');\n\n @query('.button') input: HTMLInputElement;\n @query('.hidden-input') hiddenInput: HTMLInputElement;\n\n @state() protected hasFocus = false;\n\n /**\n * @internal The radio button's checked state. This is exposed as an \"internal\" attribute so we can reflect it, making\n * it easier to style in button groups.\n */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /** The radio's value. When selected, the radio group will receive this value. */\n @property() value: string;\n\n /** Disables the radio button. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * The radio button's size. When used inside a radio group, the size will be determined by the radio group's size so\n * this attribute can typically be omitted.\n */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Draws a pill-style radio button with rounded edges. */\n @property({ type: Boolean, reflect: true }) pill = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'presentation');\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleClick(e: MouseEvent) {\n if (this.disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n this.checked = true;\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n /** Sets focus on the radio button. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the radio button. */\n blur() {\n this.input.blur();\n }\n\n render() {\n return html`\n <div part=\"base\" role=\"presentation\">\n <button\n part=\"${`button${this.checked ? ' button--checked' : ''}`}\"\n role=\"radio\"\n aria-checked=\"${this.checked}\"\n class=${classMap({\n button: true,\n 'button--default': true,\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n 'button--checked': this.checked,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--outline': true,\n 'button--pill': this.pill,\n 'button--has-label': this.hasSlotController.test('[default]'),\n 'button--has-prefix': this.hasSlotController.test('prefix'),\n 'button--has-suffix': this.hasSlotController.test('suffix')\n })}\n aria-disabled=${this.disabled}\n type=\"button\"\n value=${ifDefined(this.value)}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @click=${this.handleClick}\n >\n <slot name=\"prefix\" part=\"prefix\" class=\"button__prefix\"></slot>\n <slot part=\"label\" class=\"button__label\"></slot>\n <slot name=\"suffix\" part=\"suffix\" class=\"button__suffix\"></slot>\n </button>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU,OAAO,aAAa;AA6BvC,IAAqB,iBAArB,cAA4C,eAAe;AAAA,EAA3D;AAAA;AAGE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,UAAU,QAAQ;AAKvF,SAAU,WAAW;AAMc,mBAAU;AAMV,oBAAW;AAM1B,gBAAqC;AAGtB,gBAAO;AAAA;AAAA,EAEnD,oBAAoB;AAClB,UAAM,kBAAkB;AACxB,SAAK,aAAa,QAAQ,cAAc;AAAA,EAC1C;AAAA,EAEQ,aAAa;AACnB,SAAK,WAAW;AAChB,SAAK,KAAK,UAAU;AAAA,EACtB;AAAA,EAEQ,YAAY,GAAe;AACjC,QAAI,KAAK,UAAU;AACjB,QAAE,eAAe;AACjB,QAAE,gBAAgB;AAClB;AAAA,IACF;AAEA,SAAK,UAAU;AAAA,EACjB;AA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M;AAAA,GARY,eAQA;AAMyB;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAdvB,eAcyB;AAGhC;AAAA,EAAX,SAAS;AAAA,GAjBS,eAiBP;AAGgC;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GApBvB,eAoByB;AAMf;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA1BR,eA0BU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA7BvB,eA6ByB;AA4B5C;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAxD9B,eAyDnB;AAzDmB,iBAArB;AAAA,EADC,sBAAsB,gBAAgB;AAAA,GAClB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSwitch
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.G2JP7HEH.js";
|
|
4
4
|
|
|
5
5
|
// src/components/switch/switch.ts
|
|
6
6
|
var switch_default = SynSwitch;
|
|
@@ -9,4 +9,4 @@ SynSwitch.define("syn-switch");
|
|
|
9
9
|
export {
|
|
10
10
|
switch_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.IHQEDOAX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRange
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.GEV5TYRZ.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.IUY4D7U3.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.NLYVOJGK.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.FA4T7QQM.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -160,4 +160,4 @@ __decorateClass([
|
|
|
160
160
|
export {
|
|
161
161
|
SynMenu
|
|
162
162
|
};
|
|
163
|
-
//# sourceMappingURL=chunk.
|
|
163
|
+
//# sourceMappingURL=chunk.JIELXBUU.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/menu/menu.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { html } from 'lit';\nimport { query } from 'lit/decorators.js';\nimport { state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport type { SynAttributesChangedEvent } from '../../events/syn-attributes-changed.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './menu.styles.js';\nimport customStyles from './menu.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type SynMenuItem from '../menu-item/menu-item.component.js';\n\nexport interface MenuSelectEventDetail {\n item: SynMenuItem;\n}\n\n/**\n * @summary Menus provide a list of options for the user to choose from.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-menu--docs\n * @status stable\n * @since 2.0\n *\n * @slot - The menu's content, including menu items, menu labels, and dividers.\n *\n * @event {{ item: SynMenuItem }} syn-select - Emitted when a menu item is selected.\n */\nexport default class SynMenu extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n @query('slot') defaultSlot: HTMLSlotElement;\n @state() hasMenuItemsWithCheckmarks = false;\n\n private handleUpdateCheckmarks(items: SynMenuItem[]) {\n // #368: Treat a menu as having checkmarks if it has any checkboxes or items with loading states\n // The loading indicator has to be checked as well, as it's specially placed over the check mark\n this.hasMenuItemsWithCheckmarks = items.some(item => item.type === 'checkbox' || item.loading); \n }\n\n private updateCheckMarksByChildPropChange = (e: SynAttributesChangedEvent) => {\n e.stopImmediatePropagation();\n this.handleUpdateCheckmarks(this.getAllItems());\n };\n \n disconnectedCallback() {\n this.removeEventListener('syn-attributes-changed', this.updateCheckMarksByChildPropChange);\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'menu');\n this.addEventListener('syn-attributes-changed', this.updateCheckMarksByChildPropChange);\n }\n\n private handleClick(event: MouseEvent) {\n const menuItemTypes = ['menuitem', 'menuitemcheckbox'];\n\n const composedPath = event.composedPath();\n const target = composedPath.find((el: Element) => menuItemTypes.includes(el?.getAttribute?.('role') || ''));\n\n if (!target) return;\n\n const closestMenu = composedPath.find((el: Element) => el?.getAttribute?.('role') === 'menu');\n const clickHasSubmenu = closestMenu !== this;\n\n // Make sure we're the menu thats supposed to be handling the click event.\n if (clickHasSubmenu) return;\n\n // This isn't true. But we use it for TypeScript checks below.\n const item = target as SynMenuItem;\n\n if (item.type === 'checkbox') {\n item.checked = !item.checked;\n }\n\n this.emit('syn-select', { detail: { item } });\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n // Make a selection when pressing enter or space\n if (event.key === 'Enter' || event.key === ' ') {\n const item = this.getCurrentItem();\n event.preventDefault();\n event.stopPropagation();\n\n // Simulate a click to support @click handlers on menu items that also work with the keyboard\n item?.click();\n }\n\n // Move the selection when pressing down or up\n else if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n const items = this.getAllItems();\n const activeItem = this.getCurrentItem();\n let index = activeItem ? items.indexOf(activeItem) : 0;\n\n if (items.length > 0) {\n event.preventDefault();\n event.stopPropagation();\n\n if (event.key === 'ArrowDown') {\n index++;\n } else if (event.key === 'ArrowUp') {\n index--;\n } else if (event.key === 'Home') {\n index = 0;\n } else if (event.key === 'End') {\n index = items.length - 1;\n }\n\n if (index < 0) {\n index = items.length - 1;\n }\n if (index > items.length - 1) {\n index = 0;\n }\n\n this.setCurrentItem(items[index]);\n items[index].focus();\n }\n }\n }\n\n private handleMouseDown(event: MouseEvent) {\n const target = event.target as HTMLElement;\n\n if (this.isMenuItem(target)) {\n this.setCurrentItem(target as SynMenuItem);\n }\n }\n\n private handleSlotChange() {\n const items = this.getAllItems();\n this.handleUpdateCheckmarks(items);\n\n // Reset the roving tab index when the slotted items change\n if (items.length > 0) {\n this.setCurrentItem(items[0]);\n }\n }\n\n private isMenuItem(item: HTMLElement) {\n return (\n item.tagName.toLowerCase() === 'syn-menu-item' ||\n ['menuitem', 'menuitemcheckbox', 'menuitemradio'].includes(item.getAttribute('role') ?? '')\n );\n }\n\n /** @internal Gets all slotted menu items, ignoring dividers, headers, and other elements. */\n getAllItems() {\n return [...this.defaultSlot.assignedElements({ flatten: true })].filter((el: HTMLElement) => {\n if (el.inert || !this.isMenuItem(el)) {\n return false;\n }\n return true;\n }) as SynMenuItem[];\n }\n\n /**\n * @internal Gets the current menu item, which is the menu item that has `tabindex=\"0\"` within the roving tab index.\n * The menu item may or may not have focus, but for keyboard interaction purposes it's considered the \"active\" item.\n */\n getCurrentItem() {\n return this.getAllItems().find(i => i.getAttribute('tabindex') === '0');\n }\n\n /**\n * @internal Sets the current menu item to the specified element. This sets `tabindex=\"0\"` on the target element and\n * `tabindex=\"-1\"` to all other items. This method must be called prior to setting focus on a menu item.\n */\n setCurrentItem(item: SynMenuItem) {\n const items = this.getAllItems();\n\n // Update tab indexes\n items.forEach(i => {\n i.setAttribute('tabindex', i === item ? '0' : '-1');\n });\n }\n\n render() {\n return html`\n <slot\n class=${classMap({\n 'menu--no-checkmarks': !this.hasMenuItemsWithCheckmarks,\n })}\n @slotchange=${this.handleSlotChange}\n @click=${this.handleClick}\n @keydown=${this.handleKeyDown}\n @mousedown=${this.handleMouseDown}\n ></slot>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAQA,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AAuBzB,IAAqB,UAArB,cAAqC,eAAe;AAAA,EAApD;AAAA;AAIW,sCAA6B;AAQtC,SAAQ,oCAAoC,CAAC,MAAiC;AAC5E,QAAE,yBAAyB;AAC3B,WAAK,uBAAuB,KAAK,YAAY,CAAC;AAAA,IAChD;AAAA;AAAA,EATQ,uBAAuB,OAAsB;AAGnD,SAAK,6BAA6B,MAAM,KAAK,UAAQ,KAAK,SAAS,cAAc,KAAK,OAAO;AAAA,EAC/F;AAAA,EAOA,uBAAuB;AACrB,SAAK,oBAAoB,0BAA0B,KAAK,iCAAiC;AAAA,EAC3F;AAAA,EAEA,oBAAoB;AAClB,UAAM,kBAAkB;AACxB,SAAK,aAAa,QAAQ,MAAM;AAChC,SAAK,iBAAiB,0BAA0B,KAAK,iCAAiC;AAAA,EACxF;AAAA,EAEQ,YAAY,OAAmB;AACrC,UAAM,gBAAgB,CAAC,YAAY,kBAAkB;AAErD,UAAM,eAAe,MAAM,aAAa;AACxC,UAAM,SAAS,aAAa,KAAK,CAAC,OAAa;AAjEnD;AAiEsD,2BAAc,WAAS,8BAAI,iBAAJ,4BAAmB,YAAW,EAAE;AAAA,KAAC;AAE1G,QAAI,CAAC,OAAQ;AAEb,UAAM,cAAc,aAAa,KAAK,CAAC,OAAa;AArExD;AAqE2D,6CAAI,iBAAJ,4BAAmB,aAAY;AAAA,KAAM;AAC5F,UAAM,kBAAkB,gBAAgB;AAGxC,QAAI,gBAAiB;AAGrB,UAAM,OAAO;AAEb,QAAI,KAAK,SAAS,YAAY;AAC5B,WAAK,UAAU,CAAC,KAAK;A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3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.XV6MIV3R.js";
|
|
4
4
|
|
|
5
5
|
// src/components/validate/validate.ts
|
|
6
6
|
var validate_default = SynValidate;
|
|
@@ -9,4 +9,4 @@ SynValidate.define("syn-validate");
|
|
|
9
9
|
export {
|
|
10
10
|
validate_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.JU7GGWDE.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.XAQKFEHH.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDivider
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.ZHBRF2U3.js";
|
|
10
10
|
import {
|
|
11
11
|
defaultValue
|
|
12
12
|
} from "./chunk.3NXKLKWH.js";
|
|
@@ -16,28 +16,28 @@ import {
|
|
|
16
16
|
} from "./chunk.AERTEAG5.js";
|
|
17
17
|
import {
|
|
18
18
|
FormControlController
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.OLRA37R5.js";
|
|
20
20
|
import {
|
|
21
21
|
HasSlotController
|
|
22
22
|
} from "./chunk.WVVQK5TE.js";
|
|
23
23
|
import {
|
|
24
24
|
SynIcon
|
|
25
|
-
} from "./chunk.
|
|
26
|
-
import {
|
|
27
|
-
watch
|
|
28
|
-
} from "./chunk.74IOULXM.js";
|
|
25
|
+
} from "./chunk.IC3XQ2EB.js";
|
|
29
26
|
import {
|
|
30
27
|
LocalizeController
|
|
31
28
|
} from "./chunk.GIU3H3J3.js";
|
|
32
29
|
import {
|
|
33
30
|
enableDefaultSettings
|
|
34
31
|
} from "./chunk.NUIJATJY.js";
|
|
32
|
+
import {
|
|
33
|
+
watch
|
|
34
|
+
} from "./chunk.74IOULXM.js";
|
|
35
35
|
import {
|
|
36
36
|
component_styles_default
|
|
37
37
|
} from "./chunk.NLYVOJGK.js";
|
|
38
38
|
import {
|
|
39
39
|
SynergyElement
|
|
40
|
-
} from "./chunk.
|
|
40
|
+
} from "./chunk.FA4T7QQM.js";
|
|
41
41
|
import {
|
|
42
42
|
__decorateClass,
|
|
43
43
|
__spreadValues
|
|
@@ -541,7 +541,7 @@ __decorateClass([
|
|
|
541
541
|
state()
|
|
542
542
|
], SynInput.prototype, "hasFocus", 2);
|
|
543
543
|
__decorateClass([
|
|
544
|
-
property()
|
|
544
|
+
property({ reflect: true })
|
|
545
545
|
], SynInput.prototype, "title", 2);
|
|
546
546
|
__decorateClass([
|
|
547
547
|
property({ reflect: true })
|
|
@@ -653,4 +653,4 @@ SynInput = __decorateClass([
|
|
|
653
653
|
export {
|
|
654
654
|
SynInput
|
|
655
655
|
};
|
|
656
|
-
//# sourceMappingURL=chunk.
|
|
656
|
+
//# sourceMappingURL=chunk.K4EBTKOS.js.map
|