@synergy-design-system/components 2.30.1 → 2.31.0-numeric.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.UOY56ORY.js → chunk.2IWVCAEF.js} +2 -2
- package/dist/chunks/{chunk.2RAC47FN.js → chunk.2YBP4WEH.js} +2 -2
- package/dist/chunks/{chunk.KBBZYAPL.js → chunk.32CPGKWW.js} +8 -8
- package/dist/chunks/{chunk.NUIJATJY.js → chunk.33EV4VCU.js} +2 -2
- package/dist/chunks/{chunk.GAN4SEH5.js → chunk.57AK7CVM.js} +2 -2
- package/dist/chunks/{chunk.SZ73NMRJ.js → chunk.5CAP3G3X.js} +2 -2
- package/dist/chunks/{chunk.QVRCVDGA.js → chunk.5F6A2J5X.js} +2 -2
- package/dist/chunks/{chunk.3A4IZ7IM.js → chunk.5NGEDTDD.js} +12 -12
- package/dist/chunks/{chunk.PDDQXWQR.js → chunk.5OYRCRNV.js} +2 -2
- package/dist/chunks/{chunk.SWCGPDHW.js → chunk.63XQMHFQ.js} +2 -2
- package/dist/chunks/{chunk.QQ26YV6J.js → chunk.6EJPCDSL.js} +8 -8
- package/dist/chunks/{chunk.BMR7V4GF.js → chunk.6ETN74WB.js} +2 -2
- package/dist/chunks/{chunk.K36FG4W2.js → chunk.7BMEQKZX.js} +132 -10
- package/dist/chunks/chunk.7BMEQKZX.js.map +7 -0
- package/dist/chunks/{chunk.UTPP6KE2.js → chunk.7RHGZPLP.js} +2 -2
- package/dist/chunks/{chunk.ZDYMO5XT.js → chunk.7YATRHZN.js} +2 -2
- package/dist/chunks/{chunk.GOYGD46T.js → chunk.A4RVOFFP.js} +7 -7
- package/dist/chunks/{chunk.EEMCXA5G.js → chunk.A67AAALJ.js} +2 -2
- package/dist/chunks/{chunk.5WZOBIEX.js → chunk.AKBNSAMF.js} +9 -9
- package/dist/chunks/{chunk.762G3PEJ.js → chunk.AQWT2EI4.js} +6 -6
- package/dist/chunks/{chunk.HLQWQZQU.js → chunk.B6TTKFK2.js} +5 -5
- package/dist/chunks/{chunk.QX2JOWGH.js → chunk.BTS57O4V.js} +3 -3
- package/dist/chunks/{chunk.6AKLDG33.js → chunk.BWZMY7HG.js} +2 -2
- package/dist/chunks/{chunk.574KKJH2.js → chunk.CACKIXTX.js} +2 -2
- package/dist/chunks/{chunk.WASTXK4A.js → chunk.CEVNM6DM.js} +6 -6
- package/dist/chunks/{chunk.DG6GXAVF.js → chunk.CSBK2UIN.js} +6 -6
- package/dist/chunks/{chunk.B3D627OD.js → chunk.CVSFD3LB.js} +2 -2
- package/dist/chunks/{chunk.3TOKEYJ6.js → chunk.D7ZU5UFL.js} +2 -2
- package/dist/chunks/{chunk.AJW2D63L.js → chunk.DNNV6VLW.js} +2 -2
- package/dist/chunks/{chunk.JTSBAJHO.js → chunk.DSW34EOY.js} +2 -2
- package/dist/chunks/{chunk.AQHRP3JF.js → chunk.E257OZYA.js} +2 -2
- package/dist/chunks/{chunk.YSRREAXX.js → chunk.EC3AIWPK.js} +3 -3
- package/dist/chunks/{chunk.Y5RGUISY.js → chunk.EDVAO5KD.js} +2 -2
- package/dist/chunks/{chunk.TX2PDRBM.js → chunk.EZDB5RU7.js} +3 -3
- package/dist/chunks/{chunk.46CKMKX5.js → chunk.FAVMXFQL.js} +3 -3
- package/dist/chunks/{chunk.HI3CSD4O.js → chunk.FEKYKC4C.js} +2 -2
- package/dist/chunks/{chunk.WA7EKCMV.js → chunk.FO5F6LKG.js} +2 -2
- package/dist/chunks/{chunk.M6OBVNV5.js → chunk.GCQLCTYL.js} +2 -2
- package/dist/chunks/{chunk.SFIQJMJV.js → chunk.GD33VPEE.js} +2 -2
- package/dist/chunks/{chunk.T4IRZQY2.js → chunk.GRA6PMZZ.js} +2 -2
- package/dist/chunks/{chunk.5PKVCNHM.js → chunk.HIF4ZQ35.js} +8 -8
- package/dist/chunks/{chunk.CILTVCBQ.js → chunk.HZHIIS2I.js} +7 -7
- package/dist/chunks/{chunk.FGAEUKVN.js → chunk.IB6CAJFE.js} +2 -2
- package/dist/chunks/{chunk.NHGNW7PA.js → chunk.IDS32BVD.js} +7 -7
- package/dist/chunks/{chunk.OH3PPVV4.js → chunk.IJ7VHZFK.js} +11 -1
- package/dist/chunks/chunk.IJ7VHZFK.js.map +7 -0
- package/dist/chunks/{chunk.E4QLMZHL.js → chunk.ILHF3ABL.js} +2 -2
- package/dist/chunks/{chunk.IQGYOOWV.js → chunk.IO36YFGG.js} +2 -2
- package/dist/chunks/{chunk.63LZB375.js → chunk.J75DWM6J.js} +2 -2
- package/dist/chunks/{chunk.EFJD5CZ6.js → chunk.JJ3OBG7Q.js} +2 -2
- package/dist/chunks/{chunk.HWNTLXRL.js → chunk.JJI5CPOB.js} +4 -4
- package/dist/chunks/{chunk.FITEZWTQ.js → chunk.K3XDXZW2.js} +2 -2
- package/dist/chunks/{chunk.FITEZWTQ.js.map → chunk.K3XDXZW2.js.map} +1 -1
- package/dist/chunks/{chunk.OJFEU2LY.js → chunk.KITRO6XO.js} +2 -2
- package/dist/chunks/{chunk.2RXN2SCD.js → chunk.KMAFFDJZ.js} +6 -6
- package/dist/chunks/{chunk.RAU2GK6I.js → chunk.KTCGXZQ4.js} +4 -4
- package/dist/chunks/{chunk.YU2PZ5EK.js → chunk.KXU56SNB.js} +2 -2
- package/dist/chunks/{chunk.NDIBJ6JI.js → chunk.LW362SOH.js} +6 -6
- package/dist/chunks/{chunk.2GXRGBN3.js → chunk.M25XYM73.js} +2 -2
- package/dist/chunks/{chunk.FJSVF4A2.js → chunk.MRQZD5TX.js} +2 -2
- package/dist/chunks/{chunk.QHPOPKTJ.js → chunk.N42HYZ3J.js} +6 -6
- package/dist/chunks/{chunk.KLZ5NK2C.js → chunk.N7EVNHYR.js} +2 -2
- package/dist/chunks/{chunk.5ZRFAVKG.js → chunk.NYCKYU42.js} +2 -2
- package/dist/chunks/{chunk.3ZXMZDAX.js → chunk.OLPCSVVL.js} +2 -2
- package/dist/chunks/{chunk.XA4EOA25.js → chunk.OM47S5WL.js} +6 -6
- package/dist/chunks/{chunk.3JKMMYX3.js → chunk.OQHYWXRI.js} +2 -2
- package/dist/chunks/{chunk.2HPEABF4.js → chunk.PGRPK5CM.js} +2 -2
- package/dist/chunks/{chunk.D36G42T7.js → chunk.PJSCG4YE.js} +4 -4
- package/dist/chunks/{chunk.6ZCQFVOC.js → chunk.PK3IARAB.js} +2 -2
- package/dist/chunks/{chunk.AP55JRQ3.js → chunk.POR4YXBM.js} +2 -2
- package/dist/chunks/{chunk.IZBTM55D.js → chunk.PQFT5ON4.js} +2 -2
- package/dist/chunks/{chunk.UKYLRMT2.js → chunk.Q3DVGFDB.js} +2 -2
- package/dist/chunks/{chunk.D6UYGOT5.js → chunk.Q7BW6KKX.js} +2 -2
- package/dist/chunks/{chunk.FHND52A3.js → chunk.QVS5TYTR.js} +4 -4
- package/dist/chunks/{chunk.QOP6ET4B.js → chunk.QWO6FDBH.js} +2 -2
- package/dist/chunks/{chunk.JP4QSX7M.js → chunk.RCZVZKH3.js} +2 -2
- package/dist/chunks/{chunk.IXSDGMHS.js → chunk.RFWHBKPI.js} +2 -2
- package/dist/chunks/{chunk.U3CL2TPE.js → chunk.RPIHGLAB.js} +2 -2
- package/dist/chunks/{chunk.532L4VKN.js → chunk.RZ4YAAAL.js} +2 -2
- package/dist/chunks/{chunk.QJPMVHQX.js → chunk.S5LABDRE.js} +2 -2
- package/dist/chunks/{chunk.6OVQULWC.js → chunk.SEMT32CO.js} +9 -9
- package/dist/chunks/{chunk.PRJ3FJGJ.js → chunk.SFECHRNT.js} +3 -3
- package/dist/chunks/{chunk.WIZJDLTC.js → chunk.TB7FVSDL.js} +2 -2
- package/dist/chunks/{chunk.BRFSQ5UO.js → chunk.THIOHUU2.js} +2 -2
- package/dist/chunks/{chunk.USSHF6CO.js → chunk.TLCX6C3Y.js} +2 -2
- package/dist/chunks/{chunk.GYSYAXFI.js → chunk.U23YWMIX.js} +3 -3
- package/dist/chunks/{chunk.R3THZVHP.js → chunk.U3WTJD4D.js} +2 -2
- package/dist/chunks/chunk.UBAW2LID.js +23 -0
- package/dist/chunks/chunk.UBAW2LID.js.map +7 -0
- package/dist/chunks/{chunk.ZUQIXELH.js → chunk.UKCQF4MT.js} +2 -2
- package/dist/chunks/{chunk.E6OUQFF4.js → chunk.UT46BUBN.js} +2 -2
- package/dist/chunks/{chunk.GTFKE4JG.js → chunk.UZFE4ZK6.js} +2 -2
- package/dist/chunks/{chunk.NPAGHPJZ.js → chunk.VE2GLMIO.js} +2 -2
- package/dist/chunks/{chunk.NUYZREPZ.js → chunk.W42P6ZZU.js} +7 -7
- package/dist/chunks/{chunk.JCJ64TPZ.js → chunk.WBSH7WXZ.js} +2 -2
- package/dist/chunks/{chunk.2X3APD3V.js → chunk.WFR4RMWT.js} +4 -4
- package/dist/chunks/{chunk.JQADLKNT.js → chunk.WIVZPX4Q.js} +8 -8
- package/dist/chunks/{chunk.BOBXDVSO.js → chunk.XZFEDMD4.js} +6 -6
- package/dist/chunks/{chunk.UKUUCUD7.js → chunk.YJJGWT72.js} +6 -6
- package/dist/chunks/{chunk.A4FID4OH.js → chunk.Z63ESAY4.js} +2 -2
- package/dist/chunks/{chunk.RYQHOPIY.js → chunk.ZIDEDWYN.js} +2 -2
- package/dist/chunks/{chunk.MDKD6I5N.js → chunk.ZK7XTPJN.js} +9 -9
- package/dist/chunks/{chunk.X3CFZAHW.js → chunk.ZKHYDNLC.js} +2 -2
- package/dist/components/accordion/accordion.component.js +7 -6
- package/dist/components/accordion/accordion.js +8 -7
- package/dist/components/alert/alert.component.js +12 -11
- package/dist/components/alert/alert.js +13 -12
- package/dist/components/badge/badge.component.js +8 -7
- package/dist/components/badge/badge.js +9 -8
- package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.js +8 -8
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +10 -9
- package/dist/components/button/button.js +11 -10
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +7 -6
- package/dist/components/checkbox/checkbox.js +8 -7
- package/dist/components/combobox/combobox.component.js +11 -10
- package/dist/components/combobox/combobox.js +12 -11
- package/dist/components/details/details.component.js +9 -8
- package/dist/components/details/details.js +10 -9
- package/dist/components/dialog/dialog.component.js +10 -9
- package/dist/components/dialog/dialog.js +11 -10
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +10 -9
- package/dist/components/drawer/drawer.js +11 -10
- package/dist/components/dropdown/dropdown.component.js +4 -4
- package/dist/components/dropdown/dropdown.js +5 -5
- package/dist/components/file/file.component.js +11 -10
- package/dist/components/file/file.js +12 -11
- package/dist/components/header/header.component.js +6 -6
- package/dist/components/header/header.js +7 -7
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +7 -6
- package/dist/components/icon-button/icon-button.js +8 -7
- package/dist/components/input/input.component.d.ts +29 -0
- package/dist/components/input/input.component.js +10 -9
- package/dist/components/input/input.js +11 -10
- package/dist/components/input/strategies.d.ts +61 -0
- package/dist/components/input/strategies.js +12 -0
- package/dist/components/input/strategies.js.map +7 -0
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- package/dist/components/menu-label/menu-label.component.js +3 -3
- package/dist/components/menu-label/menu-label.js +4 -4
- package/dist/components/nav-item/nav-item.component.js +3 -3
- package/dist/components/nav-item/nav-item.js +4 -4
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/prio-nav/prio-nav.component.js +10 -10
- package/dist/components/prio-nav/prio-nav.js +11 -11
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/radio/radio.component.js +7 -6
- package/dist/components/radio/radio.js +8 -7
- package/dist/components/radio-button/radio-button.component.js +6 -5
- package/dist/components/radio-button/radio-button.js +7 -6
- package/dist/components/radio-group/radio-group.component.js +7 -6
- package/dist/components/radio-group/radio-group.js +8 -7
- package/dist/components/range/range.component.js +10 -9
- package/dist/components/range/range.js +11 -10
- package/dist/components/range-tick/range-tick.component.js +2 -2
- package/dist/components/range-tick/range-tick.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/select/select.component.js +12 -11
- package/dist/components/select/select.js +13 -12
- package/dist/components/side-nav/side-nav.component.js +12 -11
- package/dist/components/side-nav/side-nav.js +13 -12
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/switch/switch.component.js +6 -5
- package/dist/components/switch/switch.js +7 -6
- package/dist/components/tab/tab.component.js +10 -9
- package/dist/components/tab/tab.js +11 -10
- package/dist/components/tab-group/tab-group.component.js +11 -10
- package/dist/components/tab-group/tab-group.js +12 -11
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tag/tag.component.js +10 -9
- package/dist/components/tag/tag.js +11 -10
- package/dist/components/textarea/textarea.component.js +6 -5
- package/dist/components/textarea/textarea.js +7 -6
- package/dist/components/tooltip/tooltip.component.js +4 -4
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/components/validate/utility.js +2 -2
- package/dist/components/validate/validate.component.js +14 -13
- package/dist/components/validate/validate.js +15 -14
- package/dist/custom-elements.json +618 -579
- 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.js +143 -142
- package/dist/utilities/defaultSettings/base.d.ts +3 -0
- package/dist/utilities/defaultSettings/base.js +2 -1
- package/dist/utilities/defaultSettings/decorator.js +4 -3
- package/dist/utilities/defaultSettings/functions.js +3 -2
- package/dist/utilities/defaultSettings/index.js +4 -3
- package/dist/vscode.html-custom-data.json +85 -76
- package/package.json +3 -3
- package/dist/chunks/chunk.K36FG4W2.js.map +0 -7
- package/dist/chunks/chunk.OH3PPVV4.js.map +0 -7
- /package/dist/chunks/{chunk.UOY56ORY.js.map → chunk.2IWVCAEF.js.map} +0 -0
- /package/dist/chunks/{chunk.2RAC47FN.js.map → chunk.2YBP4WEH.js.map} +0 -0
- /package/dist/chunks/{chunk.KBBZYAPL.js.map → chunk.32CPGKWW.js.map} +0 -0
- /package/dist/chunks/{chunk.NUIJATJY.js.map → chunk.33EV4VCU.js.map} +0 -0
- /package/dist/chunks/{chunk.GAN4SEH5.js.map → chunk.57AK7CVM.js.map} +0 -0
- /package/dist/chunks/{chunk.SZ73NMRJ.js.map → chunk.5CAP3G3X.js.map} +0 -0
- /package/dist/chunks/{chunk.QVRCVDGA.js.map → chunk.5F6A2J5X.js.map} +0 -0
- /package/dist/chunks/{chunk.3A4IZ7IM.js.map → chunk.5NGEDTDD.js.map} +0 -0
- /package/dist/chunks/{chunk.PDDQXWQR.js.map → chunk.5OYRCRNV.js.map} +0 -0
- /package/dist/chunks/{chunk.SWCGPDHW.js.map → chunk.63XQMHFQ.js.map} +0 -0
- /package/dist/chunks/{chunk.QQ26YV6J.js.map → chunk.6EJPCDSL.js.map} +0 -0
- /package/dist/chunks/{chunk.BMR7V4GF.js.map → chunk.6ETN74WB.js.map} +0 -0
- /package/dist/chunks/{chunk.UTPP6KE2.js.map → chunk.7RHGZPLP.js.map} +0 -0
- /package/dist/chunks/{chunk.ZDYMO5XT.js.map → chunk.7YATRHZN.js.map} +0 -0
- /package/dist/chunks/{chunk.GOYGD46T.js.map → chunk.A4RVOFFP.js.map} +0 -0
- /package/dist/chunks/{chunk.EEMCXA5G.js.map → chunk.A67AAALJ.js.map} +0 -0
- /package/dist/chunks/{chunk.5WZOBIEX.js.map → chunk.AKBNSAMF.js.map} +0 -0
- /package/dist/chunks/{chunk.762G3PEJ.js.map → chunk.AQWT2EI4.js.map} +0 -0
- /package/dist/chunks/{chunk.HLQWQZQU.js.map → chunk.B6TTKFK2.js.map} +0 -0
- /package/dist/chunks/{chunk.QX2JOWGH.js.map → chunk.BTS57O4V.js.map} +0 -0
- /package/dist/chunks/{chunk.6AKLDG33.js.map → chunk.BWZMY7HG.js.map} +0 -0
- /package/dist/chunks/{chunk.574KKJH2.js.map → chunk.CACKIXTX.js.map} +0 -0
- /package/dist/chunks/{chunk.WASTXK4A.js.map → chunk.CEVNM6DM.js.map} +0 -0
- /package/dist/chunks/{chunk.DG6GXAVF.js.map → chunk.CSBK2UIN.js.map} +0 -0
- /package/dist/chunks/{chunk.B3D627OD.js.map → chunk.CVSFD3LB.js.map} +0 -0
- /package/dist/chunks/{chunk.3TOKEYJ6.js.map → chunk.D7ZU5UFL.js.map} +0 -0
- /package/dist/chunks/{chunk.AJW2D63L.js.map → chunk.DNNV6VLW.js.map} +0 -0
- /package/dist/chunks/{chunk.JTSBAJHO.js.map → chunk.DSW34EOY.js.map} +0 -0
- /package/dist/chunks/{chunk.AQHRP3JF.js.map → chunk.E257OZYA.js.map} +0 -0
- /package/dist/chunks/{chunk.YSRREAXX.js.map → chunk.EC3AIWPK.js.map} +0 -0
- /package/dist/chunks/{chunk.Y5RGUISY.js.map → chunk.EDVAO5KD.js.map} +0 -0
- /package/dist/chunks/{chunk.TX2PDRBM.js.map → chunk.EZDB5RU7.js.map} +0 -0
- /package/dist/chunks/{chunk.46CKMKX5.js.map → chunk.FAVMXFQL.js.map} +0 -0
- /package/dist/chunks/{chunk.HI3CSD4O.js.map → chunk.FEKYKC4C.js.map} +0 -0
- /package/dist/chunks/{chunk.WA7EKCMV.js.map → chunk.FO5F6LKG.js.map} +0 -0
- /package/dist/chunks/{chunk.M6OBVNV5.js.map → chunk.GCQLCTYL.js.map} +0 -0
- /package/dist/chunks/{chunk.SFIQJMJV.js.map → chunk.GD33VPEE.js.map} +0 -0
- /package/dist/chunks/{chunk.T4IRZQY2.js.map → chunk.GRA6PMZZ.js.map} +0 -0
- /package/dist/chunks/{chunk.5PKVCNHM.js.map → chunk.HIF4ZQ35.js.map} +0 -0
- /package/dist/chunks/{chunk.CILTVCBQ.js.map → chunk.HZHIIS2I.js.map} +0 -0
- /package/dist/chunks/{chunk.FGAEUKVN.js.map → chunk.IB6CAJFE.js.map} +0 -0
- /package/dist/chunks/{chunk.NHGNW7PA.js.map → chunk.IDS32BVD.js.map} +0 -0
- /package/dist/chunks/{chunk.E4QLMZHL.js.map → chunk.ILHF3ABL.js.map} +0 -0
- /package/dist/chunks/{chunk.IQGYOOWV.js.map → chunk.IO36YFGG.js.map} +0 -0
- /package/dist/chunks/{chunk.63LZB375.js.map → chunk.J75DWM6J.js.map} +0 -0
- /package/dist/chunks/{chunk.EFJD5CZ6.js.map → chunk.JJ3OBG7Q.js.map} +0 -0
- /package/dist/chunks/{chunk.HWNTLXRL.js.map → chunk.JJI5CPOB.js.map} +0 -0
- /package/dist/chunks/{chunk.OJFEU2LY.js.map → chunk.KITRO6XO.js.map} +0 -0
- /package/dist/chunks/{chunk.2RXN2SCD.js.map → chunk.KMAFFDJZ.js.map} +0 -0
- /package/dist/chunks/{chunk.RAU2GK6I.js.map → chunk.KTCGXZQ4.js.map} +0 -0
- /package/dist/chunks/{chunk.YU2PZ5EK.js.map → chunk.KXU56SNB.js.map} +0 -0
- /package/dist/chunks/{chunk.NDIBJ6JI.js.map → chunk.LW362SOH.js.map} +0 -0
- /package/dist/chunks/{chunk.2GXRGBN3.js.map → chunk.M25XYM73.js.map} +0 -0
- /package/dist/chunks/{chunk.FJSVF4A2.js.map → chunk.MRQZD5TX.js.map} +0 -0
- /package/dist/chunks/{chunk.QHPOPKTJ.js.map → chunk.N42HYZ3J.js.map} +0 -0
- /package/dist/chunks/{chunk.KLZ5NK2C.js.map → chunk.N7EVNHYR.js.map} +0 -0
- /package/dist/chunks/{chunk.5ZRFAVKG.js.map → chunk.NYCKYU42.js.map} +0 -0
- /package/dist/chunks/{chunk.3ZXMZDAX.js.map → chunk.OLPCSVVL.js.map} +0 -0
- /package/dist/chunks/{chunk.XA4EOA25.js.map → chunk.OM47S5WL.js.map} +0 -0
- /package/dist/chunks/{chunk.3JKMMYX3.js.map → chunk.OQHYWXRI.js.map} +0 -0
- /package/dist/chunks/{chunk.2HPEABF4.js.map → chunk.PGRPK5CM.js.map} +0 -0
- /package/dist/chunks/{chunk.D36G42T7.js.map → chunk.PJSCG4YE.js.map} +0 -0
- /package/dist/chunks/{chunk.6ZCQFVOC.js.map → chunk.PK3IARAB.js.map} +0 -0
- /package/dist/chunks/{chunk.AP55JRQ3.js.map → chunk.POR4YXBM.js.map} +0 -0
- /package/dist/chunks/{chunk.IZBTM55D.js.map → chunk.PQFT5ON4.js.map} +0 -0
- /package/dist/chunks/{chunk.UKYLRMT2.js.map → chunk.Q3DVGFDB.js.map} +0 -0
- /package/dist/chunks/{chunk.D6UYGOT5.js.map → chunk.Q7BW6KKX.js.map} +0 -0
- /package/dist/chunks/{chunk.FHND52A3.js.map → chunk.QVS5TYTR.js.map} +0 -0
- /package/dist/chunks/{chunk.QOP6ET4B.js.map → chunk.QWO6FDBH.js.map} +0 -0
- /package/dist/chunks/{chunk.JP4QSX7M.js.map → chunk.RCZVZKH3.js.map} +0 -0
- /package/dist/chunks/{chunk.IXSDGMHS.js.map → chunk.RFWHBKPI.js.map} +0 -0
- /package/dist/chunks/{chunk.U3CL2TPE.js.map → chunk.RPIHGLAB.js.map} +0 -0
- /package/dist/chunks/{chunk.532L4VKN.js.map → chunk.RZ4YAAAL.js.map} +0 -0
- /package/dist/chunks/{chunk.QJPMVHQX.js.map → chunk.S5LABDRE.js.map} +0 -0
- /package/dist/chunks/{chunk.6OVQULWC.js.map → chunk.SEMT32CO.js.map} +0 -0
- /package/dist/chunks/{chunk.PRJ3FJGJ.js.map → chunk.SFECHRNT.js.map} +0 -0
- /package/dist/chunks/{chunk.WIZJDLTC.js.map → chunk.TB7FVSDL.js.map} +0 -0
- /package/dist/chunks/{chunk.BRFSQ5UO.js.map → chunk.THIOHUU2.js.map} +0 -0
- /package/dist/chunks/{chunk.USSHF6CO.js.map → chunk.TLCX6C3Y.js.map} +0 -0
- /package/dist/chunks/{chunk.GYSYAXFI.js.map → chunk.U23YWMIX.js.map} +0 -0
- /package/dist/chunks/{chunk.R3THZVHP.js.map → chunk.U3WTJD4D.js.map} +0 -0
- /package/dist/chunks/{chunk.ZUQIXELH.js.map → chunk.UKCQF4MT.js.map} +0 -0
- /package/dist/chunks/{chunk.E6OUQFF4.js.map → chunk.UT46BUBN.js.map} +0 -0
- /package/dist/chunks/{chunk.GTFKE4JG.js.map → chunk.UZFE4ZK6.js.map} +0 -0
- /package/dist/chunks/{chunk.NPAGHPJZ.js.map → chunk.VE2GLMIO.js.map} +0 -0
- /package/dist/chunks/{chunk.NUYZREPZ.js.map → chunk.W42P6ZZU.js.map} +0 -0
- /package/dist/chunks/{chunk.JCJ64TPZ.js.map → chunk.WBSH7WXZ.js.map} +0 -0
- /package/dist/chunks/{chunk.2X3APD3V.js.map → chunk.WFR4RMWT.js.map} +0 -0
- /package/dist/chunks/{chunk.JQADLKNT.js.map → chunk.WIVZPX4Q.js.map} +0 -0
- /package/dist/chunks/{chunk.BOBXDVSO.js.map → chunk.XZFEDMD4.js.map} +0 -0
- /package/dist/chunks/{chunk.UKUUCUD7.js.map → chunk.YJJGWT72.js.map} +0 -0
- /package/dist/chunks/{chunk.A4FID4OH.js.map → chunk.Z63ESAY4.js.map} +0 -0
- /package/dist/chunks/{chunk.RYQHOPIY.js.map → chunk.ZIDEDWYN.js.map} +0 -0
- /package/dist/chunks/{chunk.MDKD6I5N.js.map → chunk.ZK7XTPJN.js.map} +0 -0
- /package/dist/chunks/{chunk.X3CFZAHW.js.map → chunk.ZKHYDNLC.js.map} +0 -0
|
@@ -67,6 +67,23 @@
|
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"name": "syn-breadcrumb",
|
|
72
|
+
"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.",
|
|
73
|
+
"attributes": [
|
|
74
|
+
{
|
|
75
|
+
"name": "label",
|
|
76
|
+
"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.",
|
|
77
|
+
"values": []
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"references": [
|
|
81
|
+
{
|
|
82
|
+
"name": "Documentation",
|
|
83
|
+
"url": "https://synergy.style/components/breadcrumb"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
70
87
|
{
|
|
71
88
|
"name": "syn-badge",
|
|
72
89
|
"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.",
|
|
@@ -90,23 +107,6 @@
|
|
|
90
107
|
}
|
|
91
108
|
]
|
|
92
109
|
},
|
|
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.style/components/breadcrumb"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
110
|
{
|
|
111
111
|
"name": "syn-breadcrumb-item",
|
|
112
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.",
|
|
@@ -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,15 @@
|
|
|
1060
1060
|
{ "name": "email" },
|
|
1061
1061
|
{ "name": "url" }
|
|
1062
1062
|
]
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"name": "numeric-strategy",
|
|
1066
|
+
"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`!",
|
|
1067
|
+
"values": [
|
|
1068
|
+
{ "name": "native" },
|
|
1069
|
+
{ "name": "modern" },
|
|
1070
|
+
{ "name": "Partial<NumericStrategy>" }
|
|
1071
|
+
]
|
|
1063
1072
|
}
|
|
1064
1073
|
],
|
|
1065
1074
|
"references": [
|
|
@@ -1813,6 +1822,38 @@
|
|
|
1813
1822
|
}
|
|
1814
1823
|
]
|
|
1815
1824
|
},
|
|
1825
|
+
{
|
|
1826
|
+
"name": "syn-tab",
|
|
1827
|
+
"description": "Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel).\n---\n\n\n### **Events:**\n - **syn-close** - Emitted when the tab is closable and the close button is activated.\n\n### **Slots:**\n - _default_ - The tab's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **close-button** - The close button, an `<syn-icon-button>`.\n- **close-button__base** - The close button's exported `base` part.",
|
|
1828
|
+
"attributes": [
|
|
1829
|
+
{
|
|
1830
|
+
"name": "panel",
|
|
1831
|
+
"description": "The name of the tab panel this tab is associated with. The panel must be located in the same tab group.",
|
|
1832
|
+
"values": []
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"name": "active",
|
|
1836
|
+
"description": "Draws the tab in an active state.",
|
|
1837
|
+
"values": []
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"name": "closable",
|
|
1841
|
+
"description": "Makes the tab closable and shows a close button.",
|
|
1842
|
+
"values": []
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
"name": "disabled",
|
|
1846
|
+
"description": "Disables the tab and prevents selection.",
|
|
1847
|
+
"values": []
|
|
1848
|
+
}
|
|
1849
|
+
],
|
|
1850
|
+
"references": [
|
|
1851
|
+
{
|
|
1852
|
+
"name": "Documentation",
|
|
1853
|
+
"url": "https://synergy.style/components/tab"
|
|
1854
|
+
}
|
|
1855
|
+
]
|
|
1856
|
+
},
|
|
1816
1857
|
{
|
|
1817
1858
|
"name": "syn-switch",
|
|
1818
1859
|
"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.",
|
|
@@ -1870,38 +1911,6 @@
|
|
|
1870
1911
|
}
|
|
1871
1912
|
]
|
|
1872
1913
|
},
|
|
1873
|
-
{
|
|
1874
|
-
"name": "syn-tab",
|
|
1875
|
-
"description": "Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel).\n---\n\n\n### **Events:**\n - **syn-close** - Emitted when the tab is closable and the close button is activated.\n\n### **Slots:**\n - _default_ - The tab's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **close-button** - The close button, an `<syn-icon-button>`.\n- **close-button__base** - The close button's exported `base` part.",
|
|
1876
|
-
"attributes": [
|
|
1877
|
-
{
|
|
1878
|
-
"name": "panel",
|
|
1879
|
-
"description": "The name of the tab panel this tab is associated with. The panel must be located in the same tab group.",
|
|
1880
|
-
"values": []
|
|
1881
|
-
},
|
|
1882
|
-
{
|
|
1883
|
-
"name": "active",
|
|
1884
|
-
"description": "Draws the tab in an active state.",
|
|
1885
|
-
"values": []
|
|
1886
|
-
},
|
|
1887
|
-
{
|
|
1888
|
-
"name": "closable",
|
|
1889
|
-
"description": "Makes the tab closable and shows a close button.",
|
|
1890
|
-
"values": []
|
|
1891
|
-
},
|
|
1892
|
-
{
|
|
1893
|
-
"name": "disabled",
|
|
1894
|
-
"description": "Disables the tab and prevents selection.",
|
|
1895
|
-
"values": []
|
|
1896
|
-
}
|
|
1897
|
-
],
|
|
1898
|
-
"references": [
|
|
1899
|
-
{
|
|
1900
|
-
"name": "Documentation",
|
|
1901
|
-
"url": "https://synergy.style/components/tab"
|
|
1902
|
-
}
|
|
1903
|
-
]
|
|
1904
|
-
},
|
|
1905
1914
|
{
|
|
1906
1915
|
"name": "syn-tab-group",
|
|
1907
1916
|
"description": "Tab groups organize content into a container that shows one section at a time.\n---\n\n\n### **Events:**\n - **syn-tab-show** - Emitted when a tab is shown. The payload of the event returns the \"panel\" attribute of the shown tab.\n- **syn-tab-hide** - Emitted when a tab is hidden. The payload of the event returns the \"panel\" attribute of the hidden tab.\n\n### **Methods:**\n - **show(panel: _string_)** - Shows the specified tab panel.\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be `<syn-tab-panel>` elements.\n- **nav** - Used for grouping tabs in the tab group. Must be `<syn-tab>` elements.\n\n### **CSS Properties:**\n - **--indicator-color** - The color of the active tab indicator. _(default: undefined)_\n- **--indicator-width** - The width of the active tab indicator. _(default: undefined)_\n- **--track-color** - The color of the indicator's track (the line that separates tabs from panels). _(default: undefined)_\n- **--track-width** - The width of the indicator's track (the line that separates tabs from panels). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **nav** - The tab group's navigation container where tabs are slotted in.\n- **tabs** - The container that wraps the tabs.\n- **active-tab-indicator** - The line that highlights the currently selected tab.\n- **body** - The tab group's body where tab panels are slotted in.\n- **scroll-button** - The previous/next scroll buttons that show when tabs are scrollable, an `<syn-icon-button>`.\n- **scroll-button--start** - The starting scroll button.\n- **scroll-button--end** - The ending scroll button.\n- **scroll-button__base** - The scroll button's exported `base` part.",
|
|
@@ -1966,32 +1975,6 @@
|
|
|
1966
1975
|
}
|
|
1967
1976
|
]
|
|
1968
1977
|
},
|
|
1969
|
-
{
|
|
1970
|
-
"name": "syn-tag",
|
|
1971
|
-
"description": "Tags are used as labels to organize things or to indicate a selection.\n---\n\n\n### **Events:**\n - **syn-remove** - Emitted when the remove button is activated.\n\n### **Slots:**\n - _default_ - The tag's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - The tag's content.\n- **remove-button** - The tag's remove button, an `<syn-icon-button>`.\n- **remove-button__base** - The remove button's exported `base` part.",
|
|
1972
|
-
"attributes": [
|
|
1973
|
-
{
|
|
1974
|
-
"name": "size",
|
|
1975
|
-
"description": "The tag's size.",
|
|
1976
|
-
"values": [
|
|
1977
|
-
{ "name": "small" },
|
|
1978
|
-
{ "name": "medium" },
|
|
1979
|
-
{ "name": "large" }
|
|
1980
|
-
]
|
|
1981
|
-
},
|
|
1982
|
-
{
|
|
1983
|
-
"name": "removable",
|
|
1984
|
-
"description": "Makes the tag removable and shows a remove button.",
|
|
1985
|
-
"values": []
|
|
1986
|
-
}
|
|
1987
|
-
],
|
|
1988
|
-
"references": [
|
|
1989
|
-
{
|
|
1990
|
-
"name": "Documentation",
|
|
1991
|
-
"url": "https://synergy.style/components/tag"
|
|
1992
|
-
}
|
|
1993
|
-
]
|
|
1994
|
-
},
|
|
1995
1978
|
{
|
|
1996
1979
|
"name": "syn-textarea",
|
|
1997
1980
|
"description": "Textareas collect data from the user and allow multiple lines of text.\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-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 textarea.\n- **blur()** - Removes focus from the textarea.\n- **select()** - Selects all the text in the textarea.\n- **scrollPosition(position: _{ top?: number; left?: number }_): _{ top: number; left: number } | undefined_** - Gets or sets the textarea's scroll position.\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- **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 textarea's label. Alternatively, you can use the `label` attribute.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\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- **textarea** - The internal `<textarea>` control.",
|
|
@@ -2208,6 +2191,32 @@
|
|
|
2208
2191
|
}
|
|
2209
2192
|
]
|
|
2210
2193
|
},
|
|
2194
|
+
{
|
|
2195
|
+
"name": "syn-tag",
|
|
2196
|
+
"description": "Tags are used as labels to organize things or to indicate a selection.\n---\n\n\n### **Events:**\n - **syn-remove** - Emitted when the remove button is activated.\n\n### **Slots:**\n - _default_ - The tag's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - The tag's content.\n- **remove-button** - The tag's remove button, an `<syn-icon-button>`.\n- **remove-button__base** - The remove button's exported `base` part.",
|
|
2197
|
+
"attributes": [
|
|
2198
|
+
{
|
|
2199
|
+
"name": "size",
|
|
2200
|
+
"description": "The tag's size.",
|
|
2201
|
+
"values": [
|
|
2202
|
+
{ "name": "small" },
|
|
2203
|
+
{ "name": "medium" },
|
|
2204
|
+
{ "name": "large" }
|
|
2205
|
+
]
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"name": "removable",
|
|
2209
|
+
"description": "Makes the tag removable and shows a remove button.",
|
|
2210
|
+
"values": []
|
|
2211
|
+
}
|
|
2212
|
+
],
|
|
2213
|
+
"references": [
|
|
2214
|
+
{
|
|
2215
|
+
"name": "Documentation",
|
|
2216
|
+
"url": "https://synergy.style/components/tag"
|
|
2217
|
+
}
|
|
2218
|
+
]
|
|
2219
|
+
},
|
|
2211
2220
|
{
|
|
2212
2221
|
"name": "syn-validate",
|
|
2213
2222
|
"description": "Validate provides form field validation messages in a unified way.\nIt does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\nand showing the validation message in a consistent, user defined way.\n---\n\n\n### **Methods:**\n - **getValidity()** - Returns the validity state of the input component.\n`true` for valid and `false` for invalid.\n\n### **Slots:**\n - _default_ - The form field that should be validated. Avoid slotting in more than one element, as subsequent ones will be ignored.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **input-wrapper** - The container that wraps the form field.\n- **alert** - The syn-alert that is shown when the variant is set to \"inline\".\n- **alert__base** - The container that wraps the alert.\n- **alert__message** - The container that wraps the alert message.\n- **alert__icon** - The container that wraps the alert icon.",
|
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.
|
|
7
|
+
"version": "2.31.0-numeric.1",
|
|
8
8
|
"description": "",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"user-agent-data-types": "^0.4.2",
|
|
102
102
|
"vendorism": "^5.0.0",
|
|
103
103
|
"@synergy-design-system/eslint-config-syn": "0.1.0",
|
|
104
|
-
"@synergy-design-system/
|
|
105
|
-
"@synergy-design-system/
|
|
104
|
+
"@synergy-design-system/tokens": "2.18.1",
|
|
105
|
+
"@synergy-design-system/stylelint-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/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.style/components/input\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() 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/synergy-design-system/synergy/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,UAAI,MAAM,WAAW,KAAK,KAAK,KAAK,UAAU;AAC5C;AAAA,MACF;AACA,WAAK,wBAAwB,KAAK;AAAA,IACpC;AAiCA,SAAQ,kBAAkB,CAAC,cAA6B;AACtD,6CAAW;AACX,6CAAW;AAGX,UAAI,KAAK,SAAS;AAChB,aAAK,UAAU,MAAM;AAAA,MACvB;AAEA,WAAK,uBAAuB;AAE5B,WAAK,UAAU,IAAI;AACnB,eAAS,oBAAoB,aAAa,KAAK,eAAe;AAAA,IAChE;AAnFE,QAAI,KAAK,SAAS,SAAS,WAAW,EAAE,KAAK,mBAAmB,oBAAoB;AAClF,YAAM,IAAI,MAAM,iEAAiE;AAAA,IACnF;AAAA,EACF;AAAA;AAAA,EAGA,OAAO,WAAsC;AAC3C,WAAO;AAAA,EACT;AAAA,EAEA,OAAO,MAAmB,CAAC,SAAS,GAA+C;AAEjF,QAAI,KAAK,cAAc,UAAa,KAAK,SAAS,QAAW;AAC3D,WAAK,OAAO,KAAK;AACjB,WAAK,YAAY,mBAAK;AACtB,WAAK,KAAK,iBAAiB,eAAe,KAAK,iBAAiB;AAAA,IAClE;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,cAAoB;AACl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AAU,QAAQ,SAAS;AAAA,IAC1C;AAAA,EACF,CAAC;AAAA,GArIkB,SAsInB;AAMY;AAAA,EAAX,SAAS;AAAA,GA5IS,SA4IP;AAwJZ;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAnS9B,SAoSnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAzS1B,SA0SnB;AAQM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAjT3B,SAkTb;AAlTa,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// 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
|