@synergy-design-system/components 2.30.5 → 2.31.0-numeric.2
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.NU2ZEZSD.js → chunk.23KNPBFB.js} +2 -2
- package/dist/chunks/{chunk.5OPXSFO3.js → chunk.2J3C2R4R.js} +4 -4
- package/dist/chunks/{chunk.C4H6TBMF.js → chunk.2K6NQLEV.js} +2 -2
- package/dist/chunks/{chunk.ALIOCGNG.js → chunk.2L5JW3W5.js} +14 -14
- package/dist/chunks/{chunk.HQURQ3CN.js → chunk.2NWEQCDE.js} +2 -2
- package/dist/chunks/{chunk.2OTQLYT3.js → chunk.2XOHNYC5.js} +2 -2
- package/dist/chunks/{chunk.DMKBRC42.js → chunk.34MJRDEM.js} +8 -8
- package/dist/chunks/{chunk.DBJAAVEH.js → chunk.353K4PON.js} +3 -3
- package/dist/chunks/{chunk.PIGPWCVF.js → chunk.3764RHNZ.js} +5 -5
- package/dist/chunks/{chunk.TWQ7AFX5.js → chunk.3JEL6TFC.js} +2 -2
- package/dist/chunks/{chunk.RXFPELF2.js → chunk.3ZKI5OTR.js} +2 -2
- package/dist/chunks/{chunk.VAZI7FFW.js → chunk.4I3A2FAT.js} +2 -2
- package/dist/chunks/{chunk.UEBLSO7C.js → chunk.4WTEYK2Y.js} +4 -4
- package/dist/chunks/{chunk.YT5SHGUK.js → chunk.4X3HY2V5.js} +1 -6
- package/dist/chunks/{chunk.YT5SHGUK.js.map → chunk.4X3HY2V5.js.map} +2 -2
- package/dist/chunks/{chunk.MT5G5L22.js → chunk.53RGIEWF.js} +4 -4
- package/dist/chunks/chunk.53T54MDF.js +30 -0
- package/dist/chunks/chunk.53T54MDF.js.map +7 -0
- package/dist/chunks/{chunk.QTOVWZ6I.js → chunk.56NTE7JW.js} +3 -3
- package/dist/chunks/{chunk.P3MD2AAD.js → chunk.5VQ3S2XE.js} +6 -6
- package/dist/chunks/{chunk.NIMYDPXE.js → chunk.66H23HMI.js} +2 -2
- package/dist/chunks/{chunk.S3Q5BRVY.js → chunk.6XA7QZZL.js} +3 -3
- package/dist/chunks/{chunk.HQ6QUSK7.js → chunk.7JGKUB4A.js} +2 -2
- package/dist/chunks/{chunk.SYD5GB3Y.js → chunk.A7BSGQUQ.js} +14 -14
- package/dist/chunks/{chunk.QUNLF6QN.js → chunk.AVC4OCSZ.js} +4 -4
- package/dist/chunks/{chunk.2LYOMDFO.js → chunk.AYAX7BG7.js} +2 -2
- package/dist/chunks/{chunk.VZXEBU7H.js → chunk.B27C5RF6.js} +4 -4
- package/dist/chunks/{chunk.AMDUOU3T.js → chunk.BGBML4AJ.js} +2 -2
- package/dist/chunks/{chunk.7R4BNYSA.js → chunk.BKHCRIMU.js} +2 -2
- package/dist/chunks/{chunk.BVCKGARW.js → chunk.BPD4SAWW.js} +2 -2
- package/dist/chunks/{chunk.EDUMXGFF.js → chunk.BRG3RLN3.js} +2 -2
- package/dist/chunks/{chunk.74IOULXM.js → chunk.BVZQ6QSY.js} +2 -2
- package/dist/chunks/{chunk.OH3PPVV4.js → chunk.CEQYPACD.js} +11 -1
- package/dist/chunks/chunk.CEQYPACD.js.map +7 -0
- package/dist/chunks/{chunk.2G2KUL7J.js → chunk.CGP72BVA.js} +4 -4
- package/dist/chunks/{chunk.EUUBC6SX.js → chunk.CGQHRVXQ.js} +2 -2
- package/dist/chunks/{chunk.J4TMW6JM.js → chunk.DOIMWGFS.js} +6 -6
- package/dist/chunks/{chunk.DVQWWBDP.js → chunk.DSM54YAD.js} +5 -5
- package/dist/chunks/{chunk.ILWH53H7.js → chunk.E3EDE5EN.js} +2 -2
- package/dist/chunks/{chunk.3MDEDVNX.js → chunk.EC3TBECW.js} +2 -2
- package/dist/chunks/{chunk.ZY2JORYK.js → chunk.EK2I2ETM.js} +16 -16
- package/dist/chunks/{chunk.2GYFY3XF.js → chunk.FI2CRQ7Y.js} +2 -2
- package/dist/chunks/{chunk.GSMOWAF7.js → chunk.FUXHSYEA.js} +2 -2
- package/dist/chunks/{chunk.A3OYJILJ.js → chunk.G6ITZTTW.js} +2 -2
- package/dist/chunks/{chunk.JCIM6NE3.js → chunk.G76BKD7B.js} +2 -2
- package/dist/chunks/{chunk.N7P3L37O.js → chunk.GCIPCYGA.js} +2 -2
- package/dist/chunks/{chunk.SVJMGQ4H.js → chunk.GG2RRZVJ.js} +5 -5
- package/dist/chunks/{chunk.LD7LFFPR.js → chunk.GNAG7ZC2.js} +2 -2
- package/dist/chunks/{chunk.2W6TU7LZ.js → chunk.GQBSDITD.js} +4 -4
- package/dist/chunks/{chunk.M5STYIDV.js → chunk.HCOKZQTP.js} +11 -11
- package/dist/chunks/{chunk.Y6VACPXJ.js → chunk.HNDAREEH.js} +3 -3
- package/dist/chunks/{chunk.OLRA37R5.js → chunk.HP2LEQRU.js} +2 -2
- package/dist/chunks/{chunk.JOP6PHFJ.js → chunk.HX7JLYDF.js} +2 -2
- package/dist/chunks/{chunk.7I2XANDB.js → chunk.HY3NOR7D.js} +7 -7
- package/dist/chunks/{chunk.ENIWDDQM.js → chunk.HZO7PBWS.js} +2 -2
- package/dist/chunks/{chunk.TUXUJQNE.js → chunk.IFV2P53O.js} +2 -2
- package/dist/chunks/{chunk.3W5WLB2W.js → chunk.IKCNW223.js} +5 -5
- package/dist/chunks/{chunk.MUNNAOL7.js → chunk.J6WNJGIB.js} +2 -2
- package/dist/chunks/{chunk.DGWVBKVQ.js → chunk.JAP2ROD6.js} +14 -14
- package/dist/chunks/{chunk.PTL5EHE2.js → chunk.JB6TLEKH.js} +2 -2
- package/dist/chunks/{chunk.AB53B6S6.js → chunk.JHGIU4HZ.js} +2 -2
- package/dist/chunks/{chunk.U6DSXUOD.js → chunk.JQDPM6DF.js} +5 -5
- package/dist/chunks/{chunk.WMW67W6O.js → chunk.JYYVZLIU.js} +6 -6
- package/dist/chunks/{chunk.A6VTKITH.js → chunk.K3PX643U.js} +2 -2
- package/dist/chunks/{chunk.PL44V5ZN.js → chunk.K5DRZGPZ.js} +3 -3
- package/dist/chunks/{chunk.S4WGPHPI.js → chunk.KAR4IGHT.js} +12 -12
- package/dist/chunks/{chunk.6MAVQHAQ.js → chunk.KJBCZJ6K.js} +2 -2
- package/dist/chunks/{chunk.NVCHSKXT.js → chunk.LPZXZR3T.js} +12 -12
- package/dist/chunks/{chunk.VYZRA53Q.js → chunk.MAIIRSXZ.js} +14 -14
- package/dist/chunks/{chunk.6GBQX53P.js → chunk.MTN5NM4A.js} +2 -2
- package/dist/chunks/{chunk.N77SBPL2.js → chunk.MY2ALVF7.js} +11 -11
- package/dist/chunks/{chunk.5VHNIBDU.js → chunk.N3KLCG35.js} +2 -2
- package/dist/chunks/{chunk.373FR4QS.js → chunk.NKMYBNM5.js} +176 -13
- package/dist/chunks/chunk.NKMYBNM5.js.map +7 -0
- package/dist/chunks/{chunk.JC5AWFFP.js → chunk.NQH6IYCA.js} +2 -2
- package/dist/chunks/{chunk.XSEEVI2J.js → chunk.NRLJB73P.js} +3 -3
- package/dist/chunks/{chunk.U6XAQJPR.js → chunk.NTTXYDYX.js} +8 -8
- package/dist/chunks/{chunk.B7AUFQGQ.js → chunk.NUQBPC6D.js} +3 -3
- package/dist/chunks/{chunk.B7AUFQGQ.js.map → chunk.NUQBPC6D.js.map} +1 -1
- package/dist/chunks/{chunk.QOPTZNIB.js → chunk.OMZMY7WY.js} +2 -2
- package/dist/chunks/{chunk.RUUBKVZ6.js → chunk.OQVWVZ4P.js} +8 -8
- package/dist/chunks/{chunk.LRZAOEPL.js → chunk.OUISPKO2.js} +9 -9
- package/dist/chunks/{chunk.6PI6RK7K.js → chunk.PE3G4I5L.js} +2 -2
- package/dist/chunks/{chunk.OLLLH4LL.js → chunk.PKPTTKQA.js} +2 -2
- package/dist/chunks/{chunk.4SQFOEOE.js → chunk.PMYJ4WQL.js} +13 -13
- package/dist/chunks/{chunk.5I5NDOSG.js → chunk.PR66KI74.js} +10 -10
- package/dist/chunks/{chunk.JTSBAJHO.js → chunk.QAQINAAG.js} +2 -2
- package/dist/chunks/chunk.RDYAIG65.js +25 -0
- package/dist/chunks/chunk.RDYAIG65.js.map +7 -0
- package/dist/chunks/{chunk.6MHW7ADB.js → chunk.RK6NECYK.js} +2 -2
- package/dist/chunks/{chunk.6NQJCMRV.js → chunk.RTQJFZK3.js} +10 -10
- package/dist/chunks/{chunk.IQHT4LOD.js → chunk.S3ABDHZT.js} +2 -2
- package/dist/chunks/{chunk.MIUZTY54.js → chunk.SIWLLQTA.js} +2 -2
- package/dist/chunks/{chunk.U7HHAX7D.js → chunk.SLFOWP34.js} +2 -2
- package/dist/chunks/{chunk.AR2VWYUT.js → chunk.SWCD3CKX.js} +2 -2
- package/dist/chunks/{chunk.2SZWXVFA.js → chunk.TJPUKKXT.js} +2 -2
- package/dist/chunks/{chunk.3YCLAIOK.js → chunk.U5UY5Y2W.js} +2 -2
- package/dist/chunks/{chunk.EWKPIUFG.js → chunk.UHVW6WAA.js} +6 -6
- package/dist/chunks/{chunk.ZZFSPIY6.js → chunk.UIFJKTEU.js} +2 -2
- package/dist/chunks/{chunk.XAQBNXEG.js → chunk.UODJAGU2.js} +2 -2
- package/dist/chunks/{chunk.NUIJATJY.js → chunk.V4H475OR.js} +3 -3
- package/dist/chunks/{chunk.O5TBR2AC.js → chunk.V4K35JJY.js} +2 -2
- package/dist/chunks/{chunk.5NVXYY67.js → chunk.VTWC6SZF.js} +4 -4
- package/dist/chunks/{chunk.FYP6H2SW.js → chunk.WUSN4QJH.js} +3 -3
- package/dist/chunks/{chunk.VMOGJPJ3.js → chunk.XAUVRHWG.js} +6 -6
- package/dist/chunks/{chunk.2CJUSDAJ.js → chunk.XIAITA3R.js} +2 -2
- package/dist/chunks/{chunk.BDNNAAVA.js → chunk.XYVSORCI.js} +8 -8
- package/dist/chunks/{chunk.7TC5B32U.js → chunk.Y34UAFAN.js} +2 -2
- package/dist/chunks/{chunk.5Q3QBE47.js → chunk.YDYA7L2E.js} +5 -5
- package/dist/chunks/{chunk.QAHOIE5I.js → chunk.YF6FRUKX.js} +2 -2
- package/dist/chunks/{chunk.U6FUTJ6Y.js → chunk.YSZZ3XZE.js} +7 -7
- package/dist/chunks/{chunk.5QVULGQH.js → chunk.YYAC6H6O.js} +2 -2
- package/dist/chunks/{chunk.2GFK6XTO.js → chunk.Z4XV3SMG.js} +14 -1
- package/dist/chunks/{chunk.PXYWDJVG.js → chunk.Z634ODXV.js} +2 -2
- package/dist/chunks/{chunk.CMFSCP6V.js → chunk.Z6TU6HAF.js} +2 -2
- package/dist/components/accordion/accordion.component.js +9 -8
- package/dist/components/accordion/accordion.js +10 -9
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.component.js +14 -13
- package/dist/components/alert/alert.custom.styles.js +1 -1
- package/dist/components/alert/alert.js +15 -14
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +7 -6
- package/dist/components/badge/badge.custom.styles.js +1 -1
- package/dist/components/badge/badge.js +8 -7
- 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 +12 -11
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +13 -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 +11 -10
- package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +12 -11
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/combobox/combobox.component.js +15 -14
- package/dist/components/combobox/combobox.custom.styles.js +1 -1
- package/dist/components/combobox/combobox.js +16 -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 +12 -11
- package/dist/components/details/details.custom.styles.js +1 -1
- package/dist/components/details/details.js +13 -12
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.js +16 -15
- package/dist/components/dialog/dialog.custom.styles.js +1 -1
- package/dist/components/dialog/dialog.js +17 -16
- 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 +16 -15
- package/dist/components/drawer/drawer.custom.styles.js +1 -1
- package/dist/components/drawer/drawer.js +17 -16
- 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 +15 -14
- package/dist/components/file/file.js +16 -15
- package/dist/components/file/file.styles.js +1 -1
- package/dist/components/header/header.component.js +7 -7
- package/dist/components/header/header.js +8 -8
- 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 +9 -8
- package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
- package/dist/components/icon-button/icon-button.js +10 -9
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/formatter.d.ts +8 -0
- package/dist/components/input/formatter.js +8 -0
- package/dist/components/input/formatter.js.map +7 -0
- package/dist/components/input/input.component.d.ts +47 -0
- package/dist/components/input/input.component.js +13 -11
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +14 -12
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/input/strategies.d.ts +67 -0
- package/dist/components/input/strategies.js +12 -0
- package/dist/components/input/strategies.js.map +7 -0
- package/dist/components/menu/menu.component.js +3 -3
- package/dist/components/menu/menu.custom.styles.js +1 -1
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/menu/menu.styles.js +1 -1
- package/dist/components/menu-item/menu-item.component.js +8 -8
- package/dist/components/menu-item/menu-item.custom.styles.js +1 -1
- package/dist/components/menu-item/menu-item.js +9 -9
- 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 +16 -16
- package/dist/components/prio-nav/prio-nav.js +17 -17
- 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 +9 -8
- package/dist/components/radio/radio.custom.styles.js +1 -1
- package/dist/components/radio/radio.js +10 -9
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.js +8 -7
- package/dist/components/radio-button/radio-button.js +9 -8
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +10 -9
- package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
- package/dist/components/radio-group/radio-group.js +11 -10
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.js +16 -15
- package/dist/components/range/range.js +17 -16
- package/dist/components/range/range.styles.js +1 -1
- package/dist/components/range/utility.js +1 -1
- package/dist/components/range-tick/range-tick.component.js +3 -3
- package/dist/components/range-tick/range-tick.js +4 -4
- package/dist/components/range-tick/range-tick.styles.js +1 -1
- package/dist/components/resize-observer/resize-observer.component.js +4 -4
- package/dist/components/resize-observer/resize-observer.styles.js +1 -1
- package/dist/components/select/select.component.js +16 -15
- package/dist/components/select/select.custom.styles.js +1 -1
- package/dist/components/select/select.js +17 -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 +18 -17
- package/dist/components/side-nav/side-nav.js +19 -18
- 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 +9 -8
- package/dist/components/switch/switch.custom.styles.js +1 -1
- package/dist/components/switch/switch.js +10 -9
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.js +10 -9
- package/dist/components/tab/tab.custom.styles.js +1 -1
- package/dist/components/tab/tab.js +11 -10
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.component.js +11 -10
- package/dist/components/tab-group/tab-group.custom.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +12 -11
- 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 +10 -9
- package/dist/components/tag/tag.custom.styles.js +1 -1
- package/dist/components/tag/tag.js +11 -10
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.js +9 -8
- package/dist/components/textarea/textarea.custom.styles.js +1 -1
- package/dist/components/textarea/textarea.js +10 -9
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +8 -8
- package/dist/components/tooltip/tooltip.custom.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +9 -9
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/validate/utility.js +3 -3
- package/dist/components/validate/validate.component.js +16 -15
- package/dist/components/validate/validate.js +17 -16
- package/dist/components/validate/validate.styles.js +1 -1
- package/dist/custom-elements.json +265 -168
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-clamp.d.ts +16 -0
- package/dist/styles/index.css +1 -1
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy.js +179 -177
- 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 +3 -0
- package/dist/utilities/defaultSettings/base.js +3 -2
- package/dist/utilities/defaultSettings/decorator.js +5 -4
- package/dist/utilities/defaultSettings/functions.js +4 -3
- package/dist/utilities/defaultSettings/index.js +5 -4
- package/dist/utilities/form.js +3 -3
- package/dist/utilities/icon-library.js +1 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +52 -33
- package/package.json +1 -1
- package/dist/chunks/chunk.373FR4QS.js.map +0 -7
- package/dist/chunks/chunk.OH3PPVV4.js.map +0 -7
- /package/dist/chunks/{chunk.NU2ZEZSD.js.map → chunk.23KNPBFB.js.map} +0 -0
- /package/dist/chunks/{chunk.5OPXSFO3.js.map → chunk.2J3C2R4R.js.map} +0 -0
- /package/dist/chunks/{chunk.C4H6TBMF.js.map → chunk.2K6NQLEV.js.map} +0 -0
- /package/dist/chunks/{chunk.ALIOCGNG.js.map → chunk.2L5JW3W5.js.map} +0 -0
- /package/dist/chunks/{chunk.HQURQ3CN.js.map → chunk.2NWEQCDE.js.map} +0 -0
- /package/dist/chunks/{chunk.2OTQLYT3.js.map → chunk.2XOHNYC5.js.map} +0 -0
- /package/dist/chunks/{chunk.DMKBRC42.js.map → chunk.34MJRDEM.js.map} +0 -0
- /package/dist/chunks/{chunk.DBJAAVEH.js.map → chunk.353K4PON.js.map} +0 -0
- /package/dist/chunks/{chunk.PIGPWCVF.js.map → chunk.3764RHNZ.js.map} +0 -0
- /package/dist/chunks/{chunk.TWQ7AFX5.js.map → chunk.3JEL6TFC.js.map} +0 -0
- /package/dist/chunks/{chunk.RXFPELF2.js.map → chunk.3ZKI5OTR.js.map} +0 -0
- /package/dist/chunks/{chunk.VAZI7FFW.js.map → chunk.4I3A2FAT.js.map} +0 -0
- /package/dist/chunks/{chunk.UEBLSO7C.js.map → chunk.4WTEYK2Y.js.map} +0 -0
- /package/dist/chunks/{chunk.MT5G5L22.js.map → chunk.53RGIEWF.js.map} +0 -0
- /package/dist/chunks/{chunk.QTOVWZ6I.js.map → chunk.56NTE7JW.js.map} +0 -0
- /package/dist/chunks/{chunk.P3MD2AAD.js.map → chunk.5VQ3S2XE.js.map} +0 -0
- /package/dist/chunks/{chunk.NIMYDPXE.js.map → chunk.66H23HMI.js.map} +0 -0
- /package/dist/chunks/{chunk.S3Q5BRVY.js.map → chunk.6XA7QZZL.js.map} +0 -0
- /package/dist/chunks/{chunk.HQ6QUSK7.js.map → chunk.7JGKUB4A.js.map} +0 -0
- /package/dist/chunks/{chunk.SYD5GB3Y.js.map → chunk.A7BSGQUQ.js.map} +0 -0
- /package/dist/chunks/{chunk.QUNLF6QN.js.map → chunk.AVC4OCSZ.js.map} +0 -0
- /package/dist/chunks/{chunk.2LYOMDFO.js.map → chunk.AYAX7BG7.js.map} +0 -0
- /package/dist/chunks/{chunk.VZXEBU7H.js.map → chunk.B27C5RF6.js.map} +0 -0
- /package/dist/chunks/{chunk.AMDUOU3T.js.map → chunk.BGBML4AJ.js.map} +0 -0
- /package/dist/chunks/{chunk.7R4BNYSA.js.map → chunk.BKHCRIMU.js.map} +0 -0
- /package/dist/chunks/{chunk.BVCKGARW.js.map → chunk.BPD4SAWW.js.map} +0 -0
- /package/dist/chunks/{chunk.EDUMXGFF.js.map → chunk.BRG3RLN3.js.map} +0 -0
- /package/dist/chunks/{chunk.74IOULXM.js.map → chunk.BVZQ6QSY.js.map} +0 -0
- /package/dist/chunks/{chunk.2G2KUL7J.js.map → chunk.CGP72BVA.js.map} +0 -0
- /package/dist/chunks/{chunk.EUUBC6SX.js.map → chunk.CGQHRVXQ.js.map} +0 -0
- /package/dist/chunks/{chunk.J4TMW6JM.js.map → chunk.DOIMWGFS.js.map} +0 -0
- /package/dist/chunks/{chunk.DVQWWBDP.js.map → chunk.DSM54YAD.js.map} +0 -0
- /package/dist/chunks/{chunk.ILWH53H7.js.map → chunk.E3EDE5EN.js.map} +0 -0
- /package/dist/chunks/{chunk.3MDEDVNX.js.map → chunk.EC3TBECW.js.map} +0 -0
- /package/dist/chunks/{chunk.ZY2JORYK.js.map → chunk.EK2I2ETM.js.map} +0 -0
- /package/dist/chunks/{chunk.2GYFY3XF.js.map → chunk.FI2CRQ7Y.js.map} +0 -0
- /package/dist/chunks/{chunk.GSMOWAF7.js.map → chunk.FUXHSYEA.js.map} +0 -0
- /package/dist/chunks/{chunk.A3OYJILJ.js.map → chunk.G6ITZTTW.js.map} +0 -0
- /package/dist/chunks/{chunk.JCIM6NE3.js.map → chunk.G76BKD7B.js.map} +0 -0
- /package/dist/chunks/{chunk.N7P3L37O.js.map → chunk.GCIPCYGA.js.map} +0 -0
- /package/dist/chunks/{chunk.SVJMGQ4H.js.map → chunk.GG2RRZVJ.js.map} +0 -0
- /package/dist/chunks/{chunk.LD7LFFPR.js.map → chunk.GNAG7ZC2.js.map} +0 -0
- /package/dist/chunks/{chunk.2W6TU7LZ.js.map → chunk.GQBSDITD.js.map} +0 -0
- /package/dist/chunks/{chunk.M5STYIDV.js.map → chunk.HCOKZQTP.js.map} +0 -0
- /package/dist/chunks/{chunk.Y6VACPXJ.js.map → chunk.HNDAREEH.js.map} +0 -0
- /package/dist/chunks/{chunk.OLRA37R5.js.map → chunk.HP2LEQRU.js.map} +0 -0
- /package/dist/chunks/{chunk.JOP6PHFJ.js.map → chunk.HX7JLYDF.js.map} +0 -0
- /package/dist/chunks/{chunk.7I2XANDB.js.map → chunk.HY3NOR7D.js.map} +0 -0
- /package/dist/chunks/{chunk.ENIWDDQM.js.map → chunk.HZO7PBWS.js.map} +0 -0
- /package/dist/chunks/{chunk.TUXUJQNE.js.map → chunk.IFV2P53O.js.map} +0 -0
- /package/dist/chunks/{chunk.3W5WLB2W.js.map → chunk.IKCNW223.js.map} +0 -0
- /package/dist/chunks/{chunk.MUNNAOL7.js.map → chunk.J6WNJGIB.js.map} +0 -0
- /package/dist/chunks/{chunk.DGWVBKVQ.js.map → chunk.JAP2ROD6.js.map} +0 -0
- /package/dist/chunks/{chunk.PTL5EHE2.js.map → chunk.JB6TLEKH.js.map} +0 -0
- /package/dist/chunks/{chunk.AB53B6S6.js.map → chunk.JHGIU4HZ.js.map} +0 -0
- /package/dist/chunks/{chunk.U6DSXUOD.js.map → chunk.JQDPM6DF.js.map} +0 -0
- /package/dist/chunks/{chunk.WMW67W6O.js.map → chunk.JYYVZLIU.js.map} +0 -0
- /package/dist/chunks/{chunk.A6VTKITH.js.map → chunk.K3PX643U.js.map} +0 -0
- /package/dist/chunks/{chunk.PL44V5ZN.js.map → chunk.K5DRZGPZ.js.map} +0 -0
- /package/dist/chunks/{chunk.S4WGPHPI.js.map → chunk.KAR4IGHT.js.map} +0 -0
- /package/dist/chunks/{chunk.6MAVQHAQ.js.map → chunk.KJBCZJ6K.js.map} +0 -0
- /package/dist/chunks/{chunk.NVCHSKXT.js.map → chunk.LPZXZR3T.js.map} +0 -0
- /package/dist/chunks/{chunk.VYZRA53Q.js.map → chunk.MAIIRSXZ.js.map} +0 -0
- /package/dist/chunks/{chunk.6GBQX53P.js.map → chunk.MTN5NM4A.js.map} +0 -0
- /package/dist/chunks/{chunk.N77SBPL2.js.map → chunk.MY2ALVF7.js.map} +0 -0
- /package/dist/chunks/{chunk.5VHNIBDU.js.map → chunk.N3KLCG35.js.map} +0 -0
- /package/dist/chunks/{chunk.JC5AWFFP.js.map → chunk.NQH6IYCA.js.map} +0 -0
- /package/dist/chunks/{chunk.XSEEVI2J.js.map → chunk.NRLJB73P.js.map} +0 -0
- /package/dist/chunks/{chunk.U6XAQJPR.js.map → chunk.NTTXYDYX.js.map} +0 -0
- /package/dist/chunks/{chunk.QOPTZNIB.js.map → chunk.OMZMY7WY.js.map} +0 -0
- /package/dist/chunks/{chunk.RUUBKVZ6.js.map → chunk.OQVWVZ4P.js.map} +0 -0
- /package/dist/chunks/{chunk.LRZAOEPL.js.map → chunk.OUISPKO2.js.map} +0 -0
- /package/dist/chunks/{chunk.6PI6RK7K.js.map → chunk.PE3G4I5L.js.map} +0 -0
- /package/dist/chunks/{chunk.OLLLH4LL.js.map → chunk.PKPTTKQA.js.map} +0 -0
- /package/dist/chunks/{chunk.4SQFOEOE.js.map → chunk.PMYJ4WQL.js.map} +0 -0
- /package/dist/chunks/{chunk.5I5NDOSG.js.map → chunk.PR66KI74.js.map} +0 -0
- /package/dist/chunks/{chunk.JTSBAJHO.js.map → chunk.QAQINAAG.js.map} +0 -0
- /package/dist/chunks/{chunk.6MHW7ADB.js.map → chunk.RK6NECYK.js.map} +0 -0
- /package/dist/chunks/{chunk.6NQJCMRV.js.map → chunk.RTQJFZK3.js.map} +0 -0
- /package/dist/chunks/{chunk.IQHT4LOD.js.map → chunk.S3ABDHZT.js.map} +0 -0
- /package/dist/chunks/{chunk.MIUZTY54.js.map → chunk.SIWLLQTA.js.map} +0 -0
- /package/dist/chunks/{chunk.U7HHAX7D.js.map → chunk.SLFOWP34.js.map} +0 -0
- /package/dist/chunks/{chunk.AR2VWYUT.js.map → chunk.SWCD3CKX.js.map} +0 -0
- /package/dist/chunks/{chunk.2SZWXVFA.js.map → chunk.TJPUKKXT.js.map} +0 -0
- /package/dist/chunks/{chunk.3YCLAIOK.js.map → chunk.U5UY5Y2W.js.map} +0 -0
- /package/dist/chunks/{chunk.EWKPIUFG.js.map → chunk.UHVW6WAA.js.map} +0 -0
- /package/dist/chunks/{chunk.ZZFSPIY6.js.map → chunk.UIFJKTEU.js.map} +0 -0
- /package/dist/chunks/{chunk.XAQBNXEG.js.map → chunk.UODJAGU2.js.map} +0 -0
- /package/dist/chunks/{chunk.NUIJATJY.js.map → chunk.V4H475OR.js.map} +0 -0
- /package/dist/chunks/{chunk.O5TBR2AC.js.map → chunk.V4K35JJY.js.map} +0 -0
- /package/dist/chunks/{chunk.5NVXYY67.js.map → chunk.VTWC6SZF.js.map} +0 -0
- /package/dist/chunks/{chunk.FYP6H2SW.js.map → chunk.WUSN4QJH.js.map} +0 -0
- /package/dist/chunks/{chunk.VMOGJPJ3.js.map → chunk.XAUVRHWG.js.map} +0 -0
- /package/dist/chunks/{chunk.2CJUSDAJ.js.map → chunk.XIAITA3R.js.map} +0 -0
- /package/dist/chunks/{chunk.BDNNAAVA.js.map → chunk.XYVSORCI.js.map} +0 -0
- /package/dist/chunks/{chunk.7TC5B32U.js.map → chunk.Y34UAFAN.js.map} +0 -0
- /package/dist/chunks/{chunk.5Q3QBE47.js.map → chunk.YDYA7L2E.js.map} +0 -0
- /package/dist/chunks/{chunk.QAHOIE5I.js.map → chunk.YF6FRUKX.js.map} +0 -0
- /package/dist/chunks/{chunk.U6FUTJ6Y.js.map → chunk.YSZZ3XZE.js.map} +0 -0
- /package/dist/chunks/{chunk.5QVULGQH.js.map → chunk.YYAC6H6O.js.map} +0 -0
- /package/dist/chunks/{chunk.2GFK6XTO.js.map → chunk.Z4XV3SMG.js.map} +0 -0
- /package/dist/chunks/{chunk.PXYWDJVG.js.map → chunk.Z634ODXV.js.map} +0 -0
- /package/dist/chunks/{chunk.CMFSCP6V.js.map → chunk.Z6TU6HAF.js.map} +0 -0
|
@@ -107,38 +107,6 @@
|
|
|
107
107
|
}
|
|
108
108
|
]
|
|
109
109
|
},
|
|
110
|
-
{
|
|
111
|
-
"name": "syn-breadcrumb-item",
|
|
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.",
|
|
113
|
-
"attributes": [
|
|
114
|
-
{
|
|
115
|
-
"name": "href",
|
|
116
|
-
"description": "Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\ninternally. When unset, a button will be rendered instead.",
|
|
117
|
-
"values": []
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "target",
|
|
121
|
-
"description": "Tells the browser where to open the link. Only used when `href` is set.",
|
|
122
|
-
"values": [
|
|
123
|
-
{ "name": "_blank" },
|
|
124
|
-
{ "name": "_parent" },
|
|
125
|
-
{ "name": "_self" },
|
|
126
|
-
{ "name": "_top" }
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"name": "rel",
|
|
131
|
-
"description": "The `rel` attribute to use on the link. Only used when `href` is set.",
|
|
132
|
-
"values": []
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
"references": [
|
|
136
|
-
{
|
|
137
|
-
"name": "Documentation",
|
|
138
|
-
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-breadcrumb-item--docs"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
110
|
{
|
|
143
111
|
"name": "syn-button",
|
|
144
112
|
"description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the button loses focus.\n- **syn-focus** - Emitted when the button 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 button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\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 button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<syn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
|
|
@@ -302,6 +270,38 @@
|
|
|
302
270
|
}
|
|
303
271
|
]
|
|
304
272
|
},
|
|
273
|
+
{
|
|
274
|
+
"name": "syn-breadcrumb-item",
|
|
275
|
+
"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.",
|
|
276
|
+
"attributes": [
|
|
277
|
+
{
|
|
278
|
+
"name": "href",
|
|
279
|
+
"description": "Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\ninternally. When unset, a button will be rendered instead.",
|
|
280
|
+
"values": []
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "target",
|
|
284
|
+
"description": "Tells the browser where to open the link. Only used when `href` is set.",
|
|
285
|
+
"values": [
|
|
286
|
+
{ "name": "_blank" },
|
|
287
|
+
{ "name": "_parent" },
|
|
288
|
+
{ "name": "_self" },
|
|
289
|
+
{ "name": "_top" }
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "rel",
|
|
294
|
+
"description": "The `rel` attribute to use on the link. Only used when `href` is set.",
|
|
295
|
+
"values": []
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"references": [
|
|
299
|
+
{
|
|
300
|
+
"name": "Documentation",
|
|
301
|
+
"url": "https://synergy-design-system.github.io/?path=/docs/components-syn-breadcrumb-item--docs"
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
305
|
{
|
|
306
306
|
"name": "syn-checkbox",
|
|
307
307
|
"description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox 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 - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\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. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **help-text** - Text that describes how to use the checkbox. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **form-control-help-text** - The help text's 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\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.",
|
|
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- **syn-clamp** - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.\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,6 +1060,25 @@
|
|
|
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` and `NumericStrategy.enableNumberFormat` is set to `true`.",
|
|
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` and `NumericStrategy.enableNumberFormat` is set to `true`.",
|
|
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- **enableNumberFormat**: If true, the input will format the value using a `NumberFormatter`.\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 - Advanced number formatting is enabled.\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
|
+
]
|
|
1063
1082
|
}
|
|
1064
1083
|
],
|
|
1065
1084
|
"references": [
|
package/package.json
CHANGED
|
@@ -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 { 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 *\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 // 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 || this.disabled) {\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 private handleChange() {\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 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 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 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 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 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.step as number)}\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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
|
-
{
|
|
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// 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 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 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 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": ";AAkIO,IAAM,kBAAsC;AAAA,EACjD,WAAW;AAAA,IACT,WAAW;AAAA,EACb;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,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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|