@synergy-design-system/components 2.31.2 → 2.32.0
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/code-quality/html-validate/scripts/deprecation.js +1 -0
- package/code-quality/html-validate/scripts/synergy-element-rules.js +7 -1
- package/dist/chunks/{chunk.JTSGQRUI.js → chunk.227MERHC.js} +2 -2
- package/dist/chunks/{chunk.7CRVMDW5.js → chunk.2LWC5VGW.js} +2 -2
- package/dist/chunks/{chunk.3DUL2OP4.js → chunk.2YGY6DRR.js} +2 -2
- package/dist/chunks/{chunk.UMTN2TU2.js → chunk.34UKMOAN.js} +6 -6
- package/dist/chunks/{chunk.JQDBNSFS.js → chunk.3G4ZJEZH.js} +2 -2
- package/dist/chunks/{chunk.B5BVIZ3W.js → chunk.3UCVZ2N3.js} +3 -3
- package/dist/chunks/{chunk.EFO5BI6T.js → chunk.44QQS6VO.js} +2 -2
- package/dist/chunks/{chunk.SMAOMVFZ.js → chunk.46QGGYGR.js} +7 -7
- package/dist/chunks/{chunk.WHKWCNJR.js → chunk.4EGE74LM.js} +3 -3
- package/dist/chunks/{chunk.DOIUTN5M.js → chunk.4PCC4RLB.js} +2 -2
- package/dist/chunks/{chunk.IRCX4RJL.js → chunk.55XHHV7Z.js} +2 -2
- package/dist/chunks/{chunk.SRK6ZYCL.js → chunk.56DHDBEB.js} +5 -5
- package/dist/chunks/{chunk.DX47WJSS.js → chunk.56EDYG6B.js} +2 -2
- package/dist/chunks/{chunk.NH4JQFOM.js → chunk.57DU3E3Z.js} +3 -1
- package/dist/chunks/{chunk.NH4JQFOM.js.map → chunk.57DU3E3Z.js.map} +2 -2
- package/dist/chunks/{chunk.TBQSOTUS.js → chunk.5C2RFLFS.js} +2 -2
- package/dist/chunks/{chunk.6PCADVSN.js → chunk.62CAR5MG.js} +6 -6
- package/dist/chunks/{chunk.WROPOFUG.js → chunk.62JHOU5H.js} +2 -2
- package/dist/chunks/{chunk.WROPOFUG.js.map → chunk.62JHOU5H.js.map} +1 -1
- package/dist/chunks/{chunk.S5N2TE2L.js → chunk.6DYKE5RE.js} +3 -1
- package/dist/chunks/{chunk.S5N2TE2L.js.map → chunk.6DYKE5RE.js.map} +2 -2
- package/dist/chunks/{chunk.XJAGZG2W.js → chunk.6JBICFHU.js} +2 -2
- package/dist/chunks/{chunk.6IWBHFOD.js → chunk.6VVYMYDJ.js} +9 -9
- package/dist/chunks/{chunk.UU7653PU.js → chunk.73DAHCC3.js} +2 -2
- package/dist/chunks/{chunk.4YG7EYB2.js → chunk.73KA7UX5.js} +2 -2
- package/dist/chunks/{chunk.NY2GAPA3.js → chunk.7AWK33AC.js} +6 -6
- package/dist/chunks/{chunk.XDWFPRPE.js → chunk.7DYLS7V5.js} +2 -2
- package/dist/chunks/{chunk.2G7DZ3GJ.js → chunk.7E7CVZ43.js} +2 -2
- package/dist/chunks/{chunk.4TGDH4W7.js → chunk.7GT7PLXZ.js} +8 -8
- package/dist/chunks/{chunk.NUIJATJY.js → chunk.7R4JCT5J.js} +2 -2
- package/dist/chunks/{chunk.K7A64ZY7.js → chunk.7WCAKMAK.js} +2 -2
- package/dist/chunks/{chunk.P3HQDPXQ.js → chunk.A4ZAJ37W.js} +2 -2
- package/dist/chunks/{chunk.OO6R7BWT.js → chunk.AL4FWF4H.js} +3 -3
- package/dist/chunks/{chunk.I7ZAFHZ3.js → chunk.AXBCLZGS.js} +2 -2
- package/dist/chunks/{chunk.OBWURI5H.js → chunk.BBLILCDY.js} +7 -7
- package/dist/chunks/{chunk.OYFNERZO.js → chunk.BQDQ2XF4.js} +2 -2
- package/dist/chunks/{chunk.KQQM2CWQ.js → chunk.BSMGYXJY.js} +2 -2
- package/dist/chunks/{chunk.LC7FBSL4.js → chunk.BU5O7KW4.js} +2 -2
- package/dist/chunks/{chunk.DH5KSMJS.js → chunk.BZUKUJ36.js} +18 -16
- package/dist/chunks/chunk.BZUKUJ36.js.map +7 -0
- package/dist/chunks/{chunk.SKYSXSBE.js → chunk.C3GOUZVH.js} +2 -2
- package/dist/chunks/{chunk.XNHQJ4X7.js → chunk.E2NPS5ZN.js} +5 -5
- package/dist/chunks/{chunk.SUZPXB4O.js → chunk.E3KQWTHA.js} +2 -2
- package/dist/chunks/{chunk.L6JQ4II4.js → chunk.EV64WMJD.js} +2 -2
- package/dist/chunks/{chunk.KJ5DXPFW.js → chunk.F5XNF33L.js} +2 -2
- package/dist/chunks/{chunk.2EJ6TB2U.js → chunk.F7AAPYYY.js} +6 -6
- package/dist/chunks/chunk.FWLUR33I.js +165 -0
- package/dist/chunks/chunk.FWLUR33I.js.map +7 -0
- package/dist/chunks/{chunk.ELFHYJLZ.js → chunk.G4PY4E62.js} +2 -2
- package/dist/chunks/{chunk.JTSBAJHO.js → chunk.G6CLSRWS.js} +2 -2
- package/dist/chunks/{chunk.V2NAJIXY.js → chunk.GWVD6JWM.js} +2 -2
- package/dist/chunks/{chunk.EJ4C4K46.js → chunk.HCLG3RID.js} +5 -5
- package/dist/chunks/{chunk.MQZANITC.js → chunk.HMPLHOEC.js} +2 -2
- package/dist/chunks/{chunk.YKQLG6R3.js → chunk.IKAS4HSG.js} +2 -2
- package/dist/chunks/{chunk.EISTC2GP.js → chunk.IN2KZ2JM.js} +2 -2
- package/dist/chunks/{chunk.GIU3H3J3.js → chunk.IPGLY3H4.js} +2 -2
- package/dist/chunks/{chunk.GIU3H3J3.js.map → chunk.IPGLY3H4.js.map} +1 -1
- package/dist/chunks/{chunk.OU4PLFYW.js → chunk.IQ23XRJD.js} +6 -6
- package/dist/chunks/{chunk.WTKBRIY4.js → chunk.IZUV4XRR.js} +5 -5
- package/dist/chunks/{chunk.ZTFYI6ZI.js → chunk.JGPSIBNQ.js} +5 -5
- package/dist/chunks/{chunk.BMHMFPD4.js → chunk.JJWV4MPY.js} +2 -2
- package/dist/chunks/{chunk.BC6YFGMY.js → chunk.JORU53XU.js} +2 -2
- package/dist/chunks/{chunk.TW3XHMG6.js → chunk.KR4ZPT4X.js} +10 -10
- package/dist/chunks/{chunk.QWSLKG3U.js → chunk.KRG4ASUB.js} +8 -8
- package/dist/chunks/{chunk.HFRXN2DK.js → chunk.KY7HUUUM.js} +2 -2
- package/dist/chunks/{chunk.XUCEJ53P.js → chunk.LMUAOSNG.js} +3 -3
- package/dist/chunks/{chunk.AAPLCFRS.js → chunk.LZHDDLQQ.js} +2 -2
- package/dist/chunks/{chunk.QPAYAMLZ.js → chunk.MTRKAUI5.js} +13 -13
- package/dist/chunks/{chunk.OH3PPVV4.js → chunk.MYVDDEUN.js} +3 -1
- package/dist/chunks/chunk.MYVDDEUN.js.map +7 -0
- package/dist/chunks/{chunk.IY34DPIJ.js → chunk.N5CECNHU.js} +10 -10
- package/dist/chunks/{chunk.LLNE7YOD.js → chunk.N634EXYZ.js} +3 -3
- package/dist/chunks/{chunk.XPTYP3S2.js → chunk.NGCFEEST.js} +2 -2
- package/dist/chunks/{chunk.RYNKWTQ6.js → chunk.NISA5CE2.js} +6 -6
- package/dist/chunks/{chunk.3JXNFR6T.js → chunk.NOESO6WV.js} +2 -2
- package/dist/chunks/{chunk.FTFMQV75.js → chunk.NXKFEIMZ.js} +6 -6
- package/dist/chunks/{chunk.CLTYOE3E.js → chunk.O66H6R5X.js} +2 -2
- package/dist/chunks/{chunk.22PGKUCU.js → chunk.O7S4ZPF7.js} +2 -2
- package/dist/chunks/{chunk.6YPSMCHB.js → chunk.OFOF7ZOR.js} +2 -2
- package/dist/chunks/{chunk.PFSSGWUF.js → chunk.OTRVRUXO.js} +3 -3
- package/dist/chunks/{chunk.3IVPV3E3.js → chunk.P7N2RZPB.js} +7 -7
- package/dist/chunks/{chunk.BO7FAKBN.js → chunk.PIC4O6Q2.js} +9 -9
- package/dist/chunks/{chunk.CELWLWZJ.js → chunk.QXIZDYA4.js} +2 -2
- package/dist/chunks/{chunk.TZUQMH6X.js → chunk.R42AFTFA.js} +9 -9
- package/dist/chunks/{chunk.6DPKNL3S.js → chunk.R52TN2LF.js} +2 -2
- package/dist/chunks/{chunk.JMBUWWA2.js → chunk.RIPTU5BC.js} +2 -2
- package/dist/chunks/{chunk.S5KXHITD.js → chunk.RPM55AQB.js} +2 -2
- package/dist/chunks/{chunk.5XVVEHBO.js → chunk.RUQMHV5V.js} +2 -2
- package/dist/chunks/{chunk.CITWLSAM.js → chunk.RVWB22MU.js} +2 -2
- package/dist/chunks/{chunk.NB47QWRL.js → chunk.RW5BBJ5K.js} +2 -2
- package/dist/chunks/{chunk.DZZ3B5GF.js → chunk.SBGVZBBD.js} +95 -63
- package/dist/chunks/chunk.SBGVZBBD.js.map +7 -0
- package/dist/chunks/{chunk.ZJFTAIAU.js → chunk.T7UT34YW.js} +2 -2
- package/dist/chunks/{chunk.6DPMTGX6.js → chunk.TEYI3WY6.js} +2 -2
- package/dist/chunks/{chunk.XUFDCLB4.js → chunk.ULNCAAQN.js} +2 -2
- package/dist/chunks/{chunk.7RJUAC42.js → chunk.V6HU7SQP.js} +2 -2
- package/dist/chunks/{chunk.JVSTXX5J.js → chunk.VBE5RBH5.js} +6 -6
- package/dist/chunks/{chunk.DJHTOGW7.js → chunk.VFOXZ66D.js} +2 -2
- package/dist/chunks/{chunk.SFTF4XCD.js → chunk.W22XP6SZ.js} +19 -10
- package/dist/chunks/chunk.W22XP6SZ.js.map +7 -0
- package/dist/chunks/{chunk.2LPH33ZQ.js → chunk.W24WTLHF.js} +9 -9
- package/dist/chunks/chunk.W24WTLHF.js.map +7 -0
- package/dist/chunks/{chunk.DIV5RCIM.js → chunk.W56BX5IM.js} +10 -10
- package/dist/chunks/{chunk.PXXI4VRP.js → chunk.WCPQBS67.js} +2 -2
- package/dist/chunks/{chunk.RZG7IW73.js → chunk.WIDU3JFX.js} +6 -6
- package/dist/chunks/{chunk.EHCS6X6N.js → chunk.XACPLHJJ.js} +4 -4
- package/dist/chunks/{chunk.VQG4ENGK.js → chunk.XRSPUMKG.js} +3 -3
- package/dist/chunks/{chunk.JDN6CDYL.js → chunk.XVFMAH3Z.js} +6 -6
- package/dist/chunks/{chunk.HLZPJC4B.js → chunk.YGQ7VBLW.js} +2 -2
- package/dist/chunks/{chunk.HE2VZIBP.js → chunk.YLY5MMDA.js} +2 -2
- package/dist/chunks/{chunk.LOAB2FDA.js → chunk.Z2RDB23K.js} +2 -2
- package/dist/chunks/{chunk.4UOOTX72.js → chunk.Z52I4QC3.js} +2 -2
- package/dist/chunks/{chunk.YPSUFGKY.js → chunk.ZH6J636O.js} +2 -2
- package/dist/components/accordion/accordion.component.js +6 -6
- package/dist/components/accordion/accordion.js +7 -7
- package/dist/components/alert/alert.component.js +13 -13
- package/dist/components/alert/alert.js +14 -14
- package/dist/components/badge/badge.component.js +8 -8
- package/dist/components/badge/badge.js +9 -9
- package/dist/components/breadcrumb/breadcrumb.component.js +9 -9
- package/dist/components/breadcrumb/breadcrumb.js +10 -10
- 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 +11 -11
- package/dist/components/button/button.js +12 -12
- 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 +8 -8
- package/dist/components/checkbox/checkbox.js +9 -9
- package/dist/components/combobox/combobox.component.js +12 -12
- package/dist/components/combobox/combobox.js +13 -13
- package/dist/components/details/details.component.js +10 -10
- package/dist/components/details/details.js +11 -11
- package/dist/components/dialog/dialog.component.js +11 -11
- package/dist/components/dialog/dialog.js +12 -12
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.d.ts +2 -0
- package/dist/components/drawer/drawer.component.js +11 -11
- package/dist/components/drawer/drawer.js +12 -12
- package/dist/components/dropdown/dropdown.component.js +5 -5
- package/dist/components/dropdown/dropdown.js +6 -6
- package/dist/components/file/file.component.js +12 -12
- package/dist/components/file/file.js +13 -13
- package/dist/components/header/header.component.d.ts +2 -1
- package/dist/components/header/header.component.js +8 -8
- package/dist/components/header/header.js +9 -9
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.js +8 -8
- package/dist/components/icon-button/icon-button.js +9 -9
- package/dist/components/input/input.component.js +11 -11
- package/dist/components/input/input.js +12 -12
- 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 +9 -9
- package/dist/components/menu-item/menu-item.js +10 -10
- 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 +7 -7
- package/dist/components/option/option.js +8 -8
- package/dist/components/popup/popup.component.js +4 -4
- package/dist/components/popup/popup.js +5 -5
- package/dist/components/prio-nav/prio-nav.component.js +12 -12
- package/dist/components/prio-nav/prio-nav.js +13 -13
- package/dist/components/progress-bar/progress-bar.component.js +4 -4
- package/dist/components/progress-bar/progress-bar.js +5 -5
- package/dist/components/progress-ring/progress-ring.component.js +4 -4
- package/dist/components/progress-ring/progress-ring.js +5 -5
- package/dist/components/radio/radio.component.js +8 -8
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/radio-button/radio-button.component.js +5 -5
- package/dist/components/radio-button/radio-button.js +6 -6
- package/dist/components/radio-group/radio-group.component.js +6 -6
- package/dist/components/radio-group/radio-group.js +7 -7
- package/dist/components/range/range.component.js +9 -9
- package/dist/components/range/range.js +10 -10
- 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 +13 -13
- package/dist/components/select/select.js +14 -14
- package/dist/components/side-nav/side-nav.component.d.ts +58 -14
- package/dist/components/side-nav/side-nav.component.js +16 -14
- package/dist/components/side-nav/side-nav.js +17 -15
- package/dist/components/side-nav/side-nav.styles.js +1 -1
- package/dist/components/spinner/spinner.component.js +4 -4
- package/dist/components/spinner/spinner.js +5 -5
- package/dist/components/switch/switch.component.js +5 -5
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/tab/tab.component.js +11 -11
- package/dist/components/tab/tab.js +12 -12
- package/dist/components/tab-group/tab-group.component.js +12 -12
- package/dist/components/tab-group/tab-group.js +13 -13
- 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 +11 -11
- package/dist/components/tag/tag.js +12 -12
- package/dist/components/textarea/textarea.component.js +5 -5
- package/dist/components/textarea/textarea.js +6 -6
- package/dist/components/tooltip/tooltip.component.js +5 -5
- package/dist/components/tooltip/tooltip.js +6 -6
- package/dist/components/validate/utility.js +2 -2
- package/dist/components/validate/validate.component.js +15 -15
- package/dist/components/validate/validate.js +16 -16
- package/dist/custom-elements.json +85 -33
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +114 -114
- package/dist/translations/de.js +4 -2
- package/dist/translations/de.js.map +2 -2
- package/dist/translations/en.js +1 -1
- package/dist/utilities/defaultSettings/base.d.ts +3 -1
- package/dist/utilities/defaultSettings/base.js +1 -1
- package/dist/utilities/defaultSettings/decorator.js +3 -3
- package/dist/utilities/defaultSettings/functions.js +2 -2
- package/dist/utilities/defaultSettings/index.js +3 -3
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +2 -0
- package/dist/utilities/localize.js +2 -2
- package/dist/vscode.html-custom-data.json +13 -4
- package/package.json +3 -3
- package/dist/chunks/chunk.2LPH33ZQ.js.map +0 -7
- package/dist/chunks/chunk.DH5KSMJS.js.map +0 -7
- package/dist/chunks/chunk.DZZ3B5GF.js.map +0 -7
- package/dist/chunks/chunk.H3HTSQKK.js +0 -97
- package/dist/chunks/chunk.H3HTSQKK.js.map +0 -7
- package/dist/chunks/chunk.OH3PPVV4.js.map +0 -7
- package/dist/chunks/chunk.SFTF4XCD.js.map +0 -7
- /package/dist/chunks/{chunk.JTSGQRUI.js.map → chunk.227MERHC.js.map} +0 -0
- /package/dist/chunks/{chunk.7CRVMDW5.js.map → chunk.2LWC5VGW.js.map} +0 -0
- /package/dist/chunks/{chunk.3DUL2OP4.js.map → chunk.2YGY6DRR.js.map} +0 -0
- /package/dist/chunks/{chunk.UMTN2TU2.js.map → chunk.34UKMOAN.js.map} +0 -0
- /package/dist/chunks/{chunk.JQDBNSFS.js.map → chunk.3G4ZJEZH.js.map} +0 -0
- /package/dist/chunks/{chunk.B5BVIZ3W.js.map → chunk.3UCVZ2N3.js.map} +0 -0
- /package/dist/chunks/{chunk.EFO5BI6T.js.map → chunk.44QQS6VO.js.map} +0 -0
- /package/dist/chunks/{chunk.SMAOMVFZ.js.map → chunk.46QGGYGR.js.map} +0 -0
- /package/dist/chunks/{chunk.WHKWCNJR.js.map → chunk.4EGE74LM.js.map} +0 -0
- /package/dist/chunks/{chunk.DOIUTN5M.js.map → chunk.4PCC4RLB.js.map} +0 -0
- /package/dist/chunks/{chunk.IRCX4RJL.js.map → chunk.55XHHV7Z.js.map} +0 -0
- /package/dist/chunks/{chunk.SRK6ZYCL.js.map → chunk.56DHDBEB.js.map} +0 -0
- /package/dist/chunks/{chunk.DX47WJSS.js.map → chunk.56EDYG6B.js.map} +0 -0
- /package/dist/chunks/{chunk.TBQSOTUS.js.map → chunk.5C2RFLFS.js.map} +0 -0
- /package/dist/chunks/{chunk.6PCADVSN.js.map → chunk.62CAR5MG.js.map} +0 -0
- /package/dist/chunks/{chunk.XJAGZG2W.js.map → chunk.6JBICFHU.js.map} +0 -0
- /package/dist/chunks/{chunk.6IWBHFOD.js.map → chunk.6VVYMYDJ.js.map} +0 -0
- /package/dist/chunks/{chunk.UU7653PU.js.map → chunk.73DAHCC3.js.map} +0 -0
- /package/dist/chunks/{chunk.4YG7EYB2.js.map → chunk.73KA7UX5.js.map} +0 -0
- /package/dist/chunks/{chunk.NY2GAPA3.js.map → chunk.7AWK33AC.js.map} +0 -0
- /package/dist/chunks/{chunk.XDWFPRPE.js.map → chunk.7DYLS7V5.js.map} +0 -0
- /package/dist/chunks/{chunk.2G7DZ3GJ.js.map → chunk.7E7CVZ43.js.map} +0 -0
- /package/dist/chunks/{chunk.4TGDH4W7.js.map → chunk.7GT7PLXZ.js.map} +0 -0
- /package/dist/chunks/{chunk.NUIJATJY.js.map → chunk.7R4JCT5J.js.map} +0 -0
- /package/dist/chunks/{chunk.K7A64ZY7.js.map → chunk.7WCAKMAK.js.map} +0 -0
- /package/dist/chunks/{chunk.P3HQDPXQ.js.map → chunk.A4ZAJ37W.js.map} +0 -0
- /package/dist/chunks/{chunk.OO6R7BWT.js.map → chunk.AL4FWF4H.js.map} +0 -0
- /package/dist/chunks/{chunk.I7ZAFHZ3.js.map → chunk.AXBCLZGS.js.map} +0 -0
- /package/dist/chunks/{chunk.OBWURI5H.js.map → chunk.BBLILCDY.js.map} +0 -0
- /package/dist/chunks/{chunk.OYFNERZO.js.map → chunk.BQDQ2XF4.js.map} +0 -0
- /package/dist/chunks/{chunk.KQQM2CWQ.js.map → chunk.BSMGYXJY.js.map} +0 -0
- /package/dist/chunks/{chunk.LC7FBSL4.js.map → chunk.BU5O7KW4.js.map} +0 -0
- /package/dist/chunks/{chunk.SKYSXSBE.js.map → chunk.C3GOUZVH.js.map} +0 -0
- /package/dist/chunks/{chunk.XNHQJ4X7.js.map → chunk.E2NPS5ZN.js.map} +0 -0
- /package/dist/chunks/{chunk.SUZPXB4O.js.map → chunk.E3KQWTHA.js.map} +0 -0
- /package/dist/chunks/{chunk.L6JQ4II4.js.map → chunk.EV64WMJD.js.map} +0 -0
- /package/dist/chunks/{chunk.KJ5DXPFW.js.map → chunk.F5XNF33L.js.map} +0 -0
- /package/dist/chunks/{chunk.2EJ6TB2U.js.map → chunk.F7AAPYYY.js.map} +0 -0
- /package/dist/chunks/{chunk.ELFHYJLZ.js.map → chunk.G4PY4E62.js.map} +0 -0
- /package/dist/chunks/{chunk.JTSBAJHO.js.map → chunk.G6CLSRWS.js.map} +0 -0
- /package/dist/chunks/{chunk.V2NAJIXY.js.map → chunk.GWVD6JWM.js.map} +0 -0
- /package/dist/chunks/{chunk.EJ4C4K46.js.map → chunk.HCLG3RID.js.map} +0 -0
- /package/dist/chunks/{chunk.MQZANITC.js.map → chunk.HMPLHOEC.js.map} +0 -0
- /package/dist/chunks/{chunk.YKQLG6R3.js.map → chunk.IKAS4HSG.js.map} +0 -0
- /package/dist/chunks/{chunk.EISTC2GP.js.map → chunk.IN2KZ2JM.js.map} +0 -0
- /package/dist/chunks/{chunk.OU4PLFYW.js.map → chunk.IQ23XRJD.js.map} +0 -0
- /package/dist/chunks/{chunk.WTKBRIY4.js.map → chunk.IZUV4XRR.js.map} +0 -0
- /package/dist/chunks/{chunk.ZTFYI6ZI.js.map → chunk.JGPSIBNQ.js.map} +0 -0
- /package/dist/chunks/{chunk.BMHMFPD4.js.map → chunk.JJWV4MPY.js.map} +0 -0
- /package/dist/chunks/{chunk.BC6YFGMY.js.map → chunk.JORU53XU.js.map} +0 -0
- /package/dist/chunks/{chunk.TW3XHMG6.js.map → chunk.KR4ZPT4X.js.map} +0 -0
- /package/dist/chunks/{chunk.QWSLKG3U.js.map → chunk.KRG4ASUB.js.map} +0 -0
- /package/dist/chunks/{chunk.HFRXN2DK.js.map → chunk.KY7HUUUM.js.map} +0 -0
- /package/dist/chunks/{chunk.XUCEJ53P.js.map → chunk.LMUAOSNG.js.map} +0 -0
- /package/dist/chunks/{chunk.AAPLCFRS.js.map → chunk.LZHDDLQQ.js.map} +0 -0
- /package/dist/chunks/{chunk.QPAYAMLZ.js.map → chunk.MTRKAUI5.js.map} +0 -0
- /package/dist/chunks/{chunk.IY34DPIJ.js.map → chunk.N5CECNHU.js.map} +0 -0
- /package/dist/chunks/{chunk.LLNE7YOD.js.map → chunk.N634EXYZ.js.map} +0 -0
- /package/dist/chunks/{chunk.XPTYP3S2.js.map → chunk.NGCFEEST.js.map} +0 -0
- /package/dist/chunks/{chunk.RYNKWTQ6.js.map → chunk.NISA5CE2.js.map} +0 -0
- /package/dist/chunks/{chunk.3JXNFR6T.js.map → chunk.NOESO6WV.js.map} +0 -0
- /package/dist/chunks/{chunk.FTFMQV75.js.map → chunk.NXKFEIMZ.js.map} +0 -0
- /package/dist/chunks/{chunk.CLTYOE3E.js.map → chunk.O66H6R5X.js.map} +0 -0
- /package/dist/chunks/{chunk.22PGKUCU.js.map → chunk.O7S4ZPF7.js.map} +0 -0
- /package/dist/chunks/{chunk.6YPSMCHB.js.map → chunk.OFOF7ZOR.js.map} +0 -0
- /package/dist/chunks/{chunk.PFSSGWUF.js.map → chunk.OTRVRUXO.js.map} +0 -0
- /package/dist/chunks/{chunk.3IVPV3E3.js.map → chunk.P7N2RZPB.js.map} +0 -0
- /package/dist/chunks/{chunk.BO7FAKBN.js.map → chunk.PIC4O6Q2.js.map} +0 -0
- /package/dist/chunks/{chunk.CELWLWZJ.js.map → chunk.QXIZDYA4.js.map} +0 -0
- /package/dist/chunks/{chunk.TZUQMH6X.js.map → chunk.R42AFTFA.js.map} +0 -0
- /package/dist/chunks/{chunk.6DPKNL3S.js.map → chunk.R52TN2LF.js.map} +0 -0
- /package/dist/chunks/{chunk.JMBUWWA2.js.map → chunk.RIPTU5BC.js.map} +0 -0
- /package/dist/chunks/{chunk.S5KXHITD.js.map → chunk.RPM55AQB.js.map} +0 -0
- /package/dist/chunks/{chunk.5XVVEHBO.js.map → chunk.RUQMHV5V.js.map} +0 -0
- /package/dist/chunks/{chunk.CITWLSAM.js.map → chunk.RVWB22MU.js.map} +0 -0
- /package/dist/chunks/{chunk.NB47QWRL.js.map → chunk.RW5BBJ5K.js.map} +0 -0
- /package/dist/chunks/{chunk.ZJFTAIAU.js.map → chunk.T7UT34YW.js.map} +0 -0
- /package/dist/chunks/{chunk.6DPMTGX6.js.map → chunk.TEYI3WY6.js.map} +0 -0
- /package/dist/chunks/{chunk.XUFDCLB4.js.map → chunk.ULNCAAQN.js.map} +0 -0
- /package/dist/chunks/{chunk.7RJUAC42.js.map → chunk.V6HU7SQP.js.map} +0 -0
- /package/dist/chunks/{chunk.JVSTXX5J.js.map → chunk.VBE5RBH5.js.map} +0 -0
- /package/dist/chunks/{chunk.DJHTOGW7.js.map → chunk.VFOXZ66D.js.map} +0 -0
- /package/dist/chunks/{chunk.DIV5RCIM.js.map → chunk.W56BX5IM.js.map} +0 -0
- /package/dist/chunks/{chunk.PXXI4VRP.js.map → chunk.WCPQBS67.js.map} +0 -0
- /package/dist/chunks/{chunk.RZG7IW73.js.map → chunk.WIDU3JFX.js.map} +0 -0
- /package/dist/chunks/{chunk.EHCS6X6N.js.map → chunk.XACPLHJJ.js.map} +0 -0
- /package/dist/chunks/{chunk.VQG4ENGK.js.map → chunk.XRSPUMKG.js.map} +0 -0
- /package/dist/chunks/{chunk.JDN6CDYL.js.map → chunk.XVFMAH3Z.js.map} +0 -0
- /package/dist/chunks/{chunk.HLZPJC4B.js.map → chunk.YGQ7VBLW.js.map} +0 -0
- /package/dist/chunks/{chunk.HE2VZIBP.js.map → chunk.YLY5MMDA.js.map} +0 -0
- /package/dist/chunks/{chunk.LOAB2FDA.js.map → chunk.Z2RDB23K.js.map} +0 -0
- /package/dist/chunks/{chunk.4UOOTX72.js.map → chunk.Z52I4QC3.js.map} +0 -0
- /package/dist/chunks/{chunk.YPSUFGKY.js.map → chunk.ZH6J636O.js.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/side-nav/side-nav.component.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html } from 'lit/static-html.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './side-nav.styles.js';\nimport SynDrawer from '../drawer/drawer.component.js';\nimport SynDivider from '../divider/divider.component.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynNavItem from '../nav-item/nav-item.component.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport { getAnimation, setAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { unlockBodyScrolling } from '../../internal/scroll.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.\n * It can be used to group multiple navigation items (<syn-nav-item />s) together.\n *\n * @example\n * <syn-side-nav open>\n * <syn-nav-item >Item 1</syn-nav-item>\n * <syn-nav-item divider>Item 2</syn-nav-item>\n * </syn-side-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n * @dependency syn-drawer\n * @dependency syn-icon\n * @dependency syn-nav-item\n *\n * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.\n * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.\n * Please avoid having to many nav-items as it can massively influence the user experience.\n * @slot toggle-label - The label of the toggle nav-item for variant=\"sticky\".\n * @slot toggle-icon - An icon to use in lieu of the default icon for the toggle nav-item\n * for variant=\"sticky\".\n *\n * @event syn-show - Emitted when the side-nav opens.\n * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.\n * @event syn-hide - Emitted when the side-nav closes.\n * @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.\n *\n * @csspart base - The components base wrapper\n * @csspart drawer - The drawer that is used under the hood for creating the side-nav\n * @csspart content-container - The components main content container\n * @csspart content - The components main content\n * @csspart footer-container - The components footer content container\n (where the footer slot content is rendered)\n * @csspart footer-divider - The components footer divider\n * @csspart footer - The components footer content\n * @csspart overlay - The overlay that covers the screen behind the side-nav.\n * @csspart panel - The side-nav's panel (where the whole content is rendered).\n * @csspart body - The side-nav's body (where the default slot content is rendered)\n * @csspart drawer__base - The drawer's base wrapper\n * @csspart toggle-nav-item - The nav-item to toggle open state for variant=\"sticky\"\n * @csspart toggle-icon - The icon of the toggle nav-item for variant=\"sticky\"\n * @csspart toggle-label - The label of the toggle nav-item for variant=\"sticky\".\n\n * @cssproperty --side-nav-open-width - The width of the side-nav if in open state\n *\n * @animation sideNav.showNonRail - The animation to use when showing the side-nav\n * in variant=\"default\".\n * @animation sideNav.showRail - The animation to use when showing the side-nav in variant=\"rail\"\n * and variant=\"sticky\".\n * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav\n * in variant=\"default\".\n * @animation sideNav.hideRail - The animation to use when hiding the side-nav in variant=\"rail\"\n * and variant=\"sticky\".\n * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.\n * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.\n */\n@enableDefaultSettings('SynSideNav')\nexport default class SynSideNav extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-divider': SynDivider,\n 'syn-drawer': SynDrawer,\n 'syn-icon': SynIcon,\n 'syn-nav-item': SynNavItem,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'footer');\n\n private readonly localize = new LocalizeController(this);\n\n private timeout: NodeJS.Timeout;\n\n /**\n * Current animation active state\n */\n @state() private isAnimationActive = false;\n\n /**\n * Reference to the drawer\n */\n @query('.side-nav__drawer') private drawer: SynDrawer;\n\n /**\n * Indicates whether or not the side-nav is open.\n * You can toggle this attribute to show and hide the side-nav, or you can use the `show()` and\n * `hide()` methods and this attribute will reflect the side-nav's open state.\n *\n * Depending on the \"variant\" attribute, the behavior will differ.\n *\n * __Default__:\n * With `open` will show the side-nav with an overlay.\n * Without `open`, the side-nav will be hidden.\n *\n * __Rail__:\n * With `open` will show the whole side-nav with an overlay for touch devices\n * or without an overlay for non-touch devices.\n * Without `open`, the side-nav will only show the prefix of nav-item's.\n *\n * __Sticky__:\n * With `open` will show the whole side-nav with an overlay for touch devices\n * or without an overlay for non-touch devices.\n * Without `open`, the side-nav will only show the prefix of nav-item's.\n *\n */\n @property({ reflect: true, type: Boolean }) open = false;\n\n /**\n * Use the rail attribute to only show the prefix of navigation items in closed state.\n * This will open on hover on the rail navigation.\n * On touch devices the navigation opens on click and shows an overlay.\n *\n * Note: The Rail is only an option if all Navigation Items on the first level have an Icon.\n * If this is not the case you should use a burger navigation.\n *\n * @deprecated Use the `variant` attribute with `rail` instead.\n * Will be removed in synergy version 3.0\n */\n @property({ reflect: true, type: Boolean }) rail = false;\n\n /**\n * The variant that should be used to show the side navigation.\n *\n * The following variants are supported:\n * - **default** (default): Always shows the whole content and additionally an overlay.\n * This makes especially sense for applications, where you navigate to a place and stay\n * there for a longer time.\n * - **rail**: Only show the prefix of navigation items in closed state.\n * This will open on hover on the rail navigation.\n * On touch devices the navigation opens on click and shows an overlay.\n * Note: The rail variant is only an option if all Navigation Items on the first level\n * have an Icon.\n * If this is not the case you should use a burger navigation.\n * - **sticky**: The side-nav has a pin button to show the side-nav in small (icon only)\n * and full width. This variant is only possible for non-nested navigation items.\n * Note: The sticky variant is only an option if all Navigation Items on the first level\n * have an Icon and if there are only \"first level\" items.\n */\n @property({ reflect: true }) variant: 'default' | 'rail' | 'sticky' = 'default';\n\n /**\n * By default, the side-nav traps the focus if in variant=\"default\" and open.\n * To disable the focus trapping, set this attribute.\n */\n @property({ attribute: 'no-focus-trapping', reflect: true, type: Boolean }) noFocusTrapping = false;\n\n private setDelayedCallback(callback: () => void) {\n clearTimeout(this.timeout);\n this.timeout = setTimeout(callback, 100);\n }\n\n private handleMouseEnter() {\n // Debounce mouse events, to avoid infinite loop of open / closing in variant=\"rail\"\n this.setDelayedCallback(() => {\n this.open = true;\n });\n }\n\n private handleMouseLeave() {\n // Debounce mouse events, to avoid infinite loop of open / closing in variant=\"rail\"\n this.setDelayedCallback(() => {\n this.open = false;\n });\n }\n\n private handleRequestClose() {\n if (this.open) {\n this.open = false;\n }\n }\n\n private addMouseListener() {\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.addEventListener('mouseenter', this.handleMouseEnter);\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.addEventListener('mouseleave', this.handleMouseLeave);\n }\n\n private removeMouseListener() {\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.removeEventListener('mouseenter', this.handleMouseEnter);\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.removeEventListener('mouseleave', this.handleMouseLeave);\n }\n\n private setDrawerAnimations() {\n const showAnimation = getAnimation(this, `sideNav.show${this.variant === 'default' ? 'NonRail' : 'Rail'}`, { dir: this.localize.dir() });\n const hideAnimation = getAnimation(this, `sideNav.hide${this.variant === 'default' ? 'NonRail' : 'Rail'}`, { dir: this.localize.dir() });\n const hideOverlay = getAnimation(this, 'sideNav.overlay.hide', { dir: this.localize.dir() });\n const showOverlay = getAnimation(this, 'sideNav.overlay.show', { dir: this.localize.dir() });\n\n setAnimation(this.drawer, 'drawer.showStart', showAnimation);\n setAnimation(this.drawer, 'drawer.hideStart', hideAnimation);\n setAnimation(this.drawer, 'drawer.overlay.hide', hideOverlay);\n setAnimation(this.drawer, 'drawer.overlay.show', showOverlay);\n }\n\n @watch('variant', { waitUntilFirstUpdate: true })\n handleVariantChange() {\n this.setDrawerAnimations();\n this.drawer.forceVisibility(this.variant !== 'default');\n\n switch (this.variant) {\n case 'rail':\n // For hover handling\n this.addMouseListener();\n break;\n case 'sticky':\n case 'default':\n default:\n this.removeMouseListener();\n }\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n handleOpenChange() {\n if (this.variant === 'default') {\n return;\n }\n\n this.isAnimationActive = true;\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForEvent(this.drawer, `syn-after-${this.open ? 'show' : 'hide'}`).then(() => {\n this.isAnimationActive = false;\n });\n }\n\n @watch('noFocusTrapping', { waitUntilFirstUpdate: true })\n handleFocusTrapping() {\n if (this.variant === 'default') {\n if (this.noFocusTrapping) {\n this.drawer.modal.activateExternal();\n } else {\n this.drawer.modal.deactivateExternal();\n }\n }\n }\n\n /** Shows the side-nav. */\n async show() {\n if (this.open) {\n return undefined;\n }\n this.open = true;\n\n return waitForEvent(this.drawer, 'syn-after-show');\n }\n\n /** Hides the side-nav */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n\n return waitForEvent(this.drawer, 'syn-after-hide');\n }\n\n constructor() {\n super();\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n this.addEventListener('syn-initial-focus', (event) => {\n if (this.variant !== 'default') {\n // We need to do this, to stop the drawer from giving focus to the panel\n event.preventDefault();\n\n // The originalTrigger needs to be removed, otherwise when closing the drawer,\n // the first focused nav-item is focused again...\n // eslint-disable-next-line @typescript-eslint/dot-notation\n this.drawer['originalTrigger'] = null;\n }\n });\n\n this.addEventListener('focusin', (event) => {\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n // Open the side-nav if it`s in variant=\"rail\", closed and the focused element is a nav-item\n if (targetTag === 'syn-nav-item' && this.variant === 'rail' && !this.open) {\n this.open = true;\n }\n });\n\n this.addEventListener('focusout', (event) => {\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n const relatedTargetTag = (event.relatedTarget as HTMLElement)?.tagName.toLowerCase();\n\n // Close the side-nav, if it`s in variant=\"rail\", open and the next focused element\n // is no longer a nav-item\n if (targetTag === 'syn-nav-item' && relatedTargetTag !== 'syn-nav-item' && this.variant === 'rail' && this.open) {\n this.open = false;\n }\n });\n }\n\n /**\n * Initial setup for first render like special variant=\"rail\" and variant=\"sticky\" handling\n * and drawer animations.\n * */\n firstUpdated() {\n this.setDrawerAnimations();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.drawer.updateComplete.then(() => {\n this.drawer.forceVisibility(this.variant !== 'default');\n // change tabindex of drawer to make only nav-items focusable and not the panel of the drawer\n (this.drawer.shadowRoot!.querySelector('.drawer__panel') as HTMLElement).tabIndex = -1;\n });\n\n switch (this.variant) {\n case 'rail':\n // Wait for the drawer`s update to be completed\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.drawer.updateComplete.then(() => {\n this.addMouseListener();\n });\n break;\n case 'sticky': break;\n case 'default':\n default:\n if (this.noFocusTrapping) {\n // Disable the focus trapping of the modal\n this.drawer.modal.activateExternal();\n }\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // Remove modal listeners\n if (this.drawer) {\n unlockBodyScrolling(this.drawer);\n this.drawer.modal.deactivate();\n }\n }\n\n // eslint-disable-next-line complexity\n protected override willUpdate(changedProperties: PropertyValues) {\n super.willUpdate(changedProperties);\n\n // TODO: this can be removed in synergy version 3.0\n if (changedProperties.has('rail')) {\n if (this.rail) {\n // Add deprecation console warning for stakeholder, which do not use linting\n // to get their attention\n console.warn('<syn-side-nav/>: The `rail` attribute is deprecated. Please use the `variant` attribute with `rail` instead. It will be removed in synergy version 3.0');\n }\n\n // The `variant` should be adapted to the `rail` attribute,\n // if it was explicitly set or unset by the user.\n // This is needed to be backwards compatible with the `rail` attribute\n if (!changedProperties.has('variant') || this.rail) {\n this.variant = this.rail ? 'rail' : 'default';\n }\n }\n }\n\n private toggleOpenState() {\n this.open = !this.open;\n }\n\n // eslint-disable-next-line complexity\n render() {\n const isTouch = window.navigator.maxTouchPoints > 0 || !!('ontouchstart' in window);\n const hasFooter = this.hasSlotController.test('footer');\n const showFooterDivider = hasFooter || this.variant === 'sticky';\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <nav\n class=${classMap({\n 'side-nav': true,\n 'side-nav--animation': this.isAnimationActive,\n 'side-nav--fix': this.variant === 'default',\n 'side-nav--has-footer': hasFooter,\n 'side-nav--open': this.open,\n 'side-nav--rail': this.variant === 'rail',\n 'side-nav--sticky': this.variant === 'sticky',\n 'side-nav--touch': isTouch,\n })}\n part=\"base\"\n >\n \n <syn-drawer\n class=\"side-nav__drawer\"\n ?contained=${this.variant !== 'default'}\n exportparts=\"overlay,panel,body,base:drawer__base\"\n label=${this.localize.term('sideNav')}\n no-header\n ?open=${this.open}\n part=\"drawer\"\n placement=\"start\"\n @syn-request-close=${this.handleRequestClose} \n >\n <div part=\"content-container\" class=\"side-nav__content-container\">\n <slot part=\"content\"></slot>\n </div>\n \n <footer class=\"side-nav__footer\" part=\"footer-container\" slot=\"footer\"> \n\n ${showFooterDivider ? html`<syn-divider part=\"footer-divider\" class=\"side-nav__footer-divider\"></syn-divider>` : ''}\n <slot name=\"footer\" part=\"footer\" ></slot>\n ${this.variant === 'sticky'\n ? html`<syn-nav-item part=\"toggle-nav-item\" class=\"side-nav__toggle-nav-item\" @click=${this.toggleOpenState} ?divider=${hasFooter}>\n <slot name=\"toggle-icon\" slot=\"prefix\" class=\"side-nav__toggle-icon\">\n <syn-icon library=\"system\" name=\"sticky_sidebar\" part=\"toggle-icon\"></syn-icon>\n </slot>\n <slot name=\"toggle-label\" part=\"toggle-label\">\n ${(!this.open && !this.isAnimationActive) ? this.localize.term('sideNavShow') : this.localize.term('sideNavHide')}\n </slot>\n </syn-nav-item>`\n : ''\n }\n \n </footer>\n\n </syn-drawer>\n\n </nav>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n\n// Show animations\nsetDefaultAnimation('sideNav.showRail', {\n keyframes: [\n { width: 'var(--side-nav-rail-width)' },\n { width: 'var(--side-nav-open-width)' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\nsetDefaultAnimation('sideNav.showNonRail', {\n keyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\n// Hide animations\nsetDefaultAnimation('sideNav.hideNonRail', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\nsetDefaultAnimation('sideNav.hideRail', {\n keyframes: [\n { width: 'var(--side-nav-open-width)' },\n { width: 'var(--side-nav-rail-width)' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\n// Overlay animations\nsetDefaultAnimation('sideNav.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 },\n});\n\nsetDefaultAnimation('sideNav.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 },\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AA6EvC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAuMrD,cAAc;AACZ,UAAM;AA9LR,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,QAAQ;AAEtF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAO9C,SAAQ,oBAAoB;AA6BO,gBAAO;AAaP,gBAAO;AAoBtB,mBAAyC;AAMM,2BAAkB;AAkH5F,SAAK,mBAAmB,KAAK,iBAAiB,KAAK,IAAI;AACvD,SAAK,mBAAmB,KAAK,iBAAiB,KAAK,IAAI;AACvD,SAAK,iBAAiB,qBAAqB,CAAC,UAAU;AACpD,UAAI,KAAK,YAAY,WAAW;AAE9B,cAAM,eAAe;AAKrB,aAAK,OAAO,iBAAiB,IAAI;AAAA,MACnC;AAAA,IACF,CAAC;AAED,SAAK,iBAAiB,WAAW,CAAC,UAAU;AAC1C,YAAM,YAAa,MAAM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,OAAO;AAC3C,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW;AAAA,IACT,EAAE,OAAO,6BAA6B;AAAA,IACtC,EAAE,OAAO,6BAA6B;AAAA,EACxC;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAGD,oBAAoB,wBAAwB;AAAA,EAC1C,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,wBAAwB;AAAA,EAC1C,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
|
SynSpinner
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.AL4FWF4H.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.T7UT34YW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynProgressBar
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.XRSPUMKG.js";
|
|
4
4
|
|
|
5
5
|
// src/components/progress-bar/progress-bar.ts
|
|
6
6
|
var progress_bar_default = SynProgressBar;
|
|
@@ -9,4 +9,4 @@ SynProgressBar.define("syn-progress-bar");
|
|
|
9
9
|
export {
|
|
10
10
|
progress_bar_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.TEYI3WY6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenu
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.V6HU7SQP.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu/menu.ts
|
|
6
6
|
var menu_default = SynMenu;
|
|
@@ -9,4 +9,4 @@ SynMenu.define("syn-menu");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.ULNCAAQN.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.62JHOU5H.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -160,4 +160,4 @@ __decorateClass([
|
|
|
160
160
|
export {
|
|
161
161
|
SynMenu
|
|
162
162
|
};
|
|
163
|
-
//# sourceMappingURL=chunk.
|
|
163
|
+
//# sourceMappingURL=chunk.V6HU7SQP.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk.AERTEAG5.js";
|
|
11
11
|
import {
|
|
12
12
|
SynButtonGroup
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.QXIZDYA4.js";
|
|
14
14
|
import {
|
|
15
15
|
FormControlController,
|
|
16
16
|
customErrorValidityState,
|
|
@@ -20,18 +20,18 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
HasSlotController
|
|
22
22
|
} from "./chunk.WVVQK5TE.js";
|
|
23
|
-
import {
|
|
24
|
-
enableDefaultSettings
|
|
25
|
-
} from "./chunk.NUIJATJY.js";
|
|
26
23
|
import {
|
|
27
24
|
watch
|
|
28
25
|
} from "./chunk.74IOULXM.js";
|
|
26
|
+
import {
|
|
27
|
+
enableDefaultSettings
|
|
28
|
+
} from "./chunk.7R4JCT5J.js";
|
|
29
29
|
import {
|
|
30
30
|
component_styles_default
|
|
31
31
|
} from "./chunk.NLYVOJGK.js";
|
|
32
32
|
import {
|
|
33
33
|
SynergyElement
|
|
34
|
-
} from "./chunk.
|
|
34
|
+
} from "./chunk.62JHOU5H.js";
|
|
35
35
|
import {
|
|
36
36
|
__decorateClass
|
|
37
37
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -369,4 +369,4 @@ SynRadioGroup = __decorateClass([
|
|
|
369
369
|
export {
|
|
370
370
|
SynRadioGroup
|
|
371
371
|
};
|
|
372
|
-
//# sourceMappingURL=chunk.
|
|
372
|
+
//# sourceMappingURL=chunk.VBE5RBH5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButtonGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.QXIZDYA4.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button-group/button-group.ts
|
|
6
6
|
var button_group_default = SynButtonGroup;
|
|
@@ -9,4 +9,4 @@ SynButtonGroup.define("syn-button-group");
|
|
|
9
9
|
export {
|
|
10
10
|
button_group_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.VFOXZ66D.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk.WXVOTRW5.js";
|
|
17
17
|
import {
|
|
18
18
|
SynIconButton
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.XACPLHJJ.js";
|
|
20
20
|
import {
|
|
21
21
|
waitForEvent
|
|
22
22
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
HasSlotController
|
|
33
33
|
} from "./chunk.WVVQK5TE.js";
|
|
34
|
-
import {
|
|
35
|
-
LocalizeController
|
|
36
|
-
} from "./chunk.GIU3H3J3.js";
|
|
37
34
|
import {
|
|
38
35
|
watch
|
|
39
36
|
} from "./chunk.74IOULXM.js";
|
|
37
|
+
import {
|
|
38
|
+
LocalizeController
|
|
39
|
+
} from "./chunk.IPGLY3H4.js";
|
|
40
40
|
import {
|
|
41
41
|
component_styles_default
|
|
42
42
|
} from "./chunk.NLYVOJGK.js";
|
|
43
43
|
import {
|
|
44
44
|
SynergyElement
|
|
45
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.62JHOU5H.js";
|
|
46
46
|
import {
|
|
47
47
|
__decorateClass
|
|
48
48
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
import { classMap } from "lit/directives/class-map.js";
|
|
52
52
|
import { html } from "lit";
|
|
53
53
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
54
|
-
import { property, query } from "lit/decorators.js";
|
|
54
|
+
import { property, query, state } from "lit/decorators.js";
|
|
55
55
|
|
|
56
56
|
// src/internal/string.ts
|
|
57
57
|
function uppercaseFirstLetter(string) {
|
|
@@ -65,6 +65,7 @@ var SynDrawer = class extends SynergyElement {
|
|
|
65
65
|
this.hasSlotController = new HasSlotController(this, "footer");
|
|
66
66
|
this.localize = new LocalizeController(this);
|
|
67
67
|
this.modal = new Modal(this);
|
|
68
|
+
this.isVisible = false;
|
|
68
69
|
this.open = false;
|
|
69
70
|
this.label = "";
|
|
70
71
|
this.placement = "end";
|
|
@@ -81,7 +82,7 @@ var SynDrawer = class extends SynergyElement {
|
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
firstUpdated() {
|
|
84
|
-
this.drawer.hidden = !this.open;
|
|
85
|
+
this.drawer.hidden = this.isVisible ? false : !this.open;
|
|
85
86
|
if (this.open) {
|
|
86
87
|
this.addOpenListeners();
|
|
87
88
|
if (!this.contained) {
|
|
@@ -182,7 +183,7 @@ var SynDrawer = class extends SynergyElement {
|
|
|
182
183
|
this.panel.hidden = true;
|
|
183
184
|
})
|
|
184
185
|
]);
|
|
185
|
-
this.drawer.hidden =
|
|
186
|
+
this.drawer.hidden = !this.isVisible;
|
|
186
187
|
this.overlay.hidden = false;
|
|
187
188
|
this.panel.hidden = false;
|
|
188
189
|
const trigger = this.originalTrigger;
|
|
@@ -218,6 +219,11 @@ var SynDrawer = class extends SynergyElement {
|
|
|
218
219
|
this.open = false;
|
|
219
220
|
return waitForEvent(this, "syn-after-hide");
|
|
220
221
|
}
|
|
222
|
+
// Forces the visibility of the drawer even with `open` set to false. This is needed for the `rail` and `sticky` variant of the syn-side-nav
|
|
223
|
+
forceVisibility(isVisible) {
|
|
224
|
+
this.isVisible = isVisible;
|
|
225
|
+
this.drawer.hidden = isVisible ? false : !this.open;
|
|
226
|
+
}
|
|
221
227
|
render() {
|
|
222
228
|
return html`
|
|
223
229
|
<div
|
|
@@ -242,7 +248,7 @@ var SynDrawer = class extends SynergyElement {
|
|
|
242
248
|
class="drawer__panel"
|
|
243
249
|
role="dialog"
|
|
244
250
|
aria-modal="true"
|
|
245
|
-
aria-hidden=${this.open ? "false" : "true"}
|
|
251
|
+
aria-hidden=${this.isVisible ? "false" : this.open ? "false" : "true"}
|
|
246
252
|
aria-label=${ifDefined(this.noHeader ? this.label : void 0)}
|
|
247
253
|
aria-labelledby=${ifDefined(!this.noHeader ? "title" : void 0)}
|
|
248
254
|
tabindex="0"
|
|
@@ -280,6 +286,9 @@ var SynDrawer = class extends SynergyElement {
|
|
|
280
286
|
};
|
|
281
287
|
SynDrawer.styles = [component_styles_default, drawer_styles_default, drawer_custom_styles_default];
|
|
282
288
|
SynDrawer.dependencies = { "syn-icon-button": SynIconButton };
|
|
289
|
+
__decorateClass([
|
|
290
|
+
state()
|
|
291
|
+
], SynDrawer.prototype, "isVisible", 2);
|
|
283
292
|
__decorateClass([
|
|
284
293
|
query(".drawer")
|
|
285
294
|
], SynDrawer.prototype, "drawer", 2);
|
|
@@ -398,4 +407,4 @@ setDefaultAnimation("drawer.overlay.hide", {
|
|
|
398
407
|
export {
|
|
399
408
|
SynDrawer
|
|
400
409
|
};
|
|
401
|
-
//# sourceMappingURL=chunk.
|
|
410
|
+
//# sourceMappingURL=chunk.W22XP6SZ.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 { blurActiveElement } from '../../internal/closeActiveElement.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../internal/scroll.js';\nimport { property, query, state } 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';\n\n/**\n * @summary Drawers slide in from a container to expose additional options and information.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-drawer--docs\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 @state() private isVisible = false; // force visibility even with open set to false\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.isVisible ? false : !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/shoelace-style/shoelace/issues/693\n //\n const autoFocusTarget = this.querySelector('[autofocus]');\n if (autoFocusTarget) {\n autoFocusTarget.removeAttribute('autofocus');\n }\n\n await Promise.all([stopAnimations(this.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 = !this.isVisible;\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 // Forces the visibility of the drawer even with `open` set to false. This is needed for the `rail` and `sticky` variant of the syn-side-nav\n forceVisibility(isVisible: boolean) {\n this.isVisible = isVisible;\n this.drawer.hidden = isVisible ? false : !this.open;\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.isVisible ? 'false' : 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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,OAAO,aAAa;;;ACRhC,SAAS,qBAAqB,QAAgB;AACnD,SAAO,OAAO,OAAO,CAAC,EAAE,YAAY,IAAI,O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;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
|
+
}
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
} from "./chunk.5T3OGIGW.js";
|
|
4
4
|
import {
|
|
5
5
|
icon_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.BU5O7KW4.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.WVVQK5TE.js";
|
|
10
|
-
import {
|
|
11
|
-
LocalizeController
|
|
12
|
-
} from "./chunk.GIU3H3J3.js";
|
|
13
10
|
import {
|
|
14
11
|
watch
|
|
15
12
|
} from "./chunk.74IOULXM.js";
|
|
13
|
+
import {
|
|
14
|
+
LocalizeController
|
|
15
|
+
} from "./chunk.IPGLY3H4.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.62JHOU5H.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -52,7 +52,7 @@ var SynHeader = class extends SynergyElement {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
handleBurgerMenuToggle() {
|
|
55
|
-
if (this.sideNav &&
|
|
55
|
+
if (this.sideNav && this.sideNav.variant === "default" && !this.isSideNavAnimating) {
|
|
56
56
|
this.sideNav.open = !this.sideNav.open;
|
|
57
57
|
}
|
|
58
58
|
if (!this.isSideNavAnimating) {
|
|
@@ -65,7 +65,7 @@ var SynHeader = class extends SynergyElement {
|
|
|
65
65
|
*/
|
|
66
66
|
updateBurgerMenuBasedOnSideNav() {
|
|
67
67
|
if (this.sideNav) {
|
|
68
|
-
if (this.sideNav.
|
|
68
|
+
if (this.sideNav.variant !== "default") {
|
|
69
69
|
this.burgerMenu = "hidden";
|
|
70
70
|
} else {
|
|
71
71
|
this.burgerMenu = this.sideNav.open ? "open" : "closed";
|
|
@@ -104,7 +104,7 @@ var SynHeader = class extends SynergyElement {
|
|
|
104
104
|
this.sideNav = sideNav || document.querySelector("syn-side-nav");
|
|
105
105
|
if (this.sideNav) {
|
|
106
106
|
this.updateBurgerMenuBasedOnSideNav();
|
|
107
|
-
this.mutationObserver.observe(this.sideNav, { attributeFilter: ["open", "
|
|
107
|
+
this.mutationObserver.observe(this.sideNav, { attributeFilter: ["open", "variant"], attributes: true });
|
|
108
108
|
const isAnimating = () => {
|
|
109
109
|
this.isSideNavAnimating = true;
|
|
110
110
|
};
|
|
@@ -200,4 +200,4 @@ __decorateClass([
|
|
|
200
200
|
export {
|
|
201
201
|
SynHeader
|
|
202
202
|
};
|
|
203
|
-
//# sourceMappingURL=chunk.
|
|
203
|
+
//# sourceMappingURL=chunk.W24WTLHF.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/header/header.component.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit/static-html.js';\nimport { property, state } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './header.styles.js';\nimport SynIcon from '../icon/icon.js';\nimport type SynSideNav from '../side-nav/side-nav.component.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { watch } from '../../internal/watch.js';\n\n/**\n * @summary The <syn-header /> element provides a generic application header\n * that can be used to add applications name, toolbar and primary navigation.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-header--docs\n * @status stable\n * @since 1.10.0\n *\n * @slot label - The label for the header\n * @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided\n * @slot meta-navigation - The meta-navigation is used to add various application toolbar icons\n * Best used with `<syn-icon-button />` and `<syn-drop-down />`\n * @slot navigation - This slot can be used to add an optional horizontal navigation\n * @slot open-burger-menu-icon - An icon to use in lieu of the default burger-menu=open state.\n * The default close icon is a 'x'.\n * @slot closed-burger-menu-icon - An icon to use in lieu of the default burger-menu=closed state.\n * The default open icon is a burger menu.\n *\n * @event syn-burger-menu-closed - Emitted when the burger menu is toggled to closed\n * @event syn-burger-menu-hidden - Emitted when the burger menu is toggled to hidden\n * @event syn-burger-menu-open - Emitted when the burger menu is toggled to open\n *\n * @csspart base - The component's base wrapper\n * @csspart content - The wrapper most content items reside\n * @csspart logo - The wrapper the application logo resides in\n * @csspart label - The element wrapping the application name\n * @csspart meta-navigation - The Item wrapping the optional application menu\n * @csspart navigation - The wrapper that is holding the optional top navigation section\n * @csspart burger-menu-toggle-button - The button that toggles the burger menu\n */\nexport default class SynHeader extends SynergyElement {\n static styles: CSSResultGroup = [\n componentStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-icon': SynIcon,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'logo', 'label', 'meta-navigation', 'navigation');\n\n private readonly localize = new LocalizeController(this);\n\n /**\n * Internal mutation observer\n */\n private mutationObserver: MutationObserver;\n\n /*\n * #587: If the side nav is animating, we should not allow to trigger the burger menu\n */\n private isSideNavAnimating = false;\n\n /**\n * The headers label. If you need to display HTML, use the `label` slot instead.\n */\n @property() label = '';\n\n /**\n * Defines the current visibility and icon of the burger-menu icon.\n * The menu button is added automatically if the component finds a syn-side-nav in\n * variant=\"default\".\n * The following values can be used:\n * - hidden: The burger menu is not visible\n * - open: The burger menu is visible and shows the close icon\n * - closed: The burger menu is visible and shows the open icon\n */\n @property({ attribute: 'burger-menu', reflect: true }) burgerMenu: 'hidden' | 'open' | 'closed' = 'hidden';\n\n /**\n * The side nav\n */\n @state() private sideNav: SynSideNav | null;\n\n private toggleBurgerMenu() {\n switch (this.burgerMenu) {\n case 'closed': this.burgerMenu = 'open'; break;\n case 'open': this.burgerMenu = 'closed'; break;\n default: break;\n }\n }\n\n private handleBurgerMenuToggle() {\n // If there is a side-nav in variant=\"default\", toggle the open state!\n if (this.sideNav && this.sideNav.variant === 'default' && !this.isSideNavAnimating) {\n this.sideNav.open = !this.sideNav.open;\n }\n if (!this.isSideNavAnimating) {\n this.toggleBurgerMenu();\n }\n }\n\n /**\n * Automatically update the burger menu icon based\n * on the state of the side-nav, if one is connected.\n */\n private updateBurgerMenuBasedOnSideNav() {\n if (this.sideNav) {\n // Hide the burger menu icon if the side-nav is not variant=\"default\"\n if (this.sideNav.variant !== 'default') {\n this.burgerMenu = 'hidden';\n } else {\n this.burgerMenu = this.sideNav.open ? 'open' : 'closed';\n }\n }\n }\n\n @watch('burgerMenu', { waitUntilFirstUpdate: true })\n handleBurgerMenu() {\n const myEvt: keyof GlobalEventHandlersEventMap = `syn-burger-menu-${this.burgerMenu}`;\n this.emit(myEvt);\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n this.mutationObserver = new MutationObserver(() => this.updateBurgerMenuBasedOnSideNav());\n }\n\n firstUpdated() {\n // Search for a side-nav and use the first found in case of the connectSideNavigation method\n // is not used by the user.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n const sideNav = document.querySelector('syn-side-nav');\n this.connectSideNavigation(sideNav);\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // Remove observer\n this.mutationObserver.disconnect();\n }\n\n /**\n * Connect a `syn-side-nav` to add automatic interaction of the header with the side navigation\n * like showing the burger menu icon and open / close handling.\n *\n * If no side navigation is connected, the header will use the first `syn-side-nav` element it\n * finds.\n *\n * @param sideNav The side navigation to connect to the header\n */\n connectSideNavigation(sideNav: SynSideNav | null) {\n this.mutationObserver.disconnect();\n\n this.sideNav = sideNav || document.querySelector('syn-side-nav');\n if (this.sideNav) {\n // Need to call the method initially, if the side-nav is not open on connect time.\n // Otherwise the mutation observer won`t trigger the method.\n this.updateBurgerMenuBasedOnSideNav();\n this.mutationObserver.observe(this.sideNav, { attributeFilter: ['open', 'variant'], attributes: true });\n\n // #587: Make sure to not trigger the burger menu if the side nav is currently\n // animating and the user clicks on the burger menu button.\n const isAnimating = () => {\n this.isSideNavAnimating = true;\n };\n\n const isNotAnimating = () => {\n this.isSideNavAnimating = false;\n };\n\n this.sideNav.addEventListener('syn-show', isAnimating);\n this.sideNav.addEventListener('syn-hide', isAnimating);\n this.sideNav.addEventListener('syn-after-show', isNotAnimating);\n this.sideNav.addEventListener('syn-after-hide', isNotAnimating);\n }\n }\n\n render() {\n const hasNavigation = this.hasSlotController.test('navigation');\n const showBurgerMenu = this.burgerMenu !== 'hidden';\n return html`\n <header\n class=${classMap({\n header: true,\n 'header--has-burger-menu': showBurgerMenu,\n 'header--has-navigation': hasNavigation,\n })}\n part=\"base\"\n >\n <!-- .header__content -->\n <div part=\"content\" class=\"header__content\">\n\n ${showBurgerMenu\n ? html`\n <button\n aria-label=${this.localize.term(this.burgerMenu === 'closed' ? 'openMenu' : 'closeMenu')}\n class=\"header__burger-menu-toggle\"\n @click=${this.handleBurgerMenuToggle}\n part=\"burger-menu-toggle-button\"\n type=\"button\"\n >\n ${this.burgerMenu === 'open'\n ? html`\n <slot name=\"open-burger-menu-icon\">\n <syn-icon name=\"x-lg\" library=\"system\"></syn-icon>\n </slot>\n `\n : html`\n <slot name=\"closed-burger-menu-icon\">\n <syn-icon name=\"menu\" library=\"system\"></syn-icon>\n </slot>\n `}\n </button>\n `\n : ''}\n\n <div part=\"logo\" class=\"header__logo\">\n <slot name=\"logo\">\n <syn-icon name=\"logo-color\" library=\"system\" label=\"SICK Sensor Intelligence\"></syn-icon>\n </slot>\n </div>\n\n <div part=\"label\" class=\"header__label\">\n <slot name=\"label\">\n ${this.label}\n </slot>\n </div>\n\n <div part=\"meta-navigation\" class=\"header__meta-navigation\">\n <slot name=\"meta-navigation\"></slot>\n </div>\n </div>\n <!-- /.header__content -->\n\n <div part=\"navigation\" class=\"header__navigation\">\n <slot name=\"navigation\"></slot>\n </div>\n </header>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,UAAU,aAAa;AAyChC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAUE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,QAAQ,SAAS,mBAAmB,YAAY;AAE9H,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAUvD;AAAA;AAAA;AAAA,SAAQ,qBAAqB;AAKjB,iBAAQ;AAWmC,sBAA2C;AAAA;AAAA,EAO1F,mBAAmB;AACzB,YAAQ,KAAK,YAAY;AAAA,MACzB,KAAK;AAAU,aAAK,aAAa;AAAQ;AAAA,MACzC,KAAK;AAAQ,aAAK,aAAa;AAAU;AAAA,MACzC;AAAS;AAAA,IACT;AAAA,EACF;AAAA,EAEQ,yBAAyB;AAE/B,QAAI,KAAK,WAAW,KAAK,QAAQ,YAAY,aAAa,CAAC,KAAK,oBAAoB;AAClF,WAAK,QAAQ,OAAO,CAAC,KAAK,QAAQ;AAAA,IACpC;AACA,QAAI,CAAC,KAAK,oBAAoB;AAC5B,WAAK,iBAAiB;AAAA,IACxB;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMQ,iCAAiC;AACvC,QAAI,KAAK,SAAS;AAEhB,UAAI,KAAK,QAAQ,YAAY,WAAW;AACtC,aAAK,aAAa;AAAA,MACpB,OAAO;AACL,aAAK,aAAa,KAAK,QAAQ,OAAO,SAAS;AAAA,MACjD;AAAA,IACF;AAAA,EACF;AAAA,EAGA,mBAAmB;AACjB,UAAM,QAA2C,m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;AAAA;AAAA;AAAA,YAME,iBACI;AAAA;AAAA,iCAEiB,KAAK,SAAS,KAAK,KAAK,eAAe,WAAW,aAAa,WAAW,CAAC;AAAA;AAAA,6BAE/E,KAAK,sBAAsB;AAAA;AAAA;AAAA;AAAA,sBAIlC,KAAK,eAAe,SAClB;AAAA;AAAA;AAAA;AAAA,4BAKA;AAAA;AAAA;AAAA;AAAA,yBAIC;AAAA;AAAA,oBAGT,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAUF,KAAK,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAexB;AACF;AA9MqB,UACZ,SAAyB;AAAA,EAC9B;AAAA,EACA;AACF;AAJmB,UAMZ,eAAe;AAAA,EACpB,YAAY;AACd;AAmBY;AAAA,EAAX,SAAS;AAAA,GA3BS,UA2BP;AAW2C;AAAA,EAAtD,SAAS,EAAE,WAAW,eAAe,SAAS,KAAK,CAAC;AAAA,GAtClC,UAsCoC;AAKtC;AAAA,EAAhB,MAAM;AAAA,GA3CY,UA2CF;AAoCjB;AAAA,EADC,MAAM,cAAc,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA9EhC,UA+EnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
badge_custom_styles_default
|
|
3
|
-
} from "./chunk.J6CGTLVH.js";
|
|
4
|
-
import {
|
|
5
|
-
badge_styles_default
|
|
6
|
-
} from "./chunk.Y5TMYX2L.js";
|
|
7
1
|
import {
|
|
8
2
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.IPGLY3H4.js";
|
|
10
4
|
import {
|
|
11
5
|
enableDefaultSettings
|
|
12
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.7R4JCT5J.js";
|
|
13
7
|
import {
|
|
14
8
|
component_styles_default
|
|
15
9
|
} from "./chunk.NLYVOJGK.js";
|
|
16
10
|
import {
|
|
17
11
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.62JHOU5H.js";
|
|
13
|
+
import {
|
|
14
|
+
badge_custom_styles_default
|
|
15
|
+
} from "./chunk.J6CGTLVH.js";
|
|
16
|
+
import {
|
|
17
|
+
badge_styles_default
|
|
18
|
+
} from "./chunk.Y5TMYX2L.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -66,4 +66,4 @@ SynBadge = __decorateClass([
|
|
|
66
66
|
export {
|
|
67
67
|
SynBadge
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=chunk.
|
|
69
|
+
//# sourceMappingURL=chunk.W56BX5IM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynValidate
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BBLILCDY.js";
|
|
4
4
|
|
|
5
5
|
// src/components/validate/validate.ts
|
|
6
6
|
var validate_default = SynValidate;
|
|
@@ -9,4 +9,4 @@ SynValidate.define("syn-validate");
|
|
|
9
9
|
export {
|
|
10
10
|
validate_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.WCPQBS67.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.O644HRW3.js";
|
|
7
7
|
import {
|
|
8
8
|
SynPopup
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.N634EXYZ.js";
|
|
10
10
|
import {
|
|
11
11
|
waitForEvent
|
|
12
12
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
getAnimation,
|
|
20
20
|
setDefaultAnimation
|
|
21
21
|
} from "./chunk.HQ6QUSK7.js";
|
|
22
|
-
import {
|
|
23
|
-
LocalizeController
|
|
24
|
-
} from "./chunk.GIU3H3J3.js";
|
|
25
22
|
import {
|
|
26
23
|
watch
|
|
27
24
|
} from "./chunk.74IOULXM.js";
|
|
25
|
+
import {
|
|
26
|
+
LocalizeController
|
|
27
|
+
} from "./chunk.IPGLY3H4.js";
|
|
28
28
|
import {
|
|
29
29
|
component_styles_default
|
|
30
30
|
} from "./chunk.NLYVOJGK.js";
|
|
31
31
|
import {
|
|
32
32
|
SynergyElement
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.62JHOU5H.js";
|
|
34
34
|
import {
|
|
35
35
|
__decorateClass
|
|
36
36
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -275,4 +275,4 @@ setDefaultAnimation("tooltip.hide", {
|
|
|
275
275
|
export {
|
|
276
276
|
SynTooltip
|
|
277
277
|
};
|
|
278
|
-
//# sourceMappingURL=chunk.
|
|
278
|
+
//# sourceMappingURL=chunk.WIDU3JFX.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
} from "./chunk.DZ7YIR5N.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3UCVZ2N3.js";
|
|
10
10
|
import {
|
|
11
11
|
enableDefaultSettings
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.7R4JCT5J.js";
|
|
13
13
|
import {
|
|
14
14
|
component_styles_default
|
|
15
15
|
} from "./chunk.NLYVOJGK.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.62JHOU5H.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -144,4 +144,4 @@ SynIconButton = __decorateClass([
|
|
|
144
144
|
export {
|
|
145
145
|
SynIconButton
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk.
|
|
147
|
+
//# sourceMappingURL=chunk.XACPLHJJ.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk.QUM76UHV.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.IPGLY3H4.js";
|
|
10
10
|
import {
|
|
11
11
|
component_styles_default
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.62JHOU5H.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -68,4 +68,4 @@ __decorateClass([
|
|
|
68
68
|
export {
|
|
69
69
|
SynProgressBar
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=chunk.
|
|
71
|
+
//# sourceMappingURL=chunk.XRSPUMKG.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk.WXVOTRW5.js";
|
|
17
17
|
import {
|
|
18
18
|
SynIconButton
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.XACPLHJJ.js";
|
|
20
20
|
import {
|
|
21
21
|
waitForEvent
|
|
22
22
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
HasSlotController
|
|
33
33
|
} from "./chunk.WVVQK5TE.js";
|
|
34
|
-
import {
|
|
35
|
-
LocalizeController
|
|
36
|
-
} from "./chunk.GIU3H3J3.js";
|
|
37
34
|
import {
|
|
38
35
|
watch
|
|
39
36
|
} from "./chunk.74IOULXM.js";
|
|
37
|
+
import {
|
|
38
|
+
LocalizeController
|
|
39
|
+
} from "./chunk.IPGLY3H4.js";
|
|
40
40
|
import {
|
|
41
41
|
component_styles_default
|
|
42
42
|
} from "./chunk.NLYVOJGK.js";
|
|
43
43
|
import {
|
|
44
44
|
SynergyElement
|
|
45
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.62JHOU5H.js";
|
|
46
46
|
import {
|
|
47
47
|
__decorateClass
|
|
48
48
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -292,4 +292,4 @@ setDefaultAnimation("dialog.overlay.hide", {
|
|
|
292
292
|
export {
|
|
293
293
|
SynDialog
|
|
294
294
|
};
|
|
295
|
-
//# sourceMappingURL=chunk.
|
|
295
|
+
//# sourceMappingURL=chunk.XVFMAH3Z.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSideNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.SBGVZBBD.js";
|
|
4
4
|
|
|
5
5
|
// src/components/side-nav/side-nav.ts
|
|
6
6
|
var side_nav_default = SynSideNav;
|
|
@@ -9,4 +9,4 @@ SynSideNav.define("syn-side-nav");
|
|
|
9
9
|
export {
|
|
10
10
|
side_nav_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.YGQ7VBLW.js.map
|