@synergy-design-system/components 2.11.7 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk.5THVQP64.js → chunk.2DTLMVCC.js} +6 -4
- package/dist/chunks/{chunk.5THVQP64.js.map → chunk.2DTLMVCC.js.map} +1 -1
- package/dist/chunks/{chunk.COPMG5GP.js → chunk.2HVKUBS7.js} +5 -3
- package/dist/chunks/{chunk.COPMG5GP.js.map → chunk.2HVKUBS7.js.map} +1 -1
- package/dist/chunks/{chunk.ZVJDWZT3.js → chunk.2JVLDJOZ.js} +6 -4
- package/dist/chunks/{chunk.ZVJDWZT3.js.map → chunk.2JVLDJOZ.js.map} +1 -1
- package/dist/chunks/{chunk.NPADSFMI.js → chunk.2N7XLLRT.js} +7 -5
- package/dist/chunks/{chunk.NPADSFMI.js.map → chunk.2N7XLLRT.js.map} +1 -1
- package/dist/chunks/{chunk.C4JHD57V.js → chunk.2RR6PD3H.js} +2 -2
- package/dist/chunks/{chunk.IMA7VYIB.js → chunk.2VWVV75N.js} +2 -2
- package/dist/chunks/{chunk.JTBOIS3P.js → chunk.2XCTA3AO.js} +2 -2
- package/dist/chunks/{chunk.SHZVMCAL.js → chunk.2XJUCSO3.js} +2 -2
- package/dist/chunks/{chunk.4WNYNG6M.js → chunk.35GWQ3HX.js} +6 -4
- package/dist/chunks/{chunk.4WNYNG6M.js.map → chunk.35GWQ3HX.js.map} +1 -1
- package/dist/chunks/{chunk.BJSVCJFM.js → chunk.3DLFZSF7.js} +2 -2
- package/dist/chunks/{chunk.UAPQUESV.js → chunk.46LZSYUL.js} +2 -2
- package/dist/chunks/{chunk.XXDBMOXE.js → chunk.47JTZI3N.js} +7 -5
- package/dist/chunks/{chunk.XXDBMOXE.js.map → chunk.47JTZI3N.js.map} +1 -1
- package/dist/chunks/{chunk.VLGDGOMV.js → chunk.4JYTX6L6.js} +2 -2
- package/dist/chunks/{chunk.TB26Q2QS.js → chunk.4UIWHJGU.js} +6 -4
- package/dist/chunks/{chunk.TB26Q2QS.js.map → chunk.4UIWHJGU.js.map} +1 -1
- package/dist/chunks/{chunk.XIV4ITDK.js → chunk.5MAFVQHL.js} +2 -2
- package/dist/chunks/{chunk.643SASYP.js → chunk.5PHPJIT3.js} +5 -3
- package/dist/chunks/{chunk.643SASYP.js.map → chunk.5PHPJIT3.js.map} +1 -1
- package/dist/chunks/{chunk.K45HZM5E.js → chunk.6FBJHPH5.js} +5 -3
- package/dist/chunks/{chunk.K45HZM5E.js.map → chunk.6FBJHPH5.js.map} +1 -1
- package/dist/chunks/{chunk.QZW3Q6B4.js → chunk.6HHHEQL2.js} +2 -2
- package/dist/chunks/{chunk.DEYURI7S.js → chunk.6K5JDD4E.js} +2 -2
- package/dist/chunks/{chunk.DCPGWRJI.js → chunk.7GDRQYV4.js} +2 -2
- package/dist/chunks/{chunk.PBF6RVNL.js → chunk.7JAGIORC.js} +2 -2
- package/dist/chunks/{chunk.EKXTNQO7.js → chunk.7KHURS47.js} +5 -3
- package/dist/chunks/{chunk.EKXTNQO7.js.map → chunk.7KHURS47.js.map} +1 -1
- package/dist/chunks/{chunk.2PFKNC2D.js → chunk.7T2JCP5U.js} +9 -7
- package/dist/chunks/{chunk.2PFKNC2D.js.map → chunk.7T2JCP5U.js.map} +1 -1
- package/dist/chunks/{chunk.OZIGI7GO.js → chunk.A4LXD7RK.js} +6 -4
- package/dist/chunks/{chunk.OZIGI7GO.js.map → chunk.A4LXD7RK.js.map} +1 -1
- package/dist/chunks/{chunk.BATEH5VM.js → chunk.AHZOH7NS.js} +2 -2
- package/dist/chunks/{chunk.EDTGXXBJ.js → chunk.AIYNTCBR.js} +5 -3
- package/dist/chunks/{chunk.EDTGXXBJ.js.map → chunk.AIYNTCBR.js.map} +1 -1
- package/dist/chunks/{chunk.BBNQVEPD.js → chunk.AMIQC3O7.js} +8 -2
- package/dist/chunks/chunk.AMIQC3O7.js.map +7 -0
- package/dist/chunks/{chunk.WEYEJFFY.js → chunk.AOYLQDC7.js} +2 -2
- package/dist/chunks/{chunk.FCRF3SOO.js → chunk.B6ORTU2I.js} +5 -3
- package/dist/chunks/{chunk.FCRF3SOO.js.map → chunk.B6ORTU2I.js.map} +1 -1
- package/dist/chunks/{chunk.EOEYR3VQ.js → chunk.BJMYDPMI.js} +2 -2
- package/dist/chunks/{chunk.OOGMXXI2.js → chunk.BUGMDNEC.js} +2 -2
- package/dist/chunks/{chunk.NVYV4TL7.js → chunk.C63XSKGJ.js} +6 -4
- package/dist/chunks/{chunk.NVYV4TL7.js.map → chunk.C63XSKGJ.js.map} +1 -1
- package/dist/chunks/{chunk.Q6YZNE6X.js → chunk.CBX6NOJC.js} +2 -2
- package/dist/chunks/{chunk.WQFDSBDV.js → chunk.CEHNUDZV.js} +5 -3
- package/dist/chunks/{chunk.WQFDSBDV.js.map → chunk.CEHNUDZV.js.map} +1 -1
- package/dist/chunks/{chunk.IMCTX6SG.js → chunk.D3BR2E23.js} +6 -4
- package/dist/chunks/{chunk.IMCTX6SG.js.map → chunk.D3BR2E23.js.map} +1 -1
- package/dist/chunks/{chunk.FT4NXY3H.js → chunk.DUTZXAX3.js} +2 -2
- package/dist/chunks/{chunk.P6WLOVPY.js → chunk.DVJ5ESOK.js} +2 -2
- package/dist/chunks/{chunk.R7JCAPQ6.js → chunk.E3ZZVSK2.js} +5 -3
- package/dist/chunks/{chunk.R7JCAPQ6.js.map → chunk.E3ZZVSK2.js.map} +1 -1
- package/dist/chunks/{chunk.FHQWJAM4.js → chunk.EL6YEL4Z.js} +6 -4
- package/dist/chunks/{chunk.FHQWJAM4.js.map → chunk.EL6YEL4Z.js.map} +1 -1
- package/dist/chunks/{chunk.7PKSP5SS.js → chunk.F7DPSZNS.js} +2 -2
- package/dist/chunks/{chunk.5XB7SBRX.js → chunk.FJAWKC4Q.js} +2 -2
- package/dist/chunks/{chunk.TN26BBH4.js → chunk.FW2KAIBS.js} +2 -2
- package/dist/chunks/{chunk.X36XXWZC.js → chunk.GE4N3DEH.js} +2 -2
- package/dist/chunks/{chunk.GH4C3A5N.js → chunk.GJKBCEE2.js} +8 -6
- package/dist/chunks/{chunk.GH4C3A5N.js.map → chunk.GJKBCEE2.js.map} +1 -1
- package/dist/chunks/{chunk.IT5SA4BC.js → chunk.H44EMWNO.js} +6 -4
- package/dist/chunks/{chunk.IT5SA4BC.js.map → chunk.H44EMWNO.js.map} +1 -1
- package/dist/chunks/{chunk.543GQUFN.js → chunk.HA5UYBEI.js} +2 -2
- package/dist/chunks/{chunk.LSNUIBG6.js → chunk.HNJ7JOOE.js} +3 -3
- package/dist/chunks/{chunk.MHM23B27.js → chunk.HRCFYO6D.js} +2 -2
- package/dist/chunks/{chunk.IFGAXFVI.js → chunk.IDTO73ND.js} +8 -6
- package/dist/chunks/{chunk.IFGAXFVI.js.map → chunk.IDTO73ND.js.map} +1 -1
- package/dist/chunks/{chunk.NL3RUWYS.js → chunk.IFXKIEOU.js} +1 -3
- package/dist/chunks/chunk.IFXKIEOU.js.map +7 -0
- package/dist/chunks/{chunk.E5LWNDPD.js → chunk.IU2XW7CB.js} +6 -4
- package/dist/chunks/{chunk.E5LWNDPD.js.map → chunk.IU2XW7CB.js.map} +1 -1
- package/dist/chunks/{chunk.AYTT55GX.js → chunk.J6AGKJUK.js} +7 -5
- package/dist/chunks/{chunk.AYTT55GX.js.map → chunk.J6AGKJUK.js.map} +1 -1
- package/dist/chunks/{chunk.VQL5I2S4.js → chunk.JAKZ77B7.js} +2 -2
- package/dist/chunks/{chunk.2SWKHX7Z.js → chunk.JGNDU3BQ.js} +2 -2
- package/dist/chunks/{chunk.BRYUJEQR.js → chunk.JHRKJLEP.js} +2 -2
- package/dist/chunks/{chunk.EOPGDAZP.js → chunk.JSAB4Y6I.js} +5 -3
- package/dist/chunks/{chunk.EOPGDAZP.js.map → chunk.JSAB4Y6I.js.map} +1 -1
- package/dist/chunks/{chunk.NSTWUQTX.js → chunk.KFN7XYP3.js} +2 -2
- package/dist/chunks/{chunk.MQS5SMS2.js → chunk.KJGQ4ZXQ.js} +2 -2
- package/dist/chunks/{chunk.TVWWGOJ3.js → chunk.LBRFK4LI.js} +2 -2
- package/dist/chunks/{chunk.YLJQ6AET.js → chunk.LFFBRQZW.js} +6 -4
- package/dist/chunks/{chunk.YLJQ6AET.js.map → chunk.LFFBRQZW.js.map} +1 -1
- package/dist/chunks/{chunk.PQHKZREE.js → chunk.LRPIQZUE.js} +6 -4
- package/dist/chunks/{chunk.PQHKZREE.js.map → chunk.LRPIQZUE.js.map} +1 -1
- package/dist/chunks/{chunk.AINKZEUX.js → chunk.LUXDS4EY.js} +6 -4
- package/dist/chunks/chunk.LUXDS4EY.js.map +7 -0
- package/dist/chunks/chunk.M53SBVYB.js +289 -0
- package/dist/chunks/chunk.M53SBVYB.js.map +7 -0
- package/dist/chunks/{chunk.5YW2U6KS.js → chunk.MPLBBUS4.js} +2 -2
- package/dist/chunks/chunk.MVM3NN6Y.js +14 -0
- package/dist/chunks/chunk.MVM3NN6Y.js.map +7 -0
- package/dist/chunks/{chunk.3Z5FOLLQ.js → chunk.NB5A7N4Y.js} +2 -2
- package/dist/chunks/{chunk.PKLSJL56.js → chunk.NERVPV5E.js} +7 -5
- package/dist/chunks/{chunk.PKLSJL56.js.map → chunk.NERVPV5E.js.map} +1 -1
- package/dist/chunks/chunk.NLYVOJGK.js +23 -0
- package/dist/chunks/chunk.NLYVOJGK.js.map +7 -0
- package/dist/chunks/{chunk.MSPPD7AH.js → chunk.OI2YSFSJ.js} +2 -2
- package/dist/chunks/{chunk.4CYANWKX.js → chunk.OTWB4YCK.js} +2 -2
- package/dist/chunks/{chunk.5LAIPQXK.js → chunk.OVKKA5PU.js} +5 -3
- package/dist/chunks/{chunk.5LAIPQXK.js.map → chunk.OVKKA5PU.js.map} +1 -1
- package/dist/chunks/{chunk.WHYQOSRG.js → chunk.QNDW2KU7.js} +8 -6
- package/dist/chunks/{chunk.WHYQOSRG.js.map → chunk.QNDW2KU7.js.map} +1 -1
- package/dist/chunks/{chunk.6DNYJLIW.js → chunk.R76M6KAF.js} +7 -5
- package/dist/chunks/{chunk.6DNYJLIW.js.map → chunk.R76M6KAF.js.map} +1 -1
- package/dist/chunks/{chunk.4MWRR556.js → chunk.RCLQ6KWO.js} +5 -3
- package/dist/chunks/{chunk.4MWRR556.js.map → chunk.RCLQ6KWO.js.map} +1 -1
- package/dist/chunks/{chunk.2BNI5WOS.js → chunk.RHPPIKE6.js} +3 -23
- package/dist/chunks/{chunk.2BNI5WOS.js.map → chunk.RHPPIKE6.js.map} +3 -3
- package/dist/chunks/{chunk.OEBOUFVY.js → chunk.RICGHU7R.js} +2 -2
- package/dist/chunks/{chunk.7P2VAGAY.js → chunk.RTNMPZXS.js} +9 -7
- package/dist/chunks/{chunk.7P2VAGAY.js.map → chunk.RTNMPZXS.js.map} +1 -1
- package/dist/chunks/{chunk.WPZ3EN3B.js → chunk.S2HGI6BM.js} +6 -4
- package/dist/chunks/{chunk.WPZ3EN3B.js.map → chunk.S2HGI6BM.js.map} +1 -1
- package/dist/chunks/{chunk.XQQUEMGS.js → chunk.S6ITAIH6.js} +8 -6
- package/dist/chunks/{chunk.XQQUEMGS.js.map → chunk.S6ITAIH6.js.map} +1 -1
- package/dist/chunks/{chunk.4JFMTHQM.js → chunk.SCLHFDHD.js} +5 -3
- package/dist/chunks/{chunk.4JFMTHQM.js.map → chunk.SCLHFDHD.js.map} +1 -1
- package/dist/chunks/{chunk.Z2IGM23Y.js → chunk.SILUTMTL.js} +2 -2
- package/dist/chunks/{chunk.JSVWUDAP.js → chunk.SOEUVX7Q.js} +6 -4
- package/dist/chunks/{chunk.JSVWUDAP.js.map → chunk.SOEUVX7Q.js.map} +1 -1
- package/dist/chunks/{chunk.GJOJYXAN.js → chunk.SVBD2JZ2.js} +5 -3
- package/dist/chunks/{chunk.GJOJYXAN.js.map → chunk.SVBD2JZ2.js.map} +1 -1
- package/dist/chunks/chunk.SWC5FQRY.js +12 -0
- package/dist/chunks/chunk.SWC5FQRY.js.map +7 -0
- package/dist/chunks/{chunk.YVXZTTRH.js → chunk.THXJYLZH.js} +6 -4
- package/dist/chunks/{chunk.YVXZTTRH.js.map → chunk.THXJYLZH.js.map} +1 -1
- package/dist/chunks/{chunk.G432IZJ2.js → chunk.TJTS3RJ6.js} +5 -3
- package/dist/chunks/{chunk.G432IZJ2.js.map → chunk.TJTS3RJ6.js.map} +1 -1
- package/dist/chunks/{chunk.JUTPXWUZ.js → chunk.TUI5HJJF.js} +2 -2
- package/dist/chunks/{chunk.7SF5E4DI.js → chunk.U7JCACM5.js} +2 -2
- package/dist/chunks/{chunk.NBUVZYFF.js → chunk.UAYDJJOS.js} +2 -2
- package/dist/chunks/{chunk.DRLBTO2U.js → chunk.UTJJJQMA.js} +2 -2
- package/dist/chunks/{chunk.XIVBBNCN.js → chunk.V5QBVSUE.js} +5 -3
- package/dist/chunks/{chunk.XIVBBNCN.js.map → chunk.V5QBVSUE.js.map} +1 -1
- package/dist/chunks/{chunk.WYQQ5NFF.js → chunk.VYWKS5N3.js} +2 -2
- package/dist/chunks/{chunk.3G27YSWH.js → chunk.WAN4H4BO.js} +2 -2
- package/dist/chunks/{chunk.7OLDDQ7B.js → chunk.WRQHSCDL.js} +2 -2
- package/dist/chunks/{chunk.YVVRO3WJ.js → chunk.X6UQBEJW.js} +6 -4
- package/dist/chunks/{chunk.YVVRO3WJ.js.map → chunk.X6UQBEJW.js.map} +1 -1
- package/dist/chunks/{chunk.EXLEFPSG.js → chunk.XHX52IKN.js} +8 -6
- package/dist/chunks/{chunk.EXLEFPSG.js.map → chunk.XHX52IKN.js.map} +1 -1
- package/dist/chunks/{chunk.EYOKIN5I.js → chunk.XY3F3BWV.js} +2 -2
- package/dist/chunks/{chunk.M4IT5SWM.js → chunk.YB4KKBGA.js} +2 -2
- package/dist/chunks/{chunk.ZWYTILAB.js → chunk.YDFXKQKE.js} +7 -5
- package/dist/chunks/{chunk.ZWYTILAB.js.map → chunk.YDFXKQKE.js.map} +1 -1
- package/dist/chunks/{chunk.D2QV563O.js → chunk.YR33QXK4.js} +6 -4
- package/dist/chunks/{chunk.D2QV563O.js.map → chunk.YR33QXK4.js.map} +1 -1
- package/dist/chunks/chunk.YXVEHDZY.js +36 -0
- package/dist/chunks/chunk.YXVEHDZY.js.map +7 -0
- package/dist/chunks/{chunk.AQMETA2K.js → chunk.ZU7ZBKHI.js} +2 -2
- package/dist/components/accordion/accordion.component.js +3 -2
- package/dist/components/accordion/accordion.js +4 -3
- package/dist/components/alert/alert.component.js +8 -7
- package/dist/components/alert/alert.js +9 -8
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +3 -2
- package/dist/components/badge/badge.js +4 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +6 -5
- package/dist/components/breadcrumb/breadcrumb.js +7 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +3 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +4 -3
- package/dist/components/button/button.component.js +8 -7
- package/dist/components/button/button.js +9 -8
- package/dist/components/button-group/button-group.component.js +3 -2
- package/dist/components/button-group/button-group.js +4 -3
- package/dist/components/card/card.component.js +3 -2
- package/dist/components/card/card.js +4 -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 +8 -7
- package/dist/components/combobox/combobox.js +9 -8
- package/dist/components/details/details.component.js +6 -5
- package/dist/components/details/details.js +7 -6
- package/dist/components/dialog/dialog.component.js +7 -6
- package/dist/components/dialog/dialog.js +8 -7
- package/dist/components/divider/divider.component.js +3 -2
- package/dist/components/divider/divider.js +4 -3
- package/dist/components/drawer/drawer.component.js +7 -6
- package/dist/components/drawer/drawer.js +8 -7
- package/dist/components/dropdown/dropdown.component.js +4 -3
- package/dist/components/dropdown/dropdown.js +5 -4
- package/dist/components/file/file.component.js +9 -8
- package/dist/components/file/file.js +10 -9
- package/dist/components/header/header.component.js +7 -6
- package/dist/components/header/header.js +8 -7
- package/dist/components/icon/icon.component.js +5 -4
- package/dist/components/icon/icon.js +6 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.js +6 -5
- package/dist/components/icon-button/icon-button.js +7 -6
- package/dist/components/input/input.component.js +8 -7
- package/dist/components/input/input.js +9 -8
- package/dist/components/menu/menu.component.js +3 -2
- package/dist/components/menu/menu.js +4 -3
- package/dist/components/menu-item/menu-item.component.js +8 -7
- package/dist/components/menu-item/menu-item.js +9 -8
- package/dist/components/menu-label/menu-label.component.js +4 -3
- package/dist/components/menu-label/menu-label.js +5 -4
- package/dist/components/nav-item/nav-item.component.js +4 -3
- package/dist/components/nav-item/nav-item.js +5 -4
- package/dist/components/optgroup/optgroup.component.js +4 -3
- package/dist/components/optgroup/optgroup.js +5 -4
- package/dist/components/option/option.component.js +6 -5
- package/dist/components/option/option.js +7 -6
- package/dist/components/popup/popup.component.js +3 -2
- package/dist/components/popup/popup.js +4 -3
- package/dist/components/prio-nav/prio-nav.component.js +11 -10
- package/dist/components/prio-nav/prio-nav.js +12 -11
- package/dist/components/progress-bar/progress-bar.component.js +3 -2
- package/dist/components/progress-bar/progress-bar.js +4 -3
- package/dist/components/progress-ring/progress-ring.component.js +3 -2
- package/dist/components/progress-ring/progress-ring.js +4 -3
- package/dist/components/radio/radio.component.js +6 -5
- package/dist/components/radio/radio.js +7 -6
- package/dist/components/radio-button/radio-button.component.js +3 -2
- package/dist/components/radio-button/radio-button.js +4 -3
- package/dist/components/radio-group/radio-group.component.js +5 -4
- package/dist/components/radio-group/radio-group.js +6 -5
- package/dist/components/range/range.component.js +6 -5
- package/dist/components/range/range.js +7 -6
- package/dist/components/range-tick/range-tick.component.js +3 -2
- package/dist/components/range-tick/range-tick.js +4 -3
- package/dist/components/resize-observer/resize-observer.component.js +3 -2
- package/dist/components/select/select.component.js +10 -9
- package/dist/components/select/select.js +11 -10
- package/dist/components/side-nav/side-nav.component.js +9 -8
- package/dist/components/side-nav/side-nav.js +10 -9
- package/dist/components/spinner/spinner.component.js +3 -2
- package/dist/components/spinner/spinner.js +4 -3
- package/dist/components/switch/switch.component.js +4 -3
- package/dist/components/switch/switch.js +5 -4
- package/dist/components/tab/tab.component.js +7 -6
- package/dist/components/tab/tab.js +8 -7
- package/dist/components/tab-group/tab-group.component.js +8 -7
- package/dist/components/tab-group/tab-group.js +9 -8
- package/dist/components/tab-panel/tab-panel.component.js +3 -2
- package/dist/components/tab-panel/tab-panel.js +4 -3
- package/dist/components/tag/tag.component.js +7 -6
- package/dist/components/tag/tag.js +8 -7
- package/dist/components/textarea/textarea.component.js +4 -3
- package/dist/components/textarea/textarea.js +5 -4
- package/dist/components/tooltip/tooltip.component.js +4 -3
- package/dist/components/tooltip/tooltip.js +5 -4
- package/dist/components/validate/utility.d.ts +27 -0
- package/dist/components/validate/utility.js +17 -0
- package/dist/components/validate/utility.js.map +7 -0
- package/dist/components/validate/validate.component.d.ts +126 -0
- package/dist/components/validate/validate.component.js +32 -0
- package/dist/components/validate/validate.component.js.map +7 -0
- package/dist/components/validate/validate.d.ts +8 -0
- package/dist/components/validate/validate.js +33 -0
- package/dist/components/validate/validate.js.map +7 -0
- package/dist/components/validate/validate.styles.d.ts +2 -0
- package/dist/components/validate/validate.styles.js +8 -0
- package/dist/components/validate/validate.styles.js.map +7 -0
- package/dist/custom-elements.json +331 -1
- package/dist/styles/fouc.css +2 -1
- package/dist/styles/index.css +3 -2
- package/dist/synergy.d.ts +1 -0
- package/dist/synergy.js +105 -97
- package/dist/utilities/form.js +2 -2
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +37 -0
- package/package.json +3 -3
- package/dist/chunks/chunk.AINKZEUX.js.map +0 -7
- package/dist/chunks/chunk.BBNQVEPD.js.map +0 -7
- package/dist/chunks/chunk.NL3RUWYS.js.map +0 -7
- /package/dist/chunks/{chunk.C4JHD57V.js.map → chunk.2RR6PD3H.js.map} +0 -0
- /package/dist/chunks/{chunk.IMA7VYIB.js.map → chunk.2VWVV75N.js.map} +0 -0
- /package/dist/chunks/{chunk.JTBOIS3P.js.map → chunk.2XCTA3AO.js.map} +0 -0
- /package/dist/chunks/{chunk.SHZVMCAL.js.map → chunk.2XJUCSO3.js.map} +0 -0
- /package/dist/chunks/{chunk.BJSVCJFM.js.map → chunk.3DLFZSF7.js.map} +0 -0
- /package/dist/chunks/{chunk.UAPQUESV.js.map → chunk.46LZSYUL.js.map} +0 -0
- /package/dist/chunks/{chunk.VLGDGOMV.js.map → chunk.4JYTX6L6.js.map} +0 -0
- /package/dist/chunks/{chunk.XIV4ITDK.js.map → chunk.5MAFVQHL.js.map} +0 -0
- /package/dist/chunks/{chunk.QZW3Q6B4.js.map → chunk.6HHHEQL2.js.map} +0 -0
- /package/dist/chunks/{chunk.DEYURI7S.js.map → chunk.6K5JDD4E.js.map} +0 -0
- /package/dist/chunks/{chunk.DCPGWRJI.js.map → chunk.7GDRQYV4.js.map} +0 -0
- /package/dist/chunks/{chunk.PBF6RVNL.js.map → chunk.7JAGIORC.js.map} +0 -0
- /package/dist/chunks/{chunk.BATEH5VM.js.map → chunk.AHZOH7NS.js.map} +0 -0
- /package/dist/chunks/{chunk.WEYEJFFY.js.map → chunk.AOYLQDC7.js.map} +0 -0
- /package/dist/chunks/{chunk.EOEYR3VQ.js.map → chunk.BJMYDPMI.js.map} +0 -0
- /package/dist/chunks/{chunk.OOGMXXI2.js.map → chunk.BUGMDNEC.js.map} +0 -0
- /package/dist/chunks/{chunk.Q6YZNE6X.js.map → chunk.CBX6NOJC.js.map} +0 -0
- /package/dist/chunks/{chunk.FT4NXY3H.js.map → chunk.DUTZXAX3.js.map} +0 -0
- /package/dist/chunks/{chunk.P6WLOVPY.js.map → chunk.DVJ5ESOK.js.map} +0 -0
- /package/dist/chunks/{chunk.7PKSP5SS.js.map → chunk.F7DPSZNS.js.map} +0 -0
- /package/dist/chunks/{chunk.5XB7SBRX.js.map → chunk.FJAWKC4Q.js.map} +0 -0
- /package/dist/chunks/{chunk.TN26BBH4.js.map → chunk.FW2KAIBS.js.map} +0 -0
- /package/dist/chunks/{chunk.X36XXWZC.js.map → chunk.GE4N3DEH.js.map} +0 -0
- /package/dist/chunks/{chunk.543GQUFN.js.map → chunk.HA5UYBEI.js.map} +0 -0
- /package/dist/chunks/{chunk.LSNUIBG6.js.map → chunk.HNJ7JOOE.js.map} +0 -0
- /package/dist/chunks/{chunk.MHM23B27.js.map → chunk.HRCFYO6D.js.map} +0 -0
- /package/dist/chunks/{chunk.VQL5I2S4.js.map → chunk.JAKZ77B7.js.map} +0 -0
- /package/dist/chunks/{chunk.2SWKHX7Z.js.map → chunk.JGNDU3BQ.js.map} +0 -0
- /package/dist/chunks/{chunk.BRYUJEQR.js.map → chunk.JHRKJLEP.js.map} +0 -0
- /package/dist/chunks/{chunk.NSTWUQTX.js.map → chunk.KFN7XYP3.js.map} +0 -0
- /package/dist/chunks/{chunk.MQS5SMS2.js.map → chunk.KJGQ4ZXQ.js.map} +0 -0
- /package/dist/chunks/{chunk.TVWWGOJ3.js.map → chunk.LBRFK4LI.js.map} +0 -0
- /package/dist/chunks/{chunk.5YW2U6KS.js.map → chunk.MPLBBUS4.js.map} +0 -0
- /package/dist/chunks/{chunk.3Z5FOLLQ.js.map → chunk.NB5A7N4Y.js.map} +0 -0
- /package/dist/chunks/{chunk.MSPPD7AH.js.map → chunk.OI2YSFSJ.js.map} +0 -0
- /package/dist/chunks/{chunk.4CYANWKX.js.map → chunk.OTWB4YCK.js.map} +0 -0
- /package/dist/chunks/{chunk.OEBOUFVY.js.map → chunk.RICGHU7R.js.map} +0 -0
- /package/dist/chunks/{chunk.Z2IGM23Y.js.map → chunk.SILUTMTL.js.map} +0 -0
- /package/dist/chunks/{chunk.JUTPXWUZ.js.map → chunk.TUI5HJJF.js.map} +0 -0
- /package/dist/chunks/{chunk.7SF5E4DI.js.map → chunk.U7JCACM5.js.map} +0 -0
- /package/dist/chunks/{chunk.NBUVZYFF.js.map → chunk.UAYDJJOS.js.map} +0 -0
- /package/dist/chunks/{chunk.DRLBTO2U.js.map → chunk.UTJJJQMA.js.map} +0 -0
- /package/dist/chunks/{chunk.WYQQ5NFF.js.map → chunk.VYWKS5N3.js.map} +0 -0
- /package/dist/chunks/{chunk.3G27YSWH.js.map → chunk.WAN4H4BO.js.map} +0 -0
- /package/dist/chunks/{chunk.7OLDDQ7B.js.map → chunk.WRQHSCDL.js.map} +0 -0
- /package/dist/chunks/{chunk.EYOKIN5I.js.map → chunk.XY3F3BWV.js.map} +0 -0
- /package/dist/chunks/{chunk.M4IT5SWM.js.map → chunk.YB4KKBGA.js.map} +0 -0
- /package/dist/chunks/{chunk.AQMETA2K.js.map → chunk.ZU7ZBKHI.js.map} +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import SynergyElement from '../../internal/synergy-element.js';
|
|
3
|
+
import SynAlert from '../alert/alert.component.js';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Validate provides form field validation messages in a unified way.
|
|
6
|
+
* It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
|
|
7
|
+
* and showing the validation message in a consistent, user defined way.
|
|
8
|
+
*
|
|
9
|
+
* @dependency syn-alert
|
|
10
|
+
*
|
|
11
|
+
* @slot - The form field that should be validated.
|
|
12
|
+
* Avoid slotting in more than one element, as subsequent ones will be ignored.
|
|
13
|
+
*
|
|
14
|
+
* @csspart base - The component's base wrapper.
|
|
15
|
+
* @csspart input-wrapper - The container that wraps the form field.
|
|
16
|
+
* @csspart alert - The syn-alert that is shown when the variant is set to "inline".
|
|
17
|
+
* @csspart alert__base - The container that wraps the alert.
|
|
18
|
+
* @csspart alert__message - The container that wraps the alert message.
|
|
19
|
+
* @csspart alert__icon - The container that wraps the alert icon.
|
|
20
|
+
*/
|
|
21
|
+
export default class SynValidate extends SynergyElement {
|
|
22
|
+
static styles: CSSResultGroup;
|
|
23
|
+
static dependencies: {
|
|
24
|
+
'syn-alert': typeof SynAlert;
|
|
25
|
+
};
|
|
26
|
+
controller: AbortController;
|
|
27
|
+
private slottedChildren;
|
|
28
|
+
validationMessage: string;
|
|
29
|
+
eagerFirstMount: boolean;
|
|
30
|
+
isInternalTriggeredInvalid: boolean;
|
|
31
|
+
isValid: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The variant that should be used to show validation alerts.
|
|
34
|
+
*
|
|
35
|
+
* The following variants are supported:
|
|
36
|
+
* - **native** (default): Uses the native browser validation, usually a browser tooltip.
|
|
37
|
+
* - **inline**: Show the validation message underneath the element, using a `<syn-alert>`
|
|
38
|
+
*/
|
|
39
|
+
variant: 'native' | 'inline';
|
|
40
|
+
/** Do not show the error icon when using the inline variant validation */
|
|
41
|
+
hideIcon: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Defines the events that trigger the validation.
|
|
44
|
+
* `invalid` will always automatically be included.
|
|
45
|
+
* You may also use the `live` keyword to validate on every input change.
|
|
46
|
+
* `live` will make sure to listen to the `invalid`, `input` and `blur` events.
|
|
47
|
+
*
|
|
48
|
+
* Please have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
|
|
49
|
+
* and [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.
|
|
50
|
+
*
|
|
51
|
+
* @example ```html
|
|
52
|
+
* <!-- Validate on invalid and change events (invalid, change) -->
|
|
53
|
+
* <syn-validate on="invalid change"></syn-validate>
|
|
54
|
+
*
|
|
55
|
+
* <!-- Validate on live events (invalid, blur, input)-->
|
|
56
|
+
* <syn-validate on="live"></syn-validate>
|
|
57
|
+
*
|
|
58
|
+
* <!-- Validate on live and custom events (invalid, blur, input, focus, change) -->
|
|
59
|
+
* <syn-validate on="live focus change"></syn-validate>
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
on: string;
|
|
63
|
+
/**
|
|
64
|
+
* Custom validation message to be displayed when the input is invalid.
|
|
65
|
+
* Will override the default browser validation message.
|
|
66
|
+
* Set to an empty string to reset the validation message.
|
|
67
|
+
*/
|
|
68
|
+
customValidationMessage: string;
|
|
69
|
+
/**
|
|
70
|
+
* Set this to true to validate the input immediately when it is rendered.
|
|
71
|
+
* Best used with a `variant` of `inline`.
|
|
72
|
+
* When setting eager, the input will not be focused automatically.
|
|
73
|
+
*
|
|
74
|
+
* When using a `variant` of `native` the browser will focus
|
|
75
|
+
* the last eager field as it is using a tooltip.
|
|
76
|
+
* In this case it is better to just provide one eager field.
|
|
77
|
+
*/
|
|
78
|
+
eager: boolean;
|
|
79
|
+
handleListenerChange(): void;
|
|
80
|
+
handleEagerChange(): Promise<void>;
|
|
81
|
+
handleCustomValidationMessageChange(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Returns the validity state of the input component.
|
|
84
|
+
* `true` for valid and `false` for invalid.
|
|
85
|
+
*/
|
|
86
|
+
getValidity(): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Get the input element to validate. Defined as the first slotted element
|
|
89
|
+
* @returns The input element or undefined if not found
|
|
90
|
+
*/
|
|
91
|
+
private getInput;
|
|
92
|
+
/**
|
|
93
|
+
* Get the event names to listen for.
|
|
94
|
+
* If the input is a synergy element, will use syn- prefixes.
|
|
95
|
+
* @returns The event names to listen for
|
|
96
|
+
*/
|
|
97
|
+
private getUsedEventNames;
|
|
98
|
+
/**
|
|
99
|
+
* Update the events on the input element.
|
|
100
|
+
*/
|
|
101
|
+
private updateEvents;
|
|
102
|
+
private setValidationMessage;
|
|
103
|
+
/**
|
|
104
|
+
* Set the custom validation message to the input. This will make sure to either:
|
|
105
|
+
* - use the custom message if one is set or
|
|
106
|
+
* - use the default message if the custom message is empty
|
|
107
|
+
*/
|
|
108
|
+
private setCustomValidationMessage;
|
|
109
|
+
/**
|
|
110
|
+
* Set the validation message from the input element
|
|
111
|
+
* @param e The event that was received
|
|
112
|
+
*/
|
|
113
|
+
private internalRevalidate;
|
|
114
|
+
/**
|
|
115
|
+
* Handle the blur event during validation
|
|
116
|
+
*/
|
|
117
|
+
private handleFocus;
|
|
118
|
+
/**
|
|
119
|
+
* Triggers a validation run, showing the validation message if needed.
|
|
120
|
+
*/
|
|
121
|
+
private validate;
|
|
122
|
+
firstUpdated(): Promise<void>;
|
|
123
|
+
disconnectedCallback(): void;
|
|
124
|
+
private renderInlineValidation;
|
|
125
|
+
render(): import("lit").TemplateResult<1>;
|
|
126
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynValidate
|
|
3
|
+
} from "../../chunks/chunk.M53SBVYB.js";
|
|
4
|
+
import "../../chunks/chunk.YXVEHDZY.js";
|
|
5
|
+
import "../../chunks/chunk.MVM3NN6Y.js";
|
|
6
|
+
import "../../chunks/chunk.NERVPV5E.js";
|
|
7
|
+
import "../../chunks/chunk.THXJYLZH.js";
|
|
8
|
+
import "../../chunks/chunk.6QYKWCSO.js";
|
|
9
|
+
import "../../chunks/chunk.DZ7YIR5N.js";
|
|
10
|
+
import "../../chunks/chunk.C2ENQBPM.js";
|
|
11
|
+
import "../../chunks/chunk.A3OYJILJ.js";
|
|
12
|
+
import "../../chunks/chunk.HQ6QUSK7.js";
|
|
13
|
+
import "../../chunks/chunk.WVVQK5TE.js";
|
|
14
|
+
import "../../chunks/chunk.SOEUVX7Q.js";
|
|
15
|
+
import "../../chunks/chunk.HA5UYBEI.js";
|
|
16
|
+
import "../../chunks/chunk.YTEJW7IF.js";
|
|
17
|
+
import "../../chunks/chunk.LUXDS4EY.js";
|
|
18
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
19
|
+
import "../../chunks/chunk.ZBW4ZSZ7.js";
|
|
20
|
+
import "../../chunks/chunk.GIU3H3J3.js";
|
|
21
|
+
import "../../chunks/chunk.S5N2TE2L.js";
|
|
22
|
+
import "../../chunks/chunk.234ERFCE.js";
|
|
23
|
+
import "../../chunks/chunk.74IOULXM.js";
|
|
24
|
+
import "../../chunks/chunk.NLYVOJGK.js";
|
|
25
|
+
import "../../chunks/chunk.RHPPIKE6.js";
|
|
26
|
+
import "../../chunks/chunk.JRYXECAY.js";
|
|
27
|
+
import "../../chunks/chunk.IFXKIEOU.js";
|
|
28
|
+
import "../../chunks/chunk.2GFK6XTO.js";
|
|
29
|
+
export {
|
|
30
|
+
SynValidate as default
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=validate.component.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
validate_default
|
|
3
|
+
} from "../../chunks/chunk.SWC5FQRY.js";
|
|
4
|
+
import "../../chunks/chunk.M53SBVYB.js";
|
|
5
|
+
import "../../chunks/chunk.YXVEHDZY.js";
|
|
6
|
+
import "../../chunks/chunk.MVM3NN6Y.js";
|
|
7
|
+
import "../../chunks/chunk.NERVPV5E.js";
|
|
8
|
+
import "../../chunks/chunk.THXJYLZH.js";
|
|
9
|
+
import "../../chunks/chunk.6QYKWCSO.js";
|
|
10
|
+
import "../../chunks/chunk.DZ7YIR5N.js";
|
|
11
|
+
import "../../chunks/chunk.C2ENQBPM.js";
|
|
12
|
+
import "../../chunks/chunk.A3OYJILJ.js";
|
|
13
|
+
import "../../chunks/chunk.HQ6QUSK7.js";
|
|
14
|
+
import "../../chunks/chunk.WVVQK5TE.js";
|
|
15
|
+
import "../../chunks/chunk.SOEUVX7Q.js";
|
|
16
|
+
import "../../chunks/chunk.HA5UYBEI.js";
|
|
17
|
+
import "../../chunks/chunk.YTEJW7IF.js";
|
|
18
|
+
import "../../chunks/chunk.LUXDS4EY.js";
|
|
19
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
20
|
+
import "../../chunks/chunk.ZBW4ZSZ7.js";
|
|
21
|
+
import "../../chunks/chunk.GIU3H3J3.js";
|
|
22
|
+
import "../../chunks/chunk.S5N2TE2L.js";
|
|
23
|
+
import "../../chunks/chunk.234ERFCE.js";
|
|
24
|
+
import "../../chunks/chunk.74IOULXM.js";
|
|
25
|
+
import "../../chunks/chunk.NLYVOJGK.js";
|
|
26
|
+
import "../../chunks/chunk.RHPPIKE6.js";
|
|
27
|
+
import "../../chunks/chunk.JRYXECAY.js";
|
|
28
|
+
import "../../chunks/chunk.IFXKIEOU.js";
|
|
29
|
+
import "../../chunks/chunk.2GFK6XTO.js";
|
|
30
|
+
export {
|
|
31
|
+
validate_default as default
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=validate.js.map
|
|
@@ -15348,12 +15348,342 @@
|
|
|
15348
15348
|
}
|
|
15349
15349
|
}
|
|
15350
15350
|
]
|
|
15351
|
+
},
|
|
15352
|
+
{
|
|
15353
|
+
"kind": "javascript-module",
|
|
15354
|
+
"path": "components/validate/validate.js",
|
|
15355
|
+
"declarations": [
|
|
15356
|
+
{
|
|
15357
|
+
"kind": "class",
|
|
15358
|
+
"description": "",
|
|
15359
|
+
"name": "SynValidate",
|
|
15360
|
+
"cssParts": [
|
|
15361
|
+
{
|
|
15362
|
+
"description": "The component's base wrapper.",
|
|
15363
|
+
"name": "base"
|
|
15364
|
+
},
|
|
15365
|
+
{
|
|
15366
|
+
"description": "The container that wraps the form field.",
|
|
15367
|
+
"name": "input-wrapper"
|
|
15368
|
+
},
|
|
15369
|
+
{
|
|
15370
|
+
"description": "The syn-alert that is shown when the variant is set to \"inline\".",
|
|
15371
|
+
"name": "alert"
|
|
15372
|
+
},
|
|
15373
|
+
{
|
|
15374
|
+
"description": "The container that wraps the alert.",
|
|
15375
|
+
"name": "alert__base"
|
|
15376
|
+
},
|
|
15377
|
+
{
|
|
15378
|
+
"description": "The container that wraps the alert message.",
|
|
15379
|
+
"name": "alert__message"
|
|
15380
|
+
},
|
|
15381
|
+
{
|
|
15382
|
+
"description": "The container that wraps the alert icon.",
|
|
15383
|
+
"name": "alert__icon"
|
|
15384
|
+
}
|
|
15385
|
+
],
|
|
15386
|
+
"slots": [
|
|
15387
|
+
{
|
|
15388
|
+
"description": "The form field that should be validated. Avoid slotting in more than one element, as subsequent ones will be ignored.",
|
|
15389
|
+
"name": ""
|
|
15390
|
+
}
|
|
15391
|
+
],
|
|
15392
|
+
"members": [
|
|
15393
|
+
{
|
|
15394
|
+
"kind": "field",
|
|
15395
|
+
"name": "dependencies",
|
|
15396
|
+
"type": {
|
|
15397
|
+
"text": "object"
|
|
15398
|
+
},
|
|
15399
|
+
"static": true,
|
|
15400
|
+
"default": "{ 'syn-alert': SynAlert, }"
|
|
15401
|
+
},
|
|
15402
|
+
{
|
|
15403
|
+
"kind": "field",
|
|
15404
|
+
"name": "controller",
|
|
15405
|
+
"default": "new AbortController()"
|
|
15406
|
+
},
|
|
15407
|
+
{
|
|
15408
|
+
"kind": "field",
|
|
15409
|
+
"name": "slottedChildren",
|
|
15410
|
+
"type": {
|
|
15411
|
+
"text": "HTMLElement[]"
|
|
15412
|
+
},
|
|
15413
|
+
"privacy": "private"
|
|
15414
|
+
},
|
|
15415
|
+
{
|
|
15416
|
+
"kind": "field",
|
|
15417
|
+
"name": "validationMessage",
|
|
15418
|
+
"type": {
|
|
15419
|
+
"text": "string"
|
|
15420
|
+
},
|
|
15421
|
+
"default": "''"
|
|
15422
|
+
},
|
|
15423
|
+
{
|
|
15424
|
+
"kind": "field",
|
|
15425
|
+
"name": "eagerFirstMount",
|
|
15426
|
+
"type": {
|
|
15427
|
+
"text": "boolean"
|
|
15428
|
+
},
|
|
15429
|
+
"default": "true"
|
|
15430
|
+
},
|
|
15431
|
+
{
|
|
15432
|
+
"kind": "field",
|
|
15433
|
+
"name": "isInternalTriggeredInvalid",
|
|
15434
|
+
"type": {
|
|
15435
|
+
"text": "boolean"
|
|
15436
|
+
},
|
|
15437
|
+
"default": "false"
|
|
15438
|
+
},
|
|
15439
|
+
{
|
|
15440
|
+
"kind": "field",
|
|
15441
|
+
"name": "isValid",
|
|
15442
|
+
"type": {
|
|
15443
|
+
"text": "boolean"
|
|
15444
|
+
},
|
|
15445
|
+
"default": "true"
|
|
15446
|
+
},
|
|
15447
|
+
{
|
|
15448
|
+
"kind": "field",
|
|
15449
|
+
"name": "variant",
|
|
15450
|
+
"type": {
|
|
15451
|
+
"text": "'native' | 'inline'"
|
|
15452
|
+
},
|
|
15453
|
+
"default": "'native'",
|
|
15454
|
+
"description": "The variant that should be used to show validation alerts.\n\nThe following variants are supported:\n- **native** (default): Uses the native browser validation, usually a browser tooltip.\n- **inline**: Show the validation message underneath the element, using a `<syn-alert>`",
|
|
15455
|
+
"attribute": "variant",
|
|
15456
|
+
"reflects": true
|
|
15457
|
+
},
|
|
15458
|
+
{
|
|
15459
|
+
"kind": "field",
|
|
15460
|
+
"name": "hideIcon",
|
|
15461
|
+
"type": {
|
|
15462
|
+
"text": "boolean"
|
|
15463
|
+
},
|
|
15464
|
+
"default": "false",
|
|
15465
|
+
"description": "Do not show the error icon when using the inline variant validation",
|
|
15466
|
+
"attribute": "hide-icon",
|
|
15467
|
+
"reflects": true
|
|
15468
|
+
},
|
|
15469
|
+
{
|
|
15470
|
+
"kind": "field",
|
|
15471
|
+
"name": "on",
|
|
15472
|
+
"type": {
|
|
15473
|
+
"text": "string"
|
|
15474
|
+
},
|
|
15475
|
+
"default": "''",
|
|
15476
|
+
"description": "Defines the events that trigger the validation.\n`invalid` will always automatically be included.\nYou may also use the `live` keyword to validate on every input change.\n`live` will make sure to listen to the `invalid`, `input` and `blur` events.\n\nPlease have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\nand [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.",
|
|
15477
|
+
"attribute": "on",
|
|
15478
|
+
"reflects": true
|
|
15479
|
+
},
|
|
15480
|
+
{
|
|
15481
|
+
"kind": "field",
|
|
15482
|
+
"name": "customValidationMessage",
|
|
15483
|
+
"type": {
|
|
15484
|
+
"text": "string"
|
|
15485
|
+
},
|
|
15486
|
+
"default": "''",
|
|
15487
|
+
"description": "Custom validation message to be displayed when the input is invalid.\nWill override the default browser validation message.\nSet to an empty string to reset the validation message.",
|
|
15488
|
+
"attribute": "custom-validation-message"
|
|
15489
|
+
},
|
|
15490
|
+
{
|
|
15491
|
+
"kind": "field",
|
|
15492
|
+
"name": "eager",
|
|
15493
|
+
"type": {
|
|
15494
|
+
"text": "boolean"
|
|
15495
|
+
},
|
|
15496
|
+
"default": "false",
|
|
15497
|
+
"description": "Set this to true to validate the input immediately when it is rendered.\nBest used with a `variant` of `inline`.\nWhen setting eager, the input will not be focused automatically.\n\nWhen using a `variant` of `native` the browser will focus\nthe last eager field as it is using a tooltip.\nIn this case it is better to just provide one eager field.",
|
|
15498
|
+
"attribute": "eager"
|
|
15499
|
+
},
|
|
15500
|
+
{
|
|
15501
|
+
"kind": "method",
|
|
15502
|
+
"name": "handleListenerChange"
|
|
15503
|
+
},
|
|
15504
|
+
{
|
|
15505
|
+
"kind": "method",
|
|
15506
|
+
"name": "handleEagerChange"
|
|
15507
|
+
},
|
|
15508
|
+
{
|
|
15509
|
+
"kind": "method",
|
|
15510
|
+
"name": "handleCustomValidationMessageChange"
|
|
15511
|
+
},
|
|
15512
|
+
{
|
|
15513
|
+
"kind": "method",
|
|
15514
|
+
"name": "getValidity",
|
|
15515
|
+
"description": "Returns the validity state of the input component.\n`true` for valid and `false` for invalid."
|
|
15516
|
+
},
|
|
15517
|
+
{
|
|
15518
|
+
"kind": "method",
|
|
15519
|
+
"name": "getInput",
|
|
15520
|
+
"privacy": "private",
|
|
15521
|
+
"description": "Get the input element to validate. Defined as the first slotted element",
|
|
15522
|
+
"return": {
|
|
15523
|
+
"type": {
|
|
15524
|
+
"text": ""
|
|
15525
|
+
}
|
|
15526
|
+
}
|
|
15527
|
+
},
|
|
15528
|
+
{
|
|
15529
|
+
"kind": "method",
|
|
15530
|
+
"name": "getUsedEventNames",
|
|
15531
|
+
"privacy": "private",
|
|
15532
|
+
"description": "Get the event names to listen for.\nIf the input is a synergy element, will use syn- prefixes.",
|
|
15533
|
+
"return": {
|
|
15534
|
+
"type": {
|
|
15535
|
+
"text": ""
|
|
15536
|
+
}
|
|
15537
|
+
}
|
|
15538
|
+
},
|
|
15539
|
+
{
|
|
15540
|
+
"kind": "method",
|
|
15541
|
+
"name": "updateEvents",
|
|
15542
|
+
"privacy": "private",
|
|
15543
|
+
"description": "Update the events on the input element."
|
|
15544
|
+
},
|
|
15545
|
+
{
|
|
15546
|
+
"kind": "method",
|
|
15547
|
+
"name": "setValidationMessage",
|
|
15548
|
+
"privacy": "private",
|
|
15549
|
+
"parameters": [
|
|
15550
|
+
{
|
|
15551
|
+
"name": "input",
|
|
15552
|
+
"type": {
|
|
15553
|
+
"text": "HTMLInputElement"
|
|
15554
|
+
}
|
|
15555
|
+
}
|
|
15556
|
+
]
|
|
15557
|
+
},
|
|
15558
|
+
{
|
|
15559
|
+
"kind": "method",
|
|
15560
|
+
"name": "setCustomValidationMessage",
|
|
15561
|
+
"privacy": "private",
|
|
15562
|
+
"parameters": [
|
|
15563
|
+
{
|
|
15564
|
+
"name": "input",
|
|
15565
|
+
"type": {
|
|
15566
|
+
"text": "HTMLInputElement"
|
|
15567
|
+
}
|
|
15568
|
+
}
|
|
15569
|
+
],
|
|
15570
|
+
"description": "Set the custom validation message to the input. This will make sure to either:\n- use the custom message if one is set or\n- use the default message if the custom message is empty"
|
|
15571
|
+
},
|
|
15572
|
+
{
|
|
15573
|
+
"kind": "field",
|
|
15574
|
+
"name": "internalRevalidate",
|
|
15575
|
+
"privacy": "private",
|
|
15576
|
+
"description": "Set the validation message from the input element",
|
|
15577
|
+
"parameters": [
|
|
15578
|
+
{
|
|
15579
|
+
"description": "The event that was received",
|
|
15580
|
+
"name": "e"
|
|
15581
|
+
}
|
|
15582
|
+
]
|
|
15583
|
+
},
|
|
15584
|
+
{
|
|
15585
|
+
"kind": "method",
|
|
15586
|
+
"name": "handleFocus",
|
|
15587
|
+
"privacy": "private",
|
|
15588
|
+
"parameters": [
|
|
15589
|
+
{
|
|
15590
|
+
"name": "input",
|
|
15591
|
+
"type": {
|
|
15592
|
+
"text": "HTMLInputElement"
|
|
15593
|
+
}
|
|
15594
|
+
}
|
|
15595
|
+
],
|
|
15596
|
+
"description": "Handle the blur event during validation"
|
|
15597
|
+
},
|
|
15598
|
+
{
|
|
15599
|
+
"kind": "field",
|
|
15600
|
+
"name": "validate",
|
|
15601
|
+
"privacy": "private",
|
|
15602
|
+
"description": "Triggers a validation run, showing the validation message if needed."
|
|
15603
|
+
},
|
|
15604
|
+
{
|
|
15605
|
+
"kind": "method",
|
|
15606
|
+
"name": "renderInlineValidation",
|
|
15607
|
+
"privacy": "private"
|
|
15608
|
+
}
|
|
15609
|
+
],
|
|
15610
|
+
"attributes": [
|
|
15611
|
+
{
|
|
15612
|
+
"name": "variant",
|
|
15613
|
+
"type": {
|
|
15614
|
+
"text": "'native' | 'inline'"
|
|
15615
|
+
},
|
|
15616
|
+
"default": "'native'",
|
|
15617
|
+
"description": "The variant that should be used to show validation alerts.\n\nThe following variants are supported:\n- **native** (default): Uses the native browser validation, usually a browser tooltip.\n- **inline**: Show the validation message underneath the element, using a `<syn-alert>`",
|
|
15618
|
+
"fieldName": "variant"
|
|
15619
|
+
},
|
|
15620
|
+
{
|
|
15621
|
+
"name": "hide-icon",
|
|
15622
|
+
"type": {
|
|
15623
|
+
"text": "boolean"
|
|
15624
|
+
},
|
|
15625
|
+
"default": "false",
|
|
15626
|
+
"description": "Do not show the error icon when using the inline variant validation",
|
|
15627
|
+
"fieldName": "hideIcon"
|
|
15628
|
+
},
|
|
15629
|
+
{
|
|
15630
|
+
"name": "on",
|
|
15631
|
+
"type": {
|
|
15632
|
+
"text": "string"
|
|
15633
|
+
},
|
|
15634
|
+
"default": "''",
|
|
15635
|
+
"description": "Defines the events that trigger the validation.\n`invalid` will always automatically be included.\nYou may also use the `live` keyword to validate on every input change.\n`live` will make sure to listen to the `invalid`, `input` and `blur` events.\n\nPlease have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\nand [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.",
|
|
15636
|
+
"fieldName": "on"
|
|
15637
|
+
},
|
|
15638
|
+
{
|
|
15639
|
+
"name": "custom-validation-message",
|
|
15640
|
+
"type": {
|
|
15641
|
+
"text": "string"
|
|
15642
|
+
},
|
|
15643
|
+
"default": "''",
|
|
15644
|
+
"description": "Custom validation message to be displayed when the input is invalid.\nWill override the default browser validation message.\nSet to an empty string to reset the validation message.",
|
|
15645
|
+
"fieldName": "customValidationMessage"
|
|
15646
|
+
},
|
|
15647
|
+
{
|
|
15648
|
+
"name": "eager",
|
|
15649
|
+
"type": {
|
|
15650
|
+
"text": "boolean"
|
|
15651
|
+
},
|
|
15652
|
+
"default": "false",
|
|
15653
|
+
"description": "Set this to true to validate the input immediately when it is rendered.\nBest used with a `variant` of `inline`.\nWhen setting eager, the input will not be focused automatically.\n\nWhen using a `variant` of `native` the browser will focus\nthe last eager field as it is using a tooltip.\nIn this case it is better to just provide one eager field.",
|
|
15654
|
+
"fieldName": "eager"
|
|
15655
|
+
}
|
|
15656
|
+
],
|
|
15657
|
+
"superclass": {
|
|
15658
|
+
"name": "SynergyElement",
|
|
15659
|
+
"module": "/src/internal/synergy-element.js"
|
|
15660
|
+
},
|
|
15661
|
+
"summary": "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.",
|
|
15662
|
+
"tagNameWithoutPrefix": "validate",
|
|
15663
|
+
"tagName": "syn-validate",
|
|
15664
|
+
"customElement": true,
|
|
15665
|
+
"jsDoc": "/**\n * @summary Validate provides form field validation messages in a unified way.\n * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and showing the validation message in a consistent, user defined way.\n *\n * @dependency syn-alert\n *\n * @slot - The form field that should be validated.\n * Avoid slotting in more than one element, as subsequent ones will be ignored.\n *\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the form field.\n * @csspart alert - The syn-alert that is shown when the variant is set to \"inline\".\n * @csspart alert__base - The container that wraps the alert.\n * @csspart alert__message - The container that wraps the alert message.\n * @csspart alert__icon - The container that wraps the alert icon.\n */",
|
|
15666
|
+
"dependencies": [
|
|
15667
|
+
"syn-alert"
|
|
15668
|
+
]
|
|
15669
|
+
}
|
|
15670
|
+
],
|
|
15671
|
+
"exports": [
|
|
15672
|
+
{
|
|
15673
|
+
"kind": "js",
|
|
15674
|
+
"name": "default",
|
|
15675
|
+
"declaration": {
|
|
15676
|
+
"name": "SynValidate",
|
|
15677
|
+
"module": "components/validate/validate.js"
|
|
15678
|
+
}
|
|
15679
|
+
}
|
|
15680
|
+
]
|
|
15351
15681
|
}
|
|
15352
15682
|
],
|
|
15353
15683
|
"package": {
|
|
15354
15684
|
"name": "@synergy-design-system/components",
|
|
15355
15685
|
"description": "",
|
|
15356
|
-
"version": "2.
|
|
15686
|
+
"version": "2.12.0",
|
|
15357
15687
|
"author": {
|
|
15358
15688
|
"name": "SICK Global UX Foundation",
|
|
15359
15689
|
"url": "https://www.sick.com"
|
package/dist/styles/fouc.css
CHANGED
|
@@ -27,7 +27,8 @@ syn-select:not(:defined),
|
|
|
27
27
|
syn-side-nav:not(:defined),
|
|
28
28
|
syn-tab-group:not(:defined),
|
|
29
29
|
syn-tab-panel:not(:defined),
|
|
30
|
-
syn-textarea:not(:defined)
|
|
30
|
+
syn-textarea:not(:defined),
|
|
31
|
+
syn-validate:not(:defined) {
|
|
31
32
|
display: block;
|
|
32
33
|
opacity: 0;
|
|
33
34
|
transition: opacity 0.3s ease-in-out;
|
package/dist/styles/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/components version 2.
|
|
2
|
+
* @synergy-design-system/components version 2.12.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*
|
|
5
5
|
* This file is created automatically in the build process!
|
|
@@ -35,7 +35,8 @@ syn-select:not(:defined),
|
|
|
35
35
|
syn-side-nav:not(:defined),
|
|
36
36
|
syn-tab-group:not(:defined),
|
|
37
37
|
syn-tab-panel:not(:defined),
|
|
38
|
-
syn-textarea:not(:defined)
|
|
38
|
+
syn-textarea:not(:defined),
|
|
39
|
+
syn-validate:not(:defined) {
|
|
39
40
|
display: block;
|
|
40
41
|
opacity: 0;
|
|
41
42
|
transition: opacity 0.3s ease-in-out;
|
package/dist/synergy.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export { default as SynTab } from './components/tab/tab.js';
|
|
|
43
43
|
export { default as SynTag } from './components/tag/tag.js';
|
|
44
44
|
export { default as SynTextarea } from './components/textarea/textarea.js';
|
|
45
45
|
export { default as SynTooltip } from './components/tooltip/tooltip.js';
|
|
46
|
+
export { default as SynValidate } from './components/validate/validate.js';
|
|
46
47
|
export * from './utilities/base-path.js';
|
|
47
48
|
export * from './utilities/icon-library.js';
|
|
48
49
|
export * from './utilities/form.js';
|