@synergy-design-system/components 3.5.0 → 3.6.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/dist/chunks/{chunk.MCAB6KY5.js → chunk.2DWIAD22.js} +2 -2
- package/dist/chunks/{chunk.DEJAPNIZ.js → chunk.3334XOIY.js} +25 -17
- package/dist/chunks/chunk.3334XOIY.js.map +7 -0
- package/dist/chunks/{chunk.UOEHTGNM.js → chunk.34I3S3Q5.js} +2 -2
- package/dist/chunks/{chunk.OY6ZX6TH.js → chunk.3UJMEQUN.js} +81 -15
- package/dist/chunks/chunk.3UJMEQUN.js.map +7 -0
- package/dist/chunks/{chunk.FOH4KP4A.js → chunk.44VIEEDD.js} +3 -3
- package/dist/chunks/{chunk.YACUYJZN.js → chunk.4BEGBAQD.js} +2 -2
- package/dist/chunks/{chunk.SWMV7T2O.js → chunk.4OMS443H.js} +4 -4
- package/dist/chunks/{chunk.THNHZ3LC.js → chunk.4Y6OKSYI.js} +2 -2
- package/dist/chunks/{chunk.BZMKXI2L.js → chunk.5WQAKFFK.js} +2 -2
- package/dist/chunks/{chunk.N4Y2OUEA.js → chunk.5YRNPDSI.js} +2 -2
- package/dist/chunks/{chunk.AVH3ZNCM.js → chunk.63IQVXUD.js} +2 -2
- package/dist/chunks/{chunk.XWUVIVOV.js → chunk.6EHTMWUQ.js} +2 -2
- package/dist/chunks/{chunk.IFEFFC3Q.js → chunk.6EWCMDOQ.js} +17 -17
- package/dist/chunks/{chunk.TBZAI6T6.js → chunk.6GMIINJO.js} +3 -3
- package/dist/chunks/{chunk.K5OSYXNU.js → chunk.6VYVMXVV.js} +2 -2
- package/dist/chunks/{chunk.XQZR2X4X.js → chunk.7GX46BNP.js} +2 -2
- package/dist/chunks/{chunk.SKQK3F66.js → chunk.7WQVBHRS.js} +2 -2
- package/dist/chunks/{chunk.SN2VEGTZ.js → chunk.A7YINQHA.js} +2 -2
- package/dist/chunks/{chunk.UQ65IBBL.js → chunk.AD4WKLKY.js} +2 -2
- package/dist/chunks/{chunk.PODVUIE6.js → chunk.B4UA7LU7.js} +3 -3
- package/dist/chunks/{chunk.DYE6F2Y6.js → chunk.BIGAPOOQ.js} +2 -2
- package/dist/chunks/{chunk.X4NXSNI6.js → chunk.BLS5NMGM.js} +2 -2
- package/dist/chunks/{chunk.WUKKH3NE.js → chunk.BWNWEGKQ.js} +2 -2
- package/dist/chunks/{chunk.VH6SKOPX.js → chunk.BYGCAEBC.js} +2 -2
- package/dist/chunks/{chunk.GZVYO3UJ.js → chunk.DHCEQX56.js} +2 -2
- package/dist/chunks/{chunk.6A2AHHWZ.js → chunk.DQIPVU4J.js} +2 -2
- package/dist/chunks/{chunk.BBPFCDZW.js → chunk.E3J4FZS3.js} +2 -2
- package/dist/chunks/{chunk.DFS7LPJO.js → chunk.EEVLMRYA.js} +2 -2
- package/dist/chunks/{chunk.YOFWLXEH.js → chunk.EQUDFX74.js} +16 -10
- package/dist/chunks/chunk.EQUDFX74.js.map +7 -0
- package/dist/chunks/{chunk.UCRA4FZW.js → chunk.ESXNQJQU.js} +2 -2
- package/dist/chunks/{chunk.YGMDIJUQ.js → chunk.EX2D55AB.js} +2 -2
- package/dist/chunks/{chunk.UNTUMNPO.js → chunk.FGF4ENWR.js} +3 -3
- package/dist/chunks/{chunk.RY3ZM7MQ.js → chunk.FQ6KKYNN.js} +4 -4
- package/dist/chunks/{chunk.V4GFOKBI.js → chunk.FUWJV6FF.js} +2 -2
- package/dist/chunks/{chunk.V4GFOKBI.js.map → chunk.FUWJV6FF.js.map} +1 -1
- package/dist/chunks/{chunk.XZ7DDRXL.js → chunk.GI3MHRT5.js} +4 -4
- package/dist/chunks/{chunk.G7UFPFQ2.js → chunk.GKWU7STM.js} +4 -4
- package/dist/chunks/{chunk.YUUXCVT2.js → chunk.HQQFUCQ6.js} +2 -2
- package/dist/chunks/{chunk.RSTYXHB5.js → chunk.HXZVWZL3.js} +2 -2
- package/dist/chunks/{chunk.GT6WAUZ7.js → chunk.IPLC773L.js} +2 -2
- package/dist/chunks/{chunk.CMCJB5AA.js → chunk.IR3P3QGG.js} +4 -4
- package/dist/chunks/{chunk.V6TCG5BQ.js → chunk.IV3FR4CG.js} +5 -5
- package/dist/chunks/{chunk.GIEAMHSU.js → chunk.JBNR3EZZ.js} +4 -7
- package/dist/chunks/chunk.JBNR3EZZ.js.map +7 -0
- package/dist/chunks/{chunk.RZ3REQWL.js → chunk.JXCCMLXD.js} +2 -2
- package/dist/chunks/{chunk.MCKS4JLW.js → chunk.K7FUMJK2.js} +3 -3
- package/dist/chunks/{chunk.3AZ6O5UW.js → chunk.KD57IQV6.js} +7 -7
- package/dist/chunks/{chunk.7J4TXMXH.js → chunk.KHL5C52A.js} +2 -2
- package/dist/chunks/{chunk.7TPOI264.js → chunk.KO63GPHO.js} +8 -8
- package/dist/chunks/{chunk.5T4HS4EI.js → chunk.KOYEOD56.js} +2 -2
- package/dist/chunks/{chunk.BVFTZ3AB.js → chunk.KXTBRSLW.js} +2 -2
- package/dist/chunks/{chunk.JCWTUOY2.js → chunk.KZJR6HZD.js} +9 -9
- package/dist/chunks/{chunk.OZ3LPRZE.js → chunk.LA2QMOXI.js} +2 -2
- package/dist/chunks/{chunk.FKDUVEOP.js → chunk.LGSQ6DML.js} +4 -4
- package/dist/chunks/{chunk.VHCBBPBS.js → chunk.LJYCM7V2.js} +5 -5
- package/dist/chunks/{chunk.CJLZ3QMG.js → chunk.LYQYSN3L.js} +4 -4
- package/dist/chunks/{chunk.Q7G25NQW.js → chunk.M4LSKQMC.js} +2 -2
- package/dist/chunks/{chunk.STHUTCU7.js → chunk.MHSMXQPS.js} +3 -3
- package/dist/chunks/{chunk.RHL3SPJO.js → chunk.MNS3RHQ3.js} +6 -6
- package/dist/chunks/{chunk.H63OT7RB.js → chunk.MOGC7VFU.js} +5 -5
- package/dist/chunks/{chunk.KT6MHQM6.js → chunk.MTRKCZX4.js} +12 -10
- package/dist/chunks/chunk.MTRKCZX4.js.map +7 -0
- package/dist/chunks/{chunk.SBLP34SQ.js → chunk.N25AMXDL.js} +2 -2
- package/dist/chunks/{chunk.6L4RCUNM.js → chunk.N2YN3NX6.js} +6 -9
- package/dist/chunks/chunk.N2YN3NX6.js.map +7 -0
- package/dist/chunks/{chunk.CV7OGSN7.js → chunk.NB2UOW3O.js} +5 -5
- package/dist/chunks/{chunk.7RZ27FQL.js → chunk.NIQMC4FW.js} +6 -6
- package/dist/chunks/{chunk.2BATB6NO.js → chunk.NMWM3BP7.js} +4 -4
- package/dist/chunks/{chunk.UUECFETB.js → chunk.O34OXLGO.js} +2 -2
- package/dist/chunks/{chunk.FKVCNOHV.js → chunk.OF4BZKDQ.js} +4 -4
- package/dist/chunks/{chunk.BQ7JABKS.js → chunk.OK2D4PQ6.js} +3 -3
- package/dist/chunks/{chunk.CKADV3OI.js → chunk.OK2D5LNY.js} +4 -4
- package/dist/chunks/{chunk.XCFOLSPD.js → chunk.P7LAZVIX.js} +2 -2
- package/dist/chunks/{chunk.KGECDG22.js → chunk.PMRBUT43.js} +2 -2
- package/dist/chunks/{chunk.LKMV5MVK.js → chunk.POUKY545.js} +3 -3
- package/dist/chunks/{chunk.LALGMGC2.js → chunk.PQDMVEQ5.js} +2 -2
- package/dist/chunks/{chunk.QGLCODBD.js → chunk.Q2K7NQCB.js} +2 -2
- package/dist/chunks/{chunk.5RI2MXEU.js → chunk.SEGXW66J.js} +3 -3
- package/dist/chunks/{chunk.JJ2K4ORZ.js → chunk.SRVAU77I.js} +5 -5
- package/dist/chunks/{chunk.CPC3JTDA.js → chunk.SSFAGBRV.js} +4 -4
- package/dist/chunks/{chunk.J3GDNLNN.js → chunk.STXZTZMY.js} +2 -2
- package/dist/chunks/{chunk.EUQYBYAZ.js → chunk.SUFEDTS2.js} +2 -2
- package/dist/chunks/{chunk.ZJ6JMFVP.js → chunk.T7XTHFR7.js} +2 -2
- package/dist/chunks/{chunk.GCISSJZP.js → chunk.TGTVJBXC.js} +2 -2
- package/dist/chunks/{chunk.O7OELAMY.js → chunk.TPS2SF3S.js} +6 -6
- package/dist/chunks/{chunk.3XQ5VLXY.js → chunk.TSRZZOKK.js} +2 -2
- package/dist/chunks/{chunk.JHJFFBNL.js → chunk.U6SWVYGR.js} +3 -3
- package/dist/chunks/{chunk.TSWB7UFK.js → chunk.UA5B6CPN.js} +82 -15
- package/dist/chunks/chunk.UA5B6CPN.js.map +7 -0
- package/dist/chunks/{chunk.2YBC7C2K.js → chunk.VLCNIRQP.js} +3 -3
- package/dist/chunks/{chunk.FFAHZBAJ.js → chunk.VO4T33T2.js} +2 -2
- package/dist/chunks/{chunk.IPWLCVHW.js → chunk.W4UYS7NY.js} +2 -2
- package/dist/chunks/{chunk.BJUQE5YL.js → chunk.WAFGHUVD.js} +2 -2
- package/dist/chunks/{chunk.SFBSB7EM.js → chunk.WBOHZGDF.js} +5 -5
- package/dist/chunks/{chunk.NTBDBGG7.js → chunk.WDW65L3W.js} +2 -2
- package/dist/chunks/{chunk.MJA5HEFN.js → chunk.WVO75K4L.js} +2 -2
- package/dist/chunks/{chunk.XLYCEJU4.js → chunk.XHZZLHOD.js} +2 -2
- package/dist/chunks/{chunk.3DCW4HDA.js → chunk.XJSWRSR5.js} +2 -2
- package/dist/chunks/{chunk.KUTXV7RO.js → chunk.YFDRVJUV.js} +2 -2
- package/dist/chunks/{chunk.XUAUB2UI.js → chunk.YFETCWLT.js} +5 -5
- package/dist/chunks/{chunk.UE2OCWAE.js → chunk.ZBHF3VT7.js} +2 -2
- package/dist/chunks/{chunk.TDWLNFH4.js → chunk.ZCUQMK2T.js} +2 -2
- package/dist/chunks/{chunk.EAEQ3AGO.js → chunk.ZEBIZ2UZ.js} +3 -3
- package/dist/chunks/{chunk.MZJLG4BF.js → chunk.ZKCT75DI.js} +2 -2
- package/dist/chunks/{chunk.WEOHOC3C.js → chunk.ZNEQLWGZ.js} +37 -3
- package/dist/chunks/chunk.ZNEQLWGZ.js.map +7 -0
- package/dist/chunks/{chunk.Y5XMLHNP.js → chunk.ZRA73PRW.js} +2 -2
- package/dist/chunks/{chunk.EX4R7WUE.js → chunk.ZZAW2A7F.js} +3 -3
- package/dist/components/accordion/accordion.component.js +5 -5
- package/dist/components/accordion/accordion.js +6 -6
- package/dist/components/alert/alert.component.js +10 -11
- package/dist/components/alert/alert.js +11 -12
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +5 -5
- package/dist/components/badge/badge.js +6 -6
- package/dist/components/breadcrumb/breadcrumb.component.js +5 -5
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- 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 +10 -10
- package/dist/components/button/button.js +11 -11
- package/dist/components/button-group/button-group.component.js +5 -5
- package/dist/components/button-group/button-group.js +6 -6
- 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 +14 -15
- package/dist/components/combobox/combobox.js +15 -16
- package/dist/components/details/details.component.js +8 -8
- package/dist/components/details/details.js +9 -9
- package/dist/components/dialog/dialog.component.js +9 -9
- package/dist/components/dialog/dialog.js +10 -10
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +9 -9
- package/dist/components/drawer/drawer.js +10 -10
- package/dist/components/dropdown/dropdown.component.js +4 -5
- package/dist/components/dropdown/dropdown.js +5 -6
- package/dist/components/file/file.component.js +11 -11
- package/dist/components/file/file.js +12 -12
- package/dist/components/header/header.component.js +6 -6
- package/dist/components/header/header.js +7 -7
- 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.migration.js +3 -3
- 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 +10 -10
- package/dist/components/input/input.js +11 -11
- package/dist/components/menu/menu.component.js +3 -3
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/menu-item/menu-item.component.js +9 -10
- package/dist/components/menu-item/menu-item.js +10 -11
- package/dist/components/menu-label/menu-label.component.js +4 -4
- package/dist/components/menu-label/menu-label.js +5 -5
- package/dist/components/nav-item/nav-item.component.js +6 -6
- package/dist/components/nav-item/nav-item.js +7 -7
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +8 -8
- package/dist/components/option/option.js +9 -9
- package/dist/components/popup/popup.component.js +3 -4
- package/dist/components/popup/popup.js +4 -5
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.js +13 -14
- package/dist/components/prio-nav/prio-nav.js +14 -15
- 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 +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 +10 -12
- package/dist/components/range/range.js +11 -13
- 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 +12 -13
- package/dist/components/select/select.js +13 -14
- package/dist/components/side-nav/side-nav.component.js +14 -14
- package/dist/components/side-nav/side-nav.js +15 -15
- package/dist/components/spinner/spinner.component.js +3 -3
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/switch/switch.component.js +5 -5
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/tab/tab.component.js +9 -9
- package/dist/components/tab/tab.js +10 -10
- package/dist/components/tab-group/tab-group.component.js +10 -10
- package/dist/components/tab-group/tab-group.js +11 -11
- 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 +9 -9
- package/dist/components/tag/tag.js +10 -10
- package/dist/components/textarea/textarea.component.js +5 -5
- package/dist/components/textarea/textarea.js +6 -6
- package/dist/components/tooltip/tooltip.component.d.ts +6 -0
- package/dist/components/tooltip/tooltip.component.js +5 -7
- package/dist/components/tooltip/tooltip.js +6 -8
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/validate/utility.d.ts +11 -0
- package/dist/components/validate/utility.js +4 -2
- package/dist/components/validate/validate.component.d.ts +21 -2
- package/dist/components/validate/validate.component.js +16 -13
- package/dist/components/validate/validate.js +17 -14
- package/dist/custom-elements.json +66 -8
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +133 -136
- 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/vscode.html-custom-data.json +7 -3
- package/package.json +5 -5
- package/dist/chunks/chunk.36EHOOOO.js +0 -23
- package/dist/chunks/chunk.36EHOOOO.js.map +0 -7
- package/dist/chunks/chunk.6L4RCUNM.js.map +0 -7
- package/dist/chunks/chunk.CCY6IYFD.js +0 -107
- package/dist/chunks/chunk.CCY6IYFD.js.map +0 -7
- package/dist/chunks/chunk.DEJAPNIZ.js.map +0 -7
- package/dist/chunks/chunk.E7LBPRDC.js +0 -18
- package/dist/chunks/chunk.E7LBPRDC.js.map +0 -7
- package/dist/chunks/chunk.GIEAMHSU.js.map +0 -7
- package/dist/chunks/chunk.KT6MHQM6.js.map +0 -7
- package/dist/chunks/chunk.OY6ZX6TH.js.map +0 -7
- package/dist/chunks/chunk.TSWB7UFK.js.map +0 -7
- package/dist/chunks/chunk.WEOHOC3C.js.map +0 -7
- package/dist/chunks/chunk.YOFWLXEH.js.map +0 -7
- package/dist/components/alert/alert.custom.styles.d.ts +0 -2
- package/dist/components/alert/alert.custom.styles.js +0 -8
- package/dist/components/alert/alert.custom.styles.js.map +0 -7
- package/dist/components/popup/popup.custom.styles.d.ts +0 -2
- package/dist/components/popup/popup.custom.styles.js +0 -8
- package/dist/components/popup/popup.custom.styles.js.map +0 -7
- package/dist/components/tooltip/tooltip.custom.styles.d.ts +0 -2
- package/dist/components/tooltip/tooltip.custom.styles.js +0 -8
- package/dist/components/tooltip/tooltip.custom.styles.js.map +0 -7
- /package/dist/chunks/{chunk.MCAB6KY5.js.map → chunk.2DWIAD22.js.map} +0 -0
- /package/dist/chunks/{chunk.UOEHTGNM.js.map → chunk.34I3S3Q5.js.map} +0 -0
- /package/dist/chunks/{chunk.FOH4KP4A.js.map → chunk.44VIEEDD.js.map} +0 -0
- /package/dist/chunks/{chunk.YACUYJZN.js.map → chunk.4BEGBAQD.js.map} +0 -0
- /package/dist/chunks/{chunk.SWMV7T2O.js.map → chunk.4OMS443H.js.map} +0 -0
- /package/dist/chunks/{chunk.THNHZ3LC.js.map → chunk.4Y6OKSYI.js.map} +0 -0
- /package/dist/chunks/{chunk.BZMKXI2L.js.map → chunk.5WQAKFFK.js.map} +0 -0
- /package/dist/chunks/{chunk.N4Y2OUEA.js.map → chunk.5YRNPDSI.js.map} +0 -0
- /package/dist/chunks/{chunk.AVH3ZNCM.js.map → chunk.63IQVXUD.js.map} +0 -0
- /package/dist/chunks/{chunk.XWUVIVOV.js.map → chunk.6EHTMWUQ.js.map} +0 -0
- /package/dist/chunks/{chunk.IFEFFC3Q.js.map → chunk.6EWCMDOQ.js.map} +0 -0
- /package/dist/chunks/{chunk.TBZAI6T6.js.map → chunk.6GMIINJO.js.map} +0 -0
- /package/dist/chunks/{chunk.K5OSYXNU.js.map → chunk.6VYVMXVV.js.map} +0 -0
- /package/dist/chunks/{chunk.XQZR2X4X.js.map → chunk.7GX46BNP.js.map} +0 -0
- /package/dist/chunks/{chunk.SKQK3F66.js.map → chunk.7WQVBHRS.js.map} +0 -0
- /package/dist/chunks/{chunk.SN2VEGTZ.js.map → chunk.A7YINQHA.js.map} +0 -0
- /package/dist/chunks/{chunk.UQ65IBBL.js.map → chunk.AD4WKLKY.js.map} +0 -0
- /package/dist/chunks/{chunk.PODVUIE6.js.map → chunk.B4UA7LU7.js.map} +0 -0
- /package/dist/chunks/{chunk.DYE6F2Y6.js.map → chunk.BIGAPOOQ.js.map} +0 -0
- /package/dist/chunks/{chunk.X4NXSNI6.js.map → chunk.BLS5NMGM.js.map} +0 -0
- /package/dist/chunks/{chunk.WUKKH3NE.js.map → chunk.BWNWEGKQ.js.map} +0 -0
- /package/dist/chunks/{chunk.VH6SKOPX.js.map → chunk.BYGCAEBC.js.map} +0 -0
- /package/dist/chunks/{chunk.GZVYO3UJ.js.map → chunk.DHCEQX56.js.map} +0 -0
- /package/dist/chunks/{chunk.6A2AHHWZ.js.map → chunk.DQIPVU4J.js.map} +0 -0
- /package/dist/chunks/{chunk.BBPFCDZW.js.map → chunk.E3J4FZS3.js.map} +0 -0
- /package/dist/chunks/{chunk.DFS7LPJO.js.map → chunk.EEVLMRYA.js.map} +0 -0
- /package/dist/chunks/{chunk.UCRA4FZW.js.map → chunk.ESXNQJQU.js.map} +0 -0
- /package/dist/chunks/{chunk.YGMDIJUQ.js.map → chunk.EX2D55AB.js.map} +0 -0
- /package/dist/chunks/{chunk.UNTUMNPO.js.map → chunk.FGF4ENWR.js.map} +0 -0
- /package/dist/chunks/{chunk.RY3ZM7MQ.js.map → chunk.FQ6KKYNN.js.map} +0 -0
- /package/dist/chunks/{chunk.XZ7DDRXL.js.map → chunk.GI3MHRT5.js.map} +0 -0
- /package/dist/chunks/{chunk.G7UFPFQ2.js.map → chunk.GKWU7STM.js.map} +0 -0
- /package/dist/chunks/{chunk.YUUXCVT2.js.map → chunk.HQQFUCQ6.js.map} +0 -0
- /package/dist/chunks/{chunk.RSTYXHB5.js.map → chunk.HXZVWZL3.js.map} +0 -0
- /package/dist/chunks/{chunk.GT6WAUZ7.js.map → chunk.IPLC773L.js.map} +0 -0
- /package/dist/chunks/{chunk.CMCJB5AA.js.map → chunk.IR3P3QGG.js.map} +0 -0
- /package/dist/chunks/{chunk.V6TCG5BQ.js.map → chunk.IV3FR4CG.js.map} +0 -0
- /package/dist/chunks/{chunk.RZ3REQWL.js.map → chunk.JXCCMLXD.js.map} +0 -0
- /package/dist/chunks/{chunk.MCKS4JLW.js.map → chunk.K7FUMJK2.js.map} +0 -0
- /package/dist/chunks/{chunk.3AZ6O5UW.js.map → chunk.KD57IQV6.js.map} +0 -0
- /package/dist/chunks/{chunk.7J4TXMXH.js.map → chunk.KHL5C52A.js.map} +0 -0
- /package/dist/chunks/{chunk.7TPOI264.js.map → chunk.KO63GPHO.js.map} +0 -0
- /package/dist/chunks/{chunk.5T4HS4EI.js.map → chunk.KOYEOD56.js.map} +0 -0
- /package/dist/chunks/{chunk.BVFTZ3AB.js.map → chunk.KXTBRSLW.js.map} +0 -0
- /package/dist/chunks/{chunk.JCWTUOY2.js.map → chunk.KZJR6HZD.js.map} +0 -0
- /package/dist/chunks/{chunk.OZ3LPRZE.js.map → chunk.LA2QMOXI.js.map} +0 -0
- /package/dist/chunks/{chunk.FKDUVEOP.js.map → chunk.LGSQ6DML.js.map} +0 -0
- /package/dist/chunks/{chunk.VHCBBPBS.js.map → chunk.LJYCM7V2.js.map} +0 -0
- /package/dist/chunks/{chunk.CJLZ3QMG.js.map → chunk.LYQYSN3L.js.map} +0 -0
- /package/dist/chunks/{chunk.Q7G25NQW.js.map → chunk.M4LSKQMC.js.map} +0 -0
- /package/dist/chunks/{chunk.STHUTCU7.js.map → chunk.MHSMXQPS.js.map} +0 -0
- /package/dist/chunks/{chunk.RHL3SPJO.js.map → chunk.MNS3RHQ3.js.map} +0 -0
- /package/dist/chunks/{chunk.H63OT7RB.js.map → chunk.MOGC7VFU.js.map} +0 -0
- /package/dist/chunks/{chunk.SBLP34SQ.js.map → chunk.N25AMXDL.js.map} +0 -0
- /package/dist/chunks/{chunk.CV7OGSN7.js.map → chunk.NB2UOW3O.js.map} +0 -0
- /package/dist/chunks/{chunk.7RZ27FQL.js.map → chunk.NIQMC4FW.js.map} +0 -0
- /package/dist/chunks/{chunk.2BATB6NO.js.map → chunk.NMWM3BP7.js.map} +0 -0
- /package/dist/chunks/{chunk.UUECFETB.js.map → chunk.O34OXLGO.js.map} +0 -0
- /package/dist/chunks/{chunk.FKVCNOHV.js.map → chunk.OF4BZKDQ.js.map} +0 -0
- /package/dist/chunks/{chunk.BQ7JABKS.js.map → chunk.OK2D4PQ6.js.map} +0 -0
- /package/dist/chunks/{chunk.CKADV3OI.js.map → chunk.OK2D5LNY.js.map} +0 -0
- /package/dist/chunks/{chunk.XCFOLSPD.js.map → chunk.P7LAZVIX.js.map} +0 -0
- /package/dist/chunks/{chunk.KGECDG22.js.map → chunk.PMRBUT43.js.map} +0 -0
- /package/dist/chunks/{chunk.LKMV5MVK.js.map → chunk.POUKY545.js.map} +0 -0
- /package/dist/chunks/{chunk.LALGMGC2.js.map → chunk.PQDMVEQ5.js.map} +0 -0
- /package/dist/chunks/{chunk.QGLCODBD.js.map → chunk.Q2K7NQCB.js.map} +0 -0
- /package/dist/chunks/{chunk.5RI2MXEU.js.map → chunk.SEGXW66J.js.map} +0 -0
- /package/dist/chunks/{chunk.JJ2K4ORZ.js.map → chunk.SRVAU77I.js.map} +0 -0
- /package/dist/chunks/{chunk.CPC3JTDA.js.map → chunk.SSFAGBRV.js.map} +0 -0
- /package/dist/chunks/{chunk.J3GDNLNN.js.map → chunk.STXZTZMY.js.map} +0 -0
- /package/dist/chunks/{chunk.EUQYBYAZ.js.map → chunk.SUFEDTS2.js.map} +0 -0
- /package/dist/chunks/{chunk.ZJ6JMFVP.js.map → chunk.T7XTHFR7.js.map} +0 -0
- /package/dist/chunks/{chunk.GCISSJZP.js.map → chunk.TGTVJBXC.js.map} +0 -0
- /package/dist/chunks/{chunk.O7OELAMY.js.map → chunk.TPS2SF3S.js.map} +0 -0
- /package/dist/chunks/{chunk.3XQ5VLXY.js.map → chunk.TSRZZOKK.js.map} +0 -0
- /package/dist/chunks/{chunk.JHJFFBNL.js.map → chunk.U6SWVYGR.js.map} +0 -0
- /package/dist/chunks/{chunk.2YBC7C2K.js.map → chunk.VLCNIRQP.js.map} +0 -0
- /package/dist/chunks/{chunk.FFAHZBAJ.js.map → chunk.VO4T33T2.js.map} +0 -0
- /package/dist/chunks/{chunk.IPWLCVHW.js.map → chunk.W4UYS7NY.js.map} +0 -0
- /package/dist/chunks/{chunk.BJUQE5YL.js.map → chunk.WAFGHUVD.js.map} +0 -0
- /package/dist/chunks/{chunk.SFBSB7EM.js.map → chunk.WBOHZGDF.js.map} +0 -0
- /package/dist/chunks/{chunk.NTBDBGG7.js.map → chunk.WDW65L3W.js.map} +0 -0
- /package/dist/chunks/{chunk.MJA5HEFN.js.map → chunk.WVO75K4L.js.map} +0 -0
- /package/dist/chunks/{chunk.XLYCEJU4.js.map → chunk.XHZZLHOD.js.map} +0 -0
- /package/dist/chunks/{chunk.3DCW4HDA.js.map → chunk.XJSWRSR5.js.map} +0 -0
- /package/dist/chunks/{chunk.KUTXV7RO.js.map → chunk.YFDRVJUV.js.map} +0 -0
- /package/dist/chunks/{chunk.XUAUB2UI.js.map → chunk.YFETCWLT.js.map} +0 -0
- /package/dist/chunks/{chunk.UE2OCWAE.js.map → chunk.ZBHF3VT7.js.map} +0 -0
- /package/dist/chunks/{chunk.TDWLNFH4.js.map → chunk.ZCUQMK2T.js.map} +0 -0
- /package/dist/chunks/{chunk.EAEQ3AGO.js.map → chunk.ZEBIZ2UZ.js.map} +0 -0
- /package/dist/chunks/{chunk.MZJLG4BF.js.map → chunk.ZKCT75DI.js.map} +0 -0
- /package/dist/chunks/{chunk.Y5XMLHNP.js.map → chunk.ZRA73PRW.js.map} +0 -0
- /package/dist/chunks/{chunk.EX4R7WUE.js.map → chunk.ZZAW2A7F.js.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/popup/popup.component.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable */\nimport { arrow, autoUpdate, computePosition, flip, offset, platform, shift, size } from '@floating-ui/dom';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { offsetParent } from 'composed-offset-position';\nimport { property, query } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './popup.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nconst SUPPORTS_POPOVER = globalThis?.HTMLElement?.prototype.hasOwnProperty('popover');\n\nexport interface VirtualElement {\n getBoundingClientRect: () => DOMRect;\n contextElement?: Element;\n}\n\nfunction isVirtualElement(e: unknown): e is VirtualElement {\n return (\n e !== null &&\n typeof e === 'object' &&\n 'getBoundingClientRect' in e &&\n ('contextElement' in e ? e.contextElement instanceof Element : true)\n );\n}\n\n/**\n * @summary Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-popup--docs\n * @status stable\n * @since 2.0\n *\n * @event syn-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive\n * operations in your listener or consider debouncing it.\n *\n * @slot - The popup's content.\n * @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the\n * `anchor` attribute or property instead.\n *\n * @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are\n * assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and\n * maybe a border or box shadow.\n * @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.\n * @csspart hover-bridge - The hover bridge element. Only available when the `hover-bridge` option is enabled.\n *\n * @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`\n * attribute is used.\n * @cssproperty [--arrow-color=var(--syn-color-neutral-0)] - The color of the arrow.\n * @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n * @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n */\nexport default class SynPopup extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n private anchorEl: Element | VirtualElement | null;\n private cleanup: ReturnType<typeof autoUpdate> | undefined;\n private readonly localize = new LocalizeController(this);\n\n /** A reference to the internal popup container. Useful for animating and styling the popup with JavaScript. */\n @query('.popup') popup: HTMLElement;\n @query('.popup__arrow') private arrowEl: HTMLElement;\n\n /**\n * The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor\n * element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the\n * `anchor` slot instead.\n */\n @property() anchor: Element | string | VirtualElement;\n\n /**\n * Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\n * down and the popup will be hidden.\n */\n @property({ type: Boolean, reflect: true }) active = false;\n\n /**\n * The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\n * panel inside of the viewport.\n */\n @property({ reflect: true }) placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'top';\n\n /** The distance in pixels from which to offset the panel away from its anchor. */\n @property({ type: Number }) distance = 0;\n\n /** The distance in pixels from which to offset the panel along its anchor. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n * `--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n * `::part(arrow)` in your stylesheet.\n */\n @property({ type: Boolean }) arrow = false;\n\n /**\n * The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\n * anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\n * align the arrow to the start, end, or center of the popover instead.\n */\n @property({ attribute: 'arrow-placement' }) arrowPlacement: 'start' | 'end' | 'center' | 'anchor' = 'anchor';\n\n /**\n * The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\n * this will prevent it from overflowing the corners.\n */\n @property({ attribute: 'arrow-padding', type: Number }) arrowPadding = 10;\n\n /**\n * When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n * `flipFallbackPlacements` to further configure how the fallback placement is determined.\n */\n @property({ type: Boolean }) flip = false;\n\n /**\n * If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\n * string of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\n * fallback strategy will be used instead.\n * */\n @property({\n attribute: 'flip-fallback-placements',\n converter: {\n fromAttribute: (value: string) => {\n return value\n .split(' ')\n .map(p => p.trim())\n .filter(p => p !== '');\n },\n toAttribute: (value: []) => {\n return value.join(' ');\n }\n }\n })\n flipFallbackPlacements = '';\n\n /**\n * When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\n * the popup should be positioned using the best available fit based on available space or as it was initially\n * preferred.\n */\n @property({ attribute: 'flip-fallback-strategy' }) flipFallbackStrategy: 'best-fit' | 'initial' = 'best-fit';\n\n /**\n * The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) flipBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the flip behavior will occur. */\n @property({ attribute: 'flip-padding', type: Number }) flipPadding = 0;\n\n /** Moves the popup along the axis to keep it in view when clipped. */\n @property({ type: Boolean }) shift = false;\n\n /**\n * The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) shiftBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the shift behavior will occur. */\n @property({ attribute: 'shift-padding', type: Number }) shiftPadding = 0;\n\n /** When set, this will cause the popup to automatically resize itself to prevent it from overflowing. */\n @property({ attribute: 'auto-size' }) autoSize: 'horizontal' | 'vertical' | 'both';\n\n /** Syncs the popup's width or height to that of the anchor element. */\n @property() sync: 'width' | 'height' | 'both';\n\n /**\n * The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) autoSizeBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the auto-size behavior will occur. */\n @property({ attribute: 'auto-size-padding', type: Number }) autoSizePadding = 0;\n\n /**\n * When a gap exists between the anchor and the popup element, this option will add a \"hover bridge\" that fills the\n * gap using an invisible element. This makes listening for events such as `mouseenter` and `mouseleave` more sane\n * because the pointer never technically leaves the element. The hover bridge will only be drawn when the popover is\n * active.\n */\n @property({ attribute: 'hover-bridge', type: Boolean }) hoverBridge = false;\n\n async connectedCallback() {\n super.connectedCallback();\n\n // Start the positioner after the first update\n await this.updateComplete;\n this.start();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.stop();\n }\n\n async updated(changedProps: Map<string, unknown>) {\n super.updated(changedProps);\n\n // Start or stop the positioner when active changes\n if (changedProps.has('active')) {\n if (this.active) {\n this.start();\n } else {\n this.stop();\n }\n }\n\n // Update the anchor when anchor changes\n if (changedProps.has('anchor')) {\n this.handleAnchorChange();\n }\n\n // All other properties will trigger a reposition when active\n if (this.active) {\n await this.updateComplete;\n this.reposition();\n }\n }\n\n private async handleAnchorChange() {\n await this.stop();\n\n if (this.anchor && typeof this.anchor === 'string') {\n // Locate the anchor by id\n const root = this.getRootNode() as Document | ShadowRoot;\n this.anchorEl = root.getElementById(this.anchor);\n } else if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {\n // Use the anchor's reference\n this.anchorEl = this.anchor;\n } else {\n // Look for a slotted anchor\n this.anchorEl = this.querySelector<HTMLElement>('[slot=\"anchor\"]');\n }\n\n // If the anchor is a <slot>, we'll use the first assigned element as the target since slots use `display: contents`\n // and positioning can't be calculated on them\n if (this.anchorEl instanceof HTMLSlotElement) {\n this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0] as HTMLElement;\n }\n\n // If the anchor is valid, start it up\n if (this.anchorEl && this.active) {\n this.start();\n }\n }\n\n private start() {\n // We can't start the positioner without an anchor or when the popup is inactive\n if (!this.anchorEl || !this.active) {\n return;\n }\n\n if (SUPPORTS_POPOVER) {\n this.popup.showPopover?.();\n }\n\n this.cleanup = autoUpdate(this.anchorEl, this.popup, () => {\n this.reposition();\n });\n }\n\n private async stop(): Promise<void> {\n return new Promise(resolve => {\n if (SUPPORTS_POPOVER) {\n // #1041 In some testing frameworks the disconnectedCallback is called too early so this.popup is not yet available\n this.popup?.hidePopover?.();\n }\n if (this.cleanup) {\n this.cleanup();\n this.cleanup = undefined;\n this.removeAttribute('data-current-placement');\n this.style.removeProperty('--auto-size-available-width');\n this.style.removeProperty('--auto-size-available-height');\n requestAnimationFrame(() => resolve());\n } else {\n resolve();\n }\n });\n }\n\n /** Forces the popup to recalculate and reposition itself. */\n reposition() {\n // Nothing to do if the popup is inactive or the anchor doesn't exist\n if (!this.active || !this.anchorEl) {\n return;\n }\n\n //\n // NOTE: Floating UI middlewares are order dependent: https://floating-ui.com/docs/middleware\n //\n const middleware = [\n // The offset middleware goes first\n offset({ mainAxis: this.distance, crossAxis: this.skidding })\n ];\n\n // First we sync width/height\n if (this.sync) {\n middleware.push(\n size({\n apply: ({ rects }) => {\n const syncWidth = this.sync === 'width' || this.sync === 'both';\n const syncHeight = this.sync === 'height' || this.sync === 'both';\n this.popup.style.width = syncWidth ? `${rects.reference.width}px` : '';\n this.popup.style.height = syncHeight ? `${rects.reference.height}px` : '';\n }\n })\n );\n } else {\n // Cleanup styles if we're not matching width/height\n this.popup.style.width = '';\n this.popup.style.height = '';\n }\n\n // Then we flip\n if (this.flip) {\n middleware.push(\n flip({\n boundary: this.flipBoundary,\n // @ts-expect-error - We're converting a string attribute to an array here\n fallbackPlacements: this.flipFallbackPlacements,\n fallbackStrategy: this.flipFallbackStrategy === 'best-fit' ? 'bestFit' : 'initialPlacement',\n padding: this.flipPadding\n })\n );\n }\n\n // Then we shift\n if (this.shift) {\n middleware.push(\n shift({\n boundary: this.shiftBoundary,\n padding: this.shiftPadding\n })\n );\n }\n\n // Now we adjust the size as needed\n if (this.autoSize) {\n middleware.push(\n size({\n boundary: this.autoSizeBoundary,\n padding: this.autoSizePadding,\n apply: ({ availableWidth, availableHeight }) => {\n if (this.autoSize === 'vertical' || this.autoSize === 'both') {\n this.style.setProperty('--auto-size-available-height', `${availableHeight}px`);\n } else {\n this.style.removeProperty('--auto-size-available-height');\n }\n\n if (this.autoSize === 'horizontal' || this.autoSize === 'both') {\n this.style.setProperty('--auto-size-available-width', `${availableWidth}px`);\n } else {\n this.style.removeProperty('--auto-size-available-width');\n }\n }\n })\n );\n } else {\n // Cleanup styles if we're no longer using auto-size\n this.style.removeProperty('--auto-size-available-width');\n this.style.removeProperty('--auto-size-available-height');\n }\n\n // Finally, we add an arrow\n if (this.arrow) {\n middleware.push(\n arrow({\n element: this.arrowEl,\n padding: this.arrowPadding\n })\n );\n }\n\n //\n // Use custom positioning logic if the strategy is absolute. Otherwise, fall back to the default logic.\n //\n // More info: https://github.com/shoelace-style/shoelace/issues/1135\n //\n const getOffsetParent =\n SUPPORTS_POPOVER\n ? (element: Element) => platform.getOffsetParent(element, offsetParent)\n : platform.getOffsetParent;\n\n computePosition(this.anchorEl, this.popup, {\n placement: this.placement,\n middleware,\n strategy: SUPPORTS_POPOVER ? 'absolute' : 'fixed',\n platform: {\n ...platform,\n getOffsetParent\n }\n }).then(({ x, y, middlewareData, placement }) => {\n //\n // Even though we have our own localization utility, it uses different heuristics to determine RTL. Because of\n // that, we'll use the same approach that Floating UI uses.\n //\n // Source: https://github.com/floating-ui/floating-ui/blob/cb3b6ab07f95275730d3e6e46c702f8d4908b55c/packages/dom/src/utils/getDocumentRect.ts#L31\n //\n const isRtl = this.localize.dir() === 'rtl';\n const staticSide = { top: 'bottom', right: 'left', bottom: 'top', left: 'right' }[placement.split('-')[0]]!;\n\n this.setAttribute('data-current-placement', placement);\n\n Object.assign(this.popup.style, {\n left: `${x}px`,\n top: `${y}px`\n });\n\n if (this.arrow) {\n const arrowX = middlewareData.arrow!.x;\n const arrowY = middlewareData.arrow!.y;\n let top = '';\n let right = '';\n let bottom = '';\n let left = '';\n\n if (this.arrowPlacement === 'start') {\n // Start\n const value = typeof arrowX === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n top = typeof arrowY === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n right = isRtl ? value : '';\n left = isRtl ? '' : value;\n } else if (this.arrowPlacement === 'end') {\n // End\n const value = typeof arrowX === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n right = isRtl ? '' : value;\n left = isRtl ? value : '';\n bottom = typeof arrowY === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n } else if (this.arrowPlacement === 'center') {\n // Center\n left = typeof arrowX === 'number' ? `calc(50% - var(--arrow-size-diagonal))` : '';\n top = typeof arrowY === 'number' ? `calc(50% - var(--arrow-size-diagonal))` : '';\n } else {\n // Anchor (default)\n left = typeof arrowX === 'number' ? `${arrowX}px` : '';\n top = typeof arrowY === 'number' ? `${arrowY}px` : '';\n }\n\n Object.assign(this.arrowEl.style, {\n top,\n right,\n bottom,\n left,\n [staticSide]: 'calc(var(--arrow-size-diagonal) * -1)'\n });\n }\n });\n\n // Wait until the new position is drawn before updating the hover bridge, otherwise it can get out of sync\n requestAnimationFrame(() => this.updateHoverBridge());\n\n this.emit('syn-reposition');\n }\n\n private updateHoverBridge = () => {\n if (this.hoverBridge && this.anchorEl) {\n const anchorRect = this.anchorEl.getBoundingClientRect();\n const popupRect = this.popup.getBoundingClientRect();\n const isVertical = this.placement.includes('top') || this.placement.includes('bottom');\n let topLeftX = 0;\n let topLeftY = 0;\n let topRightX = 0;\n let topRightY = 0;\n let bottomLeftX = 0;\n let bottomLeftY = 0;\n let bottomRightX = 0;\n let bottomRightY = 0;\n\n if (isVertical) {\n if (anchorRect.top < popupRect.top) {\n // Anchor is above\n topLeftX = anchorRect.left;\n topLeftY = anchorRect.bottom;\n topRightX = anchorRect.right;\n topRightY = anchorRect.bottom;\n\n bottomLeftX = popupRect.left;\n bottomLeftY = popupRect.top;\n bottomRightX = popupRect.right;\n bottomRightY = popupRect.top;\n } else {\n // Anchor is below\n topLeftX = popupRect.left;\n topLeftY = popupRect.bottom;\n topRightX = popupRect.right;\n topRightY = popupRect.bottom;\n\n bottomLeftX = anchorRect.left;\n bottomLeftY = anchorRect.top;\n bottomRightX = anchorRect.right;\n bottomRightY = anchorRect.top;\n }\n } else {\n if (anchorRect.left < popupRect.left) {\n // Anchor is on the left\n topLeftX = anchorRect.right;\n topLeftY = anchorRect.top;\n topRightX = popupRect.left;\n topRightY = popupRect.top;\n\n bottomLeftX = anchorRect.right;\n bottomLeftY = anchorRect.bottom;\n bottomRightX = popupRect.left;\n bottomRightY = popupRect.bottom;\n } else {\n // Anchor is on the right\n topLeftX = popupRect.right;\n topLeftY = popupRect.top;\n topRightX = anchorRect.left;\n topRightY = anchorRect.top;\n\n bottomLeftX = popupRect.right;\n bottomLeftY = popupRect.bottom;\n bottomRightX = anchorRect.left;\n bottomRightY = anchorRect.bottom;\n }\n }\n\n this.style.setProperty('--hover-bridge-top-left-x', `${topLeftX}px`);\n this.style.setProperty('--hover-bridge-top-left-y', `${topLeftY}px`);\n this.style.setProperty('--hover-bridge-top-right-x', `${topRightX}px`);\n this.style.setProperty('--hover-bridge-top-right-y', `${topRightY}px`);\n this.style.setProperty('--hover-bridge-bottom-left-x', `${bottomLeftX}px`);\n this.style.setProperty('--hover-bridge-bottom-left-y', `${bottomLeftY}px`);\n this.style.setProperty('--hover-bridge-bottom-right-x', `${bottomRightX}px`);\n this.style.setProperty('--hover-bridge-bottom-right-y', `${bottomRightY}px`);\n }\n };\n\n render() {\n return html`\n <slot name=\"anchor\" @slotchange=${this.handleAnchorChange}></slot>\n\n <span\n part=\"hover-bridge\"\n class=${classMap({\n 'popup-hover-bridge': true,\n 'popup-hover-bridge--visible': this.hoverBridge && this.active\n })}\n ></span>\n\n <div\n part=\"popup\"\n popover=${ifDefined(SUPPORTS_POPOVER ? 'manual' : undefined)}\n class=${classMap({\n popup: true,\n 'popup--active': this.active,\n 'popup--fixed': !SUPPORTS_POPOVER,\n 'popup--has-arrow': this.arrow\n })}\n >\n <slot></slot>\n ${this.arrow ? html`<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>` : ''}\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AACA,SAAS,OAAO,YAAY,iBAAiB,MAAM,QAAQ,UAAU,OAAO,YAAY;AACxF,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAErB,SAAS,oBAAoB;AAC7B,SAAS,UAAU,aAAa;AAPhC;AAaA,IAAM,oBAAmB,8CAAY,gBAAZ,mBAAyB,UAAU,eAAe;AAO3E,SAAS,iBAAiB,GAAiC;AACzD,SACE,MAAM,QACN,OAAO,MAAM,YACb,2BAA2B,MAC1B,oBAAoB,IAAI,EAAE,0BAA0B,UAAU;AAEnE;AA+BA,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAKE,SAAiB,WAAW,IAAI,mB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AC;AAAA,GA5FkB,SA6FnB;AAOmD;AAAA,EAAlD,SAAS,EAAE,WAAW,yBAAyB,CAAC;AAAA,GApG9B,SAoGgC;AAOvB;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GA3GP,SA2GS;AAG2B;AAAA,EAAtD,SAAS,EAAE,WAAW,gBAAgB,MAAM,OAAO,CAAC;AAAA,GA9GlC,SA8GoC;AAG1B;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAjHR,SAiHU;AAOD;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAxHP,SAwHS;AAG4B;AAAA,EAAvD,SAAS,EAAE,WAAW,iBAAiB,MAAM,OAAO,CAAC;AAAA,GA3HnC,SA2HqC;AAGlB;AAAA,EAArC,SAAS,EAAE,WAAW,YAAY,CAAC;AAAA,GA9HjB,SA8HmB;AAG1B;AAAA,EAAX,SAAS;AAAA,GAjIS,SAiIP;AAOgB;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAxIP,SAwIS;AAGgC;AAAA,EAA3D,SAAS,EAAE,WAAW,qBAAqB,MAAM,OAAO,CAAC;AAAA,GA3IvC,SA2IyC;AAQJ;AAAA,EAAvD,SAAS,EAAE,WAAW,gBAAgB,MAAM,QAAQ,CAAC;AAAA,GAnJnC,SAmJqC;",
|
|
6
|
+
"names": ["_a"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButtonGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.B4UA7LU7.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.JXCCMLXD.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.3T6ULO23.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.BYGCAEBC.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.CHFWLQN5.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.FUWJV6FF.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -131,4 +131,4 @@ __decorateClass([
|
|
|
131
131
|
export {
|
|
132
132
|
SynOptgroup
|
|
133
133
|
};
|
|
134
|
-
//# sourceMappingURL=chunk.
|
|
134
|
+
//# sourceMappingURL=chunk.K7FUMJK2.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTooltip
|
|
3
|
-
} from "./chunk.
|
|
4
|
-
import {
|
|
5
|
-
range_styles_default
|
|
6
|
-
} from "./chunk.KEO5PHF2.js";
|
|
3
|
+
} from "./chunk.MTRKCZX4.js";
|
|
7
4
|
import {
|
|
8
5
|
arraysDiffer,
|
|
9
6
|
getNormalizedValueFromClientX,
|
|
10
7
|
numericSort
|
|
11
8
|
} from "./chunk.236RSW67.js";
|
|
9
|
+
import {
|
|
10
|
+
range_styles_default
|
|
11
|
+
} from "./chunk.KEO5PHF2.js";
|
|
12
12
|
import {
|
|
13
13
|
defaultValue
|
|
14
14
|
} from "./chunk.3JDUKQRN.js";
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
} from "./chunk.QLETXF4A.js";
|
|
29
29
|
import {
|
|
30
30
|
enableDefaultSettings
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.4BEGBAQD.js";
|
|
32
32
|
import {
|
|
33
33
|
component_styles_default
|
|
34
34
|
} from "./chunk.2NT3B5WJ.js";
|
|
35
35
|
import {
|
|
36
36
|
SynergyElement
|
|
37
|
-
} from "./chunk.
|
|
37
|
+
} from "./chunk.FUWJV6FF.js";
|
|
38
38
|
import {
|
|
39
39
|
__decorateClass,
|
|
40
40
|
__privateAdd,
|
|
@@ -725,4 +725,4 @@ SynRange = __decorateClass([
|
|
|
725
725
|
export {
|
|
726
726
|
SynRange
|
|
727
727
|
};
|
|
728
|
-
//# sourceMappingURL=chunk.
|
|
728
|
+
//# sourceMappingURL=chunk.KD57IQV6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSideNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KZJR6HZD.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.KHL5C52A.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
formatNumber
|
|
3
|
-
} from "./chunk.KVS7GBFQ.js";
|
|
4
1
|
import {
|
|
5
2
|
input_custom_styles_default
|
|
6
3
|
} from "./chunk.6P2XCD2Q.js";
|
|
7
4
|
import {
|
|
8
5
|
input_styles_default
|
|
9
6
|
} from "./chunk.PHFTXPIT.js";
|
|
7
|
+
import {
|
|
8
|
+
formatNumber
|
|
9
|
+
} from "./chunk.KVS7GBFQ.js";
|
|
10
10
|
import {
|
|
11
11
|
SynDivider
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.BYGCAEBC.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultValue
|
|
15
15
|
} from "./chunk.3JDUKQRN.js";
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
} from "./chunk.CHFWLQN5.js";
|
|
25
25
|
import {
|
|
26
26
|
SynIcon
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.6GMIINJO.js";
|
|
28
28
|
import {
|
|
29
29
|
LocalizeController
|
|
30
30
|
} from "./chunk.QLETXF4A.js";
|
|
31
31
|
import {
|
|
32
32
|
enableDefaultSettings
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.4BEGBAQD.js";
|
|
34
34
|
import {
|
|
35
35
|
createNumericStrategy,
|
|
36
36
|
modernNumericStrategy,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk.2NT3B5WJ.js";
|
|
45
45
|
import {
|
|
46
46
|
SynergyElement
|
|
47
|
-
} from "./chunk.
|
|
47
|
+
} from "./chunk.FUWJV6FF.js";
|
|
48
48
|
import {
|
|
49
49
|
__decorateClass,
|
|
50
50
|
__privateAdd,
|
|
@@ -865,4 +865,4 @@ SynInput = __decorateClass([
|
|
|
865
865
|
export {
|
|
866
866
|
SynInput
|
|
867
867
|
};
|
|
868
|
-
//# sourceMappingURL=chunk.
|
|
868
|
+
//# sourceMappingURL=chunk.KO63GPHO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynPopup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.JBNR3EZZ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/popup/popup.ts
|
|
6
6
|
var popup_default = SynPopup;
|
|
@@ -9,4 +9,4 @@ SynPopup.define("syn-popup");
|
|
|
9
9
|
export {
|
|
10
10
|
popup_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.KOYEOD56.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadio
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OK2D5LNY.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio/radio.ts
|
|
6
6
|
var radio_default = SynRadio;
|
|
@@ -9,4 +9,4 @@ SynRadio.define("syn-radio");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.KXTBRSLW.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.EFSUQWJZ.js";
|
|
4
4
|
import {
|
|
5
5
|
SynNavItem
|
|
6
|
-
} from "./chunk.
|
|
7
|
-
import {
|
|
8
|
-
SynDivider
|
|
9
|
-
} from "./chunk.VH6SKOPX.js";
|
|
6
|
+
} from "./chunk.OF4BZKDQ.js";
|
|
10
7
|
import {
|
|
11
8
|
SynDrawer
|
|
12
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.FGF4ENWR.js";
|
|
10
|
+
import {
|
|
11
|
+
SynDivider
|
|
12
|
+
} from "./chunk.BYGCAEBC.js";
|
|
13
13
|
import {
|
|
14
14
|
unlockBodyScrolling
|
|
15
15
|
} from "./chunk.2DT3C6WE.js";
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
} from "./chunk.CHFWLQN5.js";
|
|
27
27
|
import {
|
|
28
28
|
SynIcon
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.6GMIINJO.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
32
|
} from "./chunk.QLETXF4A.js";
|
|
33
33
|
import {
|
|
34
34
|
enableDefaultSettings
|
|
35
|
-
} from "./chunk.
|
|
35
|
+
} from "./chunk.4BEGBAQD.js";
|
|
36
36
|
import {
|
|
37
37
|
watch
|
|
38
38
|
} from "./chunk.SMIMHADA.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk.2NT3B5WJ.js";
|
|
42
42
|
import {
|
|
43
43
|
SynergyElement
|
|
44
|
-
} from "./chunk.
|
|
44
|
+
} from "./chunk.FUWJV6FF.js";
|
|
45
45
|
import {
|
|
46
46
|
__decorateClass
|
|
47
47
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -333,4 +333,4 @@ setDefaultAnimation("sideNav.overlay.hide", {
|
|
|
333
333
|
export {
|
|
334
334
|
SynSideNav
|
|
335
335
|
};
|
|
336
|
-
//# sourceMappingURL=chunk.
|
|
336
|
+
//# sourceMappingURL=chunk.KZJR6HZD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynHeader
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LJYCM7V2.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.LA2QMOXI.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
} from "./chunk.DAIQ5WRI.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.6GMIINJO.js";
|
|
10
10
|
import {
|
|
11
11
|
enableDefaultSettings
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.4BEGBAQD.js";
|
|
13
13
|
import {
|
|
14
14
|
component_styles_default
|
|
15
15
|
} from "./chunk.2NT3B5WJ.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.FUWJV6FF.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -144,4 +144,4 @@ SynIconButton = __decorateClass([
|
|
|
144
144
|
export {
|
|
145
145
|
SynIconButton
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk.
|
|
147
|
+
//# sourceMappingURL=chunk.LGSQ6DML.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
icon_default
|
|
3
|
+
} from "./chunk.6VYVMXVV.js";
|
|
1
4
|
import {
|
|
2
5
|
header_styles_default
|
|
3
6
|
} from "./chunk.CXQHLGXV.js";
|
|
4
|
-
import {
|
|
5
|
-
icon_default
|
|
6
|
-
} from "./chunk.K5OSYXNU.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.CHFWLQN5.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk.2NT3B5WJ.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.FUWJV6FF.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -210,4 +210,4 @@ __decorateClass([
|
|
|
210
210
|
export {
|
|
211
211
|
SynHeader
|
|
212
212
|
};
|
|
213
|
-
//# sourceMappingURL=chunk.
|
|
213
|
+
//# sourceMappingURL=chunk.LJYCM7V2.js.map
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk.ARR23WUY.js";
|
|
10
10
|
import {
|
|
11
11
|
SynIcon
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.6GMIINJO.js";
|
|
13
13
|
import {
|
|
14
14
|
LocalizeController
|
|
15
15
|
} from "./chunk.QLETXF4A.js";
|
|
16
16
|
import {
|
|
17
17
|
enableDefaultSettings
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.4BEGBAQD.js";
|
|
19
19
|
import {
|
|
20
20
|
watch
|
|
21
21
|
} from "./chunk.SMIMHADA.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk.2NT3B5WJ.js";
|
|
25
25
|
import {
|
|
26
26
|
SynergyElement
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.FUWJV6FF.js";
|
|
28
28
|
import {
|
|
29
29
|
__decorateClass
|
|
30
30
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -192,4 +192,4 @@ SynOption = __decorateClass([
|
|
|
192
192
|
export {
|
|
193
193
|
SynOption
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=chunk.
|
|
195
|
+
//# sourceMappingURL=chunk.LYQYSN3L.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynFile
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.IV3FR4CG.js";
|
|
4
4
|
|
|
5
5
|
// src/components/file/file.ts
|
|
6
6
|
var file_default = SynFile;
|
|
@@ -9,4 +9,4 @@ SynFile.define("syn-file");
|
|
|
9
9
|
export {
|
|
10
10
|
file_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.M4LSKQMC.js.map
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk.QLETXF4A.js";
|
|
10
10
|
import {
|
|
11
11
|
enableDefaultSettings
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.4BEGBAQD.js";
|
|
13
13
|
import {
|
|
14
14
|
component_styles_default
|
|
15
15
|
} from "./chunk.2NT3B5WJ.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.FUWJV6FF.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -66,4 +66,4 @@ SynBadge = __decorateClass([
|
|
|
66
66
|
export {
|
|
67
67
|
SynBadge
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=chunk.
|
|
69
|
+
//# sourceMappingURL=chunk.MHSMXQPS.js.map
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
} from "./chunk.OJ3N7TWP.js";
|
|
10
10
|
import {
|
|
11
11
|
SynNavItem
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.OF4BZKDQ.js";
|
|
13
13
|
import {
|
|
14
14
|
SynMenu
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.MOGC7VFU.js";
|
|
16
16
|
import {
|
|
17
17
|
SynDropdown
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.SEGXW66J.js";
|
|
19
19
|
import {
|
|
20
20
|
SynIcon
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.6GMIINJO.js";
|
|
22
22
|
import {
|
|
23
23
|
LocalizeController
|
|
24
24
|
} from "./chunk.QLETXF4A.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk.2NT3B5WJ.js";
|
|
28
28
|
import {
|
|
29
29
|
SynergyElement
|
|
30
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.FUWJV6FF.js";
|
|
31
31
|
import {
|
|
32
32
|
__decorateClass
|
|
33
33
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -209,4 +209,4 @@ __decorateClass([
|
|
|
209
209
|
export {
|
|
210
210
|
SynPrioNav
|
|
211
211
|
};
|
|
212
|
-
//# sourceMappingURL=chunk.
|
|
212
|
+
//# sourceMappingURL=chunk.MNS3RHQ3.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
menu_styles_default
|
|
3
|
-
} from "./chunk.V37RYGE7.js";
|
|
4
1
|
import {
|
|
5
2
|
menu_custom_styles_default
|
|
6
3
|
} from "./chunk.3IQ2QEPZ.js";
|
|
4
|
+
import {
|
|
5
|
+
menu_styles_default
|
|
6
|
+
} from "./chunk.V37RYGE7.js";
|
|
7
7
|
import {
|
|
8
8
|
component_styles_default
|
|
9
9
|
} from "./chunk.2NT3B5WJ.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.FUWJV6FF.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -160,4 +160,4 @@ __decorateClass([
|
|
|
160
160
|
export {
|
|
161
161
|
SynMenu
|
|
162
162
|
};
|
|
163
|
-
//# sourceMappingURL=chunk.
|
|
163
|
+
//# sourceMappingURL=chunk.MOGC7VFU.js.map
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
tooltip_custom_styles_default
|
|
3
|
-
} from "./chunk.E7LBPRDC.js";
|
|
4
1
|
import {
|
|
5
2
|
tooltip_styles_default
|
|
6
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EQUDFX74.js";
|
|
7
4
|
import {
|
|
8
5
|
SynPopup
|
|
9
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.JBNR3EZZ.js";
|
|
10
7
|
import {
|
|
11
8
|
waitForEvent
|
|
12
9
|
} from "./chunk.LQDIH4Z5.js";
|
|
@@ -30,7 +27,7 @@ import {
|
|
|
30
27
|
} from "./chunk.2NT3B5WJ.js";
|
|
31
28
|
import {
|
|
32
29
|
SynergyElement
|
|
33
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.FUWJV6FF.js";
|
|
34
31
|
import {
|
|
35
32
|
__decorateClass
|
|
36
33
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -38,11 +35,12 @@ import {
|
|
|
38
35
|
// src/components/tooltip/tooltip.component.ts
|
|
39
36
|
import { classMap } from "lit/directives/class-map.js";
|
|
40
37
|
import { html } from "lit";
|
|
41
|
-
import { property, query } from "lit/decorators.js";
|
|
38
|
+
import { property, state, query } from "lit/decorators.js";
|
|
42
39
|
var SynTooltip = class extends SynergyElement {
|
|
43
40
|
constructor() {
|
|
44
41
|
super();
|
|
45
42
|
this.localize = new LocalizeController(this);
|
|
43
|
+
this.anchor = void 0;
|
|
46
44
|
this.content = "";
|
|
47
45
|
this.placement = "top";
|
|
48
46
|
this.disabled = false;
|
|
@@ -183,6 +181,7 @@ var SynTooltip = class extends SynergyElement {
|
|
|
183
181
|
render() {
|
|
184
182
|
return html`
|
|
185
183
|
<syn-popup
|
|
184
|
+
.anchor=${this.anchor}
|
|
186
185
|
part="base"
|
|
187
186
|
exportparts="
|
|
188
187
|
popup:base__popup,
|
|
@@ -211,7 +210,7 @@ var SynTooltip = class extends SynergyElement {
|
|
|
211
210
|
`;
|
|
212
211
|
}
|
|
213
212
|
};
|
|
214
|
-
SynTooltip.styles = [component_styles_default, tooltip_styles_default
|
|
213
|
+
SynTooltip.styles = [component_styles_default, tooltip_styles_default];
|
|
215
214
|
SynTooltip.dependencies = { "syn-popup": SynPopup };
|
|
216
215
|
__decorateClass([
|
|
217
216
|
query("slot:not([name])")
|
|
@@ -222,6 +221,9 @@ __decorateClass([
|
|
|
222
221
|
__decorateClass([
|
|
223
222
|
query("syn-popup")
|
|
224
223
|
], SynTooltip.prototype, "popup", 2);
|
|
224
|
+
__decorateClass([
|
|
225
|
+
state()
|
|
226
|
+
], SynTooltip.prototype, "anchor", 2);
|
|
225
227
|
__decorateClass([
|
|
226
228
|
property()
|
|
227
229
|
], SynTooltip.prototype, "content", 2);
|
|
@@ -247,7 +249,7 @@ __decorateClass([
|
|
|
247
249
|
watch("open", { waitUntilFirstUpdate: true })
|
|
248
250
|
], SynTooltip.prototype, "handleOpenChange", 1);
|
|
249
251
|
__decorateClass([
|
|
250
|
-
watch(["content", "distance", "placement", "skidding"])
|
|
252
|
+
watch(["anchor", "content", "distance", "placement", "skidding"])
|
|
251
253
|
], SynTooltip.prototype, "handleOptionsChange", 1);
|
|
252
254
|
__decorateClass([
|
|
253
255
|
watch("disabled")
|
|
@@ -270,4 +272,4 @@ setDefaultAnimation("tooltip.hide", {
|
|
|
270
272
|
export {
|
|
271
273
|
SynTooltip
|
|
272
274
|
};
|
|
273
|
-
//# sourceMappingURL=chunk.
|
|
275
|
+
//# sourceMappingURL=chunk.MTRKCZX4.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/tooltip/tooltip.component.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable */\nimport { animateTo, parseDuration, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, state, query } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynPopup from '../popup/popup.component.js';\nimport styles from './tooltip.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { VirtualElement } from '../popup/popup.component.js';\n\n/**\n * @summary Tooltips display additional information based on a specific action.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-tooltip--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The tooltip's target element. Avoid slotting in more than one element, as subsequent ones will be ignored.\n * @slot content - The content to render in the tooltip. Alternatively, you can use the `content` attribute.\n *\n * @event syn-show - Emitted when the tooltip begins to show.\n * @event syn-after-show - Emitted after the tooltip has shown and all animations are complete.\n * @event syn-hide - Emitted when the tooltip begins to hide.\n * @event syn-after-hide - Emitted after the tooltip has hidden and all animations are complete.\n *\n * @csspart base - The component's base wrapper, an `<syn-popup>` element.\n * @csspart base__popup - The popup's exported `popup` part. Use this to target the tooltip's popup container.\n * @csspart base__arrow - The popup's exported `arrow` part. Use this to target the tooltip's arrow.\n * @csspart body - The tooltip's body where its content is rendered.\n *\n * @cssproperty --max-width - The maximum width of the tooltip before its content will wrap.\n * @cssproperty --hide-delay - The amount of time to wait before hiding the tooltip when hovering.\n * @cssproperty --show-delay - The amount of time to wait before showing the tooltip when hovering.\n *\n * @animation tooltip.show - The animation to use when showing the tooltip.\n * @animation tooltip.hide - The animation to use when hiding the tooltip.\n */\nexport default class SynTooltip extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n static dependencies = { 'syn-popup': SynPopup };\n\n private hoverTimeout: number;\n private readonly localize = new LocalizeController(this);\n private closeWatcher: CloseWatcher | null;\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n @query('.tooltip__body') body: HTMLElement;\n @query('syn-popup') popup: SynPopup;\n\n /**\n * The element the tooltip will be anchored to. If the anchor lives outside of the tooltip, you can provide the anchor\n * element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the tooltip, use the\n * `anchor` slot instead.\n */\n @state() private anchor: Element | string | VirtualElement | undefined = undefined;\n\n /** The tooltip's content. If you need to display HTML, use the `content` slot instead. */\n @property() content = '';\n\n /**\n * The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip\n * inside of the viewport.\n */\n @property() placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'top';\n\n /** Disables the tooltip so it won't show when triggered. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** The distance in pixels from which to offset the tooltip away from its target. */\n @property({ type: Number }) distance = 13;\n\n /** Indicates whether or not the tooltip is open. You can use this in lieu of the show/hide methods. */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** The distance in pixels from which to offset the tooltip along its target. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple\n * options can be passed by separating them with a space. When manual is used, the tooltip must be activated\n * programmatically.\n */\n @property() trigger = 'hover focus';\n\n constructor() {\n super();\n this.addEventListener('blur', this.handleBlur, true);\n this.addEventListener('focus', this.handleFocus, true);\n this.addEventListener('click', this.handleClick);\n this.addEventListener('mouseover', this.handleMouseOver);\n this.addEventListener('mouseout', this.handleMouseOut);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n // Cleanup this event in case the tooltip is removed while open\n this.closeWatcher?.destroy();\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n }\n\n firstUpdated() {\n this.body.hidden = !this.open;\n\n // If the tooltip is visible on init, update its position\n if (this.open) {\n this.popup.active = true;\n this.popup.reposition();\n }\n }\n\n private handleBlur = () => {\n if (this.hasTrigger('focus')) {\n this.hide();\n }\n };\n\n private handleClick = () => {\n if (this.hasTrigger('click')) {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n }\n };\n\n private handleFocus = () => {\n if (this.hasTrigger('focus')) {\n this.show();\n }\n };\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n // Pressing escape when a tooltip is open should dismiss it\n if (event.key === 'Escape') {\n event.stopPropagation();\n this.hide();\n }\n };\n\n private handleMouseOver = () => {\n if (this.hasTrigger('hover')) {\n const delay = parseDuration(getComputedStyle(this).getPropertyValue('--show-delay'));\n clearTimeout(this.hoverTimeout);\n this.hoverTimeout = window.setTimeout(() => this.show(), delay);\n }\n };\n\n private handleMouseOut = () => {\n if (this.hasTrigger('hover')) {\n const delay = parseDuration(getComputedStyle(this).getPropertyValue('--hide-delay'));\n clearTimeout(this.hoverTimeout);\n this.hoverTimeout = window.setTimeout(() => this.hide(), delay);\n }\n };\n\n private hasTrigger(triggerType: string) {\n const triggers = this.trigger.split(' ');\n return triggers.includes(triggerType);\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n if (this.disabled) {\n return;\n }\n\n // Show\n this.emit('syn-show');\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => {\n this.hide();\n };\n } else {\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n }\n\n await stopAnimations(this.body);\n this.body.hidden = false;\n this.popup.active = true;\n const { keyframes, options } = getAnimation(this, 'tooltip.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.popup.reposition();\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n this.closeWatcher?.destroy();\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n\n await stopAnimations(this.body);\n const { keyframes, options } = getAnimation(this, 'tooltip.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.popup.active = false;\n this.body.hidden = true;\n\n this.emit('syn-after-hide');\n }\n }\n\n @watch(['anchor', 'content', 'distance','placement', 'skidding'])\n async handleOptionsChange() {\n if (this.hasUpdated) {\n await this.updateComplete;\n this.popup.reposition();\n }\n }\n\n @watch('disabled')\n handleDisabledChange() {\n if (this.disabled && this.open) {\n this.hide();\n }\n }\n\n /** Shows the tooltip. */\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 tooltip */\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 // NOTE: Tooltip is a bit unique in that we're using aria-live instead of aria-labelledby to trick screen readers into\n // announcing the content. It works really well, but it violates an accessibility rule. We're also adding the\n // aria-describedby attribute to a slot, which is required by <syn-popup> to correctly locate the first assigned\n // element, otherwise positioning is incorrect.\n //\n render() {\n return html`\n <syn-popup\n .anchor=${this.anchor}\n part=\"base\"\n exportparts=\"\n popup:base__popup,\n arrow:base__arrow\n \"\n class=${classMap({\n tooltip: true,\n 'tooltip--open': this.open\n })}\n placement=${this.placement}\n distance=${this.distance}\n skidding=${this.skidding}\n flip\n shift\n arrow\n hover-bridge\n >\n ${'' /* Always render slotted content in anchor position - it's always visible */}\n <slot slot=\"anchor\" aria-describedby=\"tooltip\"></slot>\n\n ${'' /* eslint-disable-next-line lit-a11y/accessible-name */}\n <div part=\"body\" id=\"tooltip\" class=\"tooltip__body\" role=\"tooltip\" aria-live=${this.open ? 'polite' : 'off'}>\n <slot name=\"content\">${this.content}</slot>\n </div>\n </syn-popup>\n `;\n }\n}\n\nsetDefaultAnimation('tooltip.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 150, easing: 'ease' }\n});\n\nsetDefaultAnimation('tooltip.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 150, easing: 'ease' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AAsCvC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EA2DrD,cAAc;AACZ,UAAM;AAvDR,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAY9C,SAAQ,SAAwD;AAG7D,mBAAU;AAMV,qBAYK;AAG2B,oBAAW;AAG3B,oBAAW;AAGK,gBAAO;AAGvB,oBAAW;AAO3B,mBAAU;AA4BtB,SAAQ,aAAa,MAAM;AACzB,UAAI,KAAK,WAAW,OAAO,GAAG;AAC5B,aAAK,KAAK;AAAA,MACZ;AAAA,IACF;AAEA,SAAQ,cAAc,MAAM;AAC1B,UAAI,KAAK,WAAW,OAAO,GAAG;AAC5B,YAAI,KAAK,MAAM;AACb,eAAK,KAAK;AAAA,QACZ,OAAO;AACL,eAAK,KAAK;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAEA,SAAQ,cAAc,MAAM;AAC1B,UAAI,KAAK,WAAW,OAAO,GAAG;AAC5B,aAAK,KAAK;AAAA,MACZ;AAAA,IACF;AAEA,SAAQ,wBAAwB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WA4CS;AAGgB;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA/CvB,WA+CyB;AAGhB;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAlDP,WAkDS;AAOhB;AAAA,EAAX,SAAS;AAAA,GAzDS,WAyDP;AAgFN;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAxI1B,WAyIb;AA2CA;AAAA,EADL,MAAM,CAAC,UAAU,WAAW,YAAW,aAAa,UAAU,CAAC;AAAA,GAnL7C,WAoLb;AAQN;AAAA,EADC,MAAM,UAAU;AAAA,GA3LE,WA4LnB;AAiEF,oBAAoB,gBAAgB;AAAA,EAClC,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,gBAAgB;AAAA,EAClC,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
|
SynProgressBar
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2DWIAD22.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.N25AMXDL.js.map
|