@synergy-design-system/components 2.31.0-numeric.5 → 2.31.1
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.SEUBCFEG.js → chunk.2BPX7N5A.js} +2 -2
- package/dist/chunks/{chunk.Z4XV3SMG.js → chunk.2GFK6XTO.js} +1 -14
- package/dist/chunks/{chunk.AYAX7BG7.js → chunk.2LYOMDFO.js} +2 -2
- package/dist/chunks/{chunk.6SWND4BX.js → chunk.2TFU27NA.js} +2 -2
- package/dist/chunks/{chunk.QTRQ2H5E.js → chunk.2ZLTOKZD.js} +8 -8
- package/dist/chunks/{chunk.A6T6IEA7.js → chunk.4AUUQXOV.js} +2 -2
- package/dist/chunks/{chunk.G2XCUELF.js → chunk.4GD27HRW.js} +3 -3
- package/dist/chunks/{chunk.FX6CT2UF.js → chunk.4MFDZDGQ.js} +3 -3
- package/dist/chunks/{chunk.ZKNIJOU7.js → chunk.4PPBTCD5.js} +2 -2
- package/dist/chunks/{chunk.R33OWGOY.js → chunk.4WGFUMJG.js} +2 -2
- package/dist/chunks/{chunk.MDKOL7GY.js → chunk.53H7VH7O.js} +2 -2
- package/dist/chunks/{chunk.4K5RZADL.js → chunk.57O3GW6F.js} +4 -4
- package/dist/chunks/{chunk.6A45QTN5.js → chunk.5BNOHKBQ.js} +2 -2
- package/dist/chunks/{chunk.YYRRFZW4.js → chunk.5YDUYSLU.js} +2 -2
- package/dist/chunks/{chunk.A5MAJXBI.js → chunk.66TRD7RB.js} +7 -7
- package/dist/chunks/{chunk.MTN5NM4A.js → chunk.6GBQX53P.js} +2 -2
- package/dist/chunks/{chunk.Y6P7T3J7.js → chunk.6TZ2DFAZ.js} +2 -2
- package/dist/chunks/{chunk.DG5OBT7Z.js → chunk.6UPUUCTS.js} +2 -2
- package/dist/chunks/{chunk.IETD63PB.js → chunk.74EZT7OT.js} +2 -2
- package/dist/chunks/{chunk.BVZQ6QSY.js → chunk.74IOULXM.js} +2 -2
- package/dist/chunks/{chunk.CGB2C4BL.js → chunk.7WYASY7G.js} +4 -4
- package/dist/chunks/{chunk.G6ITZTTW.js → chunk.A3OYJILJ.js} +2 -2
- package/dist/chunks/{chunk.WNZCLWHO.js → chunk.AFSEH45S.js} +2 -2
- package/dist/chunks/{chunk.2BF6Y32P.js → chunk.ARA77UC2.js} +6 -6
- package/dist/chunks/{chunk.LYURPYYI.js → chunk.AXD3NMM5.js} +2 -2
- package/dist/chunks/{chunk.DJJYS7LP.js → chunk.B2K6WO7U.js} +11 -11
- package/dist/chunks/{chunk.KKT4XW5O.js → chunk.BFRV22TW.js} +2 -2
- package/dist/chunks/{chunk.Z2JN4ZK7.js → chunk.BM2VNDQB.js} +2 -2
- package/dist/chunks/{chunk.6FLYYWKO.js → chunk.BSZ4E3R4.js} +5 -5
- package/dist/chunks/{chunk.6X4ASJ3K.js → chunk.BUDFIDON.js} +2 -2
- package/dist/chunks/{chunk.DD5GEW7I.js → chunk.C37WAG5S.js} +6 -6
- package/dist/chunks/{chunk.7HUC2DRS.js → chunk.C3OEY3C3.js} +2 -2
- package/dist/chunks/{chunk.IJXTJKNY.js → chunk.C5HUAF7E.js} +5 -5
- package/dist/chunks/{chunk.ESFIDABC.js → chunk.CRHZY5XO.js} +2 -2
- package/dist/chunks/{chunk.7Q6OHXSG.js → chunk.D76KQXQ6.js} +4 -4
- package/dist/chunks/{chunk.WJ5OUS5S.js → chunk.DDI5MPRL.js} +2 -2
- package/dist/chunks/{chunk.PTK72NWY.js → chunk.E2LK6CZQ.js} +7 -7
- package/dist/chunks/{chunk.EO6BI4EJ.js → chunk.EXJFVNO7.js} +11 -11
- package/dist/chunks/{chunk.OCJGDUCU.js → chunk.F4PPYWD2.js} +2 -2
- package/dist/chunks/{chunk.2TY6RERE.js → chunk.F5J4LZRJ.js} +5 -5
- package/dist/chunks/{chunk.EB5JA47L.js → chunk.F6VSTKR4.js} +2 -2
- package/dist/chunks/{chunk.IDWIHA44.js → chunk.G43EW4MK.js} +2 -2
- package/dist/chunks/{chunk.BNME5APF.js → chunk.GPIHTDAN.js} +10 -216
- package/dist/chunks/chunk.GPIHTDAN.js.map +7 -0
- package/dist/chunks/{chunk.TG33LDYC.js → chunk.H6OFPF2U.js} +10 -10
- package/dist/chunks/{chunk.QYHBZNDN.js → chunk.HCFLTHY5.js} +2 -2
- package/dist/chunks/{chunk.7JGKUB4A.js → chunk.HQ6QUSK7.js} +2 -2
- package/dist/chunks/{chunk.R7F4SGC6.js → chunk.IFRYWN3D.js} +3 -3
- package/dist/chunks/{chunk.R7F4SGC6.js.map → chunk.IFRYWN3D.js.map} +1 -1
- package/dist/chunks/{chunk.3BH4DRYO.js → chunk.IHXL2BKO.js} +5 -5
- package/dist/chunks/{chunk.ELDUISZ5.js → chunk.ITOPC2EK.js} +2 -2
- package/dist/chunks/{chunk.OITADU65.js → chunk.IZ3YBEWP.js} +8 -8
- package/dist/chunks/{chunk.4YBBDL3O.js → chunk.J3UFKDWS.js} +5 -5
- package/dist/chunks/{chunk.BL4DAYDI.js → chunk.J6T6Y2LH.js} +3 -3
- package/dist/chunks/{chunk.G76BKD7B.js → chunk.JCIM6NE3.js} +2 -2
- package/dist/chunks/{chunk.5UKAMFXK.js → chunk.JTSBAJHO.js} +2 -2
- package/dist/chunks/{chunk.XTIF5QYD.js → chunk.KCWPOD5N.js} +2 -2
- package/dist/chunks/{chunk.OZWP35UB.js → chunk.LBAZSXTY.js} +2 -2
- package/dist/chunks/{chunk.L27QIMMT.js → chunk.LC74L3J4.js} +2 -2
- package/dist/chunks/{chunk.7OZC7I4Z.js → chunk.LXMXCA3A.js} +2 -2
- package/dist/chunks/{chunk.RLKF7OWU.js → chunk.MEU2VJRI.js} +2 -2
- package/dist/chunks/{chunk.CIAOIA3C.js → chunk.MIFSAMBD.js} +2 -2
- package/dist/chunks/{chunk.IPJW2R7K.js → chunk.N7HE4GWA.js} +8 -8
- package/dist/chunks/{chunk.ZFJ4OP3B.js → chunk.NIGNMNFF.js} +2 -2
- package/dist/chunks/{chunk.KFUASL6I.js → chunk.NUIJATJY.js} +3 -3
- package/dist/chunks/{chunk.W5Y5TX23.js → chunk.O72UJFII.js} +2 -2
- package/dist/chunks/{chunk.2G3Q6TJL.js → chunk.OCD5GCRS.js} +9 -9
- package/dist/chunks/{chunk.F4HR34MV.js → chunk.OH3PPVV4.js} +1 -11
- package/dist/chunks/chunk.OH3PPVV4.js.map +7 -0
- package/dist/chunks/{chunk.HP2LEQRU.js → chunk.OLRA37R5.js} +2 -2
- package/dist/chunks/{chunk.HHPNZ4O2.js → chunk.OQ6TRGBW.js} +7 -7
- package/dist/chunks/{chunk.F6Y6GVGO.js → chunk.OUUZOIRQ.js} +5 -5
- package/dist/chunks/{chunk.MSZEC2PK.js → chunk.OVJCBGVR.js} +2 -2
- package/dist/chunks/{chunk.KAAIIE2B.js → chunk.PIBXQKPW.js} +4 -4
- package/dist/chunks/{chunk.G7232IFR.js → chunk.PWZSMYSB.js} +7 -7
- package/dist/chunks/{chunk.MRAJINQW.js → chunk.PY3JF3U5.js} +2 -2
- package/dist/chunks/{chunk.6YGRM6TA.js → chunk.Q3YYZERE.js} +7 -7
- package/dist/chunks/{chunk.PJR23CJS.js → chunk.QBQPIJL7.js} +2 -2
- package/dist/chunks/{chunk.P7T4YU5N.js → chunk.QFHIRCPA.js} +2 -2
- package/dist/chunks/{chunk.BEX3KF6S.js → chunk.QS5XGTGM.js} +3 -3
- package/dist/chunks/{chunk.H6YONZB4.js → chunk.QZLUMB3K.js} +4 -4
- package/dist/chunks/{chunk.YMO2TQPK.js → chunk.R7YGKYQ3.js} +3 -3
- package/dist/chunks/{chunk.5CLZUEFG.js → chunk.RTKKOQ4K.js} +2 -2
- package/dist/chunks/{chunk.OEJQZND6.js → chunk.RXVYZJ7V.js} +2 -2
- package/dist/chunks/{chunk.HNTJ2CRC.js → chunk.S3U3H5YM.js} +6 -6
- package/dist/chunks/{chunk.N4MTHEEJ.js → chunk.S6G76KJP.js} +5 -5
- package/dist/chunks/{chunk.E6WHUAXV.js → chunk.T6HR57NS.js} +2 -2
- package/dist/chunks/{chunk.MYLI5XRY.js → chunk.TCKDCA72.js} +2 -2
- package/dist/chunks/{chunk.ZON5O6GD.js → chunk.TCP5IT3F.js} +10 -10
- package/dist/chunks/{chunk.45GWKAMF.js → chunk.TP6XWU37.js} +4 -4
- package/dist/chunks/{chunk.PXWTXZJ5.js → chunk.TZD6VAFM.js} +8 -8
- package/dist/chunks/{chunk.J5XJMTZU.js → chunk.UA5JN2HT.js} +2 -2
- package/dist/chunks/{chunk.BE72DAQC.js → chunk.UTTBWNVC.js} +2 -2
- package/dist/chunks/{chunk.UXONFE7Q.js → chunk.UZDYMCG5.js} +2 -2
- package/dist/chunks/{chunk.A5ENBOEY.js → chunk.V52DGYOQ.js} +23 -7
- package/dist/chunks/chunk.V52DGYOQ.js.map +7 -0
- package/dist/chunks/{chunk.2W6I5KD7.js → chunk.VACWERCC.js} +4 -4
- package/dist/chunks/{chunk.GPI6FESX.js → chunk.VAFUGCAL.js} +2 -2
- package/dist/chunks/{chunk.Y32MXTFD.js → chunk.VCVTS2XB.js} +3 -3
- package/dist/chunks/{chunk.HXO7ER5D.js → chunk.VJ4GSZSK.js} +8 -8
- package/dist/chunks/{chunk.GDXATFAO.js → chunk.VJ76QTIO.js} +3 -3
- package/dist/chunks/{chunk.FTEO6SJ3.js → chunk.VS3IUNIR.js} +6 -6
- package/dist/chunks/{chunk.STCTEP3X.js → chunk.W662K66T.js} +2 -2
- package/dist/chunks/{chunk.567XLVRW.js → chunk.W6LCOQGH.js} +8 -8
- package/dist/chunks/{chunk.JBDARIG4.js → chunk.WQHJNOCS.js} +2 -2
- package/dist/chunks/{chunk.7RVR5V7W.js → chunk.X2BJ2RWR.js} +7 -7
- package/dist/chunks/{chunk.FC2664JZ.js → chunk.XMDJPHX2.js} +4 -4
- package/dist/chunks/{chunk.FHBVRFSF.js → chunk.YOZVW5AL.js} +6 -6
- package/dist/chunks/{chunk.QZGAJII7.js → chunk.ZC2XDIU3.js} +2 -2
- package/dist/chunks/{chunk.SXDCXFTL.js → chunk.ZD664COV.js} +2 -2
- package/dist/components/accordion/accordion.component.js +7 -8
- package/dist/components/accordion/accordion.js +8 -9
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.component.js +11 -12
- package/dist/components/alert/alert.custom.styles.js +1 -1
- package/dist/components/alert/alert.js +12 -13
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +6 -7
- package/dist/components/badge/badge.custom.styles.js +1 -1
- package/dist/components/badge/badge.js +7 -8
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +5 -5
- package/dist/components/breadcrumb/breadcrumb.custom.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- 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 +10 -11
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +11 -12
- 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 +9 -10
- package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +10 -11
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/combobox/combobox.component.js +13 -14
- package/dist/components/combobox/combobox.custom.styles.js +1 -1
- package/dist/components/combobox/combobox.js +14 -15
- 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 +10 -11
- package/dist/components/details/details.custom.styles.js +1 -1
- package/dist/components/details/details.js +11 -12
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.js +13 -14
- package/dist/components/dialog/dialog.custom.styles.js +1 -1
- package/dist/components/dialog/dialog.js +14 -15
- 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.js +13 -14
- package/dist/components/drawer/drawer.custom.styles.js +1 -1
- package/dist/components/drawer/drawer.js +14 -15
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.component.js +8 -8
- package/dist/components/dropdown/dropdown.custom.styles.js +1 -1
- package/dist/components/dropdown/dropdown.js +9 -9
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/file/file.component.js +13 -14
- package/dist/components/file/file.js +14 -15
- package/dist/components/file/file.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +1 -0
- package/dist/components/header/header.component.js +6 -6
- package/dist/components/header/header.js +7 -7
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.custom.styles.js +1 -1
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.default.js +1 -1
- package/dist/components/icon/library.js +1 -1
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.js +8 -9
- package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
- package/dist/components/icon-button/icon-button.js +9 -10
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.component.d.ts +0 -45
- package/dist/components/input/input.component.js +10 -12
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +11 -13
- package/dist/components/input/input.styles.js +1 -1
- 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 +7 -7
- package/dist/components/menu-item/menu-item.custom.styles.js +1 -1
- package/dist/components/menu-item/menu-item.js +8 -8
- 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 +5 -5
- package/dist/components/option/option.custom.styles.js +1 -1
- package/dist/components/option/option.js +6 -6
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/option/utility.js +1 -1
- package/dist/components/popup/popup.component.js +3 -3
- package/dist/components/popup/popup.js +4 -4
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.js +13 -13
- package/dist/components/prio-nav/prio-nav.js +14 -14
- 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 +3 -3
- package/dist/components/progress-bar/progress-bar.custom.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +4 -4
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.component.js +3 -3
- package/dist/components/progress-ring/progress-ring.custom.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.js +4 -4
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/radio/radio.component.js +8 -9
- package/dist/components/radio/radio.custom.styles.js +1 -1
- package/dist/components/radio/radio.js +9 -10
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.js +7 -8
- package/dist/components/radio-button/radio-button.js +8 -9
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +9 -10
- package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
- package/dist/components/radio-group/radio-group.js +10 -11
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.js +13 -14
- package/dist/components/range/range.js +14 -15
- 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 +14 -15
- package/dist/components/select/select.custom.styles.js +1 -1
- package/dist/components/select/select.js +15 -16
- 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.js +15 -16
- package/dist/components/side-nav/side-nav.js +16 -17
- package/dist/components/side-nav/side-nav.styles.js +1 -1
- package/dist/components/spinner/spinner.component.js +3 -3
- package/dist/components/spinner/spinner.custom.styles.js +1 -1
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.js +8 -9
- package/dist/components/switch/switch.custom.styles.js +1 -1
- package/dist/components/switch/switch.js +9 -10
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.js +9 -10
- package/dist/components/tab/tab.custom.styles.js +1 -1
- package/dist/components/tab/tab.js +10 -11
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.component.js +10 -11
- package/dist/components/tab-group/tab-group.custom.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +11 -12
- 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 +9 -10
- package/dist/components/tag/tag.custom.styles.js +1 -1
- package/dist/components/tag/tag.js +10 -11
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.js +8 -9
- package/dist/components/textarea/textarea.custom.styles.js +1 -1
- package/dist/components/textarea/textarea.js +9 -10
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +7 -7
- package/dist/components/tooltip/tooltip.custom.styles.js +1 -1
- package/dist/components/tooltip/tooltip.js +8 -8
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/validate/utility.js +3 -3
- package/dist/components/validate/validate.component.js +13 -14
- package/dist/components/validate/validate.js +14 -15
- package/dist/components/validate/validate.styles.js +1 -1
- package/dist/custom-elements.json +440 -531
- package/dist/events/events.d.ts +0 -1
- package/dist/styles/index.css +1 -1
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy.js +160 -162
- package/dist/translations/de.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/utilities/animation-registry.js +2 -2
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/defaultSettings/base.d.ts +0 -3
- package/dist/utilities/defaultSettings/base.js +2 -3
- package/dist/utilities/defaultSettings/decorator.js +4 -5
- package/dist/utilities/defaultSettings/functions.js +3 -4
- package/dist/utilities/defaultSettings/index.js +4 -5
- package/dist/utilities/form.js +3 -3
- package/dist/utilities/icon-library.js +1 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +62 -81
- package/package.json +3 -3
- package/dist/chunks/chunk.A5ENBOEY.js.map +0 -7
- package/dist/chunks/chunk.BNME5APF.js.map +0 -7
- package/dist/chunks/chunk.F4HR34MV.js.map +0 -7
- package/dist/chunks/chunk.NFXT5LNY.js +0 -55
- package/dist/chunks/chunk.NFXT5LNY.js.map +0 -7
- package/dist/chunks/chunk.RB2JR2ND.js +0 -23
- package/dist/chunks/chunk.RB2JR2ND.js.map +0 -7
- package/dist/components/input/formatter.d.ts +0 -8
- package/dist/components/input/formatter.js +0 -8
- package/dist/components/input/formatter.js.map +0 -7
- package/dist/components/input/strategies.d.ts +0 -61
- package/dist/components/input/strategies.js +0 -12
- package/dist/components/input/strategies.js.map +0 -7
- package/dist/events/syn-clamp.d.ts +0 -16
- /package/dist/chunks/{chunk.SEUBCFEG.js.map → chunk.2BPX7N5A.js.map} +0 -0
- /package/dist/chunks/{chunk.Z4XV3SMG.js.map → chunk.2GFK6XTO.js.map} +0 -0
- /package/dist/chunks/{chunk.AYAX7BG7.js.map → chunk.2LYOMDFO.js.map} +0 -0
- /package/dist/chunks/{chunk.6SWND4BX.js.map → chunk.2TFU27NA.js.map} +0 -0
- /package/dist/chunks/{chunk.QTRQ2H5E.js.map → chunk.2ZLTOKZD.js.map} +0 -0
- /package/dist/chunks/{chunk.A6T6IEA7.js.map → chunk.4AUUQXOV.js.map} +0 -0
- /package/dist/chunks/{chunk.G2XCUELF.js.map → chunk.4GD27HRW.js.map} +0 -0
- /package/dist/chunks/{chunk.FX6CT2UF.js.map → chunk.4MFDZDGQ.js.map} +0 -0
- /package/dist/chunks/{chunk.ZKNIJOU7.js.map → chunk.4PPBTCD5.js.map} +0 -0
- /package/dist/chunks/{chunk.R33OWGOY.js.map → chunk.4WGFUMJG.js.map} +0 -0
- /package/dist/chunks/{chunk.MDKOL7GY.js.map → chunk.53H7VH7O.js.map} +0 -0
- /package/dist/chunks/{chunk.4K5RZADL.js.map → chunk.57O3GW6F.js.map} +0 -0
- /package/dist/chunks/{chunk.6A45QTN5.js.map → chunk.5BNOHKBQ.js.map} +0 -0
- /package/dist/chunks/{chunk.YYRRFZW4.js.map → chunk.5YDUYSLU.js.map} +0 -0
- /package/dist/chunks/{chunk.A5MAJXBI.js.map → chunk.66TRD7RB.js.map} +0 -0
- /package/dist/chunks/{chunk.MTN5NM4A.js.map → chunk.6GBQX53P.js.map} +0 -0
- /package/dist/chunks/{chunk.Y6P7T3J7.js.map → chunk.6TZ2DFAZ.js.map} +0 -0
- /package/dist/chunks/{chunk.DG5OBT7Z.js.map → chunk.6UPUUCTS.js.map} +0 -0
- /package/dist/chunks/{chunk.IETD63PB.js.map → chunk.74EZT7OT.js.map} +0 -0
- /package/dist/chunks/{chunk.BVZQ6QSY.js.map → chunk.74IOULXM.js.map} +0 -0
- /package/dist/chunks/{chunk.CGB2C4BL.js.map → chunk.7WYASY7G.js.map} +0 -0
- /package/dist/chunks/{chunk.G6ITZTTW.js.map → chunk.A3OYJILJ.js.map} +0 -0
- /package/dist/chunks/{chunk.WNZCLWHO.js.map → chunk.AFSEH45S.js.map} +0 -0
- /package/dist/chunks/{chunk.2BF6Y32P.js.map → chunk.ARA77UC2.js.map} +0 -0
- /package/dist/chunks/{chunk.LYURPYYI.js.map → chunk.AXD3NMM5.js.map} +0 -0
- /package/dist/chunks/{chunk.DJJYS7LP.js.map → chunk.B2K6WO7U.js.map} +0 -0
- /package/dist/chunks/{chunk.KKT4XW5O.js.map → chunk.BFRV22TW.js.map} +0 -0
- /package/dist/chunks/{chunk.Z2JN4ZK7.js.map → chunk.BM2VNDQB.js.map} +0 -0
- /package/dist/chunks/{chunk.6FLYYWKO.js.map → chunk.BSZ4E3R4.js.map} +0 -0
- /package/dist/chunks/{chunk.6X4ASJ3K.js.map → chunk.BUDFIDON.js.map} +0 -0
- /package/dist/chunks/{chunk.DD5GEW7I.js.map → chunk.C37WAG5S.js.map} +0 -0
- /package/dist/chunks/{chunk.7HUC2DRS.js.map → chunk.C3OEY3C3.js.map} +0 -0
- /package/dist/chunks/{chunk.IJXTJKNY.js.map → chunk.C5HUAF7E.js.map} +0 -0
- /package/dist/chunks/{chunk.ESFIDABC.js.map → chunk.CRHZY5XO.js.map} +0 -0
- /package/dist/chunks/{chunk.7Q6OHXSG.js.map → chunk.D76KQXQ6.js.map} +0 -0
- /package/dist/chunks/{chunk.WJ5OUS5S.js.map → chunk.DDI5MPRL.js.map} +0 -0
- /package/dist/chunks/{chunk.PTK72NWY.js.map → chunk.E2LK6CZQ.js.map} +0 -0
- /package/dist/chunks/{chunk.EO6BI4EJ.js.map → chunk.EXJFVNO7.js.map} +0 -0
- /package/dist/chunks/{chunk.OCJGDUCU.js.map → chunk.F4PPYWD2.js.map} +0 -0
- /package/dist/chunks/{chunk.2TY6RERE.js.map → chunk.F5J4LZRJ.js.map} +0 -0
- /package/dist/chunks/{chunk.EB5JA47L.js.map → chunk.F6VSTKR4.js.map} +0 -0
- /package/dist/chunks/{chunk.IDWIHA44.js.map → chunk.G43EW4MK.js.map} +0 -0
- /package/dist/chunks/{chunk.TG33LDYC.js.map → chunk.H6OFPF2U.js.map} +0 -0
- /package/dist/chunks/{chunk.QYHBZNDN.js.map → chunk.HCFLTHY5.js.map} +0 -0
- /package/dist/chunks/{chunk.7JGKUB4A.js.map → chunk.HQ6QUSK7.js.map} +0 -0
- /package/dist/chunks/{chunk.3BH4DRYO.js.map → chunk.IHXL2BKO.js.map} +0 -0
- /package/dist/chunks/{chunk.ELDUISZ5.js.map → chunk.ITOPC2EK.js.map} +0 -0
- /package/dist/chunks/{chunk.OITADU65.js.map → chunk.IZ3YBEWP.js.map} +0 -0
- /package/dist/chunks/{chunk.4YBBDL3O.js.map → chunk.J3UFKDWS.js.map} +0 -0
- /package/dist/chunks/{chunk.BL4DAYDI.js.map → chunk.J6T6Y2LH.js.map} +0 -0
- /package/dist/chunks/{chunk.G76BKD7B.js.map → chunk.JCIM6NE3.js.map} +0 -0
- /package/dist/chunks/{chunk.5UKAMFXK.js.map → chunk.JTSBAJHO.js.map} +0 -0
- /package/dist/chunks/{chunk.XTIF5QYD.js.map → chunk.KCWPOD5N.js.map} +0 -0
- /package/dist/chunks/{chunk.OZWP35UB.js.map → chunk.LBAZSXTY.js.map} +0 -0
- /package/dist/chunks/{chunk.L27QIMMT.js.map → chunk.LC74L3J4.js.map} +0 -0
- /package/dist/chunks/{chunk.7OZC7I4Z.js.map → chunk.LXMXCA3A.js.map} +0 -0
- /package/dist/chunks/{chunk.RLKF7OWU.js.map → chunk.MEU2VJRI.js.map} +0 -0
- /package/dist/chunks/{chunk.CIAOIA3C.js.map → chunk.MIFSAMBD.js.map} +0 -0
- /package/dist/chunks/{chunk.IPJW2R7K.js.map → chunk.N7HE4GWA.js.map} +0 -0
- /package/dist/chunks/{chunk.ZFJ4OP3B.js.map → chunk.NIGNMNFF.js.map} +0 -0
- /package/dist/chunks/{chunk.KFUASL6I.js.map → chunk.NUIJATJY.js.map} +0 -0
- /package/dist/chunks/{chunk.W5Y5TX23.js.map → chunk.O72UJFII.js.map} +0 -0
- /package/dist/chunks/{chunk.2G3Q6TJL.js.map → chunk.OCD5GCRS.js.map} +0 -0
- /package/dist/chunks/{chunk.HP2LEQRU.js.map → chunk.OLRA37R5.js.map} +0 -0
- /package/dist/chunks/{chunk.HHPNZ4O2.js.map → chunk.OQ6TRGBW.js.map} +0 -0
- /package/dist/chunks/{chunk.F6Y6GVGO.js.map → chunk.OUUZOIRQ.js.map} +0 -0
- /package/dist/chunks/{chunk.MSZEC2PK.js.map → chunk.OVJCBGVR.js.map} +0 -0
- /package/dist/chunks/{chunk.KAAIIE2B.js.map → chunk.PIBXQKPW.js.map} +0 -0
- /package/dist/chunks/{chunk.G7232IFR.js.map → chunk.PWZSMYSB.js.map} +0 -0
- /package/dist/chunks/{chunk.MRAJINQW.js.map → chunk.PY3JF3U5.js.map} +0 -0
- /package/dist/chunks/{chunk.6YGRM6TA.js.map → chunk.Q3YYZERE.js.map} +0 -0
- /package/dist/chunks/{chunk.PJR23CJS.js.map → chunk.QBQPIJL7.js.map} +0 -0
- /package/dist/chunks/{chunk.P7T4YU5N.js.map → chunk.QFHIRCPA.js.map} +0 -0
- /package/dist/chunks/{chunk.BEX3KF6S.js.map → chunk.QS5XGTGM.js.map} +0 -0
- /package/dist/chunks/{chunk.H6YONZB4.js.map → chunk.QZLUMB3K.js.map} +0 -0
- /package/dist/chunks/{chunk.YMO2TQPK.js.map → chunk.R7YGKYQ3.js.map} +0 -0
- /package/dist/chunks/{chunk.5CLZUEFG.js.map → chunk.RTKKOQ4K.js.map} +0 -0
- /package/dist/chunks/{chunk.OEJQZND6.js.map → chunk.RXVYZJ7V.js.map} +0 -0
- /package/dist/chunks/{chunk.HNTJ2CRC.js.map → chunk.S3U3H5YM.js.map} +0 -0
- /package/dist/chunks/{chunk.N4MTHEEJ.js.map → chunk.S6G76KJP.js.map} +0 -0
- /package/dist/chunks/{chunk.E6WHUAXV.js.map → chunk.T6HR57NS.js.map} +0 -0
- /package/dist/chunks/{chunk.MYLI5XRY.js.map → chunk.TCKDCA72.js.map} +0 -0
- /package/dist/chunks/{chunk.ZON5O6GD.js.map → chunk.TCP5IT3F.js.map} +0 -0
- /package/dist/chunks/{chunk.45GWKAMF.js.map → chunk.TP6XWU37.js.map} +0 -0
- /package/dist/chunks/{chunk.PXWTXZJ5.js.map → chunk.TZD6VAFM.js.map} +0 -0
- /package/dist/chunks/{chunk.J5XJMTZU.js.map → chunk.UA5JN2HT.js.map} +0 -0
- /package/dist/chunks/{chunk.BE72DAQC.js.map → chunk.UTTBWNVC.js.map} +0 -0
- /package/dist/chunks/{chunk.UXONFE7Q.js.map → chunk.UZDYMCG5.js.map} +0 -0
- /package/dist/chunks/{chunk.2W6I5KD7.js.map → chunk.VACWERCC.js.map} +0 -0
- /package/dist/chunks/{chunk.GPI6FESX.js.map → chunk.VAFUGCAL.js.map} +0 -0
- /package/dist/chunks/{chunk.Y32MXTFD.js.map → chunk.VCVTS2XB.js.map} +0 -0
- /package/dist/chunks/{chunk.HXO7ER5D.js.map → chunk.VJ4GSZSK.js.map} +0 -0
- /package/dist/chunks/{chunk.GDXATFAO.js.map → chunk.VJ76QTIO.js.map} +0 -0
- /package/dist/chunks/{chunk.FTEO6SJ3.js.map → chunk.VS3IUNIR.js.map} +0 -0
- /package/dist/chunks/{chunk.STCTEP3X.js.map → chunk.W662K66T.js.map} +0 -0
- /package/dist/chunks/{chunk.567XLVRW.js.map → chunk.W6LCOQGH.js.map} +0 -0
- /package/dist/chunks/{chunk.JBDARIG4.js.map → chunk.WQHJNOCS.js.map} +0 -0
- /package/dist/chunks/{chunk.7RVR5V7W.js.map → chunk.X2BJ2RWR.js.map} +0 -0
- /package/dist/chunks/{chunk.FC2664JZ.js.map → chunk.XMDJPHX2.js.map} +0 -0
- /package/dist/chunks/{chunk.FHBVRFSF.js.map → chunk.YOZVW5AL.js.map} +0 -0
- /package/dist/chunks/{chunk.QZGAJII7.js.map → chunk.ZC2XDIU3.js.map} +0 -0
- /package/dist/chunks/{chunk.SXDCXFTL.js.map → chunk.ZD664COV.js.map} +0 -0
|
@@ -67,6 +67,46 @@
|
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"name": "syn-badge",
|
|
72
|
+
"description": "Badges are used to draw attention and display statuses or counts.\n---\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
73
|
+
"attributes": [
|
|
74
|
+
{
|
|
75
|
+
"name": "variant",
|
|
76
|
+
"description": "The badge's theme variant.",
|
|
77
|
+
"values": [
|
|
78
|
+
{ "name": "primary" },
|
|
79
|
+
{ "name": "success" },
|
|
80
|
+
{ "name": "neutral" },
|
|
81
|
+
{ "name": "warning" },
|
|
82
|
+
{ "name": "danger" }
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"references": [
|
|
87
|
+
{
|
|
88
|
+
"name": "Documentation",
|
|
89
|
+
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-badge--docs"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "syn-breadcrumb",
|
|
95
|
+
"description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n---\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with `<syn-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
96
|
+
"attributes": [
|
|
97
|
+
{
|
|
98
|
+
"name": "label",
|
|
99
|
+
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
100
|
+
"values": []
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"references": [
|
|
104
|
+
{
|
|
105
|
+
"name": "Documentation",
|
|
106
|
+
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-breadcrumb--docs"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
70
110
|
{
|
|
71
111
|
"name": "syn-breadcrumb-item",
|
|
72
112
|
"description": "Breadcrumb Items are used inside [breadcrumbs](/components/breadcrumb) to represent different links.\n---\n\n\n### **Slots:**\n - _default_ - The breadcrumb item's label.\n- **prefix** - An optional prefix, usually an icon or icon button.\n- **suffix** - An optional suffix, usually an icon or icon button.\n- **separator** - The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on `<syn-breadcrumb>` instead.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label** - The breadcrumb item's label.\n- **prefix** - The container that wraps the prefix.\n- **suffix** - The container that wraps the suffix.\n- **separator** - The container that wraps the separator.",
|
|
@@ -228,46 +268,6 @@
|
|
|
228
268
|
}
|
|
229
269
|
]
|
|
230
270
|
},
|
|
231
|
-
{
|
|
232
|
-
"name": "syn-breadcrumb",
|
|
233
|
-
"description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n---\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with `<syn-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
234
|
-
"attributes": [
|
|
235
|
-
{
|
|
236
|
-
"name": "label",
|
|
237
|
-
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
238
|
-
"values": []
|
|
239
|
-
}
|
|
240
|
-
],
|
|
241
|
-
"references": [
|
|
242
|
-
{
|
|
243
|
-
"name": "Documentation",
|
|
244
|
-
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-breadcrumb--docs"
|
|
245
|
-
}
|
|
246
|
-
]
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"name": "syn-badge",
|
|
250
|
-
"description": "Badges are used to draw attention and display statuses or counts.\n---\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
251
|
-
"attributes": [
|
|
252
|
-
{
|
|
253
|
-
"name": "variant",
|
|
254
|
-
"description": "The badge's theme variant.",
|
|
255
|
-
"values": [
|
|
256
|
-
{ "name": "primary" },
|
|
257
|
-
{ "name": "success" },
|
|
258
|
-
{ "name": "neutral" },
|
|
259
|
-
{ "name": "warning" },
|
|
260
|
-
{ "name": "danger" }
|
|
261
|
-
]
|
|
262
|
-
}
|
|
263
|
-
],
|
|
264
|
-
"references": [
|
|
265
|
-
{
|
|
266
|
-
"name": "Documentation",
|
|
267
|
-
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-badge--docs"
|
|
268
|
-
}
|
|
269
|
-
]
|
|
270
|
-
},
|
|
271
271
|
{
|
|
272
272
|
"name": "syn-button-group",
|
|
273
273
|
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -878,7 +878,7 @@
|
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
880
|
"name": "syn-input",
|
|
881
|
-
"description": "Inputs collect data from the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-clear** - Emitted when the clear button is activated.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n
|
|
881
|
+
"description": "Inputs collect data from the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-clear** - Emitted when the clear button is activated.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **showPicker()** - Displays the browser picker for an input element (only works if the browser supports it for the input type).\n- **stepUp()** - Increments the value of a numeric input type by the value of the step attribute.\n- **stepDown()** - Decrements the value of a numeric input type by the value of the step attribute.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n- **increment-number-stepper** - An icon to use in lieu of the default increment number stepper icon.\n- **decrement-number-stepper** - An icon to use in lieu of the default decrement number stepper icon.\n\n### **CSS Properties:**\n - **--syn-input-autofill-shadow** - The shadow to apply when the input is autofilled. _(default: undefined)_\n- **--syn-input-autofill-readonly-shadow** - The shadow to apply when the input is readonly and autofilled. _(default: undefined)_\n- **--syn-input-autofill-text-fill-color** - The text fill color to apply when the input is autofilled. _(default: undefined)_\n- **--syn-input-autofill-caret-color** - The caret color to apply when the input is autofilled. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.\n- **stepper** - The container that wraps the number stepper.\n- **decrement-number-stepper** - The decrement number stepper button.\n- **increment-number-stepper** - The increment number stepper button.\n- **divider** - The divider between the increment and decrement number stepper buttons.",
|
|
882
882
|
"attributes": [
|
|
883
883
|
{ "name": "title", "values": [] },
|
|
884
884
|
{
|
|
@@ -1060,25 +1060,6 @@
|
|
|
1060
1060
|
{ "name": "email" },
|
|
1061
1061
|
{ "name": "url" }
|
|
1062
1062
|
]
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
"name": "min-fraction-digits",
|
|
1066
|
-
"description": "The minimal amount of fraction digits to use for numeric values.\nUsed to format the number when the input type is `number`.",
|
|
1067
|
-
"values": []
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
"name": "max-fraction-digits",
|
|
1071
|
-
"description": "The maximal amount of fraction digits to use for numeric values.\nUsed to format the number when the input type is `number`.",
|
|
1072
|
-
"values": []
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
"name": "numeric-strategy",
|
|
1076
|
-
"description": "Defines the strategy for handling numbers in the numeric input.\nThis is used to determine how the input behaves when the user interacts with it.\n\nIncludes the following configuration options:\n\n- **autoClamp**: If true, the input will clamp the value to the min and max attributes.\n- **noStepAlign**: If true, the input will not align the value to the step attribute.\n- **noStepValidation**: If true, the input will not validate the value against the step attribute.\n\nYou may provide this as one of the following values:\n\n- 'native': Uses the native browser implementation.\n- 'modern': Uses a more intuitive implementation:\n - Values are clamped to the nearest min or max value.\n - Stepping is inclusive to the provided min and max values.\n - Provided stepping is no longer used in validation.\n- An object that matches the `NumericStrategy` type. Note this can only be set via `property`, not as an `attribute`!",
|
|
1077
|
-
"values": [
|
|
1078
|
-
{ "name": "native" },
|
|
1079
|
-
{ "name": "modern" },
|
|
1080
|
-
{ "name": "Partial<NumericStrategy>" }
|
|
1081
|
-
]
|
|
1082
1063
|
}
|
|
1083
1064
|
],
|
|
1084
1065
|
"references": [
|
|
@@ -1657,36 +1638,36 @@
|
|
|
1657
1638
|
]
|
|
1658
1639
|
},
|
|
1659
1640
|
{
|
|
1660
|
-
"name": "syn-
|
|
1661
|
-
"description": "
|
|
1641
|
+
"name": "syn-range-tick",
|
|
1642
|
+
"description": "Ticks visually improve positioning on range sliders.\n---\n\n\n### **Slots:**\n - _default_ - The tick's label\n\n### **CSS Properties:**\n - **--tick-height** - The height of the tick marker. _(default: undefined)_\n- **--tick-label-top** - The top offset of the tick label. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label** - The component's label.\n- **line** - The component's tick line.",
|
|
1662
1643
|
"attributes": [
|
|
1663
1644
|
{
|
|
1664
|
-
"name": "
|
|
1665
|
-
"description": "
|
|
1645
|
+
"name": "subdivision",
|
|
1646
|
+
"description": "Whether the tick should be shown as a subdivision.",
|
|
1666
1647
|
"values": []
|
|
1667
1648
|
}
|
|
1668
1649
|
],
|
|
1669
1650
|
"references": [
|
|
1670
1651
|
{
|
|
1671
1652
|
"name": "Documentation",
|
|
1672
|
-
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-
|
|
1653
|
+
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-range-tick--docs"
|
|
1673
1654
|
}
|
|
1674
1655
|
]
|
|
1675
1656
|
},
|
|
1676
1657
|
{
|
|
1677
|
-
"name": "syn-
|
|
1678
|
-
"description": "
|
|
1658
|
+
"name": "syn-resize-observer",
|
|
1659
|
+
"description": "The Resize Observer component offers a thin, declarative interface to the [`ResizeObserver API`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver).\n---\n\n\n### **Events:**\n - **syn-resize** - Emitted when the element is resized.\n\n### **Slots:**\n - _default_ - One or more elements to watch for resizing.",
|
|
1679
1660
|
"attributes": [
|
|
1680
1661
|
{
|
|
1681
|
-
"name": "
|
|
1682
|
-
"description": "
|
|
1662
|
+
"name": "disabled",
|
|
1663
|
+
"description": "Disables the observer.",
|
|
1683
1664
|
"values": []
|
|
1684
1665
|
}
|
|
1685
1666
|
],
|
|
1686
1667
|
"references": [
|
|
1687
1668
|
{
|
|
1688
1669
|
"name": "Documentation",
|
|
1689
|
-
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-
|
|
1670
|
+
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-resize-observer--docs"
|
|
1690
1671
|
}
|
|
1691
1672
|
]
|
|
1692
1673
|
},
|
|
@@ -1794,17 +1775,6 @@
|
|
|
1794
1775
|
}
|
|
1795
1776
|
]
|
|
1796
1777
|
},
|
|
1797
|
-
{
|
|
1798
|
-
"name": "syn-spinner",
|
|
1799
|
-
"description": "Spinners are used to show the progress of an indeterminate operation.\n---\n\n\n### **CSS Properties:**\n - **--track-width** - The width of the track. _(default: undefined)_\n- **--indicator-color** - The color of the spinner's indicator. _(default: undefined)_\n- **--speed** - The time it takes for the spinner to complete one animation cycle. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1800
|
-
"attributes": [],
|
|
1801
|
-
"references": [
|
|
1802
|
-
{
|
|
1803
|
-
"name": "Documentation",
|
|
1804
|
-
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-spinner--docs"
|
|
1805
|
-
}
|
|
1806
|
-
]
|
|
1807
|
-
},
|
|
1808
1778
|
{
|
|
1809
1779
|
"name": "syn-side-nav",
|
|
1810
1780
|
"description": "The <syn-side-nav /> element contains secondary navigation and fits below the header.\nIt can be used to group multiple navigation items (<syn-nav-item />s) together.\n---\n\n\n### **Events:**\n - **syn-show** - Emitted when the side-nav opens.\n- **syn-after-show** - Emitted after the side-nav opens and all animations are complete.\n- **syn-hide** - Emitted when the side-nav closes.\n- **syn-after-hide** - Emitted after the side-nav closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the side-nav.\n- **hide()** - Hides the side-nav\n\n### **Slots:**\n - _default_ - The main content of the side-nav. Used for <syn-nav-item /> elements.\n- **footer** - The footer content of the side-nav. Used for <syn-nav-item /> elements. Please avoid having to many nav-items as it can massively influence the user experience.\n\n### **CSS Properties:**\n - **--side-nav-open-width** - The width of the side-nav if in open state _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The components base wrapper\n- **drawer** - The drawer that is used under the hood for creating the side-nav\n- **content-container** - The components main content container\n- **content** - The components main content\n- **footer-container** - The components footer content container (where the footer slot content is rendered)\n- **footer-divider** - The components footer divider\n- **footer** - The components footer content\n- **overlay** - The overlay that covers the screen behind the side-nav.\n- **panel** - The side-nav's panel (where the whole content is rendered).\n- **body** - The side-nav's body (where the default slot content is rendered)\n- **drawer__base** - The drawer's base wrapper",
|
|
@@ -1832,6 +1802,17 @@
|
|
|
1832
1802
|
}
|
|
1833
1803
|
]
|
|
1834
1804
|
},
|
|
1805
|
+
{
|
|
1806
|
+
"name": "syn-spinner",
|
|
1807
|
+
"description": "Spinners are used to show the progress of an indeterminate operation.\n---\n\n\n### **CSS Properties:**\n - **--track-width** - The width of the track. _(default: undefined)_\n- **--indicator-color** - The color of the spinner's indicator. _(default: undefined)_\n- **--speed** - The time it takes for the spinner to complete one animation cycle. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1808
|
+
"attributes": [],
|
|
1809
|
+
"references": [
|
|
1810
|
+
{
|
|
1811
|
+
"name": "Documentation",
|
|
1812
|
+
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-spinner--docs"
|
|
1813
|
+
}
|
|
1814
|
+
]
|
|
1815
|
+
},
|
|
1835
1816
|
{
|
|
1836
1817
|
"name": "syn-switch",
|
|
1837
1818
|
"description": "Switches allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when the control's checked state changes.\n- **syn-input** - Emitted when the control receives input.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the switch.\n- **focus(options: _FocusOptions_)** - Sets focus on the switch.\n- **blur()** - Removes focus from the switch.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The switch's label.\n- **help-text** - Text that describes how to use the switch. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--width** - The width of the switch. _(default: undefined)_\n- **--height** - The height of the switch. _(default: undefined)_\n- **--thumb-size** - The size of the thumb. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The control that houses the switch's thumb.\n- **thumb** - The switch's thumb.\n- **label** - The switch's label.\n- **form-control-help-text** - The help text's wrapper.",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"name": "@synergy-design-system/components",
|
|
7
|
-
"version": "2.31.
|
|
7
|
+
"version": "2.31.1",
|
|
8
8
|
"description": "",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"unist-util-visit": "^5.0.0",
|
|
101
101
|
"user-agent-data-types": "^0.4.2",
|
|
102
102
|
"vendorism": "^5.0.0",
|
|
103
|
+
"@synergy-design-system/stylelint-config-syn": "0.1.0",
|
|
103
104
|
"@synergy-design-system/tokens": "2.18.1",
|
|
104
|
-
"@synergy-design-system/eslint-config-syn": "0.1.0"
|
|
105
|
-
"@synergy-design-system/stylelint-config-syn": "0.1.0"
|
|
105
|
+
"@synergy-design-system/eslint-config-syn": "0.1.0"
|
|
106
106
|
},
|
|
107
107
|
"release": {
|
|
108
108
|
"branches": [
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/header/header.component.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit/static-html.js';\nimport { property, state } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './header.styles.js';\nimport SynIcon from '../icon/icon.js';\nimport type SynSideNav from '../side-nav/side-nav.component.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { watch } from '../../internal/watch.js';\n\n/**\n * @summary The <syn-header /> element provides a generic application header\n * that can be used to add applications name, toolbar and primary navigation.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-header--docs\n * @status stable\n * @since 1.10.0\n *\n * @slot label - The label for the header\n * @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided\n * @slot meta-navigation - The meta-navigation is used to add various application toolbar icons\n * Best used with `<syn-icon-button />` and `<syn-drop-down />`\n * @slot navigation - This slot can be used to add an optional horizontal navigation\n * @slot open-burger-menu-icon - An icon to use in lieu of the default burger-menu=open state.\n * The default close icon is a 'x'.\n * @slot closed-burger-menu-icon - An icon to use in lieu of the default burger-menu=closed state.\n * The default open icon is a burger menu.\n *\n * @event syn-burger-menu-closed - Emitted when the burger menu is toggled to closed\n * @event syn-burger-menu-hidden - Emitted when the burger menu is toggled to hidden\n * @event syn-burger-menu-open - Emitted when the burger menu is toggled to open\n *\n * @csspart base - The component's base wrapper\n * @csspart content - The wrapper most content items reside\n * @csspart logo - The wrapper the application logo resides in\n * @csspart label - The element wrapping the application name\n * @csspart meta-navigation - The Item wrapping the optional application menu\n * @csspart navigation - The wrapper that is holding the optional top navigation section\n * @csspart burger-menu-toggle-button - The button that toggles the burger menu\n */\nexport default class SynHeader extends SynergyElement {\n static styles: CSSResultGroup = [\n componentStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-icon': SynIcon,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'logo', 'label', 'meta-navigation', 'navigation');\n\n private readonly localize = new LocalizeController(this);\n\n /**\n * Internal mutation observer\n */\n private mutationObserver: MutationObserver;\n\n /**\n * The headers label. If you need to display HTML, use the `label` slot instead.\n */\n @property() label = '';\n\n /**\n * Defines the current visibility and icon of the burger-menu icon.\n * The menu button is added automatically if the component finds a syn-side-nav in non-rail mode.\n * The following values can be used:\n * - hidden: The burger menu is not visible\n * - open: The burger menu is visible and shows the close icon\n * - closed: The burger menu is visible and shows the open icon\n */\n @property({ attribute: 'burger-menu', reflect: true }) burgerMenu: 'hidden' | 'open' | 'closed' = 'hidden';\n\n /**\n * The side nav\n */\n @state() private sideNav: SynSideNav | null;\n\n private toggleBurgerMenu() {\n switch (this.burgerMenu) {\n case 'closed': this.burgerMenu = 'open'; break;\n case 'open': this.burgerMenu = 'closed'; break;\n default: break;\n }\n }\n\n private handleBurgerMenuToggle() {\n // If there is a side-nav in non-rail mode, toggle the open state!\n if (this.sideNav && !this.sideNav.rail) {\n this.sideNav.open = !this.sideNav.open;\n }\n this.toggleBurgerMenu();\n }\n\n /**\n * Automatically update the burger menu icon based\n * on the state of the side-nav, if one is connected.\n */\n private updateBurgerMenuBasedOnSideNav() {\n if (this.sideNav) {\n // Hide the burger menu icon if the side-nav is in rail mode\n if (this.sideNav.rail) {\n this.burgerMenu = 'hidden';\n } else {\n this.burgerMenu = this.sideNav.open ? 'open' : 'closed';\n }\n }\n }\n\n @watch('burgerMenu', { waitUntilFirstUpdate: true })\n handleBurgerMenu() {\n const myEvt: keyof GlobalEventHandlersEventMap = `syn-burger-menu-${this.burgerMenu}`;\n this.emit(myEvt);\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n this.mutationObserver = new MutationObserver(() => this.updateBurgerMenuBasedOnSideNav());\n }\n\n firstUpdated() {\n // Search for a side-nav and use the first found in case of the connectSideNavigation method\n // is not used by the user.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n const sideNav = document.querySelector('syn-side-nav');\n this.connectSideNavigation(sideNav);\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // Remove observer\n this.mutationObserver.disconnect();\n }\n\n /**\n * Connect a `syn-side-nav` to add automatic interaction of the header with the side navigation\n * like showing the burger menu icon and open / close handling.\n *\n * If no side navigation is connected, the header will use the first `syn-side-nav` element it\n * finds.\n *\n * @param sideNav The side navigation to connect to the header\n */\n connectSideNavigation(sideNav: SynSideNav | null) {\n this.mutationObserver.disconnect();\n\n this.sideNav = sideNav || document.querySelector('syn-side-nav');\n if (this.sideNav) {\n // Need to call the method initially, if the side-nav is not open on connect time.\n // Otherwise the mutation observer won`t trigger the method.\n this.updateBurgerMenuBasedOnSideNav();\n this.mutationObserver.observe(this.sideNav, { attributeFilter: ['open', 'rail'], attributes: true });\n }\n }\n\n render() {\n const hasNavigation = this.hasSlotController.test('navigation');\n const showBurgerMenu = this.burgerMenu !== 'hidden';\n return html`\n <header\n class=${classMap({\n header: true,\n 'header--has-burger-menu': showBurgerMenu,\n 'header--has-navigation': hasNavigation,\n })}\n part=\"base\"\n >\n <!-- .header__content -->\n <div part=\"content\" class=\"header__content\">\n\n ${showBurgerMenu\n ? html`\n <button\n aria-label=${this.localize.term(this.burgerMenu === 'closed' ? 'openMenu' : 'closeMenu')}\n class=\"header__burger-menu-toggle\"\n @click=${this.handleBurgerMenuToggle}\n part=\"burger-menu-toggle-button\"\n type=\"button\"\n >\n ${this.burgerMenu === 'open'\n ? html`\n <slot name=\"open-burger-menu-icon\">\n <syn-icon name=\"x-lg\" library=\"system\"></syn-icon>\n </slot>\n `\n : html`\n <slot name=\"closed-burger-menu-icon\">\n <syn-icon name=\"menu\" library=\"system\"></syn-icon>\n </slot>\n `}\n </button>\n `\n : ''}\n\n <div part=\"logo\" class=\"header__logo\">\n <slot name=\"logo\">\n <syn-icon name=\"logo-color\" library=\"system\" label=\"SICK Sensor Intelligence\"></syn-icon>\n </slot>\n </div>\n\n <div part=\"label\" class=\"header__label\">\n <slot name=\"label\">\n ${this.label}\n </slot>\n </div>\n\n <div part=\"meta-navigation\" class=\"header__meta-navigation\">\n <slot name=\"meta-navigation\"></slot>\n </div>\n </div>\n <!-- /.header__content -->\n\n <div part=\"navigation\" class=\"header__navigation\">\n <slot name=\"navigation\"></slot>\n </div>\n </header>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACr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,MAAM;AAAA,GArCY,UAqCF;AAkCjB;AAAA,EADC,MAAM,cAAc,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAtEhC,UAuEnB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/input/input.component.ts", "../../src/internal/longpress.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 { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.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 formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynDivider from '../divider/divider.component.js';\nimport { longPress } from '../../internal/longpress.js';\nimport styles from './input.styles.js';\nimport customStyles from './input.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport {\n type NumericStrategy,\n createNumericStrategy,\n nativeNumericStrategy,\n modernNumericStrategy,\n} from './strategies.js';\nimport { formatNumber } from './formatter.js';\nimport type { SynClampDetails } from '../../events/syn-clamp.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-input--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-divider\n *\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n * @slot increment-number-stepper - An icon to use in lieu of the default increment number stepper icon.\n * @slot decrement-number-stepper - An icon to use in lieu of the default decrement number stepper icon.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n * @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart stepper - The container that wraps the number stepper.\n * @csspart decrement-number-stepper - The decrement number stepper button.\n * @csspart increment-number-stepper - The increment number stepper button.\n * @csspart divider - The divider between the increment and decrement number stepper buttons.\n *\n * @cssproperty --syn-input-autofill-shadow - The shadow to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-readonly-shadow - The shadow to apply when the input is readonly and autofilled.\n * @cssproperty --syn-input-autofill-text-fill-color - The text fill color to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-caret-color - The caret color to apply when the input is autofilled.\n */\n@enableDefaultSettings('SynInput')\nexport default class SynInput extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n static dependencies = {\n\t\t'syn-icon': SynIcon,\n\t\t'syn-divider': SynDivider\n\t};\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input']\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label', 'prefix', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('.input__control') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n @property({ reflect: true }) title = ''; // make reactive to pass through\n\n private __numberInput = Object.assign(document.createElement('input'), { type: 'number' });\n private __dateInput = Object.assign(document.createElement('input'), { type: 'date' });\n\n /**\n * The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\n * to `text`.\n */\n @property({ reflect: true }) type:\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url' = 'text';\n\n /** The name of the input, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the input, submitted as a name/value pair with form data. */\n @property() value = '';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** The input's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The input's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The input's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Adds a clear button when the input is not empty. */\n @property({ type: Boolean }) clearable = false;\n\n /** Disables the input. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Placeholder text to show as a hint when the input is empty. */\n @property() placeholder = '';\n\n /** Makes the input readonly. */\n @property({ type: Boolean, reflect: true }) readonly = false;\n\n /** Adds a button to toggle the password's visibility. Only applies to password types. */\n @property({ attribute: 'password-toggle', type: Boolean }) passwordToggle = false;\n\n /** Determines whether or not the password is currently visible. Only applies to password input types. */\n @property({ attribute: 'password-visible', type: Boolean }) passwordVisible = false;\n\n /** Hides the increment/decrement spin buttons for number inputs. */\n @property({ attribute: 'no-spin-buttons', type: Boolean }) noSpinButtons = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the input a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** A regular expression pattern to validate input against. */\n @property() pattern: string;\n\n /** The minimum length of input that will be considered valid. */\n @property({ type: Number }) minlength: number;\n\n /** The maximum length of input that will be considered valid. */\n @property({ type: Number }) maxlength: number;\n\n /** The input's minimum value. Only applies to date and number input types. */\n @property() min: number | string;\n\n /** The input's maximum value. Only applies to date and number input types. */\n @property() max: number | string;\n\n /**\n * Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is\n * implied, allowing any numeric value. Only applies to date and number input types.\n */\n @property() step: number | 'any';\n\n /** Controls whether and how text input is automatically capitalized as it is entered by the user. */\n @property() autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';\n\n /** Indicates whether the browser's autocorrect feature is on or off. */\n @property() autocorrect: 'off' | 'on';\n\n /**\n * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.\n */\n @property() autocomplete: string;\n\n /** Indicates that the input should receive focus on page load. */\n @property({ type: Boolean }) autofocus: boolean;\n\n /** Used to customize the label or icon of the Enter key on virtual keyboards. */\n @property() enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n\n /** Enables spell checking on the input. */\n @property({\n type: Boolean,\n converter: {\n // Allow \"true|false\" attribute values but keep the property boolean\n fromAttribute: value => (!value || value === 'false' ? false : true),\n toAttribute: value => (value ? 'true' : 'false')\n }\n })\n spellcheck = true;\n\n /**\n * Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\n * keyboard on supportive devices.\n */\n @property() inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n\n /**\n * Optional options that should be passed to the `NumberFormatter` when formatting the value.\n * This is used to format the number when the input type is `number`.\n * Note this can only be set via `property`, not as an `attribute`!\n */\n @property({\n attribute: false,\n reflect: false,\n type: Object,\n }) numberFormatterOptions: Intl.NumberFormatOptions;\n\n /**\n * The minimal amount of fraction digits to use for numeric values.\n * Used to format the number when the input type is `number`.\n */\n @property({\n attribute: 'min-fraction-digits',\n type: Number,\n }) minFractionDigits: number;\n\n /**\n * The maximal amount of fraction digits to use for numeric values.\n * Used to format the number when the input type is `number`.\n */\n @property({\n attribute: 'max-fraction-digits',\n type: Number,\n }) maxFractionDigits: number;\n\n #numericStrategy: NumericStrategy = nativeNumericStrategy;\n\n /**\n * Defines the strategy for handling numbers in the numeric input.\n * This is used to determine how the input behaves when the user interacts with it.\n *\n * Includes the following configuration options:\n *\n * - **autoClamp**: If true, the input will clamp the value to the min and max attributes.\n * - **noStepAlign**: If true, the input will not align the value to the step attribute.\n * - **noStepValidation**: If true, the input will not validate the value against the step attribute.\n * \n * You may provide this as one of the following values:\n *\n * - 'native': Uses the native browser implementation.\n * - 'modern': Uses a more intuitive implementation:\n * - Values are clamped to the nearest min or max value.\n * - Stepping is inclusive to the provided min and max values.\n * - Provided stepping is no longer used in validation.\n * - An object that matches the `NumericStrategy` type. Note this can only be set via `property`, not as an `attribute`!\n */\n @property({\n attribute: 'numeric-strategy',\n converter: {\n fromAttribute: (value) => {\n return value === 'modern'\n ? modernNumericStrategy\n : nativeNumericStrategy;\n },\n },\n type: Object,\n })\n set numericStrategy(value: 'native' | 'modern' | Partial<NumericStrategy>) {\n switch (typeof value) {\n case 'string': this.#numericStrategy = value === 'modern' ? modernNumericStrategy : nativeNumericStrategy; break;\n case 'object': this.#numericStrategy = createNumericStrategy(value); break;\n default: this.#numericStrategy = nativeNumericStrategy;\n }\n }\n\n /**\n * @default nativeNumericStrategy\n * @todo: This must be changed to \"modern\" in Synergy@3\n */\n get numericStrategy(): 'native' | 'modern' | Partial<NumericStrategy> {\n return this.#numericStrategy;\n }\n\n //\n // NOTE: We use an in-memory input for these getters/setters instead of the one in the template because the properties\n // can be set before the component is rendered.\n //\n\n /**\n * Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. This will use the native `<input type=\"{{type}}\">` implementation and may result in an error.\n */\n get valueAsDate() {\n this.__dateInput.type = this.type;\n this.__dateInput.value = this.value;\n return this.input?.valueAsDate || this.__dateInput.valueAsDate;\n }\n\n set valueAsDate(newValue: Date | null) {\n this.__dateInput.type = this.type;\n this.__dateInput.valueAsDate = newValue;\n this.value = this.__dateInput.value;\n }\n\n /** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */\n get valueAsNumber() {\n this.__numberInput.value = this.value;\n return this.input?.valueAsNumber || this.__numberInput.valueAsNumber;\n }\n\n set valueAsNumber(newValue: number) {\n this.__numberInput.valueAsNumber = newValue;\n this.value = this.__numberInput.value;\n }\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleStep(){\n this.handleInput();\n this.input.focus();\n }\n\n private handleStepUp() {\n this.stepUp();\n this.handleStep();\n }\n\n private handleStepDown() {\n this.stepDown();\n this.handleStep();\n }\n \n private isDecrementDisabled() {\n if(this.disabled || this.readonly) {\n return true;\n }\n\n if (this.min === undefined || this.min === null) {\n return false;\n }\n\n const min = typeof this.min === 'string' ? parseFloat(this.min) : this.min;\n return this.valueAsNumber <= min;\n }\n\n private isIncrementDisabled() {\n if(this.disabled || this.readonly) {\n return true;\n }\n\n if (this.max === undefined || this.max === null) {\n return false;\n }\n\n const max = typeof this.max === 'string' ? parseFloat(this.max) : this.max;\n return this.valueAsNumber >= max;\n }\n\n \n private handleNumericStrategyAutoClamp() {\n const {\n valueAsNumber,\n max: initialMax,\n min: initialMin,\n } = this;\n\n // Exit early if there should be no clamping\n if (!this.#numericStrategy.autoClamp) {\n return {\n eventObj: null,\n shouldClamp: false,\n nextValue: valueAsNumber,\n }\n }\n\n const min = typeof initialMin === 'string' ? parseFloat(initialMin) : initialMin;\n const max = typeof initialMax === 'string' ? parseFloat(initialMax) : initialMax;\n\n let nextValue = valueAsNumber;\n let clampEvent = '';\n if (nextValue < min) {\n nextValue = min;\n clampEvent = 'min';\n } else if (nextValue > max) {\n nextValue = max;\n clampEvent = 'max';\n }\n\n const eventObj = clampEvent ? {\n detail: {\n clampedTo: clampEvent as SynClampDetails['clampedTo'],\n lastUserValue: valueAsNumber,\n },\n } : null;\n\n return {\n eventObj,\n shouldClamp: !!eventObj,\n nextValue,\n };\n }\n\n private handleChange() {\n if (this.type === 'number' && (this.#isNumberFormattingEnabled() || this.#numericStrategy.autoClamp)) {\n const { eventObj, shouldClamp, nextValue } = this.handleNumericStrategyAutoClamp();\n let initialNextValue = this.#numericStrategy.autoClamp ? nextValue : this.valueAsNumber;\n\n // Make sure to flag non numeric values as invalid\n if (isNaN(initialNextValue)) {\n // Make sure to set the value to the min or max value if the input is empty\n // If neither min nor max are set, we set the value to 0\n const { max, min } = this;\n\n if (max !== undefined && max !== null) {\n initialNextValue = typeof max === 'string' ? parseFloat(max) : +max;\n } else if (min !== undefined && min !== null) {\n initialNextValue = typeof min === 'string' ? parseFloat(min) : +min;\n } else {\n initialNextValue = 0;\n }\n }\n\n this.value = this.#isNumberFormattingEnabled()\n ? this.#formatNumber(initialNextValue)\n : initialNextValue.toString();\n\n // Make sure to wait for the updateComplete to be done before updating the validity\n // and firing events. This is needed because valueAsNumber is not updated yet when the event is fired\n this.updateComplete.then(() => {\n\n if (shouldClamp && eventObj) {\n this.emit('syn-clamp', eventObj);\n }\n\n this.formControlController.updateValidity();\n this.emit('syn-change');\n });\n return;\n }\n this.value = this.input.value;\n this.emit('syn-change');\n }\n\n private handleClearClick(event: MouseEvent) {\n event.preventDefault();\n\n if (this.value !== '') {\n this.value = '';\n this.emit('syn-clear');\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n this.input.focus();\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleInput() {\n this.value = this.input.value;\n this.formControlController.updateValidity();\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.#numericStrategy.noStepAlign && this.type === 'number') {\n const { key } = event;\n if (key === 'ArrowUp' || key === 'ArrowDown') {\n event.preventDefault();\n event.stopPropagation();\n\n if (key === 'ArrowUp') {\n this.handleStepUp();\n } else if (key === 'ArrowDown') {\n this.handleStepDown();\n }\n this.handleChange();\n return;\n }\n }\n const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n\n // Pressing enter when focused on an input should submit the form like a native input, but we wait a tick before\n // submitting to allow users to cancel the keydown event if they need to\n if (event.key === 'Enter' && !hasModifier) {\n setTimeout(() => {\n //\n // When using an Input Method Editor (IME), pressing enter will cause the form to submit unexpectedly. One way\n // to check for this is to look at event.isComposing, which will be true when the IME is open.\n //\n // See https://github.com/shoelace-style/shoelace/pull/988\n //\n if (!event.defaultPrevented && !event.isComposing) {\n this.formControlController.submit();\n }\n });\n }\n }\n\n private handlePasswordToggle() {\n this.passwordVisible = !this.passwordVisible;\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch('step', { waitUntilFirstUpdate: true })\n handleStepChange() {\n // If the numericStrategy has noStepValidation set, skip this as the inputs step will always set to \"any\".\n if (this.#numericStrategy.noStepValidation) {\n return;\n }\n // If step changes, the value may become invalid so we need to recheck after the update. We set the new step\n // imperatively so we don't have to wait for the next render to report the updated validity.\n this.input.step = String(this.step);\n this.formControlController.updateValidity();\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the input. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the input. */\n blur() {\n this.input.blur();\n }\n\n /** Selects all the text in the input. */\n select() {\n this.input.select();\n }\n\n /** Sets the start and end positions of the text selection (0-based). */\n setSelectionRange(\n selectionStart: number,\n selectionEnd: number,\n selectionDirection: 'forward' | 'backward' | 'none' = 'none'\n ) {\n this.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);\n }\n\n /** Replaces a range of text with a new string. */\n setRangeText(\n replacement: string,\n start?: number,\n end?: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n const selectionStart = start ?? this.input.selectionStart!;\n const selectionEnd = end ?? this.input.selectionEnd!;\n\n this.input.setRangeText(replacement, selectionStart, selectionEnd, selectMode);\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Displays the browser picker for an input element (only works if the browser supports it for the input type). */\n showPicker() {\n if ('showPicker' in HTMLInputElement.prototype) {\n this.input.showPicker();\n }\n }\n\n /** Increments the value of a numeric input type by the value of the step attribute. */\n stepUp() {\n if (this.#numericStrategy.noStepAlign) {\n const { max, step, valueAsNumber } = this;\n\n // Needed because the input could be empty. In this case, valueAsNumber is NaN\n const usedInitialValue = Number.isNaN(valueAsNumber) ? 0 : valueAsNumber;\n const usedMin = typeof this.min === 'string' ? parseFloat(this.min) : this.min;\n const usedMax = typeof max === 'string' ? parseFloat(max) : max;\n const usedStep = (typeof step === 'undefined' || step === null || step === 'any') ? 1 : typeof step === 'number' ? step : parseFloat(step);\n\n let wantedNextValue = usedInitialValue + usedStep;\n\n if (typeof usedMax === 'number' && usedMax < wantedNextValue) {\n wantedNextValue = usedMax;\n } else if (typeof usedMin === 'number' && usedMin > wantedNextValue) {\n wantedNextValue = usedMin;\n }\n\n const finalStringValue = this.#isNumberFormattingEnabled()\n ? this.#formatNumber(wantedNextValue)\n : wantedNextValue.toString();\n\n this.input.value = finalStringValue;\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n return;\n }\n this.input.stepUp();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Decrements the value of a numeric input type by the value of the step attribute. */\n stepDown() {\n if (this.#numericStrategy.noStepAlign) {\n const { min, max, step, valueAsNumber } = this;\n\n // Needed because the input could be empty. In this case, valueAsNumber is NaN\n const usedInitialValue = Number.isNaN(valueAsNumber) ? 0 : valueAsNumber;\n const usedMin = typeof min === 'string' ? parseFloat(min) : min;\n const usedMax = typeof max === 'string' ? parseFloat(max) : max;\n const usedStep = (typeof step === 'undefined' || step === null || step === 'any') ? 1 : typeof step === 'number' ? step : parseFloat(step);\n\n let wantedNextValue = usedInitialValue - usedStep;\n \n if (typeof usedMin === 'number' && usedMin > wantedNextValue) {\n wantedNextValue = usedMin;\n } else if (typeof usedMax === 'number' && usedMax < wantedNextValue) {\n wantedNextValue = usedMax;\n }\n\n const finalStringValue = this.#isNumberFormattingEnabled()\n ? this.#formatNumber(wantedNextValue)\n : wantedNextValue.toString();\n\n this.input.value = finalStringValue;\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n return;\n }\n this.input.stepDown();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\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 return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n #formatNumber(value: number) {\n return formatNumber(value, this.step, {\n maximumFractionDigits: this.maxFractionDigits,\n minimumFractionDigits: this.minFractionDigits,\n ...this.numberFormatterOptions,\n });\n }\n\n #isNumberFormattingEnabled() {\n const {\n numberFormatterOptions,\n maxFractionDigits,\n minFractionDigits,\n step,\n } = this;\n\n const hasMaxFractionDigits = typeof maxFractionDigits !== 'undefined' && !Number.isNaN(maxFractionDigits);\n const hasMinFractionDigits = typeof minFractionDigits !== 'undefined' && !Number.isNaN(minFractionDigits);\n\n // Easy checks first: If we have a min or max fraction digit, proceed\n if (hasMaxFractionDigits || hasMinFractionDigits) {\n return true;\n }\n \n // Check if there are any options that where provided via formatter options\n if (typeof numberFormatterOptions === 'object') {\n return true;\n }\n\n // As a last fallback, see if the step has a decimal value\n // If it has, we should format according to the steps amount of fraction digits\n const stepToUse = step === 'any' || !step ? 1 : +step;\n const stepFractionDigits = stepToUse.toString().split('.')[1]?.length || 0;\n\n return stepFractionDigits > 0;\n }\n\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasPrefixSlot = this.hasSlotController.test('prefix');\n const hasSuffixSlot = this.hasSlotController.test('suffix');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n const hasClearIcon = this.clearable && !this.disabled && !this.readonly;\n const isClearIconVisible = hasClearIcon && (typeof this.value === 'number' || this.value.length > 0);\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-prefix': hasPrefixSlot,\n 'form-control--has-suffix': hasSuffixSlot\n })}\n >\n <label\n part=\"form-control-label\"\n class=\"form-control__label\"\n for=\"input\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <div\n part=\"base\"\n class=${classMap({\n input: true,\n\n // Sizes\n 'input--small': this.size === 'small',\n 'input--medium': this.size === 'medium',\n 'input--large': this.size === 'large',\n\n // States\n 'input--standard': !this.readonly,\n 'input--readonly': this.readonly,\n 'input--disabled': this.disabled,\n 'input--focused': this.hasFocus,\n 'input--empty': !this.value,\n 'input--no-spin-buttons': this.noSpinButtons\n })}\n >\n <span part=\"prefix\" class=\"input__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n <input\n part=\"input\"\n id=\"input\"\n class=\"input__control\"\n type=${this.type === 'password' && this.passwordVisible ? 'text' : this.type}\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(this.name)}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n placeholder=${ifDefined(this.placeholder)}\n minlength=${ifDefined(this.minlength)}\n maxlength=${ifDefined(this.maxlength)}\n min=${ifDefined(this.min)}\n max=${ifDefined(this.max)}\n step=${ifDefined(!this.#numericStrategy.noStepValidation ? this.step as number : 'any')}\n .value=${live(this.value)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocomplete=${ifDefined(this.autocomplete)}\n autocorrect=${ifDefined(this.autocorrect)}\n ?autofocus=${this.autofocus}\n spellcheck=${this.spellcheck}\n pattern=${ifDefined(this.pattern)}\n enterkeyhint=${ifDefined(this.enterkeyhint)}\n inputmode=${ifDefined(this.inputmode)}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @keydown=${this.handleKeyDown}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n />\n\n ${isClearIconVisible\n ? html`\n <button\n part=\"clear-button\"\n class=\"input__clear\"\n type=\"button\"\n aria-label=${this.localize.term('clearEntry')}\n @click=${this.handleClearClick}\n tabindex=\"-1\"\n >\n <slot name=\"clear-icon\">\n <syn-icon name=\"x-circle-fill\" library=\"system\"></syn-icon>\n </slot>\n </button>\n `\n : ''}\n ${this.passwordToggle && !this.disabled\n ? html`\n <button\n part=\"password-toggle-button\"\n class=\"input__password-toggle\"\n type=\"button\"\n aria-label=${this.localize.term(this.passwordVisible ? 'hidePassword' : 'showPassword')}\n @click=${this.handlePasswordToggle}\n tabindex=\"-1\"\n >\n ${this.passwordVisible\n ? html`\n <slot name=\"show-password-icon\">\n <syn-icon name=\"eye-slash\" library=\"system\"></syn-icon>\n </slot>\n `\n : html`\n <slot name=\"hide-password-icon\">\n <syn-icon name=\"eye\" library=\"system\"></syn-icon>\n </slot>\n `}\n </button>\n `\n : ''}\n\n <span part=\"suffix\" class=\"input__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n\n ${this.type === 'number' && !this.noSpinButtons\n ? html`\n <div part=\"stepper\" class=\"input__number-stepper\">\n <button\n part=\"decrement-number-stepper\"\n class=\"input__number-stepper-button\"\n type=\"button\"\n ?disabled=${this.isDecrementDisabled()}\n aria-hidden=\"true\"\n ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange()})}\n tabindex=\"-1\"\n >\n <slot name=\"decrement-number-stepper\">\n <syn-icon name=\"indeterminate\" library=\"system\"></syn-icon>\n </slot>\n </button>\n <syn-divider class=\"input__number-divider\" part=\"divider\" vertical></syn-divider>\n <button\n part=\"increment-number-stepper\"\n class=\"input__number-stepper-button\"\n type=\"button\"\n ?disabled=${this.isIncrementDisabled()}\n aria-hidden=\"true\"\n ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}\n tabindex=\"-1\"\n >\n <slot name=\"increment-number-stepper\">\n <syn-icon name=\"add\" library=\"system\"></syn-icon>\n </slot>\n </button>\n </div>\n `\n : ''}\n </div>\n </div>\n\n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n", "import { type ElementPart, noChange, nothing } from 'lit';\nimport {\n AsyncDirective,\n type DirectiveParameters,\n type Part,\n PartType,\n directive,\n} from 'lit/async-directive.js';\n\ntype Callbacks = {\n start: () => void;\n end: () => void;\n};\n\n/**\n * A directive that determines,if a HTMLButtonElement is long pressed or only clicked.\n * Depending on the state it executes the callback once or repeating.\n *\n * Usage:\n *\n * <button\n * ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}\n * >\n * my button\n * </button>\n */\nclass LongPressDirective extends AsyncDirective {\n host: HTMLButtonElement;\n\n observer: MutationObserver;\n\n callbacks: Callbacks;\n\n interval: NodeJS.Timeout;\n\n timeout: NodeJS.Timeout;\n\n constructor(part: Part) {\n super(part);\n if (part.type !== PartType.ELEMENT || !(part.element instanceof HTMLButtonElement)) {\n throw new Error('The `longPress` directive must be used on an HTMLButtonElement.');\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, class-methods-use-this\n render(_callback: Callbacks): typeof nothing {\n return nothing;\n }\n\n update(part: ElementPart, [callbacks]: DirectiveParameters<this>): typeof noChange {\n // initial call\n if (this.callbacks === undefined && this.host === undefined) {\n this.host = part.element as HTMLButtonElement;\n this.callbacks = { ...callbacks };\n this.host.addEventListener('pointerdown', this.handlePointerDown);\n }\n\n return noChange;\n }\n\n reconnected(): void {\n this.host.addEventListener('pointerdown', this.handlePointerDown);\n }\n\n protected disconnected(): void {\n this.stopSpinningAndCleanUp();\n this.host.removeEventListener('pointerdown', this.handlePointerDown);\n document.removeEventListener('pointerup', this.handlePointerUp);\n }\n\n private handlePointerDown = (event: PointerEvent) => {\n // do nothing if the click was not done from the left mouse button or if the button is disabled\n if (event.button !== 0 || this.host.disabled) {\n return;\n }\n this.spinOnLongPressCallback(event);\n };\n\n /**\n * Start spinning on long press clicks otherwise handle as single click event\n */\n private spinOnLongPressCallback(event: PointerEvent) {\n event.preventDefault();\n event.stopPropagation();\n\n // Start spinning only on long press\n this.timeout = setTimeout(() => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.timeout = undefined;\n this.interval = setInterval(() => {\n this.callbacks.start();\n }, 50);\n }, 500);\n\n document.addEventListener('pointerup', this.handlePointerUp);\n\n // when buttons becoming disabled during long-press\n this.observer?.disconnect();\n this.observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.attributeName === 'disabled') {\n this.stopSpinningAndCleanUp();\n }\n });\n });\n this.observer.observe(this.host, { attributes: true });\n }\n\n private handlePointerUp = (pointerUp?: PointerEvent) => {\n pointerUp?.preventDefault();\n pointerUp?.stopPropagation();\n\n // we did not start to spin\n if (this.timeout) {\n this.callbacks.start();\n }\n\n this.stopSpinningAndCleanUp();\n\n this.callbacks.end();\n document.removeEventListener('pointerup', this.handlePointerUp);\n };\n\n /**\n * Stop the spinning and clean up all timer and observer\n */\n private stopSpinningAndCleanUp() {\n // stop spinning\n clearInterval(this.interval);\n\n clearTimeout(this.timeout);\n this.observer?.disconnect();\n }\n}\n\nexport const longPress = directive(LongPressDirective);\n\nexport type { LongPressDirective };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;;;AChBvC,SAA2B,UAAU,eAAe;AACpD;AAAA,EACE;AAAA,EAGA;AAAA,EACA;AAAA,OACK;AAmBP,IAAM,qBAAN,cAAiC,eAAe;AAAA,EAW9C,YAAY,MAAY;AACtB,UAAM,IAAI;AAgCZ,SAAQ,oBAAoB,CAAC,UAAwB;AAEnD,UAAI,MAAM,WAAW,KAAK,KAAK,KAAK,UAAU;AAC5C;AAAA,MACF;AACA,WAAK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,SAAS;AAAA,IACR,MAAM;AAAA,IACN,WAAW;AAAA;AAAA,MAET,eAAe,WAAU,CAAC,SAAS,UAAU,UAAU,QAAQ;AAAA,MAC/D,aAAa,WAAU,QAAQ,SAAS;AAAA,IAC1C;AAAA,EACF,CAAC;AAAA,GArIkB,SAsInB;AAMY;AAAA,EAAX,SAAS;AAAA,GA5IS,SA4IP;AAWT;AAAA,EAJF,SAAS;AAAA,IACR,WAAW;AAAA,IACX,SAAS;AAAA,IACT,MAAM;AAAA,EACR,CAAC;AAAA,GAvJkB,SAuJhB;AASA;AAAA,EAHF,SAAS;AAAA,IACR,WAAW;AAAA,IACX,MAAM;AAAA,EACR,CAAC;AAAA,GAhKkB,SAgKhB;AASA;AAAA,EAHF,SAAS;AAAA,IACR,WAAW;AAAA,IACX,MAAM;AAAA,EACR,CAAC;AAAA,GAzKkB,SAyKhB;AAkCC;AAAA,EAXH,SAAS;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,MACT,eAAe,CAAC,UAAU;AACxB,eAAO,UAAU,WACb,wBACA;AAAA,MACN;AAAA,IACF;AAAA,IACA,MAAM;AAAA,EACR,CAAC;AAAA,GA1MkB,SA2Mf;AAqQJ;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA/c9B,SAgdnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GArd1B,SAsdnB;AAYM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAje3B,SAkeb;AAlea,WAArB;AAAA,EADC,sBAAsB,UAAU;AAAA,GACZ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/utilities/defaultSettings/base.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/quotes */\n// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED file for @synergy-design-system/components\n// Please do not edit this file directly!\n// It will get recreated when running pnpm build.\n// ---------------------------------------------------------------------\n\n// Global imports\nimport { nativeNumericStrategy } from \"../../components/input/strategies.js\";\n\n// Type imports\nimport type SynAccordion from \"../../components/accordion/accordion.js\";\nimport type SynAlert from \"../../components/alert/alert.js\";\nimport type SynBadge from \"../../components/badge/badge.js\";\nimport type SynButton from \"../../components/button/button.js\";\nimport type SynCheckbox from \"../../components/checkbox/checkbox.js\";\nimport type SynCombobox from \"../../components/combobox/combobox.js\";\nimport type SynDetails from \"../../components/details/details.js\";\nimport type SynFile from \"../../components/file/file.js\";\nimport type SynIconButton from \"../../components/icon-button/icon-button.js\";\nimport type SynInput from \"../../components/input/input.js\";\nimport type SynRadioButton from \"../../components/radio-button/radio-button.js\";\nimport type SynRadioGroup from \"../../components/radio-group/radio-group.js\";\nimport type SynRadio from \"../../components/radio/radio.js\";\nimport type SynRange from \"../../components/range/range.js\";\nimport type SynSelect from \"../../components/select/select.js\";\nimport type SynSwitch from \"../../components/switch/switch.js\";\nimport type SynTag from \"../../components/tag/tag.js\";\nimport type SynTextarea from \"../../components/textarea/textarea.js\";\nimport type SynValidate from \"../../components/validate/validate.js\";\nimport type SynergyElement from \"../../internal/synergy-element.js\";\nimport type { SynDefaultChangedAttribute } from \"../../events/events.js\";\n\n// Core types\n\n/**\n * Custom helper type that adds decorated properties from\n * the globalSettings helper.\n */\nexport type GlobalSettingsEnabledElement = SynergyElement & {\n __originalDecoratedClassName: string;\n overrideGlobalSettings: (\n changedProperties: SynDefaultChangedAttribute[],\n ) => void;\n};\n\n/**\n * Allows for partial recursive types\n */\nexport type RecursivePartial<T> = {\n [P in keyof T]?: T[P] extends object ? RecursivePartial<T[P]> : T[P];\n};\n\n/**\n * Allowed value for a default setting\n * Gets the value of a given attribute for a given component\n */\nexport type AllowedValueForDefaultSetting<\n Elm extends SynergyElement,\n Attr extends keyof Elm,\n> = Elm[Attr];\n\n/**\n * List of all components that have default values\n */\nexport type ComponentNamesWithDefaultValues =\n | \"SynAccordion\"\n | \"SynAlert\"\n | \"SynBadge\"\n | \"SynButton\"\n | \"SynCheckbox\"\n | \"SynCombobox\"\n | \"SynDetails\"\n | \"SynFile\"\n | \"SynIconButton\"\n | \"SynInput\"\n | \"SynRadio\"\n | \"SynRadioButton\"\n | \"SynRadioGroup\"\n | \"SynRange\"\n | \"SynSelect\"\n | \"SynSwitch\"\n | \"SynTag\"\n | \"SynTextarea\"\n | \"SynValidate\";\n\n/**\n * Extracts all available default settings for a given component\n */\nexport type ExtractSettingsForElement<C extends SynergyElement> = {\n [key in keyof SynDefaultSettings]?: key extends keyof C\n ? AllowedValueForDefaultSetting<C, key>\n : never;\n};\n\n/**\n * Default settings map for all component values that have defaults set\n */\nexport type SynDefaultSettings = {\n delimiter: {\n SynSelect?: AllowedValueForDefaultSetting<SynSelect, \"delimiter\">;\n };\n numericStrategy: {\n SynInput?: AllowedValueForDefaultSetting<SynInput, \"numericStrategy\">;\n };\n size: {\n SynAccordion?: AllowedValueForDefaultSetting<SynAccordion, \"size\">;\n SynButton?: AllowedValueForDefaultSetting<SynButton, \"size\">;\n SynCheckbox?: AllowedValueForDefaultSetting<SynCheckbox, \"size\">;\n SynCombobox?: AllowedValueForDefaultSetting<SynCombobox, \"size\">;\n SynDetails?: AllowedValueForDefaultSetting<SynDetails, \"size\">;\n SynFile?: AllowedValueForDefaultSetting<SynFile, \"size\">;\n SynIconButton?: AllowedValueForDefaultSetting<SynIconButton, \"size\">;\n SynInput?: AllowedValueForDefaultSetting<SynInput, \"size\">;\n SynRadio?: AllowedValueForDefaultSetting<SynRadio, \"size\">;\n SynRadioButton?: AllowedValueForDefaultSetting<SynRadioButton, \"size\">;\n SynRadioGroup?: AllowedValueForDefaultSetting<SynRadioGroup, \"size\">;\n SynRange?: AllowedValueForDefaultSetting<SynRange, \"size\">;\n SynSelect?: AllowedValueForDefaultSetting<SynSelect, \"size\">;\n SynSwitch?: AllowedValueForDefaultSetting<SynSwitch, \"size\">;\n SynTag?: AllowedValueForDefaultSetting<SynTag, \"size\">;\n SynTextarea?: AllowedValueForDefaultSetting<SynTextarea, \"size\">;\n };\n variant: {\n SynAlert?: AllowedValueForDefaultSetting<SynAlert, \"variant\">;\n SynBadge?: AllowedValueForDefaultSetting<SynBadge, \"variant\">;\n SynButton?: AllowedValueForDefaultSetting<SynButton, \"variant\">;\n SynValidate?: AllowedValueForDefaultSetting<SynValidate, \"variant\">;\n };\n};\n\n// Exports\n\n/**\n * Default settings for all components\n */\nexport const defaultSettings: SynDefaultSettings = {\n delimiter: {\n SynSelect: \" \",\n },\n numericStrategy: {\n SynInput: nativeNumericStrategy,\n },\n size: {\n SynAccordion: \"medium\",\n SynButton: \"medium\",\n SynCheckbox: \"medium\",\n SynCombobox: \"medium\",\n SynDetails: \"medium\",\n SynFile: \"medium\",\n SynIconButton: \"inherit\",\n SynInput: \"medium\",\n SynRadio: \"medium\",\n SynRadioButton: \"medium\",\n SynRadioGroup: \"medium\",\n SynRange: \"medium\",\n SynSelect: \"medium\",\n SynSwitch: \"medium\",\n SynTag: \"medium\",\n SynTextarea: \"medium\",\n },\n variant: {\n SynAlert: \"primary\",\n SynBadge: \"primary\",\n SynButton: \"outline\",\n SynValidate: \"native\",\n },\n};\n\n/**\n * Initial default settings for all components\n */\nexport const INITIAL_DEFAULT_SETTINGS: SynDefaultSettings = {\n delimiter: {\n SynSelect: \" \",\n },\n numericStrategy: {\n SynInput: nativeNumericStrategy,\n },\n size: {\n SynAccordion: \"medium\",\n SynButton: \"medium\",\n SynCheckbox: \"medium\",\n SynCombobox: \"medium\",\n SynDetails: \"medium\",\n SynFile: \"medium\",\n SynIconButton: \"inherit\",\n SynInput: \"medium\",\n SynRadio: \"medium\",\n SynRadioButton: \"medium\",\n SynRadioGroup: \"medium\",\n SynRange: \"medium\",\n SynSelect: \"medium\",\n SynSwitch: \"medium\",\n SynTag: \"medium\",\n SynTextarea: \"medium\",\n },\n variant: {\n SynAlert: \"primary\",\n SynBadge: \"primary\",\n SynButton: \"outline\",\n SynValidate: \"native\",\n },\n};\n"],
|
|
5
|
-
"mappings": ";;;;;AAwIO,IAAM,kBAAsC;AAAA,EACjD,WAAW;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,iBAAiB;AAAA,IACf,UAAU;AAAA,EACZ;AAAA,EACA,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,eAAe;AAAA,IACf,UAAU;AAAA,IACV,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,aAAa;AAAA,EACf;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,aAAa;AAAA,EACf;AACF;AAKO,IAAM,2BAA+C;AAAA,EAC1D,WAAW;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,iBAAiB;AAAA,IACf,UAAU;AAAA,EACZ;AAAA,EACA,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,eAAe;AAAA,IACf,UAAU;AAAA,IACV,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,aAAa;AAAA,EACf;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,aAAa;AAAA,EACf;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
|
@@ -1,7 +0,0 @@
|
|
|
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,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats a number using the Intl.NumberFormat API.
|
|
3
|
-
* @param value The value to format
|
|
4
|
-
* @param step The step value to use for formatting. Used if no minimumFractionDigits is provided.
|
|
5
|
-
* @param numberFormatterOptions Additional parameters to pass to the number formatter.
|
|
6
|
-
* @returns The formatted value
|
|
7
|
-
*/
|
|
8
|
-
export declare const formatNumber: (value: number, step: number | string | undefined, numberFormatterOptions?: Intl.NumberFormatOptions) => string;
|