@synergy-design-system/components 2.31.2 → 2.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/code-quality/html-validate/scripts/deprecation.js +1 -0
- package/code-quality/html-validate/scripts/synergy-element-rules.js +7 -1
- package/dist/chunks/{chunk.JDN6CDYL.js → chunk.25GVUTU4.js} +9 -9
- package/dist/chunks/{chunk.2G7DZ3GJ.js → chunk.27L65BCF.js} +2 -2
- package/dist/chunks/{chunk.MQZANITC.js → chunk.2DU5WR27.js} +2 -2
- package/dist/chunks/{chunk.6IWBHFOD.js → chunk.2S2HN2DG.js} +11 -11
- package/dist/chunks/{chunk.SMAOMVFZ.js → chunk.3KSZ45DK.js} +7 -7
- package/dist/chunks/{chunk.RYNKWTQ6.js → chunk.3RF5SFKE.js} +5 -5
- package/dist/chunks/{chunk.NH4JQFOM.js → chunk.57DU3E3Z.js} +3 -1
- package/dist/chunks/{chunk.NH4JQFOM.js.map → chunk.57DU3E3Z.js.map} +2 -2
- package/dist/chunks/{chunk.2EJ6TB2U.js → chunk.5RDKSWHY.js} +6 -6
- package/dist/chunks/{chunk.S5N2TE2L.js → chunk.6DYKE5RE.js} +3 -1
- package/dist/chunks/{chunk.S5N2TE2L.js.map → chunk.6DYKE5RE.js.map} +2 -2
- package/dist/chunks/{chunk.JMBUWWA2.js → chunk.6IW6UFS5.js} +2 -2
- package/dist/chunks/{chunk.OH3PPVV4.js → chunk.6QJYD7WX.js} +13 -1
- package/dist/chunks/chunk.6QJYD7WX.js.map +7 -0
- package/dist/chunks/{chunk.KQQM2CWQ.js → chunk.77CM4WNK.js} +3 -3
- package/dist/chunks/{chunk.HQ6QUSK7.js → chunk.7JGKUB4A.js} +2 -2
- package/dist/chunks/{chunk.OBWURI5H.js → chunk.7TDMIG4V.js} +10 -10
- package/dist/chunks/{chunk.HE2VZIBP.js → chunk.AB3VZ5EQ.js} +2 -2
- package/dist/chunks/{chunk.3DUL2OP4.js → chunk.ACUIKTEY.js} +2 -2
- package/dist/chunks/{chunk.ELFHYJLZ.js → chunk.AGK4R4ZV.js} +2 -2
- package/dist/chunks/{chunk.2LYOMDFO.js → chunk.AYAX7BG7.js} +2 -2
- package/dist/chunks/{chunk.YPSUFGKY.js → chunk.BNHQAKO6.js} +2 -2
- package/dist/chunks/{chunk.BO7FAKBN.js → chunk.BNQHYHD5.js} +217 -11
- package/dist/chunks/chunk.BNQHYHD5.js.map +7 -0
- package/dist/chunks/{chunk.EISTC2GP.js → chunk.BVEKHL6R.js} +2 -2
- package/dist/chunks/{chunk.74IOULXM.js → chunk.BVZQ6QSY.js} +2 -2
- package/dist/chunks/{chunk.UU7653PU.js → chunk.BXPKGVZZ.js} +2 -2
- package/dist/chunks/{chunk.DX47WJSS.js → chunk.BY3QS7MP.js} +2 -2
- package/dist/chunks/{chunk.RZG7IW73.js → chunk.C5SA7J6Q.js} +8 -8
- package/dist/chunks/{chunk.JVSTXX5J.js → chunk.CD2K65PJ.js} +7 -7
- package/dist/chunks/{chunk.6DPKNL3S.js → chunk.CQFPYSAF.js} +2 -2
- package/dist/chunks/{chunk.4UOOTX72.js → chunk.D2ISHWZZ.js} +2 -2
- package/dist/chunks/{chunk.EFO5BI6T.js → chunk.DXADIAFT.js} +2 -2
- package/dist/chunks/{chunk.WROPOFUG.js → chunk.DZJHHVOD.js} +3 -3
- package/dist/chunks/{chunk.WROPOFUG.js.map → chunk.DZJHHVOD.js.map} +1 -1
- package/dist/chunks/{chunk.NUIJATJY.js → chunk.E5UUNP6E.js} +3 -3
- package/dist/chunks/{chunk.4YG7EYB2.js → chunk.ERSMRSTV.js} +2 -2
- package/dist/chunks/{chunk.TW3XHMG6.js → chunk.EXACNZQZ.js} +12 -12
- package/dist/chunks/{chunk.XNHQJ4X7.js → chunk.FEVFKETA.js} +10 -10
- package/dist/chunks/{chunk.XUFDCLB4.js → chunk.FFVIY2O3.js} +2 -2
- package/dist/chunks/{chunk.QWSLKG3U.js → chunk.FNSMFPBM.js} +9 -9
- package/dist/chunks/chunk.FWLUR33I.js +165 -0
- package/dist/chunks/chunk.FWLUR33I.js.map +7 -0
- package/dist/chunks/{chunk.JQDBNSFS.js → chunk.G66EQVXQ.js} +2 -2
- package/dist/chunks/{chunk.A3OYJILJ.js → chunk.G6ITZTTW.js} +2 -2
- package/dist/chunks/{chunk.JCIM6NE3.js → chunk.G76BKD7B.js} +2 -2
- package/dist/chunks/{chunk.LC7FBSL4.js → chunk.GQKFJKSM.js} +2 -2
- package/dist/chunks/{chunk.JTSBAJHO.js → chunk.HC4N72MX.js} +2 -2
- package/dist/chunks/{chunk.OO6R7BWT.js → chunk.HEXQ5DSO.js} +3 -3
- package/dist/chunks/{chunk.ZTFYI6ZI.js → chunk.HHBSJGPU.js} +6 -6
- package/dist/chunks/{chunk.LLNE7YOD.js → chunk.HICOUAKU.js} +4 -4
- package/dist/chunks/{chunk.6PCADVSN.js → chunk.HLRZCXQN.js} +7 -7
- package/dist/chunks/{chunk.TBQSOTUS.js → chunk.HNKS3ZIU.js} +2 -2
- package/dist/chunks/{chunk.DIV5RCIM.js → chunk.HNPPHRSN.js} +5 -5
- package/dist/chunks/{chunk.OLRA37R5.js → chunk.HP2LEQRU.js} +2 -2
- package/dist/chunks/{chunk.S5KXHITD.js → chunk.HZJ7FWRM.js} +2 -2
- package/dist/chunks/{chunk.QPAYAMLZ.js → chunk.INRGTLJX.js} +9 -9
- package/dist/chunks/{chunk.GIU3H3J3.js → chunk.IPGLY3H4.js} +2 -2
- package/dist/chunks/{chunk.GIU3H3J3.js.map → chunk.IPGLY3H4.js.map} +1 -1
- package/dist/chunks/{chunk.HFRXN2DK.js → chunk.IW72S7OZ.js} +2 -2
- package/dist/chunks/{chunk.TZUQMH6X.js → chunk.J5JGYGWR.js} +9 -9
- package/dist/chunks/{chunk.NB47QWRL.js → chunk.JGEZDRRE.js} +2 -2
- package/dist/chunks/{chunk.PFSSGWUF.js → chunk.JMJO7VCO.js} +4 -4
- package/dist/chunks/{chunk.22PGKUCU.js → chunk.KL546EBL.js} +2 -2
- package/dist/chunks/{chunk.P3HQDPXQ.js → chunk.KMSUFVZK.js} +2 -2
- package/dist/chunks/{chunk.3JXNFR6T.js → chunk.KQPO2RU5.js} +2 -2
- package/dist/chunks/{chunk.XDWFPRPE.js → chunk.L7A52E3B.js} +4 -4
- package/dist/chunks/{chunk.K7A64ZY7.js → chunk.LDZQIZHN.js} +2 -2
- package/dist/chunks/{chunk.SKYSXSBE.js → chunk.LHLVVLIM.js} +2 -2
- package/dist/chunks/{chunk.7RJUAC42.js → chunk.LI7WXEV6.js} +3 -3
- package/dist/chunks/{chunk.DOIUTN5M.js → chunk.LYMD42B7.js} +2 -2
- package/dist/chunks/{chunk.6DPMTGX6.js → chunk.MC5WHWBF.js} +2 -2
- package/dist/chunks/{chunk.XJAGZG2W.js → chunk.MLMLTXOZ.js} +2 -2
- package/dist/chunks/{chunk.2LPH33ZQ.js → chunk.MNDLFXDZ.js} +9 -9
- package/dist/chunks/chunk.MNDLFXDZ.js.map +7 -0
- package/dist/chunks/{chunk.6GBQX53P.js → chunk.MTN5NM4A.js} +2 -2
- package/dist/chunks/{chunk.KJ5DXPFW.js → chunk.MVYXUHVS.js} +4 -4
- package/dist/chunks/{chunk.JTSGQRUI.js → chunk.N47OHJ5U.js} +2 -2
- package/dist/chunks/{chunk.OYFNERZO.js → chunk.NAJ7EYD2.js} +2 -2
- package/dist/chunks/chunk.NFXT5LNY.js +55 -0
- package/dist/chunks/chunk.NFXT5LNY.js.map +7 -0
- package/dist/chunks/{chunk.DH5KSMJS.js → chunk.NM7BI4LK.js} +20 -18
- package/dist/chunks/chunk.NM7BI4LK.js.map +7 -0
- package/dist/chunks/{chunk.FTFMQV75.js → chunk.NS3DHTOO.js} +9 -9
- package/dist/chunks/{chunk.WTKBRIY4.js → chunk.O6KXOEJZ.js} +5 -5
- package/dist/chunks/{chunk.YKQLG6R3.js → chunk.OBK7WMW2.js} +3 -3
- package/dist/chunks/{chunk.B5BVIZ3W.js → chunk.OKJFZ7T2.js} +5 -5
- package/dist/chunks/{chunk.CLTYOE3E.js → chunk.ONG2YZIJ.js} +2 -2
- package/dist/chunks/{chunk.IRCX4RJL.js → chunk.OSPYBYAS.js} +2 -2
- package/dist/chunks/{chunk.V2NAJIXY.js → chunk.PB2L4AWO.js} +2 -2
- package/dist/chunks/{chunk.SUZPXB4O.js → chunk.POD3BDY6.js} +2 -2
- package/dist/chunks/{chunk.NY2GAPA3.js → chunk.PYNYGKKB.js} +6 -6
- package/dist/chunks/{chunk.PXXI4VRP.js → chunk.QFTB67TT.js} +2 -2
- package/dist/chunks/{chunk.WHKWCNJR.js → chunk.QIZNAQEE.js} +6 -6
- package/dist/chunks/{chunk.L6JQ4II4.js → chunk.QLJC3LVO.js} +2 -2
- package/dist/chunks/{chunk.BC6YFGMY.js → chunk.R6IF6UUL.js} +2 -2
- package/dist/chunks/{chunk.AAPLCFRS.js → chunk.R7UR6527.js} +2 -2
- package/dist/chunks/chunk.RB2JR2ND.js +23 -0
- package/dist/chunks/chunk.RB2JR2ND.js.map +7 -0
- package/dist/chunks/{chunk.5XVVEHBO.js → chunk.RKRTMY5X.js} +2 -2
- package/dist/chunks/{chunk.CITWLSAM.js → chunk.RVWB22MU.js} +2 -2
- package/dist/chunks/{chunk.HLZPJC4B.js → chunk.S2OZHPTC.js} +2 -2
- package/dist/chunks/{chunk.IY34DPIJ.js → chunk.SGWVV6WP.js} +12 -12
- package/dist/chunks/{chunk.VQG4ENGK.js → chunk.SMGWT2BM.js} +4 -4
- package/dist/chunks/{chunk.BMHMFPD4.js → chunk.STNQE2LY.js} +4 -4
- package/dist/chunks/{chunk.DJHTOGW7.js → chunk.T2ENURIL.js} +2 -2
- package/dist/chunks/{chunk.CELWLWZJ.js → chunk.T4JQJQYD.js} +3 -3
- package/dist/chunks/{chunk.I7ZAFHZ3.js → chunk.TIIPIHTX.js} +2 -2
- package/dist/chunks/{chunk.SRK6ZYCL.js → chunk.UAPJHMZJ.js} +6 -6
- package/dist/chunks/{chunk.XUCEJ53P.js → chunk.UCJUUKMG.js} +4 -4
- package/dist/chunks/{chunk.LOAB2FDA.js → chunk.UELDMVQY.js} +2 -2
- package/dist/chunks/{chunk.EJ4C4K46.js → chunk.UGIL6MAB.js} +6 -6
- package/dist/chunks/{chunk.UMTN2TU2.js → chunk.VFRZCASZ.js} +5 -5
- package/dist/chunks/{chunk.EHCS6X6N.js → chunk.VICINZOP.js} +5 -5
- package/dist/chunks/{chunk.3IVPV3E3.js → chunk.VJEHP5EP.js} +8 -8
- package/dist/chunks/{chunk.SFTF4XCD.js → chunk.VKNCN5RG.js} +22 -13
- package/dist/chunks/chunk.VKNCN5RG.js.map +7 -0
- package/dist/chunks/{chunk.7CRVMDW5.js → chunk.WMZ6JC2D.js} +2 -2
- package/dist/chunks/{chunk.DZZ3B5GF.js → chunk.WRF3RAGW.js} +97 -65
- package/dist/chunks/chunk.WRF3RAGW.js.map +7 -0
- package/dist/chunks/{chunk.6YPSMCHB.js → chunk.XBHOEMRR.js} +4 -4
- package/dist/chunks/{chunk.ZJFTAIAU.js → chunk.XWVTXL44.js} +2 -2
- package/dist/chunks/{chunk.XPTYP3S2.js → chunk.Y4ZGWTWO.js} +2 -2
- package/dist/chunks/{chunk.4TGDH4W7.js → chunk.YCEHUNIA.js} +8 -8
- package/dist/chunks/{chunk.OU4PLFYW.js → chunk.YKZHYCCH.js} +6 -6
- package/dist/chunks/{chunk.2GFK6XTO.js → chunk.Z4XV3SMG.js} +14 -1
- package/dist/components/accordion/accordion.component.js +8 -7
- package/dist/components/accordion/accordion.js +9 -8
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.component.js +16 -15
- package/dist/components/alert/alert.custom.styles.js +1 -1
- package/dist/components/alert/alert.js +17 -16
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +9 -8
- package/dist/components/badge/badge.custom.styles.js +1 -1
- package/dist/components/badge/badge.js +10 -9
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +9 -9
- package/dist/components/breadcrumb/breadcrumb.custom.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +10 -10
- package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +4 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.custom.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/dist/components/button/button.component.js +15 -14
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +16 -15
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.js +3 -3
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/button-group/button-group.styles.js +1 -1
- package/dist/components/card/card.component.js +3 -3
- package/dist/components/card/card.custom.styles.js +1 -1
- package/dist/components/card/card.js +4 -4
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/checkbox/checkbox.component.js +12 -11
- package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +13 -12
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/combobox/combobox.component.js +18 -17
- package/dist/components/combobox/combobox.custom.styles.js +1 -1
- package/dist/components/combobox/combobox.js +19 -18
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/combobox/option-renderer.js +1 -1
- package/dist/components/combobox/utils.js +1 -1
- package/dist/components/details/details.component.js +15 -14
- package/dist/components/details/details.custom.styles.js +1 -1
- package/dist/components/details/details.js +16 -15
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.js +18 -17
- package/dist/components/dialog/dialog.custom.styles.js +1 -1
- package/dist/components/dialog/dialog.js +19 -18
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/divider/divider.component.js +4 -4
- package/dist/components/divider/divider.custom.styles.js +1 -1
- package/dist/components/divider/divider.js +5 -5
- package/dist/components/divider/divider.styles.js +1 -1
- package/dist/components/drawer/drawer.component.d.ts +2 -0
- package/dist/components/drawer/drawer.component.js +18 -17
- package/dist/components/drawer/drawer.custom.styles.js +1 -1
- package/dist/components/drawer/drawer.js +19 -18
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.component.js +10 -10
- package/dist/components/dropdown/dropdown.custom.styles.js +1 -1
- package/dist/components/dropdown/dropdown.js +11 -11
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/file/file.component.js +18 -17
- package/dist/components/file/file.js +19 -18
- package/dist/components/file/file.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +2 -1
- package/dist/components/header/header.component.js +10 -10
- package/dist/components/header/header.js +11 -11
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icon/icon.component.js +6 -6
- package/dist/components/icon/icon.custom.styles.js +1 -1
- package/dist/components/icon/icon.js +7 -7
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.default.js +1 -1
- package/dist/components/icon/library.js +3 -3
- package/dist/components/icon/library.system.js +2 -2
- package/dist/components/icon-button/icon-button.component.js +11 -10
- package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
- package/dist/components/icon-button/icon-button.js +12 -11
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/formatter.d.ts +8 -0
- package/dist/components/input/formatter.js +8 -0
- package/dist/components/input/formatter.js.map +7 -0
- package/dist/components/input/input.component.d.ts +45 -0
- package/dist/components/input/input.component.js +16 -14
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +17 -15
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/input/strategies.d.ts +61 -0
- package/dist/components/input/strategies.js +12 -0
- package/dist/components/input/strategies.js.map +7 -0
- package/dist/components/menu/menu.component.js +3 -3
- package/dist/components/menu/menu.custom.styles.js +1 -1
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/menu/menu.styles.js +1 -1
- package/dist/components/menu-item/menu-item.component.js +11 -11
- package/dist/components/menu-item/menu-item.custom.styles.js +1 -1
- package/dist/components/menu-item/menu-item.js +12 -12
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-item/submenu-controller.js +1 -1
- package/dist/components/menu-label/menu-label.component.js +6 -6
- package/dist/components/menu-label/menu-label.custom.styles.js +1 -1
- package/dist/components/menu-label/menu-label.js +7 -7
- package/dist/components/menu-label/menu-label.styles.js +1 -1
- package/dist/components/nav-item/nav-item.component.js +5 -5
- package/dist/components/nav-item/nav-item.js +6 -6
- package/dist/components/nav-item/nav-item.styles.js +1 -1
- package/dist/components/optgroup/optgroup.component.js +5 -5
- package/dist/components/optgroup/optgroup.js +6 -6
- package/dist/components/optgroup/optgroup.styles.js +1 -1
- package/dist/components/option/option-size.styles.js +1 -1
- package/dist/components/option/option.component.js +9 -9
- package/dist/components/option/option.custom.styles.js +1 -1
- package/dist/components/option/option.js +10 -10
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/option/utility.js +1 -1
- package/dist/components/popup/popup.component.js +5 -5
- package/dist/components/popup/popup.js +6 -6
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.js +17 -17
- package/dist/components/prio-nav/prio-nav.js +18 -18
- package/dist/components/prio-nav/prio-nav.styles.js +1 -1
- package/dist/components/prio-nav/utils.js +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +5 -5
- package/dist/components/progress-bar/progress-bar.custom.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +6 -6
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.component.js +5 -5
- package/dist/components/progress-ring/progress-ring.custom.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.js +6 -6
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/radio/radio.component.js +11 -10
- package/dist/components/radio/radio.custom.styles.js +1 -1
- package/dist/components/radio/radio.js +12 -11
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.js +8 -7
- package/dist/components/radio-button/radio-button.js +9 -8
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +10 -9
- package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
- package/dist/components/radio-group/radio-group.js +11 -10
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.js +16 -15
- package/dist/components/range/range.js +17 -16
- package/dist/components/range/range.styles.js +1 -1
- package/dist/components/range/utility.js +1 -1
- package/dist/components/range-tick/range-tick.component.js +3 -3
- package/dist/components/range-tick/range-tick.js +4 -4
- package/dist/components/range-tick/range-tick.styles.js +1 -1
- package/dist/components/resize-observer/resize-observer.component.js +4 -4
- package/dist/components/resize-observer/resize-observer.styles.js +1 -1
- package/dist/components/select/select.component.js +19 -18
- package/dist/components/select/select.custom.styles.js +1 -1
- package/dist/components/select/select.js +20 -19
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/select/utility.js +1 -1
- package/dist/components/side-nav/side-nav.component.d.ts +58 -14
- package/dist/components/side-nav/side-nav.component.js +23 -20
- package/dist/components/side-nav/side-nav.js +24 -21
- package/dist/components/side-nav/side-nav.styles.js +2 -2
- package/dist/components/spinner/spinner.component.js +5 -5
- package/dist/components/spinner/spinner.custom.styles.js +1 -1
- package/dist/components/spinner/spinner.js +6 -6
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.js +9 -8
- package/dist/components/switch/switch.custom.styles.js +1 -1
- package/dist/components/switch/switch.js +10 -9
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.js +14 -13
- package/dist/components/tab/tab.custom.styles.js +1 -1
- package/dist/components/tab/tab.js +15 -14
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.component.js +15 -14
- package/dist/components/tab-group/tab-group.custom.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +16 -15
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +4 -4
- package/dist/components/tab-panel/tab-panel.custom.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.js +5 -5
- package/dist/components/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/tag/tag.component.js +14 -13
- package/dist/components/tag/tag.custom.styles.js +1 -1
- package/dist/components/tag/tag.js +15 -14
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.js +9 -8
- package/dist/components/textarea/textarea.custom.styles.js +1 -1
- package/dist/components/textarea/textarea.js +10 -9
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +9 -9
- package/dist/components/tooltip/tooltip.custom.styles.js +1 -1
- package/dist/components/tooltip/tooltip.js +10 -10
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/validate/utility.js +3 -3
- package/dist/components/validate/validate.component.js +18 -17
- package/dist/components/validate/validate.js +19 -18
- package/dist/components/validate/validate.styles.js +1 -1
- package/dist/custom-elements.json +186 -34
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-clamp.d.ts +16 -0
- package/dist/styles/index.css +1 -1
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy.js +158 -156
- package/dist/translations/de.js +5 -3
- package/dist/translations/de.js.map +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/utilities/animation-registry.js +2 -2
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/defaultSettings/base.d.ts +6 -1
- package/dist/utilities/defaultSettings/base.js +3 -2
- package/dist/utilities/defaultSettings/decorator.js +5 -4
- package/dist/utilities/defaultSettings/functions.js +4 -3
- package/dist/utilities/defaultSettings/index.js +5 -4
- package/dist/utilities/form.js +3 -3
- package/dist/utilities/icon-library.js +3 -3
- package/dist/utilities/localize.d.ts +2 -0
- package/dist/utilities/localize.js +3 -3
- package/dist/vscode.html-custom-data.json +33 -5
- package/package.json +4 -4
- package/dist/chunks/chunk.2LPH33ZQ.js.map +0 -7
- package/dist/chunks/chunk.BO7FAKBN.js.map +0 -7
- package/dist/chunks/chunk.DH5KSMJS.js.map +0 -7
- package/dist/chunks/chunk.DZZ3B5GF.js.map +0 -7
- package/dist/chunks/chunk.H3HTSQKK.js +0 -97
- package/dist/chunks/chunk.H3HTSQKK.js.map +0 -7
- package/dist/chunks/chunk.OH3PPVV4.js.map +0 -7
- package/dist/chunks/chunk.SFTF4XCD.js.map +0 -7
- /package/dist/chunks/{chunk.JDN6CDYL.js.map → chunk.25GVUTU4.js.map} +0 -0
- /package/dist/chunks/{chunk.2G7DZ3GJ.js.map → chunk.27L65BCF.js.map} +0 -0
- /package/dist/chunks/{chunk.MQZANITC.js.map → chunk.2DU5WR27.js.map} +0 -0
- /package/dist/chunks/{chunk.6IWBHFOD.js.map → chunk.2S2HN2DG.js.map} +0 -0
- /package/dist/chunks/{chunk.SMAOMVFZ.js.map → chunk.3KSZ45DK.js.map} +0 -0
- /package/dist/chunks/{chunk.RYNKWTQ6.js.map → chunk.3RF5SFKE.js.map} +0 -0
- /package/dist/chunks/{chunk.2EJ6TB2U.js.map → chunk.5RDKSWHY.js.map} +0 -0
- /package/dist/chunks/{chunk.JMBUWWA2.js.map → chunk.6IW6UFS5.js.map} +0 -0
- /package/dist/chunks/{chunk.KQQM2CWQ.js.map → chunk.77CM4WNK.js.map} +0 -0
- /package/dist/chunks/{chunk.HQ6QUSK7.js.map → chunk.7JGKUB4A.js.map} +0 -0
- /package/dist/chunks/{chunk.OBWURI5H.js.map → chunk.7TDMIG4V.js.map} +0 -0
- /package/dist/chunks/{chunk.HE2VZIBP.js.map → chunk.AB3VZ5EQ.js.map} +0 -0
- /package/dist/chunks/{chunk.3DUL2OP4.js.map → chunk.ACUIKTEY.js.map} +0 -0
- /package/dist/chunks/{chunk.ELFHYJLZ.js.map → chunk.AGK4R4ZV.js.map} +0 -0
- /package/dist/chunks/{chunk.2LYOMDFO.js.map → chunk.AYAX7BG7.js.map} +0 -0
- /package/dist/chunks/{chunk.YPSUFGKY.js.map → chunk.BNHQAKO6.js.map} +0 -0
- /package/dist/chunks/{chunk.EISTC2GP.js.map → chunk.BVEKHL6R.js.map} +0 -0
- /package/dist/chunks/{chunk.74IOULXM.js.map → chunk.BVZQ6QSY.js.map} +0 -0
- /package/dist/chunks/{chunk.UU7653PU.js.map → chunk.BXPKGVZZ.js.map} +0 -0
- /package/dist/chunks/{chunk.DX47WJSS.js.map → chunk.BY3QS7MP.js.map} +0 -0
- /package/dist/chunks/{chunk.RZG7IW73.js.map → chunk.C5SA7J6Q.js.map} +0 -0
- /package/dist/chunks/{chunk.JVSTXX5J.js.map → chunk.CD2K65PJ.js.map} +0 -0
- /package/dist/chunks/{chunk.6DPKNL3S.js.map → chunk.CQFPYSAF.js.map} +0 -0
- /package/dist/chunks/{chunk.4UOOTX72.js.map → chunk.D2ISHWZZ.js.map} +0 -0
- /package/dist/chunks/{chunk.EFO5BI6T.js.map → chunk.DXADIAFT.js.map} +0 -0
- /package/dist/chunks/{chunk.NUIJATJY.js.map → chunk.E5UUNP6E.js.map} +0 -0
- /package/dist/chunks/{chunk.4YG7EYB2.js.map → chunk.ERSMRSTV.js.map} +0 -0
- /package/dist/chunks/{chunk.TW3XHMG6.js.map → chunk.EXACNZQZ.js.map} +0 -0
- /package/dist/chunks/{chunk.XNHQJ4X7.js.map → chunk.FEVFKETA.js.map} +0 -0
- /package/dist/chunks/{chunk.XUFDCLB4.js.map → chunk.FFVIY2O3.js.map} +0 -0
- /package/dist/chunks/{chunk.QWSLKG3U.js.map → chunk.FNSMFPBM.js.map} +0 -0
- /package/dist/chunks/{chunk.JQDBNSFS.js.map → chunk.G66EQVXQ.js.map} +0 -0
- /package/dist/chunks/{chunk.A3OYJILJ.js.map → chunk.G6ITZTTW.js.map} +0 -0
- /package/dist/chunks/{chunk.JCIM6NE3.js.map → chunk.G76BKD7B.js.map} +0 -0
- /package/dist/chunks/{chunk.LC7FBSL4.js.map → chunk.GQKFJKSM.js.map} +0 -0
- /package/dist/chunks/{chunk.JTSBAJHO.js.map → chunk.HC4N72MX.js.map} +0 -0
- /package/dist/chunks/{chunk.OO6R7BWT.js.map → chunk.HEXQ5DSO.js.map} +0 -0
- /package/dist/chunks/{chunk.ZTFYI6ZI.js.map → chunk.HHBSJGPU.js.map} +0 -0
- /package/dist/chunks/{chunk.LLNE7YOD.js.map → chunk.HICOUAKU.js.map} +0 -0
- /package/dist/chunks/{chunk.6PCADVSN.js.map → chunk.HLRZCXQN.js.map} +0 -0
- /package/dist/chunks/{chunk.TBQSOTUS.js.map → chunk.HNKS3ZIU.js.map} +0 -0
- /package/dist/chunks/{chunk.DIV5RCIM.js.map → chunk.HNPPHRSN.js.map} +0 -0
- /package/dist/chunks/{chunk.OLRA37R5.js.map → chunk.HP2LEQRU.js.map} +0 -0
- /package/dist/chunks/{chunk.S5KXHITD.js.map → chunk.HZJ7FWRM.js.map} +0 -0
- /package/dist/chunks/{chunk.QPAYAMLZ.js.map → chunk.INRGTLJX.js.map} +0 -0
- /package/dist/chunks/{chunk.HFRXN2DK.js.map → chunk.IW72S7OZ.js.map} +0 -0
- /package/dist/chunks/{chunk.TZUQMH6X.js.map → chunk.J5JGYGWR.js.map} +0 -0
- /package/dist/chunks/{chunk.NB47QWRL.js.map → chunk.JGEZDRRE.js.map} +0 -0
- /package/dist/chunks/{chunk.PFSSGWUF.js.map → chunk.JMJO7VCO.js.map} +0 -0
- /package/dist/chunks/{chunk.22PGKUCU.js.map → chunk.KL546EBL.js.map} +0 -0
- /package/dist/chunks/{chunk.P3HQDPXQ.js.map → chunk.KMSUFVZK.js.map} +0 -0
- /package/dist/chunks/{chunk.3JXNFR6T.js.map → chunk.KQPO2RU5.js.map} +0 -0
- /package/dist/chunks/{chunk.XDWFPRPE.js.map → chunk.L7A52E3B.js.map} +0 -0
- /package/dist/chunks/{chunk.K7A64ZY7.js.map → chunk.LDZQIZHN.js.map} +0 -0
- /package/dist/chunks/{chunk.SKYSXSBE.js.map → chunk.LHLVVLIM.js.map} +0 -0
- /package/dist/chunks/{chunk.7RJUAC42.js.map → chunk.LI7WXEV6.js.map} +0 -0
- /package/dist/chunks/{chunk.DOIUTN5M.js.map → chunk.LYMD42B7.js.map} +0 -0
- /package/dist/chunks/{chunk.6DPMTGX6.js.map → chunk.MC5WHWBF.js.map} +0 -0
- /package/dist/chunks/{chunk.XJAGZG2W.js.map → chunk.MLMLTXOZ.js.map} +0 -0
- /package/dist/chunks/{chunk.6GBQX53P.js.map → chunk.MTN5NM4A.js.map} +0 -0
- /package/dist/chunks/{chunk.KJ5DXPFW.js.map → chunk.MVYXUHVS.js.map} +0 -0
- /package/dist/chunks/{chunk.JTSGQRUI.js.map → chunk.N47OHJ5U.js.map} +0 -0
- /package/dist/chunks/{chunk.OYFNERZO.js.map → chunk.NAJ7EYD2.js.map} +0 -0
- /package/dist/chunks/{chunk.FTFMQV75.js.map → chunk.NS3DHTOO.js.map} +0 -0
- /package/dist/chunks/{chunk.WTKBRIY4.js.map → chunk.O6KXOEJZ.js.map} +0 -0
- /package/dist/chunks/{chunk.YKQLG6R3.js.map → chunk.OBK7WMW2.js.map} +0 -0
- /package/dist/chunks/{chunk.B5BVIZ3W.js.map → chunk.OKJFZ7T2.js.map} +0 -0
- /package/dist/chunks/{chunk.CLTYOE3E.js.map → chunk.ONG2YZIJ.js.map} +0 -0
- /package/dist/chunks/{chunk.IRCX4RJL.js.map → chunk.OSPYBYAS.js.map} +0 -0
- /package/dist/chunks/{chunk.V2NAJIXY.js.map → chunk.PB2L4AWO.js.map} +0 -0
- /package/dist/chunks/{chunk.SUZPXB4O.js.map → chunk.POD3BDY6.js.map} +0 -0
- /package/dist/chunks/{chunk.NY2GAPA3.js.map → chunk.PYNYGKKB.js.map} +0 -0
- /package/dist/chunks/{chunk.PXXI4VRP.js.map → chunk.QFTB67TT.js.map} +0 -0
- /package/dist/chunks/{chunk.WHKWCNJR.js.map → chunk.QIZNAQEE.js.map} +0 -0
- /package/dist/chunks/{chunk.L6JQ4II4.js.map → chunk.QLJC3LVO.js.map} +0 -0
- /package/dist/chunks/{chunk.BC6YFGMY.js.map → chunk.R6IF6UUL.js.map} +0 -0
- /package/dist/chunks/{chunk.AAPLCFRS.js.map → chunk.R7UR6527.js.map} +0 -0
- /package/dist/chunks/{chunk.5XVVEHBO.js.map → chunk.RKRTMY5X.js.map} +0 -0
- /package/dist/chunks/{chunk.CITWLSAM.js.map → chunk.RVWB22MU.js.map} +0 -0
- /package/dist/chunks/{chunk.HLZPJC4B.js.map → chunk.S2OZHPTC.js.map} +0 -0
- /package/dist/chunks/{chunk.IY34DPIJ.js.map → chunk.SGWVV6WP.js.map} +0 -0
- /package/dist/chunks/{chunk.VQG4ENGK.js.map → chunk.SMGWT2BM.js.map} +0 -0
- /package/dist/chunks/{chunk.BMHMFPD4.js.map → chunk.STNQE2LY.js.map} +0 -0
- /package/dist/chunks/{chunk.DJHTOGW7.js.map → chunk.T2ENURIL.js.map} +0 -0
- /package/dist/chunks/{chunk.CELWLWZJ.js.map → chunk.T4JQJQYD.js.map} +0 -0
- /package/dist/chunks/{chunk.I7ZAFHZ3.js.map → chunk.TIIPIHTX.js.map} +0 -0
- /package/dist/chunks/{chunk.SRK6ZYCL.js.map → chunk.UAPJHMZJ.js.map} +0 -0
- /package/dist/chunks/{chunk.XUCEJ53P.js.map → chunk.UCJUUKMG.js.map} +0 -0
- /package/dist/chunks/{chunk.LOAB2FDA.js.map → chunk.UELDMVQY.js.map} +0 -0
- /package/dist/chunks/{chunk.EJ4C4K46.js.map → chunk.UGIL6MAB.js.map} +0 -0
- /package/dist/chunks/{chunk.UMTN2TU2.js.map → chunk.VFRZCASZ.js.map} +0 -0
- /package/dist/chunks/{chunk.EHCS6X6N.js.map → chunk.VICINZOP.js.map} +0 -0
- /package/dist/chunks/{chunk.3IVPV3E3.js.map → chunk.VJEHP5EP.js.map} +0 -0
- /package/dist/chunks/{chunk.7CRVMDW5.js.map → chunk.WMZ6JC2D.js.map} +0 -0
- /package/dist/chunks/{chunk.6YPSMCHB.js.map → chunk.XBHOEMRR.js.map} +0 -0
- /package/dist/chunks/{chunk.ZJFTAIAU.js.map → chunk.XWVTXL44.js.map} +0 -0
- /package/dist/chunks/{chunk.XPTYP3S2.js.map → chunk.Y4ZGWTWO.js.map} +0 -0
- /package/dist/chunks/{chunk.4TGDH4W7.js.map → chunk.YCEHUNIA.js.map} +0 -0
- /package/dist/chunks/{chunk.OU4PLFYW.js.map → chunk.YKZHYCCH.js.map} +0 -0
- /package/dist/chunks/{chunk.2GFK6XTO.js.map → chunk.Z4XV3SMG.js.map} +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
5
|
+
|
|
6
|
+
// src/components/input/formatter.ts
|
|
7
|
+
var formatNumber = (value, step, numberFormatterOptions = {}) => {
|
|
8
|
+
var _b;
|
|
9
|
+
const _a = numberFormatterOptions, {
|
|
10
|
+
maximumFractionDigits: providedMaxFractionDigits,
|
|
11
|
+
minimumFractionDigits: providedMinFractionDigits
|
|
12
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
13
|
+
"maximumFractionDigits",
|
|
14
|
+
"minimumFractionDigits"
|
|
15
|
+
]);
|
|
16
|
+
const stepToUse = step === "any" || !step ? 1 : +step;
|
|
17
|
+
const stepFractionDigits = ((_b = stepToUse.toString().split(".")[1]) == null ? void 0 : _b.length) || 0;
|
|
18
|
+
let minimumFractionDigits;
|
|
19
|
+
let maximumFractionDigits;
|
|
20
|
+
const minFractionIsNumber = typeof providedMinFractionDigits === "number";
|
|
21
|
+
const maxFractionIsNumber = typeof providedMaxFractionDigits === "number";
|
|
22
|
+
if (minFractionIsNumber && !maxFractionIsNumber) {
|
|
23
|
+
minimumFractionDigits = providedMinFractionDigits;
|
|
24
|
+
maximumFractionDigits = providedMinFractionDigits;
|
|
25
|
+
} else if (maxFractionIsNumber && !minFractionIsNumber) {
|
|
26
|
+
minimumFractionDigits = providedMaxFractionDigits;
|
|
27
|
+
maximumFractionDigits = providedMaxFractionDigits;
|
|
28
|
+
} else if (minFractionIsNumber && maxFractionIsNumber) {
|
|
29
|
+
minimumFractionDigits = Math.min(providedMinFractionDigits, providedMaxFractionDigits);
|
|
30
|
+
maximumFractionDigits = Math.max(providedMinFractionDigits, providedMaxFractionDigits);
|
|
31
|
+
}
|
|
32
|
+
if (stepFractionDigits > (minimumFractionDigits || 0)) {
|
|
33
|
+
minimumFractionDigits = stepFractionDigits;
|
|
34
|
+
}
|
|
35
|
+
if (stepFractionDigits > (maximumFractionDigits || 0)) {
|
|
36
|
+
maximumFractionDigits = stepFractionDigits;
|
|
37
|
+
}
|
|
38
|
+
if (typeof minimumFractionDigits !== "undefined" && minimumFractionDigits > 100) {
|
|
39
|
+
minimumFractionDigits = 100;
|
|
40
|
+
}
|
|
41
|
+
if (typeof maximumFractionDigits !== "undefined" && maximumFractionDigits > 100) {
|
|
42
|
+
maximumFractionDigits = 100;
|
|
43
|
+
}
|
|
44
|
+
const formatter = new Intl.NumberFormat("en-US", __spreadValues({
|
|
45
|
+
maximumFractionDigits,
|
|
46
|
+
minimumFractionDigits,
|
|
47
|
+
useGrouping: false
|
|
48
|
+
}, otherOptions));
|
|
49
|
+
return formatter.format(value);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
formatNumber
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=chunk.NFXT5LNY.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/input/formatter.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable complexity */\n/**\n * Formats a number using the Intl.NumberFormat API.\n * @param value The value to format\n * @param step The step value to use for formatting. Used if no minimumFractionDigits is provided.\n * @param numberFormatterOptions Additional parameters to pass to the number formatter.\n * @returns The formatted value\n */\nexport const formatNumber = (\n value: number,\n step: number | string | undefined,\n numberFormatterOptions: Intl.NumberFormatOptions = {},\n) => {\n const {\n maximumFractionDigits: providedMaxFractionDigits,\n minimumFractionDigits: providedMinFractionDigits,\n ...otherOptions\n } = numberFormatterOptions;\n\n // There may be times where the user sets something like this:\n // <syn-input min-fraction-digits=\"0\" step=\"0.3\">\n // In this case, we need to use the step value to determine the fraction digits\n // to use for the formatter.\n const stepToUse = step === 'any' || !step ? 1 : +step;\n const stepFractionDigits = stepToUse.toString().split('.')[1]?.length || 0;\n\n let minimumFractionDigits;\n let maximumFractionDigits;\n\n const minFractionIsNumber = typeof providedMinFractionDigits === 'number';\n const maxFractionIsNumber = typeof providedMaxFractionDigits === 'number';\n\n if (minFractionIsNumber && !maxFractionIsNumber) {\n // If only min is set, use the min both min and max\n minimumFractionDigits = providedMinFractionDigits;\n maximumFractionDigits = providedMinFractionDigits;\n } else if (maxFractionIsNumber && !minFractionIsNumber) {\n // If only max is set, use the max both min and max\n minimumFractionDigits = providedMaxFractionDigits;\n maximumFractionDigits = providedMaxFractionDigits;\n } else if (minFractionIsNumber && maxFractionIsNumber) {\n // If both are set, use the provided values, but make sure to sort them first\n minimumFractionDigits = Math.min(providedMinFractionDigits, providedMaxFractionDigits);\n maximumFractionDigits = Math.max(providedMinFractionDigits, providedMaxFractionDigits);\n }\n\n // Make sure to use the step fraction digits\n // if they are greater than the provided min or max values\n if (stepFractionDigits > (minimumFractionDigits || 0)) {\n minimumFractionDigits = stepFractionDigits;\n }\n if (stepFractionDigits > (maximumFractionDigits || 0)) {\n maximumFractionDigits = stepFractionDigits;\n }\n\n // min and max fraction digits have a hard cap of 100 decimal places\n // If provided a bigger value, the numberformat will throw an error.\n // Therefore, we make sure to cap the values to 100.\n // https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits\n if (typeof minimumFractionDigits !== 'undefined' && minimumFractionDigits > 100) {\n minimumFractionDigits = 100;\n }\n if (typeof maximumFractionDigits !== 'undefined' && maximumFractionDigits > 100) {\n maximumFractionDigits = 100;\n }\n\n const formatter = new Intl.NumberFormat('en-US', {\n maximumFractionDigits,\n minimumFractionDigits,\n useGrouping: false,\n ...otherOptions,\n });\n\n return formatter.format(value);\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;AAQO,IAAM,eAAe,CAC1B,OACA,MACA,yBAAmD,CAAC,MACjD;AAZL;AAaE,QAII,6BAHF;AAAA,2BAAuB;AAAA,IACvB,uBAAuB;AAAA,EAf3B,IAiBM,IADC,yBACD,IADC;AAAA,IAFH;AAAA,IACA;AAAA;AAQF,QAAM,YAAY,SAAS,SAAS,CAAC,OAAO,IAAI,CAAC;AACjD,QAAM,uBAAqB,eAAU,SAAS,EAAE,MAAM,GAAG,EAAE,CAAC,MAAjC,mBAAoC,WAAU;AAEzE,MAAI;AACJ,MAAI;AAEJ,QAAM,sBAAsB,OAAO,8BAA8B;AACjE,QAAM,sBAAsB,OAAO,8BAA8B;AAEjE,MAAI,uBAAuB,CAAC,qBAAqB;AAE/C,4BAAwB;AACxB,4BAAwB;AAAA,EAC1B,WAAW,uBAAuB,CAAC,qBAAqB;AAEtD,4BAAwB;AACxB,4BAAwB;AAAA,EAC1B,WAAW,uBAAuB,qBAAqB;AAErD,4BAAwB,KAAK,IAAI,2BAA2B,yBAAyB;AACrF,4BAAwB,KAAK,IAAI,2BAA2B,yBAAyB;AAAA,EACvF;AAIA,MAAI,sBAAsB,yBAAyB,IAAI;AACrD,4BAAwB;AAAA,EAC1B;AACA,MAAI,sBAAsB,yBAAyB,IAAI;AACrD,4BAAwB;AAAA,EAC1B;AAMA,MAAI,OAAO,0BAA0B,eAAe,wBAAwB,KAAK;AAC/E,4BAAwB;AAAA,EAC1B;AACA,MAAI,OAAO,0BAA0B,eAAe,wBAAwB,KAAK;AAC/E,4BAAwB;AAAA,EAC1B;AAEA,QAAM,YAAY,IAAI,KAAK,aAAa,SAAS;AAAA,IAC/C;AAAA,IACA;AAAA,IACA,aAAa;AAAA,KACV,aACJ;AAED,SAAO,UAAU,OAAO,KAAK;AAC/B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
} from "./chunk.SHCZO4KK.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.MVYXUHVS.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.WVVQK5TE.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
13
13
|
import {
|
|
14
14
|
component_styles_default
|
|
15
15
|
} from "./chunk.NLYVOJGK.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.DZJHHVOD.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
22
22
|
|
|
23
23
|
// src/components/nav-item/nav-item.component.ts
|
|
24
24
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -65,7 +65,7 @@ var SynNavItem = class extends SynergyElement {
|
|
|
65
65
|
}
|
|
66
66
|
handleCurrentMarkedChild() {
|
|
67
67
|
const sideNav = this.closest("syn-side-nav");
|
|
68
|
-
if (!this.open || !!(sideNav == null ? void 0 : sideNav.rail)) {
|
|
68
|
+
if (!this.open || !!((sideNav == null ? void 0 : sideNav.variant) === "rail")) {
|
|
69
69
|
this.currentMarkedChild = this.getAllNestedNavItems(this.childrenSlot).some((item) => item.current);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -126,17 +126,19 @@ var SynNavItem = class extends SynergyElement {
|
|
|
126
126
|
}
|
|
127
127
|
handleWidth(entries) {
|
|
128
128
|
entries.forEach((entry) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
129
|
+
requestAnimationFrame(() => {
|
|
130
|
+
if (entry.contentRect.width < 100) {
|
|
131
|
+
const hasPrefix = this.hasSlotController.test("prefix");
|
|
132
|
+
this.showPrefixOnly = hasPrefix;
|
|
133
|
+
} else {
|
|
134
|
+
this.showPrefixOnly = false;
|
|
135
|
+
}
|
|
136
|
+
if (entry.contentRect.height > 48) {
|
|
137
|
+
this.isMultiLine = true;
|
|
138
|
+
} else {
|
|
139
|
+
this.isMultiLine = false;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
140
142
|
});
|
|
141
143
|
}
|
|
142
144
|
handleHorizontalChange() {
|
|
@@ -196,7 +198,7 @@ var SynNavItem = class extends SynergyElement {
|
|
|
196
198
|
const isLink = this.isLink();
|
|
197
199
|
const isAccordion = this.isAccordion();
|
|
198
200
|
const sideNav = this.closest("syn-side-nav");
|
|
199
|
-
const showCurrentIndicatorForNested = this.currentMarkedChild && !this.open || this.currentMarkedChild && this.open && !!(sideNav == null ? void 0 : sideNav.rail) && !(sideNav == null ? void 0 : sideNav.open);
|
|
201
|
+
const showCurrentIndicatorForNested = this.currentMarkedChild && !this.open || this.currentMarkedChild && this.open && !!((sideNav == null ? void 0 : sideNav.variant) === "rail") && !(sideNav == null ? void 0 : sideNav.open);
|
|
200
202
|
let tag = literal`button`;
|
|
201
203
|
if (isAccordion) tag = literal`summary`;
|
|
202
204
|
else if (isLink) tag = literal`a`;
|
|
@@ -348,4 +350,4 @@ __decorateClass([
|
|
|
348
350
|
export {
|
|
349
351
|
SynNavItem
|
|
350
352
|
};
|
|
351
|
-
//# sourceMappingURL=chunk.
|
|
353
|
+
//# sourceMappingURL=chunk.NM7BI4LK.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/nav-item/nav-item.component.ts"],
|
|
4
|
+
"sourcesContent": ["import { classMap } from 'lit/directives/class-map.js';\nimport type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html, literal } from 'lit/static-html.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport SynDivider from '../divider/divider.component.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './nav-item.styles.js';\n\n/**\n * @summary Flexible button / link component that can be used to quickly build navigations.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-nav-item--docs\n * Takes one of 3 forms:\n * - button (default),\n * - link (overrides button if a 'href' is provided),\n * - or accordion (overrides all other if 'children' slot is defined).\n *\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n *\n * @event syn-show - Emitted when the navigation item:\n * - has children,\n * - and is clicked while HTML details are hidden.\n *\n * @event syn-hide - Emitted when the navigation item:\n * - has children,\n * - and is clicked while HTML details are shown.\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n *\n * @slot - The navigation item's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n * @slot children - Slot used to provide nested child navigation elements.\n * If provided, details and summary elements will be used.\n * A chevron will be shown on the right side regardless of the chevron property.\n *\n * @csspart base - The component's base wrapper including children.\n * @csspart children - The wrapper that holds the children\n * @csspart content-wrapper - The component's content wrapper.\n * @csspart content - The component's content excluding children.\n * @csspart current-indicator - The indicator used when current is set to true\n * @csspart chevron - The container that wraps the chevron.\n * @csspart details - The details element rendered when there are children available\n * @csspart divider - The components optional top divider.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n *\n * @cssproperty --indentation - Numeric value, indicating the level the item is placed at.\n * @cssproperty --indentation-stepping - The amount of pixels each level will indent.\n * @cssproperty --display-children - Display property of the children. Defaults to \"contents\"\n */\nexport default class SynNavItem extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-divider': SynDivider,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'children', 'prefix', 'suffix');\n\n private resizeObserver: ResizeObserver;\n\n private mutationObserver: MutationObserver;\n\n /**\n * The current focus state\n */\n @state() private hasFocus = false;\n\n /**\n * Only the prefix should be displayed\n */\n @state() private showPrefixOnly = false;\n\n /**\n * A nested nav-item is marked as current\n */\n @state() private currentMarkedChild = false;\n\n /**\n * The content area is multiline\n */\n @state() private isMultiLine = false;\n\n /**\n * Reference to the children slot\n */\n @query('slot[name=\"children\"]') childrenSlot: HTMLSlotElement;\n\n /**\n * Reference to the outermost button\n */\n @query('.nav-item') control: HTMLButtonElement | HTMLLinkElement | HTMLElement;\n\n /**\n * The navigation item's href target.\n * If provided, the navigation item will use an anchor tag otherwise it will use a button tag.\n *\n * If the 'children' slot is provided, the navigation item will ignore the 'href' and use\n * accordion behavior.\n */\n @property({ reflect: true, type: String }) href: string;\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.\n * Unlike regular links, the default is `noreferrer noopener` to prevent security exploits.\n *\n * However, if you're using `target` to point to a specific tab/window,\n * this will prevent that from working correctly.\n *\n * You can remove or change the default value by setting the attribute\n * to an empty string or a value of your choice, respectively.\n */\n @property() rel = 'noreferrer noopener';\n\n /*\n * Indicates that the navigation item is currently selected.\n * The aria-current attribute is set to \"page\" on the host if true.\n */\n @property({ reflect: true, type: Boolean }) current = false;\n\n /**\n * Disables the navigation item.\n */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /**\n * The navigation item's orientation.\n */\n @property({ reflect: true, type: Boolean }) horizontal = false;\n\n /**\n * Appends a chevron to the right side of a navigation item.\n * Only used if `horizontal` is false.\n */\n @property({ reflect: true, type: Boolean }) chevron = false;\n\n /**\n * Reflects HTML details element state and allows control from parent.\n * Only used if `horizontal` is false and `children` is defined.\n */\n @property({ reflect: true, type: Boolean }) open = false;\n\n /**\n * Toggle to true to show a divider above the element.\n * Only available when horizontal is false.\n */\n @property({ reflect: true, type: Boolean }) divider = false;\n\n private isButton(): boolean {\n return !this.href && !this.hasSlotController.test('children');\n }\n\n private isLink(): boolean {\n return !!this.href && !this.hasSlotController.test('children');\n }\n\n private isAccordion(): boolean {\n return this.hasSlotController.test('children');\n }\n\n // eslint-disable-next-line class-methods-use-this\n private getNavItemChildren(childrenSlot: HTMLSlotElement): SynNavItem[] {\n return Array.from(\n childrenSlot?.assignedElements({\n flatten: true,\n }) as HTMLElement[]\n || [],\n )\n .map(slottedElement => (slottedElement.tagName.toLowerCase() === 'syn-nav-item' ? slottedElement as SynNavItem : Array.from(slottedElement.querySelectorAll<SynNavItem>(':scope > syn-nav-item'))))\n .flat();\n }\n\n private getAllNestedNavItems(childrenSlot: HTMLSlotElement): SynNavItem[] {\n const allNavItems = this.getNavItemChildren(childrenSlot);\n\n const nestedNavItems = allNavItems\n .map(item => item.getAllNestedNavItems(item.childrenSlot))\n .flat();\n\n return allNavItems.concat(nestedNavItems);\n }\n\n private handleCurrentMarkedChild() {\n const sideNav = this.closest('syn-side-nav');\n\n if (!this.open || !!(sideNav?.variant === 'rail')) {\n this.currentMarkedChild = this\n .getAllNestedNavItems(this.childrenSlot)\n .some(item => item.current);\n }\n }\n\n private handleClickButton(e: MouseEvent) {\n if (this.disabled) {\n e.preventDefault();\n e.stopPropagation();\n }\n }\n\n private handleClickSummary(e: MouseEvent) {\n e.preventDefault();\n e.stopPropagation();\n\n if (this.disabled) return;\n\n if (this.open) {\n this.hideDetails();\n } else {\n this.showDetails();\n }\n }\n\n private hideDetails() {\n this.open = false;\n this.emit('syn-hide', {\n cancelable: true,\n });\n }\n\n private showDetails() {\n this.open = true;\n this.emit('syn-show', {\n cancelable: true,\n });\n }\n\n /**\n * Automatically add the correct level of indentation for sub items if none is provided\n */\n private handleSlotChange() {\n const computedStyle = getComputedStyle(this);\n const lengthStyle = computedStyle.length;\n\n // This workaround is needed for firefox.\n // When the nav-item is used inside a custom-element with a custom-element in it\n // (e.g syn-side-nav with integrated syn-drawer), the getComputedStyle property is not yet there\n // Moving it in the next render cycle works.\n // Probably related to the firefox special behavior. See: https://caniuse.com/mdn-api_window_getcomputedstyle\n if (lengthStyle === 0) {\n setTimeout(() => {\n this.handleSlotChange();\n });\n return;\n }\n\n this.handleCurrentMarkedChild();\n\n // Use the current level of the component\n const level = computedStyle.getPropertyValue('--indentation');\n\n // We allow at most 3 levels\n const nextLevel = Math.min(parseInt(level, 10) + 1, 2);\n\n this.getNavItemChildren(this.childrenSlot)\n .forEach(item => {\n item.style.setProperty('--indentation', nextLevel.toFixed(0));\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 handleWidth(entries: ResizeObserverEntry[]) {\n entries.forEach(entry => {\n // The \"requestAnimationFrame\" seems necessary for being able to test\n // <syn-side-nav variant=\"sticky\"/> without errors. Otherwise we get an \"ResizeObserver loop\n // completed with undelivered notifications.\" error in the test.\n // The resize observer callback retriggers a new nav-item render cycle, because of the\n // \"this.showPrefixOnly\". Via \"requestAnimationFrame\" we get rid of it. See also: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver#observation_errors\n requestAnimationFrame(() => {\n if (entry.contentRect.width < 100) {\n const hasPrefix = this.hasSlotController.test('prefix');\n this.showPrefixOnly = hasPrefix;\n } else {\n this.showPrefixOnly = false;\n }\n\n if (entry.contentRect.height > 48) {\n this.isMultiLine = true;\n } else {\n this.isMultiLine = false;\n }\n });\n });\n }\n\n // Make sure the resize observer is disconnected when the horizontal property is set to true\n // In this case we, never want it to use prefix only mode\n @watch('horizontal', { waitUntilFirstUpdate: true })\n handleHorizontalChange() {\n if (this.horizontal) {\n this.resizeObserver.disconnect();\n } else {\n this.resizeObserver.observe(this);\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver((entries) => this.handleWidth(entries));\n if (!this.horizontal) {\n this.resizeObserver.observe(this);\n }\n }\n\n firstUpdated(_changedProperties: PropertyValues) {\n super.firstUpdated(_changedProperties);\n this.mutationObserver = new MutationObserver(() => {\n if (this.childrenSlot) {\n this.handleCurrentMarkedChild();\n }\n });\n\n this.mutationObserver.observe(this, {\n attributeFilter: ['current', 'open'],\n childList: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver?.disconnect();\n this.mutationObserver?.disconnect();\n }\n\n /**\n * Removes focus from the button.\n */\n blur() {\n this.control.blur();\n }\n\n /**\n * Simulates a click on the nav-items button, link or summary.\n */\n click() {\n this.control.click();\n }\n\n /**\n * Sets focus on the nav-item\n */\n focus(options?: FocusOptions) {\n this.control.focus(options);\n }\n\n // eslint-disable-next-line complexity\n render() {\n const isButton = this.isButton();\n const isLink = this.isLink();\n const isAccordion = this.isAccordion();\n\n const sideNav = this.closest('syn-side-nav');\n\n const showCurrentIndicatorForNested = (this.currentMarkedChild && !this.open)\n || (this.currentMarkedChild && this.open && !!(sideNav?.variant === 'rail') && !sideNav?.open);\n\n // Defines the initial tag to use for the root component\n let tag = literal`button`;\n if (isAccordion) tag = literal`summary`;\n else if (isLink) tag = literal`a`;\n\n const hasChevron = (this.chevron || isAccordion) && !this.horizontal;\n\n // Define the click method to use\n let clickAction;\n if (isAccordion) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n clickAction = this.handleClickSummary;\n } else if (isButton) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n clickAction = this.handleClickButton;\n }\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable lit/binding-positions */\n /* eslint-disable @typescript-eslint/unbound-method */\n const root = html`\n <${tag}\n aria-controls=${ifDefined(isAccordion ? 'navigation-item-details' : undefined)}\n aria-current=${ifDefined(this.current ? 'page' : undefined)}\n aria-disabled=${this.disabled}\n @blur=${this.handleBlur}\n class=${classMap({\n 'nav-item': true,\n 'nav-item--current': this.current || showCurrentIndicatorForNested,\n 'nav-item--disabled': this.disabled,\n 'nav-item--focused': this.hasFocus,\n 'nav-item--has-content': this.hasSlotController.test('[default]'),\n 'nav-item--has-prefix': this.hasSlotController.test('prefix'),\n 'nav-item--has-suffix': this.hasSlotController.test('suffix'),\n 'nav-item--horizontal': this.horizontal,\n 'nav-item--is-link': isLink,\n 'nav-item--multi-line': this.isMultiLine,\n 'nav-item--show-prefix-only': this.showPrefixOnly,\n 'nav-item--vertical': !this.horizontal,\n 'nav-item-is-accordion': isAccordion,\n })}\n @click=${clickAction}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n @focus=${this.handleFocus}\n href=${ifDefined(isLink ? this.href : undefined)}\n part=\"base\"\n role=${isLink ? 'link' : 'button'}\n rel=${ifDefined(isLink ? this.rel : undefined)}\n tabindex=${this.disabled ? '-1' : '0'}\n target=${ifDefined(isLink ? this.target : undefined)}\n >\n\n ${this.divider && !this.horizontal\n ? html`<syn-divider class=\"divider\" part=\"divider\"></syn-divider>`\n : ''\n }\n\n <div class=\"nav-item__content\" part=\"content-wrapper\">\n <slot name=\"prefix\" part=\"prefix\" class=\"nav-item__prefix\"></slot>\n\n <div part=\"content-container\" class=\"nav-item__content-container\">\n <slot part=\"content\"></slot>\n </div>\n\n <slot name=\"suffix\" part=\"suffix\" class=\"nav-item__suffix\"></slot>\n\n ${hasChevron ? html`\n <syn-icon\n class=${classMap({\n 'nav-item__chevron': true,\n 'nav-item__chevron-open': this.open,\n })}\n color=\"currentColor\"\n library=\"system\"\n name=\"chevron-down\"\n part=\"chevron\"\n /></syn-icon>`\n : ''}\n\n <div\n class=${classMap({\n 'current-indicator': true,\n 'current-indicator--disabled': this.disabled,\n 'current-indicator--visible': this.current || showCurrentIndicatorForNested,\n })}\n part=\"current-indicator\"\n >\n </div>\n </div>\n\n </${tag}>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable lit/binding-positions */\n\n return isAccordion ? html`\n <details\n id=\"navigation-item-details\"\n ?open=${this.open}\n part=\"details\"\n >\n ${root}\n <slot\n class=\"children\"\n name=\"children\"\n part=\"children\"\n @slotchange=${this.handleSlotChange}\n ></slot>\n </details>\n ` : root;\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,gBAAgB;AAEzB,SAAS,MAAM,eAAe;AAC9B,SAAS,UAAU,OAAO,aAAa;AACvC,SAAS,iBAAiB;AAsD1B,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAAvD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,YAAY,UAAU,QAAQ;AASnG,SAAQ,WAAW;AAKnB,SAAQ,iBAAiB;AAKzB,SAAQ,qBAAqB;AAK7B,SAAQ,cAAc;AAkCnB,eAAM;AAM0B,mBAAU;AAKV,oBAAW;AAKX,sBAAa;AAMb,mBAAU;AAMV,gBAAO;AAMP,mBAAU;AAAA;AAAA,EAE9C,WAAoB;AAC1B,WAAO,CAAC,KAAK,QAAQ,CAAC,KAAK,kBAAkB,KAAK,UAAU;AAAA,EAC9D;AAAA,EAEQ,SAAkB;AACxB,WAAO,CAAC,CAAC,KAAK,QAAQ,CAAC,KAAK,kBAAkB,KAAK,UAAU;AAAA,EAC/D;AAAA,EAEQ,cAAuB;AAC7B,WAAO,KAAK,kBAAkB,KAAK,UAAU;AAAA,EAC/C;AAAA;AAAA,EAGQ,mBAAmB,cAA6C;AACtE,WAAO,MAAM;AAAA,OACX,6CAAc,iBAAiB;AAAA,QAC7B,SAAS;AAAA,MACX,OACG,CAAC;AA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AS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GAnGvB,WAmGyB;AAsJ5C;AAAA,EADC,MAAM,cAAc,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAxPhC,WAyPnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -7,36 +7,36 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
getDeepestActiveElement,
|
|
9
9
|
getTabbableBoundary
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.G76BKD7B.js";
|
|
11
11
|
import {
|
|
12
12
|
SynPopup
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.HICOUAKU.js";
|
|
14
14
|
import {
|
|
15
15
|
waitForEvent
|
|
16
16
|
} from "./chunk.C2ENQBPM.js";
|
|
17
17
|
import {
|
|
18
18
|
animateTo,
|
|
19
19
|
stopAnimations
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.G6ITZTTW.js";
|
|
21
21
|
import {
|
|
22
22
|
getAnimation,
|
|
23
23
|
setDefaultAnimation
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.7JGKUB4A.js";
|
|
25
25
|
import {
|
|
26
26
|
LocalizeController
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.IPGLY3H4.js";
|
|
28
28
|
import {
|
|
29
29
|
watch
|
|
30
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
31
31
|
import {
|
|
32
32
|
component_styles_default
|
|
33
33
|
} from "./chunk.NLYVOJGK.js";
|
|
34
34
|
import {
|
|
35
35
|
SynergyElement
|
|
36
|
-
} from "./chunk.
|
|
36
|
+
} from "./chunk.DZJHHVOD.js";
|
|
37
37
|
import {
|
|
38
38
|
__decorateClass
|
|
39
|
-
} from "./chunk.
|
|
39
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
40
40
|
|
|
41
41
|
// src/components/dropdown/dropdown.component.ts
|
|
42
42
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -385,4 +385,4 @@ setDefaultAnimation("dropdown.hide", {
|
|
|
385
385
|
export {
|
|
386
386
|
SynDropdown
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=chunk.
|
|
388
|
+
//# sourceMappingURL=chunk.NS3DHTOO.js.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk.WVVQK5TE.js";
|
|
7
7
|
import {
|
|
8
8
|
enableDefaultSettings
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.E5UUNP6E.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
13
13
|
import {
|
|
14
14
|
component_styles_default
|
|
15
15
|
} from "./chunk.NLYVOJGK.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.DZJHHVOD.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
22
22
|
|
|
23
23
|
// src/components/radio-button/radio-button.component.ts
|
|
24
24
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -138,4 +138,4 @@ SynRadioButton = __decorateClass([
|
|
|
138
138
|
export {
|
|
139
139
|
SynRadioButton
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk.
|
|
141
|
+
//# sourceMappingURL=chunk.O6KXOEJZ.js.map
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.DZJHHVOD.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
19
19
|
|
|
20
20
|
// src/components/card/card.component.ts
|
|
21
21
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -55,4 +55,4 @@ __decorateClass([
|
|
|
55
55
|
export {
|
|
56
56
|
SynCard
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk.
|
|
58
|
+
//# sourceMappingURL=chunk.OBK7WMW2.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getIconLibrary,
|
|
3
3
|
unwatchIcon,
|
|
4
4
|
watchIcon
|
|
5
|
-
} from "./chunk.
|
|
5
|
+
} from "./chunk.RVWB22MU.js";
|
|
6
6
|
import {
|
|
7
7
|
icon_custom_styles_default
|
|
8
8
|
} from "./chunk.PJO6TM3T.js";
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
} from "./chunk.ZBW4ZSZ7.js";
|
|
12
12
|
import {
|
|
13
13
|
watch
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
15
15
|
import {
|
|
16
16
|
component_styles_default
|
|
17
17
|
} from "./chunk.NLYVOJGK.js";
|
|
18
18
|
import {
|
|
19
19
|
SynergyElement
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.DZJHHVOD.js";
|
|
21
21
|
import {
|
|
22
22
|
__decorateClass
|
|
23
|
-
} from "./chunk.
|
|
23
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
24
24
|
|
|
25
25
|
// src/components/icon/icon.component.ts
|
|
26
26
|
import { html } from "lit";
|
|
@@ -191,4 +191,4 @@ __decorateClass([
|
|
|
191
191
|
export {
|
|
192
192
|
SynIcon
|
|
193
193
|
};
|
|
194
|
-
//# sourceMappingURL=chunk.
|
|
194
|
+
//# sourceMappingURL=chunk.OKJFZ7T2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAccordion
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VFRZCASZ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/accordion/accordion.ts
|
|
6
6
|
var accordion_default = SynAccordion;
|
|
@@ -9,4 +9,4 @@ SynAccordion.define("syn-accordion");
|
|
|
9
9
|
export {
|
|
10
10
|
accordion_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.ONG2YZIJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSelect
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EXACNZQZ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/select/select.ts
|
|
6
6
|
var select_default = SynSelect;
|
|
@@ -9,4 +9,4 @@ SynSelect.define("syn-select");
|
|
|
9
9
|
export {
|
|
10
10
|
select_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.OSPYBYAS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.J5JGYGWR.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.PB2L4AWO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDropdown
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NS3DHTOO.js";
|
|
4
4
|
|
|
5
5
|
// src/components/dropdown/dropdown.ts
|
|
6
6
|
var dropdown_default = SynDropdown;
|
|
@@ -9,4 +9,4 @@ SynDropdown.define("syn-dropdown");
|
|
|
9
9
|
export {
|
|
10
10
|
dropdown_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.POD3BDY6.js.map
|
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
} from "./chunk.EHSNF4SS.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.OKJFZ7T2.js";
|
|
10
10
|
import {
|
|
11
11
|
enableDefaultSettings
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.E5UUNP6E.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
16
16
|
import {
|
|
17
17
|
component_styles_default
|
|
18
18
|
} from "./chunk.NLYVOJGK.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.DZJHHVOD.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
25
25
|
|
|
26
26
|
// src/components/radio/radio.component.ts
|
|
27
27
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -120,4 +120,4 @@ SynRadio = __decorateClass([
|
|
|
120
120
|
export {
|
|
121
121
|
SynRadio
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=chunk.
|
|
123
|
+
//# sourceMappingURL=chunk.PYNYGKKB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynValidate
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.7TDMIG4V.js";
|
|
4
4
|
|
|
5
5
|
// src/components/validate/validate.ts
|
|
6
6
|
var validate_default = SynValidate;
|
|
@@ -9,4 +9,4 @@ SynValidate.define("syn-validate");
|
|
|
9
9
|
export {
|
|
10
10
|
validate_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.QFTB67TT.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
menu_label_custom_styles_default
|
|
3
|
-
} from "./chunk.X6GR6IA2.js";
|
|
4
1
|
import {
|
|
5
2
|
menu_label_styles_default
|
|
6
3
|
} from "./chunk.RAOPZXJL.js";
|
|
4
|
+
import {
|
|
5
|
+
menu_label_custom_styles_default
|
|
6
|
+
} from "./chunk.X6GR6IA2.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDivider
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.MVYXUHVS.js";
|
|
10
10
|
import {
|
|
11
11
|
component_styles_default
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.DZJHHVOD.js";
|
|
16
16
|
|
|
17
17
|
// src/components/menu-label/menu-label.component.ts
|
|
18
18
|
import { html } from "lit";
|
|
@@ -34,4 +34,4 @@ SynMenuLabel.dependencies = {
|
|
|
34
34
|
export {
|
|
35
35
|
SynMenuLabel
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk.
|
|
37
|
+
//# sourceMappingURL=chunk.QIZNAQEE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBreadcrumbItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.XBHOEMRR.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.QLJC3LVO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSwitch
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.UGIL6MAB.js";
|
|
4
4
|
|
|
5
5
|
// src/components/switch/switch.ts
|
|
6
6
|
var switch_default = SynSwitch;
|
|
@@ -9,4 +9,4 @@ SynSwitch.define("syn-switch");
|
|
|
9
9
|
export {
|
|
10
10
|
switch_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.R6IF6UUL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBreadcrumb
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.3RF5SFKE.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.R7UR6527.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadValues
|
|
3
|
+
} from "./chunk.Z4XV3SMG.js";
|
|
4
|
+
|
|
5
|
+
// src/components/input/strategies.ts
|
|
6
|
+
var nativeNumericStrategy = {
|
|
7
|
+
autoClamp: false,
|
|
8
|
+
noStepAlign: false,
|
|
9
|
+
noStepValidation: false
|
|
10
|
+
};
|
|
11
|
+
var modernNumericStrategy = {
|
|
12
|
+
autoClamp: true,
|
|
13
|
+
noStepAlign: true,
|
|
14
|
+
noStepValidation: true
|
|
15
|
+
};
|
|
16
|
+
var createNumericStrategy = (settings = {}) => __spreadValues(__spreadValues({}, nativeNumericStrategy), settings);
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
nativeNumericStrategy,
|
|
20
|
+
modernNumericStrategy,
|
|
21
|
+
createNumericStrategy
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=chunk.RB2JR2ND.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/input/strategies.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Defines the strategy that should be used for a numeric input.\n */\nexport type NumericStrategy = {\n /**\n * Clamp the inputs value to its min and max values when reaching it.\n *\n * When set to false, this will follow the HTML5 spec:\n * - Allows overflow of min and max via user input, but not spinners\n * - Will emit an invalid event\n * - Will emit an input event\n * - Will emit a change event\n *\n * When set to true, this will follow Synergy specs:\n * - Do not allow overflow of min and max via user input or spinners\n * - Will not emit an invalid event\n * - Will emit an input event\n * - Will emit a syn-clamp custom event\n * - Will emit a change event\n */\n autoClamp: boolean;\n\n /**\n * Controls if the stepper should use the **current value** as base.\n * This is useful when the -/+ step buttons are used to change a value.\n * Also includes handling of keyboard interactions.\n *\n * This works in the following way:\n * - **value**: 1.2\n * - **min**: 1\n * - **step**: 0.3\n *\n * 1. noStepAlign = true -> **1.5**\n * 2. noStepAlign = false -> **1.6**\n *\n * Note that this does not alter validation of the input!\n * A native html input will flag all values that are not aligned to the step as invalid!\n * See noStepValidation for more information.\n */\n noStepAlign: boolean;\n\n /**\n * Determines if an invalid event should be emitted when the stepping is invalid.\n * This is the default behavior of a native input.\n * Set to true to disable this behavior.\n */\n noStepValidation: boolean;\n};\n\n/**\n * Defines Synergies Version 2 default settings\n * inherited from Shoelace, which mimics the HTML5 standard\n */\nexport const nativeNumericStrategy: NumericStrategy = {\n autoClamp: false,\n noStepAlign: false,\n noStepValidation: false,\n};\n\n/**\n * Defines Synergies Version 3 default settings,\n * based on the feedback from the community.\n */\nexport const modernNumericStrategy: NumericStrategy = {\n autoClamp: true,\n noStepAlign: true,\n noStepValidation: true,\n};\n\n/**\n * Creates a new strategy object that can be used to override the default.\n * Will merge the default strategy with the provided settings.\n */\nexport const createNumericStrategy = (\n settings: Partial<NumericStrategy> = {},\n): NumericStrategy => ({\n ...nativeNumericStrategy,\n ...settings,\n});\n"],
|
|
5
|
+
"mappings": ";;;;;AAqDO,IAAM,wBAAyC;AAAA,EACpD,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBAAkB;AACpB;AAMO,IAAM,wBAAyC;AAAA,EACpD,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBAAkB;AACpB;AAMO,IAAM,wBAAwB,CACnC,WAAqC,CAAC,MACjB,kCAClB,wBACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTab
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.5RDKSWHY.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tab/tab.ts
|
|
6
6
|
var tab_default = SynTab;
|
|
@@ -9,4 +9,4 @@ SynTab.define("syn-tab");
|
|
|
9
9
|
export {
|
|
10
10
|
tab_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.RKRTMY5X.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.YTEJW7IF.js";
|
|
4
4
|
import {
|
|
5
5
|
library_system_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.57DU3E3Z.js";
|
|
7
7
|
|
|
8
8
|
// src/components/icon/library.ts
|
|
9
9
|
var registry = [library_default_default, library_system_default];
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
registerIconLibrary,
|
|
43
43
|
unregisterIconLibrary
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk.
|
|
45
|
+
//# sourceMappingURL=chunk.RVWB22MU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSideNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.WRF3RAGW.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.S2OZHPTC.js.map
|