@synergy-design-system/components 2.10.1 → 2.11.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.RWH4QWJJ.js → chunk.2CO2NVIH.js} +6 -6
- package/dist/chunks/{chunk.PDM2RKUO.js → chunk.2FDAY6KG.js} +2 -2
- package/dist/chunks/{chunk.FR3XPGUO.js → chunk.35XN5YQW.js} +17 -10
- package/dist/chunks/chunk.35XN5YQW.js.map +7 -0
- package/dist/chunks/{chunk.ILKUAKHV.js → chunk.3EY2CJGW.js} +2 -2
- package/dist/chunks/{chunk.SYLH7TJL.js → chunk.3FJLLXCR.js} +2 -2
- package/dist/chunks/{chunk.IYEDBX5G.js → chunk.3MVTZZBQ.js} +2 -2
- package/dist/chunks/{chunk.YIVSAOEK.js → chunk.3UFTX7XQ.js} +2 -2
- package/dist/chunks/{chunk.4AN73MGZ.js → chunk.3XYKUOSA.js} +3 -3
- package/dist/chunks/chunk.3XYKUOSA.js.map +7 -0
- package/dist/chunks/{chunk.AFFGPKYQ.js → chunk.4IRHZEL2.js} +2 -2
- package/dist/chunks/{chunk.XXR6SBCQ.js → chunk.4P3FPYGQ.js} +6 -6
- package/dist/chunks/{chunk.IBDQRF55.js → chunk.5SNUBQQN.js} +2 -2
- package/dist/chunks/{chunk.F3BB6LK2.js → chunk.5WTQAMIT.js} +3 -3
- package/dist/chunks/{chunk.DQGFMBAC.js → chunk.64U5DPTH.js} +2 -2
- package/dist/chunks/{chunk.DUEOMPTT.js → chunk.67C446DF.js} +2 -2
- package/dist/chunks/{chunk.QUPQJL7I.js → chunk.67KT2SLM.js} +32 -16
- package/dist/chunks/chunk.67KT2SLM.js.map +7 -0
- package/dist/chunks/{chunk.ROA65NK6.js → chunk.6O33XJ3X.js} +2 -2
- package/dist/chunks/{chunk.J36KWNPW.js → chunk.6OJJ5EQC.js} +2 -2
- package/dist/chunks/{chunk.E4FLL46W.js → chunk.6QDXFWNX.js} +2 -2
- package/dist/chunks/{chunk.OZDWNWBK.js → chunk.74JAW3N4.js} +5 -5
- package/dist/chunks/{chunk.UENWCJJ4.js → chunk.A5E262NR.js} +2 -2
- package/dist/chunks/{chunk.TUTGCZ2F.js → chunk.AA7UYQAJ.js} +3 -3
- package/dist/chunks/{chunk.VWULHIO4.js → chunk.AJA3OIOC.js} +5 -5
- package/dist/chunks/{chunk.F6LIDG2Y.js → chunk.AONXQRGV.js} +2 -2
- package/dist/chunks/{chunk.H45DUC5P.js → chunk.BD43D4WE.js} +4 -3
- package/dist/chunks/chunk.BD43D4WE.js.map +7 -0
- package/dist/chunks/{chunk.3FTQ2AYW.js → chunk.BOKB2LEP.js} +3 -3
- package/dist/chunks/{chunk.RWR732UE.js → chunk.BTCNWAF7.js} +2 -2
- package/dist/chunks/{chunk.OL42FMVG.js → chunk.CFDAPGTN.js} +2 -2
- package/dist/chunks/{chunk.Z64KWT2C.js → chunk.CK2QKLSZ.js} +3 -3
- package/dist/chunks/{chunk.PGHHADBP.js → chunk.D2MANNCI.js} +2 -2
- package/dist/chunks/{chunk.76IG5YHO.js → chunk.D2MMGZTK.js} +2 -2
- package/dist/chunks/{chunk.TPNNA5EJ.js → chunk.DCGPDI3G.js} +5 -5
- package/dist/chunks/{chunk.35V3TAOT.js → chunk.DFABWKX7.js} +18 -9
- package/dist/chunks/{chunk.35V3TAOT.js.map → chunk.DFABWKX7.js.map} +2 -2
- package/dist/chunks/chunk.DFIN5XP4.js +79 -0
- package/dist/chunks/chunk.DFIN5XP4.js.map +7 -0
- package/dist/chunks/{chunk.3JMSRQJK.js → chunk.DKV3VFFJ.js} +2 -2
- package/dist/chunks/{chunk.UZG5Z5K5.js → chunk.DQCXSZK6.js} +3 -3
- package/dist/chunks/{chunk.JFKVBBJL.js → chunk.E7L5W4JG.js} +2 -2
- package/dist/chunks/{chunk.IHNV4TAM.js → chunk.EJMSWKH2.js} +2 -2
- package/dist/chunks/{chunk.EOI2HN2V.js → chunk.EKJTAHHE.js} +3 -3
- package/dist/chunks/{chunk.Y5UFP7EU.js → chunk.F5F6D7BG.js} +2 -2
- package/dist/chunks/{chunk.IGUCF6GW.js → chunk.FMFVK662.js} +3 -3
- package/dist/chunks/{chunk.2TUCVNJC.js → chunk.FQSDLEDV.js} +4 -4
- package/dist/chunks/{chunk.BJEAUL3E.js → chunk.GFWWUBNH.js} +2 -2
- package/dist/chunks/{chunk.ZPUFQ2RD.js → chunk.GKNICA2N.js} +2 -2
- package/dist/chunks/{chunk.TKLQA23R.js → chunk.GVQYXIOS.js} +2 -2
- package/dist/chunks/{chunk.55TZTLUK.js → chunk.H3NH57FA.js} +4 -4
- package/dist/chunks/{chunk.HJZAAMXB.js → chunk.HDU3KDGC.js} +2 -2
- package/dist/chunks/{chunk.FCIGS2RC.js → chunk.HKKSVYTP.js} +2 -2
- package/dist/chunks/{chunk.WXE4XRLL.js → chunk.I5V5TBTQ.js} +2 -2
- package/dist/chunks/{chunk.QAYS7O2Y.js → chunk.I6LVCMTE.js} +2 -2
- package/dist/chunks/{chunk.DO3GA23K.js → chunk.IREIR6KA.js} +2 -2
- package/dist/chunks/{chunk.R2KYTZBW.js → chunk.JCA6F4L6.js} +2 -2
- package/dist/chunks/{chunk.FTCHL3OG.js → chunk.JRB7DRBR.js} +2 -2
- package/dist/chunks/{chunk.YOMJKVCO.js → chunk.JVBRCOVJ.js} +2 -2
- package/dist/chunks/{chunk.FCUWPPKQ.js → chunk.K2RV36N7.js} +3 -3
- package/dist/chunks/{chunk.PZQ6FY5U.js → chunk.K2T2YPOW.js} +2 -2
- package/dist/chunks/{chunk.XCZKYI7X.js → chunk.K4FEZUZR.js} +3 -3
- package/dist/chunks/{chunk.DOVJ2NYX.js → chunk.K5VCK7UZ.js} +2 -2
- package/dist/chunks/{chunk.GOJ3XJRJ.js → chunk.KLCOD2FE.js} +2 -2
- package/dist/chunks/{chunk.TWSN55TR.js → chunk.KLF642WF.js} +2 -2
- package/dist/chunks/{chunk.7EP5ZTF7.js → chunk.KWSECSZM.js} +3 -3
- package/dist/chunks/{chunk.EPHFEISY.js → chunk.KXCQ5XRZ.js} +2 -2
- package/dist/chunks/{chunk.DZKWV5DQ.js → chunk.LMV4YGVB.js} +120 -16
- package/dist/chunks/chunk.LMV4YGVB.js.map +7 -0
- package/dist/chunks/{chunk.4PGAJKBN.js → chunk.M2O57JPI.js} +62 -9
- package/dist/chunks/chunk.M2O57JPI.js.map +7 -0
- package/dist/chunks/{chunk.OLKIPTSC.js → chunk.MFHEVD4S.js} +2 -2
- package/dist/chunks/{chunk.XLYYPHHP.js → chunk.MR76FVEC.js} +2 -2
- package/dist/chunks/{chunk.KG73YUXI.js → chunk.NL3RUWYS.js} +49 -1
- package/dist/chunks/chunk.NL3RUWYS.js.map +7 -0
- package/dist/chunks/{chunk.U6XHWGZM.js → chunk.NMQPRI52.js} +2 -2
- package/dist/chunks/{chunk.6WCLRSET.js → chunk.NQEEDGN5.js} +2 -2
- package/dist/chunks/{chunk.NPFEOHCN.js → chunk.O3P7J6GS.js} +3 -3
- package/dist/chunks/chunk.OI3HOOCT.js +13 -0
- package/dist/chunks/chunk.OI3HOOCT.js.map +7 -0
- package/dist/chunks/chunk.OJ3N7TWP.js +33 -0
- package/dist/chunks/{chunk.XNP4OTUB.js.map → chunk.OJ3N7TWP.js.map} +2 -2
- package/dist/chunks/{chunk.POIOBP3S.js → chunk.PBI2JGUC.js} +2 -2
- package/dist/chunks/{chunk.BCFYNMAU.js → chunk.PECLVBE7.js} +2 -2
- package/dist/chunks/{chunk.JQ47GWDL.js → chunk.PKYC7QF3.js} +6 -1
- package/dist/chunks/chunk.PKYC7QF3.js.map +7 -0
- package/dist/chunks/{chunk.MFRK7XY4.js → chunk.PUXBRQLH.js} +5 -5
- package/dist/chunks/{chunk.MFRK7XY4.js.map → chunk.PUXBRQLH.js.map} +2 -2
- package/dist/chunks/{chunk.HIZKWLLW.js → chunk.QCV5J2JX.js} +2 -2
- package/dist/chunks/{chunk.D24PTVEZ.js → chunk.QDOITOS2.js} +27 -28
- package/dist/chunks/chunk.QDOITOS2.js.map +7 -0
- package/dist/chunks/{chunk.V7JOPWCO.js → chunk.RI6XEQMR.js} +2 -2
- package/dist/chunks/{chunk.GBT6AEES.js → chunk.RV7BELAO.js} +3 -3
- package/dist/chunks/{chunk.NMSCOKGV.js → chunk.S5GTUR3T.js} +4 -4
- package/dist/chunks/{chunk.72ZCVZDZ.js → chunk.SYIBDFRD.js} +2 -2
- package/dist/chunks/{chunk.WIAHBHLK.js → chunk.SZHPXI4D.js} +2 -2
- package/dist/chunks/{chunk.3YWKK5QT.js → chunk.TD7N3L4O.js} +2 -2
- package/dist/chunks/{chunk.5ZLNQUWS.js → chunk.TQ6W2TC6.js} +2 -2
- package/dist/chunks/{chunk.LK3JVI46.js → chunk.TRCRLTVG.js} +2 -2
- package/dist/chunks/{chunk.XR2QY6WP.js → chunk.U47WJHSG.js} +2 -2
- package/dist/chunks/{chunk.HFFNFJBK.js → chunk.UI7YG4DD.js} +3 -3
- package/dist/chunks/{chunk.J2OXSQAK.js → chunk.UREJSW6U.js} +9 -8
- package/dist/chunks/{chunk.J2OXSQAK.js.map → chunk.UREJSW6U.js.map} +2 -2
- package/dist/chunks/{chunk.Y3XTCSYB.js → chunk.VBPJP47S.js} +6 -6
- package/dist/chunks/{chunk.QO264LN5.js → chunk.VHBHYODZ.js} +2 -2
- package/dist/chunks/{chunk.CSR3GSAM.js → chunk.VN7RN2HU.js} +2 -2
- package/dist/chunks/{chunk.YF66NQJL.js → chunk.VSJELW2C.js} +3 -3
- package/dist/chunks/{chunk.TM5GI342.js → chunk.VSM3FPJC.js} +2 -2
- package/dist/chunks/{chunk.XTPT3AVO.js → chunk.WEXZUPCC.js} +35 -6
- package/dist/chunks/{chunk.XTPT3AVO.js.map → chunk.WEXZUPCC.js.map} +2 -2
- package/dist/chunks/{chunk.VGEA67UG.js → chunk.WOJ2VRZY.js} +3 -2
- package/dist/chunks/chunk.WOJ2VRZY.js.map +7 -0
- package/dist/chunks/{chunk.NGI67WXT.js → chunk.XOXVVU5C.js} +19 -1
- package/dist/chunks/{chunk.NGI67WXT.js.map → chunk.XOXVVU5C.js.map} +2 -2
- package/dist/chunks/{chunk.OLHSSK2R.js → chunk.YBCKQJK4.js} +9 -7
- package/dist/chunks/chunk.YBCKQJK4.js.map +7 -0
- package/dist/chunks/{chunk.FXRKY42H.js → chunk.YJFYAORA.js} +3 -3
- package/dist/chunks/{chunk.GWR5CLX2.js → chunk.ZRDGMIA7.js} +2 -2
- package/dist/chunks/{chunk.3UKLIZPQ.js → chunk.ZY4RYTIT.js} +2 -2
- package/dist/components/accordion/accordion.component.js +2 -2
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/alert/alert.component.d.ts +12 -1
- package/dist/components/alert/alert.component.js +5 -5
- package/dist/components/alert/alert.js +6 -6
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.js +4 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +4 -4
- package/dist/components/button/button.js +5 -5
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/combobox/combobox.component.js +5 -5
- package/dist/components/combobox/combobox.js +6 -6
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/details/details.component.js +3 -3
- package/dist/components/details/details.js +4 -4
- package/dist/components/dialog/dialog.component.js +4 -4
- package/dist/components/dialog/dialog.js +5 -5
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +4 -4
- package/dist/components/drawer/drawer.js +5 -5
- package/dist/components/dropdown/dropdown.component.js +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/file/file.component.js +5 -5
- package/dist/components/file/file.js +6 -6
- package/dist/components/header/header.component.js +4 -4
- package/dist/components/header/header.js +5 -5
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.component.js +4 -4
- package/dist/components/input/input.js +5 -5
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +5 -5
- package/dist/components/menu-item/menu-item.js +6 -6
- package/dist/components/menu-label/menu-label.component.js +3 -3
- package/dist/components/menu-label/menu-label.js +4 -4
- package/dist/components/nav-item/nav-item.component.d.ts +4 -2
- package/dist/components/nav-item/nav-item.component.js +4 -4
- package/dist/components/nav-item/nav-item.js +5 -5
- package/dist/components/nav-item/nav-item.styles.js +1 -1
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +3 -3
- package/dist/components/option/option.js +4 -4
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/prio-nav/prio-nav.component.js +10 -10
- package/dist/components/prio-nav/prio-nav.js +11 -11
- package/dist/components/prio-nav/utils.d.ts +10 -0
- package/dist/components/prio-nav/utils.js +7 -3
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/range/range.component.js +5 -5
- package/dist/components/range/range.js +6 -6
- package/dist/components/range-tick/range-tick.component.js +2 -2
- package/dist/components/range-tick/range-tick.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.d.ts +37 -0
- package/dist/components/resize-observer/resize-observer.component.js +11 -0
- package/dist/components/resize-observer/resize-observer.component.js.map +7 -0
- package/dist/components/resize-observer/resize-observer.styles.d.ts +8 -0
- package/dist/components/resize-observer/resize-observer.styles.js +8 -0
- package/dist/components/resize-observer/resize-observer.styles.js.map +7 -0
- package/dist/components/select/select.component.js +8 -8
- package/dist/components/select/select.js +9 -9
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/side-nav/side-nav.component.js +6 -6
- package/dist/components/side-nav/side-nav.js +7 -7
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/switch/switch.component.js +3 -3
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/tab/tab.component.js +4 -4
- package/dist/components/tab/tab.js +5 -5
- package/dist/components/tab-group/tab-group.component.d.ts +15 -0
- package/dist/components/tab-group/tab-group.component.js +8 -6
- package/dist/components/tab-group/tab-group.custom.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +9 -7
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tag/tag.component.js +5 -5
- package/dist/components/tag/tag.js +6 -6
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +4 -4
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/custom-elements.json +233 -6
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-after-hide.d.ts +3 -0
- package/dist/events/syn-after-show.d.ts +3 -0
- package/dist/events/syn-blur.d.ts +3 -0
- package/dist/events/syn-change.d.ts +3 -0
- package/dist/events/syn-clear.d.ts +3 -0
- package/dist/events/syn-close.d.ts +3 -0
- package/dist/events/syn-error.d.ts +3 -0
- package/dist/events/syn-focus.d.ts +3 -0
- package/dist/events/syn-hide.d.ts +3 -0
- package/dist/events/syn-initial-focus.d.ts +3 -0
- package/dist/events/syn-input.d.ts +3 -0
- package/dist/events/syn-invalid.d.ts +3 -0
- package/dist/events/syn-load.d.ts +3 -0
- package/dist/events/syn-remove.d.ts +3 -0
- package/dist/events/syn-reposition.d.ts +3 -0
- package/dist/events/syn-request-close.d.ts +3 -0
- package/dist/events/syn-resize.d.ts +17 -0
- package/dist/events/syn-select.d.ts +3 -0
- package/dist/events/syn-show.d.ts +3 -0
- package/dist/events/syn-tab-hide.d.ts +3 -0
- package/dist/events/syn-tab-show.d.ts +3 -0
- package/dist/internal/scrollend-polyfill.d.ts +7 -0
- package/dist/internal/synergy-element.d.ts +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +109 -107
- package/dist/vscode.html-custom-data.json +22 -0
- package/package.json +22 -22
- package/dist/chunks/chunk.4AN73MGZ.js.map +0 -7
- package/dist/chunks/chunk.4PGAJKBN.js.map +0 -7
- package/dist/chunks/chunk.D24PTVEZ.js.map +0 -7
- package/dist/chunks/chunk.DZKWV5DQ.js.map +0 -7
- package/dist/chunks/chunk.FR3XPGUO.js.map +0 -7
- package/dist/chunks/chunk.H45DUC5P.js.map +0 -7
- package/dist/chunks/chunk.JQ47GWDL.js.map +0 -7
- package/dist/chunks/chunk.KG73YUXI.js.map +0 -7
- package/dist/chunks/chunk.OLHSSK2R.js.map +0 -7
- package/dist/chunks/chunk.QUPQJL7I.js.map +0 -7
- package/dist/chunks/chunk.VGEA67UG.js.map +0 -7
- package/dist/chunks/chunk.XNP4OTUB.js +0 -16
- /package/dist/chunks/{chunk.RWH4QWJJ.js.map → chunk.2CO2NVIH.js.map} +0 -0
- /package/dist/chunks/{chunk.PDM2RKUO.js.map → chunk.2FDAY6KG.js.map} +0 -0
- /package/dist/chunks/{chunk.ILKUAKHV.js.map → chunk.3EY2CJGW.js.map} +0 -0
- /package/dist/chunks/{chunk.SYLH7TJL.js.map → chunk.3FJLLXCR.js.map} +0 -0
- /package/dist/chunks/{chunk.IYEDBX5G.js.map → chunk.3MVTZZBQ.js.map} +0 -0
- /package/dist/chunks/{chunk.YIVSAOEK.js.map → chunk.3UFTX7XQ.js.map} +0 -0
- /package/dist/chunks/{chunk.AFFGPKYQ.js.map → chunk.4IRHZEL2.js.map} +0 -0
- /package/dist/chunks/{chunk.XXR6SBCQ.js.map → chunk.4P3FPYGQ.js.map} +0 -0
- /package/dist/chunks/{chunk.IBDQRF55.js.map → chunk.5SNUBQQN.js.map} +0 -0
- /package/dist/chunks/{chunk.F3BB6LK2.js.map → chunk.5WTQAMIT.js.map} +0 -0
- /package/dist/chunks/{chunk.DQGFMBAC.js.map → chunk.64U5DPTH.js.map} +0 -0
- /package/dist/chunks/{chunk.DUEOMPTT.js.map → chunk.67C446DF.js.map} +0 -0
- /package/dist/chunks/{chunk.ROA65NK6.js.map → chunk.6O33XJ3X.js.map} +0 -0
- /package/dist/chunks/{chunk.J36KWNPW.js.map → chunk.6OJJ5EQC.js.map} +0 -0
- /package/dist/chunks/{chunk.E4FLL46W.js.map → chunk.6QDXFWNX.js.map} +0 -0
- /package/dist/chunks/{chunk.OZDWNWBK.js.map → chunk.74JAW3N4.js.map} +0 -0
- /package/dist/chunks/{chunk.UENWCJJ4.js.map → chunk.A5E262NR.js.map} +0 -0
- /package/dist/chunks/{chunk.TUTGCZ2F.js.map → chunk.AA7UYQAJ.js.map} +0 -0
- /package/dist/chunks/{chunk.VWULHIO4.js.map → chunk.AJA3OIOC.js.map} +0 -0
- /package/dist/chunks/{chunk.F6LIDG2Y.js.map → chunk.AONXQRGV.js.map} +0 -0
- /package/dist/chunks/{chunk.3FTQ2AYW.js.map → chunk.BOKB2LEP.js.map} +0 -0
- /package/dist/chunks/{chunk.RWR732UE.js.map → chunk.BTCNWAF7.js.map} +0 -0
- /package/dist/chunks/{chunk.OL42FMVG.js.map → chunk.CFDAPGTN.js.map} +0 -0
- /package/dist/chunks/{chunk.Z64KWT2C.js.map → chunk.CK2QKLSZ.js.map} +0 -0
- /package/dist/chunks/{chunk.PGHHADBP.js.map → chunk.D2MANNCI.js.map} +0 -0
- /package/dist/chunks/{chunk.76IG5YHO.js.map → chunk.D2MMGZTK.js.map} +0 -0
- /package/dist/chunks/{chunk.TPNNA5EJ.js.map → chunk.DCGPDI3G.js.map} +0 -0
- /package/dist/chunks/{chunk.3JMSRQJK.js.map → chunk.DKV3VFFJ.js.map} +0 -0
- /package/dist/chunks/{chunk.UZG5Z5K5.js.map → chunk.DQCXSZK6.js.map} +0 -0
- /package/dist/chunks/{chunk.JFKVBBJL.js.map → chunk.E7L5W4JG.js.map} +0 -0
- /package/dist/chunks/{chunk.IHNV4TAM.js.map → chunk.EJMSWKH2.js.map} +0 -0
- /package/dist/chunks/{chunk.EOI2HN2V.js.map → chunk.EKJTAHHE.js.map} +0 -0
- /package/dist/chunks/{chunk.Y5UFP7EU.js.map → chunk.F5F6D7BG.js.map} +0 -0
- /package/dist/chunks/{chunk.IGUCF6GW.js.map → chunk.FMFVK662.js.map} +0 -0
- /package/dist/chunks/{chunk.2TUCVNJC.js.map → chunk.FQSDLEDV.js.map} +0 -0
- /package/dist/chunks/{chunk.BJEAUL3E.js.map → chunk.GFWWUBNH.js.map} +0 -0
- /package/dist/chunks/{chunk.ZPUFQ2RD.js.map → chunk.GKNICA2N.js.map} +0 -0
- /package/dist/chunks/{chunk.TKLQA23R.js.map → chunk.GVQYXIOS.js.map} +0 -0
- /package/dist/chunks/{chunk.55TZTLUK.js.map → chunk.H3NH57FA.js.map} +0 -0
- /package/dist/chunks/{chunk.HJZAAMXB.js.map → chunk.HDU3KDGC.js.map} +0 -0
- /package/dist/chunks/{chunk.FCIGS2RC.js.map → chunk.HKKSVYTP.js.map} +0 -0
- /package/dist/chunks/{chunk.WXE4XRLL.js.map → chunk.I5V5TBTQ.js.map} +0 -0
- /package/dist/chunks/{chunk.QAYS7O2Y.js.map → chunk.I6LVCMTE.js.map} +0 -0
- /package/dist/chunks/{chunk.DO3GA23K.js.map → chunk.IREIR6KA.js.map} +0 -0
- /package/dist/chunks/{chunk.R2KYTZBW.js.map → chunk.JCA6F4L6.js.map} +0 -0
- /package/dist/chunks/{chunk.FTCHL3OG.js.map → chunk.JRB7DRBR.js.map} +0 -0
- /package/dist/chunks/{chunk.YOMJKVCO.js.map → chunk.JVBRCOVJ.js.map} +0 -0
- /package/dist/chunks/{chunk.FCUWPPKQ.js.map → chunk.K2RV36N7.js.map} +0 -0
- /package/dist/chunks/{chunk.PZQ6FY5U.js.map → chunk.K2T2YPOW.js.map} +0 -0
- /package/dist/chunks/{chunk.XCZKYI7X.js.map → chunk.K4FEZUZR.js.map} +0 -0
- /package/dist/chunks/{chunk.DOVJ2NYX.js.map → chunk.K5VCK7UZ.js.map} +0 -0
- /package/dist/chunks/{chunk.GOJ3XJRJ.js.map → chunk.KLCOD2FE.js.map} +0 -0
- /package/dist/chunks/{chunk.TWSN55TR.js.map → chunk.KLF642WF.js.map} +0 -0
- /package/dist/chunks/{chunk.7EP5ZTF7.js.map → chunk.KWSECSZM.js.map} +0 -0
- /package/dist/chunks/{chunk.EPHFEISY.js.map → chunk.KXCQ5XRZ.js.map} +0 -0
- /package/dist/chunks/{chunk.OLKIPTSC.js.map → chunk.MFHEVD4S.js.map} +0 -0
- /package/dist/chunks/{chunk.XLYYPHHP.js.map → chunk.MR76FVEC.js.map} +0 -0
- /package/dist/chunks/{chunk.U6XHWGZM.js.map → chunk.NMQPRI52.js.map} +0 -0
- /package/dist/chunks/{chunk.6WCLRSET.js.map → chunk.NQEEDGN5.js.map} +0 -0
- /package/dist/chunks/{chunk.NPFEOHCN.js.map → chunk.O3P7J6GS.js.map} +0 -0
- /package/dist/chunks/{chunk.POIOBP3S.js.map → chunk.PBI2JGUC.js.map} +0 -0
- /package/dist/chunks/{chunk.BCFYNMAU.js.map → chunk.PECLVBE7.js.map} +0 -0
- /package/dist/chunks/{chunk.HIZKWLLW.js.map → chunk.QCV5J2JX.js.map} +0 -0
- /package/dist/chunks/{chunk.V7JOPWCO.js.map → chunk.RI6XEQMR.js.map} +0 -0
- /package/dist/chunks/{chunk.GBT6AEES.js.map → chunk.RV7BELAO.js.map} +0 -0
- /package/dist/chunks/{chunk.NMSCOKGV.js.map → chunk.S5GTUR3T.js.map} +0 -0
- /package/dist/chunks/{chunk.72ZCVZDZ.js.map → chunk.SYIBDFRD.js.map} +0 -0
- /package/dist/chunks/{chunk.WIAHBHLK.js.map → chunk.SZHPXI4D.js.map} +0 -0
- /package/dist/chunks/{chunk.3YWKK5QT.js.map → chunk.TD7N3L4O.js.map} +0 -0
- /package/dist/chunks/{chunk.5ZLNQUWS.js.map → chunk.TQ6W2TC6.js.map} +0 -0
- /package/dist/chunks/{chunk.LK3JVI46.js.map → chunk.TRCRLTVG.js.map} +0 -0
- /package/dist/chunks/{chunk.XR2QY6WP.js.map → chunk.U47WJHSG.js.map} +0 -0
- /package/dist/chunks/{chunk.HFFNFJBK.js.map → chunk.UI7YG4DD.js.map} +0 -0
- /package/dist/chunks/{chunk.Y3XTCSYB.js.map → chunk.VBPJP47S.js.map} +0 -0
- /package/dist/chunks/{chunk.QO264LN5.js.map → chunk.VHBHYODZ.js.map} +0 -0
- /package/dist/chunks/{chunk.CSR3GSAM.js.map → chunk.VN7RN2HU.js.map} +0 -0
- /package/dist/chunks/{chunk.YF66NQJL.js.map → chunk.VSJELW2C.js.map} +0 -0
- /package/dist/chunks/{chunk.TM5GI342.js.map → chunk.VSM3FPJC.js.map} +0 -0
- /package/dist/chunks/{chunk.FXRKY42H.js.map → chunk.YJFYAORA.js.map} +0 -0
- /package/dist/chunks/{chunk.GWR5CLX2.js.map → chunk.ZRDGMIA7.js.map} +0 -0
- /package/dist/chunks/{chunk.3UKLIZPQ.js.map → chunk.ZY4RYTIT.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/button/button.component.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { 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.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"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAGzB,SAAS,MAAM,eAAe;AAC9B,SAAS,iBAAiB;AAE1B,SAAS,UAAU,OAAO,aAAa;AAmCvC,IAAqB,YAArB,cAAuC,eAA6C;AAAA,EAApF;AAAA;AAOE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,qBAAqB,CAAC,OAAO;AAAA,IAC/B,CAAC;AAED,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,UAAU,QAAQ;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kB,KAAK,SAAS;AAAA,MAChC,iBAAiB,KAAK,SAAS;AAAA,MAC/B,iBAAiB,KAAK;AAAA,MACtB,oBAAoB,KAAK;AAAA,MACzB,mBAAmB,KAAK;AAAA,MACxB,mBAAmB,KAAK;AAAA,MACxB,kBAAkB,KAAK,YAAY;AAAA,MACnC,mBAAmB,KAAK,YAAY;AAAA,MACpC,eAAe,KAAK,SAAS,IAAI,MAAM;AAAA,MACvC,qBAAqB,KAAK,kBAAkB,KAAK,WAAW;AAAA,MAC5D,sBAAsB,KAAK,kBAAkB,KAAK,QAAQ;AAAA,MAC1D,sBAAsB,KAAK,kBAAkB,KAAK,QAAQ;AAAA,IAC5D,CAAC,CAAC;AAAA,oBACU,UAAU,SAAS,SAAY,KAAK,QAAQ,CAAC;AAAA,eAClD,UAAU,SAAS,SAAY,KAAK,IAAI,CAAC;AAAA,gBACxC,KAAK,KAAuF;AAAA,eAC7F,UAAU,SAAS,SAAY,KAAK,IAAI,CAAC;AAAA,gBACxC,UAAU,SAAS,SAAY,KAAK,KAAK,CAAC;AAAA,eAC3C,UAAU,
|
|
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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAGzB,SAAS,MAAM,eAAe;AAC9B,SAAS,iBAAiB;AAE1B,SAAS,UAAU,OAAO,aAAa;AAmCvC,IAAqB,YAArB,cAAuC,eAA6C;AAAA,EAApF;AAAA;AAOE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,qBAAqB,CAAC,OAAO;AAAA,IAC/B,CAAC;AAED,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,UAAU,QAAQ;AAChG,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAK9C,SAAQ,WAAW;AAEnB,SAAQ,WAAW;AACnB,mBAAU;AACP,iBAAQ;AAGS,mBAAyC;AAGzC,gBAAqC;AAGtB,iBAAQ;AAGR,oBAAW;AAGX,mBAAU;AAM1C,gBAAsC;AAMtC,gBAAO;AAMP,iBAAQ;AAGR,gBAAO;AAWP,eAAM;AAAA;AAAA;AAAA,EA4BlB,IAAI,WAAW;AACb,QAAI,KAAK,SAAS,GAAG;AACnB,aAAQ,KAAK,OAA6B;AAAA,IAC5C;AAEA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,IAAI,oBAAoB;AACtB,QAAI,KAAK,SAAS,GAAG;AACnB,aAAQ,KAAK,OAA6B;AAAA,IAC5C;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,eAAe;AACb,QAAI,KAAK,SAAS,GAAG;AACnB,WAAK,sBAAsB,eAAe;AAAA,IAC5C;AAAA,EACF;AAAA,EAEQ,aAAa;AACnB,SAAK,WAAW;AAChB,SAAK,KAAK,UAAU;AAAA,EACtB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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.QCV5J2JX.js.map
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filterOnlyNavItems,
|
|
3
|
-
getAssignedElementsForSlot
|
|
4
|
-
|
|
3
|
+
getAssignedElementsForSlot,
|
|
4
|
+
hideNavigationItem,
|
|
5
|
+
showNavigationItem
|
|
6
|
+
} from "./chunk.OJ3N7TWP.js";
|
|
5
7
|
import {
|
|
6
8
|
prio_nav_styles_default
|
|
7
9
|
} from "./chunk.74N5WLM5.js";
|
|
8
10
|
import {
|
|
9
11
|
SynNavItem
|
|
10
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.67KT2SLM.js";
|
|
11
13
|
import {
|
|
12
14
|
SynMenu
|
|
13
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.3MVTZZBQ.js";
|
|
14
16
|
import {
|
|
15
17
|
SynDropdown
|
|
16
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.KWSECSZM.js";
|
|
17
19
|
import {
|
|
18
20
|
SynIcon
|
|
19
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.YBCKQJK4.js";
|
|
20
22
|
import {
|
|
21
23
|
LocalizeController
|
|
22
24
|
} from "./chunk.GIU3H3J3.js";
|
|
23
25
|
import {
|
|
24
26
|
SynergyElement,
|
|
25
27
|
component_styles_default
|
|
26
|
-
} from "./chunk.
|
|
28
|
+
} from "./chunk.WEXZUPCC.js";
|
|
27
29
|
import {
|
|
28
30
|
__decorateClass
|
|
29
31
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -75,30 +77,27 @@ var SynPrioNav = class extends SynergyElement {
|
|
|
75
77
|
const { clientWidth } = this.priorityMenu;
|
|
76
78
|
const finalWidth = width - clientWidth;
|
|
77
79
|
let firstHiddenItemRightPos;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
const itemVisibilities = navItems.map((item) => {
|
|
81
|
+
const isHidden = !!(firstHiddenItemRightPos || parseFloat(item.dataset.right) >= finalWidth);
|
|
82
|
+
if (isHidden && !firstHiddenItemRightPos) {
|
|
83
|
+
firstHiddenItemRightPos = parseFloat(item.dataset.right);
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
isHidden,
|
|
87
|
+
item
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
const visibleItems = itemVisibilities.filter(({ isHidden }) => !isHidden).length;
|
|
91
|
+
const hasOnlyOneItem = visibleItems === 1;
|
|
92
|
+
itemVisibilities.forEach(({ item, isHidden }) => {
|
|
93
|
+
if (isHidden || hasOnlyOneItem) {
|
|
94
|
+
hideNavigationItem(item);
|
|
88
95
|
} else {
|
|
89
|
-
|
|
90
|
-
item.setAttribute("horizontal", "true");
|
|
91
|
-
item.removeAttribute("slot");
|
|
92
|
-
item.removeAttribute("tabindex");
|
|
93
|
-
if (item.dataset.originalRole) {
|
|
94
|
-
item.setAttribute("role", item.dataset.originalRole);
|
|
95
|
-
} else {
|
|
96
|
-
item.removeAttribute("role");
|
|
97
|
-
}
|
|
96
|
+
showNavigationItem(item);
|
|
98
97
|
}
|
|
99
98
|
});
|
|
100
99
|
this.hasItemsInDropdown = visibleItems !== navItems.length;
|
|
101
|
-
this.amountOfVisibleItems = visibleItems;
|
|
100
|
+
this.amountOfVisibleItems = hasOnlyOneItem ? 0 : visibleItems;
|
|
102
101
|
}
|
|
103
102
|
renderPriorityMenu() {
|
|
104
103
|
return html`
|
|
@@ -206,4 +205,4 @@ __decorateClass([
|
|
|
206
205
|
export {
|
|
207
206
|
SynPrioNav
|
|
208
207
|
};
|
|
209
|
-
//# sourceMappingURL=chunk.
|
|
208
|
+
//# sourceMappingURL=chunk.QDOITOS2.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/prio-nav/prio-nav.component.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable no-param-reassign */\nimport type { CSSResultGroup } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit/static-html.js';\nimport { query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './prio-nav.styles.js';\nimport SynDropdown from '../dropdown/dropdown.component.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynMenu from '../menu/menu.component.js';\nimport SynNavItem from '../nav-item/nav-item.component.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport {\n filterOnlyNavItems,\n getAssignedElementsForSlot,\n hideNavigationItem,\n showNavigationItem,\n} from './utils.js';\n\n/**\n * @summary The `<syn-prio-nav />` element provides a generic navigation bar\n * that can be used to group multiple navigation items (usually horizontal `<syn-nav-item />`s)\n * together. It will automatically group all items not visible in the viewport into a custom\n * priority menu.\n *\n * @example\n * <syn-prio-nav>\n * <syn-nav-item current horizontal>Item 1</syn-nav-item>\n * <button role=\"menuitem\">Item 2 (custom)</button>\n * <syn-nav-item horizontal>Item 3</syn-nav-item>\n * </syn-prio-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-prio-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-dropdown\n * @dependency syn-icon\n * @dependency syn-menu\n * @dependency syn-nav-item\n *\n * @slot - The given navigation items. Must be horizontal `<syn-nav-item>`s\n * or have a role of \"menuitem\"\n *\n * @csspart base - The component's base wrapper.\n * @csspart priority-menu - The wrapper around the priority menu\n * @csspart priority-menu-nav-item - The navigation item for the priority menu\n * @csspart priority-menu-label - The label for the priority menu\n * @csspart priority-menu-icon - The icon for the priority menu\n * @csspart priority-menu-container - The container for the shifted navigation items,\n * if there is not enough space.\n *\n */\nexport default class SynPrioNav extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-dropdown': SynDropdown,\n 'syn-icon': SynIcon,\n 'syn-menu': SynMenu,\n 'syn-nav-item': SynNavItem,\n };\n\n /**\n * Internal resize observer\n */\n private resizeObserver: ResizeObserver;\n\n private readonly localize = new LocalizeController(this);\n\n /**\n * Reference to the rendered children slot\n */\n @query('slot:not([name])') private defaultSlot: HTMLSlotElement;\n\n /**\n * Reference to the slot where priority menu items are placed\n */\n @query('slot[name=menu]') private menuSlot: HTMLSlotElement;\n\n /**\n * The wrapper that holds the horizontal navigation items\n */\n @query('.horizontal-nav') private horizontalNav: HTMLDivElement;\n\n /**\n * The priority menu dropdown\n */\n @query('.priority-menu') private priorityMenu: SynDropdown;\n\n /**\n * Internal state reflecting if the item positions have been cached\n */\n @state() private itemPositionsCached = false;\n\n /**\n * The amount of nav items that are currently slotted\n */\n @state() private amountOfNavItems = 0;\n\n /**\n * The amount of items that are currently visible\n */\n @state() private amountOfVisibleItems = 0;\n\n /**\n * Internal state reflecting if there are items in the priority menu\n */\n @state() private hasItemsInDropdown = false;\n\n /**\n * Get a list of all slotted `<syn-nav-item />` elements\n * that are either in the main slot or the priority menu slot\n */\n private getSlottedNavItems() {\n const navItemsInDefaultSlot = filterOnlyNavItems(getAssignedElementsForSlot(this.defaultSlot));\n const navItemsInMenuSlot = filterOnlyNavItems(getAssignedElementsForSlot(this.menuSlot));\n return navItemsInDefaultSlot.concat(navItemsInMenuSlot);\n }\n\n /**\n * Cache the items right offset position to make faster checks placement into priority menu\n * @param items The items to cache the position for\n */\n private cacheItemPositions(items: SynNavItem[]) {\n const { left } = this.horizontalNav.getBoundingClientRect();\n items.forEach(item => {\n // We have to measure while the items are in the primary slot,\n // else we will just get the placement in the priority menu\n item.removeAttribute('slot');\n const { right } = item.getBoundingClientRect();\n // We also need to consider the location of the parent\n item.dataset.right = (right - left).toString();\n });\n\n this.itemPositionsCached = true;\n }\n\n /**\n * Determines which items should be shown or hidden, depending on the current width\n */\n private handlePriorityMenu() {\n const navItems = this.getSlottedNavItems();\n\n if (!this.itemPositionsCached) {\n this.cacheItemPositions(navItems);\n }\n\n // Get the widths of the horizontal nav and the priority menu\n // We subtract the width of the priority menu to get the final width\n const { width } = this.horizontalNav.getBoundingClientRect();\n const { clientWidth } = this.priorityMenu;\n const finalWidth = width - clientWidth;\n\n // Cache the first item\n let firstHiddenItemRightPos: number | undefined;\n\n const itemVisibilities = navItems.map(item => {\n const isHidden = !!(firstHiddenItemRightPos || parseFloat(item.dataset.right!) >= finalWidth);\n\n // Get the position of the first item\n // Will get used to position the priority menu\n if (isHidden && !firstHiddenItemRightPos) {\n firstHiddenItemRightPos = parseFloat(item.dataset.right!);\n }\n\n return {\n isHidden,\n item,\n };\n });\n\n const visibleItems = itemVisibilities.filter(({ isHidden }) => !isHidden).length;\n const hasOnlyOneItem = visibleItems === 1;\n\n // Finally, hide or show the items based on the visibility\n // As requested in #410, we hide all items if there is only one item\n itemVisibilities.forEach(({ item, isHidden }) => {\n if (isHidden || hasOnlyOneItem) {\n hideNavigationItem(item);\n } else {\n showNavigationItem(item);\n }\n });\n\n // Tell the render call that we have items in the priority menu\n // and toggle the visibility of the priority menu label\n this.hasItemsInDropdown = visibleItems !== navItems.length;\n this.amountOfVisibleItems = hasOnlyOneItem ? 0 : visibleItems;\n }\n\n private renderPriorityMenu() {\n return html`\n <syn-dropdown\n class=${classMap({\n 'priority-menu': true,\n 'priority-menu--has-visible-items': this.amountOfVisibleItems !== 0,\n 'priority-menu--hidden': !this.hasItemsInDropdown,\n })}\n part=\"priority-menu\"\n placement=\"bottom-end\"\n >\n <syn-nav-item class=\"priority-menu__nav-item\" slot=\"trigger\" horizontal part=\"priority-menu-nav-item\">\n <syn-icon \n class=\"priority-menu__icon\"\n label=\"More\"\n library=\"system\"\n name=\"more\"\n part=\"priority-menu-icon\"\n slot=\"prefix\"\n >\n </syn-icon>\n <span\n class=${classMap({\n 'priority-menu__label': true,\n 'priority-menu__label--visible': this.amountOfVisibleItems === 0,\n })}\n part=\"priority-menu-label\"\n >\n ${this.localize.term('menu')}\n </span>\n </syn-nav-item>\n\n <syn-menu part=\"priority-menu-container\">\n <slot name=\"menu\"></slot>\n </syn-menu>\n\n </syn-dropdown>\n `;\n }\n\n private slotChange() {\n const slottedItems = this.getSlottedNavItems();\n\n // Make sure to trigger a recalculation of the item positions if we a new list of slotted items\n if (slottedItems.length !== this.amountOfNavItems) {\n this.cacheItemPositions(slottedItems);\n this.handlePriorityMenu();\n this.amountOfNavItems = slottedItems.length;\n }\n }\n\n protected firstUpdated() {\n // Cache the original role of the items so we can reset it if needed.\n this.getSlottedNavItems().forEach(item => {\n item.dataset.originalRole = item.getAttribute('role') ?? '';\n });\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(() => this.handlePriorityMenu());\n this.resizeObserver.observe(this);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver.unobserve(this);\n }\n\n render() {\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <nav class=\"horizontal-nav\" part=\"base\">\n <slot @slotchange=${this.slotChange}></slot>\n ${this.renderPriorityMenu()}\n </nav>\n `;\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,OAAO,aAAa;AAkD7B,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAAvD;AAAA;AAeE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAyB9C,SAAQ,sBAAsB;AAK9B,SAAQ,mBAAmB;AAK3B,SAAQ,uBAAuB;AAK/B,SAAQ,qBAAqB;AAAA;AAAA;AA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AO;AAAA;AAAA,4BAEiB,KAAK,UAAU;AAAA,UACjC,KAAK,mBAAmB,CAAC;AAAA;AAAA;AAAA,EAIjC;AACF;AAzNqB,WACZ,SAAyB,CAAC,0BAAiB,uBAAM;AADrC,WAGZ,eAAe;AAAA,EACpB,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,gBAAgB;AAClB;AAYmC;AAAA,EAAlC,MAAM,kBAAkB;AAAA,GApBN,WAoBgB;AAKD;AAAA,EAAjC,MAAM,iBAAiB;AAAA,GAzBL,WAyBe;AAKA;AAAA,EAAjC,MAAM,iBAAiB;AAAA,GA9BL,WA8Be;AAKD;AAAA,EAAhC,MAAM,gBAAgB;AAAA,GAnCJ,WAmCc;AAKhB;AAAA,EAAhB,MAAM;AAAA,GAxCY,WAwCF;AAKA;AAAA,EAAhB,MAAM;AAAA,GA7CY,WA6CF;AAKA;AAAA,EAAhB,MAAM;AAAA,GAlDY,WAkDF;AAKA;AAAA,EAAhB,MAAM;AAAA,GAvDY,WAuDF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.WEXZUPCC.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
16
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -53,4 +53,4 @@ __decorateClass([
|
|
|
53
53
|
export {
|
|
54
54
|
SynCard
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk.
|
|
56
|
+
//# sourceMappingURL=chunk.RI6XEQMR.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk.S22BO5SF.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.YBCKQJK4.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.GIU3H3J3.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.WEXZUPCC.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -89,4 +89,4 @@ __decorateClass([
|
|
|
89
89
|
export {
|
|
90
90
|
SynBreadcrumb
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk.
|
|
92
|
+
//# sourceMappingURL=chunk.RV7BELAO.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.3B22DBSJ.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDivider
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.NQEEDGN5.js";
|
|
10
10
|
import {
|
|
11
11
|
defaultValue
|
|
12
12
|
} from "./chunk.RBG37CD4.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk.WVVQK5TE.js";
|
|
23
23
|
import {
|
|
24
24
|
SynIcon
|
|
25
|
-
} from "./chunk.
|
|
25
|
+
} from "./chunk.YBCKQJK4.js";
|
|
26
26
|
import {
|
|
27
27
|
LocalizeController
|
|
28
28
|
} from "./chunk.GIU3H3J3.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
SynergyElement,
|
|
34
34
|
component_styles_default
|
|
35
|
-
} from "./chunk.
|
|
35
|
+
} from "./chunk.WEXZUPCC.js";
|
|
36
36
|
import {
|
|
37
37
|
__decorateClass,
|
|
38
38
|
__spreadValues
|
|
@@ -642,4 +642,4 @@ __decorateClass([
|
|
|
642
642
|
export {
|
|
643
643
|
SynInput
|
|
644
644
|
};
|
|
645
|
-
//# sourceMappingURL=chunk.
|
|
645
|
+
//# sourceMappingURL=chunk.S5GTUR3T.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCheckbox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BOKB2LEP.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.SYIBDFRD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTag
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2CO2NVIH.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tag/tag.ts
|
|
6
6
|
var tag_default = SynTag;
|
|
@@ -9,4 +9,4 @@ SynTag.define("syn-tag");
|
|
|
9
9
|
export {
|
|
10
10
|
tag_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.SZHPXI4D.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadio
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.FMFVK662.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.TD7N3L4O.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenu
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.3MVTZZBQ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu/menu.ts
|
|
6
6
|
var menu_default = SynMenu;
|
|
@@ -9,4 +9,4 @@ SynMenu.define("syn-menu");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.TQ6W2TC6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCard
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.RI6XEQMR.js";
|
|
4
4
|
|
|
5
5
|
// src/components/card/card.ts
|
|
6
6
|
var card_default = SynCard;
|
|
@@ -9,4 +9,4 @@ SynCard.define("syn-card");
|
|
|
9
9
|
export {
|
|
10
10
|
card_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.TRCRLTVG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PUXBRQLH.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button/button.ts
|
|
6
6
|
var button_default = SynButton;
|
|
@@ -9,4 +9,4 @@ SynButton.define("syn-button");
|
|
|
9
9
|
export {
|
|
10
10
|
button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.U47WJHSG.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk.5732DMBC.js";
|
|
14
14
|
import {
|
|
15
15
|
SynIconButton
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.AA7UYQAJ.js";
|
|
17
17
|
import {
|
|
18
18
|
waitForEvent
|
|
19
19
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
SynergyElement,
|
|
39
39
|
component_styles_default
|
|
40
|
-
} from "./chunk.
|
|
40
|
+
} from "./chunk.WEXZUPCC.js";
|
|
41
41
|
import {
|
|
42
42
|
__decorateClass
|
|
43
43
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -287,4 +287,4 @@ setDefaultAnimation("dialog.overlay.hide", {
|
|
|
287
287
|
export {
|
|
288
288
|
SynDialog
|
|
289
289
|
};
|
|
290
|
-
//# sourceMappingURL=chunk.
|
|
290
|
+
//# sourceMappingURL=chunk.UI7YG4DD.js.map
|
|
@@ -158,15 +158,12 @@ var combobox_styles_default = css`
|
|
|
158
158
|
margin-inline-end: var(--syn-input-spacing-large);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
flex: 0;
|
|
164
|
-
display: inline-flex;
|
|
165
|
-
align-items: center;
|
|
166
|
-
color: var(--syn-input-placeholder-color);
|
|
161
|
+
.combobox--large.combobox--multiple .combobox__prefix::slotted(*) {
|
|
162
|
+
margin-inline-start: var(--syn-input-spacing-large);
|
|
167
163
|
}
|
|
168
164
|
|
|
169
|
-
|
|
165
|
+
/* Prefix and Suffix */
|
|
166
|
+
.combobox__prefix,
|
|
170
167
|
.combobox__suffix {
|
|
171
168
|
flex: 0;
|
|
172
169
|
display: inline-flex;
|
|
@@ -174,6 +171,10 @@ var combobox_styles_default = css`
|
|
|
174
171
|
color: var(--syn-input-placeholder-color);
|
|
175
172
|
}
|
|
176
173
|
|
|
174
|
+
.combobox__suffix::slotted(*) {
|
|
175
|
+
margin-inline-start: var(--syn-spacing-small);
|
|
176
|
+
}
|
|
177
|
+
|
|
177
178
|
/* Clear button */
|
|
178
179
|
.combobox__clear {
|
|
179
180
|
display: inline-flex;
|
|
@@ -342,4 +343,4 @@ var combobox_styles_default = css`
|
|
|
342
343
|
export {
|
|
343
344
|
combobox_styles_default
|
|
344
345
|
};
|
|
345
|
-
//# sourceMappingURL=chunk.
|
|
346
|
+
//# sourceMappingURL=chunk.UREJSW6U.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/combobox/combobox.styles.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { css } from 'lit';\n\nexport default css`\n\t/* stylelint-disable */\n :host {\n display: block;\n }\n\n /** The popup */\n .combobox {\n flex: 1 1 auto;\n display: inline-flex;\n width: 100%;\n position: relative;\n vertical-align: middle;\n }\n\n .combobox::part(popup) {\n z-index: var(--syn-z-index-dropdown);\n }\n\n .combobox[data-current-placement^='top']::part(popup) {\n transform-origin: bottom;\n }\n\n .combobox[data-current-placement^='bottom']::part(popup) {\n transform-origin: top;\n }\n\n /* Combobox */\n .combobox__inputs {\n flex: 1;\n display: flex;\n width: 100%;\n min-width: 0;\n position: relative;\n align-items: center;\n justify-content: start;\n font-family: var(--syn-input-font-family);\n font-weight: var(--syn-input-font-weight);\n letter-spacing: var(--syn-input-letter-spacing);\n vertical-align: middle;\n overflow: hidden;\n cursor: pointer;\n transition:\n var(--syn-transition-fast) color,\n var(--syn-transition-fast) border,\n var(--syn-transition-fast) box-shadow,\n var(--syn-transition-fast) background-color;\n }\n\n .combobox__display-input {\n position: relative;\n width: 100%;\n font: inherit;\n border: none;\n background: none;\n color: var(--syn-input-color);\n cursor: inherit;\n overflow: hidden;\n padding: 0;\n margin: 0;\n -webkit-appearance: none;\n }\n\n .combobox__display-input::placeholder {\n color: var(--syn-input-placeholder-color);\n }\n\n .combobox:not(.combobox--disabled):hover .combobox__display-input {\n color: var(--syn-input-color-hover);\n }\n\n .combobox__display-input:focus {\n outline: none;\n }\n\n .combobox__value-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n opacity: 0;\n z-index: -1;\n }\n\n /* Standard combobox */\n .combobox--standard .combobox__inputs {\n background-color: var(--syn-input-background-color);\n border: solid var(--syn-input-border-width) var(--syn-input-border-color);\n }\n\n .combobox--standard.combobox--disabled .combobox__inputs {\n background-color: var(--syn-input-background-color-disabled);\n border-color: var(--syn-input-border-color-disabled);\n color: var(--syn-input-color-disabled);\n opacity: 0.5;\n cursor: not-allowed;\n outline: none;\n }\n\n .combobox--standard:not(.combobox--disabled).combobox--open .combobox__inputs,\n .combobox--standard:not(.combobox--disabled).combobox--focused .combobox__inputs {\n background-color: var(--syn-input-background-color-focus);\n border-color: var(--syn-input-border-color-focus);\n box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-color);\n }\n\n/* Sizes */\n .combobox--small .combobox__inputs {\n border-radius: var(--syn-input-border-radius-small);\n font-size: var(--syn-input-font-size-small);\n min-height: var(--syn-input-height-small);\n padding-block: 0;\n padding-inline: var(--syn-input-spacing-small);\n }\n\n .combobox--small .combobox__clear {\n margin-inline-start: var(--syn-input-spacing-small);\n }\n\n .combobox--small .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-small);\n }\n\n .combobox--medium .combobox__inputs {\n border-radius: var(--syn-input-border-radius-medium);\n font-size: var(--syn-input-font-size-medium);\n min-height: var(--syn-input-height-medium);\n padding-block: 0;\n padding-inline: var(--syn-input-spacing-medium);\n }\n\n .combobox--medium .combobox__clear {\n margin-inline-start: var(--syn-input-spacing-medium);\n }\n\n .combobox--medium .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-medium);\n }\n\n .combobox--large .combobox__inputs {\n border-radius: var(--syn-input-border-radius-large);\n font-size: var(--syn-input-font-size-large);\n min-height: var(--syn-input-height-large);\n padding-block: 0;\n padding-inline: var(--syn-input-spacing-large);\n }\n\n .combobox--large .combobox__clear {\n margin-inline-start: var(--syn-input-spacing-large);\n }\n\n .combobox--large .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-large);\n }\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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
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 { css } from 'lit';\n\nexport default css`\n\t/* stylelint-disable */\n :host {\n display: block;\n }\n\n /** The popup */\n .combobox {\n flex: 1 1 auto;\n display: inline-flex;\n width: 100%;\n position: relative;\n vertical-align: middle;\n }\n\n .combobox::part(popup) {\n z-index: var(--syn-z-index-dropdown);\n }\n\n .combobox[data-current-placement^='top']::part(popup) {\n transform-origin: bottom;\n }\n\n .combobox[data-current-placement^='bottom']::part(popup) {\n transform-origin: top;\n }\n\n /* Combobox */\n .combobox__inputs {\n flex: 1;\n display: flex;\n width: 100%;\n min-width: 0;\n position: relative;\n align-items: center;\n justify-content: start;\n font-family: var(--syn-input-font-family);\n font-weight: var(--syn-input-font-weight);\n letter-spacing: var(--syn-input-letter-spacing);\n vertical-align: middle;\n overflow: hidden;\n cursor: pointer;\n transition:\n var(--syn-transition-fast) color,\n var(--syn-transition-fast) border,\n var(--syn-transition-fast) box-shadow,\n var(--syn-transition-fast) background-color;\n }\n\n .combobox__display-input {\n position: relative;\n width: 100%;\n font: inherit;\n border: none;\n background: none;\n color: var(--syn-input-color);\n cursor: inherit;\n overflow: hidden;\n padding: 0;\n margin: 0;\n -webkit-appearance: none;\n }\n\n .combobox__display-input::placeholder {\n color: var(--syn-input-placeholder-color);\n }\n\n .combobox:not(.combobox--disabled):hover .combobox__display-input {\n color: var(--syn-input-color-hover);\n }\n\n .combobox__display-input:focus {\n outline: none;\n }\n\n .combobox__value-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n opacity: 0;\n z-index: -1;\n }\n\n /* Standard combobox */\n .combobox--standard .combobox__inputs {\n background-color: var(--syn-input-background-color);\n border: solid var(--syn-input-border-width) var(--syn-input-border-color);\n }\n\n .combobox--standard.combobox--disabled .combobox__inputs {\n background-color: var(--syn-input-background-color-disabled);\n border-color: var(--syn-input-border-color-disabled);\n color: var(--syn-input-color-disabled);\n opacity: 0.5;\n cursor: not-allowed;\n outline: none;\n }\n\n .combobox--standard:not(.combobox--disabled).combobox--open .combobox__inputs,\n .combobox--standard:not(.combobox--disabled).combobox--focused .combobox__inputs {\n background-color: var(--syn-input-background-color-focus);\n border-color: var(--syn-input-border-color-focus);\n box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-color);\n }\n\n/* Sizes */\n .combobox--small .combobox__inputs {\n border-radius: var(--syn-input-border-radius-small);\n font-size: var(--syn-input-font-size-small);\n min-height: var(--syn-input-height-small);\n padding-block: 0;\n padding-inline: var(--syn-input-spacing-small);\n }\n\n .combobox--small .combobox__clear {\n margin-inline-start: var(--syn-input-spacing-small);\n }\n\n .combobox--small .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-small);\n }\n\n .combobox--medium .combobox__inputs {\n border-radius: var(--syn-input-border-radius-medium);\n font-size: var(--syn-input-font-size-medium);\n min-height: var(--syn-input-height-medium);\n padding-block: 0;\n padding-inline: var(--syn-input-spacing-medium);\n }\n\n .combobox--medium .combobox__clear {\n margin-inline-start: var(--syn-input-spacing-medium);\n }\n\n .combobox--medium .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-medium);\n }\n\n .combobox--large .combobox__inputs {\n border-radius: var(--syn-input-border-radius-large);\n font-size: var(--syn-input-font-size-large);\n min-height: var(--syn-input-height-large);\n padding-block: 0;\n padding-inline: var(--syn-input-spacing-large);\n }\n\n .combobox--large .combobox__clear {\n margin-inline-start: var(--syn-input-spacing-large);\n }\n\n .combobox--large .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-large);\n }\n\n .combobox--large.combobox--multiple .combobox__prefix::slotted(*) {\n margin-inline-start: var(--syn-input-spacing-large);\n }\n\n/* Prefix and Suffix */\n .combobox__prefix,\n .combobox__suffix {\n flex: 0;\n display: inline-flex;\n align-items: center;\n color: var(--syn-input-placeholder-color);\n }\n\n .combobox__suffix::slotted(*) {\n margin-inline-start: var(--syn-spacing-small);\n }\n\n /* Clear button */\n .combobox__clear {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: inherit;\n color: var(--syn-input-icon-color);\n border: none;\n background: none;\n padding: 0;\n transition: var(--syn-transition-fast) color;\n cursor: pointer;\n }\n\n .combobox__clear:hover {\n color: var(--syn-input-icon-color-hover);\n }\n\n .combobox__clear:focus {\n outline: none;\n }\n\n /* Expand icon */\n .combobox__expand-icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n transition: var(--syn-transition-medium) rotate ease;\n rotate: 0;\n margin-inline-start: var(--syn-spacing-small);\n }\n\n .combobox--open .combobox__expand-icon {\n rotate: -180deg;\n }\n\n /* Listbox */\n .combobox__listbox {\n display: block;\n position: relative;\n font-family: var(--syn-font-sans);\n font-size: var(--syn-font-size-medium);\n font-weight: var(--syn-font-weight-normal);\n box-shadow: var(--syn-shadow-large);\n background: var(--syn-panel-background-color);\n border: solid var(--syn-panel-border-width) var(--syn-panel-border-color);\n border-radius: var(--syn-border-radius-medium);\n padding-block: var(--syn-spacing-x-small);\n padding-inline: 0;\n overflow: auto;\n overscroll-behavior: none;\n\n /* Make sure it adheres to the popup's auto size */\n max-width: var(--auto-size-available-width);\n max-height: var(--auto-size-available-height);\n }\n\n .combobox__listbox ::slotted(syn-divider) {\n --spacing: var(--syn-spacing-x-small);\n }\n\n .combobox__listbox ::slotted(small) {\n display: block;\n font-size: var(--syn-font-size-small);\n font-weight: var(--syn-font-weight-semibold);\n color: var(--syn-color-neutral-500);\n padding-block: var(--syn-spacing-2x-small);\n padding-inline: var(--syn-spacing-x-large);\n }\n\n\n /**\n * Invalid user data\n */\n :host([data-user-invalid]) .combobox__inputs {\n border-color: var(--syn-input-border-color-focus-error);\n }\n\n :host([data-user-invalid]) .combobox--standard:not(.combobox--disabled).combobox--open .combobox__inputs,\n :host([data-user-invalid]) .combobox--standard:not(.combobox--disabled).combobox--focused .combobox__inputs {\n border-color: var(--syn-input-border-color-focus-error);\n box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);\n }\n\n /* Clear button */\n .combobox__clear {\n color: var(--syn-input-icon-icon-clearable-color);\n font-size: var(--syn-spacing-large);\n }\n\n .combobox--small .combobox__clear {\n font-size: var(--syn-spacing-medium);\n }\n\n .combobox--large .combobox__clear {\n font-size: var(--syn-spacing-x-large);\n }\n\n .combobox--medium .combobox__clear {\n margin-inline-start: var(--syn-spacing-small);\n }\n\n /* Expand icon */\n .combobox__expand-icon {\n color: var(--syn-color-neutral-950);\n font-size: var(--syn-spacing-large);\n margin-inline-start: var(--syn-spacing-small);\n }\n\n /* Change combobox border on hover */\n .combobox:not(.combobox--disabled):hover .combobox__inputs {\n border-color: var(--syn-input-color-hover);\n }\n\n /* Prefix and Suffix */\n\n /* Small */\n .combobox--small .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-spacing-x-small);\n }\n\n .combobox--small .combobox__suffix::slotted(*) {\n margin-inline-start: var(--syn-spacing-x-small);\n }\n\n .combobox--medium .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-small);\n }\n\n .combobox--medium .combobox__suffix::slotted(*) {\n margin-inline-start: var(--syn-input-spacing-small);\n }\n\n .combobox--large .combobox__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-medium);\n }\n\n .combobox--large .combobox__suffix::slotted(*) {\n margin-inline-start: var(--syn-input-spacing-medium);\n }\n\n .combobox__prefix,\n .combobox__suffix {\n color: var(--syn-input-help-text-color);\n }\n\n\n\n /* Listbox */\n .combobox__listbox {\n /* @todo: Should be --syn-border-radius-medium, which should be set to 0 */\n border-radius: var(--syn-border-radius-none);\n box-shadow: var(--syn-shadow-medium);\n }\n\n /**\n * Make sure to hide the syn-divider for the first syn-optgroup\n * Note! ::slotted does currently not work with ::part, so we\n * opted for using a css variable here.\n */\n .combobox__listbox ::slotted(syn-optgroup:first-of-type) {\n --display-divider: none;\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAQA,SAAS,WAAW;AAEpB,IAAO,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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AA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
tooltip_styles_default
|
|
3
|
-
} from "./chunk.O644HRW3.js";
|
|
4
1
|
import {
|
|
5
2
|
tooltip_custom_styles_default
|
|
6
3
|
} from "./chunk.4X3HY2V5.js";
|
|
4
|
+
import {
|
|
5
|
+
tooltip_styles_default
|
|
6
|
+
} from "./chunk.O644HRW3.js";
|
|
7
7
|
import {
|
|
8
8
|
SynPopup
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3XYKUOSA.js";
|
|
10
10
|
import {
|
|
11
11
|
waitForEvent
|
|
12
12
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
SynergyElement,
|
|
30
30
|
component_styles_default
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.WEXZUPCC.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass
|
|
34
34
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -272,4 +272,4 @@ setDefaultAnimation("tooltip.hide", {
|
|
|
272
272
|
export {
|
|
273
273
|
SynTooltip
|
|
274
274
|
};
|
|
275
|
-
//# sourceMappingURL=chunk.
|
|
275
|
+
//# sourceMappingURL=chunk.VBPJP47S.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
SynergyElement,
|
|
9
9
|
component_styles_default
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.WEXZUPCC.js";
|
|
11
11
|
import {
|
|
12
12
|
__decorateClass
|
|
13
13
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -103,4 +103,4 @@ __decorateClass([
|
|
|
103
103
|
export {
|
|
104
104
|
SynAccordion
|
|
105
105
|
};
|
|
106
|
-
//# sourceMappingURL=chunk.
|
|
106
|
+
//# sourceMappingURL=chunk.VHBHYODZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynOptgroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.5WTQAMIT.js";
|
|
4
4
|
|
|
5
5
|
// src/components/optgroup/optgroup.ts
|
|
6
6
|
var optgroup_default = SynOptgroup;
|
|
@@ -9,4 +9,4 @@ SynOptgroup.define("syn-optgroup");
|
|
|
9
9
|
export {
|
|
10
10
|
optgroup_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.VN7RN2HU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTooltip
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VBPJP47S.js";
|
|
4
4
|
import {
|
|
5
5
|
range_styles_default
|
|
6
6
|
} from "./chunk.277APOW3.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
SynergyElement,
|
|
32
32
|
component_styles_default
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.WEXZUPCC.js";
|
|
34
34
|
import {
|
|
35
35
|
__decorateClass,
|
|
36
36
|
__privateAdd,
|
|
@@ -633,4 +633,4 @@ __decorateClass([
|
|
|
633
633
|
export {
|
|
634
634
|
SynRange
|
|
635
635
|
};
|
|
636
|
-
//# sourceMappingURL=chunk.
|
|
636
|
+
//# sourceMappingURL=chunk.VSJELW2C.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBreadcrumbItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.35XN5YQW.js";
|
|
4
4
|
|
|
5
5
|
// src/components/breadcrumb-item/breadcrumb-item.ts
|
|
6
6
|
var breadcrumb_item_default = SynBreadcrumbItem;
|
|
@@ -9,4 +9,4 @@ SynBreadcrumbItem.define("syn-breadcrumb-item");
|
|
|
9
9
|
export {
|
|
10
10
|
breadcrumb_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.VSM3FPJC.js.map
|