@synergy-design-system/components 2.11.7 → 2.12.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.5THVQP64.js → chunk.2DTLMVCC.js} +6 -4
- package/dist/chunks/{chunk.5THVQP64.js.map → chunk.2DTLMVCC.js.map} +1 -1
- package/dist/chunks/{chunk.COPMG5GP.js → chunk.2HVKUBS7.js} +5 -3
- package/dist/chunks/{chunk.COPMG5GP.js.map → chunk.2HVKUBS7.js.map} +1 -1
- package/dist/chunks/{chunk.ZVJDWZT3.js → chunk.2JVLDJOZ.js} +6 -4
- package/dist/chunks/{chunk.ZVJDWZT3.js.map → chunk.2JVLDJOZ.js.map} +1 -1
- package/dist/chunks/{chunk.NPADSFMI.js → chunk.2N7XLLRT.js} +7 -5
- package/dist/chunks/{chunk.NPADSFMI.js.map → chunk.2N7XLLRT.js.map} +1 -1
- package/dist/chunks/{chunk.C4JHD57V.js → chunk.2RR6PD3H.js} +2 -2
- package/dist/chunks/{chunk.IMA7VYIB.js → chunk.2VWVV75N.js} +2 -2
- package/dist/chunks/{chunk.JTBOIS3P.js → chunk.2XCTA3AO.js} +2 -2
- package/dist/chunks/{chunk.SHZVMCAL.js → chunk.2XJUCSO3.js} +2 -2
- package/dist/chunks/{chunk.4WNYNG6M.js → chunk.35GWQ3HX.js} +6 -4
- package/dist/chunks/{chunk.4WNYNG6M.js.map → chunk.35GWQ3HX.js.map} +1 -1
- package/dist/chunks/{chunk.BJSVCJFM.js → chunk.3DLFZSF7.js} +2 -2
- package/dist/chunks/{chunk.UAPQUESV.js → chunk.46LZSYUL.js} +2 -2
- package/dist/chunks/{chunk.XXDBMOXE.js → chunk.47JTZI3N.js} +7 -5
- package/dist/chunks/{chunk.XXDBMOXE.js.map → chunk.47JTZI3N.js.map} +1 -1
- package/dist/chunks/{chunk.VLGDGOMV.js → chunk.4JYTX6L6.js} +2 -2
- package/dist/chunks/{chunk.TB26Q2QS.js → chunk.4UIWHJGU.js} +6 -4
- package/dist/chunks/{chunk.TB26Q2QS.js.map → chunk.4UIWHJGU.js.map} +1 -1
- package/dist/chunks/{chunk.XIV4ITDK.js → chunk.5MAFVQHL.js} +2 -2
- package/dist/chunks/{chunk.643SASYP.js → chunk.5PHPJIT3.js} +5 -3
- package/dist/chunks/{chunk.643SASYP.js.map → chunk.5PHPJIT3.js.map} +1 -1
- package/dist/chunks/{chunk.K45HZM5E.js → chunk.6FBJHPH5.js} +5 -3
- package/dist/chunks/{chunk.K45HZM5E.js.map → chunk.6FBJHPH5.js.map} +1 -1
- package/dist/chunks/{chunk.QZW3Q6B4.js → chunk.6HHHEQL2.js} +2 -2
- package/dist/chunks/{chunk.DEYURI7S.js → chunk.6K5JDD4E.js} +2 -2
- package/dist/chunks/{chunk.DCPGWRJI.js → chunk.7GDRQYV4.js} +2 -2
- package/dist/chunks/{chunk.PBF6RVNL.js → chunk.7JAGIORC.js} +2 -2
- package/dist/chunks/{chunk.EKXTNQO7.js → chunk.7KHURS47.js} +5 -3
- package/dist/chunks/{chunk.EKXTNQO7.js.map → chunk.7KHURS47.js.map} +1 -1
- package/dist/chunks/{chunk.2PFKNC2D.js → chunk.7T2JCP5U.js} +9 -7
- package/dist/chunks/{chunk.2PFKNC2D.js.map → chunk.7T2JCP5U.js.map} +1 -1
- package/dist/chunks/{chunk.OZIGI7GO.js → chunk.A4LXD7RK.js} +6 -4
- package/dist/chunks/{chunk.OZIGI7GO.js.map → chunk.A4LXD7RK.js.map} +1 -1
- package/dist/chunks/{chunk.BATEH5VM.js → chunk.AHZOH7NS.js} +2 -2
- package/dist/chunks/{chunk.EDTGXXBJ.js → chunk.AIYNTCBR.js} +5 -3
- package/dist/chunks/{chunk.EDTGXXBJ.js.map → chunk.AIYNTCBR.js.map} +1 -1
- package/dist/chunks/{chunk.BBNQVEPD.js → chunk.AMIQC3O7.js} +8 -2
- package/dist/chunks/chunk.AMIQC3O7.js.map +7 -0
- package/dist/chunks/{chunk.WEYEJFFY.js → chunk.AOYLQDC7.js} +2 -2
- package/dist/chunks/{chunk.FCRF3SOO.js → chunk.B6ORTU2I.js} +5 -3
- package/dist/chunks/{chunk.FCRF3SOO.js.map → chunk.B6ORTU2I.js.map} +1 -1
- package/dist/chunks/{chunk.EOEYR3VQ.js → chunk.BJMYDPMI.js} +2 -2
- package/dist/chunks/{chunk.OOGMXXI2.js → chunk.BUGMDNEC.js} +2 -2
- package/dist/chunks/{chunk.NVYV4TL7.js → chunk.C63XSKGJ.js} +6 -4
- package/dist/chunks/{chunk.NVYV4TL7.js.map → chunk.C63XSKGJ.js.map} +1 -1
- package/dist/chunks/{chunk.Q6YZNE6X.js → chunk.CBX6NOJC.js} +2 -2
- package/dist/chunks/{chunk.WQFDSBDV.js → chunk.CEHNUDZV.js} +5 -3
- package/dist/chunks/{chunk.WQFDSBDV.js.map → chunk.CEHNUDZV.js.map} +1 -1
- package/dist/chunks/{chunk.IMCTX6SG.js → chunk.D3BR2E23.js} +6 -4
- package/dist/chunks/{chunk.IMCTX6SG.js.map → chunk.D3BR2E23.js.map} +1 -1
- package/dist/chunks/{chunk.FT4NXY3H.js → chunk.DUTZXAX3.js} +2 -2
- package/dist/chunks/{chunk.P6WLOVPY.js → chunk.DVJ5ESOK.js} +2 -2
- package/dist/chunks/{chunk.R7JCAPQ6.js → chunk.E3ZZVSK2.js} +5 -3
- package/dist/chunks/{chunk.R7JCAPQ6.js.map → chunk.E3ZZVSK2.js.map} +1 -1
- package/dist/chunks/{chunk.FHQWJAM4.js → chunk.EL6YEL4Z.js} +6 -4
- package/dist/chunks/{chunk.FHQWJAM4.js.map → chunk.EL6YEL4Z.js.map} +1 -1
- package/dist/chunks/{chunk.7PKSP5SS.js → chunk.F7DPSZNS.js} +2 -2
- package/dist/chunks/{chunk.5XB7SBRX.js → chunk.FJAWKC4Q.js} +2 -2
- package/dist/chunks/{chunk.TN26BBH4.js → chunk.FW2KAIBS.js} +2 -2
- package/dist/chunks/{chunk.X36XXWZC.js → chunk.GE4N3DEH.js} +2 -2
- package/dist/chunks/{chunk.GH4C3A5N.js → chunk.GJKBCEE2.js} +8 -6
- package/dist/chunks/{chunk.GH4C3A5N.js.map → chunk.GJKBCEE2.js.map} +1 -1
- package/dist/chunks/{chunk.IT5SA4BC.js → chunk.H44EMWNO.js} +6 -4
- package/dist/chunks/{chunk.IT5SA4BC.js.map → chunk.H44EMWNO.js.map} +1 -1
- package/dist/chunks/{chunk.543GQUFN.js → chunk.HA5UYBEI.js} +2 -2
- package/dist/chunks/{chunk.LSNUIBG6.js → chunk.HNJ7JOOE.js} +3 -3
- package/dist/chunks/{chunk.MHM23B27.js → chunk.HRCFYO6D.js} +2 -2
- package/dist/chunks/{chunk.IFGAXFVI.js → chunk.IDTO73ND.js} +8 -6
- package/dist/chunks/{chunk.IFGAXFVI.js.map → chunk.IDTO73ND.js.map} +1 -1
- package/dist/chunks/{chunk.NL3RUWYS.js → chunk.IFXKIEOU.js} +1 -3
- package/dist/chunks/chunk.IFXKIEOU.js.map +7 -0
- package/dist/chunks/{chunk.E5LWNDPD.js → chunk.IU2XW7CB.js} +6 -4
- package/dist/chunks/{chunk.E5LWNDPD.js.map → chunk.IU2XW7CB.js.map} +1 -1
- package/dist/chunks/{chunk.AYTT55GX.js → chunk.J6AGKJUK.js} +7 -5
- package/dist/chunks/{chunk.AYTT55GX.js.map → chunk.J6AGKJUK.js.map} +1 -1
- package/dist/chunks/{chunk.VQL5I2S4.js → chunk.JAKZ77B7.js} +2 -2
- package/dist/chunks/{chunk.2SWKHX7Z.js → chunk.JGNDU3BQ.js} +2 -2
- package/dist/chunks/{chunk.BRYUJEQR.js → chunk.JHRKJLEP.js} +2 -2
- package/dist/chunks/{chunk.EOPGDAZP.js → chunk.JSAB4Y6I.js} +5 -3
- package/dist/chunks/{chunk.EOPGDAZP.js.map → chunk.JSAB4Y6I.js.map} +1 -1
- package/dist/chunks/{chunk.NSTWUQTX.js → chunk.KFN7XYP3.js} +2 -2
- package/dist/chunks/{chunk.MQS5SMS2.js → chunk.KJGQ4ZXQ.js} +2 -2
- package/dist/chunks/{chunk.TVWWGOJ3.js → chunk.LBRFK4LI.js} +2 -2
- package/dist/chunks/{chunk.YLJQ6AET.js → chunk.LFFBRQZW.js} +6 -4
- package/dist/chunks/{chunk.YLJQ6AET.js.map → chunk.LFFBRQZW.js.map} +1 -1
- package/dist/chunks/{chunk.PQHKZREE.js → chunk.LRPIQZUE.js} +6 -4
- package/dist/chunks/{chunk.PQHKZREE.js.map → chunk.LRPIQZUE.js.map} +1 -1
- package/dist/chunks/{chunk.AINKZEUX.js → chunk.LUXDS4EY.js} +6 -4
- package/dist/chunks/chunk.LUXDS4EY.js.map +7 -0
- package/dist/chunks/chunk.M53SBVYB.js +289 -0
- package/dist/chunks/chunk.M53SBVYB.js.map +7 -0
- package/dist/chunks/{chunk.5YW2U6KS.js → chunk.MPLBBUS4.js} +2 -2
- package/dist/chunks/chunk.MVM3NN6Y.js +14 -0
- package/dist/chunks/chunk.MVM3NN6Y.js.map +7 -0
- package/dist/chunks/{chunk.3Z5FOLLQ.js → chunk.NB5A7N4Y.js} +2 -2
- package/dist/chunks/{chunk.PKLSJL56.js → chunk.NERVPV5E.js} +7 -5
- package/dist/chunks/{chunk.PKLSJL56.js.map → chunk.NERVPV5E.js.map} +1 -1
- package/dist/chunks/chunk.NLYVOJGK.js +23 -0
- package/dist/chunks/chunk.NLYVOJGK.js.map +7 -0
- package/dist/chunks/{chunk.MSPPD7AH.js → chunk.OI2YSFSJ.js} +2 -2
- package/dist/chunks/{chunk.4CYANWKX.js → chunk.OTWB4YCK.js} +2 -2
- package/dist/chunks/{chunk.5LAIPQXK.js → chunk.OVKKA5PU.js} +5 -3
- package/dist/chunks/{chunk.5LAIPQXK.js.map → chunk.OVKKA5PU.js.map} +1 -1
- package/dist/chunks/{chunk.WHYQOSRG.js → chunk.QNDW2KU7.js} +8 -6
- package/dist/chunks/{chunk.WHYQOSRG.js.map → chunk.QNDW2KU7.js.map} +1 -1
- package/dist/chunks/{chunk.6DNYJLIW.js → chunk.R76M6KAF.js} +7 -5
- package/dist/chunks/{chunk.6DNYJLIW.js.map → chunk.R76M6KAF.js.map} +1 -1
- package/dist/chunks/{chunk.4MWRR556.js → chunk.RCLQ6KWO.js} +5 -3
- package/dist/chunks/{chunk.4MWRR556.js.map → chunk.RCLQ6KWO.js.map} +1 -1
- package/dist/chunks/{chunk.2BNI5WOS.js → chunk.RHPPIKE6.js} +3 -23
- package/dist/chunks/{chunk.2BNI5WOS.js.map → chunk.RHPPIKE6.js.map} +3 -3
- package/dist/chunks/{chunk.OEBOUFVY.js → chunk.RICGHU7R.js} +2 -2
- package/dist/chunks/{chunk.7P2VAGAY.js → chunk.RTNMPZXS.js} +9 -7
- package/dist/chunks/{chunk.7P2VAGAY.js.map → chunk.RTNMPZXS.js.map} +1 -1
- package/dist/chunks/{chunk.WPZ3EN3B.js → chunk.S2HGI6BM.js} +6 -4
- package/dist/chunks/{chunk.WPZ3EN3B.js.map → chunk.S2HGI6BM.js.map} +1 -1
- package/dist/chunks/{chunk.XQQUEMGS.js → chunk.S6ITAIH6.js} +8 -6
- package/dist/chunks/{chunk.XQQUEMGS.js.map → chunk.S6ITAIH6.js.map} +1 -1
- package/dist/chunks/{chunk.4JFMTHQM.js → chunk.SCLHFDHD.js} +5 -3
- package/dist/chunks/{chunk.4JFMTHQM.js.map → chunk.SCLHFDHD.js.map} +1 -1
- package/dist/chunks/{chunk.Z2IGM23Y.js → chunk.SILUTMTL.js} +2 -2
- package/dist/chunks/{chunk.JSVWUDAP.js → chunk.SOEUVX7Q.js} +6 -4
- package/dist/chunks/{chunk.JSVWUDAP.js.map → chunk.SOEUVX7Q.js.map} +1 -1
- package/dist/chunks/{chunk.GJOJYXAN.js → chunk.SVBD2JZ2.js} +5 -3
- package/dist/chunks/{chunk.GJOJYXAN.js.map → chunk.SVBD2JZ2.js.map} +1 -1
- package/dist/chunks/chunk.SWC5FQRY.js +12 -0
- package/dist/chunks/chunk.SWC5FQRY.js.map +7 -0
- package/dist/chunks/{chunk.YVXZTTRH.js → chunk.THXJYLZH.js} +6 -4
- package/dist/chunks/{chunk.YVXZTTRH.js.map → chunk.THXJYLZH.js.map} +1 -1
- package/dist/chunks/{chunk.G432IZJ2.js → chunk.TJTS3RJ6.js} +5 -3
- package/dist/chunks/{chunk.G432IZJ2.js.map → chunk.TJTS3RJ6.js.map} +1 -1
- package/dist/chunks/{chunk.JUTPXWUZ.js → chunk.TUI5HJJF.js} +2 -2
- package/dist/chunks/{chunk.7SF5E4DI.js → chunk.U7JCACM5.js} +2 -2
- package/dist/chunks/{chunk.NBUVZYFF.js → chunk.UAYDJJOS.js} +2 -2
- package/dist/chunks/{chunk.DRLBTO2U.js → chunk.UTJJJQMA.js} +2 -2
- package/dist/chunks/{chunk.XIVBBNCN.js → chunk.V5QBVSUE.js} +5 -3
- package/dist/chunks/{chunk.XIVBBNCN.js.map → chunk.V5QBVSUE.js.map} +1 -1
- package/dist/chunks/{chunk.WYQQ5NFF.js → chunk.VYWKS5N3.js} +2 -2
- package/dist/chunks/{chunk.3G27YSWH.js → chunk.WAN4H4BO.js} +2 -2
- package/dist/chunks/{chunk.7OLDDQ7B.js → chunk.WRQHSCDL.js} +2 -2
- package/dist/chunks/{chunk.YVVRO3WJ.js → chunk.X6UQBEJW.js} +6 -4
- package/dist/chunks/{chunk.YVVRO3WJ.js.map → chunk.X6UQBEJW.js.map} +1 -1
- package/dist/chunks/{chunk.EXLEFPSG.js → chunk.XHX52IKN.js} +8 -6
- package/dist/chunks/{chunk.EXLEFPSG.js.map → chunk.XHX52IKN.js.map} +1 -1
- package/dist/chunks/{chunk.EYOKIN5I.js → chunk.XY3F3BWV.js} +2 -2
- package/dist/chunks/{chunk.M4IT5SWM.js → chunk.YB4KKBGA.js} +2 -2
- package/dist/chunks/{chunk.ZWYTILAB.js → chunk.YDFXKQKE.js} +7 -5
- package/dist/chunks/{chunk.ZWYTILAB.js.map → chunk.YDFXKQKE.js.map} +1 -1
- package/dist/chunks/{chunk.D2QV563O.js → chunk.YR33QXK4.js} +6 -4
- package/dist/chunks/{chunk.D2QV563O.js.map → chunk.YR33QXK4.js.map} +1 -1
- package/dist/chunks/chunk.YXVEHDZY.js +36 -0
- package/dist/chunks/chunk.YXVEHDZY.js.map +7 -0
- package/dist/chunks/{chunk.AQMETA2K.js → chunk.ZU7ZBKHI.js} +2 -2
- package/dist/components/accordion/accordion.component.js +3 -2
- package/dist/components/accordion/accordion.js +4 -3
- package/dist/components/alert/alert.component.js +8 -7
- package/dist/components/alert/alert.js +9 -8
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +3 -2
- package/dist/components/badge/badge.js +4 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +6 -5
- package/dist/components/breadcrumb/breadcrumb.js +7 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +3 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +4 -3
- package/dist/components/button/button.component.js +8 -7
- package/dist/components/button/button.js +9 -8
- package/dist/components/button-group/button-group.component.js +3 -2
- package/dist/components/button-group/button-group.js +4 -3
- package/dist/components/card/card.component.js +3 -2
- package/dist/components/card/card.js +4 -3
- package/dist/components/checkbox/checkbox.component.js +7 -6
- package/dist/components/checkbox/checkbox.js +8 -7
- package/dist/components/combobox/combobox.component.js +8 -7
- package/dist/components/combobox/combobox.js +9 -8
- package/dist/components/details/details.component.js +6 -5
- package/dist/components/details/details.js +7 -6
- package/dist/components/dialog/dialog.component.js +7 -6
- package/dist/components/dialog/dialog.js +8 -7
- package/dist/components/divider/divider.component.js +3 -2
- package/dist/components/divider/divider.js +4 -3
- package/dist/components/drawer/drawer.component.js +7 -6
- package/dist/components/drawer/drawer.js +8 -7
- package/dist/components/dropdown/dropdown.component.js +4 -3
- package/dist/components/dropdown/dropdown.js +5 -4
- package/dist/components/file/file.component.js +9 -8
- package/dist/components/file/file.js +10 -9
- package/dist/components/header/header.component.js +7 -6
- package/dist/components/header/header.js +8 -7
- package/dist/components/icon/icon.component.js +5 -4
- package/dist/components/icon/icon.js +6 -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 +6 -5
- package/dist/components/icon-button/icon-button.js +7 -6
- package/dist/components/input/input.component.js +8 -7
- package/dist/components/input/input.js +9 -8
- package/dist/components/menu/menu.component.js +3 -2
- package/dist/components/menu/menu.js +4 -3
- package/dist/components/menu-item/menu-item.component.js +8 -7
- package/dist/components/menu-item/menu-item.js +9 -8
- package/dist/components/menu-label/menu-label.component.js +4 -3
- package/dist/components/menu-label/menu-label.js +5 -4
- package/dist/components/nav-item/nav-item.component.js +4 -3
- package/dist/components/nav-item/nav-item.js +5 -4
- package/dist/components/optgroup/optgroup.component.js +4 -3
- package/dist/components/optgroup/optgroup.js +5 -4
- package/dist/components/option/option.component.js +6 -5
- package/dist/components/option/option.js +7 -6
- package/dist/components/popup/popup.component.js +3 -2
- package/dist/components/popup/popup.js +4 -3
- package/dist/components/prio-nav/prio-nav.component.js +11 -10
- package/dist/components/prio-nav/prio-nav.js +12 -11
- package/dist/components/progress-bar/progress-bar.component.js +3 -2
- package/dist/components/progress-bar/progress-bar.js +4 -3
- package/dist/components/progress-ring/progress-ring.component.js +3 -2
- package/dist/components/progress-ring/progress-ring.js +4 -3
- package/dist/components/radio/radio.component.js +6 -5
- package/dist/components/radio/radio.js +7 -6
- package/dist/components/radio-button/radio-button.component.js +3 -2
- package/dist/components/radio-button/radio-button.js +4 -3
- package/dist/components/radio-group/radio-group.component.js +5 -4
- package/dist/components/radio-group/radio-group.js +6 -5
- package/dist/components/range/range.component.js +6 -5
- package/dist/components/range/range.js +7 -6
- package/dist/components/range-tick/range-tick.component.js +3 -2
- package/dist/components/range-tick/range-tick.js +4 -3
- package/dist/components/resize-observer/resize-observer.component.js +3 -2
- package/dist/components/select/select.component.js +10 -9
- package/dist/components/select/select.js +11 -10
- package/dist/components/side-nav/side-nav.component.js +9 -8
- package/dist/components/side-nav/side-nav.js +10 -9
- package/dist/components/spinner/spinner.component.js +3 -2
- package/dist/components/spinner/spinner.js +4 -3
- package/dist/components/switch/switch.component.js +4 -3
- package/dist/components/switch/switch.js +5 -4
- package/dist/components/tab/tab.component.js +7 -6
- package/dist/components/tab/tab.js +8 -7
- package/dist/components/tab-group/tab-group.component.js +8 -7
- package/dist/components/tab-group/tab-group.js +9 -8
- package/dist/components/tab-panel/tab-panel.component.js +3 -2
- package/dist/components/tab-panel/tab-panel.js +4 -3
- package/dist/components/tag/tag.component.js +7 -6
- package/dist/components/tag/tag.js +8 -7
- package/dist/components/textarea/textarea.component.js +4 -3
- package/dist/components/textarea/textarea.js +5 -4
- package/dist/components/tooltip/tooltip.component.js +4 -3
- package/dist/components/tooltip/tooltip.js +5 -4
- package/dist/components/validate/utility.d.ts +27 -0
- package/dist/components/validate/utility.js +17 -0
- package/dist/components/validate/utility.js.map +7 -0
- package/dist/components/validate/validate.component.d.ts +126 -0
- package/dist/components/validate/validate.component.js +32 -0
- package/dist/components/validate/validate.component.js.map +7 -0
- package/dist/components/validate/validate.d.ts +8 -0
- package/dist/components/validate/validate.js +33 -0
- package/dist/components/validate/validate.js.map +7 -0
- package/dist/components/validate/validate.styles.d.ts +2 -0
- package/dist/components/validate/validate.styles.js +8 -0
- package/dist/components/validate/validate.styles.js.map +7 -0
- package/dist/custom-elements.json +331 -1
- package/dist/styles/fouc.css +2 -1
- package/dist/styles/index.css +3 -2
- package/dist/synergy.d.ts +1 -0
- package/dist/synergy.js +105 -97
- package/dist/utilities/form.js +2 -2
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +37 -0
- package/package.json +3 -3
- package/dist/chunks/chunk.AINKZEUX.js.map +0 -7
- package/dist/chunks/chunk.BBNQVEPD.js.map +0 -7
- package/dist/chunks/chunk.NL3RUWYS.js.map +0 -7
- /package/dist/chunks/{chunk.C4JHD57V.js.map → chunk.2RR6PD3H.js.map} +0 -0
- /package/dist/chunks/{chunk.IMA7VYIB.js.map → chunk.2VWVV75N.js.map} +0 -0
- /package/dist/chunks/{chunk.JTBOIS3P.js.map → chunk.2XCTA3AO.js.map} +0 -0
- /package/dist/chunks/{chunk.SHZVMCAL.js.map → chunk.2XJUCSO3.js.map} +0 -0
- /package/dist/chunks/{chunk.BJSVCJFM.js.map → chunk.3DLFZSF7.js.map} +0 -0
- /package/dist/chunks/{chunk.UAPQUESV.js.map → chunk.46LZSYUL.js.map} +0 -0
- /package/dist/chunks/{chunk.VLGDGOMV.js.map → chunk.4JYTX6L6.js.map} +0 -0
- /package/dist/chunks/{chunk.XIV4ITDK.js.map → chunk.5MAFVQHL.js.map} +0 -0
- /package/dist/chunks/{chunk.QZW3Q6B4.js.map → chunk.6HHHEQL2.js.map} +0 -0
- /package/dist/chunks/{chunk.DEYURI7S.js.map → chunk.6K5JDD4E.js.map} +0 -0
- /package/dist/chunks/{chunk.DCPGWRJI.js.map → chunk.7GDRQYV4.js.map} +0 -0
- /package/dist/chunks/{chunk.PBF6RVNL.js.map → chunk.7JAGIORC.js.map} +0 -0
- /package/dist/chunks/{chunk.BATEH5VM.js.map → chunk.AHZOH7NS.js.map} +0 -0
- /package/dist/chunks/{chunk.WEYEJFFY.js.map → chunk.AOYLQDC7.js.map} +0 -0
- /package/dist/chunks/{chunk.EOEYR3VQ.js.map → chunk.BJMYDPMI.js.map} +0 -0
- /package/dist/chunks/{chunk.OOGMXXI2.js.map → chunk.BUGMDNEC.js.map} +0 -0
- /package/dist/chunks/{chunk.Q6YZNE6X.js.map → chunk.CBX6NOJC.js.map} +0 -0
- /package/dist/chunks/{chunk.FT4NXY3H.js.map → chunk.DUTZXAX3.js.map} +0 -0
- /package/dist/chunks/{chunk.P6WLOVPY.js.map → chunk.DVJ5ESOK.js.map} +0 -0
- /package/dist/chunks/{chunk.7PKSP5SS.js.map → chunk.F7DPSZNS.js.map} +0 -0
- /package/dist/chunks/{chunk.5XB7SBRX.js.map → chunk.FJAWKC4Q.js.map} +0 -0
- /package/dist/chunks/{chunk.TN26BBH4.js.map → chunk.FW2KAIBS.js.map} +0 -0
- /package/dist/chunks/{chunk.X36XXWZC.js.map → chunk.GE4N3DEH.js.map} +0 -0
- /package/dist/chunks/{chunk.543GQUFN.js.map → chunk.HA5UYBEI.js.map} +0 -0
- /package/dist/chunks/{chunk.LSNUIBG6.js.map → chunk.HNJ7JOOE.js.map} +0 -0
- /package/dist/chunks/{chunk.MHM23B27.js.map → chunk.HRCFYO6D.js.map} +0 -0
- /package/dist/chunks/{chunk.VQL5I2S4.js.map → chunk.JAKZ77B7.js.map} +0 -0
- /package/dist/chunks/{chunk.2SWKHX7Z.js.map → chunk.JGNDU3BQ.js.map} +0 -0
- /package/dist/chunks/{chunk.BRYUJEQR.js.map → chunk.JHRKJLEP.js.map} +0 -0
- /package/dist/chunks/{chunk.NSTWUQTX.js.map → chunk.KFN7XYP3.js.map} +0 -0
- /package/dist/chunks/{chunk.MQS5SMS2.js.map → chunk.KJGQ4ZXQ.js.map} +0 -0
- /package/dist/chunks/{chunk.TVWWGOJ3.js.map → chunk.LBRFK4LI.js.map} +0 -0
- /package/dist/chunks/{chunk.5YW2U6KS.js.map → chunk.MPLBBUS4.js.map} +0 -0
- /package/dist/chunks/{chunk.3Z5FOLLQ.js.map → chunk.NB5A7N4Y.js.map} +0 -0
- /package/dist/chunks/{chunk.MSPPD7AH.js.map → chunk.OI2YSFSJ.js.map} +0 -0
- /package/dist/chunks/{chunk.4CYANWKX.js.map → chunk.OTWB4YCK.js.map} +0 -0
- /package/dist/chunks/{chunk.OEBOUFVY.js.map → chunk.RICGHU7R.js.map} +0 -0
- /package/dist/chunks/{chunk.Z2IGM23Y.js.map → chunk.SILUTMTL.js.map} +0 -0
- /package/dist/chunks/{chunk.JUTPXWUZ.js.map → chunk.TUI5HJJF.js.map} +0 -0
- /package/dist/chunks/{chunk.7SF5E4DI.js.map → chunk.U7JCACM5.js.map} +0 -0
- /package/dist/chunks/{chunk.NBUVZYFF.js.map → chunk.UAYDJJOS.js.map} +0 -0
- /package/dist/chunks/{chunk.DRLBTO2U.js.map → chunk.UTJJJQMA.js.map} +0 -0
- /package/dist/chunks/{chunk.WYQQ5NFF.js.map → chunk.VYWKS5N3.js.map} +0 -0
- /package/dist/chunks/{chunk.3G27YSWH.js.map → chunk.WAN4H4BO.js.map} +0 -0
- /package/dist/chunks/{chunk.7OLDDQ7B.js.map → chunk.WRQHSCDL.js.map} +0 -0
- /package/dist/chunks/{chunk.EYOKIN5I.js.map → chunk.XY3F3BWV.js.map} +0 -0
- /package/dist/chunks/{chunk.M4IT5SWM.js.map → chunk.YB4KKBGA.js.map} +0 -0
- /package/dist/chunks/{chunk.AQMETA2K.js.map → chunk.ZU7ZBKHI.js.map} +0 -0
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/details/details.component.ts"],
|
|
4
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, shimKeyframesHeightAuto, 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, 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 SynIcon from '../icon/icon.component.js';\nimport styles from './details.styles.js';\nimport customStyles from './details.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Details show a brief summary and expand to show additional content.\n * @documentation https://synergy.style/components/details\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The details' main content.\n * @slot summary - The details' summary. Alternatively, you can use the `summary` attribute.\n * @slot expand-icon - Optional expand icon to use instead of the default. Works best with `<syn-icon>`.\n * @slot collapse-icon - Optional collapse icon to use instead of the default. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the details opens.\n * @event syn-after-show - Emitted after the details opens and all animations are complete.\n * @event syn-hide - Emitted when the details closes.\n * @event syn-after-hide - Emitted after the details closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart header - The header that wraps both the summary and the expand/collapse icon.\n * @csspart summary - The container that wraps the summary.\n * @csspart summary-icon - The container that wraps the expand/collapse icons.\n * @csspart content - The details content.\n *\n * @animation details.show - The animation to use when showing details. You can use `height: auto` with this animation.\n * @animation details.hide - The animation to use when hiding details. You can use `height: auto` with this animation.\n */\nexport default class SynDetails extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n static dependencies = {\n 'syn-icon': SynIcon\n };\n\n private readonly localize = new LocalizeController(this);\n\n @query('.details') details: HTMLDetailsElement;\n @query('.details__header') header: HTMLElement;\n @query('.details__body') body: HTMLElement;\n @query('.details__expand-icon-slot') expandIconSlot: HTMLSlotElement;\n\n detailsObserver: MutationObserver;\n\n /**\n * Indicates whether or not the details is open. You can toggle this attribute to show and hide the details, or you\n * can use the `show()` and `hide()` methods and this attribute will reflect the details' open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** The summary to show in the header. If you need to display HTML, use the `summary` slot instead. */\n @property() summary: string;\n\n /** Disables the details so it can't be toggled. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the details as contained element. */\n @property({ type: Boolean, reflect: true }) contained = false;\n\n /** The details's size. */\n @property({ reflect: true }) size: 'medium' | 'large' = 'medium';\n\n firstUpdated() {\n this.body.style.height = this.open ? 'auto' : '0';\n if (this.open) {\n this.details.open = true;\n }\n\n this.detailsObserver = new MutationObserver(changes => {\n for (const change of changes) {\n if (change.type === 'attributes' && change.attributeName === 'open') {\n if (this.details.open) {\n this.show();\n } else {\n this.hide();\n }\n }\n }\n });\n this.detailsObserver.observe(this.details, { attributes: true });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.detailsObserver?.disconnect();\n }\n\n private handleSummaryClick(event: MouseEvent) {\n event.preventDefault();\n\n if (!this.disabled) {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n this.header.focus();\n }\n }\n\n private handleSummaryKeyDown(event: KeyboardEvent) {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.hide();\n }\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {\n event.preventDefault();\n this.show();\n }\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n this.details.open = true;\n // Show\n const slShow = this.emit('syn-show', { cancelable: true });\n if (slShow.defaultPrevented) {\n this.open = false;\n this.details.open = false;\n return;\n }\n\n await stopAnimations(this.body);\n\n const { keyframes, options } = getAnimation(this, 'details.show', { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = 'auto';\n\n this.emit('syn-after-show');\n } else {\n // Hide\n const slHide = this.emit('syn-hide', { cancelable: true });\n if (slHide.defaultPrevented) {\n this.details.open = true;\n this.open = true;\n return;\n }\n\n await stopAnimations(this.body);\n\n const { keyframes, options } = getAnimation(this, 'details.hide', { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = 'auto';\n\n this.details.open = false;\n this.emit('syn-after-hide');\n }\n }\n\n /** Shows the details. */\n async show() {\n if (this.open || this.disabled) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the details */\n async hide() {\n if (!this.open || this.disabled) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n render() {\n return html`\n <details\n part=\"base\"\n class=${classMap({\n details: true,\n 'details--size-medium': this.size === 'medium',\n 'details--size-large': this.size === 'large',\n 'details--open': this.open,\n 'details--disabled': this.disabled,\n 'details--contained': this.contained,\n })}\n >\n <summary\n part=\"header\"\n id=\"header\"\n class=\"details__header\"\n role=\"button\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-controls=\"content\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n tabindex=${this.disabled ? '-1' : '0'}\n @click=${this.handleSummaryClick}\n @keydown=${this.handleSummaryKeyDown}\n >\n <slot name=\"summary\" part=\"summary\" class=\"details__summary\">${this.summary}</slot>\n\n <span part=\"summary-icon\" class=\"details__summary-icon\">\n <slot name=\"expand-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n <slot name=\"collapse-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n </span>\n </summary>\n\n <div class=\"details__body\" role=\"region\" aria-labelledby=\"header\">\n <slot part=\"content\" id=\"content\" class=\"details__content\"></slot>\n </div>\n </details>\n `;\n }\n}\n\nsetDefaultAnimation('details.show', {\n keyframes: [\n { height: '0', opacity: '0' },\n { height: 'auto', opacity: '1' }\n ],\n options: { duration: 250, easing: 'linear' }\n});\n\nsetDefaultAnimation('details.hide', {\n keyframes: [\n { height: 'auto', opacity: '1' },\n { height: '0', opacity: '0' }\n ],\n options: { duration: 250, easing: 'linear' }\n});\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;AAqChC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAAvD;AAAA;AAOE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAaX,gBAAO;AAMP,oBAAW;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;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAhCR,WAgCU;AA+DvB;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA9F1B,WA+Fb;AAuGR,oBAAoB,gBAAgB;AAAA,EAClC,WAAW;AAAA,IACT,EAAE,QAAQ,KAAK,SAAS,IAAI;AAAA,IAC5B,EAAE,QAAQ,QAAQ,SAAS,IAAI;AAAA,EACjC;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,SAAS;AAC7C,CAAC;AAED,oBAAoB,gBAAgB;AAAA,EAClC,WAAW;AAAA,IACT,EAAE,QAAQ,QAAQ,SAAS,IAAI;AAAA,IAC/B,EAAE,QAAQ,KAAK,SAAS,IAAI;AAAA,EAC9B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,SAAS;AAC7C,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSpinner
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.RCLQ6KWO.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlController,
|
|
6
6
|
validValidityState
|
|
7
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.AMIQC3O7.js";
|
|
8
8
|
import {
|
|
9
9
|
button_custom_styles_default
|
|
10
10
|
} from "./chunk.42LDZR6F.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk.WVVQK5TE.js";
|
|
18
18
|
import {
|
|
19
19
|
SynIcon
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.SOEUVX7Q.js";
|
|
21
21
|
import {
|
|
22
22
|
LocalizeController
|
|
23
23
|
} from "./chunk.GIU3H3J3.js";
|
|
@@ -25,9 +25,11 @@ import {
|
|
|
25
25
|
watch
|
|
26
26
|
} from "./chunk.74IOULXM.js";
|
|
27
27
|
import {
|
|
28
|
-
SynergyElement,
|
|
29
28
|
component_styles_default
|
|
30
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.NLYVOJGK.js";
|
|
30
|
+
import {
|
|
31
|
+
SynergyElement
|
|
32
|
+
} from "./chunk.RHPPIKE6.js";
|
|
31
33
|
import {
|
|
32
34
|
__decorateClass
|
|
33
35
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -287,4 +289,4 @@ __decorateClass([
|
|
|
287
289
|
export {
|
|
288
290
|
SynButton
|
|
289
291
|
};
|
|
290
|
-
//# sourceMappingURL=chunk.
|
|
292
|
+
//# sourceMappingURL=chunk.S6ITAIH6.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/button/button.component.ts"],
|
|
4
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 { classMap } from 'lit/directives/class-map.js';\nimport { FormControlController, validValidityState } from '../../internal/form.js';\nimport { HasSlotController, getTextContent } from '../../internal/slot.js';\nimport { html, literal } from 'lit/static-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynSpinner from '../spinner/spinner.component.js';\nimport styles from './button.styles.js';\nimport customStyles from './button.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Buttons represent actions that are available to the user.\n * @documentation https://synergy.style/components/button\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-spinner\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @slot - The button's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n *\n * @csspart base - The component's base wrapper.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart label - The button's label.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart caret - The button's caret icon, an `<syn-icon>` element.\n * @csspart spinner - The spinner that shows when the button is in the loading state.\n */\nexport default class SynButton extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-spinner': SynSpinner\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['click']\n });\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'prefix', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('.button') button: HTMLButtonElement | HTMLLinkElement;\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n\n @state() private iconOnly = false;\n\n @state() private hasFocus = false;\n @state() invalid = false;\n @property() title = ''; // make reactive to pass through\n\n /** The button's theme variant. */\n @property({ reflect: true }) variant: 'filled' | 'outline' | 'text' = 'outline';\n\n /** The button's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. */\n @property({ type: Boolean, reflect: true }) caret = false;\n\n /** Disables the button. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the button in a loading state. */\n @property({ type: Boolean, reflect: true }) loading = false;\n\n /**\n * The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n * `<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.\n */\n @property() type: 'button' | 'submit' | 'reset' = 'button';\n\n /**\n * The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\n * This attribute is ignored when `href` is present.\n */\n @property() name = '';\n\n /**\n * The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\n * button is the submitter. This attribute is ignored when `href` is present.\n */\n @property() value = '';\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @property() href = '';\n\n /** Tells the browser where to open the link. Only used when `href` is present. */\n @property() target: '_blank' | '_parent' | '_self' | '_top';\n\n /**\n * When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\n * default is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\n * specific tab/window, this will prevent that from working correctly. You can remove or change the default value by\n * setting the attribute to an empty string or a value of your choice, respectively.\n */\n @property() rel = 'noreferrer noopener';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is present. */\n @property() download?: string;\n\n /**\n * The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\n * value of this attribute must be an id of a form in the same document or shadow root as the button.\n */\n @property() form: string;\n\n /** Used to override the form owner's `action` attribute. */\n @property({ attribute: 'formaction' }) formAction: string;\n\n /** Used to override the form owner's `enctype` attribute. */\n @property({ attribute: 'formenctype' })\n formEnctype: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';\n\n /** Used to override the form owner's `method` attribute. */\n @property({ attribute: 'formmethod' }) formMethod: 'post' | 'get';\n\n /** Used to override the form owner's `novalidate` attribute. */\n @property({ attribute: 'formnovalidate', type: Boolean }) formNoValidate: boolean;\n\n /** Used to override the form owner's `target` attribute. */\n @property({ attribute: 'formtarget' }) formTarget: '_self' | '_blank' | '_parent' | '_top' | string;\n\n /** Gets the validity state object */\n get validity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).validity;\n }\n\n return validValidityState;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).validationMessage;\n }\n\n return '';\n }\n\n firstUpdated() {\n if (this.isButton()) {\n this.formControlController.updateValidity();\n }\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleClick() {\n if (this.type === 'submit') {\n this.formControlController.submit(this);\n }\n\n if (this.type === 'reset') {\n this.formControlController.reset(this);\n }\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private isButton() {\n return this.href ? false : true;\n }\n\n private isLink() {\n return this.href ? true : false;\n }\n\n private handleSlotChange() {\n const textContent = getTextContent(this.defaultSlot).trim();\n const assignedElements = this.defaultSlot.assignedElements({flatten: true})\n const iconOnlyElement = assignedElements.length === 1 && assignedElements[0].tagName.toLowerCase() === 'syn-icon';\n\n this.iconOnly = iconOnlyElement && textContent === '';\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n if (this.isButton()) {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n }\n\n /** Simulates a click on the button. */\n click() {\n this.button.click();\n }\n\n /** Sets focus on the button. */\n focus(options?: FocusOptions) {\n this.button.focus(options);\n }\n\n /** Removes focus from the button. */\n blur() {\n this.button.blur();\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).checkValidity();\n }\n\n return true;\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).reportValidity();\n }\n\n return true;\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n if (this.isButton()) {\n (this.button as HTMLButtonElement).setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n }\n\n render() {\n const isLink = this.isLink();\n const tag = isLink ? literal`a` : literal`button`;\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable lit/binding-positions */\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n button: true,\n 'button--primary': true,\n 'button--text': this.variant === 'text',\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n 'button--caret': this.caret,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--filled': this.variant === 'filled',\n 'button--outline': this.variant === 'outline',\n 'button--rtl': this.localize.dir() === 'rtl',\n 'button--has-label': this.hasSlotController.test('[default]'),\n 'button--has-prefix': this.hasSlotController.test('prefix'),\n 'button--has-suffix': this.hasSlotController.test('suffix')\n })}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n type=${ifDefined(isLink ? undefined : this.type)}\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(isLink ? undefined : this.name)}\n value=${ifDefined(isLink ? undefined : this.value)}\n href=${ifDefined(isLink && !this.disabled ? this.href : undefined)}\n target=${ifDefined(isLink ? this.target : undefined)}\n download=${ifDefined(isLink ? this.download : undefined)}\n rel=${ifDefined(isLink ? this.rel : undefined)}\n role=${ifDefined(isLink ? undefined : 'button')}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n tabindex=${this.disabled ? '-1' : '0'}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @invalid=${this.isButton() ? this.handleInvalid : null}\n @click=${this.handleClick}\n >\n <slot name=\"prefix\" part=\"prefix\" class=\"button__prefix\"></slot>\n <slot part=\"label\" class=${classMap({ 'button__label': true, 'button__icon-only': this.iconOnly })} @slotchange=${this.handleSlotChange}></slot>\n <slot name=\"suffix\" part=\"suffix\" class=\"button__suffix\"></slot>\n ${\n this.caret ? html` <syn-icon part=\"caret\" class=\"button__caret\" library=\"system\" name=\"caret\"></syn-icon> ` : ''\n }\n ${this.loading ? html`<syn-spinner part=\"spinner\"></syn-spinner>` : ''}\n </${tag}>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable lit/binding-positions */\n }\n}\n"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S,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GApCvB,UAoCyB;AAMhC;AAAA,EAAX,SAAS;AAAA,GA1CS,UA0CP;AAMA;AAAA,EAAX,SAAS;AAAA,GAhDS,UAgDP;AAMA;AAAA,EAAX,SAAS;AAAA,GAtDS,UAsDP;AAGA;AAAA,EAAX,SAAS;AAAA,GAzDS,UAyDP;AAGA;AAAA,EAAX,SAAS;AAAA,GA5DS,UA4DP;AAQA;AAAA,EAAX,SAAS;AAAA,GApES,UAoEP;AAGA;AAAA,EAAX,SAAS;AAAA,GAvES,UAuEP;AAMA;AAAA,EAAX,SAAS;AAAA,GA7ES,UA6EP;AAG2B;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GAhFlB,UAgFoB;AAIvC;AAAA,EADC,SAAS,EAAE,WAAW,cAAc,CAAC;AAAA,GAnFnB,UAoFnB;AAGuC;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GAvFlB,UAuFoB;AAGmB;AAAA,EAAzD,SAAS,EAAE,WAAW,kBAAkB,MAAM,QAAQ,CAAC;AAAA,GA1FrC,UA0FuC;AAGnB;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GA7FlB,UA6FoB;AAoEvC;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAhK9B,UAiKnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -8,9 +8,11 @@ import {
|
|
|
8
8
|
LocalizeController
|
|
9
9
|
} from "./chunk.GIU3H3J3.js";
|
|
10
10
|
import {
|
|
11
|
-
SynergyElement,
|
|
12
11
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.NLYVOJGK.js";
|
|
13
|
+
import {
|
|
14
|
+
SynergyElement
|
|
15
|
+
} from "./chunk.RHPPIKE6.js";
|
|
14
16
|
import {
|
|
15
17
|
__decorateClass
|
|
16
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -74,4 +76,4 @@ __decorateClass([
|
|
|
74
76
|
export {
|
|
75
77
|
SynProgressRing
|
|
76
78
|
};
|
|
77
|
-
//# sourceMappingURL=chunk.
|
|
79
|
+
//# sourceMappingURL=chunk.SCLHFDHD.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/progress-ring/progress-ring.component.ts"],
|
|
4
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 { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './progress-ring.styles.js';\nimport customStyles from './progress-ring.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Progress rings are used to show the progress of a determinate operation in a circular fashion.\n * @documentation https://synergy.style/components/progress-ring\n * @status stable\n * @since 2.0\n *\n * @slot - A label to show inside the ring.\n *\n * @csspart base - The component's base wrapper.\n * @csspart label - The progress ring label.\n *\n * @cssproperty --size - The diameter of the progress ring (cannot be a percentage).\n * @cssproperty --track-width - The width of the track.\n * @cssproperty --track-color - The color of the track.\n * @cssproperty --indicator-width - The width of the indicator. Defaults to the track width.\n * @cssproperty --indicator-color - The color of the indicator.\n * @cssproperty --indicator-transition-duration - The duration of the indicator's transition when the value changes.\n */\nexport default class SynProgressRing extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private readonly localize = new LocalizeController(this);\n\n @query('.progress-ring__indicator') indicator: SVGCircleElement;\n\n @state() indicatorOffset: string;\n\n /** The current progress as a percentage, 0 to 100. */\n @property({ type: Number, reflect: true }) value = 0;\n\n /** A custom label for assistive devices. */\n @property() label = '';\n\n updated(changedProps: Map<string, unknown>) {\n super.updated(changedProps);\n\n //\n // This block is only required for Safari because it doesn't transition the circle when the custom properties\n // change, possibly because of a mix of pixel + unit-less values in the calc() function. It seems like a Safari bug,\n // but I couldn't pinpoint it so this works around the problem.\n //\n if (changedProps.has('value')) {\n const radius = parseFloat(getComputedStyle(this.indicator).getPropertyValue('r'));\n const circumference = 2 * Math.PI * radius;\n const offset = circumference - (this.value / 100) * circumference;\n\n this.indicatorOffset = `${offset}px`;\n }\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=\"progress-ring\"\n role=\"progressbar\"\n aria-label=${this.label.length > 0 ? this.label : this.localize.term('progress')}\n aria-describedby=\"label\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuenow=\"${this.value}\"\n style=\"--percentage: ${this.value / 100}\"\n >\n <svg class=\"progress-ring__image\">\n <circle class=\"progress-ring__track\"></circle>\n <circle class=\"progress-ring__indicator\" style=\"stroke-dashoffset: ${this.indicatorOffset}\"></circle>\n </svg>\n\n <slot id=\"label\" part=\"label\" class=\"progress-ring__label\"></slot>\n </div>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAQA,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AAyBvC,IAAqB,kBAArB,cAA6C,eAAe;AAAA,EAA5D;AAAA;AAGE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAOZ,iBAAQ;AAGvC,iBAAQ;AAAA;AAAA,EAEpB,QAAQ,cAAoC;AAC1C,UAAM,QAAQ,YAAY;AAO1B,QAAI,aAAa,IAAI,OAAO,GAAG;AAC7B,YAAM,SAAS,WAAW,iBAAiB,KAAK,SAAS,EAAE,iBAAiB,GAAG,CAAC;AAChF,YAAM,gBAAgB,IAAI,KAAK,KAAK;AACpC,YAAM,SAAS,gBAAiB,KAAK,QAAQ,MAAO;AAEpD,WAAK,kBAAkB,GAAG,MAAM;AAAA,IAClC;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA,qBAKU,KAAK,MAAM,SAAS,IAAI,KAAK,QAAQ,KAAK,SAAS,KAAK,UAAU,CAAC;AAAA;AAAA;AAAA;AAAA,yBAI/D,KAAK,KAAK;AAAA,+BACJ,KAAK,QAAQ,GAAG;AAAA;AAAA;AAAA;AAAA,+EAIgC,KAAK,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjG;AACF;AAtDqB,gBACZ,SAAyB,CAAC,0BAAiB,8BAAQ,mCAAY;AAIlC;AAAA,EAAnC,MAAM,2BAA2B;AAAA,GALf,gBAKiB;AAE3B;AAAA,EAAR,MAAM;AAAA,GAPY,gBAOV;AAGkC;AAAA,EAA1C,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAVtB,gBAUwB;AAG/B;AAAA,EAAX,SAAS;AAAA,GAbS,gBAaP;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBadge
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2HVKUBS7.js";
|
|
4
4
|
|
|
5
5
|
// src/components/badge/badge.ts
|
|
6
6
|
var badge_default = SynBadge;
|
|
@@ -9,4 +9,4 @@ SynBadge.define("syn-badge");
|
|
|
9
9
|
export {
|
|
10
10
|
badge_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.SILUTMTL.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getIconLibrary,
|
|
3
3
|
unwatchIcon,
|
|
4
4
|
watchIcon
|
|
5
|
-
} from "./chunk.
|
|
5
|
+
} from "./chunk.HA5UYBEI.js";
|
|
6
6
|
import {
|
|
7
7
|
icon_custom_styles_default
|
|
8
8
|
} from "./chunk.PJO6TM3T.js";
|
|
@@ -13,9 +13,11 @@ import {
|
|
|
13
13
|
watch
|
|
14
14
|
} from "./chunk.74IOULXM.js";
|
|
15
15
|
import {
|
|
16
|
-
SynergyElement,
|
|
17
16
|
component_styles_default
|
|
18
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.NLYVOJGK.js";
|
|
18
|
+
import {
|
|
19
|
+
SynergyElement
|
|
20
|
+
} from "./chunk.RHPPIKE6.js";
|
|
19
21
|
import {
|
|
20
22
|
__decorateClass
|
|
21
23
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -180,4 +182,4 @@ __decorateClass([
|
|
|
180
182
|
export {
|
|
181
183
|
SynIcon
|
|
182
184
|
};
|
|
183
|
-
//# sourceMappingURL=chunk.
|
|
185
|
+
//# sourceMappingURL=chunk.SOEUVX7Q.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/icon/icon.component.ts"],
|
|
4
4
|
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { getIconLibrary, type IconLibrary, unwatchIcon, watchIcon } from './library.js';\nimport { html } from 'lit';\nimport { isTemplateResult } from 'lit/directive-helpers.js';\nimport { property, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './icon.styles.js';\nimport customStyles from './icon.custom.styles.js';\nimport type { CSSResultGroup, HTMLTemplateResult } from 'lit';\n\nconst CACHEABLE_ERROR = Symbol();\nconst RETRYABLE_ERROR = Symbol();\ntype SVGResult = HTMLTemplateResult | SVGSVGElement | typeof RETRYABLE_ERROR | typeof CACHEABLE_ERROR;\n\nlet parser: DOMParser;\nconst iconCache = new Map<string, Promise<SVGResult>>();\n\ninterface IconSource {\n url?: string;\n fromLibrary: boolean;\n}\n\n/**\n * @summary Icons are symbols that can be used to represent various options within an application.\n * @documentation https://synergy.style/components/icon\n * @status stable\n * @since 2.0\n *\n * @event syn-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.\n * @event syn-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.\n *\n * @csspart svg - The internal SVG element.\n * @csspart use - The <use> element generated when using `spriteSheet: true`\n */\nexport default class SynIcon extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private initialRender = false;\n\n /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */\n private async resolveIcon(url: string, library?: IconLibrary): Promise<SVGResult> {\n let fileData: Response;\n\n if (library?.spriteSheet) {\n this.svg = html`<svg part=\"svg\">\n <use part=\"use\" href=\"${url}\" width=\"100%\" height=\"100%\"></use>\n </svg>`;\n\n return this.svg;\n }\n\n try {\n fileData = await fetch(url, { mode: 'cors' });\n if (!fileData.ok) return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;\n } catch {\n return RETRYABLE_ERROR;\n }\n\n try {\n const div = document.createElement('div');\n div.innerHTML = await fileData.text();\n\n const svg = div.firstElementChild;\n if (svg?.tagName?.toLowerCase() !== 'svg') return CACHEABLE_ERROR;\n\n if (!parser) parser = new DOMParser();\n const doc = parser.parseFromString(svg.outerHTML, 'text/html');\n\n const svgEl = doc.body.querySelector('svg');\n if (!svgEl) return CACHEABLE_ERROR;\n\n svgEl.part.add('svg');\n return document.adoptNode(svgEl);\n } catch {\n return CACHEABLE_ERROR;\n }\n }\n\n @state() private svg: SVGElement | HTMLTemplateResult | null = null;\n\n /** The name of the icon to draw. Available names depend on the icon library being used. */\n @property({ reflect: true }) name?: string;\n\n /**\n * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\n * can result in XSS attacks.\n */\n @property() src?: string;\n\n /**\n * An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and\n * ignored by assistive devices.\n */\n @property() label = '';\n\n /** The name of a registered custom icon library. */\n @property({ reflect: true }) library = 'default';\n\n connectedCallback() {\n super.connectedCallback();\n watchIcon(this);\n }\n\n firstUpdated() {\n this.initialRender = true;\n this.setIcon();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n unwatchIcon(this);\n }\n\n private getIconSource(): IconSource {\n const library = getIconLibrary(this.library);\n if (this.name && library) {\n return {\n url: library.resolver(this.name),\n fromLibrary: true\n };\n }\n\n return {\n url: this.src,\n fromLibrary: false\n };\n }\n\n @watch('label')\n handleLabelChange() {\n const hasLabel = typeof this.label === 'string' && this.label.length > 0;\n\n if (hasLabel) {\n this.setAttribute('role', 'img');\n this.setAttribute('aria-label', this.label);\n this.removeAttribute('aria-hidden');\n } else {\n this.removeAttribute('role');\n this.removeAttribute('aria-label');\n this.setAttribute('aria-hidden', 'true');\n }\n }\n\n @watch(['name', 'src', 'library'])\n async setIcon() {\n const { url, fromLibrary } = this.getIconSource();\n const library = fromLibrary ? getIconLibrary(this.library) : undefined;\n\n if (!url) {\n this.svg = null;\n return;\n }\n\n let iconResolver = iconCache.get(url);\n if (!iconResolver) {\n iconResolver = this.resolveIcon(url, library);\n iconCache.set(url, iconResolver);\n }\n\n // If we haven't rendered yet, exit early. This avoids unnecessary work due to watching multiple props.\n if (!this.initialRender) {\n return;\n }\n\n const svg = await iconResolver;\n\n if (svg === RETRYABLE_ERROR) {\n iconCache.delete(url);\n }\n\n if (url !== this.getIconSource().url) {\n // If the url has changed while fetching the icon, ignore this request\n return;\n }\n\n if (isTemplateResult(svg)) {\n this.svg = svg;\n\n if (library) {\n // Using a templateResult requires the SVG to be written to the DOM first before we can grab the SVGElement\n // to be passed to the library's mutator function.\n await this.updateComplete;\n\n const shadowSVG = this.shadowRoot!.querySelector(\"[part='svg']\")!;\n\n if (typeof library.mutator === 'function' && shadowSVG) {\n library.mutator(shadowSVG as SVGElement);\n }\n }\n\n return;\n }\n\n switch (svg) {\n case RETRYABLE_ERROR:\n case CACHEABLE_ERROR:\n this.svg = null;\n this.emit('syn-error');\n break;\n default:\n this.svg = svg.cloneNode(true) as SVGElement;\n library?.mutator?.(this.svg);\n this.emit('syn-load');\n }\n }\n\n render() {\n return this.svg;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,UAAU,aAAa;AAQhC,IAAM,kBAAkB,OAAO;AAC/B,IAAM,kBAAkB,OAAO;AAG/B,IAAI;AACJ,IAAM,YAAY,oBAAI,IAAgC;AAmBtD,IAAqB,UAArB,cAAqC,eAAe;AAAA,EAApD;AAAA;AAGE,SAAQ,gBAAgB;AAyCf,SAAQ,MAA8C;AAenD,iBAAQ;AAGS,mBAAU;AAAA;AAAA;AAAA,EAxDvC,MAAc,YAAY,KAAa,SAA2C;AAjDpF;AAkDI,QAAI;AAEJ,QAAI,mCAAS,aAAa;AACxB,WAAK,MAAM;AAAA,gCACe,GAAG;AAAA;AAG7B,aAAO,KAAK;AAAA,IACd;AAEA,QAAI;AACF,iBAAW,MAAM,MAAM,KAAK,EAAE,MAAM,OAAO,CAAC;AAC5C,UAAI,CAAC,SAAS,GAAI,QAAO,SAAS,WAAW,MAAM,kBAAkB;AAAA,IACvE,SAAQ;AACN,aAAO;AAAA,IACT;AAEA,QAAI;AACF,YAAM,MAAM,SAAS,cAAc,KAAK;AACxC,UAAI,YAAY,MAAM,SAAS,KAAK;AAEpC,YAAM,MAAM,IAAI;AAChB,YAAI,gCAAK,YAAL,mBAAc,mBAAkB,MAAO,QAAO;AAElD,UAAI,CAAC,OAAQ,UAAS,IAAI,UAAU;AACpC,YAAM,MAAM,OAAO,gBAAgB,IAAI,WAAW,WAAW;AAE7D,YAAM,QAAQ,IAAI,KAAK,cAAc,KAAK;AAC1C,UAAI,CAAC,MAAO,QAAO;AAEnB,YAAM,KAAK,IAAI,KAAK;AACpB,aAAO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|
} from "./chunk.WVVQK5TE.js";
|
|
10
10
|
import {
|
|
11
|
-
SynergyElement,
|
|
12
11
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.NLYVOJGK.js";
|
|
13
|
+
import {
|
|
14
|
+
SynergyElement
|
|
15
|
+
} from "./chunk.RHPPIKE6.js";
|
|
14
16
|
import {
|
|
15
17
|
__decorateClass
|
|
16
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -53,4 +55,4 @@ __decorateClass([
|
|
|
53
55
|
export {
|
|
54
56
|
SynCard
|
|
55
57
|
};
|
|
56
|
-
//# sourceMappingURL=chunk.
|
|
58
|
+
//# sourceMappingURL=chunk.SVBD2JZ2.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/card/card.component.ts"],
|
|
4
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 { classMap } from 'lit/directives/class-map.js';\nimport { property } from 'lit/decorators.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './card.styles.js';\nimport customStyles from './card.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Cards can be used to group related subjects in a container.\n * @documentation https://synergy.style/components/card\n * @status stable\n * @since 2.0\n *\n * @slot - The card's main content.\n * @slot header - An optional header for the card.\n * @slot footer - An optional footer for the card.\n * @slot image - An optional image to render at the start of the card.\n *\n * @csspart base - The component's base wrapper.\n * @csspart image - The container that wraps the card's image.\n * @csspart header - The container that wraps the card's header.\n * @csspart body - The container that wraps the card's main content.\n * @csspart footer - The container that wraps the card's footer.\n *\n * @cssproperty --border-color - The card's border color, including borders that occur inside the card.\n * @cssproperty --border-radius - The border radius for the card's edges.\n * @cssproperty --border-width - The width of the card's borders.\n * @cssproperty --padding - The padding to use for the card's sections.\n */\nexport default class SynCard extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private readonly hasSlotController = new HasSlotController(this, 'footer', 'header', 'image');\n\n /** Draws the card with sharp edges. Can be used e.g. when nesting multiple syn-cards to create hierarchy. */\n @property({ type: Boolean, reflect: true }) sharp = false;\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n card: true,\n 'card--sharp': this.sharp,\n 'card--has-footer': this.hasSlotController.test('footer'),\n 'card--has-image': this.hasSlotController.test('image'),\n 'card--has-header': this.hasSlotController.test('header')\n })}\n >\n <slot name=\"image\" part=\"image\" class=\"card__image\"></slot>\n <slot name=\"header\" part=\"header\" class=\"card__header\"></slot>\n <slot part=\"body\" class=\"card__body\"></slot>\n <slot name=\"footer\" part=\"footer\" class=\"card__footer\"></slot>\n </div>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AA6BrB,IAAqB,UAArB,cAAqC,eAAe;AAAA,EAApD;AAAA;AAGE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,UAAU,UAAU,OAAO;AAGhD,iBAAQ;AAAA;AAAA,EAEpD,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,MAAM;AAAA,MACN,eAAe,KAAK;AAAA,MACpB,oBAAoB,KAAK,kBAAkB,KAAK,QAAQ;AAAA,MACxD,mBAAmB,KAAK,kBAAkB,KAAK,OAAO;AAAA,MACtD,oBAAoB,KAAK,kBAAkB,KAAK,QAAQ;AAAA,IAC1D,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQR;AACF;AA3BqB,QACZ,SAAyB,CAAC,0BAAiB,qBAAQ,0BAAY;AAK1B;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GANvB,QAMyB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynValidate
|
|
3
|
+
} from "./chunk.M53SBVYB.js";
|
|
4
|
+
|
|
5
|
+
// src/components/validate/validate.ts
|
|
6
|
+
var validate_default = SynValidate;
|
|
7
|
+
SynValidate.define("syn-validate");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
validate_default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk.SWC5FQRY.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/validate/validate.ts"],
|
|
4
|
+
"sourcesContent": ["import SynValidate from './validate.component.js';\n\nexport * from './validate.component.js';\nexport default SynValidate;\n\nSynValidate.define('syn-validate');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-validate': SynValidate;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AAGA,IAAO,mBAAQ;AAEf,YAAY,OAAO,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -6,11 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk.DZ7YIR5N.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.SOEUVX7Q.js";
|
|
10
10
|
import {
|
|
11
|
-
SynergyElement,
|
|
12
11
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.NLYVOJGK.js";
|
|
13
|
+
import {
|
|
14
|
+
SynergyElement
|
|
15
|
+
} from "./chunk.RHPPIKE6.js";
|
|
14
16
|
import {
|
|
15
17
|
__decorateClass
|
|
16
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -136,4 +138,4 @@ __decorateClass([
|
|
|
136
138
|
export {
|
|
137
139
|
SynIconButton
|
|
138
140
|
};
|
|
139
|
-
//# sourceMappingURL=chunk.
|
|
141
|
+
//# sourceMappingURL=chunk.THXJYLZH.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/icon-button/icon-button.component.ts"],
|
|
4
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 { classMap } from 'lit/directives/class-map.js';\nimport { html, literal } from 'lit/static-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './icon-button.styles.js';\nimport customStyles from './icon-button.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.\n * @documentation https://synergy.style/components/icon-button\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @event syn-blur - Emitted when the icon button loses focus.\n * @event syn-focus - Emitted when the icon button gains focus.\n *\n * @csspart base - The component's base wrapper.\n */\nexport default class SynIconButton extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n @query('.icon-button') button: HTMLButtonElement | HTMLLinkElement;\n\n @state() private hasFocus = false;\n\n /** The name of the icon to draw. Available names depend on the icon library being used. */\n @property() name?: string;\n\n /** The name of a registered custom icon library. */\n @property() library?: string;\n\n /**\n * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\n * can result in XSS attacks.\n */\n @property() src?: string;\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @property() href?: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @property() target?: '_blank' | '_parent' | '_self' | '_top';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */\n @property() download?: string;\n\n /**\n * A description that gets read by assistive devices. For optimal accessibility, you should always include a label\n * that describes what the icon button does.\n */\n @property() label = '';\n\n /** The icon button's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' | 'inherit' = 'inherit';\n\n /**\n * The color of the icon button.\n * The default \"currentColor\" makes it possible to easily style the icon button from outside without any CSS variables.\n */\n @property({ reflect: true }) color: 'currentColor' | 'primary' | 'neutral' = 'currentColor';\n\n /** Disables the button. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleClick(event: MouseEvent) {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /** Simulates a click on the icon button. */\n click() {\n this.button.click();\n }\n\n /** Sets focus on the icon button. */\n focus(options?: FocusOptions) {\n this.button.focus(options);\n }\n\n /** Removes focus from the icon button. */\n blur() {\n this.button.blur();\n }\n\n render() {\n const isLink = this.href ? true : false;\n const tag = isLink ? literal`a` : literal`button`;\n\n /* eslint-disable lit/binding-positions, lit/no-invalid-html */\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n 'icon-button': true,\n 'icon-button--disabled': !isLink && this.disabled,\n 'icon-button--focused': this.hasFocus,\n 'icon-button--small': this.size === 'small',\n 'icon-button--medium': this.size === 'medium',\n 'icon-button--large': this.size === 'large',\n })}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n type=${ifDefined(isLink ? undefined : 'button')}\n href=${ifDefined(isLink ? this.href : undefined)}\n target=${ifDefined(isLink ? this.target : undefined)}\n download=${ifDefined(isLink ? this.download : undefined)}\n rel=${ifDefined(isLink && this.target ? 'noreferrer noopener' : undefined)}\n role=${ifDefined(isLink ? undefined : 'button')}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n aria-label=\"${this.label}\"\n tabindex=${this.disabled ? '-1' : '0'}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @click=${this.handleClick}\n >\n <syn-icon\n class=\"icon-button__icon\"\n name=${ifDefined(this.name)}\n library=${ifDefined(this.library)}\n src=${ifDefined(this.src)}\n aria-hidden=\"true\"\n ></syn-icon>\n </${tag}>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,MAAM,eAAe;AAC9B,SAAS,iBAAiB;AAC1B,SAAS,UAAU,OAAO,aAAa;AAqBvC,IAAqB,gBAArB,cAA2C,eAAe;AAAA,EAA1D;AAAA;AAMW,SAAQ,WAAW;AA2BhB,iBAAQ;AAGS,gBAAiD;AAMjD,iBAAiD;AAGlC,oBAAW;AAAA;AAAA,EAE/C,aAAa;AACnB,SAAK,WAAW;AAChB,SAAK,KAAK,UAAU;AAAA,EACtB;AAAA,EAEQ,cAAc;AACpB,SAAK,WAAW;AAChB,SAAK,KAAK,WAAW;AAAA,EACvB;AAAA,EAEQ,YAAY,OAAmB;AACrC,QAAI,KAAK,UAAU;AACjB,YAAM,eAAe;AACrB,YAAM,gBAAgB;AAAA,IACxB;AAAA,EACF;AAAA;AAAA,EAGA,QAAQ;AACN,SAAK,OAAO,MAAM;AAAA,EACpB;AAAA;AAAA,EAGA,MAAM,SAAwB;AAC5B,SAAK,OAAO,MAAM,OAAO;AAAA,EAC3B;AAAA;AAAA,EAGA,OAAO;AACL,SAAK,OAAO,KAAK;AAAA,EACnB;AAAA,EAEA,SAAS;AACP,UAAM,SAAS,KAAK,OAAO,OAAO;AAClC,UAAM,MAAM,SAAS,aAAa;AAGlC,WAAO;AAAA,SACF,GAAG;AAAA;AAAA,gBAEI,SAAS;AAAA,MAC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,GArBS,cAqBP;AAGA;AAAA,EAAX,SAAS;AAAA,GAxBS,cAwBP;AAGA;AAAA,EAAX,SAAS;AAAA,GA3BS,cA2BP;AAMA;AAAA,EAAX,SAAS;AAAA,GAjCS,cAiCP;AAGiB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GApCR,cAoCU;AAMA;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA1CR,cA0CU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA7CvB,cA6CyB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -5,9 +5,11 @@ import {
|
|
|
5
5
|
watch
|
|
6
6
|
} from "./chunk.74IOULXM.js";
|
|
7
7
|
import {
|
|
8
|
-
SynergyElement,
|
|
9
8
|
component_styles_default
|
|
10
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.NLYVOJGK.js";
|
|
10
|
+
import {
|
|
11
|
+
SynergyElement
|
|
12
|
+
} from "./chunk.RHPPIKE6.js";
|
|
11
13
|
import {
|
|
12
14
|
__decorateClass
|
|
13
15
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -103,4 +105,4 @@ __decorateClass([
|
|
|
103
105
|
export {
|
|
104
106
|
SynAccordion
|
|
105
107
|
};
|
|
106
|
-
//# sourceMappingURL=chunk.
|
|
108
|
+
//# sourceMappingURL=chunk.TJTS3RJ6.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/accordion/accordion.component.ts"],
|
|
4
4
|
"sourcesContent": ["import { html } from 'lit';\nimport { property, queryAssignedElements } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './accordion.styles.js';\nimport type SynDetails from '../details/details.component.js';\n\n/**\n * @summary Accordions provide the ability to group a list of `<syn-details>`.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-accordion--docs\n * @status stable\n * @since 1.23.0\n *\n * @slot - The accordion's main content. Must be `<syn-details />` elements.\n *\n * @csspart base - The component's base wrapper.\n */\nexport default class SynAccordion extends SynergyElement {\n static styles: CSSResultGroup = [\n componentStyles,\n styles,\n ];\n\n @queryAssignedElements({ selector: 'syn-details' }) detailsInDefaultSlot!: SynDetails[];\n\n /**\n * Indicates whether or not multiple `<syn-detail>` elements can be open at the same time.\n */\n @property({ attribute: 'close-others', type: Boolean }) closeOthers = false;\n\n /** Draws the accordion and the slotted `<syn-details>` as contained elements. */\n @property({ reflect: true, type: Boolean }) contained = false;\n\n /** The size that should be applied to all slotted `<syn-details>` elements */\n @property({ reflect: true }) size: 'medium' | 'large' = 'medium';\n\n private adjustDetailsSize() {\n this.detailsInDefaultSlot.forEach(detail => {\n detail.setAttribute('size', this.size);\n });\n }\n\n private adjustDetailsContained() {\n this.detailsInDefaultSlot.forEach(detail => {\n // eslint-disable-next-line no-param-reassign\n detail.contained = this.contained;\n });\n }\n\n @watch('size', { waitUntilFirstUpdate: true })\n handleSizeChange() {\n this.adjustDetailsSize();\n }\n\n @watch('contained', { waitUntilFirstUpdate: true })\n handleContainedChange() {\n this.adjustDetailsContained();\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('syn-show', this.handleAccordionShow);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('syn-show', this.handleAccordionShow);\n }\n\n handleSlotChange() {\n this.adjustDetailsSize();\n this.adjustDetailsContained();\n }\n\n private handleAccordionShow = (event: Event) => {\n if (this.closeOthers) {\n this.detailsInDefaultSlot.forEach(detailsElement => {\n // Break if detailsElement sent the event\n if (detailsElement === event.target) {\n return;\n }\n // Break if detailsElement is outside this group\n if (detailsElement.parentNode !== (event.target as HTMLUnknownElement).parentNode) {\n return;\n }\n detailsElement.removeAttribute('open');\n });\n }\n };\n\n render() {\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <div \n part=\"base\"\n class=${classMap({\n accordion: true,\n 'accordion--contained': this.contained,\n })}>\n <slot @slotchange=${this.handleSlotChange}></slot>\n </div>\n `;\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,UAAU,6BAA6B;AAEhD,SAAS,gBAAgB;AAkBzB,IAAqB,eAArB,cAA0C,eAAe;AAAA,EAAzD;AAAA;AAW0D,uBAAc;AAG1B,qBAAY;AAG3B,gBAA2B;AAwCxD,SAAQ,sBAAsB,CAAC,UAAiB;AAC9C,UAAI,KAAK,aAAa;AACpB,aAAK,qBAAqB,QAAQ,oBAAkB;AAElD,cAAI,mBAAmB,MAAM,QAAQ;AACnC;AAAA,UACF;AAEA,cAAI,eAAe,eAAgB,MAAM,OAA8B,YAAY;AACjF;AAAA,UACF;AACA,yBAAe,gBAAgB,MAAM;AAAA,QACvC,CAAC;AAAA,MACH;AAAA,IACF;AAAA;AAAA,EApDQ,oBAAoB;AAC1B,SAAK,qBAAqB,QAAQ,YAAU;AAC1C,aAAO,aAAa,QAAQ,KAAK,IAAI;AAAA,IACvC,CAAC;AAAA,EACH;AAAA,EAEQ,yBAAyB;AAC/B,SAAK,qBAAqB,QAAQ,YAAU;AAE1C,aAAO,YAAY,KAAK;AAAA,IAC1B,CAAC;AAAA,EACH;AAAA,EAGA,mBAAmB;AACjB,SAAK,kBAAkB;AAAA,EACzB;AAAA,EAGA,wBAAwB;AACtB,SAAK,uBAAuB;AAAA,EAC9B;AAAA,EAEA,oBAAoB;AAClB,UAAM,kBAAkB;AACxB,SAAK,iBAAiB,YAAY,KAAK,mBAAmB;AAAA,EAC5D;AAAA,EAEA,uBAAuB;AACrB,UAAM,qBAAqB;AAC3B,SAAK,oBAAoB,YAAY,KAAK,mBAAmB;AAAA,EAC/D;AAAA,EAEA,mBAAmB;AACjB,SAAK,kBAAkB;AACvB,SAAK,uBAAuB;AAAA,EAC9B;AAAA,EAkBA,SAAS;AAEP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,WAAW;AAAA,MACX,wBAAwB,KAAK;AAAA,IAC/B,CAAC,CAAC;AAAA,4BACkB,KAAK,gBAAgB;AAAA;AAAA;AAAA,EAI/C;AACF;AAvFqB,aACZ,SAAyB;AAAA,EAC9B;AAAA,EACA;AACF;AAEoD;AAAA,EAAnD,sBAAsB,EAAE,UAAU,cAAc,CAAC;AAAA,GAN/B,aAMiC;AAKI;AAAA,EAAvD,SAAS,EAAE,WAAW,gBAAgB,MAAM,QAAQ,CAAC;AAAA,GAXnC,aAWqC;AAGZ;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GAdvB,aAcyB;AAGf;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAjBR,aAiBU;AAgB7B;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAhC1B,aAiCnB;AAKA;AAAA,EADC,MAAM,aAAa,EAAE,sBAAsB,KAAK,CAAC;AAAA,GArC/B,aAsCnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSideNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2N7XLLRT.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.TUI5HJJF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAlert
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NERVPV5E.js";
|
|
4
4
|
|
|
5
5
|
// src/components/alert/alert.ts
|
|
6
6
|
var alert_default = SynAlert;
|
|
@@ -9,4 +9,4 @@ SynAlert.define("syn-alert");
|
|
|
9
9
|
export {
|
|
10
10
|
alert_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.U7JCACM5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDetails
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.S2HGI6BM.js";
|
|
4
4
|
|
|
5
5
|
// src/components/details/details.ts
|
|
6
6
|
var details_default = SynDetails;
|
|
@@ -9,4 +9,4 @@ SynDetails.define("syn-details");
|
|
|
9
9
|
export {
|
|
10
10
|
details_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.UAYDJJOS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formCollections
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.AMIQC3O7.js";
|
|
4
4
|
|
|
5
5
|
// src/utilities/form.ts
|
|
6
6
|
function serialize(form) {
|
|
@@ -37,4 +37,4 @@ export {
|
|
|
37
37
|
serialize,
|
|
38
38
|
getFormControls
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=chunk.
|
|
40
|
+
//# sourceMappingURL=chunk.UTJJJQMA.js.map
|
|
@@ -2,9 +2,11 @@ import {
|
|
|
2
2
|
button_group_styles_default
|
|
3
3
|
} from "./chunk.GRVNUIP2.js";
|
|
4
4
|
import {
|
|
5
|
-
SynergyElement,
|
|
6
5
|
component_styles_default
|
|
7
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.NLYVOJGK.js";
|
|
7
|
+
import {
|
|
8
|
+
SynergyElement
|
|
9
|
+
} from "./chunk.RHPPIKE6.js";
|
|
8
10
|
import {
|
|
9
11
|
__decorateClass
|
|
10
12
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -87,4 +89,4 @@ function findButton(el) {
|
|
|
87
89
|
export {
|
|
88
90
|
SynButtonGroup
|
|
89
91
|
};
|
|
90
|
-
//# sourceMappingURL=chunk.
|
|
92
|
+
//# sourceMappingURL=chunk.V5QBVSUE.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/button-group/button-group.component.ts"],
|
|
4
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 { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './button-group.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Button groups can be used to group related buttons into sections.\n * @documentation https://synergy.style/components/button-group\n * @status stable\n * @since 2.0\n *\n * @slot - One or more `<syn-button>` elements to display in the button group.\n *\n * @csspart base - The component's base wrapper.\n */\nexport default class SynButtonGroup extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n @query('slot') defaultSlot: HTMLSlotElement;\n\n @state() disableRole = false;\n\n /**\n * A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\n * devices when interacting with the control and is strongly recommended.\n */\n @property() label = '';\n\n private handleFocus(event: Event) {\n const button = findButton(event.target as HTMLElement);\n button?.toggleAttribute('data-syn-button-group__button--focus', true);\n }\n\n private handleBlur(event: Event) {\n const button = findButton(event.target as HTMLElement);\n button?.toggleAttribute('data-syn-button-group__button--focus', false);\n }\n\n private handleMouseOver(event: Event) {\n const button = findButton(event.target as HTMLElement);\n button?.toggleAttribute('data-syn-button-group__button--hover', true);\n }\n\n private handleMouseOut(event: Event) {\n const button = findButton(event.target as HTMLElement);\n button?.toggleAttribute('data-syn-button-group__button--hover', false);\n }\n\n private handleSlotChange() {\n const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })] as HTMLElement[];\n\n slottedElements.forEach(el => {\n const index = slottedElements.indexOf(el);\n const button = findButton(el);\n\n if (button) {\n button.toggleAttribute('data-syn-button-group__button', true);\n button.toggleAttribute('data-syn-button-group__button--first', index === 0);\n button.toggleAttribute('data-syn-button-group__button--inner', index > 0 && index < slottedElements.length - 1);\n button.toggleAttribute('data-syn-button-group__button--last', index === slottedElements.length - 1);\n button.toggleAttribute(\n 'data-syn-button-group__button--radio',\n button.tagName.toLowerCase() === 'syn-radio-button'\n );\n }\n });\n }\n\n render() {\n // eslint-disable-next-line lit-a11y/mouse-events-have-key-events\n return html`\n <div\n part=\"base\"\n class=\"button-group\"\n role=\"${this.disableRole ? 'presentation' : 'group'}\"\n aria-label=${this.label}\n @focusout=${this.handleBlur}\n @focusin=${this.handleFocus}\n @mouseover=${this.handleMouseOver}\n @mouseout=${this.handleMouseOut}\n >\n <slot @slotchange=${this.handleSlotChange}></slot>\n </div>\n `;\n }\n}\n\nfunction findButton(el: HTMLElement) {\n const selector = 'syn-button, syn-radio-button';\n\n // The button could be the target element or a child of it (e.g. a dropdown or tooltip anchor)\n return el.closest(selector) ?? el.querySelector(selector);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAQA,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAgBvC,IAAqB,iBAArB,cAA4C,eAAe;AAAA,EAA3D;AAAA;AAKW,uBAAc;AAMX,iBAAQ;AAAA;AAAA,EAEZ,YAAY,OAAc;AAChC,UAAM,SAAS,WAAW,MAAM,MAAqB;AACrD,qCAAQ,gBAAgB,wCAAwC;AAA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AGJ;AAEN;AAAA,EAAR,MAAM;AAAA,GALY,eAKV;AAMG;AAAA,EAAX,SAAS;AAAA,GAXS,eAWP;AA6Dd,SAAS,WAAW,IAAiB;AAjGrC;AAkGE,QAAM,WAAW;AAGjB,UAAO,QAAG,QAAQ,QAAQ,MAAnB,YAAwB,GAAG,cAAc,QAAQ;AAC1D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCheckbox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.J6AGKJUK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/checkbox/checkbox.ts
|
|
6
6
|
var checkbox_default = SynCheckbox;
|
|
@@ -9,4 +9,4 @@ SynCheckbox.define("syn-checkbox");
|
|
|
9
9
|
export {
|
|
10
10
|
checkbox_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.VYWKS5N3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynNavItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2DTLMVCC.js";
|
|
4
4
|
|
|
5
5
|
// src/components/nav-item/nav-item.ts
|
|
6
6
|
var nav_item_default = SynNavItem;
|
|
@@ -9,4 +9,4 @@ SynNavItem.define("syn-nav-item");
|
|
|
9
9
|
export {
|
|
10
10
|
nav_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.WAN4H4BO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBreadcrumb
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2JVLDJOZ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/breadcrumb/breadcrumb.ts
|
|
6
6
|
var breadcrumb_default = SynBreadcrumb;
|
|
@@ -9,4 +9,4 @@ SynBreadcrumb.define("syn-breadcrumb");
|
|
|
9
9
|
export {
|
|
10
10
|
breadcrumb_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.WRQHSCDL.js.map
|
|
@@ -6,14 +6,16 @@ import {
|
|
|
6
6
|
} from "./chunk.6EPU7YUS.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIconButton
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.THXJYLZH.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.GIU3H3J3.js";
|
|
13
13
|
import {
|
|
14
|
-
SynergyElement,
|
|
15
14
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.NLYVOJGK.js";
|
|
16
|
+
import {
|
|
17
|
+
SynergyElement
|
|
18
|
+
} from "./chunk.RHPPIKE6.js";
|
|
17
19
|
import {
|
|
18
20
|
__decorateClass
|
|
19
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -76,4 +78,4 @@ __decorateClass([
|
|
|
76
78
|
export {
|
|
77
79
|
SynTag
|
|
78
80
|
};
|
|
79
|
-
//# sourceMappingURL=chunk.
|
|
81
|
+
//# sourceMappingURL=chunk.X6UQBEJW.js.map
|