@synergy-design-system/components 2.10.2 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk.LNY6YUO6.js → chunk.22GTODGK.js} +2 -2
- package/dist/chunks/{chunk.65L6WCR6.js → chunk.2QWFZFFH.js} +2 -2
- package/dist/chunks/{chunk.OBS3SYSN.js → chunk.2TICTVUA.js} +2 -2
- package/dist/chunks/{chunk.RJA3VP67.js → chunk.3EBU2LXD.js} +2 -2
- package/dist/chunks/{chunk.KSCSAGWO.js → chunk.3F7LLZWJ.js} +3 -3
- package/dist/chunks/{chunk.JMZQTN66.js → chunk.3UEIMTUM.js} +2 -2
- package/dist/chunks/{chunk.X7OQSEX2.js → chunk.3XQJFQD3.js} +4 -4
- package/dist/chunks/{chunk.SZT7XVV5.js → chunk.52456FY5.js} +4 -4
- package/dist/chunks/{chunk.WVHXHIV3.js → chunk.53SVGYMQ.js} +6 -6
- package/dist/chunks/{chunk.MUNBPFME.js → chunk.562KEWJB.js} +9 -7
- package/dist/chunks/chunk.562KEWJB.js.map +7 -0
- package/dist/chunks/{chunk.G23DQN3P.js → chunk.57BMEZH4.js} +2 -2
- package/dist/chunks/{chunk.C3RIFO4H.js → chunk.5F7BRK2T.js} +2 -2
- package/dist/chunks/{chunk.ANZWKSQQ.js → chunk.5FHT5R4H.js} +2 -2
- package/dist/chunks/{chunk.4GYVNNIY.js → chunk.6APBFAPL.js} +3 -3
- package/dist/chunks/{chunk.LBKAFXWM.js → chunk.6HOOQIDR.js} +2 -2
- package/dist/chunks/{chunk.ZD4S3T2U.js → chunk.6QQOPHCI.js} +2 -2
- package/dist/chunks/{chunk.BSZ6RFHE.js → chunk.6S2HTHLG.js} +2 -2
- package/dist/chunks/{chunk.55WMAVZI.js → chunk.6ZJ4P2CQ.js} +2 -2
- package/dist/chunks/{chunk.W4AB6YT6.js → chunk.A3PJVQKK.js} +62 -9
- package/dist/chunks/chunk.A3PJVQKK.js.map +7 -0
- package/dist/chunks/{chunk.EBQLSITZ.js → chunk.AIA6FPT5.js} +2 -2
- package/dist/chunks/{chunk.YI56F4S6.js → chunk.AYGERGTM.js} +2 -2
- package/dist/chunks/{chunk.FUJKCUQU.js → chunk.BKZ45UEY.js} +120 -14
- package/dist/chunks/chunk.BKZ45UEY.js.map +7 -0
- package/dist/chunks/{chunk.Z4LBSDQQ.js → chunk.BNHWEIFH.js} +2 -2
- package/dist/chunks/chunk.BUV5EYAG.js +79 -0
- package/dist/chunks/chunk.BUV5EYAG.js.map +7 -0
- package/dist/chunks/{chunk.YI456JQR.js → chunk.C277SCSZ.js} +3 -3
- package/dist/chunks/{chunk.VSWCHKJF.js → chunk.CCRUEP7M.js} +2 -2
- package/dist/chunks/{chunk.MW6REDDI.js → chunk.CFVULRUC.js} +2 -2
- package/dist/chunks/{chunk.I74P2GKE.js → chunk.CSKJ56S5.js} +2 -2
- package/dist/chunks/{chunk.4RJU3JRS.js → chunk.CWMONTOP.js} +17 -10
- package/dist/chunks/chunk.CWMONTOP.js.map +7 -0
- package/dist/chunks/{chunk.QSOE7FEI.js → chunk.D65PFCEJ.js} +2 -2
- package/dist/chunks/{chunk.35V3TAOT.js → chunk.DFABWKX7.js} +18 -9
- package/dist/chunks/{chunk.35V3TAOT.js.map → chunk.DFABWKX7.js.map} +2 -2
- package/dist/chunks/{chunk.X5PAS7KR.js → chunk.DFEPTCPT.js} +2 -2
- package/dist/chunks/{chunk.TUSYVDNG.js → chunk.DPSKWKTR.js} +3 -3
- package/dist/chunks/chunk.DPSKWKTR.js.map +7 -0
- package/dist/chunks/{chunk.4CJHDWLS.js → chunk.DYN7NMNV.js} +6 -6
- package/dist/chunks/{chunk.COHNCXE2.js → chunk.E6TFQMCA.js} +2 -2
- package/dist/chunks/{chunk.EZNG7BSP.js → chunk.FW23ZE2I.js} +2 -2
- package/dist/chunks/{chunk.QLEW5NYG.js → chunk.GVYAQVL4.js} +2 -2
- package/dist/chunks/{chunk.77OODQEK.js → chunk.H4LGH4RY.js} +2 -2
- package/dist/chunks/{chunk.EQJ6P5VY.js → chunk.HVNSACCH.js} +5 -5
- package/dist/chunks/{chunk.NKAJ7Y5N.js → chunk.I4AFO6WB.js} +3 -3
- package/dist/chunks/{chunk.X7TOECRW.js → chunk.IKOSRIQR.js} +35 -6
- package/dist/chunks/{chunk.X7TOECRW.js.map → chunk.IKOSRIQR.js.map} +2 -2
- package/dist/chunks/{chunk.VIXHTZKQ.js → chunk.IP7J3EFJ.js} +2 -2
- package/dist/chunks/{chunk.DQIDBZ4W.js → chunk.J3FIBO4S.js} +2 -2
- package/dist/chunks/{chunk.MSKJVY76.js → chunk.J472ED7V.js} +2 -2
- package/dist/chunks/{chunk.BJNF6JKR.js → chunk.JI7DAHVB.js} +2 -2
- package/dist/chunks/{chunk.OB4SHXTW.js → chunk.JPFJQ7IC.js} +3 -3
- package/dist/chunks/{chunk.KJUDMZQL.js → chunk.K5HEN4XX.js} +2 -2
- package/dist/chunks/{chunk.OBF3X4XA.js → chunk.KKC6JEDF.js} +3 -3
- package/dist/chunks/{chunk.E2VFBJWM.js → chunk.KTDEUF2L.js} +2 -2
- package/dist/chunks/{chunk.QIXM5QAO.js → chunk.L2HBMWOG.js} +2 -2
- package/dist/chunks/{chunk.CWYEWSU2.js → chunk.LAFRJON3.js} +2 -2
- package/dist/chunks/{chunk.HI6A5JDS.js → chunk.LBKL2XVA.js} +2 -2
- package/dist/chunks/{chunk.FBYKWYEG.js → chunk.LZBVUDEZ.js} +2 -2
- package/dist/chunks/{chunk.XBLOPLSG.js → chunk.MEWILH5R.js} +3 -3
- package/dist/chunks/{chunk.SJGUHYQX.js → chunk.MMZJ2MAB.js} +2 -2
- package/dist/chunks/{chunk.3TN54QCH.js → chunk.MTQS455P.js} +2 -2
- package/dist/chunks/{chunk.F6ZFOBEI.js → chunk.MX2MUOFQ.js} +2 -2
- package/dist/chunks/{chunk.NAKOCW4V.js → chunk.NADHCVOW.js} +2 -2
- package/dist/chunks/{chunk.KG73YUXI.js → chunk.NL3RUWYS.js} +49 -1
- package/dist/chunks/chunk.NL3RUWYS.js.map +7 -0
- package/dist/chunks/{chunk.OM5LY7SW.js → chunk.NQWNOCC5.js} +2 -2
- package/dist/chunks/{chunk.U47W5TZK.js → chunk.OBTXUQOH.js} +3 -3
- package/dist/chunks/chunk.OI3HOOCT.js +13 -0
- package/dist/chunks/chunk.OI3HOOCT.js.map +7 -0
- package/dist/chunks/{chunk.DILF4NTS.js → chunk.OQFKPVKB.js} +2 -2
- package/dist/chunks/{chunk.4GVPZ7MN.js → chunk.PGU7HZCZ.js} +2 -2
- package/dist/chunks/{chunk.JQ47GWDL.js → chunk.PKYC7QF3.js} +6 -1
- package/dist/chunks/chunk.PKYC7QF3.js.map +7 -0
- package/dist/chunks/{chunk.I44TGPKY.js → chunk.PSMTIRVU.js} +5 -5
- package/dist/chunks/{chunk.CYPWCY4S.js → chunk.PWKONDP4.js} +3 -3
- package/dist/chunks/{chunk.TKOSP7ST.js → chunk.QBM6YNBE.js} +2 -2
- package/dist/chunks/{chunk.4WDUIIGW.js → chunk.QHLSATKL.js} +2 -2
- package/dist/chunks/{chunk.UEBFYZL4.js → chunk.QOFJLM7G.js} +6 -6
- package/dist/chunks/{chunk.X4HKLZCI.js → chunk.QSYZGCK6.js} +2 -2
- package/dist/chunks/{chunk.CRUL2A6N.js → chunk.SHMBVU6O.js} +2 -2
- package/dist/chunks/{chunk.OXZU2HKF.js → chunk.SODGQJWE.js} +2 -2
- package/dist/chunks/{chunk.V5EXCYKN.js → chunk.SP5JN45Z.js} +2 -2
- package/dist/chunks/{chunk.ONEE5QZP.js → chunk.SVQQ7D7R.js} +2 -2
- package/dist/chunks/{chunk.SBSWPMEE.js → chunk.TBWOPCIU.js} +2 -2
- package/dist/chunks/{chunk.XF2OGXME.js → chunk.TBXXS5CR.js} +3 -3
- package/dist/chunks/{chunk.SLC6CCXM.js → chunk.TENX6AHR.js} +2 -2
- package/dist/chunks/{chunk.3U3ZKA5L.js → chunk.TWSE2CPF.js} +3 -3
- package/dist/chunks/{chunk.7L7VOBIG.js → chunk.U4D75TJF.js} +5 -5
- package/dist/chunks/{chunk.AIFBZLAG.js → chunk.UA6EAWRH.js} +2 -2
- package/dist/chunks/{chunk.J2OXSQAK.js → chunk.UREJSW6U.js} +9 -8
- package/dist/chunks/{chunk.J2OXSQAK.js.map → chunk.UREJSW6U.js.map} +2 -2
- package/dist/chunks/{chunk.YDKCOIO3.js → chunk.VGWWMT6X.js} +2 -2
- package/dist/chunks/{chunk.BN4M6SXT.js → chunk.WJEFLT2K.js} +3 -3
- package/dist/chunks/{chunk.5JFH3SGK.js → chunk.WNDYFXRT.js} +4 -3
- package/dist/chunks/chunk.WNDYFXRT.js.map +7 -0
- package/dist/chunks/{chunk.W4H4PZKD.js → chunk.X3UJK6BA.js} +5 -5
- package/dist/chunks/{chunk.W4H4PZKD.js.map → chunk.X3UJK6BA.js.map} +2 -2
- package/dist/chunks/{chunk.2UZ6WGD2.js → chunk.X726K7GO.js} +2 -2
- package/dist/chunks/{chunk.NGI67WXT.js → chunk.XOXVVU5C.js} +19 -1
- package/dist/chunks/{chunk.NGI67WXT.js.map → chunk.XOXVVU5C.js.map} +2 -2
- package/dist/chunks/{chunk.U6TFGXE3.js → chunk.XPIZMD2N.js} +3 -3
- package/dist/chunks/{chunk.5LHTTV2Y.js → chunk.XR42LWNN.js} +2 -2
- package/dist/chunks/{chunk.3EFHJEPQ.js → chunk.Y33WE5JP.js} +2 -2
- package/dist/chunks/{chunk.J5LJA64M.js → chunk.YBDLRGEB.js} +3 -3
- package/dist/chunks/{chunk.SNLJCC6L.js → chunk.YRZPHAZZ.js} +2 -2
- package/dist/chunks/{chunk.ID52I6OH.js → chunk.YUQOT4CX.js} +2 -2
- package/dist/chunks/{chunk.EDQUG4GS.js → chunk.ZEB6KOH7.js} +4 -4
- package/dist/chunks/{chunk.ITZIZ4HF.js → chunk.ZO3RFJI7.js} +3 -3
- package/dist/chunks/{chunk.63UP5YZV.js → chunk.ZV4WQBDO.js} +6 -6
- package/dist/chunks/{chunk.ZMXKGMOQ.js → chunk.ZZWRQ5W3.js} +3 -3
- package/dist/components/accordion/accordion.component.js +2 -2
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/alert/alert.component.d.ts +12 -1
- package/dist/components/alert/alert.component.js +5 -5
- package/dist/components/alert/alert.js +6 -6
- package/dist/components/alert/alert.styles.js +1 -1
- 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/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/combobox/combobox.component.js +5 -5
- package/dist/components/combobox/combobox.js +6 -6
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/details/details.component.js +3 -3
- package/dist/components/details/details.js +4 -4
- package/dist/components/dialog/dialog.component.js +4 -4
- package/dist/components/dialog/dialog.js +5 -5
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +4 -4
- package/dist/components/drawer/drawer.js +5 -5
- 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 +4 -4
- package/dist/components/header/header.js +5 -5
- 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 +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 +3 -3
- package/dist/components/option/option.js +4 -4
- 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 +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.d.ts +37 -0
- package/dist/components/resize-observer/resize-observer.component.js +11 -0
- package/dist/components/resize-observer/resize-observer.component.js.map +7 -0
- package/dist/components/resize-observer/resize-observer.styles.d.ts +8 -0
- package/dist/components/resize-observer/resize-observer.styles.js +8 -0
- package/dist/components/resize-observer/resize-observer.styles.js.map +7 -0
- package/dist/components/select/select.component.js +8 -8
- package/dist/components/select/select.js +9 -9
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/side-nav/side-nav.component.js +6 -6
- package/dist/components/side-nav/side-nav.js +7 -7
- 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 +4 -4
- package/dist/components/tab/tab.js +5 -5
- package/dist/components/tab-group/tab-group.component.d.ts +15 -0
- package/dist/components/tab-group/tab-group.component.js +8 -6
- package/dist/components/tab-group/tab-group.custom.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +9 -7
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tag/tag.component.js +5 -5
- package/dist/components/tag/tag.js +6 -6
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +4 -4
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/custom-elements.json +300 -81
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-after-hide.d.ts +3 -0
- package/dist/events/syn-after-show.d.ts +3 -0
- package/dist/events/syn-blur.d.ts +3 -0
- package/dist/events/syn-change.d.ts +3 -0
- package/dist/events/syn-clear.d.ts +3 -0
- package/dist/events/syn-close.d.ts +3 -0
- package/dist/events/syn-error.d.ts +3 -0
- package/dist/events/syn-focus.d.ts +3 -0
- package/dist/events/syn-hide.d.ts +3 -0
- package/dist/events/syn-initial-focus.d.ts +3 -0
- package/dist/events/syn-input.d.ts +3 -0
- package/dist/events/syn-invalid.d.ts +3 -0
- package/dist/events/syn-load.d.ts +3 -0
- package/dist/events/syn-remove.d.ts +3 -0
- package/dist/events/syn-reposition.d.ts +3 -0
- package/dist/events/syn-request-close.d.ts +3 -0
- package/dist/events/syn-resize.d.ts +17 -0
- package/dist/events/syn-select.d.ts +3 -0
- package/dist/events/syn-show.d.ts +3 -0
- package/dist/events/syn-tab-hide.d.ts +3 -0
- package/dist/events/syn-tab-show.d.ts +3 -0
- package/dist/internal/scrollend-polyfill.d.ts +7 -0
- package/dist/internal/synergy-element.d.ts +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +107 -105
- package/dist/vscode.html-custom-data.json +45 -23
- package/package.json +21 -21
- package/dist/chunks/chunk.4RJU3JRS.js.map +0 -7
- package/dist/chunks/chunk.5JFH3SGK.js.map +0 -7
- package/dist/chunks/chunk.FUJKCUQU.js.map +0 -7
- package/dist/chunks/chunk.JQ47GWDL.js.map +0 -7
- package/dist/chunks/chunk.KG73YUXI.js.map +0 -7
- package/dist/chunks/chunk.MUNBPFME.js.map +0 -7
- package/dist/chunks/chunk.TUSYVDNG.js.map +0 -7
- package/dist/chunks/chunk.W4AB6YT6.js.map +0 -7
- /package/dist/chunks/{chunk.LNY6YUO6.js.map → chunk.22GTODGK.js.map} +0 -0
- /package/dist/chunks/{chunk.65L6WCR6.js.map → chunk.2QWFZFFH.js.map} +0 -0
- /package/dist/chunks/{chunk.OBS3SYSN.js.map → chunk.2TICTVUA.js.map} +0 -0
- /package/dist/chunks/{chunk.RJA3VP67.js.map → chunk.3EBU2LXD.js.map} +0 -0
- /package/dist/chunks/{chunk.KSCSAGWO.js.map → chunk.3F7LLZWJ.js.map} +0 -0
- /package/dist/chunks/{chunk.JMZQTN66.js.map → chunk.3UEIMTUM.js.map} +0 -0
- /package/dist/chunks/{chunk.X7OQSEX2.js.map → chunk.3XQJFQD3.js.map} +0 -0
- /package/dist/chunks/{chunk.SZT7XVV5.js.map → chunk.52456FY5.js.map} +0 -0
- /package/dist/chunks/{chunk.WVHXHIV3.js.map → chunk.53SVGYMQ.js.map} +0 -0
- /package/dist/chunks/{chunk.G23DQN3P.js.map → chunk.57BMEZH4.js.map} +0 -0
- /package/dist/chunks/{chunk.C3RIFO4H.js.map → chunk.5F7BRK2T.js.map} +0 -0
- /package/dist/chunks/{chunk.ANZWKSQQ.js.map → chunk.5FHT5R4H.js.map} +0 -0
- /package/dist/chunks/{chunk.4GYVNNIY.js.map → chunk.6APBFAPL.js.map} +0 -0
- /package/dist/chunks/{chunk.LBKAFXWM.js.map → chunk.6HOOQIDR.js.map} +0 -0
- /package/dist/chunks/{chunk.ZD4S3T2U.js.map → chunk.6QQOPHCI.js.map} +0 -0
- /package/dist/chunks/{chunk.BSZ6RFHE.js.map → chunk.6S2HTHLG.js.map} +0 -0
- /package/dist/chunks/{chunk.55WMAVZI.js.map → chunk.6ZJ4P2CQ.js.map} +0 -0
- /package/dist/chunks/{chunk.EBQLSITZ.js.map → chunk.AIA6FPT5.js.map} +0 -0
- /package/dist/chunks/{chunk.YI56F4S6.js.map → chunk.AYGERGTM.js.map} +0 -0
- /package/dist/chunks/{chunk.Z4LBSDQQ.js.map → chunk.BNHWEIFH.js.map} +0 -0
- /package/dist/chunks/{chunk.YI456JQR.js.map → chunk.C277SCSZ.js.map} +0 -0
- /package/dist/chunks/{chunk.VSWCHKJF.js.map → chunk.CCRUEP7M.js.map} +0 -0
- /package/dist/chunks/{chunk.MW6REDDI.js.map → chunk.CFVULRUC.js.map} +0 -0
- /package/dist/chunks/{chunk.I74P2GKE.js.map → chunk.CSKJ56S5.js.map} +0 -0
- /package/dist/chunks/{chunk.QSOE7FEI.js.map → chunk.D65PFCEJ.js.map} +0 -0
- /package/dist/chunks/{chunk.X5PAS7KR.js.map → chunk.DFEPTCPT.js.map} +0 -0
- /package/dist/chunks/{chunk.4CJHDWLS.js.map → chunk.DYN7NMNV.js.map} +0 -0
- /package/dist/chunks/{chunk.COHNCXE2.js.map → chunk.E6TFQMCA.js.map} +0 -0
- /package/dist/chunks/{chunk.EZNG7BSP.js.map → chunk.FW23ZE2I.js.map} +0 -0
- /package/dist/chunks/{chunk.QLEW5NYG.js.map → chunk.GVYAQVL4.js.map} +0 -0
- /package/dist/chunks/{chunk.77OODQEK.js.map → chunk.H4LGH4RY.js.map} +0 -0
- /package/dist/chunks/{chunk.EQJ6P5VY.js.map → chunk.HVNSACCH.js.map} +0 -0
- /package/dist/chunks/{chunk.NKAJ7Y5N.js.map → chunk.I4AFO6WB.js.map} +0 -0
- /package/dist/chunks/{chunk.VIXHTZKQ.js.map → chunk.IP7J3EFJ.js.map} +0 -0
- /package/dist/chunks/{chunk.DQIDBZ4W.js.map → chunk.J3FIBO4S.js.map} +0 -0
- /package/dist/chunks/{chunk.MSKJVY76.js.map → chunk.J472ED7V.js.map} +0 -0
- /package/dist/chunks/{chunk.BJNF6JKR.js.map → chunk.JI7DAHVB.js.map} +0 -0
- /package/dist/chunks/{chunk.OB4SHXTW.js.map → chunk.JPFJQ7IC.js.map} +0 -0
- /package/dist/chunks/{chunk.KJUDMZQL.js.map → chunk.K5HEN4XX.js.map} +0 -0
- /package/dist/chunks/{chunk.OBF3X4XA.js.map → chunk.KKC6JEDF.js.map} +0 -0
- /package/dist/chunks/{chunk.E2VFBJWM.js.map → chunk.KTDEUF2L.js.map} +0 -0
- /package/dist/chunks/{chunk.QIXM5QAO.js.map → chunk.L2HBMWOG.js.map} +0 -0
- /package/dist/chunks/{chunk.CWYEWSU2.js.map → chunk.LAFRJON3.js.map} +0 -0
- /package/dist/chunks/{chunk.HI6A5JDS.js.map → chunk.LBKL2XVA.js.map} +0 -0
- /package/dist/chunks/{chunk.FBYKWYEG.js.map → chunk.LZBVUDEZ.js.map} +0 -0
- /package/dist/chunks/{chunk.XBLOPLSG.js.map → chunk.MEWILH5R.js.map} +0 -0
- /package/dist/chunks/{chunk.SJGUHYQX.js.map → chunk.MMZJ2MAB.js.map} +0 -0
- /package/dist/chunks/{chunk.3TN54QCH.js.map → chunk.MTQS455P.js.map} +0 -0
- /package/dist/chunks/{chunk.F6ZFOBEI.js.map → chunk.MX2MUOFQ.js.map} +0 -0
- /package/dist/chunks/{chunk.NAKOCW4V.js.map → chunk.NADHCVOW.js.map} +0 -0
- /package/dist/chunks/{chunk.OM5LY7SW.js.map → chunk.NQWNOCC5.js.map} +0 -0
- /package/dist/chunks/{chunk.U47W5TZK.js.map → chunk.OBTXUQOH.js.map} +0 -0
- /package/dist/chunks/{chunk.DILF4NTS.js.map → chunk.OQFKPVKB.js.map} +0 -0
- /package/dist/chunks/{chunk.4GVPZ7MN.js.map → chunk.PGU7HZCZ.js.map} +0 -0
- /package/dist/chunks/{chunk.I44TGPKY.js.map → chunk.PSMTIRVU.js.map} +0 -0
- /package/dist/chunks/{chunk.CYPWCY4S.js.map → chunk.PWKONDP4.js.map} +0 -0
- /package/dist/chunks/{chunk.TKOSP7ST.js.map → chunk.QBM6YNBE.js.map} +0 -0
- /package/dist/chunks/{chunk.4WDUIIGW.js.map → chunk.QHLSATKL.js.map} +0 -0
- /package/dist/chunks/{chunk.UEBFYZL4.js.map → chunk.QOFJLM7G.js.map} +0 -0
- /package/dist/chunks/{chunk.X4HKLZCI.js.map → chunk.QSYZGCK6.js.map} +0 -0
- /package/dist/chunks/{chunk.CRUL2A6N.js.map → chunk.SHMBVU6O.js.map} +0 -0
- /package/dist/chunks/{chunk.OXZU2HKF.js.map → chunk.SODGQJWE.js.map} +0 -0
- /package/dist/chunks/{chunk.V5EXCYKN.js.map → chunk.SP5JN45Z.js.map} +0 -0
- /package/dist/chunks/{chunk.ONEE5QZP.js.map → chunk.SVQQ7D7R.js.map} +0 -0
- /package/dist/chunks/{chunk.SBSWPMEE.js.map → chunk.TBWOPCIU.js.map} +0 -0
- /package/dist/chunks/{chunk.XF2OGXME.js.map → chunk.TBXXS5CR.js.map} +0 -0
- /package/dist/chunks/{chunk.SLC6CCXM.js.map → chunk.TENX6AHR.js.map} +0 -0
- /package/dist/chunks/{chunk.3U3ZKA5L.js.map → chunk.TWSE2CPF.js.map} +0 -0
- /package/dist/chunks/{chunk.7L7VOBIG.js.map → chunk.U4D75TJF.js.map} +0 -0
- /package/dist/chunks/{chunk.AIFBZLAG.js.map → chunk.UA6EAWRH.js.map} +0 -0
- /package/dist/chunks/{chunk.YDKCOIO3.js.map → chunk.VGWWMT6X.js.map} +0 -0
- /package/dist/chunks/{chunk.BN4M6SXT.js.map → chunk.WJEFLT2K.js.map} +0 -0
- /package/dist/chunks/{chunk.2UZ6WGD2.js.map → chunk.X726K7GO.js.map} +0 -0
- /package/dist/chunks/{chunk.U6TFGXE3.js.map → chunk.XPIZMD2N.js.map} +0 -0
- /package/dist/chunks/{chunk.5LHTTV2Y.js.map → chunk.XR42LWNN.js.map} +0 -0
- /package/dist/chunks/{chunk.3EFHJEPQ.js.map → chunk.Y33WE5JP.js.map} +0 -0
- /package/dist/chunks/{chunk.J5LJA64M.js.map → chunk.YBDLRGEB.js.map} +0 -0
- /package/dist/chunks/{chunk.SNLJCC6L.js.map → chunk.YRZPHAZZ.js.map} +0 -0
- /package/dist/chunks/{chunk.ID52I6OH.js.map → chunk.YUQOT4CX.js.map} +0 -0
- /package/dist/chunks/{chunk.EDQUG4GS.js.map → chunk.ZEB6KOH7.js.map} +0 -0
- /package/dist/chunks/{chunk.ITZIZ4HF.js.map → chunk.ZO3RFJI7.js.map} +0 -0
- /package/dist/chunks/{chunk.63UP5YZV.js.map → chunk.ZV4WQBDO.js.map} +0 -0
- /package/dist/chunks/{chunk.ZMXKGMOQ.js.map → chunk.ZZWRQ5W3.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynHeader
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.I4AFO6WB.js";
|
|
4
4
|
|
|
5
5
|
// src/components/header/header.ts
|
|
6
6
|
var header_default = SynHeader;
|
|
@@ -9,4 +9,4 @@ SynHeader.define("syn-header");
|
|
|
9
9
|
export {
|
|
10
10
|
header_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.22GTODGK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTabPanel
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.UA6EAWRH.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tab-panel/tab-panel.ts
|
|
6
6
|
var tab_panel_default = SynTabPanel;
|
|
@@ -9,4 +9,4 @@ SynTabPanel.define("syn-tab-panel");
|
|
|
9
9
|
export {
|
|
10
10
|
tab_panel_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.2QWFZFFH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAlert
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.A3PJVQKK.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.2TICTVUA.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.IKOSRIQR.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
16
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -53,4 +53,4 @@ __decorateClass([
|
|
|
53
53
|
export {
|
|
54
54
|
SynCard
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk.
|
|
56
|
+
//# sourceMappingURL=chunk.3EBU2LXD.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.3B24TYVN.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.562KEWJB.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.GIU3H3J3.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement,
|
|
18
18
|
component_styles_default
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.IKOSRIQR.js";
|
|
20
20
|
import {
|
|
21
21
|
__decorateClass
|
|
22
22
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -144,4 +144,4 @@ __decorateClass([
|
|
|
144
144
|
export {
|
|
145
145
|
SynOption
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk.
|
|
147
|
+
//# sourceMappingURL=chunk.3F7LLZWJ.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.IKOSRIQR.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
16
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -41,4 +41,4 @@ __decorateClass([
|
|
|
41
41
|
export {
|
|
42
42
|
SynDivider
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=chunk.
|
|
44
|
+
//# sourceMappingURL=chunk.3UEIMTUM.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk.FKKJBKYL.js";
|
|
11
11
|
import {
|
|
12
12
|
SynButton
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.X3UJK6BA.js";
|
|
14
14
|
import {
|
|
15
15
|
FormControlController
|
|
16
16
|
} from "./chunk.BBNQVEPD.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk.WVVQK5TE.js";
|
|
27
27
|
import {
|
|
28
28
|
SynIcon
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.562KEWJB.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
32
|
} from "./chunk.GIU3H3J3.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
SynergyElement,
|
|
38
38
|
component_styles_default
|
|
39
|
-
} from "./chunk.
|
|
39
|
+
} from "./chunk.IKOSRIQR.js";
|
|
40
40
|
import {
|
|
41
41
|
__decorateClass
|
|
42
42
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -526,4 +526,4 @@ setDefaultAnimation("file.text.appear", {
|
|
|
526
526
|
export {
|
|
527
527
|
SynFile
|
|
528
528
|
};
|
|
529
|
-
//# sourceMappingURL=chunk.
|
|
529
|
+
//# sourceMappingURL=chunk.3XQJFQD3.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.ONW45GQI.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.3UEIMTUM.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDrawer
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WJEFLT2K.js";
|
|
10
10
|
import {
|
|
11
11
|
unlockBodyScrolling
|
|
12
12
|
} from "./chunk.5732DMBC.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
SynergyElement,
|
|
32
32
|
component_styles_default
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.IKOSRIQR.js";
|
|
34
34
|
import {
|
|
35
35
|
__decorateClass
|
|
36
36
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -308,4 +308,4 @@ setDefaultAnimation("sideNav.overlay.hide", {
|
|
|
308
308
|
export {
|
|
309
309
|
SynSideNav
|
|
310
310
|
};
|
|
311
|
-
//# sourceMappingURL=chunk.
|
|
311
|
+
//# sourceMappingURL=chunk.52456FY5.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
tooltip_styles_default
|
|
3
|
-
} from "./chunk.O644HRW3.js";
|
|
4
1
|
import {
|
|
5
2
|
tooltip_custom_styles_default
|
|
6
3
|
} from "./chunk.4X3HY2V5.js";
|
|
4
|
+
import {
|
|
5
|
+
tooltip_styles_default
|
|
6
|
+
} from "./chunk.O644HRW3.js";
|
|
7
7
|
import {
|
|
8
8
|
SynPopup
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.DPSKWKTR.js";
|
|
10
10
|
import {
|
|
11
11
|
waitForEvent
|
|
12
12
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
SynergyElement,
|
|
30
30
|
component_styles_default
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.IKOSRIQR.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass
|
|
34
34
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -272,4 +272,4 @@ setDefaultAnimation("tooltip.hide", {
|
|
|
272
272
|
export {
|
|
273
273
|
SynTooltip
|
|
274
274
|
};
|
|
275
|
-
//# sourceMappingURL=chunk.
|
|
275
|
+
//# sourceMappingURL=chunk.53SVGYMQ.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
SynergyElement,
|
|
17
17
|
component_styles_default
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.IKOSRIQR.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -44,11 +44,6 @@ var SynIcon = class extends SynergyElement {
|
|
|
44
44
|
this.svg = html`<svg part="svg">
|
|
45
45
|
<use part="use" href="${url}"></use>
|
|
46
46
|
</svg>`;
|
|
47
|
-
await this.updateComplete;
|
|
48
|
-
const svg = this.shadowRoot.querySelector("[part='svg']");
|
|
49
|
-
if (typeof library.mutator === "function") {
|
|
50
|
-
library.mutator(svg);
|
|
51
|
-
}
|
|
52
47
|
return this.svg;
|
|
53
48
|
}
|
|
54
49
|
try {
|
|
@@ -134,6 +129,13 @@ var SynIcon = class extends SynergyElement {
|
|
|
134
129
|
}
|
|
135
130
|
if (isTemplateResult(svg)) {
|
|
136
131
|
this.svg = svg;
|
|
132
|
+
if (library) {
|
|
133
|
+
await this.updateComplete;
|
|
134
|
+
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
135
|
+
if (typeof library.mutator === "function" && shadowSVG) {
|
|
136
|
+
library.mutator(shadowSVG);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
137
139
|
return;
|
|
138
140
|
}
|
|
139
141
|
switch (svg) {
|
|
@@ -178,4 +180,4 @@ __decorateClass([
|
|
|
178
180
|
export {
|
|
179
181
|
SynIcon
|
|
180
182
|
};
|
|
181
|
-
//# sourceMappingURL=chunk.
|
|
183
|
+
//# sourceMappingURL=chunk.562KEWJB.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/icon/icon.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { getIconLibrary, type IconLibrary, unwatchIcon, watchIcon } from './library.js';\nimport { html } from 'lit';\nimport { isTemplateResult } from 'lit/directive-helpers.js';\nimport { property, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './icon.styles.js';\nimport customStyles from './icon.custom.styles.js';\nimport type { CSSResultGroup, HTMLTemplateResult } from 'lit';\n\nconst CACHEABLE_ERROR = Symbol();\nconst RETRYABLE_ERROR = Symbol();\ntype SVGResult = HTMLTemplateResult | SVGSVGElement | typeof RETRYABLE_ERROR | typeof CACHEABLE_ERROR;\n\nlet parser: DOMParser;\nconst iconCache = new Map<string, Promise<SVGResult>>();\n\ninterface IconSource {\n url?: string;\n fromLibrary: boolean;\n}\n\n/**\n * @summary Icons are symbols that can be used to represent various options within an application.\n * @documentation https://synergy.style/components/icon\n * @status stable\n * @since 2.0\n *\n * @event syn-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.\n * @event syn-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.\n *\n * @csspart svg - The internal SVG element.\n * @csspart use - The <use> element generated when using `spriteSheet: true`\n */\nexport default class SynIcon extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private initialRender = false;\n\n /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */\n private async resolveIcon(url: string, library?: IconLibrary): Promise<SVGResult> {\n let fileData: Response;\n\n if (library?.spriteSheet) {\n this.svg = html`<svg part=\"svg\">\n <use part=\"use\" href=\"${url}\"></use>\n </svg>`;\n\n return this.svg;\n }\n\n try {\n fileData = await fetch(url, { mode: 'cors' });\n if (!fileData.ok) return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;\n } catch {\n return RETRYABLE_ERROR;\n }\n\n try {\n const div = document.createElement('div');\n div.innerHTML = await fileData.text();\n\n const svg = div.firstElementChild;\n if (svg?.tagName?.toLowerCase() !== 'svg') return CACHEABLE_ERROR;\n\n if (!parser) parser = new DOMParser();\n const doc = parser.parseFromString(svg.outerHTML, 'text/html');\n\n const svgEl = doc.body.querySelector('svg');\n if (!svgEl) return CACHEABLE_ERROR;\n\n svgEl.part.add('svg');\n return document.adoptNode(svgEl);\n } catch {\n return CACHEABLE_ERROR;\n }\n }\n\n @state() private svg: SVGElement | HTMLTemplateResult | null = null;\n\n /** The name of the icon to draw. Available names depend on the icon library being used. */\n @property({ reflect: true }) name?: string;\n\n /**\n * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\n * can result in XSS attacks.\n */\n @property() src?: string;\n\n /**\n * An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and\n * ignored by assistive devices.\n */\n @property() label = '';\n\n /** The name of a registered custom icon library. */\n @property({ reflect: true }) library = 'default';\n\n connectedCallback() {\n super.connectedCallback();\n watchIcon(this);\n }\n\n firstUpdated() {\n this.initialRender = true;\n this.setIcon();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n unwatchIcon(this);\n }\n\n private getIconSource(): IconSource {\n const library = getIconLibrary(this.library);\n if (this.name && library) {\n return {\n url: library.resolver(this.name),\n fromLibrary: true\n };\n }\n\n return {\n url: this.src,\n fromLibrary: false\n };\n }\n\n @watch('label')\n handleLabelChange() {\n const hasLabel = typeof this.label === 'string' && this.label.length > 0;\n\n if (hasLabel) {\n this.setAttribute('role', 'img');\n this.setAttribute('aria-label', this.label);\n this.removeAttribute('aria-hidden');\n } else {\n this.removeAttribute('role');\n this.removeAttribute('aria-label');\n this.setAttribute('aria-hidden', 'true');\n }\n }\n\n @watch(['name', 'src', 'library'])\n async setIcon() {\n const { url, fromLibrary } = this.getIconSource();\n const library = fromLibrary ? getIconLibrary(this.library) : undefined;\n\n if (!url) {\n this.svg = null;\n return;\n }\n\n let iconResolver = iconCache.get(url);\n if (!iconResolver) {\n iconResolver = this.resolveIcon(url, library);\n iconCache.set(url, iconResolver);\n }\n\n // If we haven't rendered yet, exit early. This avoids unnecessary work due to watching multiple props.\n if (!this.initialRender) {\n return;\n }\n\n const svg = await iconResolver;\n\n if (svg === RETRYABLE_ERROR) {\n iconCache.delete(url);\n }\n\n if (url !== this.getIconSource().url) {\n // If the url has changed while fetching the icon, ignore this request\n return;\n }\n\n if (isTemplateResult(svg)) {\n this.svg = svg;\n\n if (library) {\n // Using a templateResult requires the SVG to be written to the DOM first before we can grab the SVGElement\n // to be passed to the library's mutator function.\n await this.updateComplete;\n\n const shadowSVG = this.shadowRoot!.querySelector(\"[part='svg']\")!;\n\n if (typeof library.mutator === 'function' && shadowSVG) {\n library.mutator(shadowSVG as SVGElement);\n }\n }\n\n return;\n }\n\n switch (svg) {\n case RETRYABLE_ERROR:\n case CACHEABLE_ERROR:\n this.svg = null;\n this.emit('syn-error');\n break;\n default:\n this.svg = svg.cloneNode(true) as SVGElement;\n library?.mutator?.(this.svg);\n this.emit('syn-load');\n }\n }\n\n render() {\n return this.svg;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,UAAU,aAAa;AAQhC,IAAM,kBAAkB,OAAO;AAC/B,IAAM,kBAAkB,OAAO;AAG/B,IAAI;AACJ,IAAM,YAAY,oBAAI,IAAgC;AAmBtD,IAAqB,UAArB,cAAqC,eAAe;AAAA,EAApD;AAAA;AAGE,SAAQ,gBAAgB;AAyCf,SAAQ,MAA8C;AAenD,iBAAQ;AAGS,mBAAU;AAAA;AAAA;AAAA,EAxDvC,MAAc,YAAY,KAAa,SAA2C;AAjDpF;AAkDI,QAAI;AAEJ,QAAI,mCAAS,aAAa;AACxB,WAAK,MAAM;AAAA,gCACe,GAAG;AAAA;AAG7B,aAAO,KAAK;AAAA,IACd;AAEA,QAAI;AACF,iBAAW,MAAM,MAAM,KAAK,EAAE,MAAM,OAAO,CAAC;AAC5C,UAAI,CAAC,SAAS,GAAI,QAAO,SAAS,WAAW,MAAM,kBAAkB;AAAA,IACvE,SAAQ;AACN,aAAO;AAAA,IACT;AAEA,QAAI;AACF,YAAM,MAAM,SAAS,cAAc,KAAK;AACxC,UAAI,YAAY,MAAM,SAAS,KAAK;AAEpC,YAAM,MAAM,IAAI;AAChB,YAAI,gCAAK,YAAL,mBAAc,mBAAkB,MAAO,QAAO;AAElD,UAAI,CAAC,OAAQ,UAAS,IAAI,UAAU;AACpC,YAAM,MAAM,OAAO,gBAAgB,IAAI,WAAW,WAAW;AAE7D,YAAM,QAAQ,IAAI,KAAK,cAAc,KAAK;AAC1C,UAAI,CAAC,MAAO,QAAO;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6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.L2HBMWOG.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.57BMEZH4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTextarea
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.WNDYFXRT.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.5F7BRK2T.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
SynergyElement,
|
|
9
9
|
component_styles_default
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.IKOSRIQR.js";
|
|
11
11
|
import {
|
|
12
12
|
__decorateClass
|
|
13
13
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -103,4 +103,4 @@ __decorateClass([
|
|
|
103
103
|
export {
|
|
104
104
|
SynAccordion
|
|
105
105
|
};
|
|
106
|
-
//# sourceMappingURL=chunk.
|
|
106
|
+
//# sourceMappingURL=chunk.5FHT5R4H.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk.RAOPZXJL.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDivider
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3UEIMTUM.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.IKOSRIQR.js";
|
|
14
14
|
|
|
15
15
|
// src/components/menu-label/menu-label.component.ts
|
|
16
16
|
import { html } from "lit";
|
|
@@ -32,4 +32,4 @@ SynMenuLabel.dependencies = {
|
|
|
32
32
|
export {
|
|
33
33
|
SynMenuLabel
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=chunk.
|
|
35
|
+
//# sourceMappingURL=chunk.6APBFAPL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDrawer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.WJEFLT2K.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.6HOOQIDR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSpinner
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.JI7DAHVB.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.6QQOPHCI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSelect
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.QOFJLM7G.js";
|
|
4
4
|
|
|
5
5
|
// src/components/select/select.ts
|
|
6
6
|
var select_default = SynSelect;
|
|
@@ -9,4 +9,4 @@ SynSelect.define("syn-select");
|
|
|
9
9
|
export {
|
|
10
10
|
select_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.6S2HTHLG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDetails
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ZZWRQ5W3.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.6ZJ4P2CQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIconButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OBTXUQOH.js";
|
|
4
4
|
import {
|
|
5
5
|
waitForEvent
|
|
6
6
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
SynergyElement,
|
|
26
26
|
component_styles_default
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.IKOSRIQR.js";
|
|
28
28
|
import {
|
|
29
29
|
alert_custom_styles_default
|
|
30
30
|
} from "./chunk.JRYXECAY.js";
|
|
31
31
|
import {
|
|
32
32
|
alert_styles_default
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.NL3RUWYS.js";
|
|
34
34
|
import {
|
|
35
35
|
__decorateClass
|
|
36
36
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
// src/components/alert/alert.component.ts
|
|
39
39
|
import { classMap } from "lit/directives/class-map.js";
|
|
40
40
|
import { html } from "lit";
|
|
41
|
-
import { property, query } from "lit/decorators.js";
|
|
41
|
+
import { property, query, state } from "lit/decorators.js";
|
|
42
42
|
var toastStack = Object.assign(document.createElement("div"), { className: "syn-toast-stack" });
|
|
43
43
|
var SynAlert = class extends SynergyElement {
|
|
44
44
|
constructor() {
|
|
@@ -49,22 +49,53 @@ var SynAlert = class extends SynergyElement {
|
|
|
49
49
|
this.closable = false;
|
|
50
50
|
this.variant = "primary";
|
|
51
51
|
this.duration = Infinity;
|
|
52
|
+
this.remainingTime = this.duration;
|
|
52
53
|
}
|
|
53
54
|
firstUpdated() {
|
|
54
55
|
this.base.hidden = !this.open;
|
|
55
56
|
}
|
|
56
57
|
restartAutoHide() {
|
|
58
|
+
this.handleCountdownChange();
|
|
57
59
|
clearTimeout(this.autoHideTimeout);
|
|
60
|
+
clearInterval(this.remainingTimeInterval);
|
|
58
61
|
if (this.open && this.duration < Infinity) {
|
|
59
62
|
this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);
|
|
63
|
+
this.remainingTime = this.duration;
|
|
64
|
+
this.remainingTimeInterval = window.setInterval(() => {
|
|
65
|
+
this.remainingTime -= 100;
|
|
66
|
+
}, 100);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
pauseAutoHide() {
|
|
70
|
+
var _a;
|
|
71
|
+
(_a = this.countdownAnimation) == null ? void 0 : _a.pause();
|
|
72
|
+
clearTimeout(this.autoHideTimeout);
|
|
73
|
+
clearInterval(this.remainingTimeInterval);
|
|
74
|
+
}
|
|
75
|
+
resumeAutoHide() {
|
|
76
|
+
var _a;
|
|
77
|
+
if (this.duration < Infinity) {
|
|
78
|
+
this.autoHideTimeout = window.setTimeout(() => this.hide(), this.remainingTime);
|
|
79
|
+
this.remainingTimeInterval = window.setInterval(() => {
|
|
80
|
+
this.remainingTime -= 100;
|
|
81
|
+
}, 100);
|
|
82
|
+
(_a = this.countdownAnimation) == null ? void 0 : _a.play();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
handleCountdownChange() {
|
|
86
|
+
if (this.open && this.duration < Infinity && this.countdown) {
|
|
87
|
+
const { countdownElement } = this;
|
|
88
|
+
const start = "100%";
|
|
89
|
+
const end = "0";
|
|
90
|
+
this.countdownAnimation = countdownElement.animate([{ width: start }, { width: end }], {
|
|
91
|
+
duration: this.duration,
|
|
92
|
+
easing: "linear"
|
|
93
|
+
});
|
|
60
94
|
}
|
|
61
95
|
}
|
|
62
96
|
handleCloseClick() {
|
|
63
97
|
this.hide();
|
|
64
98
|
}
|
|
65
|
-
handleMouseMove() {
|
|
66
|
-
this.restartAutoHide();
|
|
67
|
-
}
|
|
68
99
|
async handleOpenChange() {
|
|
69
100
|
if (this.open) {
|
|
70
101
|
this.emit("syn-show");
|
|
@@ -79,6 +110,7 @@ var SynAlert = class extends SynergyElement {
|
|
|
79
110
|
} else {
|
|
80
111
|
this.emit("syn-hide");
|
|
81
112
|
clearTimeout(this.autoHideTimeout);
|
|
113
|
+
clearInterval(this.remainingTimeInterval);
|
|
82
114
|
await stopAnimations(this.base);
|
|
83
115
|
const { keyframes, options } = getAnimation(this, "alert.hide", { dir: this.localize.dir() });
|
|
84
116
|
await animateTo(this.base, keyframes, options);
|
|
@@ -112,6 +144,7 @@ var SynAlert = class extends SynergyElement {
|
|
|
112
144
|
*/
|
|
113
145
|
async toast() {
|
|
114
146
|
return new Promise((resolve) => {
|
|
147
|
+
this.handleCountdownChange();
|
|
115
148
|
if (toastStack.parentElement === null) {
|
|
116
149
|
document.body.append(toastStack);
|
|
117
150
|
}
|
|
@@ -150,7 +183,8 @@ var SynAlert = class extends SynergyElement {
|
|
|
150
183
|
})}
|
|
151
184
|
role="alert"
|
|
152
185
|
aria-hidden=${this.open ? "false" : "true"}
|
|
153
|
-
@
|
|
186
|
+
@mouseenter=${this.pauseAutoHide}
|
|
187
|
+
@mouseleave=${this.resumeAutoHide}
|
|
154
188
|
>
|
|
155
189
|
<div part="icon" class="alert__icon">
|
|
156
190
|
<slot name="icon"></slot>
|
|
@@ -171,6 +205,19 @@ var SynAlert = class extends SynergyElement {
|
|
|
171
205
|
@click=${this.handleCloseClick}
|
|
172
206
|
></syn-icon-button>
|
|
173
207
|
` : ""}
|
|
208
|
+
|
|
209
|
+
<div role="timer" class="alert__timer">${this.remainingTime}</div>
|
|
210
|
+
|
|
211
|
+
${this.countdown ? html`
|
|
212
|
+
<div
|
|
213
|
+
class=${classMap({
|
|
214
|
+
alert__countdown: true,
|
|
215
|
+
"alert__countdown--ltr": this.countdown === "ltr"
|
|
216
|
+
})}
|
|
217
|
+
>
|
|
218
|
+
<div class="alert__countdown-elapsed"></div>
|
|
219
|
+
</div>
|
|
220
|
+
` : ""}
|
|
174
221
|
</div>
|
|
175
222
|
`;
|
|
176
223
|
}
|
|
@@ -180,6 +227,9 @@ SynAlert.dependencies = { "syn-icon-button": SynIconButton };
|
|
|
180
227
|
__decorateClass([
|
|
181
228
|
query('[part~="base"]')
|
|
182
229
|
], SynAlert.prototype, "base", 2);
|
|
230
|
+
__decorateClass([
|
|
231
|
+
query(".alert__countdown-elapsed")
|
|
232
|
+
], SynAlert.prototype, "countdownElement", 2);
|
|
183
233
|
__decorateClass([
|
|
184
234
|
property({ type: Boolean, reflect: true })
|
|
185
235
|
], SynAlert.prototype, "open", 2);
|
|
@@ -192,6 +242,9 @@ __decorateClass([
|
|
|
192
242
|
__decorateClass([
|
|
193
243
|
property({ type: Number })
|
|
194
244
|
], SynAlert.prototype, "duration", 2);
|
|
245
|
+
__decorateClass([
|
|
246
|
+
state()
|
|
247
|
+
], SynAlert.prototype, "remainingTime", 2);
|
|
195
248
|
__decorateClass([
|
|
196
249
|
watch("open", { waitUntilFirstUpdate: true })
|
|
197
250
|
], SynAlert.prototype, "handleOpenChange", 1);
|
|
@@ -216,4 +269,4 @@ setDefaultAnimation("alert.hide", {
|
|
|
216
269
|
export {
|
|
217
270
|
SynAlert
|
|
218
271
|
};
|
|
219
|
-
//# sourceMappingURL=chunk.
|
|
272
|
+
//# sourceMappingURL=chunk.A3PJVQKK.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/alert/alert.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 { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './alert.styles.js';\nimport customStyles from './alert.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nconst toastStack = Object.assign(document.createElement('div'), { className: 'syn-toast-stack' });\n\n/**\n * @summary Alerts are used to display important messages inline or as toast notifications.\n * @documentation https://synergy.style/components/alert\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The alert's main content.\n * @slot icon - An icon to show in the alert. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the alert opens.\n * @event syn-after-show - Emitted after the alert opens and all animations are complete.\n * @event syn-hide - Emitted when the alert closes.\n * @event syn-after-hide - Emitted after the alert closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The container that wraps the optional icon.\n * @csspart message - The container that wraps the alert's main content.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n *\n * @animation alert.show - The animation to use when showing the alert.\n * @animation alert.hide - The animation to use when hiding the alert.\n */\nexport default class SynAlert extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private autoHideTimeout: number;\n private remainingTimeInterval: number;\n private countdownAnimation?: Animation;\n private readonly hasSlotController = new HasSlotController(this, 'icon', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('[part~=\"base\"]') base: HTMLElement;\n\n @query('.alert__countdown-elapsed') countdownElement: HTMLElement;\n\n /**\n * Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the alert's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Enables a close button that allows the user to dismiss the alert. */\n @property({ type: Boolean, reflect: true }) closable = false;\n\n /** The alert's theme variant. */\n @property({ reflect: true }) variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with\n * the alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning\n * the alert will not close on its own.\n */\n @property({ type: Number }) duration = Infinity;\n\n /**\n * Enables a countdown that indicates the remaining time the alert will be displayed.\n * Typically used to indicate the remaining time before a whole app refresh.\n */\n private countdown? : 'rtl' | 'ltr';\n\n @state() private remainingTime = this.duration;\n\n firstUpdated() {\n this.base.hidden = !this.open;\n }\n\n private restartAutoHide() {\n this.handleCountdownChange();\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n this.remainingTime = this.duration;\n this.remainingTimeInterval = window.setInterval(() => {\n this.remainingTime -= 100;\n }, 100);\n }\n }\n\n private pauseAutoHide() {\n this.countdownAnimation?.pause();\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n }\n\n private resumeAutoHide() {\n if (this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.remainingTime);\n this.remainingTimeInterval = window.setInterval(() => {\n this.remainingTime -= 100;\n }, 100);\n this.countdownAnimation?.play();\n }\n }\n\n private handleCountdownChange() {\n if (this.open && this.duration < Infinity && this.countdown) {\n const { countdownElement } = this;\n const start = '100%';\n const end = '0';\n this.countdownAnimation = countdownElement.animate([{ width: start }, { width: end }], {\n duration: this.duration,\n easing: 'linear'\n });\n }\n }\n\n private handleCloseClick() {\n this.hide();\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n // Show\n this.emit('syn-show');\n\n if (this.duration < Infinity) {\n this.restartAutoHide();\n }\n\n await stopAnimations(this.base);\n this.base.hidden = false;\n const { keyframes, options } = getAnimation(this, 'alert.show', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n\n await stopAnimations(this.base);\n const { keyframes, options } = getAnimation(this, 'alert.hide', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n this.base.hidden = true;\n\n this.emit('syn-after-hide');\n }\n }\n\n @watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Shows the alert. */\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 alert */\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 /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n */\n async toast() {\n return new Promise<void>(resolve => {\n this.handleCountdownChange();\n if (toastStack.parentElement === null) {\n document.body.append(toastStack);\n }\n\n toastStack.appendChild(this);\n\n // Wait for the toast stack to render\n requestAnimationFrame(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- force a reflow for the initial transition\n this.clientWidth;\n this.show();\n });\n\n this.addEventListener(\n 'syn-after-hide',\n () => {\n toastStack.removeChild(this);\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (toastStack.querySelector('syn-alert') === null) {\n toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n alert: true,\n 'alert--open': this.open,\n 'alert--closable': this.closable,\n 'alert--has-icon': this.hasSlotController.test('icon'),\n 'alert--primary': this.variant === 'primary',\n 'alert--success': this.variant === 'success',\n 'alert--neutral': this.variant === 'neutral',\n 'alert--warning': this.variant === 'warning',\n 'alert--danger': this.variant === 'danger'\n })}\n role=\"alert\"\n aria-hidden=${this.open ? 'false' : 'true'}\n @mouseenter=${this.pauseAutoHide}\n @mouseleave=${this.resumeAutoHide}\n >\n <div part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\"></slot>\n </div>\n\n <div part=\"message\" class=\"alert__message\" aria-live=\"polite\">\n <slot></slot>\n </div>\n\n ${this.closable\n ? html`\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"alert__close-button\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term('close')}\n @click=${this.handleCloseClick}\n ></syn-icon-button>\n `\n : ''}\n\n <div role=\"timer\" class=\"alert__timer\">${this.remainingTime}</div>\n\n ${this.countdown\n ? html`\n <div\n class=${classMap({\n alert__countdown: true,\n 'alert__countdown--ltr': this.countdown === 'ltr'\n })}\n >\n <div class=\"alert__countdown-elapsed\"></div>\n </div>\n `\n : ''}\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('alert.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('alert.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AAUvC,IAAM,aAAa,OAAO,OAAO,SAAS,cAAc,KAAK,GAAG,EAAE,WAAW,kBAAkB,CAAC;AA2BhG,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ,QAAQ;AACjF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAUX,gBAAO;AAGP,oBAAW;AAG1B,mBAAoE;AAOrE,oBAAW;AAQ9B,SAAQ,gBAAgB,KAAK;AAAA;AAAA,EAEtC,eAAe;AACb,SAAK,KAAK,SAAS,CAAC,KAAK;AAAA,EAC3B;AAAA,EAEQ,kBAAkB;AACxB,SAAK,sBAAsB;AAC3B,iBAAa,KAAK,eAAe;AACjC,kBAAc,KAAK,qBAAqB;AACxC,QAAI,KAAK,QAAQ,KAAK,WAAW,UAAU;AACzC,WAAK,kBAAkB,OAAO,WAAW,MAAM,KAAK,KAAK,GAAG,KAAK,QAAQ;AACzE,WAAK,gBAAgB,KAAK;AAC1B,WAAK,wBAAwB,OAAO,YAAY,MAAM;AACpD,aAAK,iBAAiB;AAAA,MACxB,GAAG,GAAG;AAAA,IACR;AAAA,EACF;AAAA,EAEQ,gBAAgB;AA7G1B;AA8GI,eAAK,uBAAL,mBAAyB;AACzB,iBAAa,KAAK,eAAe;AACjC,kBAAc,KAAK,qBAAqB;AAAA,EAC1C;AAAA,EAEQ,iBAAiB;AAnH3B;AAoHI,QAAI,KAAK,WAAW,UAAU;AAC5B,WAAK,kBAAkB,OAAO,W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F,oBAAoB,cAAc;AAAA,EAChC,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,cAAc;AAAA,EAChC,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;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTab
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.C277SCSZ.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.AIA6FPT5.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.IKOSRIQR.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
16
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -66,4 +66,4 @@ __decorateClass([
|
|
|
66
66
|
export {
|
|
67
67
|
SynProgressBar
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=chunk.
|
|
69
|
+
//# sourceMappingURL=chunk.AYGERGTM.js.map
|