@synergy-design-system/components 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk.TMI6TXDF.js → chunk.235YRCJ6.js} +2 -2
- package/dist/chunks/{chunk.MTBPYPAK.js → chunk.2KJLWCNO.js} +5 -5
- package/dist/chunks/chunk.32CYREEV.js +10 -0
- package/dist/chunks/chunk.32CYREEV.js.map +7 -0
- package/dist/chunks/{chunk.C36IBP2Y.js → chunk.3P3S2YKQ.js} +9 -9
- package/dist/chunks/{chunk.VPY4H4BH.js → chunk.4EXAPYJM.js} +2 -2
- package/dist/chunks/{chunk.G74PTGLR.js → chunk.53WD4CSA.js} +6 -6
- package/dist/chunks/{chunk.EAK2CZN5.js → chunk.53ZID3W7.js} +3 -3
- package/dist/chunks/{chunk.WQ5RJNWY.js → chunk.57NVT3UG.js} +7 -7
- package/dist/chunks/{chunk.LV2RVNPJ.js → chunk.5HAX5I6M.js} +2 -2
- package/dist/chunks/{chunk.I7LMJIVB.js → chunk.5PCLAI7L.js} +2 -2
- package/dist/chunks/{chunk.QHMHHBTQ.js → chunk.5YXRXONG.js} +2 -2
- package/dist/chunks/{chunk.43GHTB73.js → chunk.6CZNDS3Z.js} +6 -6
- package/dist/chunks/{chunk.VEUZWIWS.js → chunk.6Q2BMCS2.js} +6 -6
- package/dist/chunks/{chunk.MIFF5ON5.js → chunk.7JEZP6RC.js} +2 -2
- package/dist/chunks/{chunk.5GJBOJOJ.js → chunk.7L6RIM5M.js} +2 -2
- package/dist/chunks/{chunk.SLFJNIBJ.js → chunk.AYZA7A6S.js} +2 -2
- package/dist/chunks/{chunk.T5SDGJLN.js → chunk.BE4T7WWO.js} +5 -5
- package/dist/chunks/{chunk.L6BR5LAL.js → chunk.BSAQCZZA.js} +2 -2
- package/dist/chunks/{chunk.B3MZC6CJ.js → chunk.C2YZDSQ2.js} +2 -2
- package/dist/chunks/{chunk.5G7ZZRTT.js → chunk.DMNJUA3R.js} +2 -2
- package/dist/chunks/{chunk.66VRELGR.js → chunk.DQM2APFS.js} +6 -6
- package/dist/chunks/{chunk.LQD2V7B3.js → chunk.DRRNEAHG.js} +2 -2
- package/dist/chunks/{chunk.7JQ75RUY.js → chunk.DZZXHJXN.js} +5 -5
- package/dist/chunks/{chunk.4NDJ3XJZ.js → chunk.E2XIOWQD.js} +6 -6
- package/dist/chunks/{chunk.6PXGQJCH.js → chunk.EKAM3F5Y.js} +2 -2
- package/dist/chunks/{chunk.DXCVWKBW.js → chunk.ESTZWKEU.js} +2 -2
- package/dist/chunks/{chunk.2LJHON6S.js → chunk.EVBPAURG.js} +2 -2
- package/dist/chunks/{chunk.CFK6ZZWP.js → chunk.FHICCNAH.js} +2 -2
- package/dist/chunks/{chunk.CNBK6BXB.js → chunk.GRQQN5SF.js} +2 -2
- package/dist/chunks/{chunk.JLK4L5FX.js → chunk.H5KBKCNW.js} +2 -2
- package/dist/chunks/{chunk.UTEBBE3R.js → chunk.H5WSZCZ5.js} +2 -2
- package/dist/chunks/{chunk.DCUFJIWA.js → chunk.HCRY7OUP.js} +2 -2
- package/dist/chunks/{chunk.HQZ3BXPQ.js → chunk.HV4DMIWV.js} +2 -2
- package/dist/chunks/{chunk.KPD7UXYG.js → chunk.I6TCSTYE.js} +6 -6
- package/dist/chunks/{chunk.R63SNGSK.js → chunk.I7MO3POA.js} +2 -2
- package/dist/chunks/{chunk.RTMMKZQC.js → chunk.IQVAT35M.js} +10 -10
- package/dist/chunks/chunk.JCMU5P5Q.js +12 -0
- package/dist/chunks/chunk.JCMU5P5Q.js.map +7 -0
- package/dist/chunks/{chunk.TC5MUZDT.js → chunk.KAHSOZEQ.js} +2 -2
- package/dist/chunks/{chunk.KPIFYZIW.js → chunk.KBLXNDOK.js} +2 -2
- package/dist/chunks/chunk.KLDQHER5.js +92 -0
- package/dist/chunks/chunk.KLDQHER5.js.map +7 -0
- package/dist/chunks/{chunk.FUTC5UNF.js → chunk.KUIBRZ2M.js} +2 -2
- package/dist/chunks/{chunk.YSCN2H4J.js → chunk.LAPGJCVJ.js} +3 -3
- package/dist/chunks/{chunk.YZLJINMN.js → chunk.LJW4RAGM.js} +3 -3
- package/dist/chunks/{chunk.MHORC52J.js → chunk.LOYJXKLZ.js} +2 -2
- package/dist/chunks/{chunk.7YHPAFBY.js → chunk.LQKP7DYF.js} +9 -9
- package/dist/chunks/{chunk.FFTKB5DB.js → chunk.LQNSOIU3.js} +6 -6
- package/dist/chunks/{chunk.MZB3A2PC.js → chunk.MMWS4XGO.js} +2 -2
- package/dist/chunks/{chunk.CU6YTDF3.js → chunk.N4TETQXP.js} +6 -6
- package/dist/chunks/chunk.NGIGPLN2.js +79 -0
- package/dist/chunks/chunk.NGIGPLN2.js.map +7 -0
- package/dist/chunks/{chunk.QABH4GYW.js → chunk.O53BTQWD.js} +2 -2
- package/dist/chunks/{chunk.WNMVQDJ4.js → chunk.O6SSJ23X.js} +2 -2
- package/dist/chunks/{chunk.U7BPATGD.js → chunk.OHAJFCI2.js} +2 -2
- package/dist/chunks/{chunk.P5AMPKUK.js → chunk.OYB4Y7ET.js} +5 -5
- package/dist/chunks/{chunk.FKALWRPK.js → chunk.PRIUO6K5.js} +6 -6
- package/dist/chunks/{chunk.2AMQXMBJ.js → chunk.PRVPMRMP.js} +2 -2
- package/dist/chunks/{chunk.3W4XH7AG.js → chunk.Q2VJM34R.js} +2 -2
- package/dist/chunks/{chunk.OL27RSKJ.js → chunk.QDJMXGZK.js} +2 -2
- package/dist/chunks/{chunk.Q7UHNN5N.js → chunk.QHHUWWKO.js} +2 -2
- package/dist/chunks/{chunk.Q7UHNN5N.js.map → chunk.QHHUWWKO.js.map} +1 -1
- package/dist/chunks/{chunk.DYZA2PWP.js → chunk.RBQ7XXVT.js} +2 -2
- package/dist/chunks/{chunk.4HGLQO32.js → chunk.RHAG6VNO.js} +2 -2
- package/dist/chunks/{chunk.FKHRK3AJ.js → chunk.RISVXN4U.js} +6 -6
- package/dist/chunks/chunk.SSNMI2TJ.js +12 -0
- package/dist/chunks/chunk.SSNMI2TJ.js.map +7 -0
- package/dist/chunks/{chunk.JMFYRM3W.js → chunk.T5DK2BB7.js} +10 -10
- package/dist/chunks/{chunk.YZB77DYM.js → chunk.TPQGNAM6.js} +2 -2
- package/dist/chunks/{chunk.NQIAPJ5P.js → chunk.UGPST4IM.js} +3 -3
- package/dist/chunks/{chunk.3C3CYLWF.js → chunk.UTIXRIQF.js} +6 -6
- package/dist/chunks/chunk.UUFPSNOM.js +114 -0
- package/dist/chunks/chunk.UUFPSNOM.js.map +7 -0
- package/dist/chunks/{chunk.MBKQEZ6Y.js → chunk.UVZKGUK2.js} +2 -2
- package/dist/chunks/{chunk.FGXZP3MQ.js → chunk.VDQFMFIV.js} +2 -2
- package/dist/chunks/chunk.VJXYRUKL.js +92 -0
- package/dist/chunks/chunk.VJXYRUKL.js.map +7 -0
- package/dist/chunks/{chunk.SWOWQOZD.js → chunk.W2ZLYKW3.js} +2 -2
- package/dist/chunks/{chunk.SERPKHH2.js → chunk.YJYRKETY.js} +6 -6
- package/dist/chunks/{chunk.PTBISDTR.js → chunk.YUGJLV4Z.js} +2 -2
- package/dist/chunks/{chunk.AR7MDJE4.js → chunk.YWYWGAF4.js} +2 -2
- package/dist/chunks/chunk.Z6T7VV4R.js +15 -0
- package/dist/chunks/chunk.Z6T7VV4R.js.map +7 -0
- package/dist/chunks/{chunk.DFCOMA3V.js → chunk.Z76T5ZI5.js} +2 -2
- package/dist/chunks/{chunk.VLWMUFDA.js → chunk.ZPL25GJZ.js} +2 -2
- package/dist/components/alert/alert.component.js +9 -9
- package/dist/components/alert/alert.js +10 -10
- package/dist/components/badge/badge.component.js +3 -3
- package/dist/components/badge/badge.js +4 -4
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +34 -0
- package/dist/components/breadcrumb/breadcrumb.component.js +21 -0
- package/dist/components/breadcrumb/breadcrumb.component.js.map +7 -0
- package/dist/components/breadcrumb/breadcrumb.custom.styles.d.ts +2 -0
- package/dist/components/breadcrumb/breadcrumb.custom.styles.js +8 -0
- package/dist/components/breadcrumb/breadcrumb.custom.styles.js.map +7 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.js +22 -0
- package/dist/components/breadcrumb/breadcrumb.js.map +7 -0
- package/dist/components/breadcrumb/breadcrumb.styles.d.ts +2 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +8 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js.map +7 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +39 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +13 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js.map +7 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.custom.styles.d.ts +2 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.custom.styles.js +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.custom.styles.js.map +7 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js +14 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js.map +7 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js.map +7 -0
- 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/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 +4 -4
- package/dist/components/dropdown/dropdown.js +5 -5
- 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 +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- 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 +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 +4 -4
- package/dist/components/nav-item/nav-item.js +5 -5
- package/dist/components/optgroup/optgroup.component.js +4 -4
- package/dist/components/optgroup/optgroup.js +5 -5
- 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 +3 -3
- package/dist/components/radio/radio.js +4 -4
- 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/select/select.component.js +9 -9
- package/dist/components/select/select.js +10 -10
- package/dist/components/side-nav/side-nav.component.js +9 -9
- package/dist/components/side-nav/side-nav.js +10 -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 +3 -3
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/tag/tag.component.js +6 -6
- package/dist/components/tag/tag.js +7 -7
- package/dist/components/textarea/textarea.component.js +3 -3
- package/dist/components/textarea/textarea.js +4 -4
- package/dist/components/tooltip/tooltip.component.js +4 -4
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/custom-elements.json +287 -1
- package/dist/synergy.d.ts +2 -0
- package/dist/synergy.js +91 -77
- package/dist/vscode.html-custom-data.json +49 -0
- package/package.json +3 -3
- /package/dist/chunks/{chunk.TMI6TXDF.js.map → chunk.235YRCJ6.js.map} +0 -0
- /package/dist/chunks/{chunk.MTBPYPAK.js.map → chunk.2KJLWCNO.js.map} +0 -0
- /package/dist/chunks/{chunk.C36IBP2Y.js.map → chunk.3P3S2YKQ.js.map} +0 -0
- /package/dist/chunks/{chunk.VPY4H4BH.js.map → chunk.4EXAPYJM.js.map} +0 -0
- /package/dist/chunks/{chunk.G74PTGLR.js.map → chunk.53WD4CSA.js.map} +0 -0
- /package/dist/chunks/{chunk.EAK2CZN5.js.map → chunk.53ZID3W7.js.map} +0 -0
- /package/dist/chunks/{chunk.WQ5RJNWY.js.map → chunk.57NVT3UG.js.map} +0 -0
- /package/dist/chunks/{chunk.LV2RVNPJ.js.map → chunk.5HAX5I6M.js.map} +0 -0
- /package/dist/chunks/{chunk.I7LMJIVB.js.map → chunk.5PCLAI7L.js.map} +0 -0
- /package/dist/chunks/{chunk.QHMHHBTQ.js.map → chunk.5YXRXONG.js.map} +0 -0
- /package/dist/chunks/{chunk.43GHTB73.js.map → chunk.6CZNDS3Z.js.map} +0 -0
- /package/dist/chunks/{chunk.VEUZWIWS.js.map → chunk.6Q2BMCS2.js.map} +0 -0
- /package/dist/chunks/{chunk.MIFF5ON5.js.map → chunk.7JEZP6RC.js.map} +0 -0
- /package/dist/chunks/{chunk.5GJBOJOJ.js.map → chunk.7L6RIM5M.js.map} +0 -0
- /package/dist/chunks/{chunk.SLFJNIBJ.js.map → chunk.AYZA7A6S.js.map} +0 -0
- /package/dist/chunks/{chunk.T5SDGJLN.js.map → chunk.BE4T7WWO.js.map} +0 -0
- /package/dist/chunks/{chunk.L6BR5LAL.js.map → chunk.BSAQCZZA.js.map} +0 -0
- /package/dist/chunks/{chunk.B3MZC6CJ.js.map → chunk.C2YZDSQ2.js.map} +0 -0
- /package/dist/chunks/{chunk.5G7ZZRTT.js.map → chunk.DMNJUA3R.js.map} +0 -0
- /package/dist/chunks/{chunk.66VRELGR.js.map → chunk.DQM2APFS.js.map} +0 -0
- /package/dist/chunks/{chunk.LQD2V7B3.js.map → chunk.DRRNEAHG.js.map} +0 -0
- /package/dist/chunks/{chunk.7JQ75RUY.js.map → chunk.DZZXHJXN.js.map} +0 -0
- /package/dist/chunks/{chunk.4NDJ3XJZ.js.map → chunk.E2XIOWQD.js.map} +0 -0
- /package/dist/chunks/{chunk.6PXGQJCH.js.map → chunk.EKAM3F5Y.js.map} +0 -0
- /package/dist/chunks/{chunk.DXCVWKBW.js.map → chunk.ESTZWKEU.js.map} +0 -0
- /package/dist/chunks/{chunk.2LJHON6S.js.map → chunk.EVBPAURG.js.map} +0 -0
- /package/dist/chunks/{chunk.CFK6ZZWP.js.map → chunk.FHICCNAH.js.map} +0 -0
- /package/dist/chunks/{chunk.CNBK6BXB.js.map → chunk.GRQQN5SF.js.map} +0 -0
- /package/dist/chunks/{chunk.JLK4L5FX.js.map → chunk.H5KBKCNW.js.map} +0 -0
- /package/dist/chunks/{chunk.UTEBBE3R.js.map → chunk.H5WSZCZ5.js.map} +0 -0
- /package/dist/chunks/{chunk.DCUFJIWA.js.map → chunk.HCRY7OUP.js.map} +0 -0
- /package/dist/chunks/{chunk.HQZ3BXPQ.js.map → chunk.HV4DMIWV.js.map} +0 -0
- /package/dist/chunks/{chunk.KPD7UXYG.js.map → chunk.I6TCSTYE.js.map} +0 -0
- /package/dist/chunks/{chunk.R63SNGSK.js.map → chunk.I7MO3POA.js.map} +0 -0
- /package/dist/chunks/{chunk.RTMMKZQC.js.map → chunk.IQVAT35M.js.map} +0 -0
- /package/dist/chunks/{chunk.TC5MUZDT.js.map → chunk.KAHSOZEQ.js.map} +0 -0
- /package/dist/chunks/{chunk.KPIFYZIW.js.map → chunk.KBLXNDOK.js.map} +0 -0
- /package/dist/chunks/{chunk.FUTC5UNF.js.map → chunk.KUIBRZ2M.js.map} +0 -0
- /package/dist/chunks/{chunk.YSCN2H4J.js.map → chunk.LAPGJCVJ.js.map} +0 -0
- /package/dist/chunks/{chunk.YZLJINMN.js.map → chunk.LJW4RAGM.js.map} +0 -0
- /package/dist/chunks/{chunk.MHORC52J.js.map → chunk.LOYJXKLZ.js.map} +0 -0
- /package/dist/chunks/{chunk.7YHPAFBY.js.map → chunk.LQKP7DYF.js.map} +0 -0
- /package/dist/chunks/{chunk.FFTKB5DB.js.map → chunk.LQNSOIU3.js.map} +0 -0
- /package/dist/chunks/{chunk.MZB3A2PC.js.map → chunk.MMWS4XGO.js.map} +0 -0
- /package/dist/chunks/{chunk.CU6YTDF3.js.map → chunk.N4TETQXP.js.map} +0 -0
- /package/dist/chunks/{chunk.QABH4GYW.js.map → chunk.O53BTQWD.js.map} +0 -0
- /package/dist/chunks/{chunk.WNMVQDJ4.js.map → chunk.O6SSJ23X.js.map} +0 -0
- /package/dist/chunks/{chunk.U7BPATGD.js.map → chunk.OHAJFCI2.js.map} +0 -0
- /package/dist/chunks/{chunk.P5AMPKUK.js.map → chunk.OYB4Y7ET.js.map} +0 -0
- /package/dist/chunks/{chunk.FKALWRPK.js.map → chunk.PRIUO6K5.js.map} +0 -0
- /package/dist/chunks/{chunk.2AMQXMBJ.js.map → chunk.PRVPMRMP.js.map} +0 -0
- /package/dist/chunks/{chunk.3W4XH7AG.js.map → chunk.Q2VJM34R.js.map} +0 -0
- /package/dist/chunks/{chunk.OL27RSKJ.js.map → chunk.QDJMXGZK.js.map} +0 -0
- /package/dist/chunks/{chunk.DYZA2PWP.js.map → chunk.RBQ7XXVT.js.map} +0 -0
- /package/dist/chunks/{chunk.4HGLQO32.js.map → chunk.RHAG6VNO.js.map} +0 -0
- /package/dist/chunks/{chunk.FKHRK3AJ.js.map → chunk.RISVXN4U.js.map} +0 -0
- /package/dist/chunks/{chunk.JMFYRM3W.js.map → chunk.T5DK2BB7.js.map} +0 -0
- /package/dist/chunks/{chunk.YZB77DYM.js.map → chunk.TPQGNAM6.js.map} +0 -0
- /package/dist/chunks/{chunk.NQIAPJ5P.js.map → chunk.UGPST4IM.js.map} +0 -0
- /package/dist/chunks/{chunk.3C3CYLWF.js.map → chunk.UTIXRIQF.js.map} +0 -0
- /package/dist/chunks/{chunk.MBKQEZ6Y.js.map → chunk.UVZKGUK2.js.map} +0 -0
- /package/dist/chunks/{chunk.FGXZP3MQ.js.map → chunk.VDQFMFIV.js.map} +0 -0
- /package/dist/chunks/{chunk.SWOWQOZD.js.map → chunk.W2ZLYKW3.js.map} +0 -0
- /package/dist/chunks/{chunk.SERPKHH2.js.map → chunk.YJYRKETY.js.map} +0 -0
- /package/dist/chunks/{chunk.PTBISDTR.js.map → chunk.YUGJLV4Z.js.map} +0 -0
- /package/dist/chunks/{chunk.AR7MDJE4.js.map → chunk.YWYWGAF4.js.map} +0 -0
- /package/dist/chunks/{chunk.DFCOMA3V.js.map → chunk.Z76T5ZI5.js.map} +0 -0
- /package/dist/chunks/{chunk.VLWMUFDA.js.map → chunk.ZPL25GJZ.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIconButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LJW4RAGM.js";
|
|
4
4
|
import {
|
|
5
5
|
animateTo,
|
|
6
6
|
stopAnimations,
|
|
@@ -10,9 +10,6 @@ import {
|
|
|
10
10
|
getAnimation,
|
|
11
11
|
setDefaultAnimation
|
|
12
12
|
} from "./chunk.QAUTITK3.js";
|
|
13
|
-
import {
|
|
14
|
-
watch
|
|
15
|
-
} from "./chunk.AVTU2BGE.js";
|
|
16
13
|
import {
|
|
17
14
|
HasSlotController
|
|
18
15
|
} from "./chunk.66WXVGAW.js";
|
|
@@ -25,10 +22,13 @@ import {
|
|
|
25
22
|
import {
|
|
26
23
|
LocalizeController
|
|
27
24
|
} from "./chunk.GEHO4WRP.js";
|
|
25
|
+
import {
|
|
26
|
+
watch
|
|
27
|
+
} from "./chunk.AVTU2BGE.js";
|
|
28
28
|
import {
|
|
29
29
|
SynergyElement,
|
|
30
30
|
component_styles_default
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.QHHUWWKO.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass
|
|
34
34
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -214,4 +214,4 @@ setDefaultAnimation("alert.hide", {
|
|
|
214
214
|
export {
|
|
215
215
|
SynAlert
|
|
216
216
|
};
|
|
217
|
-
//# sourceMappingURL=chunk.
|
|
217
|
+
//# sourceMappingURL=chunk.PRIUO6K5.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.QHHUWWKO.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
16
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -53,4 +53,4 @@ __decorateClass([
|
|
|
53
53
|
export {
|
|
54
54
|
SynCard
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk.
|
|
56
|
+
//# sourceMappingURL=chunk.PRVPMRMP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynPrioNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.E2XIOWQD.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.Q2VJM34R.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
SynergyElement,
|
|
17
17
|
component_styles_default
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.QHHUWWKO.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -182,4 +182,4 @@ __decorateClass([
|
|
|
182
182
|
export {
|
|
183
183
|
SynIcon
|
|
184
184
|
};
|
|
185
|
-
//# sourceMappingURL=chunk.
|
|
185
|
+
//# sourceMappingURL=chunk.QDJMXGZK.js.map
|
|
@@ -67,7 +67,7 @@ var SynergyElement = class extends LitElement {
|
|
|
67
67
|
};
|
|
68
68
|
/* eslint-disable */
|
|
69
69
|
// @ts-expect-error This is auto-injected at build time.
|
|
70
|
-
SynergyElement.version = "1.
|
|
70
|
+
SynergyElement.version = "1.26.0";
|
|
71
71
|
SynergyElement.dependencies = {};
|
|
72
72
|
__decorateClass([
|
|
73
73
|
property()
|
|
@@ -80,4 +80,4 @@ export {
|
|
|
80
80
|
component_styles_default,
|
|
81
81
|
SynergyElement
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=chunk.
|
|
83
|
+
//# sourceMappingURL=chunk.QHHUWWKO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/styles/component.styles.ts", "../../src/internal/synergy-element.ts"],
|
|
4
|
-
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { css } from 'lit';\n\nexport default css`\n\t/* stylelint-disable */\n :host {\n box-sizing: border-box;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n`;\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\n// Match event type name strings that are registered on GlobalEventHandlersEventMap...\ntype EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? // ...where the event detail is an object...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? // ...that is non-empty...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? never\n : // ...and has at least one non-optional property\n Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? never\n : T\n : never\n : never;\n\n// The inverse of the above (match any type that doesn't match EventTypeRequiresDetail)\ntype EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? T\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? T\n : never\n : T\n : T;\n\n// `keyof EventTypesWithRequiredDetail` lists all registered event types that require detail\ntype EventTypesWithRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeRequiresDetail<EventType>]: true;\n};\n\n// `keyof EventTypesWithoutRequiredDetail` lists all registered event types that do NOT require detail\ntype EventTypesWithoutRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeDoesNotRequireDetail<EventType>]: true;\n};\n\n// Helper to make a specific property of an object non-optional\ntype WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };\n\n// Given an event name string, get a valid type for the options to initialize the event that is more restrictive than\n// just CustomEventInit when appropriate (validate the type of the event detail, and require it to be provided if the\n// event requires it)\ntype SynEventInit<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : WithRequired<CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>, 'detail'>\n : CustomEventInit\n : CustomEventInit;\n\n// Given an event name string, get the type of the event\ntype GetCustomEventType<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<unknown>\n ? GlobalEventHandlersEventMap[T]\n : CustomEvent<unknown>\n : CustomEvent<unknown>;\n\n// `keyof ValidEventTypeMap` is equivalent to `keyof GlobalEventHandlersEventMap` but gives a nicer error message\ntype ValidEventTypeMap = EventTypesWithRequiredDetail | EventTypesWithoutRequiredDetail;\n\nexport default class SynergyElement extends LitElement {\n // Make localization attributes reactive\n @property() dir: string;\n @property() lang: string;\n\n /** Emits a custom event with more convenient defaults. */\n emit<T extends string & keyof EventTypesWithoutRequiredDetail>(\n name: EventTypeDoesNotRequireDetail<T>,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T>;\n emit<T extends string & keyof EventTypesWithRequiredDetail>(\n name: EventTypeRequiresDetail<T>,\n options: SynEventInit<T>\n ): GetCustomEventType<T>;\n emit<T extends string & keyof ValidEventTypeMap>(\n name: T,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T> {\n const event = new CustomEvent(name, {\n bubbles: true,\n cancelable: false,\n composed: true,\n detail: {},\n ...options\n });\n\n this.dispatchEvent(event);\n\n return event as GetCustomEventType<T>;\n }\n\n /* eslint-disable */\n // @ts-expect-error This is auto-injected at build time.\n static version = \"1.
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { css } from 'lit';\n\nexport default css`\n\t/* stylelint-disable */\n :host {\n box-sizing: border-box;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n`;\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\n// Match event type name strings that are registered on GlobalEventHandlersEventMap...\ntype EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? // ...where the event detail is an object...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? // ...that is non-empty...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? never\n : // ...and has at least one non-optional property\n Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? never\n : T\n : never\n : never;\n\n// The inverse of the above (match any type that doesn't match EventTypeRequiresDetail)\ntype EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? T\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? T\n : never\n : T\n : T;\n\n// `keyof EventTypesWithRequiredDetail` lists all registered event types that require detail\ntype EventTypesWithRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeRequiresDetail<EventType>]: true;\n};\n\n// `keyof EventTypesWithoutRequiredDetail` lists all registered event types that do NOT require detail\ntype EventTypesWithoutRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeDoesNotRequireDetail<EventType>]: true;\n};\n\n// Helper to make a specific property of an object non-optional\ntype WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };\n\n// Given an event name string, get a valid type for the options to initialize the event that is more restrictive than\n// just CustomEventInit when appropriate (validate the type of the event detail, and require it to be provided if the\n// event requires it)\ntype SynEventInit<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : WithRequired<CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>, 'detail'>\n : CustomEventInit\n : CustomEventInit;\n\n// Given an event name string, get the type of the event\ntype GetCustomEventType<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<unknown>\n ? GlobalEventHandlersEventMap[T]\n : CustomEvent<unknown>\n : CustomEvent<unknown>;\n\n// `keyof ValidEventTypeMap` is equivalent to `keyof GlobalEventHandlersEventMap` but gives a nicer error message\ntype ValidEventTypeMap = EventTypesWithRequiredDetail | EventTypesWithoutRequiredDetail;\n\nexport default class SynergyElement extends LitElement {\n // Make localization attributes reactive\n @property() dir: string;\n @property() lang: string;\n\n /** Emits a custom event with more convenient defaults. */\n emit<T extends string & keyof EventTypesWithoutRequiredDetail>(\n name: EventTypeDoesNotRequireDetail<T>,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T>;\n emit<T extends string & keyof EventTypesWithRequiredDetail>(\n name: EventTypeRequiresDetail<T>,\n options: SynEventInit<T>\n ): GetCustomEventType<T>;\n emit<T extends string & keyof ValidEventTypeMap>(\n name: T,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T> {\n const event = new CustomEvent(name, {\n bubbles: true,\n cancelable: false,\n composed: true,\n detail: {},\n ...options\n });\n\n this.dispatchEvent(event);\n\n return event as GetCustomEventType<T>;\n }\n\n /* eslint-disable */\n // @ts-expect-error This is auto-injected at build time.\n static version = \"1.26.0\";\n \n\n static define(name: string, elementConstructor = this, options: ElementDefinitionOptions = {}) {\n const currentlyRegisteredConstructor = customElements.get(name) as\n | CustomElementConstructor\n | typeof SynergyElement;\n\n if (!currentlyRegisteredConstructor) {\n customElements.define(name, class extends elementConstructor {} as unknown as CustomElementConstructor, options);\n return;\n }\n\n let newVersion = ' (unknown version)';\n let existingVersion = newVersion;\n\n if ('version' in elementConstructor && elementConstructor.version) {\n newVersion = ' v' + elementConstructor.version;\n }\n\n if ('version' in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {\n existingVersion = ' v' + currentlyRegisteredConstructor.version;\n }\n\n // Need to make sure we're not working with null or empty strings before doing version comparisons.\n if (newVersion && existingVersion && newVersion === existingVersion) {\n // If versions match, we don't need to warn anyone. Carry on.\n return;\n }\n\n console.warn(\n `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`\n );\n }\n\n static dependencies: Record<string, typeof SynergyElement> = {};\n\n constructor() {\n super();\n Object.entries((this.constructor as typeof SynergyElement).dependencies).forEach(([name, component]) => {\n (this.constructor as typeof SynergyElement).define(name, component);\n });\n }\n}\n\nexport interface SynergyFormControl extends SynergyElement {\n // Form attributes\n name: string;\n value: unknown;\n disabled?: boolean;\n defaultValue?: unknown;\n defaultChecked?: boolean;\n form?: string;\n\n // Constraint validation attributes\n pattern?: string;\n min?: number | string | Date;\n max?: number | string | Date;\n step?: number | 'any';\n required?: boolean;\n minlength?: number;\n maxlength?: number;\n\n // Form validation properties\n readonly validity: ValidityState;\n readonly validationMessage: string;\n\n // Form validation methods\n checkValidity: () => boolean;\n getForm: () => HTMLFormElement | null;\n reportValidity: () => boolean;\n setCustomValidity: (message: string) => void;\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;AAMA,SAAS,WAAW;AAEpB,IAAO,2BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACFf,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AA+DzB,IAAqB,iBAArB,cAA4C,WAAW;AAAA,EAcrD,KACE,MACA,SACuB;AACvB,UAAM,QAAQ,IAAI,YAAY,MAAM;AAAA,MAClC,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,QAAQ,CAAC;AAAA,OACN,QACJ;AAED,SAAK,cAAc,KAAK;AAExB,WAAO;AAAA,EACT;AAAA,EAOA,OAAO,OAAO,MAAc,qBAAqB,MAAM,UAAoC,CAAC,GAAG;AAC7F,UAAM,iCAAiC,eAAe,IAAI,IAAI;AAI9D,QAAI,CAAC,gCAAgC;AACnC,qBAAe,OAAO,MAAM,cAAc,mBAAmB;AAAA,MAAC,GAA0C,OAAO;AAC/G;AAAA,IACF;AAEA,QAAI,aAAa;AACjB,QAAI,kBAAkB;AAEtB,QAAI,aAAa,sBAAsB,mBAAmB,SAAS;AACjE,mBAAa,OAAO,mBAAmB;AAAA,IACzC;AAEA,QAAI,aAAa,kCAAkC,+BAA+B,SAAS;AACzF,wBAAkB,OAAO,+BAA+B;AAAA,IAC1D;AAGA,QAAI,cAAc,mBAAmB,eAAe,iBAAiB;AAEnE;AAAA,IACF;AAEA,YAAQ;AAAA,MACN,0BAA0B,IAAI,IAAI,UAAU,UAAU,IAAI,IAAI,eAAe;AAAA,IAC/E;AAAA,EACF;AAAA,EAIA,cAAc;AACZ,UAAM;AACN,WAAO,QAAS,KAAK,YAAsC,YAAY,EAAE,QAAQ,CAAC,CAAC,MAAM,SAAS,MAAM;AACtG,MAAC,KAAK,YAAsC,OAAO,MAAM,SAAS;AAAA,IACpE,CAAC;AAAA,EACH;AACF;AAAA;AAAA;AA5EqB,eAiCZ,UAAU;AAjCE,eAoEZ,eAAsD,CAAC;AAlElD;AAAA,EAAX,SAAS;AAAA,GAFS,eAEP;AACA;AAAA,EAAX,SAAS;AAAA,GAHS,eAGP;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenuLabel
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LAPGJCVJ.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.RBQ7XXVT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenuItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.T5DK2BB7.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu-item/menu-item.ts
|
|
6
6
|
var menu_item_default = SynMenuItem;
|
|
@@ -9,4 +9,4 @@ SynMenuItem.define("syn-menu-item");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.RHAG6VNO.js.map
|
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
} from "./chunk.JUJZBRXD.js";
|
|
17
17
|
import {
|
|
18
18
|
SynButtonGroup
|
|
19
|
-
} from "./chunk.
|
|
20
|
-
import {
|
|
21
|
-
watch
|
|
22
|
-
} from "./chunk.AVTU2BGE.js";
|
|
19
|
+
} from "./chunk.OHAJFCI2.js";
|
|
23
20
|
import {
|
|
24
21
|
HasSlotController
|
|
25
22
|
} from "./chunk.66WXVGAW.js";
|
|
23
|
+
import {
|
|
24
|
+
watch
|
|
25
|
+
} from "./chunk.AVTU2BGE.js";
|
|
26
26
|
import {
|
|
27
27
|
SynergyElement,
|
|
28
28
|
component_styles_default
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.QHHUWWKO.js";
|
|
30
30
|
import {
|
|
31
31
|
__decorateClass
|
|
32
32
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -356,4 +356,4 @@ __decorateClass([
|
|
|
356
356
|
export {
|
|
357
357
|
SynRadioGroup
|
|
358
358
|
};
|
|
359
|
-
//# sourceMappingURL=chunk.
|
|
359
|
+
//# sourceMappingURL=chunk.RISVXN4U.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynBreadcrumb
|
|
3
|
+
} from "./chunk.VJXYRUKL.js";
|
|
4
|
+
|
|
5
|
+
// src/components/breadcrumb/breadcrumb.ts
|
|
6
|
+
var breadcrumb_default = SynBreadcrumb;
|
|
7
|
+
SynBreadcrumb.define("syn-breadcrumb");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
breadcrumb_default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk.SSNMI2TJ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/breadcrumb/breadcrumb.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport SynBreadcrumb from './breadcrumb.component.js';\n\nexport * from './breadcrumb.component.js';\nexport default SynBreadcrumb;\n\nSynBreadcrumb.define('syn-breadcrumb');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-breadcrumb': SynBreadcrumb;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AASA,IAAO,qBAAQ;AAEf,cAAc,OAAO,gBAAgB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
} from "./chunk.JDBDBGQP.js";
|
|
10
10
|
import {
|
|
11
11
|
SynPopup
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.KBLXNDOK.js";
|
|
13
13
|
import {
|
|
14
14
|
SynSpinner
|
|
15
|
-
} from "./chunk.
|
|
16
|
-
import {
|
|
17
|
-
SynIcon
|
|
18
|
-
} from "./chunk.OL27RSKJ.js";
|
|
19
|
-
import {
|
|
20
|
-
watch
|
|
21
|
-
} from "./chunk.AVTU2BGE.js";
|
|
15
|
+
} from "./chunk.7L6RIM5M.js";
|
|
22
16
|
import {
|
|
23
17
|
HasSlotController,
|
|
24
18
|
getTextContent
|
|
25
19
|
} from "./chunk.66WXVGAW.js";
|
|
20
|
+
import {
|
|
21
|
+
SynIcon
|
|
22
|
+
} from "./chunk.QDJMXGZK.js";
|
|
26
23
|
import {
|
|
27
24
|
LocalizeController
|
|
28
25
|
} from "./chunk.GEHO4WRP.js";
|
|
26
|
+
import {
|
|
27
|
+
watch
|
|
28
|
+
} from "./chunk.AVTU2BGE.js";
|
|
29
29
|
import {
|
|
30
30
|
SynergyElement,
|
|
31
31
|
component_styles_default
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.QHHUWWKO.js";
|
|
33
33
|
import {
|
|
34
34
|
__decorateClass
|
|
35
35
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -191,4 +191,4 @@ __decorateClass([
|
|
|
191
191
|
export {
|
|
192
192
|
SynMenuItem
|
|
193
193
|
};
|
|
194
|
-
//# sourceMappingURL=chunk.
|
|
194
|
+
//# sourceMappingURL=chunk.T5DK2BB7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDivider
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KUIBRZ2M.js";
|
|
4
4
|
|
|
5
5
|
// src/components/divider/divider.ts
|
|
6
6
|
var divider_default = SynDivider;
|
|
@@ -9,4 +9,4 @@ SynDivider.define("syn-divider");
|
|
|
9
9
|
export {
|
|
10
10
|
divider_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.TPQGNAM6.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk.PKO6FEOM.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.QDJMXGZK.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.AVTU2BGE.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.QHHUWWKO.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -112,4 +112,4 @@ __decorateClass([
|
|
|
112
112
|
export {
|
|
113
113
|
SynRadio
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=chunk.
|
|
115
|
+
//# sourceMappingURL=chunk.UGPST4IM.js.map
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk.KG52EHDB.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
7
|
-
import {
|
|
8
|
-
watch
|
|
9
|
-
} from "./chunk.AVTU2BGE.js";
|
|
6
|
+
} from "./chunk.KUIBRZ2M.js";
|
|
10
7
|
import {
|
|
11
8
|
HasSlotController
|
|
12
9
|
} from "./chunk.66WXVGAW.js";
|
|
10
|
+
import {
|
|
11
|
+
watch
|
|
12
|
+
} from "./chunk.AVTU2BGE.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.QHHUWWKO.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -93,4 +93,4 @@ __decorateClass([
|
|
|
93
93
|
export {
|
|
94
94
|
SynOptgroup
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=chunk.
|
|
96
|
+
//# sourceMappingURL=chunk.UTIXRIQF.js.map
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
breadcrumb_item_styles_default
|
|
3
|
+
} from "./chunk.KLDQHER5.js";
|
|
4
|
+
import {
|
|
5
|
+
breadcrumb_item_custom_styles_default
|
|
6
|
+
} from "./chunk.NGIGPLN2.js";
|
|
7
|
+
import {
|
|
8
|
+
HasSlotController
|
|
9
|
+
} from "./chunk.66WXVGAW.js";
|
|
10
|
+
import {
|
|
11
|
+
watch
|
|
12
|
+
} from "./chunk.AVTU2BGE.js";
|
|
13
|
+
import {
|
|
14
|
+
SynergyElement,
|
|
15
|
+
component_styles_default
|
|
16
|
+
} from "./chunk.QHHUWWKO.js";
|
|
17
|
+
import {
|
|
18
|
+
__decorateClass
|
|
19
|
+
} from "./chunk.QNDC5KWA.js";
|
|
20
|
+
|
|
21
|
+
// src/components/breadcrumb-item/breadcrumb-item.component.ts
|
|
22
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
23
|
+
import { html } from "lit";
|
|
24
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
25
|
+
import { property, query, state } from "lit/decorators.js";
|
|
26
|
+
var SynBreadcrumbItem = class extends SynergyElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
this.hasSlotController = new HasSlotController(this, "prefix", "suffix");
|
|
30
|
+
this.renderType = "button";
|
|
31
|
+
this.rel = "noreferrer noopener";
|
|
32
|
+
}
|
|
33
|
+
setRenderType() {
|
|
34
|
+
const hasDropdown = this.defaultSlot.assignedElements({ flatten: true }).filter((i) => i.tagName.toLowerCase() === "syn-dropdown").length > 0;
|
|
35
|
+
this.renderType = this.href ? "link" : hasDropdown ? "drop-down" : "button";
|
|
36
|
+
}
|
|
37
|
+
hrefChanged() {
|
|
38
|
+
this.setRenderType();
|
|
39
|
+
}
|
|
40
|
+
handleSlotChange() {
|
|
41
|
+
this.setRenderType();
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return html`
|
|
45
|
+
<div
|
|
46
|
+
part="base"
|
|
47
|
+
class=${classMap({
|
|
48
|
+
"breadcrumb-item": true,
|
|
49
|
+
"breadcrumb-item--has-prefix": this.hasSlotController.test("prefix"),
|
|
50
|
+
"breadcrumb-item--has-suffix": this.hasSlotController.test("suffix")
|
|
51
|
+
})}
|
|
52
|
+
>
|
|
53
|
+
<span part="prefix" class="breadcrumb-item__prefix">
|
|
54
|
+
<slot name="prefix"></slot>
|
|
55
|
+
</span>
|
|
56
|
+
|
|
57
|
+
${this.renderType === "link" ? html`
|
|
58
|
+
<a
|
|
59
|
+
part="label"
|
|
60
|
+
class="breadcrumb-item__label breadcrumb-item__label--link"
|
|
61
|
+
href="${this.href}"
|
|
62
|
+
target="${ifDefined(this.target ? this.target : void 0)}"
|
|
63
|
+
rel=${ifDefined(this.target ? this.rel : void 0)}
|
|
64
|
+
>
|
|
65
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
66
|
+
</a>
|
|
67
|
+
` : ""}
|
|
68
|
+
${this.renderType === "button" ? html`
|
|
69
|
+
<button part="label" type="button" class="breadcrumb-item__label breadcrumb-item__label--button">
|
|
70
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
71
|
+
</button>
|
|
72
|
+
` : ""}
|
|
73
|
+
|
|
74
|
+
${this.renderType === "drop-down" ? html`
|
|
75
|
+
<div part="label" class="breadcrumb-item__label breadcrumb-item__label--drop-down">
|
|
76
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
77
|
+
</div>
|
|
78
|
+
` : ""}
|
|
79
|
+
|
|
80
|
+
<span part="suffix" class="breadcrumb-item__suffix">
|
|
81
|
+
<slot name="suffix"></slot>
|
|
82
|
+
</span>
|
|
83
|
+
|
|
84
|
+
<span part="separator" class="breadcrumb-item__separator" aria-hidden="true">
|
|
85
|
+
<slot name="separator"></slot>
|
|
86
|
+
</span>
|
|
87
|
+
</div>
|
|
88
|
+
`;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
SynBreadcrumbItem.styles = [component_styles_default, breadcrumb_item_styles_default, breadcrumb_item_custom_styles_default];
|
|
92
|
+
__decorateClass([
|
|
93
|
+
query("slot:not([name])")
|
|
94
|
+
], SynBreadcrumbItem.prototype, "defaultSlot", 2);
|
|
95
|
+
__decorateClass([
|
|
96
|
+
state()
|
|
97
|
+
], SynBreadcrumbItem.prototype, "renderType", 2);
|
|
98
|
+
__decorateClass([
|
|
99
|
+
property()
|
|
100
|
+
], SynBreadcrumbItem.prototype, "href", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
property()
|
|
103
|
+
], SynBreadcrumbItem.prototype, "target", 2);
|
|
104
|
+
__decorateClass([
|
|
105
|
+
property()
|
|
106
|
+
], SynBreadcrumbItem.prototype, "rel", 2);
|
|
107
|
+
__decorateClass([
|
|
108
|
+
watch("href", { waitUntilFirstUpdate: true })
|
|
109
|
+
], SynBreadcrumbItem.prototype, "hrefChanged", 1);
|
|
110
|
+
|
|
111
|
+
export {
|
|
112
|
+
SynBreadcrumbItem
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=chunk.UUFPSNOM.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/breadcrumb-item/breadcrumb-item.component.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './breadcrumb-item.styles.js';\nimport customStyles from './breadcrumb-item.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Breadcrumb Items are used inside [breadcrumbs](/components/breadcrumb) to represent different links.\n * @documentation https://synergy.style/components/breadcrumb-item\n * @status stable\n * @since 2.0\n *\n * @slot - The breadcrumb item's label.\n * @slot prefix - An optional prefix, usually an icon or icon button.\n * @slot suffix - An optional suffix, usually an icon or icon button.\n * @slot separator - The separator to use for the breadcrumb item. This will only change the separator for this item. If\n * you want to change it for all items in the group, set the separator on `<syn-breadcrumb>` instead.\n *\n * @csspart base - The component's base wrapper.\n * @csspart label - The breadcrumb item's label.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart separator - The container that wraps the separator.\n */\nexport default class SynBreadcrumbItem extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private readonly hasSlotController = new HasSlotController(this, 'prefix', 'suffix');\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n\n @state() private renderType: 'button' | 'link' | 'drop-down' = 'button';\n\n /**\n * Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\n * internally. When unset, a button will be rendered instead.\n */\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 /** The `rel` attribute to use on the link. Only used when `href` is set. */\n @property() rel = 'noreferrer noopener';\n\n private setRenderType() {\n const hasDropdown =\n this.defaultSlot.assignedElements({ flatten: true }).filter(i => i.tagName.toLowerCase() === 'syn-dropdown')\n .length > 0;\n\n this.renderType = this.href ? 'link' : hasDropdown ? 'drop-down' : 'button';\n }\n\n @watch('href', { waitUntilFirstUpdate: true })\n hrefChanged() {\n this.setRenderType();\n }\n\n handleSlotChange() {\n this.setRenderType();\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n 'breadcrumb-item': true,\n 'breadcrumb-item--has-prefix': this.hasSlotController.test('prefix'),\n 'breadcrumb-item--has-suffix': this.hasSlotController.test('suffix')\n })}\n >\n <span part=\"prefix\" class=\"breadcrumb-item__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n ${this.renderType === 'link'\n ? html`\n <a\n part=\"label\"\n class=\"breadcrumb-item__label breadcrumb-item__label--link\"\n href=\"${this.href!}\"\n target=\"${ifDefined(this.target ? this.target : undefined)}\"\n rel=${ifDefined(this.target ? this.rel : undefined)}\n >\n <slot @slotchange=${this.handleSlotChange}></slot>\n </a>\n `\n : ''}\n ${this.renderType === 'button' ? html`\n <button part=\"label\" type=\"button\" class=\"breadcrumb-item__label breadcrumb-item__label--button\">\n <slot @slotchange=${this.handleSlotChange}></slot>\n </button>\n ` : ''}\n\n ${this.renderType === 'drop-down'\n ? html`\n <div part=\"label\" class=\"breadcrumb-item__label breadcrumb-item__label--drop-down\">\n <slot @slotchange=${this.handleSlotChange}></slot>\n </div>\n `\n : ''}\n\n <span part=\"suffix\" class=\"breadcrumb-item__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n\n <span part=\"separator\" class=\"breadcrumb-item__separator\" aria-hidden=\"true\">\n <slot name=\"separator\"></slot>\n </span>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAMA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU,OAAO,aAAa;AA0BvC,IAAqB,oBAArB,cAA+C,eAAe;AAAA,EAA9D;AAAA;AAGE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,UAAU,QAAQ;AAI1E,SAAQ,aAA8C;AAYnD,eAAM;AAAA;AAAA,EAEV,gBAAgB;AACtB,UAAM,cACJ,KAAK,YAAY,iBAAiB,EAAE,SAAS,KAAK,CAAC,EAAE,OAAO,OAAK,EAAE,QAAQ,YAAY,MAAM,cAAc,EACxG,SAAS;AAEd,SAAK,aAAa,KAAK,OAAO,SAAS,cAAc,cAAc;AAAA,EACrE;AAAA,EAGA,cAAc;AACZ,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA,mBAAmB;AACjB,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,mBAAmB;AAAA,MACnB,+BAA+B,KAAK,kBAAkB,KAAK,QAAQ;AAAA,MACnE,+BAA+B,KAAK,kBAAkB,KAAK,QAAQ;AAAA,IACrE,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAMA,KAAK,eAAe,SAClB;AAAA;AAAA;AAAA;AAAA,wBAIY,KAAK,IAAK;AAAA,0BACR,UAAU,KAAK,SAAS,KAAK,SAAS,MAAS,CAAC;AAAA,sBACpD,UAAU,KAAK,SAAS,KAAK,MAAM,MAAS,CAAC;AAAA;AAAA,oCAE/B,KAAK,gBAAgB;AAAA;AAAA,gBAG7C,EAAE;AAAA,YACF,KAAK,eAAe,WAAW;AAAA;AAAA,oCAEP,KAAK,gBAAgB;AAAA;AAAA,gBAEzC,EAAE;AAAA;AAAA,YAEN,KAAK,eAAe,cAClB;AAAA;AAAA,sCAEwB,KAAK,gBAAgB;AAAA;AAAA,kBAG7C,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWd;AACF;AAzFqB,kBACZ,SAAyB,CAAC,0BAAiB,gCAAQ,qCAAY;AAI3C;AAAA,EAA1B,MAAM,kBAAkB;AAAA,GALN,kBAKQ;AAEV;AAAA,EAAhB,MAAM;AAAA,GAPY,kBAOF;AAML;AAAA,EAAX,SAAS;AAAA,GAbS,kBAaP;AAGA;AAAA,EAAX,SAAS;AAAA,GAhBS,kBAgBP;AAGA;AAAA,EAAX,SAAS;AAAA,GAnBS,kBAmBP;AAWZ;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA7B1B,kBA8BnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
SynergyElement,
|
|
9
9
|
component_styles_default
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.QHHUWWKO.js";
|
|
11
11
|
import {
|
|
12
12
|
__decorateClass
|
|
13
13
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -128,4 +128,4 @@ __decorateClass([
|
|
|
128
128
|
export {
|
|
129
129
|
SynMenu
|
|
130
130
|
};
|
|
131
|
-
//# sourceMappingURL=chunk.
|
|
131
|
+
//# sourceMappingURL=chunk.UVZKGUK2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSideNav
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.57NVT3UG.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.VDQFMFIV.js.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
breadcrumb_styles_default
|
|
3
|
+
} from "./chunk.Z6T7VV4R.js";
|
|
4
|
+
import {
|
|
5
|
+
SynIcon
|
|
6
|
+
} from "./chunk.QDJMXGZK.js";
|
|
7
|
+
import {
|
|
8
|
+
LocalizeController
|
|
9
|
+
} from "./chunk.GEHO4WRP.js";
|
|
10
|
+
import {
|
|
11
|
+
SynergyElement,
|
|
12
|
+
component_styles_default
|
|
13
|
+
} from "./chunk.QHHUWWKO.js";
|
|
14
|
+
import {
|
|
15
|
+
breadcrumb_custom_styles_default
|
|
16
|
+
} from "./chunk.32CYREEV.js";
|
|
17
|
+
import {
|
|
18
|
+
__decorateClass
|
|
19
|
+
} from "./chunk.QNDC5KWA.js";
|
|
20
|
+
|
|
21
|
+
// src/components/breadcrumb/breadcrumb.component.ts
|
|
22
|
+
import { html } from "lit";
|
|
23
|
+
import { property, query } from "lit/decorators.js";
|
|
24
|
+
var SynBreadcrumb = class extends SynergyElement {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.localize = new LocalizeController(this);
|
|
28
|
+
this.separatorDir = this.localize.dir();
|
|
29
|
+
this.label = "";
|
|
30
|
+
}
|
|
31
|
+
// Generates a clone of the separator element to use for each breadcrumb item
|
|
32
|
+
getSeparator() {
|
|
33
|
+
const separator = this.separatorSlot.assignedElements({ flatten: true })[0];
|
|
34
|
+
const clone = separator.cloneNode(true);
|
|
35
|
+
[clone, ...clone.querySelectorAll("[id]")].forEach((el) => el.removeAttribute("id"));
|
|
36
|
+
clone.setAttribute("data-default", "");
|
|
37
|
+
clone.slot = "separator";
|
|
38
|
+
return clone;
|
|
39
|
+
}
|
|
40
|
+
handleSlotChange() {
|
|
41
|
+
const items = [...this.defaultSlot.assignedElements({ flatten: true })].filter(
|
|
42
|
+
(item) => item.tagName.toLowerCase() === "syn-breadcrumb-item"
|
|
43
|
+
);
|
|
44
|
+
items.forEach((item, index) => {
|
|
45
|
+
const separator = item.querySelector('[slot="separator"]');
|
|
46
|
+
if (separator === null) {
|
|
47
|
+
item.append(this.getSeparator());
|
|
48
|
+
} else if (separator.hasAttribute("data-default")) {
|
|
49
|
+
separator.replaceWith(this.getSeparator());
|
|
50
|
+
} else {
|
|
51
|
+
}
|
|
52
|
+
if (index === items.length - 1) {
|
|
53
|
+
item.setAttribute("aria-current", "page");
|
|
54
|
+
} else {
|
|
55
|
+
item.removeAttribute("aria-current");
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
if (this.separatorDir !== this.localize.dir()) {
|
|
61
|
+
this.separatorDir = this.localize.dir();
|
|
62
|
+
this.updateComplete.then(() => this.handleSlotChange());
|
|
63
|
+
}
|
|
64
|
+
return html`
|
|
65
|
+
<nav part="base" class="breadcrumb" aria-label=${this.label}>
|
|
66
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
67
|
+
</nav>
|
|
68
|
+
|
|
69
|
+
<span hidden aria-hidden="true">
|
|
70
|
+
<slot name="separator">
|
|
71
|
+
<syn-icon name="chevron-down" library="system" class=${this.localize.dir()}></syn-icon>
|
|
72
|
+
</slot>
|
|
73
|
+
</span>
|
|
74
|
+
`;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
SynBreadcrumb.styles = [component_styles_default, breadcrumb_styles_default, breadcrumb_custom_styles_default];
|
|
78
|
+
SynBreadcrumb.dependencies = { "syn-icon": SynIcon };
|
|
79
|
+
__decorateClass([
|
|
80
|
+
query("slot")
|
|
81
|
+
], SynBreadcrumb.prototype, "defaultSlot", 2);
|
|
82
|
+
__decorateClass([
|
|
83
|
+
query('slot[name="separator"]')
|
|
84
|
+
], SynBreadcrumb.prototype, "separatorSlot", 2);
|
|
85
|
+
__decorateClass([
|
|
86
|
+
property()
|
|
87
|
+
], SynBreadcrumb.prototype, "label", 2);
|
|
88
|
+
|
|
89
|
+
export {
|
|
90
|
+
SynBreadcrumb
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=chunk.VJXYRUKL.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/breadcrumb/breadcrumb.component.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query } 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 './breadcrumb.styles.js';\nimport customStyles from './breadcrumb.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type SynBreadcrumbItem from '../breadcrumb-item/breadcrumb-item.js';\n\n/**\n * @summary Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n * @documentation https://synergy.style/components/breadcrumb\n * @status stable\n * @since 2.0\n *\n * @slot - One or more breadcrumb items to display.\n * @slot separator - The separator to use between breadcrumb items. Works best with `<syn-icon>`.\n *\n * @dependency syn-icon\n *\n * @csspart base - The component's base wrapper.\n */\nexport default class SynBreadcrumb extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n private readonly localize = new LocalizeController(this);\n private separatorDir = this.localize.dir();\n\n @query('slot') defaultSlot: HTMLSlotElement;\n @query('slot[name=\"separator\"]') separatorSlot: HTMLSlotElement;\n\n /**\n * The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\n * screen readers and other assistive devices to provide more context for users.\n */\n @property() label = '';\n\n // Generates a clone of the separator element to use for each breadcrumb item\n private getSeparator() {\n const separator = this.separatorSlot.assignedElements({ flatten: true })[0] as HTMLElement;\n\n // Clone it, remove ids, and slot it\n const clone = separator.cloneNode(true) as HTMLElement;\n [clone, ...clone.querySelectorAll('[id]')].forEach(el => el.removeAttribute('id'));\n clone.setAttribute('data-default', '');\n clone.slot = 'separator';\n\n return clone;\n }\n\n private handleSlotChange() {\n const items = [...this.defaultSlot.assignedElements({ flatten: true })].filter(\n item => item.tagName.toLowerCase() === 'syn-breadcrumb-item'\n ) as SynBreadcrumbItem[];\n\n items.forEach((item, index) => {\n // Append separators to each item if they don't already have one\n const separator = item.querySelector('[slot=\"separator\"]');\n if (separator === null) {\n // No separator exists, add one\n item.append(this.getSeparator());\n } else if (separator.hasAttribute('data-default')) {\n // A default separator exists, replace it\n separator.replaceWith(this.getSeparator());\n } else {\n // The user provided a custom separator, leave it alone\n }\n\n // The last breadcrumb item is the \"current page\"\n if (index === items.length - 1) {\n item.setAttribute('aria-current', 'page');\n } else {\n item.removeAttribute('aria-current');\n }\n });\n }\n\n render() {\n // We clone the separator and inject them into breadcrumb items, so we need to regenerate the default ones when\n // directionality changes. We do this by storing the current separator direction, waiting for render, then calling\n // the function that regenerates them.\n if (this.separatorDir !== this.localize.dir()) {\n this.separatorDir = this.localize.dir();\n this.updateComplete.then(() => this.handleSlotChange());\n }\n\n return html`\n <nav part=\"base\" class=\"breadcrumb\" aria-label=${this.label}>\n <slot @slotchange=${this.handleSlotChange}></slot>\n </nav>\n\n <span hidden aria-hidden=\"true\">\n <slot name=\"separator\">\n <syn-icon name=\"chevron-down\" library=\"system\" class=${this.localize.dir()}></syn-icon>\n </slot>\n </span>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAMA,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;AAsBhC,IAAqB,gBAArB,cAA2C,eAAe;AAAA,EAA1D;AAAA;AAIE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AACvD,SAAQ,eAAe,KAAK,SAAS,IAAI;AAS7B,iBAAQ;AAAA;AAAA;AAAA,EAGZ,eAAe;AACrB,UAAM,YAAY,KAAK,cAAc,iBAAiB,EAAE,SAAS,KAAK,CAAC,EAAE,CAAC;AAG1E,UAAM,QAAQ,UAAU,UAAU,IAAI;AACtC,KAAC,OAAO,GAAG,MAAM,iBAAiB,MAAM,CAAC,EAAE,QAAQ,QAAM,GAAG,gBAAgB,IAAI,CAAC;AACjF,UAAM,aAAa,gBAAgB,EAAE;AACrC,UAAM,OAAO;AAEb,WAAO;AAAA,EACT;AAAA,EAEQ,mBAAmB;AACzB,UAAM,QAAQ,CAAC,GAAG,KAAK,YAAY,iBAAiB,EAAE,SAAS,KAAK,CAAC,CAAC,EAAE;AAAA,MACtE,UAAQ,KAAK,QAAQ,YAAY,MAAM;AAAA,IACzC;AAEA,UAAM,QAAQ,CAAC,MAAM,UAAU;AAE7B,YAAM,YAAY,KAAK,cAAc,oBAAoB;AACzD,UAAI,cAAc,MAAM;AAEtB,aAAK,OAAO,KAAK,aAAa,CAAC;AAAA,MACjC,WAAW,UAAU,aAAa,cAAc,GAAG;AAEjD,kBAAU,YAAY,KAAK,aAAa,CAAC;AAAA,MAC3C,OAAO;AAAA,MAEP;AAGA,UAAI,UAAU,MAAM,SAAS,GAAG;AAC9B,aAAK,aAAa,gBAAgB,MAAM;AAAA,MAC1C,OAAO;AACL,aAAK,gBAAgB,cAAc;AAAA,MACrC;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,SAAS;AAIP,QAAI,KAAK,iBAAiB,KAAK,SAAS,IAAI,GAAG;AAC7C,WAAK,eAAe,KAAK,SAAS,IAAI;AACtC,WAAK,eAAe,KAAK,MAAM,KAAK,iBAAiB,CAAC;AAAA,IACxD;AAEA,WAAO;AAAA,uDAC4C,KAAK,KAAK;AAAA,4BACrC,KAAK,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,iEAKgB,KAAK,SAAS,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA,EAIlF;AACF;AA7EqB,cACZ,SAAyB,CAAC,0BAAiB,2BAAQ,gCAAY;AADnD,cAEZ,eAAe,EAAE,YAAY,QAAQ;AAK7B;AAAA,EAAd,MAAM,MAAM;AAAA,GAPM,cAOJ;AACkB;AAAA,EAAhC,MAAM,wBAAwB;AAAA,GARZ,cAQc;AAMrB;AAAA,EAAX,SAAS;AAAA,GAdS,cAcP;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAlert
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PRIUO6K5.js";
|
|
4
4
|
|
|
5
5
|
// src/components/alert/alert.ts
|
|
6
6
|
var alert_default = SynAlert;
|
|
@@ -9,4 +9,4 @@ SynAlert.define("syn-alert");
|
|
|
9
9
|
export {
|
|
10
10
|
alert_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.W2ZLYKW3.js.map
|