@synergy-design-system/components 3.15.3 → 3.15.5
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.LV3CZKTY.js → chunk.2DQY5FDS.js} +2 -2
- package/dist/chunks/{chunk.I3EQ4NTY.js → chunk.2IUSETZP.js} +2 -2
- package/dist/chunks/{chunk.TVBFNLAU.js → chunk.2LE6COMP.js} +2 -2
- package/dist/chunks/{chunk.MXQLUV4X.js → chunk.2MBHEIB7.js} +2 -2
- package/dist/chunks/{chunk.FDWUGRS2.js → chunk.2XGK3R6L.js} +3 -3
- package/dist/chunks/{chunk.S2IV72DF.js → chunk.2XGX4ZAN.js} +4 -4
- package/dist/chunks/{chunk.7CQHE7ZG.js → chunk.33P4HCJ6.js} +6 -6
- package/dist/chunks/{chunk.DJU65KAQ.js → chunk.3HVRPXZW.js} +4 -4
- package/dist/chunks/{chunk.5K7XDFZF.js → chunk.4IZMTEOR.js} +5 -5
- package/dist/chunks/{chunk.IUJRVPBW.js → chunk.4NAZS3F7.js} +2 -2
- package/dist/chunks/{chunk.37SEYTTD.js → chunk.4Q4YEHU4.js} +2 -2
- package/dist/chunks/{chunk.LK46Y5XN.js → chunk.5L3ERJZQ.js} +4 -4
- package/dist/chunks/{chunk.6ICIKXCC.js → chunk.63QRQEXP.js} +3 -3
- package/dist/chunks/{chunk.Z4HIZXKR.js → chunk.63X2WXRD.js} +2 -2
- package/dist/chunks/{chunk.NKEXXJ3T.js → chunk.6K23LZG3.js} +2 -2
- package/dist/chunks/{chunk.7VJAIFIG.js → chunk.6Q5ZWWIS.js} +2 -2
- package/dist/chunks/{chunk.GEGNANJ7.js → chunk.6SUEU4BY.js} +2 -2
- package/dist/chunks/{chunk.VDH3PLQ7.js → chunk.6UTZ5TWH.js} +2 -2
- package/dist/chunks/{chunk.X6YZTIZC.js → chunk.72MLLXP3.js} +3 -3
- package/dist/chunks/{chunk.W2XAKQAY.js → chunk.75ULNINA.js} +3 -3
- package/dist/chunks/{chunk.TI7DX3VG.js → chunk.7YVQXZ7K.js} +2 -2
- package/dist/chunks/{chunk.LC2A7IDU.js → chunk.A4LA76RD.js} +2 -2
- package/dist/chunks/{chunk.UBBSHAVS.js → chunk.A5L2MEGL.js} +3 -3
- package/dist/chunks/{chunk.UVUF3OYM.js → chunk.AH5BHKH7.js} +3 -3
- package/dist/chunks/{chunk.SUT4UYKB.js → chunk.AL3VTX67.js} +2 -2
- package/dist/chunks/{chunk.VNT5J2BN.js → chunk.AQGZYNRW.js} +2 -2
- package/dist/chunks/{chunk.XBFQUVEL.js → chunk.BAFEN62W.js} +3 -3
- package/dist/chunks/{chunk.ZEIISW7I.js → chunk.BCUI54KW.js} +6 -6
- package/dist/chunks/{chunk.JJFWCIKI.js → chunk.BXCELJ2K.js} +2 -2
- package/dist/chunks/{chunk.NTRARR2M.js → chunk.BZEPYV6W.js} +2 -2
- package/dist/chunks/{chunk.QW4UFV7F.js → chunk.C5LT4KVH.js} +2 -2
- package/dist/chunks/{chunk.UI65AIX7.js → chunk.CAAWLFOI.js} +3 -3
- package/dist/chunks/{chunk.ESK3PGAB.js → chunk.CTYKHZSD.js} +2 -2
- package/dist/chunks/{chunk.FQLEEFWH.js → chunk.DACBQVZD.js} +2 -2
- package/dist/chunks/{chunk.WLN2CDGM.js → chunk.DH6TGTWH.js} +2 -2
- package/dist/chunks/{chunk.ZAHOAWXG.js → chunk.E5OZHV4L.js} +2 -2
- package/dist/chunks/{chunk.S24CUT2J.js → chunk.EKQXPOD5.js} +3 -3
- package/dist/chunks/{chunk.4REINPUD.js → chunk.ETOJ7IQT.js} +2 -2
- package/dist/chunks/{chunk.B6TRFNDW.js → chunk.EYNAVYVE.js} +2 -2
- package/dist/chunks/{chunk.YHESV5LB.js → chunk.F6XN4ZU6.js} +2 -2
- package/dist/chunks/{chunk.PYRMIZFC.js → chunk.FEBYYZSA.js} +2 -2
- package/dist/chunks/{chunk.KRI4F6L6.js → chunk.GQFIUMR6.js} +7 -7
- package/dist/chunks/{chunk.DID74Z5U.js → chunk.GT2QBDJH.js} +2 -2
- package/dist/chunks/{chunk.4W6DOSB6.js → chunk.GTYWN65E.js} +2 -2
- package/dist/chunks/{chunk.IZASDQD3.js → chunk.HCTCOWRG.js} +15 -6
- package/dist/chunks/{chunk.IZASDQD3.js.map → chunk.HCTCOWRG.js.map} +2 -2
- package/dist/chunks/{chunk.HSCLXJUC.js → chunk.HEVQE7BN.js} +2 -2
- package/dist/chunks/{chunk.6H2JV4Q2.js → chunk.HYZOLI5D.js} +2 -2
- package/dist/chunks/{chunk.M44H4OMV.js → chunk.IHVWTEAM.js} +2 -2
- package/dist/chunks/{chunk.IRS4JGNW.js → chunk.IOI2FAEU.js} +2 -2
- package/dist/chunks/{chunk.7R3UBLUG.js → chunk.IQSMQI7F.js} +2 -2
- package/dist/chunks/{chunk.RS4ISDX7.js → chunk.ITHX2W35.js} +2 -2
- package/dist/chunks/{chunk.53WGL5HG.js → chunk.JBNLMSEF.js} +2 -2
- package/dist/chunks/{chunk.P5FDTTJO.js → chunk.JNSAPOKD.js} +2 -2
- package/dist/chunks/{chunk.Y3LFL2WD.js → chunk.JZSHV4DZ.js} +2 -2
- package/dist/chunks/{chunk.WLY6TGOY.js → chunk.KEETLYL2.js} +2 -2
- package/dist/chunks/{chunk.P4JFVVSO.js → chunk.KR45AFAB.js} +11 -2
- package/dist/chunks/chunk.KR45AFAB.js.map +7 -0
- package/dist/chunks/{chunk.S36AMPJ7.js → chunk.L2ECN5EY.js} +4 -4
- package/dist/chunks/{chunk.5X4SDLJF.js → chunk.LDKOZ775.js} +2 -2
- package/dist/chunks/{chunk.AN3SA3U4.js → chunk.LTNJC72I.js} +2 -2
- package/dist/chunks/{chunk.LSMIWFKR.js → chunk.M6IU3AX7.js} +3 -3
- package/dist/chunks/{chunk.4FP6CXEU.js → chunk.M75K6TTN.js} +2 -2
- package/dist/chunks/{chunk.QGUQ6MRR.js → chunk.MTZWYIYR.js} +2 -2
- package/dist/chunks/{chunk.NGPHUZVV.js → chunk.NANMA2T6.js} +2 -2
- package/dist/chunks/{chunk.SXQYPIQV.js → chunk.NGKOOT4J.js} +3 -3
- package/dist/chunks/{chunk.HC6X47DU.js → chunk.NRBGQ64L.js} +2 -2
- package/dist/chunks/{chunk.IME5AGWB.js → chunk.OPNOT3FJ.js} +2 -2
- package/dist/chunks/{chunk.CDFNEOFH.js → chunk.ORBVCK6I.js} +2 -2
- package/dist/chunks/{chunk.DFGERSTO.js → chunk.P3U4Z2CB.js} +3 -3
- package/dist/chunks/{chunk.SHLQRY7A.js → chunk.PDM47D3E.js} +4 -4
- package/dist/chunks/{chunk.2Z5DYJSL.js → chunk.PHWZAU3F.js} +2 -2
- package/dist/chunks/{chunk.INFGMTTN.js → chunk.QLMD2SFN.js} +2 -2
- package/dist/chunks/{chunk.INFGMTTN.js.map → chunk.QLMD2SFN.js.map} +1 -1
- package/dist/chunks/{chunk.2TTYA6MC.js → chunk.QQDQSNP2.js} +3 -3
- package/dist/chunks/{chunk.YSHBHUXX.js → chunk.RB544TCL.js} +5 -5
- package/dist/chunks/{chunk.DB32NMYT.js → chunk.RODPN45B.js} +5 -5
- package/dist/chunks/{chunk.PQH55KKC.js → chunk.RPE74IPI.js} +2 -2
- package/dist/chunks/{chunk.RVMUKLEF.js → chunk.S34SJRAJ.js} +2 -2
- package/dist/chunks/{chunk.74AN2A6N.js → chunk.S5ORKZMN.js} +2 -2
- package/dist/chunks/{chunk.4OBMCAF4.js → chunk.SKCN56JV.js} +6 -6
- package/dist/chunks/{chunk.N4KBHNTO.js → chunk.SLAJAJ2N.js} +2 -2
- package/dist/chunks/{chunk.LBFZMDU2.js → chunk.SSX2ELGG.js} +2 -2
- package/dist/chunks/{chunk.F62ZD2C6.js → chunk.SVOFHKDN.js} +2 -2
- package/dist/chunks/{chunk.TE7DR24V.js → chunk.T53PLO26.js} +2 -2
- package/dist/chunks/{chunk.KCPGED3V.js → chunk.TAP3XVM2.js} +2 -2
- package/dist/chunks/{chunk.UHYJF2VM.js → chunk.THGPZ53P.js} +2 -2
- package/dist/chunks/{chunk.XUQTHHG3.js → chunk.TTNN2FXI.js} +2 -2
- package/dist/chunks/{chunk.RK3GH775.js → chunk.UHKHACWY.js} +3 -3
- package/dist/chunks/{chunk.7QCUG5UW.js → chunk.VD4JFDHV.js} +2 -2
- package/dist/chunks/{chunk.S4G2BNMW.js → chunk.VLBAJHNZ.js} +2 -2
- package/dist/chunks/{chunk.XYLWZQ5N.js → chunk.VP37RJMP.js} +2 -2
- package/dist/chunks/{chunk.L6YQLDMF.js → chunk.VQJL6EB6.js} +2 -2
- package/dist/chunks/{chunk.RIXSV4PI.js → chunk.VXO4ZKJU.js} +2 -2
- package/dist/chunks/{chunk.TNLJEBUI.js → chunk.VZLSMLAF.js} +2 -2
- package/dist/chunks/{chunk.2R2UJ37S.js → chunk.W24MH7WH.js} +4 -4
- package/dist/chunks/{chunk.U677AHTS.js → chunk.WP25RJFK.js} +2 -2
- package/dist/chunks/{chunk.7W3FN6IR.js → chunk.WQDWIMQH.js} +3 -3
- package/dist/chunks/{chunk.MOAWM7PL.js → chunk.WUQ5X3LN.js} +2 -2
- package/dist/chunks/{chunk.UYUL4FCG.js → chunk.X6TZ7RBB.js} +3 -3
- package/dist/chunks/{chunk.SFDT7A36.js → chunk.XMDTI7DN.js} +2 -2
- package/dist/chunks/{chunk.J7PN4OC4.js → chunk.YTCGC55S.js} +2 -2
- package/dist/chunks/{chunk.6PFMA636.js → chunk.YWPW3NDH.js} +2 -2
- package/dist/chunks/{chunk.6PM43P7E.js → chunk.ZXI5JK5W.js} +2 -2
- package/dist/components/accordion/accordion.component.js +2 -2
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/alert/alert.component.js +4 -4
- package/dist/components/alert/alert.js +5 -5
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.js +4 -4
- 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.js +4 -4
- package/dist/components/button/button.js +5 -5
- 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.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/chart/chart.component.js +2 -2
- package/dist/components/chart/chart.js +2 -2
- package/dist/components/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/combobox/combobox.component.js +7 -7
- package/dist/components/combobox/combobox.js +8 -8
- package/dist/components/details/details.component.js +3 -3
- package/dist/components/details/details.js +4 -4
- package/dist/components/dialog/dialog.component.js +5 -5
- package/dist/components/dialog/dialog.js +6 -6
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +5 -5
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/dropdown/dropdown.component.js +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/file/file.component.js +5 -5
- package/dist/components/file/file.js +6 -6
- package/dist/components/header/header.component.js +3 -3
- package/dist/components/header/header.js +4 -4
- 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.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.component.js +4 -4
- package/dist/components/input/input.js +5 -5
- 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.js +5 -5
- package/dist/components/menu-item/menu-item.js +6 -6
- 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.js +4 -4
- package/dist/components/nav-item/nav-item.js +5 -5
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +3 -3
- package/dist/components/option/option.js +4 -4
- package/dist/components/pagination/pagination.component.js +10 -10
- package/dist/components/pagination/pagination.js +11 -11
- 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.js +8 -8
- package/dist/components/prio-nav/prio-nav.js +9 -9
- 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.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/range/range.component.js +4 -4
- package/dist/components/range/range.js +5 -5
- 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.js +2 -2
- package/dist/components/select/select.component.js +6 -6
- package/dist/components/select/select.js +7 -7
- 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.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.component.js +4 -4
- package/dist/components/tab/tab.js +5 -5
- package/dist/components/tab-group/tab-group.component.js +5 -5
- package/dist/components/tab-group/tab-group.js +6 -6
- 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.js +4 -4
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/tag-group/tag-group.component.js +2 -2
- package/dist/components/tag-group/tag-group.js +3 -3
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/components/validate/utility.js +2 -2
- package/dist/components/validate/validate.component.js +8 -8
- package/dist/components/validate/validate.js +9 -9
- package/dist/custom-elements.json +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +100 -100
- package/package.json +4 -4
- package/dist/chunks/chunk.P4JFVVSO.js.map +0 -7
- /package/dist/chunks/{chunk.LV3CZKTY.js.map → chunk.2DQY5FDS.js.map} +0 -0
- /package/dist/chunks/{chunk.I3EQ4NTY.js.map → chunk.2IUSETZP.js.map} +0 -0
- /package/dist/chunks/{chunk.TVBFNLAU.js.map → chunk.2LE6COMP.js.map} +0 -0
- /package/dist/chunks/{chunk.MXQLUV4X.js.map → chunk.2MBHEIB7.js.map} +0 -0
- /package/dist/chunks/{chunk.FDWUGRS2.js.map → chunk.2XGK3R6L.js.map} +0 -0
- /package/dist/chunks/{chunk.S2IV72DF.js.map → chunk.2XGX4ZAN.js.map} +0 -0
- /package/dist/chunks/{chunk.7CQHE7ZG.js.map → chunk.33P4HCJ6.js.map} +0 -0
- /package/dist/chunks/{chunk.DJU65KAQ.js.map → chunk.3HVRPXZW.js.map} +0 -0
- /package/dist/chunks/{chunk.5K7XDFZF.js.map → chunk.4IZMTEOR.js.map} +0 -0
- /package/dist/chunks/{chunk.IUJRVPBW.js.map → chunk.4NAZS3F7.js.map} +0 -0
- /package/dist/chunks/{chunk.37SEYTTD.js.map → chunk.4Q4YEHU4.js.map} +0 -0
- /package/dist/chunks/{chunk.LK46Y5XN.js.map → chunk.5L3ERJZQ.js.map} +0 -0
- /package/dist/chunks/{chunk.6ICIKXCC.js.map → chunk.63QRQEXP.js.map} +0 -0
- /package/dist/chunks/{chunk.Z4HIZXKR.js.map → chunk.63X2WXRD.js.map} +0 -0
- /package/dist/chunks/{chunk.NKEXXJ3T.js.map → chunk.6K23LZG3.js.map} +0 -0
- /package/dist/chunks/{chunk.7VJAIFIG.js.map → chunk.6Q5ZWWIS.js.map} +0 -0
- /package/dist/chunks/{chunk.GEGNANJ7.js.map → chunk.6SUEU4BY.js.map} +0 -0
- /package/dist/chunks/{chunk.VDH3PLQ7.js.map → chunk.6UTZ5TWH.js.map} +0 -0
- /package/dist/chunks/{chunk.X6YZTIZC.js.map → chunk.72MLLXP3.js.map} +0 -0
- /package/dist/chunks/{chunk.W2XAKQAY.js.map → chunk.75ULNINA.js.map} +0 -0
- /package/dist/chunks/{chunk.TI7DX3VG.js.map → chunk.7YVQXZ7K.js.map} +0 -0
- /package/dist/chunks/{chunk.LC2A7IDU.js.map → chunk.A4LA76RD.js.map} +0 -0
- /package/dist/chunks/{chunk.UBBSHAVS.js.map → chunk.A5L2MEGL.js.map} +0 -0
- /package/dist/chunks/{chunk.UVUF3OYM.js.map → chunk.AH5BHKH7.js.map} +0 -0
- /package/dist/chunks/{chunk.SUT4UYKB.js.map → chunk.AL3VTX67.js.map} +0 -0
- /package/dist/chunks/{chunk.VNT5J2BN.js.map → chunk.AQGZYNRW.js.map} +0 -0
- /package/dist/chunks/{chunk.XBFQUVEL.js.map → chunk.BAFEN62W.js.map} +0 -0
- /package/dist/chunks/{chunk.ZEIISW7I.js.map → chunk.BCUI54KW.js.map} +0 -0
- /package/dist/chunks/{chunk.JJFWCIKI.js.map → chunk.BXCELJ2K.js.map} +0 -0
- /package/dist/chunks/{chunk.NTRARR2M.js.map → chunk.BZEPYV6W.js.map} +0 -0
- /package/dist/chunks/{chunk.QW4UFV7F.js.map → chunk.C5LT4KVH.js.map} +0 -0
- /package/dist/chunks/{chunk.UI65AIX7.js.map → chunk.CAAWLFOI.js.map} +0 -0
- /package/dist/chunks/{chunk.ESK3PGAB.js.map → chunk.CTYKHZSD.js.map} +0 -0
- /package/dist/chunks/{chunk.FQLEEFWH.js.map → chunk.DACBQVZD.js.map} +0 -0
- /package/dist/chunks/{chunk.WLN2CDGM.js.map → chunk.DH6TGTWH.js.map} +0 -0
- /package/dist/chunks/{chunk.ZAHOAWXG.js.map → chunk.E5OZHV4L.js.map} +0 -0
- /package/dist/chunks/{chunk.S24CUT2J.js.map → chunk.EKQXPOD5.js.map} +0 -0
- /package/dist/chunks/{chunk.4REINPUD.js.map → chunk.ETOJ7IQT.js.map} +0 -0
- /package/dist/chunks/{chunk.B6TRFNDW.js.map → chunk.EYNAVYVE.js.map} +0 -0
- /package/dist/chunks/{chunk.YHESV5LB.js.map → chunk.F6XN4ZU6.js.map} +0 -0
- /package/dist/chunks/{chunk.PYRMIZFC.js.map → chunk.FEBYYZSA.js.map} +0 -0
- /package/dist/chunks/{chunk.KRI4F6L6.js.map → chunk.GQFIUMR6.js.map} +0 -0
- /package/dist/chunks/{chunk.DID74Z5U.js.map → chunk.GT2QBDJH.js.map} +0 -0
- /package/dist/chunks/{chunk.4W6DOSB6.js.map → chunk.GTYWN65E.js.map} +0 -0
- /package/dist/chunks/{chunk.HSCLXJUC.js.map → chunk.HEVQE7BN.js.map} +0 -0
- /package/dist/chunks/{chunk.6H2JV4Q2.js.map → chunk.HYZOLI5D.js.map} +0 -0
- /package/dist/chunks/{chunk.M44H4OMV.js.map → chunk.IHVWTEAM.js.map} +0 -0
- /package/dist/chunks/{chunk.IRS4JGNW.js.map → chunk.IOI2FAEU.js.map} +0 -0
- /package/dist/chunks/{chunk.7R3UBLUG.js.map → chunk.IQSMQI7F.js.map} +0 -0
- /package/dist/chunks/{chunk.RS4ISDX7.js.map → chunk.ITHX2W35.js.map} +0 -0
- /package/dist/chunks/{chunk.53WGL5HG.js.map → chunk.JBNLMSEF.js.map} +0 -0
- /package/dist/chunks/{chunk.P5FDTTJO.js.map → chunk.JNSAPOKD.js.map} +0 -0
- /package/dist/chunks/{chunk.Y3LFL2WD.js.map → chunk.JZSHV4DZ.js.map} +0 -0
- /package/dist/chunks/{chunk.WLY6TGOY.js.map → chunk.KEETLYL2.js.map} +0 -0
- /package/dist/chunks/{chunk.S36AMPJ7.js.map → chunk.L2ECN5EY.js.map} +0 -0
- /package/dist/chunks/{chunk.5X4SDLJF.js.map → chunk.LDKOZ775.js.map} +0 -0
- /package/dist/chunks/{chunk.AN3SA3U4.js.map → chunk.LTNJC72I.js.map} +0 -0
- /package/dist/chunks/{chunk.LSMIWFKR.js.map → chunk.M6IU3AX7.js.map} +0 -0
- /package/dist/chunks/{chunk.4FP6CXEU.js.map → chunk.M75K6TTN.js.map} +0 -0
- /package/dist/chunks/{chunk.QGUQ6MRR.js.map → chunk.MTZWYIYR.js.map} +0 -0
- /package/dist/chunks/{chunk.NGPHUZVV.js.map → chunk.NANMA2T6.js.map} +0 -0
- /package/dist/chunks/{chunk.SXQYPIQV.js.map → chunk.NGKOOT4J.js.map} +0 -0
- /package/dist/chunks/{chunk.HC6X47DU.js.map → chunk.NRBGQ64L.js.map} +0 -0
- /package/dist/chunks/{chunk.IME5AGWB.js.map → chunk.OPNOT3FJ.js.map} +0 -0
- /package/dist/chunks/{chunk.CDFNEOFH.js.map → chunk.ORBVCK6I.js.map} +0 -0
- /package/dist/chunks/{chunk.DFGERSTO.js.map → chunk.P3U4Z2CB.js.map} +0 -0
- /package/dist/chunks/{chunk.SHLQRY7A.js.map → chunk.PDM47D3E.js.map} +0 -0
- /package/dist/chunks/{chunk.2Z5DYJSL.js.map → chunk.PHWZAU3F.js.map} +0 -0
- /package/dist/chunks/{chunk.2TTYA6MC.js.map → chunk.QQDQSNP2.js.map} +0 -0
- /package/dist/chunks/{chunk.YSHBHUXX.js.map → chunk.RB544TCL.js.map} +0 -0
- /package/dist/chunks/{chunk.DB32NMYT.js.map → chunk.RODPN45B.js.map} +0 -0
- /package/dist/chunks/{chunk.PQH55KKC.js.map → chunk.RPE74IPI.js.map} +0 -0
- /package/dist/chunks/{chunk.RVMUKLEF.js.map → chunk.S34SJRAJ.js.map} +0 -0
- /package/dist/chunks/{chunk.74AN2A6N.js.map → chunk.S5ORKZMN.js.map} +0 -0
- /package/dist/chunks/{chunk.4OBMCAF4.js.map → chunk.SKCN56JV.js.map} +0 -0
- /package/dist/chunks/{chunk.N4KBHNTO.js.map → chunk.SLAJAJ2N.js.map} +0 -0
- /package/dist/chunks/{chunk.LBFZMDU2.js.map → chunk.SSX2ELGG.js.map} +0 -0
- /package/dist/chunks/{chunk.F62ZD2C6.js.map → chunk.SVOFHKDN.js.map} +0 -0
- /package/dist/chunks/{chunk.TE7DR24V.js.map → chunk.T53PLO26.js.map} +0 -0
- /package/dist/chunks/{chunk.KCPGED3V.js.map → chunk.TAP3XVM2.js.map} +0 -0
- /package/dist/chunks/{chunk.UHYJF2VM.js.map → chunk.THGPZ53P.js.map} +0 -0
- /package/dist/chunks/{chunk.XUQTHHG3.js.map → chunk.TTNN2FXI.js.map} +0 -0
- /package/dist/chunks/{chunk.RK3GH775.js.map → chunk.UHKHACWY.js.map} +0 -0
- /package/dist/chunks/{chunk.7QCUG5UW.js.map → chunk.VD4JFDHV.js.map} +0 -0
- /package/dist/chunks/{chunk.S4G2BNMW.js.map → chunk.VLBAJHNZ.js.map} +0 -0
- /package/dist/chunks/{chunk.XYLWZQ5N.js.map → chunk.VP37RJMP.js.map} +0 -0
- /package/dist/chunks/{chunk.L6YQLDMF.js.map → chunk.VQJL6EB6.js.map} +0 -0
- /package/dist/chunks/{chunk.RIXSV4PI.js.map → chunk.VXO4ZKJU.js.map} +0 -0
- /package/dist/chunks/{chunk.TNLJEBUI.js.map → chunk.VZLSMLAF.js.map} +0 -0
- /package/dist/chunks/{chunk.2R2UJ37S.js.map → chunk.W24MH7WH.js.map} +0 -0
- /package/dist/chunks/{chunk.U677AHTS.js.map → chunk.WP25RJFK.js.map} +0 -0
- /package/dist/chunks/{chunk.7W3FN6IR.js.map → chunk.WQDWIMQH.js.map} +0 -0
- /package/dist/chunks/{chunk.MOAWM7PL.js.map → chunk.WUQ5X3LN.js.map} +0 -0
- /package/dist/chunks/{chunk.UYUL4FCG.js.map → chunk.X6TZ7RBB.js.map} +0 -0
- /package/dist/chunks/{chunk.SFDT7A36.js.map → chunk.XMDTI7DN.js.map} +0 -0
- /package/dist/chunks/{chunk.J7PN4OC4.js.map → chunk.YTCGC55S.js.map} +0 -0
- /package/dist/chunks/{chunk.6PFMA636.js.map → chunk.YWPW3NDH.js.map} +0 -0
- /package/dist/chunks/{chunk.6PM43P7E.js.map → chunk.ZXI5JK5W.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.WRPQ3635.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.OPNOT3FJ.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.VCRQ2GII.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.2NT3B5WJ.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.QLMD2SFN.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -91,4 +91,4 @@ __decorateClass([
|
|
|
91
91
|
export {
|
|
92
92
|
SynBreadcrumb
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk.
|
|
94
|
+
//# sourceMappingURL=chunk.CAAWLFOI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCard
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.AL3VTX67.js";
|
|
4
4
|
|
|
5
5
|
// src/components/card/card.ts
|
|
6
6
|
var card_default = SynCard;
|
|
@@ -9,4 +9,4 @@ SynCard.define("syn-card");
|
|
|
9
9
|
export {
|
|
10
10
|
card_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.CTYKHZSD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PDM47D3E.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button/button.ts
|
|
6
6
|
var button_default = SynButton;
|
|
@@ -9,4 +9,4 @@ SynButton.define("syn-button");
|
|
|
9
9
|
export {
|
|
10
10
|
button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.DACBQVZD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBreadcrumbItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BXCELJ2K.js";
|
|
4
4
|
|
|
5
5
|
// src/components/breadcrumb-item/breadcrumb-item.ts
|
|
6
6
|
var breadcrumb_item_default = SynBreadcrumbItem;
|
|
@@ -9,4 +9,4 @@ SynBreadcrumbItem.define("syn-breadcrumb-item");
|
|
|
9
9
|
export {
|
|
10
10
|
breadcrumb_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.DH6TGTWH.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.2NT3B5WJ.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.QLMD2SFN.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -78,4 +78,4 @@ __decorateClass([
|
|
|
78
78
|
export {
|
|
79
79
|
SynResizeObserver
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=chunk.
|
|
81
|
+
//# sourceMappingURL=chunk.E5OZHV4L.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.JDYQ7EFG.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIconButton
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.UHKHACWY.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.VCRQ2GII.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk.2NT3B5WJ.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.QLMD2SFN.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -118,4 +118,4 @@ __decorateClass([
|
|
|
118
118
|
export {
|
|
119
119
|
SynTab
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk.
|
|
121
|
+
//# sourceMappingURL=chunk.EKQXPOD5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTabGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2XGX4ZAN.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tab-group/tab-group.ts
|
|
6
6
|
var tab_group_default = SynTabGroup;
|
|
@@ -9,4 +9,4 @@ SynTabGroup.define("syn-tab-group");
|
|
|
9
9
|
export {
|
|
10
10
|
tab_group_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.ETOJ7IQT.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.2NT3B5WJ.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.QLMD2SFN.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -98,4 +98,4 @@ SynTagGroup = __decorateClass([
|
|
|
98
98
|
export {
|
|
99
99
|
SynTagGroup
|
|
100
100
|
};
|
|
101
|
-
//# sourceMappingURL=chunk.
|
|
101
|
+
//# sourceMappingURL=chunk.EYNAVYVE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTextarea
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.6SUEU4BY.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.F6XN4ZU6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.HEVQE7BN.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-button/radio-button.ts
|
|
6
6
|
var radio_button_default = SynRadioButton;
|
|
@@ -9,4 +9,4 @@ SynRadioButton.define("syn-radio-button");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.FEBYYZSA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynInput
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.3HVRPXZW.js";
|
|
4
4
|
import {
|
|
5
5
|
calculatePageItemIndices,
|
|
6
6
|
calculateTotalPages,
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
} from "./chunk.GXWM6IF5.js";
|
|
16
16
|
import {
|
|
17
17
|
SynOption
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.X6TZ7RBB.js";
|
|
19
19
|
import {
|
|
20
20
|
pagination_styles_default
|
|
21
21
|
} from "./chunk.DG2TSAVZ.js";
|
|
22
22
|
import {
|
|
23
23
|
SynSelect
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.RODPN45B.js";
|
|
25
25
|
import {
|
|
26
26
|
SynDivider
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.2MBHEIB7.js";
|
|
28
28
|
import {
|
|
29
29
|
SynIconButton
|
|
30
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.UHKHACWY.js";
|
|
31
31
|
import {
|
|
32
32
|
enableDefaultSettings
|
|
33
33
|
} from "./chunk.4MG3QDNW.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk.2NT3B5WJ.js";
|
|
40
40
|
import {
|
|
41
41
|
SynergyElement
|
|
42
|
-
} from "./chunk.
|
|
42
|
+
} from "./chunk.QLMD2SFN.js";
|
|
43
43
|
import {
|
|
44
44
|
__decorateClass
|
|
45
45
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -377,4 +377,4 @@ SynPagination = __decorateClass([
|
|
|
377
377
|
export {
|
|
378
378
|
SynPagination
|
|
379
379
|
};
|
|
380
|
-
//# sourceMappingURL=chunk.
|
|
380
|
+
//# sourceMappingURL=chunk.GQFIUMR6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCombobox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BCUI54KW.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.GT2QBDJH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenuLabel
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.72MLLXP3.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu-label/menu-label.ts
|
|
6
6
|
var menu_label_default = SynMenuLabel;
|
|
@@ -9,4 +9,4 @@ SynMenuLabel.define("syn-menu-label");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_label_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.GTYWN65E.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.VDBD6G4Q.js";
|
|
4
4
|
import {
|
|
5
5
|
Modal
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.KR45AFAB.js";
|
|
7
7
|
import {
|
|
8
8
|
lockBodyScrolling,
|
|
9
9
|
unlockBodyScrolling
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk.CHFWLQN5.js";
|
|
17
17
|
import {
|
|
18
18
|
SynIconButton
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.UHKHACWY.js";
|
|
20
20
|
import {
|
|
21
21
|
waitForEvent
|
|
22
22
|
} from "./chunk.LQDIH4Z5.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk.2NT3B5WJ.js";
|
|
40
40
|
import {
|
|
41
41
|
SynergyElement
|
|
42
|
-
} from "./chunk.
|
|
42
|
+
} from "./chunk.QLMD2SFN.js";
|
|
43
43
|
import {
|
|
44
44
|
__decorateClass
|
|
45
45
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -274,8 +274,17 @@ setDefaultAnimation("dialog.hide", {
|
|
|
274
274
|
options: { duration: 250, easing: "ease" }
|
|
275
275
|
});
|
|
276
276
|
setDefaultAnimation("dialog.denyClose", {
|
|
277
|
-
keyframes: [
|
|
278
|
-
|
|
277
|
+
keyframes: [
|
|
278
|
+
{ offset: 0, transform: "translateX(0)" },
|
|
279
|
+
{ offset: 0.32, transform: "translateX(calc(var(--syn-spacing-x-small) * -1))" },
|
|
280
|
+
{ offset: 0.6, transform: "translateX(var(--syn-spacing-2x-small))" },
|
|
281
|
+
{ offset: 0.82, transform: "translateX(calc(var(--syn-spacing-3x-small) * -1))" },
|
|
282
|
+
{ offset: 1, transform: "translateX(0)" }
|
|
283
|
+
],
|
|
284
|
+
options: {
|
|
285
|
+
duration: 250,
|
|
286
|
+
easing: "cubic-bezier(0.25, 0.1, 0.25, 1)"
|
|
287
|
+
}
|
|
279
288
|
});
|
|
280
289
|
setDefaultAnimation("dialog.overlay.show", {
|
|
281
290
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -289,4 +298,4 @@ setDefaultAnimation("dialog.overlay.hide", {
|
|
|
289
298
|
export {
|
|
290
299
|
SynDialog
|
|
291
300
|
};
|
|
292
|
-
//# sourceMappingURL=chunk.
|
|
301
|
+
//# sourceMappingURL=chunk.HCTCOWRG.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/dialog/dialog.component.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../internal/scroll.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';\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 1.23.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];\n\n static dependencies = {\n 'syn-icon-button': SynIconButton,\n };\n\n private readonly hasSlotController = new HasSlotController(this, 'footer');\n\n private readonly localize = new LocalizeController(this);\n\n private originalTrigger: HTMLElement | null;\n\n public modal = new Modal(this);\n\n private closeWatcher: CloseWatcher | null;\n\n @query('.dialog') dialog: HTMLElement;\n\n @query('.dialog__panel') panel: HTMLElement;\n\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({ reflect: true, type: Boolean }) 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', reflect: true, type: Boolean }) 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 /* eslint-disable lit-a11y/click-events-have-key-events */\n return html`\n <div\n part=\"base\"\n class=${classMap({\n dialog: true,\n 'dialog--has-footer': this.hasSlotController.test('footer'),\n 'dialog--open': this.open,\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 /* eslint-enable lit-a11y/click-events-have-key-events */\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU,aAAa;AAkEhC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AAEzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAIvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAce,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,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AAA;AAAA;AAAA;AAAA,EAUR;AACF;AAzQqB,UACZ,SAAyB,CAAC,0BAAiB,qBAAM;AADrC,UAGZ,eAAe;AAAA,EACpB,mBAAmB;AACrB;AAYkB;AAAA,EAAjB,MAAM,SAAS;AAAA,GAjBG,UAiBD;AAEO;AAAA,EAAxB,MAAM,gBAAgB;AAAA,GAnBJ,UAmBM;AAEE;AAAA,EAA1B,MAAM,kBAAkB;AAAA,GArBN,UAqBQ;AAMiB;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GA3BvB,UA2ByB;AAMf;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAjCR,UAiCU;AAMuC;AAAA,EAAnE,SAAS,EAAE,WAAW,aAAa,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GAvC/C,UAuCiD;AAyD9D;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA/F1B,UAgGb;AA2KR,oBAAoB,eAAe;AAAA,EACjC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,eAAe;AAAA,EACjC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../internal/scroll.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';\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 1.23.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];\n\n static dependencies = {\n 'syn-icon-button': SynIconButton,\n };\n\n private readonly hasSlotController = new HasSlotController(this, 'footer');\n\n private readonly localize = new LocalizeController(this);\n\n private originalTrigger: HTMLElement | null;\n\n public modal = new Modal(this);\n\n private closeWatcher: CloseWatcher | null;\n\n @query('.dialog') dialog: HTMLElement;\n\n @query('.dialog__panel') panel: HTMLElement;\n\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({ reflect: true, type: Boolean }) 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', reflect: true, type: Boolean }) 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 /* eslint-disable lit-a11y/click-events-have-key-events */\n return html`\n <div\n part=\"base\"\n class=${classMap({\n dialog: true,\n 'dialog--has-footer': this.hasSlotController.test('footer'),\n 'dialog--open': this.open,\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 /* eslint-enable lit-a11y/click-events-have-key-events */\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: [\n { offset: 0, transform: 'translateX(0)' },\n { offset: 0.32, transform: 'translateX(calc(var(--syn-spacing-x-small) * -1))' },\n { offset: 0.6, transform: 'translateX(var(--syn-spacing-2x-small))' },\n { offset: 0.82, transform: 'translateX(calc(var(--syn-spacing-3x-small) * -1))' },\n { offset: 1, transform: 'translateX(0)' },\n ],\n options: {\n duration: 250,\n easing: 'cubic-bezier(0.25, 0.1, 0.25, 1)',\n },\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU,aAAa;AAkEhC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AAEzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAIvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAce,gBAAO;AAMtB,iBAA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AAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,eAAe;AAAA,EACjC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW;AAAA,IACT,EAAE,QAAQ,GAAG,WAAW,gBAAgB;AAAA,IACxC,EAAE,QAAQ,MAAM,WAAW,oDAAoD;AAAA,IAC/E,EAAE,QAAQ,KAAK,WAAW,0CAA0C;AAAA,IACpE,EAAE,QAAQ,MAAM,WAAW,qDAAqD;AAAA,IAChF,EAAE,QAAQ,GAAG,WAAW,gBAAgB;AAAA,EAC1C;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,QAAQ;AAAA,EACV;AACF,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.2NT3B5WJ.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.QLMD2SFN.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -138,4 +138,4 @@ SynRadioButton = __decorateClass([
|
|
|
138
138
|
export {
|
|
139
139
|
SynRadioButton
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk.
|
|
141
|
+
//# sourceMappingURL=chunk.HEVQE7BN.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.2NT3B5WJ.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.QLMD2SFN.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -66,4 +66,4 @@ SynBadge = __decorateClass([
|
|
|
66
66
|
export {
|
|
67
67
|
SynBadge
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=chunk.
|
|
69
|
+
//# sourceMappingURL=chunk.HYZOLI5D.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenu
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.S5ORKZMN.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu/menu.ts
|
|
6
6
|
var menu_default = SynMenu;
|
|
@@ -9,4 +9,4 @@ SynMenu.define("syn-menu");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.IHVWTEAM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBadge
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.HYZOLI5D.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.IOI2FAEU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDropdown
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.63QRQEXP.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.IQSMQI7F.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTab
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EKQXPOD5.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tab/tab.ts
|
|
6
6
|
var tab_default = SynTab;
|
|
@@ -9,4 +9,4 @@ SynTab.define("syn-tab");
|
|
|
9
9
|
export {
|
|
10
10
|
tab_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.ITHX2W35.js.map
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk.2NT3B5WJ.js";
|
|
25
25
|
import {
|
|
26
26
|
SynergyElement
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.QLMD2SFN.js";
|
|
28
28
|
import {
|
|
29
29
|
__decorateClass
|
|
30
30
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -264,4 +264,4 @@ SynSwitch = __decorateClass([
|
|
|
264
264
|
export {
|
|
265
265
|
SynSwitch
|
|
266
266
|
};
|
|
267
|
-
//# sourceMappingURL=chunk.
|
|
267
|
+
//# sourceMappingURL=chunk.JBNLMSEF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDrawer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.L2ECN5EY.js";
|
|
4
4
|
|
|
5
5
|
// src/components/drawer/drawer.ts
|
|
6
6
|
var drawer_default = SynDrawer;
|
|
@@ -9,4 +9,4 @@ SynDrawer.define("syn-drawer");
|
|
|
9
9
|
export {
|
|
10
10
|
drawer_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.JNSAPOKD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRangeTick
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.THGPZ53P.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.JZSHV4DZ.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.2NT3B5WJ.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.QLMD2SFN.js";
|
|
16
16
|
|
|
17
17
|
// src/components/spinner/spinner.component.ts
|
|
18
18
|
import { html } from "lit";
|
|
@@ -35,4 +35,4 @@ SynSpinner.styles = [component_styles_default, spinner_styles_default, spinner_c
|
|
|
35
35
|
export {
|
|
36
36
|
SynSpinner
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=chunk.
|
|
38
|
+
//# sourceMappingURL=chunk.KEETLYL2.js.map
|
|
@@ -98,7 +98,16 @@ var Modal = class {
|
|
|
98
98
|
checkFocus() {
|
|
99
99
|
if (this.isActive() && !this.isExternalActivated) {
|
|
100
100
|
const tabbableElements = getTabbableElements(this.element);
|
|
101
|
-
|
|
101
|
+
const isFocusWithin = (() => {
|
|
102
|
+
let node = document.activeElement;
|
|
103
|
+
while (node) {
|
|
104
|
+
if (this.element.contains(node)) return true;
|
|
105
|
+
const root = node.shadowRoot;
|
|
106
|
+
node = root ? root.activeElement : null;
|
|
107
|
+
}
|
|
108
|
+
return false;
|
|
109
|
+
})();
|
|
110
|
+
if (!isFocusWithin) {
|
|
102
111
|
const start = tabbableElements[0];
|
|
103
112
|
const end = tabbableElements[tabbableElements.length - 1];
|
|
104
113
|
const target = this.tabDirection === "forward" ? start : end;
|
|
@@ -117,4 +126,4 @@ var Modal = class {
|
|
|
117
126
|
export {
|
|
118
127
|
Modal
|
|
119
128
|
};
|
|
120
|
-
//# sourceMappingURL=chunk.
|
|
129
|
+
//# sourceMappingURL=chunk.KR45AFAB.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/internal/modal.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable */\nimport { activeElements, getDeepestActiveElement } from './active-elements.js';\nimport { getTabbableElements } from './tabbable.js';\n\nlet activeModals: HTMLElement[] = [];\n\nexport default class Modal {\n element: HTMLElement;\n isExternalActivated: boolean;\n tabDirection: 'forward' | 'backward' = 'forward';\n currentFocus: HTMLElement | null;\n previousFocus: HTMLElement | null;\n elementsWithTabbableControls: string[];\n\n constructor(element: HTMLElement) {\n this.element = element;\n\n this.elementsWithTabbableControls = ['iframe'];\n }\n\n /** Activates focus trapping. */\n activate() {\n activeModals.push(this.element);\n document.addEventListener('focusin', this.handleFocusIn);\n document.addEventListener('keydown', this.handleKeyDown);\n document.addEventListener('keyup', this.handleKeyUp);\n }\n\n /** Deactivates focus trapping. */\n deactivate() {\n activeModals = activeModals.filter(modal => modal !== this.element);\n this.currentFocus = null;\n document.removeEventListener('focusin', this.handleFocusIn);\n document.removeEventListener('keydown', this.handleKeyDown);\n document.removeEventListener('keyup', this.handleKeyUp);\n }\n\n /** Determines if this modal element is currently active or not. */\n isActive() {\n // The \"active\" modal is always the most recent one shown\n return activeModals[activeModals.length - 1] === this.element;\n }\n\n /** Activates external modal behavior and temporarily disables focus trapping. */\n activateExternal() {\n this.isExternalActivated = true;\n }\n\n /** Deactivates external modal behavior and re-enables focus trapping. */\n deactivateExternal() {\n this.isExternalActivated = false;\n }\n\n private checkFocus() {\n if (this.isActive() && !this.isExternalActivated) {\n const tabbableElements = getTabbableElements(this.element);\n\n // Chrome 149+ (Chromium issue #407769114) changed the `:focus-within`\n // pseudo-class so that it no longer propagates through top-layer elements\n // (e.g. popovers opened via the Popover API). When a syn-select or\n // syn-dropdown inside this dialog opens its popup (which is promoted to\n // the top-layer), `:focus-within` on the dialog returns `false` even\n // though focus is logically still within the dialog's content tree.\n // This caused the modal to immediately yank focus back, closing the popup.\n //\n // Fix: walk the composed active-element chain and check whether any\n // element in that chain is a descendant of this modal. This is immune to\n // the top-layer boundary because we query actual DOM containment rather\n // than relying on the CSS pseudo-class.\n const isFocusWithin = (() => {\n // Traverse shadow-root boundaries to find the deepest focused element\n let node: Element | null = document.activeElement;\n while (node) {\n if (this.element.contains(node)) return true;\n const root = node.shadowRoot;\n node = root ? root.activeElement : null;\n }\n return false;\n })();\n\n if (!isFocusWithin) {\n const start = tabbableElements[0];\n const end = tabbableElements[tabbableElements.length - 1];\n const target = this.tabDirection === 'forward' ? start : end;\n\n if (typeof target?.focus === 'function') {\n this.currentFocus = target;\n target.focus({ preventScroll: false });\n }\n }\n }\n }\n\n private handleFocusIn = () => {\n if (!this.isActive()) return;\n this.checkFocus();\n };\n\n private possiblyHasTabbableChildren(element: HTMLElement) {\n return (\n this.elementsWithTabbableControls.includes(element.tagName.toLowerCase()) || element.hasAttribute('controls')\n // Should we add a data-attribute for people to set just in case they have an element where we don't know if it has possibly tabbable elements?\n );\n }\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Tab' || this.isExternalActivated) return;\n if (!this.isActive()) return;\n\n // Because sometimes focus can actually be taken over from outside sources,\n // we don't want to rely on `this.currentFocus`. Instead we check the actual `activeElement` and\n // recurse through shadowRoots.\n const currentActiveElement = getDeepestActiveElement();\n this.previousFocus = currentActiveElement as HTMLElement | null;\n\n if (this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus)) {\n return;\n }\n\n if (event.shiftKey) {\n this.tabDirection = 'backward';\n } else {\n this.tabDirection = 'forward';\n }\n\n const tabbableElements = getTabbableElements(this.element);\n\n let currentFocusIndex = tabbableElements.findIndex(el => el === currentActiveElement);\n\n this.previousFocus = this.currentFocus;\n\n const addition = this.tabDirection === 'forward' ? 1 : -1;\n\n // eslint-disable-next-line\n while (true) {\n if (currentFocusIndex + addition >= tabbableElements.length) {\n currentFocusIndex = 0;\n } else if (currentFocusIndex + addition < 0) {\n currentFocusIndex = tabbableElements.length - 1;\n } else {\n currentFocusIndex += addition;\n }\n\n this.previousFocus = this.currentFocus;\n const nextFocus = /** @type {HTMLElement} */ tabbableElements[currentFocusIndex];\n\n // This is a special case. We need to make sure we're not calling .focus() if we're already focused on an element\n // that possibly has \"controls\"\n if (this.tabDirection === 'backward') {\n if (this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus)) {\n return;\n }\n }\n\n if (nextFocus && this.possiblyHasTabbableChildren(nextFocus)) {\n return;\n }\n\n event.preventDefault();\n this.currentFocus = nextFocus;\n this.currentFocus?.focus({ preventScroll: false });\n\n // Check to make sure focus actually changed. It may not always be the next focus, we just don't want it to be the previousFocus.\n const allActiveElements = [...activeElements()];\n if (allActiveElements.includes(this.currentFocus) || !allActiveElements.includes(this.previousFocus!)) {\n break;\n }\n }\n\n setTimeout(() => this.checkFocus());\n };\n\n private handleKeyUp = () => {\n this.tabDirection = 'forward';\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,IAAI,eAA8B,CAAC;AAEnC,IAAqB,QAArB,MAA2B;AAAA,EAQzB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eAAe;AAClB,cAAM,QAAQ,iBAAiB,CAAC;AAChC,cAAM,MAAM,iBAAiB,iBAAiB,SAAS,CAAC;AACxD,cAAM,SAAS,KAAK,iBAAiB,YAAY,QAAQ;AAEzD,YAAI,QAAO,iCAAQ,WAAU,YAAY;AACvC,eAAK,eAAe;AACpB,iBAAO,MAAM,EAAE,eAAe,MAAM,CAAC;AAAA,QACvC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EAOQ,4BAA4B,SAAsB;AACxD,WACE,KAAK,6BAA6B,SAAS,QAAQ,QAAQ,YAAY,CAAC,KAAK,QAAQ,aAAa,UAAU;AAAA,EAGhH;AAwEF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Modal
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KR45AFAB.js";
|
|
4
4
|
import {
|
|
5
5
|
drawer_custom_styles_default
|
|
6
6
|
} from "./chunk.I4FIU7FA.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk.CHFWLQN5.js";
|
|
20
20
|
import {
|
|
21
21
|
SynIconButton
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.UHKHACWY.js";
|
|
23
23
|
import {
|
|
24
24
|
waitForEvent
|
|
25
25
|
} from "./chunk.LQDIH4Z5.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk.2NT3B5WJ.js";
|
|
43
43
|
import {
|
|
44
44
|
SynergyElement
|
|
45
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.QLMD2SFN.js";
|
|
46
46
|
import {
|
|
47
47
|
__decorateClass
|
|
48
48
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -407,4 +407,4 @@ setDefaultAnimation("drawer.overlay.hide", {
|
|
|
407
407
|
export {
|
|
408
408
|
SynDrawer
|
|
409
409
|
};
|
|
410
|
-
//# sourceMappingURL=chunk.
|
|
410
|
+
//# sourceMappingURL=chunk.L2ECN5EY.js.map
|