@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDivider
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KITRO6XO.js";
|
|
4
4
|
|
|
5
5
|
// src/components/divider/divider.ts
|
|
6
6
|
var divider_default = SynDivider;
|
|
@@ -9,4 +9,4 @@ SynDivider.define("syn-divider");
|
|
|
9
9
|
export {
|
|
10
10
|
divider_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.2IWVCAEF.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.K3XDXZW2.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -55,4 +55,4 @@ __decorateClass([
|
|
|
55
55
|
export {
|
|
56
56
|
SynCard
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk.
|
|
58
|
+
//# sourceMappingURL=chunk.2YBP4WEH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSpinner
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EDVAO5KD.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlController,
|
|
6
6
|
validValidityState
|
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
} from "./chunk.WVVQK5TE.js";
|
|
18
18
|
import {
|
|
19
19
|
SynIcon
|
|
20
|
-
} from "./chunk.
|
|
21
|
-
import {
|
|
22
|
-
watch
|
|
23
|
-
} from "./chunk.74IOULXM.js";
|
|
20
|
+
} from "./chunk.U3WTJD4D.js";
|
|
24
21
|
import {
|
|
25
22
|
LocalizeController
|
|
26
23
|
} from "./chunk.GIU3H3J3.js";
|
|
24
|
+
import {
|
|
25
|
+
watch
|
|
26
|
+
} from "./chunk.74IOULXM.js";
|
|
27
27
|
import {
|
|
28
28
|
enableDefaultSettings
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.33EV4VCU.js";
|
|
30
30
|
import {
|
|
31
31
|
component_styles_default
|
|
32
32
|
} from "./chunk.NLYVOJGK.js";
|
|
33
33
|
import {
|
|
34
34
|
SynergyElement
|
|
35
|
-
} from "./chunk.
|
|
35
|
+
} from "./chunk.K3XDXZW2.js";
|
|
36
36
|
import {
|
|
37
37
|
__decorateClass
|
|
38
38
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -295,4 +295,4 @@ SynButton = __decorateClass([
|
|
|
295
295
|
export {
|
|
296
296
|
SynButton
|
|
297
297
|
};
|
|
298
|
-
//# sourceMappingURL=chunk.
|
|
298
|
+
//# sourceMappingURL=chunk.32CPGKWW.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addGlobalEventNotification,
|
|
3
3
|
extractDefaultSettingsForElement,
|
|
4
4
|
removeGlobalEventNotification
|
|
5
|
-
} from "./chunk.
|
|
5
|
+
} from "./chunk.DSW34EOY.js";
|
|
6
6
|
import {
|
|
7
7
|
__privateAdd,
|
|
8
8
|
__privateGet,
|
|
@@ -83,4 +83,4 @@ function enableDefaultSettings(name) {
|
|
|
83
83
|
export {
|
|
84
84
|
enableDefaultSettings
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk.
|
|
86
|
+
//# sourceMappingURL=chunk.33EV4VCU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynProgressBar
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.TB7FVSDL.js";
|
|
4
4
|
|
|
5
5
|
// src/components/progress-bar/progress-bar.ts
|
|
6
6
|
var progress_bar_default = SynProgressBar;
|
|
@@ -9,4 +9,4 @@ SynProgressBar.define("syn-progress-bar");
|
|
|
9
9
|
export {
|
|
10
10
|
progress_bar_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.57AK7CVM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDropdown
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.N42HYZ3J.js";
|
|
4
4
|
|
|
5
5
|
// src/components/dropdown/dropdown.ts
|
|
6
6
|
var dropdown_default = SynDropdown;
|
|
@@ -9,4 +9,4 @@ SynDropdown.define("syn-dropdown");
|
|
|
9
9
|
export {
|
|
10
10
|
dropdown_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.5CAP3G3X.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTag
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.JJI5CPOB.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tag/tag.ts
|
|
6
6
|
var tag_default = SynTag;
|
|
@@ -9,4 +9,4 @@ SynTag.define("syn-tag");
|
|
|
9
9
|
export {
|
|
10
10
|
tag_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.5F6A2J5X.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.WXVOTRW5.js";
|
|
4
4
|
import {
|
|
5
5
|
SynIconButton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.QVS5TYTR.js";
|
|
7
7
|
import {
|
|
8
8
|
waitForEvent
|
|
9
9
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -19,26 +19,26 @@ import {
|
|
|
19
19
|
HasSlotController
|
|
20
20
|
} from "./chunk.WVVQK5TE.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./chunk.
|
|
24
|
-
import {
|
|
25
|
-
alert_styles_default
|
|
26
|
-
} from "./chunk.BXY667C7.js";
|
|
22
|
+
LocalizeController
|
|
23
|
+
} from "./chunk.GIU3H3J3.js";
|
|
27
24
|
import {
|
|
28
25
|
watch
|
|
29
26
|
} from "./chunk.74IOULXM.js";
|
|
30
|
-
import {
|
|
31
|
-
LocalizeController
|
|
32
|
-
} from "./chunk.GIU3H3J3.js";
|
|
33
27
|
import {
|
|
34
28
|
enableDefaultSettings
|
|
35
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.33EV4VCU.js";
|
|
36
30
|
import {
|
|
37
31
|
component_styles_default
|
|
38
32
|
} from "./chunk.NLYVOJGK.js";
|
|
39
33
|
import {
|
|
40
34
|
SynergyElement
|
|
41
|
-
} from "./chunk.
|
|
35
|
+
} from "./chunk.K3XDXZW2.js";
|
|
36
|
+
import {
|
|
37
|
+
alert_custom_styles_default
|
|
38
|
+
} from "./chunk.QBHZAR4C.js";
|
|
39
|
+
import {
|
|
40
|
+
alert_styles_default
|
|
41
|
+
} from "./chunk.BXY667C7.js";
|
|
42
42
|
import {
|
|
43
43
|
__decorateClass
|
|
44
44
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -288,4 +288,4 @@ setDefaultAnimation("alert.hide", {
|
|
|
288
288
|
export {
|
|
289
289
|
SynAlert
|
|
290
290
|
};
|
|
291
|
-
//# sourceMappingURL=chunk.
|
|
291
|
+
//# sourceMappingURL=chunk.5NGEDTDD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButtonGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ZIDEDWYN.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button-group/button-group.ts
|
|
6
6
|
var button_group_default = SynButtonGroup;
|
|
@@ -9,4 +9,4 @@ SynButtonGroup.define("syn-button-group");
|
|
|
9
9
|
export {
|
|
10
10
|
button_group_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.5OYRCRNV.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTextarea
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.U23YWMIX.js";
|
|
4
4
|
|
|
5
5
|
// src/components/textarea/textarea.ts
|
|
6
6
|
var textarea_default = SynTextarea;
|
|
@@ -9,4 +9,4 @@ SynTextarea.define("syn-textarea");
|
|
|
9
9
|
export {
|
|
10
10
|
textarea_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.63XQMHFQ.js.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validate_styles_default
|
|
3
|
-
} from "./chunk.MVM3NN6Y.js";
|
|
4
1
|
import {
|
|
5
2
|
getEventNameForElement,
|
|
6
3
|
isBlurEvent,
|
|
7
4
|
isInvalidEvent,
|
|
8
5
|
normalizeEventAttribute
|
|
9
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.Q7BW6KKX.js";
|
|
7
|
+
import {
|
|
8
|
+
validate_styles_default
|
|
9
|
+
} from "./chunk.MVM3NN6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
SynAlert
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.5NGEDTDD.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.74IOULXM.js";
|
|
16
16
|
import {
|
|
17
17
|
enableDefaultSettings
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.33EV4VCU.js";
|
|
19
19
|
import {
|
|
20
20
|
component_styles_default
|
|
21
21
|
} from "./chunk.NLYVOJGK.js";
|
|
22
22
|
import {
|
|
23
23
|
SynergyElement
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.K3XDXZW2.js";
|
|
25
25
|
import {
|
|
26
26
|
__decorateClass
|
|
27
27
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -330,4 +330,4 @@ SynValidate = __decorateClass([
|
|
|
330
330
|
export {
|
|
331
331
|
SynValidate
|
|
332
332
|
};
|
|
333
|
-
//# sourceMappingURL=chunk.
|
|
333
|
+
//# sourceMappingURL=chunk.6EJPCDSL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBreadcrumbItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.J75DWM6J.js";
|
|
4
4
|
|
|
5
5
|
// src/components/breadcrumb-item/breadcrumb-item.ts
|
|
6
6
|
var breadcrumb_item_default = SynBreadcrumbItem;
|
|
@@ -9,4 +9,4 @@ SynBreadcrumbItem.define("syn-breadcrumb-item");
|
|
|
9
9
|
export {
|
|
10
10
|
breadcrumb_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.6ETN74WB.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.XAQKFEHH.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDivider
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.KITRO6XO.js";
|
|
10
10
|
import {
|
|
11
11
|
defaultValue
|
|
12
12
|
} from "./chunk.3NXKLKWH.js";
|
|
@@ -22,24 +22,32 @@ import {
|
|
|
22
22
|
} from "./chunk.WVVQK5TE.js";
|
|
23
23
|
import {
|
|
24
24
|
SynIcon
|
|
25
|
-
} from "./chunk.
|
|
26
|
-
import {
|
|
27
|
-
watch
|
|
28
|
-
} from "./chunk.74IOULXM.js";
|
|
25
|
+
} from "./chunk.U3WTJD4D.js";
|
|
29
26
|
import {
|
|
30
27
|
LocalizeController
|
|
31
28
|
} from "./chunk.GIU3H3J3.js";
|
|
29
|
+
import {
|
|
30
|
+
watch
|
|
31
|
+
} from "./chunk.74IOULXM.js";
|
|
32
32
|
import {
|
|
33
33
|
enableDefaultSettings
|
|
34
|
-
} from "./chunk.
|
|
34
|
+
} from "./chunk.33EV4VCU.js";
|
|
35
|
+
import {
|
|
36
|
+
createNumericStrategy,
|
|
37
|
+
modernNumericStrategy,
|
|
38
|
+
nativeNumericStrategy
|
|
39
|
+
} from "./chunk.UBAW2LID.js";
|
|
35
40
|
import {
|
|
36
41
|
component_styles_default
|
|
37
42
|
} from "./chunk.NLYVOJGK.js";
|
|
38
43
|
import {
|
|
39
44
|
SynergyElement
|
|
40
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.K3XDXZW2.js";
|
|
41
46
|
import {
|
|
42
47
|
__decorateClass,
|
|
48
|
+
__privateAdd,
|
|
49
|
+
__privateGet,
|
|
50
|
+
__privateSet,
|
|
43
51
|
__spreadValues
|
|
44
52
|
} from "./chunk.2GFK6XTO.js";
|
|
45
53
|
|
|
@@ -137,6 +145,7 @@ var LongPressDirective = class extends AsyncDirective {
|
|
|
137
145
|
var longPress = directive(LongPressDirective);
|
|
138
146
|
|
|
139
147
|
// src/components/input/input.component.ts
|
|
148
|
+
var _numericStrategy;
|
|
140
149
|
var SynInput = class extends SynergyElement {
|
|
141
150
|
constructor() {
|
|
142
151
|
super(...arguments);
|
|
@@ -167,6 +176,26 @@ var SynInput = class extends SynergyElement {
|
|
|
167
176
|
this.form = "";
|
|
168
177
|
this.required = false;
|
|
169
178
|
this.spellcheck = true;
|
|
179
|
+
__privateAdd(this, _numericStrategy, nativeNumericStrategy);
|
|
180
|
+
}
|
|
181
|
+
set numericStrategy(value) {
|
|
182
|
+
switch (typeof value) {
|
|
183
|
+
case "string":
|
|
184
|
+
__privateSet(this, _numericStrategy, value === "modern" ? modernNumericStrategy : nativeNumericStrategy);
|
|
185
|
+
break;
|
|
186
|
+
case "object":
|
|
187
|
+
__privateSet(this, _numericStrategy, createNumericStrategy(value));
|
|
188
|
+
break;
|
|
189
|
+
default:
|
|
190
|
+
__privateSet(this, _numericStrategy, nativeNumericStrategy);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @default nativeNumericStrategy
|
|
195
|
+
* @todo: This must be changed to "modern" in Synergy@3
|
|
196
|
+
*/
|
|
197
|
+
get numericStrategy() {
|
|
198
|
+
return __privateGet(this, _numericStrategy);
|
|
170
199
|
}
|
|
171
200
|
//
|
|
172
201
|
// NOTE: We use an in-memory input for these getters/setters instead of the one in the template because the properties
|
|
@@ -227,7 +256,7 @@ var SynInput = class extends SynergyElement {
|
|
|
227
256
|
if (this.disabled || this.readonly) {
|
|
228
257
|
return true;
|
|
229
258
|
}
|
|
230
|
-
if (this.min === void 0 || this.min === null
|
|
259
|
+
if (this.min === void 0 || this.min === null) {
|
|
231
260
|
return false;
|
|
232
261
|
}
|
|
233
262
|
const min = typeof this.min === "string" ? parseFloat(this.min) : this.min;
|
|
@@ -243,7 +272,36 @@ var SynInput = class extends SynergyElement {
|
|
|
243
272
|
const max = typeof this.max === "string" ? parseFloat(this.max) : this.max;
|
|
244
273
|
return this.valueAsNumber >= max;
|
|
245
274
|
}
|
|
275
|
+
handleNumericStrategyAutoClamp() {
|
|
276
|
+
const min = typeof this.min === "string" ? parseFloat(this.min) : this.min;
|
|
277
|
+
const max = typeof this.max === "string" ? parseFloat(this.max) : this.max;
|
|
278
|
+
const { valueAsNumber } = this;
|
|
279
|
+
let nextValue = valueAsNumber;
|
|
280
|
+
let clampEvent = "";
|
|
281
|
+
if (nextValue < min) {
|
|
282
|
+
nextValue = min;
|
|
283
|
+
clampEvent = "min";
|
|
284
|
+
} else if (nextValue > max) {
|
|
285
|
+
nextValue = max;
|
|
286
|
+
clampEvent = "max";
|
|
287
|
+
}
|
|
288
|
+
this.value = nextValue.toString();
|
|
289
|
+
if (clampEvent) {
|
|
290
|
+
this.emit("syn-clamp", {
|
|
291
|
+
detail: {
|
|
292
|
+
clampedTo: clampEvent,
|
|
293
|
+
lastUserValue: valueAsNumber
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
this.formControlController.updateValidity();
|
|
298
|
+
this.emit("syn-change");
|
|
299
|
+
}
|
|
246
300
|
handleChange() {
|
|
301
|
+
if (this.type === "number" && __privateGet(this, _numericStrategy).autoClamp) {
|
|
302
|
+
this.handleNumericStrategyAutoClamp();
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
247
305
|
this.value = this.input.value;
|
|
248
306
|
this.emit("syn-change");
|
|
249
307
|
}
|
|
@@ -271,6 +329,20 @@ var SynInput = class extends SynergyElement {
|
|
|
271
329
|
this.formControlController.emitInvalidEvent(event);
|
|
272
330
|
}
|
|
273
331
|
handleKeyDown(event) {
|
|
332
|
+
if (__privateGet(this, _numericStrategy).noStepAlign && this.type === "number") {
|
|
333
|
+
const { key } = event;
|
|
334
|
+
if (key === "ArrowUp" || key === "ArrowDown") {
|
|
335
|
+
event.preventDefault();
|
|
336
|
+
event.stopPropagation();
|
|
337
|
+
if (key === "ArrowUp") {
|
|
338
|
+
this.handleStepUp();
|
|
339
|
+
} else if (key === "ArrowDown") {
|
|
340
|
+
this.handleStepDown();
|
|
341
|
+
}
|
|
342
|
+
this.handleChange();
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
274
346
|
const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
275
347
|
if (event.key === "Enter" && !hasModifier) {
|
|
276
348
|
setTimeout(() => {
|
|
@@ -327,6 +399,25 @@ var SynInput = class extends SynergyElement {
|
|
|
327
399
|
}
|
|
328
400
|
/** Increments the value of a numeric input type by the value of the step attribute. */
|
|
329
401
|
stepUp() {
|
|
402
|
+
if (__privateGet(this, _numericStrategy).noStepAlign) {
|
|
403
|
+
const { max, step, valueAsNumber } = this;
|
|
404
|
+
const usedInitialValue = Number.isNaN(valueAsNumber) ? 0 : valueAsNumber;
|
|
405
|
+
const usedMin = typeof this.min === "string" ? parseFloat(this.min) : this.min;
|
|
406
|
+
const usedMax = typeof max === "string" ? parseFloat(max) : max;
|
|
407
|
+
const usedStep = typeof step === "undefined" || step === null || step === "any" ? 1 : typeof step === "number" ? step : parseFloat(step);
|
|
408
|
+
let wantedNextValue = usedInitialValue + usedStep;
|
|
409
|
+
wantedNextValue = Math.abs(wantedNextValue) < Number.EPSILON ? 0 : wantedNextValue;
|
|
410
|
+
if (typeof usedMax === "number" && usedMax < wantedNextValue) {
|
|
411
|
+
wantedNextValue = usedMax;
|
|
412
|
+
} else if (typeof usedMin === "number" && usedMin > wantedNextValue) {
|
|
413
|
+
wantedNextValue = usedMin;
|
|
414
|
+
}
|
|
415
|
+
this.input.value = wantedNextValue.toString();
|
|
416
|
+
if (this.value !== this.input.value) {
|
|
417
|
+
this.value = this.input.value;
|
|
418
|
+
}
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
330
421
|
this.input.stepUp();
|
|
331
422
|
if (this.value !== this.input.value) {
|
|
332
423
|
this.value = this.input.value;
|
|
@@ -334,6 +425,25 @@ var SynInput = class extends SynergyElement {
|
|
|
334
425
|
}
|
|
335
426
|
/** Decrements the value of a numeric input type by the value of the step attribute. */
|
|
336
427
|
stepDown() {
|
|
428
|
+
if (__privateGet(this, _numericStrategy).noStepAlign) {
|
|
429
|
+
const { min, max, step, valueAsNumber } = this;
|
|
430
|
+
const usedInitialValue = Number.isNaN(valueAsNumber) ? 0 : valueAsNumber;
|
|
431
|
+
const usedMin = typeof min === "string" ? parseFloat(min) : min;
|
|
432
|
+
const usedMax = typeof max === "string" ? parseFloat(max) : max;
|
|
433
|
+
const usedStep = typeof step === "undefined" || step === null || step === "any" ? 1 : typeof step === "number" ? step : parseFloat(step);
|
|
434
|
+
let wantedNextValue = usedInitialValue - usedStep;
|
|
435
|
+
wantedNextValue = Math.abs(wantedNextValue) < Number.EPSILON ? 0 : wantedNextValue;
|
|
436
|
+
if (typeof usedMin === "number" && usedMin > wantedNextValue) {
|
|
437
|
+
wantedNextValue = usedMin;
|
|
438
|
+
} else if (typeof usedMax === "number" && usedMax < wantedNextValue) {
|
|
439
|
+
wantedNextValue = usedMax;
|
|
440
|
+
}
|
|
441
|
+
this.input.value = wantedNextValue.toString();
|
|
442
|
+
if (this.value !== this.input.value) {
|
|
443
|
+
this.value = this.input.value;
|
|
444
|
+
}
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
337
447
|
this.input.stepDown();
|
|
338
448
|
if (this.value !== this.input.value) {
|
|
339
449
|
this.value = this.input.value;
|
|
@@ -425,7 +535,7 @@ var SynInput = class extends SynergyElement {
|
|
|
425
535
|
maxlength=${ifDefined(this.maxlength)}
|
|
426
536
|
min=${ifDefined(this.min)}
|
|
427
537
|
max=${ifDefined(this.max)}
|
|
428
|
-
step=${ifDefined(this.step)}
|
|
538
|
+
step=${ifDefined(!__privateGet(this, _numericStrategy).noStepValidation ? this.step : "any")}
|
|
429
539
|
.value=${live(this.value)}
|
|
430
540
|
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
431
541
|
autocomplete=${ifDefined(this.autocomplete)}
|
|
@@ -529,6 +639,7 @@ var SynInput = class extends SynergyElement {
|
|
|
529
639
|
`;
|
|
530
640
|
}
|
|
531
641
|
};
|
|
642
|
+
_numericStrategy = new WeakMap();
|
|
532
643
|
SynInput.styles = [component_styles_default, form_control_styles_default, input_styles_default, form_control_custom_styles_default, input_custom_styles_default];
|
|
533
644
|
SynInput.dependencies = {
|
|
534
645
|
"syn-icon": SynIcon,
|
|
@@ -637,6 +748,17 @@ __decorateClass([
|
|
|
637
748
|
__decorateClass([
|
|
638
749
|
property()
|
|
639
750
|
], SynInput.prototype, "inputmode", 2);
|
|
751
|
+
__decorateClass([
|
|
752
|
+
property({
|
|
753
|
+
attribute: "numeric-strategy",
|
|
754
|
+
converter: {
|
|
755
|
+
fromAttribute: (value) => {
|
|
756
|
+
return value === "modern" ? modernNumericStrategy : nativeNumericStrategy;
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
type: Object
|
|
760
|
+
})
|
|
761
|
+
], SynInput.prototype, "numericStrategy", 1);
|
|
640
762
|
__decorateClass([
|
|
641
763
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
642
764
|
], SynInput.prototype, "handleDisabledChange", 1);
|
|
@@ -653,4 +775,4 @@ SynInput = __decorateClass([
|
|
|
653
775
|
export {
|
|
654
776
|
SynInput
|
|
655
777
|
};
|
|
656
|
-
//# sourceMappingURL=chunk.
|
|
778
|
+
//# sourceMappingURL=chunk.7BMEQKZX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/input/input.component.ts", "../../src/internal/longpress.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynDivider from '../divider/divider.component.js';\nimport { longPress } from '../../internal/longpress.js';\nimport styles from './input.styles.js';\nimport customStyles from './input.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport {\n type NumericStrategy,\n createNumericStrategy,\n nativeNumericStrategy,\n modernNumericStrategy,\n} from './strategies.js';\nimport type { SynClampDetails } from '../../events/syn-clamp.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy.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 * @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart stepper - The container that wraps the number stepper.\n * @csspart decrement-number-stepper - The decrement number stepper button.\n * @csspart increment-number-stepper - The increment number stepper button.\n * @csspart divider - The divider between the increment and decrement number stepper buttons.\n *\n * @cssproperty --syn-input-autofill-shadow - The shadow to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-readonly-shadow - The shadow to apply when the input is readonly and autofilled.\n * @cssproperty --syn-input-autofill-text-fill-color - The text fill color to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-caret-color - The caret color to apply when the input is autofilled.\n */\n@enableDefaultSettings('SynInput')\nexport default class SynInput extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n static dependencies = {\n\t\t'syn-icon': SynIcon,\n\t\t'syn-divider': SynDivider\n\t};\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input']\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label', 'prefix', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('.input__control') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n @property() 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 #numericStrategy: NumericStrategy = nativeNumericStrategy;\n\n /**\n * Defines the strategy for handling numbers in the numeric input.\n * This is used to determine how the input behaves when the user interacts with it.\n *\n * Includes the following configuration options:\n *\n * - **autoClamp**: If true, the input will clamp the value to the min and max attributes.\n * - **noStepAlign**: If true, the input will not align the value to the step attribute.\n * - **noStepValidation**: If true, the input will not validate the value against the step attribute.\n * \n * You may provide this as one of the following values:\n *\n * - 'native': Uses the native browser implementation.\n * - 'modern': Uses a more intuitive implementation:\n * - Values are clamped to the nearest min or max value.\n * - Stepping is inclusive to the provided min and max values.\n * - Provided stepping is no longer used in validation.\n * - An object that matches the `NumericStrategy` type. Note this can only be set via `property`, not as an `attribute`!\n */\n @property({\n attribute: 'numeric-strategy',\n converter: {\n fromAttribute: (value) => {\n return value === 'modern'\n ? modernNumericStrategy\n : nativeNumericStrategy;\n },\n },\n type: Object,\n })\n set numericStrategy(value: 'native' | 'modern' | Partial<NumericStrategy>) {\n switch (typeof value) {\n case 'string': this.#numericStrategy = value === 'modern' ? modernNumericStrategy : nativeNumericStrategy; break;\n case 'object': this.#numericStrategy = createNumericStrategy(value); break;\n default: this.#numericStrategy = nativeNumericStrategy;\n }\n }\n\n /**\n * @default nativeNumericStrategy\n * @todo: This must be changed to \"modern\" in Synergy@3\n */\n get numericStrategy(): 'native' | 'modern' | Partial<NumericStrategy> {\n return this.#numericStrategy;\n }\n\n //\n // NOTE: We use an in-memory input for these getters/setters instead of the one in the template because the properties\n // can be set before the component is rendered.\n //\n\n /**\n * Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. This will use the native `<input type=\"{{type}}\">` implementation and may result in an error.\n */\n get valueAsDate() {\n this.__dateInput.type = this.type;\n this.__dateInput.value = this.value;\n return this.input?.valueAsDate || this.__dateInput.valueAsDate;\n }\n\n set valueAsDate(newValue: Date | null) {\n this.__dateInput.type = this.type;\n this.__dateInput.valueAsDate = newValue;\n this.value = this.__dateInput.value;\n }\n\n /** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */\n get valueAsNumber() {\n this.__numberInput.value = this.value;\n return this.input?.valueAsNumber || this.__numberInput.valueAsNumber;\n }\n\n set valueAsNumber(newValue: number) {\n this.__numberInput.valueAsNumber = newValue;\n this.value = this.__numberInput.value;\n }\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleStep(){\n this.handleInput();\n this.input.focus();\n }\n\n private handleStepUp() {\n this.stepUp();\n this.handleStep();\n }\n\n private handleStepDown() {\n this.stepDown();\n this.handleStep();\n }\n \n private isDecrementDisabled() {\n if(this.disabled || this.readonly) {\n return true;\n }\n\n if (this.min === undefined || this.min === null) {\n return false;\n }\n\n const min = typeof this.min === 'string' ? parseFloat(this.min) : this.min;\n return this.valueAsNumber <= min;\n }\n\n private isIncrementDisabled() {\n if(this.disabled || this.readonly) {\n return true;\n }\n\n if (this.max === undefined || this.max === null) {\n return false;\n }\n\n const max = typeof this.max === 'string' ? parseFloat(this.max) : this.max;\n return this.valueAsNumber >= max;\n }\n\n \n private handleNumericStrategyAutoClamp() {\n const min = typeof this.min === 'string' ? parseFloat(this.min) : this.min;\n const max = typeof this.max === 'string' ? parseFloat(this.max) : this.max;\n const { valueAsNumber } = this;\n\n let nextValue = valueAsNumber;\n let clampEvent = '';\n if (nextValue < min) {\n nextValue = min;\n clampEvent = 'min';\n } else if (nextValue > max) {\n nextValue = max;\n clampEvent = 'max';\n }\n\n this.value = nextValue.toString();\n\n // Fire the event if the value was clamped\n if (clampEvent) {\n this.emit('syn-clamp', {\n detail: {\n clampedTo: clampEvent as SynClampDetails['clampedTo'],\n lastUserValue: valueAsNumber,\n }\n });\n }\n this.formControlController.updateValidity();\n this.emit('syn-change');\n }\n\n private handleChange() {\n if (this.type === 'number' && this.#numericStrategy.autoClamp) {\n this.handleNumericStrategyAutoClamp();\n return;\n }\n this.value = this.input.value;\n this.emit('syn-change');\n }\n\n private handleClearClick(event: MouseEvent) {\n event.preventDefault();\n\n if (this.value !== '') {\n this.value = '';\n this.emit('syn-clear');\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n this.input.focus();\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleInput() {\n this.value = this.input.value;\n this.formControlController.updateValidity();\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.#numericStrategy.noStepAlign && this.type === 'number') {\n const { key } = event;\n if (key === 'ArrowUp' || key === 'ArrowDown') {\n event.preventDefault();\n event.stopPropagation();\n\n if (key === 'ArrowUp') {\n this.handleStepUp();\n } else if (key === 'ArrowDown') {\n this.handleStepDown();\n }\n this.handleChange();\n return;\n }\n }\n const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n\n // Pressing enter when focused on an input should submit the form like a native input, but we wait a tick before\n // submitting to allow users to cancel the keydown event if they need to\n if (event.key === 'Enter' && !hasModifier) {\n setTimeout(() => {\n //\n // When using an Input Method Editor (IME), pressing enter will cause the form to submit unexpectedly. One way\n // to check for this is to look at event.isComposing, which will be true when the IME is open.\n //\n // See https://github.com/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 if (this.#numericStrategy.noStepAlign) {\n const { max, step, valueAsNumber } = this;\n\n // Needed because the input could be empty. In this case, valueAsNumber is NaN\n const usedInitialValue = Number.isNaN(valueAsNumber) ? 0 : valueAsNumber;\n const usedMin = typeof this.min === 'string' ? parseFloat(this.min) : this.min;\n const usedMax = typeof max === 'string' ? parseFloat(max) : max;\n const usedStep = (typeof step === 'undefined' || step === null || step === 'any') ? 1 : typeof step === 'number' ? step : parseFloat(step);\n\n let wantedNextValue = usedInitialValue + usedStep;\n // Floating point issues...\n wantedNextValue = Math.abs(wantedNextValue) < Number.EPSILON ? 0 : wantedNextValue;\n\n if (typeof usedMax === 'number' && usedMax < wantedNextValue) {\n wantedNextValue = usedMax;\n } else if (typeof usedMin === 'number' && usedMin > wantedNextValue) {\n wantedNextValue = usedMin;\n }\n\n this.input.value = wantedNextValue.toString();\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n return;\n }\n this.input.stepUp();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Decrements the value of a numeric input type by the value of the step attribute. */\n stepDown() {\n if (this.#numericStrategy.noStepAlign) {\n const { min, max, step, valueAsNumber } = this;\n\n // Needed because the input could be empty. In this case, valueAsNumber is NaN\n const usedInitialValue = Number.isNaN(valueAsNumber) ? 0 : valueAsNumber;\n const usedMin = typeof min === 'string' ? parseFloat(min) : min;\n const usedMax = typeof max === 'string' ? parseFloat(max) : max;\n const usedStep = (typeof step === 'undefined' || step === null || step === 'any') ? 1 : typeof step === 'number' ? step : parseFloat(step);\n\n let wantedNextValue = usedInitialValue - usedStep;\n // Floating point issues...\n wantedNextValue = Math.abs(wantedNextValue) < Number.EPSILON ? 0 : wantedNextValue;\n \n if (typeof usedMin === 'number' && usedMin > wantedNextValue) {\n wantedNextValue = usedMin;\n } else if (typeof usedMax === 'number' && usedMax < wantedNextValue) {\n wantedNextValue = usedMax;\n }\n \n this.input.value = wantedNextValue.toString();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n return;\n }\n this.input.stepDown();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasPrefixSlot = this.hasSlotController.test('prefix');\n const hasSuffixSlot = this.hasSlotController.test('suffix');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n const hasClearIcon = this.clearable && !this.disabled && !this.readonly;\n const isClearIconVisible = hasClearIcon && (typeof this.value === 'number' || this.value.length > 0);\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-prefix': hasPrefixSlot,\n 'form-control--has-suffix': hasSuffixSlot\n })}\n >\n <label\n part=\"form-control-label\"\n class=\"form-control__label\"\n for=\"input\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <div\n part=\"base\"\n class=${classMap({\n input: true,\n\n // Sizes\n 'input--small': this.size === 'small',\n 'input--medium': this.size === 'medium',\n 'input--large': this.size === 'large',\n\n // States\n 'input--standard': !this.readonly,\n 'input--readonly': this.readonly,\n 'input--disabled': this.disabled,\n 'input--focused': this.hasFocus,\n 'input--empty': !this.value,\n 'input--no-spin-buttons': this.noSpinButtons\n })}\n >\n <span part=\"prefix\" class=\"input__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n <input\n part=\"input\"\n id=\"input\"\n class=\"input__control\"\n type=${this.type === 'password' && this.passwordVisible ? 'text' : this.type}\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(this.name)}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n placeholder=${ifDefined(this.placeholder)}\n minlength=${ifDefined(this.minlength)}\n maxlength=${ifDefined(this.maxlength)}\n min=${ifDefined(this.min)}\n max=${ifDefined(this.max)}\n step=${ifDefined(!this.#numericStrategy.noStepValidation ? this.step as number : 'any')}\n .value=${live(this.value)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocomplete=${ifDefined(this.autocomplete)}\n autocorrect=${ifDefined(this.autocorrect)}\n ?autofocus=${this.autofocus}\n spellcheck=${this.spellcheck}\n pattern=${ifDefined(this.pattern)}\n enterkeyhint=${ifDefined(this.enterkeyhint)}\n inputmode=${ifDefined(this.inputmode)}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @keydown=${this.handleKeyDown}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n />\n\n ${isClearIconVisible\n ? html`\n <button\n part=\"clear-button\"\n class=\"input__clear\"\n type=\"button\"\n aria-label=${this.localize.term('clearEntry')}\n @click=${this.handleClearClick}\n tabindex=\"-1\"\n >\n <slot name=\"clear-icon\">\n <syn-icon name=\"x-circle-fill\" library=\"system\"></syn-icon>\n </slot>\n </button>\n `\n : ''}\n ${this.passwordToggle && !this.disabled\n ? html`\n <button\n part=\"password-toggle-button\"\n class=\"input__password-toggle\"\n type=\"button\"\n aria-label=${this.localize.term(this.passwordVisible ? 'hidePassword' : 'showPassword')}\n @click=${this.handlePasswordToggle}\n tabindex=\"-1\"\n >\n ${this.passwordVisible\n ? html`\n <slot name=\"show-password-icon\">\n <syn-icon name=\"eye-slash\" library=\"system\"></syn-icon>\n </slot>\n `\n : html`\n <slot name=\"hide-password-icon\">\n <syn-icon name=\"eye\" library=\"system\"></syn-icon>\n </slot>\n `}\n </button>\n `\n : ''}\n\n <span part=\"suffix\" class=\"input__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n\n ${this.type === 'number' && !this.noSpinButtons\n ? html`\n <div part=\"stepper\" class=\"input__number-stepper\">\n <button\n part=\"decrement-number-stepper\"\n class=\"input__number-stepper-button\"\n type=\"button\"\n ?disabled=${this.isDecrementDisabled()}\n aria-hidden=\"true\"\n ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange()})}\n tabindex=\"-1\"\n >\n <slot name=\"decrement-number-stepper\">\n <syn-icon name=\"indeterminate\" library=\"system\"></syn-icon>\n </slot>\n </button>\n <syn-divider class=\"input__number-divider\" part=\"divider\" vertical></syn-divider>\n <button\n part=\"increment-number-stepper\"\n class=\"input__number-stepper-button\"\n type=\"button\"\n ?disabled=${this.isIncrementDisabled()}\n aria-hidden=\"true\"\n ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}\n tabindex=\"-1\"\n >\n <slot name=\"increment-number-stepper\">\n <syn-icon name=\"add\" library=\"system\"></syn-icon>\n </slot>\n </button>\n </div>\n `\n : ''}\n </div>\n </div>\n\n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n", "import { type ElementPart, noChange, nothing } from 'lit';\nimport {\n AsyncDirective,\n type DirectiveParameters,\n type Part,\n PartType,\n directive,\n} from 'lit/async-directive.js';\n\ntype Callbacks = {\n start: () => void;\n end: () => void;\n};\n\n/**\n * A directive that determines,if a HTMLButtonElement is long pressed or only clicked.\n * Depending on the state it executes the callback once or repeating.\n *\n * Usage:\n *\n * <button\n * ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}\n * >\n * my button\n * </button>\n */\nclass LongPressDirective extends AsyncDirective {\n host: HTMLButtonElement;\n\n observer: MutationObserver;\n\n callbacks: Callbacks;\n\n interval: NodeJS.Timeout;\n\n timeout: NodeJS.Timeout;\n\n constructor(part: Part) {\n super(part);\n if (part.type !== PartType.ELEMENT || !(part.element instanceof HTMLButtonElement)) {\n throw new Error('The `longPress` directive must be used on an HTMLButtonElement.');\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, class-methods-use-this\n render(_callback: Callbacks): typeof nothing {\n return nothing;\n }\n\n update(part: ElementPart, [callbacks]: DirectiveParameters<this>): typeof noChange {\n // initial call\n if (this.callbacks === undefined && this.host === undefined) {\n this.host = part.element as HTMLButtonElement;\n this.callbacks = { ...callbacks };\n this.host.addEventListener('pointerdown', this.handlePointerDown);\n }\n\n return noChange;\n }\n\n reconnected(): void {\n this.host.addEventListener('pointerdown', this.handlePointerDown);\n }\n\n protected disconnected(): void {\n this.stopSpinningAndCleanUp();\n this.host.removeEventListener('pointerdown', this.handlePointerDown);\n document.removeEventListener('pointerup', this.handlePointerUp);\n }\n\n private handlePointerDown = (event: PointerEvent) => {\n // do nothing if the click was not done from the left mouse button or if the button is disabled\n if (event.button !== 0 || this.host.disabled) {\n return;\n }\n this.spinOnLongPressCallback(event);\n };\n\n /**\n * Start spinning on long press clicks otherwise handle as single click event\n */\n private spinOnLongPressCallback(event: PointerEvent) {\n event.preventDefault();\n event.stopPropagation();\n\n // Start spinning only on long press\n this.timeout = setTimeout(() => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.timeout = undefined;\n this.interval = setInterval(() => {\n this.callbacks.start();\n }, 50);\n }, 500);\n\n document.addEventListener('pointerup', this.handlePointerUp);\n\n // when buttons becoming disabled during long-press\n this.observer?.disconnect();\n this.observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.attributeName === 'disabled') {\n this.stopSpinningAndCleanUp();\n }\n });\n });\n this.observer.observe(this.host, { attributes: true });\n }\n\n private handlePointerUp = (pointerUp?: PointerEvent) => {\n pointerUp?.preventDefault();\n pointerUp?.stopPropagation();\n\n // we did not start to spin\n if (this.timeout) {\n this.callbacks.start();\n }\n\n this.stopSpinningAndCleanUp();\n\n this.callbacks.end();\n document.removeEventListener('pointerup', this.handlePointerUp);\n };\n\n /**\n * Stop the spinning and clean up all timer and observer\n */\n private stopSpinningAndCleanUp() {\n // stop spinning\n clearInterval(this.interval);\n\n clearTimeout(this.timeout);\n this.observer?.disconnect();\n }\n}\n\nexport const longPress = directive(LongPressDirective);\n\nexport type { LongPressDirective };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;;;AChBvC,SAA2B,UAAU,eAAe;AACpD;AAAA,EACE;AAAA,EAGA;AAAA,EACA;AAAA,OACK;AAmBP,IAAM,qBAAN,cAAiC,eAAe;AAAA,EAW9C,YAAY,MAAY;AACtB,UAAM,IAAI;AAgCZ,SAAQ,oBAAoB,CAAC,UAAwB;AAEnD,UAAI,MAAM,WAAW,KAAK,KAAK,KAAK,UAAU;AAC5C;AAAA,MACF;AACA,WAAK,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,I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3B,SAoZb;AApZa,WAArB;AAAA,EADC,sBAAsB,UAAU;AAAA,GACZ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCheckbox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KTCGXZQ4.js";
|
|
4
4
|
|
|
5
5
|
// src/components/checkbox/checkbox.ts
|
|
6
6
|
var checkbox_default = SynCheckbox;
|
|
@@ -9,4 +9,4 @@ SynCheckbox.define("syn-checkbox");
|
|
|
9
9
|
export {
|
|
10
10
|
checkbox_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.7RHGZPLP.js.map
|