@synergy-design-system/components 2.19.3 → 2.20.0-settings.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.Z463JNSB.js → chunk.24C4XJAI.js} +9 -3
- package/dist/chunks/chunk.24C4XJAI.js.map +7 -0
- package/dist/chunks/{chunk.ZJF7NESZ.js → chunk.24DN2XDS.js} +13 -7
- package/dist/chunks/chunk.24DN2XDS.js.map +7 -0
- package/dist/chunks/{chunk.M4CVCPA7.js → chunk.2QFNK7XL.js} +2 -2
- package/dist/chunks/{chunk.T2TZJ6RL.js → chunk.3HW4J22U.js} +5 -5
- package/dist/chunks/{chunk.O353RCGZ.js → chunk.4AKA2QRO.js} +2 -2
- package/dist/chunks/{chunk.2Z4KRXQR.js → chunk.4ZPJSGD5.js} +2 -2
- package/dist/chunks/{chunk.KUHEM2HU.js → chunk.53THUSDO.js} +2 -2
- package/dist/chunks/{chunk.JZ54BAZN.js → chunk.742PBV5R.js} +13 -7
- package/dist/chunks/chunk.742PBV5R.js.map +7 -0
- package/dist/chunks/{chunk.JXFOMI34.js → chunk.7467Z6PG.js} +2 -2
- package/dist/chunks/{chunk.FDXNWNID.js → chunk.7EYHNKMM.js} +3 -3
- package/dist/chunks/{chunk.3CBZSMFD.js → chunk.7LASULTQ.js} +2 -2
- package/dist/chunks/{chunk.BJI3TUDD.js → chunk.7NZ7JAEV.js} +2 -2
- package/dist/chunks/{chunk.A5SZJGAY.js → chunk.7XMTQ7P7.js} +3 -3
- package/dist/chunks/{chunk.WMWANLUG.js → chunk.7Y7O45CM.js} +8 -2
- package/dist/chunks/chunk.7Y7O45CM.js.map +7 -0
- package/dist/chunks/{chunk.5BPFEOW3.js → chunk.A2JLMFJ4.js} +2 -2
- package/dist/chunks/{chunk.WCA3YMN7.js → chunk.AIQ3EJZY.js} +8 -2
- package/dist/chunks/chunk.AIQ3EJZY.js.map +7 -0
- package/dist/chunks/{chunk.GSWYXK3F.js → chunk.AQS4YK7Q.js} +2 -2
- package/dist/chunks/{chunk.CKX7E6DW.js → chunk.AS3TB27D.js} +6 -6
- package/dist/chunks/{chunk.E6TS35BF.js → chunk.B2WOBIWW.js} +2 -2
- package/dist/chunks/{chunk.RJTTUG4P.js → chunk.BA7XLIED.js} +9 -3
- package/dist/chunks/{chunk.RJTTUG4P.js.map → chunk.BA7XLIED.js.map} +2 -2
- package/dist/chunks/{chunk.KCEUZKGJ.js → chunk.BJTRYICX.js} +2 -2
- package/dist/chunks/{chunk.CHXBQL3V.js → chunk.BO7VIZR3.js} +14 -8
- package/dist/chunks/chunk.BO7VIZR3.js.map +7 -0
- package/dist/chunks/{chunk.UD2SVXHT.js → chunk.BPZOCAHJ.js} +2 -2
- package/dist/chunks/{chunk.CMORZHVE.js → chunk.BWESHYBN.js} +2 -2
- package/dist/chunks/{chunk.Y5LNS47Z.js → chunk.DERBT2MN.js} +14 -8
- package/dist/chunks/chunk.DERBT2MN.js.map +7 -0
- package/dist/chunks/{chunk.R7UQZGOB.js → chunk.DYUCTKM6.js} +2 -2
- package/dist/chunks/{chunk.AVEHVAVI.js → chunk.E72GLNXI.js} +2 -2
- package/dist/chunks/{chunk.442H67H2.js → chunk.EBYGA33B.js} +2 -2
- package/dist/chunks/{chunk.KYW2PJQJ.js → chunk.EMGPXY5T.js} +2 -2
- package/dist/chunks/{chunk.TATHCQUC.js → chunk.EMU2E2VE.js} +9 -3
- package/dist/chunks/{chunk.TATHCQUC.js.map → chunk.EMU2E2VE.js.map} +2 -2
- package/dist/chunks/{chunk.MPJHH2MY.js → chunk.EVECGQOP.js} +10 -4
- package/dist/chunks/chunk.EVECGQOP.js.map +7 -0
- package/dist/chunks/{chunk.KQKYLYB5.js → chunk.FAREQGAK.js} +2 -2
- package/dist/chunks/{chunk.WQTGLVFD.js → chunk.FLB37Q2Y.js} +6 -6
- package/dist/chunks/{chunk.7C65TMZT.js → chunk.HCMNEIRN.js} +6 -6
- package/dist/chunks/{chunk.XWYGFKWO.js → chunk.HNVPPNYZ.js} +2 -2
- package/dist/chunks/{chunk.F7L6D6XY.js → chunk.HPQBH3O2.js} +2 -2
- package/dist/chunks/{chunk.DYAGSNTK.js → chunk.HZ3S4J3T.js} +2 -2
- package/dist/chunks/{chunk.NM5ZFEE5.js → chunk.IBQDKFYH.js} +7 -7
- package/dist/chunks/{chunk.Z4WZ7MIE.js → chunk.IFWSRMUK.js} +2 -2
- package/dist/chunks/{chunk.TVERPVR4.js → chunk.J53UXHXV.js} +2 -2
- package/dist/chunks/{chunk.S3JJZL3O.js → chunk.JBLFNOCX.js} +16 -10
- package/dist/chunks/chunk.JBLFNOCX.js.map +7 -0
- package/dist/chunks/{chunk.WSJXYSXY.js → chunk.JHPSR3AP.js} +2 -2
- package/dist/chunks/{chunk.SAH3XRAD.js → chunk.JNAG6IBY.js} +2 -2
- package/dist/chunks/chunk.JSEL4YPW.js +147 -0
- package/dist/chunks/chunk.JSEL4YPW.js.map +7 -0
- package/dist/chunks/{chunk.6WYS7WDW.js → chunk.LHNUNBCA.js} +2 -2
- package/dist/chunks/{chunk.YA4ZNSNS.js → chunk.LYMHXGME.js} +2 -2
- package/dist/chunks/{chunk.SMRWRBBB.js → chunk.LYNLLR54.js} +9 -9
- package/dist/chunks/{chunk.JGZ2DM63.js → chunk.LZ27X5R6.js} +2 -2
- package/dist/chunks/{chunk.O3D7AIEY.js → chunk.MDG7KZFO.js} +2 -2
- package/dist/chunks/{chunk.AEYAHBYW.js → chunk.MGET4VXP.js} +2 -2
- package/dist/chunks/{chunk.UUSZZYBI.js → chunk.MKQXTHWU.js} +2 -2
- package/dist/chunks/{chunk.UUSZZYBI.js.map → chunk.MKQXTHWU.js.map} +1 -1
- package/dist/chunks/{chunk.CZDXNQOI.js → chunk.N54SVWTA.js} +2 -2
- package/dist/chunks/{chunk.4SALHO5R.js → chunk.NL4FKYIJ.js} +2 -2
- package/dist/chunks/{chunk.WJWII3OP.js → chunk.NM5EI7ZH.js} +2 -2
- package/dist/chunks/{chunk.3CZBIEJQ.js → chunk.NN73HBIU.js} +6 -6
- package/dist/chunks/{chunk.DRWE6CQ2.js → chunk.NUCBTPTS.js} +14 -8
- package/dist/chunks/chunk.NUCBTPTS.js.map +7 -0
- package/dist/chunks/{chunk.O45X5N4K.js → chunk.O7JPMKUW.js} +14 -8
- package/dist/chunks/chunk.O7JPMKUW.js.map +7 -0
- package/dist/chunks/{chunk.54OV4Y3P.js → chunk.OFA3YJLS.js} +2 -2
- package/dist/chunks/chunk.OLCT57R5.js +69 -0
- package/dist/chunks/chunk.OLCT57R5.js.map +7 -0
- package/dist/chunks/{chunk.ZA44ZRKT.js → chunk.P5XIUYNV.js} +2 -2
- package/dist/chunks/{chunk.762BUPQP.js → chunk.PDAOZ7HN.js} +2 -2
- package/dist/chunks/{chunk.ODBT7EDN.js → chunk.PLSOGFSX.js} +2 -2
- package/dist/chunks/{chunk.RR3NOQXW.js → chunk.Q33XUREM.js} +2 -2
- package/dist/chunks/{chunk.EFBKBI5I.js → chunk.QMVBPAZF.js} +2 -2
- package/dist/chunks/{chunk.T2IZ4JC5.js → chunk.QWMAKCAT.js} +2 -2
- package/dist/chunks/{chunk.OH3XIKJC.js → chunk.R2HFUCJI.js} +24 -18
- package/dist/chunks/chunk.R2HFUCJI.js.map +7 -0
- package/dist/chunks/chunk.RSCUHBW3.js +1 -0
- package/dist/chunks/chunk.RSCUHBW3.js.map +7 -0
- package/dist/chunks/{chunk.26PAD6S5.js → chunk.S7PAQRVY.js} +7 -7
- package/dist/chunks/{chunk.3GWNIY5V.js → chunk.SKA5Y7HA.js} +3 -3
- package/dist/chunks/{chunk.VKKATLHB.js → chunk.SNHVIH7F.js} +2 -2
- package/dist/chunks/{chunk.U627OKOV.js → chunk.ST3V3ZVP.js} +2 -2
- package/dist/chunks/{chunk.JM2MZ7RR.js → chunk.SWUXKALS.js} +2 -2
- package/dist/chunks/{chunk.HTQBFNY7.js → chunk.SXFIFBVM.js} +10 -4
- package/dist/chunks/chunk.SXFIFBVM.js.map +7 -0
- package/dist/chunks/{chunk.IMPVWVTM.js → chunk.SYWSXUHZ.js} +2 -2
- package/dist/chunks/{chunk.IOTPBNBD.js → chunk.T53XYA43.js} +8 -2
- package/dist/chunks/chunk.T53XYA43.js.map +7 -0
- package/dist/chunks/{chunk.4QCEBUCC.js → chunk.TL5RQ2KH.js} +2 -2
- package/dist/chunks/{chunk.E44AHYCS.js → chunk.TXQLKFUU.js} +9 -3
- package/dist/chunks/chunk.TXQLKFUU.js.map +7 -0
- package/dist/chunks/chunk.UPDPVGHT.js +59 -0
- package/dist/chunks/chunk.UPDPVGHT.js.map +7 -0
- package/dist/chunks/{chunk.YADYVOVB.js → chunk.UXHC3W5U.js} +6 -6
- package/dist/chunks/{chunk.Z6ZZHCIT.js → chunk.UY5AOQHP.js} +2 -2
- package/dist/chunks/{chunk.EPPQVZQW.js → chunk.UYGCYMDS.js} +2 -2
- package/dist/chunks/{chunk.II2KA3OR.js → chunk.VKRMYKYH.js} +4 -10
- package/dist/chunks/chunk.VKRMYKYH.js.map +7 -0
- package/dist/chunks/{chunk.XNZSIB7Q.js → chunk.VL74BJLP.js} +2 -2
- package/dist/chunks/{chunk.WGTTDIKF.js → chunk.VLE3Q74Y.js} +2 -2
- package/dist/chunks/{chunk.3DYXH3I6.js → chunk.VOOMTA4X.js} +2 -2
- package/dist/chunks/{chunk.OLTMUBJR.js → chunk.WLHRVKAR.js} +2 -2
- package/dist/chunks/{chunk.JZC3FVVX.js → chunk.WLYLSH3H.js} +2 -2
- package/dist/chunks/{chunk.TMJ25O52.js → chunk.WMUMEYQJ.js} +6 -6
- package/dist/chunks/{chunk.ZX5CHJI2.js → chunk.XCILIICJ.js} +14 -8
- package/dist/chunks/chunk.XCILIICJ.js.map +7 -0
- package/dist/chunks/{chunk.GOLBL7J7.js → chunk.XMSHEZ3R.js} +2 -2
- package/dist/chunks/{chunk.C2IY7RL4.js → chunk.XP47Y2SU.js} +2 -2
- package/dist/chunks/{chunk.5OUUMC6G.js → chunk.XSS62TBI.js} +2 -2
- package/dist/chunks/{chunk.PHUCYRO7.js → chunk.XY3WHMD7.js} +2 -2
- package/dist/chunks/{chunk.CIHRDJFX.js → chunk.Y334QFFZ.js} +6 -6
- package/dist/chunks/{chunk.QSA255YJ.js → chunk.Y4EGILWE.js} +2 -2
- package/dist/chunks/{chunk.5IR2ODKZ.js → chunk.YQLTFWYX.js} +2 -2
- package/dist/chunks/{chunk.OX7ASSRL.js → chunk.YTMSHKEA.js} +9 -9
- package/dist/chunks/{chunk.ZXZA6GQW.js → chunk.Z2PVOPJK.js} +9 -3
- package/dist/chunks/chunk.Z2PVOPJK.js.map +7 -0
- package/dist/chunks/{chunk.FLSPWXQV.js → chunk.Z4OFLKEQ.js} +2 -2
- package/dist/chunks/{chunk.SS6UWTDZ.js → chunk.ZDIDYG6H.js} +2 -2
- package/dist/components/accordion/accordion.component.js +6 -3
- package/dist/components/accordion/accordion.js +7 -4
- package/dist/components/alert/alert.component.js +12 -9
- package/dist/components/alert/alert.js +13 -10
- package/dist/components/badge/badge.component.js +7 -4
- package/dist/components/badge/badge.js +8 -5
- package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.js +8 -8
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +10 -7
- package/dist/components/button/button.js +11 -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 +8 -5
- package/dist/components/checkbox/checkbox.js +9 -6
- package/dist/components/combobox/combobox.component.js +13 -10
- package/dist/components/combobox/combobox.js +14 -11
- package/dist/components/details/details.component.js +9 -6
- package/dist/components/details/details.js +10 -7
- package/dist/components/dialog/dialog.component.js +11 -8
- package/dist/components/dialog/dialog.js +12 -9
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +10 -7
- package/dist/components/drawer/drawer.js +11 -8
- package/dist/components/dropdown/dropdown.component.js +4 -4
- package/dist/components/dropdown/dropdown.js +5 -5
- package/dist/components/file/file.component.js +11 -8
- package/dist/components/file/file.js +12 -9
- package/dist/components/header/header.component.js +7 -7
- package/dist/components/header/header.js +8 -8
- 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 +6 -3
- package/dist/components/icon-button/icon-button.js +7 -4
- package/dist/components/input/input.component.js +11 -8
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +12 -9
- 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 +8 -8
- package/dist/components/menu-item/menu-item.js +9 -9
- package/dist/components/menu-label/menu-label.component.js +3 -3
- package/dist/components/menu-label/menu-label.js +4 -4
- package/dist/components/nav-item/nav-item.component.js +3 -3
- package/dist/components/nav-item/nav-item.js +4 -4
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/prio-nav/prio-nav.component.js +11 -11
- package/dist/components/prio-nav/prio-nav.js +12 -12
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/radio/radio.component.js +6 -3
- package/dist/components/radio/radio.js +7 -4
- package/dist/components/radio-button/radio-button.component.js +5 -2
- package/dist/components/radio-button/radio-button.js +6 -3
- package/dist/components/radio-group/radio-group.component.js +6 -3
- package/dist/components/radio-group/radio-group.js +7 -4
- package/dist/components/range/range.component.js +8 -5
- package/dist/components/range/range.js +9 -6
- package/dist/components/range-tick/range-tick.component.js +2 -2
- package/dist/components/range-tick/range-tick.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/select/select.component.js +12 -9
- package/dist/components/select/select.js +13 -10
- package/dist/components/side-nav/side-nav.component.js +12 -9
- package/dist/components/side-nav/side-nav.js +13 -10
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/switch/switch.component.js +5 -2
- package/dist/components/switch/switch.js +6 -3
- package/dist/components/tab/tab.component.js +9 -6
- package/dist/components/tab/tab.js +10 -7
- package/dist/components/tab-group/tab-group.component.js +10 -7
- package/dist/components/tab-group/tab-group.js +11 -8
- 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 +9 -6
- package/dist/components/tag/tag.js +10 -7
- package/dist/components/textarea/textarea.component.js +5 -2
- package/dist/components/textarea/textarea.js +6 -3
- package/dist/components/tooltip/tooltip.component.js +4 -4
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/components/validate/utility.js +2 -2
- package/dist/components/validate/validate.component.js +14 -11
- package/dist/components/validate/validate.js +15 -12
- package/dist/custom-elements.json +233 -233
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-default-settings-changed.d.ts +16 -0
- package/dist/styles/index.css +1 -1
- package/dist/synergy.d.ts +1 -0
- package/dist/synergy.js +142 -126
- package/dist/utilities/defaultSettings/base.d.ts +87 -0
- package/dist/utilities/defaultSettings/base.js +10 -0
- package/dist/utilities/defaultSettings/base.js.map +7 -0
- package/dist/utilities/defaultSettings/decorator.d.ts +12 -0
- package/dist/utilities/defaultSettings/decorator.js +10 -0
- package/dist/utilities/defaultSettings/decorator.js.map +7 -0
- package/dist/utilities/defaultSettings/functions.d.ts +41 -0
- package/dist/utilities/defaultSettings/functions.js +21 -0
- package/dist/utilities/defaultSettings/functions.js.map +7 -0
- package/dist/utilities/defaultSettings/index.d.ts +3 -0
- package/dist/utilities/defaultSettings/index.js +20 -0
- package/dist/utilities/defaultSettings/index.js.map +7 -0
- package/dist/vscode.html-custom-data.json +49 -49
- package/package.json +3 -3
- package/dist/chunks/chunk.CHXBQL3V.js.map +0 -7
- package/dist/chunks/chunk.DRWE6CQ2.js.map +0 -7
- package/dist/chunks/chunk.E44AHYCS.js.map +0 -7
- package/dist/chunks/chunk.HTQBFNY7.js.map +0 -7
- package/dist/chunks/chunk.II2KA3OR.js.map +0 -7
- package/dist/chunks/chunk.IOTPBNBD.js.map +0 -7
- package/dist/chunks/chunk.JZ54BAZN.js.map +0 -7
- package/dist/chunks/chunk.MPJHH2MY.js.map +0 -7
- package/dist/chunks/chunk.O45X5N4K.js.map +0 -7
- package/dist/chunks/chunk.OH3XIKJC.js.map +0 -7
- package/dist/chunks/chunk.S3JJZL3O.js.map +0 -7
- package/dist/chunks/chunk.WCA3YMN7.js.map +0 -7
- package/dist/chunks/chunk.WMWANLUG.js.map +0 -7
- package/dist/chunks/chunk.Y5LNS47Z.js.map +0 -7
- package/dist/chunks/chunk.Z463JNSB.js.map +0 -7
- package/dist/chunks/chunk.ZJF7NESZ.js.map +0 -7
- package/dist/chunks/chunk.ZX5CHJI2.js.map +0 -7
- package/dist/chunks/chunk.ZXZA6GQW.js.map +0 -7
- /package/dist/chunks/{chunk.M4CVCPA7.js.map → chunk.2QFNK7XL.js.map} +0 -0
- /package/dist/chunks/{chunk.T2TZJ6RL.js.map → chunk.3HW4J22U.js.map} +0 -0
- /package/dist/chunks/{chunk.O353RCGZ.js.map → chunk.4AKA2QRO.js.map} +0 -0
- /package/dist/chunks/{chunk.2Z4KRXQR.js.map → chunk.4ZPJSGD5.js.map} +0 -0
- /package/dist/chunks/{chunk.KUHEM2HU.js.map → chunk.53THUSDO.js.map} +0 -0
- /package/dist/chunks/{chunk.JXFOMI34.js.map → chunk.7467Z6PG.js.map} +0 -0
- /package/dist/chunks/{chunk.FDXNWNID.js.map → chunk.7EYHNKMM.js.map} +0 -0
- /package/dist/chunks/{chunk.3CBZSMFD.js.map → chunk.7LASULTQ.js.map} +0 -0
- /package/dist/chunks/{chunk.BJI3TUDD.js.map → chunk.7NZ7JAEV.js.map} +0 -0
- /package/dist/chunks/{chunk.A5SZJGAY.js.map → chunk.7XMTQ7P7.js.map} +0 -0
- /package/dist/chunks/{chunk.5BPFEOW3.js.map → chunk.A2JLMFJ4.js.map} +0 -0
- /package/dist/chunks/{chunk.GSWYXK3F.js.map → chunk.AQS4YK7Q.js.map} +0 -0
- /package/dist/chunks/{chunk.CKX7E6DW.js.map → chunk.AS3TB27D.js.map} +0 -0
- /package/dist/chunks/{chunk.E6TS35BF.js.map → chunk.B2WOBIWW.js.map} +0 -0
- /package/dist/chunks/{chunk.KCEUZKGJ.js.map → chunk.BJTRYICX.js.map} +0 -0
- /package/dist/chunks/{chunk.UD2SVXHT.js.map → chunk.BPZOCAHJ.js.map} +0 -0
- /package/dist/chunks/{chunk.CMORZHVE.js.map → chunk.BWESHYBN.js.map} +0 -0
- /package/dist/chunks/{chunk.R7UQZGOB.js.map → chunk.DYUCTKM6.js.map} +0 -0
- /package/dist/chunks/{chunk.AVEHVAVI.js.map → chunk.E72GLNXI.js.map} +0 -0
- /package/dist/chunks/{chunk.442H67H2.js.map → chunk.EBYGA33B.js.map} +0 -0
- /package/dist/chunks/{chunk.KYW2PJQJ.js.map → chunk.EMGPXY5T.js.map} +0 -0
- /package/dist/chunks/{chunk.KQKYLYB5.js.map → chunk.FAREQGAK.js.map} +0 -0
- /package/dist/chunks/{chunk.WQTGLVFD.js.map → chunk.FLB37Q2Y.js.map} +0 -0
- /package/dist/chunks/{chunk.7C65TMZT.js.map → chunk.HCMNEIRN.js.map} +0 -0
- /package/dist/chunks/{chunk.XWYGFKWO.js.map → chunk.HNVPPNYZ.js.map} +0 -0
- /package/dist/chunks/{chunk.F7L6D6XY.js.map → chunk.HPQBH3O2.js.map} +0 -0
- /package/dist/chunks/{chunk.DYAGSNTK.js.map → chunk.HZ3S4J3T.js.map} +0 -0
- /package/dist/chunks/{chunk.NM5ZFEE5.js.map → chunk.IBQDKFYH.js.map} +0 -0
- /package/dist/chunks/{chunk.Z4WZ7MIE.js.map → chunk.IFWSRMUK.js.map} +0 -0
- /package/dist/chunks/{chunk.TVERPVR4.js.map → chunk.J53UXHXV.js.map} +0 -0
- /package/dist/chunks/{chunk.WSJXYSXY.js.map → chunk.JHPSR3AP.js.map} +0 -0
- /package/dist/chunks/{chunk.SAH3XRAD.js.map → chunk.JNAG6IBY.js.map} +0 -0
- /package/dist/chunks/{chunk.6WYS7WDW.js.map → chunk.LHNUNBCA.js.map} +0 -0
- /package/dist/chunks/{chunk.YA4ZNSNS.js.map → chunk.LYMHXGME.js.map} +0 -0
- /package/dist/chunks/{chunk.SMRWRBBB.js.map → chunk.LYNLLR54.js.map} +0 -0
- /package/dist/chunks/{chunk.JGZ2DM63.js.map → chunk.LZ27X5R6.js.map} +0 -0
- /package/dist/chunks/{chunk.O3D7AIEY.js.map → chunk.MDG7KZFO.js.map} +0 -0
- /package/dist/chunks/{chunk.AEYAHBYW.js.map → chunk.MGET4VXP.js.map} +0 -0
- /package/dist/chunks/{chunk.CZDXNQOI.js.map → chunk.N54SVWTA.js.map} +0 -0
- /package/dist/chunks/{chunk.4SALHO5R.js.map → chunk.NL4FKYIJ.js.map} +0 -0
- /package/dist/chunks/{chunk.WJWII3OP.js.map → chunk.NM5EI7ZH.js.map} +0 -0
- /package/dist/chunks/{chunk.3CZBIEJQ.js.map → chunk.NN73HBIU.js.map} +0 -0
- /package/dist/chunks/{chunk.54OV4Y3P.js.map → chunk.OFA3YJLS.js.map} +0 -0
- /package/dist/chunks/{chunk.ZA44ZRKT.js.map → chunk.P5XIUYNV.js.map} +0 -0
- /package/dist/chunks/{chunk.762BUPQP.js.map → chunk.PDAOZ7HN.js.map} +0 -0
- /package/dist/chunks/{chunk.ODBT7EDN.js.map → chunk.PLSOGFSX.js.map} +0 -0
- /package/dist/chunks/{chunk.RR3NOQXW.js.map → chunk.Q33XUREM.js.map} +0 -0
- /package/dist/chunks/{chunk.EFBKBI5I.js.map → chunk.QMVBPAZF.js.map} +0 -0
- /package/dist/chunks/{chunk.T2IZ4JC5.js.map → chunk.QWMAKCAT.js.map} +0 -0
- /package/dist/chunks/{chunk.26PAD6S5.js.map → chunk.S7PAQRVY.js.map} +0 -0
- /package/dist/chunks/{chunk.3GWNIY5V.js.map → chunk.SKA5Y7HA.js.map} +0 -0
- /package/dist/chunks/{chunk.VKKATLHB.js.map → chunk.SNHVIH7F.js.map} +0 -0
- /package/dist/chunks/{chunk.U627OKOV.js.map → chunk.ST3V3ZVP.js.map} +0 -0
- /package/dist/chunks/{chunk.JM2MZ7RR.js.map → chunk.SWUXKALS.js.map} +0 -0
- /package/dist/chunks/{chunk.IMPVWVTM.js.map → chunk.SYWSXUHZ.js.map} +0 -0
- /package/dist/chunks/{chunk.4QCEBUCC.js.map → chunk.TL5RQ2KH.js.map} +0 -0
- /package/dist/chunks/{chunk.YADYVOVB.js.map → chunk.UXHC3W5U.js.map} +0 -0
- /package/dist/chunks/{chunk.Z6ZZHCIT.js.map → chunk.UY5AOQHP.js.map} +0 -0
- /package/dist/chunks/{chunk.EPPQVZQW.js.map → chunk.UYGCYMDS.js.map} +0 -0
- /package/dist/chunks/{chunk.XNZSIB7Q.js.map → chunk.VL74BJLP.js.map} +0 -0
- /package/dist/chunks/{chunk.WGTTDIKF.js.map → chunk.VLE3Q74Y.js.map} +0 -0
- /package/dist/chunks/{chunk.3DYXH3I6.js.map → chunk.VOOMTA4X.js.map} +0 -0
- /package/dist/chunks/{chunk.OLTMUBJR.js.map → chunk.WLHRVKAR.js.map} +0 -0
- /package/dist/chunks/{chunk.JZC3FVVX.js.map → chunk.WLYLSH3H.js.map} +0 -0
- /package/dist/chunks/{chunk.TMJ25O52.js.map → chunk.WMUMEYQJ.js.map} +0 -0
- /package/dist/chunks/{chunk.GOLBL7J7.js.map → chunk.XMSHEZ3R.js.map} +0 -0
- /package/dist/chunks/{chunk.C2IY7RL4.js.map → chunk.XP47Y2SU.js.map} +0 -0
- /package/dist/chunks/{chunk.5OUUMC6G.js.map → chunk.XSS62TBI.js.map} +0 -0
- /package/dist/chunks/{chunk.PHUCYRO7.js.map → chunk.XY3WHMD7.js.map} +0 -0
- /package/dist/chunks/{chunk.CIHRDJFX.js.map → chunk.Y334QFFZ.js.map} +0 -0
- /package/dist/chunks/{chunk.QSA255YJ.js.map → chunk.Y4EGILWE.js.map} +0 -0
- /package/dist/chunks/{chunk.5IR2ODKZ.js.map → chunk.YQLTFWYX.js.map} +0 -0
- /package/dist/chunks/{chunk.OX7ASSRL.js.map → chunk.YTMSHKEA.js.map} +0 -0
- /package/dist/chunks/{chunk.FLSPWXQV.js.map → chunk.Z4OFLKEQ.js.map} +0 -0
- /package/dist/chunks/{chunk.SS6UWTDZ.js.map → chunk.ZDIDYG6H.js.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/checkbox/checkbox.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './checkbox.styles.js';\nimport customStyles from './checkbox.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Checkboxes allow the user to toggle an option on or off.\n * @documentation https://synergy.style/components/checkbox\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The checkbox's label.\n * @slot help-text - Text that describes how to use the checkbox. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the checkbox loses focus.\n * @event syn-change - Emitted when the checked state changes.\n * @event syn-focus - Emitted when the checkbox gains focus.\n * @event syn-input - Emitted when the checkbox receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The square container that wraps the checkbox's checked state.\n * @csspart control--checked - Matches the control part when the checkbox is checked.\n * @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart indeterminate-icon - The indeterminate icon, an `<syn-icon>` element.\n * @csspart label - The container that wraps the checkbox's label.\n * @csspart form-control-help-text - The help text's wrapper.\n */\n@enableDefaultSettings('SynCheckbox')\nexport default class SynCheckbox extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n private readonly formControlController = new FormControlController(this, {\n value: (control: SynCheckbox) => (control.checked ? control.value || 'on' : undefined),\n defaultValue: (control: SynCheckbox) => control.defaultChecked,\n setValue: (control: SynCheckbox, checked: boolean) => (control.checked = checked)\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text');\n\n @query('input[type=\"checkbox\"]') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n\n @property() title = ''; // make reactive to pass through\n\n /** The name of the checkbox, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the checkbox, submitted as a name/value pair with form data. */\n @property() value: string;\n\n /** The checkbox's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the checkbox. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the checkbox in a checked state. */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /**\n * Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\n * all/none\" behavior when associated checkboxes have a mix of checked and unchecked states.\n */\n @property({ type: Boolean, reflect: true }) indeterminate = false;\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue('checked') defaultChecked = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the checkbox a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The checkbox's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleClick() {\n this.checked = !this.checked;\n this.indeterminate = false;\n this.emit('syn-change');\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleInput() {\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch(['checked', 'indeterminate'], { waitUntilFirstUpdate: true })\n handleStateChange() {\n this.input.checked = this.checked; // force a sync update\n this.input.indeterminate = this.indeterminate; // force a sync update\n this.formControlController.updateValidity();\n }\n\n /** Simulates a click on the checkbox. */\n click() {\n this.input.click();\n }\n\n /** Sets focus on the checkbox. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n blur() {\n this.input.blur();\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /**\n * Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\n * the custom validation message, call this method with an empty string.\n */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n\n //\n // NOTE: we use a <div> around the label slot because of this Chrome bug.\n //\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1413733\n //\n return html`\n <div\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-help-text': hasHelpText\n })}\n >\n <label\n part=\"base\"\n class=${classMap({\n checkbox: true,\n 'checkbox--checked': this.checked,\n 'checkbox--disabled': this.disabled,\n 'checkbox--focused': this.hasFocus,\n 'checkbox--indeterminate': this.indeterminate,\n 'checkbox--small': this.size === 'small',\n 'checkbox--medium': this.size === 'medium',\n 'checkbox--large': this.size === 'large'\n })}\n >\n <input\n class=\"checkbox__input\"\n type=\"checkbox\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${this.name}\n value=${ifDefined(this.value)}\n .indeterminate=${live(this.indeterminate)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n aria-checked=${this.checked ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n @click=${this.handleClick}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n />\n\n <span\n part=\"control${this.checked ? ' control--checked' : ''}${this.indeterminate\n ? ' control--indeterminate'\n : ''}\"\n class=\"checkbox__control\"\n >\n ${this.checked\n ? html`\n <syn-icon part=\"checked-icon\" class=\"checkbox__checked-icon\" library=\"system\" name=\"check\"></syn-icon>\n `\n : ''}\n ${!this.checked && this.indeterminate\n ? html`\n <syn-icon\n part=\"indeterminate-icon\"\n class=\"checkbox__indeterminate-icon\"\n library=\"system\"\n name=\"indeterminate\"\n ></syn-icon>\n `\n : ''}\n </span>\n\n <div part=\"label\" class=\"checkbox__label\">\n <slot></slot>\n </div>\n </label>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAwCvC,IAAqB,cAArB,cAAyC,eAA6C;AAAA,EAAtF;AAAA;AAIE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,OAAO,CAAC,YAA0B,QAAQ,UAAU,QAAQ,SAAS,OAAO;AAAA,MAC5E,cAAc,CAAC,YAAyB,QAAQ;AAAA,MAChD,UAAU,CAAC,SAAsB,YAAsB,QAAQ,UAAU;AAAA,IAC3E,CAAC;AACD,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,WAAW;AAInE,SAAQ,WA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AA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAjDvB,YAiDyB;AAGN;AAAA,EAArC,SAAS,EAAE,WAAW,YAAY,CAAC;AAAA,GApDjB,YAoDmB;AA0CtC;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA7F9B,YA8FnB;AAMA;AAAA,EADC,MAAM,CAAC,WAAW,eAAe,GAAG,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAnGhD,YAoGnB;AApGmB,cAArB;AAAA,EADC,sBAAsB,aAAa;AAAA,GACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.MKQXTHWU.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -64,4 +64,4 @@ __decorateClass([
|
|
|
64
64
|
export {
|
|
65
65
|
SynTabPanel
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=chunk.
|
|
67
|
+
//# sourceMappingURL=chunk.DYUCTKM6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynProgressRing
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2QFNK7XL.js";
|
|
4
4
|
|
|
5
5
|
// src/components/progress-ring/progress-ring.ts
|
|
6
6
|
var progress_ring_default = SynProgressRing;
|
|
@@ -9,4 +9,4 @@ SynProgressRing.define("syn-progress-ring");
|
|
|
9
9
|
export {
|
|
10
10
|
progress_ring_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.E72GLNXI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenuLabel
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.SKA5Y7HA.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu-label/menu-label.ts
|
|
6
6
|
var menu_label_default = SynMenuLabel;
|
|
@@ -9,4 +9,4 @@ SynMenuLabel.define("syn-menu-label");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_label_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.EBYGA33B.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.MKQXTHWU.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -43,4 +43,4 @@ __decorateClass([
|
|
|
43
43
|
export {
|
|
44
44
|
SynDivider
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk.
|
|
46
|
+
//# sourceMappingURL=chunk.EMGPXY5T.js.map
|
|
@@ -6,13 +6,16 @@ import {
|
|
|
6
6
|
} from "./chunk.DZ7YIR5N.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.SWUXKALS.js";
|
|
10
|
+
import {
|
|
11
|
+
enableDefaultSettings
|
|
12
|
+
} from "./chunk.OLCT57R5.js";
|
|
10
13
|
import {
|
|
11
14
|
component_styles_default
|
|
12
15
|
} from "./chunk.NLYVOJGK.js";
|
|
13
16
|
import {
|
|
14
17
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.MKQXTHWU.js";
|
|
16
19
|
import {
|
|
17
20
|
__decorateClass
|
|
18
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -134,8 +137,11 @@ __decorateClass([
|
|
|
134
137
|
__decorateClass([
|
|
135
138
|
property({ type: Boolean, reflect: true })
|
|
136
139
|
], SynIconButton.prototype, "disabled", 2);
|
|
140
|
+
SynIconButton = __decorateClass([
|
|
141
|
+
enableDefaultSettings("SynIconButton")
|
|
142
|
+
], SynIconButton);
|
|
137
143
|
|
|
138
144
|
export {
|
|
139
145
|
SynIconButton
|
|
140
146
|
};
|
|
141
|
-
//# sourceMappingURL=chunk.
|
|
147
|
+
//# sourceMappingURL=chunk.EMU2E2VE.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/icon-button/icon-button.component.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html, literal } from 'lit/static-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './icon-button.styles.js';\nimport customStyles from './icon-button.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.\n * @documentation https://synergy.style/components/icon-button\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @event syn-blur - Emitted when the icon button loses focus.\n * @event syn-focus - Emitted when the icon button gains focus.\n *\n * @csspart base - The component's base wrapper.\n */\nexport default class SynIconButton extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n @query('.icon-button') button: HTMLButtonElement | HTMLLinkElement;\n\n @state() private hasFocus = false;\n\n /** The name of the icon to draw. Available names depend on the icon library being used. */\n @property() name?: string;\n\n /** The name of a registered custom icon library. */\n @property() library?: string;\n\n /**\n * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\n * can result in XSS attacks.\n */\n @property() src?: string;\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @property() href?: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @property() target?: '_blank' | '_parent' | '_self' | '_top';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */\n @property() download?: string;\n\n /**\n * A description that gets read by assistive devices. For optimal accessibility, you should always include a label\n * that describes what the icon button does.\n */\n @property() label = '';\n\n /** The icon button's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' | 'inherit' = 'inherit';\n\n /**\n * The color of the icon button.\n * The default \"currentColor\" makes it possible to easily style the icon button from outside without any CSS variables.\n */\n @property({ reflect: true }) color: 'currentColor' | 'primary' | 'neutral' = 'currentColor';\n\n /** Disables the button. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleClick(event: MouseEvent) {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /** Simulates a click on the icon button. */\n click() {\n this.button.click();\n }\n\n /** Sets focus on the icon button. */\n focus(options?: FocusOptions) {\n this.button.focus(options);\n }\n\n /** Removes focus from the icon button. */\n blur() {\n this.button.blur();\n }\n\n render() {\n const isLink = this.href ? true : false;\n const tag = isLink ? literal`a` : literal`button`;\n\n /* eslint-disable lit/binding-positions, lit/no-invalid-html */\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n 'icon-button': true,\n 'icon-button--disabled': !isLink && this.disabled,\n 'icon-button--focused': this.hasFocus,\n 'icon-button--small': this.size === 'small',\n 'icon-button--medium': this.size === 'medium',\n 'icon-button--large': this.size === 'large',\n })}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n type=${ifDefined(isLink ? undefined : 'button')}\n href=${ifDefined(isLink ? this.href : undefined)}\n target=${ifDefined(isLink ? this.target : undefined)}\n download=${ifDefined(isLink ? this.download : undefined)}\n rel=${ifDefined(isLink && this.target ? 'noreferrer noopener' : undefined)}\n role=${ifDefined(isLink ? undefined : 'button')}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n aria-label=\"${this.label}\"\n tabindex=${this.disabled ? '-1' : '0'}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @click=${this.handleClick}\n >\n <syn-icon\n class=\"icon-button__icon\"\n name=${ifDefined(this.name)}\n library=${ifDefined(this.library)}\n src=${ifDefined(this.src)}\n aria-hidden=\"true\"\n ></syn-icon>\n </${tag}>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html, literal } from 'lit/static-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './icon-button.styles.js';\nimport customStyles from './icon-button.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.\n * @documentation https://synergy.style/components/icon-button\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @event syn-blur - Emitted when the icon button loses focus.\n * @event syn-focus - Emitted when the icon button gains focus.\n *\n * @csspart base - The component's base wrapper.\n */\n@enableDefaultSettings('SynIconButton')\nexport default class SynIconButton extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n @query('.icon-button') button: HTMLButtonElement | HTMLLinkElement;\n\n @state() private hasFocus = false;\n\n /** The name of the icon to draw. Available names depend on the icon library being used. */\n @property() name?: string;\n\n /** The name of a registered custom icon library. */\n @property() library?: string;\n\n /**\n * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\n * can result in XSS attacks.\n */\n @property() src?: string;\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @property() href?: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @property() target?: '_blank' | '_parent' | '_self' | '_top';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */\n @property() download?: string;\n\n /**\n * A description that gets read by assistive devices. For optimal accessibility, you should always include a label\n * that describes what the icon button does.\n */\n @property() label = '';\n\n /** The icon button's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' | 'inherit' = 'inherit';\n\n /**\n * The color of the icon button.\n * The default \"currentColor\" makes it possible to easily style the icon button from outside without any CSS variables.\n */\n @property({ reflect: true }) color: 'currentColor' | 'primary' | 'neutral' = 'currentColor';\n\n /** Disables the button. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleClick(event: MouseEvent) {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /** Simulates a click on the icon button. */\n click() {\n this.button.click();\n }\n\n /** Sets focus on the icon button. */\n focus(options?: FocusOptions) {\n this.button.focus(options);\n }\n\n /** Removes focus from the icon button. */\n blur() {\n this.button.blur();\n }\n\n render() {\n const isLink = this.href ? true : false;\n const tag = isLink ? literal`a` : literal`button`;\n\n /* eslint-disable lit/binding-positions, lit/no-invalid-html */\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n 'icon-button': true,\n 'icon-button--disabled': !isLink && this.disabled,\n 'icon-button--focused': this.hasFocus,\n 'icon-button--small': this.size === 'small',\n 'icon-button--medium': this.size === 'medium',\n 'icon-button--large': this.size === 'large',\n })}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n type=${ifDefined(isLink ? undefined : 'button')}\n href=${ifDefined(isLink ? this.href : undefined)}\n target=${ifDefined(isLink ? this.target : undefined)}\n download=${ifDefined(isLink ? this.download : undefined)}\n rel=${ifDefined(isLink && this.target ? 'noreferrer noopener' : undefined)}\n role=${ifDefined(isLink ? undefined : 'button')}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n aria-label=\"${this.label}\"\n tabindex=${this.disabled ? '-1' : '0'}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @click=${this.handleClick}\n >\n <syn-icon\n class=\"icon-button__icon\"\n name=${ifDefined(this.name)}\n library=${ifDefined(this.library)}\n src=${ifDefined(this.src)}\n aria-hidden=\"true\"\n ></syn-icon>\n </${tag}>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,MAAM,eAAe;AAC9B,SAAS,iBAAiB;AAC1B,SAAS,UAAU,OAAO,aAAa;AAuBvC,IAAqB,gBAArB,cAA2C,eAAe;AAAA,EAA1D;AAAA;AAMW,SAAQ,WAAW;AA2BhB,iBAAQ;AAGS,gBAAiD;AAMjD,iBAAiD;AAGlC,oBAAW;AAAA;AAAA,EAE/C,aAAa;AACnB,SAAK,WAAW;AAChB,SAAK,KAAK,UAAU;AAAA,EACtB;AAAA,EAEQ,cAAc;AACpB,SAAK,WAAW;AAChB,SAAK,KAAK,WAAW;AAAA,EACvB;AAAA,EAEQ,YAAY,OAAmB;AACrC,QAAI,KAAK,UAAU;AACjB,YAAM,eAAe;AACrB,YAAM,gBAAgB;AAAA,IACxB;AAAA,EACF;AAAA;AAAA,EAGA,QAAQ;AACN,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AC,0BAAiB,4BAAQ,iCAAY;AADnD,cAEZ,eAAe,EAAE,YAAY,QAAQ;AAErB;AAAA,EAAtB,MAAM,cAAc;AAAA,GAJF,cAII;AAEN;AAAA,EAAhB,MAAM;AAAA,GANY,cAMF;AAGL;AAAA,EAAX,SAAS;AAAA,GATS,cASP;AAGA;AAAA,EAAX,SAAS;AAAA,GAZS,cAYP;AAMA;AAAA,EAAX,SAAS;AAAA,GAlBS,cAkBP;AAGA;AAAA,EAAX,SAAS;AAAA,GArBS,cAqBP;AAGA;AAAA,EAAX,SAAS;AAAA,GAxBS,cAwBP;AAGA;AAAA,EAAX,SAAS;AAAA,GA3BS,cA2BP;AAMA;AAAA,EAAX,SAAS;AAAA,GAjCS,cAiCP;AAGiB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GApCR,cAoCU;AAMA;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA1CR,cA0CU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA7CvB,cA6CyB;AA7CzB,gBAArB;AAAA,EADC,sBAAsB,eAAe;AAAA,GACjB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,22 +3,25 @@ import {
|
|
|
3
3
|
isBlurEvent,
|
|
4
4
|
isInvalidEvent,
|
|
5
5
|
normalizeEventAttribute
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.WLHRVKAR.js";
|
|
7
7
|
import {
|
|
8
8
|
validate_styles_default
|
|
9
9
|
} from "./chunk.MVM3NN6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
SynAlert
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.JBLFNOCX.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.74IOULXM.js";
|
|
16
|
+
import {
|
|
17
|
+
enableDefaultSettings
|
|
18
|
+
} from "./chunk.OLCT57R5.js";
|
|
16
19
|
import {
|
|
17
20
|
component_styles_default
|
|
18
21
|
} from "./chunk.NLYVOJGK.js";
|
|
19
22
|
import {
|
|
20
23
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.MKQXTHWU.js";
|
|
22
25
|
import {
|
|
23
26
|
__decorateClass
|
|
24
27
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -320,8 +323,11 @@ __decorateClass([
|
|
|
320
323
|
__decorateClass([
|
|
321
324
|
watch("customValidationMessage", { waitUntilFirstUpdate: true })
|
|
322
325
|
], SynValidate.prototype, "handleCustomValidationMessageChange", 1);
|
|
326
|
+
SynValidate = __decorateClass([
|
|
327
|
+
enableDefaultSettings("SynValidate")
|
|
328
|
+
], SynValidate);
|
|
323
329
|
|
|
324
330
|
export {
|
|
325
331
|
SynValidate
|
|
326
332
|
};
|
|
327
|
-
//# sourceMappingURL=chunk.
|
|
333
|
+
//# sourceMappingURL=chunk.EVECGQOP.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 *\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 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 = (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 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,s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.js";
|
|
@@ -89,4 +89,4 @@ function findButton(el) {
|
|
|
89
89
|
export {
|
|
90
90
|
SynButtonGroup
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk.
|
|
92
|
+
//# sourceMappingURL=chunk.FAREQGAK.js.map
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
} from "./chunk.74N5WLM5.js";
|
|
10
10
|
import {
|
|
11
11
|
SynNavItem
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.7XMTQ7P7.js";
|
|
13
13
|
import {
|
|
14
14
|
SynMenu
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.BPZOCAHJ.js";
|
|
16
16
|
import {
|
|
17
17
|
SynDropdown
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.Y334QFFZ.js";
|
|
19
19
|
import {
|
|
20
20
|
SynIcon
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.SWUXKALS.js";
|
|
22
22
|
import {
|
|
23
23
|
LocalizeController
|
|
24
24
|
} from "./chunk.GIU3H3J3.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk.NLYVOJGK.js";
|
|
28
28
|
import {
|
|
29
29
|
SynergyElement
|
|
30
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.MKQXTHWU.js";
|
|
31
31
|
import {
|
|
32
32
|
__decorateClass
|
|
33
33
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -209,4 +209,4 @@ __decorateClass([
|
|
|
209
209
|
export {
|
|
210
210
|
SynPrioNav
|
|
211
211
|
};
|
|
212
|
-
//# sourceMappingURL=chunk.
|
|
212
|
+
//# sourceMappingURL=chunk.FLB37Q2Y.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.O644HRW3.js";
|
|
7
7
|
import {
|
|
8
8
|
SynPopup
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.PLSOGFSX.js";
|
|
10
10
|
import {
|
|
11
11
|
waitForEvent
|
|
12
12
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
getAnimation,
|
|
20
20
|
setDefaultAnimation
|
|
21
21
|
} from "./chunk.HQ6QUSK7.js";
|
|
22
|
-
import {
|
|
23
|
-
watch
|
|
24
|
-
} from "./chunk.74IOULXM.js";
|
|
25
22
|
import {
|
|
26
23
|
LocalizeController
|
|
27
24
|
} from "./chunk.GIU3H3J3.js";
|
|
25
|
+
import {
|
|
26
|
+
watch
|
|
27
|
+
} from "./chunk.74IOULXM.js";
|
|
28
28
|
import {
|
|
29
29
|
component_styles_default
|
|
30
30
|
} from "./chunk.NLYVOJGK.js";
|
|
31
31
|
import {
|
|
32
32
|
SynergyElement
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.MKQXTHWU.js";
|
|
34
34
|
import {
|
|
35
35
|
__decorateClass
|
|
36
36
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -275,4 +275,4 @@ setDefaultAnimation("tooltip.hide", {
|
|
|
275
275
|
export {
|
|
276
276
|
SynTooltip
|
|
277
277
|
};
|
|
278
|
-
//# sourceMappingURL=chunk.
|
|
278
|
+
//# sourceMappingURL=chunk.HCMNEIRN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSideNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.S7PAQRVY.js";
|
|
4
4
|
|
|
5
5
|
// src/components/side-nav/side-nav.ts
|
|
6
6
|
var side_nav_default = SynSideNav;
|
|
@@ -9,4 +9,4 @@ SynSideNav.define("syn-side-nav");
|
|
|
9
9
|
export {
|
|
10
10
|
side_nav_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.HNVPPNYZ.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.NLYVOJGK.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.MKQXTHWU.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -78,4 +78,4 @@ __decorateClass([
|
|
|
78
78
|
export {
|
|
79
79
|
SynResizeObserver
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=chunk.
|
|
81
|
+
//# sourceMappingURL=chunk.HPQBH3O2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynPopup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PLSOGFSX.js";
|
|
4
4
|
|
|
5
5
|
// src/components/popup/popup.ts
|
|
6
6
|
var popup_default = SynPopup;
|
|
@@ -9,4 +9,4 @@ SynPopup.define("syn-popup");
|
|
|
9
9
|
export {
|
|
10
10
|
popup_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.HZ3S4J3T.js.map
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
} from "./chunk.PKYC7QF3.js";
|
|
7
7
|
import {
|
|
8
8
|
SynResizeObserver
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.HPQBH3O2.js";
|
|
10
10
|
import {
|
|
11
11
|
scrollIntoView
|
|
12
12
|
} from "./chunk.5732DMBC.js";
|
|
13
13
|
import {
|
|
14
14
|
SynIconButton
|
|
15
|
-
} from "./chunk.
|
|
16
|
-
import {
|
|
17
|
-
watch
|
|
18
|
-
} from "./chunk.74IOULXM.js";
|
|
15
|
+
} from "./chunk.EMU2E2VE.js";
|
|
19
16
|
import {
|
|
20
17
|
LocalizeController
|
|
21
18
|
} from "./chunk.GIU3H3J3.js";
|
|
19
|
+
import {
|
|
20
|
+
watch
|
|
21
|
+
} from "./chunk.74IOULXM.js";
|
|
22
22
|
import {
|
|
23
23
|
component_styles_default
|
|
24
24
|
} from "./chunk.NLYVOJGK.js";
|
|
25
25
|
import {
|
|
26
26
|
SynergyElement
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.MKQXTHWU.js";
|
|
28
28
|
import {
|
|
29
29
|
__decorateClass,
|
|
30
30
|
__spreadValues
|
|
@@ -497,4 +497,4 @@ __decorateClass([
|
|
|
497
497
|
export {
|
|
498
498
|
SynTabGroup
|
|
499
499
|
};
|
|
500
|
-
//# sourceMappingURL=chunk.
|
|
500
|
+
//# sourceMappingURL=chunk.IBQDKFYH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynPrioNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.FLB37Q2Y.js";
|
|
4
4
|
|
|
5
5
|
// src/components/prio-nav/prio-nav.ts
|
|
6
6
|
var prio_nav_default = SynPrioNav;
|
|
@@ -9,4 +9,4 @@ SynPrioNav.define("syn-prio-nav");
|
|
|
9
9
|
export {
|
|
10
10
|
prio_nav_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.IFWSRMUK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRange
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.24C4XJAI.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.J53UXHXV.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIconButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EMU2E2VE.js";
|
|
4
4
|
import {
|
|
5
5
|
waitForEvent
|
|
6
6
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -16,23 +16,26 @@ import {
|
|
|
16
16
|
HasSlotController
|
|
17
17
|
} from "./chunk.WVVQK5TE.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./chunk.
|
|
21
|
-
import {
|
|
22
|
-
alert_styles_default
|
|
23
|
-
} from "./chunk.IFXKIEOU.js";
|
|
19
|
+
LocalizeController
|
|
20
|
+
} from "./chunk.GIU3H3J3.js";
|
|
24
21
|
import {
|
|
25
22
|
watch
|
|
26
23
|
} from "./chunk.74IOULXM.js";
|
|
27
24
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./chunk.
|
|
25
|
+
enableDefaultSettings
|
|
26
|
+
} from "./chunk.OLCT57R5.js";
|
|
30
27
|
import {
|
|
31
28
|
component_styles_default
|
|
32
29
|
} from "./chunk.NLYVOJGK.js";
|
|
33
30
|
import {
|
|
34
31
|
SynergyElement
|
|
35
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.MKQXTHWU.js";
|
|
33
|
+
import {
|
|
34
|
+
alert_custom_styles_default
|
|
35
|
+
} from "./chunk.JRYXECAY.js";
|
|
36
|
+
import {
|
|
37
|
+
alert_styles_default
|
|
38
|
+
} from "./chunk.IFXKIEOU.js";
|
|
36
39
|
import {
|
|
37
40
|
__decorateClass
|
|
38
41
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -253,6 +256,9 @@ __decorateClass([
|
|
|
253
256
|
__decorateClass([
|
|
254
257
|
watch("duration")
|
|
255
258
|
], SynAlert.prototype, "handleDurationChange", 1);
|
|
259
|
+
SynAlert = __decorateClass([
|
|
260
|
+
enableDefaultSettings("SynAlert")
|
|
261
|
+
], SynAlert);
|
|
256
262
|
setDefaultAnimation("alert.show", {
|
|
257
263
|
keyframes: [
|
|
258
264
|
{ opacity: 0, scale: 0.8 },
|
|
@@ -271,4 +277,4 @@ setDefaultAnimation("alert.hide", {
|
|
|
271
277
|
export {
|
|
272
278
|
SynAlert
|
|
273
279
|
};
|
|
274
|
-
//# sourceMappingURL=chunk.
|
|
280
|
+
//# sourceMappingURL=chunk.JBLFNOCX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/alert/alert.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './alert.styles.js';\nimport customStyles from './alert.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\nconst toastStack = Object.assign(document.createElement('div'), { className: 'syn-toast-stack' });\n\n/**\n * @summary Alerts are used to display important messages inline or as toast notifications.\n * @documentation https://synergy.style/components/alert\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The alert's main content.\n * @slot icon - An icon to show in the alert. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the alert opens.\n * @event syn-after-show - Emitted after the alert opens and all animations are complete.\n * @event syn-hide - Emitted when the alert closes.\n * @event syn-after-hide - Emitted after the alert closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The container that wraps the optional icon.\n * @csspart message - The container that wraps the alert's main content.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n *\n * @animation alert.show - The animation to use when showing the alert.\n * @animation alert.hide - The animation to use when hiding the alert.\n */\n@enableDefaultSettings('SynAlert')\nexport default class SynAlert extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private autoHideTimeout: number;\n private remainingTimeInterval: number;\n private countdownAnimation?: Animation;\n private readonly hasSlotController = new HasSlotController(this, 'icon', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('[part~=\"base\"]') base: HTMLElement;\n\n @query('.alert__countdown-elapsed') countdownElement: HTMLElement;\n\n /**\n * Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the alert's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Enables a close button that allows the user to dismiss the alert. */\n @property({ type: Boolean, reflect: true }) closable = false;\n\n /** The alert's theme variant. */\n @property({ reflect: true }) variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with\n * the alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning\n * the alert will not close on its own.\n */\n @property({ type: Number }) duration = Infinity;\n\n /**\n * Enables a countdown that indicates the remaining time the alert will be displayed.\n * Typically used to indicate the remaining time before a whole app refresh.\n */\n private countdown? : 'rtl' | 'ltr';\n\n @state() private remainingTime = this.duration;\n\n firstUpdated() {\n this.base.hidden = !this.open;\n }\n\n private restartAutoHide() {\n this.handleCountdownChange();\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n this.remainingTime = this.duration;\n this.remainingTimeInterval = window.setInterval(() => {\n this.remainingTime -= 100;\n }, 100);\n }\n }\n\n private pauseAutoHide() {\n this.countdownAnimation?.pause();\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n }\n\n private resumeAutoHide() {\n if (this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.remainingTime);\n this.remainingTimeInterval = window.setInterval(() => {\n this.remainingTime -= 100;\n }, 100);\n this.countdownAnimation?.play();\n }\n }\n\n private handleCountdownChange() {\n if (this.open && this.duration < Infinity && this.countdown) {\n const { countdownElement } = this;\n const start = '100%';\n const end = '0';\n this.countdownAnimation = countdownElement.animate([{ width: start }, { width: end }], {\n duration: this.duration,\n easing: 'linear'\n });\n }\n }\n\n private handleCloseClick() {\n this.hide();\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n // Show\n this.emit('syn-show');\n\n if (this.duration < Infinity) {\n this.restartAutoHide();\n }\n\n await stopAnimations(this.base);\n this.base.hidden = false;\n const { keyframes, options } = getAnimation(this, 'alert.show', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n\n await stopAnimations(this.base);\n const { keyframes, options } = getAnimation(this, 'alert.hide', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n this.base.hidden = true;\n\n this.emit('syn-after-hide');\n }\n }\n\n @watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Shows the alert. */\n async show() {\n if (this.open) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the alert */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n */\n async toast() {\n return new Promise<void>(resolve => {\n this.handleCountdownChange();\n if (toastStack.parentElement === null) {\n document.body.append(toastStack);\n }\n\n toastStack.appendChild(this);\n\n // Wait for the toast stack to render\n requestAnimationFrame(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- force a reflow for the initial transition\n this.clientWidth;\n this.show();\n });\n\n this.addEventListener(\n 'syn-after-hide',\n () => {\n toastStack.removeChild(this);\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (toastStack.querySelector('syn-alert') === null) {\n toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n alert: true,\n 'alert--open': this.open,\n 'alert--closable': this.closable,\n 'alert--has-icon': this.hasSlotController.test('icon'),\n 'alert--primary': this.variant === 'primary',\n 'alert--success': this.variant === 'success',\n 'alert--neutral': this.variant === 'neutral',\n 'alert--warning': this.variant === 'warning',\n 'alert--danger': this.variant === 'danger'\n })}\n role=\"alert\"\n aria-hidden=${this.open ? 'false' : 'true'}\n @mouseenter=${this.pauseAutoHide}\n @mouseleave=${this.resumeAutoHide}\n >\n <div part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\"></slot>\n </div>\n\n <div part=\"message\" class=\"alert__message\" aria-live=\"polite\">\n <slot></slot>\n </div>\n\n ${this.closable\n ? html`\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"alert__close-button\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term('close')}\n @click=${this.handleCloseClick}\n ></syn-icon-button>\n `\n : ''}\n\n <div role=\"timer\" class=\"alert__timer\">${this.remainingTime}</div>\n\n ${this.countdown\n ? html`\n <div\n class=${classMap({\n alert__countdown: true,\n 'alert__countdown--ltr': this.countdown === 'ltr'\n })}\n >\n <div class=\"alert__countdown-elapsed\"></div>\n </div>\n `\n : ''}\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('alert.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('alert.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AAWvC,IAAM,aAAa,OAAO,OAAO,SAAS,cAAc,KAAK,GAAG,EAAE,WAAW,kBAAkB,CAAC;AA4BhG,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ,QAAQ;AACjF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAUX,gBAAO;AAGP,oBAAW;AAG1B,mBAAoE;AAOrE,oBAAW;AAQ9B,SAAQ,gBAAgB,KAAK;AAAA;AAAA,EAEtC,eAAe;AACb,SAAK,KAAK,SAAS,CAAC,KAAK;AAAA,EAC3B;AAAA,EAEQ,kBAAkB;AACxB,SAAK,sBAAsB;AAC3B,iBAAa,KAAK,eAAe;AACjC,kBAAc,KAAK,qBAAqB;AACxC,QAAI,KAAK,QAAQ,KAAK,WAAW,UAAU;AACzC,WAAK,kBAAkB,OAAO,WAAW,MAAM,KAAK,KAAK,GAAG,KAAK,QAAQ;AACzE,WAAK,gBAAgB,KAAK;AAC1B,WAAK,wBAAwB,OAAO,YAAY,MAAM;AACpD,aAAK,iBAAiB;AAAA,MACxB,GAAG,GAAG;AAAA,IACR;AAAA,EACF;AAAA,EAEQ,gBAAgB;AA/G1B;AAgHI,eAAK,uBAAL,mBAAyB;AACzB,iBAAa,KAAK,eAAe;AACjC,kBAA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MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1F1B,SA2Fb;AAgCN;AAAA,EADC,MAAM,UAAU;AAAA,GA1HE,SA2HnB;AA3HmB,WAArB;AAAA,EADC,sBAAsB,UAAU;AAAA,GACZ;AAqPrB,oBAAoB,cAAc;AAAA,EAChC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,cAAc;AAAA,EAChC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.NLYVOJGK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.MKQXTHWU.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -68,4 +68,4 @@ __decorateClass([
|
|
|
68
68
|
export {
|
|
69
69
|
SynProgressBar
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=chunk.
|
|
71
|
+
//# sourceMappingURL=chunk.JHPSR3AP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAccordion
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.SXFIFBVM.js";
|
|
4
4
|
|
|
5
5
|
// src/components/accordion/accordion.ts
|
|
6
6
|
var accordion_default = SynAccordion;
|
|
@@ -9,4 +9,4 @@ SynAccordion.define("syn-accordion");
|
|
|
9
9
|
export {
|
|
10
10
|
accordion_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.JNAG6IBY.js.map
|