@synergy-design-system/components 2.22.2 → 2.22.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.OLCNUALI.js → chunk.24UXLDJU.js} +8 -8
- package/dist/chunks/{chunk.KT4S4ZB6.js → chunk.2SMIYMKX.js} +2 -2
- package/dist/chunks/{chunk.GX7U6NXX.js → chunk.3IBRAHYG.js} +2 -2
- package/dist/chunks/{chunk.JLXTLEQ2.js → chunk.3JDTX4X6.js} +2 -2
- package/dist/chunks/{chunk.RKGPPRBN.js → chunk.3LCV5OP2.js} +2 -2
- package/dist/chunks/{chunk.FHVNKHG6.js → chunk.3MCNFSYA.js} +5 -5
- package/dist/chunks/{chunk.HNAX4UUU.js → chunk.3PHPHPL2.js} +2 -2
- package/dist/chunks/{chunk.Z5NRLDWR.js → chunk.3QNHBRDR.js} +24 -22
- package/dist/chunks/chunk.3QNHBRDR.js.map +7 -0
- package/dist/chunks/{chunk.SUKTJ7VP.js → chunk.3VMHO22R.js} +7 -7
- package/dist/chunks/{chunk.FZZW3EOY.js → chunk.47TJUMDU.js} +8 -8
- package/dist/chunks/{chunk.A5J5X63K.js → chunk.4FWOLVW5.js} +7 -7
- package/dist/chunks/{chunk.YL23TQJD.js → chunk.4V65J2KG.js} +6 -6
- package/dist/chunks/{chunk.7UL2AO5G.js → chunk.6HZQNE6W.js} +3 -3
- package/dist/chunks/{chunk.O3QG6DMY.js → chunk.6MMYKADV.js} +2 -2
- package/dist/chunks/{chunk.JJYMYZLU.js → chunk.6NPGZ4DQ.js} +3 -3
- package/dist/chunks/{chunk.FN4PXV26.js → chunk.6WAIU776.js} +2 -2
- package/dist/chunks/{chunk.42SO7SLL.js → chunk.6XG6USXW.js} +2 -2
- package/dist/chunks/{chunk.IQ6CXY4E.js → chunk.7APSA6PW.js} +3 -3
- package/dist/chunks/{chunk.N4UI3LPL.js → chunk.7SVQW4H2.js} +2 -2
- package/dist/chunks/{chunk.WDV7LVFR.js → chunk.7UA4WT6S.js} +3 -3
- package/dist/chunks/{chunk.QOSIFCNH.js → chunk.AFEY7D5X.js} +2 -2
- package/dist/chunks/{chunk.5YED73MO.js → chunk.ATKPBD4D.js} +2 -2
- package/dist/chunks/{chunk.SDTIYJSH.js → chunk.AW2M6WI2.js} +2 -2
- package/dist/chunks/{chunk.R3QKOXPD.js → chunk.C444R2J2.js} +2 -2
- package/dist/chunks/{chunk.Q2ZTFH4U.js → chunk.CBFQFRSX.js} +2 -2
- package/dist/chunks/{chunk.DXLVSIU4.js → chunk.CDIUF5K7.js} +6 -6
- package/dist/chunks/{chunk.FY7TEGB6.js → chunk.CL2EY3KT.js} +2 -2
- package/dist/chunks/{chunk.OI4FZSHJ.js → chunk.D7MPWOY4.js} +2 -2
- package/dist/chunks/{chunk.73YCT5YP.js → chunk.DELL4WZ5.js} +6 -6
- package/dist/chunks/{chunk.E6TFC2XT.js → chunk.DVN7YIWJ.js} +6 -6
- package/dist/chunks/{chunk.UAYWNEF2.js → chunk.DZVZDMCU.js} +2 -2
- package/dist/chunks/{chunk.UFLSUYMR.js → chunk.E5POH2AB.js} +10 -6
- package/dist/chunks/chunk.E5POH2AB.js.map +7 -0
- package/dist/chunks/{chunk.XZ6Z32Y7.js → chunk.E763PBAS.js} +2 -2
- package/dist/chunks/{chunk.KYSIJQYQ.js → chunk.E7Z6TVNB.js} +2 -2
- package/dist/chunks/{chunk.H27ON5H7.js → chunk.F32IQ4CY.js} +2 -2
- package/dist/chunks/{chunk.NL54TUMD.js → chunk.F6TRTGX6.js} +2 -2
- package/dist/chunks/{chunk.2I4SZAV7.js → chunk.FBMCAOYM.js} +2 -2
- package/dist/chunks/{chunk.BJVZK37M.js → chunk.G6ZPLNT6.js} +6 -6
- package/dist/chunks/{chunk.UNKUOZF4.js → chunk.H2ZDCYXR.js} +2 -2
- package/dist/chunks/{chunk.7SKY62NS.js → chunk.H4PVK37Q.js} +2 -2
- package/dist/chunks/{chunk.JGDQJLPH.js → chunk.I35U4FOD.js} +2 -2
- package/dist/chunks/{chunk.ERRLJKSN.js → chunk.I5DYBRGJ.js} +2 -2
- package/dist/chunks/{chunk.NNYDDABY.js → chunk.I7G3HALI.js} +6 -6
- package/dist/chunks/{chunk.ENU6QBJY.js → chunk.IAKU6N2O.js} +2 -2
- package/dist/chunks/{chunk.YPLU64DI.js → chunk.IREYXXAW.js} +2 -2
- package/dist/chunks/{chunk.ZEGZSIOB.js → chunk.JOOQ74WK.js} +2 -2
- package/dist/chunks/{chunk.YOIRUEK7.js → chunk.K7YWUUB2.js} +10 -6
- package/dist/chunks/chunk.K7YWUUB2.js.map +7 -0
- package/dist/chunks/{chunk.QUFCECNI.js → chunk.KDLY6NZU.js} +2 -2
- package/dist/chunks/{chunk.CPYKTV7T.js → chunk.KHA6ZIQ4.js} +12 -7
- package/dist/chunks/{chunk.CPYKTV7T.js.map → chunk.KHA6ZIQ4.js.map} +2 -2
- package/dist/chunks/{chunk.GL7H53A7.js → chunk.KLJGMMJL.js} +2 -2
- package/dist/chunks/{chunk.ZXMSSI2X.js → chunk.KZATSBCM.js} +2 -2
- package/dist/chunks/{chunk.Z5DGG2SR.js → chunk.L2OXAPLS.js} +8 -8
- package/dist/chunks/{chunk.NOCZMPAM.js → chunk.L47YR7GX.js} +2 -2
- package/dist/chunks/{chunk.VXOOJVVK.js → chunk.L4CICJ6R.js} +2 -2
- package/dist/chunks/{chunk.PE454XRT.js → chunk.L5V6XZZF.js} +2 -2
- package/dist/chunks/{chunk.HLWROX3O.js → chunk.LIXM7RED.js} +6 -6
- package/dist/chunks/{chunk.F7J77D2F.js → chunk.LN3LFEMR.js} +3 -3
- package/dist/chunks/{chunk.XDAALEJT.js → chunk.M2V6HUQS.js} +2 -2
- package/dist/chunks/{chunk.VF6BYI74.js → chunk.M2Z24CUK.js} +6 -6
- package/dist/chunks/{chunk.UB45VYAM.js → chunk.MLRO3SQX.js} +2 -2
- package/dist/chunks/{chunk.EG3PVRPD.js → chunk.N77CKVTX.js} +3 -3
- package/dist/chunks/{chunk.TQAEON6T.js → chunk.NODQFWR5.js} +6 -6
- package/dist/chunks/{chunk.LMZUDZ5U.js → chunk.NPU7QF4U.js} +2 -2
- package/dist/chunks/{chunk.I4K7VGET.js → chunk.NUKOA5N3.js} +2 -2
- package/dist/chunks/{chunk.56ZXEGTN.js → chunk.ODX4IPRI.js} +2 -2
- package/dist/chunks/{chunk.MWHYXQ3V.js → chunk.OFJWJSUV.js} +2 -2
- package/dist/chunks/{chunk.MWHYXQ3V.js.map → chunk.OFJWJSUV.js.map} +1 -1
- package/dist/chunks/{chunk.2R4BAKFQ.js → chunk.OQ4IGT4X.js} +2 -2
- package/dist/chunks/{chunk.SGDGAE5U.js → chunk.OTEQJAJB.js} +2 -2
- package/dist/chunks/{chunk.DPU6AK42.js → chunk.OTNPYLN4.js} +2 -2
- package/dist/chunks/{chunk.SFW6QD24.js → chunk.P32QVUZA.js} +2 -2
- package/dist/chunks/{chunk.AVICVCTW.js → chunk.P45GZGNP.js} +6 -6
- package/dist/chunks/{chunk.DSSVPSWK.js → chunk.PDVJRU62.js} +2 -2
- package/dist/chunks/{chunk.BXH56BLP.js → chunk.PM3ITLPE.js} +7 -7
- package/dist/chunks/{chunk.NHLEDAM3.js → chunk.PQISMTAN.js} +2 -2
- package/dist/chunks/{chunk.O2YW2HRB.js → chunk.Q5XIEK6A.js} +2 -2
- package/dist/chunks/{chunk.63WHEGRU.js → chunk.Q6VLD3RL.js} +8 -8
- package/dist/chunks/{chunk.ZYFJPZSJ.js → chunk.R24GHGLF.js} +2 -2
- package/dist/chunks/{chunk.MX76EUDN.js → chunk.REJV2AFU.js} +2 -2
- package/dist/chunks/{chunk.N26NKXSF.js → chunk.RZNCKRR3.js} +16 -12
- package/dist/chunks/chunk.RZNCKRR3.js.map +7 -0
- package/dist/chunks/{chunk.CNJX6IOV.js → chunk.S4MVBZLV.js} +2 -2
- package/dist/chunks/{chunk.RN7N5PH6.js → chunk.SDRMWU2G.js} +2 -2
- package/dist/chunks/{chunk.B3YJLMJG.js → chunk.T5QGJTUH.js} +2 -2
- package/dist/chunks/{chunk.XR5BS6Z4.js → chunk.THZI7TAH.js} +2 -2
- package/dist/chunks/{chunk.RPWTJBCA.js → chunk.TIFZYXIQ.js} +5 -5
- package/dist/chunks/{chunk.DNUXSLRR.js → chunk.UMLYCB7H.js} +2 -2
- package/dist/chunks/{chunk.TGVCC5V7.js → chunk.UR5QIUI7.js} +2 -2
- package/dist/chunks/{chunk.5EPRIJZV.js → chunk.USCKYRWO.js} +7 -7
- package/dist/chunks/{chunk.N5OXFKWE.js → chunk.V263DVVZ.js} +2 -2
- package/dist/chunks/{chunk.DRSMYJXR.js → chunk.V47IEFQP.js} +2 -2
- package/dist/chunks/{chunk.WGOSSSAH.js → chunk.VNFYOYUH.js} +2 -2
- package/dist/chunks/{chunk.EMCC5AEY.js → chunk.VNGSVVU6.js} +2 -2
- package/dist/chunks/{chunk.IMSDN6MR.js → chunk.VQ3RRBU2.js} +5 -5
- package/dist/chunks/chunk.WXVOTRW5.js +13 -0
- package/dist/chunks/chunk.WXVOTRW5.js.map +7 -0
- package/dist/chunks/{chunk.47XSMRVX.js → chunk.Z5X3GXPI.js} +2 -2
- package/dist/chunks/{chunk.OHFKLQBN.js → chunk.ZKSLSCZE.js} +5 -5
- package/dist/chunks/{chunk.LPOZ7NYH.js → chunk.ZOA2EO42.js} +5 -5
- package/dist/components/accordion/accordion.component.js +3 -3
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.component.js +9 -8
- package/dist/components/alert/alert.js +10 -9
- package/dist/components/badge/badge.component.js +4 -4
- package/dist/components/badge/badge.js +5 -5
- 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.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +6 -6
- package/dist/components/button/button.js +7 -7
- 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/checkbox/checkbox.component.js +4 -4
- package/dist/components/checkbox/checkbox.js +5 -5
- package/dist/components/combobox/combobox.component.js +7 -7
- package/dist/components/combobox/combobox.js +8 -8
- package/dist/components/details/details.component.js +5 -5
- package/dist/components/details/details.js +6 -6
- package/dist/components/dialog/dialog.component.js +7 -6
- package/dist/components/dialog/dialog.js +8 -7
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +7 -6
- package/dist/components/drawer/drawer.js +8 -7
- package/dist/components/dropdown/dropdown.component.js +4 -4
- package/dist/components/dropdown/dropdown.js +5 -5
- package/dist/components/file/file.component.js +7 -7
- package/dist/components/file/file.js +8 -8
- package/dist/components/header/header.component.js +6 -6
- package/dist/components/header/header.js +7 -7
- 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 +4 -4
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/input/input.component.js +6 -6
- package/dist/components/input/input.js +7 -7
- 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 +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- 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 +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.js +5 -5
- package/dist/components/option/option.js +6 -6
- 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 +10 -10
- package/dist/components/prio-nav/prio-nav.js +11 -11
- 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 +4 -4
- package/dist/components/radio/radio.js +5 -5
- 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.js +4 -4
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/range/range.component.js +5 -5
- package/dist/components/range/range.js +6 -6
- 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 +8 -8
- package/dist/components/select/select.js +9 -9
- package/dist/components/side-nav/side-nav.component.js +9 -8
- package/dist/components/side-nav/side-nav.js +10 -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 +3 -3
- package/dist/components/switch/switch.js +4 -4
- 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 -0
- 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.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tag/tag.component.js +6 -6
- package/dist/components/tag/tag.js +7 -7
- package/dist/components/textarea/textarea.component.js +3 -3
- package/dist/components/textarea/textarea.js +4 -4
- 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.js +11 -10
- package/dist/components/validate/validate.js +12 -11
- package/dist/custom-elements.json +89 -77
- package/dist/internal/closeActiveElement.d.ts +7 -0
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +109 -108
- package/dist/vscode.html-custom-data.json +23 -23
- package/package.json +1 -1
- package/dist/chunks/chunk.N26NKXSF.js.map +0 -7
- package/dist/chunks/chunk.UFLSUYMR.js.map +0 -7
- package/dist/chunks/chunk.YOIRUEK7.js.map +0 -7
- package/dist/chunks/chunk.Z5NRLDWR.js.map +0 -7
- /package/dist/chunks/{chunk.OLCNUALI.js.map → chunk.24UXLDJU.js.map} +0 -0
- /package/dist/chunks/{chunk.KT4S4ZB6.js.map → chunk.2SMIYMKX.js.map} +0 -0
- /package/dist/chunks/{chunk.GX7U6NXX.js.map → chunk.3IBRAHYG.js.map} +0 -0
- /package/dist/chunks/{chunk.JLXTLEQ2.js.map → chunk.3JDTX4X6.js.map} +0 -0
- /package/dist/chunks/{chunk.RKGPPRBN.js.map → chunk.3LCV5OP2.js.map} +0 -0
- /package/dist/chunks/{chunk.FHVNKHG6.js.map → chunk.3MCNFSYA.js.map} +0 -0
- /package/dist/chunks/{chunk.HNAX4UUU.js.map → chunk.3PHPHPL2.js.map} +0 -0
- /package/dist/chunks/{chunk.SUKTJ7VP.js.map → chunk.3VMHO22R.js.map} +0 -0
- /package/dist/chunks/{chunk.FZZW3EOY.js.map → chunk.47TJUMDU.js.map} +0 -0
- /package/dist/chunks/{chunk.A5J5X63K.js.map → chunk.4FWOLVW5.js.map} +0 -0
- /package/dist/chunks/{chunk.YL23TQJD.js.map → chunk.4V65J2KG.js.map} +0 -0
- /package/dist/chunks/{chunk.7UL2AO5G.js.map → chunk.6HZQNE6W.js.map} +0 -0
- /package/dist/chunks/{chunk.O3QG6DMY.js.map → chunk.6MMYKADV.js.map} +0 -0
- /package/dist/chunks/{chunk.JJYMYZLU.js.map → chunk.6NPGZ4DQ.js.map} +0 -0
- /package/dist/chunks/{chunk.FN4PXV26.js.map → chunk.6WAIU776.js.map} +0 -0
- /package/dist/chunks/{chunk.42SO7SLL.js.map → chunk.6XG6USXW.js.map} +0 -0
- /package/dist/chunks/{chunk.IQ6CXY4E.js.map → chunk.7APSA6PW.js.map} +0 -0
- /package/dist/chunks/{chunk.N4UI3LPL.js.map → chunk.7SVQW4H2.js.map} +0 -0
- /package/dist/chunks/{chunk.WDV7LVFR.js.map → chunk.7UA4WT6S.js.map} +0 -0
- /package/dist/chunks/{chunk.QOSIFCNH.js.map → chunk.AFEY7D5X.js.map} +0 -0
- /package/dist/chunks/{chunk.5YED73MO.js.map → chunk.ATKPBD4D.js.map} +0 -0
- /package/dist/chunks/{chunk.SDTIYJSH.js.map → chunk.AW2M6WI2.js.map} +0 -0
- /package/dist/chunks/{chunk.R3QKOXPD.js.map → chunk.C444R2J2.js.map} +0 -0
- /package/dist/chunks/{chunk.Q2ZTFH4U.js.map → chunk.CBFQFRSX.js.map} +0 -0
- /package/dist/chunks/{chunk.DXLVSIU4.js.map → chunk.CDIUF5K7.js.map} +0 -0
- /package/dist/chunks/{chunk.FY7TEGB6.js.map → chunk.CL2EY3KT.js.map} +0 -0
- /package/dist/chunks/{chunk.OI4FZSHJ.js.map → chunk.D7MPWOY4.js.map} +0 -0
- /package/dist/chunks/{chunk.73YCT5YP.js.map → chunk.DELL4WZ5.js.map} +0 -0
- /package/dist/chunks/{chunk.E6TFC2XT.js.map → chunk.DVN7YIWJ.js.map} +0 -0
- /package/dist/chunks/{chunk.UAYWNEF2.js.map → chunk.DZVZDMCU.js.map} +0 -0
- /package/dist/chunks/{chunk.XZ6Z32Y7.js.map → chunk.E763PBAS.js.map} +0 -0
- /package/dist/chunks/{chunk.KYSIJQYQ.js.map → chunk.E7Z6TVNB.js.map} +0 -0
- /package/dist/chunks/{chunk.H27ON5H7.js.map → chunk.F32IQ4CY.js.map} +0 -0
- /package/dist/chunks/{chunk.NL54TUMD.js.map → chunk.F6TRTGX6.js.map} +0 -0
- /package/dist/chunks/{chunk.2I4SZAV7.js.map → chunk.FBMCAOYM.js.map} +0 -0
- /package/dist/chunks/{chunk.BJVZK37M.js.map → chunk.G6ZPLNT6.js.map} +0 -0
- /package/dist/chunks/{chunk.UNKUOZF4.js.map → chunk.H2ZDCYXR.js.map} +0 -0
- /package/dist/chunks/{chunk.7SKY62NS.js.map → chunk.H4PVK37Q.js.map} +0 -0
- /package/dist/chunks/{chunk.JGDQJLPH.js.map → chunk.I35U4FOD.js.map} +0 -0
- /package/dist/chunks/{chunk.ERRLJKSN.js.map → chunk.I5DYBRGJ.js.map} +0 -0
- /package/dist/chunks/{chunk.NNYDDABY.js.map → chunk.I7G3HALI.js.map} +0 -0
- /package/dist/chunks/{chunk.ENU6QBJY.js.map → chunk.IAKU6N2O.js.map} +0 -0
- /package/dist/chunks/{chunk.YPLU64DI.js.map → chunk.IREYXXAW.js.map} +0 -0
- /package/dist/chunks/{chunk.ZEGZSIOB.js.map → chunk.JOOQ74WK.js.map} +0 -0
- /package/dist/chunks/{chunk.QUFCECNI.js.map → chunk.KDLY6NZU.js.map} +0 -0
- /package/dist/chunks/{chunk.GL7H53A7.js.map → chunk.KLJGMMJL.js.map} +0 -0
- /package/dist/chunks/{chunk.ZXMSSI2X.js.map → chunk.KZATSBCM.js.map} +0 -0
- /package/dist/chunks/{chunk.Z5DGG2SR.js.map → chunk.L2OXAPLS.js.map} +0 -0
- /package/dist/chunks/{chunk.NOCZMPAM.js.map → chunk.L47YR7GX.js.map} +0 -0
- /package/dist/chunks/{chunk.VXOOJVVK.js.map → chunk.L4CICJ6R.js.map} +0 -0
- /package/dist/chunks/{chunk.PE454XRT.js.map → chunk.L5V6XZZF.js.map} +0 -0
- /package/dist/chunks/{chunk.HLWROX3O.js.map → chunk.LIXM7RED.js.map} +0 -0
- /package/dist/chunks/{chunk.F7J77D2F.js.map → chunk.LN3LFEMR.js.map} +0 -0
- /package/dist/chunks/{chunk.XDAALEJT.js.map → chunk.M2V6HUQS.js.map} +0 -0
- /package/dist/chunks/{chunk.VF6BYI74.js.map → chunk.M2Z24CUK.js.map} +0 -0
- /package/dist/chunks/{chunk.UB45VYAM.js.map → chunk.MLRO3SQX.js.map} +0 -0
- /package/dist/chunks/{chunk.EG3PVRPD.js.map → chunk.N77CKVTX.js.map} +0 -0
- /package/dist/chunks/{chunk.TQAEON6T.js.map → chunk.NODQFWR5.js.map} +0 -0
- /package/dist/chunks/{chunk.LMZUDZ5U.js.map → chunk.NPU7QF4U.js.map} +0 -0
- /package/dist/chunks/{chunk.I4K7VGET.js.map → chunk.NUKOA5N3.js.map} +0 -0
- /package/dist/chunks/{chunk.56ZXEGTN.js.map → chunk.ODX4IPRI.js.map} +0 -0
- /package/dist/chunks/{chunk.2R4BAKFQ.js.map → chunk.OQ4IGT4X.js.map} +0 -0
- /package/dist/chunks/{chunk.SGDGAE5U.js.map → chunk.OTEQJAJB.js.map} +0 -0
- /package/dist/chunks/{chunk.DPU6AK42.js.map → chunk.OTNPYLN4.js.map} +0 -0
- /package/dist/chunks/{chunk.SFW6QD24.js.map → chunk.P32QVUZA.js.map} +0 -0
- /package/dist/chunks/{chunk.AVICVCTW.js.map → chunk.P45GZGNP.js.map} +0 -0
- /package/dist/chunks/{chunk.DSSVPSWK.js.map → chunk.PDVJRU62.js.map} +0 -0
- /package/dist/chunks/{chunk.BXH56BLP.js.map → chunk.PM3ITLPE.js.map} +0 -0
- /package/dist/chunks/{chunk.NHLEDAM3.js.map → chunk.PQISMTAN.js.map} +0 -0
- /package/dist/chunks/{chunk.O2YW2HRB.js.map → chunk.Q5XIEK6A.js.map} +0 -0
- /package/dist/chunks/{chunk.63WHEGRU.js.map → chunk.Q6VLD3RL.js.map} +0 -0
- /package/dist/chunks/{chunk.ZYFJPZSJ.js.map → chunk.R24GHGLF.js.map} +0 -0
- /package/dist/chunks/{chunk.MX76EUDN.js.map → chunk.REJV2AFU.js.map} +0 -0
- /package/dist/chunks/{chunk.CNJX6IOV.js.map → chunk.S4MVBZLV.js.map} +0 -0
- /package/dist/chunks/{chunk.RN7N5PH6.js.map → chunk.SDRMWU2G.js.map} +0 -0
- /package/dist/chunks/{chunk.B3YJLMJG.js.map → chunk.T5QGJTUH.js.map} +0 -0
- /package/dist/chunks/{chunk.XR5BS6Z4.js.map → chunk.THZI7TAH.js.map} +0 -0
- /package/dist/chunks/{chunk.RPWTJBCA.js.map → chunk.TIFZYXIQ.js.map} +0 -0
- /package/dist/chunks/{chunk.DNUXSLRR.js.map → chunk.UMLYCB7H.js.map} +0 -0
- /package/dist/chunks/{chunk.TGVCC5V7.js.map → chunk.UR5QIUI7.js.map} +0 -0
- /package/dist/chunks/{chunk.5EPRIJZV.js.map → chunk.USCKYRWO.js.map} +0 -0
- /package/dist/chunks/{chunk.N5OXFKWE.js.map → chunk.V263DVVZ.js.map} +0 -0
- /package/dist/chunks/{chunk.DRSMYJXR.js.map → chunk.V47IEFQP.js.map} +0 -0
- /package/dist/chunks/{chunk.WGOSSSAH.js.map → chunk.VNFYOYUH.js.map} +0 -0
- /package/dist/chunks/{chunk.EMCC5AEY.js.map → chunk.VNGSVVU6.js.map} +0 -0
- /package/dist/chunks/{chunk.IMSDN6MR.js.map → chunk.VQ3RRBU2.js.map} +0 -0
- /package/dist/chunks/{chunk.47XSMRVX.js.map → chunk.Z5X3GXPI.js.map} +0 -0
- /package/dist/chunks/{chunk.OHFKLQBN.js.map → chunk.ZKSLSCZE.js.map} +0 -0
- /package/dist/chunks/{chunk.LPOZ7NYH.js.map → chunk.ZOA2EO42.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTextarea
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.TIFZYXIQ.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.CBFQFRSX.js.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk.43YNZAWL.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIconButton
|
|
9
|
-
} from "./chunk.
|
|
10
|
-
import {
|
|
11
|
-
LocalizeController
|
|
12
|
-
} from "./chunk.GIU3H3J3.js";
|
|
9
|
+
} from "./chunk.LN3LFEMR.js";
|
|
13
10
|
import {
|
|
14
11
|
watch
|
|
15
12
|
} from "./chunk.74IOULXM.js";
|
|
13
|
+
import {
|
|
14
|
+
LocalizeController
|
|
15
|
+
} from "./chunk.GIU3H3J3.js";
|
|
16
16
|
import {
|
|
17
17
|
component_styles_default
|
|
18
18
|
} from "./chunk.NLYVOJGK.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.OFJWJSUV.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -118,4 +118,4 @@ __decorateClass([
|
|
|
118
118
|
export {
|
|
119
119
|
SynTab
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk.
|
|
121
|
+
//# sourceMappingURL=chunk.CDIUF5K7.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.OFJWJSUV.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass,
|
|
15
15
|
__spreadProps,
|
|
@@ -415,4 +415,4 @@ __decorateClass([
|
|
|
415
415
|
export {
|
|
416
416
|
SynPopup
|
|
417
417
|
};
|
|
418
|
-
//# sourceMappingURL=chunk.
|
|
418
|
+
//# sourceMappingURL=chunk.CL2EY3KT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenuItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.Q6VLD3RL.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu-item/menu-item.ts
|
|
6
6
|
var menu_item_default = SynMenuItem;
|
|
@@ -9,4 +9,4 @@ SynMenuItem.define("syn-menu-item");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.D7MPWOY4.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.2MDGY2UP.js";
|
|
10
10
|
import {
|
|
11
11
|
SynPopup
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.CL2EY3KT.js";
|
|
13
13
|
import {
|
|
14
14
|
waitForEvent
|
|
15
15
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -21,18 +21,18 @@ import {
|
|
|
21
21
|
getAnimation,
|
|
22
22
|
setDefaultAnimation
|
|
23
23
|
} from "./chunk.HQ6QUSK7.js";
|
|
24
|
-
import {
|
|
25
|
-
LocalizeController
|
|
26
|
-
} from "./chunk.GIU3H3J3.js";
|
|
27
24
|
import {
|
|
28
25
|
watch
|
|
29
26
|
} from "./chunk.74IOULXM.js";
|
|
27
|
+
import {
|
|
28
|
+
LocalizeController
|
|
29
|
+
} from "./chunk.GIU3H3J3.js";
|
|
30
30
|
import {
|
|
31
31
|
component_styles_default
|
|
32
32
|
} from "./chunk.NLYVOJGK.js";
|
|
33
33
|
import {
|
|
34
34
|
SynergyElement
|
|
35
|
-
} from "./chunk.
|
|
35
|
+
} from "./chunk.OFJWJSUV.js";
|
|
36
36
|
import {
|
|
37
37
|
__decorateClass
|
|
38
38
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -374,4 +374,4 @@ setDefaultAnimation("dropdown.hide", {
|
|
|
374
374
|
export {
|
|
375
375
|
SynDropdown
|
|
376
376
|
};
|
|
377
|
-
//# sourceMappingURL=chunk.
|
|
377
|
+
//# sourceMappingURL=chunk.DELL4WZ5.js.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk.EHSNF4SS.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
10
|
-
import {
|
|
11
|
-
enableDefaultSettings
|
|
12
|
-
} from "./chunk.OLCT57R5.js";
|
|
9
|
+
} from "./chunk.6MMYKADV.js";
|
|
13
10
|
import {
|
|
14
11
|
watch
|
|
15
12
|
} from "./chunk.74IOULXM.js";
|
|
13
|
+
import {
|
|
14
|
+
enableDefaultSettings
|
|
15
|
+
} from "./chunk.OLCT57R5.js";
|
|
16
16
|
import {
|
|
17
17
|
component_styles_default
|
|
18
18
|
} from "./chunk.NLYVOJGK.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.OFJWJSUV.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -120,4 +120,4 @@ SynRadio = __decorateClass([
|
|
|
120
120
|
export {
|
|
121
121
|
SynRadio
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=chunk.
|
|
123
|
+
//# sourceMappingURL=chunk.DVN7YIWJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTab
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.CDIUF5K7.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.DZVZDMCU.js.map
|
|
@@ -11,9 +11,12 @@ import {
|
|
|
11
11
|
lockBodyScrolling,
|
|
12
12
|
unlockBodyScrolling
|
|
13
13
|
} from "./chunk.5732DMBC.js";
|
|
14
|
+
import {
|
|
15
|
+
blurActiveElement
|
|
16
|
+
} from "./chunk.WXVOTRW5.js";
|
|
14
17
|
import {
|
|
15
18
|
SynIconButton
|
|
16
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.LN3LFEMR.js";
|
|
17
20
|
import {
|
|
18
21
|
waitForEvent
|
|
19
22
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -28,18 +31,18 @@ import {
|
|
|
28
31
|
import {
|
|
29
32
|
HasSlotController
|
|
30
33
|
} from "./chunk.WVVQK5TE.js";
|
|
31
|
-
import {
|
|
32
|
-
LocalizeController
|
|
33
|
-
} from "./chunk.GIU3H3J3.js";
|
|
34
34
|
import {
|
|
35
35
|
watch
|
|
36
36
|
} from "./chunk.74IOULXM.js";
|
|
37
|
+
import {
|
|
38
|
+
LocalizeController
|
|
39
|
+
} from "./chunk.GIU3H3J3.js";
|
|
37
40
|
import {
|
|
38
41
|
component_styles_default
|
|
39
42
|
} from "./chunk.NLYVOJGK.js";
|
|
40
43
|
import {
|
|
41
44
|
SynergyElement
|
|
42
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.OFJWJSUV.js";
|
|
43
46
|
import {
|
|
44
47
|
__decorateClass
|
|
45
48
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -159,6 +162,7 @@ var SynDrawer = class extends SynergyElement {
|
|
|
159
162
|
]);
|
|
160
163
|
this.emit("syn-after-show");
|
|
161
164
|
} else {
|
|
165
|
+
blurActiveElement(this);
|
|
162
166
|
this.emit("syn-hide");
|
|
163
167
|
this.removeOpenListeners();
|
|
164
168
|
if (!this.contained) {
|
|
@@ -394,4 +398,4 @@ setDefaultAnimation("drawer.overlay.hide", {
|
|
|
394
398
|
export {
|
|
395
399
|
SynDrawer
|
|
396
400
|
};
|
|
397
|
-
//# sourceMappingURL=chunk.
|
|
401
|
+
//# sourceMappingURL=chunk.E5POH2AB.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/drawer/drawer.component.ts", "../../src/internal/string.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 { 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 { uppercaseFirstLetter } from '../../internal/string.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 './drawer.styles.js';\nimport customStyles from './drawer.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\n\n/**\n * @summary Drawers slide in from a container to expose additional options and information.\n * @documentation https://synergy.style/components/drawer\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The drawer's main content.\n * @slot label - The drawer'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 drawer's footer, usually one or more buttons representing various options.\n *\n * @event syn-show - Emitted when the drawer opens.\n * @event syn-after-show - Emitted after the drawer opens and all animations are complete.\n * @event syn-hide - Emitted when the drawer closes.\n * @event syn-after-hide - Emitted after the drawer closes and all animations are complete.\n * @event syn-initial-focus - Emitted when the drawer 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 drawer by clicking the close button, clicking the overlay, or pressing escape. Calling\n * `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer 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 drawer.\n * @csspart panel - The drawer's panel (where the drawer and its content are rendered).\n * @csspart header - The drawer'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 drawer'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 drawer's body.\n * @csspart footer - The drawer's footer.\n *\n * @cssproperty --size - The preferred size of the drawer. This will be applied to the drawer's width or height\n * depending on its `placement`. Note that the drawer 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 drawer.showTop - The animation to use when showing a drawer with `top` placement.\n * @animation drawer.showEnd - The animation to use when showing a drawer with `end` placement.\n * @animation drawer.showBottom - The animation to use when showing a drawer with `bottom` placement.\n * @animation drawer.showStart - The animation to use when showing a drawer with `start` placement.\n * @animation drawer.hideTop - The animation to use when hiding a drawer with `top` placement.\n * @animation drawer.hideEnd - The animation to use when hiding a drawer with `end` placement.\n * @animation drawer.hideBottom - The animation to use when hiding a drawer with `bottom` placement.\n * @animation drawer.hideStart - The animation to use when hiding a drawer with `start` placement.\n * @animation drawer.denyClose - The animation to use when a request to close the drawer is denied.\n * @animation drawer.overlay.show - The animation to use when showing the drawer's overlay.\n * @animation drawer.overlay.hide - The animation to use when hiding the drawer'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 SynDrawer extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\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('.drawer') drawer: HTMLElement;\n @query('.drawer__panel') panel: HTMLElement;\n @query('.drawer__overlay') overlay: HTMLElement;\n\n /**\n * Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * The drawer'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 /** The direction from which the drawer will open. */\n @property({ reflect: true }) placement: 'top' | 'end' | 'bottom' | 'start' = 'end';\n\n /**\n * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\n * its parent element, set this attribute and add `position: relative` to the parent.\n */\n @property({ type: Boolean, reflect: true }) contained = false;\n\n /**\n * Removes 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 drawer.\n */\n @property({ attribute: 'no-header', type: Boolean, reflect: true }) noHeader = false;\n\n firstUpdated() {\n this.drawer.hidden = !this.open;\n\n if (this.open) {\n this.addOpenListeners();\n\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\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, 'drawer.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 if (!this.contained) {\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => this.requestClose('keyboard');\n }\n } else {\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n }\n }\n\n private removeOpenListeners() {\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n this.closeWatcher?.destroy();\n }\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n // Contained drawers aren't modal and don't response to the escape key\n if (this.contained) {\n return;\n }\n\n if (event.key === 'Escape' && this.modal.isActive() && this.open) {\n event.stopImmediatePropagation();\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\n // Lock body scrolling only if the drawer isn't contained\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n\n // When the drawer is shown, Safari will attempt to set focus on whatever element has autofocus. This causes the\n // drawer's animation to jitter, so we'll temporarily remove the attribute, call `focus({ preventScroll: true })`\n // ourselves, and add the attribute back afterwards.\n //\n // Related: https://github.com/synergy-design-system/synergy/issues/693\n //\n const autoFocusTarget = this.querySelector('[autofocus]');\n if (autoFocusTarget) {\n autoFocusTarget.removeAttribute('autofocus');\n }\n\n await Promise.all([stopAnimations(this.drawer), stopAnimations(this.overlay)]);\n this.drawer.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, `drawer.show${uppercaseFirstLetter(this.placement)}`, {\n dir: this.localize.dir()\n });\n const overlayAnimation = getAnimation(this, 'drawer.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\n if (!this.contained) {\n this.modal.deactivate();\n unlockBodyScrolling(this);\n }\n\n await Promise.all([stopAnimations(this.drawer), stopAnimations(this.overlay)]);\n const panelAnimation = getAnimation(this, `drawer.hide${uppercaseFirstLetter(this.placement)}`, {\n dir: this.localize.dir()\n });\n const overlayAnimation = getAnimation(this, 'drawer.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.drawer.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 // 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 @watch('contained', { waitUntilFirstUpdate: true })\n handleNoModalChange() {\n if (this.open && !this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n\n if (this.open && this.contained) {\n this.modal.deactivate();\n unlockBodyScrolling(this);\n }\n }\n\n /** Shows the drawer. */\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 drawer */\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 drawer: true,\n 'drawer--open': this.open,\n 'drawer--top': this.placement === 'top',\n 'drawer--end': this.placement === 'end',\n 'drawer--bottom': this.placement === 'bottom',\n 'drawer--start': this.placement === 'start',\n 'drawer--contained': this.contained,\n 'drawer--fixed': !this.contained,\n 'drawer--rtl': this.localize.dir() === 'rtl',\n 'drawer--has-footer': this.hasSlotController.test('footer')\n })}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" @click=${() => this.requestClose('overlay')} tabindex=\"-1\"></div>\n\n <div\n part=\"panel\"\n class=\"drawer__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=\"0\"\n >\n ${!this.noHeader\n ? html`\n <header part=\"header\" class=\"drawer__header\">\n <h2 part=\"title\" class=\"drawer__title\" id=\"title\">\n <!-- If there's no label, use an invisible character to prevent the header from collapsing -->\n <slot name=\"label\"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>\n </h2>\n <div part=\"header-actions\" class=\"drawer__header-actions\">\n <slot name=\"header-actions\"></slot>\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"drawer__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 <slot part=\"body\" class=\"drawer__body\"></slot>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n}\n\n// Top\nsetDefaultAnimation('drawer.showTop', {\n keyframes: [\n { opacity: 0, translate: '0 -100%' },\n { opacity: 1, translate: '0 0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideTop', {\n keyframes: [\n { opacity: 1, translate: '0 0' },\n { opacity: 0, translate: '0 -100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// End\nsetDefaultAnimation('drawer.showEnd', {\n keyframes: [\n { opacity: 0, translate: '100%' },\n { opacity: 1, translate: '0' }\n ],\n rtlKeyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideEnd', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '100%' }\n ],\n rtlKeyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Bottom\nsetDefaultAnimation('drawer.showBottom', {\n keyframes: [\n { opacity: 0, translate: '0 100%' },\n { opacity: 1, translate: '0 0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideBottom', {\n keyframes: [\n { opacity: 1, translate: '0 0' },\n { opacity: 0, translate: '0 100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Start\nsetDefaultAnimation('drawer.showStart', {\n keyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' }\n ],\n rtlKeyframes: [\n { opacity: 0, translate: '100%' },\n { opacity: 1, translate: '0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideStart', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' }\n ],\n rtlKeyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Deny close\nsetDefaultAnimation('drawer.denyClose', {\n keyframes: [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }],\n options: { duration: 250 }\n});\n\n// Overlay\nsetDefaultAnimation('drawer.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('drawer.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n", "/**\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 */\n/** Converts the first letter of a string to uppercase */\nexport function uppercaseFirstLetter(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;;;ACPzB,SAAS,qBAAqB,QAAgB;AACnD,SAAO,OAAO,OAAO,CAAC,EAAE,YAAY,IAAI,OAAO,MAAM,CAAC;AACxD;;;AD2EA,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAIE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AACzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAEvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAWe,gBAAO;AAMtB,iBAAQ;AAGR,qBAAgD;AAMjC,qBAAY;AAMY,oBAAW;AAqD/E,SAAQ,wBAAwB,CAAC,UAAyB;AAExD,UAAI,KAAK,WAAW;AAClB;AAAA,MACF;AAEA,UAAI,MAAM,QAAQ,YAAY,KAAK,MAAM,SAAS,KAAK,KAAK,MAAM;AAChE,cAAM,yBAAyB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IACT,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,IAC7B,EAAE,SAAS,GAAG,WAAW,QAAQ;AAAA,EACnC;AAAA,EACA,cAAc;AAAA,IACZ,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,IAC7B,EAAE,SAAS,GAAG,WAAW,OAAO;AAAA,EAClC;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAGD,oBAAoB,oBAAoB;AAAA,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO,EAAE,CAAC;AAAA,EACvD,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAGD,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
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRange
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.N77CKVTX.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.E763PBAS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDetails
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4V65J2KG.js";
|
|
4
4
|
|
|
5
5
|
// src/components/details/details.ts
|
|
6
6
|
var details_default = SynDetails;
|
|
@@ -9,4 +9,4 @@ SynDetails.define("syn-details");
|
|
|
9
9
|
export {
|
|
10
10
|
details_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.E7Z6TVNB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.M2Z24CUK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-group/radio-group.ts
|
|
6
6
|
var radio_group_default = SynRadioGroup;
|
|
@@ -9,4 +9,4 @@ SynRadioGroup.define("syn-radio-group");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_group_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.F32IQ4CY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSpinner
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NUKOA5N3.js";
|
|
4
4
|
|
|
5
5
|
// src/components/spinner/spinner.ts
|
|
6
6
|
var spinner_default = SynSpinner;
|
|
@@ -9,4 +9,4 @@ SynSpinner.define("syn-spinner");
|
|
|
9
9
|
export {
|
|
10
10
|
spinner_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.F6TRTGX6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenuLabel
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.6HZQNE6W.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.FBMCAOYM.js.map
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
} from "./chunk.74N5WLM5.js";
|
|
10
10
|
import {
|
|
11
11
|
SynNavItem
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.7APSA6PW.js";
|
|
13
13
|
import {
|
|
14
14
|
SynMenu
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.C444R2J2.js";
|
|
16
16
|
import {
|
|
17
17
|
SynDropdown
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.DELL4WZ5.js";
|
|
19
19
|
import {
|
|
20
20
|
SynIcon
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.6MMYKADV.js";
|
|
22
22
|
import {
|
|
23
23
|
LocalizeController
|
|
24
24
|
} from "./chunk.GIU3H3J3.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk.NLYVOJGK.js";
|
|
28
28
|
import {
|
|
29
29
|
SynergyElement
|
|
30
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.OFJWJSUV.js";
|
|
31
31
|
import {
|
|
32
32
|
__decorateClass
|
|
33
33
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -209,4 +209,4 @@ __decorateClass([
|
|
|
209
209
|
export {
|
|
210
210
|
SynPrioNav
|
|
211
211
|
};
|
|
212
|
-
//# sourceMappingURL=chunk.
|
|
212
|
+
//# sourceMappingURL=chunk.G6ZPLNT6.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.OFJWJSUV.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -55,4 +55,4 @@ __decorateClass([
|
|
|
55
55
|
export {
|
|
56
56
|
SynCard
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk.
|
|
58
|
+
//# sourceMappingURL=chunk.H2ZDCYXR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAlert
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.RZNCKRR3.js";
|
|
4
4
|
|
|
5
5
|
// src/components/alert/alert.ts
|
|
6
6
|
var alert_default = SynAlert;
|
|
@@ -9,4 +9,4 @@ SynAlert.define("syn-alert");
|
|
|
9
9
|
export {
|
|
10
10
|
alert_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.H4PVK37Q.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBadge
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.24UXLDJU.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.I35U4FOD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynergyElement
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OFJWJSUV.js";
|
|
4
4
|
|
|
5
5
|
// src/components/validate/utility.ts
|
|
6
6
|
var WhitelistedSynergyFormEventNames = [
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
normalizeEventAttribute,
|
|
34
34
|
getEventNameForElement
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=chunk.
|
|
36
|
+
//# sourceMappingURL=chunk.I5DYBRGJ.js.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk.IVM3BGRH.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
10
|
-
import {
|
|
11
|
-
LocalizeController
|
|
12
|
-
} from "./chunk.GIU3H3J3.js";
|
|
9
|
+
} from "./chunk.6MMYKADV.js";
|
|
13
10
|
import {
|
|
14
11
|
watch
|
|
15
12
|
} from "./chunk.74IOULXM.js";
|
|
13
|
+
import {
|
|
14
|
+
LocalizeController
|
|
15
|
+
} from "./chunk.GIU3H3J3.js";
|
|
16
16
|
import {
|
|
17
17
|
component_styles_default
|
|
18
18
|
} from "./chunk.NLYVOJGK.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.OFJWJSUV.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -154,4 +154,4 @@ __decorateClass([
|
|
|
154
154
|
export {
|
|
155
155
|
SynOption
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=chunk.
|
|
157
|
+
//# sourceMappingURL=chunk.I7G3HALI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRangeTick
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.UMLYCB7H.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.IAKU6N2O.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.OFJWJSUV.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -76,4 +76,4 @@ __decorateClass([
|
|
|
76
76
|
export {
|
|
77
77
|
SynProgressRing
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk.
|
|
79
|
+
//# sourceMappingURL=chunk.IREYXXAW.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.OFJWJSUV.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -43,4 +43,4 @@ __decorateClass([
|
|
|
43
43
|
export {
|
|
44
44
|
SynDivider
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk.
|
|
46
|
+
//# sourceMappingURL=chunk.JOOQ74WK.js.map
|
|
@@ -11,9 +11,12 @@ import {
|
|
|
11
11
|
lockBodyScrolling,
|
|
12
12
|
unlockBodyScrolling
|
|
13
13
|
} from "./chunk.5732DMBC.js";
|
|
14
|
+
import {
|
|
15
|
+
blurActiveElement
|
|
16
|
+
} from "./chunk.WXVOTRW5.js";
|
|
14
17
|
import {
|
|
15
18
|
SynIconButton
|
|
16
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.LN3LFEMR.js";
|
|
17
20
|
import {
|
|
18
21
|
waitForEvent
|
|
19
22
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -28,18 +31,18 @@ import {
|
|
|
28
31
|
import {
|
|
29
32
|
HasSlotController
|
|
30
33
|
} from "./chunk.WVVQK5TE.js";
|
|
31
|
-
import {
|
|
32
|
-
LocalizeController
|
|
33
|
-
} from "./chunk.GIU3H3J3.js";
|
|
34
34
|
import {
|
|
35
35
|
watch
|
|
36
36
|
} from "./chunk.74IOULXM.js";
|
|
37
|
+
import {
|
|
38
|
+
LocalizeController
|
|
39
|
+
} from "./chunk.GIU3H3J3.js";
|
|
37
40
|
import {
|
|
38
41
|
component_styles_default
|
|
39
42
|
} from "./chunk.NLYVOJGK.js";
|
|
40
43
|
import {
|
|
41
44
|
SynergyElement
|
|
42
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.OFJWJSUV.js";
|
|
43
46
|
import {
|
|
44
47
|
__decorateClass
|
|
45
48
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -140,6 +143,7 @@ var SynDialog = class extends SynergyElement {
|
|
|
140
143
|
]);
|
|
141
144
|
this.emit("syn-after-show");
|
|
142
145
|
} else {
|
|
146
|
+
blurActiveElement(this);
|
|
143
147
|
this.emit("syn-hide");
|
|
144
148
|
this.removeOpenListeners();
|
|
145
149
|
this.modal.deactivate();
|
|
@@ -288,4 +292,4 @@ setDefaultAnimation("dialog.overlay.hide", {
|
|
|
288
292
|
export {
|
|
289
293
|
SynDialog
|
|
290
294
|
};
|
|
291
|
-
//# sourceMappingURL=chunk.
|
|
295
|
+
//# sourceMappingURL=chunk.K7YWUUB2.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 { 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';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\n\n/**\n * @summary Dialogs, sometimes called \"modals\", appear above the page and require the user's immediate attention.\n * @documentation https://synergy.style/components/dialog\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/synergy-design-system/synergy/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/synergy-design-system/synergy/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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;AA8DhC,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;A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B,oBAAoB;AAAA,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO,EAAE,CAAC;AAAA,EACvD,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;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.3VMHO22R.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.KDLY6NZU.js.map
|