@synergy-design-system/components 2.38.0 → 2.39.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.TGTBQ4IM.js → chunk.27QKGT7Z.js} +2 -2
- package/dist/chunks/{chunk.UCSHSJ4O.js → chunk.2MPYW4KR.js} +2 -2
- package/dist/chunks/{chunk.R5TLCNTQ.js → chunk.2RFBAORE.js} +13 -13
- package/dist/chunks/{chunk.BUJP5DRA.js → chunk.2UBCKAEP.js} +2 -2
- package/dist/chunks/{chunk.C3JZ7U42.js → chunk.327MCHUH.js} +3 -3
- package/dist/chunks/{chunk.WYXYVCH7.js → chunk.3FUL5ELY.js} +2 -2
- package/dist/chunks/{chunk.2DQRZRQ6.js → chunk.3H45IGHS.js} +2 -2
- package/dist/chunks/{chunk.SUY5M3RG.js → chunk.3O3Z2PSK.js} +2 -2
- package/dist/chunks/{chunk.ID5SEGIH.js → chunk.44PYB6W7.js} +2 -2
- package/dist/chunks/{chunk.Y3EZT342.js → chunk.4BEDB2IH.js} +6 -6
- package/dist/chunks/{chunk.LQOWFD6C.js → chunk.4DIFKO2U.js} +10 -10
- package/dist/chunks/{chunk.VKT6ZB2C.js → chunk.4ODI3ZT3.js} +4 -4
- package/dist/chunks/{chunk.TMCD74QL.js → chunk.4R4MHKFS.js} +3 -3
- package/dist/chunks/{chunk.5JXXAGAU.js → chunk.4WBY7LKD.js} +2 -2
- package/dist/chunks/{chunk.A2KMZMAB.js → chunk.5CKDKGVN.js} +8 -8
- package/dist/chunks/{chunk.26EDWFCV.js → chunk.5D42PP2O.js} +2 -2
- package/dist/chunks/{chunk.TXB6TDIY.js → chunk.5LHPMJJQ.js} +8 -8
- package/dist/chunks/{chunk.ID7Q4VEW.js → chunk.5V3EAJDO.js} +6 -6
- package/dist/chunks/{chunk.55JHXA7H.js → chunk.6TVA3W47.js} +2 -2
- package/dist/chunks/{chunk.5XWBSIVC.js → chunk.6U2NV7JW.js} +2 -2
- package/dist/chunks/{chunk.5XWBSIVC.js.map → chunk.6U2NV7JW.js.map} +1 -1
- package/dist/chunks/{chunk.4FP2PNRY.js → chunk.7LNEMOPT.js} +6 -6
- package/dist/chunks/{chunk.DKRN47E6.js → chunk.7URJKAE6.js} +2 -2
- package/dist/chunks/{chunk.3QXSI7KM.js → chunk.A4TSILZP.js} +6 -6
- package/dist/chunks/{chunk.R2SH6MUK.js → chunk.AM3PSWK5.js} +2 -2
- package/dist/chunks/{chunk.B45CSS6Y.js → chunk.AQDHOVZ7.js} +2 -2
- package/dist/chunks/{chunk.2QC354TL.js → chunk.ATR7YYM2.js} +6 -6
- package/dist/chunks/{chunk.CNJVVYBI.js → chunk.AUMWX2PM.js} +11 -8
- package/dist/chunks/chunk.AUMWX2PM.js.map +7 -0
- package/dist/chunks/{chunk.AXYY34SI.js → chunk.BD5PWQB5.js} +2 -2
- package/dist/chunks/{chunk.G35QA4D4.js → chunk.BDM4OYEL.js} +2 -2
- package/dist/chunks/{chunk.S6AC4UW6.js → chunk.BWTMFHNM.js} +19 -2
- package/dist/chunks/{chunk.S6AC4UW6.js.map → chunk.BWTMFHNM.js.map} +2 -2
- package/dist/chunks/{chunk.RVDN7WZQ.js → chunk.BZ7XWSKK.js} +5 -5
- package/dist/chunks/{chunk.BFTZGROX.js → chunk.C5ZT3KT6.js} +9 -9
- package/dist/chunks/{chunk.7GZQ3UZC.js → chunk.CLUIPDLM.js} +2 -2
- package/dist/chunks/{chunk.P2I4RAXI.js → chunk.COJWYUPQ.js} +6 -6
- package/dist/chunks/{chunk.EMJQCAY3.js → chunk.CVAPRF6I.js} +2 -2
- package/dist/chunks/{chunk.AT4MJHYI.js → chunk.D6NQIETR.js} +116 -40
- package/dist/chunks/chunk.D6NQIETR.js.map +7 -0
- package/dist/chunks/{chunk.5OQNPDRJ.js → chunk.DKS67M2O.js} +7 -7
- package/dist/chunks/{chunk.7F2RAQHO.js → chunk.E2MK3B3P.js} +2 -2
- package/dist/chunks/{chunk.ZPLFXP6G.js → chunk.ELMS2CDY.js} +5 -5
- package/dist/chunks/{chunk.HXVBYE7Y.js → chunk.GAXM4AJI.js} +2 -2
- package/dist/chunks/{chunk.OG7V6X2V.js → chunk.GFBC6OK2.js} +2 -2
- package/dist/chunks/{chunk.FBGQKUVB.js → chunk.GJ6RRIHU.js} +6 -6
- package/dist/chunks/{chunk.OWM2CP4X.js → chunk.HD2WHJPQ.js} +2 -2
- package/dist/chunks/{chunk.P4DQ5SFK.js → chunk.HJXBKRZ7.js} +9 -9
- package/dist/chunks/{chunk.KLTROMHV.js → chunk.IA3Y3D5X.js} +2 -2
- package/dist/chunks/chunk.IEVIYOID.js +43 -0
- package/dist/chunks/chunk.IEVIYOID.js.map +7 -0
- package/dist/chunks/{chunk.PRRBWUVY.js → chunk.J2S2W2NM.js} +2 -2
- package/dist/chunks/{chunk.C5UBBJBC.js → chunk.J4P3SKI5.js} +2 -2
- package/dist/chunks/{chunk.VDOSIXCX.js → chunk.JDMIUAJT.js} +2 -2
- package/dist/chunks/{chunk.X7LW7D2H.js → chunk.K4JPC3EC.js} +2 -2
- package/dist/chunks/{chunk.3YJY6GOI.js → chunk.KITZ3J6H.js} +4 -4
- package/dist/chunks/{chunk.I2ABM6VP.js → chunk.KY5QEOVM.js} +4 -4
- package/dist/chunks/{chunk.AMHJPJM5.js → chunk.LDS7PGVP.js} +6 -6
- package/dist/chunks/{chunk.PNVNVPL7.js → chunk.LTTM2XEY.js} +2 -2
- package/dist/chunks/{chunk.ZER7O6EO.js → chunk.M7CX4YZE.js} +3 -3
- package/dist/chunks/{chunk.7PX24DLU.js → chunk.MGUQXODX.js} +2 -2
- package/dist/chunks/{chunk.I5JLFISR.js → chunk.NDMRGRCX.js} +8 -8
- package/dist/chunks/{chunk.GXBKB36O.js → chunk.NLQ2WOOE.js} +2 -2
- package/dist/chunks/{chunk.ZTCNB6XE.js → chunk.NVMNFCD2.js} +2 -2
- package/dist/chunks/{chunk.EXKWQRSD.js → chunk.O27KWL6S.js} +2 -2
- package/dist/chunks/{chunk.IPGLY3H4.js → chunk.OAQRCZOO.js} +2 -2
- package/dist/chunks/{chunk.IPGLY3H4.js.map → chunk.OAQRCZOO.js.map} +1 -1
- package/dist/chunks/{chunk.PZP7UYHA.js → chunk.OEO3G3TO.js} +2 -2
- package/dist/chunks/{chunk.MTGTBMYT.js → chunk.OTMWOZCW.js} +2 -2
- package/dist/chunks/{chunk.M2VJDHVU.js → chunk.OU7HABHG.js} +2 -2
- package/dist/chunks/{chunk.PW4YIOAV.js → chunk.PEDMX34K.js} +2 -2
- package/dist/chunks/{chunk.DX6MXCZZ.js → chunk.PLCZPI6F.js} +2 -2
- package/dist/chunks/{chunk.6XDFV4GS.js → chunk.PNB4HK4G.js} +6 -6
- package/dist/chunks/{chunk.E5QK5KIF.js → chunk.Q7O642EW.js} +7 -7
- package/dist/chunks/{chunk.AWSKILKM.js → chunk.R7CGZ7KZ.js} +2 -2
- package/dist/chunks/{chunk.7CKKHWYW.js → chunk.SBTPSKS7.js} +2 -2
- package/dist/chunks/{chunk.F5KRWWBX.js → chunk.SDLYKCEX.js} +2 -2
- package/dist/chunks/{chunk.6T5B2HGH.js → chunk.TG2DEEYH.js} +6 -6
- package/dist/chunks/{chunk.VKQ2H4X2.js → chunk.TW73EQBX.js} +2 -2
- package/dist/chunks/{chunk.55Z3OY26.js → chunk.U2TGIJAL.js} +8 -8
- package/dist/chunks/{chunk.VYJOUM2X.js → chunk.UG4IR5RT.js} +3 -3
- package/dist/chunks/{chunk.PQSFE6MX.js → chunk.UJQQ35B3.js} +3 -3
- package/dist/chunks/{chunk.NMINQQWF.js → chunk.UTLAZG5Z.js} +2 -2
- package/dist/chunks/{chunk.T7BSVIY6.js → chunk.UX3MWDKX.js} +2 -2
- package/dist/chunks/{chunk.I5SV53XR.js → chunk.V56T7UVP.js} +2 -2
- package/dist/chunks/{chunk.NKMV47EW.js → chunk.V7DFLZXB.js} +6 -6
- package/dist/chunks/{chunk.QY4CARXK.js → chunk.V7HJRESY.js} +2 -2
- package/dist/chunks/{chunk.GJDE6WOG.js → chunk.VDOP22HP.js} +2 -2
- package/dist/chunks/{chunk.6OA3HDMH.js → chunk.W2VQB6JD.js} +2 -2
- package/dist/chunks/{chunk.S66RRRZ5.js → chunk.W7UGIK2A.js} +3 -3
- package/dist/chunks/{chunk.GOEVVSZH.js → chunk.WA573FG5.js} +3 -3
- package/dist/chunks/{chunk.CS5JGPTS.js → chunk.WD744DTY.js} +2 -2
- package/dist/chunks/{chunk.MPHPTI5L.js → chunk.X27B475F.js} +2 -2
- package/dist/chunks/{chunk.6DYKE5RE.js → chunk.X7XPEYAM.js} +3 -2
- package/dist/chunks/{chunk.6DYKE5RE.js.map → chunk.X7XPEYAM.js.map} +2 -2
- package/dist/chunks/{chunk.VUOJZU64.js → chunk.XFEFQYPO.js} +2 -2
- package/dist/chunks/{chunk.I3JJFWI7.js → chunk.XORPVB4J.js} +2 -2
- package/dist/chunks/{chunk.2N5DGFNL.js → chunk.Y7KM3L6W.js} +2 -2
- package/dist/chunks/{chunk.CEUMBXY2.js → chunk.Y7LU4Q7U.js} +2 -2
- package/dist/chunks/{chunk.AKQ6NHAA.js → chunk.YX6HZW4C.js} +2 -2
- package/dist/chunks/{chunk.RVUFUF75.js → chunk.YYOO7G3C.js} +2 -2
- package/dist/chunks/{chunk.UDRNJOX5.js → chunk.Z7XH5MW3.js} +2 -2
- package/dist/chunks/{chunk.G3UNUDBV.js → chunk.ZKMTXMHC.js} +5 -5
- package/dist/chunks/{chunk.TKFDJB5Z.js → chunk.ZLPG3PXK.js} +5 -5
- package/dist/chunks/{chunk.4R32N3GQ.js → chunk.ZMO6E7DS.js} +2 -2
- package/dist/chunks/{chunk.5EVBVED5.js → chunk.ZUKGJ44H.js} +7 -7
- package/dist/components/accordion/accordion.component.js +3 -3
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.component.js +9 -9
- package/dist/components/alert/alert.js +10 -10
- package/dist/components/badge/badge.component.js +6 -6
- package/dist/components/badge/badge.js +7 -7
- 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 +7 -7
- package/dist/components/button/button.js +8 -8
- 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 +4 -4
- package/dist/components/checkbox/checkbox.js +5 -5
- package/dist/components/combobox/combobox.component.d.ts +24 -3
- package/dist/components/combobox/combobox.component.js +10 -10
- package/dist/components/combobox/combobox.custom.styles.js +1 -1
- package/dist/components/combobox/combobox.js +11 -11
- package/dist/components/combobox/utils.d.ts +13 -0
- package/dist/components/combobox/utils.js +5 -1
- package/dist/components/details/details.component.js +6 -6
- package/dist/components/details/details.js +7 -7
- package/dist/components/dialog/dialog.component.js +7 -7
- package/dist/components/dialog/dialog.js +8 -8
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +7 -7
- package/dist/components/drawer/drawer.js +8 -8
- package/dist/components/dropdown/dropdown.component.js +5 -5
- package/dist/components/dropdown/dropdown.js +6 -6
- package/dist/components/file/file.component.js +8 -8
- package/dist/components/file/file.js +9 -9
- 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 +4 -4
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/input/input.component.js +7 -7
- package/dist/components/input/input.js +8 -8
- 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 +4 -4
- package/dist/components/nav-item/nav-item.js +5 -5
- 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 +4 -4
- package/dist/components/popup/popup.js +5 -5
- 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 +4 -4
- package/dist/components/progress-bar/progress-bar.js +5 -5
- package/dist/components/progress-ring/progress-ring.component.js +4 -4
- package/dist/components/progress-ring/progress-ring.js +5 -5
- package/dist/components/radio/radio.component.js +4 -4
- package/dist/components/radio/radio.js +5 -5
- package/dist/components/radio-button/radio-button.component.js +3 -3
- package/dist/components/radio-button/radio-button.js +4 -4
- package/dist/components/radio-group/radio-group.component.js +4 -4
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/range/range.component.js +7 -7
- package/dist/components/range/range.js +8 -8
- 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 +9 -9
- package/dist/components/select/select.js +10 -10
- package/dist/components/side-nav/side-nav.component.js +10 -10
- package/dist/components/side-nav/side-nav.js +11 -11
- package/dist/components/spinner/spinner.component.js +4 -4
- package/dist/components/spinner/spinner.js +5 -5
- package/dist/components/switch/switch.component.js +3 -3
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/tab/tab.component.js +7 -7
- package/dist/components/tab/tab.js +8 -8
- package/dist/components/tab-group/tab-group.component.js +8 -8
- package/dist/components/tab-group/tab-group.js +9 -9
- 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 +7 -7
- package/dist/components/tag/tag.js +8 -8
- package/dist/components/textarea/textarea.component.js +3 -3
- package/dist/components/textarea/textarea.js +4 -4
- package/dist/components/tooltip/tooltip.component.js +5 -5
- package/dist/components/tooltip/tooltip.js +6 -6
- package/dist/components/validate/utility.js +2 -2
- package/dist/components/validate/validate.component.js +11 -11
- package/dist/components/validate/validate.js +12 -12
- package/dist/custom-elements.json +71 -7
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +110 -110
- package/dist/translations/de.js +4 -3
- package/dist/translations/de.js.map +2 -2
- package/dist/translations/en.js +1 -1
- package/dist/utilities/localize.d.ts +1 -0
- package/dist/utilities/localize.js +2 -2
- package/dist/vscode.html-custom-data.json +6 -1
- package/package.json +3 -3
- package/dist/chunks/chunk.AT4MJHYI.js.map +0 -7
- package/dist/chunks/chunk.CNJVVYBI.js.map +0 -7
- package/dist/chunks/chunk.EWVMF6KH.js +0 -23
- package/dist/chunks/chunk.EWVMF6KH.js.map +0 -7
- /package/dist/chunks/{chunk.TGTBQ4IM.js.map → chunk.27QKGT7Z.js.map} +0 -0
- /package/dist/chunks/{chunk.UCSHSJ4O.js.map → chunk.2MPYW4KR.js.map} +0 -0
- /package/dist/chunks/{chunk.R5TLCNTQ.js.map → chunk.2RFBAORE.js.map} +0 -0
- /package/dist/chunks/{chunk.BUJP5DRA.js.map → chunk.2UBCKAEP.js.map} +0 -0
- /package/dist/chunks/{chunk.C3JZ7U42.js.map → chunk.327MCHUH.js.map} +0 -0
- /package/dist/chunks/{chunk.WYXYVCH7.js.map → chunk.3FUL5ELY.js.map} +0 -0
- /package/dist/chunks/{chunk.2DQRZRQ6.js.map → chunk.3H45IGHS.js.map} +0 -0
- /package/dist/chunks/{chunk.SUY5M3RG.js.map → chunk.3O3Z2PSK.js.map} +0 -0
- /package/dist/chunks/{chunk.ID5SEGIH.js.map → chunk.44PYB6W7.js.map} +0 -0
- /package/dist/chunks/{chunk.Y3EZT342.js.map → chunk.4BEDB2IH.js.map} +0 -0
- /package/dist/chunks/{chunk.LQOWFD6C.js.map → chunk.4DIFKO2U.js.map} +0 -0
- /package/dist/chunks/{chunk.VKT6ZB2C.js.map → chunk.4ODI3ZT3.js.map} +0 -0
- /package/dist/chunks/{chunk.TMCD74QL.js.map → chunk.4R4MHKFS.js.map} +0 -0
- /package/dist/chunks/{chunk.5JXXAGAU.js.map → chunk.4WBY7LKD.js.map} +0 -0
- /package/dist/chunks/{chunk.A2KMZMAB.js.map → chunk.5CKDKGVN.js.map} +0 -0
- /package/dist/chunks/{chunk.26EDWFCV.js.map → chunk.5D42PP2O.js.map} +0 -0
- /package/dist/chunks/{chunk.TXB6TDIY.js.map → chunk.5LHPMJJQ.js.map} +0 -0
- /package/dist/chunks/{chunk.ID7Q4VEW.js.map → chunk.5V3EAJDO.js.map} +0 -0
- /package/dist/chunks/{chunk.55JHXA7H.js.map → chunk.6TVA3W47.js.map} +0 -0
- /package/dist/chunks/{chunk.4FP2PNRY.js.map → chunk.7LNEMOPT.js.map} +0 -0
- /package/dist/chunks/{chunk.DKRN47E6.js.map → chunk.7URJKAE6.js.map} +0 -0
- /package/dist/chunks/{chunk.3QXSI7KM.js.map → chunk.A4TSILZP.js.map} +0 -0
- /package/dist/chunks/{chunk.R2SH6MUK.js.map → chunk.AM3PSWK5.js.map} +0 -0
- /package/dist/chunks/{chunk.B45CSS6Y.js.map → chunk.AQDHOVZ7.js.map} +0 -0
- /package/dist/chunks/{chunk.2QC354TL.js.map → chunk.ATR7YYM2.js.map} +0 -0
- /package/dist/chunks/{chunk.AXYY34SI.js.map → chunk.BD5PWQB5.js.map} +0 -0
- /package/dist/chunks/{chunk.G35QA4D4.js.map → chunk.BDM4OYEL.js.map} +0 -0
- /package/dist/chunks/{chunk.RVDN7WZQ.js.map → chunk.BZ7XWSKK.js.map} +0 -0
- /package/dist/chunks/{chunk.BFTZGROX.js.map → chunk.C5ZT3KT6.js.map} +0 -0
- /package/dist/chunks/{chunk.7GZQ3UZC.js.map → chunk.CLUIPDLM.js.map} +0 -0
- /package/dist/chunks/{chunk.P2I4RAXI.js.map → chunk.COJWYUPQ.js.map} +0 -0
- /package/dist/chunks/{chunk.EMJQCAY3.js.map → chunk.CVAPRF6I.js.map} +0 -0
- /package/dist/chunks/{chunk.5OQNPDRJ.js.map → chunk.DKS67M2O.js.map} +0 -0
- /package/dist/chunks/{chunk.7F2RAQHO.js.map → chunk.E2MK3B3P.js.map} +0 -0
- /package/dist/chunks/{chunk.ZPLFXP6G.js.map → chunk.ELMS2CDY.js.map} +0 -0
- /package/dist/chunks/{chunk.HXVBYE7Y.js.map → chunk.GAXM4AJI.js.map} +0 -0
- /package/dist/chunks/{chunk.OG7V6X2V.js.map → chunk.GFBC6OK2.js.map} +0 -0
- /package/dist/chunks/{chunk.FBGQKUVB.js.map → chunk.GJ6RRIHU.js.map} +0 -0
- /package/dist/chunks/{chunk.OWM2CP4X.js.map → chunk.HD2WHJPQ.js.map} +0 -0
- /package/dist/chunks/{chunk.P4DQ5SFK.js.map → chunk.HJXBKRZ7.js.map} +0 -0
- /package/dist/chunks/{chunk.KLTROMHV.js.map → chunk.IA3Y3D5X.js.map} +0 -0
- /package/dist/chunks/{chunk.PRRBWUVY.js.map → chunk.J2S2W2NM.js.map} +0 -0
- /package/dist/chunks/{chunk.C5UBBJBC.js.map → chunk.J4P3SKI5.js.map} +0 -0
- /package/dist/chunks/{chunk.VDOSIXCX.js.map → chunk.JDMIUAJT.js.map} +0 -0
- /package/dist/chunks/{chunk.X7LW7D2H.js.map → chunk.K4JPC3EC.js.map} +0 -0
- /package/dist/chunks/{chunk.3YJY6GOI.js.map → chunk.KITZ3J6H.js.map} +0 -0
- /package/dist/chunks/{chunk.I2ABM6VP.js.map → chunk.KY5QEOVM.js.map} +0 -0
- /package/dist/chunks/{chunk.AMHJPJM5.js.map → chunk.LDS7PGVP.js.map} +0 -0
- /package/dist/chunks/{chunk.PNVNVPL7.js.map → chunk.LTTM2XEY.js.map} +0 -0
- /package/dist/chunks/{chunk.ZER7O6EO.js.map → chunk.M7CX4YZE.js.map} +0 -0
- /package/dist/chunks/{chunk.7PX24DLU.js.map → chunk.MGUQXODX.js.map} +0 -0
- /package/dist/chunks/{chunk.I5JLFISR.js.map → chunk.NDMRGRCX.js.map} +0 -0
- /package/dist/chunks/{chunk.GXBKB36O.js.map → chunk.NLQ2WOOE.js.map} +0 -0
- /package/dist/chunks/{chunk.ZTCNB6XE.js.map → chunk.NVMNFCD2.js.map} +0 -0
- /package/dist/chunks/{chunk.EXKWQRSD.js.map → chunk.O27KWL6S.js.map} +0 -0
- /package/dist/chunks/{chunk.PZP7UYHA.js.map → chunk.OEO3G3TO.js.map} +0 -0
- /package/dist/chunks/{chunk.MTGTBMYT.js.map → chunk.OTMWOZCW.js.map} +0 -0
- /package/dist/chunks/{chunk.M2VJDHVU.js.map → chunk.OU7HABHG.js.map} +0 -0
- /package/dist/chunks/{chunk.PW4YIOAV.js.map → chunk.PEDMX34K.js.map} +0 -0
- /package/dist/chunks/{chunk.DX6MXCZZ.js.map → chunk.PLCZPI6F.js.map} +0 -0
- /package/dist/chunks/{chunk.6XDFV4GS.js.map → chunk.PNB4HK4G.js.map} +0 -0
- /package/dist/chunks/{chunk.E5QK5KIF.js.map → chunk.Q7O642EW.js.map} +0 -0
- /package/dist/chunks/{chunk.AWSKILKM.js.map → chunk.R7CGZ7KZ.js.map} +0 -0
- /package/dist/chunks/{chunk.7CKKHWYW.js.map → chunk.SBTPSKS7.js.map} +0 -0
- /package/dist/chunks/{chunk.F5KRWWBX.js.map → chunk.SDLYKCEX.js.map} +0 -0
- /package/dist/chunks/{chunk.6T5B2HGH.js.map → chunk.TG2DEEYH.js.map} +0 -0
- /package/dist/chunks/{chunk.VKQ2H4X2.js.map → chunk.TW73EQBX.js.map} +0 -0
- /package/dist/chunks/{chunk.55Z3OY26.js.map → chunk.U2TGIJAL.js.map} +0 -0
- /package/dist/chunks/{chunk.VYJOUM2X.js.map → chunk.UG4IR5RT.js.map} +0 -0
- /package/dist/chunks/{chunk.PQSFE6MX.js.map → chunk.UJQQ35B3.js.map} +0 -0
- /package/dist/chunks/{chunk.NMINQQWF.js.map → chunk.UTLAZG5Z.js.map} +0 -0
- /package/dist/chunks/{chunk.T7BSVIY6.js.map → chunk.UX3MWDKX.js.map} +0 -0
- /package/dist/chunks/{chunk.I5SV53XR.js.map → chunk.V56T7UVP.js.map} +0 -0
- /package/dist/chunks/{chunk.NKMV47EW.js.map → chunk.V7DFLZXB.js.map} +0 -0
- /package/dist/chunks/{chunk.QY4CARXK.js.map → chunk.V7HJRESY.js.map} +0 -0
- /package/dist/chunks/{chunk.GJDE6WOG.js.map → chunk.VDOP22HP.js.map} +0 -0
- /package/dist/chunks/{chunk.6OA3HDMH.js.map → chunk.W2VQB6JD.js.map} +0 -0
- /package/dist/chunks/{chunk.S66RRRZ5.js.map → chunk.W7UGIK2A.js.map} +0 -0
- /package/dist/chunks/{chunk.GOEVVSZH.js.map → chunk.WA573FG5.js.map} +0 -0
- /package/dist/chunks/{chunk.CS5JGPTS.js.map → chunk.WD744DTY.js.map} +0 -0
- /package/dist/chunks/{chunk.MPHPTI5L.js.map → chunk.X27B475F.js.map} +0 -0
- /package/dist/chunks/{chunk.VUOJZU64.js.map → chunk.XFEFQYPO.js.map} +0 -0
- /package/dist/chunks/{chunk.I3JJFWI7.js.map → chunk.XORPVB4J.js.map} +0 -0
- /package/dist/chunks/{chunk.2N5DGFNL.js.map → chunk.Y7KM3L6W.js.map} +0 -0
- /package/dist/chunks/{chunk.CEUMBXY2.js.map → chunk.Y7LU4Q7U.js.map} +0 -0
- /package/dist/chunks/{chunk.AKQ6NHAA.js.map → chunk.YX6HZW4C.js.map} +0 -0
- /package/dist/chunks/{chunk.RVUFUF75.js.map → chunk.YYOO7G3C.js.map} +0 -0
- /package/dist/chunks/{chunk.UDRNJOX5.js.map → chunk.Z7XH5MW3.js.map} +0 -0
- /package/dist/chunks/{chunk.G3UNUDBV.js.map → chunk.ZKMTXMHC.js.map} +0 -0
- /package/dist/chunks/{chunk.TKFDJB5Z.js.map → chunk.ZLPG3PXK.js.map} +0 -0
- /package/dist/chunks/{chunk.4R32N3GQ.js.map → chunk.ZMO6E7DS.js.map} +0 -0
- /package/dist/chunks/{chunk.5EVBVED5.js.map → chunk.ZUKGJ44H.js.map} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk.WXVOTRW5.js";
|
|
17
17
|
import {
|
|
18
18
|
SynIconButton
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.UJQQ35B3.js";
|
|
20
20
|
import {
|
|
21
21
|
waitForEvent
|
|
22
22
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
HasSlotController
|
|
33
33
|
} from "./chunk.WVVQK5TE.js";
|
|
34
|
-
import {
|
|
35
|
-
LocalizeController
|
|
36
|
-
} from "./chunk.IPGLY3H4.js";
|
|
37
34
|
import {
|
|
38
35
|
watch
|
|
39
36
|
} from "./chunk.BVZQ6QSY.js";
|
|
37
|
+
import {
|
|
38
|
+
LocalizeController
|
|
39
|
+
} from "./chunk.OAQRCZOO.js";
|
|
40
40
|
import {
|
|
41
41
|
component_styles_default
|
|
42
42
|
} from "./chunk.NLYVOJGK.js";
|
|
43
43
|
import {
|
|
44
44
|
SynergyElement
|
|
45
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.6U2NV7JW.js";
|
|
46
46
|
import {
|
|
47
47
|
__decorateClass
|
|
48
48
|
} from "./chunk.Z4XV3SMG.js";
|
|
@@ -292,4 +292,4 @@ setDefaultAnimation("dialog.overlay.hide", {
|
|
|
292
292
|
export {
|
|
293
293
|
SynDialog
|
|
294
294
|
};
|
|
295
|
-
//# sourceMappingURL=chunk.
|
|
295
|
+
//# sourceMappingURL=chunk.ATR7YYM2.js.map
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
isBlurEvent,
|
|
4
4
|
isInvalidEvent,
|
|
5
5
|
normalizeEventAttribute
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.VDOP22HP.js";
|
|
7
7
|
import {
|
|
8
8
|
validate_styles_default
|
|
9
9
|
} from "./chunk.MVM3NN6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
SynAlert
|
|
12
|
-
} from "./chunk.
|
|
13
|
-
import {
|
|
14
|
-
enableDefaultSettings
|
|
15
|
-
} from "./chunk.E5UUNP6E.js";
|
|
12
|
+
} from "./chunk.2RFBAORE.js";
|
|
16
13
|
import {
|
|
17
14
|
watch
|
|
18
15
|
} from "./chunk.BVZQ6QSY.js";
|
|
16
|
+
import {
|
|
17
|
+
enableDefaultSettings
|
|
18
|
+
} from "./chunk.E5UUNP6E.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.6U2NV7JW.js";
|
|
25
25
|
import {
|
|
26
26
|
__decorateClass
|
|
27
27
|
} from "./chunk.Z4XV3SMG.js";
|
|
@@ -57,7 +57,7 @@ var SynValidate = class extends SynergyElement {
|
|
|
57
57
|
* Triggers a validation run, showing the validation message if needed.
|
|
58
58
|
*/
|
|
59
59
|
// eslint-disable-next-line complexity
|
|
60
|
-
this.validate = (e) => {
|
|
60
|
+
this.validate = async (e) => {
|
|
61
61
|
var _a;
|
|
62
62
|
if (isInvalidEvent(e.type) && this.variant === "native" && this.isInternalTriggeredInvalid === true) {
|
|
63
63
|
this.isInternalTriggeredInvalid = false;
|
|
@@ -68,6 +68,9 @@ var SynValidate = class extends SynergyElement {
|
|
|
68
68
|
e.stopPropagation();
|
|
69
69
|
}
|
|
70
70
|
const input = e.currentTarget;
|
|
71
|
+
if (input instanceof SynergyElement) {
|
|
72
|
+
await input.updateComplete;
|
|
73
|
+
}
|
|
71
74
|
this.isValid = (_a = input.validity) == null ? void 0 : _a.valid;
|
|
72
75
|
if (this.eager && this.eagerFirstMount) {
|
|
73
76
|
this.eagerFirstMount = false;
|
|
@@ -330,4 +333,4 @@ SynValidate = __decorateClass([
|
|
|
330
333
|
export {
|
|
331
334
|
SynValidate
|
|
332
335
|
};
|
|
333
|
-
//# sourceMappingURL=chunk.
|
|
336
|
+
//# sourceMappingURL=chunk.AUMWX2PM.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/validate/validate.component.ts"],
|
|
4
|
+
"sourcesContent": ["import type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html } from 'lit';\nimport { property, queryAssignedElements, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { watch } from '../../internal/watch.js';\nimport SynAlert from '../alert/alert.component.js';\nimport {\n getEventNameForElement,\n isBlurEvent,\n isInvalidEvent,\n normalizeEventAttribute,\n} from './utility.js';\nimport styles from './validate.styles.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\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 * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs\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 */\n@enableDefaultSettings('SynValidate')\nexport default class SynValidate extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-alert': SynAlert,\n };\n\n controller = new AbortController();\n\n observer: MutationObserver;\n\n @queryAssignedElements() private slottedChildren: HTMLElement[];\n\n @state() validationMessage = '';\n\n @state() eagerFirstMount = true;\n\n @state() isInternalTriggeredInvalid = false;\n\n @state() isValid = true;\n\n /**\n * The variant that should be used to show validation alerts.\n *\n * The 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>`\n */\n @property({ reflect: true }) variant: 'native' | 'inline' = 'native';\n\n /** Do not show the error icon when using the inline variant validation */\n @property({ attribute: 'hide-icon', reflect: true, type: Boolean }) hideIcon = false;\n\n /**\n * Defines the events that trigger the validation.\n * `invalid` will always automatically be included.\n * You 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 *\n * Please have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.\n *\n * @example ```html\n * <!-- Validate on invalid and change events (invalid, change) -->\n * <syn-validate on=\"invalid change\"></syn-validate>\n *\n * <!-- Validate on live events (invalid, blur, input)-->\n * <syn-validate on=\"live\"></syn-validate>\n *\n * <!-- Validate on live and custom events (invalid, blur, input, focus, change) -->\n * <syn-validate on=\"live focus change\"></syn-validate>\n * ```\n */\n @property({ reflect: true }) on: string = '';\n\n /**\n * Custom validation message to be displayed when the input is invalid.\n * Will override the default browser validation message.\n * Set to an empty string to reset the validation message.\n */\n @property({ attribute: 'custom-validation-message', type: String }) customValidationMessage = '';\n\n /**\n * Set this to true to validate the input immediately when it is rendered.\n * Best used with a `variant` of `inline`.\n * When setting eager, the input will not be focused automatically.\n *\n * When using a `variant` of `native` the browser will focus\n * the last eager field as it is using a tooltip.\n * In this case it is better to just provide one eager field.\n */\n @property({ type: Boolean }) eager = false;\n\n // Automatically refresh all event listeners when the on property changes.\n @watch('on', { waitUntilFirstUpdate: true })\n handleListenerChange() {\n this.updateEvents();\n }\n\n @watch('eager', { waitUntilFirstUpdate: false })\n async handleEagerChange() {\n if (this.eager) {\n const input = this.getInput();\n await this.updateComplete;\n input?.reportValidity();\n this.eagerFirstMount = true;\n } else {\n this.eagerFirstMount = false;\n }\n }\n\n // Synchronize the validation message on the wrapped input with the custom message\n @watch('customValidationMessage', { waitUntilFirstUpdate: true })\n handleCustomValidationMessageChange() {\n const input = this.getInput();\n if (input) {\n this.setCustomValidationMessage(input);\n this.setValidationMessage(input);\n }\n }\n\n /**\n * Returns the validity state of the input component.\n * `true` for valid and `false` for invalid.\n */\n getValidity() {\n return this.isValid;\n }\n\n /**\n * Get the input element to validate. Defined as the first slotted element\n * @returns The input element or undefined if not found\n */\n private getInput() {\n const input = this.slottedChildren[0];\n return input ? input as HTMLInputElement : undefined;\n }\n\n /**\n * Get the event names to listen for.\n * If the input is a synergy element, will use syn- prefixes.\n * @returns The event names to listen for\n */\n // eslint-disable-next-line complexity\n private getUsedEventNames() {\n const input = this.getInput();\n\n // If there is no input, skip before doing any harm\n if (!input) {\n return [];\n }\n\n // Make sure to always use an array of events\n // This is needed because on may be a special value like \"live\"\n const on = normalizeEventAttribute(this.on);\n\n // Filter makes sure to remove empty values, e.g.\n // <syn-validate on=\"\"></syn-validate>\n const [...events] = on.filter(Boolean);\n\n // Make sure to always have an invalid event\n if (!events.includes('invalid')) {\n events.push('invalid');\n }\n\n // Special handling for the live keyword:\n // live always means on input and blur\n if (events.includes('live')) {\n events.push('input');\n events.push('blur');\n }\n\n // Make sure to remove duplicated events and the live property\n // and map the events to the correct event names\n return Array.from(new Set(\n events\n .filter(e => e !== 'live')\n .map(e => getEventNameForElement(input, e)),\n ));\n }\n\n /**\n * Update the events on the input element.\n */\n private updateEvents() {\n this.controller.abort();\n this.controller = new AbortController();\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const events = this.getUsedEventNames();\n events.forEach(eventName => {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n input.addEventListener(eventName, this.validate, {\n capture: isInvalidEvent(eventName),\n signal: this.controller.signal,\n });\n });\n\n // If the change event is not included,\n // make sure to attach a custom listener that resets the validation message\n // This is needed as the custom message may be set on change\n const usedChangeEvent = getEventNameForElement(input, 'change');\n if (!events.includes(usedChangeEvent)) {\n input.addEventListener(usedChangeEvent, this.internalRevalidate, {\n signal: this.controller.signal,\n });\n }\n }\n\n private setValidationMessage(input: HTMLInputElement) {\n const { customValidationMessage } = this;\n const validationMessage = customValidationMessage || input.validationMessage;\n this.validationMessage = validationMessage;\n }\n\n /**\n * 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\n */\n private setCustomValidationMessage(input: HTMLInputElement) {\n // Set the custom validation message on the input only once, when the customValidationMessage\n // is changed. Otherwise there could be problems with `variant=\"native\"` and `on=\"live\"` or\n // `on=\"blur\"`, because the browser popup will never disappear even if clicking somewhere else.\n input.setCustomValidity(this.customValidationMessage);\n }\n\n /**\n * Set the validation message from the input element\n * @param e The event that was received\n */\n private internalRevalidate = (e: Event) => {\n const input = e.currentTarget as HTMLInputElement;\n if (input.validity?.valid) {\n this.validationMessage = '';\n }\n };\n\n /**\n * Handle the blur event during validation\n */\n // eslint-disable-next-line class-methods-use-this\n private handleFocus(input: HTMLInputElement) {\n const activeElement = document.activeElement! as HTMLInputElement;\n const activeElementIsWrapped = activeElement.closest('syn-validate');\n\n if (!activeElement.validity?.valid && activeElementIsWrapped) {\n // The active element is invalid do not scroll\n return;\n }\n\n input.scrollIntoView({ block: 'nearest' });\n input.focus();\n }\n\n /**\n * Triggers a validation run, showing the validation message if needed.\n */\n // eslint-disable-next-line complexity\n private validate = async (e: Event) => {\n // Make sure to stop the validate component from going into an endless cycle of triggering\n if (isInvalidEvent(e.type) && this.variant === 'native' && this.isInternalTriggeredInvalid === true) {\n this.isInternalTriggeredInvalid = false;\n return;\n }\n\n // Make sure to always prevent the invalid event when not using native validation\n if (isInvalidEvent(e.type) && this.variant !== 'native') {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const input = e.currentTarget as HTMLInputElement;\n if (input instanceof SynergyElement) {\n // When using a synergy element, we need to wait for it to be ready!\n // This is needed as the validity state of the element may not be set yet.\n await input.updateComplete;\n }\n this.isValid = input.validity?.valid;\n\n // When we are using eager, make sure to skip focus on the first mount\n if (this.eager && this.eagerFirstMount) {\n this.eagerFirstMount = false;\n this.setValidationMessage(input);\n return;\n }\n\n // If the active element that has focus is placed in a validate component,\n // make sure to not loose focus.\n if (!this.isValid && !isBlurEvent(e.type)) {\n this.handleFocus(input);\n }\n\n this.setValidationMessage(input);\n\n // Trigger reportValidity when using native validation, so the browser popup is also shown\n // for other events than `invalid`. All events except the blur event, should trigger this.\n if (!isBlurEvent(e.type) && this.variant === 'native') {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.isInternalTriggeredInvalid = true;\n input.reportValidity();\n });\n }\n };\n\n async firstUpdated(changedProperties: PropertyValues) {\n super.firstUpdated(changedProperties);\n this.updateEvents();\n\n // #713: Make sure to set the custom validation message on mount\n // When we have a custom element, we need to wait for it to be ready!\n const input = this.getInput();\n\n if (this.customValidationMessage) {\n if (input instanceof SynergyElement) {\n await input.updateComplete;\n }\n input?.setCustomValidity(this.customValidationMessage);\n }\n\n // Make sure to run validation on mount if eager is set\n if (this.eager) {\n await this.updateComplete;\n this.isValid = input?.validity?.valid ?? false;\n input?.reportValidity();\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // #717: Make sure to remove to rerun validation when\n // disabled or readonly properties change on the input\n this.observer = new MutationObserver(entries => {\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const hasDisabledOrReadonly = entries\n // Only check for changes on the input element\n .filter(({ target }) => target === input)\n // Check if the input is disabled or readonly\n .every(entry => {\n const target = entry.target as HTMLInputElement;\n return target.hasAttribute('disabled') || target.hasAttribute('readonly');\n });\n\n if (hasDisabledOrReadonly) {\n this.isValid = true;\n this.validationMessage = '';\n } else {\n // When using a synergy element, we need to check the validity after the element is updated,\n // as we cannot rely on the validity state of the element itself.\n // Unfortunately, this depends on used browser :(.\n const waitForPromise = input instanceof SynergyElement\n ? input.updateComplete\n : Promise.resolve();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForPromise.then(() => {\n this.isValid = input?.validity?.valid ?? false;\n this.validationMessage = input?.validationMessage ?? '';\n });\n }\n });\n\n this.observer.observe(this, {\n attributeFilter: ['disabled', 'readonly'],\n attributes: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.controller.abort();\n this?.observer?.disconnect();\n }\n\n private renderInlineValidation() {\n if (this.variant !== 'inline' || !this.validationMessage) {\n return '';\n }\n\n return html`\n <syn-alert\n open\n exportparts=\"base:alert__base,message:alert__message,icon:alert__icon\"\n part=\"alert\"\n variant=\"danger\"\n >\n ${!this.hideIcon\n ? html`<syn-icon slot=\"icon\" name=\"error\" library=\"system\"></syn-icon>`\n : ''\n }\n ${this.validationMessage}\n </syn-alert>\n `;\n }\n\n render() {\n return html`\n <div\n class=\"validate\"\n part=\"base\"\n >\n <slot\n class=\"validate__input-wrapper\"\n part=\"input-wrapper\"\n ></slot>\n \n ${this.renderInlineValidation()}\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,YAAY;AACrB,SAAS,UAAU,uBAAuB,aAAa;AAgCvD,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAAA;AAOE,sBAAa,IAAI,gBAAgB;AAMxB,6BAAoB;AAEpB,2BAAkB;AAElB,sCAA6B;AAE7B,mBAAU;AASU,mBAA+B;AAGQ,oBAAW;AAsBlD,cAAa;AAO0B,mCAA0B;AAWjE,iBAAQ;AAgJrC;AAAA;AAAA;AAAA;AAAA,SAAQ,qBAAqB,CAAC,MAAa;AAzP7C;AA0PI,YAAM,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EAAR,MAAM;AAAA,GAbY,YAaV;AAEA;AAAA,EAAR,MAAM;AAAA,GAfY,YAeV;AAEA;AAAA,EAAR,MAAM;AAAA,GAjBY,YAiBV;AAEA;AAAA,EAAR,MAAM;AAAA,GAnBY,YAmBV;AASoB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA5BR,YA4BU;AAGuC;AAAA,EAAnE,SAAS,EAAE,WAAW,aAAa,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GA/B/C,YA+BiD;AAsBvC;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GArDR,YAqDU;AAOuC;AAAA,EAAnE,SAAS,EAAE,WAAW,6BAA6B,MAAM,OAAO,CAAC;AAAA,GA5D/C,YA4DiD;AAWvC;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAvER,YAuEU;AAI7B;AAAA,EADC,MAAM,MAAM,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1ExB,YA2EnB;AAKM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,MAAM,CAAC;AAAA,GA/E5B,YAgFb;AAaN;AAAA,EADC,MAAM,2BAA2B,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA5F7C,YA6FnB;AA7FmB,cAArB;AAAA,EADC,sBAAsB,aAAa;AAAA,GACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRange
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KITZ3J6H.js";
|
|
4
4
|
|
|
5
5
|
// src/components/range/range.ts
|
|
6
6
|
var range_default = SynRange;
|
|
@@ -9,4 +9,4 @@ SynRange.define("syn-range");
|
|
|
9
9
|
export {
|
|
10
10
|
range_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.BD5PWQB5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynNavItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KY5QEOVM.js";
|
|
4
4
|
|
|
5
5
|
// src/components/nav-item/nav-item.ts
|
|
6
6
|
var nav_item_default = SynNavItem;
|
|
@@ -9,4 +9,4 @@ SynNavItem.define("syn-nav-item");
|
|
|
9
9
|
export {
|
|
10
10
|
nav_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.BDM4OYEL.js.map
|
|
@@ -31,6 +31,21 @@ var createOptionFromDifferentTypes = (option) => {
|
|
|
31
31
|
}
|
|
32
32
|
return void 0;
|
|
33
33
|
};
|
|
34
|
+
var getValueFromOption = (option) => {
|
|
35
|
+
const { value } = option;
|
|
36
|
+
if (value === void 0 || value === null || value === "") {
|
|
37
|
+
return option.getTextLabel();
|
|
38
|
+
}
|
|
39
|
+
return value;
|
|
40
|
+
};
|
|
41
|
+
var checkValueBelongsToOption = (value, option) => {
|
|
42
|
+
if (!option || !value) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
const optionValue = option.value;
|
|
46
|
+
const optionText = option.getTextLabel();
|
|
47
|
+
return value === optionValue || value === optionText;
|
|
48
|
+
};
|
|
34
49
|
|
|
35
50
|
export {
|
|
36
51
|
getAssignedElementsForSlot,
|
|
@@ -40,6 +55,8 @@ export {
|
|
|
40
55
|
filterOnlyOptgroups,
|
|
41
56
|
normalizeString,
|
|
42
57
|
createElementFromTemplateResult,
|
|
43
|
-
createOptionFromDifferentTypes
|
|
58
|
+
createOptionFromDifferentTypes,
|
|
59
|
+
getValueFromOption,
|
|
60
|
+
checkValueBelongsToOption
|
|
44
61
|
};
|
|
45
|
-
//# sourceMappingURL=chunk.
|
|
62
|
+
//# sourceMappingURL=chunk.BWTMFHNM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/combobox/utils.ts"],
|
|
4
|
-
"sourcesContent": ["import { type TemplateResult, html, render } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport type SynOptGroup from '../optgroup/optgroup.js';\nimport type SynOption from '../option/option.component.js';\n\n/**\n * Get a list of all assigned elements for a given slot\n * @param slot The slot to query\n * @returns Flattened list of assigned elements\n */\nexport const getAssignedElementsForSlot = (slot: HTMLSlotElement) => Array.from(\n slot.assignedElements({ flatten: true }),\n) as HTMLElement[];\n\n/**\n * Retrieves the option or nested options from the provided HTMLElement.\n *\n * @param item - The HTMLElement representing the option or containing nested options.\n * @returns The found syn-option(s)\n */\nexport const getOptionOrNestedOptions = (item: HTMLElement): SynOption | SynOption[] => (\n item.tagName.toLocaleLowerCase() === 'syn-option' ? item as SynOption : Array.from(item.querySelectorAll<SynOption>(':scope > syn-option'))\n);\n\n/**\n * Check if an item is a syn-optgroup\n * @param item The item to check for\n * @returns True if the item is a SynOptgroup, false otherwise\n */\nexport const isOptgroup = (item: HTMLElement): item is SynOptGroup => (\n item.tagName.toLocaleLowerCase() === 'syn-optgroup'\n);\n\n/**\n * Get a list of only Option elements\n * @param items List of items to check for\n * @returns New array of all found syn-nav-items\n */\nexport const getAllOptions = (items: HTMLElement[]) => items.map(getOptionOrNestedOptions);\n\n/**\n * Get a list of only Optgroup elements\n * @param items List of items to check for\n * @returns New array of all found syn-optgroup's\n */\nexport const filterOnlyOptgroups = (items: HTMLElement[]) => items.filter(isOptgroup);\n\n/**\n * Normalize a string by removing accents and converting to lowercase\n * @param str The string to normalize\n * @returns The normalized string\n */\nexport const normalizeString = (str: string) => str.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '').toLowerCase();\n\n/**\n * Creates a `SynOption` element from a given `TemplateResult`.\n * We assume that the given `TemplateResult` is a <syn-option>.\n *\n * @param template - The `TemplateResult` to be rendered into a `SynOption`.\n * @returns The created SynOption element\n */\nexport const createElementFromTemplateResult = (template: TemplateResult) => {\n const container = document.createElement('div');\n render(template, container);\n return container.firstElementChild as HTMLElement;\n};\n\nconst getOptionOrUndefined = (element: HTMLElement) => (element.tagName.toLocaleLowerCase() === 'syn-option' ? element as SynOption : undefined);\n\n/**\n * This function takes an input of type `TemplateResult`, `string`, or `HTMLElement`\n * and creates an SynOption from it.\n *\n * @param option - The option which can be of type `TemplateResult`, `string` or `HTMLElement`.\n * @returns The created SynOption or undefined if the option was not a valid type.\n */\nexport const createOptionFromDifferentTypes = (option: TemplateResult | string | HTMLElement) => {\n if (!option) return undefined;\n\n if (option instanceof HTMLElement) {\n return getOptionOrUndefined(option);\n }\n\n if (typeof option === 'string') {\n const template = html`${unsafeHTML(option)}`;\n const element = createElementFromTemplateResult(template);\n return getOptionOrUndefined(element);\n }\n\n if (Object.prototype.hasOwnProperty.call(option, '_$litType$')) {\n const element = createElementFromTemplateResult(option);\n return getOptionOrUndefined(element);\n }\n\n return undefined;\n};\n"],
|
|
5
|
-
"mappings": ";AAAA,SAA8B,MAAM,cAAc;AAClD,SAAS,kBAAkB;AASpB,IAAM,6BAA6B,CAAC,SAA0B,MAAM;AAAA,EACzE,KAAK,iBAAiB,EAAE,SAAS,KAAK,CAAC;AACzC;AAQO,IAAM,2BAA2B,CAAC,SACvC,KAAK,QAAQ,kBAAkB,MAAM,eAAe,OAAoB,MAAM,KAAK,KAAK,iBAA4B,qBAAqB,CAAC;AAQrI,IAAM,aAAa,CAAC,SACzB,KAAK,QAAQ,kBAAkB,MAAM;AAQhC,IAAM,gBAAgB,CAAC,UAAyB,MAAM,IAAI,wBAAwB;AAOlF,IAAM,sBAAsB,CAAC,UAAyB,MAAM,OAAO,UAAU;AAO7E,IAAM,kBAAkB,CAAC,QAAgB,IAAI,UAAU,KAAK,EAAE,QAAQ,oBAAoB,EAAE,EAAE,YAAY;AAS1G,IAAM,kCAAkC,CAAC,aAA6B;AAC3E,QAAM,YAAY,SAAS,cAAc,KAAK;AAC9C,SAAO,UAAU,SAAS;AAC1B,SAAO,UAAU;AACnB;AAEA,IAAM,uBAAuB,CAAC,YAA0B,QAAQ,QAAQ,kBAAkB,MAAM,eAAe,UAAuB;AAS/H,IAAM,iCAAiC,CAAC,WAAkD;AAC/F,MAAI,CAAC,OAAQ,QAAO;AAEpB,MAAI,kBAAkB,aAAa;AACjC,WAAO,qBAAqB,MAAM;AAAA,EACpC;AAEA,MAAI,OAAO,WAAW,UAAU;AAC9B,UAAM,WAAW,OAAO,WAAW,MAAM,CAAC;AAC1C,UAAM,UAAU,gCAAgC,QAAQ;AACxD,WAAO,qBAAqB,OAAO;AAAA,EACrC;AAEA,MAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,YAAY,GAAG;AAC9D,UAAM,UAAU,gCAAgC,MAAM;AACtD,WAAO,qBAAqB,OAAO;AAAA,EACrC;AAEA,SAAO;AACT;",
|
|
4
|
+
"sourcesContent": ["import { type TemplateResult, html, render } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport type SynOptGroup from '../optgroup/optgroup.js';\nimport type SynOption from '../option/option.component.js';\n\n/**\n * Get a list of all assigned elements for a given slot\n * @param slot The slot to query\n * @returns Flattened list of assigned elements\n */\nexport const getAssignedElementsForSlot = (slot: HTMLSlotElement) => Array.from(\n slot.assignedElements({ flatten: true }),\n) as HTMLElement[];\n\n/**\n * Retrieves the option or nested options from the provided HTMLElement.\n *\n * @param item - The HTMLElement representing the option or containing nested options.\n * @returns The found syn-option(s)\n */\nexport const getOptionOrNestedOptions = (item: HTMLElement): SynOption | SynOption[] => (\n item.tagName.toLocaleLowerCase() === 'syn-option' ? item as SynOption : Array.from(item.querySelectorAll<SynOption>(':scope > syn-option'))\n);\n\n/**\n * Check if an item is a syn-optgroup\n * @param item The item to check for\n * @returns True if the item is a SynOptgroup, false otherwise\n */\nexport const isOptgroup = (item: HTMLElement): item is SynOptGroup => (\n item.tagName.toLocaleLowerCase() === 'syn-optgroup'\n);\n\n/**\n * Get a list of only Option elements\n * @param items List of items to check for\n * @returns New array of all found syn-nav-items\n */\nexport const getAllOptions = (items: HTMLElement[]) => items.map(getOptionOrNestedOptions);\n\n/**\n * Get a list of only Optgroup elements\n * @param items List of items to check for\n * @returns New array of all found syn-optgroup's\n */\nexport const filterOnlyOptgroups = (items: HTMLElement[]) => items.filter(isOptgroup);\n\n/**\n * Normalize a string by removing accents and converting to lowercase\n * @param str The string to normalize\n * @returns The normalized string\n */\nexport const normalizeString = (str: string) => str.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '').toLowerCase();\n\n/**\n * Creates a `SynOption` element from a given `TemplateResult`.\n * We assume that the given `TemplateResult` is a <syn-option>.\n *\n * @param template - The `TemplateResult` to be rendered into a `SynOption`.\n * @returns The created SynOption element\n */\nexport const createElementFromTemplateResult = (template: TemplateResult) => {\n const container = document.createElement('div');\n render(template, container);\n return container.firstElementChild as HTMLElement;\n};\n\nconst getOptionOrUndefined = (element: HTMLElement) => (element.tagName.toLocaleLowerCase() === 'syn-option' ? element as SynOption : undefined);\n\n/**\n * This function takes an input of type `TemplateResult`, `string`, or `HTMLElement`\n * and creates an SynOption from it.\n *\n * @param option - The option which can be of type `TemplateResult`, `string` or `HTMLElement`.\n * @returns The created SynOption or undefined if the option was not a valid type.\n */\nexport const createOptionFromDifferentTypes = (option: TemplateResult | string | HTMLElement) => {\n if (!option) return undefined;\n\n if (option instanceof HTMLElement) {\n return getOptionOrUndefined(option);\n }\n\n if (typeof option === 'string') {\n const template = html`${unsafeHTML(option)}`;\n const element = createElementFromTemplateResult(template);\n return getOptionOrUndefined(element);\n }\n\n if (Object.prototype.hasOwnProperty.call(option, '_$litType$')) {\n const element = createElementFromTemplateResult(option);\n return getOptionOrUndefined(element);\n }\n\n return undefined;\n};\n\n/**\n * Gets the value from an option. If an option has no value, it will use the text label.\n * @param option The syn-option to get the value from\n * @returns The value of the option\n */\nexport const getValueFromOption = (option: SynOption) => {\n const { value } = option;\n if (value === undefined || value === null || value === '') {\n // If the option has no value, use the text label\n return option.getTextLabel();\n }\n return value;\n};\n\n/**\n * Check if a value belongs to the value or text label of an option.\n * @param value The value to check\n * @param option The option to check against\n * @returns True if the value belongs to the option, false otherwise\n */\nexport const checkValueBelongsToOption = (value: string, option: SynOption | undefined) => {\n if (!option || !value) {\n return false;\n }\n\n const optionValue = option.value;\n const optionText = option.getTextLabel();\n return value === optionValue || value === optionText;\n};\n"],
|
|
5
|
+
"mappings": ";AAAA,SAA8B,MAAM,cAAc;AAClD,SAAS,kBAAkB;AASpB,IAAM,6BAA6B,CAAC,SAA0B,MAAM;AAAA,EACzE,KAAK,iBAAiB,EAAE,SAAS,KAAK,CAAC;AACzC;AAQO,IAAM,2BAA2B,CAAC,SACvC,KAAK,QAAQ,kBAAkB,MAAM,eAAe,OAAoB,MAAM,KAAK,KAAK,iBAA4B,qBAAqB,CAAC;AAQrI,IAAM,aAAa,CAAC,SACzB,KAAK,QAAQ,kBAAkB,MAAM;AAQhC,IAAM,gBAAgB,CAAC,UAAyB,MAAM,IAAI,wBAAwB;AAOlF,IAAM,sBAAsB,CAAC,UAAyB,MAAM,OAAO,UAAU;AAO7E,IAAM,kBAAkB,CAAC,QAAgB,IAAI,UAAU,KAAK,EAAE,QAAQ,oBAAoB,EAAE,EAAE,YAAY;AAS1G,IAAM,kCAAkC,CAAC,aAA6B;AAC3E,QAAM,YAAY,SAAS,cAAc,KAAK;AAC9C,SAAO,UAAU,SAAS;AAC1B,SAAO,UAAU;AACnB;AAEA,IAAM,uBAAuB,CAAC,YAA0B,QAAQ,QAAQ,kBAAkB,MAAM,eAAe,UAAuB;AAS/H,IAAM,iCAAiC,CAAC,WAAkD;AAC/F,MAAI,CAAC,OAAQ,QAAO;AAEpB,MAAI,kBAAkB,aAAa;AACjC,WAAO,qBAAqB,MAAM;AAAA,EACpC;AAEA,MAAI,OAAO,WAAW,UAAU;AAC9B,UAAM,WAAW,OAAO,WAAW,MAAM,CAAC;AAC1C,UAAM,UAAU,gCAAgC,QAAQ;AACxD,WAAO,qBAAqB,OAAO;AAAA,EACrC;AAEA,MAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,YAAY,GAAG;AAC9D,UAAM,UAAU,gCAAgC,MAAM;AACtD,WAAO,qBAAqB,OAAO;AAAA,EACrC;AAEA,SAAO;AACT;AAOO,IAAM,qBAAqB,CAAC,WAAsB;AACvD,QAAM,EAAE,MAAM,IAAI;AAClB,MAAI,UAAU,UAAa,UAAU,QAAQ,UAAU,IAAI;AAEzD,WAAO,OAAO,aAAa;AAAA,EAC7B;AACA,SAAO;AACT;AAQO,IAAM,4BAA4B,CAAC,OAAe,WAAkC;AACzF,MAAI,CAAC,UAAU,CAAC,OAAO;AACrB,WAAO;AAAA,EACT;AAEA,QAAM,cAAc,OAAO;AAC3B,QAAM,aAAa,OAAO,aAAa;AACvC,SAAO,UAAU,eAAe,UAAU;AAC5C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
HasSlotController
|
|
6
6
|
} from "./chunk.WVVQK5TE.js";
|
|
7
|
-
import {
|
|
8
|
-
enableDefaultSettings
|
|
9
|
-
} from "./chunk.E5UUNP6E.js";
|
|
10
7
|
import {
|
|
11
8
|
watch
|
|
12
9
|
} from "./chunk.BVZQ6QSY.js";
|
|
10
|
+
import {
|
|
11
|
+
enableDefaultSettings
|
|
12
|
+
} from "./chunk.E5UUNP6E.js";
|
|
13
13
|
import {
|
|
14
14
|
component_styles_default
|
|
15
15
|
} from "./chunk.NLYVOJGK.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.6U2NV7JW.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.Z4XV3SMG.js";
|
|
@@ -138,4 +138,4 @@ SynRadioButton = __decorateClass([
|
|
|
138
138
|
export {
|
|
139
139
|
SynRadioButton
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk.
|
|
141
|
+
//# sourceMappingURL=chunk.BZ7XWSKK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTag
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4ODI3ZT3.js";
|
|
4
4
|
import {
|
|
5
5
|
select_custom_styles_default
|
|
6
6
|
} from "./chunk.DOOJ2WJ7.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk.VECCQZP5.js";
|
|
14
14
|
import {
|
|
15
15
|
SynPopup
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.W7UGIK2A.js";
|
|
17
17
|
import {
|
|
18
18
|
scrollIntoView
|
|
19
19
|
} from "./chunk.5732DMBC.js";
|
|
@@ -40,22 +40,22 @@ import {
|
|
|
40
40
|
} from "./chunk.WVVQK5TE.js";
|
|
41
41
|
import {
|
|
42
42
|
SynIcon
|
|
43
|
-
} from "./chunk.
|
|
43
|
+
} from "./chunk.6TVA3W47.js";
|
|
44
|
+
import {
|
|
45
|
+
watch
|
|
46
|
+
} from "./chunk.BVZQ6QSY.js";
|
|
44
47
|
import {
|
|
45
48
|
LocalizeController
|
|
46
|
-
} from "./chunk.
|
|
49
|
+
} from "./chunk.OAQRCZOO.js";
|
|
47
50
|
import {
|
|
48
51
|
enableDefaultSettings
|
|
49
52
|
} from "./chunk.E5UUNP6E.js";
|
|
50
|
-
import {
|
|
51
|
-
watch
|
|
52
|
-
} from "./chunk.BVZQ6QSY.js";
|
|
53
53
|
import {
|
|
54
54
|
component_styles_default
|
|
55
55
|
} from "./chunk.NLYVOJGK.js";
|
|
56
56
|
import {
|
|
57
57
|
SynergyElement
|
|
58
|
-
} from "./chunk.
|
|
58
|
+
} from "./chunk.6U2NV7JW.js";
|
|
59
59
|
import {
|
|
60
60
|
__decorateClass
|
|
61
61
|
} from "./chunk.Z4XV3SMG.js";
|
|
@@ -879,4 +879,4 @@ setDefaultAnimation("select.hide", {
|
|
|
879
879
|
export {
|
|
880
880
|
SynSelect
|
|
881
881
|
};
|
|
882
|
-
//# sourceMappingURL=chunk.
|
|
882
|
+
//# sourceMappingURL=chunk.C5ZT3KT6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButtonGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NVMNFCD2.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.CLUIPDLM.js.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk.43YNZAWL.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIconButton
|
|
9
|
-
} from "./chunk.
|
|
10
|
-
import {
|
|
11
|
-
LocalizeController
|
|
12
|
-
} from "./chunk.IPGLY3H4.js";
|
|
9
|
+
} from "./chunk.UJQQ35B3.js";
|
|
13
10
|
import {
|
|
14
11
|
watch
|
|
15
12
|
} from "./chunk.BVZQ6QSY.js";
|
|
13
|
+
import {
|
|
14
|
+
LocalizeController
|
|
15
|
+
} from "./chunk.OAQRCZOO.js";
|
|
16
16
|
import {
|
|
17
17
|
component_styles_default
|
|
18
18
|
} from "./chunk.NLYVOJGK.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.6U2NV7JW.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.Z4XV3SMG.js";
|
|
@@ -118,4 +118,4 @@ __decorateClass([
|
|
|
118
118
|
export {
|
|
119
119
|
SynTab
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk.
|
|
121
|
+
//# sourceMappingURL=chunk.COJWYUPQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynOption
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.GJ6RRIHU.js";
|
|
4
4
|
|
|
5
5
|
// src/components/option/option.ts
|
|
6
6
|
var option_default = SynOption;
|
|
@@ -9,4 +9,4 @@ SynOption.define("syn-option");
|
|
|
9
9
|
export {
|
|
10
10
|
option_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.CVAPRF6I.js.map
|